/* ═══════════════════════════════════════════════════════════════════════
   Nakar — görsel katman. Kaynak: Nocturne DS token'ları + Nakar prototipi.
   ═══════════════════════════════════════════════════════════════════════ */

/* — fontlar (self-host, OFL) — */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* — Nocturne token'ları — */
:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-accent-2: #a7a1db;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --color-section: #262a60;

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0, 0, 0, 0.65);

  --ok-green: oklch(75% 0.14 150);
  --ok-green-dim: oklch(60% 0.13 150);
  --ok-green-border: oklch(45% 0.1 150);
  --ok-red: oklch(70% 0.16 20);
  --ok-red-dim: oklch(60% 0.14 20);
  --ok-red-bright: oklch(55% 0.16 20);
  --ok-yellow: oklch(75% 0.12 85);
  --ok-yellow-border: oklch(48% 0.09 85);
  --ok-check: oklch(75% 0.12 150);
}

/* — taban — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: var(--color-accent-300); text-decoration: none; }
a:hover { color: var(--color-accent-200); }
button { font-family: var(--font-body); color: var(--color-text); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
input[type=range] { accent-color: #9184d9; }
.hidden { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }

/* — ikonlar — */
svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 16px; height: 16px; fill: currentColor; flex: none; display: block; }
.ic-sm { width: 14px; height: 14px; }
.ic-accent { color: var(--color-accent); fill: var(--color-accent); }
.ic-accent2 { color: var(--color-accent-300); fill: var(--color-accent-300); }
.ic-green { fill: var(--ok-check); }

#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1100px 480px at 50% -120px, var(--color-accent-900), transparent 65%), var(--color-bg);
}

/* — animasyonlar — */
@keyframes nakarEq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes nakarShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes nakarSlideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes nakarFlashWrong { 0% { background: oklch(32% 0.09 20); } 100% { background: var(--color-neutral-900); } }
@keyframes nakarPop { 0% { opacity: 0; transform: scale(0.92) translateY(10px); } 60% { transform: scale(1.015); } 100% { opacity: 1; transform: none; } }
@keyframes nakarRing { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-accent) 45%, transparent); } 70% { box-shadow: 0 0 0 18px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes nakarConfetti { 0% { transform: translateY(-6vh) rotate(0deg); } 100% { transform: translateY(108vh) rotate(720deg); } }
@keyframes nakarFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes nakarTick { from { opacity: 0.15; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
@keyframes nakarTitle { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
@keyframes nakarDrift { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-34px) rotate(10deg); } }
@keyframes nakarSplashHide { to { opacity: 0; visibility: hidden; } }

@supports (animation-timeline: view()) {
  .reveal {
    animation: nakarFadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

/* Animasyonları azalt: sistem tercihi veya ayar.
   .reveal, animation-timeline: view() ile scroll'a bağlı çalıştığından
   animation-duration kısaltmak yetmez — animation: none ile tamamen kapatılır. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  #particles { display: none; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}
body.no-motion *, body.no-motion *::before, body.no-motion *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
body.no-motion #particles { display: none; }
body.no-motion { scroll-behavior: auto; }
body.no-motion .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }

/* — arkaplan parçacıkları — */
#particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.pt { position: absolute; fill: var(--color-accent); animation: nakarDrift 10s ease-in-out infinite; }
.pt-1 { left: 5%; top: 16%; width: 26px; height: 26px; opacity: 0.07; animation-duration: 9s; }
.pt-2 { left: 14%; top: 64%; width: 34px; height: 34px; opacity: 0.05; animation-duration: 12s; animation-delay: 1.2s; }
.pt-3 { left: 88%; top: 22%; width: 30px; height: 30px; opacity: 0.06; animation-duration: 10s; animation-delay: 0.6s; }
.pt-4 { left: 80%; top: 70%; width: 28px; height: 28px; opacity: 0.06; animation-duration: 11s; animation-delay: 2s; }
.pt-5 { left: 36%; top: 84%; width: 22px; height: 22px; opacity: 0.05; animation-duration: 8s; animation-delay: 0.3s; }
.pt-6 { left: 64%; top: 8%; width: 24px; height: 24px; opacity: 0.06; animation-duration: 13s; animation-delay: 1.6s; }
.pt-7 { left: 93%; top: 48%; width: 26px; height: 26px; opacity: 0.05; animation-duration: 10.5s; animation-delay: 2.4s; }
.pt-8 { left: 3%; top: 44%; width: 24px; height: 24px; opacity: 0.05; animation-duration: 9.5s; animation-delay: 1s; }

#dimmer { position: fixed; inset: 0; pointer-events: none; z-index: 5; background: rgba(10, 11, 18, 0.35); }

/* — açılış — */
#intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--color-bg); animation: nakarSplashHide 0.35s 0.85s both; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; animation: nakarPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.intro-eq { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.intro-eq .eq-bar { width: 5px; height: 100%; border-radius: 3px; }
.eq-bar { background: var(--color-accent); transform-origin: bottom; animation: nakarEq 0.7s ease-in-out infinite; }
.eq-a { animation-duration: 0.7s; }
.eq-b { background: var(--color-accent-300); animation-duration: 0.9s; animation-delay: 0.15s; }
.eq-c { background: var(--color-accent-600); animation-duration: 0.6s; animation-delay: 0.3s; }
.eq-d { animation-duration: 0.8s; animation-delay: 0.45s; }
.intro-logo { font-family: var(--font-heading); font-size: 36px; font-weight: 600; letter-spacing: 0.06em; color: var(--color-accent-100); }

/* — üst bar — */
#topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-neutral-800);
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand-wrap { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; overflow: hidden; }
.brand { font-family: var(--font-heading); font-size: 21px; font-weight: 600; letter-spacing: 0.04em; color: var(--color-accent-100); flex: none; }
.tagline { font-size: 12px; color: var(--color-neutral-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 3px; flex: none; }
#topbar-icons { display: flex; align-items: center; gap: 3px; }
#streak-chip {
  display: flex; align-items: center; gap: 4px; padding: 5px 9px;
  border: 1px solid var(--color-neutral-700); border-radius: 999px;
  color: var(--color-accent-200); font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.ic-flame { width: 13px; height: 13px; fill: var(--color-accent); }
.icon-btn {
  width: 31px; height: 31px; border: none; background: transparent; padding: 0;
  color: var(--color-neutral-300); border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; flex: none; text-decoration: none;
}
.icon-btn:hover { background: var(--color-neutral-800); color: var(--color-accent-200); }
.icon-btn--lg { width: 36px; height: 36px; color: var(--color-neutral-400); }
.icon-btn--lg .ic { width: 18px; height: 18px; }

#hamburger-wrap { position: relative; flex: none; }
#btn-menu {
  width: 38px; height: 38px; border: 1px solid var(--color-neutral-700); background: transparent;
  color: var(--color-neutral-200); border-radius: 9px; cursor: pointer; display: grid; place-items: center;
}
#btn-menu .ic { width: 19px; height: 19px; }
#btn-menu:hover { background: var(--color-neutral-800); color: var(--color-accent-200); }
#menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
  background: var(--color-neutral-900); border: 1px solid var(--color-neutral-700); border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
  animation: nakarSlideIn 0.2s ease; z-index: 45;
}
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 15px;
  border: none; background: transparent; color: var(--color-neutral-200);
  font-size: 13.5px; cursor: pointer; text-align: left;
}
.menu-item:hover { background: var(--color-neutral-800); color: var(--color-accent-100); }
.menu-item .ic { fill: var(--color-accent-400); }

main { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* — oyun alanı — */
#game { max-width: 640px; margin: 0 auto; padding: 34px 0 22px; display: flex; flex-direction: column; gap: 16px; }
.game-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.seg-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--color-neutral-700); border-radius: 10px; background: var(--color-neutral-900); }
.seg-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 8px;
  border: none; cursor: pointer; font-size: 13px; font-weight: 500;
  background: transparent; color: var(--color-neutral-400);
}
.seg-btn--active { background: var(--color-accent-800); color: var(--color-accent-100); }
.game-titles { text-align: center; }
#mode-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-300); font-weight: 500; }
#cat-title { margin: 4px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -0.01em; }
#cat-title-text { display: inline-block; animation: nakarTitle 0.35s ease; }
#daily-countdown { margin-top: 5px; font-size: 12.5px; color: var(--color-neutral-400); display: flex; align-items: center; gap: 5px; justify-content: center; }
#countdown { color: var(--color-neutral-200); }
#countdown .tick-digit { display: inline-block; animation: nakarTick 0.3s ease; }
#rush-chips { margin-top: 7px; display: flex; gap: 8px; justify-content: center; }
.rush-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
  border: 1px solid var(--color-neutral-700); border-radius: 999px;
  font-size: 13px; color: var(--color-neutral-200);
}
.rush-chip--time { border-color: var(--color-accent-700); color: var(--color-accent-100); }

/* — tahmin satırları — */
#rows { display: flex; flex-direction: column; gap: 7px; }
.row {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 13px;
  border-radius: 9px; border: 1px dashed var(--color-neutral-800);
}
.row .ic { width: 15px; height: 15px; }
.row-text { font-size: 13.5px; color: var(--color-neutral-500); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row--next { border-color: var(--color-accent-700); }
.row--filled { border-style: solid; border-color: var(--color-neutral-700); background: var(--color-neutral-900); }
.row--filled .row-text { color: var(--color-neutral-200); }
.row--skipped .ic { fill: var(--color-neutral-400); }
.row--skipped .row-text { color: var(--color-neutral-400); }
.row--wrong .ic { fill: var(--ok-red); }
.row--wrong .row-text { text-decoration: line-through; text-decoration-color: var(--ok-red-dim); }
.row--close { border-color: var(--ok-yellow-border); }
.row--close .ic { fill: var(--ok-yellow); }
.row--win { border-style: solid; border-color: var(--ok-green-border); background: var(--color-neutral-900); }
.row--win .ic { fill: var(--ok-green); }
.row--win .row-text { color: var(--color-neutral-200); }
.row--anim-in { animation: nakarSlideIn 0.3s ease; }
.row--anim-wrong { animation: nakarSlideIn 0.3s ease, nakarShake 0.45s ease, nakarFlashWrong 0.9s ease; }
.row--anim-win { animation: nakarPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* — kartlar — */
.card { display: flex; flex-direction: column; border-radius: var(--radius-md); background: var(--color-surface); }
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — çalar — */
.player { padding: 16px 18px; gap: 14px; }
.progress-wrap { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 2px 0; }
.seg-labels { position: relative; height: 13px; }
.seg-label { position: absolute; top: 0; transform: translateX(-50%); font-size: 10px; line-height: 1; color: var(--color-neutral-500); white-space: nowrap; }
.progress-track { position: relative; height: 8px; border-radius: 999px; background: var(--color-neutral-800); }
#bar-unlocked { position: absolute; inset: 0; width: 0; background: var(--color-accent-900); border-radius: 999px; transition: width 0.45s ease; }
#bar-progress { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--color-accent-600), var(--color-accent)); border-radius: 999px; transition: width 0.1s linear; }
.seg-dot {
  position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-surface); border: 2px solid var(--color-neutral-600);
  transform: translate(-50%, -50%); z-index: 2;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.seg-dot.unlocked { background: var(--color-accent); border-color: var(--color-accent); }
.seg-pos-0 { left: 6.25%; }
.seg-pos-1 { left: 12.5%; }
.seg-pos-2 { left: 25%; }
.seg-pos-3 { left: 43.75%; }
.seg-pos-4 { left: 68.75%; }
.seg-pos-5 { left: 100%; }
.seg-marker-row { position: relative; height: 11px; }
#play-marker {
  position: absolute; top: 0; left: 6.25%; transform: translateX(-50%);
  display: flex; color: var(--color-accent); transition: left 0.1s linear;
}
#play-marker .ic { width: 10px; height: 10px; }
.player-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.player-left { position: relative; display: flex; align-items: center; justify-self: start; }
#vol-pop {
  position: absolute; bottom: 44px; left: -8px; padding: 10px 12px;
  background: var(--color-neutral-900); border: 1px solid var(--color-neutral-700); border-radius: 10px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px; z-index: 10;
}
#vol-range { width: 110px; }
#vol-label { font-size: 11.5px; color: var(--color-neutral-400); min-width: 28px; }
#btn-hint[aria-pressed="true"] { color: var(--color-accent); background: var(--color-accent-900); }
.player-center { position: relative; justify-self: center; }
#play-eq { position: absolute; left: -34px; top: 50%; transform: translateY(-50%); display: flex; align-items: flex-end; gap: 2.5px; height: 18px; }
#play-eq .eq-bar { width: 3px; height: 100%; border-radius: 2px; }
#play-eq .eq-c { background: var(--color-accent); }
#btn-play {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--color-accent);
  background: var(--color-accent-900); color: var(--color-accent-100); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 0 22px color-mix(in oklab, var(--color-accent) 30%, transparent);
}
#btn-play:hover { background: var(--color-accent-800); }
#btn-play.playing { animation: nakarRing 1.4s ease-out infinite; }
.ic-play { width: 24px; height: 24px; fill: var(--color-accent-100); }
#time-label { font-size: 12.5px; color: var(--color-neutral-400); justify-self: end; }
#net-error { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 4px 0; font-size: 13px; color: var(--ok-red); }
#net-error .btn { height: 32px; font-size: 12.5px; }

/* — giriş — */
#play-area { display: flex; flex-direction: column; gap: 10px; }
.input-wrap { position: relative; }
.input-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--color-neutral-500); pointer-events: none; }
#guess-input {
  width: 100%; height: 44px; padding: 6px 10px 6px 36px; font: inherit; font-size: 14.5px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
#guess-input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
#guess-input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
#suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: var(--color-neutral-900); border: 1px solid var(--color-neutral-700); border-radius: 10px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 264px; overflow-y: auto;
}
.sug-item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 13px;
  border: none; background: transparent; color: var(--color-neutral-200);
  font-size: 13.5px; cursor: pointer; text-align: left;
}
.sug-item:hover, .sug-item.sug-item--active { background: var(--color-neutral-800); color: var(--color-accent-100); }
.sug-item .ic { width: 14px; height: 14px; fill: var(--color-accent-400); }
#hint-box { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.hint-chip {
  display: flex; align-items: center; gap: 6px; padding: 7px 13px;
  border: 1px solid var(--color-accent-700); border-radius: 999px;
  background: var(--color-neutral-900); color: var(--color-accent-100); font-size: 12.5px;
  animation: nakarSlideIn 0.3s ease;
}
.hint-chip .ic { width: 14px; height: 14px; fill: var(--color-accent); }
.play-actions { display: flex; gap: 10px; }
#btn-skip { flex: 1; height: 42px; justify-content: center; }
#btn-submit { flex: 1.4; height: 42px; justify-content: center; }

/* — butonlar — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 500; font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent; border: 1px solid transparent;
  padding: 6px 10px; border-radius: var(--radius-md);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active:not(:disabled) { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active:not(:disabled) { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); }
.btn-ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active:not(:disabled) { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; font-size: 12.5px; flex: none; }

/* — sonuç — */
#result { padding: 20px; gap: 14px; border: 1px solid var(--color-neutral-700); animation: nakarPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
#result.result--win { border-color: var(--ok-green-border); }
#result.result--win .ic-result { fill: var(--ok-green); }
#result.result--win #result-title { color: var(--ok-green); }
#result.result--lose .ic-result { fill: var(--ok-red); }
#result.result--lose #result-title { color: var(--ok-red); }
#result.result--rush { border-color: var(--color-accent-700); }
#result.result--rush .ic-result { fill: var(--color-accent-200); }
#result.result--rush #result-title { color: var(--color-accent-200); }
.result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ic-result { width: 24px; height: 24px; }
#result-title { font-family: var(--font-heading); font-size: 19px; font-weight: 500; }
#result-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border: 1px solid var(--color-accent); border-radius: 999px;
  color: var(--color-accent-100); font-size: 12px; font-weight: 500;
  box-shadow: 0 0 12px color-mix(in oklab, var(--color-accent) 30%, transparent);
  animation: nakarPop 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.answer-box {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px;
  border: 1px solid var(--color-neutral-700); border-radius: 10px; background: var(--color-neutral-900);
}
#cover {
  width: 56px; height: 56px; border-radius: 10px; border: 1px dashed var(--color-accent-700);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--color-accent); flex: none; background: var(--color-neutral-800);
}
.ic-cover { width: 22px; height: 22px; fill: var(--color-accent); }
.cover-label { font-size: 8.5px; letter-spacing: 0.08em; color: var(--color-neutral-500); text-transform: uppercase; }
#cover-img { width: 56px; height: 56px; border-radius: 10px; flex: none; object-fit: cover; }
.answer-meta { min-width: 0; }
#answer-title { font-weight: 500; font-size: 15px; }
#answer-artist { font-size: 12.5px; color: var(--color-neutral-400); }
#result-detail { font-size: 13px; color: var(--color-neutral-300); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-actions .btn { height: 40px; }
#result-countdown-box {
  display: flex; align-items: center; gap: 7px; padding: 0 14px;
  border: 1px solid var(--color-neutral-700); border-radius: 9px;
  font-size: 13px; color: var(--color-neutral-300);
}
#countdown2 { color: var(--color-neutral-100); }

/* — konfeti — */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 55; overflow: hidden; }
.confetti-piece { position: absolute; top: -24px; border-radius: 2px; opacity: 0.85; animation: nakarConfetti 3s ease-in both; }

/* — kategoriler — */
#categories { padding: 30px 0 10px; display: flex; flex-direction: column; gap: 30px; }
#summary-strip {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border: 1px solid var(--color-neutral-700); border-radius: 12px; background: var(--color-neutral-900);
  flex-wrap: wrap;
}
.ic-summary { width: 20px; height: 20px; fill: var(--color-accent); }
.summary-mid { flex: 1; min-width: 200px; }
#summary-text { font-size: 13.5px; font-weight: 500; }
.summary-track { margin-top: 7px; height: 6px; border-radius: 999px; background: var(--color-neutral-800); overflow: hidden; }
#summary-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--color-accent-700), var(--color-accent)); border-radius: 999px; transition: width 0.4s ease; }

.kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-300); font-weight: 500; }
.cat-section h2 { margin: 6px 0 4px; font-size: 24px; }
.cat-section h2:first-child { margin-top: 0; }
.section-desc { margin: 0 0 16px; font-size: 13.5px; color: var(--color-neutral-400); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-grid--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.cat-card {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 20px; border-radius: 14px; cursor: pointer; text-align: left; position: relative;
  border: 1px solid var(--color-neutral-700); background: var(--color-neutral-900);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cat-card:hover { border-color: var(--color-accent-600); background: var(--color-neutral-800); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-card--active { border-color: var(--color-accent-600); background: var(--color-neutral-800); }
.cat-icon {
  width: 54px; height: 54px; border-radius: 14px; border: 1px solid var(--color-accent-700);
  display: grid; place-items: center; color: var(--color-accent);
  box-shadow: 0 0 18px color-mix(in oklab, var(--color-accent) 22%, transparent);
}
.ic-cat { width: 27px; height: 27px; fill: var(--color-accent); }
.cat-name { font-family: var(--font-heading); font-size: 19px; font-weight: 500; color: var(--color-neutral-100); }
.cat-meta { font-size: 12.5px; color: var(--color-neutral-400); }
.cat-streak {
  display: inline-flex; align-items: center; gap: 3px;
  position: absolute; top: 12px; right: 42px;
  font-size: 11px; color: var(--color-accent-200);
  border: 1px solid var(--color-accent-800); border-radius: 999px; padding: 2px 7px;
  background: var(--color-neutral-900);
}
.cat-streak .ic { width: 11px; height: 11px; fill: var(--color-accent); }
.cat-fav {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  border: none; background: transparent; padding: 0; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; color: var(--color-neutral-500);
}
.cat-fav:hover { background: var(--color-neutral-800); color: var(--color-accent-300); }
.cat-fav .ic { width: 15px; height: 15px; }
.cat-fav--on { color: var(--color-accent); }
.cat-done { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ok-check); font-weight: 500; }
.cat-done .ic { width: 13px; height: 13px; fill: var(--ok-check); }

#eurovision-card {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 20px; border: 1px dashed var(--color-neutral-700); border-radius: 14px; opacity: 0.6;
}
.cat-icon--off { border-color: var(--color-neutral-600); box-shadow: none; }
.cat-icon--off .ic-cat { fill: var(--color-neutral-400); }
.cat-name--off { color: var(--color-neutral-300); }
.cat-meta--off { color: var(--color-neutral-500); }

#dizi-banner {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border: 1px solid var(--color-accent-700); border-radius: 12px;
  cursor: pointer; text-align: left;
  background: linear-gradient(120deg, var(--color-section), var(--color-neutral-900) 70%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
#dizi-banner:hover { border-color: var(--color-accent-500); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dizi-left { display: flex; align-items: center; gap: 16px; }
.dizi-icon {
  width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--color-accent);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 0 18px color-mix(in oklab, var(--color-accent) 30%, transparent);
}
.dizi-icon .ic-cat { width: 26px; height: 26px; }
.dizi-title { font-family: var(--font-heading); font-size: 19px; font-weight: 500; color: var(--color-neutral-100); }
.dizi-desc { font-size: 13px; color: var(--color-neutral-300); margin-top: 2px; }
.ic-arrow { width: 20px; height: 20px; fill: var(--color-accent-300); }

/* — nasıl oynanır — */
#how { padding: 36px 0 6px; }
#how h2 { margin: 6px 0 16px; font-size: 24px; }
.how-cards { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.how-card { flex: 1; min-width: 240px; padding: 20px; gap: 13px; }
.how-head { display: flex; align-items: center; gap: 11px; }
.how-num {
  font-family: var(--font-heading); font-size: 16px; font-weight: 500; color: var(--color-accent-100);
  border: 1px solid var(--color-accent); border-radius: 999px; width: 34px; height: 34px;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 0 14px color-mix(in oklab, var(--color-accent) 30%, transparent);
}
.how-title { font-family: var(--font-heading); font-size: 17px; font-weight: 500; }
.how-demo { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px dashed var(--color-neutral-700); border-radius: 10px; }
.how-play { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--color-accent); display: grid; place-items: center; color: var(--color-accent); flex: none; }
.how-play .ic { width: 12px; height: 12px; fill: var(--color-accent); }
.how-track { flex: 1; height: 6px; border-radius: 999px; background: var(--color-neutral-800); overflow: hidden; }
.how-track-fill { width: 8%; height: 100%; background: var(--color-accent); }
.how-time { font-size: 11px; color: var(--color-neutral-500); }
.how-demo--bars { align-items: flex-end; gap: 5px; }
.how-bar { height: 14px; border-radius: 4px; background: var(--color-neutral-800); }
.hb-1 { flex: 1; background: var(--color-accent); }
.hb-2 { flex: 1.4; background: var(--color-accent-600); }
.hb-3 { flex: 2; background: var(--color-accent-800); }
.hb-4 { flex: 2.6; }
.hb-5 { flex: 3.2; }
.hb-6 { flex: 4; }
.how-demo--share { gap: 6px; }
.how-sq { width: 16px; height: 16px; border-radius: 4px; }
.how-sq--skip { background: var(--color-neutral-700); }
.how-sq--wrong { background: var(--ok-red-bright); }
.how-sq--win { background: var(--ok-green-dim); }
.how-share { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--color-accent-300); }
.how-share .ic { fill: var(--color-accent-300); }
.how-text { font-size: 13px; color: var(--color-neutral-400); line-height: 1.55; }
.how-arrow { display: flex; align-items: center; color: var(--color-accent-400); }
.how-arrow .ic { width: 22px; height: 22px; fill: var(--color-accent-400); }

/* — SSS — */
#faq { padding: 36px 0 6px; }
#faq h2 { margin: 0 0 14px; font-size: 24px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 10px; align-items: start; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; font-weight: 500; font-size: 14.5px; list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.ic-caret { fill: var(--color-neutral-500); transition: transform 0.2s ease; }
.faq-item[open] .ic-caret { transform: rotate(180deg); }
.faq-body { padding: 0 16px 14px; font-size: 13.5px; color: var(--color-neutral-300); line-height: 1.6; }
.faq-duo { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.faq-mini {
  flex: 1; min-width: 170px; display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border: 1px dashed var(--color-neutral-700); border-radius: 9px; font-size: 12.5px;
}
.faq-mini .ic { width: 17px; height: 17px; }

/* — hakkında — */
#about { padding: 36px 0 44px; max-width: 720px; }
#about h2 { margin: 0 0 10px; font-size: 24px; }
#about p { font-size: 13.5px; color: var(--color-neutral-300); line-height: 1.7; }

/* — footer — */
footer {
  border-top: 1px solid var(--color-neutral-800); padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  max-width: 1060px; margin: 0 auto; width: 100%;
}
.footer-left { display: flex; align-items: center; gap: 9px; color: var(--color-neutral-400); font-size: 13px; }
.footer-links { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.footer-links a { display: flex; align-items: center; gap: 5px; }
.footer-links a .ic { fill: currentColor; }

/* — modallar — */
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column;
  padding: 22px; border-radius: var(--radius-lg); background: var(--color-surface);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dialog-title { font-family: var(--font-heading); font-size: 18px; font-weight: 500; }
.modal-close.icon-btn { width: 30px; height: 30px; color: var(--color-neutral-400); border-radius: 7px; }
.dialog-sub { font-size: 12.5px; color: var(--color-neutral-400); margin-bottom: 14px; }
.dialog-note { margin-top: 14px; font-size: 11.5px; color: var(--color-neutral-500); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 18px; }
.stat-box { text-align: center; padding: 10px 4px; border: 1px solid var(--color-neutral-700); border-radius: 9px; }
.stat-num { font-family: var(--font-heading); font-size: 21px; }
.stat-num--accent { color: var(--color-accent-200); }
.stat-label { font-size: 10.5px; color: var(--color-neutral-400); margin-top: 2px; }
.stats-caption { font-size: 12px; color: var(--color-neutral-400); margin-bottom: 8px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.stats-caption--gap { margin-top: 16px; }
#dist-bars { display: flex; flex-direction: column; gap: 5px; }
.dist-row { display: flex; align-items: center; gap: 8px; }
.dist-n { width: 12px; font-size: 12px; color: var(--color-neutral-400); }
.dist-track { flex: 1; height: 16px; border-radius: 5px; background: var(--color-neutral-800); overflow: hidden; }
.dist-fill { height: 100%; width: 0; background: var(--color-accent-700); border-radius: 5px; }
.dist-count { width: 20px; font-size: 12px; color: var(--color-neutral-300); text-align: right; }
#rush-best-row { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--color-accent-800); border-radius: 9px; font-size: 12.5px; color: var(--color-accent-100); }
#ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ach-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--color-neutral-700); border-radius: 10px; background: var(--color-neutral-900);
}
.ach-item--locked { opacity: 0.4; }
.ach-item .ic { width: 18px; height: 18px; fill: var(--color-accent); }
.ach-item--locked .ic { fill: var(--color-neutral-500); }
.ach-meta { min-width: 0; }
.ach-name { font-size: 12.5px; font-weight: 500; }
.ach-desc { font-size: 10.5px; color: var(--color-neutral-500); }

.help-rows { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--color-neutral-200); line-height: 1.55; margin-top: 10px; }
.help-row { display: flex; gap: 10px; }
.ic-help { width: 19px; height: 19px; fill: var(--color-accent-300); margin-top: 1px; }
.help-row strong { font-weight: 500; }
#modal-help .btn-block { margin-top: 18px; height: 40px; }

.settings-rows { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.settings-row { display: flex; align-items: center; gap: 12px; }
.settings-meta { flex: 1; }
.settings-label { font-size: 14px; font-weight: 500; }
.settings-desc { font-size: 12px; color: var(--color-neutral-400); margin-top: 2px; }
.toggle {
  width: 38px; height: 22px; border-radius: 999px; flex: none; position: relative;
  border: none; padding: 0; cursor: pointer; transition: background 0.2s;
  background: var(--color-neutral-700);
}
.toggle[aria-checked="true"] { background: var(--color-accent-600); }
.knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-neutral-100); transition: left 0.2s; }
.toggle[aria-checked="true"] .knob { left: 19px; }

#archive-list { display: flex; flex-direction: column; gap: 7px; max-height: 380px; overflow-y: auto; padding-right: 2px; }
.archive-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px;
  border: 1px solid var(--color-neutral-700); border-radius: 10px; background: var(--color-neutral-900);
  flex: none;
}
.archive-item .ic-cal { width: 16px; height: 16px; fill: var(--color-accent-400); }
.archive-label { flex: 1; font-size: 13.5px; }
.archive-item .btn { height: 30px; font-size: 12px; }

/* — toast — */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 70;
  padding: 10px 18px; border: 1px solid var(--color-accent-700); border-radius: 999px;
  background: var(--color-neutral-900); color: var(--color-accent-100); font-size: 13px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 7px;
  animation: nakarSlideIn 0.25s ease;
}

/* — mobil — */
@media (max-width: 480px) {
  .stats-grid { gap: 6px; }
  #ach-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .how-arrow { display: none; }
}
