/* Geode Burst arayüzü: tam ekran tuval, üstünde cam görünümlü menüler */
:root {
  --ink: #07060c;
  --glass: rgba(20, 16, 34, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4efff;
  --muted: #a99fc4;
  --gold: #ffd27a;
  --rose: #ff7fb0;
  --wh: 275;
  --font: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--font); overflow: hidden; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
#stage { position: fixed; inset: 0; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#safeProbe { position: absolute; left: 0; top: 0; width: 1px; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); visibility: hidden; pointer-events: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

#hud {
  position: absolute; left: 0; right: 0; top: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; pointer-events: none;
}
#hud > * { pointer-events: auto; }
.hud-level { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hud-level b { color: var(--text); font-size: 20px; letter-spacing: .02em; }
.hud-score { justify-self: end; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

.icon-btn { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); display: grid; place-items: center; }
.icon-btn:active { transform: scale(.94); }
.pause-glyph { width: 12px; height: 14px; border-left: 4px solid var(--text); border-right: 4px solid var(--text); }
.gear-glyph { width: 18px; height: 18px; border-radius: 50%; border: 3px dotted var(--text); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .0); position: relative; }
.gear-glyph::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--text); }
.play-glyph { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; display: inline-block; }

#hint {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 172px); transform: translateX(-50%);
  font-size: 15px; font-weight: 700; color: var(--text); background: rgba(10, 8, 20, .55); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none; animation: hintPulse 2.2s ease-in-out infinite;
}
@keyframes hintPulse { 50% { opacity: .55; } }
#toast {
  position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.85); opacity: 0; pointer-events: none;
  font-weight: 900; font-size: 28px; letter-spacing: .02em; white-space: nowrap; color: #fff;
  text-shadow: 0 0 22px rgba(255, 210, 122, .85), 0 2px 10px rgba(0, 0, 0, .6);
  transition: opacity .35s, transform .55s cubic-bezier(.2, 1.6, .4, 1);
}
#toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#menu {
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(20px, env(safe-area-inset-left, 0px));
  background: radial-gradient(ellipse at 50% 42%, rgba(7, 6, 12, 0) 0%, rgba(7, 6, 12, .35) 55%, rgba(7, 6, 12, .85) 100%);
}
.menu-top { align-self: stretch; display: flex; justify-content: flex-end; margin-bottom: -28px; }
#menu { justify-content: flex-start; }
.menu-bottom { margin-top: auto; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .86; margin-top: 1vh; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6)); }
.logo span { font-weight: 900; font-size: clamp(46px, 14vw, 104px); letter-spacing: .04em; display: flex; }
.logo i { font-style: normal; display: inline-block; }
.logo-a { background: linear-gradient(180deg, #ffffff 0%, #e8dcff 55%, #b79cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-b { background: linear-gradient(180deg, #ffe7a8 0%, var(--gold) 40%, var(--rose) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; animation: logoGlow 3s ease-in-out infinite; }
@keyframes logoGlow { 50% { filter: drop-shadow(0 0 18px rgba(255, 150, 190, .55)); } }
.tagline { margin: 14px 0 0; color: var(--muted); font-size: 16px; font-weight: 600; letter-spacing: .03em; text-align: center; }
.menu-bottom { width: min(360px, 100%); display: flex; flex-direction: column; gap: 14px; }
.menu-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.menu-stats div { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-stats span { font-size: 10px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; color: var(--muted); }
.menu-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }

.primary, .secondary, .ghost, .row { width: 100%; border-radius: 16px; font-weight: 800; font-size: 17px; padding: 16px 18px; transition: transform .12s; }
.primary:active, .secondary:active, .ghost:active, .row:active { transform: scale(.97); }
.primary { background: linear-gradient(180deg, #ffe39b, var(--gold) 45%, #f0a94f); color: #2a1600; box-shadow: 0 10px 30px rgba(255, 190, 90, .25), inset 0 1px 0 rgba(255, 255, 255, .6); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.primary small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.primary.reward { flex-direction: row; justify-content: center; gap: 10px; background: linear-gradient(180deg, #a7f3c4, #4fd18b 50%, #2fa86a); color: #04230f; box-shadow: 0 10px 30px rgba(79, 209, 139, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.secondary { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.ghost { color: var(--muted); padding: 10px; }

.sheet-wrap { background: rgba(5, 4, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 0 20px; }
.sheet { width: min(360px, 100%); background: var(--glass); border: 1px solid var(--line); border-radius: 26px; padding: 24px 20px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: sheetIn .35s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes sheetIn { from { transform: translateY(18px) scale(.96); opacity: 0; } }
.sheet h2 { margin: 0 0 6px; text-align: center; font-size: 26px; font-weight: 900; letter-spacing: .01em; }
.sheet .lead { margin: -4px 0 8px; text-align: center; color: var(--muted); }
.sheet .fine { margin: 6px 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.row { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-weight: 700; font-size: 16px; padding: 14px 16px; }
.row b { color: var(--gold); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.row b.off { color: var(--muted); }

.result .kicker { margin: 0; text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stars { display: flex; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.stars i { width: 52px; height: 52px; background: rgba(255, 255, 255, .12); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transform: scale(.85); transition: transform .45s cubic-bezier(.2, 1.8, .4, 1), background .2s; }
.stars i:nth-child(2) { transform: translateY(-8px) scale(.95); }
.stars i.on { background: linear-gradient(180deg, #fff3c4, var(--gold) 50%, #f39a3d); transform: scale(1.05); filter: drop-shadow(0 0 12px rgba(255, 200, 100, .8)); }
.stars i:nth-child(2).on { transform: translateY(-8px) scale(1.15); }
.result-score { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 6px; }
.result-score span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.result-score b { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.badge { margin: -4px 0 4px; text-align: center; color: var(--rose); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }

.ad-sim { background: rgba(0, 0, 0, .9); gap: 10px; text-align: center; padding: 0 20px; }
.ad-tag { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--muted); border-radius: 8px; padding: 6px 10px; }
.ad-sim b { font-size: 76px; font-weight: 900; color: var(--gold); }
.ad-sim p { margin: 0; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  #hint, .logo-b { animation: none; }
  .sheet { animation: none; }
}

/* ---------- Açılış sahnesi ---------- */
#menu.intro .logo i { animation: letterDrop .7s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(1.05s + var(--i) * 55ms); }
#menu.intro .tagline { animation: fadeUp .6s ease-out both; animation-delay: 1.85s; }
#menu.intro .menu-bottom { animation: fadeUp .6s ease-out both; animation-delay: 2.05s; }
#menu.intro .menu-top { animation: fadeUp .5s ease-out both; animation-delay: 2.2s; }
@keyframes letterDrop { from { transform: translateY(-60px) scale(1.4); opacity: 0; filter: blur(6px); } }
@keyframes fadeUp { from { transform: translateY(16px); opacity: 0; } }
.menu-bottom .secondary { padding: 13px 18px; }

/* ---------- Liste ekranları ---------- */
.list-screen { justify-content: flex-start; background: rgba(6, 5, 12, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 16px) max(16px, env(safe-area-inset-left, 0px)); }
.top-bar { width: min(560px, 100%); display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; gap: 8px; margin-bottom: 10px; }
.top-bar h2 { margin: 0; text-align: center; font-size: 22px; font-weight: 900; }
.star-count { justify-self: end; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; font-size: 14px; }
.back-glyph { width: 12px; height: 12px; border-left: 3px solid var(--text); border-bottom: 3px solid var(--text); transform: translateX(2px) rotate(45deg); }
.world-list { width: min(560px, 100%); flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.world-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; text-align: left; padding: 14px; border-radius: 22px;
  background: linear-gradient(135deg, hsla(var(--h), 70%, 45%, .28), hsla(var(--h), 70%, 20%, .2)); border: 1px solid hsla(var(--h), 90%, 75%, .3);
  animation: fadeUp .45s ease-out both; animation-delay: calc(var(--i) * 70ms); }
.world-card:active { transform: scale(.98); }
.world-card .gem, .tip-gem { width: 84px; height: 84px; clip-path: polygon(50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0 50%, 15% 15%);
  background:
    radial-gradient(circle at 50% 50%, #fff 0 6%, hsl(var(--h) 100% 78%) 7% 14%, transparent 15%),
    linear-gradient(135deg, rgba(255,255,255,.22) 0 30%, transparent 30%),
    conic-gradient(from 22.5deg, hsl(var(--h) 70% 30%) 0 45deg, hsl(var(--h) 80% 58%) 45deg 90deg, hsl(calc(var(--h) + 18) 65% 40%) 90deg 135deg, hsl(var(--h) 85% 66%) 135deg 180deg,
      hsl(calc(var(--h) - 16) 60% 28%) 180deg 225deg, hsl(var(--h) 75% 48%) 225deg 270deg, hsl(calc(var(--h) + 10) 70% 36%) 270deg 315deg, hsl(var(--h) 90% 72%) 315deg 360deg);
  filter: drop-shadow(0 0 14px hsla(var(--h), 90%, 60%, .55)); }
.world-card .gem.art { clip-path: none; border-radius: 0; }
.wc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wc-text span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.wc-text b { font-size: 19px; font-weight: 900; }
.wc-text small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.wc-text em { font-style: normal; font-weight: 800; color: var(--gold); font-size: 13px; margin-top: 2px; }
.world-card.locked { filter: grayscale(.85) brightness(.6); }
.world-card.locked em { color: var(--muted); }
.world-desc { width: min(560px, 100%); margin: 0 0 10px; color: var(--muted); text-align: center; font-size: 14px; }
.level-grid { width: min(440px, 100%); flex: 1; min-height: 0; align-content: start; display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; overflow-y: auto; padding: 4px 4px 12px; }
.lvl { aspect-ratio: 1; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: hsla(var(--h), 60%, 40%, .22); border: 1px solid hsla(var(--h), 90%, 75%, .28); font-weight: 900; font-size: 20px;
  animation: fadeUp .35s ease-out both; animation-delay: calc(var(--i) * 18ms); }
.lvl:active { transform: scale(.94); }
.lvl .ls { display: flex; gap: 2px; }
.lvl .ls i { width: 9px; height: 9px; background: rgba(255, 255, 255, .18); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.lvl .ls i.on { background: var(--gold); }
.lvl.current { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 210, 122, .35); animation: fadeUp .35s ease-out both, curPulse 1.8s ease-in-out infinite; }
@keyframes curPulse { 50% { box-shadow: 0 0 4px rgba(255, 210, 122, .15); } }
.lvl.giant { background: hsla(var(--h), 70%, 45%, .38); }
.lvl.locked { opacity: .35; }
.tip-sheet { align-items: center; }
.tip-sheet .kicker { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tip-sheet .lead { margin: 0 0 6px; line-height: 1.45; }
.tip-gem { margin: 6px 0; }
@media (prefers-reduced-motion: reduce) {
  #menu.intro .logo i, #menu.intro .tagline, #menu.intro .menu-bottom, #menu.intro .menu-top, .world-card, .lvl { animation: none; }
}

/* ---------- Menü kutucukları: dünyalar, günlük jeot, ödül ---------- */
.menu-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 4px 9px; border-radius: 16px; min-width: 0;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-weight: 800; font-size: 14px; transition: transform .12s; }
.tile:active { transform: scale(.96); }
.tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 2px; }
.tile svg .fill { fill: currentColor; stroke: none; }
.tile > span { white-space: nowrap; }
.tile small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; white-space: nowrap; min-height: 14px; }
.t-worlds svg { color: #c9a8ff; }
.t-daily svg { color: var(--gold); }
.t-gift svg { color: var(--rose); }
.tile.hot { border-color: rgba(255, 210, 122, .55); box-shadow: 0 0 18px rgba(255, 210, 122, .22); animation: tileGlow 2.2s ease-in-out infinite; }
.tile.hot small { color: var(--gold); }
.tile.done small { color: #8fe3b0; }
@keyframes tileGlow { 50% { box-shadow: 0 0 4px rgba(255, 210, 122, .08); } }
.tile .dot { position: absolute; top: 8px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); }

/* ---------- Günlük ödül ---------- */
.gift-sheet { align-items: center; }
.gift-sheet .kicker { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.gift-sheet h2 { margin-bottom: 0; }
.gift-orb { position: relative; width: 112px; height: 112px; border-radius: 50%; margin: 4px 0 6px;
  background: radial-gradient(circle at 38% 32%, #fff 0 8%, #e4ecff 24%, #9db8ff 56%, rgba(120, 150, 255, 0) 72%);
  filter: drop-shadow(0 0 26px rgba(160, 190, 255, .55)); animation: orbFloat 2.6s ease-in-out infinite; }
.gift-orb.art { background: var(--orb) center / 82% no-repeat, radial-gradient(circle, rgba(160, 190, 255, .35), rgba(160, 190, 255, 0) 70%); }
.gift-orb b { position: absolute; right: -16px; bottom: -2px; padding: 4px 12px; border-radius: 999px; font-size: 21px; font-weight: 900; color: #2a1600;
  background: linear-gradient(180deg, #ffe39b, var(--gold) 45%, #f0a94f); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.gift-orb.pop { animation: orbPop .9s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes orbFloat { 50% { transform: translateY(-6px); } }
@keyframes orbPop { 35% { transform: scale(1.35); filter: drop-shadow(0 0 60px rgba(255, 220, 140, .95)); } }
.gift-name { margin: 0; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.gift-name b { font-size: 16px; }
.gift-name span { font-size: 13px; color: var(--muted); }
.days { width: 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 6px 0 4px; }
.day { border-radius: 10px; padding: 6px 0 5px; text-align: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.day span { font-size: 9px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.day b { font-size: 15px; font-weight: 900; }
.day.done { background: rgba(79, 209, 139, .13); border-color: rgba(79, 209, 139, .4); }
.day.done b { color: #8fe3b0; }
.day.today { background: rgba(255, 210, 122, .16); border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 210, 122, .35); }
.day.today b { color: var(--gold); }
.fine.center { text-align: center; margin: 0; }
.token-btn { display: flex; align-items: center; justify-content: center; gap: 10px; border-color: rgba(160, 190, 255, .45); }
.mini-orb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff 0 15%, #c9d8ff 45%, #7f9cf0 80%); box-shadow: 0 0 10px rgba(160, 190, 255, .7); }
@media (prefers-reduced-motion: reduce) { .tile.hot, .gift-orb { animation: none; } }

/* ---------- Canlı renkler ---------- */
/* Menü kutucukları kendi renginde parlar. */
.t-worlds { background: linear-gradient(160deg, rgba(168, 120, 255, .38), rgba(90, 50, 180, .16)); border-color: rgba(200, 165, 255, .42); }
.t-daily { background: linear-gradient(160deg, rgba(255, 196, 92, .34), rgba(190, 110, 30, .14)); border-color: rgba(255, 214, 140, .42); }
.t-gift { background: linear-gradient(160deg, rgba(255, 110, 170, .36), rgba(170, 40, 110, .15)); border-color: rgba(255, 160, 200, .42); }
.tile svg { filter: drop-shadow(0 0 8px currentColor); }
.menu-stats div { background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); }
#menuScore { background: linear-gradient(180deg, #fff, #ffe2a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
#menuStars { color: var(--gold); }
#menuTokens { color: #b9cdff; }

/* Açılan pencereler o anki dünyanın renginde. */
.sheet { background: linear-gradient(180deg, hsla(var(--wh), 80%, 38%, .6), rgba(20, 16, 34, .9) 52%); border-color: hsla(var(--wh), 90%, 78%, .28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px hsla(var(--wh), 90%, 60%, .16); }
.result { position: relative; overflow: hidden; }
.result > :not(.rays) { position: relative; }
.result .kicker { color: hsl(var(--wh) 90% 82%); }
.rays { position: absolute; left: 50%; top: 118px; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, hsla(45, 100%, 75%, .16) 0deg 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 62%); mask: radial-gradient(circle, #000 0 18%, transparent 62%); }
.rays.on { animation: raysIn .8s ease-out .2s forwards, raysSpin 18s linear infinite; }
@keyframes raysIn { to { opacity: 1; } }
@keyframes raysSpin { to { transform: rotate(360deg); } }

/* Dünya kartlarında ilerleme çubuğu. */
.world-card .bar { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.world-card .bar b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, hsl(var(--h) 90% 62%), hsl(calc(var(--h) + 40) 100% 74%)); box-shadow: 0 0 10px hsl(var(--h) 90% 60%); }
.world-card { background: linear-gradient(135deg, hsla(var(--h), 80%, 52%, .36), hsla(var(--h), 70%, 22%, .22)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }

/* Bölüm seçimi: dünya görseli ve parlayan kristal düğmeler. */
.levels-art { width: 108px; height: 108px; margin: -4px 0 4px; flex: none; background: center / contain no-repeat;
  filter: drop-shadow(0 0 22px hsla(var(--h), 90%, 60%, .6)); animation: orbFloat 3.2s ease-in-out infinite; }
.lvl { font-size: 18px; border-radius: 16px; position: relative;
  background: linear-gradient(160deg, hsla(var(--h), 90%, 66%, .5), hsla(var(--h), 75%, 34%, .32) 60%, hsla(calc(var(--h) + 30), 80%, 30%, .3));
  border: 1px solid hsla(var(--h), 95%, 80%, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 14px rgba(0, 0, 0, .25);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.lvl.giant { background: linear-gradient(160deg, hsla(var(--h), 95%, 72%, .7), hsla(var(--h), 80%, 40%, .45) 60%, hsla(calc(var(--h) + 30), 85%, 36%, .4)); border-width: 2px; }
.lvl.perfect { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 14px hsla(var(--h), 95%, 65%, .45); }
.lvl.locked { opacity: 1; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .3); box-shadow: none; text-shadow: none; }
.lvl.locked .ls { visibility: hidden; }
.lvl .ls i { width: 8px; height: 8px; }
@media (prefers-reduced-motion: reduce) { .rays.on { animation: raysIn .01s forwards; } .levels-art { animation: none; } }
.world-list, .level-grid { scrollbar-width: none; }
.world-list::-webkit-scrollbar, .level-grid::-webkit-scrollbar { display: none; }

/* ---------- Bölüm başı yazısı ---------- */
#banner { position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; opacity: 0; padding: 14px 0 16px;
  background: linear-gradient(90deg, rgba(8, 6, 16, 0), rgba(8, 6, 16, .78) 22%, rgba(8, 6, 16, .78) 78%, rgba(8, 6, 16, 0));
  text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
#banner span { font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: hsl(var(--wh) 90% 82%); }
#banner b { font-size: 46px; font-weight: 900; letter-spacing: .01em; background: linear-gradient(180deg, #fff, hsl(var(--wh) 100% 84%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#banner em { font-style: normal; font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #2a1600; background: linear-gradient(180deg, #ffe39b, var(--gold) 45%, #f0a94f); padding: 4px 12px; border-radius: 999px; margin-top: 4px; }
#banner em:empty { display: none; }
#banner.on { animation: bannerIn 1.9s cubic-bezier(.2, 1, .3, 1) forwards; }
@keyframes bannerIn { 0% { opacity: 0; transform: scale(1.25); filter: blur(6px); } 18% { opacity: 1; transform: scale(1); filter: blur(0); } 72% { opacity: 1; transform: scale(.98); } 100% { opacity: 0; transform: scale(.92) translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { #banner.on { animation-timing-function: steps(1); } }

/* ---------- Tablet: arayüz telefon oranında büyür ---------- */
@media (min-width: 700px) and (min-height: 900px) {
  .screen:not(.ad-sim), #hud, #banner, #toast, #hint { zoom: 1.45; }
}
