:root {
  --bg: #0d0b14; --panel: rgba(18,14,26,.86); --line: #3a3148; --text: #f1ece4; --muted: #c9bfd6;
  --accent: #ff7a2e; --accent-soft: #ffd2b0; --teal: #4fd1e8; --melee: #e9dcc6; --magic: #ff9a4d;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, sans-serif; }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
h1, h2 { font-family: Cinzel, Georgia, serif; font-weight: 800; margin: 0; letter-spacing: .02em; }
.hidden { display: none !important; }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.screen { position: fixed; inset: var(--safe, 0px); pointer-events: none; }   /* --safe = okraj pro TV s overscanem (?okraj=N) */

/* ---------- lobby ---------- */
#lobby { display: flex; justify-content: space-between; align-items: center; padding: 5vh 5vw;
  background: linear-gradient(90deg, rgba(13,11,20,.92) 0%, rgba(13,11,20,.55) 55%, rgba(13,11,20,.85) 100%); }
.lobby-left { max-width: 46vw; display: flex; flex-direction: column; gap: 18px; }
#lobby h1 { font-size: 84px; line-height: 1; text-shadow: 0 0 40px rgba(255,122,46,.35); }
.camp-card { padding: 20px 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.camp-card h2 { font-size: 34px; margin: 6px 0 2px; }
.camp-card p { margin: 10px 0 0; line-height: 1.5; color: #ddd5e6; }
.party-chips { display: flex; flex-wrap: wrap; gap: 12px; min-height: 64px; }
.chip { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); animation: pop .35s ease-out; }
.chip .letter, .hero .letter { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-family: Cinzel, serif; font-weight: 800; font-size: 22px; }
.chip b { display: block; font-size: 17px; }
.chip span { font-size: 13px; color: var(--muted); }
.chip.off { opacity: .45; }
.hint { font-size: 18px; color: var(--accent-soft); }
/* uložené rozehrané hry (save/resume) */
.saves-box { display: flex; flex-direction: column; gap: 8px; }
.save-row { display: flex; align-items: baseline; gap: 14px; padding: 10px 16px; border-radius: 14px; background: rgba(21,17,29,.82); border: 1px solid var(--line); }
.save-row b { font-family: Cinzel, serif; font-size: 17px; white-space: nowrap; }
.save-row span { font-size: 14px; color: #ddd5e6; flex: 1; }
.save-row i { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; }
.save-row.off { opacity: .5; }
.camp-card.resume { border-color: var(--accent); }
.resume-heroes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.resume-heroes .chip.free { border-style: dashed; opacity: .6; }
.lobby-right { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px;
  border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.qr-box { width: 300px; height: 300px; border-radius: 18px; overflow: hidden; background: #f1ece4; }
.qr-box img { width: 100%; height: 100%; display: block; }
.code { font-family: Cinzel, serif; font-weight: 800; font-size: 64px; letter-spacing: .14em; color: var(--accent); }

/* ---------- HUD ---------- */
.hud-top { position: absolute; left: 32px; right: 32px; top: 24px; display: flex; justify-content: space-between; align-items: flex-start; }
.status { margin-top: 6px; padding: 10px 18px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  font-size: 20px; font-weight: 600; display: inline-block; }
.status.turn { border-color: var(--accent); }
.hud-join { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.hud-join img { width: 72px; height: 72px; border-radius: 8px; background: #f1ece4; }
.code-small { font-family: Cinzel, serif; font-weight: 800; font-size: 28px; letter-spacing: .12em; color: var(--accent); }
.log { position: absolute; right: 32px; top: 130px; width: 340px; display: flex; flex-direction: column; gap: 6px; }
.log div { padding: 8px 12px; border-radius: 10px; background: rgba(13,11,20,.66); font-size: 14px; line-height: 1.35; color: #ddd5e6; }
.log div:last-child { color: var(--text); border-left: 3px solid var(--accent); }
.heroes { position: absolute; left: 32px; right: 32px; bottom: 24px; display: flex; gap: 14px; justify-content: center; }
.hero { width: 190px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); position: relative; transition: transform .2s, border-color .2s; }
.hero.turn { border: 2px solid var(--accent); transform: translateY(-6px); }
.hero.down { opacity: .5; filter: grayscale(.7); }
.hero.off .name::after { content: ' · odpojen'; color: #ffb4a4; font-weight: 400; font-size: 12px; }
.hero .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hero .name { font-size: 15px; font-weight: 700; }
.hero .cls { font-size: 12px; color: var(--muted); }
.hero .hp { height: 10px; border-radius: 6px; background: #2a2236; overflow: hidden; }
.hero .hp div { height: 100%; background: linear-gradient(90deg, #d8433a, #ff7a2e); transition: width .4s; }
.hero .stats { display: flex; gap: 6px; font-size: 13px; font-weight: 700; }
.badge { padding: 3px 8px; border-radius: 8px; background: #2a2236; }
.badge.block { background: #1a2f3a; color: #9fdcef; }
.badge.bonus { background: #3a2a10; color: #ffd98a; }
.badge.wait { background: #3a1410; color: #ffb4a4; }
.badge.done { background: #1f3a2c; color: #9be3b4; }
.hero.flash-heal { box-shadow: 0 0 28px 4px rgba(125,209,138,.8); }
.hero.flash-hit { box-shadow: 0 0 28px 4px rgba(216,67,58,.9); animation: shake .4s; }
.hero.flash-buff { box-shadow: 0 0 28px 4px rgba(255,217,138,.8); }
.float { position: absolute; left: 50%; top: -10px; font-family: Cinzel, serif; font-weight: 800; font-size: 34px;
  transform: translateX(-50%); animation: floatUp 1.4s ease-out forwards; text-shadow: 0 2px 8px #000; pointer-events: none; }
/* úrovně hrdinů (progression.js): odznak, pruh XP, oslava „Úroveň 2!“ */
.hero .lvl-badge { position: absolute; top: -12px; right: -10px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: Cinzel, serif; font-weight: 800; font-size: 18px; color: #2a1a06; background: radial-gradient(circle at 35% 30%, #fff1c4, #f2b84b 55%, #a8741e);
  border: 2px solid #3a2a10; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero .lvl-badge.picking { animation: lvlPulse 1s ease-in-out infinite; }
@keyframes lvlPulse { 50% { box-shadow: 0 0 18px 6px rgba(255,217,138,.85); transform: scale(1.12); } }
.hero .xp-row { display: flex; align-items: center; gap: 8px; margin-top: -2px; }
.hero .xp { flex: 1; height: 6px; border-radius: 4px; background: #2a2236; overflow: hidden; }
.hero .xp div { height: 100%; background: linear-gradient(90deg, #b8862e, #ffd98a); transition: width .6s; }
.hero .xp-row span { font-size: 11px; color: #e6d3a4; font-weight: 700; white-space: nowrap; }
.hero .lvl-pick { font-size: 11px; color: #ffd98a; font-weight: 700; }
.hero .lvl-branch { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.hero.flash-level { border-color: #ffd98a; animation: lvlGlow 2.6s ease-out; }
@keyframes lvlGlow { 0% { box-shadow: 0 0 0 0 rgba(255,217,138,0); } 15% { box-shadow: 0 0 60px 18px rgba(255,217,138,.95); transform: translateY(-14px) scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(255,217,138,0); } }
.hero.flash-level::before { content: ''; position: absolute; left: 50%; top: 40%; width: 560px; height: 560px; margin: -280px 0 0 -280px; pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(rgba(255,217,138,.7) 0 6deg, transparent 6deg 18deg); border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%); animation: lvlRays 2.6s ease-out forwards; }
@keyframes lvlRays { from { transform: rotate(0) scale(.3); opacity: 1; } to { transform: rotate(80deg) scale(1.15); opacity: 0; } }
.hero.flash-level::after { content: attr(data-lvl); position: absolute; left: 50%; top: -58px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: Cinzel, serif; font-weight: 800; font-size: 30px; color: #ffd98a; text-shadow: 0 0 14px rgba(255,190,80,.9), 0 2px 6px #000; animation: lvlText 2.6s ease-out forwards; }
@keyframes lvlText { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -16px); } }

/* ---------- souboj ---------- */
#combat { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); width: 560px; padding: 16px 22px;
  border-radius: 20px; background: var(--panel); border: 1px solid var(--accent); text-align: center;
  display: flex; flex-direction: column; gap: 8px; align-items: center; }
#combat h2 { font-size: 30px; }
.hpbar { position: relative; width: 100%; height: 22px; border-radius: 11px; background: #2a2236; overflow: hidden; }
.hpbar div { height: 100%; background: linear-gradient(90deg, #7a2bff, #ff7a2e); transition: width .5s; }
.hpbar span { position: absolute; inset: 0; font-size: 14px; font-weight: 700; line-height: 22px; text-shadow: 0 1px 3px #000; }
.shields { display: flex; gap: 10px; }
.shield { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 12px; background: #1d1728; border: 1px solid var(--line); font-size: 14px; }
.shield.broken { opacity: .35; text-decoration: line-through; }
.shield.pop { animation: pop .5s; }
/* drak nad družinou: hlasování (panel níž, ať je nad družinou vidět kroužícího draka) */
#banner.dragon-vote { top: auto; bottom: 212px; padding: 14px 32px 18px; }
#banner.dragon-vote h2 { font-size: 32px; }
.dragon-opts .opt { display: flex; flex-direction: column; gap: 4px; min-width: 320px; max-width: 420px; text-align: center; }
.dragon-opts .opt span { font-size: 14px; opacity: .85; }
.dragon-opts .dvs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.dv { display: inline-flex; flex-direction: column; align-items: center; font-size: 12px; }
.dv img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #f2b84b; object-fit: cover; }
.dragon-el { display: flex; gap: 8px; justify-content: center; margin: 8px 0 4px; }
.dragon-res { font-size: 22px; font-weight: 700; margin: 6px 0; color: #ffd27a; }
/* slabiny a odolnosti příšer (živly) */
.elem { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; background: #1d1728; border: 1px solid var(--line); }
.elem.weak { color: #ffd27a; border-color: #8a6a2a; }
.elem.resist { color: #9fdcef; border-color: #2f5f70; }
.foe .elem { font-size: 11px; padding: 1px 6px; }
.foe .felem { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-top: 2px; }
.intent { font-size: 17px; font-weight: 600; color: #ffb4a4; }
.intent b { color: var(--text); }
/* skupina nepřátel: každý má vlastní kartičku se životy, štíty a záměrem */
#combat.group { width: auto; min-width: 560px; max-width: 980px; }
.foes { display: flex; gap: 10px; justify-content: center; width: 100%; }
.foe { flex: 1 1 0; min-width: 190px; max-width: 280px; padding: 8px 10px; border-radius: 14px; background: #1d1728;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; transition: opacity .4s; }
.foe .fname { font-family: Cinzel, serif; font-weight: 700; font-size: 17px; }
.foe .hpbar { height: 16px; }
.foe .hpbar span { font-size: 12px; line-height: 16px; }
.foe .fsh { display: flex; gap: 4px; justify-content: center; min-height: 24px; }
.foe .fsh svg { width: 21px; height: 24px; }
.foe .fsh .broken { opacity: .25; }
.foe .fsh .pop { animation: pop .5s; }
.foe .fint { font-size: 14px; font-weight: 600; color: #ffb4a4; }
.foe .fint b { color: var(--text); }
.foe.dead { opacity: .35; }
.foe.dead .fname { text-decoration: line-through; }
.foe.hit { animation: shake .4s; }

/* ---------- efekty kouzel (podle storyboardu) ---------- */
#fx-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.fx-orb { position: absolute; left: 22%; bottom: 14%; width: 70px; height: 70px; margin: -35px; border-radius: 50%;
  background: #ffb04d; box-shadow: 0 0 30px 14px rgba(255,122,46,.8), 0 0 90px 40px rgba(255,90,31,.35);
  animation: orbFly .7s cubic-bezier(.5,0,.9,.6) forwards; }
.fx-orb.frost { background: #c8f3fb; box-shadow: 0 0 30px 14px rgba(79,209,232,.8), 0 0 90px 40px rgba(79,209,232,.35); }
.fx-orb.holy { background: #fff3c4; box-shadow: 0 0 30px 14px rgba(255,236,160,.85), 0 0 90px 40px rgba(255,236,160,.35); }
.fx-burst { position: absolute; left: 50%; top: 42%; width: 140px; height: 140px; border-radius: 50%; border: 8px solid #ffb04d;
  box-shadow: 0 0 60px 20px rgba(255,122,46,.6); opacity: 0; animation: burst .9s ease-out .6s forwards; }
.fx-arrow { position: absolute; left: 25%; bottom: 10%; width: 8px; height: 90px; border-radius: 4px; background: #e8f6ff;
  box-shadow: 0 0 14px 4px rgba(79,209,232,.8); opacity: 0; animation: arrowFly .6s cubic-bezier(.4,0,1,.7) forwards; }
.fx-slash { position: absolute; left: 50%; top: 40%; width: 520px; height: 520px; transform: translate(-50%,-50%); }
.fx-slash path { fill: none; stroke-linecap: round; stroke-dasharray: 800; stroke-dashoffset: 800; animation: slash .7s ease-out forwards; }
.fx-glow { position: fixed; inset: 0; animation: glowFade .9s ease-out forwards; }
.fx-hit { position: fixed; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(216,40,40,.55), rgba(216,40,40,0) 70%); animation: glowFade .8s ease-out forwards; }
.dmg { position: absolute; left: 58%; top: 40%; font-family: Cinzel, serif; font-weight: 800; font-size: 72px; color: #fff3d6;
  text-shadow: 0 0 18px #ff7a2e, 0 3px 8px #000; transform: translateX(-50%); animation: floatUp 1.3s ease-out forwards; }

/* ---------- překryvy ---------- */
#dice { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(13,11,20,.55); }
.die { width: 220px; height: 220px; border-radius: 40px; background: linear-gradient(145deg, #f6efe6, #cfc4b3);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 -10px 0 rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; }
.die span { font-family: Cinzel, serif; font-weight: 800; font-size: 140px; color: #1a0e06; }
.die.rolling { animation: dieRoll .25s linear infinite; }
.die.done { animation: pop .4s; box-shadow: 0 0 80px 20px rgba(255,122,46,.6); }
#dice-who { font-size: 24px; }
#banner { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); padding: 20px 40px; border-radius: 22px;
  background: var(--panel); border: 2px solid var(--teal); text-align: center; font-size: 26px; animation: pop .4s; }
#banner h2 { font-size: 38px; margin-bottom: 8px; }
#banner .opts { display: flex; gap: 16px; justify-content: center; margin-top: 12px; }
#banner .opt { padding: 10px 18px; border-radius: 14px; background: #1d1728; border: 1px solid var(--teal); }
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(13,11,20,.55); }
.panel { max-width: 760px; padding: 32px 44px; border-radius: 26px; background: var(--panel); border: 2px solid var(--accent);
  text-align: center; animation: pop .45s; }
.panel h2 { font-size: 46px; margin: 8px 0 12px; }
.panel h1 { font-size: 80px; margin: 8px 0; }
.panel p { font-size: 22px; line-height: 1.5; color: #ddd5e6; margin: 0; }
.loot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.loot div { padding: 8px 14px; border-radius: 12px; background: #2a1d0e; border: 1px solid #f2b84b; font-size: 16px; }
#result.win .panel { border-color: #f2b84b; box-shadow: 0 0 120px rgba(242,184,75,.35); }
#result.lose .panel { border-color: #d8433a; }
#toast { position: fixed; left: 50%; top: 150px; transform: translateX(-50%); padding: 12px 22px; border-radius: 999px;
  background: rgba(13,11,20,.9); border: 1px solid var(--accent); font-size: 20px; font-weight: 600; animation: pop .3s; }
#offline { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 10px 18px; border-radius: 12px; background: #3a1410; color: #ffb4a4; }
/* ---------- den a noc ---------- */
/* bez mix-blend-mode a ve dne úplně skrytá: celoobrazovkové prolínání přes 3D plátno zdržuje každý snímek */
#nightfx { position: fixed; inset: 0; pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 1.6s ease, visibility 0s linear 1.6s;
  background: radial-gradient(circle at 50% 60%, rgba(10,14,44,.5), rgba(4,5,20,.8)); }
body.night #nightfx { opacity: 1; visibility: visible; transition: opacity 1.6s ease, visibility 0s; }
#lobby:not(.hidden) ~ #sky { display: none; }
#sky { position: fixed; left: 36px; top: 108px; width: 150px; height: 130px; overflow: hidden; pointer-events: none;
  border-bottom: 2px solid rgba(241,236,228,.35); }
#sky .sun, #sky .moon { position: absolute; left: 43px; width: 64px; height: 64px; border-radius: 50%;
  transition: transform 1.6s cubic-bezier(.4,0,.2,1), opacity 1.2s ease; }
#sky .sun { top: 26px; background: radial-gradient(circle at 40% 40%, #fff3c4, #ffb04d 60%, #ff7a2e);
  box-shadow: 0 0 36px 10px rgba(255,176,77,.55); }
#sky .moon { top: 26px; background: radial-gradient(circle at 35% 35%, #f4f8ff, #b9c8ee 70%);
  box-shadow: 0 0 30px 8px rgba(143,179,255,.5), inset -14px -6px 0 rgba(60,74,122,.45);
  transform: translateY(120px); opacity: 0; }
body.night #sky .sun { transform: translateY(120px); opacity: 0; }
body.night #sky .moon { transform: translateY(0); opacity: 1; }
.camhint { position: fixed; left: 14px; bottom: 6px; font-size: 12px; color: rgba(201,191,214,.6); }
.credits { position: fixed; right: 12px; bottom: 6px; font-size: 11px; color: rgba(201,191,214,.5); max-width: 60vw; text-align: right; line-height: 1.3; }
#hud:not(.hidden) ~ .credits { font-size: 9px; max-width: calc(100vw - 640px); opacity: .8; }   /* ve hře menší, ať nepřekrývá karty hrdinů */

@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
#banner, #toast { animation-name: popc; }
@keyframes popc { 0% { transform: translateX(-50%) scale(.85); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes shake { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-8px,2px); } 50% { transform: translate(7px,-3px); } 75% { transform: translate(-4px,1px); } }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1); } }
@keyframes orbFly { 0% { transform: translate(0,0) scale(.5); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(28vw,-34vh) scale(1.6); opacity: 1; } }
@keyframes burst { 0% { transform: translate(-50%,-50%) scale(.2); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(3.4); opacity: 0; } }
@keyframes arrowFly { 0% { transform: translate(0,0) rotate(48deg); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(25vw,-38vh) rotate(48deg); opacity: 1; } }
@keyframes slash { 10% { opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes glowFade { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dieRoll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(12deg) scale(1.06); } 100% { transform: rotate(0) scale(1); } }

.letter.avatar { object-fit: cover; border: 2px solid transparent; box-sizing: border-box; padding: 0; }

.badge.poison { background: #1f3a14; color: #9be35a; }
/* stavy hrdiny (jed / hoření / zmrazení): karta svítí barvou stavu, odznak s počtem kol */
.badge.poison, .badge.wait, .badge.done { white-space: nowrap; }
.hero.st-poison .stats, .hero.st-burn .stats, .hero.st-freeze .stats { flex-wrap: wrap; row-gap: 4px; }
.badge.burn { background: #3a1a08; color: #ffb347; white-space: nowrap; }
.badge.freeze { background: #10283a; color: #bff0ff; white-space: nowrap; }
.hero.st-poison { border: 2px solid #6fe03a; box-shadow: 0 0 22px 2px rgba(111,224,58,.55); animation: stGlowP 2.2s ease-in-out infinite; }
.hero.st-burn { border: 2px solid #ff7a2e; box-shadow: 0 0 22px 2px rgba(255,122,46,.6); animation: stGlowB 1s ease-in-out infinite; }
.hero.st-freeze { border: 2px solid #8fe6ff; box-shadow: 0 0 22px 2px rgba(143,230,255,.6); background-image: linear-gradient(160deg, rgba(160,220,255,.16), rgba(160,220,255,0) 60%); }
@keyframes stGlowP { 50% { box-shadow: 0 0 30px 5px rgba(111,224,58,.75); } }
@keyframes stGlowB { 50% { box-shadow: 0 0 32px 6px rgba(255,150,46,.85); } }
.st-int { font-weight: 700; white-space: nowrap; }


/* skrýš: kandidáti a předání karty s avatarem */
.give-row { display: flex; gap: 14px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.give-who { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; }
.give-who img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 2px solid #3a3148; background: #05040a; }
.give-who span { font-size: 12px; color: var(--muted); }
.gift { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 30; display: flex; align-items: center; gap: 22px;
  padding: 22px 30px; border-radius: 22px; background: rgba(21,17,29,.96); border: 2px solid #f2b84b; box-shadow: 0 0 60px rgba(242,184,75,.45);
  font-size: 26px; animation: giftIn .5s cubic-bezier(.2,1.3,.4,1), giftOut .5s ease-in 2.1s forwards; }
.gift img { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; border: 3px solid #f2b84b; background: #05040a; }
.gift .gold { color: #ffd98a; }
@keyframes giftIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
@keyframes giftOut { to { opacity: 0; transform: translate(-50%, -60%) scale(.95); } }

/* zlaťáky a obchod na TV */
.coin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 4px;
  background: radial-gradient(circle at 40% 35%, #fff3c4 0 18%, #f2c14b 20% 62%, #c8901e 64%); box-shadow: 0 0 0 1px #8a5d10; }
.badge.gold { background: #2a1d0e; color: #ffd98a; }
#event.shop-open .panel { max-width: 1500px; width: 86vw; text-align: left; }
.shop-tv { display: grid; grid-template-columns: 1fr 380px; gap: 24px; margin-top: 12px; }
.shop-tv .rows { display: flex; flex-direction: column; gap: 10px; }
.shop-row { display: grid; grid-template-columns: 64px 180px 1fr 90px 80px 110px; gap: 14px; align-items: center; padding: 10px 14px;
  border-radius: 14px; background: #1a1422; border: 1px solid #3a2f48; font-size: 16px; }
.shop-row img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #05040a; }
.shop-row .who span, .shop-row .offer span { display: block; font-size: 13px; color: var(--muted); }
.shop-row .price, .shop-row .gold { font-weight: 800; color: #ffd98a; font-size: 20px; }
.shop-row .ok { font-size: 14px; color: #9be3b4; }
.shop-row .st { font-size: 14px; color: var(--muted); }
.shop-row.done { border-color: #2f5a3c; }
.shop-row.done .st { color: #9be3b4; }
.shop-tv .arts { display: flex; flex-direction: column; gap: 10px; }
.shop-tv .art { display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 14px; background: #1a1422; border: 1px solid #3a2f48; font-size: 16px; font-weight: 800; color: #ffd98a; }
.shop-tv .art b { color: var(--text, #f1ece4); }
.shop-tv .art span:not(.art-dot) { grid-column: 2; font-size: 13px; font-weight: 400; color: var(--muted); }
.shop-tv .art .art-dot { grid-row: 1 / span 2; }
.shop-tv .art .coin { grid-column: 3; grid-row: 1 / span 2; }
.art-dot { width: 30px; height: 30px; border-radius: 50%; display: inline-block; box-shadow: inset 0 -4px 0 rgba(0,0,0,.3); }

/* souhrn výpravy – ocenění hrdinů */
#result-awards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
#result-awards .award { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; background: #1a1422; border: 1px solid #f2b84b; text-align: left;
  animation: pop .5s both; }
#result-awards .award:nth-child(2) { animation-delay: .15s } #result-awards .award:nth-child(3) { animation-delay: .3s }
#result-awards .award:nth-child(4) { animation-delay: .45s } #result-awards .award:nth-child(5) { animation-delay: .6s }
#result-awards img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #05040a; }
#result-awards b { display: block; font-size: 18px; }
#result-awards span { font-family: Cinzel, serif; font-weight: 800; font-size: 22px; color: #ffd98a; }

.badge.gold { display: inline-flex; align-items: center; white-space: nowrap; }

/* komba (spolupráce) a společníci */
.combo-banner { position: fixed; left: 50%; top: 19.5%; transform: translateX(-50%); z-index: 32; display: flex; align-items: center; gap: 18px;
  padding: 16px 30px; border-radius: 24px; background: rgba(16,12,24,.95); border: 3px solid var(--cc, #ffd98a);
  box-shadow: 0 0 70px var(--cc, #ffd98a), inset 0 0 30px rgba(255,255,255,.06);
  animation: comboIn .6s cubic-bezier(.2,1.4,.4,1), comboOut .5s ease-in 3.1s forwards; }
.combo-banner img { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; border: 3px solid var(--cc, #ffd98a); background: #05040a; }
.combo-banner .hero-n { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; }
.combo-banner .plus { font-family: Cinzel, serif; font-size: 46px; font-weight: 800; color: var(--cc, #ffd98a); }
.combo-banner .mid { text-align: center; min-width: 340px; }
.combo-banner .eyebrow { letter-spacing: .32em; color: var(--cc, #ffd98a); font-size: 15px; font-weight: 800; }
.combo-banner h2 { margin: 2px 0 4px; font-family: Cinzel, serif; font-size: 46px; color: #fff; text-shadow: 0 0 22px var(--cc, #ffd98a); }
.combo-banner .sum { font-size: 24px; color: #ffe9b8; font-weight: 800; }
.combo-banner .txt { font-size: 15px; color: var(--muted); max-width: 440px; }
@keyframes comboIn { 0% { opacity: 0; transform: translateX(-50%) scale(.4) rotate(-4deg); } 70% { transform: translateX(-50%) scale(1.08); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes comboOut { to { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(.95); } }
.dmg.combo-dmg { font-size: 96px; left: 52%; top: 36%; text-shadow: 0 0 30px currentColor; }
.dmg.comp-dmg { font-size: 46px; left: 62%; top: 48%; }
.badge.comp { background: #1d1a2a; border: 1px solid #c9bfd6; white-space: nowrap; }
.shop-tv .art span.comp-ico { grid-column: 1; grid-row: 1 / span 2; font-size: 26px; color: inherit; text-align: center; }
.shop-tv .eyebrow.comp-eyebrow { margin-top: 10px; }
.shop-tv .comps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }


/* heslo hry (veřejný server) */
#pass-box { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #2a2038, #0d0b14 70%); }
#pass-box .pass-card { display: flex; flex-direction: column; gap: 18px; align-items: center; padding: 48px 64px; border-radius: 22px; background: #15111d; border: 2px solid #ff7a2e; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
#pass-box h2 { margin: 0; font-family: Cinzel, serif; font-size: 48px; color: #f1ece4; }
#pass-box p { margin: 0; font-size: 22px; color: #ffb4a4; }
#pass-box input { width: 420px; padding: 16px 20px; font-size: 32px; letter-spacing: .2em; text-align: center; border-radius: 12px; border: 2px solid #3a3148; background: #0d0b14; color: #f1ece4; }
#pass-box input:focus { outline: none; border-color: #ff7a2e; }
#pass-box button { padding: 14px 48px; font-size: 26px; font-weight: 800; border: 0; border-radius: 12px; background: #ff7a2e; color: #1a120a; cursor: pointer; }
#pass-box button:focus { outline: 4px solid #fff; }
