/* ============ 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;
  background: #fff; border-radius: 30px; box-shadow: var(--shadow); transform: rotate(-6deg);
  animation: wiggle 3s ease-in-out infinite;
}
.logo-badge img { width: 72px; height: 72px; display: block; }
@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(3, 1fr); gap: 12px; }
.mode-card {
  position: relative; text-align: left; border: 0; border-radius: var(--radius); padding: 14px; background: #fff;
  box-shadow: var(--shadow); transition: transform .15s; min-height: 120px; display: flex; flex-direction: column; gap: 6px;
}
.mode-card:hover:not(:disabled) { transform: translateY(-4px) rotate(-1deg); }
.mode-card .mode-icon { font-size: 32px; line-height: 1; }
.mode-card h3 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.15; margin: 2px 0 0; }
.mode-card p { margin: 0; color: var(--ink-soft); font-weight: 700; font-size: .82rem; line-height: 1.3; }
.mode-card.featured { background: linear-gradient(135deg, #ff9a3c, #ff5d8f); color: #fff; min-height: 150px; }
.mode-card.featured[data-mode="capital"] { background: linear-gradient(135deg, #16a34a, #0ea5e9); }
.mode-card.featured[data-mode="area"] { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.mode-card.featured[data-mode="map"] { background: linear-gradient(135deg, #f97316, #14b8a6); }
.mode-card.featured[data-mode="population"] { background: linear-gradient(135deg, #0891b2, #6366f1); }
.mode-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.mode-best { background: rgba(255,255,255,.25); padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: .78rem; }
.mode-card.featured p { color: rgba(255,255,255,.92); }
.mode-card.featured .play-chip { background: #fff; color: var(--primary-dark); padding: 4px 12px; font-size: .9rem; 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: 0 0 16px; 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) } }
/* Başkent modu: otoyol tabelası */
.capital-sign { width: min(100%, 440px); display: flex; flex-direction: column; align-items: center; animation: sign-in .7s cubic-bezier(.2,1.4,.4,1); transform-origin: top center; }
.sign-board {
  width: 100%; background: #0f8a4b; color: #fff; text-align: center; border-radius: 22px; padding: 18px 16px 20px;
  border: 5px solid #fff; outline: 4px solid #0f8a4b; box-shadow: var(--shadow); position: relative; z-index: 1;
}
.sign-top { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: .9rem; background: rgba(255,255,255,.18); padding: 4px 14px; border-radius: 999px; }
.sign-name { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.05; margin-top: 10px; overflow-wrap: anywhere; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.sign-sub { font-weight: 700; opacity: .85; margin-top: 4px; }
.sign-hint { display: inline-block; margin-top: 10px; background: #ffe14d; color: var(--ink); font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.sign-poles { display: flex; justify-content: space-between; width: 60%; margin-top: -4px; }
.sign-poles i { width: 12px; height: 38px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #a0a8b8, #e7ebf2, #a0a8b8); }
.capital-sign.shake { animation: shake .55s; }
@keyframes sign-in { from { transform: rotate(-12deg) translateY(-40px); opacity: 0 } 60% { transform: rotate(4deg) } to { transform: none; opacity: 1 } }

/* Karşılaştırma modları (büyüklük, nüfus) */
.compare-banner {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 24px; padding: 14px 22px;
  box-shadow: var(--shadow); animation: flag-in .6s cubic-bezier(.2,1.5,.4,1);
}
.compare-icon { font-size: 48px; line-height: 1; animation: spin-bounce 3s ease-in-out infinite; display: inline-block; }
.compare-title { font-family: var(--font-head); font-size: 1.7rem; margin: 0; line-height: 1.1; color: var(--accent, #7c3aed); }
.compare-sub { margin: 2px 0 0; font-weight: 700; color: var(--ink-soft); }
.compare-banner.shake { animation: shake .55s; }

.options.cards { grid-template-columns: repeat(4, 1fr); }
.options.cards .option { flex-direction: column; align-items: stretch; text-align: center; padding: 10px; gap: 8px; }
.options.cards .opt-key { position: absolute; top: -12px; left: -12px; width: 34px; height: 34px; font-size: 1.05rem; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.opt-flag { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--card-soft); border-radius: 12px; }
.opt-reveal { display: block; margin-top: 6px; font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--c); animation: pop-in .4s both; }

.compare.rank { margin: 0 0 12px; }
.rank-row { display: grid; grid-template-columns: 26px 44px 1fr auto; align-items: center; gap: 8px; margin: 8px 0; }
.rank-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card-soft); font-family: var(--font-head); font-weight: 800; }
.rank-row.top .rank-no { background: #ffe14d; }
.rank-flag { width: 44px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.rank-body { min-width: 0; }
.rank-name { font-weight: 800; font-size: .92rem; overflow-wrap: anywhere; }
.rank-body .cmp-track { height: 14px; margin-top: 3px; }
.rank-val { font-family: var(--font-head); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.rank-you { font-size: .72rem; background: var(--info); color: #fff; padding: 1px 8px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }

/* Haritada bul modu */
.map-ask {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: #fff; border-radius: 999px; padding: 10px 22px; box-shadow: var(--shadow);
  animation: flag-in .6s cubic-bezier(.2,1.5,.4,1);
}
.map-ask.shake { animation: shake .55s; }
.map-ask-pin { font-size: 28px; line-height: 1; }
.map-ask-label { font-weight: 800; color: var(--ink-soft); }
.map-ask-flag { height: 30px; width: auto; border-radius: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.map-ask-name { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.1; color: #ea580c; }

.map-frame {
  position: relative; width: 100%; aspect-ratio: 960 / 500; border-radius: 24px; overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow);
  background: radial-gradient(ellipse at 50% 40%, #a5e4ff 0%, #6cc8f2 60%, #48b2e6 100%);
}
.map-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; -webkit-tap-highlight-color: transparent; }
.map-canvas:active { cursor: grabbing; }
.map-controls { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-controls button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fff; font-size: 1.2rem; font-weight: 800; box-shadow: 0 3px 0 var(--line), 0 6px 12px rgba(31,42,68,.15); }
.map-controls button:active { transform: translateY(2px); }
.map-hint { margin: 2px 0 0; text-align: center; font-size: .85rem; font-weight: 700; color: #0f4c75; }

/* Tam ekran oyun (harita modu): harita tüm pencereyi kaplar, paneller üstünde yüzer */
body.fullscreen-game { overflow: hidden; }
body.fullscreen-game #screen-game {
  position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 2; animation: none;
  padding: max(10px, env(safe-area-inset-top)) 12px 0; pointer-events: none;
}
body.fullscreen-game #screen-game .hud,
body.fullscreen-game #screen-game .progress,
body.fullscreen-game #screen-game .prompt-area > :not(.map-frame):not(.map-hint):not(.rocket-stage):not(.rocket-controls):not(.rocket-hint) {
  position: relative; z-index: 2; pointer-events: auto; max-width: 860px; margin-left: auto; margin-right: auto;
}
body.fullscreen-game #screen-game .progress { margin-top: 10px; margin-bottom: 10px; box-shadow: 0 2px 6px rgba(31,42,68,.15); }
body.fullscreen-game #screen-game .prompt-area { margin: 0; gap: 8px; }
body.fullscreen-game .map-frame {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 0; width: auto; height: auto; aspect-ratio: auto;
  border: 0; border-top: 4px solid #fff; border-radius: 24px 24px 0 0; pointer-events: auto;
  box-shadow: 0 -6px 18px rgba(31,42,68,.12);
}
body.fullscreen-game .map-controls { top: 50%; right: 12px; transform: translateY(-50%); }
body.fullscreen-game .map-controls button { width: 46px; height: 46px; font-size: 1.35rem; }
body.fullscreen-game .map-hint {
  position: fixed; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 24px); margin: 0; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); box-shadow: 0 4px 12px rgba(31,42,68,.15); font-size: .8rem;
  animation: hint-fade 7s ease forwards; pointer-events: none;
}
/* Kısa ekranlar (yatay telefon): üst paneller daha az yer kaplasın */
@media (max-height: 520px) {
  body.fullscreen-game #screen-game { padding-top: max(6px, env(safe-area-inset-top)); }
  body.fullscreen-game .hud { gap: 6px; }
  body.fullscreen-game .hud-label { display: none; }
  body.fullscreen-game .hud-stat { padding: 4px 8px; border-radius: 12px; }
  body.fullscreen-game .hud-value { font-size: 1rem; }
  body.fullscreen-game .icon-btn { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
  body.fullscreen-game #screen-game .progress { height: 8px; margin-top: 6px; margin-bottom: 6px; }
  body.fullscreen-game .map-ask { padding: 4px 14px; gap: 6px; }
  body.fullscreen-game .map-ask-label { display: none; }
  body.fullscreen-game .map-ask-pin { font-size: 18px; }
  body.fullscreen-game .map-ask-flag { height: 20px; }
  body.fullscreen-game .map-ask-name { font-size: 1.15rem; }
  body.fullscreen-game .map-controls button { width: 38px; height: 38px; font-size: 1.1rem; }
}
@keyframes hint-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.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%); display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1 1 0; width: auto; min-width: 0; }
.sheet-actions:has(#review-btn:not([hidden]), #card-btn:not([hidden])) .btn { font-size: 1.1rem; padding: 14px 10px; white-space: nowrap; }

/* Haritayı incelerken alttaki çubuk */
.review-bar {
  position: fixed; z-index: 25; left: 16px; right: 84px; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; gap: 10px; justify-content: center; animation: pop-in .35s both;
}
.review-bar .btn { flex: 0 1 auto; white-space: nowrap; box-shadow: 0 6px 0 var(--line), 0 10px 22px rgba(31,42,68,.2); }
.review-bar .btn-primary { box-shadow: 0 6px 0 var(--primary-dark), 0 10px 22px rgba(31,42,68,.2); }
@media (max-width: 420px) {
  .review-bar .btn { padding: 12px 14px; font-size: 1rem; }
  .sheet-actions:has(#review-btn:not([hidden]), #card-btn:not([hidden])) .btn { font-size: 1rem; padding: 14px 10px; }
}
@media (max-width: 360px) {
  .sheet-actions:has(#review-btn:not([hidden]), #card-btn:not([hidden])) .btn { white-space: normal; line-height: 1.15; padding: 10px 8px; }
}

.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: 760px) {
  .options.cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .options { grid-template-columns: 1fr; gap: 12px; }
  .options.cards { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .options.cards .opt-main { font-size: 1rem; }
  .compare-title { font-size: 1.35rem; }
  .rank-row { grid-template-columns: 22px 36px 1fr; }
  .rank-flag { width: 36px; }
  .rank-val { grid-column: 3; font-size: .82rem; }
  .option { min-height: 64px; padding: 10px 14px; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mode-card { padding: 12px; }
  .mode-card.featured { min-height: 0; }
  .mode-card .mode-icon { font-size: 28px; }
  .mode-card h3 { font-size: 1rem; }
  .mode-card p { font-size: .74rem; }
  .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; }
  .map-ask { padding: 7px 14px; gap: 6px; }
  .map-ask-label { display: none; }
  .map-ask-pin { font-size: 22px; }
  .map-ask-flag { height: 24px; }
  .map-ask-name { font-size: 1.35rem; }
  body.fullscreen-game .map-controls button { width: 42px; height: 42px; }
  .map-controls button { width: 36px; height: 36px; }
  .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; }
}

/* Misket yarışı modu */
.mode-card.featured[data-mode="marble"] { background: linear-gradient(135deg, #ef4444, #f59e0b); }
#screen-race.active {
  position: fixed; inset: 0; z-index: 15; animation: none;
  background: linear-gradient(90deg, #86efac, #4ade80 50%, #86efac);
}
.race-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.race-top {
  position: absolute; z-index: 2; left: 0; right: 0; top: max(10px, env(safe-area-inset-top));
  display: flex; align-items: flex-start; gap: 8px; padding: 0 12px; pointer-events: none;
}
.race-top > * { pointer-events: auto; }
.race-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.race-rank li {
  display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 10px 4px 4px;
  font-weight: 800; font-size: .82rem; box-shadow: 0 3px 8px rgba(31,42,68,.18); max-width: 46%;
}
.race-rank li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .75rem; flex: none; }
.race-rank li img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.race-rank li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-rank li.me { background: var(--primary); color: #fff; }
.race-rank li.me b { background: #fff; color: var(--primary-dark); }
.race-progress {
  position: absolute; z-index: 2; right: 4px; top: 50%; width: 7px; height: 40vh; margin-top: -20vh;
  background: rgba(255,255,255,.6); border-radius: 999px; overflow: hidden; box-shadow: 0 2px 8px rgba(31,42,68,.2);
}
.race-progress div { width: 100%; height: var(--p, 0%); background: var(--primary); border-radius: 999px; }
.race-countdown {
  position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 18vw, 7rem); color: #fff;
  text-shadow: 0 5px 0 #b45309, 0 12px 30px rgba(0,0,0,.35);
}
.race-countdown.tick { animation: cd-pop .8s ease-out both; }
.race-countdown.go { color: #fde047; animation: cd-pop .7s ease-out both; }
@keyframes cd-pop { from { transform: scale(1.8); opacity: 0; } 30% { transform: scale(1); opacity: 1; } to { opacity: .9; } }
.race-hint {
  position: absolute; z-index: 2; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px); transform: translateX(-50%);
  margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(31,42,68,.82); color: #fff; font-weight: 800; font-size: .9rem;
  white-space: nowrap; pointer-events: none; transition: opacity .4s;
}
.race-hint.hide { opacity: 0; }
.race-picker { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(31,42,68,.25); }
.race-picker[hidden] { display: none; }
.race-picker-card { background: #fff; border-radius: 28px; padding: 22px 18px; width: 100%; max-width: 520px; text-align: center; box-shadow: var(--shadow); animation: pop-in .4s both; }
.race-picker-card h2 { font-family: var(--font-head); font-size: 2rem; margin: 0; color: var(--primary-dark); }
.race-picker-card p { margin: 4px 0 16px; color: var(--ink-soft); font-weight: 700; }
.race-pick-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.race-pick {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border: 0; border-radius: 22px;
  background: #fff7e6; box-shadow: 0 5px 0 var(--line); font: inherit; cursor: pointer; transition: transform .15s;
}
.race-pick:hover { transform: translateY(-3px); }
.race-pick:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.race-pick-ball {
  position: relative; width: 74px; height: 74px; border-radius: 50%; background: #e5e7eb center / cover no-repeat;
  box-shadow: 0 6px 10px rgba(0,0,0,.25), inset 0 0 0 3px rgba(255,255,255,.8);
  animation: ball-roll 3s ease-in-out infinite;
}
.race-pick:nth-child(2) .race-pick-ball { animation-delay: -.7s; }
.race-pick:nth-child(3) .race-pick-ball { animation-delay: -1.4s; }
.race-pick:nth-child(4) .race-pick-ball { animation-delay: -2.1s; }
.race-pick-ball::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0 9%, rgba(255,255,255,.3) 20%, transparent 36%), radial-gradient(circle, transparent 55%, rgba(0,0,0,.28));
}
@keyframes ball-roll { 50% { transform: rotate(-12deg) translateY(-4px); } }
.race-pick-name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; line-height: 1.15; color: var(--ink); }
@media (max-width: 420px) {
  .race-rank li { font-size: .74rem; }
  .race-hint { font-size: .8rem; }
  .race-pick-ball { width: 62px; height: 62px; }
}

/* Roket fırlat modu */
.mode-card.featured[data-mode="rocket"] { background: linear-gradient(135deg, #312e81, #7c3aed 60%, #f97316); }
.rocket-stage {
  position: relative; width: 100%; max-width: 760px; height: clamp(360px, 60vh, 560px); overflow: hidden;
  border-radius: 24px; border: 6px solid #fff; box-shadow: var(--shadow); touch-action: manipulation; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(1.6px 1.6px at 22px 34px, #fff 50%, transparent 52%) 0 0 / 110px 110px,
    radial-gradient(1.2px 1.2px at 74px 80px, rgba(255,255,255,.8) 50%, transparent 52%) 0 0 / 130px 130px,
    radial-gradient(2px 2px at 50px 12px, #fde68a 50%, transparent 52%) 0 0 / 170px 170px,
    radial-gradient(ellipse at 80% 10%, rgba(124,58,237,.55), transparent 55%),
    linear-gradient(#0b1440, #1e1b4b 60%, #312e81);
}
.rocket-pad {
  position: absolute; z-index: 1; width: 180px; height: 70px; margin-left: -90px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #94a3b8, #475569); box-shadow: 0 -4px 0 rgba(255,255,255,.25) inset;
}
.rocket-planet { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; }
.rocket-planet-ball {
  position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 70%);
  box-shadow: inset -8px -10px 0 rgba(0,0,0,.16), 0 0 24px rgba(255,255,255,.18); transition: box-shadow .3s, opacity .3s;
}
.rocket-planet-ball::after {
  content: ''; position: absolute; left: -18%; right: -18%; top: 44%; height: 14%; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.55); transform: rotate(-14deg);
}
.rocket-planet-name {
  position: absolute; left: 50%; bottom: calc(var(--r) + 8px); transform: translateX(-50%); width: max-content; max-width: 116px;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 4px 9px; text-align: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1.1; box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.rocket-planet-name small { display: block; font-family: var(--font-body, inherit); font-weight: 700; font-size: .68rem; color: var(--ink-soft); }
.rocket-planet.correct .rocket-planet-ball { box-shadow: 0 0 0 6px var(--good), 0 0 30px 10px rgba(34,197,94,.7); animation: planet-glow .9s ease-in-out 3; }
.rocket-planet.correct .rocket-planet-name { background: var(--good); color: #fff; }
.rocket-planet.correct .rocket-planet-name small { color: #dcfce7; }
.rocket-planet.wrong { animation: shake .55s; }
.rocket-planet.wrong .rocket-planet-ball { box-shadow: 0 0 0 6px var(--bad), 0 0 24px 6px rgba(239,68,68,.6); }
.rocket-planet.wrong .rocket-planet-name { background: var(--bad); color: #fff; }
.rocket-planet.wrong .rocket-planet-name small { color: #fee2e2; }
.rocket-planet.dim { opacity: .45; }
@keyframes planet-glow { 50% { box-shadow: 0 0 0 10px #86efac, 0 0 40px 16px rgba(34,197,94,.8); } }

.rocket-aim {
  position: absolute; width: 0; z-index: 1; border-left: 3px dashed rgba(255,255,255,.55);
  transform-origin: 50% 100%; margin-left: -1.5px; pointer-events: none; transition: opacity .2s;
}
.rocket-stage.flying .rocket-aim { opacity: 0; }
.rocket { position: absolute; left: 0; top: 0; z-index: 2; width: 76px; height: 152px; pointer-events: none; will-change: transform; }
.rocket svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.rocket-flag {
  position: absolute; left: 50%; top: 48.3%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.rocket-flame {
  position: absolute; left: 50%; top: 78%; width: 30%; height: 18%; transform: translateX(-50%) scale(.6); transform-origin: 50% 0;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; opacity: .7;
  background: radial-gradient(ellipse at 50% 10%, #fff7ae, #fde047 30%, #f97316 65%, transparent 72%);
  animation: flame-flicker .12s infinite alternate;
}
.rocket-stage.flying .rocket-flame { opacity: 1; height: 40%; transform: translateX(-50%) scale(1); }
@keyframes flame-flicker { to { filter: brightness(1.25); margin-top: 2px; } }
.rocket.gone { opacity: 0; transition: opacity .15s; }
.rocket.return { transition: transform .45s cubic-bezier(.2,1.3,.4,1); }
.rocket-boom {
  position: absolute; z-index: 3; font-size: 72px; line-height: 1; transform: translate(-50%, -50%); pointer-events: none;
  animation: boom .8s ease-out forwards;
}
@keyframes boom { from { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 60% { opacity: 1; } to { transform: translate(-50%, -50%) scale(1.7); opacity: 0; } }
.rocket-miss {
  position: absolute; z-index: 3; left: 50%; top: 42%; transform: translateX(-50%); white-space: nowrap;
  background: #fff; color: var(--primary-dark); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  padding: 8px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.rocket-miss.show { animation: miss-pop .3s both, fade-out .4s 1.6s forwards; }
@keyframes miss-pop { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%); } }
.rocket-controls { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 460px; }
.rocket-turn {
  flex: none; width: 64px; height: 64px; border: 0; border-radius: 50%; background: #fff; color: var(--ink);
  font-size: 1.6rem; font-weight: 800; box-shadow: 0 6px 0 var(--line), 0 10px 18px rgba(31,42,68,.18);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.rocket-turn:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--line); }
.rocket-fire { flex: 1; font-size: 1.35rem; padding: 16px 12px; }
.rocket-controls button:disabled { opacity: .5; }
.rocket-hint { margin: 0; text-align: center; font-size: .85rem; font-weight: 700; color: #0f4c75; }
@media (max-width: 560px) {
  .rocket-stage { border-width: 4px; border-radius: 18px; height: clamp(340px, 56vh, 480px); }
  .rocket { width: 62px; height: 124px; }
  .rocket-planet-name { font-size: .8rem; max-width: 78px; padding: 3px 5px; }
  .rocket-planet-name small { font-size: .6rem; }
  .rocket-turn { width: 58px; height: 58px; }
}
@keyframes fade-out { to { opacity: 0; } }

/* Roket modu tam ekran: sahne başlığın altından ekranın sonuna kadar, kontroller altta yüzer */
body.fullscreen-game .rocket-stage {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 0; width: auto; max-width: none; height: auto;
  border: 0; border-top: 4px solid #fff; border-radius: 24px 24px 0 0; pointer-events: auto;
  box-shadow: 0 -6px 18px rgba(31,42,68,.12);
}
body.fullscreen-game .rocket-controls {
  position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom));
  width: calc(100% - 24px); max-width: 460px; pointer-events: auto;
}
body.fullscreen-game .rocket-hint {
  position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px);
  width: max-content; max-width: calc(100% - 24px); padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.9); font-size: .78rem; animation: hint-fade 7s ease forwards; pointer-events: none;
}
@media (max-width: 560px) {
  body.fullscreen-game .rocket-controls { max-width: none; width: calc(100% - 84px); left: 12px; transform: none; gap: 10px; }
}
@media (max-height: 560px) {
  body.fullscreen-game .rocket { width: 46px; height: 92px; }
  body.fullscreen-game .rocket-turn { width: 48px; height: 48px; font-size: 1.3rem; }
  body.fullscreen-game .rocket-fire { padding: 10px; font-size: 1.1rem; }
  body.fullscreen-game .rocket-hint { display: none; }
  body.fullscreen-game .rocket-planet-name { font-size: .75rem; }
  body.fullscreen-game .rocket-planet-name small { display: none; }
}

/* Dünya Ülkeleri Quiz */
.mode-card.featured[data-mode="facts"] { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.facts-card {
  width: 100%; max-width: 680px; background: #fff; border-radius: 26px; padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; animation: pop-in .4s both;
}
.facts-card.shake { animation: shake .55s; }
.facts-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.facts-tag { background: #eef6ff; color: #1d4ed8; font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.facts-diff.easy { background: #dcfce7; color: #15803d; }
.facts-diff.medium { background: #fef3c7; color: #b45309; }
.facts-diff.hard { background: #fee2e2; color: #b91c1c; }
.facts-question { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.3; color: var(--ink); }
.facts-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facts-hint-list { display: contents; }
.facts-hint {
  background: #fffbeb; border: 2px dashed #f59e0b; color: #92400e; font-weight: 800; padding: 6px 12px; border-radius: 999px;
  animation: pop-in .3s both;
}
.facts-hint-btn {
  border: 0; border-radius: 999px; padding: 8px 16px; background: #ffe14d; color: var(--ink); font: inherit; font-weight: 800;
  box-shadow: 0 4px 0 #e2a100; cursor: pointer;
}
.facts-hint-btn small { font-weight: 700; color: #7c5e00; margin-left: 4px; }
.facts-hint-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #e2a100; }
.facts-hint-btn:disabled { opacity: .5; cursor: default; }

.facts-answer { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 20px; padding: 12px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(31,42,68,.1); }
.facts-img { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; object-fit: cover; display: block; }
.facts-img-empty {
  display: grid; place-items: center; font-size: 3rem; color: #94a3b8;
  background: repeating-linear-gradient(45deg, #f1f5f9 0 14px, #e2e8f0 14px 28px); border: 2px dashed #cbd5e1;
}
.facts-answer-body { padding: 0 4px 4px; }
.facts-answer-country { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--primary-dark); }
.facts-answer-country img { height: 28px; width: auto; border-radius: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.facts-answer-title { margin: 4px 0 2px; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.facts-answer-text { margin: 0; font-weight: 700; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 560px) {
  .facts-card { padding: 14px; border-radius: 20px; }
  .facts-question { font-size: 1.12rem; }
  .facts-answer-country { font-size: 1.25rem; }
}
