/* ================================================================
   HERNE UI — kov, kamen, zlato, pergamen. Vzdy tmava.
   Vlastne CSS, ziadne herne assety ani loga.
   Farby grafov overene validatorom (dark, surface #17130e):
   ludia #2f8ff0 / #ec4f1c, zdroje #1fa887 #c0850a #9a68f0 #56a83c.
   ================================================================ */

@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap;
  src: url("/fonts/marcellus-latin-400-normal.woff2") format("woff2");
  /* bez cislic 0-9: Marcellus ma "starodavne" cislice (0 ako O, 1 ako I) - tie idu z dalsieho fontu */
  unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap;
  src: url("/fonts/marcellus-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* :not(#_) zvysi specificitu nad povodne svetle/tmave bloky v style.css */
:root:not(#_) {
  color-scheme: dark;
  --surface-0: #0b0907;
  --surface-1: #17130e;
  --surface-solid: #17130e;
  --border: rgba(201, 162, 74, 0.16);
  --text-primary: #efe6d2;
  --text-secondary: #c4b797;
  --text-muted: #8f846d;
  --grid: rgba(239, 230, 210, 0.08);
  --series-1: #2f8ff0;
  --series-2: #ec4f1c;
  --src-1: #1fa887;
  --src-2: #c0850a;
  --src-3: #9a68f0;
  --src-4: #56a83c;
  --accent-soft: rgba(255, 209, 0, 0.10);
  --gold: #c9a24a;
  --gold-hi: #f1d78a;
  --title: #ffd100;          /* zlty nadpisovy text */
  --good: #1eff00;           /* zeleny "+" zisk */
  --radius: 6px;
  --display: "Marcellus", "Noto Serif", "Times New Roman", serif;
  --num: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --metal: linear-gradient(135deg, #3d301b 0%, #b38d3d 16%, #5e4a25 33%, #e3c47e 50%, #5a4524 67%, #a9853b 84%, #33291a 100%);
  --metal-dark: linear-gradient(180deg, #7a6132, #2e2414);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='1200'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.1 0 0 0 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  --panel: linear-gradient(180deg, rgba(36, 29, 20, .97), rgba(17, 14, 10, .97));
}

html { background: var(--surface-0); }
body {
  background: transparent;
  color: var(--text-primary);
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* pozadie: tmavy kamen + jemny nadych frakcii v rohoch + vineta */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    var(--grain) 0 0 / 180px 180px,
    var(--mottle) center / cover no-repeat,
    radial-gradient(circle at 0% 0%, rgba(47,143,240,.10), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(236,79,28,.10), transparent 42%),
    radial-gradient(ellipse at 50% -10%, #2a2016 0%, #120e0a 55%, #070605 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,.72) 100%);
}

/* ---- hlavicka: kovovy zlaty napis ---- */
header { padding: 14px 0 16px; align-items: center; }
header h1 {
  font-family: var(--display); font-weight: 400; font-size: 28px;
  letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6c8 0%, #ffd100 42%, #a8740f 58%, #ffe27a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 8px rgba(0,0,0,.9));
}
header .who { font-family: var(--display); color: var(--gold-hi); font-size: 15px; text-shadow: 0 1px 0 #000; }

/* ---- panely: kovovy ram, kamenna vypln, nity v rohoch ---- */
.card {
  border: 3px solid transparent;
  border-radius: 6px;
  background: var(--grain) padding-box, var(--panel) padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px #000, 0 10px 24px rgba(0,0,0,.6),
              inset 0 0 0 1px rgba(0,0,0,.85), inset 0 0 28px rgba(0,0,0,.5);
  position: relative;
  margin-bottom: 16px;
}
.card::before {
  content: ""; position: absolute; left: -8px; right: -8px; top: -8px; bottom: -8px;
  pointer-events: none; z-index: 1;
  --rivet: radial-gradient(circle, #fff3c4 0 1.4px, #d9b46a 2.4px, #6b5429 4.2px, #000 5px, transparent 5.6px);
  background:
    var(--rivet) 0 0 / 13px 13px no-repeat,
    var(--rivet) 100% 0 / 13px 13px no-repeat,
    var(--rivet) 0 100% / 13px 13px no-repeat,
    var(--rivet) 100% 100% / 13px 13px no-repeat;
}
.card h2 {
  font-family: var(--display); font-weight: 400; font-size: 18px;
  letter-spacing: .02em; text-transform: none; color: var(--title);
  text-shadow: 0 1px 0 #000, 0 0 8px rgba(0,0,0,.9);
  margin: -2px 0 14px; padding-bottom: 9px;
  background: linear-gradient(90deg, rgba(201,162,74,0), rgba(201,162,74,.6) 20%, rgba(201,162,74,.6) 80%, rgba(201,162,74,0)) left bottom / 100% 1px no-repeat;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- zalozky ako v hernom okne ---- */
.tabs { gap: 5px; padding: 0; margin-bottom: 16px; }
.tabs button, .ranges button {
  font-family: var(--display); font-size: 15px; letter-spacing: .02em; font-weight: 400;
  color: #c9b27a; padding: 9px 4px; min-width: 0;
  border: 2px solid transparent; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #2b2118, #140f0a) padding-box, var(--metal-dark) border-box;
  box-shadow: 0 0 0 1px #000, 0 3px 6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  text-shadow: 0 1px 0 #000;
}
.tabs button[aria-selected="true"], .ranges button[aria-selected="true"] {
  color: var(--title); font-weight: 400; border-color: transparent;
  background: linear-gradient(180deg, #4d3a22, #20170e) padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px #000, 0 0 12px rgba(255,209,0,.2), inset 0 1px 0 rgba(255,230,160,.18);
}
.ranges button { border-radius: 4px; }

/* ---- HERO: dva "unit frame" + bojovy pruh bodov ---- */
.hero-duel {
  padding: 14px 14px 12px;
  background:
    radial-gradient(ellipse 60% 90% at 0% 45%, rgba(47,143,240,.26), transparent 70%) padding-box,
    radial-gradient(ellipse 60% 90% at 100% 45%, rgba(236,79,28,.26), transparent 70%) padding-box,
    var(--grain) padding-box,
    linear-gradient(180deg, #211a12, #0f0c08) padding-box,
    var(--metal) border-box;
}
.hd-top { text-align: center; margin: -2px 0 14px; }
.hd-top span {
  display: inline-block; padding: 4px 16px; border-radius: 3px;
  font-family: var(--display); font-size: 14px; letter-spacing: .03em; color: var(--title);
  border: 1px solid transparent;
  background: linear-gradient(180deg, #2e2317, #15100a) padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0,0,0,.6);
  text-shadow: 0 1px 0 #000;
}
.hd-frames { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; }
.uf { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; }
.uf.r { flex-direction: row-reverse; text-align: right; }
.uf-port {
  position: relative; flex: 0 0 60px; width: 60px; height: 60px;
  border-radius: 50%; padding: 3px; background: var(--metal);
}
.uf.l .uf-port { box-shadow: 0 0 0 1px #000, 0 0 16px rgba(47,143,240,.6); }
.uf.r .uf-port { box-shadow: 0 0 0 1px #000, 0 0 16px rgba(236,79,28,.6); }
.uf-port img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%; border: 1px solid #000;
}
.uf-lvl {
  position: absolute; bottom: -5px; left: -6px;
  min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px;
  display: grid; place-items: center;
  font: 700 12px/1 var(--num); color: var(--title); text-shadow: 0 1px 0 #000;
  background: radial-gradient(circle at 50% 30%, #3e2f19, #110c06);
  border: 2px solid #b8923f; box-shadow: 0 0 0 1px #000, 0 2px 4px rgba(0,0,0,.7);
}
.uf.r .uf-lvl { left: auto; right: -6px; }
.uf-info { min-width: 0; }
.uf-name {
  font-family: var(--display); font-size: 16px; color: var(--title);
  text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uf-name small { font-family: system-ui, sans-serif; font-size: 11px; color: var(--text-muted); text-shadow: none; }
.uf-pts {
  font-family: var(--num); font-weight: 800; font-size: 30px; line-height: 1.05; color: #fff; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 3px 8px rgba(0,0,0,.9);
}
.uf-sub { font-size: 12px; color: var(--text-secondary); white-space: nowrap; margin-top: 1px; }
.uf-sub b { color: var(--good); font-weight: 600; text-shadow: 0 1px 0 #000; }
.hd-vs {
  font-family: var(--display); font-size: 20px; color: var(--title); padding: 0 2px;
  text-shadow: 0 1px 0 #000, 0 0 10px rgba(255,209,0,.45);
}
.hd-bar {
  position: relative; display: flex; height: 18px; margin: 16px 3px 12px;
  border-radius: 2px; background: #050403;
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #8a6d35, 0 0 0 4px #000, 0 3px 8px rgba(0,0,0,.7);
}
.hd-bar .l, .hd-bar .r { height: 100%; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.hd-bar .l { background: linear-gradient(180deg, #8ccaff 0%, #2f8ff0 38%, #14529e 62%, #2478d2 100%); }
.hd-bar .r { background: linear-gradient(180deg, #ffab7e 0%, #ec4f1c 38%, #9c2a0a 62%, #d4481a 100%); }
.hd-bar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0,0,0,.55) calc(10% - 1px) 10%);
}
.hd-bar .spark {
  position: absolute; top: -5px; bottom: -5px; width: 4px; margin-left: -2px; z-index: 1;
  background: #fff; border-radius: 2px;
  box-shadow: 0 0 8px 3px rgba(255,240,200,.9), 0 0 18px 6px rgba(255,209,0,.45);
  transition: left 1.4s cubic-bezier(.2,.8,.2,1);
  animation: spark 2.4s ease-in-out infinite;
}
@keyframes spark { 50% { box-shadow: 0 0 12px 5px rgba(255,240,200,1), 0 0 26px 9px rgba(255,209,0,.6); } }
.hd-note { margin: 0; text-align: center; font-size: 14px; color: var(--text-primary); text-shadow: 0 1px 0 #000; }
.hd-note b { color: #fff; }
.hd-sync { margin: 6px 0 0; text-align: center; font-size: 11px; color: var(--text-muted); }
.gain {
  position: absolute; top: -10px; left: 70px; z-index: 4; pointer-events: none;
  font: 22px/1 var(--display); color: var(--good);
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 10px rgba(30,255,0,.5);
  animation: gain 2.2s ease-out forwards;
}
.uf.r .gain { left: auto; right: 70px; }
@keyframes gain { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 15% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-30px); } }
@media (max-width: 400px) {
  .uf { gap: 7px; }
  .uf-port { flex-basis: 50px; width: 50px; height: 50px; }
  .uf-pts { font-size: 27px; }
  .uf-name { font-size: 14px; }
  .uf-sub { font-size: 11px; }
  .hd-vs { font-size: 17px; }
  .gain { left: 58px; } .uf.r .gain { right: 58px; }
}

/* ---- tlacidla: cervene herne tlacidlo so zlatym ramom ---- */
.btn {
  font-family: var(--display); font-size: 17px; font-weight: 400; letter-spacing: .02em;
  color: var(--title); border: 2px solid transparent; border-radius: 5px; padding: 11px;
  background: linear-gradient(180deg, #c8301f 0%, #8f150b 47%, #690c05 53%, #9d1b0f 100%) padding-box, var(--metal) border-box;
  text-shadow: 0 1px 0 #000, 0 0 4px rgba(0,0,0,.7);
  box-shadow: 0 0 0 1px #000, 0 3px 8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,220,180,.35), inset 0 -3px 5px rgba(0,0,0,.35);
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); filter: brightness(.95); }
.btn.sin, .btn.alt {
  font-size: 15px; padding: 9px; color: var(--gold-hi);
  background: linear-gradient(180deg, #3a2d1d, #1a130c) padding-box, var(--metal-dark) border-box;
}
.toggle { color: var(--title); font-family: var(--display); }

/* ---- vstupy: vsadene do kamena ---- */
input[type="password"], input[type="text"], input[type="date"], .detox-set select {
  background: #0c0a07; color: var(--text-primary);
  border: 1px solid #5a4728; border-radius: 3px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8);
}
input:focus, select:focus { outline: none; border-color: var(--title); box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 0 8px rgba(255,209,0,.3); }

/* ---- emoji = sloty akcnej listy ---- */
.emoji-row { gap: 6px; }
.emoji {
  width: 48px; height: 48px; padding: 0; display: grid; place-items: center;
  font-size: 24px; border-radius: 4px; border: 2px solid transparent;
  background: radial-gradient(circle at 50% 40%, #2c2a2e, #0c0b0e 75%) padding-box,
              linear-gradient(180deg, #a3a3a3, #3b3b3b) border-box;
  box-shadow: 0 0 0 1px #000, inset 0 0 10px rgba(0,0,0,.9), 0 2px 4px rgba(0,0,0,.7);
  transition: transform .12s, box-shadow .12s;
}
.emoji:hover { box-shadow: 0 0 0 1px var(--title), 0 0 12px rgba(255,209,0,.5), inset 0 0 10px rgba(0,0,0,.9); }
.emoji:active { transform: scale(.92); background: radial-gradient(circle, #4a3c1a, #0c0b0e 75%) padding-box, linear-gradient(180deg, #ffd100, #6b5429) border-box; }
.chips span { background: #0e0b08; border-color: rgba(201,162,74,.3); }

/* ---- pruhy: lesk ako ukazovatel zivota / skusenosti ---- */
.splitbar {
  position: relative; height: 14px; border-radius: 2px; gap: 0;
  background: #070605; overflow: hidden;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px #6b5429, 0 0 0 3px #000;
}
.splitbar span, .stack i, .tsb-fill {
  box-shadow: inset 0 5px 4px -3px rgba(255,255,255,.4), inset 0 -4px 4px -3px rgba(0,0,0,.45);
}
.splitbar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgba(0,0,0,.6) calc(5% - 1px) 5%);
}
.stack i { border-radius: 1px; }
.tsb-track { background: #070605; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #4e3d20; }
.tsb-fill { border-radius: 1px; }
.heat .cell { background: rgba(239,230,210,.07); border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.5); }
.heat .cell.shield { box-shadow: inset 0 0 0 2px var(--gold); }

/* ---- texty ---- */
.hero, .detox-item .hero { font-family: var(--num); font-weight: 800; color: #fff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 3px 8px rgba(0,0,0,.8); }
.smack { font-size: 16px; }
table th { color: var(--gold-hi); font-family: var(--display); font-weight: 400; font-size: 13px; }
th, td { border-bottom-color: rgba(201,162,74,.14); }
.legend, figcaption, .note { color: var(--text-secondary); }
figcaption, .note { color: var(--text-muted); }

/* ---- stavka = pergamen s ulohou ---- */
.card.stake {
  background:
    var(--grain) padding-box,
    radial-gradient(ellipse at 50% 50%, rgba(255,248,225,0) 45%, rgba(110,70,25,.45) 100%) padding-box,
    linear-gradient(180deg, #ecd9ab, #d8bd82) padding-box,
    var(--metal) border-box;
  color: #3a2410;
}
.card.stake h2 { color: #5a2d0c; text-shadow: none;
  background: linear-gradient(90deg, rgba(90,45,12,0), rgba(90,45,12,.5) 20%, rgba(90,45,12,.5) 80%, rgba(90,45,12,0)) left bottom / 100% 1px no-repeat; }
.card.stake .smack { color: #2e1a08; font-family: var(--display); font-size: 17px; font-style: normal; }
.card.stake .note, .card.stake small, .card.stake figcaption { color: #6b4a26; }
.card.stake input { background: #f6ead0; color: #2e1a08; border-color: #a0763a; box-shadow: inset 0 1px 3px rgba(80,50,20,.4); }

/* ---- tooltip ako v hre ---- */
.tooltip {
  background: rgba(8, 8, 22, .95); color: #e9e2cf;
  border: 1px solid #9a9aaa; border-radius: 5px;
  box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.7);
}
.tooltip b { color: #fff; font-family: var(--display); font-weight: 400; font-size: 13px; }

/* ---- "Dalsie statistiky" ako tlacidlo okna ---- */
details.more { margin: 4px 0 16px; }
details.more > summary {
  list-style: none; cursor: pointer; text-align: center; padding: 11px;
  font-family: var(--display); font-size: 16px; letter-spacing: .02em; color: var(--title);
  border: 2px solid transparent; border-radius: 5px;
  background: linear-gradient(180deg, #3a2d1d, #1a130c) padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px #000, 0 3px 8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,230,160,.15);
  text-shadow: 0 1px 0 #000;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "  ▾"; }
details.more[open] > summary { margin-bottom: 16px; }
details.more[open] > summary::after { content: "  ▴"; }

/* ---- odznaky: riadky ako v zozname uspechov, body v zlatom stite ---- */
.badges li {
  padding: 9px 10px; margin-bottom: 7px; border-radius: 4px;
  border: 1px solid rgba(201,162,74,.22);
  background: linear-gradient(90deg, rgba(64,48,26,.55), rgba(20,16,11,.55));
  box-shadow: inset 0 0 12px rgba(0,0,0,.5);
}
.badges li:last-child { border-bottom: 1px solid rgba(201,162,74,.22); }
.badges li.got { border-color: rgba(255,209,0,.55); background: linear-gradient(90deg, rgba(110,82,30,.55), rgba(30,22,12,.6)); }
.badges li.locked { opacity: .62; }
.btext strong { font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--title); }
.locked .btext strong { color: #b5aa90; }
.pts {
  display: inline-grid; place-items: center; width: 34px; height: 38px; min-width: 0; padding: 0 0 6px;
  border: none; border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%);
  background: linear-gradient(180deg, #fbe39a 0%, #d0a13f 45%, #8a5f1a 100%);
  color: #fff; font: 800 13px/1 var(--num);
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #3a2400, 0 0 3px #000;
}
.locked .pts { background: linear-gradient(180deg, #8a8a8a, #4a4a4a 60%, #2c2c2c); color: #ddd; }
.feat-mark { font-family: var(--display); font-weight: 400; }
.badge-icon { border-radius: 4px; }

/* ---- banner "Odznak ziskany" ---- */
.ach-inner {
  position: relative; overflow: hidden; border-radius: 6px;
  border: 3px solid transparent;
  background: var(--grain) padding-box, linear-gradient(180deg, #2c2217, #110d08) padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0,0,0,.7), 0 0 24px rgba(255,209,0,.25);
}
.ach-text small { color: var(--title); font-family: var(--display); letter-spacing: .06em; }
.ach-text strong { font-family: var(--display); font-weight: 400; font-size: 17px; }
.ach-banner.on .ach-inner::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,240,190,.35), transparent);
  transform: skewX(-20deg); animation: shine 1.6s .3s ease-out;
}
@keyframes shine { to { left: 120%; } }

.nudge-banner .smack { color: var(--title); font-family: var(--display); }

@media (prefers-reduced-motion: reduce) {
  .card, .hd-bar .l, .hd-bar .r, .hd-bar .spark, .gain, .ach-inner::after { animation: none !important; transition: none !important; }
}

/* ---- boky stranky: modry nadych vlavo (Simon), cerveny vpravo (Sabi) ---- */
html::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 55% at 0% 70%, rgba(40,120,255,.20), transparent 70%),
    radial-gradient(ellipse 38% 55% at 100% 30%, rgba(255,80,20,.20), transparent 70%),
    linear-gradient(90deg,
      rgba(30,95,210,.30) 0%, rgba(30,95,210,.10) 20%, transparent 38%,
      transparent 62%, rgba(215,65,20,.10) 80%, rgba(215,65,20,.30) 100%);
}

/* ================================================================
   FX — ziva stranka. Vsetko len pod html.fx (fx.js ho nezapne pri
   prefers-reduced-motion), takze bez JS je stranka normalne staticka.
   ================================================================ */
html.fx::after { animation: fxBreath 9s ease-in-out infinite; }
@keyframes fxBreath { 50% { opacity: .7; } }
.fx-ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.fx-burst { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 79; pointer-events: none; }

/* karty sa vynaraju pri scrolle */
html.fx .card:not(.fx-in) { opacity: 0; transform: translateY(18px) scale(.985); }
html.fx .card.fx-in { animation: fxRise .65s cubic-bezier(.2,.8,.2,1) var(--d, 0ms) both; }
@keyframes fxRise { from { opacity: 0; transform: translateY(18px) scale(.985); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
html.fx .card.fx-fresh::before { animation: fxRivet 1.1s ease-out var(--d, 0ms) both; }
@keyframes fxRivet { 30% { filter: brightness(2.6) drop-shadow(0 0 4px #ffd100); } }

/* obsah kariet pri prvom zobrazeni */
html.fx .card.fx-fresh .splitbar span, html.fx .card.fx-fresh .stack i {
  transform-origin: left center; animation: fxGrowX .9s cubic-bezier(.2,.8,.2,1) calc(var(--d, 0ms) + 250ms) both;
}
@keyframes fxGrowX { from { transform: scaleX(0); } }
html.fx .card.fx-fresh .heat .cell {
  animation: fxPop .35s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0ms) + 200ms + var(--k, 0) * 14ms) both;
}
@keyframes fxPop { from { transform: scale(0); opacity: 0; } }
html.fx .card.fx-fresh svg path[fill^="var(--series"]:not([opacity]) {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: fxGrowY .6s cubic-bezier(.2,.8,.2,1) calc(var(--d, 0ms) + 200ms + var(--k, 0) * 22ms) both;
}
@keyframes fxGrowY { from { transform: scaleY(0); } }
html.fx .card.fx-fresh svg circle, html.fx .card.fx-fresh svg path[opacity], html.fx .card.fx-fresh svg path[stroke-dasharray] {
  animation: fxFade .6s calc(var(--d, 0ms) + 1.1s) both;
}
@keyframes fxFade { from { opacity: 0; } }

/* hero: castice za obsahom, svetlo obieha portrety, pruh "tlaci" k svu */
.hd-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; border-radius: 3px; }
.hero-duel > :not(.hd-fx) { position: relative; z-index: 1; }
.uf-lvl { z-index: 2; }
html.fx .uf-port::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 65%, rgba(190,230,255,.95) 82%, transparent 86%);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 5px), #000 calc(50% - 4px) calc(50% - 1px), transparent 50%);
  mask: radial-gradient(circle, transparent 0 calc(50% - 5px), #000 calc(50% - 4px) calc(50% - 1px), transparent 50%);
  animation: fxSpin 3.2s linear infinite;
}
html.fx .uf.r .uf-port::after {
  background: conic-gradient(from 0deg, transparent 0 65%, rgba(255,200,120,.95) 82%, transparent 86%);
  animation-direction: reverse;
}
@keyframes fxSpin { to { transform: rotate(360deg); } }
html.fx .uf.l .uf-port { animation: fxAuraL 3s ease-in-out infinite; }
html.fx .uf.r .uf-port { animation: fxAuraR 3s ease-in-out 1.5s infinite; }
@keyframes fxAuraL { 50% { box-shadow: 0 0 0 1px #000, 0 0 28px 6px rgba(47,143,240,.9); } }
@keyframes fxAuraR { 50% { box-shadow: 0 0 0 1px #000, 0 0 28px 6px rgba(236,79,28,.9); } }
.uf.lead .uf-port::before {
  content: "👑"; position: absolute; top: -16px; left: 50%; z-index: 3; font-size: 17px; line-height: 1;
  transform: translateX(-50%) rotate(-10deg); filter: drop-shadow(0 1px 1px #000);
}
html.fx .uf.lead .uf-port::before { animation: fxBob 2.6s ease-in-out infinite; }
@keyframes fxBob { 50% { transform: translateX(-50%) translateY(-3px) rotate(-5deg); } }
html.fx .hd-vs { animation: fxVs 2.4s ease-in-out infinite; }
@keyframes fxVs { 50% { text-shadow: 0 1px 0 #000, 0 0 18px rgba(255,209,0,.9); transform: scale(1.08); } }
.hd-bar .l, .hd-bar .r { position: relative; overflow: hidden; }
html.fx .hd-bar .l::after, html.fx .hd-bar .r::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.30) 45%, transparent 65%) 0 0 / 34px 100% repeat-x;
  animation: fxFlowR 1.1s linear infinite;
}
html.fx .hd-bar .r::after { animation-name: fxFlowL; }
@keyframes fxFlowR { to { background-position: 34px 0; } }
@keyframes fxFlowL { to { background-position: -34px 0; } }

/* nadpis: zlaty lesk prebehne kazdych par sekund */
html.fx header h1 {
  background:
    linear-gradient(105deg, transparent 42%, rgba(255,255,255,.95) 50%, transparent 58%) 100% 0 / 300% 100% no-repeat,
    linear-gradient(180deg, #fff6c8 0%, #ffd100 42%, #a8740f 58%, #ffe27a 100%);
  -webkit-background-clip: text; background-clip: text;
  animation: fxTitle 7s ease-in-out 1s infinite;
}
@keyframes fxTitle { 0%, 72% { background-position: 100% 0, 0 0; } 100% { background-position: 0% 0, 0 0; } }
html.fx .tabs button[aria-selected="true"] { animation: fxTab 3.2s ease-in-out infinite; }
@keyframes fxTab { 50% { box-shadow: 0 0 0 1px #000, 0 0 18px rgba(255,209,0,.38), inset 0 1px 0 rgba(255,230,160,.18); } }

/* tlacidla: lesk pri dotyku */
.btn, details.more > summary { position: relative; overflow: hidden; }
html.fx .btn::after, html.fx details.more > summary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,240,200,.38), transparent); transform: skewX(-20deg);
}
html.fx .btn:hover::after, html.fx .btn:active::after, html.fx .btn:focus-visible::after,
html.fx details.more > summary:hover::before { left: 130%; transition: left .6s ease-out; }

/* emoji: cooldown ako pri kuzle + emoji odleti */
@property --cd { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.emoji { position: relative; overflow: hidden; }
.emoji.cd { cursor: default; }
.emoji.cd::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(transparent var(--cd), rgba(0,0,0,.72) var(--cd));
  animation: fxCd 4s linear forwards;
}
@keyframes fxCd { to { --cd: 360deg; } }
.emoji.ready { animation: fxReady .7s ease-out; }
@keyframes fxReady { 0% { box-shadow: 0 0 0 1px var(--title), 0 0 20px 5px rgba(255,209,0,.85), inset 0 0 10px rgba(0,0,0,.9); } }
.fx-fly {
  position: fixed; z-index: 90; pointer-events: none; font-size: 26px; line-height: 1;
  transform: translate(-50%, -50%); animation: fxFly 1.2s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes fxFly { to { opacity: 0; transform: translate(-50%, -150px) scale(2) rotate(-12deg); } }

/* odznaky: stity sa obcas zalesknu, ziskane ikony dychaju */
.pts { position: relative; overflow: hidden; }
html.fx .badges li.got .pts::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); transform: skewX(-20deg);
  animation: fxShield 6s ease-in-out calc(var(--k, 0) * .5s) infinite;
}
@keyframes fxShield { 0%, 80% { left: -70%; } 100% { left: 130%; } }
html.fx .badges li.got .badge-icon { animation: fxIcon 3.5s ease-in-out infinite; }
@keyframes fxIcon { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 8px rgba(0,0,0,.6), 0 0 18px rgba(255,209,0,.6); } }

/* ---- 5 zaloziek sa musi zmestit aj na uzky mobil ---- */
.tabs button { position: relative; }
@media (max-width: 440px) {
  .tabs { gap: 4px; }
  .tabs button { font-size: 13.5px; padding: 9px 1px; letter-spacing: 0; }
}
.tab-badge {
  position: absolute; top: -8px; right: -5px; z-index: 2;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  font: 700 11px/17px var(--num); color: #fff; text-shadow: 0 1px 0 #000;
  background: radial-gradient(circle at 50% 35%, #e3452c, #8a1208);
  border: 1px solid var(--title); box-shadow: 0 0 0 1px #000, 0 0 8px rgba(255,80,40,.7);
}
html.fx .tab-badge { animation: fxBadge 1.6s ease-in-out infinite; }
@keyframes fxBadge { 50% { transform: scale(1.15); } }

/* ---- chat ako herne chatove okno ---- */
.chat-log {
  height: min(58vh, 540px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 10px; border-radius: 3px;
  background: rgba(0,0,0,.45);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.9), inset 0 0 0 2px rgba(201,162,74,.18), inset 0 2px 12px rgba(0,0,0,.8);
  font-size: 15px; line-height: 1.45;
  scrollbar-width: thin; scrollbar-color: #6b5429 transparent;
}
.chat-line { position: relative; padding: 3px 28px 3px 0; overflow-wrap: anywhere; border-radius: 2px; }
.chat-time { color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chat-name { font-weight: 700; text-shadow: 0 1px 0 #000; }
.chat-sep { color: var(--text-muted); }
.chat-text { color: #f3ecda; white-space: pre-wrap; text-shadow: 0 1px 0 #000; }
.chat-del {
  position: absolute; right: 0; top: 3px; padding: 2px 4px;
  background: none; border: 0; cursor: pointer; font: 12px system-ui, sans-serif;
  color: var(--text-muted); opacity: .45;
}
.chat-del:hover, .chat-del.armed { opacity: 1; color: #ff6b4a; }
.chat-day { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; color: var(--title); font: 13px var(--display); text-transform: capitalize; }
.chat-day::before, .chat-day::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,162,74,.5), transparent); }
.chat-empty { color: var(--text-muted); text-align: center; margin: 40px 10px; font-style: italic; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.chat-form textarea {
  flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 11px;
  font: 16px/1.35 system-ui, -apple-system, sans-serif;   /* 16px = iPhone nezoomuje */
  background: #0c0a07; color: var(--text-primary);
  border: 1px solid #5a4728; border-radius: 3px; box-shadow: inset 0 2px 6px rgba(0,0,0,.8);
}
.chat-form textarea:focus { outline: none; border-color: var(--title); box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 0 8px rgba(255,209,0,.3); }
.chat-send { width: auto; margin-top: 0; padding: 11px 16px; flex: 0 0 auto; }
.chat-err:empty { display: none; }
html.fx .chat-line.new { animation: fxMsg .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fxMsg { from { opacity: 0; transform: translateX(-10px); background: rgba(255,209,0,.2); } to { background: transparent; } }

/* ---- kanal suboja (combat log) ---- */
.kl { list-style: none; margin: 0; padding: 0; }
.kl-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 8px 8px 10px; margin-bottom: 6px; border-radius: 2px;
  border-left: 3px solid var(--kto, var(--gold));
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0) 75%);
}
.kl-item.ja { opacity: .8; }
.kl-emoji { flex: 0 0 26px; width: 26px; text-align: center; font-size: 20px; line-height: 1.25; }
.kl-ico { flex: 0 0 30px; width: 30px; height: 30px; }
.kl-ico .ico { width: 18px; height: 18px; }
.kl-body { flex: 1; min-width: 0; }
.kl-text { display: block; font-size: 14.5px; line-height: 1.4; color: #f3ecda; text-shadow: 0 1px 0 #000; overflow-wrap: anywhere; }
.kl-time { display: block; margin-top: 2px; font-size: 11px; color: var(--text-muted); }
.kanal .toggle { margin-top: 2px; }

/* ---- "Kym si bol prec" - herne varovanie ---- */
.raid {
  position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.64); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: opacity .26s;
}
.raid.off { opacity: 0; }
.raid-box {
  width: min(460px, 100%); max-height: 86vh; overflow: auto; padding: 16px;
  border: 3px solid transparent; border-radius: 6px;
  background: var(--grain) padding-box, var(--panel) padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0,0,0,.8), 0 0 40px rgba(255,60,20,.28);
}
.raid-box h3 {
  margin: 0 0 14px; text-align: center; font: 23px var(--display); color: #ff5a36;
  text-transform: uppercase; letter-spacing: .06em;
  text-shadow: 0 0 12px rgba(255,60,20,.85), 0 2px 0 #000;
}
.raid .btn { margin-top: 8px; }
html.fx .raid { animation: fxFade .25s both; }
html.fx .raid-box { animation: fxRaidPop .45s cubic-bezier(.2,1.4,.4,1) both; }
html.fx .raid-box h3 { animation: fxRaidPulse 1.2s ease-in-out 3; }
@keyframes fxRaidPop { from { transform: scale(.7); opacity: 0; } }
@keyframes fxRaidPulse { 50% { text-shadow: 0 0 26px rgba(255,80,30,1), 0 2px 0 #000; transform: scale(1.05); } }

/* ---- zive hlasenia hore (ked je appka otvorena) ---- */
.toasts {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 84;
  width: min(460px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto; cursor: pointer; display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 4px; border: 2px solid transparent;
  background: linear-gradient(180deg, #2a2117, #110d08) padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px #000, 0 8px 24px rgba(0,0,0,.7), 0 0 18px var(--kto, #ffd100);
  color: #fff; font-size: 14.5px; line-height: 1.35; text-shadow: 0 1px 0 #000;
  transition: opacity .45s, transform .45s;
}
.toast.off { opacity: 0; transform: translateY(-12px); }
html.fx .toast { animation: fxToast .45s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes fxToast { from { opacity: 0; transform: translateY(-22px) scale(.95); } }

/* ---- systemove hlasky v chate (ako zlte systemove spravy v hre) ---- */
.chat-line.sys { padding-left: 7px; border-left: 2px solid var(--kto, var(--gold)); margin: 3px 0; }
.chat-line.sys .chat-text { color: #ffe066; font-style: italic; }

/* ---- dennik bodov ---- */
.hero-duel .uf { cursor: pointer; }
.dn-spolu { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 0; }
.dn-spolu span { display: inline-flex; align-items: center; gap: 5px; }
.dn-den {
  margin-bottom: 7px; border-radius: 3px;
  border: 1px solid rgba(201,162,74,.2); background: rgba(0,0,0,.25);
}
.dn-den[open] { border-color: rgba(201,162,74,.4); }
.dn-den > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 92px 1fr auto;
  gap: 10px; align-items: center; padding: 9px 10px;
}
.dn-den > summary::-webkit-details-marker { display: none; }
.dn-datum { font-family: var(--display); color: var(--title); font-size: 15px; text-transform: capitalize; }
.dn-bar { height: 10px; }
.dn-bar:empty { background: rgba(239,230,210,.07); border-radius: 2px; }
.dn-den > summary b { font-family: var(--num); font-weight: 800; color: #fff; text-shadow: 0 1px 0 #000; min-width: 58px; text-align: right; }
.dn-akt { list-style: none; margin: 0; padding: 2px 10px 6px; font-size: 14px; line-height: 1.5; color: #f3ecda; }
.dn-akt b { color: #fff; font-weight: 600; }
.dn-akt .dn-nic { color: var(--text-muted); font-style: italic; }
.dn-tab { margin: 0 0 6px; font-size: 13px; }
.dn-tab td { padding: 5px 10px; vertical-align: top; }
.dn-tab td:first-child { white-space: nowrap; color: var(--text-secondary); }
.dn-tab td:first-child .swatch { margin-right: 6px; vertical-align: -1px; }
.dn-tab .dn-why { text-align: left; color: var(--text-muted); font-size: 12px; }
.dn-tab td:last-child { font-weight: 700; color: #fff; }
@media (max-width: 400px) {
  .dn-den > summary { grid-template-columns: 76px 1fr auto; }
  .dn-datum { font-size: 14px; }
}

/* ---- fotky v chate ---- */
.chat-img {
  display: block; margin: 6px 0 2px; max-width: min(260px, 100%); max-height: 320px;
  border-radius: 3px; cursor: zoom-in; object-fit: cover;
  border: 2px solid transparent; background: #000 padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0,0,0,.6);
}
.chat-line .chat-text:empty { display: none; }
.chat-foto-btn {
  flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 22px; cursor: pointer; border-radius: 4px; border: 2px solid transparent;
  background: radial-gradient(circle at 50% 40%, #2c2a2e, #0c0b0e 75%) padding-box,
              linear-gradient(180deg, #a3a3a3, #3b3b3b) border-box;
  box-shadow: 0 0 0 1px #000, inset 0 0 10px rgba(0,0,0,.9);
}
.chat-foto-btn:hover { box-shadow: 0 0 0 1px var(--title), 0 0 10px rgba(255,209,0,.45), inset 0 0 10px rgba(0,0,0,.9); }
.chat-nahlad { position: relative; display: inline-block; margin-top: 10px; }
.chat-nahlad[hidden] { display: none; }
.chat-nahlad img {
  display: block; max-height: 120px; max-width: 200px; border-radius: 3px;
  border: 2px solid var(--gold); box-shadow: 0 0 0 1px #000;
}
.chat-nahlad-x {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--title); background: #8a1208; color: #fff; font-size: 12px; cursor: pointer;
  box-shadow: 0 0 0 1px #000;
}
.foto-full {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 12px;
  background: rgba(0,0,0,.9); cursor: zoom-out;
}
.foto-full img { max-width: 100%; max-height: 100%; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 10px 40px rgba(0,0,0,.8); }

/* ---- radar: tabulka hodnot pod grafom ---- */
.radar-tab { margin-top: 10px; font-size: 13px; }
.radar-tab th { font-family: var(--num); font-weight: 600; font-size: 12px; white-space: nowrap; }
.radar-tab th .swatch { margin-right: 5px; }
