/* Zvieracia aréna – vzhľad.
   Herná doska = "stage" s pozadím PlayGround.png (desktop, 16:9) alebo
   PlayGround-mobile.png (portrait). Zóny sú v percentách dosky, veľkosti
   vnútri dosky v container query jednotkách (cqw/cqh).
   Karta = rám assets/card-frame.webp (5:7), art v oblúku, meno na páske,
   rasa · stupeň, text v boxe, útok v kruhu vľavo dole, život v srdci vpravo. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #7ec8ff 0%, #dff3ff 100%);
  color: #123;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* dvh = skutočná viditeľná výška na mobile (reaguje na lištu prehliadača) */
  min-height: 100dvh;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
header {
  padding: 6px 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; position: relative;
}
h1 { font-size: 1.2rem; margin: 0; }
button {
  font-size: 1rem; padding: 8px 14px; border: 0; border-radius: 10px;
  background: #fff; color: #123; box-shadow: 0 2px 0 #9bc; cursor: pointer;
  font-family: inherit;
}
button:active { transform: translateY(2px); box-shadow: none; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: #2f7cff; color: #fff; box-shadow: 0 2px 0 #1a4fb0; }
button.danger { background: #ff6b6b; color: #fff; box-shadow: 0 2px 0 #b03a3a; }
.hidden { display: none !important; }

main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 8px 8px; width: 100%; }
footer { text-align: center; padding: 4px; font-size: .8rem; color: #456; }

.langsw { display: flex; gap: 4px; margin-left: auto; }
.langsw button { font-size: .85rem; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: rgba(255,255,255,.75); color: #456; min-width: 38px; }
.langsw button.active { background: #2f7cff; color: #fff; }

/* ---------- Výber obtiažnosti ---------- */
#pickScreen { display: flex; flex-direction: column; align-items: center; width: 100%; }
.pick-box { background: rgba(255,255,255,.7); border-radius: 18px; padding: 18px 22px; text-align: center; max-width: 560px; }

/* Pravidlá: tmavý panel pod výberom hry, biely text, farebné zvýraznenia. */
.rules-box {
  margin-top: 16px; width: min(94vw, 680px);
  background: rgba(8, 13, 20, .92); color: #f2f6fa;
  border-radius: 18px; padding: 14px 20px 16px; text-align: left;
  font-size: .95rem; line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 20, 40, .35);
}
.rules-box h3 { margin: 2px 0 10px; text-align: center; font-size: 1.1rem; letter-spacing: .03em; }
.rules-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rules-box i { font-style: normal; font-weight: 700; }
.rules-box .hl-g { color: #ffd33d; }  /* peniaze */
.rules-box .hl-r { color: #ff8f8f; }  /* životy, boj */
.rules-box .hl-b { color: #7cc4ff; }  /* tier, obchod, freeze */
.rules-box .hl-e { color: #7ee787; }  /* evolve, zadarmo */
@media (orientation: portrait) {
  .rules-box { font-size: .85rem; padding: 12px 14px 14px; }
}
.pick-box h2 { font-size: 1.1rem; margin: 10px 0; }
/* Claude súper: kľúč + profil hráča (BYO key – žije len v localStorage). */
.claude-setup { margin-top: 12px; display: grid; gap: 6px; text-align: left; }
.claude-setup label { font-size: .85rem; font-weight: 700; color: #345; }
.claude-setup input {
  font-size: .95rem; padding: 7px 10px; border: 2px solid #9bc;
  border-radius: 10px; font-family: inherit; width: 100%;
}
.claude-note { font-size: .75rem; color: #567; line-height: 1.35; }
/* Chat s Claudom pod doskou (len Claude mód). */
.chat-row { display: flex; gap: 6px; width: min(98vw, 480px); margin-top: 4px; }
.chat-row input {
  flex: 1; font-size: .9rem; padding: 6px 10px; border: 2px solid #9bc;
  border-radius: 10px; font-family: inherit;
}
.chat-row button { padding: 6px 12px; }
/* Claudov záverečný výsmech v okne konca hry. */
.over-roast { margin-top: 10px; font-style: italic; color: #a33; max-width: 420px; }
.diff-pick { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mut-toggle { display: block; margin-top: 12px; font-size: .9rem; color: #345; cursor: pointer; }
.mut-toggle input { transform: scale(1.2); margin-right: 6px; vertical-align: -2px; }
.diff-pick button.active { background: #ffd33d; font-weight: 700; }
.big-btn { font-size: 1.3rem; margin-top: 14px; padding: 10px 34px; }
.net-row { margin-top: 12px; }
.net-urls { font-weight: 700; color: #2f7cff; margin: 10px 0; font-size: 1rem; user-select: text; }
.peer-code { font-size: 2.4rem; font-weight: 900; letter-spacing: .2em; color: #2f7cff; margin: 8px 0; user-select: text; }
.peer-join { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.peer-join input {
  width: 110px; font-size: 1.4rem; text-align: center; letter-spacing: .15em;
  border: 2px solid #9bc; border-radius: 10px; padding: 6px; font-family: inherit;
}
#peerSetup { margin-top: 8px; }

/* ---------- Doska ---------- */
#gameScreen { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#stage {
  position: relative;
  width: min(98vw, calc(72vh * 1.783));
  width: min(98vw, calc(72dvh * 1.783));
  aspect-ratio: 1676 / 940;
  /* webp ~90 KB namiesto 2 MB PNG – načíta sa aj na pomalej/firemnej sieti;
     hnedá pod ním je fallback, nech doska nie je „neviditeľná", kým obrázok
     príde (alebo keď ho sieť zablokuje). */
  background: #b5854f url("PlayGround.webp") center / 100% 100% no-repeat;
  container-type: size;
  border-radius: 12px;
}

/* Log: pruh NAD doskou (mimo obrázka). */
.log {
  width: min(98vw, calc(72vh * 1.783));
  width: min(98vw, calc(72dvh * 1.783));
  min-height: 1.3em;
  font-size: .85rem; color: #345; text-align: center; overflow: hidden;
  font-weight: 600; white-space: nowrap;
}
.log div { line-height: 1.2; display: inline-block; margin: 0 .8cqw; }

/* Bannery hrdinov (červený hore = súper, modrý dole = hráč). */
.hero-plate {
  position: absolute; left: 27%; width: 46%;
  display: grid; grid-template-columns: 1fr 9cqw 1fr; align-items: center;
  color: #fff; font-weight: 700; font-size: 2.6cqh;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
  pointer-events: none;
}
.hero-plate.top { top: 3.2%; height: 8.5%; }
.hero-plate.bottom { top: 84.5%; height: 8.5%; }
.hero-plate .who { text-align: center; }
.hero-plate .nums { text-align: center; }
/* Tavern tier = veľké číslo na štíte s labkou uprostred bannera. */
.hero-plate .tier-shield {
  text-align: center; font-size: 4.4cqh; font-weight: 900; color: #7a4c07;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 .2cqh .3cqh #ffe9b0, 0 0 .6cqh #fff;
}
/* Optický stred štítu v obrázku dosky (desktop): hore ~9 %, dole ~89.2 %
   výšky dosky – doladené podľa screenshotu, centroid zlata ťahá číslo hore. */
.hero-plate.top .tier-shield { transform: translateY(1.6cqh); }
.hero-plate.bottom .tier-shield { transform: translateY(.4cqh); }

/* Rohové rámiky: balíček a kôpka. */
.corner {
  position: absolute; width: 8.8%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #ffeccc; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6);
  pointer-events: none; text-align: center;
}
.corner .ic { font-size: 3.4cqh; }
.corner .lb { font-size: 1.5cqh; opacity: .9; }
.corner .ct { font-size: 3.2cqh; }
.corner.tl { left: 6%; top: 17%; height: 21%; }
.corner.bl { left: 6%; top: 57.5%; height: 21%; }
.corner.tr { left: 85.2%; top: 17%; height: 21%; }
.corner.br { left: 85.2%; top: 57.5%; height: 21%; }

/* Pravidlo dnešnej arény (mutácia): ikonka vľavo medzi súperovým balíčkom
   a kôpkou; ťuk pripomenie pravidlo v logu. */
.mutator {
  position: absolute; left: 4.5%; top: 39.5%; width: 11.8%; height: 17%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4cqh; cursor: pointer; text-align: center;
  background: rgba(30, 20, 5, .55); border-radius: 1.4cqh;
  box-shadow: inset 0 0 0 .3cqh rgba(255, 215, 106, .5);
}
.mutator .ic { font-size: 4.2cqh; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.mutator .lb {
  font-size: 1.4cqh; font-weight: 800; color: #ffd76a; line-height: 1.1;
  text-shadow: 0 1px 2px #000; padding: 0 .3cqw;
}

/* ---------- Rozloženie stredu ----------
   Horný rad slotov = OBCHOD počas nákupu; v boji tam hrá súperov board.
   Stred = moje bojujúce karty (veľké). Spodný rad slotov = moja ruka. */

/* Obchod v hornom rade slotov (medzi vrchnými rámikmi). Panel je širší než
   rad slotov, aby sa v tieri 5–6 zmestilo aj 10 kariet (3+6+kúzlo) bez
   pretečenia mimo dosku – karty sú centrované, tak sa rámikov nedotknú. */
.shop-panel { position: absolute; left: 12%; top: 14.8%; width: 76%; height: 22%; }
.shop-rows { display: flex; gap: 1cqw; justify-content: center; align-items: stretch; }
.shop-row {
  display: flex; gap: .5cqw; justify-content: center; align-items: center;
  min-height: 15cqh; padding: 0 .5cqw;
}
.shop-row.private { background: rgba(120,190,255,.22); border-radius: 1.2cqh; }
.shop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1cqw; height: 4cqh; gap: 1cqw; margin-top: .5cqh;
}
.banner { font-weight: 800; font-size: 2.1cqh; color: #6b4a1b; }
.banner.enemy { color: #a33; }
.money { font-weight: 800; font-size: 2.4cqh; color: #a06a00; }
.aura { font-weight: 800; font-size: 1.8cqh; color: #7a4c8f; }
.head-btns { display: flex; gap: .8cqw; }
.head-btns button {
  font-size: 1.6cqh; padding: .5cqh 1cqw; border-radius: 1.1cqh;
  background: #fff7e6; box-shadow: 0 .3cqh 0 #b99b6b;
}
.head-btns button.frozen-on { background: #cdeeff; box-shadow: 0 .3cqh 0 #5aa7cc; }
/* Zabanovaná rasa – preškrtnutá ikonka rasy vedľa ↩️ (nie je to akcia, len info) */
.head-btns button.ban-ic { position: relative; background: #ffecec; box-shadow: 0 .3cqh 0 #c66; cursor: help; }
.head-btns button.ban-ic::after {
  content: ""; position: absolute; left: 15%; right: 15%; top: 50%; height: .35cqh;
  background: #e33; transform: rotate(-40deg); border-radius: 1cqh; pointer-events: none;
}

/* Súperov board: rovnaké miesto ako obchod – vidno ho LEN počas boja.
   Karty sú vycentrované (flex); poradie útoku drží CSS order = slot. */
.board {
  position: absolute; left: 24.64%; width: 50.3%;
  display: flex; justify-content: center; align-items: center;
  gap: 1.37cqw;
}
.board.opp { top: 15.9%; height: 14.9%; display: none; }
#stage.battle .board.opp { display: flex; }
#stage.battle .shop-panel, #stage.battle .end-turn { visibility: hidden; }

/* Moje bojujúce karty: veľký rad v strede parchmentu. */
.board.mine {
  top: 38.5%; height: 26%;
  background: rgba(255,255,255,.14); border-radius: 1.4cqh;
}

/* Ruka: spodný rad slotov šablóny (medzi discard a draw pile rámikmi). */
#stage .hand {
  position: absolute; left: 24.64%; width: 50.3%; top: 66.5%; height: 15.3%;
  display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 1.37cqw;
  justify-items: center; align-items: center;
}

/* Koniec ťahu – veľké tlačidlo vpravo v strede (medzi rámikmi). */
.end-turn {
  position: absolute; left: 83.8%; top: 44.5%; width: 11%; height: 8%;
  font-size: 2cqh; border-radius: 1.6cqh; font-weight: 700;
}

/* ---------- Karta (rám card-frame.webp, pomer 5:7) ---------- */
.card {
  position: relative;
  background: url("assets/card-frame.webp") center / 100% 100% no-repeat;
  aspect-ratio: 560 / 780;
  border: 0; padding: 0; cursor: pointer; text-align: center;
  border-radius: 7%;
  transition: transform .15s ease-out;
}
.card .art {
  position: absolute; left: 10.5%; top: 4.8%; width: 79%; height: 44.5%;
  object-fit: cover;
  border-radius: 46% 46% 5% 5% / 32% 32% 4% 4%;
  pointer-events: none;
}
.card .em {
  position: absolute; left: 0; right: 0; top: 15%;
  font-size: 3em; line-height: 1; pointer-events: none;
}
.card .nm {
  position: absolute; left: 9%; right: 9%; top: 49.5%; height: 9.5%;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800; font-size: .82em; line-height: .95;
  text-transform: uppercase; color: #3a2a10; letter-spacing: .02em;
  pointer-events: none;
}
/* Rasa: pilulka dole medzi útokom (kruh) a životom (srdce) – tmavý podklad
   + biely text + ikona, nech je rasa čitateľná na každom arte aj v preview. */
.card .race {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 4.2%;
  max-width: 64%; white-space: nowrap; overflow: hidden;
  font-size: .5em; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px #000;
  background: rgba(18, 24, 40, .75); border-radius: 999px;
  padding: .15em .6em;
  pointer-events: none;
}
.card .tx {
  position: absolute; left: 13%; top: 66%; width: 74%; height: 20%;
  display: block; text-align: center;
  font-size: .58em; line-height: 1.3; color: #4a3a20; overflow: hidden;
  pointer-events: none;
}
.card .atk, .card .hp {
  position: absolute; top: 87.2%; transform: translate(-50%, -50%);
  font-size: 1.45em; font-weight: 900; color: #fff; line-height: 1;
  /* Tabuľkové číslice: „1" má inak veľký pravý okraj a vycentrovaná podľa
     svojej šírky sedí opticky vľavo – v rovnakej bunke ako ostatné číslice
     je v strede. */
  font-variant-numeric: tabular-nums;
  /* Obrys symetrický a v em – pevné 2px dole/vpravo pri malom písme (mobil,
     ~10px) opticky tlačili číslo hore a doľava mimo stred kruhu/srdca. */
  text-shadow: 0 .08em 0 #000, 0 -.08em 0 #000, .08em 0 0 #000, -.08em 0 0 #000, 0 .12em .2em rgba(0,0,0,.5);
  pointer-events: none;
}
/* Stredy kruhu útoku a srdca života – odmerané mriežkou nad art kartou
   (B002_1.webp) aj nad generickým rámom (card-frame.webp), oba rámy sedia:
   kruh (15 %, 87.2 %), srdce (83.8 %, 87.2 %). Predtým bol život na 86 %,
   t. j. ~2 % vpravo od stredu srdca. */
.card .atk { left: 15.2%; }
.card .hp { left: 84.3%; }
/* buffnuté staty (nad základ stupňa) svietia zelenou */
.card .atk.buffed, .card .hp.buffed { color: #5cf07a; }
/* zranená príšerka (hp < maxHp) má život červený – červená vyhráva nad zelenou */
.card .hp.hurt { color: #ff5252; }
/* Tier obchodu: veľká hviezda vľavo hore, nech ju vidno na prvý pohľad. */
.card .tier-tag {
  position: absolute; top: 1%; left: 2.5%; font-size: 1.1em; font-weight: 900;
  color: #ffd76a; text-shadow: 0 2px 3px #000, 0 0 6px rgba(0,0,0,.6);
  pointer-events: none;
}
/* Karta s kompletným artom: tier číslo v modrom kryštáli vľavo hore.
   Stred kryštálu je v arte na ~(12.6 %, 9.2 %) karty (odmerané mriežkou nad
   artom aj z preview karty) – číslo sa centruje transformom presne naň. */
.card.full-art .tier-tag {
  top: 9.2%; left: 12.6%; width: auto; transform: translate(-50%, -50%);
  font-size: 1.2em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 .06em .1em #013, 0 0 .2em #026;
}
.card .cost {
  position: absolute; top: 2%; right: 4%; font-size: .55em; font-weight: 800;
  color: #ffd76a; text-shadow: 0 1px 2px #000; pointer-events: none;
}
/* Kúzlo s artom: cena v zlatom kruhu dole (stred ~(50 %, 92.6 %) karty). */
.card.spell-art .cost {
  top: 92.6%; left: 50%; right: auto; transform: translate(-50%, -50%);
  font-size: .62em; color: #3a2a10; text-shadow: 0 1px 1px rgba(255,255,255,.6);
}
/* Koľko kópií hráč už vlastní – kúpa tretej hneď evolvne. */
.card .owned {
  position: absolute; top: 12%; right: 4%; font-size: .55em; font-weight: 900;
  color: #d9f0ff; text-shadow: 0 1px 2px #000; pointer-events: none;
  background: rgba(20,40,70,.65); border-radius: 999px; padding: .1em .45em;
}
.card .owned.hot { color: #3a2a00; background: #ffd147; animation: pop .3s ease-out; }
.card .freeze-btn {
  position: absolute; top: -4%; right: -4%; font-size: .7em; padding: .2em .35em;
  border-radius: 999px; box-shadow: 0 1px 0 #9bc; z-index: 4;
}
/* Špeciálny slot na kúzlo v obchode – oddelený a fialovo orámovaný. */
.card.spell-slot {
  margin-left: 1.2cqh;
  outline: .3cqh dashed #c084fc;
  outline-offset: .2cqh;
  border-radius: 1cqh;
}
.card.frozen { filter: drop-shadow(0 0 .5cqh #4fc3f7); }
/* Umlčaná príšerka (kúzlo Umlčanie) – schopnosť preškrtnutá a stlmená,
   trvalý 🤫 badge cez art, nech je to vidno aj na malých kartách. */
.card.silenced .tx { text-decoration: line-through; opacity: .45; }
/* Číslo výboja/výbuchu navýšené Večnou iskrou – zelené, nech vidno bonus. */
.card .tx .boosted { color: #1e9e40; font-weight: 800; }
.card .silence-badge {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  font-size: 1.9em; line-height: 1; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.7));
}
/* Božský štít, Fénixovo pierko a Vichor – malé trvalé badge v rohoch artu. */
.card .shield-badge, .card .revive-badge, .card .windfury-badge, .card .taunt-badge {
  position: absolute; top: 3%; font-size: 1.2em; line-height: 1;
  pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7));
}
.card .shield-badge { right: 5%; }
.card .revive-badge { right: 22%; }
.card .windfury-badge { right: 39%; }
.card .taunt-badge { right: 56%; }
.card.frozen::after {
  content: "❄️"; position: absolute; top: 2%; left: 50%; transform: translateX(-50%);
  font-size: .7em;
}
.card.taunt { box-shadow: 0 0 0 4px rgba(70,110,255,.95), 0 0 12px rgba(70,110,255,.6); }
.card.disabled { opacity: .55; cursor: default; }
.card.buyable:hover { transform: translateY(-4px); }
.card.gap { visibility: hidden; }

/* Upgradnuté karty: 1. upgrade strieborný rám, 2. upgrade zlatý rám. */
.card[data-rank="2"] { box-shadow: 0 0 0 3px #c8d4e2, 0 0 10px 2px rgba(160,185,215,.95); }
.card[data-rank="2"] .nm { color: #2e3d52; }
.card[data-rank="3"] { box-shadow: 0 0 0 3px #ffd147, 0 0 12px 3px rgba(255,190,30,.95); }
.card[data-rank="3"] .nm { color: #7a5200; }

/* Veľkosti kariet podľa zóny (výška + font, šírka z pomeru strán). */
#stage .card { height: 14.4cqh; font-size: 1.35cqh; }
#stage .card .tx { display: none; }
#stage .board.mine .card { height: 24.5cqh; font-size: 2.1cqh; }
#stage .board.mine .card .tx { display: block; }
.shop-row .card { height: 15cqh; font-size: 1.4cqh; }

/* ---------- Drag & drop ---------- */
#gameScreen .card { touch-action: none; }
/* long-press na mobile nesmie vyvolať natívne menu / uloženie obrázka */
.card, .card * { -webkit-touch-callout: none; }
.card img { -webkit-user-drag: none; user-select: none; }
.card.ghost {
  position: fixed; z-index: 60; pointer-events: none; opacity: .9;
  transform: scale(1.06) rotate(2deg); filter: drop-shadow(0 10px 18px rgba(0,0,0,.4));
}
.card.drag-src { opacity: .35; }
.drop-ok { outline: 3px dashed #2f9e44; outline-offset: -2px; background: rgba(120,220,140,.18); border-radius: 1cqh; }
.drop-sell { outline: 3px dashed #d99a00; outline-offset: -2px; background: rgba(255,200,60,.15); }
.card.target-ok { outline: 3px solid #2f9e44; }

/* ---------- Hover preview – zväčšená čitateľná karta ---------- */
.preview-card {
  position: fixed; z-index: 55; width: 250px;
  pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.5));
  animation: pop .12s ease-out;
  font-size: 15px;
}
.preview-card .tx { display: block; }

/* ---------- Overlay ---------- */
.overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,40,60,.45); z-index: 20; padding: 10px;
}
.win-box {
  background: #fff; padding: 20px 26px; border-radius: 16px; text-align: center;
  font-size: 1.1rem; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: pop .35s ease-out; max-width: 92vw;
}
.win-box .big { font-size: 1.7rem; margin-bottom: 8px; }
.win-box .shop-row { justify-content: center; display: flex; gap: 10px; min-height: 0; }
.win-box .shop-row .card { height: 240px; font-size: 13px; }
.win-box .shop-row .card .tx { display: block; }
.win-box button { margin-top: 12px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Fáza BAN: tri veľké tlačidlá s rasami */
.ban-msg { max-width: 520px; margin: 0 auto 8px; font-size: 1rem; color: #345; }
.ban-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ban-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 120px; padding: 14px 18px; border-radius: 14px; font-size: 1rem; font-weight: 700;
  background: #fff3f3; box-shadow: 0 2px 0 #c66; border: 2px solid #e99;
}
.ban-btn .ic { font-size: 2.6rem; line-height: 1; }
.ban-btn:not(:disabled):hover { background: #ffd9d9; transform: translateY(-2px); }
.ban-btn.active { background: #ff6b6b; color: #fff; border-color: #c33; }
.ban-btn:disabled:not(.active) { opacity: .45; }

/* Ponuka trinketov: tri karty s ikonkou, menom a popisom */
.trinket-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trinket-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 190px; padding: 14px 12px; border-radius: 14px; font-size: 1rem; font-weight: 700;
  background: #f3f6ff; box-shadow: 0 2px 0 #5a6fc6; border: 2px solid #8fa3e8; color: #123;
}
.trinket-btn .ic { width: 130px; height: 130px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.trinket-btn .ds { font-size: .8rem; font-weight: 500; color: #345; line-height: 1.25; }
.trinket-btn:not(:disabled):hover { background: #e2e9ff; transform: translateY(-2px); }
/* Ikonky trinketov za menom hrdinu; stlmené = vypnuté Ogrím kľúčom */
.hero-plate .trinkets { margin-left: .6cqw; display: inline-flex; gap: .3cqw; vertical-align: middle; }
.hero-plate .tk {
  pointer-events: auto; cursor: help; line-height: 0; padding: 0; margin: 0;
  background: none; border: none; box-shadow: none;
}
.hero-plate .tk img { height: 4.6cqh; width: 4.6cqh; filter: drop-shadow(0 .2cqh .3cqh rgba(0,0,0,.6)); }
.hero-plate .tk.off { opacity: .35; filter: grayscale(1); }
/* Štít hrdinu (trinket) vedľa ↩️ */
.head-btns button.shield-btn { background: #e6f0ff; box-shadow: 0 .3cqh 0 #4a6fb5; display: inline-flex; align-items: center; gap: .4cqw; }
.head-btns button.shield-btn img { height: 2.6cqh; width: 2.6cqh; }
.head-btns button.shield-btn.armed { background: #ffd76a; box-shadow: 0 .3cqh 0 #b98a00; }

/* ---------- Trash-talk bublina bota (nad jeho bannerom) ---------- */
.taunt-bubble {
  position: absolute; left: 50%; top: 11.5%; transform: translateX(-50%);
  background: #fff; color: #123; font-weight: 700; font-size: 2.2cqh;
  padding: .9cqh 1.8cqh; border-radius: 2cqh; max-width: 62%;
  box-shadow: 0 .4cqh 1.2cqh rgba(0,0,0,.35); z-index: 40;
  animation: tauntPop .25s ease-out; pointer-events: none; text-align: center;
  line-height: 1.25;
}
/* vlastné keyframes: musia niesť aj translateX, inak animácia zruší centrovanie */
@keyframes tauntPop {
  from { transform: translateX(-50%) scale(.5); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}
.taunt-bubble::before {
  content: ""; position: absolute; top: -1.1cqh; left: 50%;
  transform: translateX(-50%);
  border: .7cqh solid transparent; border-bottom-color: #fff; border-top: 0;
}
.taunt-bubble.out { opacity: 0; transition: opacity .45s; }
/* vlastná chatová správa (hra po sieti): bublina nad mojím hrdinom, šípka dole */
.taunt-bubble.mine { top: auto; bottom: 16%; }
.taunt-bubble.mine::before {
  top: auto; bottom: -1.1cqh;
  border-bottom: 0; border-top: .7cqh solid #fff; border-bottom-color: transparent;
}

/* ---------- Boj – animácie ---------- */
.fight-banner {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  font-size: 9cqh; font-weight: 900; color: #a33;
  text-shadow: 0 .4cqh .8cqh rgba(0,0,0,.35), 0 0 2cqh #ffd;
  z-index: 10; pointer-events: none;
  animation: fightPop .5s ease-out;
  transition: all .4s;
}
.fight-banner.small { font-size: 3.6cqh; top: 34%; opacity: .85; }
@keyframes fightPop {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.card.hit { animation: shake .3s; }

/* Spustenie schopnosti: zlatý pulz + label kľúčového slova nad kartou. */
.card.proc { animation: procPulse .75s ease-out; z-index: 25; }
@keyframes procPulse {
  0% { filter: brightness(1); }
  30% { filter: brightness(1.7) drop-shadow(0 0 1.5cqh #ffd147); }
  100% { filter: brightness(1); }
}
.proc-badge {
  position: absolute; top: -14%; left: 50%; transform: translateX(-50%);
  background: #ffd147; color: #4a3000; font-weight: 900; font-size: .7em;
  padding: .2em .7em; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.4); z-index: 30;
  animation: pop .2s ease-out;
}

/* Letiaci projektil (damage schopnosti); farba cez --fx, dráhu riadi JS
   (Web Animations API). */
.projectile {
  --fx: #ff7a1a;
  position: fixed; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; z-index: 70; pointer-events: none;
  background: radial-gradient(circle, #fff 0%, var(--fx) 45%, transparent 100%);
  box-shadow: 0 0 14px 5px var(--fx);
}

/* ---------- Efekty kúziel a zásahov (fixed, na body, riadi JS) ---------- */
/* Emoji kúzla letiace z ruky na cieľ. */
.cast-fx {
  --fx: #ffd147;
  position: fixed; z-index: 80; pointer-events: none;
  font-size: clamp(28px, 5vh, 52px); line-height: 1;
  filter: drop-shadow(0 0 10px var(--fx)) drop-shadow(0 0 22px var(--fx));
  will-change: transform, opacity;
}
/* Prstenec na mieste dopadu. */
.fx-ring {
  --fx: #ffd147; --sz: 80px;
  position: fixed; z-index: 75; pointer-events: none;
  width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
  border-radius: 50%; border: 4px solid var(--fx);
  box-shadow: 0 0 18px var(--fx), inset 0 0 18px var(--fx);
  animation: ringOut .5s ease-out forwards;
}
@keyframes ringOut {
  0% { transform: scale(.3); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
/* Iskry – bodky alebo emoji, dráhu dáva JS. */
.fx-particle {
  --fx: #ffd147;
  position: fixed; z-index: 78; pointer-events: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--fx); box-shadow: 0 0 8px var(--fx);
  will-change: transform, opacity;
}
.fx-particle.emoji {
  width: auto; height: auto; background: none; box-shadow: none;
  font-size: clamp(14px, 2.4vh, 24px); line-height: 1;
  filter: drop-shadow(0 0 4px var(--fx));
}
/* Farebná vlna cez celú plochu (plošné kúzla, výbuchy). */
.fx-wave {
  --fx: #22b8cf;
  position: fixed; z-index: 60; pointer-events: none; overflow: hidden;
  border-radius: 1.4cqh; mix-blend-mode: screen;
}
.fx-wave::before {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--fx), transparent);
  opacity: .85; animation: waveSweep .6s ease-in-out forwards;
}
@keyframes waveSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.card.dying { opacity: 0; transform: scale(.4) rotate(20deg); transition: all .35s; }
/* Číslo nad kartou: vyskočí (scale), mierne naklonené (--tilt z JS), stúpa
   a mizne. opacity 0 + fill both = pri animation-delay (AoE stagger) nie je
   vidno, kým nepríde jeho rad. */
.dmg-float {
  --tilt: 0deg;
  position: absolute; top: 30%; left: 50%; transform: translateX(-50%);
  font-weight: 900; font-size: 2.6cqh; color: #c22; pointer-events: none;
  opacity: 0; animation: rise .75s cubic-bezier(.2,.8,.3,1) both; z-index: 5;
  text-shadow: 0 1px 2px #fff, 0 0 8px rgba(255,255,255,.7);
  white-space: nowrap;
}
.dmg-float.heal { color: #2f9e44; }
@keyframes rise {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.5) rotate(var(--tilt)); }
  25% { opacity: 1; transform: translate(-50%, -4px) scale(1.35) rotate(var(--tilt)); }
  60% { opacity: 1; transform: translate(-50%, -14px) scale(1) rotate(var(--tilt)); }
  100% { opacity: 0; transform: translate(-50%, -30px) scale(.95) rotate(var(--tilt)); }
}

/* Citlivosť na pohyb: partikle/otrasy vypína JS (REDUCED), tu skrátime
   zvyšné CSS animácie. */
@media (prefers-reduced-motion: reduce) {
  .dmg-float { animation-duration: .4s; }
  .card.hit, .card.proc, .card.evolving { animation-duration: .2s; }
  .fx-ring, .fx-wave::before { animation-duration: .25s; }
}
.card.evolving { animation: evolve .6s; }
@keyframes evolve {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.25); filter: brightness(1.6); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* ---------- Mobil (na šírku): PlayGround-mobile-wide.png (1850×850).
   Rovnaká logika ako desktop (6+6 slotov, veľký stred), ale iné pomery:
   sloty hore y 101–228, dole y 611–738, x ~395–1410; rámiky balíčkov na
   bokoch (y 144–266 a 560–678), bannery hore/dole v strede. */
@media (orientation: landscape) and (max-height: 600px),
       (orientation: landscape) and (pointer: coarse) and (max-height: 920px) {
  #stage {
    width: min(98vw, calc(73vh * 1850 / 850));
    width: min(98vw, calc(73dvh * 1850 / 850));
    aspect-ratio: 1850 / 850;
    background-image: url("PlayGround-mobile-wide.webp");
    /* dva prsty patria pinch zoomu hry, nie scrollu prehliadača */
    touch-action: none;
  }
  .log {
    width: min(98vw, calc(73vh * 1850 / 850));
    width: min(98vw, calc(73dvh * 1850 / 850));
    font-size: .8rem;
  }

  .hero-plate { left: 35.1%; width: 29.7%; grid-template-columns: 1fr 5cqw 1fr; font-size: 2.4cqh; }
  .hero-plate.top { top: 1.2%; height: 9.4%; }
  .hero-plate.bottom { top: 89.6%; height: 9.4%; }
  .hero-plate .tier-shield { font-size: 4cqh; }
  /* stred štítu v širokom mobilnom obrázku: hore 7.3 %, dole 92.4 % výšky dosky */
  .hero-plate.top .tier-shield { transform: translateY(1.4cqh); }
  .hero-plate.bottom .tier-shield { transform: translateY(-1.9cqh); }

  .corner { width: 7%; }
  .corner.tl { left: 2.1%; top: 16.9%; height: 14.4%; }
  .corner.bl { left: 2.1%; top: 65.9%; height: 13.9%; }
  .corner.tr { left: 90.9%; top: 16.9%; height: 14.4%; }
  .corner.br { left: 90.9%; top: 65.9%; height: 13.9%; }
  .mutator { left: 1.2%; top: 35%; width: 8.8%; height: 26%; }
  .mutator .ic { font-size: 5.5cqh; }
  .mutator .lb { font-size: 1.8cqh; }

  .board { left: 21.35%; width: 54.9%; }
  .board.opp { top: 11.9%; height: 14.9%; }

  /* Obchod na 2 riadky nad sebou (spoločné hore, súkromné + kúzlo dole) –
     karty sú výrazne väčšie a ani 10 kariet nepretečie mimo dosku. */
  .shop-panel { left: 8%; top: 10.8%; width: 84%; height: 45%; }
  .shop-rows { flex-direction: column; align-items: center; gap: .6cqh; }
  .shop-row { min-height: 19cqh; }
  .shop-row .card { height: 19cqh; font-size: 1.75cqh; }

  /* Počas nákupu je môj board nižšie a menší (obchod berie vrch dosky);
     v boji sa obchod skryje a board sa vráti veľký do stredu. */
  .board.mine { top: 55%; height: 16%; }
  #stage .board.mine .card { height: 14.5cqh; font-size: 1.3cqh; }
  #stage .board.mine .card .tx { display: none; }
  #stage.battle .board.mine { top: 34%; height: 30%; }
  #stage.battle .board.mine .card { height: 24.5cqh; font-size: 2.1cqh; }
  #stage.battle .board.mine .card .tx { display: block; }

  #stage .hand { left: 21.7%; width: 53.7%; top: 71.9%; height: 14.9%; }

  .end-turn { left: 89.5%; top: 41%; width: 9%; height: 7.5%; font-size: 2cqh; }
}

/* ---------- Mobil (na výšku): PlayGround-mobile.png. Pásy zhora nadol ako na
   desktope: banner súpera → obchod v 2 riadkoch (spoločné / súkromné+kúzlo;
   v boji tam hrá súperov board) → MOJE bojujúce karty v strede (vlastný
   priesvitný panel) → RUKA v spodnom rade slotov šablóny (medzi kôpkou súpera
   a mojím balíčkom; sloty x 169–768 px, medzera 17, pri 941×1672) → môj
   banner. Hlavička je počas hry zbalená do ☰ (body.playing), doska tak
   berie takmer celú výšku a nič nie je pod ňou. */
@media (orientation: portrait) {
  #stage {
    width: min(100vw, calc(100vh * 941 / 1672));
    width: min(100vw, calc(100dvh * 941 / 1672));
    aspect-ratio: 941 / 1672;
    background-image: url("PlayGround-mobile.webp");
    border-radius: 0;
  }
  main { padding: 0; gap: 0; }
  #gameScreen { gap: 0; }
  /* Log nad doskou na mobile netreba – herné hlášky idú aj floatmi a bublinami. */
  body.playing .log { display: none; }
  /* Doska na celý telefón: žiadne modré okolie – pod doskou (a tam, kde jej
     pomer strán nevyplní obrazovku) je rozmazaná tá istá doska. */
  body.playing { background: #4a2f16; }
  body.playing::before {
    content: ""; position: fixed; inset: -20px; z-index: -1;
    background: url("PlayGround-mobile.webp") center / cover no-repeat;
    filter: blur(14px) brightness(.55);
  }
  .log { width: 98vw; font-size: .8rem; min-height: 1.2em; }
  .hero-plate { left: 21%; width: 58%; grid-template-columns: 1fr 12cqw 1fr; font-size: 1.9cqh; }
  .hero-plate.top { top: 2.4%; height: 5.6%; }
  .hero-plate.bottom { top: 89%; height: 5.6%; }
  .hero-plate .tier-shield { font-size: 3cqh; }
  /* optický stred štítu v mobilnom obrázku: hore ~6.75 %, dole ~92 % výšky dosky */
  .hero-plate.top .tier-shield { transform: translateY(1.55cqh); }
  .hero-plate.bottom .tier-shield { transform: translateY(.2cqh); }

  .corner { width: 12.5%; }
  .corner.tl { left: 2.6%; top: 12.3%; height: 11%; }
  .corner.bl { left: 2.6%; top: 74%; height: 11%; }
  .corner.tr { left: 85%; top: 12.3%; height: 11%; }
  .corner.br { left: 85%; top: 74%; height: 11%; }
  .corner .ic { font-size: 2.2cqh; }
  .corner .lb { font-size: 1cqh; }
  .corner .ct { font-size: 2.1cqh; }
  .mutator { left: 1.6%; top: 42%; width: 14%; height: 9%; }
  .mutator .ic { font-size: 2.6cqh; }
  .mutator .lb { font-size: 1cqh; }

  /* Obchod: 2 riadky nad sebou (spoločné hore, súkromné + kúzlo dole) – od
     6. karty ide druhý riadok, karty ostávajú čitateľné. */
  .shop-panel { left: 4%; top: 11%; width: 92%; height: 30%; }
  .shop-rows { flex-direction: column; align-items: center; gap: .5cqh; }
  .shop-row { min-height: 10.5cqh; gap: .4cqw; padding: 0 .4cqw; flex-wrap: nowrap; }
  .shop-head { height: auto; flex-wrap: wrap; gap: .3cqh .8cqw; justify-content: center; margin-top: .3cqh; }
  .banner { font-size: 1.5cqh; width: 100%; text-align: center; }
  .money { font-size: 2cqh; }
  .head-btns button { font-size: 1.35cqh; padding: .4cqh .8cqw; }

  /* Súperov board (len v boji) medzi hornými rámikmi. Karty na ploche,
     v ruke aj u súpera sú na mobile široké podľa SLOTU (šírka, výška
     z pomeru strán), nie podľa výšky dosky – 5 kariet sa vždy zmestí
     medzi rámiky a pri väčšom počte (ruka do 8) sa zúžia. */
  .board { left: 15.5%; width: 69%; gap: 1cqw; }
  .board.opp { top: 12.3%; height: 12%; }
  /* Špecificita musí prebiť desktopové `#stage.battle .board.mine .card`
     (pevná výška) – inak by sa karta natiahla (šírka zo slotu + cudzia výška). */
  #stage .board .card, #stage .board.mine .card, #stage.battle .board.mine .card,
  #stage .board.opp .card, #stage .hand .card {
    height: auto; width: 18%; flex: 0 1 18%; min-width: 0;
  }

  /* Moje bojujúce karty: stred dosky, vlastný panel (šablóna tu sloty nemá). */
  .board.mine {
    top: 43.5%; height: 22%; left: 5%; width: 90%;
    background: rgba(255,255,255,.16); border-radius: 1.4cqh;
  }
  #stage.battle .board.mine { top: 36%; height: 26%; }

  #stage .card { height: 10.4cqh; font-size: 1cqh; }
  #stage .board.mine .card { font-size: 1.4cqh; }
  #stage .board.mine .card .tx { display: none; }
  #stage.battle .board.mine .card { font-size: 1.5cqh; }
  #stage.battle .board.mine .card .tx { display: none; }
  .shop-row .card { height: 10.2cqh; font-size: .95cqh; }
  .card.spell-slot { margin-left: .8cqh; }

  .end-turn { left: 63%; top: 67%; width: 32%; height: 4.4%; font-size: 1.7cqh; }
  .fight-banner { font-size: 5cqh; }
  .fight-banner.small { font-size: 2.4cqh; top: 45%; }

  /* Ruka: spodný rad 5 slotov šablóny – tie isté súradnice, kde bol predtým
     môj board (a kde sú v obrázku nakreslené sloty). Do 8 kariet sa zmestí
     zúžením medzery. */
  #stage .hand {
    left: 16.5%; width: 66.6%; top: 74%; height: 11%; transform: none;
    display: flex; flex-wrap: nowrap; gap: 1.2cqw; justify-content: center; align-items: center;
    background: none; border-radius: 0; padding: 0; min-height: 0;
  }
  #stage .hand .card { font-size: 1cqh; }
  .preview-card { width: min(260px, 68vw); font-size: clamp(11px, 3.6vw, 15px); }
}

/* ---------- ☰ menu na mobile počas hry ----------
   Hlavička (názov, nová hra, zvuk, celá obrazovka, jazyk) sa počas hry
   (body.playing) zmení na fixný overlay: zavretá je neviditeľná a neberie
   výšku, ☰ vľavo hore ju otvorí ako panel cez tmavé pozadie. Platí pre
   portrét aj mobilný landscape; desktop má hlavičku ako doteraz. */
.menu-btn { display: none; }
@media (orientation: portrait),
       (orientation: landscape) and (pointer: coarse) and (max-height: 920px) {
  body.playing .menu-btn {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 40;
    width: 40px; height: 40px; padding: 0; font-size: 1.35rem; line-height: 1;
    border-radius: 50%; background: rgba(255,255,255,.88); box-shadow: 0 2px 6px rgba(0,0,0,.35);
  }
  body.playing header {
    position: fixed; inset: 0; z-index: 39; margin: 0;
    padding: calc(58px + env(safe-area-inset-top, 0px)) 14px 14px;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px;
    background: rgba(8, 16, 30, .62);
    opacity: 0; pointer-events: none; transition: opacity .15s ease-out;
  }
  body.playing header.open { opacity: 1; pointer-events: auto; }
  body.playing header h1 { color: #fff; text-shadow: 0 1px 3px #000; font-size: 1.3rem; }
  body.playing header .controls,
  body.playing header .langsw {
    display: flex; gap: 10px; margin: 0;
    background: rgba(255,255,255,.94); border-radius: 14px; padding: 10px;
  }
  body.playing header .controls button, body.playing header .langsw button { font-size: 1.05rem; }
  body.playing footer { display: none; }
}

/* ---------- Celá obrazovka (⛶ tlačidlo alebo PWA z plochy) ----------
   body.fs nastavuje game.js (Fullscreen API alebo display-mode standalone).
   Bez lišty prehliadača si doska vezme takmer celú výšku obrazovky –
   ~80px ostáva na hlavičku a log. Portrait škáluje cez dvh automaticky. */
body.fs footer { display: none; }
@media (orientation: landscape) {
  body.fs #stage, body.fs .log { width: min(98vw, calc((100dvh - 80px) * 1676 / 940)); }
}
@media (orientation: landscape) and (max-height: 600px),
       (orientation: landscape) and (pointer: coarse) and (max-height: 920px) {
  body.fs #stage, body.fs .log { width: min(98vw, calc((100dvh - 74px) * 1850 / 850)); }
}

/* ---------- Šach popri hre (len desktop) ----------
   ♟️ v hlavičke prepne body.chess: doska arény ide doľava (užšia), vpravo
   šachovnica bez hodín. Na mobile/tablete (portrait alebo dotyk) sa
   tlačidlo aj panel skryjú – nie je kam. */
#chessPanel { display: none; }
#chessBtn.active { background: #ffd33d; }
@media (orientation: landscape) and (pointer: fine) and (min-width: 1000px) {
  body.chess #gameScreen {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "log chess" "stage chess" "chat chess";
    column-gap: 14px; align-items: start; justify-items: center;
  }
  body.chess #gameScreen .log { grid-area: log; }
  body.chess #gameScreen #stage { grid-area: stage; }
  body.chess #gameScreen .chat-row { grid-area: chat; }
  body.chess #stage, body.chess .log {
    width: min(calc(100vw - 420px), calc(72vh * 1.783));
    width: min(calc(100vw - 420px), calc(72dvh * 1.783));
  }
  body.chess #chessPanel {
    grid-area: chess; display: flex; flex-direction: column; gap: 8px;
    width: 380px; padding: 10px; align-self: start; margin-top: 1.5em;
    background: rgba(255,255,255,.72); border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,20,40,.25);
  }
}
@media (orientation: portrait), (pointer: coarse) { #chessBtn { display: none !important; } }
.chess-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chess-title { font-weight: 800; color: #345; }
.chess-head button { font-size: .85rem; padding: 5px 10px; }
.chess-board {
  /* presne štvorcová: 8×8 s 1fr riadkami aj stĺpcami, výška z pomeru strán */
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  width: 100%; aspect-ratio: 1 / 1;
  border: 3px solid #6b4a1b; border-radius: 6px; overflow: hidden; user-select: none;
  touch-action: none;
}
.chess-board .sq {
  display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0;
  font-size: 30px; line-height: 1; cursor: pointer; position: relative;
}
.chess-board .sq.pw, .chess-board .sq.pb { cursor: grab; }
.chess-board .sq.dragging { color: transparent !important; text-shadow: none !important; }
/* Ťahaná figúra – klon letí pod kurzorom, sám nie je cieľom (pointer-events). */
.chess-ghost {
  position: fixed; z-index: 1000; pointer-events: none; font-size: 34px; line-height: 1;
  transform: translate(-50%, -50%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.5));
}
.chess-ghost.pw { color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 2px #000; }
.chess-ghost.pb { color: #111; }
.chess-board .sq.over { box-shadow: inset 0 0 0 4px rgba(60, 140, 255, .8); }
.chess-board .sq.light { background: #f0d9b5; }
.chess-board .sq.dark { background: #b58863; }
.chess-board .sq.last { box-shadow: inset 0 0 0 45px rgba(255, 230, 80, .35); }
.chess-board .sq.sel { box-shadow: inset 0 0 0 45px rgba(60, 140, 255, .45); }
.chess-board .sq.target::after {
  content: ""; position: absolute; width: 30%; height: 30%; border-radius: 50%;
  background: rgba(30, 90, 30, .45);
}
.chess-board .sq.target.pw::after, .chess-board .sq.target.pb::after {
  width: 90%; height: 90%; background: none; border: 4px solid rgba(200, 40, 40, .55);
}
.chess-board .sq.pw { color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 2px #000; }
.chess-board .sq.pb { color: #111; }
.chess-board .sq.check { background: #e77 !important; }
.chess-status { font-weight: 700; color: #345; font-size: .9rem; min-height: 1.3em; text-align: center; }
