/* Pixelify Sans' 2-tal ligner et spejlvendt S → alle cifre tegnes med Silkscreen */
@font-face { font-family: 'SpireDigits'; src: url(https://fonts.gstatic.com/s/silkscreen/v6/m8JXjfVPf62XiF7kO-i9YLNlaw.woff2) format('woff2'); unicode-range: U+0030-0039; font-display: swap; }
:root {
  --bg: #1b2a4a;
  --panel: #1a1830;
  --panel2: #252242;
  --line: #0c0b18;
  --hi: #3d3868;
  --txt: #f2ecdc;
  --dim: #a9a3c4;
  --gold: #ffd24a;
  --xp: #6ad8ff;
  --ember: #ff7a3a;
  --hp: #ff4a5a;
  --go: #4ac25a;
  --go-d: #2a7a36;
  --danger: #d8443a;
  --epic: #d27bff;
  --rare: #5ab0ff;
  --px: 3px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--txt);
  font-family: 'SpireDigits', 'Pixelify Sans', monospace; -webkit-user-select: none; user-select: none; touch-action: none; }
canvas#c { position: fixed; left: 0; top: 0; image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
canvas#ov { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; }
.hidden { display: none !important; }
img.ic { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: middle; }
kbd { font-family: 'Silkscreen', monospace; font-size: 10px; background: #0006; border: 1px solid #fff3; padding: 1px 4px; border-radius: 2px; }

/* ---------- knapper ---------- */
.btn { font-family: 'SpireDigits', 'Pixelify Sans', monospace; font-size: 18px; font-weight: 600; color: var(--txt); cursor: pointer;
  background: var(--panel2); border: 3px solid var(--line); border-radius: 0; padding: 8px 16px;
  box-shadow: inset 0 3px 0 var(--hi), inset 0 -4px 0 #0005, 0 4px 0 var(--line); position: relative; top: 0;
  transition: filter .08s; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn:hover { filter: brightness(1.18); }
.btn:active { top: 3px; box-shadow: inset 0 3px 0 var(--hi), inset 0 -2px 0 #0005, 0 1px 0 var(--line); }
.btn.go { background: var(--go); box-shadow: inset 0 3px 0 #8af08a, inset 0 -4px 0 var(--go-d), 0 4px 0 var(--line); color: #fff; text-shadow: 0 2px 0 #0006; }
.btn.danger { background: var(--danger); box-shadow: inset 0 3px 0 #ff8a7a, inset 0 -4px 0 #7a1e1a, 0 4px 0 var(--line); }
.btn.big { font-size: 24px; padding: 12px 26px; min-width: 300px; }
.btn.small { font-size: 14px; padding: 4px 10px; }
.btn.icon { width: 42px; height: 42px; padding: 0; font-size: 16px; }
.btn.auto { width: auto; padding: 0 8px; font-family: 'Silkscreen', monospace; font-size: 11px; color: var(--dim); }
.btn.auto.on { background: var(--go); color: #fff; box-shadow: inset 0 3px 0 #8af08a, inset 0 -4px 0 var(--go-d), 0 4px 0 var(--line); }
.btn[disabled] { filter: grayscale(1) brightness(.6); cursor: not-allowed; }
.pill { background: #0006; padding: 2px 8px; font-family: 'Silkscreen', monospace; font-size: 14px; color: var(--ember); }

/* ---------- skærme ---------- */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 10; padding: 16px; }
.screen.dim { background: #0a0816b0; }
.panel { background: var(--panel); border: 3px solid var(--line); box-shadow: inset 0 0 0 3px var(--hi), 0 8px 0 #0008; padding: 22px 26px; max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; }
.panel.wide { max-width: 980px; }
.panel h2 { margin: 0 0 12px; font-size: 30px; text-align: center; color: var(--gold); text-shadow: 0 3px 0 #000; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-head h2 { margin: 0; }
.panel-foot { display: flex; justify-content: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.sub { color: var(--dim); margin: 6px 0 14px; }
.menu-col { display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* forside */
#menu { justify-content: space-between; padding: 4vh 16px 5vh; background: linear-gradient(#0a081600, #0a081600 60%, #0a0816aa); }
.logo { font-family: 'SpireDigits', 'Pixelify Sans'; font-weight: 700; font-size: clamp(52px, 11vw, 124px); margin: 0; letter-spacing: 4px; color: #ffe27a;
  text-shadow: 0 5px 0 #c0701a, 0 10px 0 #5a2a0a, 0 14px 22px #000a; text-align: center; animation: bob 3s ease-in-out infinite; }
.tag { text-align: center; font-size: 22px; margin: 6px 0 0; color: #fff; text-shadow: 0 3px 0 #000; }
.menu-meta { font-family: 'Silkscreen'; font-size: 12px; color: var(--dim); text-shadow: 0 2px 0 #000; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.kofi { position: fixed; right: 16px; bottom: 16px; font-size: 15px; color: #fff; text-decoration: none; background: #ff5e5b; border: 3px solid var(--line);
  padding: 6px 12px; box-shadow: inset 0 2px 0 #ff9a98, 0 3px 0 var(--line); z-index: 11; }
.kofi:hover { filter: brightness(1.1); }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud button, #hud .buildbar, #hud .bcard { pointer-events: auto; }
.hud-tl { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; }
.hp-wrap { display: flex; align-items: center; gap: 8px; }
.bar { position: relative; height: 22px; background: #0a0816; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px #2a2640; overflow: hidden; }
.bar.hp { width: min(300px, 40vw); }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--hp); box-shadow: inset 0 3px 0 #ff9aa4, inset 0 -3px 0 #a0202e; transition: width .12s; z-index: 2; }
.bar .ghost { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; opacity: .7; transition: width .6s .25s; z-index: 1; }
.bar span { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; font-family: 'Silkscreen'; font-size: 12px; text-shadow: 0 2px 0 #000; }
.lvl-row { display: flex; gap: 8px; align-items: center; }
.lvl { font-family: 'Silkscreen'; font-size: 14px; background: #0a0816cc; border: 2px solid var(--line); padding: 2px 8px; color: var(--xp); }
#loadout { display: flex; gap: 4px; flex-wrap: wrap; max-width: 60vw; }
.lo { position: relative; width: 30px; height: 30px; background: #0a0816cc; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.lo img { width: 24px; height: 24px; image-rendering: pixelated; }
.lo b { position: absolute; right: -3px; bottom: -5px; font-family: 'Silkscreen'; font-size: 10px; color: #fff; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.lo.w { border-color: #4a3a7a; overflow: hidden; }
.lo .cd { position: absolute; left: 0; right: 0; top: 0; height: 0; background: #0a0816c8; pointer-events: none; border-bottom: 2px solid #ffffff55; }
.lo.ready { box-shadow: 0 0 0 2px #fff, 0 0 10px #b48cff; }
.hud-tc { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wave-pill { background: #0a0816cc; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--hi); padding: 6px 16px; font-family: 'Silkscreen', monospace; font-size: 17px; letter-spacing: 1px; }
.phase { display: flex; gap: 10px; align-items: center; font-size: 15px; text-shadow: 0 2px 0 #000; }
.boss { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.boss span { font-size: 16px; color: #ff9a9a; text-shadow: 0 2px 0 #000; font-weight: 700; }
.boss .bar { width: min(420px, 60vw); height: 16px; }
.boss .fill { background: #b03aff; box-shadow: inset 0 3px 0 #d8a0ff, inset 0 -3px 0 #6a1a9a; }
.hud-tr { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.stat { display: flex; align-items: center; gap: 6px; font-family: 'Silkscreen', monospace; font-size: 18px; text-shadow: 0 2px 0 #000; }
.stat.big { font-size: 26px; color: var(--ember); }
#goldTxt { color: var(--gold); min-width: 40px; text-align: right; }
.btn-row { display: flex; gap: 6px; margin-top: 4px; }
.hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.xpbar { width: 100%; height: 10px; background: #0a0816; border-top: 2px solid var(--line); }
.xpbar .fill { height: 100%; width: 0; background: var(--xp); box-shadow: inset 0 2px 0 #c0f0ff; transition: width .15s; }
.buildbar { display: flex; gap: 8px; flex-wrap: wrap-reverse; justify-content: center; max-width: calc(100vw - 420px); }
.bcard { position: relative; width: 64px; height: 70px; background: #1a1830e0; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--hi), 0 3px 0 var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.bcard img { width: 36px; height: 36px; image-rendering: pixelated; }
.bcard .cost { font-family: 'Silkscreen'; font-size: 12px; color: var(--gold); display: flex; align-items: center; gap: 2px; }
.bcard .cost img { width: 12px; height: 12px; image-rendering: pixelated; }
.bcard .key { position: absolute; left: 3px; top: 1px; font-family: 'Silkscreen'; font-size: 10px; color: var(--dim); }
.bcard.sel { box-shadow: inset 0 0 0 3px var(--gold), 0 3px 0 var(--line); transform: translateY(-6px); }
.bcard.poor { filter: grayscale(.8) brightness(.7); }
.bcard .tip { display: none; position: absolute; bottom: 82px; left: 50%; transform: translateX(-50%); width: 200px; background: var(--panel); border: 3px solid var(--line); padding: 8px; font-size: 13px; text-align: left; box-shadow: inset 0 0 0 2px var(--hi); }
.bcard .tip b { color: var(--gold); display: block; font-size: 15px; }
.bcard:hover .tip { display: block; }

/* ---------- level up ---------- */
.lu-title { font-size: 54px; margin: 0; color: #ffe27a; text-shadow: 0 4px 0 #c0701a, 0 8px 0 #000; animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } }
.cards { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.card { width: 230px; min-height: 290px; background: var(--panel); border: 3px solid var(--line); box-shadow: inset 0 0 0 3px var(--rc, var(--hi)), 0 6px 0 #000a;
  padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; text-align: center; position: relative;
  animation: deal .4s ease-out backwards; transition: transform .1s; }
.card:nth-child(2) { animation-delay: .07s; } .card:nth-child(3) { animation-delay: .14s; }
@keyframes deal { from { transform: translateY(60px) rotate(-4deg); opacity: 0; } }
.card:hover { transform: translateY(-8px); filter: brightness(1.12); }
.card .cimg { width: 72px; height: 72px; image-rendering: pixelated; margin-top: 6px; filter: drop-shadow(0 4px 0 #0008); }
.card .cname { font-size: 22px; font-weight: 700; }
.card .ctag { font-family: 'Silkscreen'; font-size: 11px; padding: 2px 8px; background: #0008; color: var(--rc, var(--dim)); }
.card .cdesc { font-size: 16px; color: var(--txt); line-height: 1.25; }
.card .clvl { display: flex; gap: 4px; margin-top: auto; }
.card .clvl i { width: 14px; height: 8px; background: #0a0816; border: 2px solid var(--line); }
.card .clvl i.on { background: var(--xp); }
.card .clvl i.new { background: #fff; animation: blink .5s steps(2) infinite; }
.card .cown { align-self: stretch; margin: -13px -11px 0; padding: 5px 8px 4px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--oc) 22%, #0a0816); border-bottom: 2px solid color-mix(in srgb, var(--oc) 60%, transparent); }
.card .cown img { width: 20px; height: 20px; image-rendering: pixelated; }
.card .cown b { font-family: 'Silkscreen'; font-size: 12px; font-weight: 400; color: var(--oc); letter-spacing: 1px; }
.card .cown small { width: 100%; font-size: 11px; color: var(--dim); margin-top: -2px; }
.card .ckey { z-index: 1; position: absolute; top: 6px; left: 8px; font-family: 'Silkscreen'; font-size: 11px; color: var(--dim); }
@keyframes blink { 50% { background: var(--xp); } }

/* ---------- sanctum ---------- */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sitem { background: var(--panel2); border: 3px solid var(--line); padding: 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; box-shadow: inset 0 2px 0 var(--hi); }
.sitem:hover { filter: brightness(1.15); }
.sitem img { width: 52px; height: 52px; image-rendering: auto; flex: none; filter: drop-shadow(0 3px 0 #0008); }
.sitem .sn { font-weight: 700; font-size: 16px; }
.sitem .sd { font-size: 13px; color: var(--dim); }
.sitem .sc { font-family: 'Silkscreen'; font-size: 12px; color: var(--ember); margin-top: 3px; }
.sitem .pips { display: flex; gap: 3px; margin-top: 4px; }
.sitem .pips i { width: 10px; height: 6px; background: #0a0816; border: 1px solid #000; }
.sitem .pips i.on { background: var(--ember); }
.sitem.maxed { opacity: .55; cursor: default; }
.sitem.future { filter: grayscale(1) brightness(.55); cursor: default; }
.sitem.future .sc { color: #9a9ab0; }
.sitem.poor .sc { color: #7a6a6a; }
.sitem.bought { animation: bought .4s; }
@keyframes bought { 30% { transform: scale(1.06); background: #5a3a1a; } }

/* ---------- slut ---------- */
.summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; font-size: 18px; margin: 10px 0 20px; }
.summary .v { text-align: right; font-family: 'Silkscreen', monospace; }
.summary .em { color: var(--ember); font-size: 24px; }
.how { font-size: 17px; line-height: 1.45; padding-left: 20px; }
.how li { margin-bottom: 6px; }
b.xp { color: var(--xp); } b.gold { color: var(--gold); } b.ember { color: var(--ember); }

/* ---------- banner + toast ---------- */
.banner { position: fixed; left: 0; right: 0; top: 28%; text-align: center; pointer-events: none; z-index: 8; }
.banner .b1 { font-size: clamp(44px, 8vw, 84px); font-weight: 700; color: #fff; text-shadow: 0 4px 0 #6a3fd0, 0 8px 0 #000; animation: slam .5s ease-out; }
.banner .b2 { font-size: 22px; color: #ffd0d0; text-shadow: 0 3px 0 #000; margin-top: 8px; }
.banner.boss .b1 { color: #ff9a9a; text-shadow: 0 4px 0 #8a1a2a, 0 8px 0 #000; }
@keyframes slam { 0% { transform: scale(2.4); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); background: var(--panel); border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--hi);
  padding: 8px 16px; font-size: 17px; z-index: 9; pointer-events: none; }

@media (max-width: 700px) {
  .btn.big { min-width: 0; width: 100%; font-size: 20px; }
  .card { width: 100%; min-height: 0; flex-direction: row; text-align: left; padding: 10px; }
  .card .cimg { width: 48px; height: 48px; margin: 0; }
  .card .clvl { display: none; }
  .bcard { width: 52px; height: 60px; }
  .bcard img { width: 28px; height: 28px; }
  .hud-tc { top: 64px; }
  .lu-title { font-size: 36px; }
  .kofi span { display: none; }
}

/* ---------- besked-feed ---------- */
.msgs { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; z-index: 9; pointer-events: none; }
.msg { display: flex; align-items: center; gap: 10px; background: #0a0816ee; border: 3px solid var(--mc, #3d3868); box-shadow: 0 0 16px color-mix(in srgb, var(--mc, #3d3868) 50%, transparent), 0 4px 0 #000a; padding: 8px 18px; font-size: 20px; font-weight: 600; color: #fff; text-shadow: 0 2px 0 #000; animation: msgin .25s ease-out; max-width: min(760px, 92vw); }
.msg img { width: 40px; height: 40px; image-rendering: pixelated; }
.msg .mt { font-family: 'Silkscreen'; font-size: 13px; color: var(--mc); display: block; letter-spacing: 1px; }
.msg.out { animation: msgout .4s ease-in forwards; }
@keyframes msgin { from { transform: translateY(20px) scale(.9); opacity: 0; } }
@keyframes msgout { to { transform: translateY(-10px); opacity: 0; } }

/* ---------- hovedperson-portræt ---------- */
.mainport { position: relative; width: 46px; height: 46px; padding: 0; background: #1a1830e0; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px #b48cff; cursor: pointer; pointer-events: auto; }
.mainport img { width: 36px; height: 36px; image-rendering: pixelated; }
.mainport .badge { position: absolute; top: -8px; right: -8px; background: var(--gold); color: #000; font-family: 'Silkscreen'; font-size: 12px; padding: 0 5px; border: 2px solid var(--line); animation: pulse .8s steps(2) infinite; }
.mainport.has { box-shadow: inset 0 0 0 2px var(--gold), 0 0 12px var(--gold); }

/* ---------- hvem et kort påvirker ---------- */
.cwho { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px; font-size: 12px; }
.cwho b { width: 100%; font-family: 'Silkscreen'; font-size: 10px; color: var(--dim); font-weight: 400; }
.cwho span { border: 2px solid var(--c); color: var(--c); padding: 1px 6px; background: color-mix(in srgb, var(--c) 14%, transparent); }

/* ---------- pause mens et tårn er i musen ---------- */
.holdtag { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 35; background: #0a0816e8; border: 3px solid #6aff7a; color: #b0ffb8; font-family: 'Silkscreen'; font-size: 14px; padding: 6px 14px; pointer-events: none; animation: holdpulse 1.2s ease-in-out infinite; }
.holdtag.hidden { display: none; }
@keyframes holdpulse { 50% { box-shadow: 0 0 16px #6aff7a88; } }

.sdelta { font-size: 12px; color: #cfc9e6; margin-top: 4px; } .sdelta b { color: #6aff7a; }

/* ---------- events + relikvier ---------- */
.evpanel { max-width: 720px; text-align: center; }
.evchoices { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.evc { width: 200px; min-height: 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; background: #1a1830; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--hi), 0 4px 0 #000a; color: #fff; font: inherit; cursor: pointer; transition: transform .1s; }
.evc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--gold), 0 6px 0 #000a; }
.evc img { width: 48px; height: 48px; image-rendering: pixelated; }
.evc b { font-size: 16px; color: var(--gold); } .evc span { font-size: 13px; color: #cfc9e6; }
.evc em { margin-top: auto; font-style: normal; font-family: 'Silkscreen'; font-size: 13px; color: var(--gold); display: flex; align-items: center; gap: 3px; }
.evc em img { width: 14px; height: 14px; } .evc em.blood { color: #ff6a6a; } .evc em.free { color: #6aff7a; }
.evc.poor { filter: grayscale(.7) brightness(.7); }
.evc.leave { min-height: 0; width: auto; align-self: center; padding: 8px 16px; } .evc.leave b { color: #cfc9e6; }
.relicbar { position: absolute; right: 12px; top: 64px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 200px; pointer-events: auto; }
.relicbar .rl { position: relative; width: 28px; height: 28px; background: #0a0816d8; border: 2px solid #c9a040; display: flex; align-items: center; justify-content: center; }
.relicbar .rl img { width: 22px; height: 22px; image-rendering: pixelated; }
.relicbar .rtip { display: none; position: absolute; right: 32px; top: 0; width: 180px; background: var(--panel); border: 2px solid var(--line); padding: 6px; font-size: 12px; z-index: 5; }
.relicbar .rtip b { display: block; color: var(--gold); }
.relicbar .rl:hover .rtip { display: block; }

/* ---------- stjerner + udfordringer ---------- */
.mapsel .stars { display: block; font-size: 12px; color: #ffd24a; letter-spacing: 1px; line-height: 1; margin-top: 2px; }
.mapsel .stars i { font-style: normal; color: #3a3650; }
.bigstars { font-size: 40px; color: #ffd24a; letter-spacing: 6px; text-shadow: 0 3px 0 #8a5a10, 0 0 18px #ffd24a88; line-height: 1.1; animation: starpop .6s ease-out; }
.bigstars i { font-style: normal; color: #2a2640; text-shadow: none; }
@keyframes starpop { from { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.15); } }
.starnote { font-size: 14px; color: #ffe27a; font-family: inherit; }
.starnote.chal { color: #8affc1; }

/* ---------- næste bølge ---------- */
.phase { flex-wrap: wrap; justify-content: center; }
#startWaveBtn { white-space: nowrap; }
#startWaveBtn * { pointer-events: none; }
.nextwave { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; margin-top: 5px; }
.nextwave:empty { display: none; }
.nextwave .nw-l { font-family: 'Silkscreen'; font-size: 11px; color: var(--dim); margin-right: 2px; }
.nextwave .nw-i { position: relative; display: flex; align-items: center; gap: 2px; background: #0a0816d8; border: 2px solid var(--c, var(--line)); padding: 1px 4px 1px 1px; }
.nextwave .nw-i img { width: 24px; height: 24px; image-rendering: pixelated; }
.nextwave .nw-i b { font-family: 'Silkscreen'; font-size: 11px; color: #fff; }
.nextwave .nw-i i { position: absolute; top: -7px; right: -5px; font-style: normal; font-size: 9px; background: var(--c); color: #0a0816; padding: 0 3px; font-weight: 700; }
.nextwave .nw-i.boss { --c: #b03aff; } .nextwave .nw-i.boss b { color: #e0a0ff; }

/* ---------- ny fjende ---------- */
.newenemy { position: fixed; right: 14px; top: 150px; z-index: 38; width: 290px; background: var(--panel); border: 3px solid var(--line); box-shadow: inset 0 0 0 2px #ff6a4a88, 0 6px 0 #000a; padding: 8px 10px; cursor: pointer; animation: nein .35s ease-out; }
.newenemy.hidden { display: none; }
@keyframes nein { from { transform: translateX(40px); opacity: 0; } }
.newenemy .ne-h { font-family: 'Silkscreen'; color: #ff8a6a; font-size: 13px; margin-bottom: 4px; }
.newenemy .ne-b { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.newenemy .ne-b img { width: 56px; height: 56px; image-rendering: pixelated; background: #0a0816; border: 2px solid var(--line); }
.newenemy .ne-b b { display: block; font-size: 17px; color: #fff; } .newenemy .ne-b span { font-size: 11px; color: var(--dim); }
.newenemy .ne-t { font-size: 12px; line-height: 1.35; border-left: 3px solid var(--c); padding: 2px 0 2px 7px; margin-bottom: 4px; color: #e8e4f4; }
.newenemy .ne-x { font-size: 10px; color: var(--dim); text-align: right; }
.tmenu .tmdt { font-size: 11px; margin: -2px 0 6px; } .tmenu .tmdt.mag { color: #c9a2ff; } .tmenu .tmdt.phy { color: #ffd98a; }

/* ---------- skade-oversigt på slutskærmen ---------- */
.dmgsum { margin: 10px 0; max-height: 230px; overflow-y: auto; text-align: left; }
.dmgsum h3 { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 15px; color: var(--gold); }
.dmgsum h3 span { color: #fff; font-family: 'Silkscreen'; font-size: 13px; }
.dmgsum .ds { display: grid; grid-template-columns: 18px 22px 1fr auto 38px; gap: 6px; align-items: center; margin-bottom: 3px; font-size: 13px; }
.dmgsum .ds .rk { color: var(--dim); font-family: 'Silkscreen'; font-size: 11px; text-align: right; }
.dmgsum .ds.top .rk { color: var(--gold); }
.dmgsum .ds img { width: 22px; height: 22px; image-rendering: pixelated; }
.dmgsum .dn { position: relative; background: #0a0816; border: 2px solid var(--line); height: 20px; overflow: hidden; }
.dmgsum .dn i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--c) 55%, transparent); }
.dmgsum .dn b { position: relative; padding-left: 6px; font-size: 12px; line-height: 16px; color: #fff; text-shadow: 0 1px 0 #000; }
.dmgsum .dv { font-family: 'Silkscreen'; font-size: 12px; color: #fff; text-align: right; }
.dmgsum .dp { font-size: 11px; color: var(--dim); text-align: right; }

/* ---------- armory: vælg helt ---------- */
.arm-heroes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.ahero { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 4px; background: #1a1830; border: 3px solid var(--line); color: #fff; font: inherit; cursor: pointer; }
.ahero img { width: 34px; height: 34px; image-rendering: pixelated; } .ahero b { font-size: 12px; } .ahero span { font-size: 10px; color: var(--dim); }
.ahero.on { box-shadow: inset 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 22%, #1a1830); }
.gear-totals .gt-h { color: var(--gold); font-weight: 700; margin-bottom: 4px; }

/* ---------- tårnets infokort (i hovedheltens panel) ---------- */
.tcard { background: #0a0816; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px #9ad8ff55; padding: 8px 12px; margin: 8px 0 10px; }
.tcard .tch { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.tcard .tch b { color: #9ad8ff; font-size: 17px; } .tcard .tch em { font-style: normal; font-family: 'Silkscreen'; font-size: 12px; color: var(--gold); }
.tcard .tcg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, auto) minmax(120px, 1fr)); gap: 2px 10px; font-size: 13px; }
.tcard .tcg span { color: var(--dim); } .tcard .tcg b { color: #fff; }
.tcard .tca { margin-top: 6px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tcard .tca i { font-style: normal; color: var(--dim); margin-right: 4px; }
.tcard .tca span { border: 2px solid #ffb060; color: #ffb060; padding: 0 6px; } .tcard .tca span.none { border: 0; color: var(--dim); }
.tcard .tbase { margin-top: 8px; display: grid; gap: 6px; }
.tcard .tb { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #1a1830; border: 2px solid var(--line); padding: 5px 8px; }
.tcard .tb b { color: #9ad8ff; font-size: 14px; } .tcard .tb span { font-size: 11px; color: var(--gold); }
.tcard .tb .tbd { font-size: 12px; color: #cfc9e6; }
.tcard .tb button { white-space: nowrap; }

/* ---------- tårn-menu ---------- */
.tmenu { position: fixed; z-index: 40; transform: translateX(-50%); width: 210px; background: var(--panel); border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--hi), 0 6px 0 #000a; padding: 8px; pointer-events: auto; }
.tmenu.hidden { display: none; }
.tmenu .tmh { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.tmenu .tmh img { width: 34px; height: 34px; image-rendering: pixelated; }
.tmenu .tmh b { display: block; color: var(--gold); font-size: 15px; }
.tmenu .tmh span { font-size: 12px; color: var(--dim); }
.tmenu .tms { font-size: 13px; margin-bottom: 6px; } .tmenu .tms i { color: #6aff7a; font-style: normal; font-weight: 700; }
.tmenu .tmb { width: 100%; display: flex; justify-content: center; align-items: center; gap: 6px; font-family: inherit; font-weight: 700; font-size: 13px; color: #fff; background: #2f7a3a; border: 3px solid var(--line); box-shadow: inset 0 -3px 0 #0005; padding: 6px; cursor: pointer; margin-bottom: 5px; }
.tmenu .tmb span { display: inline-flex; align-items: center; gap: 2px; color: var(--gold); font-family: 'Silkscreen'; }
.tmenu .tmb span img { width: 12px; height: 12px; image-rendering: pixelated; }
.tmenu .tmb.off { background: #3a3650; color: #a9a3c4; }
.tmenu .tmb:not(.up) { background: #2a2440; } .tmenu .tmb.warn { background: #6a2a2a; }
.tmenu .tmrow { display: flex; gap: 5px; } .tmenu .tmrow .tmb { margin-bottom: 0; }
.tmenu .tmstat { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; font-size: 12px; background: #0a0816; border: 2px solid var(--line); padding: 5px 7px; margin-bottom: 6px; }
.tmenu .tmstat span { color: var(--dim); } .tmenu .tmstat b { text-align: right; color: #fff; }
.tmenu .tmstat em { font-style: normal; font-size: 11px; margin-left: 4px; } .tmenu .tmstat em.up { color: #6aff7a; } .tmenu .tmstat em.dn { color: #ff8a8a; }
.tmenu .tmbon { font-size: 11px; color: #ffd24a; margin: -2px 0 6px; }
.tmenu .tmprio { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin-bottom: 6px; }
.tmenu .tmprio span { font-size: 11px; color: var(--dim); margin-right: 2px; }
.tmenu .tmprio button { font: inherit; font-size: 11px; padding: 2px 5px; background: #2a2440; color: #cfc9e6; border: 2px solid var(--line); cursor: pointer; }
.tmenu .tmprio button.on { background: #3a6a3a; color: #fff; box-shadow: inset 0 0 0 1px #6aff7a; }
.tmenu .tmair { font-size: 11px; margin: -2px 0 6px; } .tmenu .tmair.yes { color: #9ad8ff; } .tmenu .tmair.no { color: #ffb0a0; }
.tmenu .tmw { font-size: 11px; color: #ffb0a0; margin: -2px 0 6px; }
.tmenu .tme { font-family: 'Silkscreen'; font-size: 11px; color: var(--gold); margin: 2px 0 4px; }
.tmenu .tmd { font-size: 11px; color: #cfc9e6; margin: -2px 0 7px; line-height: 1.3; }
.tmenu .tmb.evo { justify-content: space-between; background: color-mix(in srgb, var(--c) 35%, #1a1830); box-shadow: inset 0 0 0 2px var(--c), inset 0 -3px 0 #0005; }
.tmenu .tmb.evo b { color: #fff; }
.tmenu .tmb.evo.off { filter: grayscale(.6) brightness(.75); }

/* ---------- buffs ---------- */
.buffbar { display: flex; flex-direction: column; gap: 4px; }
.buff { position: relative; display: flex; align-items: center; gap: 6px; width: 190px; background: #0a0816d8; border: 2px solid var(--c); padding: 3px 6px 6px; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 45%, transparent); animation: buffin .3s ease-out; }
.buff img { width: 22px; height: 22px; image-rendering: pixelated; }
.buff .bn { font-weight: 700; font-size: 13px; color: #fff; line-height: 1.1; }
.buff .bd { font-size: 11px; color: #6aff7a; }
.buff .bt { margin-left: auto; font-family: 'Silkscreen'; font-size: 14px; color: var(--c); }
.buff i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--c); }
@keyframes buffin { from { transform: translateX(-30px); opacity: 0; } }
.banner.buff2 .b1 { color: #b0ffb8; text-shadow: 0 4px 0 #1f7a2a, 0 8px 0 #000; }
.banner.buff2 .b2 { color: #e8ffe8; font-size: 26px; }

/* ---------- DPS-meter ---------- */
.dps { background: #0a0816b8; border: 2px solid var(--line); padding: 4px 6px; width: 190px; pointer-events: auto; }
.dps-h { font-family: 'Silkscreen'; font-size: 11px; color: var(--dim); cursor: pointer; display: flex; justify-content: space-between; }
.dps-h span { color: #fff; }
.dps.min #dpsList { display: none; }
.drow { display: grid; grid-template-columns: 16px 1fr auto; gap: 5px; align-items: center; margin-top: 3px; font-family: 'Silkscreen'; font-size: 10px; }
.drow img { width: 16px; height: 16px; image-rendering: pixelated; }
.drow .dn { position: relative; height: 12px; background: #1a1830; overflow: hidden; }
.drow .dn i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c, #6a3fd0); opacity: .55; }
.drow .dn b { position: relative; font-weight: 400; padding-left: 3px; color: #ddd; white-space: nowrap; }
.drow .dv { color: #fff; min-width: 34px; text-align: right; }
@media (max-width: 700px) { .dps { display: none; } }

/* ---------- player level + valg i menuen ---------- */
.plv { display: flex; align-items: center; gap: 10px; background: #0a0816c8; border: 3px solid var(--line); padding: 6px 12px; box-shadow: 0 4px 0 var(--line); }
.plv-n { font-family: 'Silkscreen'; font-size: 14px; color: var(--xp); white-space: nowrap; }
.plv-bar { width: 150px; height: 10px; background: #1a1830; border: 2px solid var(--line); } .plv-bar i { display: block; height: 100%; background: var(--xp); box-shadow: inset 0 2px 0 #c0f0ff; }
.plv-next { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 4px; white-space: nowrap; } .plv-next img { width: 18px; height: 18px; image-rendering: pixelated; }
.opts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.optcol { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.optlbl { font-family: 'Silkscreen'; font-size: 11px; color: #fff; text-shadow: 0 2px 0 #000; }
.mapsel button.lock { opacity: .45; }
.btn-pair { display: flex; gap: 10px; }
.road { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.rrow { display: grid; grid-template-columns: 56px 32px 1fr auto; gap: 10px; align-items: center; background: var(--panel2); border: 2px solid var(--line); padding: 6px 10px; }
.rrow img { width: 28px; height: 28px; image-rendering: pixelated; }
.rrow .rl { font-family: 'Silkscreen'; font-size: 12px; color: var(--dim); }
.rrow .rs { font-family: 'Silkscreen'; font-size: 10px; }
.rrow.got { opacity: .6; } .rrow.got .rs { color: #6aff7a; }
.rrow.next { box-shadow: inset 0 0 0 2px var(--xp); }
.rrow.era { border-color: #b03aff; }
.plxp { background: #0a081680; border: 2px solid var(--line); padding: 10px; margin: -6px 0 16px; }
.plxp .plv-bar { width: 100%; margin: 6px 0; }
.plxp .lvup { color: var(--gold); font-size: 16px; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.plxp .lvup img { width: 22px; height: 22px; image-rendering: pixelated; }
.wave-pill .tag2 { font-size: 11px; margin-left: 8px; padding: 1px 5px; background: #0008; }

/* ---------- HD-interface ---------- */
body.hd, body.hd *:not(.logo):not(kbd) { font-family: 'Chakra Petch', system-ui, sans-serif !important; }
body.hd .btn, body.hd .card .cname, body.hd .wave-pill, body.hd .stat, body.hd h2 { font-weight: 700; letter-spacing: .3px; }
body.hd img.ic, body.hd .lo img, body.hd .bcard img, body.hd .card .cimg, body.hd .sitem img, body.hd .hslot img, body.hd .node img,
body.hd .hcard img.big, body.hd .htab img, body.hd .htop img, body.hd .drow img, body.hd .rrow img, body.hd .frow img, body.hd .fparts img,
body.hd .plv-next img, body.hd .plxp .lvup img, body.hd .bcard .cost img, body.hd .hslot .hc img { image-rendering: auto; }
body.hd .panel, body.hd .card, body.hd .bcard, body.hd .hslot, body.hd .btn { border-radius: 6px; }
body.hd .bar, body.hd .xpbar, body.hd .wave-pill, body.hd .lvl, body.hd .lo, body.hd .dps, body.hd .plv { border-radius: 5px; }
body.hd .bar .fill, body.hd .xpbar .fill { border-radius: 3px; }

/* ---------- Era II værksted ---------- */
.bcard.bp { box-shadow: inset 0 0 0 2px #c9a040, 0 3px 0 var(--line); }
.bcard.bp .cost { color: #9ad8ff; }
.bcard.gift { box-shadow: inset 0 0 0 3px #6aff7a, 0 0 14px #6aff7a88, 0 3px 0 var(--line); animation: pulse 1s steps(2) infinite; }
.freetag { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); background: #4ac25a; color: #fff; font-family: 'Silkscreen'; font-size: 10px; padding: 0 5px; border: 2px solid var(--line); }
.bcard .lv { position: absolute; right: 3px; top: 1px; font-family: 'Silkscreen'; font-size: 10px; color: #c9a040; }
.bcard .cnt { position: absolute; right: 3px; bottom: 16px; font-family: 'Silkscreen'; font-size: 10px; color: #fff; }
.steamgauge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 70px; height: 70px; background: #1a1830e0; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px #c9a040; font-family: 'Silkscreen'; font-size: 10px; color: #9ad8ff; }
.steamgauge b { font-size: 18px; color: #fff; }
.steamgauge i { display: block; width: 50px; height: 6px; background: #0a0816; margin-top: 4px; } .steamgauge i em { display: block; height: 100%; background: #9ad8ff; }

/* ---------- armory ---------- */
.arm-body { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.doll { position: relative; height: 330px; background: radial-gradient(#2a2448, #14102a); border: 3px solid var(--line); }
.doll-hero { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%); image-rendering: pixelated; opacity: .9; }
.dslot { position: absolute; width: 62px; height: 62px; background: #0a0816d8; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--rc, #3d3868); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.dslot img { width: 38px; height: 38px; image-rendering: pixelated; } .dslot img.ghost { opacity: .22; }
.dslot span { font-family: 'Silkscreen'; font-size: 8px; color: var(--dim); }
.s-hat { left: 119px; top: 8px; } .s-amulet { left: 208px; top: 60px; } .s-staff { left: 12px; top: 120px; } .s-robe { left: 119px; top: 250px; }
.s-ring1 { left: 12px; top: 250px; } .s-ring2 { left: 226px; top: 250px; }
.gear-totals { margin-top: 10px; background: #0a081680; border: 2px solid var(--line); padding: 8px; font-size: 13px; line-height: 1.5; color: #6aff7a; }
.gear-totals .dim { color: var(--dim); }
.inv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 15px; gap: 8px; flex-wrap: wrap; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, 52px); gap: 6px; max-height: 300px; overflow: auto; }
.islot { width: 52px; height: 52px; background: #0a0816; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--rc, #1a1830); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.islot img { width: 34px; height: 34px; image-rendering: pixelated; } .islot.empty { cursor: default; opacity: .4; }
.islot:hover { filter: brightness(1.3); }
.arm-tip { margin-top: 10px; height: 250px; overflow: auto; background: #0a081680; border: 2px solid var(--line); padding: 8px; font-size: 14px; }
.it-n { font-weight: 700; font-size: 16px; } .it-s { font-family: 'Silkscreen'; font-size: 10px; color: var(--dim); margin-bottom: 4px; text-transform: uppercase; }
.it-a { color: #6aff7a; } .it-a.dim { color: var(--dim); } .it-cmp { margin-top: 6px; padding-top: 6px; border-top: 1px solid #fff2; font-size: 13px; color: var(--dim); }
.lootlist { background: #0a081680; border: 2px solid var(--line); padding: 8px 10px; margin: -6px 0 16px; font-size: 14px; }
.lootlist h3 { margin: 0 0 4px; font-size: 15px; color: var(--gold); }
@media (max-width: 800px) { .arm-body { grid-template-columns: 1fr; } .doll { width: 300px; margin: 0 auto; } }

/* ---------- ultimate ---------- */
.ultbtn { position: absolute; right: 14px; bottom: 22px; width: 84px; height: 84px; pointer-events: auto; cursor: pointer; background: #0a0816d8; border: 3px solid var(--line);
  box-shadow: inset 0 0 0 2px var(--hi), 0 3px 0 var(--line); overflow: hidden; padding: 0; }
.ultbtn i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#b48cff, #6a3fd0); opacity: .55; transition: height .2s; }
.ultbtn img { position: relative; width: 48px; height: 48px; image-rendering: pixelated; margin-top: 4px; }
.ultbtn .uk { position: absolute; left: 4px; top: 2px; font-family: 'Silkscreen'; font-size: 11px; color: var(--dim); }
.ultbtn .un { position: absolute; left: 0; right: 0; bottom: 3px; font-family: 'Silkscreen'; font-size: 9px; color: #fff; text-shadow: 0 1px 0 #000; }
.ultbtn.ready { box-shadow: inset 0 0 0 3px #fff, 0 0 22px #b48cff, 0 3px 0 var(--line); animation: ultpulse 1s ease-in-out infinite; }
.ultbtn.ready i { opacity: .85; }
@keyframes ultpulse { 50% { transform: scale(1.06); } }
body.timestop #c { filter: grayscale(.85) contrast(1.15) brightness(1.05) hue-rotate(180deg); }
@media (max-width: 700px) { .ultbtn { bottom: 110px; width: 64px; height: 64px; } .ultbtn img { width: 36px; height: 36px; } }

/* ---------- volumen-sliders ---------- */
.vol { display: grid; grid-template-columns: 70px 220px 36px; gap: 10px; align-items: center; font-size: 15px; }
.vol b { font-family: 'Silkscreen'; font-size: 12px; text-align: right; }
.vol input { -webkit-appearance: none; appearance: none; height: 10px; background: #0a0816; border: 2px solid var(--line); outline: none; cursor: pointer; }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 22px; background: var(--gold); border: 3px solid var(--line); box-shadow: inset 0 3px 0 #fff6a0; }
.vol input::-moz-range-thumb { width: 12px; height: 18px; background: var(--gold); border: 3px solid var(--line); border-radius: 0; }
body.hd .vol input { border-radius: 6px; } body.hd .vol input::-webkit-slider-thumb { border-radius: 4px; }

/* ---------- menuer ---------- */
.btn-row3 { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-row3 .btn { min-width: 140px; }
#playBtn { min-width: 320px; font-size: 30px; padding: 14px 30px; }
.panel.setup { max-width: 640px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; background: #1a1830ee; }
#setup { justify-content: flex-end; padding-bottom: 7vh; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { font-family: inherit; font-size: 16px; color: var(--dim); background: var(--panel2); border: 3px solid var(--line); padding: 6px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.tabs button.on { color: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.codex .road { max-height: 56vh; }
.ctab .sub { text-align: center; }
@media (max-width: 700px) { #playBtn { min-width: 0; width: 100%; } .btn-row3 .btn { min-width: 0; flex: 1; } }

/* ---------- fusioner ---------- */
.card.fusion { background: linear-gradient(160deg, #3a2a10, #1a1830 60%); box-shadow: inset 0 0 0 3px #ffd24a, 0 0 22px #ffd24a88, 0 6px 0 #000a; animation: deal .4s ease-out backwards, fglow 1.2s ease-in-out infinite; }
@keyframes fglow { 50% { box-shadow: inset 0 0 0 3px #fff6a0, 0 0 34px #ffd24acc, 0 6px 0 #000a; } }
.card.fusion .cname { color: #ffe27a; }
.fhint { margin-top: 6px; font-size: 13px; color: #ffd24a; }
.card.bp-new { box-shadow: inset 0 0 0 3px #6aff7a, 0 0 18px #6aff7a66, 0 6px 0 #000a; }
.card.bp-new .ctag { background: #1f5a2a; color: #b0ffb8; }
.card.bp-up .ctag { background: #5a4410; color: #ffe27a; }
.cbadge { z-index: 3; position: absolute; top: -12px; right: -10px; background: #4ac25a; color: #fff; font-family: 'Silkscreen'; font-size: 12px; padding: 3px 8px; border: 3px solid var(--line); transform: rotate(6deg); box-shadow: 0 3px 0 #000a; }
.bp-delta { font-size: 17px; margin: 2px 0 6px; } .bp-delta s { color: var(--dim); } .bp-delta b { color: #6aff7a; font-size: 20px; }
.bp-note { font-size: 13px; margin-top: 6px; padding: 4px 6px; } .bp-note.new { color: #b0ffb8; background: #1f5a2a80; } .bp-note.up { color: #ffe27a; background: #5a441080; }
.frow { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: var(--panel2); border: 2px solid var(--line); padding: 8px 10px; }
.frow img { width: 32px; height: 32px; image-rendering: pixelated; }
.frow .fn { font-weight: 700; font-size: 16px; } .frow .fd { font-size: 13px; color: var(--dim); }
.frow.known { box-shadow: inset 0 0 0 2px #ffd24a; } .frow.known .fn { color: #ffe27a; }
.fparts { display: flex; align-items: center; gap: 4px; } .fparts img { width: 22px; height: 22px; } .fparts b { color: var(--dim); }

/* ---------- killcam + killed by ---------- */
#killcamBox { background: #000; padding: 0; z-index: 20; }
#kc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: saturate(.75) contrast(1.05); }
.kc-top { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: baseline; text-shadow: 0 2px 0 #000; }
.kc-rec { font-family: 'Silkscreen'; font-size: 22px; color: #ff4a5a; animation: pulse 1s steps(2) infinite; }
.kc-sub { font-family: 'Silkscreen'; font-size: 12px; color: #fff; }
.kc-bar { position: absolute; left: 20%; right: 20%; bottom: 26px; height: 6px; background: #fff3; } .kc-bar i { display: block; height: 100%; width: 0; background: #ff4a5a; }
.kc-skip { position: absolute; right: 16px; bottom: 16px; top: auto; }
.recap { background: #2a0f16a0; border: 2px solid #5a1a2a; padding: 10px; margin: -6px 0 16px; }
.recap h3 { margin: 0 0 6px; font-size: 16px; color: #ff9a9a; }
.rc { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 15px; margin-bottom: 4px; }
.rc .how { font-family: 'Silkscreen'; font-size: 10px; color: var(--dim); margin-left: 6px; }
.rc .bar { grid-column: 1 / -1; height: 5px; background: #0006; } .rc .bar i { display: block; height: 100%; background: #ff5a5a; }

/* ---------- banevælger ---------- */
.mapsel { display: flex; gap: 0; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.mapsel button { font-family: 'SpireDigits', 'Pixelify Sans', monospace; font-size: 16px; color: var(--dim); background: var(--panel2); border: 0; border-right: 3px solid var(--line); padding: 8px 18px; cursor: pointer; box-shadow: inset 0 3px 0 var(--hi); }
.mapsel button:last-child { border-right: 0; }
.mapsel button.on { background: #3d5ab0; color: #fff; box-shadow: inset 0 3px 0 #7a9af0, inset 0 -3px 0 #22367a; }
.mapsel-desc { font-size: 15px; color: #fff; text-shadow: 0 2px 0 #000; min-height: 20px; text-align: center; max-width: 520px; }

/* ---------- heltebjælke ---------- */
.herobar { position: absolute; left: 14px; bottom: 22px; display: flex; gap: 6px; pointer-events: auto; }
.hslot { position: relative; width: 58px; height: 70px; background: #1a1830e0; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--hi), 0 3px 0 var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.hslot img { width: 32px; height: 32px; image-rendering: pixelated; }
.hslot .hl { font-family: 'Silkscreen'; font-size: 10px; color: var(--txt); }
.hslot .hc { font-family: 'Silkscreen'; font-size: 11px; color: var(--gold); display: flex; align-items: center; gap: 2px; }
.hslot .hc img { width: 12px; height: 12px; }
.hslot.empty { opacity: .85; }
.hslot.afford { opacity: 1; animation: afford 1s steps(2) infinite; }
@keyframes afford { 50% { box-shadow: inset 0 0 0 3px var(--gold), 0 3px 0 var(--line); transform: translateY(-3px); } } .hslot.empty.poor { filter: grayscale(.8) brightness(.7); }
.hslot.locked { opacity: .35; cursor: default; }
.hult { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 44px; height: 18px; font-family: 'Silkscreen'; font-size: 9px; color: #fff; background: #3a2a5a; border: 2px solid var(--line); padding: 0; cursor: pointer; overflow: hidden; }
.hult i { position: absolute; left: 0; right: 0; top: 0; background: #0a0816d0; pointer-events: none; }
.hult.ready { background: #b04aff; box-shadow: 0 0 8px #d27bff; animation: hultglow 2.4s ease-in-out infinite; }   /* rolig glød, intet hop */
.hult.ready.auto { animation: none; }   /* auto-ult: ingen grund til at kalde på opmærksomhed */
@keyframes hultglow { 50% { box-shadow: 0 0 14px #e0a0ff; filter: brightness(1.15); } }
.hultinfo { background: #3a2a5a60; border: 2px solid #6a3fd0; padding: 6px 10px; margin: -6px 0 12px; font-size: 14px; }
.hslot .badge { position: absolute; top: -8px; right: -8px; background: var(--gold); color: #000; font-family: 'Silkscreen'; font-size: 12px; padding: 0 5px; border: 2px solid var(--line); animation: pulse .8s steps(2) infinite; }
.hslot .hxp { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 3px; background: #0a0816; }
.hslot .hxp i { display: block; height: 100%; background: var(--xp); }
@keyframes pulse { 50% { transform: scale(1.15); } }

/* ---------- helte-panel ---------- */
.hire { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hire .hcard { flex: 1 1 200px; max-width: 260px; }
.hcard { background: var(--panel2); border: 3px solid var(--line); box-shadow: inset 0 3px 0 var(--hi); padding: 14px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.hcard:hover { filter: brightness(1.15); transform: translateY(-3px); }
.hcard img.big { width: 72px; height: 72px; image-rendering: pixelated; }
.hcard .hn { font-size: 22px; font-weight: 700; }
.hcard .hb { font-size: 14px; color: var(--dim); min-height: 36px; }
.hcard .hp2 { font-family: 'Silkscreen'; font-size: 13px; color: var(--gold); display: flex; gap: 4px; align-items: center; }
.hcard .hp2 img { width: 14px; height: 14px; image-rendering: pixelated; }
.hcard.locked { opacity: .5; cursor: default; }
.hcard { position: relative; }
.newtag { position: absolute; top: 8px; right: 8px; background: var(--gold); color: #000; font-family: 'Silkscreen'; font-size: 11px; padding: 1px 6px; animation: pulse .8s steps(2) infinite; }
.hcard.poor .hp2 { color: #a06060; }
.htabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.htab { display: flex; align-items: center; gap: 6px; background: var(--panel2); border: 3px solid var(--line); padding: 4px 10px; cursor: pointer; font-size: 15px; color: var(--dim); }
.htab img { width: 22px; height: 22px; image-rendering: pixelated; }
.htab.on { color: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.htop { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.htop img { width: 56px; height: 56px; image-rendering: pixelated; }
.htop .ht1 { font-size: 26px; font-weight: 700; color: var(--gold); }
.htop .ht2 { font-family: 'Silkscreen'; font-size: 12px; color: var(--dim); }
.htop .pts { margin-left: auto; font-family: 'Silkscreen'; font-size: 16px; color: var(--gold); background: #0008; padding: 6px 10px; border: 2px solid var(--line); }
.hxpbar { height: 8px; background: #0a0816; border: 2px solid var(--line); margin: 4px 0 14px; } .hxpbar i { display: block; height: 100%; background: var(--xp); }
.tree { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.branch { background: #0a081660; border: 3px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 0; align-items: stretch; }
.branch h3 { margin: 0 0 8px; text-align: center; font-size: 18px; color: var(--txt); }
.bpts { font-family: 'Silkscreen'; font-size: 11px; color: var(--dim); text-align: center; margin-bottom: 8px; }
.node { display: flex; gap: 10px; align-items: center; background: var(--panel2); border: 3px solid var(--line); padding: 8px; cursor: pointer; position: relative; }
.node img { width: 36px; height: 36px; image-rendering: pixelated; flex: none; }
.node .nn { font-weight: 700; font-size: 15px; }
.node .nd { font-size: 13px; color: var(--dim); }
.node .pips { display: flex; gap: 3px; margin-top: 3px; } .node .pips i { width: 10px; height: 6px; background: #0a0816; border: 1px solid #000; } .node .pips i.on { background: var(--gold); }
.node.open { box-shadow: inset 0 0 0 2px var(--gold); animation: glow 1s steps(2) infinite; }
.node.open:hover { filter: brightness(1.2); }
.node.locked { opacity: .4; cursor: default; }
.node.wait { cursor: default; }
.node.max { box-shadow: inset 0 0 0 2px #6aff7a; cursor: default; }
.node.cap { border-color: #6a3fd0; }
.node .req { position: absolute; right: 6px; top: 4px; font-family: 'Silkscreen'; font-size: 9px; color: var(--dim); }
.node.mastery { margin-top: 14px; border-color: #b08a2a; }
.link { width: 4px; height: 14px; background: var(--line); margin: 0 auto; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px #fff6a0; } }
@media (max-width: 700px) { .tree { grid-template-columns: 1fr; } .herobar { bottom: 110px; } }

/* ---------- slutskærm: bred, to kolonner, ingen scrollbars ---------- */
.panel.overp { max-width: 1120px; width: calc(100vw - 32px); overflow: visible; max-height: none; padding: 18px 26px; }
.overp h2 { margin-bottom: 6px; }
.overcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 26px; align-items: start; }
.overcols .summary { margin: 4px 0 14px; font-size: 17px; gap: 3px 20px; }
.overcols .plxp { margin: 0 0 12px; }
.overcols .dmgsum { max-height: none; overflow: visible; margin: 4px 0 0; }
.overcols .lootlist { max-height: none; overflow: visible; }
.overbtns { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.overbtns .btn-pair { flex-wrap: wrap; justify-content: center; }
@media (max-width: 700px), (max-height: 480px) {
  .panel.overp { overflow: auto; max-height: calc(100vh - 32px); }
  .overcols { grid-template-columns: 1fr; gap: 10px; }
}
.overcols .lootlist { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 12px; margin: 0 0 12px; }
.overcols .lootlist > h3, .overcols .lootlist > div:last-child { grid-column: 1 / -1; }

/* ---------- codex: spell-bog ---------- */
.sbh { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; font-size: 16px; color: var(--gold); } .sbh span { font-size: 12px; color: var(--dim); font-weight: 400; }
.sbrun { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; margin-bottom: 14px; }
.sbr { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; background: var(--panel2); border: 2px solid var(--line); padding: 6px 8px; font-size: 14px; }
.sbr img { width: 32px; height: 32px; image-rendering: pixelated; } .sbr small { display: block; color: var(--dim); font-size: 11px; margin-top: 2px; }
.sbr.evo { box-shadow: inset 0 0 0 2px #ffd24a, 0 0 12px #ffd24a55; } .sbr.fus { box-shadow: inset 0 0 0 2px #ff7ad8, 0 0 12px #ff7ad855; }
.sbt { font-family: 'Silkscreen'; font-size: 10px; padding: 1px 5px; background: #0a0816; border: 1px solid var(--line); color: var(--dim); margin-left: 4px; }
.sbt.ev { color: #1a1410; background: #ffd24a; } .sbt.fu { color: #1a1410; background: #ff9ae0; }
.sbe { color: #ffe27a !important; } .frow:not(.known) .sbe { color: #7a7690 !important; font-style: italic; }
.sbf { display: inline-block; margin-right: 6px; color: #ff9ae0; } .sbf.lock { color: #6a6480; }
.lo.w.evo { box-shadow: inset 0 0 0 2px #ffd24a, 0 0 10px #ffd24a88; } .lo.w.evo b { color: #ffd24a; }
.lo.w.fus { box-shadow: inset 0 0 0 2px #ff9ae0, 0 0 10px #ff9ae088; }
#tab-spells { max-height: 62vh; overflow-y: auto; }
.sbera { font-family: 'Silkscreen'; font-size: 12px; color: var(--dim); margin: 8px 0 2px; }

/* ---------- Hero Armory: signaturvåben ---------- */
#armory .arm-body { display: block; max-height: 70vh; overflow-y: auto; }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sig-card { background: var(--panel2); border: 2px solid var(--line); box-shadow: inset 0 3px 0 color-mix(in srgb, var(--c) 60%, transparent); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.sig-card.sel { box-shadow: inset 0 0 0 2px var(--c), 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.sig-card.locked { filter: grayscale(0.8) brightness(0.7); }
.sig-top { display: flex; gap: 10px; align-items: center; } .sig-top img { width: 52px; height: 52px; image-rendering: pixelated; }
.sig-top b { display: block; font-size: 16px; color: var(--c); } .sig-top span { display: block; color: var(--gold); font-weight: 700; } .sig-top small { color: var(--dim); }
.sig-pips { display: flex; gap: 5px; } .sig-pips i { width: 20px; height: 10px; background: #0a0816; border: 2px solid var(--line); } .sig-pips i.big { width: 26px; } .sig-pips i.on { background: var(--gold); box-shadow: 0 0 8px #ffd24a88; }
.sig-stats { font-size: 12px; color: var(--dim); }
.sig-perk { font-size: 12px; color: #8a86a0; } .sig-perk b { font-family: 'Silkscreen'; font-size: 10px; color: #8a86a0; margin-right: 4px; } .sig-perk.got { color: #ffe27a; } .sig-perk.got b { color: var(--gold); }
.sig-cost { display: inline-flex; align-items: center; gap: 3px; color: #6ae8ff; } .sig-cost img { width: 14px; height: 14px; image-rendering: pixelated; }
.gpuinfo { font-size: 12px; color: var(--dim); text-align: center; max-width: 420px; } .gpuinfo b { color: #cfc9e6; } .gpuinfo .warn { color: #ffb060; }
.tasc { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: linear-gradient(90deg, #3a2a6a, #1a1830); border: 2px solid #ffd24a; box-shadow: 0 0 12px #ffd24a55; padding: 8px 10px; margin: 8px 0; } .tasc b { color: #ffe27a; } .tasc .warn { color: #ffb060; }
.etag { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .etag span { font-family: 'Silkscreen'; font-size: 10px; padding: 1px 5px; border: 1px solid var(--c, #6a6480); color: var(--c, #cfc9e6); background: #0a081680; }
.etag .dmgt { --c: #c9a2ff; }
.frec { color: #cfc9e6 !important; } .frec b { color: #ffe27a; } .fnew { font-size: 11px; color: var(--dim); font-weight: 400; }
#adminPanel button.godbtn, .adminpanel button.godbtn { background: #7a1a2a !important; border-color: #ff5a6a !important; color: #fff !important; } #adminPanel button.godbtn.on, .adminpanel button.godbtn.on { background: #ff3a4a !important; box-shadow: 0 0 10px #ff3a4a; }
#adminPanel button.maxbtn, .adminpanel button.maxbtn { background: #7a5a10 !important; border-color: #ffd24a !important; color: #fff !important; }

/* ---------- kort: "HD"-finish (dybde, glød, medaljon) + egen ramme til spells ---------- */
.card { --rc2: color-mix(in srgb, var(--rc, #3d3868) 40%, transparent);
  background: radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--rc, #3d3868) 18%, transparent), transparent 70%), linear-gradient(180deg, #24203f, #141228);
  box-shadow: inset 0 0 0 3px var(--rc, var(--hi)), inset 0 0 0 5px #0c0b18, inset 0 0 0 6px var(--rc2), inset 0 20px 30px -20px #ffffff14, 0 12px 26px #000b, 0 6px 0 #000a; }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 42%, #ffffff18 50%, transparent 58%); background-size: 260% 100%; background-position: 130% 0; transition: background-position .7s ease; }
.card:hover::after { background-position: -30% 0; }
.card .cmed { position: relative; width: 108px; height: 108px; display: grid; place-items: center; margin-top: 2px; flex: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--rc, #fff) 34%, transparent) 0%, color-mix(in srgb, var(--rc, #fff) 10%, transparent) 45%, transparent 70%); }
.card .cmed::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid var(--rc2); box-shadow: inset 0 0 16px var(--rc2), 0 0 10px var(--rc2); }
.card .cmed .cimg { image-rendering: auto; position: relative; width: 78px; height: 78px; margin: 0; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--rc, #fff) 55%, transparent)) drop-shadow(0 4px 0 #0009); transition: transform .2s; }
.card:hover .cmed .cimg { transform: scale(1.08) translateY(-2px); }
.card .cname { text-shadow: 0 2px 0 #000, 0 0 14px color-mix(in srgb, var(--rc, #fff) 45%, transparent); }
.card .ctag { border: 1px solid var(--rc2); }
.card .cown { margin: -11px -9px 0; }
/* spells: egen gradient-ramme (is-blå → violet → magenta) + ædelstens-hjørner */
.card.spell { border: 3px solid transparent;
  background: radial-gradient(120% 55% at 50% 0%, #8a6cff30, transparent 70%) padding-box, linear-gradient(180deg, #26204a, #141030) padding-box,
    linear-gradient(160deg, #6ad8ff, #9a6cff 45%, #ff6ad0) border-box;
  box-shadow: inset 0 0 0 2px #0c0b18, inset 0 0 0 3px #b48cff66, inset 0 20px 30px -20px #ffffff18, 0 0 22px #8a6cff55, 0 12px 26px #000b, 0 6px 0 #000a; }
.card.spell::before { content: ''; position: absolute; inset: 3px; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, #fff 1px, #c8a8ff 2.5px, #6a4cc8 4px, transparent 4.5px) 0 0 / 12px 12px no-repeat,
    radial-gradient(circle, #fff 1px, #c8a8ff 2.5px, #6a4cc8 4px, transparent 4.5px) 100% 0 / 12px 12px no-repeat,
    radial-gradient(circle, #fff 1px, #c8a8ff 2.5px, #6a4cc8 4px, transparent 4.5px) 0 100% / 12px 12px no-repeat,
    radial-gradient(circle, #fff 1px, #c8a8ff 2.5px, #6a4cc8 4px, transparent 4.5px) 100% 100% / 12px 12px no-repeat; }
.card.spell.fusion { background: radial-gradient(120% 55% at 50% 0%, #ffd24a30, transparent 70%) padding-box, linear-gradient(170deg, #3a2a10, #1a1830 60%) padding-box,
    linear-gradient(160deg, #fff0a0, #ffb020 40%, #b46cff) border-box;
  box-shadow: inset 0 0 0 2px #0c0b18, inset 0 0 0 3px #ffd24a66, 0 0 26px #ffd24a77, 0 12px 26px #000b, 0 6px 0 #000a; }
.card.spell .cown { margin: -13px -11px 0; }
.cards.arming .card { pointer-events: none; }

/* ---------- forside: era-vælger ---------- */
.era-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.era-pick .mapsel button { font-size: 17px; padding: 9px 20px; }
.era-desc { font-size: 13px; color: #fff; text-shadow: 0 2px 0 #000; min-height: 16px; text-align: center; }
/* ---------- New Run: to kolonner + ultimate-kort ---------- */
.panel.setup { max-width: 900px; gap: 14px; }
.panel.setup h2 { display: flex; align-items: baseline; gap: 12px; justify-content: center; flex-wrap: wrap; }
.setup-era { font-family: 'Silkscreen'; font-size: 12px; color: var(--dim); font-weight: 400; }
.setup-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; width: 100%; }
.setup-box { background: #0a081680; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px #2a2640; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.setup-box.full { width: 100%; }
.setup-h { font-family: 'Silkscreen'; font-size: 12px; letter-spacing: 2px; color: #ffd24a; text-transform: uppercase; align-self: stretch; text-align: left; border-bottom: 2px solid #2a2640; padding-bottom: 6px; }
.setup-h small { color: var(--dim); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.mapsel.wrap { flex-wrap: wrap; justify-content: center; }
.mapsel.mapgrid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.mapsel.mapgrid button { border-right: 3px solid var(--line); border-bottom: 3px solid var(--line); padding: 12px 10px; font-size: 17px; }
.mapsel.mapgrid button:nth-child(2n) { border-right: 0; }
.mapsel.mapgrid button:nth-last-child(-n+2) { border-bottom: 0; }
.ultgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; width: 100%; }
.ultgrid button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel2); border: 3px solid var(--line); box-shadow: inset 0 3px 0 var(--hi); color: var(--dim); cursor: pointer; font-family: 'SpireDigits', 'Pixelify Sans', monospace; font-size: 15px; text-align: left; }
.ultgrid button img { width: 30px; height: 30px; image-rendering: pixelated; flex: none; }
.ultgrid button small { margin-left: auto; font-size: 10px; font-family: 'Silkscreen'; }
.ultgrid button.on { color: #fff; background: color-mix(in srgb, var(--uc) 28%, #1a1830); box-shadow: inset 0 0 0 2px var(--uc), 0 0 14px color-mix(in srgb, var(--uc) 40%, transparent); }
.ultgrid button.lock { opacity: .45; }
@media (max-width: 720px) { .setup-grid { grid-template-columns: 1fr; } }

/* ---------- bot-sandkasse ---------- */
.bot-btn { background: #2a2250; font-size: 15px; }
.bot-note { font-size: 13px; }
.bot-badge { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; background: #0a0816ee; border: 3px solid #b48cff; padding: 6px 10px; font-family: 'Silkscreen', monospace; font-size: 12px; color: #e8e4f8; box-shadow: 0 4px 0 #000a; }
.bot-badge .btn { padding: 2px 10px; font-size: 13px; }
.bot-report { position: fixed; inset: 4vh 4vw; z-index: 95; background: #0f0d20f4; border: 3px solid #b48cff; box-shadow: 0 8px 0 #000a; display: flex; flex-direction: column; }
.bot-report .br-head { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 2px solid #3a3050; }
.bot-report .br-head b { flex: 1; font-family: 'Silkscreen', monospace; color: #ffd24a; }
.bot-report pre { margin: 0; padding: 12px; overflow: auto; flex: 1; font-size: 12px; line-height: 1.4; color: #e8e4f8; }
#menu { cursor: grab; } #menu.dragging { cursor: grabbing; } #menu button, #menu a { cursor: pointer; }
.setup-box .mapsel.wrap { flex-wrap: nowrap; width: 100%; }
.setup-box .mapsel.wrap button { flex: 1 1 auto; padding: 8px 8px; font-size: 14px; white-space: nowrap; }
#setup .mapsel-desc { min-height: 42px; display: flex; align-items: center; justify-content: center; }   /* plads til 2 linjer hover-tekst, så panelet ikke hopper */

/* ---------- spellbog (spire-panelet) + dine spells på level-up ---------- */
.spellbook { background: #0a081680; border: 3px solid var(--line); box-shadow: inset 0 0 0 2px #2a2640; padding: 10px 12px; margin: 0 0 12px; }
.spellbook h3 { font-family: 'Silkscreen'; font-size: 12px; letter-spacing: 2px; color: #ffd24a; margin: 0 0 8px; }
.sbk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sbk { display: flex; gap: 8px; align-items: center; background: color-mix(in srgb, var(--c) 12%, #141228); border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); padding: 6px 8px; }
.sbk img { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 50%, transparent)); }
.sbk b { display: block; font-size: 14px; } .sbk > div > span { font-family: 'Silkscreen'; font-size: 10px; color: var(--dim); }
.sbk .pips { display: flex; gap: 2px; margin-top: 3px; } .sbk .pips i { width: 10px; height: 5px; background: #0a0816; border: 1px solid var(--line); } .sbk .pips i.on { background: var(--c); }
.sbk-fz { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; } .sbk-fz span { font-size: 10px; padding: 0 4px; border: 1px solid #6aff7a66; color: #6aff7a; } .sbk-fz span.go { border-color: #ffd24a; color: #ffd24a; }
.sbk-ps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .sbk-p { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 6px; background: #1a1830; border: 1px solid #3d3868; } .sbk-p img { width: 18px; height: 18px; }
.sbk-note { font-size: 11px; color: var(--dim); margin-top: 6px; }
.lu-owned { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; min-height: 34px; }
.lu-owned .lo-h { font-family: 'Silkscreen'; font-size: 11px; color: #fff; text-shadow: 0 2px 0 #000; margin-right: 4px; }
.lu-owned .lo-s { display: inline-flex; align-items: center; gap: 3px; background: #0a0816cc; border: 2px solid #3d3868; padding: 2px 6px 2px 3px; font-family: 'Silkscreen'; font-size: 11px; color: #e8e4f8; }
.lu-owned .lo-s img { width: 24px; height: 24px; image-rendering: pixelated; }
.lu-owned .lo-s.fz { border-color: #ffd24a; color: #ffd24a; }
.fown { color: #6aff7a; font-weight: 700; }
.tmenu .tmb.sell { background: #6a2a2a; margin-top: 4px; }
.lichbar { margin-bottom: 10px; } .lichbar h3 { color: #c9a2ff; }
.lichbar .lb { position: relative; height: 16px; background: #0a0816; border: 2px solid var(--line); }
.lichbar .lb i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #6a2ab0, #b04aff); }
.lichbar .lb em { position: absolute; right: 6px; top: -1px; font-family: Silkscreen, monospace; font-size: 11px; font-style: normal; color: #fff; text-shadow: 0 1px 0 #000; }
.ds .dn .dlv { position: relative; margin-left: 6px; font-family: Silkscreen, monospace; font-size: 10px; color: #e8e4f8cc; text-shadow: 0 1px 0 #000; white-space: nowrap; }
.build-tag { font-family: Silkscreen, monospace; font-size: 10px; color: #ffffff80; text-shadow: 0 1px 0 #000; }
.etag { flex-wrap: nowrap; justify-content: center; }   /* elementer altid på én række */
.spellbook .sbk-h2 { margin-top: 10px; }
.sfz-list { display: flex; flex-direction: column; gap: 4px; }
.sfz { display: flex; gap: 8px; align-items: center; background: #141228; border: 2px solid #3d3868; padding: 4px 8px; }
.sfz img { width: 32px; height: 32px; flex: none; }
.sfz b { display: block; font-size: 13px; font-weight: 600; } .sfz b small { color: var(--dim); font-size: 11px; }
.sfz span { font-size: 11px; color: var(--dim); }
.sfz.ready { border-color: #ffd24a; background: #2a2010; } .sfz.ready span { color: #ffd24a; font-family: Silkscreen, monospace; font-size: 10px; }
/* ---------- extras: changelog, feedback, gemme-kode, opdatering ---------- */
.btn-row3.small .btn { font-size: 14px; padding: 6px 12px; }
.xmodal .panel { max-width: 620px; width: 100%; }
.cl-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.cl-entry { background: #0a081680; border: 2px solid #2a2640; padding: 8px 12px; }
.cl-entry.new { border-color: #ffd24a; }
.cl-entry.new .cl-h b::after { content: 'NEW'; margin-left: 8px; font-family: Silkscreen, monospace; font-size: 10px; color: #0a0816; background: #ffd24a; padding: 1px 5px; }
.cl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cl-h span { font-family: Silkscreen, monospace; font-size: 10px; color: var(--dim); }
.cl-entry ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.35; }
#feedbackBox textarea, #saveCodeBox textarea { width: 100%; min-height: 110px; margin: 10px 0 6px; background: #0a0816; color: #e8e4f8; border: 3px solid var(--line); padding: 8px; font: 14px/1.35 inherit; resize: vertical; box-sizing: border-box; }
#saveCodeBox textarea { font-family: monospace; font-size: 11px; word-break: break-all; }
#feedbackBox input#fbContact { width: 100%; box-sizing: border-box; background: #0a0816; color: #e8e4f8; border: 3px solid var(--line); padding: 6px 8px; font: inherit; font-size: 13px; }
.fb-run { display: flex; gap: 6px; align-items: center; font-size: 13px; margin-top: 8px; color: var(--dim); }
.fb-status { min-height: 18px; font-size: 13px; color: #ffd24a; margin-top: 6px; }
.savecode-msg { font-size: 12px; margin: 4px 0 0; text-align: center; }
/* spellbog kompakt (ingen scroll når der kommer flere spells) */
.spellbook { padding: 8px 10px; }
.spellbook h3 { margin-bottom: 6px; }
.sbk-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 5px; }
.sbk { padding: 3px 6px; gap: 6px; }
.sbk img { width: 26px; height: 26px; }
.sbk b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sbk b span { font-family: Silkscreen, monospace; font-size: 10px; color: var(--c); }
.sbk .pips { margin-top: 2px; } .sbk .pips i { width: 9px; height: 4px; }
.sfz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px; }
.sfz { padding: 3px 6px; } .sfz img { width: 24px; height: 24px; } .sfz b { font-size: 12px; } .sfz span { font-size: 10px; }
.sbk-ps { margin-top: 6px; }
/* spire-panelet: spire-kort og spellbog side om side (ingen scroll) */
.mainrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; margin-bottom: 10px; }
.mainrow .tcard { margin-bottom: 8px; } .mainrow .hultinfo { margin: 0; } .mainrow .spellbook { margin: 0; }
@media (max-width: 900px) { .mainrow { grid-template-columns: 1fr; } }
.sfz-list { grid-template-columns: 1fr; gap: 3px; }
.sfz { align-items: center; gap: 6px; padding: 2px 6px; min-width: 0; }
.sfz b { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfz span { flex: none; font-family: Silkscreen, monospace; font-size: 10px; }
.sfz img { width: 22px; height: 22px; } .sfz.more { justify-content: center; font-size: 11px; color: var(--dim); }
/* kompakt talenttræ + spire-kort (hele spire-panelet uden scroll) */
.branch h3 { font-size: 16px; margin: 0 0 2px; } .bpts { margin-bottom: 5px; }
.node { padding: 4px 8px; gap: 8px; } .node img { width: 30px; height: 30px; }
.node .nn { font-size: 14px; line-height: 1.15; } .node .nd { font-size: 12px; line-height: 1.2; }
.link { height: 8px; }
.tcard { padding: 6px 10px; } .tcard .tch { margin-bottom: 3px; }
.tcard .tcg { grid-template-columns: repeat(auto-fit, minmax(90px, auto) minmax(90px, 1fr)); font-size: 12px; }
.tcard .tbase { margin-top: 5px; gap: 4px; } .tcard .tb { padding: 3px 6px; } .tcard .tb .tbd { font-size: 11px; line-height: 1.2; }
.htop { margin-bottom: 4px; }
/* bredere level-up-kort med ordnet info */
.card { width: 280px; }
.card .cdesc { font-size: 15px; }
.sdelta { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 1px 10px; margin: 6px auto 0; font-size: 13px; text-align: left; background: #0a081680; border: 1px solid #2a2640; padding: 4px 10px; }
.sdelta span:nth-child(odd) { color: var(--dim); }
.fhint { margin-top: 8px; font-size: 13px; text-align: left; background: #2a201040; border: 1px solid #ffd24a44; padding: 4px 8px; }
.fhint .fh { display: block; font-family: Silkscreen, monospace; font-size: 10px; color: #ffd24a; margin-bottom: 2px; }
.fhint div { line-height: 1.3; }
/* spire-panelet: de sidste pixels */
#heroBody .panel-foot { margin-top: 6px; } .mainrow { margin-bottom: 6px; } .spellbook h3 { margin: 0 0 4px; } .spellbook .sbk-h2 { margin-top: 6px; }
/* level-up: "kort i kortet" (effekt-boks, fusions-boks) */
.card .ceff { background: #0a081660; border: 1px solid #2a2640; padding: 6px 8px; }
.card .ceff .sdelta { background: transparent; border: 0; padding: 2px 0 0; margin-top: 4px; }
.fhint { padding: 6px 8px; }
.fhint .fl { display: grid; grid-template-columns: 18px auto 1fr 12px 18px auto; align-items: center; gap: 4px; font-size: 12px; padding: 2px 0; border-top: 1px solid #ffd24a1f; color: #e8e4f8; }
.fhint .fl:first-of-type { border-top: 0; }
.fhint .fl img { width: 18px; height: 18px; image-rendering: pixelated; }
.fhint .fl .fp { font-weight: 700; white-space: nowrap; }
.fhint .fl em { font-style: normal; font-size: 10px; color: var(--dim); white-space: nowrap; }
.fhint .fl.has em { color: #6aff7a; }
.fhint .fl i { font-style: normal; color: #ffd24a; text-align: center; }
.fhint .fl b { color: #ffd24a; white-space: nowrap; }
.fhint small { display: block; margin-top: 3px; font-size: 10px; color: var(--dim); }
.mainrow .tcard { margin: 0 0 6px; } .spellbook .sbk-ps { margin-top: 4px; } #heroBody .hxpbar { margin-bottom: 6px; }

/* ---------- Resonance ---------- */
.reso-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; max-width: 420px; pointer-events: auto; }
.reso-bar .rs { position: relative; display: inline-flex; align-items: center; gap: 5px; background: #0a0816cc; border: 2px solid color-mix(in srgb, var(--c) 35%, #0a0816); padding: 1px 6px; font-family: Silkscreen, monospace; font-size: 10px; color: color-mix(in srgb, var(--c) 60%, #888); cursor: help; }
.reso-bar .rs.t1 { border-color: var(--c); color: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 35%, transparent); }
.reso-bar .rs.t2 { border-color: var(--c); color: #fff; background: color-mix(in srgb, var(--c) 30%, #0a0816); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.reso-bar .rp { display: inline-flex; gap: 1px; } .reso-bar .rp i { width: 5px; height: 7px; background: #2a2640; } .reso-bar .rp i.on { background: var(--c); } .reso-bar .rp i.th { margin-right: 2px; }
.reso-bar .rs:hover::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); width: 240px; background: var(--panel); border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--hi); padding: 6px 8px; font-family: inherit; font-size: 12px; color: #e8e4f8; line-height: 1.3; z-index: 30; white-space: normal; }
.etag span em { font-style: normal; opacity: .85; }
.etag span.up { background: color-mix(in srgb, var(--c) 30%, #0a0816); color: #fff; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.rsb-list { display: grid; grid-template-columns: 1fr; gap: 3px; }
.rsb { display: flex; gap: 8px; align-items: baseline; font-size: 12px; padding: 2px 6px; border-left: 3px solid color-mix(in srgb, var(--c) 40%, transparent); color: var(--dim); }
.rsb b { color: var(--c); font-family: Silkscreen, monospace; font-size: 10px; white-space: nowrap; min-width: 70px; }
.rsb.t1, .rsb.t2 { color: #e8e4f8; border-left-color: var(--c); } .rsb em { font-style: normal; color: var(--dim); }
.spellbook .sbk-h2 small { font-family: inherit; letter-spacing: 0; color: var(--dim); text-transform: none; font-size: 10px; margin-left: 6px; }
/* fælles hover-info (egen tooltip, ikke browserens) */
.tipd { position: relative; cursor: help; }
.tipd:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 230px; background: var(--panel); border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--hi), 0 6px 0 #000a; padding: 6px 8px; font-family: system-ui, 'Segoe UI', Roboto, sans-serif; font-weight: 500; font-size: 13px; line-height: 1.35; letter-spacing: 0.1px; color: #e8e4f8; text-align: left; white-space: normal; z-index: 50; pointer-events: none; }
.lu-owned .lo-s.tipd:hover::after { bottom: calc(100% + 6px); }
/* spells: turkis ramme (lilla lignede Epic-rarity) */
.card.spell { --rc: #5ef0d6;
  background: radial-gradient(120% 55% at 50% 0%, #22c8b030, transparent 70%) padding-box, linear-gradient(180deg, #1c2a3a, #111a26) padding-box,
    linear-gradient(160deg, #b8fff1, #2ee6c8 45%, #128a7a) border-box;
  box-shadow: inset 0 0 0 2px #0c0b18, inset 0 0 0 3px #5ef0d666, inset 0 20px 30px -20px #ffffff18, 0 0 22px #22c8b055, 0 12px 26px #000b, 0 6px 0 #000a; }
.card.spell::before { background: radial-gradient(circle, #fff 1px, #b8fff1 2.5px, #149a88 4px, transparent 4.5px) 0 0 / 12px 12px no-repeat,
    radial-gradient(circle, #fff 1px, #b8fff1 2.5px, #149a88 4px, transparent 4.5px) 100% 0 / 12px 12px no-repeat,
    radial-gradient(circle, #fff 1px, #b8fff1 2.5px, #149a88 4px, transparent 4.5px) 0 100% / 12px 12px no-repeat,
    radial-gradient(circle, #fff 1px, #b8fff1 2.5px, #149a88 4px, transparent 4.5px) 100% 100% / 12px 12px no-repeat; }
.sfz b .fres { font-style: normal; color: #ffd24a; text-shadow: 0 0 8px #ffd24a55; }
.sfz.ready b .fres { color: #fff2a0; }
.hud-tr .relicbar { position: static; margin-top: 2px; }

/* ---------- Awakening ---------- */
.awaken { margin-top: 10px; background: #0a081680; border: 3px solid #3d3868; padding: 8px 10px; }
.awaken.ready { border-color: #ffd24a; box-shadow: 0 0 18px #ffd24a44; }
.awaken .aw-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.awaken .aw-h b { font-family: Silkscreen, monospace; letter-spacing: 2px; color: #ffd24a; }
.awaken .aw-h span { font-size: 12px; color: var(--dim); }
.awaken .aw-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aw-opt { display: flex; gap: 10px; align-items: center; text-align: left; background: color-mix(in srgb, var(--c) 12%, #141228); border: 3px solid color-mix(in srgb, var(--c) 50%, transparent); padding: 6px 8px; color: #e8e4f8; cursor: pointer; font: inherit; }
.aw-opt img { width: 44px; height: 44px; flex: none; }
.aw-opt b { display: block; font-size: 15px; color: var(--c); } .aw-opt span { font-size: 12px; line-height: 1.3; color: #cfc9e6; }
.aw-opt:not([disabled]):hover { filter: brightness(1.2); transform: translateY(-2px); }
.aw-opt[disabled] { opacity: .5; cursor: not-allowed; }
.awaken.done { border-color: var(--c); } .awaken.done b { display: block; color: var(--c); font-family: Silkscreen, monospace; letter-spacing: 1px; } .awaken.done span { font-size: 12px; color: #cfc9e6; }
.aw-confirm { border-color: var(--c) !important; } .aw-confirm h2 { color: var(--c); }
.aw-warn { color: #ffb060; font-weight: 700; }
@media (max-width: 800px) { .awaken .aw-opts { grid-template-columns: 1fr; } }
.card .cban { position: absolute; bottom: 6px; right: 8px; z-index: 3; font-family: Silkscreen, monospace; font-size: 10px; color: #ffb0b0; background: #3a1418; border: 2px solid #6a2a2a; padding: 2px 6px; cursor: pointer; }
.card .cban small { color: #fff; } .card .cban:hover { background: #6a2a2a; color: #fff; }
/* bredere kort; boksene holder sig altid inden for kortet */
.card { width: 340px; }
.card .ceff, .card .fhint, .card .sdelta, .card .bp-note { width: 100%; box-sizing: border-box; max-width: 100%; }
.card .cdesc { width: 100%; min-width: 0; }
.fhint .fl { grid-template-columns: 18px minmax(0, auto) minmax(0, 1fr) 12px 18px minmax(0, auto); }
.fhint .fl .fp, .fhint .fl em, .fhint .fl b { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1120px) { .card { width: 300px; } }

/* gemme-kode: QR + tekst, hint på forsiden */
.sc-wrap { display: flex; gap: 12px; align-items: stretch; margin-top: 8px; }
.sc-qr { width: 200px; height: 200px; image-rendering: pixelated; background: #fff; padding: 6px; flex: none; }
.sc-wrap textarea { flex: 1; min-height: 200px; margin: 0 !important; }
@media (max-width: 560px) { .sc-wrap { flex-direction: column; align-items: center; } .sc-qr { width: 70vw; height: 70vw; } }
.save-hint { background: #2a2010e0; border: 3px solid #ffd24a; color: #ffe27a; font: inherit; font-size: 14px; padding: 6px 12px; cursor: pointer; box-shadow: 0 0 14px #ffd24a44; }
.save-hint:hover { filter: brightness(1.15); }

/* Colossus: vælg landingsplads / fortryd */
#placeBar { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #1a1206f0; border: 3px solid #ffb040; box-shadow: 0 0 22px #ffb04066; max-width: min(760px, calc(100vw - 32px)); }
#placeBar.hidden { display: none; }
#placeBar b { display: block; color: #ffd070; font-family: Silkscreen, monospace; font-size: 16px; letter-spacing: 1px; }
#placeBar span { color: #e8dcc0; font-size: 13px; }
#placeBar .btn { flex: none; white-space: nowrap; }
#placeBar .btn small { opacity: .75; font-size: 11px; }
#placeBar.undo { padding: 6px 10px; border-width: 2px; top: 100px; }
.aw-next { color: #ffd070; font-size: 13px; margin-top: 4px; }

/* resonans-rækker: altid én linje (hele teksten + kilder ligger i hover) */
.rsb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rsb { align-items: center; }

/* Auto ULT: afkrydsning i heltens kort + AUTO-mærke på ULT-knappen */
.tmb.tog { display: flex; align-items: center; gap: 8px; justify-content: flex-start; background: #1a1830; color: var(--dim); font-size: 13px; }
.tmb.tog i { width: 16px; height: 16px; border: 2px solid var(--line); background: #0a0816; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; color: #6aff7a; flex: none; }
.tmb.tog.on { color: #e8ffe8; border-color: #3a8a3a; } .tmb.tog.on i { border-color: #6aff7a; }
.tmb.tog small { color: var(--dim); font-size: 10px; }
.hult.auto { border-color: #6aff7a; } .hult.auto::after { content: ''; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; background: #6aff7a; box-shadow: 0 0 4px #6aff7a; }

/* DPS-panelet: skift mellem samlet skade (TOTAL) og skade pr. sekund (DPS) */
.dps-mode { font: inherit; font-family: Silkscreen, monospace; font-size: 10px; color: #ffd24a; background: #2a2440; border: 1px solid var(--line); padding: 1px 5px; cursor: pointer; }
.dps-mode:hover { color: #fff; border-color: #ffd24a; }
.drow .dv small { color: var(--dim); font-size: 9px; }

/* roadmap: synlig på forsiden */
.plv-road { font-family: Silkscreen, monospace; font-size: 10px; color: #ffd24a; margin-left: 8px; white-space: nowrap; }
#plvBox:hover .plv-road { color: #fff; }

/* spire-opgraderinger i bunden */
.bcard.sup { border-color: #6a5a8a; }
.bcard.sup .lv { position: absolute; top: 2px; right: 4px; font-family: Silkscreen, monospace; font-size: 9px; color: #ffd24a; }
.bcard.sup .sup-pips { position: absolute; bottom: 20px; left: 4px; right: 4px; display: flex; gap: 2px; justify-content: center; }
.bcard.sup .sup-pips i { flex: 1; max-width: 7px; height: 3px; background: #2a2440; }
.bcard.sup .sup-pips i.on { background: #ffd24a; box-shadow: 0 0 3px #ffd24a; }
.bcard.sup.maxed { border-color: #ffd24a; }

/* event-kort: titel og tekst lodret centreret over prisen */
.evc > :first-child { margin-top: auto; }
.evc span { text-align: center; }

/* event-kort uden pris: teksten helt i midten */
.evc:not(:has(em)) > :last-child { margin-bottom: auto; }

/* Auto ULT-afkrydsning på heltekortene i bunden og i heltepanelet */
.hslot .hauto { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; padding: 0; background: #0a0816cc; border: 2px solid var(--line); color: #6aff7a; font-size: 11px; line-height: 12px; cursor: pointer; z-index: 3; }
.hslot .hauto.on { border-color: #6aff7a; box-shadow: 0 0 4px #6aff7a88; }
.hslot .hauto:hover { border-color: #fff; }
.hauto-p { margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; color: var(--dim); background: #1a1830; border: 2px solid var(--line); padding: 2px 8px; cursor: pointer; vertical-align: middle; }
.hauto-p i { width: 13px; height: 13px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; color: #6aff7a; }
.hauto-p.on { color: #e8ffe8; border-color: #3a8a3a; } .hauto-p.on i { border-color: #6aff7a; }

/* helte-roller: stat-bjælker (labels i egen kolonne, så bjælkerne står på linje) */
.rpill { font-size: 12px; color: var(--dim); background: #0c0b1880; border: 2px solid #3d3868; padding: 2px 10px; margin-top: -4px; }
.rpill b { color: var(--gold); font-family: Silkscreen, monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.rolebox { display: grid; gap: 8px; width: 100%; min-width: 0; box-sizing: border-box; font-size: 12px; }
.rolebox .rtag { color: var(--dim); font-size: 12px; } .rolebox .rtag b { color: var(--gold); font-family: Silkscreen, monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.rolebox .rbars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px 6px; min-width: 0; box-sizing: border-box; background: #0c0b1850; border: 2px solid #2e2a4e; padding: 8px 10px; }
.rolebox .rb { display: contents; }
.rolebox .rb span { color: var(--dim); font-size: 11px; text-align: right; line-height: 8px; }
.rolebox .rb:nth-child(even) span { padding-left: 6px; }
.rolebox .rb i { display: flex; gap: 2px; align-items: center; min-width: 0; } .rolebox .rb i b { flex: 1 1 0; max-width: 12px; min-width: 3px; height: 8px; background: #3a345a; } .rolebox .rb i b.on { background: var(--sc); box-shadow: 0 0 4px color-mix(in srgb, var(--sc) 50%, transparent); }
.rolebox .rb span { color: color-mix(in srgb, var(--sc) 55%, #cfc9e6); }
.rolebox .rpc { display: grid; gap: 2px; font-size: 12px; line-height: 1.35; text-align: center; } .rolebox .pro { color: #8ad86a; } .rolebox .con { color: #ff8a7a; }
.rolebox.compact { gap: 4px; margin: 6px 0 0; width: auto; max-width: 460px; text-align: left; }
.rolebox.compact .rbars { grid-template-columns: repeat(3, auto 64px); justify-content: start; padding: 5px 8px; }
.hcard .hp2 { margin-top: auto; }
/* demo: awakening-skifter */
.awaken .aw-opt.cur { border-color: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.awaken .aw-opt.aw-off { grid-column: 1 / -1; justify-content: center; text-align: center; padding: 4px; }
.hcard { min-width: 0; }

/* run-styrke i heltepanelet */
.hpow { font-size: 12px; color: var(--dim); margin-top: 4px; } .hpow b { color: #ffb040; } .hpow.full b { color: #8ad86a; }

/* slutkampens fase-bar (I Lich · II Titan · III Molten Fury) */
.boss .phases { display: flex; gap: 6px; width: min(520px, 70vw); }
.boss .ph { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.boss .ph .bar { width: 100%; height: 16px; }
.boss .ph small { font-size: 11px; color: #cfc9e6; text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.boss .ph.ph2 .fill { background: #ff6a10; box-shadow: inset 0 3px 0 #ffb040, inset 0 -3px 0 #8a2a08; }
.boss .ph.ph3 .fill { background: #ffd24a; box-shadow: inset 0 3px 0 #fff0a0, inset 0 -3px 0 #c8440c; }
.boss .ph.lock .fill { background: #3a3350; box-shadow: none; }
.boss .ph.lock small { color: #6a6488; }
.boss .ph.done small { color: #6a6488; text-decoration: line-through; }
.boss .ph.on small { color: #fff0c0; font-weight: 700; }
.boss .ph.rise .fill { animation: phRise 0.4s steps(2) infinite; }
@keyframes phRise { 50% { filter: brightness(1.8); } }

/* Soul Sigils: helte-oplåsning */
#sanctHeroes { margin: 4px 0 12px; border: 3px solid #4a3a6a; background: #140f22; padding: 10px 12px; }
#sanctHeroes .sigh { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
#sanctHeroes h3 { margin: 0; color: #c8a0ff; display: flex; align-items: center; gap: 6px; } #sanctHeroes h3 img { width: 22px; height: 22px; image-rendering: pixelated; }
#sanctHeroes .sigh span { font-size: 13px; color: var(--dim); }
#sanctHeroes .sigl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#sanctHeroes .sigb { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #1e1830; border: 3px solid #3a3050; color: #cfc9e6; padding: 6px 10px; cursor: pointer; font: inherit; opacity: 0.6; }
#sanctHeroes .sigb img { width: 48px; height: 48px; } #sanctHeroes .sigb small { color: #c8a0ff; }
#sanctHeroes .sigb.ok { opacity: 1; border-color: #c8a0ff; } #sanctHeroes .sigb.ok:hover { filter: brightness(1.2); transform: translateY(-2px); }
#sanctHeroes .sigdone { margin-top: 6px; color: #8ad86a; font-size: 13px; }
.hcard .hp2.sig { color: #8a7aa8; } .hcard .hp2.sig.ok { color: #c8a0ff; } .hcard .hp2.sig small { color: var(--dim); font-family: inherit; }
.hcard.locked:has(.hp2.sig.ok) { opacity: 0.9; cursor: pointer; }

/* specs for store ting på heltekortet */
.tmspec { margin-top: 6px; border-top: 2px solid #3d3868; padding-top: 6px; } .tmspt { color: var(--gold); font-family: Silkscreen, monospace; font-size: 11px; letter-spacing: 1px; margin-bottom: 4px; }

/* Mythic signaturvåben-levels 6-10 */
.sig-pips i.myth { background: #3a2a50; } .sig-pips i.myth.on { background: #c080ff; box-shadow: 0 0 6px #c080ff88; }
.sig-perk.myth b { color: #c080ff; } .sig-perk.myth.got { color: #e0c0ff; }
.sig-pips { flex-wrap: wrap; gap: 3px; } .sig-pips i { width: 14px; } .sig-pips i.big { width: 22px; }

/* Balance Lab-rapport */
.lab-report .lab-body { overflow: auto; max-height: calc(100% - 50px); padding: 4px 8px 12px; }
.lab-report h3 { margin: 10px 0 4px; color: var(--gold); }
.lab-t { border-collapse: collapse; width: 100%; font-size: 13px; } .lab-t th, .lab-t td { padding: 3px 8px; border-bottom: 1px solid #2e2a4e; text-align: left; white-space: nowrap; }
.lab-t.sm { font-size: 12px; } .lab-t th { color: var(--dim); font-weight: 600; }
.lab-t tr.ok td:nth-child(4), .lab-t.sm tr.ok td:nth-child(5) { color: #8ad86a; } .lab-t tr.low td:nth-child(4), .lab-t tr.high td:nth-child(4), .lab-t.sm tr.low td:nth-child(5) { color: #ff8a7a; } .lab-t tr.na td:nth-child(4) { color: var(--dim); }

/* Recruit: forhåndsvisning af en helt før man hyrer */
.hpv { display: flex; flex-direction: column; gap: 12px; }
.hpv-top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.hpv-top img.big { width: 96px; height: 96px; image-rendering: pixelated; }
.hpv-top h2 { margin: 0 0 4px; text-align: left; } .hpv-top h2 small { color: var(--dim); font-size: .6em; }
.hpv-st { color: var(--dim); margin: 6px 0; } .hpv-top .hb { text-align: left; }
.hpv-tree { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hpv-br, .hpv-awk { background: var(--panel2); border: 3px solid var(--line); padding: 10px 12px; }
.hpv-br h4, .hpv-awk h4 { margin: 0 0 8px; text-align: center; } .hpv-awk h4 small { color: var(--dim); font-weight: normal; }
.hpv-n { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; border-top: 1px solid #ffffff14; }
.hpv-n:first-of-type { border-top: 0; } .hpv-n img { width: 28px; height: 28px; image-rendering: pixelated; flex: none; }
.hpv-n b { color: var(--txt); } .hpv-n small { color: var(--gold); } .hpv-n span { display: block; color: var(--dim); font-size: 14px; }
.hpv-aws { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hpv-aw { border: 2px solid var(--ac); padding: 8px 10px; background: #00000030; } .hpv-aw b { color: var(--ac); display: block; margin-bottom: 4px; } .hpv-aw span { color: var(--dim); font-size: 14px; }
@media (max-width: 720px) { .hpv-top { grid-template-columns: auto 1fr; } .hpv-top .rolebox { grid-column: 1 / -1; } .hpv-tree, .hpv-aws { grid-template-columns: 1fr; } }

/* TREASURE RUSH: status-boks under bølge-pillen */
.bonusbox { display: flex; gap: 12px; align-items: center; background: #2a1e08e8; border: 3px solid #ffd24a; box-shadow: 0 0 16px #ffd24a66, inset 0 0 0 2px #fff3; padding: 6px 14px; font-family: 'Silkscreen', monospace; font-size: 14px; color: #f4e8c8; }
.bonusbox > b { color: #ffd24a; letter-spacing: 1px; } .bonusbox span b { color: #fff; }
.bonusbox .bt { font-size: 20px; color: #fff; min-width: 40px; text-align: center; } .bonusbox .bt.low { color: #ff6a5a; animation: hultglow 0.6s ease-in-out infinite; }
.bonusbox .gold { color: #ffd24a; font-size: 16px; } .bonusbox .jam { color: #ff5a5a; }
.nextwave .nw-i.bonusnw { --c: #ffd24a; } .nextwave .nw-i.bonusnw b { color: #ffd24a; }
/* WAVE-BAREN i højre side */
.wavetrack { position: absolute; right: 10px; top: 50%; transform: translateY(-58%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: auto; font-family: 'Silkscreen', monospace; }
.wt-head { background: #0a0816d8; border: 2px solid var(--line); padding: 3px 6px; font-size: 11px; color: #e0a0ff; white-space: nowrap; }
.wt-head.now { color: #fff; background: #6a1a3a; border-color: #ff5a8a; }
.wt-col { display: flex; flex-direction: column-reverse; gap: 3px; background: #0a0816b8; border: 2px solid var(--line); padding: 4px; }
.wt-r { width: 38px; height: 26px; display: flex; align-items: center; justify-content: center; position: relative; background: #1e1a2e; border: 1px solid #ffffff1c; font-size: 11px; color: #8a84a0; }
.wt-r img { width: 22px; height: 22px; image-rendering: pixelated; }
.wt-r.done { background: #1f3a2a; color: #7ac88a; } .wt-r.done img { opacity: .5; filter: grayscale(.6); }
.wt-r.boss { background: #3e1630; border-color: #b03aff88; } .wt-r.bonus { background: #3e3210; border-color: #ffd24a88; }
.wt-r.cur { outline: 2px solid #fff; outline-offset: -1px; color: #fff; box-shadow: 0 0 10px #ffffff66; z-index: 1; }
.wt-r i.ev { position: absolute; right: -5px; top: -5px; font-style: normal; background: #b48cff; color: #140f1e; font-size: 9px; line-height: 12px; padding: 0 3px; border: 1px solid #140f1e; }
@media (max-width: 700px) { .wavetrack { right: 4px; transform: translateY(-70%) scale(.8); } }
.bonusbox .find { color: #8aff6a; }

/* LØBELYS rundt om den valgte awakening (som EV Compare): to lysprikker jager hinanden langs kanten */
@property --aw-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.aw-run { position: relative; box-shadow: 0 0 18px color-mix(in srgb, var(--c, #ffd24a) 55%, transparent); }
.aw-run::before { content: ''; position: absolute; inset: -4px; padding: 4px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--aw-ang), transparent 0deg, var(--c, #ffd24a) 40deg, #fff 55deg, var(--c, #ffd24a) 70deg, transparent 110deg, transparent 180deg, var(--c, #ffd24a) 220deg, #fff 235deg, var(--c, #ffd24a) 250deg, transparent 290deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: awrun 2.4s linear infinite; }
@keyframes awrun { to { --aw-ang: 360deg; } }
/* preview: awakenings er kun info, ikke noget man vælger her */
.hpv-aw { border-color: #ffffff22 !important; } .hpv-aw b { color: var(--ac); }

/* DOMMEDAG: mørk, pulserende blodrød vignet ind fra kanterne */
#doomVig { position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0; background: radial-gradient(ellipse at 50% 52%, transparent 30%, #22000ab8 62%, #060003f2 100%); }
#speedBtn.locked { opacity: .45; filter: grayscale(1); cursor: not-allowed; }

/* SEJRS-SKÆRMEN */
#victorySplash { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; align-items: center; justify-content: space-between; padding: 3vh 16px 5vh; overflow: hidden; background: linear-gradient(#0a0600cc, transparent 34%, transparent 72%, #0a0600cc); cursor: pointer; }   /* gennemsigtig: spiret, fyrværkeriet og den døde dæmon ses i midten */
#victorySplash.show { display: flex; animation: vsIn .6s ease-out both; } #victorySplash.out { display: flex; animation: vsOut .6s ease-in both; }
@keyframes vsIn { from { opacity: 0; } } @keyframes vsOut { to { opacity: 0; } }
.vs-rays { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(from 0deg, #ffd24a22 0deg 7deg, transparent 7deg 18deg); animation: vsSpin 30s linear infinite; mask: radial-gradient(circle, #000 0, #000 18%, transparent 55%); -webkit-mask: radial-gradient(circle, #000 0, #000 18%, transparent 55%); }
@keyframes vsSpin { to { transform: rotate(360deg); } }
.vs-conf i { position: absolute; top: -20px; width: 9px; height: 14px; animation: vsFall linear infinite; opacity: .9; }
@keyframes vsFall { to { transform: translateY(110vh) rotate(var(--r)); } }
.vs-box { position: relative; text-align: center; padding: 6px 40px; animation: vsPop .9s cubic-bezier(.2, 1.6, .4, 1) both .15s; }
@keyframes vsPop { from { transform: scale(.3); opacity: 0; } }
.vs-small { font-family: 'Silkscreen', monospace; color: #ff8a5a; letter-spacing: 4px; font-size: 18px; }
.vs-title { font-family: 'Silkscreen', monospace; font-size: clamp(44px, 6.5vw, 92px); line-height: 1; color: #ffd24a; letter-spacing: 8px; margin: 10px 0 6px;
  text-shadow: 0 0 30px #ffb030, 0 0 70px #ff8a1a88, 0 6px 0 #8a5a10, 0 10px 0 #3a2404; animation: vsGlow 2.2s ease-in-out infinite; }
@keyframes vsGlow { 50% { text-shadow: 0 0 45px #ffd24a, 0 0 100px #ffb030aa, 0 6px 0 #8a5a10, 0 10px 0 #3a2404; } }
.vs-sub { color: #f4e8c8; font-size: 20px; margin-bottom: 10px; }
.vs-stars { font-size: 54px; color: #ffd24a; letter-spacing: 8px; text-shadow: 0 0 20px #ffb030; } .vs-stars i { color: #4a3a1a; font-style: normal; text-shadow: none; }
.vs-meta { display: flex; gap: 22px; justify-content: center; margin: 12px 0 22px; font-family: 'Silkscreen', monospace; color: #c8b88a; font-size: 14px; }
.vs-go { font-size: 20px; padding: 12px 28px; position: relative; z-index: 1; }
.vs-sub, .vs-meta, .vs-small { text-shadow: 0 2px 6px #000, 0 0 12px #000; }
.vs-bottom { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; } .vs-bottom .vs-stars { font-size: 40px; } .vs-bottom .vs-meta { margin: 6px 0 14px; }
.vs-conf { position: absolute; inset: 0; pointer-events: none; }
#adminPanel button.finalbtn { background: #b8860b !important; border-color: #ffe27a !important; color: #1a1000 !important; font-weight: 700; box-shadow: 0 0 10px #ffd24a88; }

/* AWAKEN-genvej i heltens klik-menu */
.tmaw { margin-top: 6px; padding: 6px; border: 2px solid #ffd24a; background: linear-gradient(90deg, #3a2a08cc, #1a1430cc); box-shadow: 0 0 10px #ffd24a55; display: flex; flex-direction: column; gap: 4px; }
.tmaw > b { font-family: 'Silkscreen', monospace; color: #ffd24a; font-size: 12px; letter-spacing: 2px; text-align: center; }
.tmaw .tmb.awk { border-color: var(--c) !important; box-shadow: inset 0 0 0 1px var(--c); color: #fff; }
.tmaw .tmb.awk:hover { background: color-mix(in srgb, var(--c) 35%, #2a2440); }
.sig-card > button:last-child { margin-top: auto; }   /* Upgrade-knapperne flugter i bunden af kortene */
#nextWave { display: none !important; }   /* NEXT-rækken er afløst af wave-baren i højre side */

/* era-vælgeren: Era II under opbygning + kommende eras */
#eraSel { flex-wrap: wrap; justify-content: center; }
#eraSel button { position: relative; }
#eraSel .erabadge { position: absolute; top: -9px; right: -6px; font-style: normal; font-family: 'Silkscreen', monospace; font-size: 9px; letter-spacing: 1px; padding: 1px 5px; background: #6a5a8a; color: #fff; border: 2px solid #140f1e; transform: rotate(4deg); }
#eraSel .erabadge.wip { background: repeating-linear-gradient(45deg, #ffd24a 0 6px, #1a1410 6px 12px); color: #1a1410; text-shadow: 0 0 2px #ffd24a, 0 0 2px #ffd24a; font-weight: 700; }
#eraSel button.soon { opacity: .55; font-size: .85em; filter: grayscale(.5); }
#eraSel button.soon:hover { opacity: .85; filter: none; }

/* era-knapper: læsbare (fast mørk baggrund) med en undertekst */
#eraSel button { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; padding-top: 7px; padding-bottom: 6px; }
#eraSel button b { font-weight: 700; }
#eraSel .etag { font-size: 11px; opacity: .8; font-weight: 400; white-space: nowrap; }
#eraSel button.soon { opacity: 1; filter: none; background: #15102af2 !important; color: #b8b0d4; font-size: 1em; }
#eraSel button.soon .etag { color: #8a84a8; opacity: 1; }
#eraSel button.soon:hover { color: #fff; background: #221a40f2 !important; }
#eraSel .erabadge { font-size: 10px; background: #5a4a8a; }
#eraSel .erabadge.wip { background: #ffd24a; color: #140f1e; text-shadow: none; border: 2px solid #140f1e; box-shadow: 0 0 0 2px #ffd24a; font-weight: 700; }
#eraSel button.wipera.lock { opacity: 1; filter: none; background: #15102af2 !important; color: #c8c0e0; } #eraSel button.wipera .etag { color: #8a84a8; opacity: 1; }

/* spir-skins i Sanctum */
#sanctSkins { margin: 0 0 14px; }
.skinl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.skinb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; background: #1a1430; border: 2px solid #3a3258; color: #e8e2f4; cursor: pointer; text-align: center; }
.skinb .skinsw { width: 34px; height: 46px; background: linear-gradient(180deg, var(--sl), var(--sd)); border: 2px solid #140f1e; box-shadow: 0 0 10px var(--sk); clip-path: polygon(20% 0, 80% 0, 100% 18%, 100% 100%, 0 100%, 0 18%); }
.skinb small { color: #a8a0c4; font-size: 12px; }
.skinb.on { border-color: var(--sk); box-shadow: 0 0 12px var(--sk); }
.skinb.lock { opacity: .55; filter: grayscale(.6); }
/* sejrs-knapper */
.vs-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.vs-btns .vs-b { font-size: 16px; padding: 10px 18px; }
.vs-skin { color: #ffd24a; font-family: 'Silkscreen', monospace; font-size: 14px; margin-bottom: 10px; text-shadow: 0 2px 6px #000; }
.fb-priv { font-size: 12px; color: var(--dim); margin: 6px 0 0; text-align: center; }

/* forsiden ryddet: era-karrusel, små hjørneknapper, diskret save-hint */
#eraSel { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.era-arr { width: 40px; font: inherit; font-size: 26px; line-height: 1; color: #ffe27a; background: #1a1430e0; border: 3px solid var(--line); cursor: pointer; }
.era-arr:hover:not(:disabled) { background: #2a2250; }
.era-arr:disabled { opacity: .3; cursor: default; }
.era-card { position: relative; width: 300px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px 7px; background: #1a1430e0; border: 3px solid var(--line); }
.era-card.on { background: #3a4aa0; border-color: #8aa0ff; }
.era-card b { font-size: 18px; }
.era-card .etag { font-size: 12px; color: #d8d2ee; }
.era-card.lock { filter: saturate(.6); }
.era-card.lock b, .era-card.lock .etag { opacity: .7; }
.era-card .erabadge { position: absolute; top: -10px; right: -8px; font-style: normal; font-family: 'Silkscreen', monospace; font-size: 9px; letter-spacing: 1px; padding: 1px 5px; background: #6a5a8a; color: #fff; border: 2px solid #140f1e; transform: rotate(4deg); }
.era-card .erabadge.wip { background: repeating-linear-gradient(45deg, #ffd24a 0 6px, #1a1410 6px 12px); color: #1a1410; text-shadow: 0 0 2px #ffd24a, 0 0 2px #ffd24a; font-weight: 700; }
.era-dots { display: flex; gap: 5px; margin-top: 4px; }
.era-dots i { width: 7px; height: 7px; background: #6a6290; }
.era-dots i.off { background: #3a3458; }
.era-dots i.on { background: #ffe27a; }
#playBtn:disabled { filter: grayscale(.8); opacity: .7; cursor: default; }
.menu-corner { position: fixed; top: 14px; right: 16px; display: flex; gap: 8px; z-index: 5; }
.mc-b { display: flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; color: #e8e2f4; background: #1a1430d0; border: 3px solid var(--line); padding: 5px 10px; cursor: pointer; }
.mc-b:hover { background: #2a2250; }
.mc-b .ic { width: 20px; height: 20px; }
.admin-only { display: none !important; }
body.is-admin .admin-only { display: flex !important; }
.save-hint { background: none; border: 0; box-shadow: none; color: #ffe27a; font-size: 13px; padding: 2px 6px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.save-hint:hover { opacity: 1; filter: none; }
@media (max-width: 700px) { .mc-b span { display: none; } .era-card { width: auto; flex: 1; } }

/* spir-skins: rigtige 3D-billeder af spiret */
.skinb { padding: 8px 8px 12px; background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--sk) 22%, #1a1430) 0%, #1a1430 70%); transition: transform .12s, border-color .12s; }
.skinb:hover { transform: translateY(-2px); border-color: var(--sk); }
.skinpic { position: relative; display: block; width: 120px; height: 120px; }
.skinpic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px #0009) drop-shadow(0 0 12px color-mix(in srgb, var(--sk) 45%, transparent)); }
.skinb.lock { opacity: 1; filter: none; }
.skinb.lock .skinpic img { filter: brightness(.28) saturate(.4) drop-shadow(0 0 1px #8a80aa); }
.skinb.lock b { color: #a8a0c4; }
.skinlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: 30px; filter: drop-shadow(0 2px 4px #000); }
.skinon { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); font-style: normal; font-family: 'Silkscreen', monospace; font-size: 10px; letter-spacing: 1px; padding: 1px 6px; background: var(--sk); color: #140f1e; border: 2px solid #140f1e; white-space: nowrap; }
.skinb b { font-size: 16px; margin-top: 4px; }
.skinl { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.skinpic { width: 100%; max-width: 130px; aspect-ratio: 1; height: auto; }
@media (max-width: 800px) { .skinl { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
#adminPanel button.herotoggle { background: linear-gradient(90deg, #0a6a7a, #1aa8b8) !important; border-color: #7ff4ff !important; color: #fff !important; font-weight: 700; box-shadow: 0 0 12px #3ae8ff99; text-shadow: 0 1px 0 #003a44; }
