/* Slotdle: gece kumarhanesi teması. Tek vurgu rengi altın; yeşil/turuncu sadece sonuç durumları için. */
:root {
  --bg: #0a0c14;
  --bg-2: #0e1120;
  --surface: #141828;
  --surface-2: #1b2034;
  --surface-3: #232a42;
  --line: rgba(232, 179, 74, 0.13);
  --line-strong: rgba(232, 179, 74, 0.32);
  --text: #f4ede1;
  --muted: rgba(244, 237, 225, 0.64);
  --faint: rgba(244, 237, 225, 0.38);
  --gold: #e8b34a;
  --gold-hi: #f6d58b;
  --gold-lo: #b9842a;
  --on-gold: #1c1406;
  --ok: #3fb877;
  --near: #e8873a;
  --miss: #3b4157;
  --on-chip: #0c0e16;
  --danger: #e5604d;
  --shadow: 0 24px 60px rgba(2, 3, 8, 0.6);
  --glow: 0 0 0 1px rgba(232, 179, 74, 0.18), 0 10px 40px rgba(232, 179, 74, 0.08);
  --r-card: 18px;
  --r-sm: 12px;
  --r-pill: 999px;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(1100px 520px at 50% -180px, rgba(232, 179, 74, 0.13), transparent 70%),
    radial-gradient(800px 600px at 110% 110%, rgba(62, 84, 160, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 500 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* makara şeritleri: sabit, etkileşimsiz arka plan dokusu */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(33.33% - 1px), rgba(232, 179, 74, 0.035) calc(33.33% - 1px) 33.33%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

.skiplink {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: var(--r-pill); font-weight: 700;
}
.skiplink:focus { top: 12px; }

/* ---------- üst çubuk ---------- */
.top {
  max-width: 1180px; margin: 0 auto; height: 72px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo {
  display: grid; grid-template-columns: repeat(3, 9px); gap: 3px; padding: 7px;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  border-radius: 11px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px rgba(232, 179, 74, 0.25);
}
.logo span { height: 20px; border-radius: 3px; background: var(--on-gold); opacity: 0.85; }
.logo span:nth-child(2) { opacity: 0.6; }
.logo span:nth-child(3) { opacity: 0.4; }
.word { font: 800 21px/1 var(--display); letter-spacing: 0.04em; }
.tools { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--r-pill); border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; font-size: 21px; color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.1s; touch-action: manipulation;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(0.95); }
.lang {
  height: 34px; padding: 0 12px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--gold);
  font: 700 12px var(--mono); letter-spacing: 0.08em; transition: background 0.2s;
}
.lang:hover { background: rgba(232, 179, 74, 0.1); }

main { max-width: 1180px; margin: 0 auto; padding: 0 20px 64px; }

/* ---------- ana sayfa ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center;
  padding: 36px 0 44px;
}
.hero-title {
  font: 800 clamp(34px, 5.2vw, 60px)/1.04 var(--display); letter-spacing: -0.02em; margin: 0;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 44ch; margin: 18px 0 0; }

.today-card {
  position: relative; min-height: 300px; overflow: hidden;
  border-radius: 24px; padding: 28px;
  background:
    linear-gradient(160deg, rgba(232, 179, 74, 0.16), transparent 42%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid; align-content: space-between; gap: 22px;
}
.today-card::after { /* tek seferlik parıltı geçişi */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(246, 213, 139, 0.12) 50%, transparent 65%);
  transform: translateX(-100%);
}
.today-card.shine::after { animation: shine 1.6s var(--ease) 0.3s 1 both; }
@keyframes shine { to { transform: translateX(100%); } }
.tc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tc-kicker { font: 700 13px var(--mono); color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }
.tc-date { color: var(--muted); font-size: 14px; }
.tc-title { font: 700 clamp(24px, 3vw, 32px)/1.15 var(--display); margin: 0; }
.tc-reels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.tc-reels span {
  aspect-ratio: 1; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center; font: 700 14px var(--mono); color: var(--faint);
}
.tc-reels .ok { background: var(--ok); border-color: transparent; }
.tc-reels .near { background: var(--near); border-color: transparent; }
.tc-reels .miss { background: var(--miss); border-color: transparent; }
.tc-reels .skip { background: transparent; border-style: dashed; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tc-count { display: grid; font-size: 13px; color: var(--muted); }
.tc-count strong { font: 700 22px var(--mono); color: var(--text); }

.section-title { font: 700 20px var(--display); margin: 8px 0 16px; letter-spacing: -0.01em; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mode-card {
  position: relative; text-align: left; cursor: pointer; text-decoration: none;
  border-radius: var(--r-card); padding: 22px; min-height: 196px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  display: grid; align-content: space-between; gap: 18px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.mode-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--glow); }
.mode-card:active { transform: translateY(-1px) scale(0.99); }
.mode-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 25px;
  color: var(--gold); background: rgba(232, 179, 74, 0.1); border: 1px solid var(--line-strong);
}
.mode-card h3 { margin: 0; font: 700 19px var(--display); }
.mode-card p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.mode-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge {
  font: 700 12px var(--mono); padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--gold); white-space: nowrap;
}
.badge.won { background: var(--ok); color: var(--on-chip); border-color: transparent; }
.badge.lost { background: var(--miss); color: var(--text); border-color: transparent; }
.mode-go { color: var(--gold); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }

.home-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.link-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left;
  padding: 18px 20px; border-radius: var(--r-card); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s;
}
.link-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.link-card > i:first-child { font-size: 24px; color: var(--gold); }
.link-card > i:last-child { color: var(--faint); }
.link-card strong { display: block; font-weight: 700; }
.link-card small { color: var(--muted); font-size: 14px; }
.home-fine { margin-top: 28px; padding-top: 20px; max-width: 80ch; border-top: 1px solid var(--line); }

/* giriş animasyonu: sırayla yukarı kayarak */
.rise { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- butonlar ---------- */
.btn {
  height: 48px; padding: 0 24px; border-radius: var(--r-pill); cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; transition: background 0.2s, transform 0.1s, border-color 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: var(--on-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 24px rgba(232, 179, 74, 0.22);
}
.btn.primary:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px rgba(232, 179, 74, 0.35); }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn.wide { width: 100%; }

/* ---------- oyun ---------- */
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 18px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted);
  font-weight: 600; padding: 8px 12px 8px 6px; border-radius: var(--r-pill); transition: color 0.2s, background 0.2s;
}
.back:hover { color: var(--text); background: var(--surface-2); }
.game-title { display: flex; align-items: center; gap: 10px; }
.mode-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(232, 179, 74, 0.12); border: 1px solid var(--line-strong); color: var(--gold);
  font: 700 13px var(--mono); letter-spacing: 0.04em;
}
.daytag { color: var(--muted); font-size: 13px; }

.game-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.stage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.clue-title { font: 700 clamp(22px, 3vw, 30px)/1.15 var(--display); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }

.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font: 700 13px var(--mono); cursor: pointer; color: var(--text); display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.steps button:active:not(:disabled) { transform: scale(0.94); }
.steps button[aria-current="step"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.steps button:disabled { opacity: 0.4; cursor: not-allowed; }
.steps button:disabled i { font-size: 14px; }

.clue {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center;
  border-radius: 22px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(232, 179, 74, 0.10), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* makara çerçevesi hissi: üst ve alt koyu geçiş */
.clue::before, .clue::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18%; pointer-events: none; z-index: 1;
}
.clue::before { top: 0; background: linear-gradient(to bottom, rgba(10, 12, 20, 0.55), transparent); }
.clue::after { bottom: 0; background: linear-gradient(to top, rgba(10, 12, 20, 0.55), transparent); }
.clue .row { display: flex; gap: clamp(12px, 3vw, 32px); align-items: center; justify-content: center; padding: 28px; width: 100%; height: 100%; flex-wrap: wrap; }
.clue .sym { flex: 0 1 auto; width: min(40%, 240px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.5)); }
.clue .row.n3 .sym { width: min(28%, 200px); }
/* 4+ sembol: iki satırlık ızgara, hücreye sığdır */
.clue .row.n4, .clue .row.n5, .clue .row.n6 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px 20px; padding: 26px 48px; justify-items: center; align-items: center;
  position: absolute; inset: 0;
}
.clue.has-provider .row { padding-bottom: 64px; }
.clue .row.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 26px 18%; }
.clue .row.n4 .sym, .clue .row.n5 .sym, .clue .row.n6 .sym { width: 100%; height: 100%; aspect-ratio: auto; min-height: 0; }
.clue .sym.one { width: min(54%, 300px); image-rendering: pixelated; }
.clue .shot { width: 100%; height: 100%; object-fit: cover; }
.clue .provider {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2;
  background: rgba(10, 12, 20, 0.82); border: 1px solid var(--line-strong); color: var(--gold-hi);
  border-radius: var(--r-pill); padding: 6px 14px; font-size: 14px; font-weight: 700; white-space: nowrap;
  backdrop-filter: blur(6px);
}
.clue.enter .row > *, .clue.enter > .shot, .clue.enter > .audio { animation: drop 0.55s var(--ease) both; }
.clue.enter .row > *:nth-child(2) { animation-delay: 60ms; }
.clue.enter .row > *:nth-child(3) { animation-delay: 120ms; }
.clue.enter .row > *:nth-child(4) { animation-delay: 180ms; }
.clue.enter .row > *:nth-child(5) { animation-delay: 240ms; }
.clue.enter .row > *:nth-child(6) { animation-delay: 300ms; }
@keyframes drop { from { opacity: 0; transform: translateY(-26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(232, 179, 74, 0.06) 50%, transparent 70%) var(--surface);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.audio { display: grid; justify-items: center; gap: 18px; padding: 24px; position: relative; z-index: 2; }
.play-btn {
  width: 104px; height: 104px; border-radius: var(--r-pill); border: 0; cursor: pointer; font-size: 42px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: var(--on-gold);
  display: grid; place-items: center; transition: transform 0.12s;
  box-shadow: 0 0 0 10px rgba(232, 179, 74, 0.08), 0 14px 40px rgba(232, 179, 74, 0.3);
}
.play-btn:active { transform: scale(0.96); }
.wave { display: flex; gap: 4px; align-items: center; height: 44px; }
.wave span { width: 5px; border-radius: 3px; background: var(--faint); height: var(--h); transition: background 0.2s; }
.wave.on span { background: var(--gold); animation: bounce 0.9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.11s); }
@keyframes bounce { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }
.audio-time { color: var(--muted); font-size: 14px; }

.hint { color: var(--muted); margin: 12px 2px 0; min-height: 1.5em; font-size: 15px; }

.play { display: grid; gap: 18px; }
.label { display: block; font-weight: 700; margin-bottom: 8px; }
.combo { position: relative; }
.combo > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.combo input {
  width: 100%; height: 54px; padding: 0 16px 0 46px; font-size: 17px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.combo input::placeholder { color: var(--faint); }
.combo input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 179, 74, 0.22); }
.combo input:disabled { opacity: 0.5; }
.suggest {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow: auto; overscroll-behavior: contain;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow);
}
.suggest li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--surface-3); }
.suggest mark { background: none; color: var(--gold); font-weight: 800; }
.suggest .prov { color: var(--muted); font-size: 13px; white-space: nowrap; }
.suggest .none { color: var(--muted); cursor: default; }

.actions { display: flex; gap: 10px; margin-top: 12px; }
.actions .btn.primary { flex: 1; }
.form-msg { min-height: 1.5em; margin: 8px 2px 0; color: var(--muted); font-size: 14px; }
.done-actions { display: grid; gap: 10px; }

.guesses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guesses li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 54px; padding: 8px 14px 8px 10px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.guesses li.slot { border-style: dashed; background: transparent; color: var(--faint); }
.guesses li.new { animation: rise 0.45s var(--ease) both; }
.guesses li.ok { border-color: rgba(63, 184, 119, 0.5); }
.guesses .n { font: 700 13px var(--mono); color: var(--faint); text-align: center; }
.guesses .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 12.5px; padding: 4px 10px; border-radius: var(--r-pill); font-weight: 800; white-space: nowrap; }
.tag.ok, .chip.ok { background: var(--ok); color: var(--on-chip); }
.tag.near, .chip.near { background: var(--near); color: var(--on-chip); }
.tag.miss, .chip.miss { background: var(--miss); color: var(--text); }
.tag.skip { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }

.empty { max-width: 460px; margin: 14vh auto; text-align: center; display: grid; justify-items: center; gap: 8px; }
.empty i { font-size: 46px; color: var(--gold); }
.empty h2 { font: 700 24px var(--display); margin: 6px 0 0; }
.empty p { color: var(--muted); margin: 0 0 14px; }

/* ---------- pencereler ---------- */
dialog.sheet {
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); color: var(--text);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  overflow-x: hidden; overscroll-behavior: contain; box-shadow: var(--shadow);
}
dialog.sheet::backdrop { background: rgba(4, 5, 10, 0.7); backdrop-filter: blur(5px); }
dialog[open] { animation: rise 0.4s var(--ease); }
.sheet-body { position: relative; padding: 28px 24px 24px; display: grid; gap: 14px; }
.sheet h2 { margin: 0; font: 700 24px var(--display); padding-right: 44px; letter-spacing: -0.01em; }
.close { position: absolute; right: 12px; top: 12px; }
.sub { margin: 8px 0 0; font-size: 15px; font-weight: 800; }
.lead { margin: 0; color: var(--muted); }
.fine { margin: 0; color: var(--faint); font-size: 13px; }

.result-line { margin: 0; color: var(--gold); font: 700 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.end-title { font: 800 clamp(26px, 5vw, 34px)/1.1 var(--display) !important; }
.end-provider { margin: -6px 0 0; color: var(--muted); }
.end-shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16/9; background: var(--bg-2); }
.end-shot img { width: 100%; height: 100%; object-fit: cover; }
.share-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.share-row .btn.primary { flex: 1; }
.next { display: grid; text-align: right; font-size: 13px; color: var(--muted); }
.next strong { font: 700 21px var(--mono); color: var(--text); }

.dist { display: grid; gap: 6px; }
.dist .bar { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; font: 700 13px var(--mono); }
.dist .fill {
  height: 26px; min-width: 30px; width: var(--w); border-radius: 7px; background: var(--miss); color: var(--text);
  display: flex; align-items: center; justify-content: flex-end; padding: 0 8px;
  transition: width 0.7s var(--ease);
}
.dist .fill.me { background: var(--gold); color: var(--on-gold); }
.dist .note { color: var(--muted); font-size: 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 8px; text-align: center; }
.kpi strong { display: block; font: 700 24px var(--mono); color: var(--gold-hi); }
.kpi span { font-size: 12px; color: var(--muted); }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; }
.seg button {
  flex: 1; border: 0; background: transparent; cursor: pointer; padding: 8px 12px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap;
}
.seg button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }

.archive { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 58dvh; overflow: auto; }
.archive button {
  width: 100%; padding: 10px 6px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 2px; justify-items: center;
  transition: border-color 0.2s;
}
.archive button:hover { border-color: var(--gold); }
.archive .num { font: 700 15px var(--mono); }
.archive .d { font-size: 12px; color: var(--muted); }
.archive .st { font-size: 12px; font-weight: 800; color: var(--gold); }
.archive .st.won { color: var(--ok); }
.archive .st.lost { color: var(--muted); }

.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.how i { font-size: 24px; color: var(--gold); }
.chip { width: 24px; height: 24px; border-radius: 7px; display: inline-block; margin-top: 1px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 30;
  background: var(--gold); color: var(--on-gold); padding: 10px 18px; border-radius: var(--r-pill);
  font-weight: 800; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.preview-bar {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center;
  padding: 8px 16px; background: var(--near); color: var(--on-chip); font-size: 14px; font-weight: 700;
}
.preview-bar a { color: inherit; }

/* ---------- mobil ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; }
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode-card { min-height: 0; grid-template-columns: auto 1fr; align-items: center; }
  .mode-card .mode-meta { grid-column: 1 / -1; }
  .home-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .top { padding: 0 16px; height: 64px; }
  main { padding: 0 16px 48px; }
  .word { font-size: 18px; }
  .today-card { padding: 22px; border-radius: 20px; }
  .clue { aspect-ratio: 4 / 3.4; border-radius: 18px; }
  .share-row { flex-direction: column; align-items: stretch; }
  .next { text-align: center; }
  .steps button { width: 32px; height: 32px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- üyelik, profil, lider tablosu, gruplar ---------- */
.user-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; margin-left: 4px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); text-decoration: none; font-weight: 700; font-size: 14px;
  transition: background 0.2s, border-color 0.2s; max-width: 180px;
}
.user-btn i { font-size: 22px; color: var(--gold); }
.user-btn span:not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn:hover { background: var(--surface-2); }
.user-btn.in { background: rgba(232, 179, 74, 0.1); }
.avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: var(--r-pill);
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); color: var(--on-gold);
  font: 800 13px var(--display); width: 28px; height: 28px; text-transform: uppercase;
}
.avatar.lg { width: 76px; height: 76px; font-size: 32px; box-shadow: 0 10px 30px rgba(232, 179, 74, 0.25); }

.guest-banner {
  margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  padding: 18px 20px; border-radius: var(--r-card); border: 1px dashed var(--line-strong);
  background: linear-gradient(90deg, rgba(232, 179, 74, 0.1), transparent 70%);
}
.guest-banner p { margin: 0; color: var(--muted); max-width: 60ch; }
.guest-banner strong { color: var(--text); }
a.link-card { text-decoration: none; }

.page { padding: 8px 0 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.page-head h1 { font: 800 clamp(28px, 4vw, 42px)/1.08 var(--display); margin: 0; letter-spacing: -0.02em; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.panel {
  border-radius: var(--r-card); border: 1px solid var(--line); padding: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.panel + .panel { margin-top: 16px; }
.panel h2 { font: 700 19px var(--display); margin: 0 0 14px; }

/* giriş/kayıt */
.auth { max-width: 460px; margin: 0 auto; }
.auth .seg { margin-bottom: 18px; }
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r-sm); font-size: 16px;
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 179, 74, 0.22); }
.field small { display: block; color: var(--faint); margin-top: 6px; font-size: 13px; }
.form-error { color: var(--danger); font-weight: 700; min-height: 1.4em; margin: 0; font-size: 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.google { background: #f4ede1; color: #1a1a1a; }
.btn.google:hover { background: #fff; }
.link { color: var(--gold); background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* lider tablosu */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters .seg { flex: 0 1 auto; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 10px 16px 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
}
.board li.me { border-color: var(--gold); box-shadow: var(--glow); }
.board .rk { font: 800 16px var(--mono); text-align: center; color: var(--faint); }
.board li.r1 .rk { color: var(--gold-hi); }
.board li.r2 .rk { color: #d8dbe6; }
.board li.r3 .rk { color: #d39a6a; }
.board .who { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-weight: 700; }
.board .who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .meta { color: var(--muted); font-size: 13px; white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.board .pts { font: 800 18px var(--mono); color: var(--gold); min-width: 52px; text-align: right; }
.mini-row { display: flex; gap: 4px; }
.mini { width: 10px; height: 10px; border-radius: 3px; background: var(--miss); }
.mini.won { background: var(--ok); }
.empty-note { color: var(--muted); padding: 26px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-card); }

/* profil */
.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-head h1 { font: 800 clamp(26px, 4vw, 38px)/1.1 var(--display); margin: 0; }
.profile-head p { margin: 4px 0 0; color: var(--muted); }
.profile-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 22px; align-items: start; }
.mode-stats { display: grid; gap: 12px; }
.mode-stat { display: grid; grid-template-columns: 110px repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.mode-stat > span:first-child { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.mode-stat > span:first-child i { color: var(--gold); }
.mode-stat .kpi { padding: 8px 6px; }
.mode-stat .kpi strong { font-size: 18px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.badge-card {
  display: grid; justify-items: center; text-align: center; gap: 6px; padding: 14px 8px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line);
}
.badge-card i { font-size: 28px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--faint); }
.badge-card.on i { background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: var(--on-gold);
  box-shadow: 0 8px 20px rgba(232, 179, 74, 0.25); }
.badge-card strong { font-size: 13.5px; }
.badge-card small { font-size: 12px; color: var(--faint); line-height: 1.3; }
.badge-card.on small { color: var(--muted); }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.grid6 { display: flex; gap: 3px; }
.grid6 span { width: 12px; height: 12px; border-radius: 3px; background: var(--miss); }
.grid6 .ok { background: var(--ok); }
.grid6 .near { background: var(--near); }
.grid6 .skip { background: transparent; border: 1px solid var(--line-strong); }

/* gruplar */
.group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.group-card {
  display: grid; gap: 8px; padding: 18px; border-radius: var(--r-card); text-decoration: none;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.group-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.group-card h3 { margin: 0; font: 700 17px var(--display); }
.group-card p { margin: 0; color: var(--muted); font-size: 14px; }
.invite { display: flex; gap: 8px; align-items: center; }
.invite input { flex: 1; height: 46px; padding: 0 12px; border-radius: var(--r-sm); background: var(--bg-2);
  border: 1px solid var(--line-strong); color: var(--text); font: 500 14px var(--mono); min-width: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-tag { font: 700 12px var(--mono); padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--gold); }
.chip-tag.live { background: var(--ok); color: var(--on-chip); border-color: transparent; }
.chip-tag.done { background: var(--miss); color: var(--text); border-color: transparent; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.end-cta { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-sm); border: 1px dashed var(--line-strong);
  background: rgba(232, 179, 74, 0.06); }
.end-cta p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .board li { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .board .meta { display: none; }
  .mode-stat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mode-stat > span:first-child { grid-column: 1 / -1; }
  .profile-actions { margin-left: 0; width: 100%; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- mobil iyileştirmeler ---------- */
@media (max-width: 520px) {
  .user-btn span:not(.avatar) { display: none; }
  .user-btn { padding: 0 8px; }
  .tools { gap: 2px; }
  .icon-btn { width: 38px; height: 38px; }
  .lang { padding: 0 9px; }
  /* pencereler alttan açılan sayfa gibi */
  dialog.sheet {
    width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0;
    max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom);
  }
  dialog[open].sheet { animation: sheet-up 0.35s var(--ease); }
  .game-bar { padding-bottom: 12px; }
  .clue-title { font-size: 22px; }
  .stage-head { margin-bottom: 10px; }
  .guesses li { min-height: 48px; }
  .hero-title { font-size: 36px; }
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
main { padding-bottom: max(48px, env(safe-area-inset-bottom)); }
.top { padding-top: env(safe-area-inset-top); height: calc(72px + env(safe-area-inset-top)); }
@media (max-width: 520px) { .top { height: calc(64px + env(safe-area-inset-top)); } }
