/* ============ Tokens ============ */
:root {
  --sky-top: #5ec8ff;
  --sky-bottom: #c9f0ff;
  --land: #ffffff;
  --land-dot: rgba(255, 255, 255, .55);
  --ink: #1f2a44;
  --ink-soft: #5b6784;
  --card: #ffffff;
  --card-soft: #f4f8ff;
  --line: #e3e9f5;
  --primary: #ff7a1a;
  --primary-dark: #e2600a;
  --good: #22c55e;
  --good-dark: #15803d;
  --bad: #ef4444;
  --bad-dark: #b91c1c;
  --info: #6366f1;
  --opt-a: #ff5d8f;
  --opt-b: #22b8f0;
  --opt-c: #ffb020;
  --opt-d: #8b5cf6;
  --radius: 22px;
  --shadow: 0 10px 0 rgba(31, 42, 68, .12), 0 18px 40px rgba(31, 42, 68, .18);
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ============ Arka plan ============ */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.world-map {
  position: absolute; inset: -5% -10%;
  width: 120%; height: 110%;
  opacity: .9;
  animation: drift 60s ease-in-out infinite alternate;
}
.world-map .land { fill: url(#dots); stroke: rgba(255,255,255,.75); stroke-width: 1.2; stroke-linejoin: round; }
.world-map .grid { stroke: rgba(255,255,255,.28); stroke-width: 1; fill: none; stroke-dasharray: 2 6; }
@keyframes drift { from { transform: translateX(-3%) } to { transform: translateX(3%) } }

.cloud {
  position: absolute; background: #fff; border-radius: 100px; opacity: .85;
  width: 140px; height: 44px; filter: drop-shadow(0 6px 10px rgba(31,42,68,.08));
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 60px; height: 60px; top: -30px; left: 22px; }
.cloud::after  { width: 78px; height: 78px; top: -42px; left: 58px; }
.c1 { top: 12%; left: -160px; animation: float-x 55s linear infinite; }
.c2 { top: 55%; left: -160px; transform: scale(.7); animation: float-x 75s linear infinite -30s; }
.c3 { top: 80%; left: -160px; transform: scale(.9); animation: float-x 65s linear infinite -12s; }
.plane { position: absolute; top: 28%; left: -60px; font-size: 32px; animation: float-x 40s linear infinite -8s; }
@keyframes float-x { from { translate: 0 0 } to { translate: calc(100vw + 320px) 0 } }

/* ============ Genel ============ */
.app { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 16px 16px 40px; min-height: 100vh; }
.screen { display: none; animation: pop-in .45s cubic-bezier(.2, 1.4, .4, 1); }
.screen.active { display: block; }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.97) } to { opacity: 1; transform: none } }

.btn {
  border: 0; border-radius: 18px; padding: 14px 24px; min-height: 52px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .3px;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:active { transform: translateY(4px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 0 var(--primary-dark); }
.btn-primary:active { box-shadow: 0 2px 0 var(--primary-dark); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--line); }
.btn-big { display: block; width: 100%; font-size: 1.3rem; padding: 16px; }
.btn:focus-visible, .option:focus-visible, .icon-btn:focus-visible, .mode-card:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }

/* ============ Yükleniyor ============ */
#screen-loading { text-align: center; padding-top: 22vh; }
.loader-globe { font-size: 96px; animation: spin-bounce 1.6s ease-in-out infinite; display: inline-block; }
@keyframes spin-bounce { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-20px) rotate(180deg) } }
.loader-text { font-family: var(--font-head); color: #fff; font-size: 2rem; text-shadow: 0 3px 0 rgba(31,42,68,.2); }
.dots i { font-style: normal; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s } .dots i:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%, 100% { opacity: .2 } 50% { opacity: 1 } }
.load-error { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 420px; margin: 0 auto; }

/* ============ Ana ekran ============ */
.home-hero { text-align: center; padding: 20px 0 10px; }
.logo-badge {
  width: 96px; height: 96px; margin: 0 auto 6px; display: grid; place-items: center; font-size: 54px;
  background: #fff; border-radius: 30px; box-shadow: var(--shadow); transform: rotate(-6deg);
  animation: wiggle 3s ease-in-out infinite;
}
@keyframes wiggle { 0%,100% { transform: rotate(-6deg) } 50% { transform: rotate(6deg) } }
.logo {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 9vw, 4.2rem); line-height: 1; margin: 12px 0 4px;
  color: #fff; text-shadow: 0 5px 0 #1d8ccf, 0 10px 18px rgba(31,42,68,.25);
}
.logo span { color: #ffe14d; text-shadow: 0 5px 0 #e2600a, 0 10px 18px rgba(31,42,68,.25); }
.tagline { font-size: 1.15rem; font-weight: 800; color: #0f4c75; margin: 8px 0 0; }

.rules-card {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 20px auto; padding: 14px; background: rgba(255,255,255,.85); border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 640px;
}
.rule { display: flex; align-items: center; gap: 8px; font-weight: 800; padding: 4px 8px; }
.pill { display: inline-grid; place-items: center; min-width: 44px; padding: 4px 10px; border-radius: 999px; color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.pill.good { background: var(--good); } .pill.bad { background: var(--bad); } .pill.info { background: var(--info); }

.section-title { font-family: var(--font-head); color: #fff; text-shadow: 0 3px 0 #1d8ccf, 0 6px 14px rgba(31,42,68,.25); font-size: 1.6rem; margin: 18px 0 10px; text-align: center; }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mode-card {
  position: relative; text-align: left; border: 0; border-radius: var(--radius); padding: 18px; background: #fff;
  box-shadow: var(--shadow); transition: transform .15s; min-height: 140px; display: flex; flex-direction: column; gap: 6px;
}
.mode-card:hover:not(:disabled) { transform: translateY(-4px) rotate(-1deg); }
.mode-card .mode-icon { font-size: 42px; line-height: 1; }
.mode-card h3 { font-family: var(--font-head); font-size: 1.35rem; margin: 4px 0 0; }
.mode-card p { margin: 0; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.mode-card.featured { grid-column: 1 / -1; background: linear-gradient(135deg, #ff9a3c, #ff5d8f); color: #fff; min-height: 160px; }
.mode-card.featured p { color: rgba(255,255,255,.92); }
.mode-card.featured .play-chip { align-self: flex-start; margin-top: auto; background: #fff; color: var(--primary-dark); padding: 6px 16px; border-radius: 999px; font-family: var(--font-head); font-weight: 800; }
.mode-card:disabled { cursor: not-allowed; opacity: .75; filter: grayscale(.4); }
.soon { position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

.resume-box { margin: 18px 0; padding: 16px; background: #fffbe6; border: 3px dashed #ffb020; border-radius: var(--radius); text-align: center; font-weight: 800; }
.resume-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.best-score { text-align: center; font-weight: 800; color: #0f4c75; margin-top: 16px; }

/* ============ HUD ============ */
.hud { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 52px; height: 52px; border: 0; border-radius: 16px; background: #fff; font-size: 24px; box-shadow: 0 5px 0 var(--line); flex-shrink: 0; }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.hud-stat { flex: 1; background: #fff; border-radius: 16px; padding: 6px 10px; text-align: center; box-shadow: 0 5px 0 var(--line); min-width: 0; }
.hud-label { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-soft); }
.hud-value { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.score-stat .hud-value { color: var(--primary-dark); }
.score-stat.neg .hud-value { color: var(--bad); }
.hud-value.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.35) } }
.score-float { position: absolute; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; pointer-events: none; animation: float-up 1s forwards; z-index: 5; }
@keyframes float-up { to { transform: translateY(-50px); opacity: 0 } }

.progress { height: 14px; background: rgba(255,255,255,.6); border-radius: 999px; margin: 14px 0; overflow: hidden; box-shadow: inset 0 2px 4px rgba(31,42,68,.12); }
.progress-bar { height: 100%; width: 0; border-radius: 999px; background: repeating-linear-gradient(45deg, #ffb020 0 14px, #ffc94d 14px 28px); transition: width .6s cubic-bezier(.3,1.3,.5,1); }

/* ============ Soru ============ */
.prompt-area { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 18px; }
.question-text { font-family: var(--font-head); font-size: 1.5rem; color: #fff; text-shadow: 0 3px 0 #1d8ccf, 0 6px 14px rgba(31,42,68,.25); margin: 0; text-align: center; }
.flag-frame {
  position: relative; background: #fff; padding: 12px; border-radius: 26px; box-shadow: var(--shadow);
  width: min(100%, 420px); animation: flag-in .6s cubic-bezier(.2,1.5,.4,1);
}
.flag-frame::before { /* direk */
  content: ""; position: absolute; left: -14px; top: -14px; bottom: -34px; width: 10px; border-radius: 6px;
  background: linear-gradient(90deg, #a0a8b8, #e7ebf2, #a0a8b8);
}
.flag-frame::after { content: ""; position: absolute; left: -18px; top: -22px; width: 18px; height: 18px; border-radius: 50%; background: #ffd23f; box-shadow: inset -3px -3px 0 #e2a100; }
.flag-img-wrap { aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--card-soft); }
.flag-img { max-width: 100%; max-height: 100%; object-fit: contain; animation: wave 4s ease-in-out infinite; transform-origin: left center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.12)); }
@keyframes wave { 0%,100% { transform: perspective(600px) rotateY(0) skewY(0) } 50% { transform: perspective(600px) rotateY(-8deg) skewY(1deg) } }
@keyframes flag-in { from { transform: translateY(-40px) rotate(-8deg) scale(.8); opacity: 0 } to { transform: none; opacity: 1 } }
.flag-frame.shake { animation: shake .55s; }
@keyframes shake { 10%,90% { transform: translateX(-3px) } 20%,80% { transform: translateX(6px) } 30%,50%,70% { transform: translateX(-10px) rotate(-2deg) } 40%,60% { transform: translateX(10px) rotate(2deg) } }
.last-badge { background: #ffe14d; color: var(--ink); font-weight: 800; padding: 4px 14px; border-radius: 999px; box-shadow: 0 4px 0 #e2a100; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.option {
  --c: var(--opt-a);
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  border: 0; border-radius: 20px; padding: 14px 16px; min-height: 76px;
  background: #fff; box-shadow: 0 7px 0 var(--c), 0 12px 20px rgba(31,42,68,.12);
  border: 3px solid var(--c);
  transition: transform .12s, box-shadow .12s, background .2s;
  animation: pop-in .4s both;
}
.option:nth-child(2) { --c: var(--opt-b); animation-delay: .05s } .option:nth-child(3) { --c: var(--opt-c); animation-delay: .1s } .option:nth-child(4) { --c: var(--opt-d); animation-delay: .15s }
.option:hover:not(:disabled) { transform: translateY(-3px); }
.option:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 var(--c); }
.opt-key { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.opt-text { min-width: 0; }
.opt-main { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; line-height: 1.15; overflow-wrap: anywhere; }
.opt-sub { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-soft); overflow-wrap: anywhere; }
.option:disabled { cursor: default; }
.option.dim { opacity: .45; transform: scale(.97); }
.option.correct { --c: var(--good); background: #eafff1; animation: correct-pop .5s; }
.option.wrong { --c: var(--bad); background: #fff0f0; animation: shake .5s; }
.option.correct .opt-key::after { content: "✓"; } .option.wrong .opt-key::after { content: "✗"; }
.option.correct .opt-key, .option.wrong .opt-key { font-size: 0; } .option.correct .opt-key::after, .option.wrong .opt-key::after { font-size: 1.4rem; }
@keyframes correct-pop { 40% { transform: scale(1.06) } }
.kbd-hint { text-align: center; color: #0f4c75; font-weight: 700; font-size: .9rem; margin-top: 18px; }
kbd { background: #fff; border-radius: 6px; padding: 1px 7px; box-shadow: 0 2px 0 var(--line); font-family: var(--font-head); }

/* ============ Bilgi paneli (sheet) ============ */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 60, .45); backdrop-filter: blur(3px); animation: fade .3s; }
.sheet-panel {
  position: relative; width: min(100%, 760px); max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card-soft); border-radius: 30px 30px 0 0; padding: 18px 16px 20px;
  box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: slide-up .45s cubic-bezier(.2,1.2,.4,1);
}
@media (min-width: 720px) {
  .sheet { align-items: center; padding: 16px; }
  .sheet-panel { border-radius: 30px; max-height: 90vh; padding: 22px 24px 24px; }
}
@keyframes slide-up { from { transform: translateY(100%) } to { transform: none } }
@keyframes fade { from { opacity: 0 } }
.sheet-actions { position: sticky; bottom: -20px; padding: 14px 0 0; margin-top: 8px; background: linear-gradient(transparent, var(--card-soft) 30%); }

.verdict { display: flex; align-items: center; gap: 12px; border-radius: 20px; padding: 12px 16px; margin-bottom: 14px; color: #fff; font-weight: 800; }
.verdict .v-emoji { font-size: 40px; line-height: 1; }
.verdict .v-title { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1; }
.verdict .v-sub { font-size: .95rem; opacity: .95; }
.verdict .v-points { margin-left: auto; font-family: var(--font-head); font-size: 1.8rem; background: rgba(255,255,255,.25); border-radius: 14px; padding: 2px 12px; }
.verdict.good { background: linear-gradient(135deg, #22c55e, #16a34a); }
.verdict.bad { background: linear-gradient(135deg, #f87171, #dc2626); }
.verdict.info { background: linear-gradient(135deg, #818cf8, #6366f1); }

/* Ülke kartı */
.cc-head { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 5px 0 var(--line); }
.cc-flag { width: 120px; flex-shrink: 0; border-radius: 10px; box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.cc-names { min-width: 0; }
.cc-name { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1.05; margin: 0; overflow-wrap: anywhere; }
.cc-alt { color: var(--ink-soft); font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { background: var(--card-soft); border: 2px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 800; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.fact { background: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: 0 4px 0 var(--line); animation: pop-in .4s both; min-width: 0; }
.fact-icon { font-size: 26px; line-height: 1; }
.fact-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); margin-top: 4px; }
.fact-value { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; line-height: 1.2; overflow-wrap: anywhere; }
.fact.wide { grid-column: 1 / -1; }

.compare { background: #fff; border-radius: 18px; padding: 12px 14px; margin-top: 12px; box-shadow: 0 4px 0 var(--line); }
.compare h4 { margin: 0 0 8px; font-family: var(--font-head); font-size: 1.1rem; }
.cmp-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; margin: 6px 0; font-weight: 800; font-size: .88rem; }
.cmp-track { background: var(--card-soft); border-radius: 999px; height: 22px; overflow: hidden; position: relative; }
.cmp-bar { height: 100%; border-radius: 999px; min-width: 6px; width: 0; transition: width 1s cubic-bezier(.3,1.2,.5,1); }
.cmp-bar.a { background: linear-gradient(90deg, #22b8f0, #6366f1); } .cmp-bar.b { background: linear-gradient(90deg, #ff5d8f, #ef4444); }
.cmp-note { font-size: .88rem; color: var(--ink-soft); font-weight: 700; margin: 6px 0 0; }

.map-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.map-link { flex: 1; min-width: 150px; text-align: center; text-decoration: none; background: #fff; color: var(--ink); font-weight: 800; border-radius: 16px; padding: 12px; box-shadow: 0 4px 0 var(--line); }
.map-link:hover { background: #fffbe6; }

/* ============ Son 4 ============ */
.final-title { font-family: var(--font-head); color: #fff; text-align: center; font-size: 2.2rem; margin: 10px 0 0; text-shadow: 0 4px 0 #1d8ccf, 0 8px 16px rgba(31,42,68,.25); }
.final-sub { text-align: center; font-weight: 800; color: #0f4c75; }
.final-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 22px; }
@media (min-width: 760px) { .final-grid { grid-template-columns: repeat(4, 1fr); } }
.final-card { border: 0; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); text-align: center; animation: pop-in .5s both; transition: transform .15s; }
.final-card:hover { transform: translateY(-4px) rotate(1deg); }
.final-card img { width: 100%; aspect-ratio: 3/2; object-fit: contain; background: var(--card-soft); border-radius: 12px; }
.final-card b { display: block; font-family: var(--font-head); font-size: 1.15rem; margin-top: 6px; }
.final-card small { color: var(--ink-soft); font-weight: 700; }
.final-card .fc-badge { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--card-soft); }
.final-card.was-answer .fc-badge { background: #ffe14d; }

/* ============ Sonuç ============ */
.result-card { background: #fff; border-radius: 30px; padding: 26px 18px; box-shadow: var(--shadow); text-align: center; max-width: 520px; margin: 6vh auto 0; }
.stars { font-size: 56px; letter-spacing: 6px; }
.stars span { display: inline-block; animation: star-pop .6s both; }
.stars span.off { filter: grayscale(1); opacity: .3; }
@keyframes star-pop { from { transform: scale(0) rotate(-90deg) } 70% { transform: scale(1.3) } to { transform: none } }
.result-title { font-family: var(--font-head); font-size: 2rem; margin: 6px 0; }
.result-score { font-family: var(--font-head); font-size: 4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.result-score small { font-size: 1.1rem; color: var(--ink-soft); margin-left: 6px; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.result-stats div { background: var(--card-soft); border-radius: 16px; padding: 10px 4px; }
.result-stats b { display: block; font-family: var(--font-head); font-size: 1.6rem; }
.result-stats span { font-size: .8rem; font-weight: 800; color: var(--ink-soft); }

/* ============ Efektler ============ */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }
.fx-layer { position: fixed; inset: 0; z-index: 49; pointer-events: none; overflow: hidden; }
.flash { position: fixed; inset: 0; z-index: 48; pointer-events: none; opacity: 0; box-shadow: inset 0 0 120px 40px rgba(239, 68, 68, .75); }
.flash.on { animation: flash .7s; }
@keyframes flash { 20% { opacity: 1 } }
.drop { position: absolute; top: -40px; font-size: 26px; animation: drop-fall linear forwards; }
@keyframes drop-fall { to { transform: translateY(110vh); opacity: .2 } }
.sad-cloud { position: absolute; left: 50%; top: 14%; font-size: 90px; transform: translateX(-50%); animation: sad 1.6s forwards; }
@keyframes sad { 0% { opacity: 0; transform: translate(-50%, -30px) scale(.5) } 20% { opacity: 1; transform: translate(-50%, 0) scale(1) } 80% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, 10px) } }
.praise {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 10vw, 4.4rem); color: #ffe14d; white-space: nowrap;
  text-shadow: 0 5px 0 #e2600a, 0 10px 24px rgba(0,0,0,.25); animation: praise 1.4s forwards;
}
@keyframes praise { 0% { opacity: 0; transform: translateX(-50%) scale(.3) rotate(-10deg) } 25% { opacity: 1; transform: translateX(-50%) scale(1.15) rotate(3deg) } 40% { transform: translateX(-50%) scale(1) rotate(0) } 85% { opacity: 1 } 100% { opacity: 0; transform: translateX(-50%) translateY(-30px) } }

.sound-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; box-shadow: 0 5px 0 var(--line), 0 8px 18px rgba(31,42,68,.18); }

/* ============ Responsive ============ */
@media (max-width: 560px) {
  .options { grid-template-columns: 1fr; gap: 12px; }
  .option { min-height: 64px; padding: 10px 14px; }
  .mode-grid { grid-template-columns: 1fr; }
  .hud-value { font-size: 1.1rem; }
  .hud-label { font-size: .64rem; }
  .icon-btn { width: 46px; height: 46px; font-size: 20px; }
  .cc-head { flex-direction: column; text-align: center; }
  .cc-tags { justify-content: center; }
  .cc-flag { width: 150px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .kbd-hint { display: none; }
  .question-text { font-size: 1.25rem; }
  .flag-frame { width: calc(100% - 20px); margin-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
