/* Zoodemonium website: the design system and shared components.
   A night at The Last Resort: deep plum skies, warm parchment, gold and ember accents, the
   game's rarity colours. Type: Fredoka (headings), Nunito (text), Cinzel and EB Garamond (the
   registry's official papers). All fonts are SIL OFL, served from /assets/fonts. No pixel fonts,
   no pixelated art: monsters are the artist's full-size drawings, scaled smoothly. */

@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka.woff') format('woff'); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito.woff') format('woff'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-italic.woff') format('woff'); font-weight: 200 1000; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('/assets/fonts/cinzel.woff') format('woff'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('/assets/fonts/ebgaramond.woff') format('woff'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('/assets/fonts/ebgaramond-italic.woff') format('woff'); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Mrs Saint Delafield'; src: url('/assets/fonts/mrssaintdelafield.woff') format('woff'); font-display: swap; }

:root {
  color-scheme: dark;
  --night-0: #0b0614;
  --night-1: #120a20;
  --night-2: #1a102e;
  --night-3: #23163d;
  --night-4: #33224f;
  --night-5: #4a3570;
  --line: rgba(206, 186, 255, 0.14);
  --line-2: rgba(206, 186, 255, 0.26);
  --ink: #fbf6ff;
  --ink-2: #ddd1f1;
  --ink-3: #a99bc7;
  --gold: #f2c14e;
  --gold-2: #ffdd84;
  --gold-3: #b9861c;
  --ember: #ff8a3d;
  --ember-2: #ffb06b;
  --ember-3: #d9601d;
  --leaf: #8fd16f;
  --danger: #ff6b6b;
  --ok: #7be0a0;
  --parchment: #f5e8cc;
  --parchment-2: #ead6ac;
  --parchment-ink: #35204f;
  --parchment-ink-2: #6a4b91;
  --plum: #6b44a8;
  --plum-2: #8e63d1;
  /* rarity (the game's tier colours, lifted for a dark page) */
  --t-C: #c9c2d6;
  --t-R: #5aa2ff;
  --t-SR: #45d6bd;
  --t-EP: #b585ff;
  --t-LG: #ffd24d;
  --t-EN: #dfeaff;
  --t-EV: #ff86c8;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --sh-1: 0 2px 10px rgba(0, 0, 0, 0.35);
  --sh-2: 0 14px 40px rgba(0, 0, 0, 0.5);
  --sh-glow: 0 0 0 1px var(--line-2), 0 18px 50px rgba(0, 0, 0, 0.55);
  --f-display: 'Fredoka', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-engraved: 'Cinzel', 'EB Garamond', Georgia, serif;
  --f-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --f-sign: 'Mrs Saint Delafield', 'Brush Script MT', cursive;
  --f-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --head-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 17px/1.6 var(--f-text);
  color: var(--ink);
  background: var(--night-1);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(142, 99, 209, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 138, 61, 0.08), transparent 60%),
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.35), transparent 50%),
    radial-gradient(1px 1px at 70% 30%, rgba(255, 255, 255, 0.25), transparent 50%),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.2), transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(242, 193, 78, 0.35); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font: 800 0.78rem/1.2 var(--f-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.6rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.section { padding-block: clamp(36px, 6vw, 80px); }
.section.tight { padding-block: clamp(24px, 4vw, 44px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head .muted { margin: 0; }
.loading { color: var(--ink-3); }
.loading::after { content: ''; display: inline-block; width: 1em; height: 1em; margin-left: 0.5em; vertical-align: -0.15em; border: 2px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- header, tabs, footer */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(14, 8, 26, 0.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.site-head .wrap, .pre-bar .wrap { max-width: 1400px; }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--head-h); }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { width: 150px; height: auto; display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); }
.tabs { display: flex; gap: 0.15rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs.overflow { mask-image: linear-gradient(90deg, #000 92%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; color: var(--ink-2); text-decoration: none; font: 700 0.93rem/1 var(--f-text); padding: 0.65rem 0.75rem; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.tabs a[aria-current='page'] { color: var(--night-0); background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 4px 14px rgba(242, 193, 78, 0.3); }
.head-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.lang-pick { font: 700 0.85rem var(--f-text); color: var(--ink-2); background: var(--night-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.45rem 0.7rem; max-width: 9.5rem; }
@media (max-width: 860px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0.25rem 0.75rem; padding-block: 0.5rem; }
  .brand img { width: 118px; }
  .tabs { order: 3; flex-basis: 100%; }
  .tabs.overflow { mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .head-actions { margin-left: auto; }
}

.pre-bar { background: linear-gradient(90deg, rgba(107, 68, 168, 0.95), rgba(150, 96, 40, 0.92)); border-bottom: 1px solid rgba(255, 221, 132, 0.35); font-size: 0.92rem; }
.pre-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; padding-block: 0.55rem; }
.pre-bar strong { font: 700 0.8rem var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.pre-bar .pre-clock { font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.pre-bar a { color: #fff; font-weight: 700; }
@media (max-width: 560px) { .pre-bar .wrap > span:not(.pre-clock) { display: none; } }

.site-foot { margin-top: clamp(40px, 8vw, 90px); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 6, 20, 0.2), rgba(11, 6, 20, 0.9)); padding-block: 44px 34px; font-size: 0.95rem; color: var(--ink-3); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid h4 { font: 800 0.78rem var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.7rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-logo { width: 170px; margin-bottom: 0.8rem; }
.foot-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem; }

/* ---------------------------------------------------------------- controls */
.btn { --b1: var(--ember-2); --b2: var(--ember); --bt: #1b0d05; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 46px; padding: 0.7rem 1.35rem; border: 0; border-radius: 999px; font: 800 1rem/1.1 var(--f-text); letter-spacing: 0.01em; color: var(--bt); text-decoration: none; cursor: pointer; background: linear-gradient(180deg, var(--b1), var(--b2)); box-shadow: 0 6px 18px rgba(255, 138, 61, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45); transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); color: var(--bt); }
.btn:active { transform: translateY(1px); }
.btn.gold { --b1: var(--gold-2); --b2: var(--gold); box-shadow: 0 6px 18px rgba(242, 193, 78, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn.plum { --b1: var(--plum-2); --b2: var(--plum); --bt: #fff; box-shadow: 0 6px 18px rgba(107, 68, 168, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.btn.small { min-height: 36px; padding: 0.45rem 0.95rem; font-size: 0.9rem; }
.btn[aria-disabled='true'], .btn:disabled { cursor: default; filter: grayscale(0.6) brightness(0.8); transform: none; box-shadow: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
input[type='search'], input[type='text'], input[type='password'], input[type='email'], input[type='number'], input[type='url'], input[type='datetime-local'], select, textarea {
  font: 600 1rem var(--f-text); color: var(--ink); background: var(--night-2); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0.7rem 0.95rem; min-height: 46px;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.2); }
textarea { min-height: 100px; width: 100%; resize: vertical; }
label.field { display: grid; gap: 0.35rem; font-weight: 700; color: var(--ink-2); font-size: 0.92rem; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; font: 800 0.78rem/1.2 var(--f-text); letter-spacing: 0.06em; text-transform: uppercase; background: rgba(255, 255, 255, 0.07); color: var(--ink-2); border: 1px solid var(--line); }
.pill.gold { background: rgba(242, 193, 78, 0.15); color: var(--gold-2); border-color: rgba(242, 193, 78, 0.35); }
/* a Preseason Keeper (server 0.4.1): the testers' badge */
.pill.pk { background: rgba(142, 99, 209, 0.22); color: #dcc8ff; border-color: rgba(181, 133, 255, 0.5); }
.pk-wall { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.pk-wall ul { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.pk-wall li { padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(142, 99, 209, 0.18); color: #e9dcff; font-size: 0.92rem; }
.pill.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(123, 224, 160, 0.25); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(123, 224, 160, 0); } }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { border: 1.5px solid var(--line-2); background: transparent; color: var(--ink-2); font: 700 0.9rem var(--f-text); padding: 0.45rem 0.95rem; border-radius: 999px; cursor: pointer; }
.chip:hover { color: #fff; border-color: var(--ink-3); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--night-1); border-color: var(--ink); }

/* ---------------------------------------------------------------- cards */
.card { position: relative; background: linear-gradient(180deg, rgba(43, 28, 72, 0.92), rgba(28, 18, 48, 0.92)); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.2vw, 24px); box-shadow: var(--sh-1); }
.card.flat { background: rgba(255, 255, 255, 0.035); box-shadow: none; }
.card h3 { margin-bottom: 0.35rem; }
:where(a.card, a.card-link) { display: block; }
.card-link { text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--sh-glow); border-color: var(--line-2); color: inherit; }
.banner { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: baseline; padding: 0.9rem 1.15rem; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); margin-block: 1rem; }
.banner strong { font-family: var(--f-display); font-weight: 600; }
.banner.bad { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.45); }
.banner.good { background: rgba(123, 224, 160, 0.1); border-color: rgba(123, 224, 160, 0.4); }
.banner.gold { background: rgba(242, 193, 78, 0.1); border-color: rgba(242, 193, 78, 0.4); }
.stat { display: grid; gap: 0.2rem; }
.stat b { font: 600 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-3); font-size: 0.9rem; font-weight: 700; }

/* ---------------------------------------------------------------- tier badge */
.tier { display: inline-flex; align-items: center; gap: 0.38rem; font: 800 0.8rem/1 var(--f-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tc, var(--t-C)); }
.tier svg { width: 1.15em; height: 1.15em; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tc, #fff) 55%, transparent)); }
[data-tier='C'] { --tc: var(--t-C); }
[data-tier='R'] { --tc: var(--t-R); }
[data-tier='SR'] { --tc: var(--t-SR); }
[data-tier='EP'] { --tc: var(--t-EP); }
[data-tier='LG'] { --tc: var(--t-LG); }
[data-tier='EN'] { --tc: var(--t-EN); }
[data-tier='EV'] { --tc: var(--ev, var(--t-EV)); }

/* ---------------------------------------------------------------- monster art */
.mon-art { position: relative; display: grid; place-items: end center; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; isolation: isolate; background: var(--night-2) center / cover no-repeat; }
.mon-art .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); filter: saturate(1.05); }
.mon-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 45% at 50% 78%, color-mix(in srgb, var(--tc, #fff) 30%, transparent), transparent 70%), linear-gradient(180deg, rgba(10, 6, 20, 0.05) 30%, rgba(10, 6, 20, 0.55)); }
.mon-art .mon { position: relative; width: 78%; max-height: 82%; object-fit: contain; margin-bottom: 7%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.mon-art .shadow { position: absolute; bottom: 6%; left: 50%; width: 58%; height: 7%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); z-index: -1; }
.mon-art.secret .mon { filter: brightness(0) drop-shadow(0 0 18px rgba(220, 234, 255, 0.55)); }
/* Epic auras, Super Rare sparkle, Legendary gold, Moonlit silver, events in their theme's glow */
.mon-art[data-tier='EP'] .mon { filter: drop-shadow(0 0 10px var(--aura, var(--t-EP))) drop-shadow(0 0 26px color-mix(in srgb, var(--aura, var(--t-EP)) 70%, transparent)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.mon-art[data-tier='LG'] .mon { filter: drop-shadow(0 0 10px rgba(255, 210, 77, 0.55)) drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6)); }
.mon-art[data-tier='EN'] .mon { filter: drop-shadow(0 0 12px rgba(223, 234, 255, 0.7)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.mon-art[data-tier='SR'] .mon { filter: drop-shadow(0 0 8px rgba(69, 214, 189, 0.6)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.mon-art[data-tier='EV'] .mon { filter: drop-shadow(0 0 12px var(--ev, var(--t-EV))) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
/* an Event form's own aura (src/looks.ts): none, a ring or an Epic aura in its colour */
.mon-art[data-tier='EV'][data-ev-aura='none'] .mon { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.mon-art[data-tier='EV'][data-ev-aura]:not([data-ev-aura='none']):not([data-ev-aura='soft']) .mon { filter: drop-shadow(0 0 10px var(--ev-aura, var(--ev, var(--t-EV)))) drop-shadow(0 0 26px color-mix(in srgb, var(--ev-aura, var(--ev, var(--t-EV))) 70%, transparent)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.mon-art[data-tier='EV'][data-ev-aura='none'] .sparks { display: none; }
.sparks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--spark, #fff); box-shadow: 0 0 10px 2px var(--spark, #fff); opacity: 0; animation: rise 3.2s ease-in infinite; }
@keyframes rise { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 20% { opacity: 0.95; } 100% { transform: translateY(-160px) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sparks i { animation: none; opacity: 0.6; } }
[data-aura='storm'] { --aura: #6cb0ee; --spark: #c9e6ff; }
[data-aura='blazing'] { --aura: #ff8a3d; --spark: #ffd27a; }
[data-aura='glacial'] { --aura: #b4dcfb; --spark: #ffffff; }
[data-aura='bloom'] { --aura: #ef86bd; --spark: #ffd1e8; }
[data-aura='shadow'] { --aura: #9f6ee8; --spark: #d9c2ff; }
[data-aura='prismatic'] { --aura: #fff08a; --spark: #b7fff2; }

/* a monster card: art + name + counts */
.mon-card { display: grid; gap: 0.7rem; text-decoration: none; color: inherit; }
.mon-card .meta { display: grid; gap: 0.25rem; padding-inline: 0.2rem; }
.mon-card .name { font: 600 1.12rem/1.2 var(--f-display); color: var(--ink); }
.mon-card .sub { color: var(--ink-3); font-size: 0.9rem; }
.mon-card:hover .mon-art { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc, #fff) 60%, transparent), var(--sh-2); }
.mon-card:hover .mon { transform: translateY(-4px) scale(1.02); }
.mon-card .mon { transition: transform 0.25s ease; }

/* progress meter (caught of cap) */
.meter { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tc, var(--gold)) 65%, #fff), var(--tc, var(--gold))); box-shadow: 0 0 12px color-mix(in srgb, var(--tc, var(--gold)) 60%, transparent); }
.meter.big { height: 14px; }
.meter-line { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.85rem; color: var(--ink-3); font-weight: 700; }

/* countdown */
.countdown { display: flex; gap: clamp(8px, 1.5vw, 14px); }
.countdown > div { display: grid; justify-items: center; min-width: clamp(64px, 9vw, 92px); padding: 0.75rem 0.5rem 0.6rem; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.countdown b { font: 600 clamp(1.8rem, 1.2rem + 2.4vw, 3rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 0.3rem; font: 800 0.7rem var(--f-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* the registry's mini certificate (parchment) */
.cert-mini { display: grid; grid-template-columns: 92px 1fr; gap: 0.9rem; align-items: center; padding: 0.75rem; text-decoration: none; color: var(--parchment-ink); background: linear-gradient(160deg, #fbf2dc, #ecd9b1); border-radius: 14px; border: 2px solid color-mix(in srgb, var(--tc, var(--plum)) 55%, #6b44a8); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.35); transition: transform 0.15s; }
.cert-mini:hover { transform: translateY(-3px) rotate(-0.4deg); color: var(--parchment-ink); }
.cert-mini .mon-art { aspect-ratio: 1; border-radius: 10px; }
.cert-mini .t { display: grid; gap: 0.15rem; min-width: 0; }
.cert-mini .name { font: 700 1.05rem/1.15 var(--f-engraved); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.cert-mini .serial { font: 700 1rem var(--f-engraved); color: var(--parchment-ink-2); }
.cert-mini .meta { font: 0.86rem/1.3 var(--f-serif); color: #5e4a74; }
.cert-mini .tier { color: color-mix(in srgb, var(--tc) 55%, #35204f); }
.cert-mini.revoked { filter: grayscale(0.9); opacity: 0.7; }
.cert-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data th { text-align: left; font: 800 0.74rem var(--f-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.data td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.025); }
table.data .r { text-align: right; }
table.data .mon-cell { display: flex; align-items: center; gap: 0.75rem; }
table.data .mon-cell img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }

/* Dale (drawn as his character) with a speech bubble */
.owner-tip { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0.5rem 1rem; }
.owner-tip .who { width: clamp(110px, 16vw, 170px); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5)); }
.owner-tip .bubble { position: relative; align-self: center; padding: 1.05rem 1.25rem; border-radius: 20px; background: linear-gradient(180deg, #fffaf0, #f2e3c2); color: var(--parchment-ink); box-shadow: var(--sh-2); font-size: 1.02rem; }
.owner-tip .bubble::before { content: ''; position: absolute; left: -12px; bottom: 26px; border: 12px solid transparent; border-right-color: #f6ead0; border-left: 0; }
.owner-tip .bubble h3 { font-family: var(--f-display); color: var(--parchment-ink); margin-bottom: 0.3rem; }
.owner-tip .bubble p { margin: 0; }
.owner-tip .bubble .sig { display: block; margin-top: 0.5rem; font: 800 0.75rem var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--parchment-ink-2); }
@media (max-width: 560px) { .owner-tip { grid-template-columns: 1fr; justify-items: center; text-align: left; } .owner-tip .bubble::before { left: 50%; top: -12px; bottom: auto; transform: translateX(-50%); border: 12px solid transparent; border-bottom-color: #fffaf0; border-top: 0; } }

/* ticker */
.ticker { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ticker li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem; align-items: center; padding: 0.7rem 0.95rem; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ticker time { color: var(--ink-3); font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.ticker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tc, var(--ink-3)); box-shadow: 0 0 10px var(--tc, transparent); }

/* screenshots gallery + lightbox */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; box-shadow: var(--sh-1); aspect-ratio: 16 / 9; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transition: transform 0.25s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 3vw; background: rgba(6, 3, 12, 0.92); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img, .lightbox video { max-width: min(1440px, 100%); max-height: 86vh; border-radius: 12px; box-shadow: var(--sh-2); }
.lightbox .close { position: absolute; top: 14px; right: 14px; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 14px; }
.lightbox .next { right: 14px; }
.lightbox figcaption { margin-top: 0.8rem; color: var(--ink-2); text-align: center; }

/* video player */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000 center / cover no-repeat; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-2); }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-frame .play { position: absolute; inset: 0; margin: auto; width: clamp(70px, 9vw, 104px); height: clamp(70px, 9vw, 104px); border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(180deg, var(--ember-2), var(--ember)); box-shadow: 0 0 0 10px rgba(255, 138, 61, 0.2), 0 12px 30px rgba(0, 0, 0, 0.5); transition: transform 0.15s; }
.video-frame .play:hover { transform: scale(1.07); }
.video-frame .play svg { width: 40%; height: 40%; margin-left: 8%; fill: #1b0d05; }
.video-frame .soon { position: absolute; inset: auto 0 0 0; padding: 1.2rem; text-align: center; font: 600 1.1rem var(--f-display); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7)); }

/* the store buttons */
.stores { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.store { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--r); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.store .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); font: 800 1rem var(--f-display); }
.store b { font: 600 1.1rem var(--f-display); }
.store span { color: var(--ink-3); font-size: 0.88rem; font-weight: 700; }
a.store:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-2px); }
.store.soon { opacity: 0.85; }
.store .ic { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.store[data-store='steam'] .ic { background: linear-gradient(160deg, #2a475e, #1b2838); }
.store[data-store='itch'] .ic { background: linear-gradient(160deg, #ff7676, #fa5c5c); }
.store[data-store='epic'] .ic { background: linear-gradient(160deg, #3a3a3a, #121212); }
.store[data-store='gumroad'] .ic { background: linear-gradient(160deg, #ffb0f0, #ff90e8); color: #111; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding-block: 0.4rem; }
details.faq summary { cursor: pointer; list-style: none; padding: 0.8rem 2rem 0.8rem 0; font: 600 1.1rem var(--f-display); position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; position: absolute; right: 0.3rem; top: 0.55rem; font-size: 1.5rem; color: var(--gold); transition: transform 0.2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--ink-2); max-width: 70ch; }

/* odds table, small facts list */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; margin: 0; }
dl.facts dt { color: var(--ink-3); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.15rem; }
dl.facts dd { margin: 0; }
code, pre { font-family: var(--f-mono); }
pre.mono { white-space: pre-wrap; word-break: break-all; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem; font-size: 0.85rem; color: var(--ink-2); }

/* pager / load more */
.more { display: flex; justify-content: center; margin-top: 1.2rem; }

/* reduce motion: no hovers that move */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .card-link:hover, .cert-mini:hover, a.store:hover, .mon-card:hover .mon { transform: none; }
}

/* a secret monster: a glowing question mark until it is caught */
.mon-art .mystery { position: relative; margin-bottom: 18%; font: 700 clamp(3rem, 9vw, 6rem)/1 var(--f-display); color: rgba(223, 234, 255, 0.92); text-shadow: 0 0 26px rgba(223, 234, 255, 0.9), 0 0 60px rgba(150, 180, 255, 0.6); }
