/* Spark Reef arayuz: canli jole/cam dugme dili (parlak gradyan, speküler, gölge). Mantiksal ozellikler (RTL). Tahta tuvali AYRI (LTR). */
:root { --bg:#4B2BB8; --glass:rgba(76,34,176,.66); --glass2:rgba(86,42,190,.5); --line:rgba(255,255,255,.5); --txt:#FFFFFF; --dim:#E6D9FF; --cy:#19F0DC; --lime:#7CFF9B; --gold:#FFD23C; --red:#FF5577; --acc:#19F0DC;
  --jelly: linear-gradient(180deg, rgba(255,255,255,.42) 0, rgba(255,255,255,.12) 46%, rgba(50,14,140,.38) 50%, rgba(120,60,230,.5) 100%);
  --jshadow: 0 3px 0 rgba(36,8,110,.5), 0 8px 16px rgba(30,0,100,.35), inset 0 1.5px 0 rgba(255,255,255,.7);
  --safeT: env(safe-area-inset-top, 0px); --safeB: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font-family: "Fredoka", ui-rounded, "Trebuchet MS", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
#cvbg, #cvamb, #cvamb2, #cvray { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
#cvray { animation: raysway 11s ease-in-out infinite alternate; will-change: transform, opacity; }   /* isik demetleri: yavas salinim (kompozitor) */
@keyframes raysway { from { transform: translateX(-3%); opacity: .8; } to { transform: translateX(3%); opacity: 1; } }
#brd { position: fixed; display: none; z-index: 0; pointer-events: none; will-change: transform; }
#brd canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#cvbl { animation: jel 2.8s ease-in-out infinite; }   /* hareketsiz toplar: tek ortak, cok hafif jole nefesi (kompozitor; hicbir top ayri vurgulanmaz) */
@keyframes jel { 0%,100% { transform: scale(1.006, .994); } 50% { transform: scale(.994, 1.006); } }
#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; direction: ltr; }
#flashov { position: fixed; inset: 0; pointer-events: none; z-index: 39; opacity: 0; background: #fff; }
#cvfx { display: none; position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; direction: ltr; }
#app { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; pointer-events: none; }
.screen.on { display: flex; }
.screen > * { pointer-events: auto; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
svg { display: block; }
.ic { width: 28px; height: 28px; object-fit: contain; flex: none; }
.ic.score { color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }

/* ust cubuk */
.topbar { display: flex; gap: 8px; align-items: center; padding: calc(8px + var(--safeT)) 12px 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--jelly), var(--glass); border: 2px solid var(--line); box-shadow: var(--jshadow); font-weight: 800; font-size: 15px; color: var(--txt); min-height: 38px; text-shadow: 0 1px 0 rgba(36,8,110,.6); }
.chip.stars { color: var(--gold); } .chip.stars b { color: var(--txt); }
.chip.glowc { color: var(--cy); margin-inline-end: auto; } .chip.glowc b { color: var(--txt); }
.chip.lives { color: #FF7A8A; } .chip.lives b { color: var(--txt); } .chip.lives i { font-style: normal; font-size: 12px; color: var(--dim); font-weight: 600; min-width: 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--jelly), var(--glass); border: 2px solid var(--line); box-shadow: var(--jshadow); display: inline-flex; align-items: center; justify-content: center; color: var(--txt); }
.icon-btn:active, .node:active, .chip.lives:active { transform: scale(.94); }
.btn, .icon-btn, .pwbtn, .chip.lives, .sbtn, .lang { transition: transform .22s cubic-bezier(.3,2.1,.5,1), filter .15s; }
.btn:active { transform: translateY(3px) scale(1.05, .9); filter: brightness(1.08); }   /* jole basma: ezilir, birakinca sekerek geri doner */
.icon-btn:active, .pwbtn:active, .sbtn:active { transform: scale(1.1, .88); }
.moves.bump, .gchip.bump { animation: bump .42s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.18, .88); } 60% { transform: scale(.94, 1.08); } 100% { transform: scale(1); } }
.bigstars i.on { position: relative; display: inline-block; }
.bigstars i.on svg { animation: starGlow 1.7s ease-in-out infinite; }
.bigstars i.on:nth-child(2) svg, .bigstars i.on:nth-child(2)::after { animation-delay: .35s; } .bigstars i.on:nth-child(3) svg, .bigstars i.on:nth-child(3)::after { animation-delay: .7s; }
.bigstars i.on::after { content: ""; position: absolute; width: 26px; height: 26px; left: 50%; top: 14%; margin-left: -13px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: starSpark 1.7s ease-in-out infinite; pointer-events: none; }
@keyframes starGlow { 0%,100% { filter: brightness(1); transform: scale(1); } 40% { filter: brightness(1.35); transform: scale(1.07) rotate(-3deg); } 70% { filter: brightness(1.1); transform: scale(.98); } }
@keyframes starSpark { 0%,100% { opacity: 0; transform: scale(.2) rotate(0); } 40% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.3) rotate(90deg); } }

/* harita */
.mapscroll { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; -webkit-overflow-scrolling: touch; scrollbar-width: none; mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 96px), transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 96px), transparent 100%); }
.mapscroll::-webkit-scrollbar { display: none; }
.mapinner { position: relative; width: 100%; direction: ltr; }
.path { position: absolute; inset: 0; pointer-events: none; }
.trail { fill: none; stroke: rgba(255,255,255,.92); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 13; filter: drop-shadow(0 0 5px rgba(120,255,240,.9)); }
.trailglow { fill: none; stroke: rgba(120,255,240,.34); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.node { position: absolute; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 38% 26%, #fff 0, #C9FFF6 10%, #2CF2DC 34%, #0AA6D0 76%, #0A58A8 100%); border: 3px solid #fff; color: #053040; font-weight: 800; font-size: 21px; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 rgba(8,70,140,.65), 0 0 22px rgba(25,240,220,.85), inset 0 -7px 10px rgba(0,70,130,.35); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.node::before { content: ""; position: absolute; left: 16%; right: 16%; top: 6%; height: 40%; border-radius: 50% 50% 60% 60% / 80% 80% 40% 40%; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.05)); pointer-events: none; }
.node .n { display: flex; align-items: center; justify-content: center; }
.node.locked { background: radial-gradient(circle at 38% 26%, #E2D4FF 0, #A98BFF 28%, #6A3FD8 72%, #432296 100%); border-color: rgba(255,255,255,.7); color: #fff; box-shadow: 0 5px 0 rgba(40,10,110,.6), 0 0 12px rgba(160,120,255,.5), inset 0 -7px 10px rgba(30,0,100,.35); text-shadow: 0 1px 0 rgba(40,10,110,.6); }
.node.done { background: radial-gradient(circle at 38% 26%, #fff, #FFF1A8 12%, #FFD23C 40%, #FF9A1A 82%, #D4600A 100%); box-shadow: 0 5px 0 rgba(150,70,0,.65), 0 0 22px rgba(255,210,60,.85), inset 0 -7px 10px rgba(180,80,0,.35); color: #5a2a00; }
.node.cur { animation: pulse 1.6s ease-in-out infinite; width: 76px; height: 76px; font-size: 27px; background: radial-gradient(circle at 38% 26%, #fff, #D8FFE0 10%, #6CFF9E 34%, #19D8C0 76%, #0A8CB0 100%); }
.node .sr { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); display: flex; margin-top: 1px; }
.node .sm { color: rgba(255,255,255,.3); } .node .sm.on { color: var(--gold); filter: drop-shadow(0 1px 0 rgba(150,70,0,.8)); } .node .sm svg { width: 14px; height: 14px; }
.node .tag { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; white-space: nowrap; color: #bfe; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 8px; font-weight: 700; }
.node .tag.hard { color: #ffd0d4; background: rgba(120,20,30,.7); }
.zone { position: absolute; left: 0; right: 0; width: fit-content; margin: 0 auto; text-align: center; font-weight: 800; letter-spacing: .06em; font-size: 11.5px; color: #fff; text-transform: uppercase; pointer-events: none; padding: 3px 14px; border-radius: 999px; background: var(--jelly), rgba(90,40,200,.55); border: 2px solid rgba(255,255,255,.6); box-shadow: var(--jshadow); text-shadow: 0 1px 0 rgba(36,8,110,.7); }
@keyframes pulse { 0%,100% { box-shadow: 0 5px 0 rgba(8,70,140,.65), 0 0 16px rgba(25,240,220,.7), inset 0 -7px 10px rgba(0,70,130,.35); } 50% { box-shadow: 0 5px 0 rgba(8,70,140,.65), 0 0 40px rgba(124,255,155,1), inset 0 -7px 10px rgba(0,70,130,.35); } }
.btn.bigplay { position: absolute; inset-inline: 24px; bottom: calc(16px + var(--safeB)); }

/* dugmeler */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 22px; border-radius: 18px; font-weight: 800; font-size: 17px; letter-spacing: .01em; background: var(--jelly), var(--glass2); border: 2px solid var(--line); box-shadow: var(--jshadow); color: var(--txt); text-align: center; line-height: 1.15; text-shadow: 0 1px 0 rgba(36,8,110,.6); }
.btn .bt { display: block; position: relative; z-index: 1; }
.btn.primary::before, .btn.gold::before { content: ""; position: absolute; left: 7%; right: 7%; top: 5%; height: 44%; border-radius: 16px 16px 50% 50% / 60% 60% 30% 30%; background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.06)); pointer-events: none; }
.btn.primary { background: linear-gradient(180deg, #A8FFDA 0%, #2EF2C6 44%, #0DC4BE 100%); color: #03403f; border: 2px solid #fff; box-shadow: 0 6px 0 #078088, 0 10px 24px rgba(0,235,205,.6), inset 0 -5px 8px rgba(0,120,130,.35); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.btn.big { min-height: 58px; font-size: 21px; border-radius: 20px; }
.btn.small { min-height: 40px; font-size: 14px; padding: 6px 15px; border-radius: 14px; }
.btn.gold { background: linear-gradient(180deg, #FFF2A0 0%, #FFD23C 46%, #FF9F1C 100%); color: #4a2400; border: 2px solid #fff; box-shadow: 0 6px 0 #B8620A, 0 10px 22px rgba(255,190,40,.55), inset 0 -5px 8px rgba(180,80,0,.35); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.btn.ad { background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.08) 50%, rgba(80,20,170,.4) 52%), rgba(150,90,255,.7); border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn.danger { background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.08) 50%, rgba(150,10,50,.35) 52%), rgba(255,77,110,.7); border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); border-color: rgba(255,255,255,.35); }
.btn:disabled { opacity: .5; }

/* HUD */
.hud { padding: calc(8px + var(--safeT)) 12px 6px; display: flex; flex-direction: column; gap: 8px; }
.hrow { display: flex; align-items: center; gap: 10px; }
.hrow .ttl { flex: 1; text-align: center; font-weight: 800; font-size: 20px; color: #fff; text-shadow: 0 2px 0 rgba(36,8,110,.7), 0 0 12px rgba(255,255,255,.35); }
.moves { display: flex; flex-direction: column; align-items: center; min-width: 80px; padding: 5px 13px; border-radius: 18px; background: var(--jelly), var(--glass); border: 2px solid var(--line); box-shadow: var(--jshadow); line-height: 1; }
.moves small { font-size: 11px; color: #fff; text-shadow: 0 1px 0 rgba(36,8,110,.6); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.moves b { font-size: 30px; color: #fff; text-shadow: 0 2px 0 rgba(36,8,110,.7); font-variant-numeric: tabular-nums; } .moves b.low { color: var(--red); animation: pulse2 1s infinite; }
@keyframes pulse2 { 50% { transform: scale(1.12); } }
.goalrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px 4px 6px; border-radius: 999px; background: var(--jelly), var(--glass); border: 2px solid var(--line); box-shadow: var(--jshadow); font-weight: 800; font-size: 17px; min-height: 42px; text-shadow: 0 1px 0 rgba(36,8,110,.6); }
.gchip.done { border-color: var(--lime); color: var(--lime); }
.prog { height: 12px; border-radius: 8px; background: rgba(40,8,120,.5); border: 2px solid rgba(255,255,255,.5); box-shadow: inset 0 2px 3px rgba(20,0,80,.5); overflow: hidden; margin: 0 6px; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0) 55%), linear-gradient(90deg, #FFD23C, #7CFF9B 60%, #19F0DC); border-radius: 8px; transition: width .35s; box-shadow: 0 0 10px rgba(255,230,100,.8); }
.powers { margin-top: auto; display: flex; justify-content: center; gap: 14px; padding: 8px 12px calc(10px + var(--safeB)); min-height: 76px; }
.pwbtn { position: relative; width: 68px; height: 68px; border-radius: 22px; background: var(--jelly), var(--glass); border: 2px solid var(--line); box-shadow: var(--jshadow); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.pwbtn small { font-size: 10px; color: #fff; font-weight: 700; text-shadow: 0 1px 0 rgba(36,8,110,.6); }
.pwbtn b { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 24px; height: 24px; border-radius: 12px; background: linear-gradient(180deg, #FFF2A0, #FFB41C); border: 2px solid #fff; color: #4a2400; font-size: 13px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.pwbtn.act { border-color: var(--gold); box-shadow: 0 0 22px rgba(255,210,60,.95), var(--jshadow); } .pwbtn.dis { opacity: .45; }
.tutwrap { position: absolute; inset-inline: 14px; bottom: calc(90px + var(--safeB)); pointer-events: none; z-index: 5; }
.tut { pointer-events: auto; background: linear-gradient(180deg, rgba(150,90,240,.97), rgba(80,36,180,.98)); border: 2px solid #fff; border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 6px 0 rgba(36,8,110,.5), 0 12px 30px rgba(30,0,100,.5), inset 0 2px 0 rgba(255,255,255,.5); animation: rise .35s ease-out; }
.tut p { margin: 0; text-align: center; font-weight: 700; font-size: 16px; line-height: 1.3; }
.skipwrap { position: absolute; inset-inline: 0; bottom: calc(24px + var(--safeB)); display: flex; justify-content: center; pointer-events: none; }
.skipwrap .btn { pointer-events: auto; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

/* modal */
#overlay { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
#overlay.on { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: rgba(35,8,95,.4); opacity: 0; transition: opacity .2s; } .scrim.in { opacity: 1; }
.modal { position: absolute; inset-inline: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; }
.modal > * { pointer-events: auto; transform: translateY(-40px) scale(.96); opacity: 0; transition: transform .25s cubic-bezier(.2,.9,.3,1.2), opacity .2s; }
.modal.in > * { transform: none; opacity: 1; }
.modal.pop > * { transform: scale(.85); } .modal.pop.in > * { transform: none; }
.card { width: min(420px, 100%); max-height: calc(100% - 20px); overflow-y: auto; background: linear-gradient(180deg, rgba(255,255,255,.3) 0, rgba(255,255,255,.05) 14%, rgba(0,0,0,0) 15%), linear-gradient(180deg, rgba(128,70,240,.98), rgba(66,28,160,.99)); border: 3px solid #fff; border-radius: 28px; padding: 18px; box-shadow: 0 8px 0 rgba(36,8,110,.55), 0 22px 60px rgba(20,0,90,.6), 0 0 44px rgba(124,255,240,.35), inset 0 2px 0 rgba(255,255,255,.6); display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-size: 26px; font-weight: 800; text-align: center; text-shadow: 0 2px 0 rgba(36,8,110,.7), 0 0 14px rgba(255,255,255,.3); }
.card p, .card .sub { margin: 0; text-align: center; color: var(--txt); font-size: 16px; line-height: 1.35; }
.dim { color: var(--dim) !important; } .tiny { font-size: 12px !important; }
.row { display: flex; gap: 10px; align-items: center; } .row.between { justify-content: space-between; } .row.actions > * { flex: 1; }
.col { display: flex; flex-direction: column; gap: 10px; } .col.actions { margin-top: 4px; }
.row.between h2 { text-align: start; }
.chip.diff { min-height: 28px; font-size: 13px; padding: 2px 12px; } .chip.diff.easy { color: var(--lime); } .chip.diff.medium { color: var(--gold); } .chip.diff.hard { color: #ff8a96; }
.goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.goals li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.17); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); border-radius: 16px; padding: 8px 12px; font-weight: 700; font-size: 17px; }
.goals .ic { width: 34px; height: 34px; }
.meta { font-size: 14px; color: var(--dim); font-weight: 700; }
.stars-mini i { color: rgba(255,255,255,.2); display: inline-block; } .stars-mini i.on { color: var(--gold); } .stars-mini svg { width: 18px; height: 18px; }
.lbl { font-size: 13px; color: var(--dim); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.starters { display: flex; gap: 8px; }
.sbtn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; background: rgba(255,255,255,.14); border: 2px solid transparent; font-weight: 700; }
.sbtn small { font-size: 11px; color: var(--dim); text-align: center; line-height: 1.1; } .sbtn .ic { width: 34px; height: 34px; }
.sbtn.sel { border-color: #fff; background: rgba(25,240,220,.35); box-shadow: 0 0 14px rgba(25,240,220,.7); }
.bigstars { display: flex; justify-content: center; gap: 6px; } .bigstars i { color: rgba(255,255,255,.18); transform: scale(.4); opacity: 0; } .bigstars svg { width: 64px; height: 64px; }
.bigstars i.on { color: var(--gold); animation: starIn .5s cubic-bezier(.2,1.6,.4,1) forwards; filter: drop-shadow(0 0 10px rgba(255,201,60,.8)); }
.bigstars i:not(.on) { transform: none; opacity: 1; }
@keyframes starIn { from { transform: scale(.3) rotate(-30deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gems { text-align: center; font-size: 26px; font-weight: 800; color: var(--cy); }
.seal { text-align: center; color: var(--gold); font-weight: 800; } .rw { text-align: center; font-weight: 800; color: var(--lime); font-size: 17px; }
.hearts { display: flex; justify-content: center; gap: 6px; } .heart { color: rgba(255,255,255,.18); } .heart.on { color: #FF7A8A; } .heart svg { width: 36px; height: 36px; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 17px; min-height: 40px; }
.sw { width: 54px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.15); position: relative; flex: none; transition: background .2s; }
.sw i { position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.sw.on { background: linear-gradient(180deg, #7CFFB0, #19D8C0); } .sw.on i { inset-inline-start: 27px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; } .lang { padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.16); font-weight: 700; border: 2px solid transparent; } .lang.sel { border-color: var(--cy); }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.day { background: rgba(255,255,255,.16); border-radius: 12px; padding: 6px 2px; text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 12px; } .day b { font-size: 13px; } .day small { color: var(--dim); }
.day.today { outline: 2px solid var(--gold); background: rgba(255,201,60,.14); } .day.past { opacity: .45; }
#toast { position: absolute; left: 50%; bottom: calc(110px + var(--safeB)); transform: translate(-50%, 20px); max-width: 86%; background: linear-gradient(180deg, rgba(150,90,240,.98), rgba(80,36,180,.98)); border: 2px solid #fff; box-shadow: 0 5px 0 rgba(36,8,110,.5); padding: 10px 18px; border-radius: 16px; font-weight: 700; opacity: 0; transition: .25s; z-index: 30; text-align: center; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* erisilebilirlik */
body.reduce * { animation: none !important; transition-duration: .01s !important; }
body.contrast { --glass: rgba(0,10,30,.96); --line: rgba(255,255,255,.6); --dim: #cfe6f7; }
body.contrast .node { border-color: #fff; } body.contrast .gchip, body.contrast .chip, body.contrast .moves { border-color: #fff; }
.btn:focus-visible, .node:focus-visible, .sbtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-height: 560px) { .hud { gap: 4px; } .moves b { font-size: 22px; } .gchip { min-height: 34px; font-size: 14px; } .pwbtn { width: 56px; height: 56px; } .powers { min-height: 66px; } }
@media (min-width: 700px) { .card { width: 460px; } }

/* harita/menu animasyonu (Hareketi azalt acikken body.reduce hepsini kapatir) */
.node:not(.cur) { animation: bob 3.6s ease-in-out infinite; }
.node:nth-child(3n) { animation-delay: -1.2s; } .node:nth-child(3n+1) { animation-delay: -2.4s; }
@keyframes bob { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 5px)); } }
.node.done::after, .node.cur::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ripple 2.6s ease-out infinite; color: rgba(124,255,155,.8); }
.node.done::after { color: rgba(255,201,60,.6); animation-delay: -1.3s; }
@keyframes ripple { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.trail { animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

.bigplay { animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.03); box-shadow: 0 6px 0 #078088, 0 12px 36px rgba(124,255,155,.9), inset 0 -5px 8px rgba(0,120,130,.35); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: .01s !important; } }
