:root {
  --bg: #101217;
  --panel: #181b22;
  --panel-2: #20242d;
  --line: #2a2f3a;
  --text: #f4f6fa;
  --muted: #9aa1ad;
  --gold: #f5b400;
  --blue: #3fa7ff;
  --green: #2ecc71;
  --green-bg: #1f9d55;
  --yellow-bg: #d4a20a;
  --grey-bg: #3a404c;
  --red: #ff5c5c;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(245, 180, 0, 0.16), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
}
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.panel { background: var(--panel); border-radius: var(--radius); }

/* Header */
.top, .modes-row, main, .foot { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 8px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); flex: none; }
h1 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: 2px; line-height: 1.1; }
h1 span { color: var(--gold); }
.sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
nav { display: flex; gap: 8px; flex: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); font-weight: 900; font-size: 18px; display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang { position: relative; }
.lang-btn { width: auto; padding: 0 10px; gap: 5px; display: inline-flex; align-items: center; font-size: 13px; letter-spacing: 0.5px; }
.lang-btn svg { display: block; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; min-width: 140px;
  background: #1c2028; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.lang-menu li { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--panel-2); outline: none; }
.lang-menu li[aria-checked="true"] { color: var(--gold); }
.lang-menu li[aria-checked="true"]::after { content: "✓"; }

/* Mod seçimi */
.modes-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.seg { position: relative; display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 3px; gap: 2px; }
.seg button {
  position: relative; z-index: 1; border: 0; background: none; padding: 7px 16px; border-radius: 10px; white-space: nowrap;
  font-weight: 800; font-size: 14px; color: var(--muted); transition: color 0.25s ease;
}
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { color: #141414; }
.seg-pill {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--pill-w, 0); border-radius: 10px; background: var(--gold);
  transform: translateX(var(--pill-x, 0)); box-shadow: 0 2px 10px rgba(245, 180, 0, 0.25);
  transition: transform 0.34s cubic-bezier(0.3, 0.8, 0.2, 1), width 0.34s cubic-bezier(0.3, 0.8, 0.2, 1);
}
main.swap-out { opacity: 0; transform: translateY(6px); transition: opacity 0.17s ease, transform 0.17s ease; }
main.swap-in { animation: swapIn 0.36s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lb-btn {
  height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; flex: none;
}
.lb-btn svg { color: var(--gold); display: block; }
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-btn { transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; }
.lb-btn.off { opacity: 0; visibility: hidden; transform: translateX(8px); }

/* O mu bu mu? */
.om { margin-top: 10px; }
.om-q { margin: 0 0 10px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 12px; text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); }
.om-best { font-size: 12px; letter-spacing: 1px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); }
.om-best b { color: var(--text); font-size: 14px; letter-spacing: 0; }
.om-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; }
.om-vs {
  align-self: center; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--gold); color: var(--gold); font-weight: 900; font-size: 14px; letter-spacing: 0.5px;
}
.om-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: 14px 10px 12px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--panel);
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease; -webkit-tap-highlight-color: transparent;
}
.om-card:not([aria-disabled]):hover { border-color: var(--gold); transform: translateY(-2px); }
.om-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.om-card[aria-disabled] { cursor: default; }
.om-card.picked { border-color: var(--gold); }
.om-card.hi { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18), 0 10px 30px rgba(46, 204, 113, 0.12); }
.om-card.bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.18); animation: shake 0.4s ease; }
.om-card.ok::after, .om-card.bad::after {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 15px; color: #0d0f13;
}
.om-card.ok::after { content: "✓"; background: var(--green); }
.om-card.bad::after { content: "✕"; background: var(--red); }
.om-shot { position: relative; width: 100%; max-width: 230px; aspect-ratio: 200 / 146; border-radius: 12px; overflow: hidden; background: linear-gradient(#262a33, #1c2028); }
.om-shot img:first-child { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; user-select: none; }
.om-logo { position: absolute; left: 6px; top: 6px; width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.om-name { margin-top: 8px; font-weight: 900; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.om-meta { font-size: 13px; color: var(--muted); }
.om-fp { margin-top: 8px; display: flex; align-items: baseline; justify-content: center; gap: 6px; min-height: 40px; }
.om-fp b { font-size: 32px; font-weight: 900; line-height: 1.1; color: var(--muted); font-variant-numeric: tabular-nums; }
.om-fp span { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.5px; }
.om-fp:not(.on) span { display: none; }
.om-fp.on b { color: var(--gold); }
.om-card.hi .om-fp.on b { color: var(--green); }
.om-stats {
  margin-top: 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 6px; width: 100%; max-width: 230px;
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0.35; color: var(--muted);
  transition: opacity 0.35s ease 0.15s, color 0.35s ease 0.15s;
}
.om-stats.on { opacity: 1; color: var(--text); }
.om-stats span { display: flex; flex-direction: column; background: var(--panel-2); border-radius: 8px; padding: 4px 2px; line-height: 1.2; }
.om-stats small { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: 0.3px; }
.om-wins {
  position: absolute; top: 10px; right: 10px; z-index: 1; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 900;
  background: rgba(245, 180, 0, 0.14); color: var(--gold); border: 1px solid rgba(245, 180, 0, 0.4);
}
.om-card.om-enter { animation: omEnter 0.42s cubic-bezier(0.2, 0.7, 0.2, 1); }
.om-card.om-leave { opacity: 0; transform: scale(0.94) translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
.om-result { margin-top: 14px; }
@keyframes omEnter { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Robot + bubble */
.hero { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.robot-wrap { width: 248px; flex: none; }
.robot-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.bubble {
  position: relative; flex: 1; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px; font-weight: 600; min-height: 64px;
}
.bubble::before {
  content: ""; position: absolute; left: -9px; top: 50%; width: 16px; height: 16px; background: var(--panel);
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateY(-50%) rotate(45deg);
}
.bubble b { color: var(--gold); }
.bubble .answer { color: var(--text); font-size: 18px; }

.bot-bob { animation: bob 3.2s ease-in-out infinite; transform-origin: 0 0; }
.bot-head { animation: tilt 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.bot-eye { animation: blink 4.2s infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.antenna-light { animation: pulse 1.1s steps(1) infinite; }
.state-won .antenna-light, .state-lost .antenna-light { animation: glow 1.6s ease-in-out infinite; }
.state-won .bot-bob { animation: hop 0.9s ease-in-out 3; }
.state-lost .bot-head { animation: none; transform: rotate(-6deg) translateY(4px); }
.sign-wave { animation: wave 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.state-won .sign-wave { animation: wave 0.5s ease-in-out 6; }
.state-lost .sign-wave { animation: none; transform: rotate(-9deg); }
.sign-num.bump { animation: bump 0.45s ease-out; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes hop { 30% { transform: translateY(-18px); } 60% { transform: translateY(0); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg); } 65% { transform: rotate(2.5deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.12); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes glow { 50% { opacity: 0.55; } }
@keyframes bump { 40% { transform: scale(1.35); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }

/* Maraton */
.mbar { display: flex; gap: 10px; margin-top: 8px; }
.mstat { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel); border-radius: 14px; padding: 8px 16px; border: 1.5px solid var(--gold); }
.mstat.best { border-color: var(--line); }
.mstat span { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
.mstat b { font-size: 26px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.2; }
.mstat.best b { color: var(--text); }
.mstart { padding: 18px; margin-top: 8px; }
.mstart h2 { margin: 0 0 6px; font-size: 17px; font-weight: 900; letter-spacing: 2px; color: var(--gold); }
.mstart p { margin: 0 0 14px; }
.mstart p b { color: var(--gold); }
.mini-lb { margin-top: 16px; }
.mini-lb:empty { display: none; }
.mini-title { margin: 0 0 8px !important; font-weight: 700; }
.link { background: none; border: 0; color: var(--gold); font-weight: 800; padding: 6px 0 0; font-size: 14px; }
.ghost { height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: transparent; font-weight: 800; flex: none; }
.ghost:hover { border-color: var(--gold); color: var(--gold); }
.ghost:disabled { opacity: 0.45; cursor: default; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 0 0 6px; border-radius: 12px; background: var(--panel-2); border: 1.5px solid transparent;
}
.lb-list li.me { border-color: var(--gold); }
.lb-list .rk { font-weight: 900; text-align: center; font-size: 15px; color: var(--muted); }
.lb-list .nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-list .nm em { font-style: normal; color: var(--gold); font-weight: 700; font-size: 13px; }
.lb-list .sc { text-align: right; line-height: 1.2; }
.lb-list .sc b { display: block; font-size: 15px; }
.lb-list .sc small { color: var(--muted); font-size: 12px; }
.lb-tabs { margin-bottom: 12px; }
#lbBody { max-height: min(60vh, 520px); overflow-y: auto; }
.lb-msg { text-align: center; padding: 22px 0; margin: 0; }
.big-score { margin: 0 0 14px; font-size: 26px; font-weight: 900; }
.name-dlg label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.name-row { display: flex; gap: 8px; }
#nameInput {
  flex: 1; min-width: 0; height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel-2);
  color: var(--text); font: inherit; font-size: 16px; padding: 0 14px; outline: none;
}
#nameInput:focus { border-color: var(--gold); }
.name-err { color: var(--red); font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.result .saved { margin: 0 0 10px; font-size: 14px; }
.result .saved b, .result .meta b { color: var(--text); }
.mbest-line { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.mbest-line b { color: var(--gold); }

/* Clue */
.clue { padding: 16px; margin-top: 8px; }
.clue-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.clue h2 { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: 2px; color: var(--gold); }
.clue-head p { margin: 2px 0 0; font-size: 14px; }
.mystery {
  width: 64px; height: 64px; border-radius: 50%; flex: none; background: #262a33;
  box-shadow: 0 0 0 3px var(--gold); overflow: hidden; display: grid; place-items: center; position: relative;
}
.silhouette { font-size: 30px; font-weight: 900; color: var(--muted); }
.mystery img { width: 140%; position: absolute; bottom: 0; left: -20%; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tiles.shoot { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.tile { background: var(--panel-2); border-radius: 12px; padding: 10px 12px 11px; min-width: 0; }
.tile .lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .val { font-size: 26px; font-weight: 900; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .subl { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.short { display: none; }

/* Guess input */
.guess-box { display: flex; gap: 8px; margin: 16px 0 12px; }
.combo { position: relative; flex: 1; }
#guessInput {
  width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel);
  color: var(--text); font: inherit; font-size: 16px; padding: 0 16px; outline: none;
}
#guessInput:focus { border-color: var(--gold); }
.primary {
  height: 50px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--gold); color: #141414;
  font-weight: 900; letter-spacing: 0.4px; flex: none;
}
.primary:hover { filter: brightness(1.08); }
.primary:disabled { opacity: 0.45; cursor: default; }
.suggest {
  position: absolute; z-index: 20; left: 0; right: 0; top: 56px; margin: 0; padding: 6px; list-style: none;
  background: #1c2028; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  max-height: 320px; overflow-y: auto;
}
.suggest li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--panel-2); }
.suggest img { width: 26px; height: 26px; flex: none; }
.suggest .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.suggest .tm { flex: none; }
.suggest .tm { margin-left: auto; color: var(--muted); font-size: 13px; }
.suggest mark { background: none; color: var(--gold); }

/* Board */
.board { margin-top: 6px; }
.cols, .cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cols { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 0.5px; text-align: center; padding: 0 0 6px; }
.row { margin-bottom: 12px; }
.row-name { display: flex; align-items: center; gap: 10px; font-weight: 800; margin: 0 0 6px 2px; font-size: 16px; min-width: 0; }
.row-name .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row-name img, .row-name .idx { flex: none; }
.row-name img { width: 48px; height: 35px; object-fit: cover; object-position: top; border-radius: 8px; background: #262a33; }
.row-name .idx { color: var(--muted); font-size: 12px; font-weight: 700; }
.cell {
  height: 58px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; text-align: center; line-height: 1.1; background: var(--grey-bg);
  padding: 2px; min-width: 0; font-variant-numeric: tabular-nums;
}
.cell.green { background: var(--green-bg); }
.cell.yellow { background: var(--yellow-bg); color: #1a1400; }
.cell.grey { background: var(--grey-bg); }
.cell img { width: 34px; height: 34px; }
.cell .s { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.cell .arr { font-size: 13px; line-height: 1; margin-top: 2px; }
.row.reveal .cell { animation: flip 0.5s ease both; }
@keyframes flip { 0% { transform: rotateX(90deg); filter: brightness(0.5); } 100% { transform: rotateX(0); filter: none; } }
.row.win .row-name { color: var(--green); }
.empty-row { margin-bottom: 8px; }
.empty-row .cell { background: transparent; border: 1.5px dashed var(--line); height: 40px; }

/* Result */
.result { padding: 16px; margin: 4px 0 16px; display: flex; gap: 16px; align-items: center; border: 1.5px solid var(--line); }
.result.won { border-color: var(--green); }
.result.lost { border-color: var(--red); }
.result .shot { width: 92px; height: 92px; flex: none; border-radius: 50%; overflow: hidden; position: relative; background: #262a33; box-shadow: 0 0 0 3px var(--gold); }
.result .shot img { position: absolute; width: 140%; left: -20%; bottom: 0; }
.result h3 { margin: 0; font-size: 22px; font-weight: 900; }
.result .meta { margin: 2px 0 10px; color: var(--muted); font-size: 14px; }
.result .meta span { white-space: nowrap; }
.result .acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.result .primary { height: 42px; }
.countdown { font-size: 13px; color: var(--muted); }
.countdown b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Legend + footer */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 22px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sw.green { background: var(--green-bg); }
.sw.yellow { background: var(--yellow-bg); }
.sw.grey { background: var(--grey-bg); }
.foot { display: flex; justify-content: center; padding-top: 16px; padding-bottom: 30px; border-top: 1px solid var(--line); }
.ig { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; text-decoration: none; }
.ig svg { flex: none; display: block; }
.ig:hover span { color: var(--gold); }

/* Modals */
.modal {
  width: min(460px, calc(100vw - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal::backdrop { background: rgba(5, 6, 9, 0.7); }
.modal h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: 1px; color: var(--gold); }
.modal ul { padding-left: 4px; list-style: none; }
.modal li { margin: 6px 0; }
.modal .close { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 26px; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; margin-bottom: 16px; }
.stat-row b { display: block; font-size: 26px; font-weight: 900; }
.stat-row span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dist { display: grid; gap: 5px; }
.dist div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.dist .bar { background: var(--grey-bg); border-radius: 5px; padding: 2px 8px; min-width: 26px; text-align: right; }
.dist .bar.now { background: var(--green-bg); }

.toast {
  position: fixed; left: 50%; top: 18px; transform: translate(-50%, -30px); opacity: 0; pointer-events: none;
  background: var(--text); color: #111; padding: 10px 16px; border-radius: 12px; font-weight: 700; transition: 0.25s; z-index: 50;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .robot-wrap { width: 168px; }
  .bubble { font-size: 14px; padding: 12px; }
  .bubble .answer { font-size: 16px; }
  .clue { padding: 12px; }
  .mystery { width: 52px; height: 52px; }
  .tiles { gap: 6px; }
  .tiles.shoot { margin-top: 6px; }
  .tile { padding: 8px 8px 9px; border-radius: 10px; }
  .tile .lbl { font-size: 10.5px; letter-spacing: 0.3px; }
  .tile .val { font-size: clamp(17px, 5.6vw, 22px); }
  .tile .subl { font-size: 10.5px; }
  .full { display: none; }
  .short { display: inline; }
  .cell .short { display: block; }
  .icon-btn { width: 36px; height: 36px; }
  .lang-btn { width: auto; padding: 0 8px; }
  .sub .long { display: none; }
  .result { padding: 14px; gap: 12px; align-items: flex-start; }
  .result .shot { width: 64px; height: 64px; }
  .result h3 { font-size: 19px; }
  .cols, .cells { gap: 4px; }
  .cols { font-size: 9.5px; letter-spacing: 0; }
  .cell { height: 52px; font-size: 13px; border-radius: 8px; }
  .cell img { width: 28px; height: 28px; }
  .cell .s { font-size: 10px; }
  .primary { padding: 0 14px; }
  h1 { font-size: 17px; letter-spacing: 1px; }
  .top { padding-top: 14px; }
  .brand { gap: 10px; }
  .logo { width: 38px; height: 38px; }
  nav { gap: 6px; }
  .row-name { font-size: 15px; gap: 8px; }
  .row-name img { width: 42px; height: 31px; border-radius: 7px; }
  .seg button { padding: 7px 13px; font-size: 13.5px; }
  .lb-btn { height: 36px; padding: 0 11px; font-size: 13.5px; }
  .mstat { padding: 6px 12px; }
  .mstat b { font-size: 22px; }
  .mstart { padding: 14px; }
  .lb-list li { gap: 8px; padding: 8px 10px; grid-template-columns: 26px minmax(0, 1fr) auto; }
  .lb-list .sc b { font-size: 18px; color: var(--gold); }
  .result .acts .primary, .result .ghost { height: 40px; padding: 0 12px; font-size: 14px; }
  .seg button { padding: 7px 11px; }
  .om-pair { gap: 6px; }
  .om-vs { width: 32px; height: 32px; font-size: 11px; }
  .om-card { padding: 10px 6px 10px; border-radius: 14px; }
  .om-name { font-size: 15px; margin-top: 6px; }
  .om-meta { font-size: 12px; }
  .om-logo { width: 24px; height: 24px; left: 4px; top: 4px; }
  .om-fp { flex-direction: column; align-items: center; gap: 0; min-height: 52px; margin-top: 6px; }
  .om-fp b { font-size: 26px; }
  .om-fp span { font-size: 10.5px; }
  .om-stats { font-size: 12.5px; gap: 3px; }
  .om-stats small { font-size: 9px; }
  .om-wins { top: 6px; right: 6px; font-size: 11px; padding: 1px 6px; }
  .om-card.ok::after, .om-card.bad::after { top: 6px; right: 6px; width: 22px; height: 22px; font-size: 13px; }
  .om-q { font-size: 14px; margin-bottom: 8px; }
}
/* Üç sekmeye yer kalsın diye liderlik düğmesi dar ekranda yalnızca kupa. */
@media (max-width: 440px) {
  #lbBtnText { display: none; }
  .lb-btn { width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 360px) {
  .lang-btn svg { display: none; }
  main, .top, .modes-row, .foot { padding-left: 12px; padding-right: 12px; }
  .seg button { padding: 7px 8px; font-size: 13px; }
  .robot-wrap { width: 140px; }
  .bubble { font-size: 13px; }
  h1 { font-size: 15px; letter-spacing: 0.5px; }
  .cell { font-size: 12px; }
  .cell .s { font-size: 9px; }
  .modal { padding: 18px 14px; }
  .stat-row b { font-size: 22px; }
  .stat-row span { font-size: 11px; }
  .cols { font-size: 8.5px; }
  .primary { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
