/* Layout: full-bleed canvas arena; HUD floats along the top edge; menus are centered panels that stack to one column on phones. */
/* Single deliberate medieval look (wood, bronze, parchment, pixel display font): colors are set explicitly so it reads the same on any host theme. */
:root {
  --ink: #1a1410;        /* arena backdrop: night earth */
  --ink-2: #2a2018;      /* panels and cards: dark wood */
  --line: #5a4630;       /* borders: bronze */
  --fg: #f2e6c9;         /* parchment */
  --muted: #b5a37f;
  --hero: #e8b04a;       /* gold */
  --threat: #d9463b;     /* blood red */
  --xp: #58c7e0;         /* essence */
  --evo: #ffd65d;        /* evolutions */
  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
[hidden] { display: none !important; }
html, body {
  height: 100%; margin: 0; overflow: hidden;
  background: var(--ink); color: var(--fg);
  font-family: var(--font-body); font-size: 15px;
  touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- HUD ---------- */
#hud {
  position: fixed; left: 0; right: 0; top: 0; z-index: 2;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 0;
  display: grid; gap: 6px; pointer-events: none;
}
.xpbar { height: 10px; background: rgba(88, 199, 224, .1); border: 1px solid rgba(88, 199, 224, .4); border-radius: 6px; overflow: hidden; }
#xpfill { height: 100%; background: linear-gradient(90deg, #2f8fa8, var(--xp)); transform-origin: left; transform: scaleX(0); }
.hudrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.lvl { font-family: var(--font-display); font-size: 15px; color: var(--xp); letter-spacing: .04em; }
#timer { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #000; }
.hudright { justify-self: end; display: flex; align-items: center; gap: 10px; }
.kills { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.kills b { color: var(--fg); }
#pauseBtn {
  pointer-events: auto; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(42, 32, 24, .85); border: 1px solid var(--line); color: var(--fg);
  font-family: var(--font-display); font-size: 14px; cursor: pointer;
}
#slots { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.slot {
  --c: var(--fg);
  width: 30px; height: 30px; border-radius: 8px; position: relative;
  display: grid; place-items: center; font-size: 15px; line-height: 1;
  background: rgba(42, 32, 24, .85); border: 1px solid var(--line); color: var(--c);
}
.slot.evo { border-color: var(--evo); box-shadow: 0 0 10px rgba(255, 214, 93, .45); }
.pips { position: absolute; left: 3px; right: 3px; bottom: -4px; display: flex; gap: 1px; }
.pip { flex: 1; height: 3px; border-radius: 2px; background: #4a3a28; }
.pip.on { background: var(--c); }
.slotgap { width: 8px; }
.slot.arm { border-radius: 4px; }
/* Rune buttons: bottom right, above the safe area; the dark overlay drains as the cooldown ends. */
#runebar {
  position: fixed; right: calc(env(safe-area-inset-right, 0px) + 14px); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 3; display: flex; gap: 12px; align-items: flex-end;
}
.runebtn {
  --c: var(--fg); --p: 0;
  position: relative; width: 64px; height: 64px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; touch-action: none;
  background: rgba(42, 32, 24, .9); border: 2px solid var(--c); color: var(--fg);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 35%, transparent);
}
.runebtn .pxi { width: 34px; height: 34px; }
.runebtn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(rgba(0, 0, 0, .68) calc(var(--p) * 360deg), transparent 0);
}
.runebtn.ready { animation: runeReady .5s ease-out; }
.runebtn kbd {
  position: absolute; top: -6px; left: -6px; z-index: 1; min-width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center; font: 700 12px var(--font-display);
  background: var(--ink); border: 1px solid var(--c); color: var(--c);
}
.runebtn b {
  position: absolute; z-index: 1; font: 700 18px var(--font-display); color: var(--fg); text-shadow: 0 2px 0 #000;
}
@keyframes runeReady { from { transform: scale(1.18); } to { transform: scale(1); } }
.runeslots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.runeslot { --c: var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: var(--ink-2); border: 2px solid var(--c); }
.runeslot .pxi, .runecard .pxi { width: 32px; height: 32px; }
.runeslot small, .runecard small { display: block; color: var(--muted); font-size: 12px; }
.runelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.runecard { --c: var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; align-items: start; padding: 10px 12px;
  border-radius: 12px; background: var(--ink-2); border: 1px solid color-mix(in srgb, var(--c) 55%, var(--line)); }
.runecard.locked { opacity: .6; }
.runecard b { color: var(--c); }
.runecard p { margin: 2px 0 0; font-size: 13px; }
.runecard .btnrow { grid-column: 1 / -1; justify-content: flex-start; margin: 0; }
#bossbar { justify-self: center; width: min(100%, 420px); display: grid; gap: 3px; text-align: center; }
#bossname { font-family: var(--font-display); font-size: 13px; color: var(--threat); letter-spacing: .06em; }
.bosstrack { height: 9px; border-radius: 5px; background: rgba(217, 70, 59, .15); border: 1px solid rgba(217, 70, 59, .55); overflow: hidden; }
#bossfill { height: 100%; background: var(--threat); transform-origin: left; }
#bossbar.event #bossname { color: var(--evo); }
#bossbar.event .bosstrack { background: rgba(255, 214, 93, .12); border-color: rgba(255, 214, 93, .5); }
#bossbar.event #bossfill { background: var(--evo); }

#banner {
  position: fixed; left: 0; right: 0; top: 32%; z-index: 3; pointer-events: none;
  text-align: center; font-family: var(--font-display); font-size: clamp(26px, 7vw, 48px);
  color: var(--fg); text-shadow: 0 4px 0 #000, 0 0 24px rgba(217, 70, 59, .5);
  opacity: 0;
}
#banner small { display: block; font-size: .45em; color: var(--threat); letter-spacing: .08em; }
#banner.evo small { color: var(--evo); }
#banner.show { animation: banner 2.2s ease-out forwards; }
@keyframes banner {
  0% { opacity: 0; transform: scale(1.4); }
  12% { opacity: 1; transform: scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-16px); }
}
#hurt {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(255, 40, 70, .55));
  transition: opacity .35s;
}
#hurt.low { opacity: .55; }
#flash { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at center, #fff6d6 0%, rgba(255, 214, 93, .6) 40%, transparent 75%); }
#flash.go { animation: flash .6s ease-out; }
#coach {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); z-index: 4; transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px); padding: 12px 16px; border-radius: 14px; pointer-events: none;
  background: rgba(42, 32, 24, .94); border: 1px solid var(--xp); color: var(--fg); font-weight: 600; text-align: center; line-height: 1.4;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
#coach.show { animation: coachIn .3s ease-out; }
@keyframes coachIn { from { opacity: 0; transform: translate(-50%, 12px); } }
.tip { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 214, 93, .1); border: 1px solid rgba(255, 214, 93, .5); color: var(--fg); line-height: 1.45; }
.tip b { color: var(--evo); }
.ldays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 520px) { .ldays { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lday { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); min-width: 0; }
.lday small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.lday b { font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lday.got { opacity: .45; }
.lday.today { border: 2px solid var(--hero); box-shadow: 0 0 14px rgba(232, 176, 74, .3); }
.missions { display: grid; gap: 8px; }
.mission { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.mission.claimed { opacity: .55; }
.mission .mt { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mission .mt small { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.mission .mr { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
#hurt.hit { opacity: 1; transition: none; }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 10; overflow-y: auto; overflow-x: hidden;
  display: grid; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px calc(env(safe-area-inset-bottom, 0px) + 20px);
  background: rgba(12, 8, 5, .8); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  touch-action: pan-y;
}
#menu { background: radial-gradient(ellipse at 50% 30%, #3a2a1c 0%, var(--ink) 70%); }
.panel { width: min(100%, 460px); display: grid; gap: 16px; text-align: center; }
.panel.wide { width: min(100%, 860px); }
h1 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(52px, 15vw, 96px); line-height: .88; letter-spacing: .01em;
  color: var(--hero); text-shadow: 5px 5px 0 #5a2a12, 0 0 40px rgba(232, 176, 74, .3);
  text-wrap: balance;
}
h1 span { display: block; color: var(--threat); text-shadow: 5px 5px 0 #2a1208, 0 0 40px rgba(217, 70, 59, .35); }
h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 6vw, 34px); letter-spacing: .02em; text-wrap: balance; }
h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.lede { margin: 0 auto; max-width: 36ch; color: var(--muted); line-height: 1.5; }
.lede b { color: var(--fg); }
.hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.meta b, .meta strong { color: var(--evo); }

button { font: inherit; }
button:focus-visible { outline: 3px solid var(--xp); outline-offset: 3px; }
.primary {
  justify-self: center; min-width: 200px; padding: 14px 30px; cursor: pointer;
  font-family: var(--font-display); font-size: 24px; letter-spacing: .03em;
  color: #2a1300; background: var(--hero); border: 0; border-radius: 14px;
  box-shadow: 0 6px 0 #7a4a12, 0 10px 30px rgba(232, 176, 74, .25);
}
.primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #7a4a12; }
.ghost {
  justify-self: center; padding: 10px 18px; cursor: pointer; border-radius: 10px;
  background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 600;
}
.ghost:hover { color: var(--fg); border-color: var(--muted); }
.ghost:disabled { opacity: .4; cursor: default; }
.btnrow { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.combos { display: grid; gap: 6px; text-align: left; }
.combo {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 10px; background: rgba(42, 32, 24, .7); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
}
.combo .op { color: var(--muted); }
.combo .res { color: var(--evo); }
.chip { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.chip i { font-style: normal; color: var(--c); font-size: 15px; width: 16px; text-align: center; flex: none; }
.chip span { min-width: 0; overflow-wrap: anywhere; }
.combo.done { border-color: var(--evo); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 680px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  --c: var(--fg);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px; text-align: left; cursor: pointer; color: var(--fg);
  background: var(--ink-2); border: 2px solid var(--line); border-radius: 14px;
  transition: transform .12s, border-color .12s;
  animation: cardIn .25s ease-out backwards;
}
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .1s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card:hover, .card:focus-visible { border-color: var(--c); transform: translateY(-3px); outline: none; }
.card.evo { border-color: var(--evo); background: linear-gradient(160deg, #3d2e06 0%, var(--ink-2) 65%); box-shadow: 0 0 24px rgba(255, 214, 93, .25); }
.ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; line-height: 1; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.ct { display: grid; gap: 4px; min-width: 0; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--c); }
.card.evo .tag { color: var(--evo); }
.card.arm .tag { color: var(--c); }
.card.swap { border-style: dashed; }
.card.curse { border-color: #8a2a42; background: linear-gradient(160deg, #3a1020 0%, var(--ink-2) 65%); }
.card.curse .h { color: #ff8fa6; }
.ct b { font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 1.1; }
.ct .d { color: var(--muted); line-height: 1.4; font-size: 14px; }
.ct .h { font-size: 12px; color: var(--evo); font-weight: 600; }
.key { display: none; font-size: 11px; color: var(--muted); }
@media (hover: hover) { .key { display: inline; } }

.build { display: grid; gap: 8px; text-align: left; }
.buildrow { display: flex; flex-wrap: wrap; gap: 6px; }
.bitem {
  --c: var(--fg);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px;
  background: rgba(42, 32, 24, .8); border: 1px solid var(--line); font-weight: 600; font-size: 13px;
}
.bitem i { font-style: normal; color: var(--c); }
.bitem small { color: var(--muted); font-weight: 400; }
.bitem.evo { border-color: var(--evo); }
.bitem.long { flex: 1 1 100%; align-items: flex-start; }
.bitem.long small { display: block; margin-top: 2px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 10px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 2px; }
.stat b { font-family: var(--font-display); font-weight: 400; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat.gold b { color: var(--evo); }
#overTitle.win { color: var(--evo); }
#overTitle.lose { color: var(--threat); }

/* ---------- Hub (out-of-run meta menu) ---------- */
.hub { place-items: start center; }
.hubwrap { width: min(100%, 760px); display: grid; gap: 16px; }
.hubhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 5.4vw, 36px); line-height: 1; color: var(--hero); text-shadow: 0 2px 0 #5a2a12, 0 0 18px rgba(232, 176, 74, .25); }
.logo span { color: var(--threat); text-shadow: 0 2px 0 #2a1208; margin-left: .25em; }
.wallet { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.wallet i, .coin { font-style: normal; color: var(--evo); }
.wallets { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wallet i.nrg { color: var(--hero); }
.wallet { padding: 7px 11px; }
.wallet i.gem, .gem { font-style: normal; color: #ff7ad9; }
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.tab { padding: 10px 4px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; font-size: 14px; }
.tab { position: relative; }
.tab.badge::after { content: ''; position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--threat); box-shadow: 0 0 6px var(--threat); }
.tab[aria-selected="true"] { background: var(--line); color: var(--fg); box-shadow: inset 0 -3px 0 var(--hero); }
.tabpanel { display: grid; gap: 14px; text-align: left; }
.tabpanel > h3 { margin-top: 4px; }
.box { padding: 14px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 10px; }

.playhero { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 18px 14px; border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), var(--ink-2); border: 1px solid var(--line); }
.bigicon { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 38px; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
.heroname { font-family: var(--font-display); font-size: 22px; }
.playhero p { margin: 0; color: var(--muted); max-width: 42ch; line-height: 1.45; }

/* Look tab: pixel avatar preview + race, tones and cosmetic pieces. */
canvas.avatarcv { width: 120px; height: 144px; }
canvas.avatarcv.big { width: 200px; height: 240px; }
canvas.avatarcv.mini { width: 80px; height: 96px; justify-self: center; }
#reveal canvas.avatarcv { justify-self: center; }
.lookwrap { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: start; }
.lookprev { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 14px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); position: sticky; top: 0; }
.lookprev b { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.lookprev small { color: var(--muted); }
.lookside { display: grid; gap: 10px; min-width: 0; }
.lookside h3 { margin: 4px 0 0; }
.tones { display: flex; gap: 8px; }
.tone { width: 30px; height: 30px; border-radius: 50%; background: var(--t); border: 2px solid var(--line); cursor: pointer; }
.tone[aria-pressed="true"] { border-color: var(--fg); box-shadow: 0 0 0 2px var(--hero); }
.coslist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cositem { --r: var(--line); display: grid; gap: 2px; text-align: left; padding: 10px; border-radius: 12px; cursor: pointer; color: var(--fg);
  background: var(--ink-2); border: 2px solid color-mix(in srgb, var(--r) 55%, var(--line)); font: inherit; }
.cositem b { color: var(--r); font-size: 14px; }
.cositem small { color: var(--muted); font-size: 12px; }
.cositem .cstate { font-size: 12px; font-weight: 700; }
.cositem.locked { opacity: .8; }
.cositem[aria-pressed="true"] { border-color: var(--r); box-shadow: 0 0 12px color-mix(in srgb, var(--r) 40%, transparent); }
.trybar { border-color: var(--r); }
@media (max-width: 560px) { .lookwrap { grid-template-columns: 1fr; } .lookprev { position: static; } }

.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; width: 100%; }
.chap { --c: var(--line); display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 35%, var(--ink)); border: 2px solid color-mix(in srgb, var(--c) 80%, transparent); color: var(--fg); }
.chap small { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.chap b { font-size: 14px; }
.chap span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chap[aria-pressed="true"] { border-color: var(--hero); box-shadow: 0 0 14px rgba(232, 176, 74, .3); }
.chap:disabled { opacity: .45; cursor: default; }
.chinfo { margin: 0; font-size: 13px; color: var(--muted); }
.energy { display: grid; gap: 6px; justify-items: center; }
.ebar { font-variant-numeric: tabular-nums; color: var(--muted); }
.ebar b { color: var(--hero); font-size: 17px; }
.primary:disabled { background: #4a3e30; color: var(--muted); box-shadow: none; cursor: default; }
.adchest { grid-template-columns: 1fr; }
.gemgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gempack { position: relative; display: grid; gap: 6px; padding: 14px 12px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.gempack b { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.ptag { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: #ff7ad9; color: #2b0520; font-size: 11px; font-weight: 700; }
.adlabel { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.adbox { display: grid; gap: 8px; justify-items: center; padding: 34px 16px; border-radius: 16px; border: 2px dashed var(--line);
  background: repeating-linear-gradient(45deg, var(--ink-2), var(--ink-2) 12px, #221a12 12px, #221a12 24px); }
.adbox b { font-size: 16px; }
.adbox span { color: var(--muted); }
.adcount { font-family: var(--font-display); font-size: 44px; color: var(--fg) !important; font-variant-numeric: tabular-nums; }
#revive .lede { max-width: 34ch; }
.chinfo strong { color: var(--fg); }
.unlock { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 214, 93, .12); border: 1px solid var(--evo); color: var(--evo); font-weight: 700; }
.classgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.classcard { --c: var(--fg); display: grid; gap: 8px; align-content: start; text-align: left; padding: 12px; border-radius: 14px; cursor: pointer;
  background: var(--ink-2); border: 2px solid var(--line); color: var(--fg); }
.classcard.sel { border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); }
.classcard.locked { opacity: .78; }
.classtop { display: flex; align-items: center; gap: 10px; }
.classtop .ic { width: 40px; height: 40px; font-size: 20px; }
.classtop b { font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.mods { display: flex; flex-wrap: wrap; gap: 4px; }
.mod { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(88, 199, 224, .08); color: var(--fg); }
.mod.neg { background: rgba(217, 70, 59, .12); color: #ffb3bf; }
.mod.mech { background: rgba(255, 214, 93, .14); color: var(--evo); }
.passive { font-size: 13px; color: var(--muted); line-height: 1.4; }
.passive b { color: var(--fg); }
.state { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c); }
.state.buy { color: var(--evo); }
.state.no { color: var(--muted); }

.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.stile { padding: 10px 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.stile b { font-family: var(--font-display); font-weight: 400; font-size: 19px; font-variant-numeric: tabular-nums; }
.stile span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.attrlist { display: grid; gap: 8px; }
.attr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.attr .ic { width: 40px; height: 40px; font-size: 19px; }
.attr .nm { display: grid; gap: 3px; min-width: 0; }
.attr .nm b { font-size: 15px; }
.attr .nm small { color: var(--muted); font-size: 12px; }
.lvlbar { height: 5px; border-radius: 3px; background: #3a2e22; overflow: hidden; }
.lvlbar i { display: block; height: 100%; background: var(--c); }
.buybtn { min-width: 86px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--hero); color: #2a1300; border: 0; box-shadow: 0 3px 0 #7a4a12; }
.buybtn:disabled { background: #3a2e22; color: var(--muted); box-shadow: none; cursor: default; }
.buybtn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #7a4a12; }

.eqrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.eqslot { --r: var(--line); display: grid; gap: 6px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 14px; cursor: pointer;
  background: var(--ink-2); border: 2px solid var(--r); color: var(--fg); min-width: 0; }
.eqslot.empty { border-style: dashed; color: var(--muted); }
.eqslot .sl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.eqslot .ii { font-size: 26px; line-height: 1; color: var(--r); }
.eqslot .nm { font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.invgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.itile { --r: var(--line); position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 12px; cursor: pointer; display: grid; place-items: center;
  font-size: 24px; color: var(--r); background: color-mix(in srgb, var(--r) 10%, var(--ink-2)); border: 2px solid color-mix(in srgb, var(--r) 70%, transparent); }
.itile.sel { outline: 3px solid var(--fg); outline-offset: 2px; }
.itile em { position: absolute; top: 3px; right: 5px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--fg); }
.detail { --r: var(--line); border-color: var(--r); }
.detail .dh { display: flex; align-items: center; gap: 12px; }
.detail .ic { color: var(--r); --c: var(--r); }
.detail .dh b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--r); }
.detail .dh small { color: var(--muted); }
.lines { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 14px; }
.lines li.neg { color: #ffb3bf; }
.lines li.mech { color: var(--evo); }
.lines li.mech small { display: block; color: var(--muted); font-weight: 400; }
.cmp { font-size: 12px; color: var(--muted); }
.empty-note { color: var(--muted); font-size: 14px; padding: 12px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

.chestgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.chest { --c: var(--fg); display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--ink-2); border: 2px solid color-mix(in srgb, var(--c) 45%, var(--line)); }
.chest .cbox { height: 56px; border-radius: 10px; display: grid; place-items: center; font-size: 30px; color: var(--c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, transparent), transparent); }
.chest b { font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.odds { display: grid; gap: 3px; font-size: 12px; font-variant-numeric: tabular-nums; }
.odd { display: grid; grid-template-columns: 70px 1fr 34px; align-items: center; gap: 6px; }
.odd .ob { height: 5px; border-radius: 3px; background: #3a2e22; overflow: hidden; }
.odd .ob i { display: block; height: 100%; }
.odd span:last-child { text-align: right; color: var(--muted); }
.showcase { --r: var(--line); display: grid; gap: 8px; padding: 10px; border-radius: 10px; border: 1px dashed var(--r); background: rgba(0, 0, 0, .18); }
.showcase > small { color: var(--muted); font-size: 11px; }
.showcase .dh { display: flex; align-items: center; gap: 10px; }
.showcase .dh .ic { color: var(--r); font-size: 22px; }
.showcase .dh b { display: block; font-size: 15px; color: var(--r); }
.showcase .dh small { color: var(--muted); font-size: 12px; }
.showcase .lines { font-size: 12px; }
.showcase.sold { border-style: solid; opacity: .7; }
.rewards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rcard { --r: var(--line); display: grid; gap: 4px; justify-items: center; padding: 10px; min-width: 110px; border-radius: 12px; background: var(--ink-2); border: 2px solid var(--r); }
.rcard .ii { font-size: 26px; color: var(--r); }
.rcard b { font-size: 13px; }
.rcard small { font-size: 11px; color: var(--r); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.itile .tp { position: absolute; bottom: 2px; left: 5px; font-size: 10px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.eqslot .pw { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.setline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.invfilters { display: grid; gap: 6px; }
.cmp b.up { color: #7aff9c; }
.cmp b.down { color: #ff8a9c; }
.itile .dot { position: absolute; bottom: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.itile .lk { position: absolute; top: 3px; left: 5px; color: var(--fg); line-height: 0; }
.setbar { display: grid; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.center { justify-content: center; }
.optsteps { display: grid; gap: 6px; }
.optstep { display: grid; grid-template-columns: 1fr auto 4.5em auto; align-items: center; gap: 8px; }
.optstep b { text-align: center; font-variant-numeric: tabular-nums; }
.optstep .tog { min-width: 38px; justify-content: center; font-size: 16px; }
#pauseOpts .optstep { width: 100%; }
.ghost.danger { color: var(--threat); border-color: color-mix(in srgb, var(--threat) 55%, var(--line)); }
.setchip, .tog {
  --c: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px;
}
.setchip i { font-style: normal; color: var(--c); }
.setchip[aria-pressed="true"], .tog[aria-pressed="true"] { color: var(--fg); border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--ink-2)); }
.tog { --c: var(--xp); padding: 6px 11px; font-size: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--xp); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lockbtn { display: inline-flex; align-items: center; gap: 6px; }
.lockbtn[aria-pressed="true"] { color: var(--evo); border-color: var(--evo); }
.qsell b { font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.qsell .buybtn { justify-self: start; }
.setmini { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.setmini .itile { width: 40px; font-size: 18px; cursor: default; }
.setmini .emptyt { --r: var(--line); color: var(--muted); border-style: dashed; }
@media (max-width: 360px) { .setmini .itile { width: 36px; } }
#reveal .panel { gap: 14px; }
#reveal .rbig { justify-self: center; width: min(100%, 360px); text-align: left; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
details.combobox summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 6px 0; }
details.combobox .combos { margin-top: 8px; }
@media (max-width: 480px) {
  .tab { font-size: 12px; }
  .attr { grid-template-columns: auto minmax(0, 1fr); }
  .attr .buybtn { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  #reveal .rbig { animation: none; }
  #flash.go { animation-duration: .25s; }
  #banner.show { animation-duration: 2.2s; animation-name: bannerFade; }
  @keyframes bannerFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
  .card { animation: none; transition: none; }
}
.cositem:not([style]) b { color: var(--fg); }

/* Medieval frame: inner bevel on panels and cards, crisp pixel art everywhere. */
.box, .card, .chest, .gempack, .classcard, .playhero, .lookprev, .cositem, .mission { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 230, 180, .06); }

/* Pixel icons: <img class="pxi"> for entities; currency glyphs replaced by their icon as a background. */
.pxi { width: 1.25em; height: 1.25em; vertical-align: -.25em; display: inline-block; }
.coin, .gem, .nrg { display: inline-block; width: 1em; height: 1em; overflow: hidden; vertical-align: -.14em;
  color: transparent !important; text-shadow: none; background: center / contain no-repeat; }
.coin { background-image: var(--ico-coin); }
.gem { background-image: var(--ico-gem); }
.nrg { background-image: var(--ico-nrg); }
.cards.many { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cards.many .card { padding: 10px; }
.cards.many .card .h { display: none; }
@media (max-width: 680px) { .cards.many { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.many .card .d { font-size: 12px; } }

/* Sombraluz pack: next step, help page, locked tabs, card timer, damage by source, version label. */
.nextstep { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px;
  background: color-mix(in srgb, var(--hero) 12%, var(--ink-2)); border: 1px solid color-mix(in srgb, var(--hero) 45%, var(--line)); text-align: left; }
.nextstep > i { font-style: normal; font-size: 20px; color: var(--hero); }
.nextstep > span { flex: 1; line-height: 1.35; }
.nextstep b { color: var(--hero); }
.savedrun { padding: 12px; margin-bottom: 10px; border-radius: 14px; text-align: left;
  background: color-mix(in srgb, var(--hero) 18%, var(--ink-2)); border: 2px solid var(--hero); }
.savedrun .srinfo { display: flex; align-items: center; gap: 10px; }
.savedrun .srarms { display: flex; gap: 4px; flex: none; }
.savedrun .srarms i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); border: 1px solid var(--c); }
.savedrun b { display: block; color: var(--hero); }
.savedrun small { display: block; line-height: 1.35; }
.savedrun .btnrow { margin-top: 10px; }
.savedrun .primary { font-size: 20px; padding: 10px 28px; }
.ghost.wide { width: 100%; margin-top: 10px; }
.helpgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.helpcard { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); text-align: left; }
.helpcard > i { font-style: normal; font-size: 26px; width: 30px; text-align: center; }
.helpcard p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.helpcard p b { color: var(--fg); }
.introtip { margin-bottom: 10px; text-align: left; }
.tab.locked { opacity: .45; cursor: help; }
.tab.locked::after { content: ''; position: absolute; top: 5px; right: 6px; width: 6px; height: 5px; border: 2px solid var(--muted); border-radius: 1px; }
.lutimer { position: relative; width: min(420px, 90%); margin: -2px auto 8px; height: 22px; text-align: center; }
.lutimer i { position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 2px; background: var(--hero); transform-origin: left; }
.lutimer span { display: block; padding-top: 7px; font-size: 12px; color: var(--muted); }
.dmgrows { display: grid; gap: 6px; }
.dmgrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) 40px; gap: 8px; align-items: center; font-size: 13px; text-align: left; }
.dmgrow span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmgrow .ob { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dmgrow .ob i { display: block; height: 100%; background: var(--evo); }
.dmgrow b { text-align: right; font-variant-numeric: tabular-nums; }
.ver { margin: 0; font-size: 11px; color: var(--muted); text-align: center; }
.ver.corner { position: fixed; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 6px); z-index: 3; pointer-events: none; }

.cloudpick { display: grid; gap: 2px; text-align: left; width: 100%; }
.cloudpick small { color: var(--muted); font-size: 12px; font-weight: 400; }

/* Hub header: wallets plus the Como jogar / Opções buttons. */
.headright { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.headbtns { display: flex; gap: 6px; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); color: var(--fg); font-size: 18px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.iconbtn:hover, .iconbtn:focus-visible, .iconbtn[aria-pressed="true"] { border-color: var(--hero); color: var(--hero); outline: none; }
/* Tabs: icon over the label; phones show the short label. */
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.tab .ti { display: grid; place-items: center; height: 18px; }
.tab .ti .pxi { width: 18px; height: 18px; }
.tab .short { display: none; }
@media (max-width: 600px) {
  .tab .long { display: none; }
  .tab .short { display: inline; }
  .tab { font-size: 11px; padding: 8px 2px; }
  .logo { font-size: 21px; white-space: nowrap; }
  .hubhead { flex-wrap: wrap; }
  .chap { padding: 8px 10px; }
  .logo span { margin-left: .2em; }
  .wallet { padding: 5px 9px; font-size: 13px; }
  .iconbtn { width: 34px; height: 34px; font-size: 16px; }
}
/* Jogar page */
.herorow { display: flex; align-items: center; gap: 14px; width: 100%; justify-content: center; text-align: left; }
.heroinfo { display: grid; gap: 6px; justify-items: start; }
.secthead { width: 100%; text-align: left; }
.chap span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Pacts: one summary line, opened to choose. */
details.pacts { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--ink); }
details.pacts[open] { display: grid; gap: 8px; }
.pacthead { cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; list-style-position: inside; }
.pacthead small { color: var(--muted); font-size: 13px; }
.pacthead em { font-style: normal; color: var(--evo); font-weight: 700; }
.pacts .pacthead b, .tog.pact b { font-size: 13px; letter-spacing: 0; }
.tog.pact { --c: #ff5d73; display: grid; gap: 2px; text-align: left; max-width: 100%; }
.tog.pact small { color: var(--muted); font-size: 12px; font-weight: 400; }
/* Cloud save box */
.cloudbox .btnrow { margin: 0; }
.cloudpick { display: grid; gap: 2px; text-align: left; width: 100%; }
.cloudpick small { color: var(--muted); font-size: 12px; font-weight: 400; }
/* Level-up: a line under the title saying what this screen is (Arsenal, swap steps). */
.lusub { margin: -4px 0 0; text-align: center; color: var(--muted); font-size: 14px; max-width: 52ch; justify-self: center; }
/* Readability: the smallest hub texts go up a step. */
.cmp { font-size: 13px; }
.chap small, .lday small, .itile em, .itile .tp { font-size: 11px; }
.tag, .stat span, .stile span, .eqslot .sl, .adlabel, .rcard small { font-size: 12px; }
/* HUD: when the next Arsenal opens, under the level. */
#arsenalNext { display: block; font-family: var(--font-body, inherit); font-size: 11px; color: var(--muted); letter-spacing: 0; }
#arsenalNext:empty { display: none; }
.herorow canvas.avatarcv.mini { width: 110px; height: 132px; }

/* What changed: a framed dialog whose list scrolls between a fixed header and the button. */
#news { z-index: 12; }
.newspanel { width: min(100%, 560px); max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: 18px; background: var(--ink-2);
  border: 2px solid color-mix(in srgb, var(--hero) 60%, var(--line)); box-shadow: 0 20px 60px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 230, 180, .08); }
.newshead { display: grid; gap: 4px; padding: 18px 20px 14px; text-align: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--hero) 30%, transparent) 0%, transparent 72%); }
.newshead small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--evo); }
.newshead h2 { color: var(--hero); text-shadow: 0 2px 0 #5a2a12; }
.newshead p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.newsbody { display: grid; align-content: start; gap: 12px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; }
.newsbody:focus { outline: none; }
.newsver summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 12px; gap: 8px; align-items: center; padding: 4px 2px; cursor: pointer; list-style: none; }
.newsver summary::-webkit-details-marker { display: none; }
.newsver summary::after { content: ''; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
.newsver[open] summary::after { transform: translateY(-2px) rotate(45deg); }
.newsver summary:focus-visible { outline: 3px solid var(--xp); outline-offset: 2px; border-radius: 6px; }
.newsver summary b { font-size: 15px; line-height: 1.2; }
.newsver summary small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.newschip { padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #2a1300; background: var(--hero); }
.newsitems { display: grid; gap: 8px; margin-top: 10px; }
.newsitem { --k: var(--evo); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 12px; text-align: left;
  background: rgba(0, 0, 0, .2); border: 1px solid color-mix(in srgb, var(--k) 35%, var(--line)); animation: cardIn .3s calc(var(--i) * 60ms) backwards; }
.newsitem.better { --k: var(--xp); }
.newsitem.fix { --k: #7aff9c; }
.newsic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-size: 24px; font-style: normal;
  background: color-mix(in srgb, var(--k) 14%, var(--ink)); border: 1px solid color-mix(in srgb, var(--k) 45%, var(--line)); }
.newsitem > div { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.newskind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--k); }
.newsitem b { font-size: 16px; line-height: 1.25; }
.newsitem p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.newsitem p b { font-size: inherit; color: var(--fg); }
.newsitem .newshow { margin-top: 5px; padding: 6px 9px; border-left: 3px solid var(--k); border-radius: 0 8px 8px 0; color: var(--fg); background: rgba(255, 255, 255, .05); }
.newsgo { margin-top: 7px; padding: 7px 12px; min-height: 34px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--k);
  background: transparent; border: 1px solid var(--k); }
.newsgo:hover { color: var(--ink); background: var(--k); }
.newsfoot { display: grid; padding: 14px 14px 18px; border-top: 1px solid var(--line); background: var(--ink-2); box-shadow: 0 -10px 18px rgba(0, 0, 0, .28); }
.newslink { display: flex; justify-content: flex-end; margin-bottom: 8px; }
@media (max-width: 480px) { .newsver summary small { display: none; } .newsver summary { grid-template-columns: auto minmax(0, 1fr) 12px; } }
@media (prefers-reduced-motion: reduce) { .newsitem { animation: none; } .newsver summary::after { transition: none; } }

/* Notice on an old address: the way to the new one, above every hub page. */
.movenotice { border-color: var(--hero); background: color-mix(in srgb, var(--hero) 14%, var(--ink-2)); }
@media (max-width: 480px) { .movenotice { flex-wrap: wrap; } .movenotice > span { flex-basis: calc(100% - 34px); } .movenotice .buybtn { width: 100%; } }
