/* Cramberry · shared styles. Cream story bands, night-dark game bands, crisp pixel art. */

@font-face { font-family: "Outfit"; src: url("../assets/fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../assets/fonts/Outfit-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pixelify"; src: url("../assets/fonts/PixelifySans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --ink: #2b211b;
  --ink-soft: #5b4d43;
  --cream: #f6f0e4;
  --cream-2: #efe6d4;
  --paper: #fffaf0;
  --night: #0f1015;
  --panel: #181b24;
  --panel-edge: #262a36;
  --night-text: #e9e4da;
  --night-muted: #a7a3b8;
  --blue: #1f6fe0;
  --blue-deep: #1b4fa8;
  --blue-mid: #3a8cef;
  --blue-light: #7fb8f7;
  --blue-glint: #bfe0ff;
  --wildberry: #b8326e;
  --blush: #f3a6b8;
  --gold: #fde39a;
  --hp-red: #ec4c58;
  --hp-green: #2ec88e;
  --trophy: #f6ba34;
  --blurple: #5865f2;
  --blurple-deep: #3c45b5;
  --discord-chat: #313338;
  --discord-embed: #2b2d31;
  --grape: #622ca4; --lime: #70b230; --lemon: #f0c428; --tangerine: #ee781e; --kiwi: #805e34; --liar: #b02862;

  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-pixel: "Pixelify", "Outfit", ui-monospace, monospace;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1180px;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --hop: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 76px;
  --hairline: rgba(43,33,27,.14);
  --tint: rgba(43,33,27,.08);
  --track: #e5dccb;
  /* game bands (how it works, the cards) and the battle stage: a cool light version here, night-dark in dark mode */
  --game-bg: #e6edfc;
  --game-panel: #ffffff;
  --game-edge: #c6d4f3;
  --game-chip: #dbe5fb;
  --game-well: #ffffff;
  --game-drop: #aebee6;
  --game-hi: var(--blue);
  --game-gold: var(--wildberry);
  --game-on-gold: #fff;
  --game-strong: var(--ink);
  --game-muted: var(--ink-soft);
  --hp-track: #d5d8e6;
  --stage-bg: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #eeeef6 62%) #eeeef6;
  color-scheme: light;
}
/* dark mode: the story bands go dark, game bands stay night; text and pixel outlines turn light */
[data-theme="dark"] {
  --ink: #efe8dc;
  --ink-soft: #b9b2a8;
  --cream: #14161e;
  --cream-2: #1a1d27;
  --paper: #20242f;
  --night: #0b0c10;
  --panel-edge: #2c3140;
  --hairline: rgba(239,232,220,.12);
  --tint: rgba(239,232,220,.10);
  --track: #2a2e3d;
  --game-bg: var(--night);
  --game-panel: var(--panel);
  --game-edge: var(--panel-edge);
  --game-chip: #262a36;
  --game-well: #1b1e29;
  --game-drop: #000;
  --game-hi: var(--gold);
  --game-gold: var(--gold);
  --game-on-gold: #2b211b;
  --game-strong: #fff;
  --game-muted: var(--night-muted);
  --hp-track: #23263a;
  --stage-bg: radial-gradient(120% 90% at 50% 0%, #1b2140 0%, var(--night) 62%) var(--night);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink); transition: background-color .3s ease, color .3s ease;
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
code, kbd { font-family: var(--f-mono); font-size: .88em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 6px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible, .arena :focus-visible, [data-theme="dark"] :focus-visible { outline-color: var(--gold); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { padding-block: clamp(52px, 6.5vw, 92px); position: relative; }
.band.cream { background: var(--cream); }
.band.cream-2 { background: var(--cream-2); }
.band.night, .night { background: var(--night); color: var(--night-text); }
.night .muted { color: var(--night-muted); }
.band.game-band { background: var(--game-bg); color: var(--ink); }
.muted { color: var(--ink-soft); }

/* pixel art */
.px, canvas.spr { image-rendering: pixelated; image-rendering: crisp-edges; }
canvas.spr { display: block; }

/* kickers, headings */
.kicker {
  font-family: var(--f-pixel); font-weight: 500; font-size: clamp(15.5px, 1.25vw, 18px); letter-spacing: .08em; text-transform: uppercase;
  color: var(--wildberry); display: inline-flex; align-items: center; gap: 10px;
}
.night .kicker, [data-theme="dark"] .game-band .kicker { color: var(--gold); }
.kicker::before { content: ""; width: 12px; height: 12px; background: currentColor; box-shadow: 4px 4px 0 0 var(--blue); }
.night .kicker::before, [data-theme="dark"] .game-band .kicker::before { box-shadow: 4px 4px 0 0 var(--wildberry); }
.h1 { font-size: clamp(31px, 4.3vw, 54px); }
.h2 { font-size: clamp(27px, 3.4vw, 42px); }
.h3 { font-size: clamp(19px, 1.8vw, 23px); }
.lede { font-size: clamp(16.5px, 1.4vw, 19px); max-width: 62ch; }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(26px, 3.6vw, 44px); max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px) scale(.92); transition: opacity .55s var(--ease), transform .6s var(--hop); }
.reveal.in { opacity: 1; transform: none; }
.reveal-h { clip-path: inset(-10% 100% -10% 0); transition: clip-path .8s var(--ease); }
.reveal-h.in { clip-path: inset(-10% 0 -10% 0); }
.pop { transform: scale(.5); opacity: 0; transition: transform .5s var(--hop), opacity .3s; }
.pop.in { transform: none; opacity: 1; }
.no-js .reveal, .no-js .reveal-h, .no-js .pop { opacity: 1; transform: none; clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-h, .pop { transform: none !important; clip-path: none !important; transition: opacity .3s !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --edge: var(--blue-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--bg); color: var(--fg); font-family: var(--f-body); font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 4px 0 var(--edge), 0 12px 24px -12px rgba(15,16,21,.45);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { background: color-mix(in srgb, var(--bg) 88%, #fff); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), 0 6px 12px -8px rgba(15,16,21,.4); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-2 { --bg: var(--paper); --fg: var(--ink); --edge: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-2:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.night .btn-2, .arena .btn-2, [data-theme="dark"] .btn-2 { --bg: var(--panel); --fg: var(--night-text); --edge: #000; border-color: #3a3f50; box-shadow: 0 3px 0 #000; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-gold { --bg: var(--gold); --fg: #2b211b; --edge: #c9a94f; }
.btn-red { --bg: var(--hp-red); --edge: #a8303a; }
.btn-green { --bg: var(--hp-green); --fg: #072a1d; --edge: #1b8a60; }
.qlink { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.qlink:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

/* pixel border: notched 4px outline */
.pxb {
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
              8px 12px 0 0 rgba(43,33,27,.12);
  margin: 4px;
}
.night .pxb, [data-theme="dark"] .pxb { box-shadow: 0 -4px 0 0 var(--panel-edge), 0 4px 0 0 var(--panel-edge), -4px 0 0 0 var(--panel-edge), 4px 0 0 0 var(--panel-edge), 8px 12px 0 0 rgba(0,0,0,.35); }
.notch { clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }

/* chips / copy */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px 6px 14px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 3px 0 var(--ink);
  font-family: var(--f-mono); font-size: 15px; color: var(--ink);
}
.night .chip, [data-theme="dark"] .chip { background: var(--panel); color: var(--night-text); border-color: #3a3f50; box-shadow: 0 3px 0 #000; }
.copy {
  display: inline-grid; place-items: center; width: 34px; height: 34px; min-width: 34px; border-radius: 5px; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue);
}
.night .copy, .arena .copy { background: rgba(255,255,255,.08); color: var(--blue-glint); }
.copy:hover { background: var(--blue); color: #fff; }
.copy svg { width: 16px; height: 16px; }
pre.cmd {
  margin: 0; padding: 14px 52px 14px 16px; background: var(--night); color: #e7e9f2; border-radius: 8px; overflow-x: auto;
  font-family: var(--f-mono); font-size: 14.5px; line-height: 1.6; position: relative;
}
.cmd-wrap { position: relative; }
.cmd-wrap .copy { position: absolute; top: 8px; right: 8px; background: #2a2e3d; color: #fff; box-shadow: -10px 0 10px var(--night); }

/* toast */
.toast-host { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 400; display: grid; gap: 8px; pointer-events: none; }
.toast {
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 8px; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 0 #000, 0 16px 30px -12px rgba(0,0,0,.5); display: flex; gap: 10px; align-items: center;
  animation: toast-in .35s var(--hop) both;
}
.toast.out { animation: toast-out .3s ease both; }
.toast::before { content: ""; width: 10px; height: 10px; background: var(--hp-green); box-shadow: 0 0 0 2px #072a1d; }
@keyframes toast-in { from { transform: translateY(30px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(20px); opacity: 0; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101; background: var(--cream); }
.site-header::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter-r); bottom: 0; height: 1px; background: var(--hairline); }
.hdr { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.site-header .wrap { max-width: 1480px; padding-inline: max(var(--gutter), 3vw) max(var(--gutter-r), 3vw); }  /* lines the logo up with the wide hero */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo canvas { width: 60px; height: 66px; }
.logo-word {
  font-family: var(--f-pixel); font-weight: 500; font-size: 38px; line-height: 1; letter-spacing: .01em; color: var(--ink);
  text-shadow: 1px 1px 0 var(--blue), 2px 2px 0 var(--blue), 3px 3px 0 var(--blue), 4px 4px 0 var(--blue);
}
.intro-pending .site-header .logo { visibility: hidden; }  /* empty until the intro logo lands on it */
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  position: relative; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 11px; border-radius: 6px; color: var(--ink-soft);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 4px; background: var(--wildberry); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a.active::after { transform: scaleX(1); }
.hdr-cta { display: flex; gap: 10px; align-items: center; flex: none; }
.hdr-cta .btn { min-height: 46px; font-size: 15.5px; padding: 0 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 6px; border: 2px solid var(--ink); background: var(--paper);
  box-shadow: 0 3px 0 var(--ink); color: var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .icon-btn { box-shadow: 0 3px 0 #000; border-color: #3a3f50; }
.burger { display: none; }
@media (max-width: 1160px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .hdr { justify-content: space-between; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .logo canvas { width: 40px; height: 44px; }
  .logo-word { font-size: 26px; text-shadow: 1px 1px 0 var(--blue), 2px 2px 0 var(--blue), 3px 3px 0 var(--blue); }
  .hdr-cta .add-discord { display: none; }
  .hdr-cta .icon-btn { width: 44px; height: 44px; }
}
@media (max-width: 480px) { .hdr-cta .gh { display: none; } .hdr-cta { gap: 8px; } }
@media (max-width: 380px) { .logo-word { font-size: 22px; } .logo canvas { width: 34px; height: 38px; } }

/* mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 200; background: var(--cream); display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  transform: translateY(-102%); transition: transform .35s var(--ease); visibility: hidden;
}
.sheet.open { transform: none; visibility: visible; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.sheet nav { display: grid; gap: 4px; margin-top: 24px; }
.sheet nav a { font-size: 26px; font-weight: 700; text-decoration: none; padding: 10px 4px; border-bottom: 2px dashed var(--hairline); }
.sheet .btn { margin-top: auto; }

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 500; background: var(--cream); display: grid; place-items: center; overflow: hidden;
  transition: opacity .35s ease .1s; cursor: pointer;
}
.intro.done { opacity: 0; pointer-events: none; }
.intro-logo { display: flex; align-items: center; gap: 22px; transform-origin: 0 0; will-change: transform; }
.intro-logo canvas { width: 200px; height: 220px; }
.intro-word {
  font-family: var(--f-pixel); font-size: clamp(54px, 9vw, 112px); line-height: 1; color: var(--ink); white-space: pre;
  text-shadow: 3px 3px 0 var(--blue), 6px 6px 0 var(--blue), 9px 9px 0 var(--blue);
  min-width: 6ch;
}
.intro-word .caret { display: inline-block; width: .45em; height: .9em; background: var(--wildberry); vertical-align: -.05em; animation: blink .5s steps(1) infinite; margin-left: 4px; }
@keyframes blink { 50% { opacity: 0; } }
.intro-peek { position: absolute; bottom: -12px; right: 16%; transform: translateY(100%); transition: transform .45s var(--hop); }
.intro-peek.up { transform: translateY(18%); }
.intro-peek canvas { width: 140px; height: 140px; }
.intro-skip { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); font-family: var(--f-pixel); font-size: 14px; color: var(--ink-soft); letter-spacing: .08em; }
.intro-logo canvas.bounce { animation: introPop .28s var(--hop); }
@keyframes introPop { 50% { transform: scale(1.08); } }
.intro-tag {
  position: absolute; top: calc(50% + 136px); left: 50%; transform: translate(-50%, 6px); opacity: 0;
  font-family: var(--f-pixel); font-size: clamp(18px, 2vw, 24px); letter-spacing: .14em; text-transform: uppercase; color: var(--wildberry);
  transition: opacity .2s ease, transform .25s var(--hop);
}
.intro-tag.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) {
  .intro-logo { flex-direction: column; gap: 12px; }
  .intro-logo canvas { width: 120px; height: 132px; }
  .intro-peek canvas { width: 100px; height: 100px; }
  .intro-tag { top: calc(50% + 150px); font-size: 16px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding-block: 60px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--f-pixel); font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-grid a { text-decoration: none; color: var(--night-text); display: inline-flex; min-height: 40px; align-items: center; }
.foot-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
/* the logo is sized in em of the sign-off font so its right edge sits above the period */
.foot-mark { font-size: clamp(22px, 2.6vw, 30px); }
.foot-mark img { display: block; width: 12.6em; max-width: 100%; height: auto; }
.foot-mark .signoff { margin-top: 8px; }
.signoff { font-family: var(--f-pixel); font-size: clamp(22px, 2.6vw, 30px); color: var(--blush); margin-top: 20px; }
.credits { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--panel-edge); color: var(--night-muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.foot-peek { display: flex; align-items: flex-end; gap: 12px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- shared game bits ---------- */
.hpbar { height: 18px; background: #23263a; border-radius: 4px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.hpbar i { position: absolute; inset: 0 auto 0 0; width: var(--v, 100%); background: var(--hp-red); transition: width .6s var(--ease); }
.hpbar.squad i { background: var(--hp-green); }
.hpbar::after { /* pixel ticks */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(15,16,21,.85) calc(10% - 2px) 10%);
}
.hplabel { display: flex; justify-content: space-between; font-family: var(--f-pixel); font-size: 14px; letter-spacing: .06em; color: var(--night-muted); margin-bottom: 6px; }
.hplabel b { font-family: var(--f-body); color: #fff; font-size: 16px; }

/* page head for sub pages */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.demo-label {
  display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-pixel); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: #2b211b; padding: 6px 12px; border-radius: 4px; box-shadow: 0 3px 0 #c9a94f;
}

/* =================== battle effects (home page stage) =================== */
@keyframes raise { 0% { transform: none; } 35% { transform: translateY(-26px) rotate(-6deg); } 60% { transform: translateY(-14px) rotate(3deg); } 100% { transform: translateY(-6px); } }
@keyframes bflash { 0%, 100% { filter: none; } 50% { filter: brightness(3) saturate(0); } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.bubble {
  position: absolute; top: -18px; right: -18px; z-index: 3; font-family: var(--f-pixel); font-size: 15px; color: #2b211b;
  background: #fff; padding: 6px 10px; box-shadow: 0 -3px 0 #2b211b, 0 3px 0 #2b211b, -3px 0 0 #2b211b, 3px 0 0 #2b211b;
  transform: scale(0); transform-origin: bottom left; transition: transform .25s var(--hop); white-space: nowrap;
}
.bubble::after { content: ""; position: absolute; left: 6px; bottom: -9px; width: 9px; height: 6px; background: #fff; box-shadow: -3px 0 0 #2b211b, 0 3px 0 #2b211b; }
.bubble.show { transform: scale(1); }
.dmg-host { position: absolute; inset: 0; pointer-events: none; }
.dmg {
  position: absolute; left: 50%; top: 20%; font-family: var(--f-pixel); font-size: 34px; color: #fff; text-shadow: 3px 3px 0 var(--hp-red), 6px 6px 0 #000;
  animation: dmg 1.1s ease-out forwards; transform: translateX(-50%); white-space: nowrap;
}
.dmg.crit { color: var(--gold); font-size: 40px; }
@keyframes dmg { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1); } }
.small { font-size: 15px; }
@media (max-width: 640px) { .bubble { right: -6px; font-size: 13px; } }
