:root {
  --bg: #fff7f5;
  --card: #ffffff;
  --text: #2b1d22;
  --muted: #8a7479;
  --line: #f1dfe1;
  --accent: #ff5d73;
  --accent-2: #ff8a5b;
  --accent-soft: #ffe8eb;
  --ok: #1f9d63;
  --danger: #d6455d;
  --shadow: 0 6px 24px rgba(180, 60, 80, 0.08);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17111a;
    --card: #221a25;
    --text: #f6eef1;
    --muted: #a8949c;
    --line: #362a39;
    --accent-soft: #3a2230;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
#app {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 32px);
}

h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 28px 4px 10px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Giriş ---------- */
.auth { min-height: calc(100dvh - 80px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.brand { text-align: center; }
.brand .logo { width: 76px; height: 76px; border-radius: 22px; box-shadow: var(--shadow); }
.brand h1 { font-size: 30px; margin-top: 14px; letter-spacing: -0.02em; }
.brand p { margin-top: 6px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--accent-soft); border-radius: 14px; padding: 4px; }
.tabs button { border: 0; background: transparent; padding: 10px; border-radius: 11px; font: inherit; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input {
  font: inherit; font-size: 17px; /* 16px altı iOS'ta yakınlaştırma yapar */
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); width: 100%;
}
input:focus { outline: none; border-color: var(--accent); }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }

.btn {
  border: 0; font: inherit; font-weight: 700; cursor: pointer;
  padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
  transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn.plain { background: transparent; color: var(--muted); padding: 8px; font-weight: 600; }
.error { color: var(--danger); font-size: 14px; min-height: 1em; }

/* ---------- Ana sayfa ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top h1 { font-size: 26px; letter-spacing: -0.02em; }
.top .handle { font-size: 14px; color: var(--muted); }

.install { margin-top: 16px; display: flex; gap: 12px; align-items: center; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.install b { color: var(--accent); }

.games { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game { position: relative; border-radius: var(--radius); padding: 16px; min-height: 130px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; box-shadow: var(--shadow); }
.game .emoji { position: absolute; top: 12px; right: 12px; font-size: 34px; }
.game h3 { font-size: 18px; }
.game p { font-size: 13px; opacity: .9; }
.game .soon { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.25); padding: 3px 8px; border-radius: 99px; }
.g1 { background: linear-gradient(135deg, #ff8a5b, #ff4d80); }
.g2 { background: linear-gradient(135deg, #7b6cff, #b55cff); }

.list { display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who span { font-size: 13px; color: var(--muted); }
.person .actions { display: flex; gap: 6px; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; margin-left: 6px; vertical-align: 2px; }
.empty { text-align: center; padding: 18px; color: var(--muted); font-size: 14px; border: 1.5px dashed var(--line); border-radius: 16px; }

.add { display: flex; gap: 8px; }
.add input { flex: 1; }
.myname { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }

#toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: .25s; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
body.in-game #toast { bottom: calc(env(safe-area-inset-bottom) + 80px); }

/* ---------- Sayfa iskeleti ve alt menü ---------- */
.page { padding-bottom: 96px; }
body.in-game #app { padding: 0; max-width: none; }
a { color: inherit; text-decoration: none; }
.center { text-align: center; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar a .ic { font-size: 22px; filter: grayscale(1); opacity: .7; transition: .2s; }
.tabbar a.on { color: var(--accent); }
.tabbar a.on .ic { filter: none; opacity: 1; transform: translateY(-1px); }
.tabbar .dot { position: absolute; top: 2px; left: calc(50% + 8px); background: var(--accent); color: #fff; font-size: 10px; min-width: 17px; height: 17px; line-height: 17px; border-radius: 9px; text-align: center; padding: 0 4px; }

.avatar.big { width: 48px; height: 48px; font-size: 20px; }
.top .back, .g-top .back { font-size: 34px; line-height: 1; width: 40px; color: var(--accent); }
.top h1 { flex: 1; }

/* Oyun kartları */
.game { transition: transform .12s; }
a.game:active { transform: scale(.97); }
.game.locked { filter: saturate(.55); opacity: .75; }
.g3 { background: linear-gradient(135deg, #22b8a6, #2f80ed); }
.g4 { background: linear-gradient(135deg, #ff6fa5, #c850c0); }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 4px; }
.mini-stats b { display: block; font-size: 20px; }
.mini-stats span { font-size: 12px; color: var(--muted); }

/* Davetler */
.invite { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); border: 1.5px solid var(--accent-soft); }
.invite .who { flex: 1; min-width: 0; }
.invite .who b { display: block; }
.invite .who span { font-size: 13px; color: var(--muted); }
.invite .actions { display: flex; gap: 6px; }
.pulse { border-color: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,93,115,.35); } 50% { box-shadow: 0 0 0 8px rgba(255,93,115,0); } }

.banner {
  position: fixed; z-index: 40; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 10px);
  max-width: 500px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--card); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); border: 1.5px solid var(--accent);
  transform: translateY(-160%); transition: transform .3s;
}
.banner.show { transform: none; }
.banner .who { flex: 1; min-width: 0; font-size: 14px; }
.banner .who b { display: block; }
.banner .who span { color: var(--muted); font-size: 13px; }

/* Yeni oyun */
.rules { display: grid; gap: 8px; margin-top: 16px; font-size: 15px; }
.pick { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; }
.pick-item { position: relative; flex: none; display: grid; justify-items: center; gap: 6px; padding: 12px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); border: 2px solid transparent; font-weight: 600; cursor: pointer; }
.pick-item input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.pick-item:has(input:checked) { border-color: var(--accent); }
.seg { display: flex; background: var(--accent-soft); border-radius: 14px; padding: 4px; }
.seg label { position: relative; flex: 1; display: block; font-weight: 600; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 11px; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.btn.wide { width: 100%; margin-top: 24px; font-size: 17px; padding: 16px; }
a.empty { display: block; }

/* ---------- Oyun ekranı ---------- */
.game-screen {
  position: relative; display: flex; flex-direction: column;
  height: 100dvh; max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 8px) 16px calc(env(safe-area-inset-bottom) + 10px);
}
.g-top { display: flex; align-items: center; gap: 8px; }
.score { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.score .side { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; transition: .2s; min-width: 0; }
.score .side:last-child { flex-direction: row-reverse; text-align: right; }
.score .side.active { background: var(--accent-soft); }
.score .side b { font-size: 14px; display: block; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score .avatar { position: relative; width: 36px; height: 36px; font-size: 15px; }
.score .avatar i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #bbb; border: 2px solid var(--bg); }
.score .avatar i.on { background: var(--ok); }
.pips { display: flex; gap: 4px; margin-top: 3px; }
.side:last-child .pips { justify-content: flex-end; }
.pips span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pips span.won { background: var(--accent); }
.vs { font-weight: 800; font-size: 18px; color: var(--muted); flex: none; }

.g-cat { text-align: center; margin: 14px 0 10px; }
.g-round { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.g-cat h2 { font-size: 24px; text-transform: none; letter-spacing: -0.01em; color: var(--text); margin: 4px 0 12px; }
.timer { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.timer div { height: 100%; width: 0; background: var(--muted); border-radius: 8px; }
.timer div.mine { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.timer div.low { background: var(--danger); }
.g-status { margin-top: 8px; font-size: 15px; color: var(--muted); min-height: 22px; }
.g-status .you { color: var(--accent); font-size: 17px; }

.g-words { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px 2px; -webkit-overflow-scrolling: touch; }
.bubble { max-width: 75%; padding: 9px 13px; border-radius: 18px; display: flex; flex-direction: column; animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.bubble .w { font-weight: 700; font-size: 17px; word-break: break-word; }
.bubble .meta { font-size: 11px; opacity: .75; }
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: var(--card); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.bubble.objected { opacity: .55; }
.bubble.objected .w { text-decoration: line-through; }
.bubble .obj { margin-top: 6px; border: 0; background: var(--accent-soft); color: var(--danger); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 10px; }

.g-input { display: flex; gap: 8px; padding-top: 8px; }
.g-input input { flex: 1; min-width: 0; }
.g-input .btn { opacity: .5; }
.g-input.myturn input { border-color: var(--accent); }
.g-input.myturn .btn { opacity: 1; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.overlay { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.overlay[hidden] { display: none; }
.ov-card { width: 100%; max-width: 380px; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 26px 22px; text-align: center; display: grid; gap: 10px; animation: pop .25s ease-out; }
.ov-card h2 { font-size: 24px; color: var(--text); text-transform: none; letter-spacing: -0.01em; margin: 0; }
.ov-card .ov-cat { font-size: 26px; }
.ov-emoji { font-size: 56px; line-height: 1; }
.ov-emoji.wait { animation: spin 2s linear infinite; display: inline-block; justify-self: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.count { font-size: 72px; font-weight: 900; color: var(--accent); line-height: 1; }
.big-score { font-size: 40px; font-weight: 900; }
.ov-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.ov-actions .btn { text-align: center; }
.ov-actions:has(> :only-child) { grid-template-columns: 1fr; }
.duel { width: 100%; border-collapse: collapse; font-size: 15px; }
.duel td, .duel th { padding: 6px 4px; border-top: 1px solid var(--line); }
.duel tr:first-child td { border-top: 0; }
.duel th { font-weight: 500; color: var(--muted); font-size: 13px; }
.duel td { width: 38%; font-weight: 700; }
.duel td.best { color: var(--ok); }

/* ---------- İstatistik ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles.four { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.tile { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 12px; display: grid; gap: 2px; align-content: start; }
.tile b { font-size: 20px; letter-spacing: -0.02em; }
.tiles.four .tile b { font-size: 28px; }
.tile span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile small { font-size: 11px; color: var(--muted); }
.h2h { display: grid; gap: 10px; }
.h2h-top { display: flex; align-items: center; gap: 12px; }
.h2h-top .who { flex: 1; min-width: 0; }
.h2h-top .who b { display: block; }
.h2h-top .who span { font-size: 13px; color: var(--muted); }
.h2h-score { font-size: 22px; font-weight: 800; }
.split { height: 10px; border-radius: 10px; background: #7b6cff; overflow: hidden; }
.split span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.h2h-foot { display: flex; justify-content: space-between; }
.fact { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; padding: 14px 16px; }
.fact span { color: var(--muted); font-size: 14px; flex: none; }
.fact b { flex: 1; text-align: right; overflow-wrap: anywhere; }
.fact small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); box-shadow: var(--shadow); border-radius: 99px; padding: 6px 12px; font-weight: 600; font-size: 14px; }
.chip i { font-style: normal; color: var(--accent); margin-left: 6px; font-size: 12px; }
.rank { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.rank span:nth-child(2) { flex: 1; }
.medal { font-size: 22px; }
.recent { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.recent .who { flex: 1; min-width: 0; }
.recent .who b { display: block; }
.recent .who span { font-size: 13px; color: var(--muted); }
.res { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.res.w { background: var(--ok); }
.res.l { background: var(--muted); }
.rs { font-size: 18px; }

/* ---------- Yapay zeka ---------- */
.pick-item.bot .avatar { background: linear-gradient(135deg, #7b6cff, #22b8a6); font-size: 22px; }
.theme-input { margin-top: 10px; }
.g-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -4px 0 10px; }
.g-tags:empty { display: none; }
.g-tags span { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--muted); }
.bubble .why { font-size: 12px; margin-top: 3px; font-style: italic; }
.commentary { text-align: left; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.commentary b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.commentary.loading b { margin: 0; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .4; } }

/* ---------- Ok mu Nok mu ---------- */
.g5 { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.okv { display: inline-block; font-weight: 900; font-size: 13px; padding: 2px 8px; border-radius: 8px; color: #fff; letter-spacing: .03em; }
.okv.ok { background: var(--ok); }
.okv.nok { background: var(--danger); }
.chips.pickable .chip { border: 2px solid transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chips.pickable .chip.on { border-color: var(--accent); color: var(--text); }

.ok-progress { height: 4px; background: var(--line); border-radius: 4px; margin: 10px 0 0; overflow: hidden; }
.ok-progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .4s; }
.ok-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 0 4px; }
.oknok .score .side small { display: block; font-size: 11px; }
.ok-card { position: relative; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 30px 20px 26px; text-align: center; animation: pop .25s ease-out; }
.ok-cat { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.ok-q { font-size: 23px; font-weight: 800; line-height: 1.3; margin: 14px 0 6px; letter-spacing: -0.01em; }
.ok-num { font-size: 12px; color: var(--muted); }
.ok-step, .ok-wait { text-align: center; font-size: 17px; line-height: 1.6; }
.ok-wait { margin-top: 10px; font-weight: 700; color: var(--ok); }
.ok-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.ok-btn { border: 0; border-radius: 22px; padding: 22px 10px; font: inherit; font-size: 30px; font-weight: 900; color: #fff; display: grid; gap: 2px; cursor: pointer; transition: transform .1s; }
.ok-btn small { font-size: 13px; font-weight: 600; opacity: .9; }
.ok-btn:active { transform: scale(.95); }
.ok-btn.ok { background: linear-gradient(135deg, #2fd38a, #1f9d63); }
.ok-btn.nok { background: linear-gradient(135deg, #ff6b81, #d6455d); }
.ok-verdict { text-align: center; font-size: 20px; font-weight: 800; padding: 10px; border-radius: 16px; }
.ok-verdict.same { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.ok-verdict.diff { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.ok-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ok-col { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.ok-col .okv { font-size: 22px; padding: 6px 16px; border-radius: 12px; }
.ok-col small { font-size: 12px; font-weight: 600; }
.ok-col small.good { color: var(--ok); }
.ok-col small.bad { color: var(--muted); }
.ok-col .big { font-size: 26px; font-weight: 900; }
.ok-final { max-height: calc(100dvh - 40px); overflow-y: auto; }
.ring { --p: 50; width: 120px; height: 120px; border-radius: 50%; justify-self: center; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--card) 78%, transparent 80%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.ring b { font-size: 30px; line-height: 1; }
.ring span { font-size: 12px; color: var(--muted); }
.splits { text-align: left; font-size: 14px; }
.splits summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.splits div { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.splits div span:first-child { flex: 1; }
.catbar { display: grid; grid-template-columns: 1fr 80px 44px; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.split-row { display: grid; gap: 4px; padding: 12px 14px; font-size: 14px; }
.split-row small { color: var(--muted); }
.res.d { background: #f7b733; }
.catbar .split { background: var(--line); }

/* ---------- Ortak oyun ekranı ---------- */
.g6 { background: linear-gradient(135deg, #ff7eb3, #ff758c); }
.g7 { background: linear-gradient(135deg, #1e88e5, #0d47a1); }
.g8 { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.g9 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.game .soon { font-size: 10px; }
.gs-timer { margin-top: 10px; }
.gs-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 14px 0 6px; -webkit-overflow-scrolling: touch; }
.center-msg { margin: auto; text-align: center; display: grid; gap: 8px; justify-items: center; }
.center-msg h2 { font-size: 22px; color: var(--text); text-transform: none; letter-spacing: 0; margin: 0; }
.tp-title { text-align: center; font-weight: 800; font-size: 17px; }
.tp-title.you { color: var(--accent); }
.tp-last { text-align: center; font-weight: 700; min-height: 22px; }
.am-row { display: flex; gap: 10px; justify-content: space-between; }
.am-row .btn { flex: 1; }
.seg.wrap { flex-wrap: wrap; }
.seg.wrap label { flex: 1 1 45%; }
.h2-sub { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.res.c { background: var(--accent); }
.gs-final { max-height: calc(100dvh - 40px); overflow-y: auto; }
.is-rounds { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.is-rounds span { background: var(--accent-soft); border-radius: 99px; padding: 4px 10px; font-size: 13px; }

/* Ask Me More */
.am-form { display: grid; gap: 10px; }
.am-form textarea { font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); resize: none; }
.am-form textarea:focus { outline: none; border-color: var(--accent); }
.am-answer { position: relative; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; }
.am-answer b { font-size: 13px; color: var(--accent); }
.am-answer p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.am-answer.mine { border-left: 4px solid var(--accent); }
.am-answer.theirs { border-left: 4px solid #7b6cff; padding-right: 52px; }
.heart { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 28px; cursor: pointer; transition: transform .15s; }
.heart.on { transform: translateY(-50%) scale(1.15); }
.am-hist { display: grid !important; gap: 4px; }
.am-hist i { color: var(--muted); font-style: normal; }

/* İsim Şehir */
.is-head { display: flex; align-items: center; gap: 14px; }
.is-letter { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 36px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: var(--shadow); flex: none; }
.is-form { display: grid; gap: 10px; }
.is-form label { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; font-size: 14px; }
.is-form input { padding: 11px 12px; }
.is-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.is-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 0 6px; }
.is-table td { background: var(--card); padding: 8px 10px; border-radius: 10px; vertical-align: top; }
.is-table td span { display: block; font-weight: 700; overflow-wrap: anywhere; }
.is-table td small { font-size: 11px; }
.is-table td.ok small { color: var(--ok); font-weight: 700; }
.is-table td.bad span { text-decoration: line-through; opacity: .6; }
.is-table td.bad small { color: var(--danger); }
.is-table td.empty { opacity: .5; }

/* Torpido */
.tp-board { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; width: 100%; max-width: 380px; margin: 0 auto; }
.tp-board.small { max-width: 220px; gap: 2px; }
.tp-board .cell { aspect-ratio: 1; border: 0; border-radius: 5px; background: color-mix(in srgb, #1e88e5 22%, var(--card)); display: grid; place-items: center; font-size: 13px; padding: 0; color: var(--text); }
.tp-board.small .cell { border-radius: 3px; font-size: 9px; }
.tp-board button.cell { cursor: pointer; background: color-mix(in srgb, #1e88e5 35%, var(--card)); }
.tp-board button.cell:active { transform: scale(.9); }
.tp-board .cell.ship { background: #607d8b; }
.tp-board .cell.hit { background: #ff7043; }
.tp-board .cell.sunk { background: #b71c1c; }
.tp-board .cell.miss { color: var(--muted); }

/* Bilgi Yarışması / Gerçek mi Yalan mı */
.qz-card .ok-q { font-size: 21px; }
.qz-options { display: grid; gap: 10px; }
.qz-options.tf { grid-template-columns: 1fr 1fr; }
.qz-opt { position: relative; border: 2px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 16px; padding: 15px 14px; border-radius: 16px; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.qz-options.tf .qz-opt { text-align: center; font-size: 22px; padding: 26px 10px; }
.qz-options.tf .qz-opt.true, .qz-options.tf .qz-opt.false { color: #fff; border: 0; }
.qz-opt.true { background: linear-gradient(135deg, #2fd38a, #1f9d63); }
.qz-opt.false { background: linear-gradient(135deg, #ff6b81, #d6455d); }
.qz-opt.picked { outline: 3px solid var(--accent); outline-offset: 2px; }
.qz-opt:disabled { cursor: default; }
.qz-opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, var(--card)); color: var(--text); }
.qz-opt.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 15%, var(--card)); color: var(--text); }
.qz-opt.dim { opacity: .5; }
.qz-who { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; background: var(--accent); color: #fff; border-radius: 99px; padding: 2px 8px; }
.qz-who.opp { right: 52px; background: #7b6cff; }
.qz-points { display: flex; justify-content: space-between; font-weight: 700; }
.qz-points .good { color: var(--ok); }
.qz-points .bad { color: var(--muted); }
.qz-explain { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 15px; }

/* Adam Asmaca */
.ad-gallows { width: 170px; height: 150px; margin: 0 auto; display: block; stroke: var(--text); stroke-width: 5; stroke-linecap: round; fill: none; }
.ad-gallows .frame { stroke: var(--muted); }
.ad-gallows.dead .man { stroke: var(--danger); }
.ad-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ad-word span { width: 30px; height: 40px; border-bottom: 3px solid var(--text); display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.ad-word span.hidden-letter { color: var(--muted); opacity: .45; }
.ad-word span.gap { border: 0; width: 14px; }
.ad-word.reveal span { color: var(--accent); }
.ad-hint { text-align: center; font-size: 14px; color: var(--muted); }
.ad-keys { display: grid; gap: 6px; }
.ad-keys div { display: flex; justify-content: center; gap: 4px; }
.ad-keys button { flex: 1; max-width: 34px; height: 44px; border: 0; border-radius: 8px; background: var(--card); box-shadow: var(--shadow); color: var(--text); font: inherit; font-weight: 800; font-size: 16px; padding: 0; cursor: pointer; }
.ad-keys button.hit { background: var(--ok); color: #fff; }
.ad-keys button.miss { background: var(--line); color: var(--muted); }
.ad-choose { display: grid; gap: 12px; }

/* Tabu */
.tb-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 14px 16px; text-align: center; border-top: 6px solid #8e2de2; }
.tb-card.guess { padding: 18px; }
.tb-word { display: block; font-size: 26px; font-weight: 900; letter-spacing: .02em; }
.tb-card ul { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tb-card li { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); border-radius: 99px; padding: 3px 10px; font-weight: 700; font-size: 13px; }
.tb-bar { display: flex; justify-content: space-between; align-items: center; }
.tb-log { flex: 1; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.tb-sys { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.tb-sys.ok { color: var(--ok); }
.tb-sys.tabu { color: var(--danger); }
.chip.tb-ok { color: var(--ok); }
.chip.tb-tabu { color: var(--danger); }

/* Skor çubuğu: uzun isimler skorun üstüne taşmasın */
.score .side { flex: 1 1 0; }
.score .side > div:last-child { min-width: 0; }
.score .side b { max-width: 100%; }
.score .vs { padding: 0 6px; }
.score .side, .score .side:last-child { flex-direction: column; gap: 2px; text-align: center; padding: 4px 6px; }
.score .side b { font-size: 12px; }
.score .side .pips, .side:last-child .pips { justify-content: center; }
.tp-board { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
