/* ── LAYOUT ── */
.wl-main   { max-width: 1060px; margin: 0 auto; padding: 24px 24px 60px; }
.wl-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.wl-right  { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }

/* ── SPINNING WHEEL CARD ── */
.wl-card { padding: 24px; display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 20px; }

/* CANVAS CONTAINER & POINTER */
.wl-wheel-wrap { position: relative; margin-bottom: 24px; display: flex; justify-content: center; align-items: center; width: 360px; height: 360px; max-width: 100%; max-height: 100%; }
.wl-canvas { width: 360px; height: 360px; max-width: 100%; max-height: 100%; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12)); }

/* Indicator Arrow pointing down at the top center */
.wl-pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 24px solid var(--accent, #d4f044); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); z-index: 10; }

/* SPIN BUTTON */
.wl-btn-spin { height: 50px; min-width: 180px; font-weight: 700; font-size: 16px; letter-spacing: 0.02em; border-radius: var(--radius-lg); }

/* TEXTAREA OPTIONS INTAKE */
.wl-options-wrap { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.wl-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; }
.wl-textarea { width: 100%; height: 100px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); padding: 10px 12px; font-size: 13px; outline: none; resize: vertical; line-height: 1.5; }
.wl-textarea:focus { border-color: var(--text); }

/* WINNING RESULT BANNER */
.wl-winner-banner { min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 20px; width: 100%; max-width: 440px; padding: 12px; border-radius: var(--radius-lg); transition: all 0.15s ease; border: 2px dashed transparent; background: transparent; }
.wl-winner-banner.active { border-color: #2aa198; background: rgba(42, 161, 152, 0.05); }
.wl-winner-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 4px; }
.wl-winner-val { font-size: 28px; font-weight: 800; color: #2aa198; word-break: break-all; line-height: 1.2; }

/* ── HISTORY ── */
.wl-history-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.wl-history-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-muted); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text); }
.wl-history-date { font-family: var(--font-mono); color: var(--text-muted); font-size: 11px; }
.wl-history-empty { font-size: 12px; color: var(--text-muted); text-align: center; padding: 16px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .wl-layout { grid-template-columns: 1fr; }
  .wl-right { position: static; }
}
@media (max-width: 480px) {
  .wl-main { padding: 16px 14px 40px; }
  .wl-wheel-wrap { width: 280px; height: 380px; } /* taller to make sure pointer matches */
  .wl-canvas { width: 280px; height: 280px; }
}

/* ── LANG SWITCHER ── */
.lang-switcher { position: relative; }
.lang-current { display:flex;align-items:center;gap:5px;padding:5px 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);font-size:12px;font-weight:500;color:var(--text);cursor:pointer;font-family:var(--font-sans); }
.lang-code { font-family:var(--font-mono);font-size:11px;color:var(--text-muted); }
.lang-menu { display:none;position:absolute;top:calc(100% + 6px);right:0;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:0 8px 24px rgba(0,0,0,.10);z-index:200;padding:6px;width:210px;max-height:340px;overflow-y:auto; }
.lang-menu.open { display:flex;flex-direction:column; }
.lang-option { display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--radius);font-size:13px;color:var(--text);text-decoration:none;transition:background .12s; }
.lang-option:hover { background:var(--bg-muted); }
.lang-option.active { background:var(--accent);font-weight:500; }
