/* Günün Zindanı — web. Renkler, ölçüler ve hareket uygulamadaki (iOS 1.6) savaş ekranından alındı:
   Theme.swift (Pal, Biome), Typography.swift (Typo), BattleVisuals.swift (karo, zemin, can çubuğu), BattleOverlays.swift. */
:root {
  --bg-top: #1b2647; --bg-bot: #0a0e1a;                 /* Biome "Yosun Mahzeni" */
  --glow: rgb(33, 102, 64); --glow-boss: rgb(135, 33, 43);
  --ink: #ffffff; --dim: rgba(255, 255, 255, .6); --faint: rgba(255, 255, 255, .32);
  --acc: #16bb77; --acc-ink: #006621; --gold: #ffc740; --gold-deep: #d9941f; --yellow: #ffd60a;
  --danger: #ee2747; --curse: #a06bff; --dead: #383c4d;
  --tile-top: #fffef7; --tile-bot: #efe9d6; --tile-ink: #1c1e28;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0, 0, .58, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --col: min(100vw, 430px);                              /* savaş sütunu (uygulamada en çok 430 pt) */
  /* 7 karoluk tepsi tek satıra sığsın: (sütun − kenar payı 24 − 6 aralık × 5) / 7, en çok 44 px (uygulamadaki karo) */
  --tile-w: min(44px, calc((var(--col) - 24px - 30px) / 7));
  --ms: 1;                                               /* canavar kutusunun ölçeği (kısa ekranda küçülür) */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg-bot); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow-x: hidden;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- zindan atmosferi --- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: linear-gradient(var(--bg-top), var(--bg-bot)); }
.bg-glow {
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: .42;
  background: radial-gradient(circle calc(var(--col) * .95) at 50% 33%, var(--glow), transparent);
  animation: flick 3.5s ease-in-out infinite alternate;
}
.bg.boss .bg-glow { background: radial-gradient(circle calc(var(--col) * .95) at 50% 33%, var(--glow-boss), transparent); animation-name: flick-boss; }
@keyframes flick { from { opacity: .42 } to { opacity: .72 } }
@keyframes flick-boss { from { opacity: .42 } to { opacity: .85 } }
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 150px, rgba(0, 0, 0, .5) 580px); }
.dust { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--col); transform: translateX(-50%); }
.dust i { position: absolute; bottom: -24px; border-radius: 50%; background: rgba(199, 219, 255, .45); animation: mote linear infinite backwards; }
.dust i:nth-child(1) { left: 15%; width: 3px; height: 3px; animation-duration: 23s; animation-delay: 0s; }
.dust i:nth-child(2) { left: 35%; width: 2px; height: 2px; animation-duration: 29s; animation-delay: 6s; }
.dust i:nth-child(3) { left: 55%; width: 3px; height: 3px; animation-duration: 25s; animation-delay: 12s; }
.dust i:nth-child(4) { left: 72%; width: 2px; height: 2px; animation-duration: 31s; animation-delay: 3s; }
.dust i:nth-child(5) { left: 85%; width: 3px; height: 3px; animation-duration: 24s; animation-delay: 9s; }
.dust i:nth-child(6) { left: 47%; width: 2px; height: 2px; animation-duration: 27s; animation-delay: 16s; }
@keyframes mote { from { transform: translateY(0) } to { transform: translateY(calc(-100vh - 48px)) } }
.crit-flash { position: fixed; inset: 0; z-index: 15; pointer-events: none; background: var(--gold); opacity: 0; }
.crit-flash.on { animation: crit .22s var(--ease-out); }
@keyframes crit { from { opacity: .18 } to { opacity: 0 } }

#app {
  position: relative; z-index: 1;
  max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

/* --- üst --- */
.top { text-align: center; }
.top-row { display: flex; align-items: center; justify-content: center; position: relative; min-height: 36px; }
.brand { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: .03em; }
#helpBtn { position: absolute; right: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%; font-size: 17px; font-weight: 800; padding: 0; }
.store-top { position: absolute; left: 0; top: 4px; height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 99px; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sub { font-size: 13px; color: var(--dim); margin-top: 2px; }
/* Patron katında satır en uzun hâlini alır (… · KAT 10 / 10 · PATRON · 100 tur): dar ekranda taşmasın diye yazı küçülür. */
.hud1 { font-size: clamp(10.5px, 3.45vw, 13px); color: var(--dim); margin-top: 8px; min-height: 17px; white-space: nowrap; }
.hud1 .mode { color: var(--gold); font-weight: 700; }
.hud1 .kat { letter-spacing: 1.5px; }
.hud1 .boss { color: var(--yellow); font-weight: 700; }
.hud1 .turns { font-weight: 600; }
.hud2 { font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--faint); margin-top: 2px; min-height: 14px; white-space: nowrap; }
.hud2 .ahead { color: var(--acc); }
.charges { display: flex; gap: 10px; justify-content: center; font-size: 11px; font-weight: 600; color: rgba(22, 187, 119, .85); min-height: 15px; margin-top: 1px; }
.charges span { display: inline-flex; align-items: center; gap: 3px; }
.charges svg { width: 13px; height: 13px; fill: currentColor; }
.charges svg .check { fill: none; stroke: var(--bg-top); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --- öğretici bant --- */
.lesson-slot { flex: none; padding: 10px 2px 0; }
.lesson {
  appearance: none; display: block; width: 100%; border: 0; cursor: pointer; font: inherit; font-size: 15px; line-height: 1.35; text-align: center;
  color: rgb(143, 240, 196); padding: 10px 14px; border-radius: 12px;
  background: rgba(22, 187, 119, .14); box-shadow: inset 0 0 0 1.5px rgba(22, 187, 119, .5);
}
.lesson[hidden] { display: none; }

/* --- canavar --- */
.enemy { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 8px 0 10px; }
.intent {
  position: relative; z-index: 3;
  background: rgba(238, 39, 71, .16); border: 1.5px solid rgba(238, 39, 71, .4); color: rgb(255, 179, 191);
  padding: 6px 14px; border-radius: 99px; font-size: 15px; text-align: center; min-height: 33px; white-space: nowrap;
}
.intent.gone { visibility: hidden; }                    /* devrilen canavarın niyeti artık yalan olur: yer tutar, çizilmez */
.monster-box { position: relative; box-sizing: content-box; flex: none; width: calc(150px * var(--ms)); height: calc(165px * var(--ms)); }
.monster-box.boss { padding-bottom: calc(23px * var(--ms)); }   /* patron gövdesi kutunun altından taşar: can çubuğuna binmesin */
.stage {
  position: absolute; z-index: 1; pointer-events: none;
  left: calc(-85px * var(--ms)); top: calc(-100px * var(--ms)); width: calc(320px * var(--ms)); height: calc(325px * var(--ms));
}
.dmg-layer { position: absolute; z-index: 2; left: 50%; top: 0; width: 0; pointer-events: none; }
.dmg {
  position: absolute; left: 0; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  white-space: nowrap; animation: dmg-pop .8s var(--ease-out) forwards;
}
.dmg .tag { font-size: 15px; font-weight: 900; letter-spacing: 1.5px; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.dmg .num { font-size: 22px; font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); line-height: 1; }
.dmg.chain .num { font-size: 30px; color: var(--yellow); }
.dmg.crit .num { font-size: 38px; color: var(--gold); }
.dmg.crit .tag { color: var(--gold); }
.dmg.master .tag { color: var(--yellow); }
@keyframes dmg-pop { from { transform: translate(-50%, 0); opacity: 1 } to { transform: translate(-50%, -60px); opacity: 0 } }
.hpbar { position: relative; z-index: 2; width: 220px; max-width: 70%; height: 16px; border-radius: 99px; background: rgb(59, 31, 41); overflow: hidden; }
.hpbar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); }
.hptrail, .hpfill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; }
/* Vuruşta kırmızı dolgu ANINDA iner; arkasındaki açık renkli iz kısa bir gecikmeyle onu izler. */
.hptrail { background: rgba(255, 255, 255, .78); transition: width .45s var(--ease-out) .22s; }
.hpbar.snap .hptrail { transition: none; }
.hpfill { background: linear-gradient(var(--danger), rgb(204, 26, 61)); }
.hptext { position: relative; z-index: 2; font-size: 15px; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.banned { font-size: 12px; color: rgb(255, 179, 191); min-height: 16px; letter-spacing: .04em; }
/* Devrilen canavarın can çubuğu ve sayısı sahnede kalmaz: ceset anı bitince söner (yer tutar, çizilmez). */
.felled .hpbar, .felled .hptext { opacity: 0; transition: opacity .25s var(--ease-out) .45s; }

/* --- savaş sütununun üstündeki katmanlar --- */
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.skill-cap {
  position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; opacity: 0; white-space: nowrap;
  font-size: 12px; font-weight: 900; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 99px;
  background: rgba(0, 0, 0, .6); box-shadow: inset 0 0 0 1px rgba(158, 235, 107, .55);
}
.kill-beat {
  position: absolute; z-index: 8; left: 50%; top: -20px; pointer-events: none; opacity: 0; transform: translateX(-50%) scale(.6);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 17px; font-weight: 800; color: var(--acc); padding: 8px 16px; border-radius: 99px;
  background: rgba(0, 0, 0, .65); box-shadow: inset 0 0 0 1px rgba(22, 187, 119, .5);
}
.kill-beat .tick { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--acc); color: #06150d; font-size: 12px; font-weight: 900; }
.kill-beat.on { animation: beat-in .3s var(--spring) forwards; }
@keyframes beat-in { from { opacity: 0; transform: translateX(-50%) scale(.6) } to { opacity: 1; transform: translateX(-50%) scale(1) } }
.boss-banner {
  position: absolute; z-index: 8; left: 50%; top: -88px; pointer-events: none; opacity: 0; transform: translateX(-50%) scale(.7);
  text-align: center; padding: 12px 28px; border-radius: 14px; white-space: nowrap;
  background: rgba(0, 0, 0, .72); box-shadow: inset 0 0 0 1.5px rgba(238, 39, 71, .5);
}
.boss-banner .over, .victory .over { font-size: 12px; font-weight: 900; letter-spacing: 3px; }
.boss-banner .over { color: var(--danger); }
.boss-banner .name { font-family: var(--serif); font-size: 28px; font-weight: 800; color: #fff; text-shadow: 0 0 16px rgba(238, 39, 71, .6); margin-top: 3px; }
.boss-banner.on { animation: banner-in .38s var(--spring) forwards; }
.boss-banner.off { animation: banner-out .35s var(--ease-out) forwards; }
@keyframes banner-in { from { opacity: 0; transform: translateX(-50%) scale(.7) } to { opacity: 1; transform: translateX(-50%) scale(1) } }
@keyframes banner-out { from { opacity: 1; transform: translateX(-50%) scale(1) } to { opacity: 0; transform: translateX(-50%) scale(.7) } }

/* --- patron devrildi --- */
.victory:focus { outline: none; }
.victory { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(0, 0, 0, 0); animation: victory-dim .4s ease .34s forwards; }
.victory[hidden] { display: none; }
@keyframes victory-dim { to { background: rgba(0, 0, 0, .68) } }
.victory-card { text-align: center; padding: 0 24px; opacity: 0; transform: scale(.7); animation: victory-pop .4s var(--spring) .34s forwards; }
@keyframes victory-pop { to { opacity: 1; transform: scale(1) } }
.crown-wrap { position: relative; width: 112px; height: 112px; margin: 0 auto; }
.rays { position: absolute; left: 50%; top: 50%; width: 248px; height: 248px; margin: -124px 0 0 -124px; animation: rays 2.4s linear .34s forwards; }
@keyframes rays { to { transform: rotate(26deg) } }
.crown-disc { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 199, 64, .16); box-shadow: inset 0 0 0 2px rgba(255, 199, 64, .6); display: flex; align-items: center; justify-content: center; }
.crown-disc svg { width: 54px; height: 54px; filter: drop-shadow(0 0 10px rgba(217, 148, 31, .8)); }
.victory .over { color: var(--gold); margin-top: 18px; }
.victory .name { font-family: var(--serif); font-size: 28px; font-weight: 800; color: #fff; margin-top: 12px; }
.victory .line { font-size: 15px; color: rgba(255, 255, 255, .72); margin-top: 12px; }

/* --- tepsi --- */
.play { flex: 0 0 auto; }
/* Yüksekliği SABİT: satırın içeriği değişince (davet, ipucu, uyarı) üstündeki canavar oynamasın. */
.status { height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--acc); text-align: center; padding: 0 4px; white-space: nowrap; }
.status.bad { color: rgb(255, 107, 107); }
.status.gold { color: var(--gold); }
.status .word-pill { font-weight: 700; padding: 1px 9px; border-radius: 99px; background: rgba(255, 199, 64, .14); box-shadow: inset 0 0 0 1px rgba(255, 199, 64, .45); }
.status .pill {
  font: inherit; font-size: 11px; font-weight: 600; color: var(--acc); background: rgba(22, 187, 119, .16);
  border: 0; box-shadow: inset 0 0 0 1px rgba(22, 187, 119, .4); border-radius: 99px; padding: 4px 9px; cursor: pointer; line-height: 1.1; white-space: pre;
}
.status .pill.chain { font-size: 13px; font-weight: 700; background: rgba(22, 187, 119, .18); box-shadow: inset 0 0 0 1px rgba(22, 187, 119, .5); }
/* Seçilen kelimenin yuvası SABİT 60 px (uygulamadaki gibi): karo eklenince büyümez, canavar oynamaz.
   Küçük karo 38 px; sığmayacak kadar çok karo seçilirse app.js --small-w ile daraltır. */
.word {
  height: 60px; display: flex; gap: 5px; justify-content: center; align-items: center; overflow: hidden;
  background: rgba(0, 0, 0, .26); border-radius: 12px; padding: 0 6px;
}
.word:empty::before, .tray:empty::before { content: attr(data-empty); color: var(--faint); font-size: 13px; align-self: center; }
.word.shake { animation: shake .32s ease-out; }
@keyframes shake { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-8px) } 50% { transform: translateX(7px) } 80% { transform: translateX(-4px) } }
/* Tepsi 7'den büyükse (Geniş Gün, Dev Tepsi Günü, Geniş Tepsi ödülü) satırlar DENGELİ kırılır: --cols'u app.js yazar. */
.tray {
  display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; padding: 12px 0 10px; margin: 0 auto;
  max-width: calc(var(--cols, 7) * (var(--tile-w) + 5px));
  min-height: calc(var(--tile-w) * 1.182 + 22px);
}
.tile {
  appearance: none; border: 0; font: inherit; padding: 0; flex: none;
  width: var(--tile-w); height: calc(var(--tile-w) * 1.182); border-radius: 10px;
  background: linear-gradient(var(--tile-top), var(--tile-bot)); color: var(--tile-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: calc(var(--tile-w) * .568); font-weight: 800; line-height: 1;
  cursor: pointer; position: relative; user-select: none; -webkit-user-select: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
  transition: transform .2s var(--spring), filter .2s;
}
.tile:active:not(:disabled) { transform: scale(.9); filter: brightness(.95); }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px var(--ring, transparent); }
.tile .pts { position: absolute; bottom: 3px; right: 5px; font-size: 10px; font-weight: 700; opacity: .55; }
.tile .spark { position: absolute; top: 2px; right: 4px; font-size: 9px; color: var(--gold-deep); font-family: system-ui, sans-serif; }
.tile.small { --tile-w: var(--small-w, 38px); animation: tile-in .22s var(--spring); }
.tile.small .pts, .tile.small .spark { display: none; }
@keyframes tile-in { from { transform: scale(.55); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.tile.picked { opacity: .34; }
.tile.golden { background: linear-gradient(135deg, #ffe08a, #f0b429); --ring: var(--gold); box-shadow: 0 3px 14px rgba(255, 199, 64, .6); }
.tile.golden .pts { opacity: .8; }
.tile.rotting { background: linear-gradient(#d9c9a3, #b39c6b); }
.tile.threat { --ring: var(--danger); }                  /* sıradaki saldırının hedef harfi */
.tile.cursed { --ring: var(--curse); box-shadow: 0 3px 16px rgba(160, 107, 255, .7); }
.tile.cursed.clearing { --ring: var(--acc); box-shadow: 0 3px 16px rgba(22, 187, 119, .7); }   /* oynarsan lanet kırılır */
.tile.locked, .tile.banned { background: var(--dead); color: rgb(142, 142, 147); cursor: default; --ring: transparent; box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.tile:disabled { opacity: .6; }
.tile.ghost-acc { --ring: rgba(22, 187, 119, .75); }     /* zincir kelimesinin karoları / ilk harfi */
.tile.ghost-gold { --ring: rgba(255, 199, 64, .75); }    /* ipucunun ilk harfi */
.tile .badge { position: absolute; top: -6px; left: -6px; border-radius: 99px; font-family: system-ui, sans-serif; font-size: 10px; padding: 1px 5px; font-weight: 700; color: #fff; line-height: 1.3; }
.tile.locked .badge { background: var(--danger); }
.tile.cursed .badge { background: var(--curse); }

/* --- düğmeler --- */
.actions { display: flex; gap: 8px; align-items: stretch; }
.btn {
  appearance: none; border: 0; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
  padding: 10px; min-height: 55px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  line-height: 1.15; text-decoration: none; text-align: center;
  transition: transform .2s var(--spring), filter .2s, opacity .12s var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(.94); filter: brightness(.95); }
.btn small { font-size: 11px; font-weight: 600; min-height: 13px; white-space: nowrap; }
.btn:disabled { opacity: .42; cursor: default; }
.btn.cast { background: var(--acc); color: var(--acc-ink); flex: 1; }
.btn.cast small { opacity: .72; }
.btn.cast.unsure { opacity: .55; }                        /* seçili karolar bir kelime etmiyor */
.btn.refresh, .btn.hint { background: #38415a; color: #fff; }
.btn.refresh { flex: 0 0 90px; }
.btn.refresh small { color: rgba(255, 255, 255, .5); }
.btn.refresh small.lit { color: rgba(22, 187, 119, .9); }
.btn.hint { flex: 0 0 54px; padding: 9px 4px; }
.btn.hint svg { width: 19px; height: 19px; fill: var(--gold); }
.btn.hint small { color: rgba(255, 255, 255, .6); }
.btn.hint.dim { opacity: .45; }
.btn.store { background: #fff; color: #0a0e1a; }
.btn.wide { width: 100%; flex: none; margin-top: 10px; }
.ghost { appearance: none; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: var(--dim); cursor: pointer; font: inherit; }
.ghost:disabled { opacity: .45; cursor: default; }
.foot { text-align: center; font-size: 12px; color: var(--faint); padding: 12px 0 2px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.foot a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.foot .ver { flex-basis: 100%; font-size: 10px; opacity: .7; }

/* --- perdeler --- */
.sheet {
  position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .96);   /* uygulamadaki karartma: zindan seçilir ama metinle yarışmaz */
  display: flex; align-items: center; justify-content: center; padding: 18px; overflow-y: auto;
  animation: fade .2s ease;
}
.sheet[hidden] { display: none; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.card { width: 100%; max-width: 400px; text-align: center; margin: auto; }
.card h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 30px; font-weight: 900; }
.lead { margin: 0 0 14px; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.4; }
.how { text-align: left; margin: 0 0 6px; padding: 0 0 0 18px; color: rgba(255, 255, 255, .86); font-size: 14px; line-height: 1.45; display: grid; gap: 8px; }
.fine { font-size: 12px; color: var(--faint); margin: 10px 0 0; line-height: 1.4; }
/* Perde başlığı her genişlikte TEK satır: 34 px'ten başlar, dar ekranda küçülür ("GÜNÜN ZİNDANI BİTTİ" 375'e sığsın). */
.over-title { font-family: var(--serif); font-size: clamp(22px, 7.5vw, 34px); font-weight: 900; white-space: nowrap; line-height: 1.1; margin-bottom: 8px; }
.over-title.gold { color: var(--gold); }
.sheet-title { font-size: 20px; font-weight: 900; color: var(--acc); margin-bottom: 4px; }
.seal { margin: 0 0 8px; }
.seal[hidden] { display: none; }
.seal svg { width: 34px; height: 34px; }
.seal .scallop { fill: var(--gold); }
.seal .check, .boon .check { fill: none; stroke: #0b0d14; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.boon .check { stroke: #243057; }
.held { font-size: 13px; font-weight: 600; color: var(--gold); margin: 0 0 4px; }
.examples, .teach { font-size: 13px; color: rgba(255, 255, 255, .5); margin: 0 0 10px; }
.teach { margin-top: -8px; }
.held:empty, .examples:empty, .teach:empty, .lead:empty { display: none; }
.boons { display: grid; gap: 16px; justify-items: center; }
.boon {
  appearance: none; font: inherit; color: var(--ink); cursor: pointer; text-align: center; width: 100%; max-width: 320px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #243057; border: 0; box-shadow: inset 0 0 0 2px #2e3b5e; border-radius: 16px; padding: 14px;
  transition: transform .2s var(--spring);
}
.boon:active { transform: scale(.97); box-shadow: inset 0 0 0 2px var(--acc); }
.boon svg { width: 32px; height: 32px; color: var(--acc); fill: currentColor; }
.boon svg .check { fill: none; }
.boon .name { font-weight: 800; font-size: 17px; }
.boon .desc { font-size: 13px; color: rgba(255, 255, 255, .65); }
.share {
  appearance: none; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--gold); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; margin-top: 14px; border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 199, 64, .6);
}
.share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.squares { font-size: 22px; letter-spacing: 1px; margin: 4px 0 8px; line-height: 1.2; }
.endstats { font-size: 15px; color: rgba(255, 255, 255, .7); line-height: 1.5; }
.best { font-size: 12px; color: var(--faint); min-height: 16px; margin-top: 4px; }
.toast { min-height: 18px; font-size: 13px; color: var(--acc); margin-top: 6px; white-space: pre-line; }

@media (max-width: 359px) { .store-top { display: none; } }   /* dar ekranda başlığa değmesin; alttaki bağlantı duruyor */
@media (max-height: 700px) { :root { --ms: .86; } .enemy { gap: 7px; } }
@media (max-height: 600px) { :root { --ms: .72; } .enemy { gap: 5px; padding: 4px 0 6px; } }
@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none; }
  .dust { display: none; }
  .tile, .btn { transition: none; }
  .tile.small, .word.shake, .sheet { animation: none; }
  .kill-beat.on, .boss-banner.on, .boss-banner.off { animation-duration: .01s; }
  .victory-card { animation-duration: .01s; }
  .rays { display: none; }
  .crit-flash.on { animation-name: crit-soft; }
  .dmg { animation: dmg-fade .8s var(--ease-out) forwards; }
}
@keyframes crit-soft { from { opacity: .10 } to { opacity: 0 } }
@keyframes dmg-fade { from { opacity: 1 } to { opacity: 0 } }
