/* The Freaking Isle website, the 2026-11-13 revamp: night jungle and sunset amber, from the T-rex logo.
   Oswald for headings (condensed, survival-game feel), Inter for text; both self-hosted (the site's policy is self only). */
@font-face { font-family: "Oswald"; src: url("fonts/Oswald.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --bg: #060b0a;
  --bg-2: #0a1311;
  --panel: #0e1816;
  --panel-raised: #14221f;
  --line: #22362f;
  --line-soft: #1a2a25;
  --text: #ecf2ee;
  --muted: #93a79e;
  --accent: #f4b25f;
  --accent-deep: #dc7a30;
  --leaf: #6fd28f;
  --green: #57f287;
  --orange: #faa61a;
  --red: #ed4245;
  --discord: #5865f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --display: "Oswald", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --page-bg-image: none; /* the page background: blank for now (Vengefulmink, 2026-11-17); was url("gateway-1950.webp"). The owner's own image goes here */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 16px/1.6 var(--body);
  background:
    radial-gradient(900px 520px at 85% -180px, rgba(244, 178, 95, 0.16), transparent 70%),
    radial-gradient(1200px 700px at 10% -260px, #15302a, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 48px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #1b1206; font-weight: 700; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- Header and menus ----- */
.site-head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line-soft); background: rgba(6, 11, 10, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-head-inner { display: flex; align-items: center; gap: 18px; max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font: 600 1.25rem/1 var(--display); letter-spacing: 0.6px; text-transform: uppercase; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(244, 178, 95, 0.4), 0 0 22px rgba(244, 178, 95, 0.28); }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font: 600 0.95rem var(--body); cursor: pointer; }
.nav-top:hover, .nav-group:hover > .nav-top, .nav-group.open > .nav-top { color: var(--text); background: var(--panel); text-decoration: none; }
.nav-top.current { color: var(--accent); }
button.nav-top::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0.7; }
.nav-group { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; display: none; min-width: 300px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14, 24, 22, 0.98); box-shadow: var(--shadow); }
.nav-group:hover > .nav-menu, .nav-group:focus-within > .nav-menu, .nav-group.open > .nav-menu { display: grid; gap: 2px; }
.nav-group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* keeps the hover across the gap */
.nav-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: var(--radius-sm); color: var(--text); }
.nav-menu a:hover { background: var(--panel-raised); text-decoration: none; }
.nav-menu a.current { background: var(--panel-raised); box-shadow: inset 3px 0 0 var(--accent); }
.nav-menu .ico { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-2); font-size: 1.15rem; }
.nav-menu b { display: block; font-weight: 650; }
.nav-menu small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.soon-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(244, 178, 95, 0.15); color: var(--accent); font: 700 0.66rem/1.6 var(--body); font-style: normal; letter-spacing: 0.6px; text-transform: uppercase; vertical-align: 1px; }
.nav-account { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-account .me { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font-weight: 650; }
.nav-account .me:hover, .nav-account .me.current { border-color: var(--accent); text-decoration: none; }
.amber-chip { padding: 6px 11px; border-radius: 999px; background: rgba(244, 178, 95, 0.12); color: var(--accent); font-weight: 700; font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amber-chip.dna-chip { background: rgba(170, 179, 255, 0.12); color: #aab3ff; }
.amber-chip.dna-chip:hover { background: rgba(170, 179, 255, 0.2); }
.amber-chip:hover { text-decoration: none; background: rgba(244, 178, 95, 0.2); }
.nav-account .button { padding: 8px 14px; font-size: 0.9rem; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); cursor: pointer; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px; background: var(--text); content: ""; transition: transform 0.2s; }
.menu-toggle .bars::before { transform: translateY(-6px); }
.menu-toggle .bars::after { transform: translateY(4px); }
.menu-toggle[aria-expanded=true] .bars { background: transparent; }
.menu-toggle[aria-expanded=true] .bars::before { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded=true] .bars::after { transform: translateY(-2px) rotate(-45deg); }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-head-inner { flex-wrap: wrap; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; max-height: calc(100vh - 70px); overflow-y: auto; padding: 6px 0 12px; }
  .site-nav.open { display: flex; }
  .nav-top { width: 100%; justify-content: space-between; padding: 12px; font-size: 1rem; }
  .nav-menu { position: static; display: none; min-width: 0; margin: 2px 0 6px; box-shadow: none; }
  .nav-group:hover > .nav-menu, .nav-group:focus-within > .nav-menu { display: none; }
  .nav-group.open > .nav-menu { display: grid; }
  .nav-group::after { display: none; }
  .nav-account { margin: 8px 0 0; flex-wrap: wrap; }
}

/* ----- Building blocks ----- */
.card {
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.card.spaced, .grid { margin-top: 22px; }
.section { margin-top: 44px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font: 700 clamp(1.7rem, 4vw, 2.4rem)/1.1 var(--display); letter-spacing: 0.4px; text-transform: uppercase; }
h2 { margin-bottom: 14px; color: var(--muted); font: 600 0.92rem/1.2 var(--display); letter-spacing: 1.4px; text-transform: uppercase; }
h3 { font-size: 1.05rem; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.lead { max-width: 60ch; color: #c9d6cf; font-size: 1.1rem; }
.eyebrow { margin: 0 0 12px; color: var(--leaf); font: 600 0.85rem/1 var(--display); letter-spacing: 2.4px; text-transform: uppercase; }
.accent-text { color: var(--accent); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.section-head p { margin: 0; font-size: 0.85rem; }
.section-title { margin: 0 0 16px; color: var(--text); font: 700 1.6rem/1.1 var(--display); letter-spacing: 0.6px; }
.section-head .section-title { margin: 0; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); color: #fff; font-weight: 700; line-height: 1.3; transition: filter 0.15s, transform 0.15s, border-color 0.15s; }
.button:hover { text-decoration: none; filter: brightness(1.1); }
.button:active { transform: translateY(1px); }
.button.big { padding: 13px 24px; font-size: 1.02rem; }
.button.discord { background: var(--discord); }

/* Status: the home page's live panel, refreshed in place (site.js) */
.status-panel { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(20, 34, 31, 0.92), rgba(14, 24, 22, 0.92)); box-shadow: var(--shadow); }
.status-panel.online { border-top: 3px solid var(--green); }
.status-panel.restarting { border-top: 3px solid var(--orange); }
.status-panel.offline { border-top: 3px solid var(--red); }
.status-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.status-name { margin: 14px 0 0; color: var(--text); font: 600 1.05rem/1.3 var(--body); letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.status-count { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 8px; }
.status-count strong { font: 700 3rem/1 var(--display); }
.status-count span { color: var(--muted); }
.status-panel progress { width: 100%; }
.pill { padding: 4px 12px; border-radius: 999px; background: #26332f; color: var(--muted); font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: "●"; margin-right: 6px; }
.pill.online { background: rgba(87, 242, 135, 0.13); color: var(--green); }
.pill.restarting { background: rgba(250, 166, 26, 0.14); color: var(--orange); }
.pill.offline { background: rgba(237, 66, 69, 0.14); color: var(--red); }
.numbers { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 18px 0 6px; }
.numbers dt { color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; }
.numbers dd { margin: 2px 0 0; font-size: 1.05rem; }
.numbers strong { font-size: 1.6rem; }
progress { width: 180px; height: 10px; vertical-align: middle; appearance: none; -webkit-appearance: none; border: 0; border-radius: 6px; background: #1d2c27; overflow: hidden; }
progress::-webkit-progress-bar { background: #1d2c27; border-radius: 6px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 6px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 6px; }
.online { margin-top: 16px; }
.names { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.names li { padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; background: #17251f; font-size: 0.88rem; }
.actions { margin: 20px 0 0; }

/* Home: hero, feature cards, how to join */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr); align-items: center; gap: 36px; margin: -28px -20px 0; padding: 56px 20px 52px; overflow: hidden; isolation: isolate; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.02; }
.hero .lead { margin: 18px 0 4px; }
.hero .row-actions { margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 24, 22, 0.7); color: #cfdad4; font-size: 0.85rem; font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.feature { position: relative; display: block; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-raised), var(--panel)); color: var(--text); transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.feature:hover { transform: translateY(-3px); border-color: rgba(244, 178, 95, 0.55); box-shadow: var(--shadow); text-decoration: none; }
.feature .ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: var(--bg-2); font-size: 1.5rem; }
.feature h3 { font: 600 1.25rem/1.2 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.feature .badge { position: absolute; top: 18px; right: 18px; }
.feature.soon { border-style: dashed; }
.feature.soon .ico { filter: grayscale(0.4); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 700 0.68rem/1.7 var(--body); letter-spacing: 0.7px; text-transform: uppercase; }
.badge.public { background: rgba(111, 210, 143, 0.14); color: var(--leaf); }
.badge.members { background: rgba(88, 101, 242, 0.18); color: #aab3ff; }
.badge.soon { background: rgba(244, 178, 95, 0.15); color: var(--accent); }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps-row li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps-row h3 { margin-top: 12px; font: 600 1.2rem/1.2 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.steps-row p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #1b1206; font: 700 1.1rem/1 var(--display); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .feature, .button { transition: none; } .feature:hover { transform: none; } }

/* The page background, on every page, fixed in the middle of the screen as the page scrolls (the owner's, 2026-11-13).
   A placeholder: the owner will replace the image (2026-11-13); swap --page-bg-image in :root at the top (and only that). */
.page-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--page-bg-image) center / min(1500px, 140vw) auto no-repeat; opacity: 0.13; filter: saturate(0.55);
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
main, .site-foot { position: relative; z-index: 1; }
.site-foot { background: rgba(10, 19, 17, 0.92); }

/* Site chat's place (coming soon), home page only, no tab (the owner's, 2026-11-13), laid out by screen size:
   wide screens (1660 px+) dock it in the empty margin left of the content; narrower desktops open it from a
   bottom-left Chat button as a slide-out panel; phones open it full screen. site.js opens and closes it. */
.chat-dock { position: fixed; z-index: 35; display: none; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(14, 24, 22, 0.97); box-shadow: var(--shadow); overflow: hidden; }
.chat-dock.open { display: flex; }
.chat-fab { position: fixed; left: 20px; bottom: 20px; z-index: 34; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid rgba(244, 178, 95, 0.45);
  border-radius: 999px; background: rgba(14, 24, 22, 0.95); color: var(--text); font: 700 0.95rem var(--body); box-shadow: var(--shadow); cursor: pointer; }
.chat-fab:hover { border-color: var(--accent); }
.chat-fab[aria-expanded=true], .chat-fab[hidden], .chat-dock[hidden] { display: none !important; }
.chat-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); color: var(--muted); font-size: 0.9rem; cursor: pointer; }
.chat-close:hover { color: var(--text); }
.chat-dock-tools { display: inline-flex; align-items: center; gap: 10px; }
/* narrower desktops and tablets: a panel in the bottom-left corner */
@media (min-width: 640px) and (max-width: 1659px) {
  .chat-dock { left: 20px; bottom: 20px; width: 360px; height: min(560px, calc(100vh - 110px)); }
}
/* phones: full screen */
@media (max-width: 639px) {
  .chat-dock { inset: 0; border: 0; border-radius: 0; }
  .chat-fab { left: 16px; bottom: 16px; }
}
/* wide screens: always docked in the left margin, no button */
@media (min-width: 1660px) {
  .chat-dock { display: flex; top: 86px; bottom: 24px; left: 20px; z-index: 5; width: min(340px, calc((100vw - var(--wrap)) / 2 - 36px)); background: rgba(14, 24, 22, 0.88); }
  .chat-fab, .chat-close { display: none; }
}
.chat-dock-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 600 1rem/1 var(--display); letter-spacing: 1px; text-transform: uppercase; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px 12px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.chat-log .chat-empty { margin: auto; text-align: center; }
.chat-line { padding: 6px 8px; border-radius: 10px; }
.chat-line:hover { background: rgba(255, 255, 255, 0.03); }
.chat-line.src-site { box-shadow: inset 2px 0 0 rgba(88, 101, 242, 0.6); }
.chat-line.mine { background: rgba(244, 178, 95, 0.07); }
.chat-meta { display: flex; align-items: baseline; gap: 6px; font-size: 0.8rem; }
.chat-meta b { overflow: hidden; color: var(--accent); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.chat-line.src-site .chat-meta b { color: #aab3ff; }
.chat-admin { flex: none; padding: 0 6px; border-radius: 999px; background: rgba(237, 66, 69, 0.16); color: #ff8a8c; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.chat-meta time { margin-left: auto; color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.chat-src { flex: none; font-size: 0.8rem; }
.chat-line p { margin: 1px 0 0; overflow-wrap: anywhere; font-size: 0.92rem; line-height: 1.4; }
.chat-remove { padding: 0 4px; border: 0; background: none; color: var(--red); font: 600 0.72rem var(--body); cursor: pointer; }
.chat-form { display: flex; gap: 8px; margin: 0; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.chat-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text); font: inherit; font-size: 0.92rem; }
.chat-input:focus { border-color: var(--accent); outline: none; }
.chat-form .button { padding: 8px 14px; }
.chat-note { margin: 0; padding: 0 12px 4px; color: var(--orange); }
.chat-signin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.chat-signin .button { padding: 7px 12px; font-size: 0.85rem; }
.chat-foot { margin: 0; padding: 4px 12px 10px; font-size: 0.72rem; }
.chat-live { color: var(--green); font-size: 0.7rem; }
.chat-offline .chat-live { color: var(--red); }
.chat-unread { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; text-align: center; }
.chat-unread[hidden] { display: none; }

/* Coming soon pages */
.soon-hero { max-width: 760px; margin: 20px auto 0; padding: 40px 36px; text-align: center; }
.soon-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 14px; border-radius: 24px; background: var(--bg-2); font-size: 2.6rem; }
.soon-hero .lead { margin: 12px auto 18px; }
.soon-hero .soon-tag { margin: 0; font-size: 0.78rem; }
.soon-points { display: grid; gap: 8px; max-width: 520px; margin: 0 auto 18px; padding: 0; list-style: none; text-align: left; }
.soon-points li { position: relative; padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.soon-points li::before { content: "◆"; position: absolute; left: 15px; color: var(--accent); }
.soon-hero .row-actions { justify-content: center; }

/* Footer */
.site-foot { border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; max-width: var(--wrap); margin: 0 auto; padding: 36px 20px 18px; }
.foot-grid h3 { margin-bottom: 10px; color: var(--muted); font: 600 0.85rem/1 var(--display); letter-spacing: 1.4px; text-transform: uppercase; }
.foot-grid > div > a:not(.brand):not(.button) { display: block; padding: 3px 0; color: #c6d2cc; font-size: 0.92rem; }
.foot-brand p { max-width: 34ch; }
.foot-brand .button { margin-top: 8px; }
.foot-legal { max-width: var(--wrap); margin: 0 auto; padding: 0 20px 26px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Tables and feeds */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; }
tr:last-child td { border-bottom: 0; }
.rank { width: 2.5em; color: var(--muted); font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.more { margin: 12px 0 0; }

.feed { margin: 0; padding: 0; list-style: none; }
.feed li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed time { margin-left: 4px; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

/* Profile */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #1a2824; }
.stat .label { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; }
.stat strong { font-size: 1.25rem; }
button.link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
button.link:hover { text-decoration: underline; }

/* Amber */
.stat.amber strong { color: var(--accent); }
button.button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.button.amber { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #1b1206; }
code { padding: 2px 6px; border-radius: 6px; background: #1c2b26; font: 0.95em ui-monospace, "Cascadia Mono", Consolas, monospace; }
.link-code code { display: inline-block; padding: 10px 16px; font-size: 1.35rem; letter-spacing: 1px; user-select: all; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
.feed .gain, .result .gain { color: var(--green); }
.feed .loss, .result .loss { color: var(--red); }

/* Gambling */
.pill.amber { background: rgba(240, 180, 106, 0.14); color: var(--accent); }
.pill.amber::before { content: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 0; border-bottom: 1px solid var(--line); }
.tabs a { margin-bottom: -1px; padding: 9px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--muted); font-weight: 650; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--accent); background: var(--panel-raised); border-color: var(--line); }
.game { margin-top: 18px; }
.play { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 16px 0 6px; }
.bet { display: grid; gap: 4px; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; }
.bet input { width: 9em; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0d1714; color: var(--text); font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.button.steam { background: #171a21; border: 1px solid #2a475e; }
button.button:disabled { opacity: 0.55; cursor: not-allowed; }
button.button[data-busy] { cursor: progress; }
.price { margin: 4px 0 10px; font-size: 1.3rem; font-weight: 750; }
.price .muted { font-size: 1rem; font-weight: 500; }
.price-tag { white-space: nowrap; }
.item .feed li { display: flex; justify-content: space-between; gap: 12px; }
.notice { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(250, 166, 26, 0.12); color: var(--orange); }
.result { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #1a2824; text-align: center; animation: pop 0.35s ease-out; }
.result.win { border-color: rgba(87, 242, 135, 0.45); }
.result.loss { border-color: rgba(237, 66, 69, 0.45); }
.result .big { font-size: 2.6rem; line-height: 1.2; }
.result .reels span { display: inline-block; min-width: 1.4em; margin: 0 4px; padding: 4px 6px; border-radius: 10px; background: #0d1714; }
.result .dice { display: flex; justify-content: center; align-items: center; gap: 16px; letter-spacing: 4px; }
.result .vs { color: var(--muted); font-size: 1rem; letter-spacing: 0; }
.result p { margin: 10px 0 0; }
.odds { max-width: 380px; margin: 10px 0 14px; }
/* The Gambling page's games (games.js draws them; owner's request, 2026-11-05). Each plays out onto the result the
   server already chose, then shows the outcome ([data-reveal]). Without the script, the outcome simply shows. */
.stage { display: flex; justify-content: center; align-items: center; margin: 18px 0 6px; }
.play.centred { justify-content: center; }
.game > .result { margin-top: 10px; }
.wheel { width: min(330px, 100%); }
.wheel-svg { display: block; width: 100%; height: auto; overflow: visible; }
.wheel-turn { transform-box: view-box; transform-origin: 150px 150px; }
.wheel .seg { stroke: var(--bg); stroke-width: 2; }
.wheel .seg-0 { fill: #1c3832; }
.wheel .seg-1 { fill: #2b5447; }
.wheel .seg.won { fill: var(--accent-deep); }
.wheel .seg-label { fill: var(--text); font: 750 17px system-ui, sans-serif; }
.wheel .rim { fill: none; stroke: var(--accent); stroke-width: 6; }
.wheel .hub { fill: var(--accent); stroke: #1b1206; stroke-width: 3; }
.wheel .pointer { fill: var(--accent); stroke: #1b1206; stroke-width: 2; }
.coin-stage { height: 250px; align-items: flex-end; perspective: 900px; }
.coin { position: relative; width: 150px; height: 150px; margin-bottom: 20px; transform-style: preserve-3d; }
.coin.landed-tails { transform: rotateX(180deg); } /* the coin flips end over end, about its side-to-side axis */
.coin .face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 50%; backface-visibility: hidden; color: #3b4045; font-weight: 800; letter-spacing: 3px;
  background: radial-gradient(circle at 34% 28%, #fbfcfd 0, #d9dde1 28%, #a9afb5 62%, #7b8288 100%);
  box-shadow: inset 0 0 0 5px #c1c6cb, inset 0 0 0 9px #8a9096, inset 0 0 0 11px #c9ced2, 0 10px 22px rgba(0, 0, 0, 0.5); }
.coin .face::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(0, 0, 0, 0.22) 0 1.5deg, transparent 1.5deg 3deg);
  -webkit-mask: radial-gradient(circle, transparent 69px, #000 70px); mask: radial-gradient(circle, transparent 69px, #000 70px); }
.coin .tails { transform: rotateX(180deg); }
.coin .emblem { font-size: 3.3rem; line-height: 1; filter: grayscale(1) brightness(0.75) contrast(1.2); }
.coin .word { font-size: 0.78rem; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.dice-table { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px; min-height: 130px; }
.dice-side { text-align: center; }
.dice-side .who { color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; }
.dice-table .vs { color: var(--muted); font-weight: 700; }
.dice-pair { display: flex; gap: 16px; margin-top: 10px; perspective: 700px; }
.die { width: 64px; height: 64px; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.cube .side { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 9px; border-radius: 12px;
  background: linear-gradient(145deg, #fffdf8, #e9dfc9); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08), inset 0 -4px 8px rgba(0, 0, 0, 0.08); backface-visibility: hidden; }
.cube .pip { width: 11px; height: 11px; margin: auto; border-radius: 50%; background: #1b1206; }
/* side-<name>: the header's own ".top" rule had padded the 2's face (games.js) */
.cube .side-front { transform: translateZ(32px); }
.cube .side-back { transform: rotateY(180deg) translateZ(32px); }
.cube .side-right { transform: rotateY(90deg) translateZ(32px); }
.cube .side-left { transform: rotateY(-90deg) translateZ(32px); }
.cube .side-top { transform: rotateX(90deg) translateZ(32px); }
.cube .side-bottom { transform: rotateX(-90deg) translateZ(32px); }
.slot-machine { position: relative; display: inline-flex; gap: 10px; padding: 16px 18px; border: 2px solid var(--accent-deep); border-radius: 18px;
  background: linear-gradient(180deg, #213a33, #0f1a17); box-shadow: inset 0 0 0 4px #0b1311, 0 10px 24px rgba(0, 0, 0, 0.45); }
.slot-machine::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 64px; transform: translateY(-50%);
  border-top: 2px solid rgba(240, 180, 106, 0.55); border-bottom: 2px solid rgba(240, 180, 106, 0.55); pointer-events: none; }
.slot-machine.won::after { border-color: var(--green); box-shadow: 0 0 18px rgba(87, 242, 135, 0.25); }
.reel { position: relative; width: 76px; height: 192px; overflow: hidden; border-radius: 10px;
  background: linear-gradient(180deg, #08100d, #18271f 28%, #18271f 72%, #08100d); }
.reel .strip { display: flex; flex-direction: column; }
.reel .sym { display: flex; align-items: center; justify-content: center; height: 64px; font-size: 2.4rem; line-height: 1; }
/* Scratch cards: a foil canvas over each square (games.js), rubbed off; the outcome shows once all are scratched */
.scratch .cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 360px; margin: 4px auto 0; }
.scratch .cell { position: relative; min-height: 62px; padding: 16px 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #0d1714; color: var(--text); font: inherit; font-weight: 700; }
.scratch .cell.hit { border-color: var(--accent); color: var(--accent); }
.scratch.covered .cell:not(.revealed) { border-color: var(--line); color: var(--text); touch-action: none; }
.scratch .foil { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 9px; cursor: crosshair; }
.scratch .hint { display: none; margin-top: 12px; }
.scratch.covered:not(.done) .hint { display: block; }
.scratch.covered:not(.done) .outcome { visibility: hidden; }
.free-grow { margin: 14px 0 0; padding: 10px 14px; border: 1px dashed rgba(240, 180, 106, 0.5); border-radius: 10px; }
/* Skins: colour strips (_skin.html), the editor's presets and the gallery */
.swatch-strip { display: block; max-width: 100%; height: auto; margin: 8px 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
li > div > .swatch-strip { display: inline-block; vertical-align: middle; margin: 0 0 0 8px; }
.preset-grid, .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.preset, .gallery-post { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #1a2824; }
.preset .button { margin-top: 2px; }
.gallery-post .row-actions { margin-top: 4px; }
.pager { justify-content: center; margin-top: 16px; }
.small { font-size: 0.85rem; }
/* Live map */
.map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 10px; }
.map-tools .button { padding: 6px 14px; }
.map-view { position: relative; overflow: hidden; width: min(100%, max(300px, calc((100vh - 120px) * 1950 / 1954))); margin: 0 auto; aspect-ratio: 1950 / 1954; border: 1px solid var(--line); border-radius: 12px; background: #0b2350; touch-action: none; cursor: grab; user-select: none; }
.map-view.dragging { cursor: grabbing; }
.map-world { position: absolute; inset: 0; transform-origin: 0 0; pointer-events: none; }
.map-world img { display: block; width: 100%; height: 100%; -webkit-touch-callout: none; }
.map-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 3px solid #fff; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.35), 0 2px 6px rgba(0, 0, 0, 0.6); pointer-events: none; }
.map-dot.heading::after { content: ""; position: absolute; left: 50%; top: 50%; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid #fff; transform: translate(-50%, -50%) rotate(calc(var(--heading, 0deg) + 90deg)) translateY(-17px); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
/* The map's legend (fine-tuning item 6) and waypoints (item 7): zones in an SVG whose viewBox follows the view, so
   their lines stay thin at any zoom; places and labels in a layer that moves with the map but keeps its size */
.cat-patrol { --cat: #ff9f0a; } .cat-sanctuary { --cat: #64d2ff; } .cat-migration { --cat: #34c759; } .cat-water { --cat: #0a84ff; }
.cat-region { --cat: #e8eeeb; } .cat-bridge { --cat: #c69c6d; } .cat-salt { --cat: #f2f2f7; } .cat-mud { --cat: #a0703c; }
.cat-cave { --cat: #8e8cf0; } .cat-landmark { --cat: #ffd60a; } .cat-outpost { --cat: #ff6961; } .cat-air { --cat: #a2e4f5; }
.cat-gastrolith { --cat: #aeaeb2; } .cat-safe { --cat: #ffffff; } .cat-noai { --cat: #ff3b30; } /* own colours, 2026-11-18: green/pink clashed with migration zones and outposts */
.map-zones { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.map-zones .zone { fill: var(--cat); fill-opacity: 0.16; stroke: var(--cat); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.map-zones .zone.cat-patrol { fill-opacity: 0.07; stroke-dasharray: 5 4; }
.map-zones .zone.cat-sanctuary { fill-opacity: 0.24; stroke-width: 2px; }
/* live zones (the game's own live state, 2026-11-12): live ones bright and solid, idle ones faded */
.map-zones .zone.live { fill-opacity: 0.3; stroke-width: 2.5px; stroke-dasharray: none; }
.map-zones .zone.idle { fill-opacity: 0.03; stroke-opacity: 0.35; }
.map-zones .zone.cat-safe { fill-opacity: 0.2; stroke-width: 2.5px; }
.map-zones .zone.cat-noai { fill-opacity: 0.12; stroke-width: 2px; stroke-dasharray: 6 4; }
.map-zones .guide { stroke: #fff; stroke-width: 2.5px; stroke-dasharray: 7 6; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8)); }
.map-zones .off { display: none; }
.map-marks { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.map-mark, .map-label { position: absolute; left: calc(var(--a) * var(--zw)); top: calc(var(--d) * var(--zh)); transform: translate(-50%, -50%); }
.map-mark { display: grid; place-items: center; width: 9px; height: 9px; border: 1.5px solid #fff; border-radius: 50%; background: var(--cat, #fff); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); font-size: 13px; line-height: 1; }
.map-mark span { display: none; }
.map-marks.close .map-mark, .map-mark.waypoint { width: 26px; height: 26px; border: 2px solid var(--cat, #fff); background: rgba(9, 16, 14, 0.88); }
.map-marks.close .map-mark span, .map-mark.waypoint span { display: block; }
.map-mark.waypoint { --cat: #ff3b30; width: 28px; height: 28px; font-size: 14px; }
.map-mark.waypoint.guided { box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.4), 0 2px 6px rgba(0, 0, 0, 0.6); }
.map-mark[hidden], .map-label[hidden] { display: none; }
.map-label { color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.7); }
.map-pop { position: absolute; z-index: 3; display: grid; gap: 3px; width: max-content; max-width: min(270px, calc(100% - 12px)); padding: 10px 12px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 21, 18, 0.96); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55); color: var(--text); cursor: auto; user-select: text; }
.map-pop[hidden] { display: none; }
.map-pop .pop-title { padding-right: 22px; font-weight: 700; }
.map-pop .pop-close { position: absolute; top: 4px; right: 6px; padding: 2px 6px; border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.map-pop .row-actions { margin-top: 6px; gap: 6px 14px; }
.map-pop form { display: inline; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; margin: 4px 0 12px; padding: 0; list-style: none; }
.legend label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.legend input, .check input { accent-color: var(--accent); }
.legend-icon { display: inline-grid; flex: none; place-items: center; width: 26px; height: 26px; border: 2px solid var(--cat); border-radius: 50%; background: #0d1714; font-size: 13px; line-height: 1; }
.legend-actions { display: flex; gap: 16px; }
.waypoint-form, .place-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.waypoint-form .text, .place-form .text { flex: 1 1 170px; min-width: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; }
.waypoints { margin: 10px 0 0; padding: 0; list-style: none; }
.waypoints li, .placed li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.waypoints li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.waypoints li:last-child { border-bottom: 0; }
.waypoints .row-actions, .placed form { margin: 0; gap: 6px 16px; }
.placed { margin-top: 14px; }

/* Voice */
.button.ghost { background: #26332f; border: 1px solid var(--line); }
.names li.speaking { border-color: var(--green); color: var(--green); }
.names .level { display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: var(--accent); }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 6px 0; }
.ranges { margin: 8px 0; border-collapse: collapse; }
.ranges th, .ranges td { padding: 3px 14px 3px 0; border-bottom: 0; vertical-align: top; }
.ranges th { color: var(--accent); white-space: nowrap; }
/* Voice bar (V2): Mute, Deafen and Leave on every page while in voice */
.voice-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: calc(100% - 40px); max-width: 1000px; margin: 0 auto 16px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-raised); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.voice-bar[hidden] { display: none; }
.voice-bar-text { flex: 1 1 12em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-bar-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.voice-bar .button { padding: 6px 12px; }
/* The Voice page's Report form */
.report { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #1a2824; }
.report summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.report-form { display: grid; gap: 12px; max-width: 520px; margin-top: 12px; }
.report-form label { display: grid; gap: 6px; font-weight: 600; }
.report-form select, .report-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0d1714; color: var(--text); font: inherit; font-weight: 400; }
.report-form textarea { resize: vertical; }
.report-form .row-actions { margin-top: 0; }
/* My dino and the Shop's grows (Track M2) */
.vitals { border-collapse: collapse; }
.vitals th, .vitals td { padding: 5px 12px 5px 0; border-bottom: 0; }
.vitals th { color: var(--muted); font-weight: 600; }
.vitals progress { width: 220px; }
.checklist { margin: 0 0 10px; padding: 0; list-style: none; }
.checklist li { padding: 3px 0; color: var(--muted); }
.checklist li.done { color: var(--text); }
.grow-size { margin: 18px 0 8px; font-size: 1rem; }
.grow-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.grow-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #1a2824; }
.grow-list li.mine { border-color: var(--accent); }
.grow-list .play { display: flex; gap: 6px; margin: 0; }
.grow-form { max-width: 560px; }
.grow-list .button { padding: 5px 10px; font-size: 0.9rem; }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result { animation: none; } }


@media (max-width: 560px) {
  .card { padding: 18px; }
  .numbers { gap: 12px 28px; }
  progress { width: 130px; }
  .vitals progress { width: 120px; }
  /* the game tabs don't fit one row on a phone: a 2×2 grid of buttons instead of folder tabs */
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: 0; }
  .tabs a { margin: 0; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
}
.stored li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.stored .row-actions { margin-top: 0; gap: 8px; }
.stored .play { margin: 0; }

/* the skin editor (ROADMAP A2) */
.skin-editor .field { display: block; margin-top: 16px; color: var(--muted); font-weight: 700; }
.skin-editor select, .text { display: block; margin-top: 6px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); color: var(--text); font: inherit; }
.skin-editor input[type=range] { display: block; width: 100%; max-width: 420px; margin-top: 8px; accent-color: var(--accent); }
.text { margin-top: 0; min-width: 220px; }
.text.code { min-width: 0; width: 100%; max-width: 560px; font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 16px; }
.swatch { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-raised); cursor: pointer; }
.swatch input[type=color] { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type=color]::-webkit-color-swatch { border: 2px solid var(--line); border-radius: 50%; }
.swatch input[type=color]::-moz-color-swatch { border: 2px solid var(--line); border-radius: 50%; }
.swatch .hex { width: 8ch; margin-top: 4px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); font: 0.85rem ui-monospace, Consolas, monospace; }
.swatch .hex:not([readonly]) { color: var(--text); cursor: text; }
.swatch .hex[aria-invalid=true] { border-color: #d9534f; }
.phenotype { margin: 16px 0 0; padding: 0; border: 0; }
.phenotype legend { padding: 0; }
.phenotype label { display: inline-flex; align-items: center; gap: 6px; margin: 8px 18px 0 0; color: var(--text); font-weight: 600; }
.dot { display: inline-block; width: 12px; height: 12px; margin-left: 4px; border: 1px solid var(--line); border-radius: 50%; vertical-align: -1px; }

/* Page headers with a wallet (the Shop first, the 2026-11-13 revamp) */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; padding: 8px 0 4px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head p { margin: 6px 0 0; }
.wallet { display: flex; flex-wrap: wrap; gap: 10px; }
.wallet-item { min-width: 120px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(14, 24, 22, 0.85); }
.wallet-item .label { display: block; color: var(--muted); font: 600 0.72rem/1.4 var(--display); letter-spacing: 1.2px; text-transform: uppercase; }
.wallet-item strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The Shop: the dino you're playing, the species grid, the extras */
.your-dino-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.your-dino-row > div { flex: 1 1 260px; }
.your-dino-row h2 { margin-bottom: 4px; }
.your-dino-row p { margin: 0; }
.big-ico { display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--bg-2); font-size: 2rem; }
.your-species { font: 700 1.8rem/1.1 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.your-species .badge { margin-left: 8px; vertical-align: 6px; }
.growth-bar { display: flex; align-items: center; gap: 12px; max-width: 460px; margin-top: 10px; }
.growth-bar progress { flex: 1; width: auto; height: 12px; }
.growth-bar strong { font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font: 600 0.88rem var(--body); cursor: pointer; }
.filter span { margin-left: 4px; opacity: 0.6; font-size: 0.8rem; }
.filter:hover { color: var(--text); }
.filter.active { border-color: var(--accent); background: rgba(244, 178, 95, 0.12); color: var(--accent); }
.species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.species-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-raised), var(--panel)); }
.species-card[hidden] { display: none; }
.species-card.mine { order: -1; border-color: var(--accent); box-shadow: 0 0 0 1px rgba(244, 178, 95, 0.35), var(--shadow); }
.species-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.species-top h3 { font: 600 1.2rem/1.15 var(--display); letter-spacing: 0.5px; text-transform: uppercase; overflow-wrap: anywhere; }
.species-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.species-price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.species-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.species-buy .button { padding: 8px 10px; }
.badge.diet-carnivore { background: rgba(237, 66, 69, 0.15); color: #ff8a8c; }
.badge.diet-herbivore { background: rgba(111, 210, 143, 0.14); color: var(--leaf); }
.badge.diet-omnivore { background: rgba(170, 179, 255, 0.16); color: #aab3ff; }
.badge.size { background: rgba(255, 255, 255, 0.07); color: #cfdad4; }
.badge.playing { background: var(--accent); color: #1b1206; }
.how { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14, 24, 22, 0.85); }
.how summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.how ul { margin: 10px 0 0; padding-left: 20px; color: #c9d6cf; }
.how li { margin: 6px 0; }
.shop-extra { display: flex; flex-direction: column; }
.shop-extra .play, .shop-extra .row-actions { margin-top: auto; padding-top: 6px; }

/* The Shop's mutation page: what each mutation does (the owner, 2026-11-14; the game's own descriptions) */
.mut-desc { min-height: 1.3em; margin: 4px 0 8px; }
.mut-desc strong { color: var(--text); }
.mut-list { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.mut-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); color: #c9d6cf; }
.mut-list li strong { color: var(--accent); }

/* the home page's Patreon card (2026-11-14) */
.patreon-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.patreon-head > div { flex: 1 1 320px; }
.button.patreon { background: #ff424d; color: #fff; border-color: #ff424d; white-space: nowrap; }
.button.patreon:hover { background: #e63540; border-color: #e63540; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.tier { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 14px 16px; background: rgba(0, 0, 0, 0.18); }
.tier.mine { border-color: #ff424d; box-shadow: 0 0 0 1px #ff424d inset; }
.tier-name { font-weight: 700; font-size: 1.1em; margin-bottom: 8px; }
.tier ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.tier .tag { font-size: 0.75em; font-weight: 600; background: #ff424d; color: #fff; border-radius: 999px; padding: 1px 8px; vertical-align: middle; }

/* the tiers folded away behind "See the tiers" (the owner, 2026-11-14: no pay-to-win feel) */
.tier-fold { margin-top: 14px; }
.tier-fold > summary { display: inline-block; cursor: pointer; list-style: none; }
.tier-fold > summary::-webkit-details-marker { display: none; }
.tier-fold[open] > summary { opacity: 0.75; }

/* Skin Studio (2026-11-15): the 3D editor framed under the site's header, wider than the page's text column */
.studio-head .status-head { flex-wrap: wrap; gap: 6px 14px; }
.studio-credit { font-size: 0.9rem; }
.studio-frame { display: block; position: relative; left: 50%; transform: translateX(-50%); width: min(1640px, calc(100vw - 32px)); height: calc(100vh - 120px); min-height: 640px; margin-top: 12px; border: 1px solid #28443b; border-radius: 14px; background: #0b1211; }

/* the 3D map (2026-11-15) */
.map3d-view { position: relative; height: 70vh; min-height: 420px; margin-top: 12px; border: 1px solid #28443b; border-radius: 14px; overflow: hidden; background: #0b1a24; touch-action: none; }
.map3d-view canvas { display: block; }
.map3d-lift { display: inline-flex; align-items: center; gap: 6px; }

/* News and Events (2026-11-16, the owner's): the home page's right margin, mirroring the chat in the left: news on top,
   events under it, docked from 1660 px; narrower screens show them as a section of the page instead */
.board-dock { display: none; }
.board-panel { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(14, 24, 22, 0.88); overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line);
  font: 600 1rem/1 var(--display); letter-spacing: 1px; text-transform: uppercase; }
.board-head a { font: 600 0.78rem var(--body); letter-spacing: 0; text-transform: none; }
.board-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.board-list { display: flex; flex-direction: column; margin: 0; padding: 6px; list-style: none; }
.board-item details { border-radius: 10px; }
.board-item summary { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px; border-radius: 10px; cursor: pointer; list-style: none; }
.board-item summary::-webkit-details-marker { display: none; }
.board-item summary:hover { background: rgba(255, 255, 255, 0.03); }
.board-item details[open] summary .board-excerpt { display: none; }
.board-item + .board-item { border-top: 1px solid var(--line-soft); }
.board-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 0.75rem; }
.board-title { color: var(--text); font-size: 0.98rem; line-height: 1.3; overflow-wrap: anywhere; }
.board-excerpt { line-height: 1.4; }
.board-body { padding: 2px 12px 12px; color: #c9d6cf; font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; }
.board-body h4 { margin: 12px 0 4px; color: var(--text); font: 600 0.92rem/1.3 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.board-body ul { margin: 4px 0; padding-left: 18px; }
.board-body li { margin: 3px 0; }
.board-body p { margin: 6px 0; }
.board-by { margin-top: 10px !important; font-size: 0.75rem; }
.board-empty { margin: 0; padding: 18px 16px; }
.ev-badge { background: rgba(255, 255, 255, 0.07); color: #cfdad4; }
.ev-on .ev-badge { background: rgba(87, 242, 135, 0.16); color: var(--green); }
.ev-soon .ev-badge { background: rgba(244, 178, 95, 0.15); color: var(--accent); }
.ev-past { opacity: 0.7; }
.board-page .board-list { padding: 0; }
.board-page .board-body { font-size: 0.98rem; }
@media (min-width: 1660px) {
  .board-dock { position: fixed; z-index: 5; top: 86px; bottom: 24px; right: 20px; display: flex; flex-direction: column; gap: 14px;
    width: min(340px, calc((100vw - var(--wrap)) / 2 - 36px)); }
  .board-dock .board-panel { flex: 1 1 0; }
  .board-inline { display: none; }
}
.board-inline .board-scroll { max-height: 440px; }

/* Live updates' notice (live.js, ported from live 2026-11-16): bottom right, over everything */
.live-toast { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; max-width: min(420px, calc(100vw - 32px)); padding: 12px 14px; border-radius: var(--radius);
  background: var(--panel-raised); color: var(--text); border: 1px solid var(--accent-deep);
  box-shadow: var(--shadow); }
.live-toast span { flex: 1 1 200px; }

/* Home's opening screen (2026-11-17): the hero fills the first screen, with the island slowly drifting behind it under a
   sunset glow, so the first look pulls you in. Uses --page-bg-image, so the owner's own image lands here too. */
.hero { min-height: min(860px, calc(100vh - 70px)); align-content: center; }
.hero::before { content: ""; position: absolute; inset: -6%; z-index: -2; background: var(--page-bg-image) center / cover no-repeat; opacity: 0.42; filter: saturate(0.7) contrast(1.05);
  -webkit-mask: radial-gradient(ellipse 70% 72% at 55% 42%, #000 40%, transparent 100%); mask: radial-gradient(ellipse 70% 72% at 55% 42%, #000 40%, transparent 100%);
  animation: hero-drift 48s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at 72% 40%, rgba(244, 178, 95, 0.16), transparent); } /* a soft sunset glow that fades out before the edges */
@keyframes hero-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2.5%, -1.5%); } }
.hero-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--muted); font: 600 0.85rem/1 var(--display); letter-spacing: 2px; text-transform: uppercase; }
.hero-more:hover { color: var(--accent); text-decoration: none; }
.hero-more span { animation: hero-nudge 2.4s ease-in-out infinite; }
@keyframes hero-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero-more span { animation: none; } }
@media (max-width: 860px) { .hero { min-height: 0; } }

/* Home's "Why players stay": reasons to join, not links (the menus already lead everywhere) */
.reason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.reason { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-raised), var(--panel)); }
.reason .ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; background: var(--bg-2); font-size: 1.35rem; }
.reason h3 { font: 600 1.2rem/1.2 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.reason p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Home's live island pulse (2026-11-17): four real numbers under the opening screen */
.pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(14, 24, 22, 0.82); overflow: hidden; }
.pulse-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; }
.pulse-item + .pulse-item { border-left: 1px solid var(--line-soft); }
.pulse-item strong { color: var(--accent); font: 700 2rem/1 var(--display); letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
.pulse-item > span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 600 0.78rem/1.2 var(--display); letter-spacing: 1.4px; text-transform: uppercase; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.6); animation: pulse-ping 2s ease-out infinite; }
.pulse-dot.off { background: var(--muted); box-shadow: none; animation: none; }
@keyframes pulse-ping { 0% { box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(87, 242, 135, 0); } }
@media (max-width: 720px) {
  .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-item:nth-child(3) { border-left: 0; }
  .pulse-item:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .pulse-item { padding: 14px 16px; }
  .pulse-item strong { font-size: 1.6rem; }
}

/* Home's scroll reveals (2026-11-17): sections rise into view once (site.js adds .js-reveal only when it can run them) */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } .pulse-dot { animation: none; } }

/* The live server card (2026-11-17): a ring that fills with players, coloured by the server's state */
.status-panel { position: relative; overflow: hidden; }
.status-panel.online { box-shadow: var(--shadow), 0 0 0 1px rgba(87, 242, 135, 0.12), 0 0 60px rgba(87, 242, 135, 0.08); }
.status-body { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.status-ring { position: relative; flex: none; width: 128px; height: 128px; }
.status-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-fill { fill: none; stroke: var(--muted); stroke-width: 9; transition: stroke-dashoffset 0.8s ease; }
.status.online .ring-fill { stroke: var(--green); }
.status.restarting .ring-fill { stroke: var(--orange); }
.status.offline .ring-fill { stroke: var(--red); }
.ring-count { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-count strong { font: 700 2.5rem/1 var(--display); }
.ring-count span { color: var(--muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.status-info { min-width: 0; }
.status-info .status-name { margin: 0; font-size: 1.1rem; }
.status-line { margin: 6px 0 0; color: #c9d6cf; font-size: 0.95rem; line-height: 1.45; }
.status-find { margin: 10px 0 0; }
.status-panel .names { margin-top: 16px; }
@media (max-width: 420px) { .status-ring { width: 104px; height: 104px; } .ring-count strong { font-size: 2.1rem; } .status-body { gap: 16px; } }

/* Home's "Why players stay" (2026-11-17): three groups of reasons */
.why-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.why-group { padding: 22px 22px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-raised), var(--panel)); }
.why-head { margin: 0 0 12px; color: var(--leaf); font: 600 0.85rem/1 var(--display); letter-spacing: 2px; text-transform: uppercase; }
.why-list, .patreon-perks { margin: 0; padding: 0; list-style: none; }
.why-list li, .patreon-perks li { display: flex; gap: 14px; padding: 12px 0; }
.why-list li + li { border-top: 1px solid var(--line-soft); }
.why-list .ico, .patreon-perks .ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); font-size: 1.2rem; }
.why-list b, .patreon-perks b { display: block; font: 600 1.05rem/1.2 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.why-list p, .patreon-perks p { margin: 3px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* Home's "How to join" (2026-11-17): Steam / Discord / whitelist lights, then every step; done steps turn green */
.join-lights { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.join-light { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 24, 22, 0.9); }
.join-light b { display: block; font: 600 0.95rem/1.1 var(--display); letter-spacing: 1px; text-transform: uppercase; }
.join-light small { color: var(--muted); font-size: 0.78rem; }
.light-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); background: transparent; }
.join-light.on { border-color: rgba(87, 242, 135, 0.4); }
.join-light.on .light-dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 12px rgba(87, 242, 135, 0.7); }
.join-light.on small { color: var(--green); }
.join-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.join-steps li { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.join-steps h3 { font: 600 1.1rem/1.2 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.join-steps p { margin: 5px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.join-steps .step-n { flex: none; width: 34px; height: 34px; font-size: 1rem; }
.join-steps li.done { border-color: rgba(87, 242, 135, 0.35); }
.join-steps li.done .step-n { background: var(--green); color: #062612; font-size: 0; }
.join-steps li.done .step-n::before { content: "✓"; font-size: 1.05rem; }

/* Home's Patreon, last on the page (2026-11-17): why to become a patron, and the link */
.patreon-box { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 28px; align-items: start; padding: 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-raised), var(--panel)); }
.patreon-copy .section-title { margin-bottom: 6px; }
.patreon-copy .button { margin-top: 14px; }
.patreon-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 20px; }
.patreon-section .tier-fold { margin-top: 14px; }
@media (max-width: 860px) { .patreon-box { grid-template-columns: 1fr; } }

/* Step 4 holds the Discord link (2026-11-17): the code, a new code and unlinking */
.step-form { margin: 10px 0 0; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.join-steps .link-code { margin: 8px 0 0; }
.join-steps .link-code code { display: inline-block; padding: 6px 10px; border: 1px dashed var(--accent-deep); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--accent); font-size: 1rem; }

/* Home's opening scene (2026-11-17, Vengefulmink; reworked the same day for speed). The opening screen runs edge to
   edge as a dusk jungle. Everything that stands still (sun, volcanic ridge, mist, a far sauropod herd, the canopy,
   palms and ferns) is ONE picture, hero-scene.webp (2400x798, transparent sky, drawn from the site's own colours),
   so the browser paints it once. On top, only small cheap movers: pterosaurs crossing the sky and embers rising.
   The scene pauses while you scroll and while it's off screen (site.js). --jh is the jungle's height.
   .hero::before (the owner's --page-bg-image) is off while there's no image: remove that line when one goes in. */
body { overflow-x: clip; } /* the scene is 100vw wide; the scrollbar must not add a sideways scroll */
.hero { --jh: clamp(190px, 21vw, 420px); width: 100vw; min-height: min(900px, calc(100vh - 62px)); margin: -28px calc(50% - 50vw) 0;
  padding: clamp(48px, 7vw, 96px) max(20px, calc(50vw - var(--wrap) / 2 + 20px)) calc(var(--jh) * 0.62); }
.hero::before, .hero::after { display: none; }
.hero-copy, .hero .status-panel { position: relative; z-index: 1; }
.hero h1 { text-shadow: 0 4px 32px rgba(0, 0, 0, 0.55); }
.hero h1 .accent-text { background: linear-gradient(90deg, var(--accent) 30%, var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero .lead { color: #d6e0da; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }

.hero-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.hero-scene > * { position: absolute; left: 0; right: 0; }
.scene-sky { top: 0; bottom: calc(var(--jh) * 0.3);
  background-image: radial-gradient(1.4px 1.4px at 12% 18%, var(--text), transparent), radial-gradient(1px 1px at 31% 42%, var(--muted), transparent),
    radial-gradient(1.2px 1.2px at 47% 12%, var(--text), transparent), radial-gradient(1px 1px at 63% 33%, var(--muted), transparent),
    radial-gradient(1.6px 1.6px at 78% 8%, var(--accent), transparent), radial-gradient(1px 1px at 89% 47%, var(--text), transparent),
    linear-gradient(180deg, transparent 20%, rgba(220, 122, 48, 0.1) 60%, rgba(244, 178, 95, 0.3));
  background-size: 340px 260px, 340px 260px, 340px 260px, 340px 260px, 340px 260px, 340px 260px, 100% 100%; }
.scene-art { bottom: 0; height: calc(var(--jh) * 1.9); background: url("hero-scene.webp") center bottom / cover no-repeat; }
.hero-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--bg); } /* the scene meets the page */

/* pterosaurs crossing the sky, wings beating: each a small layer of its own */
.scene-flock { top: 8%; height: 34%; }
.ptero { position: absolute; left: -80px; top: 30%; width: 54px; height: 15px; animation: scene-fly 46s -16s linear infinite; will-change: transform; }
.ptero svg { display: block; width: 100%; height: 100%; transform-origin: 50% 60%; animation: scene-flap 1.1s ease-in-out infinite alternate; }
.ptero path { fill: var(--bg-2); }
.ptero.p2 { top: 46%; width: 38px; height: 11px; animation-delay: -19s; } .ptero.p2 svg { animation-delay: -0.5s; }
.ptero.p3 { top: 10%; width: 30px; height: 9px; animation-delay: -27s; animation-duration: 64s; } .ptero.p3 svg { animation-delay: -0.2s; }

/* embers drifting up out of the jungle */
.scene-embers { top: 0; bottom: 0; }
.scene-embers i { position: absolute; bottom: 4%; width: 3px; height: 3px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 35%, rgba(244, 178, 95, 0) 70%);
  opacity: 0; animation: scene-rise 13s linear infinite; will-change: transform, opacity; }
.scene-embers i:nth-child(1) { left: 6%; animation-delay: -1s; }
.scene-embers i:nth-child(2) { left: 18%; animation-delay: -7s; animation-duration: 16s; }
.scene-embers i:nth-child(3) { left: 29%; animation-delay: -3s; animation-name: scene-rise-b; }
.scene-embers i:nth-child(4) { left: 41%; animation-delay: -10s; width: 2px; height: 2px; }
.scene-embers i:nth-child(5) { left: 55%; animation-delay: -5s; animation-duration: 18s; animation-name: scene-rise-b; }
.scene-embers i:nth-child(6) { left: 67%; animation-delay: -12s; }
.scene-embers i:nth-child(7) { left: 80%; animation-delay: -2s; animation-duration: 15s; width: 2px; height: 2px; }
.scene-embers i:nth-child(8) { left: 93%; animation-delay: -8s; animation-name: scene-rise-b; }
@keyframes scene-fly { from { transform: translate(0, 0); } 50% { transform: translate(55vw, -14px); } to { transform: translate(calc(100vw + 120px), 6px); } }
@keyframes scene-flap { from { transform: scaleY(1); } to { transform: scaleY(-0.45); } }
@keyframes scene-rise { 0% { opacity: 0; transform: translate(0, 0) scale(2.2); } 10% { opacity: 0.9; } 70% { opacity: 0.5; } 100% { opacity: 0; transform: translate(40px, -62vh) scale(2.2); } }
@keyframes scene-rise-b { 0% { opacity: 0; transform: translate(0, 0) scale(2.2); } 12% { opacity: 0.8; } 75% { opacity: 0.4; } 100% { opacity: 0; transform: translate(-36px, -54vh) scale(2.2); } }
/* paused while scrolling (.is-scrolling) and off screen (.scene-off), both from site.js */
.scene-off .hero-scene *, .is-scrolling .hero-scene *, .scene-off .vitals *, .is-scrolling .vitals * { animation-play-state: paused !important; }

/* the live server card in the scene */
.hero .status-panel { border: 1px solid rgba(244, 178, 95, 0.24); background: linear-gradient(160deg, rgba(20, 34, 31, 0.82), rgba(6, 11, 10, 0.88));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(244, 178, 95, 0.08), inset 0 1px 0 rgba(236, 242, 238, 0.06); }
.hero .status-panel.online { border-top: 1px solid rgba(87, 242, 135, 0.45); }
.hero .status-panel.restarting { border-top: 1px solid rgba(250, 166, 26, 0.5); }
.hero .status-panel.offline { border-top: 1px solid rgba(237, 66, 69, 0.5); }
.status.unknown .pill { color: var(--accent); background: rgba(244, 178, 95, 0.12); }
.status.unknown .pill::before { animation: pill-blink 1.2s ease-in-out infinite alternate; }
@keyframes pill-blink { from { opacity: 1; } to { opacity: 0.3; } }

@media (max-width: 860px) {
  .hero { --jh: clamp(150px, 42vw, 260px); min-height: 0; padding-top: 36px; padding-bottom: calc(var(--jh) * 0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene *, .status .pill::before { animation: none !important; }
  .scene-flock, .scene-embers { display: none; }
}

/* The server's heartbeat and the island's tracks (2026-11-17, Vengefulmink): the card's vitals like your dino's heart in
   the game's Tab menu. The heart beats and a sweep wipes across the monitor line like a hospital monitor (moved by
   transform, so it's cheap); --beat is faster the busier the island (.pace-1 to .pace-4 from the player count);
   ragged while restarting, flat and still when down. */
.status-panel { --beat: 1.3s; --vital: var(--muted); }
.status.online { --vital: var(--green); }
.status.restarting { --vital: var(--orange); --beat: 0.7s; }
.status.offline { --vital: var(--red); }
.status.unknown { --vital: var(--accent); --beat: 2.2s; }
.status.online.pace-1 { --beat: 1.35s; } .status.online.pace-2 { --beat: 1.05s; } .status.online.pace-3 { --beat: 0.82s; } .status.online.pace-4 { --beat: 0.62s; }
.vitals { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 18px 0 14px; padding: 12px 14px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: rgba(6, 11, 10, 0.6); }
.vital-heart { width: 34px; height: 31px; fill: var(--vital); transform-origin: 50% 55%; animation: heart-beat var(--beat) ease-out infinite; will-change: transform; }
.vital-read { display: grid; line-height: 1; }
.vital-read strong { color: var(--vital); font: 700 2.4rem/1 var(--display); }
.vital-read span { margin-top: 4px; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.ecg-wrap { position: relative; overflow: hidden; min-width: 0; }
.ecg { display: block; width: 100%; height: 48px; }
.ecg path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg-line { stroke: var(--vital); stroke-width: 1.5; opacity: 0.28; }
.ecg-glow { stroke: var(--vital); stroke-width: 2; opacity: 0.9; }
.ecg-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 14, 13, 0) 0%, rgba(8, 14, 13, 0.92) 30%, rgba(8, 14, 13, 0.92) 100%);
  transform: translateX(-100%); animation: ecg-sweep calc(var(--beat) * 2) linear infinite; will-change: transform; }
.status.offline .ecg-line { opacity: 0.7; stroke-dasharray: 2 3; }
.status.offline .vital-heart { animation: none; opacity: 0.5; }
.status.offline .ecg-scan { display: none; }
.hero .status-panel .status-name { margin-top: 0; }
@keyframes ecg-sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes heart-beat { 0% { transform: scale(1); } 14% { transform: scale(1.22); } 28% { transform: scale(1); } 42% { transform: scale(1.12); } 70%, 100% { transform: scale(1); } }

/* the island's tracks: a footprint per player slot, lit for each player on (hover one for the name) */
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(17px, 1fr)); gap: 4px 3px; margin: 14px 0 6px; }
.track-def { position: absolute; }
.track { display: block; aspect-ratio: 1; }
.track svg { display: block; width: 100%; height: 100%; fill: var(--line); transform: rotate(-14deg); transition: transform 0.15s, fill 0.15s; }
.track:nth-child(odd) svg { transform: rotate(14deg) translateY(2px); }
.track.lit svg { fill: var(--vital); }
.track.lit[data-name] { cursor: help; }  /* names only in Admin view: nothing to read in Public view (2026-11-21 late) */
.track.lit[data-name]:hover svg, .track.lit.hot svg { fill: var(--text); transform: scale(1.5); }
.tracks-read { min-height: 1.5em; margin: 0; }
.tracks-read b { color: var(--text); }
.status-panel .status-find { margin-top: 10px; }
@media (max-width: 480px) { .vitals { grid-template-columns: auto minmax(0, 1fr); } .ecg-wrap { grid-column: 1 / -1; } .ecg { height: 40px; } }
@media (prefers-reduced-motion: reduce) { .vital-heart, .ecg-scan { animation: none !important; } .ecg-scan { display: none; } }

/* the pulse's live dot: the ping is now a ring that scales (cheap) instead of an animated shadow */
.pulse-dot { position: relative; box-shadow: none; animation: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: dot-ping 2s ease-out infinite; }
.pulse-dot.off::after { display: none; }
@keyframes dot-ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot::after { animation: none; display: none; } }

/* Snappy scrolling (2026-11-17, Vengefulmink: "keep the site snappy"). Site-wide:
   - the page's gradient background no longer uses background-attachment: fixed (which repaints the whole screen on
     every scroll); it's a fixed layer of its own instead, which the browser just keeps in place.
   - the header loses its live blur (a blur re-renders under it on every scroll) for a near-solid background.
   - the empty background-image layer is skipped while --page-bg-image is none (remove this line when the owner's
     image goes in). */
body { background: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 85% -180px, rgba(244, 178, 95, 0.16), transparent 70%), radial-gradient(1200px 700px at 10% -260px, #15302a, transparent 70%), var(--bg); }
.site-head { background: rgba(6, 11, 10, 0.95); backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-bg { display: none; }

/* No fade-ins anywhere (Vengefulmink, 2026-11-17): Home's sections show straight away instead of rising into view, and
   the server card no longer fades in (it replayed the fade each time it refreshed, so it seemed to vanish). */
.js-reveal .reveal { opacity: 1; transform: none; transition: none; }

/* The tabs and moving between pages (the revamp, 2026-11-17, Vengefulmink): Home · Play · Skins · Shop · Games ·
   Community, and your name as an account menu (Profile, Discord link, Sign out). Under the header, the section bar
   shows the current tab's pages side by side, so a sibling page is one click away without opening a menu. Phones:
   the menu opens as one sheet with every tab's pages as big tiles, nothing folded. All from one list in base.html. */
html.with-bar { scroll-padding-top: 132px; } /* site.js sets .with-bar; page-wide :has() made every chat update restyle the whole page */
.nav-ico { display: none; }
.account-group { position: relative; }
.account-group > .me { display: inline-flex; align-items: center; gap: 8px; background: none; font: 650 0.95rem var(--body); cursor: pointer; }
.account-group > .me::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0.7; }
.account-menu { left: auto; right: 0; min-width: 250px; }
.account-menu form { margin: 0; }
.nav-signout { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 11px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.nav-signout:hover { background: var(--panel-raised); }
.nav-signout .ico { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-2); font-size: 1.15rem; }
.nav-signout b { font-weight: 650; }

.section-bar { border-top: 1px solid var(--line-soft); }
.section-bar-inner { display: flex; align-items: center; gap: 2px; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.section-bar-inner::-webkit-scrollbar { display: none; }
.section-name { flex: none; margin-right: 10px; color: var(--leaf); font: 600 0.78rem/1 var(--display); letter-spacing: 2px; text-transform: uppercase; }
.section-bar a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 11px 13px 10px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.section-bar a:hover { color: var(--text); text-decoration: none; }
.section-bar a.current { color: var(--text); border-bottom-color: var(--accent); }
.section-bar .soon-tag { font-size: 0.62rem; }

.foot-grid { grid-template-columns: 1.6fr repeat(5, 1fr); }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (max-width: 980px) {
  .site-nav.open { gap: 14px; max-height: calc(100vh - 64px); padding: 10px 0 18px; }
  .site-nav > .nav-top { justify-content: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--text); }
  .site-nav > .nav-top.current { border-color: var(--accent); }
  .nav-ico { display: inline; }
  .site-nav .nav-group > .nav-top { pointer-events: none; padding: 0 2px 6px; color: var(--leaf); font: 600 0.8rem/1 var(--display); letter-spacing: 2px; text-transform: uppercase; background: none; }
  .site-nav .nav-group > .nav-top::after { display: none; }
  .site-nav .nav-group > .nav-menu, .site-nav .nav-group:hover > .nav-menu, .site-nav .nav-group:focus-within > .nav-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 0; border: 0; background: none; }
  .site-nav .nav-menu a { gap: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); background: var(--panel); }
  .site-nav .nav-menu .ico, .nav-signout .ico { width: 30px; height: 30px; font-size: 1rem; }
  .site-nav .nav-menu b { font-size: 0.92rem; }
  .site-nav .nav-menu a.current { border-color: var(--accent); box-shadow: none; }
  .site-nav .nav-menu small { display: none; }
  .nav-account { order: -1; margin: 0; gap: 8px; }
  .account-group { flex-basis: 100%; }
  .account-group > .me { display: none; }
  .account-menu { position: static; display: grid !important; grid-template-columns: 1fr 1fr; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; gap: 6px; }
  .account-menu small { display: none; }
  .account-menu a, .nav-signout { border: 1px solid var(--line-soft); background: var(--panel); }
  .section-bar-inner { padding: 0 12px; }
  .section-name { display: none; }
}

/* Home's side panels back open (Vengefulmink, 2026-11-17): News, Events and the deaths and kills ("Food chain") in the
   right margin from 1660 px, the chat in the left (the original blocks further up); hidden off the home page in a call */
.board-dock[hidden] { display: none !important; }
.food-panel .feed { padding: 4px 14px 10px; }
.food-panel .feed li { font-size: 0.9rem; line-height: 1.4; }
/* Wider side columns (Vengefulmink, 2026-11-17): the chat and News/Events/Food chain fill the margin beside the page,
   12 px from the screen edge and 12 px clear of the content, up to 560 px on very wide screens */
@media (min-width: 1660px) {
  .chat-dock, .board-dock { top: 78px; bottom: 16px; width: min(560px, calc((100vw - var(--wrap)) / 2 - 16px)); }
  .chat-dock { left: 12px; }
  .board-dock { right: 12px; }
}
/* My dino's stats table keeps its table look (2026-11-17): Home's heartbeat card also uses .vitals */
table.vitals { display: table; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }

/* My dino as one screen (2026-11-17, Vengefulmink): stats up top, then Care · Prime + Pack · Storage side by side.
   Bars and rings take their size from --pct (site.js sets it from data-pct; the CSP allows no inline styles). */
.preview-note { margin: 0 0 14px; }
.dino-top .chip, .dino-grid .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-2); color: #cfdad4; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.prime-chip { border-color: rgba(244, 178, 95, 0.45) !important; color: var(--accent) !important; }
.warn-chip { border-color: rgba(237, 66, 69, 0.5) !important; color: var(--red) !important; }
.dino-top { padding: 20px 22px; }
.dino-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; }
.dino-name h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.dino-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.dino-note { max-width: 360px; margin: 0; text-align: right; }
.dino-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 34px; margin-top: 16px; }
.bars { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.bar-row { display: grid; grid-template-columns: 24px 82px minmax(0, 1fr) 46px; align-items: center; gap: 8px; }
.bar-ico { text-align: center; }
.bar-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.bar-row b { font-size: 0.9rem; text-align: right; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 12px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar i { position: absolute; inset: 0; width: var(--pct, 0%); border-radius: inherit; background: var(--c, var(--accent)); transition: width 0.4s ease; }
.bar-health { --c: var(--red); } .bar-hunger { --c: var(--orange); } .bar-thirst { --c: var(--discord); } .bar-stamina { --c: var(--accent); }
.bar-carbs { --c: var(--leaf); } .bar-protein { --c: var(--accent-deep); } .bar-lipids { --c: var(--green); }
.bar-health .bar-ico { display: inline-block; animation: dino-beat 1.1s ease-in-out infinite; }
.bar-row.low .bar-label, .bar-row.low b { color: var(--red); }
.bar-row.low .bar i { animation: dino-low 1s ease-in-out infinite alternate; }
.bar-row.mutations { grid-template-columns: 24px 82px minmax(0, 1fr); }
.mut-list { display: flex; flex-wrap: wrap; gap: 5px; }
@keyframes dino-beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1.05); } 45% { transform: scale(1.15); } }
@keyframes dino-low { from { opacity: 1; } to { opacity: 0.45; } }

.dino-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.dino-col { padding: 18px; }
.dino-col h2 { margin-bottom: 12px; }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.col-head h2 { margin: 0; }
.small-btn { padding: 7px 12px; font-size: 0.85rem; }

/* Care: one row per action, a ring showing the cooldown (or the growth), the button on the right */
.act { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); transition: border-color 0.15s, transform 0.15s; }
.act + .act { margin-top: 9px; }
.act:hover { border-color: rgba(244, 178, 95, 0.4); }
.act h3 { font: 600 1rem/1.2 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.act p { margin: 2px 0 0; }
.act .muted.small { font-size: 0.78rem; line-height: 1.35; }
.act-state { font-size: 0.85rem; font-weight: 600; color: #cfdad4; font-variant-numeric: tabular-nums; }
.act form { margin: 0; }
.act-ring { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: conic-gradient(var(--ring, var(--accent)) calc(var(--pct, 100) * 1%), var(--line) 0); }
.act-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel); }
.act-ring > span { position: relative; font-size: 1.3rem; }
.act.ready { border-color: rgba(87, 242, 135, 0.35); }
.act.ready .act-ring { --ring: var(--green); }
.act.ready .act-state { color: var(--green); }
.act.ready .act-ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: dino-ping 2s ease-out infinite; }
@keyframes dino-ping { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.25); opacity: 0; } }
.act.cooling .act-ring { --ring: var(--muted); }
.act.off { opacity: 0.6; }
.act.off .act-ring { --ring: var(--line); }
.grow .act-ring { --ring: var(--leaf); }
.grow.paused .act-ring { --ring: var(--orange); }
.act.danger { border-color: rgba(237, 66, 69, 0.3); }
.act.danger:hover { border-color: rgba(237, 66, 69, 0.6); }
.act.danger .act-ring { --ring: var(--red); }
.act.danger h3 { color: var(--red); }
.act.bump { animation: dino-bump 0.35s ease-out; }
@keyframes dino-bump { 40% { transform: scale(1.03); } }

/* the growth switch */
.switch { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #26332f;
  color: var(--orange); font: 700 0.82rem var(--body); cursor: pointer; }
.switch-knob { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); transition: transform 0.2s ease; }
.switch.on { color: var(--leaf); border-color: rgba(111, 210, 143, 0.4); }
.switch.on .switch-knob::after { transform: translateX(16px); background: var(--leaf); }
.switch:hover { filter: brightness(1.12); }
.switch:disabled { opacity: 0.6; cursor: wait; }

/* hold to slay: the bar fills while it's held, and the dino is slain once it's full */
.hold { position: relative; overflow: hidden; min-width: 128px; border-color: rgba(237, 66, 69, 0.45) !important; color: var(--red); user-select: none; touch-action: none; }
.hold-fill { position: absolute; inset: 0; background: rgba(237, 66, 69, 0.35); transform: scaleX(0); transform-origin: left; }
.hold.holding .hold-fill { transform: scaleX(1); transition: transform 1.2s linear; }
.hold-text { position: relative; }

/* Prime: ten segments with the 5th marked, then the ten requirements; the ones still to do lead to the Shop */
.prime-meter { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.seg { height: 10px; border-radius: 3px; background: var(--line); }
.seg.on { background: var(--accent); }
.seg.mark { box-shadow: 4px 0 0 -2px var(--bg), 6px 0 0 -2px var(--green); }
.prime-key { margin: 7px 0 10px; font-size: 0.78rem; }
.prime-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.prime-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-2);
  color: var(--muted); font-size: 0.86rem; line-height: 1.25; transition: border-color 0.15s, background 0.15s; }
.prime-label { flex: 1; }
.tick { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; font-size: 0.72rem; font-weight: 800; }
.prime-item.done { color: var(--text); border-color: rgba(244, 178, 95, 0.3); }
.prime-item.done .tick { border-color: var(--accent); background: var(--accent); color: #1b1206; }
a.prime-item:hover { text-decoration: none; border-color: rgba(244, 178, 95, 0.5); background: var(--panel-raised); color: var(--text); }
.prime-item .go { color: var(--accent); font-size: 0.75rem; font-weight: 700; opacity: 0; transition: opacity 0.15s; }
a.prime-item:hover .go, a.prime-item:focus-visible .go { opacity: 1; }

/* Pack, under Prime */
.pack-box p { margin: 8px 0 0; }
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid rgba(244, 178, 95, 0.4); border-radius: 10px; background: rgba(244, 178, 95, 0.06); font-size: 0.88rem; }
.invite span { flex: 1 1 140px; }
.invite form { margin: 0; }
.pack-members { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.pack-members .lead { color: var(--accent); }
.pack-invite { display: flex; gap: 8px; margin-top: 10px; }
.pack-invite select { flex: 1; min-width: 0; }
.pack-leave { margin: 6px 0 0; }

/* Storage: can this one be stored (three lights), then the stored dinos */
.store-now { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.store-now form { margin: 10px 0 0; }
.store-now .button { width: 100%; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 0.82rem; font-weight: 600; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 6px; border-radius: 50%; background: var(--green); color: #062612; font-size: 0.7rem; }
.checks li.no { color: var(--red); }
.checks li.no::before { content: "✕"; background: var(--red); color: #fff; }
#storage > p.muted.small { margin: 10px 0; font-size: 0.78rem; }
.stored-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stored-list li { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.stored-list li.fits { border-color: rgba(87, 242, 135, 0.4); }
.stored-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.stored-info .small { flex-basis: 100%; font-size: 0.78rem; line-height: 1.35; }
.fit-hint { color: var(--orange) !important; }
.stored-actions { display: flex; gap: 8px; }
.stored-actions form { margin: 0; }

.dino-empty { max-width: 720px; }
/* wide screens: the page takes up to 1600 px (the margins are empty on this page), one column per area */
@media (min-width: 1400px) {
  .dino-wide { width: min(1600px, 100vw - 48px); margin-inline: calc(50% - min(800px, 50vw - 24px)); }
  .dino-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .dino-bars { grid-template-columns: 1fr 1fr; gap: 6px 48px; }
  /* the name on the left, the bars beside it: one short card */
  .dino-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 40px; align-items: center; }
  .dino-top > :not(.dino-head):not(.dino-bars) { grid-column: 1 / -1; }
  .dino-head { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; }
  .dino-bars { grid-column: 2; grid-row: 1; margin-top: 0; }
  .dino-note { text-align: left; }
}
@media (max-width: 1399px) {
  .dino-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dino-grid, .dino-bars { grid-template-columns: 1fr; }
  .dino-note { text-align: left; }
  .act { grid-template-columns: 44px minmax(0, 1fr); }
  .act-ring { width: 44px; height: 44px; }
  .act form { grid-column: 1 / -1; }
  .act form .button, .act .switch { width: 100%; justify-content: center; }
}
.is-scrolling .dino-top *, .is-scrolling .act * { animation-play-state: paused !important; }

/* My dino, tighter (2026-11-17, Vengefulmink: "use the space more wisely"): mutations get their own block in the top
   card; smaller paddings; on wide screens each column is cut to the screen's height and scrolls inside itself
   (--fit, set by site.js), so the page itself barely scrolls */
.dino-top { padding: 16px 20px; }
.dino-grid { gap: 12px; margin-top: 12px; }
.dino-col { padding: 14px 14px 12px; }
.dino-col h2, .col-head { margin-bottom: 10px; }
.bars { gap: 6px; }
.bar { height: 11px; }
.dino-muts { min-width: 0; grid-column: 1 / -1; }
.muts-head { margin: 0 0 6px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.mut-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.dino-top .mut-list .chip { padding: 2px 9px; font-size: 0.74rem; color: #d9e4de; border-color: rgba(111, 210, 143, 0.3); }
.act { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
.act + .act { margin-top: 7px; }
.act-ring { width: 44px; height: 44px; }
.act-ring > span { font-size: 1.15rem; }
.prime-list { gap: 4px; }
.prime-item { padding: 5px 9px; font-size: 0.84rem; }
.prime-key { margin: 6px 0 8px; }
.stored-list li { padding: 8px 10px; gap: 6px; }
@media (min-width: 1400px) {
  .dino-top { grid-template-columns: 250px minmax(0, 1fr); column-gap: 32px; }
  .dino-bars { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 6px 32px; }
  .dino-muts { grid-column: auto; }
}
@media (min-width: 1400px) and (min-height: 640px) {
  .dino-grid.fit .dino-col { max-height: var(--fit); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
/* My dino's stored dinos (2026-11-17, Vengefulmink): where each was stored (it comes back there), and its mutations as tags */
.preview-chip { border-style: dashed !important; border-color: rgba(244, 178, 95, 0.55) !important; color: var(--accent) !important; }
.stored-where { flex-basis: 100%; font-size: 0.8rem; color: #cfdad4; }
.stored-where .spot { color: var(--muted); font-variant-numeric: tabular-nums; }
.stored-muts { flex-basis: 100%; margin-top: 2px; }
.dino-grid .stored-muts .chip { padding: 1px 8px; font-size: 0.72rem; border-color: rgba(111, 210, 143, 0.3); }
.dino-grid .stored-muts .chip.inherited { border-style: dashed; color: var(--muted); }
/* My dino's Refresh stats button (2026-11-17, Vengefulmink: bigger) */
.refresh-btn { align-self: flex-start; padding: 9px 16px; font-size: 0.95rem; color: var(--text); }
.refresh-ico { display: inline-block; font-size: 1.15rem; line-height: 1; transition: transform 0.4s ease; }
.refresh-btn:hover .refresh-ico { transform: rotate(180deg); }
.refresh-btn:hover { border-color: rgba(244, 178, 95, 0.5); text-decoration: none; }
/* bold and easy to spot (Vengefulmink): amber, larger, uppercase */
.dino-top .refresh-btn { padding: 11px 20px; font: 700 1rem/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: #1b1206; border: 0;
  box-shadow: 0 0 0 1px rgba(244, 178, 95, 0.4), 0 6px 18px rgba(220, 122, 48, 0.25); }
.dino-top .refresh-ico { font-size: 1.3rem; }
/* My dino's live stats (2026-11-17): a green dot that pings, and the Refresh arrow spins while it asks */
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: middle; box-shadow: 0 0 6px rgba(87, 242, 135, 0.7); }
.dino-top.pulling .refresh-ico { animation: dino-spin 0.8s linear infinite; }
@keyframes dino-spin { to { transform: rotate(360deg); } }
/* Prime once the conditions are met (2026-11-17): a filled gold badge */
.dino-top .chip.is-prime { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #1b1206 !important; border-color: transparent !important; font-weight: 800; }

/* My dino portrait (2026-11-18, Vengefulmink): your dino in its in-game colours, a still picture. The layers are baked
   from the Skin Studio per species (static/dino-portraits); dino-portrait.js paints the player's colours onto them
   once per visit on a plain canvas: no 3D, nothing animated. It keeps its space while it paints and hides if it can't */
.dino-portrait { margin: 0 auto 6px; max-width: 420px; }
.dino-portrait canvas { display: block; width: 100%; height: auto; aspect-ratio: 600 / 375; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45)); }
.dino-portrait canvas:not(.is-painted) { visibility: hidden; }
.dino-portrait:has(canvas.is-missing) { display: none; }
@media (min-width: 1400px) {
  .dino-top.has-portrait { grid-template-columns: 280px 290px minmax(0, 1fr); column-gap: 22px; }
  .dino-top.has-portrait > .dino-head { min-width: 0; }
  .dino-top.has-portrait .dino-name h1 { font-size: 2rem; line-height: 1.05; }
  .dino-top.has-portrait .dino-name h1.long-name { font-size: 1.55rem; }
  .dino-top.has-portrait .dino-bars { gap: 6px 26px; }
  .dino-top.has-portrait > .dino-portrait { grid-column: 1; grid-row: 1; margin: -6px 0 -10px; max-width: none; }
  .dino-top.has-portrait > .dino-head { grid-column: 2; }
  .dino-top.has-portrait > .dino-bars { grid-column: 3; }
  .dino-top.has-portrait > :not(.dino-head):not(.dino-bars):not(.dino-portrait) { grid-column: 1 / -1; }
}

/* My dino extras (2026-11-18, Vengefulmink): Edit this skin, nudges, growth estimate, mutation info, stored-dino
   pictures, Recent column; very wide screens use almost the whole width so the columns sit side by side */
.dino-portrait figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 2px; }
.prime-btn .prime-btn-price { margin-left: 6px; font-weight: 600; opacity: 0.85; }
.prime-btn-box { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: center; width: 100%; margin-top: 8px; box-shadow: 0 -10px 14px 2px rgba(0, 0, 0, 0.45); }  /* bottom of the Prime list, always in view, full size */
.dino-grid.fit .prime-list { gap: 3px; }
.dino-sub .nudge { border-color: rgba(240, 160, 60, 0.55); color: var(--accent); background: rgba(240, 160, 60, 0.1); text-decoration: none; font-weight: 600; }
.dino-sub .nudge:hover, .dino-sub .nudge:focus-visible { background: rgba(240, 160, 60, 0.2); }
.grow-eta { margin: 4px 0 0; }
.grow-eta b { color: var(--text); }
.mut-list { position: relative; }
.mut-list .has-info { cursor: help; }  /* tooltip anchors to the whole list so it is never cut off at a screen edge */
.mut-list .has-info:hover::after, .mut-list .has-info:focus::after { content: attr(data-info); position: absolute; z-index: 30; left: 0; right: 0; bottom: calc(100% + 6px); padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2, #111a16); color: var(--text); font-size: 0.78rem; font-weight: 500; line-height: 1.35; white-space: normal; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); pointer-events: none; }
.mut-list .has-info:focus { outline: 1px solid var(--accent); }
.stored-pic { float: right; width: 120px; height: auto; aspect-ratio: 600 / 375; margin: -4px -4px 0 6px; }
.stored-pic:not(.is-painted) { visibility: hidden; }
.stored-pic.is-missing { display: none; }
.stored-info::after { content: ""; display: block; clear: both; }
.activity { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.activity li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-size: 0.88rem; }
.activity .act-ico { text-align: center; }
@media (min-width: 1700px) {
  .dino-wide { width: min(1880px, 100vw - 40px); margin-inline: calc(50% - min(940px, 50vw - 20px)); }
  .dino-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
}

/* My dino storage pager (2026-11-18, Vengefulmink): one stored dino at a time, Back/Next or the mouse wheel */
.stored-list[data-pager].is-paged > li[hidden] { display: none; }
.stored-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.stored-muts { gap: 3px; }
.stored-muts .chip { padding: 2px 7px; font-size: 0.68rem; }  /* a long stored mutation list stays short */
.dino-col .store-now .checks { gap: 4px 8px; font-size: 0.74rem; }  /* the three checks fit one line */
.dino-col .store-now .button { padding: 8px 12px; }
.stored-pager .button, .stored-actions .button { padding: 5px 12px; }
.stored-list[data-pager] li { gap: 4px; }
.stored-list[data-pager] .stored-where .spot { display: none; }  /* the exact spot is in the line's tooltip, so each dino fits the card */
/* paged stored dino: picture on the left, name and chips beside it, so one dino fits the Storage card */
.stored-list[data-pager] .stored-info { display: block; line-height: 1.9; }
.stored-list[data-pager] .stored-pic { width: 104px; height: auto; float: left; margin: 2px 10px 2px 0; }
.stored-list[data-pager] .stored-info > .small, .stored-list[data-pager] .stored-where { display: block; line-height: 1.35; }
.stored-list[data-pager] .stored-muts { clear: both; padding-top: 4px; }
.stored-pager[hidden] { display: none; }
.stored-count { min-width: 4.5em; text-align: center; }

/* Shop, second pass (2026-11-18, Vengefulmink): "You" | species tiles | VIP, prime, how grows work. Species pictures are
   the owner's static/species/<Species>.webp (default skins). Phone: You, VIP/prime, tiles, how. */
.shop-head { padding-bottom: 0; }
.shop-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.shop-wide { display: grid; gap: 16px; margin-top: 14px; }
.shop-wide > * { min-width: 0; }
.shop-wide .card { margin: 0; }
.shop-side, .shop-left { display: grid; gap: 16px; align-content: start; }
.col-title { margin: 0 0 10px; font-size: 1.1rem; }
.shop-you > p { margin: 8px 0 0; }
.shop-wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; container-type: inline-size; }
.shop-wallet .wallet-item { min-width: 0; padding: 8px 4px 7px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.shop-wallet .wallet-item .label { display: flex; align-items: center; gap: 4px; font-size: 0.6rem; letter-spacing: 0.6px; white-space: nowrap; }
.shop-wallet .wallet-item .label .ico { font-size: 0.8rem; letter-spacing: 0; }
/* the number sizes itself to the tile, so 25,000 fits on any width */
.shop-wallet .wallet-item strong { display: block; max-width: 100%; font-size: clamp(0.82rem, 6.4cqi, 1.15rem); line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.you-dino { margin-top: 8px; }
.you-pic { display: block; width: 100%; height: auto; max-height: 110px; margin: 2px 0 4px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.you-dino .your-species { margin: 0; font: 600 1.3rem/1.2 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.you-dino .growth-bar { margin-top: 6px; }
.you-price { margin: 10px 0 0; }
.you-buy { margin-top: 8px; padding-top: 0; }
.you-buy { container-type: inline-size; }
.you-buy .button { padding: 10px 6px; white-space: nowrap; font-size: clamp(0.78rem, 5.3cqi, 1rem); }
.shop-you .free-grow { margin-top: 10px; padding: 8px 11px; font-size: 0.85rem; }
.shop-species .section-head { margin-bottom: 6px; }
.shop-species .section-head .col-title { margin: 0; }
.shop-species > .muted { margin: 0; }
.shop-species .species-grid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 8px; margin-top: 10px; }
.shop-species .species-card { gap: 3px; padding: 8px 10px 9px; border-radius: 12px; }
.shop-species .species-pic { display: block; width: 100%; height: 54px; margin: 0 0 2px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); }
.shop-species .species-card { container-type: inline-size; position: relative; }
.shop-species .species-top .badge.playing { position: absolute; top: 6px; right: 6px; }
/* long names (Tyrannosaurus, Pachycephalosaurus) shrink to fit instead of breaking mid-word */
.shop-species .species-top h3 { min-width: 0; font-size: clamp(0.66rem, 9cqi, 0.92rem); white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.shop-species .species-tags { gap: 4px; }
.shop-species .species-tags .badge { padding: 0 7px; font-size: 0.6rem; }
.shop-species .species-price { font-size: 0.85rem; }
.shop-side .shop-extra h2 { font-size: 1.05rem; }
.shop-side .shop-extra .price { margin: 2px 0 6px; font-size: 1.1rem; }
.shop-side .shop-extra p { margin: 0 0 6px; }
.shop-side .shop-extra .play { padding-top: 2px; }
.how-grows h2 { margin: 0 0 6px; font-size: 1.05rem; }
.how-grows ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; font-size: 0.82rem; line-height: 1.4; }
img[data-hide-broken].is-broken { display: none; }
@media (max-width: 1399px) {
  .shop-wide { grid-template-columns: minmax(0, 1fr); }
  .shop-left { display: contents; } .shop-you { order: 1; } .shop-side { order: 2; } .shop-species { order: 3; } .how-grows { order: 4; }
  .shop-species .species-grid { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
  .shop-side { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
}
@media (min-width: 1400px) {
  .shop-wide { grid-template-columns: 320px minmax(0, 1fr) 300px; align-items: start;
    width: min(1600px, 100vw - 48px); margin-inline: calc(50% - min(800px, 50vw - 24px)); }
}
@media (min-width: 1700px) {
  .shop-wide { grid-template-columns: 340px minmax(0, 1fr) 320px; width: min(1880px, 100vw - 40px); margin-inline: calc(50% - min(940px, 50vw - 20px)); }
  .shop-species .species-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}

/* Demo mode bar (dev copy only, 2026-11-18): shows while signed in as the demo player */
.demo-bar { position: relative; z-index: 5; padding: 6px 16px; border-bottom: 1px solid rgba(244, 178, 95, 0.35); background: rgba(244, 178, 95, 0.12); color: var(--text); font-size: 0.85rem; text-align: center; }
.demo-bar a { color: var(--accent); font-weight: 700; }

/* FREE PRIME tile (Vengefulmink, 2026-11-18): the free daily grow, beside Amber and DNA. Glows when ready, greyed when not */
.free-prime { display: block; color: inherit; text-decoration: none; }
.free-prime.is-ready { border-color: var(--accent); background: linear-gradient(180deg, #ffcf7a, var(--accent)); color: #1b1206; box-shadow: 0 0 0 2px rgba(244, 178, 95, 0.35), 0 0 16px rgba(244, 178, 95, 0.5); }
.free-prime.is-ready .label { color: #3a2408; }
.free-prime.is-ready:hover { filter: brightness(1.07); text-decoration: none; }
.free-prime.is-waiting { opacity: 0.6; filter: grayscale(1); cursor: default; }

/* Shop polish (Vengefulmink, 2026-11-18): dimmed species you can't grow, cost on the grow buttons, growth preview,
   short how-grows with tips, personal VIP line, last grow */
.shop-species .species-card.cant-grow { opacity: 0.5; filter: saturate(0.4); }
.shop-species .species-card.cant-grow:hover { opacity: 0.85; filter: none; }
.grow-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; }
.grow-btn-cost { font-size: 0.72em; font-weight: 600; opacity: 0.85; }
.grow-btn-cost s { opacity: 0.6; }
.growth-track { position: relative; flex: 1; display: flex; }
.growth-track progress { flex: 1; width: auto; height: 12px; }
.growth-ghost { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; border: 2px dashed var(--accent); background: rgba(244, 178, 95, 0.18); pointer-events: none; }
.growth-ghost[hidden] { display: none; }
.last-grow { margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); }
.vip-now { margin: 0 0 6px; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; }
.vip-now.is-on { border-color: var(--accent); background: rgba(244, 178, 95, 0.12); color: var(--accent); }
.how-grows .tip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 2px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 0.68rem; font-weight: 700; line-height: 1; cursor: help; vertical-align: 1px; }
.how-grows .tip::after { content: attr(data-tip); position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: 240px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-raised); box-shadow: var(--shadow); color: var(--text); font-size: 0.78rem; font-weight: 400; line-height: 1.4; text-align: left; transform: translateX(-50%); visibility: hidden; }
.how-grows .tip:hover::after, .how-grows .tip:focus::after { visibility: visible; }
.how-grows .tip:hover, .how-grows .tip:focus { border-color: var(--accent); color: var(--accent); outline: none; }
/* the tip box spans the whole list above it, so it is never cut off at the screen edge */
.how-grows ul { position: relative; }
.how-grows .tip { position: static; }
.how-grows .tip::after { left: 0; right: 0; bottom: calc(100% + 6px); width: auto; max-width: none; transform: none; }

/* Mutation page, overhauled (Vengefulmink, 2026-11-18): your grow on the left, mutation cards on the right, no dropdowns */
.grow-head { margin-bottom: 10px; }
.grow-head h1 { margin: 0; }
.grow-head p.muted { margin: 2px 0 0; }
.grow-wide { display: grid; gap: 14px; }
.grow-you { display: flex; flex-direction: column; gap: 6px; }
.grow-you .col-title { margin: 0; }
.grow-you .you-pic { max-height: 96px; }
.grow-you .your-species { margin: 0; font: 600 1.25rem/1.2 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.grow-you .growth-bar { margin-top: 2px; max-width: none; }
.grow-you .growth-bar strong { font-size: 0.85rem; white-space: nowrap; }
.grow-ghost-875 { width: 87.5%; }
.grow-ghost-1000 { width: 100%; }
.grow-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.grow-kind a { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(14, 24, 22, 0.85); color: var(--text); text-decoration: none; }
.grow-kind a span { font-weight: 700; }
.grow-kind a small { color: var(--muted); font-size: 0.72rem; line-height: 1.3; }
.grow-kind a:hover { border-color: var(--accent); text-decoration: none; }
.grow-kind a.active { border-color: var(--accent); background: rgba(244, 178, 95, 0.12); box-shadow: 0 0 0 1px rgba(244, 178, 95, 0.35); }
.grow-kind a.active small { color: var(--accent); }
.slots-h { margin: 6px 0 0; font: 600 0.8rem/1.3 var(--display); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.mut-slots { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mut-slot { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(14, 24, 22, 0.85); }
.mut-slot .slot-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-raised); border: 1px solid var(--line); font-weight: 700; font-size: 0.8rem; }
.mut-slot .slot-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mut-slot .slot-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.mut-slot .slot-body small { color: var(--muted); font-size: 0.72rem; line-height: 1.3; }
.mut-slot .slot-ico { flex: none; opacity: 0.7; }
.mut-slot.is-open { border-style: dashed; cursor: pointer; }
.mut-slot.is-open:hover { border-color: var(--accent); }
.mut-slot.is-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mut-slot.is-active { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 2px rgba(244, 178, 95, 0.3); }
.mut-slot.is-active .slot-n { background: var(--accent); border-color: var(--accent); color: #1b1206; }
.mut-slot.is-filled { border-style: solid; background: rgba(244, 178, 95, 0.1); }
.mut-slot.is-filled .slot-body strong { color: var(--accent); }
.mut-slot.is-kept { background: rgba(111, 210, 143, 0.08); border-color: rgba(111, 210, 143, 0.35); }
.mut-slot.is-kept .slot-body strong { color: var(--leaf); }
.mut-slot.is-locked { opacity: 0.55; }
.slot-clear { flex: none; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.75rem; }
.slot-clear:hover { border-color: var(--red); color: #ff8a8c; }
.slot-clear[hidden] { display: none; }
.grow-outcome { margin: 4px 0 0; }
.grow-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.grow-pay .pay-free { grid-column: 1 / -1; box-shadow: 0 0 0 2px rgba(244, 178, 95, 0.35), 0 0 16px rgba(244, 178, 95, 0.4); }
.grow-pay .button { padding: 10px 8px; white-space: nowrap; }
.wallet-line { margin: 2px 0 0; }
.mut-picker { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mut-picker .section-head { margin: 0; flex-wrap: wrap; gap: 8px; }
.mut-picker .col-title { margin: 0; }
.mut-picker .col-title .muted { font-family: var(--body); letter-spacing: 0; text-transform: none; font-weight: 400; }
.mut-help { margin: 0; }
.mut-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mut-cards li[hidden] { display: none; }
.mut-card { display: flex; flex-direction: column; gap: 3px; width: 100%; height: 100%; padding: 8px 10px 9px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, var(--panel-raised), var(--panel)); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mut-card:hover { border-color: var(--accent); }
.mut-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mut-card .mut-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.mut-card .mut-top strong { font-size: 0.9rem; line-height: 1.25; }
.mut-card .mut-in { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #1b1206; font-size: 0.66rem; font-weight: 700; }
.mut-card .mut-in[hidden] { display: none; }
.mut-card .mut-text { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.mut-card .mut-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; padding-top: 2px; }
.mut-card .badge { padding: 0 7px; font-size: 0.6rem; }
.badge.exc { background: rgba(244, 178, 95, 0.15); color: var(--accent); }
.badge.quest { background: rgba(88, 101, 242, 0.18); color: #aab3ff; }
.mut-card .mut-str { color: var(--muted); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.mut-card.is-exceptional { border-color: rgba(244, 178, 95, 0.35); }
.mut-card.is-picked { border-color: var(--accent); background: linear-gradient(180deg, rgba(244, 178, 95, 0.18), var(--panel)); box-shadow: 0 0 0 1px rgba(244, 178, 95, 0.35); }
.mut-card.is-picked .mut-text { color: var(--text); }
.mut-card.no-fit { opacity: 0.4; }
@media (min-width: 1100px) {
  .grow-wide { grid-template-columns: 360px minmax(0, 1fr); align-items: start;
    width: min(1600px, 100vw - 48px); margin-inline: calc(50% - min(800px, 50vw - 24px)); }
  .grow-you { position: sticky; top: 76px; }
  /* the cards scroll inside their panel, so the page itself stays one screen */
  .mut-cards { max-height: calc(100vh - 300px); min-height: 320px; overflow-y: auto; padding-right: 4px; align-content: start; }
}
/* mutation page: tighter so everything fits a 1080p screen without scrolling */
.grow-head { margin: -8px 0 8px; }
.grow-head .eyebrow { margin: 0; }
.grow-head h1 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; }
.grow-you .you-pic { max-height: 70px; margin: 0; }
.mut-slot { min-height: 40px; padding: 4px 10px; }
.mut-slot .slot-n, .slot-clear { width: 24px; height: 24px; }
.mut-picker.is-reference .mut-card.no-fit { opacity: 1; }
@media (min-width: 1100px) { .mut-cards { max-height: calc(100vh - 250px); } }
.grow-head .eyebrow a { color: inherit; }
.grow-sub { font: 400 0.95rem/1 var(--body); letter-spacing: 0; text-transform: none; vertical-align: middle; }
.grow-pay.has-free { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grow-pay.has-free .pay-free { grid-column: auto; }
.grow-pay .button { padding: 10px 4px; }
@media (min-width: 1100px) { .mut-cards { max-height: calc(100vh - 290px); } }
@media (min-width: 1100px) { .mut-cards { max-height: calc(100vh - 370px); } }

/* Mutation page: quest steps and saved sets (Vengefulmink, 2026-11-18) */
.mut-card .mut-quest { padding: 3px 7px; border-radius: 8px; background: rgba(88, 101, 242, 0.12); color: #c9cfff; font-size: 0.72rem; line-height: 1.35; }
.pick-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.pick-mode .filter { justify-content: center; }
.mode-grow, .mode-set { display: flex; flex-direction: column; gap: 6px; }
.mode-grow[hidden], .mode-set[hidden] { display: none; }
.set-name { width: 100%; }
.set-grid { display: grid; grid-template-columns: 44px repeat(4, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.set-col { color: var(--muted); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.5px; text-align: center; text-transform: uppercase; }
.set-life { display: flex; align-items: center; color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.set-cell { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 3px; border: 1px dashed var(--line); border-radius: 8px; background: rgba(14, 24, 22, 0.85); color: var(--muted); font: 600 0.66rem/1.2 var(--body); text-align: center; cursor: pointer; overflow: hidden; overflow-wrap: anywhere; }
.set-cell:hover { border-color: var(--accent); }
.set-cell[data-exceptional="1"] { background: rgba(244, 178, 95, 0.05); }
.set-cell.is-filled { border-style: solid; color: var(--accent); background: rgba(244, 178, 95, 0.1); }
.set-cell.is-active { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 2px rgba(244, 178, 95, 0.3); color: var(--text); }
.set-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.set-actions .button { padding: 9px 8px; }
.set-status { margin: 0; }
.set-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 240px; overflow-y: auto; }
.set-item { padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(14, 24, 22, 0.85); }
.set-item.is-editing { border-color: var(--accent); }
.set-item-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.set-item-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.set-mini { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 0.7rem; cursor: pointer; }
.set-mini:hover { border-color: var(--accent); color: var(--accent); }
.set-mini.danger:hover, .set-mini.danger[data-sure] { border-color: var(--red); color: #ff8a8c; }
.set-rows { display: grid; gap: 3px; }
.set-use { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 6px; border: 1px solid transparent; border-radius: 6px; background: rgba(255, 255, 255, 0.03); color: var(--text); font-size: 0.72rem; text-align: left; cursor: pointer; }
.set-use:hover:not(:disabled) { border-color: var(--accent); }
.set-use:disabled { opacity: 0.45; cursor: default; }
.set-use-life { flex: none; padding: 0 5px; border-radius: 4px; background: var(--panel-raised); color: var(--accent); font-weight: 700; }
.set-use-names { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-cell { min-height: 36px; overflow-wrap: break-word; hyphens: auto; font-size: 0.62rem; }
@media (min-width: 1100px) { .set-list { max-height: 150px; } }
.grow-you:has(.mode-grow[hidden]) .you-pic { display: none; }  /* planning a set: the picture makes room for the 16 boxes */
@media (max-width: 1099px) { .grow-wide { grid-template-columns: minmax(0, 1fr); } } .grow-you { min-width: 0; }  /* phones: nothing may push the column wider than the screen */

/* Lineage grow (Vengefulmink, 2026-11-18): grow straight to life N of a saved set */
.set-mini.go { border-color: rgba(244, 178, 95, 0.5); color: var(--accent); }
.set-mini.go.active { background: var(--accent); color: #1b1206; }
.lineage-box { display: grid; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.lineage-box[hidden] { display: none; }
.lineage-lives { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.lineage-life { padding: 5px 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.lineage-life:hover { border-color: var(--accent); }
.lineage-life.active { border-color: var(--accent); background: rgba(244, 178, 95, 0.15); color: var(--accent); }
.lineage-info { margin: 0; color: var(--muted); font-size: 0.74rem; line-height: 1.35; }
.lineage-info.is-bad { color: #ff8a8c; }
.lineage-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lineage-pay .button { padding: 8px 4px; font-size: 0.85rem; white-space: nowrap; }
@media (min-width: 1100px) { .set-list { max-height: 200px; } }
.set-item:has(.lineage-box:not([hidden])) .set-rows { display: none; }  /* growing: the life picker takes the rows' place */

/* My sets, roomier (Vengefulmink, 2026-11-18: "bigger to read everything", the ⚡ Grow button was cut off) */
@media (min-width: 1100px) {
  /* planning sets: the left column grows wide enough for full names and every button */
  /* planning sets: three columns over the full width: saved sets | the 4x4 planner | the mutation cards */
  .grow-wide.is-planning { grid-template-columns: minmax(340px, 420px) 470px minmax(0, 1fr);
    width: min(2300px, 100vw - 40px); margin-inline: calc(50% - min(1150px, 50vw - 20px)); }
}
.set-list > li, .set-rows, .set-use { min-width: 0; }
.set-item { overflow: hidden; }
.set-item-head { flex-wrap: wrap; }
.set-item-head strong { font-size: 0.98rem; }
.set-mini { padding: 4px 10px; font-size: 0.78rem; font-weight: 700; }
.set-mini.go { padding: 4px 12px; background: rgba(244, 178, 95, 0.15); }
.set-use { padding: 4px 8px; font-size: 0.82rem; }
.set-use-names { white-space: normal; line-height: 1.35; }
.set-cell { min-height: 46px; font-size: 0.74rem; }
.set-col, .set-life { font-size: 0.74rem; }
.set-grid { grid-template-columns: 52px repeat(4, minmax(0, 1fr)); gap: 5px; }
.lineage-life { font-size: 0.85rem; padding: 7px 0; }
.lineage-info { font-size: 0.82rem; }
@media (min-width: 1100px) {
  .set-shelf { position: sticky; top: 76px; }
  .set-list { max-height: calc(100vh - 250px); min-height: 0; }
}
.set-shelf { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.set-shelf[hidden] { display: none; }
.set-shelf .col-title { margin: 0; }
.set-shelf .col-title .muted { font-family: var(--body); letter-spacing: 0; text-transform: none; font-weight: 400; }
@media (max-width: 1099px) { .set-shelf { order: 2; } .mut-picker { order: 3; } }

/* Shop + mutations extras (Vengefulmink, 2026-11-18): Shop's lineage link, strength per box, receipt, search, share,
   ready-made builds, drag and drop */
.lineage-link { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; margin-top: 6px; padding: 8px; border-color: rgba(244, 178, 95, 0.5); color: var(--accent); text-decoration: none; }
.lineage-link .muted { font-weight: 400; }
.lineage-link:hover { background: rgba(244, 178, 95, 0.12); text-decoration: none; }
.set-cell { flex-direction: column; gap: 1px; }
.set-cell .cell-str { color: var(--muted); font-size: 0.66rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.set-cell .cell-str:empty { display: none; }
.set-cell[draggable="true"] { cursor: grab; }
.set-cell.is-drop { border-color: var(--leaf); border-style: solid; box-shadow: 0 0 0 2px rgba(111, 210, 143, 0.35); }
.grow-wide.is-planning .mut-card { cursor: grab; }
.mut-search { flex: 1 1 200px; min-width: 0; max-width: 320px; padding: 6px 10px; }
.set-import { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.set-import input { min-width: 0; }
.set-import .button { padding: 7px 12px; }
.preset-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.preset { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: rgba(14, 24, 22, 0.85); color: var(--text); text-align: left; cursor: pointer; }
.preset:hover { border-color: var(--accent); border-style: solid; }
.preset small { color: var(--muted); font-size: 0.72rem; }
.receipt-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.receipt { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 20px; box-shadow: var(--shadow); }
.receipt h2 { margin: 0 0 4px; }
.receipt > p { margin: 0 0 8px; }
.receipt-lives { display: grid; gap: 5px; margin: 6px 0 8px; }
.receipt-row { display: grid; gap: 2px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(14, 24, 22, 0.85); }
.receipt-row.is-now { border-color: var(--accent); background: rgba(244, 178, 95, 0.1); }
.receipt-life { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.receipt-row.is-now .receipt-life { color: var(--accent); }
.receipt-names { font-size: 0.86rem; line-height: 1.4; }
.receipt-total { font: 600 1.2rem/1.2 var(--display); letter-spacing: 0.5px; }
.receipt-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.badge.owned { background: rgba(111, 210, 143, 0.15); color: var(--leaf); }
.grow-wide:not(.is-planning) .mut-card.is-owned { opacity: 0.4; }
.set-item-head { gap: 5px; }
.set-item-head strong { flex: 1 0 100%; white-space: normal; }  /* the name gets its own line; the buttons sit under it */

/* ---- Mutation page: the boxes scroll, not the page (2026-11-18) ---- */
@media (min-width: 1100px) {
  .grow-wide { --box-h: max(480px, calc(100vh - 200px)); }
  .grow-wide > .set-shelf, .grow-wide > .grow-you, .grow-wide > .mut-picker { max-height: var(--box-h); overflow-y: auto; overscroll-behavior: contain; }
  .grow-wide > .mut-picker { height: var(--box-h); overflow: hidden; }
  .grow-wide > .mut-picker .mut-cards { flex: 1 1 auto; min-height: 0; max-height: none; }
  .grow-wide > .set-shelf, .grow-wide > .grow-you { scrollbar-width: thin; }
}

/* ---- Profile (me.html) revamp, 2026-11-18 ---- */
.profile-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.profile-who { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 420px; }
.profile-mark { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #1b1206; font: 700 1.6rem/1 var(--display); }
.profile-name { min-width: 0; }
.profile-name h1 { margin: 0; overflow-wrap: anywhere; }
.profile-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; }
.profile-out { margin-left: auto; align-self: flex-start; }
.profile-wallet .wallet-item { text-decoration: none; color: inherit; }
.profile-wallet a.wallet-item:hover { border-color: var(--accent); }
.profile-grid { display: grid; gap: 14px; margin-top: 14px; }
.profile-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.profile-box .col-title, .profile-box .slots-h { margin: 0; }
.profile-box .slots-h { margin-top: 4px; }
.profile-box .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.profile-stats { margin-top: 0; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.profile-stats .stat { padding: 8px 12px; }
.profile-stats .stat strong { font-size: 1.1rem; }
.profile-wide { grid-column: span 2; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.profile-big { margin: 0; }
.profile-big strong { font-size: 1.6rem; }
.profile-box p { margin: 0; }
.profile-box .feed li { padding: 7px 0; }
.profile-box .feed li[hidden] { display: none; }
.profile-gift { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-gift input[name="player"] { flex: 1 1 180px; }
.profile-gift input[name="amount"] { width: 90px; }
@media (min-width: 1100px) {
  .profile-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .profile-box { max-height: max(420px, calc(100vh - 290px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (min-width: 1400px) {
  .profile-page { width: min(1760px, 100vw - 40px); margin-inline: calc(50% - min(880px, 50vw - 20px)); }
}
.profile-out .link { white-space: nowrap; }
@media (max-width: 699px) {
  .profile-wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .profile-wallet .wallet-item { min-width: 0; padding: 8px 10px; }
  .profile-wallet .wallet-item .label { font-size: 0.62rem; letter-spacing: 0.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .profile-wallet .wallet-item strong { font-size: 1rem; }
}

/* ---- Profile: Linked accounts (2026-11-18) ---- */
.profile-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.link-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.link-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(14, 24, 22, 0.85); }
.link-row.on { border-color: rgba(111, 210, 143, 0.35); }
.link-ico { flex: none; width: 1.6em; text-align: center; font-size: 1.15rem; }
.link-what { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link-what small { color: var(--muted); overflow-wrap: anywhere; }
.link-row.on .link-what b::after { content: " ✓"; color: var(--leaf); }
.link-row form, .link-row > a, .link-row > button { flex: none; margin: 0; }
.link-row .button { padding: 5px 12px; font-size: 0.85rem; }
.link-sub { padding: 6px 10px; font-size: 0.85rem; color: var(--accent); }
.link-sub[hidden], .link-apps:empty { display: none; }
.link-apps li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.85rem; }
.link-apps .button { padding: 4px 10px; font-size: 0.8rem; }
@media (min-width: 1100px) {
  .profile-stack { max-height: max(420px, calc(100vh - 290px)); }
  .profile-stack > .profile-box { max-height: none; }
  .profile-stack > .profile-links-box { flex: none; overflow: visible; }
  .profile-stack > .profile-history { flex: 1 1 auto; min-height: 160px; }
}

/* ---- Grow into storage (2026-11-18) ---- */
.store-grow-link { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 8px; text-align: center; }
.deliver { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.deliver .filter { text-align: center; }
.deliver .filter:disabled { opacity: 0.45; cursor: not-allowed; }
.spawn-pick { display: flex; flex-direction: column; gap: 6px; }
.spawn-pick[hidden] { display: none; }
.spawn-pick p { margin: 0; }
.spawn-list { display: flex; flex-wrap: wrap; gap: 5px; }
.spawn { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font: 600 0.8rem var(--body); cursor: pointer; }
.spawn:hover { color: var(--text); }
.spawn.active { border-color: var(--accent); background: rgba(244, 178, 95, 0.12); color: var(--accent); }

/* ---- Saved sets readable in full (2026-11-18): no set is squashed; the Saved sets box scrolls as one ---- */
.set-list { grid-auto-rows: max-content; align-content: start; }
.set-item { overflow: visible; }
.set-rows li { overflow-wrap: anywhere; }
@media (min-width: 1100px) {
  .grow-wide .set-list { max-height: none; overflow: visible; flex: none; }
  .grow-wide > .set-shelf > * { flex-shrink: 0; }
}

/* ---- This grow: from a saved set (2026-11-18) ---- */
.pick-src { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pick-src .filter { text-align: center; }
.pick-src .filter:disabled { opacity: 0.45; cursor: not-allowed; }
.src-set[hidden], .src-pick[hidden], .src-pick-pay[hidden], .src-set-pay[hidden] { display: none; }
.use-set-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.use-set { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(14, 24, 22, 0.85); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.use-set small { color: var(--muted); white-space: nowrap; }
.use-set:hover { border-color: rgba(244, 178, 95, 0.5); }
.use-set.active { border-color: var(--accent); background: rgba(244, 178, 95, 0.1); }
.src-set-pay .lineage-box { margin: 0; }
div.set-use { cursor: default; }
div.set-use.is-empty { opacity: 0.5; }
.grow-kind[hidden] { display: none; }

/* ---- Growing from a saved set: the set's lives in the right panel (2026-11-18) ---- */
.mut-picker.is-set-view .mut-cards, .mut-picker.is-set-view .mut-search, .mut-picker.is-set-view .filters { display: none; }
.set-preview[hidden] { display: none; }
.set-preview { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding-right: 4px; }
.set-preview-title { margin: 0; font: 600 1.05rem/1.2 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.set-life { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(14, 24, 22, 0.6); }
.set-life.is-now { border-color: var(--accent); }
.set-life.is-unused { opacity: 0.45; }
.set-life-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 0.9rem; }
.set-life-n { color: var(--accent); font-weight: 800; }
.set-life-tag { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.set-life-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.preview-card { cursor: default; }
.preview-slot { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.preview-at { display: block; margin-top: 4px; color: var(--leaf); font-size: 0.8rem; font-weight: 700; }
.set-life-empty { display: grid; place-items: center; min-height: 60px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 0.8rem; }
@media (max-width: 899px) { .set-life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grow-wide > .mut-picker .set-preview { flex: 1 1 auto; } }

/* ---- Grow page uses the whole screen in every mode (2026-11-18, "utilize this space") ---- */
@media (min-width: 1400px) {
  .grow-wide:not(.is-planning) { width: min(2300px, 100vw - 40px); margin-inline: calc(50% - min(1150px, 50vw - 20px));
    grid-template-columns: minmax(400px, 460px) minmax(0, 1fr); }
  .grow-head { width: min(2300px, 100vw - 40px); margin-inline: calc(50% - min(1150px, 50vw - 20px)); }
}
.set-preview .set-life { display: block; }
.set-preview .set-life-head { display: flex; }

/* ----- Regular / Prime switch without a reload (2026-11-18) ----- */
/* slot 4 is on the page twice on a prime-capable grow (open for prime, locked for regular); only one shows */
.mut-slot[hidden] { display: none; }
/* a saved set's slot 4 on a regular grow for a dino that isn't prime-eligible: shown, but left out of the grow */
.preview-card.is-skipped { opacity: 0.45; }

/* ----- Grow page: Back to the Shop always in reach (2026-11-18) ----- */
/* the title bar sticks under the site header (76px, as the sticky boxes below it) with a real button on the right */
.grow-head { position: sticky; top: 76px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 6px 0; background: var(--bg); }
.grow-back { flex: none; }
@media (max-width: 640px) { .grow-head { top: 0; } .grow-sub { display: none; } }
/* the free daily grow while it's used: same place, no glow, a countdown */
.grow-pay .pay-free.is-waiting { box-shadow: none; white-space: nowrap; }

/* ----- Shop: the free prime grow as a big button under the grow buttons (2026-11-18) ----- */
.shop-wallet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.free-prime-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; margin-top: 8px; padding: 10px 8px; font-size: 1.05rem; text-align: center; }
.free-prime-btn .small { font-size: 0.8rem; font-weight: 400; }
.free-prime-btn.is-waiting { opacity: 0.6; filter: grayscale(1); }

/* ----- Bloodline builder: its own page (2026-11-18) ----- */
.builder-shop-link { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; margin-top: 8px; text-align: center; }
.builder-shop-link .muted { font-weight: 400; }
.builder-species { display: flex; flex-wrap: wrap; gap: 4px; max-height: 132px; overflow-y: auto; margin-bottom: 8px; }
.builder-species .filter { padding: 4px 8px; font-size: 0.78rem; text-decoration: none; }
.builder-species .filter span { opacity: 0.7; }
.builder-hint { margin: 4px 0 6px; }
.builder-link { float: right; font: 400 0.8rem/1.4 var(--body); letter-spacing: 0; text-transform: none; }

/* ----- Grow tab (2026-11-18): the header now carries the Grow section bar (Dino Shop | Bloodline builder), so the
   page title bar no longer needs to stick, and sticky boxes sit below the taller header ----- */
.grow-head { position: static; }
@media (min-width: 1100px) { .grow-you, .set-shelf { top: 132px; } }
/* Back to the Shop sits right after the page title, not at the far right (2026-11-18) */
.grow-head { justify-content: flex-start; }

/* ----- Profile, second pass: a personal banner (2026-11-18) ----- */
/* your dino (painted in your kept skin) | name, badges, your dino line, Rankings places | wallet + Sign out */
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; }
.profile-dino { margin: 0; display: grid; place-items: center; width: clamp(150px, 16vw, 260px); }
.profile-dino canvas, .profile-dino img { display: block; width: 100%; height: auto; }
.profile-dino .profile-mark { width: 84px; height: 84px; font-size: 2.4rem; }
.profile-id { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.profile-id h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.05; }
.profile-id .profile-badges { margin: 0; }
.profile-dino-line { margin: 0; font-size: 0.92rem; }
.profile-ranks { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.profile-ranks a { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: inherit; text-decoration: none; }
.profile-ranks a:hover { border-color: var(--accent); }
.profile-ranks b { color: var(--accent); }
.profile-ranks small { opacity: 0.75; }
.profile-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.profile-side .profile-wallet { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 6px; }
.profile-side .profile-out { margin: 0; align-self: flex-end; }
@media (max-width: 900px) {
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
  .profile-side { grid-column: 1 / -1; align-items: stretch; }
  .profile-side .profile-wallet { width: 100%; }
}
@media (max-width: 560px) {
  .profile-hero { grid-template-columns: minmax(0, 1fr); }
  .profile-dino { width: min(260px, 100%); margin-inline: auto; }
}
/* the grid: Your record | History (widest) | Linked accounts over DNA */
@media (min-width: 1100px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); }
  .profile-stack > .profile-links-box { flex: none; overflow: visible; }
  .profile-stack > .profile-dna { flex: 1 1 auto; min-height: 160px; overflow-y: auto; }
  .profile-grid > .profile-history { max-height: max(420px, calc(100vh - 330px)); }
  .profile-grid > .profile-record, .profile-stack { max-height: max(420px, calc(100vh - 330px)); }
}

/* ----- Profile logo (2026-11-18): a dino head emblem you pick; Change shows on hover ----- */
.profile-logo { position: relative; width: clamp(110px, 10vw, 160px); aspect-ratio: 1; display: grid; place-items: center; }
.profile-logo img { display: block; width: 100%; height: 100%; }
.profile-logo .profile-mark { width: 84%; height: 84%; font-size: 3rem; }
.profile-logo-edit { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px; background: var(--panel-raised); color: var(--text); font: 600 0.78rem/1.2 var(--body); white-space: nowrap; cursor: pointer; opacity: 0; }
.profile-logo:hover .profile-logo-edit, .profile-logo:focus-within .profile-logo-edit { opacity: 1; }
@media (hover: none) { .profile-logo-edit { opacity: 1; } }
.logo-picker { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 60; width: min(820px, calc(100vw - 32px)); max-height: min(80vh, 760px); overflow-y: auto; padding: 16px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6), var(--shadow); }
.logo-picker[hidden] { display: none; }
.logo-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.logo-picker-head .col-title { margin: 0; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.logo-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--text); cursor: pointer; }
.logo-pick:hover { border-color: var(--accent); }
.logo-pick.active { border-color: var(--accent); background: var(--panel-raised); }
.logo-pick img { width: 100%; height: auto; }
.logo-pick small { font-size: 0.72rem; text-align: center; line-height: 1.2; }
.logo-pick small em { display: block; color: var(--accent); font-style: normal; }
.logo-auto .profile-mark { width: 72px; height: 72px; margin: 10px 0; font-size: 2rem; }

/* ----- Profile DNA box, tidied (2026-11-18) ----- */
.dna-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dna-tiles .stat { padding: 8px 10px; }
.dna-tiles .stat strong { font-size: 1.1rem; }
.dna-gift { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-raised); }
.dna-gift .slots-h { margin: 0; }
.dna-gift .profile-gift { display: flex; flex-direction: column; gap: 6px; }
.dna-gift .profile-gift input[name="player"] { width: 100%; }
.dna-gift-row { display: flex; gap: 6px; }
.dna-gift-row input { flex: 1 1 auto; min-width: 0; width: auto; }
.dna-gift-row .button { flex: none; }
@media (max-width: 560px) { .profile-logo { margin-inline: auto; } }

/* ----- Profile: Gift DNA card on top of the right column, DNA history in History (2026-11-18) ----- */
.profile-gift-card { border-color: var(--accent-deep); }
.profile-gift-card .profile-gift { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-gift-card .profile-gift input[name="player"] { flex: 2 1 150px; min-width: 0; }
.profile-gift-card .profile-gift input[name="amount"] { flex: 1 1 90px; min-width: 0; width: auto; }
.profile-gift-card .profile-gift .button { flex: none; }
@media (min-width: 1100px) {
  .profile-stack > .profile-gift-card { flex: none; overflow: visible; }
}

/* ----- Profile touches (2026-11-18): banner art from your logo, tagline, pinned showcase, public profile ----- */
.profile-hero { position: relative; overflow: hidden; isolation: isolate; }
.profile-hero-art { position: absolute; z-index: -1; right: 18%; top: 50%; width: min(420px, 60%); height: auto; transform: translateY(-50%) scaleX(-1); opacity: 0.09; pointer-events: none; }
.profile-tagline { margin: 0; font-size: 1rem; }
.profile-tagline q { font-style: italic; color: var(--text); }
.profile-tagline .link { font-size: 0.82rem; }
.profile-tagline[hidden], .profile-tagline-form[hidden] { display: none; }
.profile-tagline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 520px; }
.profile-tagline-form input { flex: 1 1 220px; min-width: 0; }
.profile-showcase { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; width: 100%; min-width: 220px; padding: 8px 12px; border: 1px solid var(--accent-deep); border-radius: var(--radius-sm); background: var(--panel-raised); color: var(--text); text-align: left; font: inherit; }
.profile-showcase .showcase-pin { grid-column: 1 / -1; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.profile-showcase .showcase-big { font: 700 1.35rem/1.1 var(--display); overflow-wrap: anywhere; }
.profile-showcase .showcase-label { grid-column: 1; font-size: 0.85rem; }
.profile-showcase .showcase-edit { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: 0.82rem; }
.profile-showcase.is-empty { display: flex; flex-direction: column; gap: 2px; border-style: dashed; cursor: pointer; }
.profile-showcase.is-empty:hover { border-color: var(--accent); }
.profile-showcase.is-empty span + span { font-size: 0.85rem; color: var(--muted); }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.showcase-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.showcase-pick:hover, .showcase-pick.active { border-color: var(--accent); }
.showcase-pick.active { background: var(--panel-raised); }
.showcase-pick .showcase-big { font: 700 1.15rem/1.15 var(--display); overflow-wrap: anywhere; }
.showcase-pick .showcase-label { font-size: 0.85rem; }
.profile-side-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 14px; font-size: 0.88rem; }
.profile-side-links .profile-out { margin: 0; }
.board-player { color: inherit; }
.board-player:hover { color: var(--accent); }
.player-grid { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
@media (min-width: 1100px) { .player-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .profile-hero-art { right: -10%; width: 70%; } .profile-showcase { min-width: 0; } }
/* showcase centred in the banner (2026-11-18 follow-up): logo | who | showcase | wallet */
.profile-hero { grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px) minmax(0, 1fr); }
.profile-hero .profile-side { justify-self: end; }
.profile-showcase-slot { display: grid; justify-items: center; min-width: 0; }
.profile-showcase { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; min-width: 0; text-align: center; }
.profile-showcase .showcase-pin { grid-column: auto; }
.profile-showcase .showcase-label, .profile-showcase .showcase-edit { grid-column: auto; grid-row: auto; }
.profile-showcase .showcase-big a { color: inherit; }
.profile-showcase .showcase-big a:hover { color: var(--accent); }
.profile-showcase .showcase-edit { margin-top: 2px; }
.profile-showcase.is-empty { align-items: center; padding: 14px 12px; }
.showcase-pic { display: block; width: 100%; max-width: 240px; height: auto; }
.showcase-pick .showcase-pic { max-width: 100%; }
@media (max-width: 1300px) {
  .profile-hero { grid-template-columns: auto minmax(0, 1fr) minmax(200px, 280px); }
  .profile-hero .profile-side { grid-column: 1 / -1; justify-self: stretch; align-items: stretch; }
}
@media (max-width: 900px) {
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
  .profile-showcase-slot { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .profile-hero { grid-template-columns: minmax(0, 1fr); } }
/* the Profile fits one screen (2026-11-18): site.js sets --fit-h to the room left under the banner; boxes scroll inside */
@media (min-width: 1100px) {
  .profile-grid:not(.player-grid) > .profile-record, .profile-grid > .profile-history, .profile-grid > .profile-stack { max-height: var(--fit-h, calc(100vh - 330px)); }
  .profile-grid > .profile-history, .profile-grid > .profile-stack { height: var(--fit-h, calc(100vh - 330px)); }
  .profile-stack > .profile-dna { min-height: 120px; }
}
@media (min-width: 1100px) {
  .profile-stack > .card { padding: 14px 18px; }
  .profile-stack > .profile-links-box { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
  .profile-stack > .profile-dna { flex: 1 1 auto; min-height: 0; }
}

/* ----- Profile box colours and effects (2026-11-18): the player's own colour in --box-c, one fx-* class ----- */
.has-theme { border-color: var(--box-c); background: linear-gradient(180deg, color-mix(in srgb, var(--box-c) 14%, var(--panel-raised)), var(--panel)); }
.has-theme .col-title { color: color-mix(in srgb, var(--box-c) 70%, var(--text)); }
.fx-glow { box-shadow: 0 0 0 1px var(--box-c), 0 0 22px color-mix(in srgb, var(--box-c) 55%, transparent); }
.fx-gradient { background: linear-gradient(135deg, color-mix(in srgb, var(--box-c) 38%, var(--panel)) 0%, var(--panel) 65%); }
.fx-glass { background: color-mix(in srgb, var(--box-c) 10%, rgba(20, 34, 31, 0.55)); backdrop-filter: blur(10px) saturate(1.3); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--box-c) 40%, transparent); }
.fx-shimmer { border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--box-c) 12%, var(--panel-raised)), var(--panel)) padding-box,
  linear-gradient(110deg, var(--box-c) 0%, transparent 30%, var(--box-c) 50%, transparent 70%, var(--box-c) 100%) border-box;
  background-size: 100% 100%, 300% 100%; animation: fx-shimmer 4s linear infinite; }
@keyframes fx-shimmer { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, 300% 0; } }
.fx-pulse { animation: fx-pulse 2.6s ease-in-out infinite; }
@keyframes fx-pulse { 0%, 100% { box-shadow: 0 0 0 1px var(--box-c), 0 0 6px color-mix(in srgb, var(--box-c) 30%, transparent); }
  50% { box-shadow: 0 0 0 1px var(--box-c), 0 0 26px color-mix(in srgb, var(--box-c) 65%, transparent); } }
@media (prefers-reduced-motion: reduce) { .fx-shimmer, .fx-pulse { animation: none; } }
.theme-panel { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 640px); overflow-y: auto; padding: 14px 16px; box-shadow: var(--shadow); }
.theme-panel[hidden] { display: none; }
.theme-panel > p { margin: 0 0 8px; }
.theme-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.theme-row { display: grid; grid-template-columns: 130px 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.theme-row.is-set { border-color: var(--accent-deep); }
.theme-name { font-size: 0.88rem; font-weight: 600; }
.theme-row input[type=color] { width: 40px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; }
.theme-effects { display: flex; flex-wrap: wrap; gap: 4px; }
.theme-fx { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 500 0.78rem/1.3 var(--body); cursor: pointer; }
.theme-fx:hover { border-color: var(--accent); }
.theme-fx.active { border-color: var(--accent); background: var(--panel-raised); color: var(--accent); }
.theme-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 10px; }
@media (max-width: 560px) { .theme-row { grid-template-columns: minmax(0, 1fr) 40px auto; } .theme-effects { grid-column: 1 / -1; } }

/* ----- Rankings (2026-11-18): boards | podium + list | you; fits one screen at >=1100px ----- */
.rankings-page { display: grid; gap: 14px; }
.rankings-page > .card { padding: 16px 18px; min-width: 0; }
@media (min-width: 1100px) {
  .rankings-page { grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr) minmax(240px, 0.9fr); align-items: start; }
  .rankings-page > .card { height: var(--fit-h, calc(100vh - 200px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .rk-main { display: flex; flex-direction: column; overflow: hidden !important; }
  .rk-main .rk-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
}
.rk-boards { display: flex; flex-direction: column; gap: 8px; }
.rk-boards h1 { margin: 0 0 4px; font-size: 1.4rem; }
.rk-board { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.rk-board:hover { border-color: var(--accent); }
.rk-board.active { border-color: var(--accent); background: var(--panel-raised); }
.rk-board-name { font-weight: 700; }
.rk-board-top, .rk-board-you { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-board-top b, .rk-board-you b { color: var(--accent); }
.rk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.rk-head p { margin: 0; }
.rk-podium { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; }
.rk-step { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-raised); text-align: center; min-width: 0; }
.rk-step-1 { order: 2; border-color: var(--accent); padding-top: 18px; }
.rk-step-2 { order: 1; }
.rk-step-3 { order: 3; }
.rk-medal { font-size: 1.5rem; line-height: 1; }
.rk-step-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-step-tag { font-size: 0.78rem; font-style: italic; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-step-value { font: 700 1.15rem/1.1 var(--display); color: var(--accent); }
.rk-step.is-me, .rk-row.is-me { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel-raised)); }
.rk-face { display: grid; place-items: center; flex: none; border-radius: 50%; border: 2px solid var(--box-c, var(--line)); background: var(--panel); overflow: hidden; }
.rk-face img { width: 100%; height: 100%; display: block; }
.rk-face .profile-mark { width: 100%; height: 100%; font-size: 1rem; }
.rk-face-sm { width: 32px; height: 32px; }
.rk-face-lg { width: 76px; height: 76px; box-shadow: 0 0 16px color-mix(in srgb, var(--box-c, transparent) 50%, transparent); }
.rk-face-lg .profile-mark { font-size: 1.8rem; }
.rk-step-1 .rk-face-lg { width: 96px; height: 96px; }
.rk-list-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rk-search { flex: 1 1 auto; min-width: 0; }
.rk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rk-row { display: grid; grid-template-columns: 34px 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); }
.rk-row:nth-child(odd) { background: color-mix(in srgb, var(--panel-raised) 60%, transparent); }
.rk-row[hidden], .rk-none[hidden] { display: none; }
.rk-pos { font-weight: 700; color: var(--muted); text-align: right; }
.rk-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-value { font-weight: 700; white-space: nowrap; }
.rk-none { padding: 8px 10px; }
.rk-you { display: flex; flex-direction: column; gap: 8px; }
.rk-you-pos { display: flex; align-items: baseline; gap: 10px; }
.rk-you-big { font: 700 2.6rem/1 var(--display); color: var(--accent); }
.rk-gap { margin: 0; }
.rk-you-links { margin: auto 0 0; }
@media (max-width: 1099px) {
  .rk-boards { flex-direction: row; flex-wrap: wrap; }
  .rk-boards h1 { flex: 1 0 100%; }
  .rk-board { flex: 1 1 160px; }
}
@media (max-width: 560px) { .rk-podium { grid-template-columns: 1fr; } .rk-step-1, .rk-step-2, .rk-step-3 { order: 0; } }
.rk-step-1 { grid-column: 2; } .rk-step-2 { grid-column: 1; } .rk-step-3 { grid-column: 3; }
.rk-step { grid-row: 1; }
@media (max-width: 560px) { .rk-step-1, .rk-step-2, .rk-step-3 { grid-column: 1; grid-row: auto; } }

/* ----- Rankings 1:1 compare (2026-11-18) ----- */
.rk-row { grid-template-columns: 34px 32px minmax(0, 1fr) auto 28px; }
.rk-cmp { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-size: 0.9rem; }
.rk-cmp:hover { border-color: var(--accent); }
.rk-cmp-step { width: auto; height: auto; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; color: var(--text); margin-top: 4px; }
.cmp-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 60; width: min(760px, calc(100vw - 32px)); max-height: min(88vh, 820px); overflow-y: auto; padding: 16px 18px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6), var(--shadow); }
.cmp-panel[hidden] { display: none; }
.cmp-page { max-width: 820px; margin-inline: auto; }
.cmp-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 12px; }
.cmp-who { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.cmp-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
.cmp-score { display: grid; grid-template-columns: auto auto auto; align-items: center; justify-items: center; gap: 2px 10px; }
.cmp-score small { grid-column: 1 / -1; }
.cmp-score-n { font: 700 2.4rem/1 var(--display); color: var(--muted); }
.cmp-score-n.is-ahead { color: var(--accent); }
.cmp-vs { font: 700 0.9rem/1 var(--display); color: var(--muted); letter-spacing: 0.1em; }
.cmp-rows, .cmp-places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cmp-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 150px minmax(0, 1fr) 90px; align-items: center; gap: 8px; padding: 4px 0; }
.cmp-label { text-align: center; font-size: 0.85rem; color: var(--muted); }
.cmp-val { font-weight: 700; white-space: nowrap; color: var(--muted); }
.cmp-val.cmp-a { text-align: right; }
.cmp-val.is-win { color: var(--accent); }
.cmp-bar-wrap { display: flex; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--panel-raised) 70%, transparent); overflow: hidden; }
.cmp-bar-wrap.cmp-a { justify-content: flex-end; }
.cmp-bar { display: block; height: 100%; width: 2%; border-radius: 999px; background: var(--line); }
.cmp-bar.is-win { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.cmp-places-h { margin: 14px 0 6px; text-align: center; }
.cmp-places li { display: grid; grid-template-columns: 1fr 180px 1fr; align-items: center; gap: 8px; }
.cmp-place { font-weight: 700; color: var(--muted); }
.cmp-places li .cmp-place:first-child { text-align: right; }
.cmp-place.is-win { color: var(--accent); }
@media (max-width: 560px) {
  .cmp-row { grid-template-columns: 70px minmax(0, 1fr) 70px; }
  .cmp-row .cmp-bar-wrap { display: none; }
  .cmp-label { font-size: 0.78rem; }
  .cmp-places li { grid-template-columns: 1fr 120px 1fr; }
}

/* ----- Games (2026-11-18): games list | the game | you, big wins, how it pays; fits one screen at >=1100px ----- */
.games-page { display: grid; gap: 14px; }
.games-page > .card { padding: 16px 18px; min-width: 0; }
@media (min-width: 1100px) {
  .games-page { grid-template-columns: minmax(240px, 0.85fr) minmax(0, 2fr) minmax(260px, 0.95fr); align-items: start; }
  .games-page > .card { height: var(--fit-h, calc(100vh - 200px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.gm-list { display: flex; flex-direction: column; gap: 10px; }
.gm-wallet { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gm-wallet h1 { margin: 0; font-size: 1.4rem; }
.gm-left { margin: 0; font-size: 0.9rem; }
.gm-left b { color: var(--accent); font-size: 1.1rem; }
.gm-cards { display: flex; flex-direction: column; gap: 6px; }
.gm-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.gm-card:hover { border-color: var(--accent); }
.gm-card.active { border-color: var(--accent); background: var(--panel-raised); }
.gm-ico { font-size: 1.5rem; text-align: center; }
.gm-card-text { display: flex; flex-direction: column; min-width: 0; }
.gm-card-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-tag { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.gm-tag.is-ready { border-color: var(--accent); color: var(--accent); }
.gm-tag.is-wait { color: var(--muted); }
.gm-note { margin: auto 0 0; }
.gm-main .game h2 { margin-top: 0; }
.gm-main .stage { min-height: 0; }
.bet-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.bet-chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 600 0.8rem/1.2 var(--body); cursor: pointer; }
.bet-chip:hover, .bet-chip.active { border-color: var(--accent); color: var(--accent); }
.gm-side { display: flex; flex-direction: column; gap: 8px; }
.gm-side .col-title, .gm-side .slots-h { margin: 0; }
.gm-side .slots-h { margin-top: 6px; }
.gm-side p { margin: 0; }
.gm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gm-tiles .stat { padding: 8px 10px; }
.gm-tiles .stat strong { font-size: 1.05rem; }
.gm-feed li { padding: 5px 0; font-size: 0.88rem; }
.gm-side .odds { margin: 0; }
@media (max-width: 1099px) { .gm-cards { flex-direction: row; flex-wrap: wrap; } .gm-card { flex: 1 1 200px; } }
@media (min-width: 1100px) { .games-page { grid-template-columns: minmax(250px, 1fr) minmax(0, 1.55fr) minmax(270px, 1fr); } }
.gm-card { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
.gm-card-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-tiles .stat .label { font-size: 0.68rem; }
.gm-main .bet-chips { flex-basis: 100%; justify-content: center; }

/* ----- The games room (2026-11-18): marquee sign with chasing lights, big-wins ticker, felt table, poker chips ----- */
.gm-marquee { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 14px; }
.gm-sign { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 30px 16px; border-radius: 14px; background: linear-gradient(180deg, #2a1608, #120a04); border: 2px solid var(--accent-deep); box-shadow: 0 0 24px rgba(244, 178, 95, 0.25), inset 0 0 18px rgba(0, 0, 0, 0.6); }
/* the bulbs: one row along the top edge and one along the bottom, clear of the words (cleaned up 2026-11-18) */
.gm-sign::before, .gm-sign::after { content: ""; position: absolute; left: 10px; right: 10px; top: 4px; bottom: 4px; pointer-events: none;
  background: radial-gradient(circle, #ffe6bd 0 1.5px, rgba(255, 210, 120, 0.55) 2.5px, transparent 3.5px) 0 0 / 18px 8px repeat-x,
              radial-gradient(circle, #ffe6bd 0 1.5px, rgba(255, 210, 120, 0.55) 2.5px, transparent 3.5px) 0 100% / 18px 8px repeat-x;
  animation: gm-bulbs 0.9s steps(1) infinite; }
.gm-sign::after { background-position: 9px 0, 9px 100%; animation-delay: 0.45s; }
@keyframes gm-bulbs { 0% { opacity: 1; } 50% { opacity: 0.15; } }
.gm-sign-text { display: inline-flex; align-items: center; gap: 10px; font: 700 1.6rem/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #ffe6bd; text-shadow: 0 0 6px #f4b25f, 0 0 18px #dc7a30; white-space: nowrap; }
.gm-sign small { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.gm-ticker { position: relative; overflow: hidden; height: 40px; border-radius: 999px; border: 1px solid var(--accent-deep); background: #120a04; box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gm-ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: gm-ticker 40s linear infinite; }
.gm-ticker:hover .gm-ticker-track { animation-play-state: paused; }
.gm-ticker-set { display: flex; }
.gm-tick { padding: 0 28px; white-space: nowrap; color: #ffe6bd; font-weight: 600; font-size: 0.9rem; }
.gm-tick::after { content: "✦"; margin-left: 28px; color: var(--accent-deep); }
@keyframes gm-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* the room: a warm spotlight over the floor */
.games-page { background: radial-gradient(ellipse at 50% 0%, rgba(244, 178, 95, 0.10), transparent 65%); border-radius: var(--radius); }
/* the table: green felt, a wooden rail in amber, a stitched line */
.gm-main { position: relative; background: radial-gradient(ellipse at 50% 38%, #1f5c3d 0%, #143f2b 52%, #0b2619 100%); border: 3px solid #6b3a14;
  box-shadow: inset 0 0 0 3px #3a1f0b, inset 0 0 50px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.45); }
.gm-main::before { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(255, 230, 189, 0.22); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.gm-main .game h2 { font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: #ffe6bd; text-shadow: 0 0 10px rgba(244, 178, 95, 0.45); text-align: center; }
.gm-main .game > p { text-align: center; color: #d8e6dc; }
.gm-main .muted { color: #a9c2b2; }
.gm-main .bet input { background: rgba(0, 0, 0, 0.35); }
/* poker chips */
.bet-chip { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: none; border-radius: 50%; color: #1b1206; font: 800 0.78rem/1 var(--body);
  background: radial-gradient(circle, #f6ead2 0 52%, transparent 53%), repeating-conic-gradient(var(--accent-deep) 0 22.5deg, #f6ead2 22.5deg 45deg);
  box-shadow: 0 0 0 2px #3a1f0b, 0 4px 0 #3a1f0b, 0 6px 10px rgba(0, 0, 0, 0.5); transition: transform 0.08s; }
.bet-chip:nth-child(2) { background: radial-gradient(circle, #f6ead2 0 52%, transparent 53%), repeating-conic-gradient(#2f6fb0 0 22.5deg, #f6ead2 22.5deg 45deg); }
.bet-chip:nth-child(3) { background: radial-gradient(circle, #f6ead2 0 52%, transparent 53%), repeating-conic-gradient(#b0302f 0 22.5deg, #f6ead2 22.5deg 45deg); }
.bet-chip:nth-child(4) { background: radial-gradient(circle, #f6ead2 0 52%, transparent 53%), repeating-conic-gradient(#2b2b2b 0 22.5deg, #f6ead2 22.5deg 45deg); }
.bet-chip:nth-child(5) { background: radial-gradient(circle, #f6ead2 0 52%, transparent 53%), repeating-conic-gradient(#7a3cb0 0 22.5deg, #f6ead2 22.5deg 45deg); }
.bet-chip:hover { transform: translateY(-3px); color: #1b1206; }
.bet-chip.active { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--accent), 0 6px 0 #3a1f0b, 0 0 16px rgba(244, 178, 95, 0.7); color: #1b1206; }
.gm-main .bet-chips { gap: 10px; margin-top: 4px; }
/* the machines: lit up like a row of cabinets */
.gm-card { background: linear-gradient(180deg, #1a1208, #0f0a05); border-color: #3a2410; }
.gm-card .gm-ico { filter: drop-shadow(0 0 6px rgba(244, 178, 95, 0.55)); }
.gm-card:hover { border-color: var(--accent); box-shadow: 0 0 12px rgba(244, 178, 95, 0.3); }
.gm-card.active { border-color: var(--accent); background: linear-gradient(180deg, #2a1a0a, #160d05); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(244, 178, 95, 0.45); }
.gm-card.active b { color: #ffe6bd; text-shadow: 0 0 8px rgba(244, 178, 95, 0.6); }
.gm-tag.is-ready { animation: gm-bulbs 1.2s steps(1) infinite; }
.gm-list, .gm-side { background: linear-gradient(180deg, #120d07, var(--panel)); border-color: #3a2410; }
.gm-side .gain { text-shadow: 0 0 8px rgba(244, 178, 95, 0.35); }
@media (prefers-reduced-motion: reduce) { .gm-sign::before, .gm-sign::after, .gm-ticker-track, .gm-tag.is-ready { animation: none; } }
@media (max-width: 700px) { .gm-marquee { grid-template-columns: minmax(0, 1fr); } .gm-sign-text { font-size: 1.2rem; } }

/* ----- Dino races (2026-11-18): five lanes on the felt, runners are the dino logos, a chequered finish line ----- */
.race-stage { width: 100%; }
.race-track { position: relative; width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 10px 10px; border-radius: 12px;
  background: repeating-linear-gradient(90deg, rgba(120, 80, 40, 0.30) 0 40px, rgba(100, 66, 32, 0.30) 40px 80px), #3a2814; box-shadow: inset 0 0 0 2px #6b3a14, inset 0 0 20px rgba(0, 0, 0, 0.5); }
.race-lane { position: relative; height: 54px; border-bottom: 1px dashed rgba(255, 230, 189, 0.25); }
.race-lane:last-of-type { border-bottom: none; }
.race-lane.is-pick { background: linear-gradient(90deg, rgba(244, 178, 95, 0.18), transparent 70%); border-radius: 8px; }
.race-no { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 20px; text-align: center; font: 700 0.8rem/1 var(--display); color: #ffe6bd; opacity: 0.7; }
.race-runner { position: absolute; left: 0; top: 1px; width: 52px; height: 52px; margin-left: 22px; border-radius: 50%; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); transform: scaleX(-1); }
.race-runner img { width: 100%; height: 100%; display: block; }
.race-lane.is-running .race-runner { animation: race-bob 0.22s ease-in-out infinite alternate; }
@keyframes race-bob { from { margin-top: 0; } to { margin-top: -4px; } }
.race-lane.is-winner .race-runner { filter: drop-shadow(0 0 10px #f4b25f) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); }
.race-place { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); font-weight: 800; color: #ffe6bd; font-size: 0.85rem; text-shadow: 0 1px 2px #000; }
.race-finish { position: absolute; top: 6px; bottom: 6px; right: 14px; width: 12px; border-radius: 2px;
  background: repeating-conic-gradient(#f6ead2 0 25%, #111 0 50%) 0 0 / 12px 12px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); }
.race-form { flex-direction: column; }
.race-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; }
.race-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border: 1px solid rgba(255, 230, 189, 0.25); border-radius: 10px; background: rgba(0, 0, 0, 0.25); cursor: pointer; text-align: center; color: #ffe6bd; }
.race-pick input { position: absolute; opacity: 0; pointer-events: none; }
.race-pick img { width: 54px; height: 54px; }
.race-pick b { font-size: 0.78rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-pick small { font-size: 0.68rem; color: #a9c2b2; line-height: 1.2; }
.race-odds { font: 700 0.95rem/1.1 var(--display); color: var(--accent); }
.race-pick:hover { border-color: var(--accent); }
.race-pick:has(input:checked) { border-color: var(--accent); background: rgba(244, 178, 95, 0.16); box-shadow: 0 0 14px rgba(244, 178, 95, 0.4); }
.race-pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 700px) { .race-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } .race-pick small { display: none; } }
@media (prefers-reduced-motion: reduce) { .race-lane.is-running .race-runner { animation: none; } }
/* the commentator's booth under the track */
.race-booth { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin: 8px 0 4px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 230, 189, 0.2); min-height: 62px; }
.race-mic { font-size: 1.3rem; }
.race-calls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 96px; overflow: hidden; }
.race-calls li { color: #a9c2b2; font-size: 0.85rem; }
.race-calls li:first-child { color: #ffe6bd; font-weight: 700; font-size: 0.95rem; }
.race-calls li.is-hot:first-child { color: var(--accent); text-shadow: 0 0 8px rgba(244, 178, 95, 0.5); }
.race-lane.is-tripped .race-runner { transform: scaleX(-1) rotate(-35deg); }
.race-lane { height: 44px; }
.race-runner { width: 42px; height: 42px; }
.race-stage { margin: 8px 0 4px; }
.gm-main .game > p { margin: 4px 0; }
.race-calls { max-height: 132px; gap: 3px; }
.race-calls li { font-size: 0.9rem; }
.race-calls li:first-child { font-size: 1.02rem; }

/* ----- The Pit's newer games (2026-11-18): Hunt roulette, Nest raid, Higher or lower, Meteor crash, Apex (static/pit.js) ----- */
.pit { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.pit .stage { width: 100%; margin: 6px 0 2px; }
.pit-result { width: 100%; }
.pit-result.notice { text-align: center; }
.pit-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pit-actions[hidden], .pit-start[hidden] { display: none; }
.pit-start { flex-direction: column; width: 100%; }
.pit-seg, .hunt-bets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pit-seg-opt, .hunt-bet { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 12px; border: 1px solid rgba(255, 230, 189, 0.25); border-radius: 10px; background: rgba(0, 0, 0, 0.25); color: #ffe6bd; cursor: pointer; font-size: 0.85rem; }
.pit-seg-opt input, .hunt-bet input, .hunt-dino input { position: absolute; opacity: 0; pointer-events: none; }
.pit-seg-opt:has(input:checked), .hunt-bet:has(input:checked), .hunt-dino:has(input:checked) { border-color: var(--accent); background: rgba(244, 178, 95, 0.16); box-shadow: 0 0 14px rgba(244, 178, 95, 0.4); }
.pit-seg-opt:has(input:focus-visible), .hunt-bet:has(input:focus-visible), .hunt-dino:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pit .race-odds { font-size: 0.85rem; }
.pit-actions .button span { font-weight: 800; }
/* Hunt roulette: 23 pockets around a felt ring, a light chases round them */
.hunt-wheel { position: relative; width: min(100%, 330px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #1f4a3a 0 46%, #3a2410 47% 49%, #14362b 50% 70%, #6b3a14 71% 73%, #2a1a0c 74%); box-shadow: 0 0 0 3px #6b3a14, 0 10px 30px rgba(0, 0, 0, 0.6); }
.hunt-pocket { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.45); border: 2px solid rgba(255, 230, 189, 0.15); font-size: 1.1rem; transition: transform 0.12s; }
.hunt-pocket img { width: 100%; height: 100%; border-radius: 50%; }
.hunt-pocket.diet-carnivore { border-color: rgba(220, 80, 60, 0.55); }
.hunt-pocket.diet-herbivore { border-color: rgba(110, 190, 110, 0.55); }
.hunt-pocket.diet-omnivore { border-color: rgba(120, 160, 230, 0.6); }
.hunt-pocket.is-meteor { background: #4a1408; border-color: #ff7a3a; }
.hunt-pocket.is-lit { background: rgba(244, 178, 95, 0.55); box-shadow: 0 0 14px #f4b25f; transform: translate(-50%, -50%) scale(1.15); }
.hunt-pocket.is-landed { background: #f4b25f; box-shadow: 0 0 22px #f4b25f, 0 0 0 3px #fff4dc; transform: translate(-50%, -50%) scale(1.3); z-index: 1; }
.hunt-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 2.2rem; filter: drop-shadow(0 2px 4px #000); }
.hunt-one { width: 100%; text-align: center; }
.hunt-dinos { display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; }
.hunt-dino { position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 230, 189, 0.25); background: rgba(0, 0, 0, 0.25); cursor: pointer; }
.hunt-dino img { width: 100%; height: 100%; border-radius: 50%; }
/* Nest raid: a 5 x 5 nest of eggs */
.nest-head { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: #ffe6bd; font-size: 0.9rem; }
.nest-head b { font: 700 1.05rem/1 var(--display); color: var(--accent); }
.nest-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(100%, 330px); padding: 10px; border-radius: 14px; background: radial-gradient(circle, #5a3d1c, #2e1e0c); box-shadow: inset 0 0 0 2px #6b3a14, inset 0 0 24px rgba(0, 0, 0, 0.6); }
.nest-egg { aspect-ratio: 1; display: grid; place-items: center; font-size: 1.5rem; border: 1px solid rgba(255, 230, 189, 0.2); border-radius: 50% 50% 45% 45%; background: rgba(255, 244, 220, 0.08); cursor: pointer; transition: transform 0.12s, background 0.2s; }
.nest-egg:not(:disabled):hover { transform: translateY(-2px) scale(1.06); background: rgba(244, 178, 95, 0.2); }
.nest-egg:disabled { cursor: default; }
.nest-egg.is-cracking { animation: nest-shake 0.3s ease-in-out infinite; }
.nest-egg.is-safe { background: rgba(110, 190, 110, 0.25); border-color: rgba(110, 190, 110, 0.6); }
.nest-egg.is-boom { background: rgba(220, 60, 40, 0.55); border-color: #ff6a4a; box-shadow: 0 0 16px #ff6a4a; animation: nest-boom 0.4s ease-out; }
.nest-egg.is-pred { opacity: 0.55; }
@keyframes nest-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes nest-boom { from { transform: scale(1.4); } to { transform: scale(1); } }
/* Higher or lower: the dino on show, a size meter and the streak so far */
.sizes-stage { flex-direction: column; gap: 8px; }
.sizes-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 170px; min-height: 190px; padding: 10px; border-radius: 14px; background: linear-gradient(160deg, #2b5447, #14362b); border: 2px solid #c9974a; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55); color: #ffe6bd; animation: sizes-flip 0.35s ease-out; }
.sizes-card img { width: 110px; height: 110px; }
.sizes-card b { font: 700 1rem/1.1 var(--display); }
.sizes-card.is-wrong { border-color: #ff6a4a; box-shadow: 0 0 20px rgba(255, 106, 74, 0.6); }
.sizes-q { font: 700 4rem/1 var(--display); color: #c9974a; }
.sizes-meter { width: min(100%, 300px); height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.4); overflow: hidden; }
.sizes-fill { display: block; height: 100%; width: var(--fill, 0%); background: linear-gradient(90deg, #6ebe6e, #f4b25f, #e0583a); transition: width 0.4s; }
.sizes-trail { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; max-width: 100%; overflow-x: auto; }
.sizes-trail li img { width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); }
@keyframes sizes-flip { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
/* Meteor crash: a night sky, the meteor drops toward the ground as the multiplier climbs */
.meteor-sky { position: relative; width: 100%; height: 230px; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #7a2a10 0, #2a0e08 40%, #0b0a18 75%); box-shadow: inset 0 0 0 2px #6b3a14; }
.meteor-rock { position: absolute; left: calc(8% + var(--fall, 0) * 70%); top: calc(4% + var(--fall, 0) * 58%); font-size: calc(2rem + var(--fall, 0) * 2.4rem); filter: drop-shadow(0 0 12px #ff7a3a); transition: left 0.1s linear, top 0.1s linear; }
.meteor-mult { position: absolute; inset: 0; display: grid; place-items: center; font: 800 3.2rem/1 var(--display); color: #fff4dc; text-shadow: 0 0 18px rgba(244, 178, 95, 0.8); }
.meteor-sky.is-live .meteor-mult { color: hsl(calc(45 - var(--rise, 0) * 45), 95%, 70%); }
.meteor-ground { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 1.4rem; letter-spacing: 0.4rem; }
.meteor-sky.is-crashed { animation: meteor-shake 0.5s; background: radial-gradient(circle at 70% 70%, #ffb04a 0, #e0583a 25%, #4a1408 60%, #1a0806); }
.meteor-sky.is-crashed .meteor-rock { display: none; }
.meteor-sky.is-cashed .meteor-mult { color: #9fe39f; }
.big-cash { font-size: 1.2rem; padding: 12px 28px; }
@keyframes meteor-shake { 0%, 100% { transform: translate(0); } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }
/* Apex: dino cards on the felt, the house's second card face down */
.apex-stage { flex-direction: column; gap: 10px; }
.apex-row { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.apex-who { color: #ffe6bd; font-size: 0.9rem; }
.apex-who b { font: 700 1.1rem/1 var(--display); color: var(--accent); margin-left: 4px; }
.apex-hand { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 104px; }
.apex-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 74px; height: 104px; padding: 4px; border-radius: 9px; background: linear-gradient(170deg, #fff4dc, #e9d4aa); color: #2a1a0c; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5); animation: sizes-flip 0.3s ease-out; }
.apex-card img { width: 58px; height: 58px; margin-bottom: auto; }
.apex-card small { font-size: 0.6rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apex-val { position: absolute; top: 3px; left: 6px; font: 800 1rem/1 var(--display); color: #7a2a10; }
.apex-card.is-back { justify-content: center; background: repeating-linear-gradient(45deg, #6b3a14 0 6px, #4a2810 6px 12px); border: 2px solid #c9974a; }
.apex-back { font-size: 2rem; }
.apex-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; font-size: 0.78rem; }
.apex-values span { display: flex; align-items: center; gap: 4px; }
.apex-values img { width: 20px; height: 20px; }
.apex-values b { margin-left: auto; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .nest-egg.is-cracking, .nest-egg.is-boom, .sizes-card, .apex-card, .meteor-sky.is-crashed { animation: none; } }
@media (max-width: 700px) { .hunt-wheel, .nest-grid { width: min(100%, 290px); } .meteor-sky { height: 190px; } .meteor-mult { font-size: 2.4rem; } .apex-card { width: 62px; height: 92px; } .apex-card img { width: 46px; height: 46px; } }
.pit-start { align-items: center; }
@media (min-width: 1100px) {  /* keep each game and its bet on one screen inside the felt */
  .pit { gap: 6px; }
  .pit .stage { margin: 2px 0; }
  .hunt-wheel { width: min(100%, 250px); }
  .nest-grid { width: min(100%, 236px); gap: 4px; padding: 8px; }
  .nest-egg { font-size: 1.15rem; }
  .meteor-sky { height: 180px; }
  .sizes-card { width: 150px; min-height: 150px; }
  .sizes-card img { width: 80px; height: 80px; }
  .apex-hand { min-height: 90px; }
  .apex-card { width: 62px; height: 90px; }
  .apex-card img { width: 46px; height: 46px; }
  .pit-seg-opt, .hunt-bet { padding: 4px 10px; }
}

/* ----- Bounties (2026-11-18): the Wild West. A sheriff's office: a wooden wall, parchment wanted posters nailed to it
   (the player's Profile logo as the photo, sepia), the reward in big slab letters. Page-specific colours on purpose. ----- */
.bounty-page { --wood: #3b2414; --wood-2: #4a2e19; --parch: #ecd9b0; --parch-2: #d9bd86; --ink: #3a2412; --rust: #8a2f14;
  --west: "Rockwell", "Roboto Slab", "Courier New", Georgia, serif; display: grid; gap: 14px; }
.bounty-page > .card { padding: 16px 18px; min-width: 0; border-color: #5a3618;
  background: repeating-linear-gradient(0deg, var(--wood) 0 38px, #331f11 38px 40px), var(--wood);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55), 0 8px 22px rgba(0, 0, 0, 0.5); color: #f3e3c3; }
@media (min-width: 1100px) {
  .bounty-page { grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr) minmax(260px, 0.95fr); align-items: start; }
  .bounty-page > .card { height: var(--fit-h, calc(100vh - 200px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.bn-title { margin: 0; font: 900 1.7rem/1 var(--west); letter-spacing: 0.06em; text-transform: uppercase; color: var(--parch);
  text-shadow: 0 2px 0 #1c0f06, 0 0 18px rgba(244, 178, 95, 0.25); }
.bn-title::before { content: "⭐ "; color: #e6b34a; }
.bn-sub { margin: 4px 0 12px; font-style: italic; color: #d9c49b; font-size: 0.9rem; }
.bn-h { margin: 14px 0 8px; font: 800 1.05rem/1.1 var(--west); letter-spacing: 0.05em; text-transform: uppercase; color: var(--parch); }
.bn-h3 { margin: 16px 0 6px; font: 800 0.85rem/1.1 var(--west); letter-spacing: 0.08em; text-transform: uppercase; color: #e6b34a; }
/* the form: a parchment slip */
.bn-form { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 4px; color: var(--ink);
  background: radial-gradient(ellipse at 30% 20%, var(--parch), var(--parch-2)); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(120, 70, 20, 0.35); }
.bn-form .text { background: rgba(255, 248, 230, 0.75); color: var(--ink); border: 1px solid #a7834c; }
.bn-form .text::placeholder { color: #8a6d45; }
.bn-label { font: 800 0.8rem/1 var(--west); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust); }
.bn-search { position: relative; }
.bn-search .text { width: 100%; }
.bn-results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; border-radius: 6px;
  background: #fff4dc; border: 1px solid #a7834c; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); max-height: 260px; overflow-y: auto; }
.bn-results li { padding: 2px; }
.bn-results li.muted { padding: 6px 8px; color: #6b5233; }
.bn-result { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; border: none; border-radius: 4px; background: none; color: var(--ink); font-weight: 700; cursor: pointer; text-align: left; }
.bn-result:hover, .bn-result:focus-visible { background: rgba(138, 47, 20, 0.15); }
.bn-picked { margin: 0; color: var(--rust) !important; font-weight: 700; min-height: 1em; }
.bn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-form .pit-seg-opt { color: var(--ink); background: rgba(255, 248, 230, 0.6); border-color: #a7834c; }
.bn-form .pit-seg-opt:has(input:checked) { background: var(--rust); color: #fff4dc; border-color: var(--rust); box-shadow: none; }
.bn-lasts { justify-content: flex-start; }
.bn-total { margin: 4px 0 0; font-weight: 700; font-size: 0.88rem; }
.bn-total.gain { color: #2f6b2a; }
.bn-total.loss { color: var(--rust); }
.bn-form .button.amber { background: var(--rust); border-color: #5e1e0b; color: #fff4dc; font-family: var(--west); letter-spacing: 0.04em; text-transform: uppercase; }
.bn-form .button.amber:hover { background: #a3391a; }
/* the board: posters nailed to the wall */
.bn-board-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.bn-board-head h2 { margin: 0; font: 900 1.6rem/1 var(--west); letter-spacing: 0.12em; text-transform: uppercase; color: var(--parch); text-shadow: 0 2px 0 #1c0f06; }
.bn-board-head span { color: #d9c49b; font-size: 0.85rem; }
.bn-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; margin: 0; padding: 6px 4px 12px; list-style: none; }
.bn-poster { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 18px 12px 12px; text-align: center; color: var(--ink);
  background: radial-gradient(ellipse at 40% 25%, #f3e3bf, var(--parch-2) 75%, #c4a06a);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.55), inset 0 0 26px rgba(110, 60, 15, 0.45);
  clip-path: polygon(0 2%, 6% 0, 18% 1.5%, 33% 0, 50% 1%, 66% 0, 82% 1.6%, 94% 0, 100% 2.5%, 99% 20%, 100% 45%, 98.6% 70%, 100% 97%, 90% 100%, 72% 98.6%, 55% 100%, 38% 98.8%, 20% 100%, 4% 98.5%, 0 96%, 1.2% 70%, 0 45%, 1% 20%);
  transform: rotate(var(--tilt, -1.2deg)); transition: transform 0.18s; }
.bn-poster:nth-child(3n + 2) { --tilt: 1.4deg; }
.bn-poster:nth-child(3n) { --tilt: -0.4deg; }
.bn-poster:hover { transform: rotate(0deg) scale(1.03); z-index: 1; }
.bn-nail { position: absolute; top: 6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d8d1c4, #5d5850 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.bn-wanted { font: 900 2rem/0.95 var(--west); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.bn-doa { font: 800 0.66rem/1 var(--west); letter-spacing: 0.22em; text-transform: uppercase; color: var(--rust); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 3px 4px; margin-bottom: 4px; }
.bn-photo { padding: 5px; background: #f6ebd2; border: 2px solid var(--ink); box-shadow: inset 0 0 10px rgba(90, 50, 10, 0.4); }
.bn-photo .rk-face { width: 108px; height: 108px; border-radius: 0; border: none; background: #cdb58a; }
.bn-photo .rk-face img { filter: sepia(0.85) contrast(1.1) brightness(0.92); }
.bn-photo .profile-mark { font: 900 3rem/1 var(--west); color: var(--ink); background: none; }
.bn-name { margin-top: 4px; font: 900 1.05rem/1.1 var(--west); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.bn-name:hover { color: var(--rust); }
.bn-reward-label { font: 800 0.7rem/1 var(--west); letter-spacing: 0.3em; text-transform: uppercase; color: var(--rust); margin-top: 4px; }
.bn-reward { display: flex; flex-direction: column; align-items: center; font: 900 1.7rem/1 var(--west); color: var(--ink); }
.bn-reward small { font: 800 0.7rem/1.2 var(--west); letter-spacing: 0.25em; text-transform: uppercase; }
.bn-fine { font-size: 0.7rem; color: #5a4024; line-height: 1.25; }
.bn-add { margin-top: 6px; padding: 5px 10px; border: 1px solid var(--rust); border-radius: 3px; background: rgba(138, 47, 20, 0.1); color: var(--rust); font: 800 0.72rem/1 var(--west); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; }
.bn-add:hover { background: var(--rust); color: #fff4dc; }
.bn-you { margin-top: 6px; font: 800 0.75rem/1 var(--west); color: var(--rust); text-transform: uppercase; }
.bn-poster.is-top { grid-column: span 2; }
.bn-poster.is-you { outline: 3px dashed var(--rust); outline-offset: -8px; }
.bn-empty { max-width: 320px; margin: 30px auto; }
.bn-empty p { margin: 8px 0 0; font-size: 0.9rem; }
/* the side: notices */
.bn-onme { margin: 0 0 8px; }
.bn-feed li { align-items: center; }
.bn-feed .rk-face { width: 24px; height: 24px; vertical-align: middle; }
.bn-side .board-player { color: #f3d79c; }
.bn-rules { margin: 0; padding-left: 18px; font-size: 0.82rem; line-height: 1.4; color: #e3d1ad; }
.bn-rules li + li { margin-top: 5px; }
@media (max-width: 700px) { .bn-poster.is-top { grid-column: auto; } .bn-posters { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .bn-wanted { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .bn-poster { transition: none; } }
/* Bounties, comic book touches (2026-11-18: "fun and entertaining, comic book / Wild West, immersive") */
.bn-board { background-image: radial-gradient(rgba(0, 0, 0, 0.22) 1.2px, transparent 1.4px), repeating-linear-gradient(0deg, var(--wood) 0 38px, #331f11 38px 40px); background-size: 7px 7px, auto; }
.bn-wanted { text-shadow: 2px 2px 0 var(--rust), 4px 4px 0 rgba(0, 0, 0, 0.18); }
.bn-alias { font: italic 700 0.78rem/1.1 var(--west); color: var(--rust); }
.bn-crimes { margin: 4px 0 2px; padding: 4px 6px; list-style: none; border: 1px dashed rgba(58, 36, 18, 0.5); font-size: 0.7rem; line-height: 1.3; color: var(--ink); text-align: left; width: 100%; }
.bn-crimes::before { content: "Wanted for:"; display: block; font: 800 0.62rem/1.2 var(--west); letter-spacing: 0.15em; text-transform: uppercase; color: var(--rust); }
.bn-crimes li::before { content: "✗ "; color: var(--rust); font-weight: 900; }
.bn-photo { position: relative; }
.bn-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg); padding: 2px 8px; border: 3px double #b0261a; border-radius: 4px; color: #b0261a; background: rgba(255, 244, 220, 0.65);
  font: 900 0.8rem/1.1 var(--west); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; mix-blend-mode: multiply; }
.bn-stamp.is-live { top: auto; bottom: -6px; transform: translateX(-50%) rotate(-6deg); font-size: 0.66rem; color: #1f6b25; border-color: #1f6b25; animation: bn-blink 1.6s steps(1) infinite; }
@keyframes bn-blink { 50% { opacity: 0.45; } }
.bn-sheriff { display: flex; align-items: flex-start; gap: 10px; margin: -4px 0 16px; }
.bn-sheriff-face { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 2px 2px #000); }
.bn-bubble { position: relative; margin: 2px 0 0; padding: 8px 12px; border: 2px solid #1c0f06; border-radius: 14px; background: #fff8e6; color: #1c0f06; font: 700 0.86rem/1.3 "Comic Sans MS", "Comic Neue", var(--west); box-shadow: 3px 3px 0 #1c0f06; }
.bn-bubble::before { content: ""; position: absolute; left: -11px; top: 12px; border: 6px solid transparent; border-right: 9px solid #1c0f06; }
.bn-bubble::after { content: ""; position: absolute; left: -6px; top: 13px; border: 5px solid transparent; border-right: 7px solid #fff8e6; }
.bn-collected { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.bn-caught { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(243, 227, 195, 0.12); }
.bn-caught-face { position: relative; }
.bn-caught-face .rk-face { width: 48px; height: 48px; filter: grayscale(0.7) sepia(0.4); }
.bn-caught-face .bn-stamp { font-size: 0.5rem; padding: 1px 4px; border-width: 2px; }
.bn-caught-text { font-size: 0.8rem; line-height: 1.35; }
.bn-bang { position: absolute; right: -6px; top: -10px; z-index: 1; padding: 4px 9px 5px; color: #1c0f06; background: #ffd23f; font: 900 0.72rem/1 "Impact", "Arial Black", var(--west); letter-spacing: 0.04em; transform: rotate(8deg);
  clip-path: polygon(50% 0, 61% 22%, 85% 6%, 78% 32%, 100% 38%, 80% 54%, 96% 78%, 70% 72%, 62% 100%, 50% 78%, 36% 100%, 30% 72%, 4% 80%, 20% 56%, 0 40%, 22% 32%, 14% 6%, 38% 22%); text-shadow: 1px 1px 0 #fff; }
.bn-caught:nth-child(even) .bn-bang { background: #ff6b3d; transform: rotate(-7deg); }
.bn-tumbleweed { display: block; width: 46px; height: 46px; margin: 10px 0 0; border-radius: 50%; border: 3px dotted #a8823f; box-shadow: inset 0 0 0 6px rgba(168, 130, 63, 0.4), inset 0 0 0 12px rgba(168, 130, 63, 0.25); animation: bn-roll 7s linear infinite; }
@keyframes bn-roll { 0% { transform: translateX(-60px) rotate(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translateX(calc(50cqw)) translateY(-10px) rotate(360deg); } 90% { opacity: 1; } 100% { transform: translateX(calc(100cqw)) rotate(720deg); opacity: 0; } }
.bn-board { container-type: inline-size; overflow-x: hidden; }
.bn-form .button.amber:active { transform: scale(0.97) rotate(-1deg); }
@media (prefers-reduced-motion: reduce) { .bn-stamp.is-live, .bn-tumbleweed { animation: none; } }
/* Bounties: the extras (top hunters, sheriff's badge, WANTED badge, live board) */
.bn-top { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.bn-top li { display: grid; grid-template-columns: 20px 26px minmax(0, 1fr) auto; align-items: center; gap: 6px; font-size: 0.82rem; }
.bn-top .rk-face { width: 26px; height: 26px; }
.bn-top .board-player { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-rank { font: 900 0.9rem/1 var(--west); color: #e6b34a; text-align: center; }
.bn-top-n { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.bn-top-n small { font-size: 0.65rem; color: #c9b48c; }
.bn-badge { margin-top: 18px; padding-top: 4px; border-top: 2px dashed rgba(230, 179, 74, 0.4); }
.bn-badge .bn-h small { font: 600 0.65rem/1 var(--west); color: #e6b34a; letter-spacing: 0.1em; }
.bn-admin { margin-top: 10px; }
.bn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bn-grid label { display: flex; flex-direction: column; gap: 2px; font-size: 0.72rem; font-weight: 700; color: var(--ink); }
.bn-grid .text { width: 100%; padding: 5px 8px; }
.bn-takedown { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.78rem; }
.bn-takedown li { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bn-takedown form { margin: 0; }
.bn-takedown .bn-add { margin: 0; white-space: nowrap; }
.bn-raised { position: absolute; right: -4px; top: 18px; z-index: 2; font-size: 0.9rem; animation: bn-pop 0.5s ease-out; }
.bn-poster.is-raised { animation: bn-shake 0.6s; }
.bn-poster.is-new { animation: bn-drop 0.7s ease-out; }
@keyframes bn-pop { from { transform: rotate(8deg) scale(0.2); } 70% { transform: rotate(8deg) scale(1.25); } to { transform: rotate(8deg) scale(1); } }
@keyframes bn-shake { 0%, 100% { transform: rotate(var(--tilt, -1.2deg)); } 25% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }
@keyframes bn-drop { from { transform: translateY(-60px) rotate(-8deg); opacity: 0; } 70% { transform: translateY(6px) rotate(2deg); opacity: 1; } to { transform: rotate(var(--tilt, -1.2deg)); } }
.wanted-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; border: 2px solid #b0261a; background: #f3e3bf; color: #8a2f14; font: 900 0.72rem/1 "Rockwell", Georgia, serif; letter-spacing: 0.06em; text-decoration: none; animation: bn-blink 2s steps(1) infinite; white-space: nowrap; }
.wanted-chip b { color: #3a2412; }
.wanted-banner { display: block; margin: 0 0 8px; padding: 6px 10px; border: 2px dashed #b0261a; border-radius: 6px; background: #f3e3bf; color: #8a2f14; font: 800 0.82rem/1.3 "Rockwell", Georgia, serif; text-decoration: none; }
.wanted-banner b { color: #3a2412; }
@media (prefers-reduced-motion: reduce) { .wanted-chip, .bn-poster.is-raised, .bn-poster.is-new, .bn-raised { animation: none; } }
/* Bounties fixes after the demo test: a wider office column, the reward on one line, the big poster only where it fits */
@media (min-width: 1100px) { .bounty-page { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.75fr) minmax(280px, 1fr); } }
.bn-reward { display: block; text-align: center; white-space: nowrap; }
.bn-reward small { display: block; }
.bn-poster.is-top { grid-column: auto; }
@container (min-width: 620px) { .bn-poster.is-top { grid-column: span 2; } }
.bn-chips .bet-chip { font-size: 0.68rem; }
.wanted-chip { padding: 4px 8px; }
.wanted-word { display: none; }
@media (min-width: 1500px) { .wanted-word { display: inline; } }
.bn-onme { background: #f3e3bf; border: 2px dashed #b0261a; color: #8a2f14; opacity: 1; }
.bn-onme p { margin: 0; font: 800 0.85rem/1.35 var(--west); color: #8a2f14; }
.bn-onme strong { color: #3a2412; }
.wanted-chip { padding: 3px 7px; }
.bn-coin { font-size: 0.6em; vertical-align: 0.2em; }
@media (max-width: 1099px) { .bn-board { order: -1; } }
/* The sheriff is a cowboy dino (Vengefulmink, 2026-11-18): the T. rex logo in a cowboy hat with a tin star */
.bn-sheriff-face { position: relative; flex: none; width: 58px; height: 58px; font-size: 0; filter: none; }
.bn-sheriff-face img { width: 58px; height: 58px; border-radius: 50%; background: #2a1a0c; border: 2px solid #c9974a; transform: scaleX(-1); }
.bn-hat { position: absolute; left: -2px; top: -20px; width: 62px; height: 31px; transform: rotate(-10deg); filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.6)); }
.bn-star { position: absolute; right: -4px; bottom: -2px; font-size: 1.1rem; line-height: 1; color: #e6c35a; text-shadow: 0 0 0 #000, 1px 1px 0 #6b4a10; }
.bn-sheriff { margin-top: 10px; align-items: center; }
/* a bounty collected (or run out) while you watch: the stamp slams on, then the poster tears off the wall */
.bn-stamp.bn-slam { z-index: 3; top: 42%; font-size: 1.6rem; padding: 4px 12px; border-width: 4px; animation: bn-slam 0.45s cubic-bezier(.2, 1.6, .4, 1); }
.bn-stamp.bn-slam.is-expired { color: #5a4024; border-color: #5a4024; }
.bn-poster.is-collected { animation: bn-tear 0.9s 2.3s ease-in forwards; }
.bn-poster.is-expired { filter: grayscale(0.8); animation: bn-tear 0.9s 2.3s ease-in forwards; }
@keyframes bn-slam { from { transform: translate(-50%, -50%) rotate(-14deg) scale(3); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 1; } }
@keyframes bn-tear { to { transform: translateY(120px) rotate(18deg); opacity: 0; } }
.bn-dev { margin: 4px 0 0; }
.bn-dev-btn { border-style: dashed; opacity: 0.8; }
@media (prefers-reduced-motion: reduce) { .bn-stamp.bn-slam, .bn-poster.is-collected, .bn-poster.is-expired { animation: none; } }
/* The sheriff's desk (admins only, 2026-11-18): dark leather with brass trim, a tin star, three tabs (pure CSS radios) */
.bounty-page > .bn-desk { margin: 0; border-radius: 10px; padding: 14px; color: #f3e3c3;
  background: radial-gradient(ellipse at 30% 0%, #4a2a16, #24130a 75%); border: 2px solid #b8893a; display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 4px #24130a, inset 0 0 0 5px rgba(230, 195, 90, 0.45), 0 8px 18px rgba(0, 0, 0, 0.55); }
.bn-desk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bn-desk-head h2 { margin: 0; font: 900 1.05rem/1 var(--west); letter-spacing: 0.08em; text-transform: uppercase; color: #f0d27a; text-shadow: 0 1px 0 #000; }
.bn-desk-head small { color: #c9b48c; font-size: 0.72rem; }
.bn-desk-star { display: grid; place-items: center; width: 40px; height: 40px; flex: none; font-size: 2.3rem; line-height: 1; color: #e6c35a;
  background: radial-gradient(circle, #fff3c4 0, #e6c35a 40%, #8a6420 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 2px #000); }
.bn-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; flex: 1; min-height: 0; grid-template-rows: auto 1fr; }
.bn-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.bn-tabs > label { text-align: center; overflow: hidden; text-overflow: ellipsis; padding: 8px 6px; border-radius: 6px 6px 0 0; background: rgba(0, 0, 0, 0.3); color: #c9b48c; font: 800 0.72rem/1 var(--west); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.bn-tabs > label b { display: inline-block; min-width: 16px; margin-left: 3px; padding: 1px 4px; border-radius: 8px; background: #b0261a; color: #fff; font-size: 0.65rem; text-align: center; }
.bn-tabs > input:checked + label { background: #f3e3bf; color: var(--ink); }
.bn-tabs > input:focus-visible + label { outline: 2px solid #f0d27a; }
.bn-pane { display: none; grid-column: 1 / -1; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; scrollbar-width: thin; margin: 0; padding: 12px; border-radius: 0 6px 6px 6px; color: var(--ink);
  background: radial-gradient(ellipse at 30% 20%, var(--parch), var(--parch-2)); box-shadow: inset 0 0 24px rgba(120, 70, 20, 0.35); }
.bn-tabs:has(#bn-tab-rules:checked) .bn-pane-rules, .bn-tabs:has(#bn-tab-server:checked) .bn-pane-server, .bn-tabs:has(#bn-tab-down:checked) .bn-pane-down { display: flex; }
.bn-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 800 0.8rem/1 var(--west); text-transform: uppercase; letter-spacing: 0.04em; color: var(--rust); }
.bn-switch { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(58, 36, 18, 0.2); }
.bn-switch input { position: absolute; opacity: 0; pointer-events: none; }
.bn-switch label { padding: 4px 12px; border-radius: 999px; cursor: pointer; font: 800 0.72rem/1 var(--west); color: #6b5233; }
.bn-switch input:checked + label { background: var(--rust); color: #fff4dc; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.bn-switch input[value="0"]:checked + label { background: #5a4024; }
.bn-switch input:focus-visible + label { outline: 2px solid var(--rust); }
.bn-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bn-fields label, .bn-fields-one { display: flex; flex-direction: column; gap: 2px; }
.bn-fields .wide { grid-column: 1 / -1; }
.bn-fields span, .bn-fields-one span, .bn-desk-label { font: 800 0.66rem/1.1 var(--west); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust); }
.bn-desk .text { width: 100%; padding: 5px 8px; background: rgba(255, 248, 230, 0.8); color: var(--ink); border: 1px solid #a7834c; }
.bn-chipset { display: flex; flex-wrap: wrap; gap: 4px; }
.bn-chipset label { position: relative; cursor: pointer; }
.bn-chipset input { position: absolute; opacity: 0; pointer-events: none; }
.bn-chipset span { display: inline-block; padding: 4px 10px; border: 1px solid #a7834c; border-radius: 999px; background: rgba(255, 248, 230, 0.6); font-size: 0.75rem; font-weight: 700; }
.bn-chipset input:checked + span { background: var(--rust); border-color: var(--rust); color: #fff4dc; }
.bn-chipset input:focus-visible + span { outline: 2px solid var(--rust); }
.bn-desk-btn { margin-top: 2px; padding: 8px 12px; border: 2px solid #8a6420; border-radius: 6px; cursor: pointer; color: #2a160a;
  background: linear-gradient(180deg, #f6dd8a, #d6aa45); font: 900 0.8rem/1 var(--west); letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 2px 0 #6b4a10; }
.bn-desk-btn:hover { filter: brightness(1.07); }
.bn-desk-btn:active { transform: translateY(1px); box-shadow: none; }
.bn-desk-note { margin: 0; font-size: 0.78rem; color: #5a4024; font-style: italic; }
.bn-pane-down .bn-takedown li { padding: 6px 0; border-bottom: 1px dashed rgba(58, 36, 18, 0.3); }
.bn-pane-down .bn-takedown li:last-child { border-bottom: none; }
.bn-pane-down .bn-takedown small { display: block; color: #6b5233; }
.bn-x { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rust); background: transparent; color: var(--rust); font-weight: 900; cursor: pointer; }
.bn-x:hover { background: var(--rust); color: #fff4dc; }

/* Bounties page fills the screen; the sheriff's desk is its own column for admins (2026-11-18, round 2) */
main:has(> .bounty-page), main:has(.bounty-page) { max-width: min(1840px, 100%); }
.bn-group { margin: 0; padding: 10px; border: 1px solid rgba(138, 47, 20, 0.28); border-radius: 8px; background: rgba(255, 248, 230, 0.35); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bn-group legend { padding: 0 6px; font: 900 0.78rem/1 var(--west); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.bn-group legend.bn-switch-row { display: flex; width: 100%; padding: 0; float: left; }
.bn-group legend.bn-switch-row + * { clear: both; }
.bn-switch-row > span:first-child { display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.bn-hint { font: italic 500 0.72rem/1.25 system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #6b5233; }
.bn-fields label { min-width: 0; }
.bn-desk .text { min-width: 0; box-sizing: border-box; font-size: 0.95rem; }
.bn-desk .bn-desk-btn { position: sticky; bottom: 0; padding: 11px 12px; font-size: 0.85rem; }
@media (min-width: 1100px) {
  .bounty-page.has-desk > .bn-desk { grid-column: 1 / -1; height: auto; overflow: visible; }
}
@media (min-width: 1500px) {
  .bounty-page.has-desk { grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.55fr) minmax(270px, 0.95fr) minmax(330px, 1fr); }
  .bounty-page.has-desk > .bn-desk { grid-column: auto; height: var(--fit-h, calc(100vh - 200px)); overflow: hidden; }
}
/* Office: "How it works" + the rules sit under the form; empty board centred; desk tabs wrap (2026-11-18, round 2) */
.bn-post { display: flex; flex-direction: column; gap: 10px; }
.bn-post > * { margin-top: 0; margin-bottom: 0; }
.bn-law { margin-top: auto; padding: 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); border: 1px dashed rgba(230, 195, 90, 0.35); }
.bn-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; counter-reset: bn-how; }
.bn-how li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 6px; text-align: center; font-size: 0.72rem; line-height: 1.2; color: #e3d1ad;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 210, 122, 0.16), transparent 70%); }
.bn-how li span { font-size: 1.5rem; line-height: 1; }
.bn-how li b { font: 900 0.78rem/1.2 var(--west); letter-spacing: 0.06em; text-transform: uppercase; color: #f0d27a; }
.bn-law .bn-h3 { margin: 0 0 6px; }
.bn-board:has(> .bn-empty) { display: flex; flex-direction: column; }
.bn-board > .bn-empty { margin: auto; max-width: 420px; padding: 34px 28px 30px; transform: rotate(-1.5deg); }
.bn-board > .bn-empty .bn-wanted { font-size: 3rem; }
.bn-board > .bn-empty p { font-size: 1rem; }
.bn-board > .bn-tumbleweed { margin: 0 0 8px; }
.bn-tabs > label { white-space: normal; text-overflow: clip; line-height: 1.25; display: flex; align-items: center; justify-content: center; gap: 4px; }
.bn-group.bn-switch-row { flex-direction: row; align-items: center; }
@media (min-width: 1100px) and (max-width: 1499px) {
  .bn-tabs:has(#bn-tab-rules:checked) .bn-pane-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .bn-pane-rules > .bn-switch-row:first-child, .bn-pane-rules > .bn-desk-btn { grid-column: 1 / -1; }
  .bn-pane-server, .bn-pane-down { max-width: 640px; }
}
/* Bounty extras round 3 (2026-11-18): danger skulls, poster share, saloon sounds toggle, "You're wanted!" toast */
.bn-danger { display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.1; }
.bn-skulls { display: inline-flex; gap: 3px; font-size: 1.35rem; }
.bn-skulls i { font-style: normal; color: rgba(58, 36, 18, 0.22); }
.bn-skulls i.on { color: var(--rust); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.bn-danger[data-level="5"] .bn-skulls i.on { color: #b0170c; animation: bn-throb 1.6s ease-in-out infinite; }
.bn-danger small { font: 800 0.62rem/1.2 var(--west); letter-spacing: 0.08em; text-transform: uppercase; color: #5a4024; }
@keyframes bn-throb { 50% { transform: scale(1.18); } }
.bn-poster { position: relative; }
.bn-share { position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid rgba(58, 36, 18, 0.5);
  background: rgba(255, 248, 230, 0.7); font-size: 0.9rem; line-height: 1; cursor: pointer; opacity: 0.55; transition: opacity 0.15s, transform 0.15s; }
.bn-poster:hover .bn-share, .bn-share:focus-visible { opacity: 1; }
.bn-share:hover { transform: scale(1.12) rotate(-6deg); }
.bn-board-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bn-board-head > span { margin-left: auto; }
.bn-sound { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(230, 195, 90, 0.45); background: rgba(0, 0, 0, 0.25); color: #e3d1ad;
  font: 800 0.7rem/1 var(--west); letter-spacing: 0.04em; cursor: pointer; white-space: nowrap; }
.bn-sound[aria-pressed="true"] { background: #b8893a; color: #2a160a; border-color: #f0d27a; }
.bn-toast { position: fixed; right: 18px; bottom: 18px; z-index: 1100; display: flex; align-items: center; gap: 12px; max-width: min(440px, calc(100vw - 32px));
  padding: 12px 14px; color: #3a2412; border-radius: 4px; border: 2px solid #3a2412;
  background: radial-gradient(ellipse at 30% 20%, #f3e2bb, #d6b679); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  animation: bn-toast-in 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both; transform-origin: 100% 100%; }
.bn-toast.is-out { animation: bn-toast-out 0.6s ease-in forwards; }
.bn-toast-tag { flex: none; padding: 6px 8px; transform: rotate(-8deg); border: 3px double #8a2f14; color: #8a2f14;
  font: 900 1rem/1 "Rockwell", "Roboto Slab", Georgia, serif; letter-spacing: 0.08em; text-transform: uppercase; }
.bn-toast div { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.bn-toast div b { font: 900 1rem/1.1 "Rockwell", "Roboto Slab", Georgia, serif; }
.bn-toast-go { flex: none; padding: 7px 10px; border-radius: 4px; background: #8a2f14; color: #fff4dc; font-weight: 800; font-size: 0.78rem; text-decoration: none; white-space: nowrap; }
.bn-toast-x { position: absolute; top: -10px; right: -10px; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid #3a2412; background: #f3e2bb; color: #3a2412; font-size: 0.7rem; cursor: pointer; }
@keyframes bn-toast-in { from { opacity: 0; transform: translateY(40px) rotate(6deg) scale(0.85); } }
@keyframes bn-toast-out { to { opacity: 0; transform: translateY(30px) rotate(-4deg); } }
@media (max-width: 560px) { .bn-toast { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .bn-toast, .bn-toast.is-out, .bn-danger[data-level="5"] .bn-skulls i.on { animation: none; } }
/* Top poster: same size as the rest, marked with a "#1 Most wanted" ribbon instead (2026-11-18, Vengefulmink) */
.bn-poster.is-top, .bn-posters .bn-poster.is-top { grid-column: auto; }
@container (min-width: 620px) { .bn-posters .bn-poster.is-top { grid-column: auto; } }
.bn-poster:has(> .bn-ribbon) { padding-top: 40px; }
.bn-ribbon { position: absolute; top: 14px; left: 50%; z-index: 3; padding: 5px 14px; transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(180deg, #b0261a, #7d1a10); color: #fff4dc; font: 900 0.68rem/1 "Rockwell", "Roboto Slab", Georgia, serif;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%); }
.bn-poster.is-top { box-shadow: 0 0 0 3px rgba(240, 210, 122, 0.55), 0 10px 22px rgba(0, 0, 0, 0.5); }
/* Admin view (2026-11-18): the header's Public/Admin switch (admins only), the gold edge that says you're in Admin view,
   and the Sheriff's desk log tab */
.site-head { position: relative; }
.admin-switch { position: fixed; left: 14px; bottom: 14px; z-index: 900; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgba(10, 14, 12, 0.92); border: 1px solid rgba(230, 195, 90, 0.5); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.admin-switch button { padding: 6px 11px; border: 0; border-radius: 999px; background: transparent; color: #c9c2ae; font: 700 0.78rem/1 system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.admin-switch button:hover { color: #fff; }
.admin-switch button[aria-pressed="true"] { background: #e6c35a; color: #1d1405; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.admin-switch button[value="public"][aria-pressed="true"] { background: #e9ecef; color: #12161a; }
.admin-switch button:focus-visible { outline: 2px solid #e6c35a; outline-offset: 2px; }
@media (min-width: 1600px) {
  .admin-switch { position: absolute; left: 18px; top: 50%; bottom: auto; transform: translateY(-50%); box-shadow: none; }
}
body[data-admin-view] .site-head { box-shadow: inset 0 3px 0 #e6c35a; }
.bn-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bn-tabs:has(#bn-tab-log:checked) .bn-pane-log { display: flex; }
.bn-log { margin: 0; padding: 0; list-style: none; }
.bn-log li { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-bottom: 1px dashed rgba(58, 36, 18, 0.3); font-size: 0.8rem; }
.bn-log li:last-child { border-bottom: none; }
.bn-log span { color: #3a2412; overflow-wrap: anywhere; }
.bn-log small { color: #6b5233; }
/* Admin desks (2026-11-18): the shared look of every page's admin panel in Admin view. Dark slate with a gold edge
   (the header's Admin view colour), CSS-only tabs, chip pickers, clear give/danger buttons. Bounties keeps its
   western Sheriff's desk. */
.adm-desk { --adm-gold: #e6c35a; --adm-ink: #e8e4d8; --adm-dim: #a9a291; --adm-bg: #151a1d; --adm-bg2: #1e2529;
  display: flex; flex-direction: column; gap: 10px; padding: 14px; color: var(--adm-ink);
  background: linear-gradient(180deg, var(--adm-bg2), var(--adm-bg)); border: 1px solid rgba(230, 195, 90, 0.55);
  box-shadow: inset 0 3px 0 var(--adm-gold), 0 8px 20px rgba(0, 0, 0, 0.35); border-radius: 12px; min-width: 0; }
.adm-head { display: flex; align-items: center; gap: 10px; }
.adm-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--adm-gold); }
.adm-head small { color: var(--adm-dim); font-size: 0.74rem; }
.adm-badge { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: rgba(230, 195, 90, 0.14); font-size: 1.2rem; }
.adm-msg { margin: 0; padding: 8px 10px; border-radius: 8px; font-size: 0.85rem; overflow-wrap: anywhere; }
.adm-msg.is-done { background: rgba(87, 242, 135, 0.12); border: 1px solid rgba(87, 242, 135, 0.4); }
.adm-msg.is-bad { background: rgba(237, 66, 69, 0.12); border: 1px solid rgba(237, 66, 69, 0.45); }
.adm-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; min-height: 0; }
.adm-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.adm-tabs > label { padding: 8px 4px; border-radius: 8px 8px 0 0; text-align: center; font-weight: 700; font-size: 0.8rem; color: var(--adm-dim);
  background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.adm-tabs > input:checked + label { color: #1d1405; background: var(--adm-gold); }
.adm-tabs > input:focus-visible + label { outline: 2px solid var(--adm-gold); outline-offset: 1px; }
.adm-pane { display: none; grid-column: 1 / -1; flex-direction: column; gap: 10px; padding: 12px; border-radius: 0 0 10px 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(230, 195, 90, 0.25); min-width: 0; }
.adm-tabs:has(#adm-tab-dino:checked) .adm-pane-dino, .adm-tabs:has(#adm-tab-wallet:checked) .adm-pane-wallet,
.adm-tabs:has(#adm-tab-server:checked) .adm-pane-server, .adm-tabs:has(#adm-tab-log:checked) .adm-pane-log { display: flex; }
.adm-group { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); }
.adm-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--adm-gold); }
.adm-label em { margin-left: 6px; font-style: normal; text-transform: none; letter-spacing: 0; color: #57f287; }
.adm-note { margin: 0; font-size: 0.78rem; color: var(--adm-dim); }
.adm-row { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-row form { margin: 0; }
.adm-fields { display: grid; grid-template-columns: minmax(80px, 0.6fr) minmax(0, 1.4fr); gap: 6px; }
.adm-desk .text { width: 100%; min-width: 0; box-sizing: border-box; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-chips label { position: relative; cursor: pointer; }
.adm-chips input { position: absolute; opacity: 0; pointer-events: none; }
.adm-chips span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.78rem; font-weight: 700; color: var(--adm-ink); }
.adm-chips input:checked + span { background: var(--adm-gold); border-color: var(--adm-gold); color: #1d1405; }
.adm-chips input:focus-visible + span { outline: 2px solid var(--adm-gold); }
.adm-btn { padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(230, 195, 90, 0.6); background: rgba(230, 195, 90, 0.16); color: var(--adm-ink);
  font-weight: 800; font-size: 0.82rem; cursor: pointer; }
.adm-btn:hover { background: rgba(230, 195, 90, 0.28); }
.adm-btn.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.22); }
.adm-btn.warn { border-color: #faa61a; background: rgba(250, 166, 26, 0.16); }
.adm-btn.danger { border-color: #ed4245; background: rgba(237, 66, 69, 0.16); }
.adm-btn.danger:hover { background: rgba(237, 66, 69, 0.3); }
.adm-btn:disabled { opacity: 0.6; cursor: progress; }
.adm-balances { display: flex; gap: 14px; font-size: 0.95rem; }
.adm-log { margin: 0; padding: 0; list-style: none; }
.adm-log li { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.82rem; }
.adm-log li:last-child { border-bottom: none; }
.adm-log span { overflow-wrap: anywhere; }
.adm-log small { color: var(--adm-dim); }
.player-grid.has-admin { max-width: 1240px; }
@media (min-width: 1100px) { .player-grid.has-admin { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); align-items: start; } }
/* Admin drawer (2026-11-18): Admin view's tab on the right edge; opens the page's admin desk over the page */
.adm-drawer > summary { position: fixed; right: 0; top: 50%; z-index: 880; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 7px; border-radius: 10px 0 0 10px; background: #e6c35a; color: #1d1405; font-weight: 800; font-size: 0.8rem; cursor: pointer; list-style: none;
  box-shadow: -4px 4px 14px rgba(0, 0, 0, 0.45); }
.adm-drawer > summary::-webkit-details-marker { display: none; }
.adm-drawer-word { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.04em; }
.adm-drawer > summary:focus-visible { outline: 2px solid #fff; }
.adm-drawer[open] > summary { right: min(420px, calc(100vw - 44px)); }
.adm-drawer > .adm-desk { position: fixed; right: 0; top: 76px; bottom: 12px; z-index: 879; width: min(420px, calc(100vw - 44px)); overflow-y: auto;
  border-radius: 12px 0 0 12px; scrollbar-width: thin; }
.adm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.adm-grid3 label, .adm-one { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adm-grid3 label span { font-size: 0.7rem; color: var(--adm-dim); line-height: 1.2; }
.adm-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.adm-toggles label { display: flex; cursor: pointer; }
.adm-toggles input { position: absolute; opacity: 0; pointer-events: none; }
.adm-toggles span { flex: 1; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(87, 242, 135, 0.45); background: rgba(87, 242, 135, 0.1); font-size: 0.78rem; font-weight: 700; }
.adm-toggles span::after { content: " · open"; color: #57f287; font-weight: 600; }
.adm-toggles input:checked + span { border-color: rgba(237, 66, 69, 0.5); background: rgba(237, 66, 69, 0.12); color: var(--adm-dim); }
.adm-toggles input:checked + span::after { content: " · closed"; color: #ed4245; }
.adm-toggles input:focus-visible + span { outline: 2px solid var(--adm-gold); }
.adm-loglist > summary { cursor: pointer; font-size: 0.8rem; font-weight: 700; color: var(--adm-dim); }
.gm-card.is-closed { opacity: 0.55; }
.gm-main:has(.gm-closed) .game { opacity: 0.4; pointer-events: none; }
.adm-stack { display: flex; flex-direction: column; gap: 6px; }
.adm-text { resize: vertical; min-height: 110px; font: inherit; line-height: 1.4; }
.adm-check { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; cursor: pointer; }
.adm-fold > summary { cursor: pointer; }
.adm-posts { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.adm-posts > li > details > summary { cursor: pointer; padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); font-size: 0.85rem; overflow-wrap: anywhere; }
.adm-posts > li > details[open] > summary { background: rgba(230, 195, 90, 0.16); }
.adm-posts form { padding: 8px 2px 4px; }

/* ----- Admin view: Home's Server desk (2026-11-18) ----- */
.srv-tabs:has(#srv-tab-say:checked) .srv-pane-say, .srv-tabs:has(#srv-tab-timers:checked) .srv-pane-timers,
.srv-tabs:has(#srv-tab-welcome:checked) .srv-pane-welcome, .srv-tabs:has(#srv-tab-caps:checked) .srv-pane-caps,
.srv-tabs:has(#srv-tab-growth:checked) .srv-pane-growth, .srv-tabs:has(#srv-tab-online:checked) .srv-pane-online, .srv-tabs:has(#srv-tab-rules:checked) .srv-pane-rules { display: flex; }
.srv-onoff { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.3); width: max-content; }
.srv-onoff label { cursor: pointer; }
.srv-onoff input { position: absolute; opacity: 0; pointer-events: none; }
.srv-onoff span { display: block; padding: 5px 16px; border-radius: 999px; font-weight: 700; font-size: .82rem; color: var(--adm-dim); }
.srv-onoff input:checked + span { background: var(--adm-gold); color: #1d1405; }
.srv-onoff input:focus-visible + span { outline: 2px solid var(--adm-gold); outline-offset: 1px; }
.srv-lines { font: .82rem/1.45 ui-monospace, Consolas, monospace; white-space: pre; overflow-x: auto; }
.srv-caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; max-height: 42vh; overflow-y: auto; padding-right: 4px; }
.srv-caps label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .8rem; }
.srv-caps input { width: 4.2em; text-align: center; padding: 3px 4px; }
.srv-tabs .adm-one { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .82rem; }
.srv-tabs .adm-one input { width: 5em; text-align: center; }

/* ----- The Admin homepage = Command center (2026-11-18): /admin, admins only. Status bar, KPI strip, four panels that
   scroll inside on wide screens (site.js fit() sets --fit-h on .ah-page). Sober slate + gold: tools, not decoration. ----- */
main:has(.ah-page) { max-width: min(1880px, 100%); }
.ah-page { --ah-bg: #0f1417; --ah-panel: #151b1f; --ah-line: rgba(230, 195, 90, .28); --ah-soft: rgba(255,255,255,.07);
  --ah-gold: #e6c35a; --ah-ink: #e9e6dc; --ah-dim: #9c978a; --ah-ok: #5fcf86; --ah-bad: #e2705f;
  display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); color: var(--ah-ink); padding-bottom: 14px; font-variant-numeric: tabular-nums; }
.ah-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 16px;
  border: 1px solid var(--ah-line); border-radius: 12px; background: linear-gradient(90deg, #1b1a12, var(--ah-bg) 60%);
  box-shadow: inset 4px 0 0 var(--ah-gold); }
.ah-ident { display: flex; align-items: center; gap: 12px; }
.ah-seal { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ah-gold); display: grid; place-items: center; overflow: hidden; background: #000; }
.ah-seal img { width: 40px; height: 40px; }
.ah-kicker { margin: 0; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ah-gold); font-weight: 700; }
.ah-bar h1 { margin: 0; font-size: 1.55rem; letter-spacing: .02em; text-transform: uppercase; }
.ah-who { display: grid; grid-template-columns: auto auto; gap: 2px 10px; align-items: center; text-align: right; }
.ah-who small { grid-column: 1 / -1; color: var(--ah-dim); font-size: .75rem; }
.ah-role { padding: 3px 9px; border-radius: 4px; background: var(--ah-gold); color: #1d1405; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ah-flash .adm-msg { margin: 0; }
.ah-kpis { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ah-kpi { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; background: var(--ah-panel); border: 1px solid var(--ah-soft); min-width: 0; }
.ah-kpi > span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-dim); font-weight: 700; }
.ah-kpi > b { font-size: 1.35rem; line-height: 1.15; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-kpi > b em { font-style: normal; font-size: .85rem; color: var(--ah-dim); font-weight: 600; }
.ah-kpi > small { font-size: .74rem; color: var(--ah-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ah-dim); flex: none; display: inline-block; }
.ah-is-online .ah-dot, .ah-online .ah-dot { background: var(--ah-ok); box-shadow: 0 0 0 3px rgba(95, 207, 134, .18); }
.ah-is-offline .ah-dot { background: var(--ah-bad); } .ah-is-restarting .ah-dot { background: var(--ah-gold); }
.ah-meter { display: block; height: 5px; margin-top: 5px; border-radius: 3px; background: var(--ah-soft); overflow: hidden; }
.ah-meter > i { display: block; height: 100%; width: var(--pct, 0%); background: var(--ah-gold); }
.ah-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 12px; background: var(--ah-panel);
  border: 1px solid var(--ah-soft); border-top: 2px solid var(--ah-gold); overflow: hidden; }
.ah-panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--ah-soft); background: rgba(0,0,0,.18); }
.ah-panel > header h2 { margin: 0; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ah-gold); }
.ah-panel > header small { color: var(--ah-dim); font-size: .72rem; text-align: right; }
.ah-body { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; min-height: 0; }
.ah-body.ah-desk { background: none; border: 0; box-shadow: none; border-radius: 0; }
.ah-body h3 { margin: 6px 0 0; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-dim); display: flex; align-items: center; gap: 6px; }
.ah-count { padding: 0 7px; border-radius: 999px; background: var(--ah-soft); color: var(--ah-ink); font-size: .7rem; letter-spacing: 0; }
.ah-find { display: flex; gap: 6px; } .ah-find .text { flex: 1; min-width: 0; }
.ah-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--ah-soft); border-radius: 8px; overflow: hidden; }
.ah-rows li + li { border-top: 1px solid var(--ah-soft); }
.ah-rows a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: var(--ah-ink); text-decoration: none; font-size: .84rem; }
.ah-rows a:hover, .ah-rows a:focus-visible { background: rgba(230, 195, 90, .12); }
.ah-rows small { color: var(--ah-dim); font-size: .72rem; margin-left: auto; }
.ah-rows .ah-go { color: var(--ah-gold); font-weight: 700; }
.ah-rows small + .ah-go { margin-left: 0; } .ah-rows b + .ah-go { margin-left: auto; }
.ah-online { max-height: 210px; overflow-y: auto; }
.ah-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ah-tabs:has(#ah-tab-shop:checked) .ah-pane-shop, .ah-tabs:has(#ah-tab-games:checked) .ah-pane-games,
.ah-tabs:has(#ah-tab-log:checked) .ah-pane-log, .ah-tabs:has(#ah-tab-wire:checked) .ah-pane-wire { display: flex; }
.ah-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.ah-filter a { padding: 3px 9px; border-radius: 4px; border: 1px solid var(--ah-soft); font-size: .72rem; font-weight: 700; color: var(--ah-dim); text-decoration: none; }
.ah-filter a[aria-current] { background: var(--ah-gold); color: #1d1405; border-color: var(--ah-gold); }
.ah-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ah-log li { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--ah-soft); font-size: .8rem; }
.ah-log li > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ah-log span:not(.ah-tag) { color: var(--ah-ink); opacity: .85; overflow-wrap: anywhere; }
.ah-log small { color: var(--ah-dim); font-size: .7rem; }
.ah-log a { color: var(--ah-gold); }
.ah-tag { align-self: start; text-align: center; padding: 2px 4px; border-radius: 4px; background: var(--ah-soft); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ah-dim); }
.ah-health { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ah-health li { padding: 7px 9px 7px 24px; border-radius: 8px; background: rgba(0,0,0,.2); position: relative; display: flex; flex-direction: column; font-size: .78rem; }
.ah-health li::before { content: ""; position: absolute; left: 9px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--ah-bad); }
.ah-health li.is-ok::before { background: var(--ah-ok); }
.ah-health small { color: var(--ah-dim); font-size: .7rem; }
.ah-wire { width: 100%; border-collapse: collapse; font-size: .76rem; }
.ah-wire th { text-align: left; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ah-dim); padding: 4px 6px; border-bottom: 1px solid var(--ah-line); }
.ah-wire td { padding: 6px; border-bottom: 1px solid var(--ah-soft); vertical-align: top; }
.ah-wire td small { display: block; color: var(--ah-dim); font-size: .68rem; overflow-wrap: anywhere; }
.ah-ch { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ah-ch-rcon { background: rgba(226, 112, 95, .2); color: #f0a093; } .ah-ch-mod { background: rgba(157, 120, 230, .22); color: #c7b2f5; }
.ah-ch-bot { background: rgba(88, 101, 242, .22); color: #aab3ff; } .ah-ch-site { background: rgba(95, 207, 134, .18); color: #8fe0aa; }
@media (min-width: 700px) { .ah-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ah-page { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ah-bar, .ah-flash, .ah-kpis { grid-column: 1 / -1; } }
@media (min-width: 1300px) {
  .ah-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ah-page { grid-template-columns: minmax(0, .85fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.05fr); }
  .ah-panel { height: var(--fit-h-panels, calc(100vh - 300px)); }
  .ah-panel > .ah-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
/* the header's Admin tab */
.nav-top.nav-admin { color: #e6c35a; }
.nav-top.nav-admin.current { box-shadow: inset 0 -3px 0 #e6c35a; }

/* Admin drawer button, round 2 (2026-11-18): the right-edge tab hid behind Home's News column, so it is now a big gold
   button at the bottom-right, above everything, and the desk opens above it */
.adm-drawer > summary { top: auto; bottom: 18px; right: 18px; transform: none; flex-direction: row; gap: 8px; padding: 11px 18px;
  border-radius: 999px; font-size: 0.95rem; z-index: 1300; border: 2px solid #1d1405; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(230, 195, 90, 0.35); }
.adm-drawer-word { writing-mode: horizontal-tb; transform: none; }
.adm-drawer > summary:hover { filter: brightness(1.08); }
.adm-drawer[open] > summary { right: 18px; }
.adm-drawer[open] > summary .adm-drawer-word::after { content: " · close"; font-weight: 600; opacity: 0.75; }
.adm-drawer > .adm-desk { z-index: 1299; bottom: 76px; top: 90px; right: 12px; border-radius: 12px; }
/* the header's Admin tab: a gold chip so it can't be missed */
.nav-top.nav-admin { color: #1d1405; background: #e6c35a; border-radius: 999px; padding-inline: 12px; font-weight: 800; }
.nav-top.nav-admin:hover { filter: brightness(1.08); color: #1d1405; }
.nav-top.nav-admin.current { box-shadow: 0 0 0 3px rgba(230, 195, 90, 0.35); }
/* Admin drawer round 3 (2026-11-18): the page's desk button sits in the header beside "Admin view" (site.js adds
   .desk-btn to .admin-switch); the desk opens on the left, under it. The bottom-right pill stays only without JS. */
.has-desk-btn .adm-drawer > summary { display: none; }
.admin-switch .desk-btn { margin-left: 6px; background: #1d1405; color: #e6c35a; box-shadow: inset 0 0 0 1.5px #e6c35a; }
.admin-switch .desk-btn:hover { color: #fff; }
.admin-switch .desk-btn[aria-expanded="true"] { background: #e6c35a; color: #1d1405; }
.has-desk-btn .adm-drawer > .adm-desk { left: 12px; right: auto; top: 90px; bottom: 12px; border-radius: 12px; }
@media (max-width: 1599px) { .has-desk-btn .adm-drawer > .adm-desk { top: 80px; bottom: 64px; } }
.has-desk-btn .adm-drawer > .adm-desk { bottom: auto; max-height: calc(100vh - 102px); }
@media (max-width: 1599px) { .has-desk-btn .adm-drawer > .adm-desk { max-height: calc(100vh - 144px); } }
/* the desk's parts never squash each other (the open "What admins changed here" list used to overlap the tabs);
   the log scrolls inside its own box instead */
.adm-desk > * { flex-shrink: 0; }
.adm-loglist .adm-log { max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
/* Home: the open desk lies exactly over the docked chat, down to its newest 4 messages (site.js overChat) */
.has-desk-btn .adm-drawer > .adm-desk.over-chat { left: var(--chat-left); top: var(--chat-top); width: var(--chat-width);
  height: var(--chat-height); max-height: none; bottom: auto; box-sizing: border-box; }
.adm-desk.over-chat .adm-tabs > label { font-size: 0.72rem; padding-inline: 2px; white-space: nowrap; }

/* ----- Admin view previews (2026-11-18): Live Map AI desk, Voice desk (not wired yet) ----- */
.pv-flag { background: rgba(157, 120, 230, 0.16); border: 1px dashed rgba(199, 178, 245, 0.6); color: #ddd0fb; }
.pv-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv-tabs.pv-tabs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pv-tabs.pv-tabs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* the AI desk for admins: Zones and Act (2026-11-24) */
.pv-tabs > label { font-size: 0.72rem; padding-inline: 2px; white-space: nowrap; }
.pv-tabs:has(#pv-map-status:checked) .pv-pane-status, .pv-tabs:has(#pv-map-set:checked) .pv-pane-set,
.pv-tabs:has(#pv-map-species:checked) .pv-pane-species, .pv-tabs:has(#pv-map-zones:checked) .pv-pane-zones,
.pv-tabs:has(#pv-map-act:checked) .pv-pane-act,
.pv-tabs:has(#pv-voice-who:checked) .pv-pane-who, .pv-tabs:has(#pv-voice-act:checked) .pv-pane-act,
.pv-tabs:has(#pv-voice-list:checked) .pv-pane-list, .pv-tabs:has(#pv-voice-x:checked) .pv-pane-x { display: flex; }
.pv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pv-grid label { display: grid; grid-template-columns: minmax(0, 1fr) 4.6em; grid-template-rows: auto auto; gap: 0 6px; align-items: center; font-size: 0.72rem; }
.pv-grid label span { color: var(--adm-dim); line-height: 1.2; grid-row: 1 / 3; }
.pv-grid label input { text-align: center; padding: 3px; }
.pv-grid label small { font-size: 0.62rem; color: var(--adm-dim); text-align: center; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.pv-table th { text-align: left; font-size: 0.64rem; color: var(--adm-dim); padding: 3px; border-bottom: 1px solid rgba(255,255,255,.12); }
.pv-table td { padding: 2px 3px; border-bottom: 1px solid rgba(255,255,255,.05); }
.pv-table input.text { width: 3.2em; padding: 2px; text-align: center; }
.pv-ghost { opacity: 0.45; }
.adm-log li form { margin-top: 4px; }

/* ----- Command center: the console (2026-11-18) ----- */
.ah-tabs.ah-tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ah-tabs:has(#ah-tab-con:checked) .ah-pane-con { display: flex; }
.ah-console { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ah-con-out { list-style: none; margin: 0; padding: 10px; height: 46vh; overflow-y: auto; background: #07090a; border: 1px solid rgba(230, 195, 90, 0.3);
  border-radius: 8px; font: 0.78rem/1.45 ui-monospace, Consolas, "Cascadia Mono", monospace; color: #cfe8d4; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.ah-con-out li.is-cmd { color: #e6c35a; margin-top: 6px; }
.ah-con-out li.is-cmd::before { content: "› "; }
.ah-con-out li.is-bad { color: #f0a093; }
.ah-con-out li.is-sys { color: #8b9a8f; }
.ah-con-out li.is-ask { color: #ffd479; }
.ah-con-in { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; background: #07090a; border: 1px solid rgba(230, 195, 90, 0.45); border-radius: 8px; }
.ah-con-in span { color: #e6c35a; font: 700 1rem ui-monospace, monospace; }
.ah-con-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #f3efe2; font: 0.86rem ui-monospace, Consolas, monospace; padding: 6px 0; }
.ah-con-in.is-asking { border-color: #ffd479; box-shadow: 0 0 0 2px rgba(255, 212, 121, 0.25); }
.ah-con-keys { display: flex; flex-wrap: wrap; gap: 4px; }
.ah-con-keys button { padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #cfc9b8;
  font: 0.72rem ui-monospace, Consolas, monospace; cursor: pointer; }
.ah-con-keys button:hover { border-color: #e6c35a; color: #fff; }
@media (min-width: 1300px) { .ah-con-out { height: auto; flex: 1; min-height: 200px; } .ah-pane-con, .ah-console { flex: 1; } }
/* admin dino controls (2026-11-18) */
.dc-row { flex-wrap: wrap; gap: 6px; }
.dc-muts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
/* Sheriff's desk on the LEFT (Vengefulmink, 2026-11-18): first column, right under the header's Admin view switch;
   same design. Narrower screens: on top of the page. */
.bounty-page.has-desk > .bn-desk { order: -1; }
@media (min-width: 1500px) {
  .bounty-page.has-desk { grid-template-columns: minmax(330px, 1fr) minmax(280px, 0.95fr) minmax(0, 1.55fr) minmax(270px, 0.95fr); }
}
/* My Dino's Dino desk: whose dino (2026-11-18) */
.dd-who { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.22); border: 1px solid rgba(230,195,90,.25); }
.dd-current { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dd-current b { font-size: 1.05rem; color: #e6c35a; }
.dd-current small { color: var(--adm-dim); font-size: .72rem; }
.dd-current .adm-btn { margin-left: auto; padding: 4px 10px; font-size: .75rem; text-decoration: none; }
.dd-list { max-height: 180px; overflow-y: auto; }
.dd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; max-height: 120px; overflow-y: auto; }
.dd-chips a { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--adm-ink); font-size: .78rem; text-decoration: none; }
.dd-chips a::first-letter { color: #5fcf86; }
.dd-chips a[aria-current], .dd-chips a:hover { background: #e6c35a; color: #1d1405; }
/* Map desk preview: zone types (No AI / AI spawn zone / Safe zone), 2026-11-18 */
.pv-zones .pv-zt { font-style: normal; font-size: .66rem; padding: 1px 6px; border-radius: 999px; margin-right: 4px; background: rgba(255,255,255,.1); }
.pv-zt-noai { color: #ff8a82; }
.pv-ztypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.pv-ztypes input { position: absolute; opacity: 0; pointer-events: none; }
.pv-ztypes label { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font-size: .74rem; }
.pv-ztypes label small { color: var(--adm-dim); font-size: .64rem; line-height: 1.2; }
.pv-ztypes input:checked + label { border-color: #e6c35a; background: rgba(230,195,90,.14); }
.pv-ztypes input:focus-visible + label { outline: 2px solid #e6c35a; }
.pv-zk { display: none; flex-direction: column; gap: 5px; }
.pv-zone-form:has(#pv-zk-ai:checked) .pv-zk-ai-opts, .pv-zone-form:has(#pv-zk-safe:checked) .pv-zk-safe-opts { display: flex; }
.pv-spchips { display: flex; flex-wrap: wrap; gap: 4px; max-height: 120px; overflow-y: auto; }
.pv-spchips input, .pv-checks input[type=checkbox] { accent-color: #e6c35a; }
.pv-spchips label { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: .7rem; cursor: pointer; }
.pv-spchips label:has(input:checked) { background: rgba(95,207,134,.22); }
.pv-checks { display: flex; flex-direction: column; gap: 3px; font-size: .74rem; }
.pv-checks label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
/* Live Map admin: planned zones layer, drawing bar, hover details (2026-11-18) */
.zone-plans { z-index: 1; }
.zone-plans .zk-noai { --zc: #ff3b30; } .zone-plans .zk-aionly { --zc: #ff2df0; } .zone-plans .zk-safe { --zc: #ffffff; }
.zone-plans .zplan { fill: var(--zc); fill-opacity: .14; stroke: var(--zc); stroke-width: 2.5px; stroke-dasharray: 0.5 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.zone-plans .zdraft { fill: var(--zc); fill-opacity: .22; stroke: var(--zc); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.zone-plans polyline.zdraft { fill: none; }
.zone-plans .zdot { fill: #fff; stroke: #000; stroke-width: 1.5px; vector-effect: non-scaling-stroke; r: 4px; }
.zone-plans .zdot.first { fill: #e6c35a; r: 6px; }
.map-view.zone-drawing { cursor: crosshair; }
.map-view.zone-drawing .map-pop { display: none !important; }
.zone-bar { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 12px; background: rgba(20, 16, 8, .92); border: 1px solid #e6c35a; color: #f3ead2; font-size: .82rem; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.zone-bar[hidden] { display: none; }
.zone-bar .adm-btn { padding: 4px 10px; font-size: .78rem; }
.zone-tip { position: fixed; z-index: 1000; max-width: 280px; padding: 8px 10px; border-radius: 10px; pointer-events: none;
  background: rgba(16, 13, 7, .95); border: 1px solid rgba(230,195,90,.6); color: #f3ead2; font-size: .76rem; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.zone-tip[hidden] { display: none; }
.zone-tip b { display: block; color: #e6c35a; margin-bottom: 2px; }
.zone-tip p { margin: 1px 0; line-height: 1.3; }
.zone-tip .live { color: #5fcf86; } .zone-tip .planned { color: #c7b2f5; } .zone-tip .by { color: #a89f88; font-size: .68rem; }
.pv-zkey { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .72rem; }
.pv-zkey small { flex-basis: 100%; color: var(--adm-dim); font-size: .66rem; }
.pv-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; border: 2px solid; }
.pv-sw-noai { border-color: #ff3b30; background: rgba(255,59,48,.25); } .pv-sw-aionly { border-color: #ff2df0; background: rgba(255,45,240,.25); } .pv-sw-safe { border-color: #fff; background: rgba(255,255,255,.25); }
.pv-zt-aionly { color: #ff8ef6; } .pv-zt-safe { color: #fff; }
.pv-zname { display: flex; flex-direction: column; gap: 2px; font-size: .72rem; color: var(--adm-dim); }
.pv-draw { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pv-drawn { margin: 0; font-size: .74rem; color: var(--adm-dim); }
.pv-drawn.ok { color: #5fcf86; }
.zone-plans .zplan.zk-safe, .zone-plans .zdraft.zk-safe { filter: drop-shadow(0 0 1.5px rgba(0,0,0,.9)); }
/* Shop desk tabs + Bloodline desk (2026-11-18) */
.sd-tabs:has(#sd-tab-amber:checked) .sd-pane-amber, .sd-tabs:has(#sd-tab-dna:checked) .sd-pane-dna,
.sd-tabs:has(#sd-tab-tiers:checked) .sd-pane-tiers, .sd-tabs:has(#sd-tab-rules:checked) .sd-pane-rules { display: flex; }
.sd-tabs > label { font-size: .74rem; white-space: nowrap; padding-inline: 2px; }
.sd-tiers input.text { width: 3.4em; }
.sd-rules { display: flex; flex-direction: column; gap: 5px; }
.sd-rules label { display: grid; grid-template-columns: minmax(0, 1fr) 5em; gap: 8px; align-items: center; font-size: .76rem; }
.sd-rules label small { display: block; color: var(--adm-dim); font-size: .62rem; }
.sd-rules input.text { text-align: center; padding: 3px; }
.sd-chips { flex-wrap: wrap; }
.sd-tabs.sd-tabs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sd-tabs:has(#sd-tab-wallet:checked) .sd-pane-wallet { display: flex; }
.sd-pane-wallet .adm-balances { flex-wrap: wrap; }
/* Shop desk, roomier (person: "the panel is squished", 2026-11-18) */
.adm-drawer > .adm-desk:has(.sd-tabs), .has-desk-btn .adm-drawer > .adm-desk:has(.sd-tabs) { width: min(640px, calc(100vw - 24px)); }
.sd-tabs > label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; font-size: .74rem; line-height: 1.15; white-space: normal; }
.sd-tabs > label i { font-style: normal; font-size: 1.15rem; line-height: 1; }
.sd-tiers { display: flex; flex-direction: column; gap: 8px; }
.sd-tier { margin: 0; padding: 8px 10px 10px; border: 1px solid rgba(230,195,90,.25); border-radius: 10px; background: rgba(0,0,0,.18);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sd-tier legend { padding: 0 6px; font-weight: 700; color: var(--adm-gold); }
.sd-tier label { display: flex; flex-direction: column; gap: 3px; font-size: .68rem; color: var(--adm-dim); }
.sd-tier input.text, .sd-tiers input.text { width: 100%; text-align: center; padding: 5px 3px; }
@media (max-width: 560px) { .sd-tier { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sd-pane-wallet .adm-fields { display: grid; grid-template-columns: 9em 1fr; gap: 6px; }
/* Games desk (2026-11-18): roomy, tabs + game toggle cards + odds cards */
.adm-drawer > .adm-desk:has(.gd-tabs), .has-desk-btn .adm-drawer > .adm-desk:has(.gd-tabs) { width: min(640px, calc(100vw - 24px)); }
.gd-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-tabs:has(#gd-tab-open:checked) .gd-pane-open, .gd-tabs:has(#gd-tab-bets:checked) .gd-pane-bets, .gd-tabs:has(#gd-tab-odds:checked) .gd-pane-odds { display: flex; }
.gd-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.gd-game { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; background: rgba(95,207,134,.1); border: 1px solid rgba(95,207,134,.45); }
.gd-game input { position: absolute; opacity: 0; pointer-events: none; }
.gd-game .gd-ico { grid-row: 1 / 3; font-size: 1.4rem; }
.gd-game b { font-size: .8rem; line-height: 1.15; }
.gd-game small { font-size: .66rem; }
.gd-on { color: #5fcf86; } .gd-off { display: none; color: #ff8a82; }
.gd-game:has(input:checked) { background: rgba(255,59,48,.08); border-color: rgba(255,105,97,.45); }
.gd-game:has(input:checked) .gd-ico, .gd-game:has(input:checked) b { opacity: .55; }
.gd-game:has(input:checked) .gd-on { display: none; } .gd-game:has(input:checked) .gd-off { display: inline; }
.gd-game:has(input:focus-visible) { outline: 2px solid var(--adm-gold); }
.gd-odds { display: flex; flex-direction: column; gap: 8px; }
.gd-odds .sd-tier { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.gd-odds .sd-tier legend { font-size: .78rem; }
.gd-odds input.text { width: 100%; text-align: center; padding: 5px 3px; }
.gm-sign-text .gm-sign-ico { font-size: 1.3rem; filter: drop-shadow(0 0 4px rgba(244,178,95,.6)); text-shadow: none; }
.gm-sign small { opacity: .9; }
/* ----- News, dark card feed (2026-11-18): banner + section cards | sidebar; one screen at >=1100px ----- */
.nf-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.nf-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nf-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 150px;
  padding: 22px 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(244, 178, 95, .35);
  background: linear-gradient(90deg, rgba(10, 12, 10, .92) 0%, rgba(10, 12, 10, .7) 55%, rgba(10, 12, 10, .35) 100%), url("hero-scene.webp") center 60% / cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.nf-hero-text { min-width: 0; max-width: 760px; }
.nf-kicker { margin: 0 0 4px; color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.nf-title { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.nf-by { margin: 6px 0 0; color: var(--muted, #b9b3a3); font-size: .85rem; }
.nf-hero-acts { display: flex; gap: 8px; align-items: center; }
.nf-search { width: 220px; }
.nf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-content: start; }
.nf-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--radius); background: var(--card, #161b1e);
  border: 1px solid rgba(255, 255, 255, .08); border-top: 3px solid var(--accent); transition: transform .12s, border-color .12s; }
.nf-card:hover { transform: translateY(-2px); border-color: rgba(244, 178, 95, .45); }
.nf-card[hidden] { display: none; }
.nf-card-head { display: flex; align-items: center; gap: 10px; }
.nf-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(244, 178, 95, .12); font-size: 1.25rem; }
.nf-card h2 { margin: 0; font-size: 1rem; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.nf-sum { margin: 0; color: var(--muted, #b9b3a3); font-size: .86rem; line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nf-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nf-count { font-size: .72rem; color: var(--accent); background: rgba(244, 178, 95, .1); padding: 2px 8px; border-radius: 999px; }
.nf-more { margin-left: auto; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--accent-deep, #b86b2a); background: transparent; color: var(--accent); font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }
.nf-more:hover { background: var(--accent); color: #1d1405; }
.nf-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nf-box { margin: 0; padding: 14px 16px; }
.nf-box p { margin: 0 0 6px; }
.nf-box-head { margin: 0 0 8px; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.nf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nf-list a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; border-left: 3px solid transparent; }
.nf-list a:hover { background: rgba(255, 255, 255, .04); }
.nf-list li.is-on a { background: rgba(244, 178, 95, .1); border-left-color: var(--accent); }
.nf-list small { color: var(--muted, #b9b3a3); font-size: .72rem; }
.nf-list b { font-size: .9rem; line-height: 1.25; }
.nf-new { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--accent); color: #1d1405; font-size: .62rem; }
.nf-new[hidden] { display: none; }
.nf-live { color: #5fcf86; font-weight: 700; }
.nf-discord { margin-top: 6px; width: 100%; justify-content: center; }
.nf-none[hidden] { display: none; }
.nf-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(80vh, 820px); padding: 0; border-radius: var(--radius); border: 1px solid rgba(244, 178, 95, .45);
  background: var(--card, #161b1e); color: inherit; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
.nf-dialog[open] { display: flex; flex-direction: column; }
.nf-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.nf-dialog-body { overflow-y: auto; padding: 20px 24px; line-height: 1.6; }
.nf-dialog-body h2 { margin: 0 0 10px; font-size: 1.3rem; text-transform: none; color: var(--accent); }
.nf-dialog-body li { margin: 4px 0; }
.nf-dialog-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.nf-dialog-foot [hidden] { visibility: hidden; display: inline-flex; }
@media (min-width: 1100px) {
  .nf-page { height: var(--fit-h, calc(100vh - 200px)); }
  .nf-main, .nf-side { min-height: 0; }
  .nf-cards { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; min-height: 0; flex: 1; }
  .nf-side { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (max-width: 1099px) { .nf-page { grid-template-columns: minmax(0, 1fr); } .nf-search { width: 100%; } .nf-hero-acts { width: 100%; } }
main:has(.nf-page) { max-width: min(1500px, 100%); }
/* "Show me" tours (2026-11-18): the page dimmed and locked, one change spotlit, a note beside it */
html.tour-on, html.tour-on body { overflow: hidden !important; }
.tour-ui { position: fixed; inset: 0; z-index: 5000; }
.tour-veil { position: absolute; inset: 0; cursor: not-allowed; }
.tour-spot { position: fixed; border-radius: 12px; pointer-events: none; transition: all .25s ease;
  box-shadow: 0 0 0 3px var(--accent, #f4b25f), 0 0 24px 6px rgba(244, 178, 95, .55), 0 0 0 9999px rgba(4, 6, 5, .78); }
.tour-spot[hidden] { display: none; }
.tour-ui:has(.tour-spot[hidden]) .tour-veil { background: rgba(4, 6, 5, .78); }
.tour-card { position: fixed; padding: 16px 18px 14px; border-radius: 14px; background: var(--card, #161b1e); border: 1px solid var(--accent, #f4b25f);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .7); transition: top .25s ease, left .25s ease; }
.tour-card.is-center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
.tour-count { margin: 0 0 4px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent, #f4b25f); font-weight: 700; }
.tour-card h3 { margin: 0 0 6px; font-size: 1.1rem; text-transform: none; }
.tour-text { margin: 0 0 12px; line-height: 1.5; color: var(--muted, #c9c2b0); }
.tour-acts { display: flex; justify-content: flex-end; gap: 8px; }
.tour-acts [hidden] { display: none; }
.tour-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: var(--muted, #a9a291); font: inherit; font-size: .75rem; cursor: pointer; }
.tour-x:hover { color: var(--accent, #f4b25f); }
.nf-more, .nf-show, .nf-count, .nf-share { white-space: nowrap; }
.nf-card-foot .nf-show { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--accent-deep, #b86b2a); background: transparent; color: var(--accent); font-weight: 700; font-size: .8rem; text-decoration: none; }
.nf-card-foot .nf-show:hover { background: var(--accent); color: #1d1405; }
.nf-card-foot .nf-show { margin-left: auto; }
.nf-card-foot .nf-show + .nf-more { margin-left: 0; }
.nf-dialog-mid { display: flex; gap: 8px; }
.nf-dialog-mid .nf-show[hidden] { display: none; }

/* News, roomier (Vengefulmink, 2026-11-18: "condensed, make it look better") */
.nf-page { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
.nf-main { gap: 18px; }
.nf-hero { padding: 22px 30px; min-height: 140px; }
.nf-by { font-size: .95rem; margin-top: 8px; }
.nf-kicker { font-size: .85rem; }
.nf-search { width: 280px; }
.nf-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; overflow-x: hidden; padding: 4px 8px 8px 2px; }
.nf-card { gap: 12px; padding: 20px 22px; }
.nf-card-head { gap: 12px; }
.nf-ico { width: 44px; height: 44px; font-size: 1.4rem; }
.nf-card h2 { font-size: 1.15rem; }
.nf-sum { font-size: .98rem; line-height: 1.6; -webkit-line-clamp: 3; }
.nf-card-foot { gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.nf-count { font-size: .8rem; padding: 3px 10px; }
.nf-more, .nf-card-foot .nf-show { padding: 7px 16px; font-size: .88rem; }
.nf-side { gap: 18px; }
.nf-box { padding: 18px 20px; }
.nf-box-head { font-size: .95rem; margin-bottom: 12px; }
.nf-box p { font-size: .98rem; line-height: 1.5; }
.nf-list { gap: 6px; }
.nf-list a { padding: 10px 12px; }
.nf-list b { font-size: 1rem; }
.nf-list small { font-size: .8rem; }
.nf-dialog-body { font-size: 1.02rem; padding: 26px 30px; }
/* card footer: count lives in the head; the two buttons share the footer evenly and never spill out */
.nf-card-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.nf-card-tt .nf-count { padding: 1px 9px; font-size: .74rem; }
.nf-card-foot { justify-content: stretch; }
.nf-card-foot .nf-more, .nf-card-foot .nf-show { flex: 1 1 0; min-width: 0; margin: 0; text-align: center; padding: 8px 10px; }

/* News admin desk (2026-11-18): Write (builder | preview) · Posts · Settings, 640px like Shop/Games */
.adm-drawer > .adm-desk:has(.nd-tabs), .has-desk-btn .adm-drawer > .adm-desk:has(.nd-tabs) { width: min(640px, calc(100vw - 24px)); }
.nd-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nd-tabs:has(#nd-tab-write:checked) .nd-pane-write, .nd-tabs:has(#nd-tab-posts:checked) .nd-pane-posts,
.nd-tabs:has(#nd-tab-settings:checked) .nd-pane-settings { display: flex; }
.nd-pane-write { display: none; }
.nd-tabs:has(#nd-tab-write:checked) .nd-pane-write { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 14px; align-items: start; }
.nd-write { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nd-field { display: flex; flex-direction: column; gap: 4px; }
.nd-field > span { font-size: .78rem; font-weight: 700; color: var(--adm-ink); }
.nd-field small { color: var(--adm-dim); font-weight: 400; }
.nd-kind { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: -4px; font-size: .78rem; color: var(--adm-dim); }
.nd-kind b { color: var(--adm-gold); }
.nd-kind small { flex-basis: 100%; font-size: .72rem; }
.nd-editing { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px;
  background: rgba(230, 195, 90, .12); border: 1px solid rgba(230, 195, 90, .4); font-size: .82rem; }
.nd-editing[hidden] { display: none; }
.nd-sections { display: flex; flex-direction: column; gap: 8px; }
.nd-sec { margin: 0; padding: 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: var(--adm-bg2); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nd-sec-head { display: flex; gap: 6px; align-items: center; }
.nd-sec-head .text { flex: 1; min-width: 0; }
.nd-ico { flex: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(230, 195, 90, .35); background: rgba(230, 195, 90, .1); font-size: 1.15rem; cursor: pointer; }
.nd-mini { flex: none; width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .1); background: transparent; color: var(--adm-dim); cursor: pointer; }
.nd-mini:hover { color: var(--adm-ink); border-color: var(--adm-gold); }
.nd-del:hover { color: #ff8a7a; border-color: #ff8a7a; }
.nd-icons { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.nd-icons[hidden] { display: none; }
.nd-icons button { padding: 4px 0; border-radius: 6px; border: 1px solid transparent; background: rgba(255, 255, 255, .04); font-size: 1.05rem; cursor: pointer; }
.nd-icons button:hover { border-color: var(--adm-gold); }
.nd-add { align-self: flex-start; }
.nd-raw summary { cursor: pointer; font-size: .78rem; color: var(--adm-dim); }
.nd-raw[open] summary { margin-bottom: 6px; }
.nd-submit { padding-block: 10px; font-size: .95rem; }
.nd-preview { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nd-pv-hero { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; border: 1px solid rgba(244, 178, 95, .35);
  background: linear-gradient(90deg, rgba(10, 12, 10, .9), rgba(10, 12, 10, .5)), url("hero-scene.webp") center 60% / cover; }
.nd-pv-hero small { color: var(--accent, #f4b25f); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nd-pv-hero b { font-family: var(--display); font-size: .95rem; line-height: 1.15; overflow-wrap: anywhere; }
.nd-pv-cards { display: flex; flex-direction: column; gap: 6px; }
.nd-pv-card { padding: 8px 10px; border-radius: 8px; background: var(--card, #161b1e); border: 1px solid rgba(255, 255, 255, .06); box-shadow: inset 0 2px 0 rgba(244, 178, 95, .7); }
.nd-pv-head { display: flex; gap: 8px; align-items: center; }
.nd-pv-head > div { display: flex; flex-direction: column; min-width: 0; }
.nd-pv-head b { font-size: .8rem; line-height: 1.2; overflow-wrap: anywhere; }
.nd-pv-head small { color: var(--accent, #f4b25f); font-size: .66rem; }
.nd-pv-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(244, 178, 95, .12); font-size: .9rem; }
.nd-pv-card p { margin: 6px 0 0; font-size: .72rem; line-height: 1.4; color: var(--adm-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nd-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nd-post { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: var(--adm-bg2); border: 1px solid rgba(255, 255, 255, .06); }
.nd-post.is-pinned { border-color: rgba(230, 195, 90, .45); }
.nd-post-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nd-post-main b { font-size: .95rem; overflow-wrap: anywhere; }
.nd-post-main small { color: var(--adm-dim); font-size: .75rem; }
.nd-post-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.nd-post-acts form { display: contents; }
.nd-post-acts .adm-btn { width: 100%; justify-content: center; text-align: center; white-space: nowrap; }
.nd-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nd-choice label { cursor: pointer; }
.nd-choice input { position: absolute; opacity: 0; pointer-events: none; }
.nd-choice span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: var(--adm-bg2); }
.nd-choice small { color: var(--adm-dim); font-size: .75rem; }
.nd-choice input:checked + span { border-color: var(--adm-gold); box-shadow: inset 0 0 0 1px var(--adm-gold); background: rgba(230, 195, 90, .1); }
.nd-choice input:focus-visible + span { outline: 2px solid var(--adm-gold); }
.nd-step-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .88rem; }
.nd-stepper { display: flex; align-items: center; gap: 4px; }
.nd-stepper button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(230, 195, 90, .4); background: transparent; color: var(--adm-gold); font-size: 1.1rem; cursor: pointer; }
.nd-stepper input { width: 52px; text-align: center; }
.nd-settings { gap: 12px; }
@media (max-width: 680px) { .nd-tabs:has(#nd-tab-write:checked) .nd-pane-write { grid-template-columns: 1fr; } .nd-preview { position: static; } .nd-post-acts { grid-template-columns: 1fr 1fr; } }
.nd-sec-tools { display: flex; justify-content: flex-end; gap: 6px; }
.nd-sec-tools .nd-mini { width: auto; height: 26px; padding: 0 10px; font-size: .74rem; }
.nd-stepper input.text { flex: none; width: 56px; min-width: 0; text-align: center; }
/* News desk: a start screen when no tab is open, and ← Back on every tab */
.nd-tabs:not(:has(> input:checked)) .nd-pane-home { display: flex; }
.nd-home-card { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1); background: var(--adm-bg2); cursor: pointer; }
.nd-home-card:hover { border-color: var(--adm-gold); background: rgba(230, 195, 90, .08); }
.nd-home-card i { grid-row: 1 / 3; font-style: normal; font-size: 1.6rem; text-align: center; }
.nd-home-card b { font-size: .98rem; }
.nd-home-card small { color: var(--adm-dim); font-size: .78rem; }
.nd-back-bar { grid-column: 1 / -1; display: flex; }
.nd-back { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: var(--adm-ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.nd-back:hover { border-color: var(--adm-gold); color: var(--adm-gold); }
.nd-submit-row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.nd-submit-row .adm-btn { justify-content: center; }

/* ===== Events page (2026-11-18): current event hero, lineup, side box ===== */
.ev-page { --ev-accent: #f4b25f; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
main:has(.ev-page) { max-width: min(1560px, 100%); }
.ev-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ev-hero { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--ev-accent) 55%, transparent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 3px 0 var(--ev-accent); background: #0b0d0c; flex: none; }
.ev-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.ev-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6, 7, 6, .94) 0%, rgba(6, 7, 6, .75) 40%, rgba(6, 7, 6, .35) 70%, rgba(6, 7, 6, .7) 100%),
              linear-gradient(0deg, rgba(6, 7, 6, .95) 0%, transparent 40%); }
.ev-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; padding: 26px 30px 16px; }
.ev-hero-empty .ev-hero-grid { grid-template-columns: 1fr; padding-block: 40px; }
.ev-hero-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ev-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ev-kicker span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.ev-kicker .ev-next { background: var(--ev-accent); color: #140f06; border-color: transparent; }
.ev-live { background: #e5483b !important; color: #fff; border-color: transparent !important; animation: ev-pulse 1.6s ease-in-out infinite; }
@keyframes ev-pulse { 50% { box-shadow: 0 0 0 6px rgba(229, 72, 59, .25); } }
.ev-title { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .8), 0 0 30px color-mix(in srgb, var(--ev-accent) 35%, transparent); }
.ev-tag { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ev-accent); }
.ev-when { margin: 0; font-size: 1rem; color: #e9e3d2; }
.ev-when small { color: var(--muted, #b9b3a3); }
.ev-count { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev-count-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #b9b3a3); margin-right: 4px; }
.ev-count-box { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .55);
  border: 1px solid color-mix(in srgb, var(--ev-accent) 45%, transparent); }
.ev-count-box b { font-family: var(--display); font-size: 1.7rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ev-count-box small { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #b9b3a3); }
.ev-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.ev-go { padding: 12px 22px; border-radius: 999px; border: 0; background: var(--ev-accent); color: #140f06; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--ev-accent) 40%, transparent); }
.ev-go:hover { filter: brightness(1.1); }
.ev-go .ev-go-on, .ev-go.is-on .ev-go-off { display: none; }
.ev-go.is-on .ev-go-on { display: inline; }
.ev-go.is-on { background: #2f9e57; color: #fff; box-shadow: 0 6px 22px rgba(47, 158, 87, .35); }
.ev-going { font-size: 1rem; color: #e9e3d2; }
.ev-going b { font-family: var(--display); font-size: 1.6rem; color: #fff; margin-right: 2px; }
.ev-goers { margin: 0; font-size: .82rem; color: var(--muted, #b9b3a3); max-width: 60ch; }
.ev-heart { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .55);
  color: rgba(255, 255, 255, .75); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: transform .12s; }
.ev-heart:hover { transform: scale(1.1); color: #ff6b81; border-color: #ff6b81; }
.ev-heart[aria-pressed="true"] { background: #e8435e; border-color: #e8435e; color: #fff; }
.ev-heart-big { width: 48px; height: 48px; font-size: 1.45rem; }
.ev-hero-info { align-self: stretch; max-height: 300px; overflow-y: auto; scrollbar-width: thin; padding: 16px 18px; border-radius: 12px;
  background: rgba(8, 10, 9, .72); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: none; }
.ev-hero-info h2, .ev-d h3 { margin: 0 0 6px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ev-accent); }
.ev-hero-info h2 + * { margin-top: 0; }
.ev-desc { margin: 0 0 14px; line-height: 1.6; font-size: .98rem; }
.ev-rules { margin: 0; padding-left: 0; list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: 6px; }
.ev-rules li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; line-height: 1.45; font-size: .95rem; }
.ev-rules li::before { content: counter(r); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--ev-accent) 25%, transparent);
  color: var(--ev-accent); font-weight: 800; font-size: .78rem; }
.ev-last { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 30px 16px; flex-wrap: wrap; }
.ev-last-label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #e9e3d2; }
.ev-last-none { color: var(--muted, #b9b3a3); font-size: .85rem; }
.ev-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.ev-thumb { position: relative; flex: none; width: 96px; height: 60px; padding: 0; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); background: #000; cursor: zoom-in; }
.ev-thumb img, .ev-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-thumb i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 1.2rem; text-shadow: 0 0 8px #000; }
.ev-more { display: grid; place-items: center; color: #fff; font-weight: 800; cursor: pointer; }
.ev-add { margin-left: auto; padding: 6px 14px; border-radius: 999px; border: 1px dashed var(--adm-gold, #e6c35a); background: rgba(0, 0, 0, .5); color: var(--adm-gold, #e6c35a);
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.ev-lineup { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
.ev-lineup-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ev-lineup-head h2 { margin: 0; font-family: var(--display); font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; }
.ev-lineup-head p { margin: 0; color: var(--muted, #b9b3a3); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; align-content: start; padding: 2px 6px 8px 2px; }
.ev-card { position: relative; border-radius: 12px; overflow: hidden; background: var(--card, #161b1e); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 3px 0 var(--ev-accent), 0 6px 18px rgba(0, 0, 0, .35); transition: transform .15s, border-color .15s; }
.ev-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ev-accent) 60%, transparent); }
.ev-card.is-current { border-color: var(--ev-accent); box-shadow: inset 0 3px 0 var(--ev-accent), 0 0 0 2px color-mix(in srgb, var(--ev-accent) 50%, transparent), 0 6px 18px rgba(0, 0, 0, .35); }
.ev-card-open { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ev-card-open img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ev-card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.ev-card-body b { font-family: var(--display); font-size: 1.12rem; letter-spacing: .02em; color: #fff; }
.ev-card-body small { color: var(--ev-accent); font-weight: 700; font-size: .85rem; }
.ev-card > .ev-heart { position: absolute; top: 8px; right: 8px; }
.ev-card > .ev-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--ev-accent); color: #140f06; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ev-media-n { position: absolute; bottom: 64px; left: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .65); font-size: .72rem; }
.ev-admin-likes { position: absolute; top: 50px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(20, 16, 6, .85); border: 1px solid var(--adm-gold, #e6c35a);
  color: var(--adm-gold, #e6c35a); font-size: .74rem; font-weight: 800; }
.ev-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ev-box { margin: 0; padding: 18px 20px; }
.ev-box p { margin: 0 0 10px; line-height: 1.5; }
.ev-box-head { margin: 0 0 12px; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ev-box-head small { color: var(--muted, #b9b3a3); font-size: .68rem; letter-spacing: .04em; }
.ev-later { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ev-later li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }
.ev-later-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(244, 178, 95, .12); font-size: 1.1rem; }
.ev-later b { display: block; font-size: .95rem; }
.ev-later small { color: var(--muted, #b9b3a3); font-size: .8rem; }
.ev-discord { width: 100%; justify-content: center; }
.ev-favs { border-color: rgba(230, 195, 90, .35); }
.ev-favs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ev-favs li { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.ev-favs li b { color: #ff7b90; }
.ev-dialog { width: min(920px, calc(100vw - 32px)); max-height: min(88vh, 900px); padding: 0; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .15); background: #0f1312; color: inherit; overflow: hidden; }
.ev-dialog[open] { display: flex; flex-direction: column; }
.ev-dialog::backdrop, .ev-lightbox::backdrop { background: rgba(0, 0, 0, .75); }
.ev-dialog-body { overflow-y: auto; scrollbar-width: thin; }
.ev-x { position: absolute; top: 10px; right: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .65); color: #fff; font-size: 1rem; cursor: pointer; }
.ev-d { --ev-accent: #f4b25f; display: flex; flex-direction: column; gap: 14px; padding-bottom: 22px; }
.ev-d > :not(.ev-d-hero) { margin-inline: 26px; }
.ev-d-hero { position: relative; height: 280px; display: flex; align-items: flex-end; box-shadow: inset 0 -3px 0 var(--ev-accent); }
.ev-d-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 12, 11, .95) 0%, rgba(10, 12, 11, .2) 60%, transparent); }
.ev-d-hero > div { position: relative; z-index: 1; padding: 0 26px 18px; display: flex; flex-direction: column; gap: 6px; }
.ev-d-hero h2 { margin: 0; font-family: var(--display); font-size: 2.4rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.ev-d-hero .ev-heart { position: absolute; right: 22px; bottom: 18px; z-index: 1; }
.ev-d-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ev-d-cols p { margin: 0; line-height: 1.6; }
.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ev-fig { position: relative; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-fig .ev-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.ev-fig figcaption { font-size: .78rem; color: var(--muted, #b9b3a3); }
.ev-del { position: absolute; top: 6px; right: 6px; padding: 2px 8px; height: 26px; border-radius: 999px; border: 1px solid #ff8a7a; background: rgba(0, 0, 0, .75); color: #ff8a7a; font: inherit; font-size: .75rem; cursor: pointer; }
.ev-upload { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(230, 195, 90, .55); background: rgba(230, 195, 90, .05); }
.ev-upload-head { font-weight: 800; color: var(--adm-gold, #e6c35a); }
.ev-upload-head small { color: var(--muted, #b9b3a3); font-weight: 400; margin-left: 6px; }
.ev-drop { display: block; padding: 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .3); text-align: center; cursor: pointer; }
.ev-drop:hover { border-color: var(--adm-gold, #e6c35a); }
.ev-drop input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.ev-drop span { font-weight: 700; }
.ev-drop small { display: block; font-weight: 400; color: var(--muted, #b9b3a3); font-size: .78rem; }
.ev-upload-msg { margin: 0; font-size: .85rem; }
.ev-lightbox { max-width: min(1280px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: #000; overflow: hidden; }
.ev-lightbox[open] { display: flex; flex-direction: column; }
.ev-lightbox img, .ev-lightbox video { display: block; max-width: min(1280px, 94vw); max-height: calc(92vh - 40px); object-fit: contain; }
.ev-lb-cap { margin: 0; padding: 8px 14px; color: #ddd; font-size: .9rem; }
.ev-lb-cap:empty { display: none; }
.ev-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; margin: 0; padding: 10px 18px; border-radius: 999px; background: #1d2326;
  border: 1px solid rgba(244, 178, 95, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-weight: 700; }
.ev-toast[hidden] { display: none; }
@media (min-width: 1100px) {
  .ev-page { height: var(--fit-h, calc(100vh - 200px)); }
  .ev-main, .ev-side { min-height: 0; }
  .ev-grid { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; min-height: 0; flex: 1; }
  .ev-side { overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 1099px) { .ev-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ev-hero-grid { grid-template-columns: 1fr; padding: 20px; }
  .ev-hero-info { max-height: none; }
  .ev-last { padding-inline: 20px; }
  .ev-d-cols { grid-template-columns: 1fr; }
  .ev-d-hero { height: 200px; }
}
/* Events, tighter hero so the lineup shows; art visible between the text and the rules */
.ev-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding: 20px 26px 8px; }
.ev-hero::before { background: linear-gradient(90deg, rgba(6, 7, 6, .95) 0%, rgba(6, 7, 6, .7) 34%, rgba(6, 7, 6, .05) 58%, rgba(6, 7, 6, .05) 66%, rgba(6, 7, 6, .55) 78%),
  linear-gradient(0deg, rgba(6, 7, 6, .9) 0%, transparent 32%); }
.ev-hero-art { object-position: 70% 45%; }
.ev-title { font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
.ev-hero-main { gap: 8px; max-width: 560px; }
.ev-hero-info { max-height: 236px; background: rgba(8, 10, 9, .8); }
.ev-count-box { min-width: 54px; padding: 5px 6px; }
.ev-count-box b { font-size: 1.45rem; }
.ev-go { padding: 10px 20px; }
.ev-last { padding: 4px 26px 12px; }
.ev-card-open img { aspect-ratio: 2 / 1; }
.ev-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ev-media-n { bottom: 60px; }
.ev-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0; }
.ev-sub .ev-tag { font-size: 1.05rem; }
.ev-sub .ev-when { font-size: .92rem; }
.ev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
.ev-row .ev-acts { margin-top: 0; }
.ev-title { font-size: clamp(1.7rem, 2.5vw, 2.5rem); }
.ev-hero-main { max-width: none; }
.ev-hero-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.ev-hero-info { max-height: 200px; padding: 12px 16px; }
.ev-hero-info .ev-desc { font-size: .92rem; margin-bottom: 10px; }
.ev-hero-info .ev-rules li { font-size: .88rem; }
.ev-goers { font-size: .78rem; }
/* lineup cards: name and tagline over the art, so each card is one picture */
.ev-card-open { position: relative; }
.ev-card-open img { aspect-ratio: 16 / 9; }
.ev-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(0deg, rgba(5, 6, 5, .95) 10%, rgba(5, 6, 5, .6) 60%, transparent); }
.ev-card-body b { font-size: 1.15rem; text-shadow: 0 2px 8px #000; }
.ev-card-body small { text-shadow: 0 1px 6px #000; }
.ev-media-n { bottom: auto; top: 10px; left: auto; right: 52px; }
.ev-card.is-current .ev-media-n { right: 52px; }
@media (max-width: 860px) {
  .ev-hero-grid { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .ev-hero-info { max-height: none; }
  .ev-hero::before { background: linear-gradient(0deg, rgba(6, 7, 6, .96) 0%, rgba(6, 7, 6, .75) 55%, rgba(6, 7, 6, .35) 100%); }
  .ev-last { padding-inline: 18px; }
  .ev-count-box { min-width: 48px; }
  .ev-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .ev-d-cols { grid-template-columns: 1fr; }
}

/* Events extras (2026-11-18): calendar, bell, champions, the shared vote, Hall of Fame, past events */
.ev-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: .8rem; color: var(--muted, #b9b3a3); }
.ev-cal a { padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: #e9e3d2; text-decoration: none; background: rgba(0, 0, 0, .4); }
.ev-cal a:hover { border-color: var(--ev-accent); color: var(--ev-accent); }
.ev-bell { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .55);
  font-size: 1.25rem; cursor: pointer; filter: grayscale(1); opacity: .8; }
.ev-bell:hover { opacity: 1; filter: none; }
.ev-bell[aria-pressed="true"] { filter: none; opacity: 1; background: rgba(244, 178, 95, .25); border-color: var(--accent, #f4b25f); }
.ev-champ { margin: 0; font-size: .9rem; font-weight: 700; color: #ffd36b; }
.ev-champ a { color: inherit; }
.ev-champ-chip { position: absolute; left: 10px; top: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(20, 16, 6, .85); border: 1px solid #ffd36b; color: #ffd36b; font-size: .72rem; font-weight: 800;
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-card.is-current .ev-champ-chip { top: 38px; }
.ev-winners { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-winners li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 211, 107, .06); border: 1px solid rgba(255, 211, 107, .2); }
.ev-winners a { font-weight: 800; color: #fff; }
.ev-winners small { margin-left: auto; color: var(--muted, #b9b3a3); font-size: .78rem; }
.ev-del-inline { position: static; }
.ev-crown-found { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-crown-found button { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .35); color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.ev-crown-found button.is-on { background: var(--adm-gold, #e6c35a); color: #1d1405; border-color: transparent; }
.ev-crown-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.ev-places { display: flex; gap: 6px; }
.ev-places input { position: absolute; opacity: 0; pointer-events: none; }
.ev-places span { display: block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); cursor: pointer; font-size: .85rem; }
.ev-places input:checked + span { background: rgba(255, 211, 107, .18); border-color: #ffd36b; color: #ffd36b; }
.ev-crown-when { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--muted, #b9b3a3); flex: 1; min-width: 180px; }
.ev-poll-when { font-size: .82rem; color: var(--muted, #b9b3a3); }
.ev-poll { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-opt { --w: 0%; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: inherit; font: inherit; font-size: .86rem; text-align: left; cursor: pointer; }
.ev-opt:hover:not(:disabled) { border-color: var(--ev-accent); }
.ev-opt:disabled { cursor: default; }
.ev-opt-bar { position: absolute; inset: 0 auto 0 0; width: var(--w); background: color-mix(in srgb, var(--ev-accent) 30%, transparent); transition: width .5s; }
.ev-opt > span { position: relative; }
.ev-opt-name { font-weight: 700; }
.ev-opt-n { color: var(--muted, #b9b3a3); font-size: .78rem; white-space: nowrap; }
.ev-opt-n b { color: #fff; }
.ev-opt.is-lead { border-color: color-mix(in srgb, var(--ev-accent) 60%, transparent); }
.ev-opt.is-mine { box-shadow: inset 0 0 0 2px var(--ev-accent); }
.ev-opt.is-mine .ev-opt-name::after { content: " ✓ your vote"; font-size: .72rem; color: var(--ev-accent); }
.ev-poll-foot { margin: 0 0 4px !important; font-size: .85rem; }
.ev-poll-foot small { color: var(--muted, #b9b3a3); }
.ev-poll-note { font-size: .78rem; color: var(--muted, #b9b3a3); }
.ev-poll-end { width: 100%; justify-content: center; }
.ev-poll-new { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 10px; }
.ev-poll-new summary { cursor: pointer; color: var(--adm-gold, #e6c35a); font-weight: 700; font-size: .88rem; }
.ev-poll-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ev-poll-pick { display: grid; grid-template-columns: 1fr; gap: 4px; }
.ev-poll-pick label { display: flex; gap: 8px; align-items: center; font-size: .85rem; cursor: pointer; }
.ev-hall ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: h; }
.ev-hall li { counter-increment: h; display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; font-size: .9rem; }
.ev-hall li::before { content: counter(h); color: var(--muted, #b9b3a3); font-weight: 800; }
.ev-hall li:first-child::before { content: "👑"; }
.ev-hall a { font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-hall b { color: #ffd36b; font-size: .82rem; }
.ev-past { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-past li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; }
.ev-past img { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.ev-past b { display: block; font-size: .86rem; line-height: 1.2; }
.ev-past small { display: block; color: var(--muted, #b9b3a3); font-size: .74rem; }
.ev-past .ev-past-champ { color: #ffd36b; }
.badge.ev-trophy { background: rgba(255, 211, 107, .14); border-color: rgba(255, 211, 107, .5); color: #ffd36b; }
/* admin-only event ideas under the lineup */
.ev-ideas-head { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed rgba(230, 195, 90, .4); }
.ev-ideas-head h2 { margin: 0; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; color: var(--adm-gold, #e6c35a); }
.ev-ideas-head h2 small { font-family: inherit; font-size: .7rem; color: var(--muted, #b9b3a3); letter-spacing: .04em; }
.ev-ideas-head p { margin: 0; color: var(--muted, #b9b3a3); font-size: .88rem; }
.ev-idea { border-style: dashed; opacity: .88; }
.ev-idea:hover { opacity: 1; }
.ev-idea img { filter: saturate(.55) brightness(.8); }
.ev-idea-badge { background: rgba(20, 16, 6, .85) !important; color: var(--adm-gold, #e6c35a) !important; border: 1px solid var(--adm-gold, #e6c35a); }
.ev-idea-add { position: absolute; top: 8px; right: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--adm-gold, #e6c35a); background: rgba(20, 16, 6, .85);
  color: var(--adm-gold, #e6c35a); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.ev-idea-add:hover { background: var(--adm-gold, #e6c35a); color: #1d1405; }
.ev-idea-go, .ev-idea-off { align-self: flex-start; }
.ev-grid { grid-auto-rows: max-content; }

/* ===== Events admin desk (2026-11-18): start screen + 7 tabs, same look as the News desk ===== */
.adm-drawer > .adm-desk:has(.ed-tabs), .has-desk-btn .adm-drawer > .adm-desk:has(.ed-tabs) { width: min(640px, calc(100vw - 24px)); }
.ed-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ed-tabs > label { font-size: .72rem; padding-inline: 2px; }
.ed-tabs:not(:has(> input:checked)) .ed-pane-home,
.ed-tabs:has(#ed-tab-write:checked) .ed-pane-write, .ed-tabs:has(#ed-tab-posts:checked) .ed-pane-posts,
.ed-tabs:has(#ed-tab-vote:checked) .ed-pane-vote, .ed-tabs:has(#ed-tab-wins:checked) .ed-pane-wins,
.ed-tabs:has(#ed-tab-media:checked) .ed-pane-media, .ed-tabs:has(#ed-tab-lineup:checked) .ed-pane-lineup,
.ed-tabs:has(#ed-tab-settings:checked) .ed-pane-settings { display: flex; }
.ed-home { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-home .nd-home-card { padding: 12px; }
.ed-home .nd-home-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ed-types { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-type { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: var(--adm-bg2); color: var(--adm-ink); font: inherit; font-size: .78rem; cursor: pointer; }
.ed-type:hover { border-color: var(--ev-accent, var(--adm-gold)); }
.ed-type.is-on { border-color: var(--ev-accent, var(--adm-gold)); box-shadow: inset 0 0 0 1px var(--ev-accent, var(--adm-gold)); background: rgba(230, 195, 90, .1); }
.ed-when { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.ed-post.is-on { border-color: rgba(229, 72, 59, .55); }
.ed-post.is-past { opacity: .72; }
.ed-post .ed-state { font-weight: 700; color: var(--adm-gold); }
.ed-post.is-on .ed-state { color: #ff7a6b; }
.ed-post .nd-post-acts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ed-bars li { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 8px; font-size: .8rem; }
.ed-bars i { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.ed-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); background: var(--ev-accent, var(--adm-gold)); border-radius: inherit; }
.ed-bars b { text-align: right; font-size: .75rem; color: var(--adm-dim); }
.ed-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ed-checks label { cursor: pointer; }
.ed-checks input { position: absolute; opacity: 0; pointer-events: none; }
.ed-checks span { display: block; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: var(--adm-bg2); font-size: .8rem; opacity: .55; }
.ed-checks input:checked + span { opacity: 1; border-color: var(--adm-gold); background: rgba(230, 195, 90, .1); }
.ed-checks input:focus-visible + span { outline: 2px solid var(--adm-gold); }
.ed-wins, .ed-lineup, .ed-ideas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ed-wins li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 28px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--adm-bg2); }
.ed-wins b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-wins small, .ed-lineup small { color: var(--adm-dim); font-size: .72rem; }
.ed-lineup li { display: grid; grid-template-columns: minmax(0, 1fr) 60px 90px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--adm-bg2); font-size: .85rem; }
.ed-lineup b { color: #ff8fa3; text-align: right; }
.ed-lineup small { text-align: center; }
.ed-lineup .adm-btn { justify-content: center; padding: 4px 8px; font-size: .75rem; }
.ed-ideas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--adm-bg2); }
.ed-ideas div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ed-ideas small { color: var(--adm-dim); font-size: .72rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-media { border-radius: 10px; background: var(--adm-bg2); border: 1px solid rgba(255, 255, 255, .06); }
.ed-media summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; cursor: pointer; font-size: .88rem; }
.ed-media summary small { color: var(--adm-dim); }
.ed-media[open] summary { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ed-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 12px 0; }
.ed-thumbs figure { position: relative; margin: 0; }
.ed-thumbs img, .ed-thumbs video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; display: block; }
.ed-thumbs figcaption { font-size: .66rem; color: var(--adm-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-upload { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.ed-pane-wins .ev-crown-found { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 680px) {
  .ed-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ed-home, .ed-checks { grid-template-columns: 1fr; }
  .ed-post .nd-post-acts { grid-template-columns: 1fr 1fr; }
  .ed-bars li { grid-template-columns: 110px 1fr 60px; }
  .ed-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ed-ideas { display: grid; grid-template-columns: 1fr 1fr; }
.ed-ideas small { -webkit-line-clamp: 1; }
@media (max-width: 680px) { .ed-ideas { grid-template-columns: 1fr; } }

/* Events cards, easier on the eyes (2026-11-18, Vengefulmink: "a little dark... make it easier to see each separate event"):
   brighter pictures, the name on its own lit panel under the picture, a coloured frame per event and more space. */
.ev-grid { gap: 18px; }
.ev-card { border: 2px solid color-mix(in srgb, var(--ev-accent) 45%, #3a4247); background: color-mix(in srgb, var(--ev-accent) 12%, #1d2427);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.ev-card:hover { border-color: var(--ev-accent); box-shadow: 0 0 0 1px var(--ev-accent), 0 10px 22px rgba(0, 0, 0, .45); }
.ev-card-open img { aspect-ratio: 2 / 1; filter: brightness(1.25) saturate(1.1); }
.ev-card-body { position: static; padding: 10px 12px 12px; background: none; border-top: 3px solid var(--ev-accent); }
.ev-card-body b { font-size: 1.15rem; text-shadow: none; }
.ev-card-body small { text-shadow: none; color: color-mix(in srgb, var(--ev-accent) 70%, #fff); }
.ev-idea { border-style: dashed; opacity: 1; }
.ev-idea img { filter: brightness(1.15) saturate(.9); }
.ev-ideas-head { margin-top: 18px; }

/* ===== Rankings 2 (2026-11-18, Vengefulmink: "make this page pop... clean and organized but exciting") =====
   Boards in four groups | torch-lit arena podium + the list (scrolls inside) | you, your rival, who's rising. */
.rk2 { --gold: #f2c14e; --silver: #c9d3dd; --bronze: #d6905a; --up: #5fd47a; --down: #ff7a6b; }
@media (min-width: 1100px) {
  .rk2.rankings-page { grid-template-columns: 250px minmax(0, 1fr) 290px; }
}
.rk2 .rk-title { margin: 0 0 6px; font: 700 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em;
  background: linear-gradient(180deg, #ffe7a3, var(--gold) 55%, #b8862a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk2 .rk-group { display: flex; flex-direction: column; gap: 5px; }
.rk2 .rk-group + .rk-group { margin-top: 6px; }
.rk2 .rk-group-name { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 2px; }
.rk2 .rk-board { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--panel-raised) 55%, transparent); transition: border-color .15s, transform .15s, background .15s; }
.rk2 .rk-board:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.rk2 .rk-board.active { border-color: var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, var(--panel-raised)), var(--panel-raised));
  box-shadow: inset 3px 0 0 var(--accent), 0 0 18px color-mix(in srgb, var(--accent) 18%, transparent); }
.rk2 .rk-board-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(0, 0, 0, .3); font-size: 1rem; }
.rk2 .rk-board-text { display: flex; flex-direction: column; min-width: 0; }
.rk2 .rk-board-name { font-weight: 800; font-size: .9rem; }
.rk2 .rk-board-top { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk2 .rk-board-you { padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); font-size: .74rem; font-weight: 800; }

.rk2 .rk-main { gap: 10px; }
.rk2 .rk-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; }
.rk2 .rk-head-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 1.6rem;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 35%, transparent), rgba(0, 0, 0, .35)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.rk2 .rk-head h2 { margin: 0; font: 700 1.55rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.rk2 .rk-head p { margin: 2px 0 0; font-size: .84rem; color: var(--muted); }
.rk2 .rk-periods { display: flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.rk2 .rk-period { padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 800; color: var(--muted); text-decoration: none; white-space: nowrap; }
.rk2 .rk-period:hover { color: var(--text); }
.rk2 .rk-period.active { background: var(--accent); color: #1d1405; }
.rk2 .rk-period-now { font-size: .8rem; font-weight: 800; color: var(--up); white-space: nowrap; }

/* the arena: three plinths in torchlight */
.rk2 .rk-arena { position: relative; list-style: none; margin: 0; padding: 22px 16px 0; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 12px;
  border-radius: 14px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%),
    radial-gradient(circle at 6% 30%, rgba(255, 140, 50, .28), transparent 22%), radial-gradient(circle at 94% 30%, rgba(255, 140, 50, .28), transparent 22%),
    linear-gradient(180deg, #120d08, #1d1710 70%, #2a2016); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); }
.rk2 .rk-arena::before, .rk2 .rk-arena::after { content: "🔥"; position: absolute; top: 14px; font-size: 1.4rem; filter: drop-shadow(0 0 10px rgba(255, 140, 40, .9)); animation: rk-flicker 2.2s ease-in-out infinite; z-index: -1; }
.rk2 .rk-arena::before { left: 14px; } .rk2 .rk-arena::after { right: 14px; animation-delay: .7s; }
@keyframes rk-flicker { 0%, 100% { opacity: .85; transform: scale(1); } 45% { opacity: 1; transform: scale(1.12) rotate(-3deg); } 70% { opacity: .75; transform: scale(.95); } }
.rk2 .rk-step { --m: var(--bronze); order: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; text-align: center; min-width: 0; grid-row: 1;
  animation: rk-rise .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.rk2 .rk-step-1 { --m: var(--gold); grid-column: 2; animation-delay: .25s; }
.rk2 .rk-step-2 { --m: var(--silver); grid-column: 1; animation-delay: .1s; }
.rk2 .rk-step-3 { grid-column: 3; animation-delay: .4s; }
@keyframes rk-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.rk2 .rk-step .rk-face-lg { width: 74px; height: 74px; border: 3px solid var(--m); box-shadow: 0 0 0 3px rgba(0, 0, 0, .5), 0 0 24px color-mix(in srgb, var(--m) 55%, transparent); }
.rk2 .rk-step-1 .rk-face-lg { width: 98px; height: 98px; }
.rk2 .rk-crown { font-size: 1.6rem; line-height: 1; margin-bottom: -6px; filter: drop-shadow(0 0 8px rgba(242, 193, 78, .8)); animation: rk-bob 2.4s ease-in-out infinite; }
@keyframes rk-bob { 50% { transform: translateY(-5px) rotate(4deg); } }
.rk2 .rk-step-name { font-size: 1rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk2 .rk-step-1 .rk-step-name { font-size: 1.15rem; }
.rk2 .rk-step-name a { color: #fff; }
.rk2 .rk-step-tag { font-size: .74rem; font-style: italic; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk2 .rk-step-value { font: 700 1.2rem/1.1 var(--display); color: var(--m); text-shadow: 0 0 14px color-mix(in srgb, var(--m) 45%, transparent); }
.rk2 .rk-step-1 .rk-step-value { font-size: 1.45rem; }
.rk2 .rk-step-extra { font-size: .72rem; color: var(--muted); }
.rk2 .rk-step-foot { display: flex; align-items: center; gap: 6px; min-height: 24px; margin-top: 2px; }
.rk2 .rk-cmp-step { margin: 0; }
.rk2 .rk-plinth { display: grid; place-items: center; align-self: stretch; height: 46px; margin-top: 8px; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 55%, #2a2016), color-mix(in srgb, var(--m) 18%, #15110b)); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--m) 80%, #fff); }
.rk2 .rk-step-1 .rk-plinth { height: 72px; }
.rk2 .rk-step-2 .rk-plinth { height: 56px; }
.rk2 .rk-plinth i { font: 700 1.6rem/1 var(--display); font-style: normal; color: rgba(0, 0, 0, .55); text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
.rk2 .rk-step.is-me .rk-plinth { box-shadow: inset 0 2px 0 #fff, 0 0 0 2px var(--accent); }

/* the list */
.rk2 .rk-list-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; }
.rk2 .rk-findme { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; }
.rk2 .rk-findme:hover { background: var(--accent); color: #1d1405; }
.rk2 .rk-count { flex: none; font-size: .76rem; color: var(--muted); }
.rk2 .rk-row { grid-template-columns: 34px 38px 32px minmax(0, 1fr) auto 28px; gap: 8px; padding: 6px 10px; border-radius: 10px; transition: background .15s, transform .15s; }
.rk2 .rk-near .rk-row { grid-template-columns: 30px 28px minmax(0, 1fr) auto; }
.rk2 .rk-row:hover { background: color-mix(in srgb, var(--accent) 9%, var(--panel-raised)); transform: translateX(2px); }
.rk2 .rk-pos { font: 700 1rem/1 var(--display); color: var(--muted); }
.rk2 .rk-row:nth-child(-n+7) .rk-pos { color: var(--text); }
.rk2 .rk-name small { color: var(--muted); font-size: .74rem; }
.rk2 .rk-value { color: var(--text); }
.rk2 .rk-row.is-me { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel-raised)); }
.rk2 .rk-row.is-flash { animation: rk-flash 1.6s ease-out; }
@keyframes rk-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: none; } }
.rk2 .rk-row.is-hot { background: linear-gradient(90deg, rgba(255, 120, 40, .16), transparent 60%); }
.rk2 .rk-move { display: inline-block; min-width: 30px; padding: 1px 5px; border-radius: 6px; font-size: .7rem; font-weight: 800; text-align: center; line-height: 1.5; }
.rk2 .rk-move.is-up { color: var(--up); background: rgba(95, 212, 122, .14); }
.rk2 .rk-move.is-down { color: var(--down); background: rgba(255, 122, 107, .14); }
.rk2 .rk-move.is-new { color: #1d1405; background: var(--accent); }
.rk2 .rk-move.is-same { color: var(--muted); }
.rk2 .rk-hot { animation: rk-flicker 1.6s ease-in-out infinite; display: inline-block; }
.rk2 .rk-face.is-species img { filter: saturate(.85); }
.rk2 .rk-face-md { width: 46px; height: 46px; }
.rk2 .rk-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 30px; }
.rk2 .rk-empty > span { font-size: 3rem; filter: grayscale(.4); opacity: .7; }

/* you */
.rk2 .rk-you { gap: 12px; }
.rk2 .rk-side-h { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.rk2 .rk-side-h small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.rk2 .rk-you-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 12px; text-align: center;
  background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%), rgba(0, 0, 0, .25); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.rk2 .rk-you-label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rk2 .rk-you-big { font: 700 3.2rem/1 var(--display); color: var(--accent); text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.rk2 .rk-you-of { font-size: .82rem; color: var(--muted); }
.rk2 .rk-rival { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--panel-raised); border: 1px solid var(--line); }
.rk2 .rk-rival-who { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.rk2 .rk-rival-who div { display: flex; flex-direction: column; min-width: 0; }
.rk2 .rk-rival-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk2 .rk-rival-who small { color: var(--muted); font-size: .76rem; }
.rk2 .rk-bar { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, .4); overflow: hidden; }
.rk2 .rk-bar i { display: block; height: 100%; width: var(--pct, 0%); border-radius: inherit; background: linear-gradient(90deg, #b8862a, var(--accent), #ffe7a3); transition: width 1s ease-out; }
.rk2 .rk-gap { margin: 0; font-size: .85rem; }
.rk2 .rk-gap b { color: var(--accent); }
.rk2 .rk-rise ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rk2 .rk-rise li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 120, 40, .14), transparent); }

/* hover card */
.rk-pop { position: fixed; z-index: 60; width: 270px; padding: 12px; border-radius: 12px; background: #15191b; border: 1px solid color-mix(in srgb, var(--box-c, var(--accent)) 60%, #333);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .6); font-size: .82rem; pointer-events: auto; animation: rk-pop .14s ease-out; }
.rk-pop[hidden] { display: none; }
@keyframes rk-pop { from { opacity: 0; transform: translateY(4px); } }
.rk-pop-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; }
.rk-pop-head img, .rk-pop-head .profile-mark { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--box-c, var(--accent)); background: var(--panel); display: grid; place-items: center; }
.rk-pop-head b { display: block; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pop-head small { color: var(--muted); }
.rk-pop-on { color: #5fd47a; font-weight: 800; }
.rk-pop-tag { margin: 8px 0 0; font-style: italic; color: var(--muted); }
.rk-pop-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.rk-pop-stats span { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.rk-pop-stats b { font-size: .9rem; }
.rk-pop-stats small { color: var(--muted); font-size: .66rem; }
.rk-pop-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.rk-pop-chips span { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .72rem; }
.rk-pop-chips .is-bounty { background: rgba(255, 122, 107, .16); color: #ff9d90; }
.rk-pop-chips .is-trophy { background: rgba(242, 193, 78, .16); color: #f2c14e; }
.rk-pop-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.rk-pop-acts a { padding: 6px; border-radius: 8px; border: 1px solid var(--line); text-align: center; font-weight: 800; text-decoration: none; color: var(--text); }
.rk-pop-acts a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1099px) {
  .rk2 .rk-boards { flex-direction: column; }
  .rk2 .rk-group { flex-direction: row; flex-wrap: wrap; }
  .rk2 .rk-group-name { flex: 1 0 100%; }
  .rk2 .rk-board { flex: 1 1 200px; }
}
@media (max-width: 640px) {
  .rk2 .rk-head { grid-template-columns: auto minmax(0, 1fr); }
  .rk2 .rk-periods { grid-column: 1 / -1; justify-self: start; }
  .rk2 .rk-arena { padding: 18px 8px 0; gap: 6px; }
  .rk2 .rk-arena::before, .rk2 .rk-arena::after { display: none; }
  .rk2 .rk-step .rk-face-lg { width: 54px; height: 54px; } .rk2 .rk-step-1 .rk-face-lg { width: 70px; height: 70px; }
  .rk2 .rk-step-tag, .rk2 .rk-step-extra, .rk2 .rk-cmp-step { display: none; }
  .rk2 .rk-step-value { font-size: 1rem; } .rk2 .rk-step-1 .rk-step-value { font-size: 1.15rem; }
  .rk2 .rk-step-1, .rk2 .rk-step-2, .rk2 .rk-step-3 { grid-row: 1; }
  .rk2 .rk-step-1 { grid-column: 2; } .rk2 .rk-step-2 { grid-column: 1; } .rk2 .rk-step-3 { grid-column: 3; }
  .rk2 .rk-row { grid-template-columns: 28px 34px 28px minmax(0, 1fr) auto; }
  .rk2 .rk-row .rk-cmp { display: none; }
  .rk2 .rk-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rk2 .rk-step, .rk2 .rk-crown, .rk2 .rk-arena::before, .rk2 .rk-arena::after, .rk2 .rk-hot { animation: none; } }
.rk2 .rk-head, .rk2 .rk-arena, .rk2 .rk-list-head { flex: none; }
.rk2 .rk-places { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rk2 .rk-places a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--panel-raised); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .86rem; }
.rk2 .rk-places a:hover { border-color: var(--accent); }
.rk2 .rk-places b { color: var(--accent); }
/* Rankings admin desk (2026-11-18) */
.adm-drawer > .adm-desk:has(.rd-tabs), .has-desk-btn .adm-drawer > .adm-desk:has(.rd-tabs) { width: min(640px, calc(100vw - 24px)); }
.rd-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-tabs:not(:has(> input:checked)) .rd-pane-home,
.rd-tabs:has(#rd-tab-reset:checked) .rd-pane-reset, .rd-tabs:has(#rd-tab-hide:checked) .rd-pane-hide,
.rd-tabs:has(#rd-tab-boards:checked) .rd-pane-boards, .rd-tabs:has(#rd-tab-history:checked) .rd-pane-history { display: flex; }
.rd-form { gap: 10px; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-chips label { cursor: pointer; }
.rd-chips input { position: absolute; opacity: 0; pointer-events: none; }
.rd-chips span { display: block; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: var(--adm-bg2); font-size: .8rem; }
.rd-chips input:checked + span { border-color: var(--adm-gold); background: rgba(230, 195, 90, .14); box-shadow: inset 0 0 0 1px var(--adm-gold); }
.rd-chips input:focus-visible + span { outline: 2px solid var(--adm-gold); }
.rd-find { display: flex; flex-direction: column; gap: 6px; }
.rd-find[hidden] { display: none; }
.rd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rd-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--adm-bg2); }
.rd-list li > span { display: flex; flex-direction: column; min-width: 0; }
.rd-list small { color: var(--adm-dim); font-size: .74rem; }
.rd-history li { grid-template-columns: 26px minmax(0, 1fr) auto; }
.rd-history li.is-undone { opacity: .55; }
.rd-h-ico { font-size: 1.1rem; text-align: center; }
.rd-h-main { display: flex; flex-direction: column; min-width: 0; }
.rk2 .rk-board-name small { font-size: .75rem; }
/* arena a bit shorter so more of the list fits */
.rk2 .rk-arena { padding-top: 14px; }
.rk2 .rk-step .rk-face-lg { width: 62px; height: 62px; } .rk2 .rk-step-1 .rk-face-lg { width: 80px; height: 80px; }
.rk2 .rk-step-tag { display: none; }
.rk2 .rk-plinth { height: 30px; margin-top: 6px; } .rk2 .rk-step-1 .rk-plinth { height: 48px; } .rk2 .rk-step-2 .rk-plinth { height: 38px; }
.rk2 .rk-plinth i { font-size: 1.2rem; }

/* Rankings "big stage" layout (?layout=stage, 2026-11-18, to compare with the three columns): the boards become a strip
   of icon tabs across the top, the arena runs full width, the list and your side sit below. */
.rk2.rk-stage { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "nav nav" "main you"; }
.rk2.rk-stage > .rk-boards { grid-area: nav; height: auto !important; overflow: visible !important; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 10px; padding: 10px 14px; }
.rk2.rk-stage > .rk-main { grid-area: main; } .rk2.rk-stage > .rk-you { grid-area: you; }
.rk2.rk-stage .rk-title { align-self: center; margin: 0 6px 0 0; font-size: 1.3rem; }
.rk2.rk-stage .rk-group { flex-direction: row; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.rk2.rk-stage .rk-group + .rk-group { margin-top: 0; }
.rk2.rk-stage .rk-group-name { font-size: .64rem; writing-mode: horizontal-tb; padding: 0 4px 0 0; white-space: nowrap; }
.rk2.rk-stage .rk-board { grid-template-columns: auto auto auto; padding: 5px 10px 5px 6px; gap: 6px; border-radius: 999px; }
.rk2.rk-stage .rk-board:hover { transform: translateY(-2px); }
.rk2.rk-stage .rk-board.active { box-shadow: 0 0 0 1px var(--accent), 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.rk2.rk-stage .rk-board-ico { width: 24px; height: 24px; border-radius: 50%; font-size: .85rem; }
.rk2.rk-stage .rk-board-top { display: none; }
.rk2.rk-stage .rk-board-name { font-size: .82rem; white-space: nowrap; }
.rk2.rk-stage .rk-arena { padding: 18px 60px 0; grid-template-columns: 1fr 1.3fr 1fr; gap: 26px; }
.rk2.rk-stage .rk-step .rk-face-lg { width: 76px; height: 76px; } .rk2.rk-stage .rk-step-1 .rk-face-lg { width: 100px; height: 100px; }
.rk2.rk-stage .rk-step-tag { display: block; }
.rk2.rk-stage .rk-plinth { height: 40px; } .rk2.rk-stage .rk-step-1 .rk-plinth { height: 62px; } .rk2.rk-stage .rk-step-2 .rk-plinth { height: 50px; }
.rk2.rk-stage .rk-arena::before, .rk2.rk-stage .rk-arena::after { font-size: 2rem; top: 24px; }
.rk2.rk-stage .rk-arena::before { left: 28px; } .rk2.rk-stage .rk-arena::after { right: 28px; }
@media (max-width: 1099px) { .rk2.rk-stage { grid-template-columns: 1fr; grid-template-areas: "nav" "main" "you"; } }
@media (min-width: 1100px) { .rk2.rk-stage > .rk-main, .rk2.rk-stage > .rk-you { height: calc(var(--fit-h, calc(100vh - 200px)) - var(--nav-h, 64px) - 14px); } }

/* The leaders are a big deal (2026-11-18, Vengefulmink: "the leaders should deff stick out"): bigger faces, a spotlight
   with turning rays behind the champion, ribbons, gold name, and a shimmer on the #1 plinth. */
.rk2 .rk-arena { padding-top: 20px; }
.rk2 .rk-step { position: relative; z-index: 1; }
.rk2 .rk-step .rk-face-lg { width: 84px; height: 84px; }
.rk2 .rk-step-1 .rk-face-lg { width: 120px; height: 120px; border-width: 4px; box-shadow: 0 0 0 4px rgba(0, 0, 0, .55), 0 0 40px rgba(242, 193, 78, .7), 0 0 90px rgba(242, 193, 78, .35); }
.rk2 .rk-rays { position: absolute; z-index: -1; top: -40px; left: 50%; width: 320px; height: 320px; margin-left: -160px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, .22) 0deg 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%); mask: radial-gradient(circle, #000 18%, transparent 66%); animation: rk-spin 26s linear infinite; }
@keyframes rk-spin { to { transform: rotate(360deg); } }
.rk2 .rk-crown { font-size: 2.1rem; margin-bottom: -10px; }
.rk2 .rk-ribbon { padding: 2px 10px; border-radius: 4px; font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  color: #1d1405; background: var(--m); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); order: -1; margin-bottom: 4px; }
.rk2 .rk-step-1 .rk-ribbon { font-size: .7rem; padding: 3px 14px; background: linear-gradient(90deg, #b8862a, #ffe7a3, #f2c14e, #b8862a); background-size: 200% 100%; animation: rk-shine 3s linear infinite; }
@keyframes rk-shine { to { background-position: -200% 0; } }
.rk2 .rk-step-1 .rk-crown { order: -2; }
.rk2 .rk-step-1 .rk-rays { order: -3; }
.rk2 .rk-step-1 .rk-step-name { font: 700 1.45rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.rk2 .rk-step-1 .rk-step-name a { background: linear-gradient(180deg, #fff6d6, #f2c14e 70%, #c99232); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk2 .rk-step-2 .rk-step-name, .rk2 .rk-step-3 .rk-step-name { font: 700 1.1rem/1.1 var(--display); text-transform: uppercase; }
.rk2 .rk-step-value { font-size: 1.3rem; } .rk2 .rk-step-1 .rk-step-value { font-size: 1.75rem; }
.rk2 .rk-step-tag { display: block; }
.rk2 .rk-plinth { height: 40px; margin-top: 8px; } .rk2 .rk-step-1 .rk-plinth { height: 70px; } .rk2 .rk-step-2 .rk-plinth { height: 54px; }
.rk2 .rk-step-1 .rk-plinth { position: relative; overflow: hidden; }
.rk2 .rk-step-1 .rk-plinth::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-100%); animation: rk-sweep 3.5s ease-in-out infinite 1s; }
@keyframes rk-sweep { 60%, 100% { transform: translateX(100%); } }
.rk2 .rk-plinth i { font-size: 1.8rem; }
.rk2.rk-stage .rk-step .rk-face-lg { width: 96px; height: 96px; } .rk2.rk-stage .rk-step-1 .rk-face-lg { width: 140px; height: 140px; }
.rk2.rk-stage .rk-rays { width: 420px; height: 420px; margin-left: -210px; top: -60px; }
.rk2.rk-stage .rk-step-1 .rk-plinth { height: 80px; }
@media (max-width: 640px) { .rk2 .rk-step .rk-face-lg { width: 56px; height: 56px; } .rk2 .rk-step-1 .rk-face-lg { width: 80px; height: 80px; }
  .rk2 .rk-rays { width: 200px; height: 200px; margin-left: -100px; } .rk2 .rk-step-1 .rk-step-name { font-size: 1.05rem; } .rk2 .rk-ribbon { font-size: .55rem; } }
@media (prefers-reduced-motion: reduce) { .rk2 .rk-rays, .rk2 .rk-ribbon, .rk2 .rk-step-1 .rk-plinth::after { animation: none; } }
.rk2.rk-stage > .rk-boards { gap: 6px; padding: 8px 12px; }
.rk2.rk-stage .rk-group { padding: 0; background: none; gap: 4px; }
.rk2.rk-stage .rk-group + .rk-group { padding-left: 8px; border-left: 1px solid var(--line); }
.rk2.rk-stage .rk-group-name { display: none; }
.rk2.rk-stage .rk-board { padding: 4px 9px 4px 5px; }
.rk2.rk-stage .rk-board-you { padding: 1px 5px; font-size: .68rem; }
.rk2.rk-stage .rk-step .rk-face-lg { width: 84px; height: 84px; } .rk2.rk-stage .rk-step-1 .rk-face-lg { width: 124px; height: 124px; }
.rk2.rk-stage .rk-step-1 .rk-plinth { height: 70px; }

/* Use the whole screen (2026-11-18, Vengefulmink: "a lot of free space... utilize it"): Rankings runs wide, the list goes
   two across on big screens, and a "This board" stats box fills the right side. */
main:has(.rk2) { max-width: min(1760px, 100%); }
@media (min-width: 1100px) { .rk2.rankings-page { grid-template-columns: 270px minmax(0, 1fr) 320px; } .rk2.rk-stage { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (min-width: 1480px) {
  .rk2 #rk-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 4px; align-content: start; }
  .rk2 #rk-list .rk-row:nth-child(4n+1), .rk2 #rk-list .rk-row:nth-child(4n+2) { background: color-mix(in srgb, var(--panel-raised) 60%, transparent); }
  .rk2 #rk-list .rk-row:nth-child(4n+3), .rk2 #rk-list .rk-row:nth-child(4n) { background: none; }
  .rk2 #rk-list .rk-row.is-me { background: color-mix(in srgb, var(--accent) 16%, var(--panel-raised)); }
  .rk2 #rk-list .rk-none { grid-column: 1 / -1; }
}
.rk2 .rk-stats { display: flex; flex-direction: column; gap: 8px; }
.rk2 .rk-stat-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; }
.rk2 .rk-stat-grid span { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; background: var(--panel-raised); border: 1px solid var(--line); min-width: 0; }
.rk2 .rk-stat-grid b { font: 700 1.2rem/1.1 var(--display); color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk2 .rk-stat-grid small { color: var(--muted); font-size: .72rem; }
.rk2 .rk-lead { margin: 0; font-size: .84rem; } .rk2 .rk-lead b { color: var(--gold); }
/* stage is the layout now (2026-11-18): give the list a little more room on shorter screens */
@media (min-width: 1100px) and (max-height: 900px) {
  .rk2.rk-stage .rk-step .rk-face-lg { width: 72px; height: 72px; } .rk2.rk-stage .rk-step-1 .rk-face-lg { width: 104px; height: 104px; }
  .rk2.rk-stage .rk-plinth { height: 30px; } .rk2.rk-stage .rk-step-1 .rk-plinth { height: 52px; } .rk2.rk-stage .rk-step-2 .rk-plinth { height: 40px; }
  .rk2.rk-stage .rk-step-tag { display: none; }
}
.rk2.rk-stage > .rk-boards { gap: 4px; padding: 7px 10px; }
.rk2.rk-stage .rk-title { font-size: 1.1rem; }
.rk2.rk-stage .rk-group + .rk-group { padding-left: 4px; }
.rk2.rk-stage .rk-board { padding: 3px 8px 3px 4px; gap: 5px; }
.rk2.rk-stage .rk-board-ico { width: 22px; height: 22px; font-size: .78rem; }
.rk2.rk-stage .rk-board-name { font-size: .78rem; }
@media (min-width: 1100px) and (max-height: 900px) {
  .rk2.rk-stage .rk-arena { padding-top: 10px; }
  .rk2.rk-stage .rk-step .rk-face-lg { width: 60px; height: 60px; } .rk2.rk-stage .rk-step-1 .rk-face-lg { width: 88px; height: 88px; }
  .rk2.rk-stage .rk-crown { font-size: 1.6rem; }
  .rk2.rk-stage .rk-plinth { height: 22px; margin-top: 4px; } .rk2.rk-stage .rk-step-1 .rk-plinth { height: 38px; } .rk2.rk-stage .rk-step-2 .rk-plinth { height: 30px; }
  .rk2.rk-stage .rk-plinth i { font-size: 1.1rem; }
  .rk2.rk-stage .rk-step-value { font-size: 1.1rem; } .rk2.rk-stage .rk-step-1 .rk-step-value { font-size: 1.45rem; }
  .rk2.rk-stage .rk-step-1 .rk-step-name { font-size: 1.25rem; }
  .rk2.rk-stage .rk-step-extra { display: none; }
  .rk2.rk-stage .rk-rays { width: 300px; height: 300px; margin-left: -150px; top: -50px; }
}
@media (min-width: 1300px) { .rk2.rk-stage #rk-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 4px; align-content: start; } .rk2.rk-stage #rk-list .rk-none { grid-column: 1 / -1; } }

/* Rankings folder tabs (2026-11-18, Vengefulmink: "bigger so people dont miss it... in the same box as the ranking
   pictures... the tab highlights into an open box"). Big tabs sit on the podium box; the picked one opens into it. */
@media (min-width: 1100px) {
  .rk2.rk-folder { --rk-edge: color-mix(in srgb, var(--accent) 55%, var(--line)); grid-template-areas: "nav you" "main you"; row-gap: 0; }
  .rk2.rk-folder > .rk-you { height: var(--fit-h, calc(100vh - 200px)) !important; }
  .rk2.rk-folder > .rk-main { height: calc(var(--fit-h, calc(100vh - 200px)) - var(--nav-h, 80px)) !important; border-color: var(--rk-edge); border-top-left-radius: 0; }
  .rk2.rk-folder > .rk-boards { position: relative; z-index: 2; flex-wrap: nowrap; align-items: flex-end; gap: 4px; padding: 0; margin-bottom: -1px; background: none; border: 0; box-shadow: none; }
  .rk2.rk-folder .rk-title { align-self: center; margin: 0 10px 0 4px; font-size: 1.45rem; white-space: nowrap; }
  .rk2.rk-folder .rk-group { display: contents; }
  .rk2.rk-folder .rk-group + .rk-group .rk-board:first-of-type { margin-left: 8px; }
  .rk2.rk-folder .rk-board { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    padding: 10px 6px 10px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: rgba(0, 0, 0, .3);
    color: var(--muted); text-align: center; transform: none; box-shadow: none; transition: background .15s, color .15s, padding .15s; }
  .rk2.rk-folder .rk-board:hover { transform: none; background: rgba(255, 255, 255, .07); color: var(--text); border-color: var(--rk-edge); }
  .rk2.rk-folder .rk-board-ico { width: 36px; height: 36px; border-radius: 10px; font-size: 1.2rem; background: rgba(0, 0, 0, .35); }
  .rk2.rk-folder .rk-board-text { align-items: center; }
  .rk2.rk-folder .rk-board-name { font-size: .88rem; line-height: 1.12; white-space: normal; color: inherit; }
  .rk2.rk-folder .rk-board-you { position: absolute; top: 5px; right: 5px; padding: 1px 6px; font-size: .68rem; }
  .rk2.rk-folder .rk-board.active { padding-top: 14px; padding-bottom: 14px; background: var(--panel-raised); color: var(--text); border-color: var(--rk-edge); border-top: 3px solid var(--accent);
    box-shadow: 0 -8px 22px color-mix(in srgb, var(--accent) 22%, transparent); z-index: 1; }
  .rk2.rk-folder .rk-board.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--panel-raised); }
  .rk2.rk-folder .rk-board.active .rk-board-ico { background: color-mix(in srgb, var(--accent) 28%, rgba(0, 0, 0, .3)); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent); }
  .rk2.rk-folder .rk-board.active .rk-board-name { color: var(--accent); }
}
@media (min-width: 1100px) and (max-height: 900px) {
  .rk2.rk-folder .rk-board { padding: 7px 5px; gap: 3px; }
  .rk2.rk-folder .rk-board.active { padding-top: 10px; padding-bottom: 10px; }
  .rk2.rk-folder .rk-board-ico { width: 30px; height: 30px; font-size: 1.05rem; }
  .rk2.rk-folder .rk-board-name { font-size: .82rem; }
}
@media (min-width: 1100px) {
  .rk2.rk-folder .rk-board { min-height: 76px; } .rk2.rk-folder .rk-board.active { min-height: 88px; }
  .rk2.rk-folder .rk-title { font-size: 1.6rem; }
}
@media (min-width: 1100px) and (max-height: 900px) {
  .rk2.rk-folder .rk-board { min-height: 66px; } .rk2.rk-folder .rk-board.active { min-height: 76px; }
}

/* Rankings extras (2026-11-18): dino buttons on Kills, last week's champions, live updates, Share my rank, Champions desk tab */
.rd-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rd-tabs:has(#rd-tab-champs:checked) .rd-pane-champs { display: flex; }
.rk2 .rk-kinds { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.rk2 .rk-kind { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 4px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28); color: var(--muted); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.rk2 .rk-kind img, .rk2 .rk-kind-all { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: rgba(0, 0, 0, .4); display: grid; place-items: center; font-size: .9rem; }
.rk2 .rk-kind:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.rk2 .rk-kind.active { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent); }
.rk2 .rk-champs { margin-top: 12px; }
.rk2 .rk-champ-grid { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rk2 .rk-champ { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 7px; align-items: center; padding: 7px 8px;
  border-radius: 10px; border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); background: linear-gradient(160deg, rgba(242, 193, 78, .14), rgba(0, 0, 0, .2)); min-width: 0; }
.rk2 .rk-champ .rk-face { grid-row: 1 / 4; width: 30px; height: 30px; }
.rk2 .rk-champ-what { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk2 .rk-champ-name { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk2 .rk-champ-val { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk2 .rk-champ.is-me { box-shadow: inset 0 0 0 1px var(--accent); }
.rk2 .rk-live { flex: none; font-size: .72rem; font-weight: 800; color: var(--down); letter-spacing: .04em; white-space: nowrap; }
.rk2 .rk-live::first-letter { animation: rk-blink 1.6s ease-in-out infinite; }
.rk2 .rk-live.is-fresh { color: var(--up); }
@keyframes rk-blink { 50% { opacity: .2; } }
.rk2 .rk-row.is-up-now { animation: rk-up-flash 1.8s ease-out; }
.rk2 .rk-row.is-down-now { animation: rk-down-flash 1.8s ease-out; }
@keyframes rk-up-flash { 0% { background: color-mix(in srgb, var(--up) 40%, transparent); } 100% { background: transparent; } }
@keyframes rk-down-flash { 0% { background: color-mix(in srgb, var(--down) 30%, transparent); } 100% { background: transparent; } }
.rk2 .rk-arena.is-new-top { animation: rk-arena-pop .7s ease-out; }
@keyframes rk-arena-pop { 0% { transform: scale(.97); filter: brightness(1.6); } 100% { transform: none; filter: none; } }
.rk2 .rk-share-btn { margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.rk2 .rk-share-btn:hover { background: color-mix(in srgb, var(--accent) 32%, transparent); }
.rk-share { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .72); }
.rk-share[hidden] { display: none; }
.rk-share-box { width: min(720px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-raised), var(--panel)); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.rk-share-box h2 { font-size: 1.1rem; }
.rk-share-box canvas { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.rk-share-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rk-share-acts .muted { font-size: .8rem; margin-left: auto; }
.badge.rk-title-badge { background: linear-gradient(160deg, rgba(242, 193, 78, .28), rgba(242, 193, 78, .1)); border: 1px solid rgba(242, 193, 78, .55); color: #ffe7a3; text-decoration: none; }
.rk-pop-titles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rk-pop-titles span { padding: 1px 7px; border-radius: 999px; background: rgba(242, 193, 78, .18); color: #ffe7a3; font-size: .7rem; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .rk2 .rk-live::first-letter, .rk2 .rk-row.is-up-now, .rk2 .rk-row.is-down-now, .rk2 .rk-arena.is-new-top { animation: none; } }
.rk2 .rk-champ-what { text-transform: none; letter-spacing: 0; font-size: .7rem; white-space: normal; line-height: 1.15; }

/* ===== Trading Post (2026-11-18, Vengefulmink: "an Ark, Jurassic Park and The Isle vibe... a primitive look, clean,
   laid out nicely, but unique"). Carved wood, stone tablets, bone and amber, torches. Boxes fit the screen and scroll
   inside (site.js sets --tp-h). Template: trading_post.html, _tp_table.html, trading_trade.html. ===== */
.tp { --tp-wood1: #3b2716; --tp-wood2: #4a311c; --tp-wood3: #2c1d10; --tp-stone1: #3a3833; --tp-stone2: #24231f; --tp-bone: #eadfc4;
  --tp-amber: #f0a33a; --tp-amber2: #ffcf6e; --tp-moss: #6f8c46; --tp-ink: #f3e6c8; --tp-dim: #b9a98a; --tp-seam: rgba(0, 0, 0, .55);
  display: flex; flex-direction: column; gap: 10px; color: var(--tp-ink); }
main:has(.tp) { max-width: min(1760px, 100%); }
.tp a:not(.tp-btn):not(.tp-table-link) { color: var(--tp-amber2); }
.tp .tp-muted { color: var(--tp-dim); }
.tp-h { margin: 0; font: 700 1.15rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--tp-ink);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 220, 160, .12); }
.tp-label { display: block; font: 700 .68rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--tp-dim); margin: 10px 0 5px; }
/* textures */
.tp-wood { position: relative; border-radius: 14px; border: 2px solid #1a1009; box-shadow: inset 0 0 0 1px rgba(255, 200, 140, .08), inset 0 0 60px rgba(0, 0, 0, .55), 0 10px 24px rgba(0, 0, 0, .4);
  background: linear-gradient(180deg, rgba(10, 6, 3, .35), rgba(10, 6, 3, .62)),
    repeating-linear-gradient(180deg, transparent 0 54px, var(--tp-seam) 54px 56px),
    repeating-linear-gradient(90deg, var(--tp-wood1) 0 7px, var(--tp-wood2) 7px 13px, #432c19 13px 22px, var(--tp-wood3) 22px 24px, #4d3420 24px 37px); }
.tp-stone { position: relative; border-radius: 16px 12px 18px 10px; border: 2px solid #141311; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .05), inset 0 -18px 40px rgba(0, 0, 0, .45), 0 10px 24px rgba(0, 0, 0, .4);
  background: radial-gradient(circle at 12% 0%, rgba(111, 140, 70, .22), transparent 38%), radial-gradient(circle at 90% 100%, rgba(240, 163, 58, .08), transparent 40%),
    radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .03) 0 2px, transparent 3px) 0 0 / 23px 19px, linear-gradient(160deg, var(--tp-stone1), var(--tp-stone2)); }
/* the gate sign */
.tp-gate { position: relative; display: grid; grid-template-columns: 70px minmax(0, auto) 70px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 4px 0; }
.tp-sign { position: relative; justify-self: start; text-align: center; padding: 10px 34px 9px; border-radius: 10px 14px 9px 13px; border: 3px solid #1a1009;
  background: linear-gradient(180deg, rgba(255, 210, 150, .1), rgba(0, 0, 0, .3)), repeating-linear-gradient(90deg, #5a3a1f 0 9px, #6a4527 9px 15px, #50331c 15px 26px, #3d2714 26px 28px);
  box-shadow: inset 0 0 0 2px rgba(255, 200, 140, .12), inset 0 -10px 24px rgba(0, 0, 0, .45), 0 8px 22px rgba(0, 0, 0, .55); transform: rotate(-.6deg); }
.tp-sign h1 { margin: 2px 0; font: 700 clamp(1.7rem, 3vw, 2.5rem)/1 var(--display); text-transform: uppercase; letter-spacing: .08em;
  background: linear-gradient(180deg, #fff1c4, var(--tp-amber2) 45%, #b8862a 70%, #7a5418); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .8)) drop-shadow(0 0 14px rgba(240, 163, 58, .35)); }
.tp-sign small { display: block; font: 700 .66rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: #d9c08f; text-shadow: 0 1px 0 #000; }
.tp-sign::before, .tp-sign::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #b9b0a0, #4a4440 60%, #1d1a17); box-shadow: 0 1px 2px #000; }
.tp-sign::before { left: 11px; } .tp-sign::after { right: 11px; }
.tp-rope { position: absolute; left: 22%; right: 22%; top: -12px; height: 14px; border-top: 4px dashed #a8834e; border-radius: 50% 50% 0 0; opacity: .8; }
.tp-torch { position: relative; justify-self: center; width: 16px; height: 62px; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #2a1a0d, #5a3a1f 45%, #2a1a0d); box-shadow: 0 6px 12px rgba(0, 0, 0, .5); margin-top: 22px; }
.tp-torch::before { content: ""; position: absolute; left: -5px; right: -5px; top: 0; height: 9px; border-radius: 3px; background: repeating-linear-gradient(90deg, #8b6a3d 0 3px, #5c4426 3px 6px); }
.tp-torch i { position: absolute; left: 50%; bottom: 100%; width: 34px; height: 46px; margin-left: -17px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, #fff6c8 0 12%, #ffc94d 28%, #ff7a1a 55%, rgba(255, 70, 0, .0) 72%); filter: blur(.4px); transform-origin: 50% 100%;
  animation: tp-flame 1.2s ease-in-out infinite alternate; box-shadow: 0 0 40px 14px rgba(255, 130, 30, .25); }
.tp-torch.is-right i { animation-delay: -.6s; }
@keyframes tp-flame { 0% { transform: scale(1, 1) skewX(2deg); opacity: .95; } 50% { transform: scale(.92, 1.08) skewX(-3deg); } 100% { transform: scale(1.05, .94) skewX(3deg); opacity: 1; } }
.tp-purse { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tp-purse > span { padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(240, 163, 58, .3); font-size: .85rem; white-space: nowrap; }
.tp-purse b { color: var(--tp-amber2); }
.tp-purse-stats { color: var(--tp-dim); border-color: rgba(255, 255, 255, .08) !important; }
/* flashes */
.tp-flash { margin: 0; padding: 9px 14px; border-radius: 10px; font-weight: 700; border: 1px solid; }
.tp-flash.is-good { background: rgba(111, 140, 70, .2); border-color: rgba(140, 180, 90, .6); color: #e3f2c9; }
.tp-flash.is-bad { background: rgba(170, 50, 30, .22); border-color: rgba(230, 100, 70, .6); color: #ffd9cf; }
.tp-flash.is-call { display: block; background: linear-gradient(90deg, rgba(240, 163, 58, .3), rgba(240, 163, 58, .08)); border-color: var(--tp-amber); color: var(--tp-ink) !important; text-decoration: none; animation: tp-call 1.6s ease-in-out infinite; }
@keyframes tp-call { 50% { box-shadow: 0 0 18px rgba(240, 163, 58, .5); } }
/* plank tabs */
.tp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)) 1fr; column-gap: 6px; align-items: end; }
.tp-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tp-tabs > label { position: relative; z-index: 2; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center; cursor: pointer;
  padding: 9px 20px 9px 14px; margin-bottom: -2px; border: 2px solid #1a1009; border-bottom: 0; border-radius: 12px 12px 0 0; color: var(--tp-dim);
  background: linear-gradient(180deg, rgba(255, 210, 150, .06), rgba(0, 0, 0, .4)), repeating-linear-gradient(90deg, #3a2615 0 8px, #452d19 8px 14px, #331f10 14px 24px);
  font: 700 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; transition: color .15s, transform .15s, background .15s; }
.tp-tabs > label i { grid-row: 1 / 3; font-style: normal; font-size: 1.5rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.tp-tabs > label small { font: 600 .68rem/1.2 system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--tp-dim); opacity: .85; }
.tp-tabs > label::before, .tp-tabs > label::after { content: ""; position: absolute; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #1a120b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.tp-tabs > label::before { left: 6px; } .tp-tabs > label::after { right: 6px; }
.tp-tabs > label:hover { color: var(--tp-ink); transform: translateY(-2px); }
.tp-tabs > input:focus-visible + label { outline: 2px solid var(--tp-amber); outline-offset: 2px; }
.tp-tabs > input:checked + label { color: var(--tp-amber2); padding-top: 13px; padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(255, 200, 120, .16), rgba(10, 6, 3, .35)), repeating-linear-gradient(90deg, #5a3a1f 0 8px, #6a4527 8px 14px, #50331c 14px 24px);
  box-shadow: 0 -6px 18px rgba(240, 163, 58, .22); }
.tp-tabs > input:checked + label small { color: var(--tp-ink); }
.tp-pane { grid-column: 1 / -1; display: none; gap: 12px; position: relative; z-index: 1; padding: 12px; border-radius: 0 14px 14px 14px; border: 2px solid #1a1009;
  background: linear-gradient(180deg, rgba(90, 58, 31, .55), rgba(20, 12, 6, .7)); box-shadow: inset 0 1px 0 rgba(255, 200, 140, .12); }
.tp-tabs:has(#tp-tab-market:checked) .tp-pane-market, .tp-tabs:has(#tp-tab-live:checked) .tp-pane-live,
.tp-tabs:has(#tp-tab-stall:checked) .tp-pane-stall, .tp-tabs:has(#tp-tab-log:checked) .tp-pane-log { display: grid; }
.tp-pane-market { grid-template-columns: 280px minmax(0, 1fr); }
.tp-pane-live { grid-template-columns: 320px minmax(0, 1fr); }
.tp-pane-stall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tp-pane-log { grid-template-columns: minmax(0, 1fr) 360px; }
.tp-pane > * { min-width: 0; padding: 14px; }
.tp-pane > .tp-wide { grid-column: 1 / -1; }
@media (min-width: 1100px) {
  .tp-pane > * { height: var(--tp-h, calc(100vh - 300px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #6a4527 transparent; }
  .tp-pane > .tp-board, .tp-pane > .tp-stash { display: flex; flex-direction: column; overflow: hidden; }
  .tp-board > .tp-grid, .tp-board > .tp-list, .tp-stash > .tp-list, .tp-board > .tp-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #6a4527 transparent; padding-right: 4px; }
}
@media (max-width: 1099px) {
  .tp-gate { grid-template-columns: 40px 1fr 40px; } .tp-purse { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .tp-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4px; } .tp-tabs > label { border-radius: 10px; border-bottom: 2px solid #1a1009; margin: 0; }
  .tp-pane { border-radius: 14px; margin-top: 6px; }
  .tp-pane-market, .tp-pane-live, .tp-pane-stall, .tp-pane-log { grid-template-columns: 1fr; }
  .tp-grid, .tp-list, .tp-log { max-height: 75vh; overflow-y: auto; }
}
.tp-board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex: none; }
.tp-count { font-size: .8rem; color: var(--tp-dim); }
.tp-closed { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, .4); border: 1px dashed var(--tp-amber); color: var(--tp-amber2); font-weight: 700; }
/* filter */
.tp-search { width: 100%; margin-top: 8px; background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .12); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px 10px 7px 11px; border: 1px solid rgba(0, 0, 0, .6); cursor: pointer;
  background: linear-gradient(180deg, #4b4842, #2f2d29); color: var(--tp-dim); font: 700 .78rem/1.1 system-ui, sans-serif; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 rgba(0, 0, 0, .4); }
.tp-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.tp-chip:hover { color: var(--tp-ink); }
.tp-chip.is-on, .tp-chip[aria-pressed="true"] { color: #1d1206; background: linear-gradient(180deg, var(--tp-amber2), var(--tp-amber)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 12px rgba(240, 163, 58, .4); }
.tp-rules { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); border-left: 3px solid var(--tp-moss); font-size: .8rem; color: var(--tp-dim); line-height: 1.45; }
/* stone tablets */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-content: start; }
.tp-tablet { position: relative; display: flex; flex-direction: column; border-radius: 18px 14px 16px 12px; border: 2px solid #121110; overflow: hidden;
  background: radial-gradient(circle at 70% 10%, rgba(255, 255, 255, .05), transparent 45%), radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .025) 0 1px, transparent 2px) 0 0 / 11px 13px, linear-gradient(165deg, #46433c, #2a2824 70%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07), inset 0 -12px 26px rgba(0, 0, 0, .45), 0 8px 16px rgba(0, 0, 0, .45); transition: transform .15s, box-shadow .15s; }
.tp-tablet:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07), inset 0 -12px 26px rgba(0, 0, 0, .45), 0 12px 24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(240, 163, 58, .45); }
.tp-tablet.is-mine { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07), inset 0 -12px 26px rgba(0, 0, 0, .45), 0 0 0 2px var(--tp-moss); }
.tp-tablet.is-live { background: radial-gradient(circle at 20% 0%, rgba(255, 120, 30, .12), transparent 50%), linear-gradient(165deg, #46433c, #2a2824 70%); }
.tp-pic { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 70%, rgba(240, 163, 58, .18), transparent 60%), linear-gradient(180deg, #1d2a18, #12100c); border-bottom: 2px solid #121110; }
.tp-pic::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 30px rgba(0, 0, 0, .7); pointer-events: none; }
.tp-portrait { width: 100%; height: 100%; object-fit: contain; }
.tp-logo { width: 62%; height: auto; max-height: 92%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .7)) sepia(.25); }
.tp-nopic { font-size: 3rem; }
.tp-prime { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 3px 8px; border-radius: 999px; background: linear-gradient(180deg, #ffe7a3, #d9a12e); color: #2a1a05; font: 800 .7rem/1 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.tp-dealtag { position: absolute; right: 8px; top: 8px; z-index: 1; padding: 3px 8px; border-radius: 999px; background: #b7361b; color: #fff; font: 800 .7rem/1 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.tp-tablet-body, .tp-slab-body { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 12px; flex: 1; }
.tp-sp { margin: 0; font: 700 1.12rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--tp-ink); text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .08); }
.tp-sex { color: var(--tp-amber2); }
.tp-bone { position: relative; height: 16px; border-radius: 999px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8); overflow: hidden; }
.tp-bone i { position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); border-radius: 999px; background: linear-gradient(180deg, #fff8e6, var(--tp-bone) 50%, #bfae88); transition: width .8s ease-out; }
.tp-bone span { position: relative; display: block; text-align: center; font: 800 .68rem/16px system-ui, sans-serif; color: #2a1d0c; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); mix-blend-mode: normal; }
.tp-glyphs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tp-glyphs li { padding: 2px 7px; border-radius: 5px 7px 4px 8px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(240, 163, 58, .35); color: #f6d9a4; font-size: .7rem; font-weight: 700; }
.tp-glyphs li.is-old { border-style: dashed; color: var(--tp-dim); }
.tp-glyphs li.is-none { border-color: rgba(255, 255, 255, .1); color: var(--tp-dim); font-weight: 500; }
.tp-note { margin: 0; font-style: italic; font-size: .8rem; color: var(--tp-dim); }
.tp-want { margin: 0; padding: 7px 10px; border-radius: 4px 10px 6px 12px; background: linear-gradient(180deg, #6a4a2a, #4a3119); border: 1px solid #1a1009; color: var(--tp-ink); font-weight: 700; font-size: .85rem; transform: rotate(-.6deg); box-shadow: 0 3px 6px rgba(0, 0, 0, .4); }
.tp-want span { display: block; font: 700 .62rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--tp-amber2); margin-bottom: 3px; }
.tp-tablet-foot { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.tp-price { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font: 800 1.05rem/1.1 var(--display); letter-spacing: .02em; color: #2a1704;
  background: radial-gradient(circle at 30% 25%, #fff3c6, #ffc65a 40%, #d98a1e 85%); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), 0 0 14px rgba(240, 163, 58, .35); }
.tp-guide { font-size: .72rem; color: var(--tp-dim); }
.tp-seller { display: flex; align-items: center; gap: 7px; font-size: .82rem; min-width: 0; }
.tp-seller a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.tp-seller small { margin-left: auto; color: var(--tp-dim); white-space: nowrap; font-size: .7rem; }
.tp-face { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: rgba(0, 0, 0, .45); border: 1px solid rgba(240, 163, 58, .4); }
.tp-face img { width: 100%; height: 100%; object-fit: cover; }
.tp-face .profile-mark { font-size: .8rem; }
.tp-face-lg { width: 46px; height: 46px; border-width: 2px; }
/* buttons */
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px 12px 8px 11px; border: 2px solid #1a1009; cursor: pointer;
  font: 700 .86rem/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; transition: transform .1s, filter .15s; }
.tp-btn.amber { color: #241404; background: linear-gradient(180deg, #ffd889, var(--tp-amber) 55%, #b86d15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 3px 0 #5a3410, 0 0 14px rgba(240, 163, 58, .25); }
.tp-btn.ghost { color: var(--tp-ink); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .25)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 rgba(0, 0, 0, .5); }
.tp-btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.tp-btn:active:not(:disabled) { transform: translateY(1px); }
.tp-btn:disabled { opacity: .45; cursor: not-allowed; }
.tp-btn small { text-transform: none; letter-spacing: 0; font-family: system-ui, sans-serif; font-weight: 600; }
.tp-btn.big { padding: 12px 22px; font-size: 1.05rem; }
.tp-tablet form, .tp-tablet .tp-btn { width: 100%; }
.tp-tablet form .tp-btn { width: 100%; }
.tp-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 16px; color: var(--tp-dim); }
.tp-empty > span { font-size: 2.6rem; } .tp-empty b { color: var(--tp-ink); font-size: 1.05rem; } .tp-empty p { margin: 0; }
.tp-empty[hidden] { display: none; }
.tp-link { color: var(--tp-amber2); text-decoration: underline; cursor: pointer; }
/* live: the fire column */
.tp-tables { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tp-table-link { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--tp-ink);
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .08); }
.tp-table-link:hover { border-color: var(--tp-amber); }
.tp-table-link span { display: flex; flex-direction: column; min-width: 0; } .tp-table-link small { color: var(--tp-dim); font-size: .74rem; }
.tp-table-link.is-call { border-color: var(--tp-amber); animation: tp-call 1.6s ease-in-out infinite; }
.tp-invite { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.tp-invite .text { background: rgba(0, 0, 0, .35); }
.tp-found { display: flex; flex-wrap: wrap; gap: 5px; }
.tp-found button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .35); color: var(--tp-ink); cursor: pointer; font-size: .8rem; }
.tp-found button img { width: 22px; height: 22px; border-radius: 50%; }
.tp-found button.is-on { border-color: var(--tp-amber); background: rgba(240, 163, 58, .2); }
/* my stall */
.tp-list { display: flex; flex-direction: column; gap: 10px; }
.tp-slab { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-radius: 16px 12px 14px 10px; border: 2px solid #121110; overflow: hidden;
  background: linear-gradient(165deg, #46433c, #2a2824 70%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 6px 14px rgba(0, 0, 0, .4); }
.tp-slab .tp-pic { aspect-ratio: auto; height: 100%; min-height: 130px; border-bottom: 0; border-right: 2px solid #121110; }
.tp-slab.is-up { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 0 0 2px rgba(240, 163, 58, .5); }
.tp-put, .tp-edit form { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.tp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tp-modes label { cursor: pointer; }
.tp-modes input { position: absolute; opacity: 0; pointer-events: none; }
.tp-modes span { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .3); font-weight: 800; font-size: .85rem; }
.tp-modes small { font-weight: 500; color: var(--tp-dim); font-size: .7rem; }
.tp-modes input:checked + span { border-color: var(--tp-amber); background: rgba(240, 163, 58, .18); box-shadow: inset 0 0 0 1px var(--tp-amber); }
.tp-modes input:focus-visible + span { outline: 2px solid var(--tp-amber); }
.tp-modes .is-off { opacity: .4; cursor: not-allowed; }
.tp-put-market, .tp-put-live { display: none; }
form:has(input[name="mode"][value="market"]:checked) > .tp-put-market, form:has(input[name="mode"][value="live"]:checked) > .tp-put-live { display: block; }
.tp-put:not(:has(input[name="mode"]:checked)) > .tp-field, .tp-put:not(:has(input[name="mode"]:checked)) > button { display: none; }
.tp-field { display: flex; flex-direction: column; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--tp-dim); }
.tp-field small { font-weight: 500; }
.tp-field .text { background: rgba(0, 0, 0, .4); border-color: rgba(255, 255, 255, .14); color: var(--tp-ink); }
.tp-state { margin: 0; font-size: .82rem; color: var(--tp-dim); } .tp-state b { color: var(--tp-amber2); }
.tp-edit summary { list-style: none; width: max-content; } .tp-edit summary::-webkit-details-marker { display: none; }
.tp-edit[open] summary { margin-bottom: 4px; }
.tp-slab-body > form:last-child .tp-btn { width: max-content; }
/* log */
.tp-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tp-log li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, .32); border-left: 3px solid var(--tp-amber); font-size: .86rem; }
.tp-log li.tp-log-trade { border-left-color: var(--tp-moss); }
.tp-log li > span:nth-child(2) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tp-log-ico { font-size: 1.25rem; text-align: center; }
.tp-log time { color: var(--tp-dim); font-size: .74rem; white-space: nowrap; }
.tp-amber { color: var(--tp-amber2); }
.tp-guide-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .84rem; }
.tp-guide-table th { text-align: left; font: 700 .66rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--tp-dim); padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tp-guide-table td { padding: 7px 4px; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.tp-dev { align-self: flex-end; }
/* the trading fire */
.tp-trade-page .tp-gate.is-small .tp-sign h1 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.tp-table { display: flex; flex-direction: column; gap: 12px; }
.tp-table-status { padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(240, 163, 58, .35); font-weight: 700; text-align: center; }
.tp-phase-shake .tp-table-status { border-color: var(--tp-moss); background: rgba(111, 140, 70, .25); }
.tp-sides { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.tp-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 2px solid #1a1009; transition: box-shadow .3s;
  background: linear-gradient(180deg, rgba(10, 6, 3, .3), rgba(10, 6, 3, .6)), repeating-linear-gradient(180deg, transparent 0 54px, var(--tp-seam) 54px 56px),
    repeating-linear-gradient(90deg, var(--tp-wood1) 0 7px, var(--tp-wood2) 7px 13px, #432c19 13px 22px, var(--tp-wood3) 22px 24px, #4d3420 24px 37px); }
.tp-side.is-locked { box-shadow: 0 0 0 2px var(--tp-amber), 0 0 26px rgba(240, 163, 58, .35); }
.tp-side.is-shook { box-shadow: 0 0 0 2px #8fc35a, 0 0 26px rgba(143, 195, 90, .4); }
.tp-side header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.tp-side header .tp-label { margin: 0 0 3px; }
.tp-side header b { font: 700 1.15rem/1.1 var(--display); letter-spacing: .03em; }
.tp-lamp { font-size: 1.6rem; filter: grayscale(1) brightness(.5); transition: filter .3s; }
.tp-lamp.is-lit { filter: none; animation: tp-flame 1s ease-in-out infinite alternate; }
.tp-tokens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.tp-token { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px 9px 11px 8px; border: 2px solid #121110;
  background: linear-gradient(165deg, #46433c, #2a2824); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); animation: tp-drop .35s ease-out; }
@keyframes tp-drop { from { transform: translateY(-8px) scale(.97); opacity: 0; } }
.tp-token img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.tp-token-text { display: flex; flex-direction: column; min-width: 0; } .tp-token-text small { color: var(--tp-dim); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-token.is-empty { display: block; text-align: center; color: var(--tp-dim); font-style: italic; border-style: dashed; border-color: rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .2); animation: none; }
.tp-x { border: 0; background: none; color: var(--tp-dim); cursor: pointer; font-size: 1rem; } .tp-x:hover { color: #ff8a70; }
.tp-amber-row { padding: 8px 12px; border-radius: 999px; background: rgba(0, 0, 0, .4); font-weight: 700; text-align: center; } .tp-amber-row b { color: var(--tp-amber2); font-size: 1.1rem; }
.tp-side-tools { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .12); }
.tp-pickrow { display: flex; flex-wrap: wrap; gap: 5px; }
.tp-pick { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .35); color: var(--tp-ink); cursor: pointer; font-size: .78rem; font-weight: 700; }
.tp-pick img { width: 30px; height: 30px; object-fit: contain; } .tp-pick span { display: flex; flex-direction: column; text-align: left; } .tp-pick small { color: var(--tp-dim); font-weight: 500; }
.tp-pick:hover { border-color: var(--tp-amber); }
.tp-amber-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: end; }
.tp-fireplace { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.tp-flames { font-size: 3rem; animation: tp-flame 1s ease-in-out infinite alternate; filter: drop-shadow(0 0 20px rgba(255, 130, 30, .7)); }
.tp-swap { font: 700 2rem/1 var(--display); color: var(--tp-amber2); text-shadow: 0 0 12px rgba(240, 163, 58, .6); }
.tp-fireplace::after { content: ""; position: absolute; bottom: 20%; width: 70px; height: 14px; border-radius: 50%; background: repeating-linear-gradient(90deg, #4a311c 0 8px, #2c1d10 8px 12px); box-shadow: 0 0 30px 8px rgba(255, 110, 20, .25); }
.tp-moves { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.tp-wait { font-weight: 700; color: #cfe8b0; }
.tp-shake { animation: tp-call 1.4s ease-in-out infinite; }
.tp-talk { padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); }
.tp-talk-log { list-style: none; margin: 0 0 8px; padding: 0; max-height: 170px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; scrollbar-width: thin; }
.tp-talk-log li.is-sys { color: var(--tp-dim); font-style: italic; } .tp-talk-log li.is-me b { color: var(--tp-amber2); }
.tp-talk-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; } .tp-talk-form .text { background: rgba(0, 0, 0, .4); }
.tp-dev-they { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 8px; border-top: 1px dashed rgba(143, 195, 90, .4); } .tp-dev-they .tp-label { width: 100%; margin: 0 0 2px; }
.tp-mini { padding: 4px 8px; font-size: .7rem; }
@media (max-width: 760px) { .tp-sides { grid-template-columns: 1fr; } .tp-fireplace { flex-direction: row; } .tp-slab { grid-template-columns: 1fr; } .tp-slab .tp-pic { min-height: 150px; border-right: 0; border-bottom: 2px solid #121110; } }
@media (prefers-reduced-motion: reduce) { .tp-torch i, .tp-flames, .tp-lamp.is-lit, .tp-flash.is-call, .tp-table-link.is-call, .tp-shake, .tp-token { animation: none; } }
/* admin desk (same look as the Rankings desk) */
.adm-drawer > .adm-desk:has(.td-tabs), .has-desk-btn .adm-drawer > .adm-desk:has(.td-tabs) { width: min(640px, calc(100vw - 24px)); }
.td-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.td-tabs:not(:has(> input:checked)) .td-pane-home, .td-tabs:has(#td-tab-market:checked) .td-pane-market, .td-tabs:has(#td-tab-worth:checked) .td-pane-worth,
.td-tabs:has(#td-tab-live:checked) .td-pane-live, .td-tabs:has(#td-tab-look:checked) .td-pane-look, .td-tabs:has(#td-tab-posts:checked) .td-pane-posts,
.td-tabs:has(#td-tab-trades:checked) .td-pane-trades, .td-tabs:has(#td-tab-bans:checked) .td-pane-bans { display: flex; }
.td-home { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.td-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.td-examples li { display: flex; justify-content: space-between; gap: 10px; }
.td-species { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.td-species .nd-field input { width: 100%; }
.td-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.td-looks label { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; cursor: pointer; }
.td-looks label:has(input:checked) { border-color: var(--amber, #f2a33a); background: rgba(242, 163, 58, .12); }
.td-posts > li { flex-wrap: wrap; }
.td-post-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.td-inline { display: flex; align-items: center; gap: 6px; }
.td-inline .text { width: 96px; }
.td-refund { display: flex; align-items: center; gap: 4px; font-size: .74rem; opacity: .85; }
.td-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* My dino: a dino on the Trading Post shows locked */
.stored-list li.is-trading { opacity: .85; }
.stored-locked { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: rgba(240, 163, 58, .14); border: 1px dashed rgba(240, 163, 58, .6); font-size: .8rem; font-weight: 700; }
.tp-grid { grid-auto-rows: max-content; }
.tp-tablet > .tp-pic { flex: none; } .tp-tablet-body { flex: 1 0 auto; }
.tp-list > * { flex: none; }
.tp-bone span { color: #fff8e6; text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .8); }
/* Trading Post round 2 (2026-11-18): a neater Find a dino panel ("make this neater and cleaner") */
.tp-filter { display: flex; flex-direction: column; }
.tp-filter .tp-label { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.tp-filter .tp-search { margin-top: 10px; }
.tp-sp-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.tp-sp-grid .tp-chip { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; padding: 4px 8px 4px 5px; border-radius: 8px; text-align: left; font-size: .74rem; min-width: 0; }
.tp-sp-grid .tp-chip:first-child { grid-column: 1 / -1; grid-template-columns: 22px 1fr; }
.tp-sp-grid .tp-chip img, .tp-chip-all { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: rgba(0, 0, 0, .35); font-size: .8rem; }
.tp-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-sp-grid .tp-chip small { min-width: 18px; padding: 1px 5px; border-radius: 999px; background: rgba(0, 0, 0, .35); text-align: center; font-size: .66rem; }
.tp-sp-grid .tp-chip.is-on small { background: rgba(0, 0, 0, .18); }
.tp-flag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tp-flag-grid .tp-chip, .tp-seg .tp-chip { justify-content: center; border-radius: 8px; padding: 6px 4px; font-size: .74rem; }
.tp-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 9px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .6); }
.tp-seg .tp-chip { border: 0; border-radius: 0; box-shadow: none; } .tp-seg .tp-chip + .tp-chip { border-left: 1px solid rgba(0, 0, 0, .5); }
.tp-facts { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 1px solid rgba(255, 255, 255, .07); }
.tp-facts li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 9px; background: rgba(0, 0, 0, .3); text-align: center; }
.tp-facts span { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tp-dim); } .tp-facts b { font-size: .86rem; color: var(--tp-amber2); }
.tp-fine { margin: 6px 0 0; font-size: .72rem; color: var(--tp-dim); text-align: center; }
/* the trading table, round 2: steps, the deal in one line, Ready pills, quick Amber, a countdown */
.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tp-steps li { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); color: var(--tp-dim); font-weight: 700; font-size: .85rem; }
.tp-steps b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--tp-ink); }
.tp-steps li.is-now { border-color: var(--tp-amber); color: var(--tp-ink); background: rgba(240, 163, 58, .14); } .tp-steps li.is-now b { background: var(--tp-amber); color: #241404; }
.tp-steps li.is-done { color: #cfe8b0; } .tp-steps li.is-done b { background: #6f8c46; color: #fff; }
.tp-deal-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(240, 163, 58, .3); font-weight: 700; }
.tp-deal-sum > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .tp-deal-sum > span:last-child { text-align: right; }
.tp-deal-sum small { font: 700 .64rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--tp-dim); }
.tp-deal-sum i { color: var(--tp-dim); font-weight: 500; }
.tp-table .tp-sides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tp-ready-pill { padding: 5px 11px; border-radius: 999px; font-weight: 800; font-size: .78rem; white-space: nowrap; background: rgba(0, 0, 0, .4); color: var(--tp-dim); border: 1px solid rgba(255, 255, 255, .1); }
.tp-ready-pill.is-on { background: rgba(111, 140, 70, .35); border-color: #8fc35a; color: #e3f2c9; }
.tp-side.is-locked { box-shadow: 0 0 0 2px #8fc35a, 0 0 22px rgba(143, 195, 90, .3); }
.tp-amber-form { display: flex; flex-direction: column; gap: 6px; }
.tp-amber-quick { display: flex; flex-wrap: wrap; gap: 5px; } .tp-amber-quick .tp-chip { padding: 5px 9px; }
.tp-amber-set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; } .tp-amber-set .text { background: rgba(0, 0, 0, .4); }
.tp-btn.danger { color: #fff; background: linear-gradient(180deg, #e0563a, #a3301b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 #5a1a0e, 0 0 18px rgba(224, 86, 58, .45); animation: tp-call 1s ease-in-out infinite; }
.tp-phase-closing .tp-table-status { border-color: #8fc35a; background: rgba(111, 140, 70, .3); font-size: 1.05rem; }
.tp-count-big { display: inline-block; min-width: 1.4em; font: 800 1.5rem/1 var(--display); color: var(--tp-amber2); }
.tp-readybtn { min-width: 320px; }
@media (max-width: 760px) { .tp-steps { grid-template-columns: 1fr; } .tp-table .tp-sides { grid-template-columns: 1fr; } .tp-readybtn { min-width: 0; } }

/* ===== Trading Post look: Expedition (2026-11-18, Vengefulmink picked it from the 6 looks: "im picking the expedition look
   for the trading post the others can go"). The .tp element carries tp-v5 in the templates. Field gear, olive canvas,
   khaki stencils, signal orange. ===== */
/* --- 5. Expedition: field gear, olive canvas, khaki stencils, signal orange --- */
.tp.tp-v5 { --tp-amber: #ff8a2a; --tp-amber2: #ffb066; --tp-ink: #ece2c4; --tp-dim: #b3a77f; --tp-kh: #c8b78a; --tp-stencil: "Stencil", "Stencil Std", Impact, "Arial Black", sans-serif; }
.tp.tp-v5 .tp-rope { display: none; }
.tp.tp-v5 .tp-torch { width: 54px; height: 54px; margin-top: 0; border-radius: 50%; background: radial-gradient(circle, #2b2e1c 55%, var(--tp-kh) 56% 60%, #2b2e1c 61%); box-shadow: 0 4px 10px rgba(0, 0, 0, .6); }
.tp.tp-v5 .tp-torch::before { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; background: none; color: var(--tp-amber); font-size: 1.8rem; height: auto; }
.tp.tp-v5 .tp-torch i { display: none; }
.tp.tp-v5 .tp-sign { transform: rotate(-.8deg); border-radius: 4px; border: 3px dashed rgba(200, 183, 138, .6); padding: 14px 36px; outline: 6px solid #3b3f27;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px), #4a4f30; box-shadow: 0 10px 22px rgba(0, 0, 0, .6); }
.tp.tp-v5 .tp-sign::before, .tp.tp-v5 .tp-sign::after { background: radial-gradient(circle, #1a1c10 35%, #9a8a5a 40% 60%, #3b3f27 65%); width: 14px; height: 14px; margin-top: -7px; }
.tp.tp-v5 .tp-sign h1 { font-family: var(--tp-stencil); background: none; color: var(--tp-kh); -webkit-text-fill-color: var(--tp-kh); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); letter-spacing: .14em; }
.tp.tp-v5 .tp-sign small { color: var(--tp-amber); text-shadow: none; }
.tp.tp-v5 .tp-tabs > label { font-family: var(--tp-stencil); border-radius: 4px 4px 0 0; border: 2px dashed rgba(200, 183, 138, .35); border-bottom: 0; background: #3b3f27; color: var(--tp-dim); }
.tp.tp-v5 .tp-tabs > label::before, .tp.tp-v5 .tp-tabs > label::after { background: radial-gradient(circle, #1a1c10 40%, #9a8a5a 45%); width: 7px; height: 7px; }
.tp.tp-v5 .tp-tabs > input:checked + label { background: #4f5533; color: var(--tp-amber); box-shadow: none; }
.tp.tp-v5 .tp-pane { border: 2px solid #22251a; border-radius: 0 6px 6px 6px; background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 5px), #3b3f27; }
.tp.tp-v5 .tp-wood, .tp.tp-v5 .tp-stone { border-radius: 6px; border: 2px dashed rgba(200, 183, 138, .3); background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 4px), #2d311e; box-shadow: inset 0 0 30px rgba(0, 0, 0, .35); }
.tp.tp-v5 .tp-h { font-family: var(--tp-stencil); color: var(--tp-kh); text-shadow: none; letter-spacing: .12em; }
.tp.tp-v5 .tp-tablet, .tp.tp-v5 .tp-slab { border-radius: 4px; border: 2px solid #1a1c10; background: linear-gradient(160deg, #565b38, #3e4229); }
.tp.tp-v5 .tp-tablet::before { content: "FIELD TAG"; display: block; padding: 3px 10px; font: 700 .62rem/1.5 var(--tp-stencil); letter-spacing: .3em; background: var(--tp-amber); color: #1a1c10; }
.tp.tp-v5 .tp-sp { font-family: var(--tp-stencil); color: var(--tp-kh); letter-spacing: .08em; }
.tp.tp-v5 .tp-btn { border-radius: 4px; font-family: var(--tp-stencil); }
.tp.tp-v5 .tp-btn.amber { background: linear-gradient(180deg, #ffa45a, var(--tp-amber) 60%, #c25a10); color: #1a1c10; box-shadow: 0 3px 0 #5a2a06; }
.tp.tp-v5 .tp-chip { background: #2d311e; border-color: rgba(200, 183, 138, .3); color: var(--tp-kh); border-radius: 4px; }
.tp.tp-v5 .tp-chip.is-on, .tp.tp-v5 .tp-chip[aria-pressed="true"] { background: var(--tp-amber); color: #1a1c10; }
.tp.tp-v5 .tp-price { background: var(--tp-kh); color: #1a1c10; border-radius: 4px; box-shadow: none; font-family: var(--tp-stencil); }
.tp.tp-v5 .tp-side { background: linear-gradient(160deg, #4a4f30, #33371f); border-style: dashed; border-color: rgba(200, 183, 138, .3); }
.tp-worth { margin: 2px 0 4px; font-size: .78rem; color: var(--tp-ink); }
.tp-worth b { color: var(--tp-amber2); }

/* admin click-to-edit price on the market tablets, and the Posts tab search (2026-11-18) */
.tp-price.is-admin-edit { cursor: pointer; border: 0; font: inherit; font: 800 1.05rem/1.1 var(--display); }
.tp-price.is-admin-edit i { font-style: normal; font-size: .75em; opacity: .7; }
.tp-price.is-admin-edit:hover { outline: 2px dashed rgba(255, 255, 255, .5); outline-offset: 2px; }
.tp-price-input { width: 110px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--tp-amber); background: #120b05; color: #fff; font: 800 1rem/1.1 var(--display); }
.td-search { width: 100%; }

/* ===== Trading Post: sharper and smoother (2026-11-18, Vengefulmink: "the market seems a bit blurry and kinda laggy. i like
   the animations but it needs cleaned up"). Text is never rotated (rotated text renders soft), the glow filters and blur
   on text are gone, the torch flames move with transform only on their own layer, and each tablet is painted on its own
   and skipped while scrolled out of view. The animations stay. ===== */
.tp .tp-sign, .tp .tp-want, .tp.tp-v5 .tp-sign { transform: none; }
.tp .tp-sign h1 { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .85)); }
.tp-torch i { filter: none; box-shadow: none; will-change: transform; }
.tp-torch::after { content: ""; position: absolute; left: 50%; bottom: calc(100% + 6px); width: 90px; height: 90px; margin-left: -45px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 40, .28), transparent 65%); pointer-events: none; }
.tp.tp-v5 .tp-torch::after { display: none; }
.tp-tablet { background: radial-gradient(circle at 70% 10%, rgba(255, 255, 255, .05), transparent 45%), linear-gradient(165deg, #46433c, #2a2824 70%);
  contain: layout paint; content-visibility: auto; contain-intrinsic-size: auto 420px; transition: transform .15s ease-out; }
.tp-tablet:hover { transform: translateY(-3px); }
.tp-pic::after { box-shadow: inset 0 0 22px rgba(0, 0, 0, .6); }
.tp-portrait { image-rendering: auto; }
.tp-logo { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.tp-flames { filter: none; text-shadow: 0 0 18px rgba(255, 130, 30, .7); will-change: transform; }
.tp-sp, .tp-price, .tp-h { -webkit-font-smoothing: antialiased; }
.tp-tablet-foot { flex-wrap: wrap; align-items: center; } .tp-tablet-foot .tp-guide { white-space: nowrap; }

/* ===== Your public page (2026-11-18, Vengefulmink: "show themselves off... which can all be edited in their private
   page"). Editor: .pub-panel on /me (tabs What shows | About you | Favourites & pins). Public page: status and playstyle
   chips in the banner, then About, Pinned + Skins, Record, Bounties + Stall + Bloodlines, each box scrolling inside. ===== */
.pub-panel { width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 760px); }
.pub-head-links { display: inline-flex; gap: 12px; align-items: center; }
.pub-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pub-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.pub-tabs > label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04); cursor: pointer; font-weight: 700; font-size: .84rem; text-align: center; }
.pub-tabs > label i { font-style: normal; font-size: 1.2rem; }
.pub-tabs > input:checked + label { background: var(--amber, #f2a33a); color: #1d1206; border-color: var(--amber, #f2a33a); }
.pub-tabs > input:focus-visible + label { outline: 2px solid #fff; outline-offset: 2px; }
.pub-pane { grid-column: 1 / -1; display: none; flex-direction: column; gap: 8px; padding-top: 6px; }
.pub-tabs:has(#pub-tab-show:checked) .pub-pane-show, .pub-tabs:has(#pub-tab-about:checked) .pub-pane-about, .pub-tabs:has(#pub-tab-favs:checked) .pub-pane-favs { display: flex; }
.pub-label { display: block; margin-top: 4px; font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #b9ad96); }
.pub-label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pub-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pub-toggle { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .2); cursor: pointer; font-size: .86rem; }
.pub-toggle:has(input:checked) { border-color: rgba(120, 220, 140, .5); background: rgba(80, 180, 100, .12); }
.pub-toggle:not(:has(input:checked)) span { opacity: .6; text-decoration: line-through; }
.pub-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pub-chips label, .pub-pins label, .pub-dinos label { cursor: pointer; position: relative; }
/* the hidden box stays inside its own label (2026-11-23: it sat 150 px below it, so a click scrolled the panel to it and the pins box jumped out of view) */
.pub-chips input, .pub-pins input, .pub-dinos input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pub-chips span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); font-size: .82rem; font-weight: 600; }
.pub-chips input:checked + span { background: var(--amber, #f2a33a); color: #1d1206; border-color: var(--amber, #f2a33a); }
.pub-chips input:focus-visible + span, .pub-dinos input:focus-visible + span, .pub-pins input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.pub-chips input:disabled + span, .pub-dinos input:disabled + span, .pub-pins input:disabled + span { opacity: .4; cursor: not-allowed; }
.pub-about { width: 100%; resize: vertical; min-height: 90px; font: inherit; }
.pub-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pub-facts input { width: 100%; }
.pub-dinos { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.pub-dinos span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .2); }
.pub-dinos img { width: 46px; height: 46px; object-fit: contain; }
.pub-dinos small { font-size: .68rem; text-align: center; }
.pub-dinos input:checked + span { border-color: var(--amber, #f2a33a); background: rgba(242, 163, 58, .16); box-shadow: 0 0 0 1px var(--amber, #f2a33a); }
.pub-pins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pub-pins span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .2); }
.pub-pins span small { color: var(--muted, #b9ad96); }
.pub-pins input:checked + span { border-color: var(--amber, #f2a33a); background: rgba(242, 163, 58, .14); }
.pub-open-btn { font-weight: 800; }

.pub-status-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.pub-status { padding: 3px 11px; border-radius: 999px; background: rgba(120, 220, 140, .16); border: 1px solid rgba(120, 220, 140, .45); color: #c9f5d2; font-weight: 700; font-size: .82rem; }
.pub-style { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); font-size: .78rem; font-weight: 600; }

.pub-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
@media (min-width: 1100px) {
  .pub-grid > .profile-box { max-height: max(380px, calc(100vh - 330px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.pub-about-text p { margin: 0 0 6px; line-height: 1.5; }
.pub-when { font-size: .9rem; }
.pub-facts-list { display: grid; gap: 6px; margin: 0; }
.pub-facts-list div { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); }
.pub-facts-list dt { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #b9ad96); }
.pub-facts-list dd { margin: 2px 0 0; font-weight: 600; }
.pub-favs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pub-favs li { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 92px; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); }
.pub-favs img { width: 60px; height: 60px; object-fit: contain; }
.pub-favs b { font-size: .74rem; text-align: center; }
.pub-pins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.pub-pin { position: static; width: auto; }
.pub-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pub-skin { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); }
.pub-skin canvas { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.pub-skin figcaption { font-size: .78rem; font-weight: 700; }
.pub-stall { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pub-stall li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.pub-wanted strong { color: #ff9a6a; }
@media (max-width: 640px) { .pub-toggles, .pub-facts, .pub-pins { grid-template-columns: 1fr; } }
.pub-facts-note { margin: 2px 0 0; font-size: .78rem; color: var(--muted, #b9ad96); }
.pub-facts-note.is-over { color: #ff9a6a; font-weight: 700; }
.pub-facts input { background: rgba(255, 255, 255, .06); }
/* the editor fits the window: below the header, above the bottom, scrolling inside; Save always in sight (2026-11-18) */
.pub-panel:not([hidden]) { top: 70px; bottom: 16px; right: 16px; max-height: none; display: flex; flex-direction: column; overflow: hidden; z-index: 80; }
.pub-panel > .pub-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pub-panel .pub-tabs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; padding-right: 4px; scrollbar-width: thin; }
.pub-panel .theme-actions { flex: none; padding-top: 10px; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
.pub-viewswitch { display: inline-flex; gap: 0; margin: 0 0 10px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); }
.pub-viewswitch a { padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: .86rem; color: inherit; text-decoration: none; }
.pub-viewswitch a.is-on { background: var(--amber, #f2a33a); color: #1d1206; }
.pub-viewswitch a:not(.is-on):hover { background: rgba(255, 255, 255, .08); }

/* Public page fits one screen (2026-11-18 profile review): every column, the Admin desk too, is as tall as the room
   under the banner and scrolls inside, so the columns line up and the page itself doesn't scroll. */
@media (min-width: 1100px) {
  .pub-grid { align-items: stretch; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
  .pub-grid > .profile-box, .pub-grid > .adm-desk { height: var(--fit-h, calc(100vh - 330px)); max-height: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0; }
}

/* ---- Profile, "look awesome" pass (2026-11-18 profile review) ---- */
/* banner action buttons: real buttons, not tiny links */
.profile-actions { gap: 6px; font-size: .84rem; }
.pa-btn { appearance: none; cursor: pointer; padding: 6px 13px; border-radius: 999px; font: inherit; font-weight: 800; color: inherit;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); white-space: nowrap; }
.pa-btn:hover { background: rgba(255, 255, 255, .12); }
.pa-btn.is-main { background: var(--amber, #f2a33a); border-color: transparent; color: #1d1206; }
.pa-btn.is-main:hover { filter: brightness(1.08); }
.pa-btn.is-quiet { background: transparent; border-color: transparent; opacity: .7; font-weight: 600; }
.pa-btn.is-quiet:hover { opacity: 1; }

/* 🏅 medals: pinned in the banner, and the full wall */
.medal-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; padding: 0; list-style: none; }
.medal-row .medal { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(242, 163, 58, .28), rgba(120, 70, 10, .25)); border: 1px solid rgba(242, 190, 90, .55);
  box-shadow: 0 0 14px rgba(242, 163, 58, .18); font-size: .84rem; }
.medal-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; flex: none;
  background: radial-gradient(circle at 35% 30%, #ffe2a3, #e9a23b 55%, #8a5313); box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .4); }
.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.badge-wall .medal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 6px 8px;
  border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(242, 190, 90, .28); }
.badge-wall .medal .medal-ico { width: 42px; height: 42px; font-size: 1.35rem; margin-bottom: 2px; }
.badge-wall .medal b { font-size: .82rem; line-height: 1.15; }
.badge-wall .medal small { font-size: .68rem; line-height: 1.2; color: var(--muted, #b9ad96); }
.badge-wall .medal.is-pinned { border-color: var(--amber, #f2a33a); box-shadow: 0 0 0 1px var(--amber, #f2a33a), 0 0 16px rgba(242, 163, 58, .25); }
.badge-wall .medal.is-locked { border-style: dashed; border-color: rgba(255, 255, 255, .12); }
.badge-wall .medal.is-locked .medal-ico { background: rgba(255, 255, 255, .07); box-shadow: none; filter: grayscale(1); font-size: 1rem; }
.badge-wall .medal.is-locked b { opacity: .6; }
.badge-wall.is-mine { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }

/* 🦖 the stage: their dino, big */
.pub-stage { position: relative; display: grid; place-items: center; min-height: 210px; margin: -4px -4px 14px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 85%, rgba(242, 163, 58, .22), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .35));
  border: 1px solid rgba(255, 255, 255, .08); isolation: isolate; }
.pub-stage-glow { position: absolute; left: 10%; right: 10%; bottom: 22px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(10px); z-index: -1; }
.pub-stage-art { display: block; width: 100%; max-width: 520px; height: auto; aspect-ratio: 600 / 375; object-fit: contain; animation: stage-idle 6s ease-in-out infinite; }
.pub-stage-art.is-logo { width: auto; height: 190px; aspect-ratio: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }
.pub-stage-art.is-empty { font-size: 5rem; aspect-ratio: auto; }
.pub-stage-name { position: absolute; left: 14px; bottom: 10px; right: 14px; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.pub-stage-name small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amber, #f2a33a); }
.pub-stage-name b { font-size: 1.7rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.pub-stage-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
@keyframes stage-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .pub-stage-art { animation: none; } }

/* friendlier record: one line instead of a row of zeros */
.record-hint { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .16); color: var(--muted, #b9ad96); font-size: .86rem; }
/* stage, round 2: the name sits under the dino, not over it */
.pub-stage { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 8px 0 12px; }
.pub-stage-art { align-self: center; width: 112%; max-width: none; margin: -6px -6% -10px; }
.pub-stage-glow { bottom: 78px; }
.pub-stage-name { position: static; padding: 0 14px; }
.pub-stage-box > * { flex-shrink: 0; }

/* ◆ Elite badges (shown as Elite; class is-legend) (2026-11-18): crimson and violet, a slow light sweep on earned ones */
.medal.is-legend .medal-ico { background: radial-gradient(circle at 35% 30%, #ffd1f0, #c03a8a 45%, #4b1670 80%);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .4), 0 0 12px rgba(200, 70, 160, .55); }
.badge-wall .medal.is-legend:not(.is-locked) { position: relative; overflow: hidden; border-color: rgba(220, 110, 200, .7);
  background: linear-gradient(160deg, rgba(120, 30, 110, .35), rgba(40, 10, 60, .45)); box-shadow: 0 0 18px rgba(200, 70, 160, .25); }
.badge-wall .medal.is-legend:not(.is-locked)::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); transform: translateX(-100%);
  animation: legend-sweep 4.5s ease-in-out infinite; }
.badge-wall .medal.is-legend.is-locked { border-color: rgba(200, 90, 180, .3); }
.badge-wall .medal.is-legend.is-locked .medal-ico { background: rgba(160, 60, 150, .15); filter: none; }
.medal-row .medal.is-legend { background: linear-gradient(135deg, rgba(190, 50, 140, .4), rgba(60, 15, 90, .45)); border-color: rgba(230, 120, 210, .7);
  box-shadow: 0 0 16px rgba(200, 70, 160, .3); }
.legend-h { color: #f0a8e4; }
.pub-chips .is-legend { border-color: rgba(220, 110, 200, .55) !important; }
@keyframes legend-sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .badge-wall .medal.is-legend::after { animation: none; } }

/* 🎨 Customize, docked (2026-11-18, Vengefulmink: "can be put in a better spot and no scroll wheel"): a wide bar along
   the bottom of the screen, rows side by side, so it never scrolls and the boxes above stay in view for the live preview */
[data-theme-panel].theme-panel:not([hidden]) { left: 16px; right: 16px; bottom: 12px; width: auto; max-width: 1880px; margin-inline: auto;
  max-height: none; overflow: visible; z-index: 80; padding: 12px 16px 10px; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "rows rows" "note actions"; gap: 8px 16px;
  background: rgba(16, 18, 22, .97); border: 1px solid rgba(242, 163, 58, .45); box-shadow: 0 -10px 40px rgba(0, 0, 0, .6); }
[data-theme-panel] > .logo-picker-head { grid-area: head; margin: 0; }
[data-theme-panel] > p { grid-area: note; margin: 0; align-self: center; }
[data-theme-panel] > .theme-rows { grid-area: rows; display: grid; grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); gap: 6px 10px; }
[data-theme-panel] > .theme-actions { grid-area: actions; margin: 0; }
[data-theme-panel] .theme-row { grid-template-columns: 150px 36px minmax(0, 1fr) auto; padding: 4px 8px; }
[data-theme-panel] .theme-effects { flex-wrap: nowrap; }
[data-theme-panel] .theme-fx { padding: 3px 8px; }
@media (max-width: 1100px) { [data-theme-panel].theme-panel:not([hidden]) { top: 70px; overflow-y: auto; } [data-theme-panel] > .theme-rows { grid-template-columns: minmax(0, 1fr); } [data-theme-panel] .theme-effects { flex-wrap: wrap; } }

/* ✦ Legendary badges (shown as Legendary, the top tier; class is-elite) (2026-11-18): black and gold, a turning gold edge on earned ones */
.medal.is-elite .medal-ico { background: radial-gradient(circle at 35% 30%, #3a3a3a, #0b0b0b 70%);
  box-shadow: inset 0 0 0 2px #f5c542, 0 0 14px rgba(245, 197, 66, .55); }
.badge-wall .medal.is-elite:not(.is-locked) { position: relative; isolation: isolate; border: 1px solid transparent;
  background: linear-gradient(170deg, #17140b, #050505) padding-box,
    conic-gradient(from var(--elite-a, 0deg), #f5c542, #6b4a0c, #fff1b8, #6b4a0c, #f5c542) border-box;
  box-shadow: 0 0 20px rgba(245, 197, 66, .25); animation: elite-turn 6s linear infinite; }
.badge-wall .medal.is-elite:not(.is-locked) b { color: #f8d778; }
.badge-wall .medal.is-elite.is-locked { border-color: rgba(245, 197, 66, .25); background: rgba(0, 0, 0, .4); }
.badge-wall .medal.is-elite.is-locked .medal-ico { background: #0b0b0b; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .35); filter: none; }
.medal-row .medal.is-elite { background: linear-gradient(135deg, #1c1709, #050505); border-color: #f5c542; color: #f8d778;
  box-shadow: 0 0 18px rgba(245, 197, 66, .35); }
.elite-h { color: #f5c542; }
.pub-chips .is-elite { border-color: rgba(245, 197, 66, .7) !important; color: #f8d778; }
@property --elite-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes elite-turn { to { --elite-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .badge-wall .medal.is-elite { animation: none; } }

/* stage idle, round 2 (2026-11-18, Vengefulmink: "the trex moving up and down is the wrong kind of animation"):
   no more bobbing. The dino stands still and breathes (a slow chest rise from the feet), and the light behind it glows softly */
.pub-stage-art { animation: stage-breathe 4.2s ease-in-out infinite; transform-origin: 50% 88%; }
.pub-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 70%, rgba(242, 163, 58, .18), transparent 60%); animation: stage-light 4.2s ease-in-out infinite; }
@keyframes stage-breathe { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.006, 1.018); } }
@keyframes stage-light { 0%, 100% { opacity: .55; } 45% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pub-stage-art, .pub-stage::before { animation: none; } }

/* public banner flow (2026-11-18, Vengefulmink: "the space here to the right seems odd. the showcase is out of place"):
   logo | who they are | showcase, with the showcase anchored to the right edge and a bit bigger; the
   "✨ Edit what others see" button moved up beside the My profile / What others see switch */
.pub-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.pub-topbar .pub-viewswitch { margin: 0; }
.pub-topbar .pa-btn { text-decoration: none; }
.player-page .profile-hero { grid-template-columns: auto minmax(0, 1fr) minmax(280px, 380px); }
.player-page .profile-showcase-slot { justify-items: stretch; align-self: center; }
.player-page .profile-showcase { padding: 16px 18px; gap: 5px; border-color: rgba(242, 163, 58, .6);
  background: linear-gradient(160deg, rgba(242, 163, 58, .12), rgba(0, 0, 0, .35)); box-shadow: 0 0 24px rgba(242, 163, 58, .12); }
.player-page .profile-showcase .showcase-big { font-size: 1.6rem; }
@media (max-width: 900px) { .player-page .profile-hero { grid-template-columns: auto minmax(0, 1fr); } }
@media (max-width: 560px) { .player-page .profile-hero { grid-template-columns: minmax(0, 1fr); } }

/* 🎨 favourite skins on the public page (2026-11-18) */
.fav-skins { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.fav-skin { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 10px 6px 6px;
  border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); }
.fav-skin canvas { width: 120px; height: auto; aspect-ratio: 600 / 375; border-radius: 8px; background: radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, .06), transparent 70%); }
.fav-skin:not(:has(canvas)) { grid-template-columns: minmax(0, 1fr); }
.fav-skin-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fav-skin-text small { color: var(--muted, #b9ad96); }
.palette { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.palette i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.pub-palettes .palette i { width: 16px; height: 16px; border-radius: 4px; }

/* ---- Profile finishing touches (2026-11-18, "all 5 sound good") ---- */
/* progress on locked badges */
.badge-prog { width: 100%; height: 6px; margin-top: 4px; border: 0; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .08); appearance: none; }
.badge-prog::-webkit-progress-bar { background: rgba(255, 255, 255, .08); border-radius: 99px; }
.badge-prog::-webkit-progress-value { background: var(--amber, #f2a33a); border-radius: 99px; }
.badge-prog::-moz-progress-bar { background: var(--amber, #f2a33a); border-radius: 99px; }
.is-legend .badge-prog::-webkit-progress-value { background: #d85bb8; }
.is-legend .badge-prog::-moz-progress-bar { background: #d85bb8; }
.is-elite .badge-prog::-webkit-progress-value { background: #f5c542; }
.is-elite .badge-prog::-moz-progress-bar { background: #f5c542; }
.badge-wall .medal small.badge-prog-n { font-weight: 700; color: var(--text, #eee); opacity: .75; }
/* ✋ staff badges: silver and teal */
.medal.is-special .medal-ico { background: radial-gradient(circle at 35% 30%, #f4fffd, #7fd6c8 50%, #1f6f66 85%); box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .35), 0 0 12px rgba(110, 220, 200, .45); }
.badge-wall .medal.is-special { border-color: rgba(120, 220, 200, .6); background: linear-gradient(160deg, rgba(40, 120, 110, .3), rgba(5, 25, 25, .4)); }
.medal-row .medal.is-special { background: linear-gradient(135deg, rgba(60, 170, 155, .35), rgba(10, 40, 40, .45)); border-color: rgba(130, 230, 210, .7); }
.special-h { color: #8fe3d4; }
/* share + topbar */
.pub-topbar-right { display: inline-flex; gap: 8px; flex-wrap: wrap; }
/* the admin desk's badge buttons */
.adm-badge-list { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-badge-list form { margin: 0; }
.adm-btn.is-on { background: #e6c35a; color: #1d1405; }
.adm-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.adm-tabs:has(#adm-tab-badges:checked) .adm-pane-badges { display: flex; }
/* 🏅 New badge! pop-up: bottom-left, above the page (no fade-in) */
.badge-pop { position: fixed; left: 16px; bottom: 16px; z-index: 1400; width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border-radius: 16px; background: rgba(18, 16, 12, .97); border: 1px solid var(--amber, #f2a33a);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .65), 0 0 30px rgba(242, 163, 58, .25); }
.badge-pop-head { font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; color: var(--amber, #f2a33a); }
.badge-pop ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.badge-pop .medal { display: flex; align-items: center; gap: 10px; }
.badge-pop .medal .medal-ico { width: 38px; height: 38px; font-size: 1.2rem; }
.badge-pop-actions { display: flex; gap: 8px; justify-content: flex-end; }
.badge-pop-actions .pa-btn { text-decoration: none; }

/* 📱 phone pass for the profile pages (2026-11-18) */
@media (max-width: 700px) {
  .pub-topbar { flex-direction: column; align-items: stretch; }
  .pub-topbar .pub-viewswitch { align-self: flex-start; }
  .pub-topbar-right { justify-content: stretch; }
  .pub-topbar-right .pa-btn { flex: 1; text-align: center; }
  .profile-actions { justify-content: flex-start; }
  .medal-row .medal { padding-right: 10px; font-size: .78rem; }
  .medal-row .medal-ico { width: 26px; height: 26px; font-size: .9rem; }
  .badge-wall, .badge-wall.is-mine { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .pub-stage-name b { font-size: 1.35rem; }
  .fav-skin { grid-template-columns: 84px minmax(0, 1fr); }
  .fav-skin canvas { width: 84px; }
  .adm-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .badge-pop { left: 8px; right: 8px; bottom: 8px; width: auto; }
}
/* stage, round 3 (2026-11-18, Vengefulmink: "it looks buggy. not smooth at all"): no motion on the dino at all; a still,
   crisp picture with a steady glow behind it */
.pub-stage-art { animation: none; transform: none; }
.pub-stage::before { animation: none; opacity: .85; }

/* 🛠 admins' pictures get a gold admin ring and tag (2026-11-18) */
.profile-logo { position: relative; }
.profile-logo.is-staff { box-shadow: 0 0 0 3px #1d1405, 0 0 0 6px #e6c35a, 0 0 22px rgba(230, 195, 90, .55); border-color: #e6c35a; }
.staff-tag { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); z-index: 3; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: #e6c35a; color: #1d1405; font-weight: 900; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5); pointer-events: none; }
/* 📷 an uploaded picture fills the circle */
.profile-logo.has-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-up { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(0, 0, 0, .25); border: 1px dashed rgba(242, 163, 58, .45); }
.avatar-up form { margin: 0; }
.avatar-pick { cursor: pointer; }
.profile-logo.is-staff { border-radius: 50%; }
.profile-logo.has-avatar img { border-radius: 50% !important; clip-path: circle(50%); }
.profile-logo.has-avatar img { clip-path: none; border: 4px solid var(--amber, #f2a33a); box-sizing: border-box; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }

/* About box fits without scrolling (2026-11-18, Vengefulmink: "we can make this fit in one box without scrolling"):
   quick facts two to a row and tighter, favourite dinos in one slim row */
.pub-about-box { gap: 6px; }
.pub-about-box .col-title { margin-bottom: 4px; }
.pub-about-text p { margin: 0 0 3px; line-height: 1.4; font-size: .92rem; }
.pub-when { margin: 2px 0 6px; font-size: .85rem; }
.pub-facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.pub-facts-list div { padding: 5px 8px; border-radius: 8px; }
.pub-facts-list dt { font-size: .6rem; }
.pub-facts-list dd { font-size: .84rem; line-height: 1.25; }
.pub-about-box .slots-h { margin: 8px 0 4px; }
.pub-favs { gap: 6px; }
.pub-favs li { flex-direction: row; width: auto; padding: 3px 10px 3px 3px; border-radius: 999px; gap: 6px; }
.pub-favs img { width: 30px; height: 30px; }
.pub-favs b { font-size: .76rem; }
@media (max-width: 700px) { .pub-facts-list { grid-template-columns: minmax(0, 1fr); } }
/* 📱 Customize on a phone: a solid full-height sheet above the header and demo bar */
@media (max-width: 1100px) {
  [data-theme-panel].theme-panel:not([hidden]) { top: 8px; bottom: 8px; left: 8px; right: 8px; z-index: 1500; background: #111317; overflow-y: auto;
    grid-template-areas: "head head" "note note" "rows rows" "actions actions"; }
  [data-theme-panel] .theme-row { grid-template-columns: minmax(0, 1fr) 36px auto; }
  [data-theme-panel] .theme-row .theme-effects { grid-column: 1 / -1; grid-row: 2; }
}
body > [data-theme-panel].theme-panel { z-index: 1500; }

/* 🛠 Admin ring, redone (2026-11-18, Vengefulmink: "the admin ring can look better"): a polished gold medallion that hugs
   the picture (conic gold bevel + dark inner disc), and a crisp gold ribbon under it. No motion. */
.profile-logo.is-staff { box-shadow: none; border-radius: 50%; isolation: isolate; }
.profile-logo.is-staff::before { content: ""; position: absolute; inset: -8px; z-index: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, #fff4c9, #e6c35a 14%, #8f6d1f 30%, #f6db86 47%, #b88f2e 63%, #fff1bd 78%, #c9a142 90%, #fff4c9);
  box-shadow: 0 0 0 2px #120d05, 0 0 26px rgba(230, 195, 90, .42), 0 8px 18px rgba(0, 0, 0, .55); }
.profile-logo.is-staff::after { content: ""; position: absolute; inset: -2px; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #2c2416, #110d07 72%); box-shadow: inset 0 0 0 2px #120d05, inset 0 6px 14px rgba(0, 0, 0, .65); }
.profile-logo.is-staff > img, .profile-logo.is-staff > .profile-mark { position: relative; z-index: 1; }
.profile-logo.is-staff:not(.has-avatar) > img { width: 86%; height: 86%; object-fit: contain; }
.profile-logo.is-staff.has-avatar > img { border: 2px solid #120d05; box-shadow: none; }
.profile-logo.is-staff .profile-logo-edit { z-index: 4; }
.profile-logo.is-staff .staff-tag { bottom: -15px; z-index: 3; padding: 3px 12px 3px 10px; border: 2px solid #120d05; border-radius: 6px;
  background: linear-gradient(180deg, #fbe7a1, #e6c35a 55%, #b88f2e); color: #1d1405; font-size: .7rem; letter-spacing: .12em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .55); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }

/* 🛠 Player desk, refined (2026-11-18, Vengefulmink: "no cramped. and easy to use and understand"): roomy 680px desk,
   who-it-is header, six icon-over-word tabs, a one-line intro per tab and labelled fields in cards. */
.adm-drawer > .adm-desk.pd-desk, .has-desk-btn .adm-drawer > .adm-desk.pd-desk { width: min(680px, calc(100vw - 24px)); }
.pd-desk { gap: 12px; padding: 16px 18px; }
.pd-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(230, 195, 90, .25); }
.pd-face { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 50% 32%, #2c2416, #110d07 72%); box-shadow: 0 0 0 2px var(--adm-gold);
  font: 900 1.4rem/1 var(--display, inherit); color: var(--adm-gold); }
.pd-face img { width: 100%; height: 100%; object-fit: cover; }
.pd-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-who small { color: var(--adm-dim); font-size: .74rem; letter-spacing: .04em; }
.pd-who b { font-size: 1.2rem; color: var(--adm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-status { font-size: .8rem; font-weight: 700; color: var(--adm-dim); }
.pd-status.is-on { color: #57f287; }
.pd-facts { display: flex; gap: 8px; margin: 0; }
.pd-facts div { padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .28); text-align: center; min-width: 74px; }
.pd-facts dt { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--adm-dim); }
.pd-facts dd { margin: 2px 0 0; font-weight: 800; font-size: .9rem; white-space: nowrap; }
.adm-tabs.pd-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pd-tabs > label { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font-size: .78rem; border-radius: 10px 10px 0 0; }
.pd-tabs > label i { font-style: normal; font-size: 1.2rem; line-height: 1; }
.pd-tabs > label:hover { color: var(--adm-ink); background: rgba(230, 195, 90, .12); }
.pd-tabs > input:checked + label:hover { color: #1d1405; background: var(--adm-gold); }
.adm-tabs.pd-tabs:has(#adm-tab-pic:checked) .adm-pane-pic { display: flex; }
.pd-tabs .adm-pane { gap: 14px; padding: 16px; }
.pd-intro { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(230, 195, 90, .08); border-left: 3px solid var(--adm-gold);
  font-size: .86rem; line-height: 1.45; color: var(--adm-ink); }
.pd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-card { gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .26); }
.pd-card-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 800; font-size: .95rem; color: var(--adm-gold); }
.pd-card-title em { font-style: normal; font-weight: 600; font-size: .76rem; color: var(--adm-dim); }
.pd-field { display: flex; flex-direction: column; gap: 4px; }
.pd-field > span { font-size: .74rem; font-weight: 700; color: var(--adm-dim); }
.pd-desk .text { padding: 9px 11px; font-size: .9rem; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pd-actions form { margin: 0; }
.pd-actions .adm-btn { padding: 9px 14px; font-size: .86rem; }
.pd-cards .pd-actions .adm-btn { flex: 1 1 0; }
.pd-chips { gap: 6px; }
.pd-sub { margin-top: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--adm-dim); }
.pd-staff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-staff form { margin: 0; display: flex; }
.pd-staff-btn { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; width: 100%;
  padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--adm-ink);
  text-align: left; cursor: pointer; font: inherit; }
.pd-staff-btn:hover { border-color: rgba(230, 195, 90, .6); background: rgba(230, 195, 90, .1); }
.pd-staff-btn:focus-visible { outline: 2px solid var(--adm-gold); outline-offset: 1px; }
.pd-staff-ico { grid-row: 1 / 3; font-size: 1.35rem; }
.pd-staff-btn b { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-staff-btn small { font-size: .7rem; line-height: 1.25; color: var(--adm-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-staff-btn.is-on { border-color: var(--adm-gold); background: linear-gradient(180deg, rgba(230, 195, 90, .28), rgba(230, 195, 90, .12)); }
.pd-staff-btn.is-on small { color: #57f287; font-weight: 700; }
.pd-earned { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-earned form { margin: 0; }
.pd-chip { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--adm-ink);
  font: inherit; font-size: .8rem; cursor: pointer; }
.pd-chip span { margin-left: 4px; color: #ed8a8c; font-size: .74rem; }
.pd-chip:hover { border-color: rgba(237, 66, 69, .6); background: rgba(237, 66, 69, .12); }
.pd-chip.is-taken { opacity: .8; text-decoration: none; }
.pd-chip.is-taken span { color: #57f287; }
.pd-chip.is-taken:hover { border-color: rgba(87, 242, 135, .6); background: rgba(87, 242, 135, .1); opacity: 1; }
.pd-pic { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 18px; }
.pd-pic-now { display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: rgba(0, 0, 0, .35);
  box-shadow: 0 0 0 2px rgba(230, 195, 90, .5); text-align: center; color: var(--adm-dim); font-size: .85rem; }
.pd-pic-now img { width: 100%; height: 100%; object-fit: cover; }
.pd-pic-side { display: flex; flex-direction: column; gap: 12px; }
.pd-tabs .adm-log li { padding: 10px 12px; }
@media (max-width: 720px) {
  .pd-head { grid-template-columns: auto minmax(0, 1fr); }
  .pd-facts { grid-column: 1 / -1; }
  .pd-facts div { flex: 1; }
  .adm-tabs.pd-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-cards, .pd-staff { grid-template-columns: minmax(0, 1fr); }
  .pd-pic { grid-template-columns: 1fr; justify-items: center; }
}

/* 👤 header profile button shows your picture (2026-11-18, Vengefulmink: "can be your profiles picture") */
.account-group > .me { padding: 4px 12px 4px 4px; gap: 9px; border-radius: 999px; }
.me-pic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 32%, #2c2416, #110d07 72%); box-shadow: 0 0 0 2px var(--accent, #f2a33a);
  font-weight: 900; font-size: .95rem; color: var(--accent, #f2a33a); }
.me-pic.is-staff { box-shadow: 0 0 0 2px #120d05, 0 0 0 4px #e6c35a; }
.me-pic img { width: 100%; height: 100%; object-fit: cover; }
.me-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 🔎 Find a player (2026-11-18, Vengefulmink: "somewhere you can paste or search other players profiles"). One screen:
   the search on top, results below scroll inside their own box. */
.find-chip { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none;
  font-size: 1.05rem; background: rgba(255, 255, 255, .04); }
.find-chip:hover, .find-chip.current { border-color: var(--accent); background: rgba(242, 163, 58, .14); text-decoration: none; }
.find-page { display: flex; flex-direction: column; gap: 14px; height: calc(100vh - 228px); min-height: 420px; }
.find-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(300px, 520px); align-items: center; gap: 18px; padding: 18px 22px; margin: 0; flex: none;
  background: radial-gradient(120% 160% at 0% 0%, rgba(242, 163, 58, .16), transparent 55%), var(--panel, #141a1d); }
.find-hero-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; background: rgba(242, 163, 58, .14);
  box-shadow: inset 0 0 0 1px rgba(242, 163, 58, .45); }
.find-hero h1 { margin: 0; font-size: 1.7rem; }
.find-hero p { margin: 4px 0 0; color: var(--muted, #a9a291); font-size: .92rem; }
.find-form { display: flex; gap: 8px; }
.find-input { flex: 1; min-width: 0; padding: 13px 16px; font-size: 1.02rem; border-radius: 12px; }
.find-form .button { padding-inline: 22px; border-radius: 12px; }
.find-box { flex: 1; min-height: 0; margin: 0; padding: 16px 18px; display: flex; flex-direction: column; }
.find-results { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.find-results:has(.find-cols) { overflow: hidden; }
.find-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.find-col { display: flex; flex-direction: column; min-height: 0; }
.find-col h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.find-col h2 em { font-style: normal; font-size: .8rem; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted, #a9a291); }
.find-col .find-cards { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; align-content: start; }
.find-dot { width: 10px; height: 10px; border-radius: 50%; background: #57f287; box-shadow: 0 0 8px rgba(87, 242, 135, .7); }
.find-count { margin: 0; color: var(--muted, #a9a291); font-size: .85rem; }
.find-empty { margin: 0; padding: 18px; border-radius: 12px; background: rgba(0, 0, 0, .22); color: var(--muted, #a9a291); text-align: center; }
.find-cards { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.find-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1)); background: rgba(255, 255, 255, .03); color: var(--text); text-decoration: none; }
.find-card:hover, .find-card:focus-visible { border-color: var(--accent, #f2a33a); background: rgba(242, 163, 58, .1); text-decoration: none; }
.find-card.is-online { border-color: rgba(87, 242, 135, .35); }
.find-pic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 50% 32%, #2c2416, #110d07 72%); box-shadow: 0 0 0 2px rgba(242, 163, 58, .6);
  font-weight: 900; font-size: 1.2rem; color: var(--accent, #f2a33a); }
.find-pic.is-staff { box-shadow: 0 0 0 2px #120d05, 0 0 0 4px #e6c35a; }
.find-pic img { width: 100%; height: 100%; object-fit: cover; }
.find-who { display: flex; flex-direction: column; min-width: 0; }
.find-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-who small { color: var(--muted, #a9a291); font-size: .78rem; }
.find-on { color: #57f287; font-weight: 700; }
.find-staff { color: #e6c35a; font-weight: 700; }
.find-go { color: var(--muted, #a9a291); font-size: 1.1rem; }
.find-card:hover .find-go { color: var(--accent, #f2a33a); }
.find-cols .find-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 900px) {
  .find-page { height: auto; min-height: 0; }
  .find-hero { grid-template-columns: auto minmax(0, 1fr); }
  .find-form { grid-column: 1 / -1; }
  .find-cols { grid-template-columns: 1fr; }
  .find-results, .find-results:has(.find-cols), .find-col .find-cards { overflow: visible; }
}

/* 🐾 status saves on pick; on My profile the status is a button that opens the picker (2026-11-18) */
.pub-status-btn { cursor: pointer; font: inherit; border: 0; }
.pub-status-btn:hover { filter: brightness(1.15); }
.pub-status-btn.is-empty { background: transparent; border: 1px dashed rgba(255, 255, 255, .25); color: var(--muted, #a9a291); }
.pub-status-saved { margin-left: 8px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted, #a9a291); }
.pub-status-saved.is-bad { color: #ed8a8c; }
/* the in-place badge message sits at the bottom of the desk so nothing moves under your mouse */
.pd-inplace-msg { position: sticky; bottom: 0; z-index: 5; margin-top: -4px; background: #16301f !important; box-shadow: 0 -6px 16px rgba(0, 0, 0, .55); }
.pd-inplace-msg.is-bad { background: #3a1617 !important; }
.pd-inplace-msg[hidden] { display: none; }


/* 🛠 Command center (rebuilt 2026-11-18, Vengefulmink: "an all in one spot for an admin to come to, to do anything ...
   professional looking and easy to use"). One screen: status bar on top, grouped rail on the left, one area at a time
   on the right (it scrolls inside). Sober slate and gold, no motion. */
.cc { --cc-bg: #0e1215; --cc-panel: #141a1e; --cc-panel2: #1a2126; --cc-line: rgba(255, 255, 255, .08); --cc-gold: #e6c35a;
  --cc-ink: #e9e5da; --cc-dim: #9da3a6; --cc-ok: #57f287; --cc-warn: #f0b44c; --cc-bad: #ed6a6c;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 14px;
  height: calc(100vh - 168px); min-height: 560px; color: var(--cc-ink); }
.cc-r { position: absolute; opacity: 0; pointer-events: none; }
.cc-bar { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 18px;
  border: 1px solid rgba(230, 195, 90, .35); border-radius: 14px; background: linear-gradient(180deg, #1b2227, #12171b);
  box-shadow: inset 0 3px 0 var(--cc-gold), 0 10px 24px rgba(0, 0, 0, .35); }
.cc-ident { display: flex; align-items: center; gap: 12px; }
.cc-seal { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(230, 195, 90, .12); box-shadow: inset 0 0 0 1px rgba(230, 195, 90, .5); }
.cc-seal img { width: 34px; height: 34px; }
.cc-kicker { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-gold); }
.cc-bar h1 { margin: 0; font-size: 1.45rem; letter-spacing: .02em; }
.cc-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; justify-content: center; }
.cc-kpi { display: flex; flex-direction: column; min-width: 92px; padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .28); border: 1px solid var(--cc-line); }
.cc-kpi span { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cc-dim); }
.cc-kpi b { display: flex; align-items: center; gap: 6px; font-size: 1.05rem; white-space: nowrap; }
.cc-kpi b em { font-style: normal; font-weight: 600; color: var(--cc-dim); font-size: .8rem; }
.cc-kpi small { font-size: .7rem; color: var(--cc-dim); }
.cc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cc-ok); box-shadow: 0 0 8px rgba(87, 242, 135, .6); flex: none; }
.cc-kpi.is-offline .cc-dot, .cc-island.is-offline .cc-dot, .cc-kpi.is-stale .cc-dot, .cc-island.is-stale .cc-dot { background: var(--cc-bad); box-shadow: none; }
.cc-who { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.cc-role { padding: 2px 10px; border-radius: 999px; background: var(--cc-gold); color: #1d1405; font-weight: 900; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.cc-who small { color: var(--cc-dim); font-size: .72rem; }

.cc-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px; overflow-y: auto; scrollbar-width: thin; border-radius: 14px; border: 1px solid var(--cc-line); background: var(--cc-panel); }
.cc-group { margin: 10px 8px 4px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-dim); }
.cc-group:first-child { margin-top: 2px; }
.cc-link { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; cursor: pointer;
  color: var(--cc-ink); font-weight: 650; font-size: .9rem; border: 1px solid transparent; }
.cc-link i { font-style: normal; font-size: 1.05rem; text-align: center; }
.cc-link:hover { background: rgba(255, 255, 255, .05); }
.cc-badge { font-style: normal; font-size: .66rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--cc-dim); white-space: nowrap; }
.cc-badge.is-ok { background: rgba(87, 242, 135, .14); color: var(--cc-ok); }
.cc-badge.is-warn { background: rgba(240, 180, 76, .16); color: var(--cc-warn); }
.cc-badge.is-pv { background: rgba(150, 160, 255, .14); color: #aab3ff; }
.cc:has(#cc-overview:checked) .cc-link[for=cc-overview],
.cc:has(#cc-players:checked) .cc-link[for=cc-players],
.cc:has(#cc-dino:checked) .cc-link[for=cc-dino],
.cc:has(#cc-server:checked) .cc-link[for=cc-server],
.cc:has(#cc-console:checked) .cc-link[for=cc-console],
.cc:has(#cc-shop:checked) .cc-link[for=cc-shop],
.cc:has(#cc-bloodline:checked) .cc-link[for=cc-bloodline],
.cc:has(#cc-games:checked) .cc-link[for=cc-games],
.cc:has(#cc-trading:checked) .cc-link[for=cc-trading],
.cc:has(#cc-bounties:checked) .cc-link[for=cc-bounties],
.cc:has(#cc-news:checked) .cc-link[for=cc-news],
.cc:has(#cc-events:checked) .cc-link[for=cc-events],
.cc:has(#cc-rankings:checked) .cc-link[for=cc-rankings],
.cc:has(#cc-map:checked) .cc-link[for=cc-map],
.cc:has(#cc-voice:checked) .cc-link[for=cc-voice],
.cc:has(#cc-log:checked) .cc-link[for=cc-log],
.cc:has(#cc-wire:checked) .cc-link[for=cc-wire] { background: linear-gradient(90deg, rgba(230, 195, 90, .22), rgba(230, 195, 90, .06)); border-color: rgba(230, 195, 90, .45); color: #fff; box-shadow: inset 3px 0 0 var(--cc-gold); }
.cc-r:focus-visible + .cc-r, .cc:has(.cc-r:focus-visible) .cc-nav { outline: none; }

.cc-main { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--cc-line); background: var(--cc-panel); overflow: hidden; }
.cc-sec { display: none; flex: 1; min-height: 0; flex-direction: column; }
.cc:has(#cc-overview:checked) .cc-sec-overview,
.cc:has(#cc-players:checked) .cc-sec-players,
.cc:has(#cc-dino:checked) .cc-sec-dino,
.cc:has(#cc-server:checked) .cc-sec-server,
.cc:has(#cc-console:checked) .cc-sec-console,
.cc:has(#cc-shop:checked) .cc-sec-shop,
.cc:has(#cc-bloodline:checked) .cc-sec-bloodline,
.cc:has(#cc-games:checked) .cc-sec-games,
.cc:has(#cc-trading:checked) .cc-sec-trading,
.cc:has(#cc-bounties:checked) .cc-sec-bounties,
.cc:has(#cc-news:checked) .cc-sec-news,
.cc:has(#cc-events:checked) .cc-sec-events,
.cc:has(#cc-rankings:checked) .cc-sec-rankings,
.cc:has(#cc-map:checked) .cc-sec-map,
.cc:has(#cc-voice:checked) .cc-sec-voice,
.cc:has(#cc-log:checked) .cc-sec-log,
.cc:has(#cc-wire:checked) .cc-sec-wire { display: flex; }
.cc-sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--cc-line);
  background: linear-gradient(180deg, var(--cc-panel2), var(--cc-panel)); }
.cc-sec-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.45rem; background: rgba(230, 195, 90, .1); box-shadow: inset 0 0 0 1px rgba(230, 195, 90, .35); }
.cc-crumb { margin: 0; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-gold); }
.cc-sec-head h2 { margin: 0; font-size: 1.3rem; }
.cc-line { margin: 2px 0 0; color: var(--cc-dim); font-size: .86rem; }
.cc-open { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--cc-line); color: var(--cc-ink); font-weight: 700; font-size: .84rem; text-decoration: none; white-space: nowrap; }
.cc-open:hover { border-color: var(--cc-gold); color: var(--cc-gold); text-decoration: none; }
.cc-sec-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 18px 20px; }
.cc-flash { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 44px 10px 14px; border-bottom: 1px solid var(--cc-line); background: #10161a; }
.cc-flash .adm-msg { margin: 0; }
.cc-flash-x { position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--cc-line); background: transparent; color: var(--cc-dim); cursor: pointer; }

/* desks inside: full width but kept readable */
.cc-desk { max-width: 1100px; margin: 0 auto; box-shadow: none; }
.cc-desk.adm-desk { padding: 16px 18px; }
.cc-sheriff .bn-desk { margin: 0; }

/* cards for the Command center's own areas */
.cc-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border-radius: 12px; border: 1px solid var(--cc-line); background: rgba(0, 0, 0, .22); }
.cc-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cc-gold); }
.cc-card h3 + * { margin-top: 0; }
.cc-card h4 { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: .8rem; color: var(--cc-dim); text-transform: uppercase; letter-spacing: .08em; }
.cc-card h4 em, .cc-count { font-style: normal; font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--cc-dim); letter-spacing: 0; text-transform: none; }
.cc-more { margin-left: auto; font-size: .72rem; letter-spacing: 0; text-transform: none; color: var(--cc-dim); cursor: pointer; }
.cc-more:hover { color: var(--cc-gold); }
.cc-ov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cc-ov-areas { grid-column: 1 / -1; }
.cc-island { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.cc-island small { display: block; color: var(--cc-dim); font-size: .78rem; }
.cc-meter { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cc-meter > i { display: block; height: 100%; width: var(--pct, 0%); background: linear-gradient(90deg, #57f287, #e6c35a); }
.cc-people { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.cc-people a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--cc-ink); text-decoration: none; background: rgba(255, 255, 255, .03); }
.cc-people a:hover { background: rgba(230, 195, 90, .1); text-decoration: none; }
.cc-people span { margin-left: auto; color: var(--cc-dim); font-size: .76rem; }
.cc-look { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cc-look label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; border: 1px solid var(--cc-line); border-left: 3px solid var(--cc-dim); background: rgba(255, 255, 255, .03); }
.cc-look label:hover { background: rgba(255, 255, 255, .06); }
.cc-look small { grid-column: 1; color: var(--cc-dim); font-size: .76rem; }
.cc-look span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--cc-dim); }
.cc-look .is-bad label { border-left-color: var(--cc-bad); }
.cc-look .is-warn label { border-left-color: var(--cc-warn); }
.cc-look .is-info label { border-left-color: #6fb7ff; }
.cc-allgood { margin: 0; padding: 12px; border-radius: 9px; background: rgba(87, 242, 135, .08); color: var(--cc-ok); font-weight: 700; }
.cc-say { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.cc-say .text { width: 100%; box-sizing: border-box; resize: vertical; }
.cc-say-row { display: flex; align-items: center; gap: 10px; }
.cc-say-row small { color: var(--cc-dim); font-size: .74rem; }
.cc-feed { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cc-feed li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--cc-line); }
.cc-feed li:last-child { border-bottom: 0; }
.cc-feed b { display: block; font-size: .88rem; }
.cc-feed span:not(.cc-tag) { display: block; font-size: .8rem; color: var(--cc-ink); opacity: .85; overflow-wrap: anywhere; }
.cc-feed small { color: var(--cc-dim); font-size: .72rem; }
.cc-tag { align-self: start; padding: 2px 8px; border-radius: 6px; background: rgba(230, 195, 90, .12); color: var(--cc-gold); font-size: .68rem; font-weight: 800; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cc-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--cc-line); background: rgba(255, 255, 255, .03); }
.cc-tile:hover { border-color: rgba(230, 195, 90, .55); background: rgba(230, 195, 90, .08); }
.cc-tile i { grid-row: 1 / 3; font-style: normal; font-size: 1.3rem; }
.cc-tile b { font-size: .86rem; }
.cc-tile small { color: var(--cc-dim); font-size: .72rem; }
.cc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cc-find { display: flex; gap: 8px; margin: 0; }
.cc-find .text { flex: 1; min-width: 0; }
.cc-prow-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cc-prow { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, .03); }
.cc-prow > div { flex: 1; min-width: 0; }
.cc-prow b { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.cc-prow small { color: var(--cc-dim); font-size: .72rem; }
.cc-prow .adm-btn { padding: 5px 9px; font-size: .76rem; text-decoration: none; white-space: nowrap; }
.cc-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-filter a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--cc-line); color: var(--cc-dim); font-size: .78rem; font-weight: 700; text-decoration: none; }
.cc-filter a[aria-current] { background: var(--cc-gold); border-color: var(--cc-gold); color: #1d1405; }
.cc-feed-full li { grid-template-columns: 110px minmax(0, 1fr); }
.cc-health { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cc-health li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, .03); border-left: 3px solid var(--cc-ok); }
.cc-health li.is-bad { border-left-color: var(--cc-bad); }
.cc-health small { color: var(--cc-dim); }
.cc-console { min-height: 420px; }
@media (max-width: 1100px) {
  .cc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; min-height: 0; }
  .cc-bar { grid-template-columns: minmax(0, 1fr); }
  .cc-who { align-items: flex-start; text-align: left; }
  .cc-kpis { justify-content: flex-start; }
  .cc-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 8px; position: sticky; top: 64px; z-index: 5; }
  .cc-group { display: none; }
  .cc-link { grid-template-columns: auto auto; white-space: nowrap; }
  .cc-link em { display: none; }
  .cc-main { overflow: visible; }
  .cc-sec-body { overflow: visible; padding: 14px; }
  .cc-ov, .cc-two { grid-template-columns: minmax(0, 1fr); }
  .cc-sec-head { grid-template-columns: auto minmax(0, 1fr); }
  .cc-open { grid-column: 1 / -1; justify-self: start; }
  .cc-prow { flex-wrap: wrap; }
}
/* the Command center uses the whole screen width, not the page column */
.cc { --cc-w: min(1860px, calc(100vw - 40px)); width: var(--cc-w); margin-inline: calc((100% - var(--cc-w)) / 2); }
.cc-kpis { flex-wrap: nowrap; }
@media (max-width: 1500px) { .cc-kpis { flex-wrap: wrap; } }
@media (max-width: 1100px) { .cc { --cc-w: 100%; } }
.cc-desk { max-width: 1200px; }
.cc-desk .adm-tabs { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.cc-nav { gap: 1px; padding: 8px; }
.cc-link { padding: 6px 10px; font-size: .86rem; }
.cc-group { margin: 8px 8px 2px; }
.cc-feed li { padding: 6px 4px; }

/* the Sheriff's desk inside the Command center: same controls, the Command center's plain professional look
   (on the Bounties page it keeps its Wild West look) */
.cc-sheriff { --ink: var(--cc-ink); --rust: #e6c35a; --west: inherit; }
.cc-sheriff .bn-desk { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--cc-ink); }
.cc-sheriff .bn-desk-head h2 { font: 800 1.05rem/1.2 inherit; text-transform: none; letter-spacing: .02em; color: var(--cc-gold); text-shadow: none; }
.cc-sheriff .bn-desk-head small { color: var(--cc-dim); }
.cc-sheriff .bn-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cc-sheriff .bn-tabs > label { padding: 10px 6px; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .04); color: var(--cc-dim);
  font: 700 .82rem/1.2 inherit; text-transform: none; letter-spacing: 0; }
.cc-sheriff .bn-tabs > label:hover { color: var(--cc-ink); background: rgba(230, 195, 90, .12); }
.cc-sheriff .bn-tabs > input:checked + label { background: var(--cc-gold); color: #1d1405; }
.cc-sheriff .bn-tabs:has(#bn-tab-log:checked) .bn-pane-log { display: flex; }
.cc-sheriff .bn-pane { overflow: visible; padding: 16px; border-radius: 0 0 10px 10px; color: var(--cc-ink); background: rgba(255, 255, 255, .03); border: 1px solid rgba(230, 195, 90, .25); }
.cc-sheriff .bn-group { background: rgba(0, 0, 0, .22); border: 1px solid var(--cc-line); }
.cc-sheriff .bn-group legend, .cc-sheriff .bn-switch-row { font: 800 .8rem/1.2 inherit; color: var(--cc-gold); text-transform: uppercase; letter-spacing: .06em; }
.cc-sheriff .bn-fields span, .cc-sheriff .bn-fields-one span, .cc-sheriff .bn-desk-label { font: 700 .74rem/1.2 inherit; text-transform: none; letter-spacing: 0; color: var(--cc-dim); }
.cc-sheriff .bn-hint, .cc-sheriff .bn-desk-note, .cc-sheriff .bn-pane-down .bn-takedown small { color: var(--cc-dim); font-style: normal; }
.cc-sheriff .text { background: #0f1417; color: var(--cc-ink); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; padding: 8px 10px; }
.cc-sheriff .bn-switch { background: rgba(0, 0, 0, .35); }
.cc-sheriff .bn-switch label { font: 800 .74rem/1 inherit; color: var(--cc-dim); }
.cc-sheriff .bn-switch input:checked + label { background: var(--cc-gold); color: #1d1405; }
.cc-sheriff .bn-switch input[value="0"]:checked + label { background: #59606a; color: #fff; }
.cc-sheriff .bn-chipset span { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); color: var(--cc-ink); }
.cc-sheriff .bn-chipset input:checked + span { background: var(--cc-gold); border-color: var(--cc-gold); color: #1d1405; }
.cc-sheriff .bn-desk-btn { position: static; align-self: flex-start; padding: 10px 18px; border: 1px solid rgba(230, 195, 90, .6); border-radius: 8px; background: rgba(230, 195, 90, .18);
  color: var(--cc-ink); font: 800 .86rem/1 inherit; text-transform: none; box-shadow: none; }
.cc-sheriff .bn-pane-down .bn-takedown li { border-bottom-color: var(--cc-line); }
.cc-sheriff .bn-log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cc-sheriff .bn-log li { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--cc-line); }
.cc-sheriff .bn-log small { color: var(--cc-dim); }
.cc-ov-log .cc-feed, .cc-ov-island .cc-people { max-height: 330px; overflow-y: auto; scrollbar-width: thin; }
.cc-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1500px) { .cc-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.cc .cc-desk .adm-tabs, .cc .cc-desk .adm-tabs.sd-tabs { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.cc-link { padding: 5px 10px; }
.cc-group { margin: 6px 8px 2px; }

/* ----- AI desk: draw a zone in a pop-up map (Command center, 2026-11-18) */
html.zp-open, html.zp-open body { overflow: hidden; }
.zp-pop { --adm-gold: #e6c35a; --adm-ink: #e8e4d8; --adm-dim: #a9a291; --adm-bg: #151a1d; --adm-bg2: #1e2529;
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 18px; background: rgba(4, 7, 9, 0.82); color: var(--adm-ink); }
.zp-pop[hidden] { display: none; }
.zp-box { width: min(1500px, 100%); height: min(920px, 100%); display: grid; grid-template-rows: auto 1fr; background: var(--adm-bg);
  border: 1px solid rgba(230, 195, 90, 0.35); border-radius: 14px; box-shadow: inset 0 3px 0 var(--adm-gold), 0 24px 60px rgba(0, 0, 0, 0.6); overflow: hidden; }
.zp-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.zp-title { display: grid; gap: 2px; }
.zp-title small { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--adm-gold); }
.zp-title b { font-size: 1.08rem; }
.zp-help { margin: 0; padding: 8px 12px; border-radius: 8px; background: rgba(230, 195, 90, 0.1); border: 1px solid rgba(230, 195, 90, 0.25); font-size: 0.86rem; }
.zp-x { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: var(--adm-ink); font-size: 1rem; cursor: pointer; }
.zp-x:hover { border-color: var(--adm-gold); color: var(--adm-gold); }
.zp-body { display: grid; grid-template-columns: 290px 1fr; min-height: 0; }
.zp-side { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-right: 1px solid rgba(255, 255, 255, 0.08); background: var(--adm-bg2); overflow-y: auto; }
.zp-group { display: grid; gap: 6px; }
.zp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.zp-row3 { grid-template-columns: 1fr 1fr; }
.zp-row3 > :last-child { grid-column: 1 / -1; }
.zp-side .adm-btn { text-align: left; font-size: 0.86rem; }
.zp-side .adm-btn:disabled { opacity: 0.4; cursor: default; }
.zp-side .adm-btn.is-on { background: var(--adm-gold); border-color: var(--adm-gold); color: #1d1405; font-weight: 700; }
.zp-kind { border-left-width: 4px !important; }
.zp-kind.zk-noai { border-left-color: #ff3b30 !important; } .zp-kind.zk-aionly { border-left-color: #ff2df0 !important; } .zp-kind.zk-safe { border-left-color: #fff !important; }
.zp-size { margin: 0; font-size: 0.82rem; color: var(--adm-dim); }
.zp-size.ok { color: #5fcf86; font-weight: 700; }
.zp-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.8rem; }
.zp-key li { display: flex; align-items: center; gap: 8px; }
.zp-key i { width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--zc); background: color-mix(in srgb, var(--zc) 25%, transparent); }
.zp-key .zk-noai { --zc: #ff3b30; } .zp-key .zk-aionly { --zc: #ff2df0; } .zp-key .zk-safe { --zc: #ffffff; }
.zp-note { margin: 0; font-size: 0.74rem; color: var(--adm-dim); }
.zp-foot { margin-top: auto; display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.zp-foot .adm-btn { text-align: center; }
.zp-side .zp-use { padding: 12px; font-size: 0.98rem; font-weight: 800; background: var(--adm-gold); border-color: var(--adm-gold); color: #1d1405; text-align: center; }
.zp-stage { position: relative; min-width: 0; min-height: 0; background: #0b0f11; }
.zp-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; user-select: none; }
.zp-svg.panning { cursor: grabbing; }
.zp-svg .zlive { fill: var(--zc); fill-opacity: 0.12; stroke: var(--zc); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.zp-svg .zdraft { stroke-width: 3px; fill-opacity: 0.28; }
.zp-svg .zdraft.zp-closed { fill-opacity: 0.34; }
.zp-svg .zp-radius { stroke: #fff; stroke-width: 1.5px; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.zp-dot { fill: #fff; stroke: #000; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.zp-dot.first { fill: #e6c35a; }
.pv-mini { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; }
.pv-mini[hidden] { display: none; }
.zp-mini-svg { width: 150px; height: 110px; border-radius: 8px; border: 1px solid rgba(230, 195, 90, 0.35); background: #0b0f11; display: block; }
.zp-mini-svg .zdraft { stroke-width: 2px; }
@media (max-width: 900px) {
  .zp-pop { padding: 0; }
  .zp-box { border-radius: 0; height: 100%; }
  .zp-head { grid-template-columns: 1fr auto; }
  .zp-help { grid-column: 1 / -1; grid-row: 2; }
  .zp-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .zp-side { order: 2; max-height: 42vh; border-right: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

/* ----- Home's opening scene, night version (2026-11-18 evening, Vengefulmink: "spooky, spine chilling, ominous").
   One still picture, hero-night.webp (2400x1125): blood moon, dead forest, fog, a Tyrannosaurus backlit by the moon with
   a burning eye, a raptor in the fog, eyes in the undergrowth. Made by scene-source/spooky/gen_spooky.py from the site's
   own baked T. rex / Omniraptor portraits. The day scene (hero-scene.webp) stays for the other banners. */
.hero-scene { background: #050407; }
.hero .scene-sky { display: none; }
.hero .scene-art { top: 0; bottom: 0; height: auto; background: url("hero-night.webp") center bottom / cover no-repeat; }
.hero .ptero path { fill: #040203; }
.hero .scene-embers i { background: radial-gradient(circle, rgba(190, 170, 170, 0.55) 30%, rgba(190, 170, 170, 0) 70%); }
.hero h1 { text-shadow: 0 4px 32px rgba(0, 0, 0, 0.8), 0 0 60px rgba(120, 10, 10, 0.35); }

/* Full-site check (2026-11-18): the full-width Home hero is 100vw, which counts the scrollbar and made the page
   slide sideways by a few pixels; clip it (clip, not hidden, so sticky headers keep working) */
html { overflow-x: clip; }
/* News on phones and small windows: a later desktop rule put the 340px side column back, so undo it below 1100px */
@media (max-width: 1099px) {
  .nf-page { grid-template-columns: minmax(0, 1fr); }
  .nf-hero-acts { flex-wrap: wrap; }
}
/* My dino: Complete Prime Status is now a form that completes prime right on the page (2026-11-18); the form holds the sticky spot */
.prime-form { position: sticky; bottom: 0; z-index: 2; margin-top: 8px; }
.prime-form .prime-btn-box { position: static; margin-top: 0; cursor: pointer; }

/* Shop folder tabs (2026-11-18): 🌱 Shop | 🧬 Bloodlines above the Shop and the Bloodline builder. The open tab is a
   raised folder tab joined to the line under it; the other sits a little lower and darker. */
.shop-tabs { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 6px; margin: 14px 0 0; padding: 0 14px; }  /* sits right on the cards below, like folder tabs */
.shop-tab { position: relative; display: flex; flex-direction: column; gap: 1px; margin-bottom: -1px; padding: 9px 22px 8px; border: 1px solid var(--line-soft); border-bottom-color: var(--line);
  border-radius: 12px 12px 0 0; background: var(--bg-2); color: var(--muted); font: 600 1rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.shop-tab small { font: 400 .74rem/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); opacity: .8; }
.shop-tab:hover { color: var(--text); border-color: var(--line); text-decoration: none; }
.shop-tab.is-open { padding-top: 12px; border-color: var(--line); border-bottom-color: var(--panel-raised); background: var(--panel-raised); color: var(--accent);
  box-shadow: inset 0 3px 0 var(--accent); }
.shop-tab.is-open small { color: var(--text); }
.shop-tabs + .shop-wide, .shop-tabs + .grow-wide { margin-top: 0; }
@media (max-width: 560px) { .shop-tabs { padding: 0 4px; } .shop-tab { flex: 1; padding: 8px 10px; font-size: .9rem; } .shop-tab small { display: none; } }

/* Shop: 🦴 Dino Storage tab page (2026-11-18). Left the dino you're playing, right the stored dinos as cards; the right box
   scrolls inside itself so the page fits one screen. */
.st-wide { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; }
.st-wide .card { margin: 0; min-width: 0; }
.st-now { display: flex; flex-direction: column; gap: 10px; }
.st-now .you-pic { width: 100%; height: auto; max-height: 150px; object-fit: contain; }
.st-now .your-species { margin: 0; font: 700 1.2rem/1.2 var(--display); text-transform: uppercase; }
.st-store-btn, .st-grow-link { width: 100%; justify-content: center; text-align: center; }
.st-grow-link { display: flex; flex-direction: column; gap: 1px; }
.st-how { margin: auto 0 0; }
.st-shelf { display: flex; flex-direction: column; max-height: calc(100vh - 300px); min-height: 360px; }
.st-shelf .col-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-shelf .col-head h2 { margin: 0; }
.st-grid { flex: 1; min-height: 0; overflow-y: auto; margin-top: 12px; padding-right: 4px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-content: start; }
.st-grid .stored-pic { width: 100%; height: auto; }
.st-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--muted); }
.st-empty span { font-size: 2.6rem; }
.st-empty b { color: var(--text); font-size: 1.1rem; }
.st-empty p { margin: 0; max-width: 34ch; }
@media (max-width: 860px) { .st-wide { grid-template-columns: minmax(0, 1fr); } .st-shelf { max-height: none; min-height: 0; } .st-grid { overflow: visible; } }

/* Shop: "How grows work" as a small ❔ button by the Instant grows title (2026-11-18). Hover, focus or tap opens a card over
   the page; nothing moves. Replaces the How grows work box in the left column. */
.shop-species .section-head h2 + .how-pop { margin-right: auto; }
.how-pop { position: relative; display: inline-flex; outline: none; }
.how-btn { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: .8rem; font-weight: 600; cursor: help; white-space: nowrap; }
.how-pop:hover .how-btn, .how-pop:focus .how-btn, .how-pop:focus-within .how-btn { border-color: var(--accent); color: var(--accent); }
.how-panel { position: absolute; z-index: 25; top: calc(100% + 8px); left: 0; display: grid; gap: 8px; width: min(360px, 86vw); padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm, 10px); background: var(--panel-raised); box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
  color: var(--text); font-size: .84rem; line-height: 1.45; visibility: hidden; }
.how-pop:hover .how-panel, .how-pop:focus .how-panel, .how-pop:focus-within .how-panel { visibility: visible; }
.how-title { font: 600 .95rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.how-row { display: block; }
.how-row strong { color: #fff; }

/* Shop "You" card, round 3 (2026-11-18): Amber | DNA | 🎁 Free prime grow tiles, then Regular / Prime first, then the two
   grow buttons with the chosen kind's price. */
.shop-wallet .free-tile { color: inherit; text-decoration: none; }
.shop-wallet .free-tile.is-ready { border-color: rgba(87, 242, 135, .55); background: linear-gradient(180deg, rgba(87, 242, 135, .2), rgba(87, 242, 135, .07));
  box-shadow: 0 0 0 1px rgba(87, 242, 135, .18), 0 0 18px rgba(87, 242, 135, .16); }
.shop-wallet .free-tile.is-ready .label, .shop-wallet .free-tile.is-ready strong { color: var(--green, #57f287); }
a.free-tile.is-ready:hover { background: rgba(87, 242, 135, .26); text-decoration: none; }
.shop-wallet .free-tile.is-idle { cursor: default; }
.shop-wallet .free-tile.is-waiting strong { color: var(--muted); font-size: clamp(.78rem, 5.6cqi, 1rem); }
.shop-wallet .free-tile .label { font-size: .56rem; }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.kind-opt { position: relative; cursor: pointer; }
.kind-opt input { position: absolute; opacity: 0; pointer-events: none; }
.kind-opt > span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 6px; border-radius: 9px; color: var(--muted); font: 600 .95rem/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.kind-opt small { font: 400 .72rem/1.2 var(--body); letter-spacing: 0; text-transform: none; }
.kind-opt input:checked + span { background: var(--panel-raised); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(244, 178, 95, .55); }
.kind-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.kind-opt.is-off { cursor: not-allowed; opacity: .55; }
.you-buy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.you-grow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.you-grow-row .grow-btn { width: 100%; }
.grow-btn .cost-prime { display: none; }
.you-buy:has(input[name=prime][value="1"]:checked) .cost-reg { display: none; }
.you-buy:has(input[name=prime][value="1"]:checked) .cost-prime { display: inline; }
.shop-wallet { grid-template-columns: repeat(3, minmax(0, 1fr)); }  /* Amber | DNA | Free prime grow on one row */
.shop-wallet .free-tile .label { white-space: normal; text-align: center; justify-content: center; line-height: 1.15; }
.shop-wallet .free-tile strong { white-space: normal; font-size: clamp(.74rem, 5.2cqi, 1rem); }
/* Regular / Prime lined up with the two grow buttons under them (2026-11-18): same 2 columns and gap, same height,
   each option its own box (no outer frame) */
.kind-pick { gap: 8px; padding: 0; border: 0; background: none; }
.kind-opt { display: grid; }
.kind-opt > span { justify-content: center; min-height: 52px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.kind-opt:hover > span { border-color: rgba(244, 178, 95, .45); color: var(--text); }
.kind-opt input:checked + span { border-color: var(--accent); background: var(--panel-raised); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.kind-opt.is-off:hover > span { border-color: var(--line); color: var(--muted); }
.shop-you .lineage-link, .shop-you .store-grow-link { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; }  /* the two lower buttons the same size */
/* 87.5% / 100% as the second choice (2026-11-18), then one wide "Next: pick mutations" button */
.size-opt small { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.size-opt .cost-prime { display: none; }
.you-buy:has(input[name=prime][value="1"]:checked) .size-opt .cost-reg { display: none; }
.you-buy:has(input[name=prime][value="1"]:checked) .size-opt .cost-prime { display: inline; }
.grow-go { width: 100%; justify-content: center; padding: 11px 10px; font-size: 1.02rem; }
.size-opt small { display: block; white-space: nowrap; font-size: .7rem; }  /* one line, same height as Regular / Prime */

/* Shop: 🧪 Mutations tab (2026-11-18). One card holds a search + filters bar and a grid of mutation cards that scrolls
   inside itself, so the page fits one screen. */
.mx-page { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 350px); min-height: 460px; }
.mx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.mx-search { flex: 1 1 260px; min-width: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--text); font: inherit; }
.mx-search:focus { outline: none; border-color: var(--accent); }
.mx-key { margin: 0; }
.mx-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; align-content: start; margin: 0; padding: 2px 6px 6px 2px; list-style: none; }
.mx-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.mx-card.is-ex { border-color: rgba(244, 178, 95, .45); box-shadow: inset 0 3px 0 rgba(244, 178, 95, .7); }
.mx-head { display: flex; flex-direction: column; gap: 5px; }
.mx-head b { font: 700 1.05rem/1.2 var(--display); letter-spacing: .03em; color: #fff; text-transform: uppercase; }
.mx-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mx-tags .chip { font-size: .7rem; padding: 1px 8px; }
.mx-diet.is-carnivore { border-color: rgba(237, 66, 69, .5); color: #f08a8c; }
.mx-diet.is-herbivore { border-color: rgba(87, 242, 135, .45); color: var(--green, #57f287); }
.mx-ex { border-color: rgba(244, 178, 95, .6); color: var(--accent); }
.mx-quest { border-color: rgba(150, 170, 255, .5); color: #b3c0ff; }
.mx-short { margin: 0; line-height: 1.4; }
.mx-desc { margin: 0; font-style: italic; }
.mx-facts { display: grid; gap: 4px; margin: auto 0 0; padding-top: 6px; border-top: 1px solid var(--line-soft); font-size: .8rem; }
.mx-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.mx-facts dt { color: var(--muted); }
.mx-facts dd { margin: 0; }
.mx-str { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-str span { padding: 1px 7px; border-radius: 6px; background: var(--panel-raised); font-weight: 700; color: var(--accent); }
.mx-str small { margin-right: 3px; color: var(--muted); font-weight: 400; }
.mx-none { margin: 0; text-align: center; }
@media (max-width: 760px) { .mx-page { height: auto; min-height: 0; } .mx-grid { overflow: visible; } }

/* Mutations tab, round 2 (2026-11-18, Vengefulmink): opens in the Shop's folder box, one long alphabetical list of rows
   that scrolls inside the box (name + tags | what it does | facts). */
.shop-tabs + .mx-page { margin-top: 0; }
.mx-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 2px 6px 6px 2px; list-style: none; }
.mx-row { display: grid; grid-template-columns: 250px minmax(0, 1fr) 360px; align-items: center; gap: 8px 20px; padding: 10px 16px; }
.mx-row[hidden] { display: none; }
.mx-row .mx-what { display: grid; gap: 3px; }
.mx-row .mx-facts { margin: 0; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--line-soft); }
.mx-row .mx-facts div { grid-template-columns: 96px 1fr; }
.mx-card.is-ex.mx-row { box-shadow: inset 3px 0 0 rgba(244, 178, 95, .7); }
@media (max-width: 1099px) { .mx-row { grid-template-columns: 200px minmax(0, 1fr); } .mx-row .mx-facts { grid-column: 1 / -1; padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); } }
@media (max-width: 640px) { .mx-row { grid-template-columns: minmax(0, 1fr); } }
/* same footprint as the Shop tab's box (2026-11-18, Vengefulmink: "open just like the shop tab") */
@media (min-width: 1400px) { .mx-page { width: min(1600px, 100vw - 48px); margin-inline: calc(50% - min(800px, 50vw - 24px)); } }
@media (min-width: 1700px) { .mx-page { width: min(1880px, 100vw - 40px); margin-inline: calc(50% - min(940px, 50vw - 20px)); } }
@media (max-width: 760px) { .mx-list { overflow: visible; } }
/* Mutations inside the Shop's middle box (2026-11-18, Vengefulmink: only the middle box changes per tab) */
.shop-muts { display: flex; flex-direction: column; gap: 10px; }
.shop-muts .mx-search { flex: none; width: 100%; }
.shop-muts .mx-list { flex: none; height: clamp(380px, calc(100vh - 585px), 900px); }
.shop-muts .mx-row { grid-template-columns: 220px minmax(0, 1fr) 330px; }
@media (max-width: 1099px) { .shop-muts .mx-row { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 640px) { .shop-muts .mx-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .shop-muts .mx-list { height: auto; } }
/* Dino Storage inside the Shop's middle box (2026-11-18, Vengefulmink) */
.shop-store { display: flex; flex-direction: column; gap: 10px; }
.st-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.st-bar-title { margin: 0; font: 700 1.05rem/1.2 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.st-bar .st-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.st-bar-why { margin: 0; }
.st-bar form { margin-left: auto; }
.st-bar .st-store-btn { width: auto; }
.shop-store .st-how { margin: 0; }
.shop-store .st-grid { flex: none; margin-top: 0; height: clamp(320px, calc(100vh - 640px), 900px); }
.shop-store .st-empty { flex: none; height: clamp(320px, calc(100vh - 640px), 900px); border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 760px) { .shop-store .st-grid, .shop-store .st-empty { height: auto; min-height: 200px; overflow: visible; } .st-bar form { margin-left: 0; width: 100%; } .st-bar .st-store-btn { width: 100%; } }
/* Bloodlines inside the Shop's middle box (2026-11-18, Vengefulmink): dino chips in one sideways-scrolling row, then the
   planner + saved bloodlines (left) and the mutation cards (right), each scrolling inside itself */
.shop-bb { display: flex; flex-direction: column; gap: 10px; }
.shop-bb .bb-species { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.shop-bb .bb-species .filter { flex: none; }
.bb-cols { display: grid; grid-template-columns: minmax(360px, 420px) minmax(0, 1fr); gap: 16px; }
.bb-plan, .shop-bb .bb-picker { height: clamp(380px, calc(100vh - 560px), 900px); min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.bb-plan { display: flex; flex-direction: column; gap: 12px; }
.bb-plan > * { flex-shrink: 0; }
.bb-shelf { position: static; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.shop-bb .bb-picker { display: flex; flex-direction: column; }
.shop-bb .bb-picker .mut-cards { max-height: none; min-height: 0; overflow: visible; }
.shop-bb .mut-card { cursor: grab; }
@media (max-width: 1099px) { .bb-cols { grid-template-columns: minmax(0, 1fr); } .bb-plan, .shop-bb .bb-picker { height: auto; overflow: visible; } }
.shop-bb .bb-species { max-height: none; overflow-y: hidden; margin-bottom: 0; }
.shop-bb .bb-picker > * { flex-shrink: 0; } .shop-bb .set-life { white-space: nowrap; font-size: .78rem; }
/* Bloodlines round 2 (2026-11-18, Vengefulmink): the builder and the Mutations list together. Left: the 16 slots, then the
   saved bloodlines kept compact; right: the mutations as long rows (like the Mutations tab), click one to fill a slot. */
.shop-bb .bb-cols { grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); }
.shop-bb .mut-cards { display: flex; flex-direction: column; gap: 6px; }
.shop-bb .mut-cards > li[hidden] { display: none; }
.shop-bb .mut-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px; align-items: center; gap: 4px 14px; width: 100%; min-height: 0; padding: 8px 12px; text-align: left; }
.shop-bb .mr-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop-bb .mr-name strong { font-size: .92rem; line-height: 1.2; }
.shop-bb .mr-name .mut-in { align-self: flex-start; }
.shop-bb .mr-name .mut-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.shop-bb .mr-what { display: grid; gap: 2px; min-width: 0; }
.shop-bb .mr-what .mut-text { font-size: .84rem; }
.shop-bb .mr-desc { font-size: .74rem; font-style: italic; color: var(--muted); }
.shop-bb .mr-what .mut-quest { margin: 2px 0 0; font-size: .74rem; }
.shop-bb .mr-facts { display: grid; gap: 3px; padding-left: 12px; border-left: 1px solid var(--line-soft); font-size: .76rem; }
.shop-bb .mr-facts span { display: grid; gap: 0; }
.shop-bb .mr-facts small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.shop-bb .mr-facts b { font-weight: 700; color: var(--text); }
.shop-bb .mr-facts .mut-str { color: var(--accent); }
.shop-bb .mut-row.is-exceptional { box-shadow: inset 3px 0 0 rgba(244, 178, 95, .7); }
/* saved bloodlines, neat and tidy: one compact card each, empty lives hidden */
.shop-bb .set-list { display: grid; gap: 6px; }
.shop-bb .set-list > li { padding: 8px 10px; }
.shop-bb .set-rows { display: grid; gap: 2px; margin-top: 4px; }
.shop-bb .set-use { padding: 2px 6px; font-size: .78rem; }
.shop-bb .set-use.is-empty { display: none; }
.shop-bb .set-status { font-size: .76rem; margin: 0; }
@media (max-width: 1499px) { .shop-bb .mut-row { grid-template-columns: 150px minmax(0, 1fr); } .shop-bb .mr-facts { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 14px; padding: 4px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); } }
@media (max-width: 640px) { .shop-bb .mut-row { grid-template-columns: minmax(0, 1fr); } }
.shop-bb .mr-facts span { display: flex; align-items: baseline; gap: 6px; } .shop-bb .mr-facts small { flex: none; } @media (min-width: 1500px) { .shop-bb .mut-row { grid-template-columns: 170px minmax(0, 1fr) 200px; } }
/* saved bloodlines folded (2026-11-18, Vengefulmink): the name only; tap it to show mutations + Edit / Copy code / Delete */
.shop-bb .set-item-head { display: block; }
.set-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.set-toggle strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-toggle-n { color: var(--muted); font-size: .76rem; }
.set-toggle-arrow { color: var(--accent); transition: transform .15s; }
.set-item.is-open .set-toggle-arrow { transform: rotate(180deg); }
.set-toggle:hover strong { color: var(--accent); }
.set-body { display: grid; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.set-body[hidden] { display: none; }
.set-body-actions { display: flex; flex-wrap: wrap; gap: 6px; }
/* Bloodlines headers stand out (2026-11-18, Vengefulmink): bright, bigger, amber underline; the sub-line stays small */
.shop-bb .col-title, .shop-bb .slots-h { color: #fff; font-size: 1.3rem; letter-spacing: .05em; text-shadow: 0 0 14px rgba(244, 178, 95, .25); }
.shop-bb .slots-h { display: block; margin: 0 0 6px; padding-bottom: 5px; border-bottom: 2px solid rgba(244, 178, 95, .55); font-size: 1.12rem; }
.shop-bb .col-title { padding-bottom: 4px; border-bottom: 2px solid rgba(244, 178, 95, .55); }
.shop-bb .col-title .muted, .shop-bb .slots-h .muted { color: var(--accent); opacity: .85; font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-shadow: none; }
/* The grow in the Shop's middle box (2026-11-18, Vengefulmink): slots + where + pay on the left, mutation rows on the right */
.shop-growbox { display: flex; flex-direction: column; gap: 10px; }
.shop-growbox .col-title { color: #fff; font-size: 1.3rem; letter-spacing: .05em; padding-bottom: 4px; border-bottom: 2px solid rgba(244, 178, 95, .55); text-shadow: 0 0 14px rgba(244, 178, 95, .25); }
.shop-growbox .col-title .muted { color: var(--accent); opacity: .85; font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-shadow: none; }
.shop-growbox .slots-h { color: #fff; font-size: 1rem; margin: 4px 0 6px; padding-bottom: 4px; border-bottom: 1px solid rgba(244, 178, 95, .4); }
.gb-cols { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 16px; }
.gb-side, .shop-growbox .gb-picker { height: clamp(420px, calc(100vh - 470px), 900px); min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.gb-side { display: flex; flex-direction: column; gap: 10px; }
.gb-side > *, .gb-side .mode-grow > * { flex-shrink: 0; }
.gb-side .mode-grow { display: flex; flex-direction: column; gap: 8px; }
.shop-growbox .gb-picker { display: flex; flex-direction: column; gap: 8px; }
.shop-growbox .gb-picker > * { flex-shrink: 0; }
.shop-growbox .mut-cards { display: flex; flex-direction: column; gap: 6px; max-height: none; min-height: 0; overflow: visible; }
.shop-growbox .mut-cards > li[hidden] { display: none; }
.shop-growbox .mut-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 200px; align-items: center; gap: 4px 14px; width: 100%; min-height: 0; padding: 8px 12px; text-align: left; }
.shop-growbox .mr-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop-growbox .mr-name strong { font-size: .92rem; line-height: 1.2; }
.shop-growbox .mr-name .mut-in { align-self: flex-start; }
.shop-growbox .mr-name .mut-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.shop-growbox .mr-what { display: grid; gap: 2px; min-width: 0; }
.shop-growbox .mr-what .mut-text { font-size: .84rem; }
.shop-growbox .mr-desc { font-size: .74rem; font-style: italic; color: var(--muted); }
.shop-growbox .mr-what .mut-quest { margin: 2px 0 0; font-size: .74rem; }
.shop-growbox .mr-facts { display: grid; gap: 3px; padding-left: 12px; border-left: 1px solid var(--line-soft); font-size: .76rem; }
.shop-growbox .mr-facts span { display: flex; align-items: baseline; gap: 6px; }
.shop-growbox .mr-facts small { flex: none; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.shop-growbox .mr-facts b { font-weight: 700; color: var(--text); }
.shop-growbox .mr-facts .mut-str { color: var(--accent); }
.shop-growbox .mut-row.is-exceptional { box-shadow: inset 3px 0 0 rgba(244, 178, 95, .7); }
.shop-growbox .grow-pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.shop-growbox .grow-pay .button { width: 100%; justify-content: center; padding-inline: 8px; }
@media (max-width: 1499px) { .shop-growbox .mut-row { grid-template-columns: 150px minmax(0, 1fr); } .shop-growbox .mr-facts { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 14px; padding: 4px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); } }
@media (max-width: 1099px) { .gb-cols { grid-template-columns: minmax(0, 1fr); } .gb-side, .shop-growbox .gb-picker { height: auto; overflow: visible; } }
@media (max-width: 640px) { .shop-growbox .mut-row { grid-template-columns: minmax(0, 1fr); } }
.shop-growbox .grow-pay { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shop-growbox .grow-pay.is-free-only { grid-template-columns: minmax(0, 1fr); } .gb-free-only { min-height: 48px; font-size: 1.02rem; box-shadow: 0 0 0 2px rgba(87, 242, 135, .5), 0 0 18px rgba(87, 242, 135, .25); }
/* DNA in purple (2026-11-18, Vengefulmink): the DNA pay button and the DNA wallet tile */
.button[name=pay][value=dna] { border-color: rgba(176, 116, 255, .7); background: linear-gradient(180deg, #7a3fd1, #5a2aa6); color: #fff; box-shadow: 0 0 14px rgba(150, 90, 255, .25); }
.button[name=pay][value=dna]:hover:not(:disabled) { background: linear-gradient(180deg, #8b4fe6, #6731bd); border-color: #c49bff; }
.button[name=pay][value=dna]:disabled { background: rgba(122, 63, 209, .25); border-color: rgba(176, 116, 255, .3); color: rgba(255, 255, 255, .55); box-shadow: none; }
.wallet-item.is-dna { border-color: rgba(176, 116, 255, .55); background: linear-gradient(180deg, rgba(122, 63, 209, .28), rgba(90, 42, 166, .18)); }
.wallet-item.is-dna .label { color: #cfb2ff; }
.shop-growbox .pick-src[hidden] { display: none; }
/* Amber tile in the header chip's orange (2026-11-18, Vengefulmink) */
.wallet-item.is-amber { border-color: rgba(244, 178, 95, .45); background: rgba(244, 178, 95, .12); }
.wallet-item.is-amber .label, .wallet-item.is-amber strong { color: var(--accent); }
/* You card roomier (2026-11-18, Vengefulmink: "fill this space better, making the box larger"): wider left column, the card
   stretches to the middle box's height and spreads its parts out; the picture grows with the screen height; on very wide
   screens the whole Shop gets wider so the cards fill the empty sides */
@media (min-width: 1400px) {
  .shop-wide { grid-template-columns: 370px minmax(0, 1fr) 300px; align-items: stretch; }
  .shop-wide > .shop-side { align-self: start; }
  .shop-left { align-content: stretch; }
  .shop-you { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; height: 100%; padding: 18px 20px; }
  .shop-you > * { margin-top: 0; margin-bottom: 0; }
  .shop-you .you-pic { max-height: clamp(110px, calc(100vh - 930px), 260px); }
  .shop-you .shop-wallet .wallet-item { padding: 10px 8px; }
  .shop-you .shop-wallet strong { font-size: 1.3rem; }
  .shop-you .free-tile strong { font-size: 1.05rem; white-space: nowrap; }
  .shop-you .your-species { font-size: 1.45rem; }
  .shop-you .kind-opt > span { min-height: 58px; font-size: 1.05rem; }
  .shop-you .grow-go { min-height: 50px; font-size: 1.05rem; }
  .shop-you .lineage-link, .shop-you .store-grow-link { min-height: 62px; font-size: 1.02rem; }
}
@media (min-width: 1700px) { .shop-wide { grid-template-columns: 400px minmax(0, 1fr) 320px; } }
@media (min-width: 2000px) {
  .shop-wide { grid-template-columns: 460px minmax(0, 1fr) 360px; width: min(2300px, 100vw - 60px); margin-inline: calc(50% - min(1150px, 50vw - 30px)); }
  .mx-page { width: min(2300px, 100vw - 60px); margin-inline: calc(50% - min(1150px, 50vw - 30px)); }
}
/* already prime-eligible: Prime stays picked, Regular greyed (2026-11-18); fully grown: a note and Store instead of the sizes */
.kind-opt.is-locked-on { pointer-events: none; }
.full-grown { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid rgba(87, 242, 135, .45); border-radius: 12px; background: rgba(87, 242, 135, .08); text-align: center; }
.full-grown b { font: 700 1.1rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--green, #57f287); }
.grow-go.store-now { display: flex; align-items: center; justify-content: center; text-decoration: none; }
/* any DNA-spending button purple (2026-11-18, Vengefulmink); Amber-spending buttons get .amber from site.js */
.button.pay-dna { border-color: rgba(176, 116, 255, .7); background: linear-gradient(180deg, #7a3fd1, #5a2aa6); color: #fff; box-shadow: 0 0 14px rgba(150, 90, 255, .25); }
.button.pay-dna:hover:not(:disabled) { background: linear-gradient(180deg, #8b4fe6, #6731bd); border-color: #c49bff; text-decoration: none; }
.button.pay-dna:disabled { background: rgba(122, 63, 209, .25); border-color: rgba(176, 116, 255, .3); color: rgba(255, 255, 255, .55); box-shadow: none; }
/* spending buttons that aren't site .button ones (Trading Post Buy, game buttons): the same colours */
.pay-amber:not(.button) { border-color: rgba(244, 178, 95, .7) !important; background: linear-gradient(180deg, #f4b25f, #e08a3c) !important; color: #1a1206 !important; }
.pay-dna:not(.button) { border-color: rgba(176, 116, 255, .7) !important; background: linear-gradient(180deg, #7a3fd1, #5a2aa6) !important; color: #fff !important; }
.pay-amber:not(.button):disabled, .pay-dna:not(.button):disabled { opacity: .5; }
.shop-growbox .deliver [hidden] { display: none; }
.gb-pay-normal { display: block; text-align: center; margin-top: 4px; text-decoration: underline; }

/* ----- Skins PREVIEW pages (2026-11-18): one screen, a slim themed strip, folder tabs; the Studio frame unchanged ----- */
.sp-strip { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; width: min(1640px, calc(100vw - 32px)); margin: -20px auto 0; padding: 10px 18px; border: 1px solid #3a3326; border-radius: 14px;
  background: radial-gradient(120px 60px at 8% 0%, rgba(232, 93, 117, .18), transparent 70%), radial-gradient(160px 70px at 30% 100%, rgba(87, 196, 242, .14), transparent 70%),
  radial-gradient(140px 70px at 70% 0%, rgba(245, 166, 35, .16), transparent 70%), radial-gradient(160px 80px at 95% 100%, rgba(155, 109, 255, .16), transparent 70%), #121614; }
.sp-title { display: flex; align-items: baseline; gap: 10px; }
.sp-title h1 { margin: 0; font-size: 1.55rem; letter-spacing: .02em; }
.sp-credit { color: #a9b3ad; font-size: .9rem; }
.sp-tabs { display: flex; gap: 6px; }
.sp-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 10px 10px 0 0; border: 1px solid #2c3b35; border-bottom-width: 3px; color: #cfd8d2; text-decoration: none; font-weight: 700; background: #172019; }
.sp-tab b { font-size: .75rem; padding: 1px 7px; border-radius: 99px; background: #26332d; color: #e9efe9; }
.sp-tab:hover { border-color: #4a5f55; color: #fff; }
.sp-tab.is-on { border-color: #f5a623; color: #fff; background: #221d12; }
.sp-share { margin-left: auto; }
.sp-badge { font-size: .75rem; padding: 3px 10px; border-radius: 99px; background: rgba(155, 109, 255, .2); color: #d9c9ff; border: 1px solid rgba(155, 109, 255, .45); }
.studio-frame.sp-frame { height: calc(100vh - 250px); min-height: 560px; margin-top: 8px; }
.sp-flash { width: min(1640px, calc(100vw - 32px)); margin: 8px auto 0; }
.sg-box { width: min(1640px, calc(100vw - 32px)); margin: 8px auto 0; height: calc(100vh - 262px); min-height: 520px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.sg-box > * { flex-shrink: 0; }
.sg-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sg-folders { display: flex; gap: 6px; }
.sg-folder { padding: 7px 15px; border-radius: 10px 10px 0 0; border: 1px solid #2c3b35; border-bottom-width: 3px; background: #172019; color: #cfd8d2; text-decoration: none; font-weight: 700; font-size: .92rem; }
.sg-folder.is-on { border-color: #f5a623; color: #fff; background: #221d12; }
.sg-folder.is-soon { opacity: .45; cursor: help; }
.sg-search { margin-left: auto; flex: 0 1 360px; padding: 8px 12px; border-radius: 10px; border: 1px solid #2e3d36; background: #0f1513; color: #e9efe9; }
.sg-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.sg-chip { flex: 0 0 auto; padding: 4px 11px; border-radius: 99px; border: 1px solid #2e3d36; background: #141c18; color: #cfd8d2; text-decoration: none; font-size: .85rem; white-space: nowrap; }
.sg-chip b { font-weight: 600; color: #8fa197; margin-left: 2px; }
.sg-chip.is-on { border-color: #f5a623; color: #fff; background: #2a2212; }
.sg-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 2px 6px 6px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-content: start; }
.sg-card { display: flex; flex-direction: column; border: 1px solid #26342e; border-radius: 12px; background: #111815; overflow: hidden; transition: border-color .15s; }
.sg-card:hover { border-color: #f5a623; }
.sg-card[hidden] { display: none; }
.sg-pic { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 70%, #1d2a24, #0b100e 70%); display: grid; place-items: center; }
.sg-pic canvas { width: 100%; height: 100%; object-fit: contain; }
.sg-nopic { font-size: 2.4rem; opacity: .5; }
.sg-sp { position: absolute; left: 8px; top: 8px; font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #e9efe9; }
.sg-info { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px 4px; }
.sg-name { font-size: 1.02rem; color: #fff; }
.sg-acts { display: flex; gap: 6px; padding: 8px 11px 11px; margin-top: auto; align-items: stretch; }
.sg-acts form { display: contents; }
.sg-acts .button { flex: 1 1 0; padding: 7px 6px; font-size: .82rem; text-align: center; }
.sg-acts .sg-x { flex: 0 0 34px; }
.sg-pager { display: flex; justify-content: center; align-items: center; gap: 12px; }
.sg-none[hidden] { display: none; }
/* preview pages: as wide as the Studio frame, centred on the window (the page column is narrower), and cards keep their height */
.sp-strip, .sg-box, .sp-flash { position: relative; left: 50%; transform: translateX(-50%); margin-left: 0; margin-right: 0; }
.sg-grid { grid-auto-rows: max-content; }

/* 2026-11-19 Skins preview fills the whole screen width (Vengefulmink: "fill out the site more without making us scroll") */
.sp-strip, .sp-flash, .studio-frame.sp-frame { width: calc(100vw - 32px); }
.studio-frame.sp-frame { height: calc(100vh - 236px); }
/* Skin Gallery likes (2026-11-19): heart button on each card, top right of the picture. */
.sg-likef { position: absolute; right: 8px; top: 8px; margin: 0; }
.sg-like { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .55); color: #e9efe9; font: inherit; font-size: .8rem; cursor: pointer; }
.sg-likef .sg-like { position: static; }
.sg-like:hover { border-color: #f5a623; }
.sg-like.is-on { color: #ff6b81; border-color: #ff6b81; background: rgba(60, 10, 20, .7); }
.sg-like.is-ro { cursor: help; }
.sg-heart { font-size: 1rem; line-height: 1; }


/* ----- Help page (2026-11-21, Vengefulmink): topic tabs on the left, one box that scrolls inside ----- */


/* Trading Post market filter/search (2026-11-21 fix): .tp-tablet's display:flex kept filtered-out cards on screen */
.tp-tablet[hidden], [data-tp-card][hidden] { display: none !important; }

/* ----- Shop on one screen (2026-11-21, Vengefulmink: #14, #15, #33) -----
   site.js adds .shop-fit to <body> on screens at least 1100 px wide and 640 px tall, and sets --shop-h to the height
   left under the folder tabs. The page title steps aside, the three columns take that height, and each box scrolls
   inside itself instead of the page. The folder tabs sit on the middle box's top edge, lined up with its left side
   (site.js sets --shop-tabs-x). Smaller screens keep the normal stacked layout. */
body.shop-fit .shop-head { display: none; }
body.shop-fit .shop-tabs { margin-top: 6px; padding-left: var(--shop-tabs-x, 14px); }
body.shop-fit .shop-wide { height: var(--shop-h, auto); align-items: stretch; }
body.shop-fit .shop-wide > * { max-height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
body.shop-fit .shop-left { display: flex; flex-direction: column; overflow: hidden; }
body.shop-fit .shop-left > .shop-you { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
body.shop-fit .shop-wide > .shop-side { align-self: stretch; }
body.shop-fit .shop-store { height: 100%; overflow: hidden; }
body.shop-fit .shop-store .st-grid, body.shop-fit .shop-store .st-empty { flex: 1 1 auto; height: auto; min-height: 0; }
main.is-swapping .shop-wide > :nth-child(2), main.is-swapping .shop-tabs { opacity: .55; transition: opacity .12s; }

/* the older Skins pages' tabs (2026-11-21); evening: only the page you are on is highlighted (Vengefulmink) */
.skin-tabs-old { margin: 4px 0 12px; flex-wrap: wrap; }


/* Rankings: a smaller trophy case so more of the list shows (2026-11-21, Vengefulmink) */
.rankings-page.rk2.rk-stage .rk-arena { padding: 10px 16px 0; gap: 10px; }
.rankings-page.rk2.rk-stage .rk-arena::before, .rankings-page.rk2.rk-stage .rk-arena::after { top: 8px; font-size: 1.1rem; }
.rankings-page.rk2.rk-stage .rk-step .rk-face-lg { width: 46px; height: 46px; border-width: 2px; }
.rankings-page.rk2.rk-stage .rk-step-1 .rk-face-lg { width: 60px; height: 60px; }
.rankings-page.rk2.rk-stage .rk-crown { font-size: 1.15rem; margin-bottom: -4px; }
.rankings-page.rk2.rk-stage .rk-ribbon { font-size: .62rem; }
.rankings-page.rk2.rk-stage .rk-step-name { font-size: .9rem; } .rankings-page.rk2.rk-stage .rk-step-1 .rk-step-name { font-size: 1rem; }
.rankings-page.rk2.rk-stage .rk-step-value { font-size: 1rem; } .rankings-page.rk2.rk-stage .rk-step-1 .rk-step-value { font-size: 1.15rem; }
.rankings-page.rk2.rk-stage .rk-step-tag, .rankings-page.rk2.rk-stage .rk-step-extra { display: none; }
.rankings-page.rk2.rk-stage .rk-step-foot { min-height: 0; margin-top: 0; }
.rankings-page.rk2.rk-stage .rk-plinth { height: 16px; margin-top: 4px; } .rankings-page.rk2.rk-stage .rk-step-1 .rk-plinth { height: 28px; } .rankings-page.rk2.rk-stage .rk-step-2 .rk-plinth { height: 22px; }
.rankings-page.rk2.rk-stage .rk-plinth i { font-size: .9rem; }

/* Command center (2026-11-21): the earlier "no view pills, no footer" change was undone that evening at Vengefulmink's request */

/* Home: the Server rules box (2026-11-21) */
.rules-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; }
.rules-list { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 32px; }
.rules-list li { margin: 0 0 6px; break-inside: avoid; }
@media (max-width: 700px) { .rules-card { grid-template-columns: 1fr; } }

/* Players-per-day bars (2026-11-21): Rankings (7 days) and the Command center (30 days) */
.trend { margin: 0; }
.trend figcaption { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.trend figcaption small { color: var(--muted); font-weight: 400; font-size: .74rem; }
.trend-svg { display: block; width: 100%; height: 70px; }
.trend-bar { fill: color-mix(in srgb, var(--accent, #f2a33a) 55%, transparent); }
.trend-bar.is-today { fill: var(--accent, #f2a33a); }
.trend-bar:hover { fill: #ffd27a; }
.trend-labels { display: flex; } .trend-labels span { flex: 1; text-align: center; font-size: .66rem; color: var(--muted); }
.rk-trend { margin-top: 12px; }
.cc-ov-trend { grid-column: 1 / -1; }

/* #28 (2026-11-21, person's ask): profile boxes open up to fit everything, no scrolling inside a box. The page gets longer instead. */
@media (min-width: 1100px) {
  .profile-grid, .pub-grid { align-items: start; }
  .profile-grid .profile-box, .profile-grid > .profile-stack, .profile-stack > .profile-box, .profile-stack > .profile-dna, .profile-stack > .profile-links-box,
  .pub-grid > .profile-box, .pub-grid > .adm-desk { height: auto !important; max-height: none !important; overflow: visible !important; }
}

/* #16 safe zones (2026-11-21): cleaner circle, freehand, name + group in the drawing window, grouped zone list */
.zp-svg .zdraft.zp-circle { stroke-width: 3.5px; fill-opacity: 0.2; stroke-linejoin: round; }
.zp-svg .zdraft { stroke-linejoin: round; stroke-linecap: round; }
.zp-rlabel { fill: #fff; font-weight: 700; paint-order: stroke; stroke: rgba(0,0,0,.85); stroke-width: 3px; vector-effect: non-scaling-stroke; pointer-events: none; }
.zp-field { display: grid; gap: 3px; font-size: .8rem; } .zp-field span { color: var(--muted); }
.zp-field + .zp-field { margin-top: 6px; }
.zp-foot { display: grid; gap: 6px; }
.zp-foot .adm-btn:disabled { opacity: .45; cursor: not-allowed; }
.pv-zones .pv-zgroup { background: color-mix(in srgb, var(--accent, #f2a33a) 10%, transparent); border-radius: 6px; }
.pv-zones .pv-zin { padding-left: 18px; border-left: 2px solid color-mix(in srgb, var(--accent, #f2a33a) 45%, transparent); }
.pv-zname small { color: var(--muted); font-weight: 400; }
.pv-draw { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* #20/#21 buyable gallery skins (2026-11-21): price chip, Buy button, and a bought card greyed out with a dino-claw slash */
.sg-price { font-size: .8rem; color: #f2c46d; background: rgba(242,163,58,.1); border: 1px solid rgba(242,163,58,.35); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.sg-buy:disabled { opacity: .5; cursor: not-allowed; }
.sg-card.is-bought .sg-pic, .sg-card.is-bought .sg-info { filter: grayscale(1) brightness(.6); }
.sg-card.is-bought { border-color: #3a3f3c; }
.sg-claw { position: absolute; inset: 6% 10%; pointer-events: none; }
.sg-claw svg { width: 100%; height: 100%; display: block; }
.sg-claw path { fill: #c0392b; opacity: .92; filter: drop-shadow(0 0 3px rgba(0,0,0,.8)); }
.sg-bought-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); padding: 5px 14px; border: 2px solid #f4e6c8; border-radius: 6px; background: rgba(20,14,10,.82); color: #f4e6c8; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.sg-card.is-bought .sg-pic { filter: none; }
.sg-card.is-bought .sg-pic canvas, .sg-card.is-bought .sg-pic .sg-nopic { filter: grayscale(1) brightness(.55); }
.sg-admin { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 12px; padding: 12px 16px; }
.sg-admin label { display: grid; gap: 3px; font-size: .8rem; } .sg-admin input { width: 140px; }

/* #5 Voice page redesign (2026-11-21): one screen, jungle-radio look; voice.js unchanged */
.vc-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.vc-title h1 { margin: 0; } .vc-sub { color: var(--muted); font-size: .9rem; }
.vc-grid { display: grid; gap: 14px; }
@media (min-width: 1000px) { .vc-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.vc-main { display: flex; flex-direction: column; gap: 12px; background: radial-gradient(ellipse at 50% 0%, rgba(111, 210, 143, .12), transparent 60%), var(--panel); }
.vc-radio { position: relative; width: 120px; height: 120px; margin: 4px auto 0; display: grid; place-items: center; }
.vc-mic { position: relative; z-index: 1; font-size: 2.6rem; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: #13201b; border: 2px solid rgba(111, 210, 143, .5); }
.vc-wave { position: absolute; inset: 18px; border-radius: 50%; border: 2px solid rgba(111, 210, 143, .35); }
.vc-wave:nth-child(2) { inset: 8px; opacity: .6; } .vc-wave:nth-child(3) { inset: -2px; opacity: .3; }
.vc-lead { text-align: center; margin: 0; }
.vc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vc-join { font-size: 1.1rem; padding: 12px 28px; }
.vc-ear h2, .vc-range h2, .vc-how h2 { font-size: 1rem; margin: 0 0 8px; }
.vc-near { max-height: 220px; overflow-y: auto; }
.vc-near li.speaking { color: var(--leaf, #6fd28f); font-weight: 700; }
.vc-report summary { cursor: pointer; }
.vc-keep { margin: 0; text-align: center; }
.vc-side { display: grid; gap: 14px; }
.vc-bars { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 7px; }
.vc-bars li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; align-items: center; }
.vc-bars b { font-size: .85rem; } .vc-bars small { grid-column: 2; color: var(--muted); font-size: .74rem; line-height: 1.25; }
.vc-bar svg { display: block; width: 100%; height: 10px; } .vc-bar rect { fill: color-mix(in srgb, var(--leaf, #6fd28f) 70%, transparent); }
.vc-steps { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: .9rem; }
.vc-how { border-top: 1px solid var(--line); padding-top: 10px; }
/* Shop 🧪 Mutations tab (2026-11-21): the middle box is too narrow for three columns, so the facts sit under the description */
.shop-muts .mx-row { grid-template-columns: 200px minmax(0, 1fr); }
.shop-muts .mx-row .mx-facts { grid-column: 1 / -1; padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }

/* ----- Shop: no page scroll, the Mutations list fills its box (2026-11-21 evening, Vengefulmink) -----
   On the one-screen Shop the footer steps aside (the page itself no longer scrolls), and the Mutations list grows to the
   bottom of the middle box instead of a fixed height that left empty space under it. */
body.shop-fit .site-foot { display: none; }
body.shop-fit main { padding-bottom: 0; margin-bottom: 0; }
body.shop-fit .shop-muts { display: flex; flex-direction: column; overflow: hidden; }
body.shop-fit .shop-muts .mx-list { flex: 1 1 auto; height: auto; min-height: 0; }

/* Home's Server rules in sections (2026-11-21 evening, Vengefulmink sent the full rules) */
.rules-card { display: block; }
.rules-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-bottom: 14px; }
.rules-sec { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft, rgba(255,255,255,.08)); border-radius: 12px; padding: 12px 14px; }
.rules-sec-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.02rem; }
.rules-sec-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f5a623; color: #1a1206; font-weight: 800; font-size: .85rem; }
.rules-sec .rules-list { columns: auto; padding-left: 18px; }
.rules-sec .rules-list li { margin: 0 0 7px; line-height: 1.45; font-size: .93rem; }
.rules-sec .rules-list b { color: #ffd27a; }
.srv-rules-text { font-size: .85rem; line-height: 1.4; }

/* The view switch (2026-11-21 evening, Vengefulmink): at the top of the header in Public view (and in Admin view with
   the desk shut) on every screen width, and on top of the admin box while it's open (site.js parkSwitch). */
@media (max-width: 1899px) {
  .site-head > .admin-switch { position: static; display: flex; width: max-content; margin: 0 0 0 12px; padding: 2px; transform: none;
    box-shadow: none; border-radius: 0 0 10px 10px; border-top: 0; }
  .site-head > .admin-switch button { padding: 4px 10px; font-size: 0.72rem; }
}
.admin-switch.in-desk { position: static; transform: none; align-self: flex-start; margin: 0 0 10px; box-shadow: none; flex-wrap: wrap; }
@media (max-width: 1599px) { .has-desk-btn .adm-drawer > .adm-desk { max-height: calc(100vh - 96px); } }

/* Purchased gallery cards, round 2 (2026-11-21 evening, Vengefulmink): three curved, torn claw gashes like a dinosaur
   raked the card, and a see-through "Purchased" stamp so the claw marks stand out */
.sg-claw { inset: 4% 4%; }
.sg-claw .cw-r { fill: rgba(255, 190, 170, .32); }
.sg-claw .cw-o { fill: #9a140a; opacity: 1; filter: none; }
.sg-claw .cw-i { fill: #2a0303; opacity: 1; filter: none; }
.sg-claw svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.sg-bought-tag { background: rgba(20, 14, 10, .32); border-color: rgba(244, 230, 200, .5); color: rgba(244, 230, 200, .85); font-size: .8rem; padding: 3px 11px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9); backdrop-filter: none; }
.zone-tip.zone-radius { font-weight: 800; font-size: .95rem; }
#map-view.zone-drawing { cursor: crosshair; }

/* My dino on one screen (2026-11-21 late, Vengefulmink: "everything fits on one page so it shouldn't need to scroll").
   On screens 1100 px and wider the five boxes take exactly the height left under the dino card (site.js --fit), the
   footer steps aside, and each box scrolls inside itself. Up to 1699 px: four columns, Recent activity under the Pack;
   wider: five columns side by side. */
body.dino-fit .site-foot { display: none; }
body.dino-fit main { padding-bottom: 0; margin-bottom: 0; }
@media (min-width: 1100px) {
  body.dino-fit .dino-grid.fit { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); height: var(--fit); align-items: stretch; }
  body.dino-fit .dino-grid.fit > :nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  body.dino-fit .dino-grid.fit > :nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
  body.dino-fit .dino-grid.fit > :nth-child(3) { grid-column: 3; grid-row: 1; max-height: calc(var(--fit) * .62); }
  body.dino-fit .dino-grid.fit > :nth-child(4) { grid-column: 4; grid-row: 1 / 3; }
  body.dino-fit .dino-grid.fit > :nth-child(5) { grid-column: 3; grid-row: 2; }
  body.dino-fit .dino-grid.fit .dino-col { max-height: none; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  body.dino-fit .dino-grid.fit > :nth-child(3) { max-height: calc(var(--fit) * .62); }
}
@media (min-width: 1700px) {
  body.dino-fit .dino-grid.fit { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
  body.dino-fit .dino-grid.fit > * { grid-column: auto !important; grid-row: 1 !important; max-height: none !important; }
}

/* Trading Post practice mode badge (2026-11-21 late): admins only while it's "coming soon" */
.tp-practice { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 6px 4px 12px; border-radius: 999px;
  background: rgba(40, 120, 200, .22); border: 1px solid rgba(110, 180, 255, .55); font-size: .85rem; white-space: nowrap; }
.tp-practice b { color: #9fd0ff; }
.tp-practice-reset { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(110, 180, 255, .55); background: rgba(0, 0, 0, .35);
  color: #cfe6ff; font: inherit; font-size: .8rem; cursor: pointer; }
.tp-practice-reset:hover { background: rgba(110, 180, 255, .25); }
.soon-admin { margin: 10px auto; padding: 8px 14px; max-width: 520px; border-radius: 10px; background: rgba(40, 120, 200, .18);
  border: 1px solid rgba(110, 180, 255, .45); font-size: .9rem; }

/* Zones tab (2026-11-21 late): groups fold open and shut; save/remove messages in place */
.pv-zones .pv-zfold { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.pv-zones .pv-zfold:focus-visible { outline: 2px solid var(--accent, #f2a33a); outline-offset: 2px; border-radius: 4px; }
.pv-zones .pv-zcaret { font-style: normal; display: inline-block; width: 1em; transition: transform .15s; }
.pv-zones .is-shut .pv-zcaret { transform: rotate(-90deg); }
.pv-zones li[hidden] { display: none !important; }
.pv-zmsg { margin: 0 0 8px; }

/* Gallery bought cards (2026-11-21 late, Vengefulmink): no "Purchased" stamp, more realistic claw marks (torn rim,
   deep wound, drips; filter + gradients in .sg-claw-defs), and a ✓ right of the colour bar */
.sg-claw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sg-claw { inset: 10% 5% 3%; }
.sg-claw svg { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .55)); }
.sg-claw path, .sg-claw circle { filter: none; opacity: 1; }
.sg-claw .cw-rim path { fill: rgba(236, 170, 150, .55); }
.sg-claw .cw-wound path { fill: url(#sg-claw-flesh); }
.sg-claw .cw-core { fill: #1c0202; opacity: .9; }
.sg-claw .cw-shine { fill: none; stroke: rgba(255, 190, 170, .35); stroke-width: .4; stroke-linecap: round; }
.sg-claw .cw-drip { fill: url(#sg-claw-drip); }
.sg-claw .cw-spat circle { fill: #8e0f0a; opacity: .85; }
.sg-swrow { display: flex; align-items: center; gap: 8px; }
.sg-check { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #2f9e55; color: #fff;
  font-weight: 900; font-size: .85rem; line-height: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.sg-card.is-bought .sg-info { filter: none; }
.sg-card.is-bought .sg-info > :not(.sg-swrow), .sg-card.is-bought .sg-swrow .swatch-strip { filter: grayscale(1) brightness(.6); }

/* 📊 Command center Overview widgets (2026-11-21 late): a 3-column board, each widget a card with a ⠿ grip, ⇔ width and ✕;
   professional like the rest of the Command center */
.cc-wb { display: flex; flex-direction: column; gap: 12px; }
.cc-wb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--cc-line); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.cc-wb-bar > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.cc-wb-bar small { color: var(--muted, #9aa5ad); font-size: .8rem; }
.cc-wb-acts { display: flex; gap: 8px; align-items: center; }
.cc-wb-add { position: relative; }
.cc-wb-add > summary { list-style: none; cursor: pointer; }
.cc-wb-add > summary::-webkit-details-marker { display: none; }
.cc-wb-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(440px, 80vw); max-height: 60vh; overflow-y: auto; scrollbar-width: thin;
  padding: 8px; border-radius: 12px; border: 1px solid var(--cc-line); background: var(--cc-panel2, #1a2126); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.cc-wb-mh { margin: 6px 6px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cc-gold, #e6c35a); }
.cc-wb-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.cc-wb-item:hover:not(:disabled) { background: rgba(255, 255, 255, .06); }
.cc-wb-item:disabled { opacity: .4; cursor: default; }
.cc-wb-item i { font-style: normal; width: 1.4em; flex: none; }
.cc-wb-item span { display: flex; flex-direction: column; } .cc-wb-item small { color: var(--muted, #9aa5ad); font-size: .78rem; }
.cc-wb-empty { padding: 24px; text-align: center; color: var(--muted, #9aa5ad); border: 1px dashed var(--cc-line); border-radius: 12px; }
/* Snap tiles (2026-11-21 late, Vengefulmink picked "B"): a fixed grid of 3 columns and 120px rows. Each widget takes a
   width (⇔ 1-3 columns) and a height (⇕ 1-6 rows); anything taller scrolls inside the widget, so the board stays tidy.
   Dense flow lets a small widget drop into the hole beside a tall one. */
.cc-wb-grid { --wb-row: 120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--wb-row); gap: 14px; grid-auto-flow: dense;
  padding: 2px; border-radius: 14px; }
.cc-wb-grid.is-arranging { background-image: linear-gradient(rgba(230, 195, 90, .06) 0 0); outline: 1px dashed rgba(230, 195, 90, .25); outline-offset: 4px; }
.cc-w { position: relative; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.cc-w.cc-w-h1 { grid-row: span 1; } .cc-w.cc-w-h2 { grid-row: span 2; } .cc-w.cc-w-h3 { grid-row: span 3; } .cc-w.cc-w-h4 { grid-row: span 4; } .cc-w.cc-w-h5 { grid-row: span 5; } .cc-w.cc-w-h6 { grid-row: span 6; }
.cc-w.is-measuring { grid-row: auto !important; align-self: start; overflow: visible; }
.cc-w > .cc-w-head { position: sticky; top: -16px; z-index: 2; margin: -16px -16px 0; padding: 10px 16px 8px; background: #151b1d; border-bottom: 1px solid var(--cc-line); }
.cc-w > * { flex-shrink: 0; }  /* a fixed-height tile scrolls; its parts never squash into each other */
.cc-w-size { display: none; }
.cc-w-s2 { grid-column: span 2; } .cc-w-s3 { grid-column: 1 / -1; }
.cc-w.is-dragging { opacity: .45; outline: 2px dashed var(--cc-gold, #e6c35a); outline-offset: 2px; }
.cc-w-head { display: flex; align-items: center; gap: 8px; }
.cc-w-head h3 { margin: 0; flex: 1; min-width: 0; font-size: .98rem; }
.cc-w-head h3 i { font-style: normal; }
.cc-w-grip { cursor: grab; color: var(--muted, #9aa5ad); font-size: 1.1rem; line-height: 1; padding: 2px 4px; border-radius: 4px; user-select: none; }
.cc-w-grip:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.cc-w-tools { display: flex; gap: 4px; opacity: .55; transition: opacity .15s; }
.cc-w:hover .cc-w-tools, .cc-w:focus-within .cc-w-tools { opacity: 1; }
.cc-w-tools button { width: 26px; height: 26px; padding: 0; border-radius: 6px; border: 1px solid var(--cc-line); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; font-size: .85rem; }
.cc-w-tools button:hover { background: rgba(255, 255, 255, .12); }
.cc-w-open { margin-left: auto; font-size: .8rem; }
.cc-w h4 { margin: 6px 0 0; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #9aa5ad); }
.cc-w-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cc-w-stats li { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.cc-w-stats span { font-size: .72rem; color: var(--muted, #9aa5ad); } .cc-w-stats b { font-size: .92rem; }
.cc-caps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.cc-caps li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 48px; align-items: center; gap: 8px; font-size: .82rem; }
.cc-caps li b { text-align: right; font-variant-numeric: tabular-nums; }
.cc-meter.is-near > i { background: linear-gradient(90deg, #e6c35a, #f0883e); } .cc-meter.is-full > i { background: #ed4245; }
.cc-w-big { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.cc-w-big li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.cc-w-big b { font-size: 1.25rem; font-variant-numeric: tabular-nums; } .cc-w-big span { font-size: .75rem; color: var(--muted, #9aa5ad); }
.cc-w-big .is-in b { color: #57f287; } .cc-w-big .is-out b { color: #f0883e; }
.cc-w-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.cc-w-table th { text-align: left; font-weight: 600; color: var(--muted, #9aa5ad); font-size: .74rem; padding: 3px 4px; border-bottom: 1px solid var(--cc-line); }
.cc-w-table td { padding: 4px; border-bottom: 1px solid var(--cc-line); font-variant-numeric: tabular-nums; }
.cc-w-table td + td, .cc-w-table th + th { text-align: right; }
.cc-w-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-w-list li > a, .cc-w-list li > label { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .03); color: inherit; text-decoration: none; cursor: pointer; }
.cc-w-list li > a:hover, .cc-w-list li > label:hover { background: rgba(255, 255, 255, .08); }
.cc-w-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cc-w-list span { flex: none; color: var(--muted, #9aa5ad); font-size: .8rem; }
.cc-w-rank { counter-reset: rk; } .cc-w-rank li b::before { counter-increment: rk; content: counter(rk) ". "; color: var(--cc-gold, #e6c35a); }
.cc-w-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cc-w-chips li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .8rem; }
.cc-w-chips li a { color: inherit; text-decoration: none; }
.cc-w-row { display: flex; gap: 8px; align-items: center; } .cc-w-row > .text { flex: 1; min-width: 0; }
.cc-w-cur { flex: none; }
.cc-w-wallet, .cc-find { display: flex; flex-direction: column; gap: 6px; }
.cc-w-console .ah-con-out { max-height: 110px; min-height: 60px; }
.cc-w-map { display: block; cursor: pointer; border-radius: 10px; overflow: hidden; border: 1px solid var(--cc-line); }
.cc-w-map svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.zone-plans .zreal { fill: var(--zc); fill-opacity: .2; stroke: var(--zc); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.cc-w-filter { max-width: 200px; }
.cc-w .cc-feed { max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.cc-w .cc-people { max-height: 220px; overflow-y: auto; scrollbar-width: thin; }
.cc-w-deskbody { min-width: 0; }
.cc-w-desk { max-height: 720px; overflow-y: auto; scrollbar-width: thin; }
.cc-w-lent { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border: 1px dashed var(--cc-line); border-radius: 12px; }
.cc-w-discord { align-self: flex-start; }
@media (max-width: 1300px) { .cc-wb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-w-s3 { grid-column: 1 / -1; } }
@media (max-width: 900px) { .cc-wb-grid { grid-template-columns: minmax(0, 1fr); } .cc-w-s2, .cc-w-s3 { grid-column: auto; } }
.cc-w[hidden], .cc-wb-empty[hidden] { display: none !important; }
.cc-w-cur span { color: var(--muted, #9aa5ad); padding: 5px 12px; } .cc-w-cur input:checked + span { background: var(--cc-gold, #e6c35a); color: #1d1405; }
.pv-zacts { display: flex; gap: 8px; } .pv-zacts > .adm-btn:first-child { flex: 1; }
/* Quick actions breathes (2026-11-21 late, Vengefulmink: "seems crunched"): each tool is its own block with room
   above and a soft divider, and its parts space evenly */
.cc-w[data-w="quick"] { gap: 0; }
.cc-w[data-w="quick"] > form, .cc-w[data-w="quick"] > .ah-console { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.cc-w[data-w="quick"] > .cc-w-head + * { border-top: 0; padding-top: 12px; }
.cc-w[data-w="quick"] > :last-child { padding-bottom: 2px; }
.cc-w[data-w="quick"] .adm-label { margin: 0 0 2px; }
.cc-w[data-w="quick"] .cc-say-row { display: flex; }
.cc-w[data-w="quick"] .ah-con-out { margin: 0; }
.cc-w > * { flex: none; }  /* tiles never squash or stretch their parts (the console block used flex: 1 0 0) */
.cc-w .ah-console .ah-con-out { flex: none; min-height: 64px; max-height: 120px; }

/* ===== Proximity voice overhaul (2026-11-21 late, Vengefulmink: "easy on the eyes. easy to see who is talking and easy
   buttons to mute, deafen, etc. change volume per person"). Three columns on one screen: You | In earshot | side.
   Rings light with the voice level (--lvl 0-1, set by voice.js ~15x a second); nothing bobs or moves around. ===== */
.vc-demo { color: #ffd27a; font-weight: 700; }
@media (min-width: 1100px) {
  .vc-grid.vc3 { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(260px, 320px); align-items: stretch; height: calc(100vh - 230px); min-height: 520px; }
  .vc-grid.vc3 > * { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
}
.vc-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.02rem; }
.vc-h em { font-style: normal; font-size: .78rem; padding: 1px 9px; border-radius: 999px; background: rgba(111, 210, 143, .14); color: var(--leaf, #6fd28f); }
.vc-me { gap: 14px; }
.vc-big { display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* the big mic button: a ring that fills with your own voice */
.vc-micbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 10px 2px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.vc-micbtn[hidden] { display: none; }
.vc-mring { --lvl: 0; position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #183126 0 58%, transparent 59%), conic-gradient(var(--leaf, #6fd28f) calc(var(--lvl) * 100%), rgba(111, 210, 143, .14) 0);
  box-shadow: 0 0 calc(var(--lvl) * 34px) rgba(111, 210, 143, calc(var(--lvl) * .8)); transition: box-shadow .08s linear; }
.vc-mico { font-size: 3rem; line-height: 1; }
.vc-msay { font-weight: 700; font-size: .95rem; }
.vc-micbtn:hover .vc-mring { filter: brightness(1.12); }
.vc-micbtn:focus-visible .vc-mring { outline: 3px solid #ffd27a; outline-offset: 4px; }
.vc-me.is-muted .vc-mring { background: radial-gradient(circle, #2a1717 0 58%, transparent 59%), conic-gradient(#e0605a 100%, #e0605a 0); box-shadow: none; }
.vc-me.is-muted .vc-msay { color: #ff9b94; }
.vc-me.is-ptt.is-muted .vc-mring { background: radial-gradient(circle, #2a2414 0 58%, transparent 59%), conic-gradient(#e6c35a 100%, #e6c35a 0); }
.vc-me.is-ptt.is-muted .vc-msay { color: #ffd27a; }
.vc-me:not(.is-live) .vc-micbtn { display: none; }
/* before joining, the ring shows above the Join button for the mic test */
.vc-me:not(.is-live) .vc-big::before { content: ""; display: none; }
.vc-pre { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.vc-me.is-live .vc-pre { display: none; }
.vc-join { font-size: 1.15rem; padding: 14px 32px; width: 100%; }
.vc-test { width: 100%; }
.vc-test-say { margin: 0; font-size: .85rem; color: var(--leaf, #6fd28f); text-align: center; }
.vc-me:not(.is-live) #mute { display: none; }
.vc-row2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.vc-me:not(.is-live) .vc-row2 { display: none; }
.vc-deaf, .vc-leave { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #1b2925; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.vc-deaf[hidden], .vc-leave[hidden] { display: none; }
.vc-deaf span:first-child { font-size: 1.3rem; }
.vc-deaf:hover, .vc-leave:hover { filter: brightness(1.2); }
.vc-deaf[aria-pressed="true"] { background: #3a1d1d; border-color: #e0605a; color: #ffb3ad; }
.vc-leave { background: #2a1a1a; border-color: rgba(224, 96, 90, .5); color: #ffb3ad; }
/* the mic test shows the ring while not joined */
.vc-me:not(.is-live) .vc-big:has(#vc-test-say:not([hidden])) #mute { display: flex; pointer-events: none; }
.vc-me:not(.is-live) .vc-big:has(#vc-test-say:not([hidden])) .vc-msay { display: none; }
/* sound settings */
.vc-set { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.vc-set h3 { margin: 0; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vc-slide { display: grid; grid-template-columns: auto minmax(0, 1fr) 3.2em; align-items: center; gap: 10px; font-size: .9rem; }
.vc-slide output { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .82rem; }
.vc-toggle { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.vc-toggle label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
label.vc-toggle { cursor: pointer; align-items: flex-start; } label.vc-toggle input { margin-top: 3px; }
.vc-key { min-width: 54px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0d1714; color: #ffd27a; font: inherit; font-weight: 800; cursor: pointer; }
.vc-key:disabled { opacity: .4; cursor: default; }
.vc-dev { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
.vc-dev select { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #0d1714; color: var(--text); font: inherit; font-size: .88rem; }
.vc-keys { margin: 0; font-size: .78rem; color: var(--muted); }
.vc-keys kbd { padding: 0 6px; border-radius: 5px; border: 1px solid var(--line); background: #0d1714; font-size: .75rem; }
input[type=range].vc-pvol, #vc-master { accent-color: var(--leaf, #6fd28f); width: 100%; }
/* in earshot: one card a player */
.vc-ear { display: flex; flex-direction: column; gap: 12px; }
.vc-earhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vc-talking { margin: 0; padding: 5px 12px; border-radius: 999px; font-size: .88rem; color: var(--muted); background: rgba(255, 255, 255, .04); }
.vc-talking:empty { display: none; }
.vc-talking.is-on { color: #0f1a14; background: var(--leaf, #6fd28f); font-weight: 700; }
.vc-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; align-content: start; flex: 1; }
.vc-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.vc-person { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #15211d; transition: border-color .15s, background .15s; }
.vc-person.is-speaking { border-color: var(--leaf, #6fd28f); background: #183126; }
.vc-person.is-off { opacity: .55; }
.vc-ring { --lvl: 0; grid-row: 1 / 3; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, transparent 0 62%, rgba(111, 210, 143, calc(.15 + var(--lvl) * .85)) 63% 100%);
  box-shadow: 0 0 calc(var(--lvl) * 22px) rgba(111, 210, 143, calc(var(--lvl) * .7)); transition: box-shadow .08s linear; }
.vc-face { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #24382f; font-weight: 800; font-size: 1.25rem; color: #dff5e6; }
.vc-person.is-off .vc-ring { background: radial-gradient(circle, transparent 0 62%, rgba(224, 96, 90, .5) 63% 100%); box-shadow: none; }
.vc-pinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vc-pname { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-pmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.vc-near-tag { font-style: normal; font-weight: 700; padding: 0 8px; border-radius: 999px; font-size: .74rem; }
.vc-near-tag.is-close { background: rgba(111, 210, 143, .2); color: #8ee6a8; }
.vc-near-tag.is-near { background: rgba(230, 195, 90, .18); color: #ffd27a; }
.vc-near-tag.is-far { background: rgba(255, 255, 255, .08); color: var(--muted); }
.vc-ptalk { display: none; font-size: .76rem; font-weight: 700; color: var(--leaf, #6fd28f); }
.vc-person.is-speaking .vc-ptalk { display: block; }
.vc-pctl { grid-column: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) 3.6em; align-items: center; gap: 8px; }
.vc-ppct { text-align: right; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vc-poff { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: #0d1714; color: inherit; font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.vc-poff[aria-pressed="true"] { border-color: #e0605a; color: #ffb3ad; background: #2a1717; }
.vc-hint { margin: 0; font-size: .8rem; color: var(--muted); }
.vc-how > summary, .vc-report > summary { cursor: pointer; font-weight: 700; }
.vc-how { border-top: 0; padding-top: 16px; }
.vc-how .vc-steps { margin-top: 10px; }
.vc-side .report { margin-top: 0; }
/* (the radar was taken out the same evening: it gave quiet hunters away) */
.vc-people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* ===== Voice extras (2026-11-21 late, Vengefulmink: "do them all"): talk modes, mic volume + noise gate + hear yourself,
   voice filters (EXPERIMENTAL), muted-by-you list, pack radio cards; and the prox chat box on My dino. ===== */
.vc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc-me:not(.is-live) .vc-modes, .vc-me:not(.is-live) .vc-mode-say { display: none; }
.vc-mode { padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line); background: #15211d; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.vc-mode:hover { filter: brightness(1.15); }
.vc-mode[data-mode="whisper"][aria-pressed="true"] { border-color: #9db8ff; background: #1b2238; color: #c9d6ff; }
.vc-mode[data-mode="radio"][aria-pressed="true"] { border-color: #ffd27a; background: #2c2513; color: #ffe2a3; }
.vc-mode-say { margin: -4px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
.vc-me[data-talk-mode="whisper"] .vc-mode-say { color: #c9d6ff; } .vc-me[data-talk-mode="radio"] .vc-mode-say { color: #ffe2a3; }
#vc-micvol, #vc-gate { accent-color: var(--leaf, #6fd28f); width: 100%; }
.vc-gatebar { --lvl: 0; --thr: 0; position: relative; height: 8px; margin: -4px 0 0; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.vc-gate-lvl { position: absolute; inset: 0 auto 0 0; width: calc(var(--lvl) * 100%); background: rgba(230, 195, 90, .55); transition: width .08s linear; }
.vc-gatebar.is-open .vc-gate-lvl { background: var(--leaf, #6fd28f); }
.vc-gate-thr { position: absolute; top: -2px; bottom: -2px; left: calc(var(--thr) * 100%); width: 2px; background: #ff9b94; }
.vc-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.vc-holdkeys { flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.vc-holdkeys .vc-key { min-width: 40px; padding: 3px 8px; }
.vc-muted { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: rgba(255, 255, 255, .02); }
.vc-muted summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.vc-muted ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-height: 160px; overflow-y: auto; }
.vc-muted li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; }
.vc-unmute { padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line); background: #0d1714; color: inherit; font: inherit; font-size: .8rem; cursor: pointer; }
.vc-person.is-radio { border-color: rgba(255, 210, 122, .55); }
.vc-person.is-radio.is-speaking { background: #2c2513; border-color: #ffd27a; }

/* My dino: the prox chat box, right of the dino card (2026-11-21 late) */
.dino-top-row { display: grid; gap: 14px; }
@media (min-width: 1100px) { .dino-top-row { grid-template-columns: minmax(0, 1fr) 270px; align-items: stretch; } .dino-top-row > .dino-top { min-width: 0; } }
.vm-box { --lvl: 0; display: flex; flex-direction: column; gap: 9px; padding: 14px 16px; margin: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(111, 210, 143, .12), transparent 65%), var(--panel); }
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vm-head h2 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.vm-head h2 a { color: inherit; text-decoration: none; } .vm-head h2 a:hover { text-decoration: underline; }
.vm-head .pill { font-size: .72rem; }
.vm-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
.vm-box:not(.is-live) .vm-ctl { display: none; }
.vm-mic { width: 58px; height: 58px; grid-row: 1 / 3; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; font-size: 1.6rem;
  background: radial-gradient(circle, #183126 0 58%, transparent 59%), conic-gradient(var(--leaf, #6fd28f) calc(var(--lvl) * 100%), rgba(111, 210, 143, .16) 0);
  box-shadow: 0 0 calc(var(--lvl) * 20px) rgba(111, 210, 143, calc(var(--lvl) * .8)); }
.vm-box.is-muted .vm-mic { background: radial-gradient(circle, #2a1717 0 58%, transparent 59%), conic-gradient(#e0605a 100%, #e0605a 0); box-shadow: none; }
.vm-btn { padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); background: #1b2925; color: inherit; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.vm-btn[aria-pressed="true"] { background: #3a1d1d; border-color: #e0605a; color: #ffb3ad; }
.vm-btn.vm-leave { background: #2a1a1a; border-color: rgba(224, 96, 90, .5); color: #ffb3ad; }
.vm-btn[hidden], .vm-mic[hidden] { display: none; }
.vm-join { width: 100%; }
.vm-talk { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; overflow-y: auto; min-height: 0; flex: 1; }
.vm-talk li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: center; font-size: .86rem; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.vm-talk li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vm-talk li small { color: var(--muted); font-size: .72rem; }
.vm-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(111, 210, 143, .3); }
.vm-talk li.is-speaking { background: rgba(111, 210, 143, .14); } .vm-talk li.is-speaking .vm-dot { background: var(--leaf, #6fd28f); box-shadow: 0 0 8px var(--leaf, #6fd28f); }
.vm-empty { margin: 0; font-size: .8rem; color: var(--muted); }
.vm-note { margin: 0; font-size: .78rem; }
.vm-more { font-size: .76rem; color: var(--muted); }
@media (min-width: 1100px) { .dino-top-row > .vm-box { contain: size; overflow: hidden; } }  /* as tall as the dino card, never taller */
.vm-join[hidden], .vm-note[hidden] { display: none; }
.vm-head h2 { white-space: nowrap; font-size: .95rem; }
.vm-head .pill { white-space: nowrap; padding: 2px 8px; }
.vm-note { padding: 6px 9px; font-size: .74rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.vm-box > * { flex: none; } .vm-box > .vm-talk { flex: 1 1 0; }
/* Admin radar on the Voice page (Admin view only) */
.vc-radar-card h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; margin: 0 0 10px; }
.vc-adm-tag { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 210, 122, .15); color: #ffd27a; border: 1px solid rgba(255, 210, 122, .4); }
.vc-radar { position: relative; width: min(100%, 230px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 32%, rgba(111, 210, 143, .18) 32.5% 33%, transparent 33.5% 65%, rgba(111, 210, 143, .18) 65.5% 66%, transparent 66.5%),
    radial-gradient(circle, #13231d, #0c1512 70%); border: 1px solid rgba(111, 210, 143, .35); }
.vc-rme { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 1.1rem; }
.vc-rdot { --x: 50%; --y: 50%; position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #8aa79a; border: 2px solid #0c1512; transition: left .3s linear, top .3s linear; }
.vc-rdot.is-speaking { background: var(--leaf, #6fd28f); box-shadow: 0 0 10px var(--leaf, #6fd28f); }
.vc-rdot.is-radio { background: #ffd27a; }
.vc-rdot::after { content: attr(data-name); position: absolute; left: 14px; top: -4px; white-space: nowrap; font-size: .66rem; color: var(--muted); pointer-events: none; }
.vc-test-say { display: grid; gap: 6px; justify-items: center; } .vc-test-say[hidden] { display: none; } .vc-test-say p { margin: 0; }
/* Voice page tidy (2026-11-21 late, Vengefulmink: "flush the page out making it laid out nicely and optimized") */
.voice-bar [hidden] { display: none !important; }
.vc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.vc-tabs button { padding: 7px 4px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.vc-tabs button:hover { color: var(--text); }
.vc-tabs button[aria-selected="true"] { background: #1f3129; color: #dff5e6; box-shadow: inset 0 0 0 1px rgba(111, 210, 143, .35); }
.vc-pane { display: grid; gap: 10px; min-height: 132px; align-content: start; }
.vc-pane[hidden] { display: none; }
.vc-slide { grid-template-columns: 6.2em minmax(0, 1fr) 3.2em; }
.vc-kl { flex: 1; }
.vc-set { padding-top: 10px; }
.vc-me { gap: 12px; }
.vc-rdot::after { font-size: .62rem; }
.vc-mode { white-space: nowrap; font-size: .88rem; padding: 9px 6px; }
/* Voice desk (2026-11-21 late): ⚙ Features (whisper / pack radio / filters on-off) and 🗣 Talking now, before the preview tabs */
.pv-tabs:has(#pv-voice-feat) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pv-tabs:has(#pv-voice-feat:checked) .pv-pane-feat, .pv-tabs:has(#pv-voice-talk:checked) .pv-pane-talk { display: flex; }
.adm-switch { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); cursor: pointer; }
.adm-switch input { width: 18px; height: 18px; accent-color: var(--leaf, #6fd28f); }
.adm-switch span { font-weight: 700; }
.adm-switch small { grid-column: 2; color: var(--muted); font-size: .78rem; }
.adm-switch:has(input:checked) { border-color: rgba(111, 210, 143, .45); background: rgba(111, 210, 143, .07); }
.vc-modes.is-one { grid-template-columns: 1fr; }
/* Command center tidy (2026-11-21 late, Vengefulmink: "double check all admin panels and desks ... laid out nicely, clean and easy to read") */
.cc-desk { width: 100%; }
.cc-desk .srv-pane-online .cc-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: min(56vh, 520px); }
@media (min-width: 1200px) {
  .cc-desk .dd-layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .cc-desk .dd-side { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 10px; }
  .cc-desk .dd-main { min-width: 0; }
}
/* Dino Storage rules (2026-11-21 late): labelled as rules; green = your dino meets it, red = not yet */
.store-rules-h { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Command center: on wide screens, a tab's separate forms sit side by side instead of one long column (less scrolling) */
@media (min-width: 1400px) {
  .cc-desk .adm-pane { flex-direction: row; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; }
  .cc-desk .adm-pane > * { flex: 1 1 100%; min-width: 0; }
  .cc-desk .adm-pane > .adm-group:not(:only-of-type) { flex: 1 1 380px; }
}
/* Voice page on one screen, no page scroll (2026-11-21 late): voice.js adds body.voice-fit (≥1100 × 600) and --vc-h */
body.voice-fit { overflow: hidden; }
body.voice-fit .site-foot { display: none; }
body.voice-fit .vc-strip { margin-bottom: 8px; }
body.voice-fit .vc-grid.vc3 { height: var(--vc-h, calc(100vh - 230px)); min-height: 0; }
body.voice-fit .vc-grid.vc3 > * { overflow: hidden; }
body.voice-fit .vc-me { gap: 9px; padding-block: 12px; }
body.voice-fit .vc-mring { width: 104px; height: 104px; } body.voice-fit .vc-mico { font-size: 2.4rem; }
body.voice-fit .vc-pane { min-height: 0; }
body.voice-fit .vc-set { gap: 8px; padding-top: 8px; }
body.voice-fit .vc-deaf, body.voice-fit .vc-leave { padding: 9px 12px; }
body.voice-fit .vc-ear { overflow: hidden; }
body.voice-fit .vc-people { flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: none; }
body.voice-fit .vc-people::-webkit-scrollbar { display: none; }
/* more people talking: tighter cards, so they still fit */
.vc-people[data-size="some"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.vc-people[data-size="some"] .vc-person { padding: 9px 10px; gap: 6px 10px; }
.vc-people[data-size="some"] .vc-ring { width: 48px; height: 48px; } .vc-people[data-size="some"] .vc-face { width: 38px; height: 38px; font-size: 1.05rem; }
.vc-people[data-size="many"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 6px; }
.vc-people[data-size="many"] .vc-person { padding: 7px 8px; gap: 4px 8px; }
.vc-people[data-size="many"] .vc-ring { width: 38px; height: 38px; } .vc-people[data-size="many"] .vc-face { width: 30px; height: 30px; font-size: .9rem; }
.vc-people[data-size="many"] .vc-pname { font-size: .88rem; } .vc-people[data-size="many"] .vc-ptalk { display: none !important; }
.vc-people[data-size="many"] .vc-pctl { grid-template-columns: auto minmax(0, 1fr); } .vc-people[data-size="many"] .vc-ppct { display: none; }
/* the side column: everything visible at once */
body.voice-fit .vc-side { display: flex; flex-direction: column; gap: 10px; }
body.voice-fit .vc-side > .card { margin: 0; padding: 12px 14px; flex: none; }
body.voice-fit .vc-radar { width: min(100%, 170px); }
body.voice-fit .vc-range { flex: 1 1 auto; min-height: 0; overflow: hidden; }
body.voice-fit .vc-bars { gap: 4px; margin: 4px 0; } body.voice-fit .vc-bars small { font-size: .7rem; line-height: 1.2; }
body.voice-fit .vc-range > p { margin: 2px 0; font-size: .76rem; }
body.voice-fit .vc-how, body.voice-fit .vc-report { padding-block: 10px; }
body.voice-fit .vc-radar-card h2 { margin-bottom: 6px; }
body.voice-fit .vc-grid.vc3 > .vc-side:has(details[open]) { overflow-y: auto; scrollbar-width: thin; } /* an opened How it works / Report may need the room */
/* Voice page side: Range | How it works | Report in one tabbed card */
.vc-info { display: flex; flex-direction: column; gap: 10px; }
.vc-info-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.vc-info-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.vc-info-tabs label { flex: 1; text-align: center; padding: 6px 4px; border-radius: 8px; font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.vc-info-tabs input:checked + label { background: #1f3129; color: #dff5e6; box-shadow: inset 0 0 0 1px rgba(111, 210, 143, .35); }
.vc-info-tabs input:focus-visible + label { outline: 2px solid #ffd27a; }
.vc-info-pane { display: none; min-height: 0; }
.vc-info:has(#vc-info-range:checked) [data-pane="range"], .vc-info:has(#vc-info-how:checked) [data-pane="how"], .vc-info:has(#vc-info-report:checked) [data-pane="report"] { display: block; }
.vc-info .vc-how { border: 0; padding: 0; }
.vc-info .vc-steps { margin: 0; font-size: .84rem; }
.vc-info .report-form { display: grid; gap: 8px; }
html:has(body.voice-fit) { overflow: hidden; }
body.voice-fit .vc-info { flex: 1 1 auto; min-height: 0; overflow: hidden; }
body.voice-fit .vc-info-pane { overflow-y: auto; scrollbar-width: none; }
body.voice-fit .vc-side > .card.vc-info { flex: 1 1 0; min-height: 120px; overflow: hidden; }
body.voice-fit .vc-side > .card.vc-info .vc-info-pane { flex: 1 1 auto; overflow-y: auto; scrollbar-width: thin; }
body.voice-fit main { padding-bottom: 0; }
@media (max-height: 820px) { body.voice-fit .vc-radar-card > p { display: none; } body.voice-fit .vc-radar { width: min(100%, 140px); } }
/* Command center: News and Rankings start menus use two columns like Events (2026-11-21 desks check) */
@media (min-width: 1200px) {
  .cc-desk :is(.nd-pane-home, .rd-pane-home) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
  .cc-desk :is(.nd-pane-home, .rd-pane-home) > :not(.nd-home-card) { grid-column: 1 / -1; }
}
/* Seamless clicks (2026-11-21 ~8 PM): pages of the site fade into each other instead of flashing white; the header
   stays put. Browsers without cross-page transitions simply load as before. */
@view-transition { navigation: auto; }
.site-head { view-transition-name: tfi-head; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }
::view-transition-group(tfi-head) { animation-duration: 0s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.dc-mut-hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 6px; } .dc-mut-now { margin: 4px 0 0; }
.dc-mut { position: relative; display: block; min-width: 0; }
.dc-mut > input { width: 100%; padding-right: 34px; }
.dc-mut > input.is-cleared::placeholder { color: #ff9a8a; text-decoration: line-through; }
.dc-mut-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255, 120, 100, .55);
  background: rgba(237, 66, 69, .16); color: #ffb3a8; font-size: .75rem; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dc-mut-x:hover { background: rgba(237, 66, 69, .35); color: #fff; }
.dc-mut-x.is-undo { border-color: rgba(111, 210, 143, .55); background: rgba(111, 210, 143, .16); color: #bff0cf; }
.dc-mut-x[hidden] { display: none; }

/* 🎨 Desk looks (2026-11-21 ~8 PM): the admin's own look on their panels (desk-look.js) */
.lk-rel { position: relative; }
.lk.lk-hd h1, .lk.lk-hd h2, .lk.lk-hd h3, .lk.lk-hd h4, .lk.lk-hd .adm-label, .lk.lk-hd .cc-kicker, .lk.lk-hd .cc-group, .lk.lk-hd .cc-crumb { color: var(--lk-heading) !important; }
.lk .adm-btn:not(.ghost), .lk .adm-tabs > input:checked + label { border-color: var(--lk-accent, var(--adm-gold)); }
.lk .adm-tabs > input:checked + label, .lk .cc-link.is-on, .lk .cc-r-on { background: var(--lk-accent, var(--adm-gold)); }
.lk-f-display, .lk-f-display * { font-family: var(--display) !important; letter-spacing: .02em; }
.lk-f-mono, .lk-f-mono * { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; }
.lk-f-serif, .lk-f-serif * { font-family: Georgia, "Times New Roman", serif !important; }
.lk-chip { position: absolute; top: 8px; right: 8px; z-index: 40; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(230, 195, 90, .7); background: rgba(20, 16, 6, .88); color: #f5dd8f; font: 700 .76rem/1 var(--body); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.lk-chip:hover { background: #e6c35a; color: #1d1405; }
.lk-chip.is-small { padding: 4px 7px; top: 10px; right: 46px; font-size: .8rem; }
.cc-w > .lk-chip { top: -10px; right: 14px; }
.lk-open { position: absolute; right: calc(100% + 16px); top: 0; display: grid; justify-items: center; gap: 2px; width: 150px; padding: 14px 10px; border-radius: 14px;
  border: 1px solid rgba(230, 195, 90, .55); background: linear-gradient(180deg, #1e2529, #151a1d); color: #e8e4d8; cursor: pointer; box-shadow: inset 0 3px 0 #e6c35a, 0 8px 20px rgba(0, 0, 0, .35); }
.lk-open > span { font-size: 1.6rem; } .lk-open b { font: 700 1rem/1.1 var(--display); letter-spacing: .03em; color: #f5dd8f; } .lk-open small { color: #a9a291; font-size: .72rem; }
.lk-open:hover, .lk-open.is-on { background: linear-gradient(180deg, #3a3118, #1f1a0c); }
.lk-open.is-on { box-shadow: inset 0 3px 0 #e6c35a, 0 0 0 2px #e6c35a; }
.cc[data-cc] { position: relative; }
.lk-open.is-inside { position: static; width: auto; grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; flex: none; }
.lk-open.is-inside > span { font-size: 1.1rem; } .lk-open.is-inside small { display: none; }
.lk-win { position: fixed; top: 90px; right: 24px; z-index: 1000; width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 110px); display: flex; flex-direction: column;
  border-radius: 14px; border: 1px solid rgba(230, 195, 90, .6); background: #12171a; color: #e8e4d8; box-shadow: 0 20px 60px rgba(0, 0, 0, .6), inset 0 3px 0 #e6c35a; font-family: var(--body); }
.lk-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); cursor: move; user-select: none; }
.lk-bar > span { font-size: 1.4rem; } .lk-bar b { display: block; color: #f5dd8f; } .lk-bar small { color: #a9a291; font-size: .74rem; }
.lk-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); background: transparent; color: #e8e4d8; cursor: pointer; }
.lk-x:hover { background: rgba(237, 66, 69, .3); }
.lk-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px 14px 0; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.lk-scope button { padding: 7px 4px; border: 0; border-radius: 7px; background: transparent; color: #a9a291; font: 700 .78rem var(--body); cursor: pointer; }
.lk-scope button.is-on { background: #e6c35a; color: #1d1405; }
.lk-hint { margin: 6px 14px 0; font-size: .74rem; color: #a9a291; }
.lk-body { overflow-y: auto; padding: 4px 14px 12px; scrollbar-width: thin; }
.lk-body h4 { margin: 14px 0 6px; font: 700 .72rem var(--body); text-transform: uppercase; letter-spacing: .08em; color: #e6c35a; display: flex; align-items: center; gap: 6px; }
.lk-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lk-themes button { padding: 8px 4px; border-radius: 8px; border: 2px solid #3a3626; color: #fff; font: 700 .74rem var(--body); cursor: pointer; text-shadow: 0 1px 2px #000; }
.lk-themes button:hover { filter: brightness(1.2); }
.lk-row { display: grid; grid-template-columns: 1fr auto 26px; align-items: center; gap: 8px; padding: 5px 0; font-size: .82rem; }
.lk-row > span em { font-style: normal; color: #a9a291; font-size: .74rem; margin-left: 4px; }
.lk-row input[type=color] { width: 44px; height: 28px; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; background: none; cursor: pointer; }
.lk-slide { grid-template-columns: 1fr 26px; } .lk-slide > span { grid-column: 1 / -1; } .lk-slide input[type=range] { width: 100%; accent-color: #e6c35a; }
.lk-row select { padding: 5px 8px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .18); background: #1b2226; color: #e8e4d8; font: inherit; }
.lk-reset { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(111, 210, 143, .5); background: rgba(111, 210, 143, .12); color: #bff0cf; cursor: pointer; font-weight: 800; padding: 0; }
.lk-reset:hover { background: rgba(111, 210, 143, .3); }
.lk-row:not(:has(.lk-reset))::after { content: ""; }
.lk-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lk-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .12); background: #1b2226; color: #fff; font: 700 .66rem var(--body);
  display: flex; align-items: flex-end; justify-content: center; padding: 3px; cursor: pointer; overflow: hidden; text-shadow: 0 1px 3px #000; width: 100%; }
.lk-tile.is-none, .lk-tile.is-up { align-items: center; color: #a9a291; text-shadow: none; }
.lk-tile.is-up { border-style: dashed; }
.lk-tile.is-on { border-color: #e6c35a; box-shadow: 0 0 0 2px rgba(230, 195, 90, .4); }
.lk-tile-wrap { position: relative; }
.lk-tile-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255, 120, 100, .6); background: #2a1212; color: #ffb3a8; font-size: .65rem; cursor: pointer; padding: 0; }
.lk-note { margin: 6px 0 0; font-size: .72rem; color: #a9a291; }
.lk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.lk-btn { padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #e8e4d8; font: 700 .78rem var(--body); cursor: pointer; }
.lk-btn:hover { background: rgba(255, 255, 255, .08); }
.lk-status { font-size: .76rem; color: #8fd9a8; }
/* Desk looks: Text / Soft text reach text with fixed colours too; buttons, tabs, badges and headings keep their own */
.lk.lk-tx :is(p, span, b, strong, li, td, th, dd, dt, label, div, a, em, i, time, h5, h6, output):not(button, button *, .adm-btn, .adm-btn *, .button, .button *, .pa-btn, .pa-btn *,
  [class*="badge"], [class*="badge"] *, [class*="pill"], [class*="kpi"] b, .lk-chip, .lk-chip *, .muted, .muted *, small, small *, input:checked + label, input:checked + label *,
  .adm-label, .cc-kicker, .cc-crumb, .cc-group, .cc-dot, [class*="is-ok"], [class*="is-bad"], [class*="is-warn"], .adm-msg, .adm-msg *) { color: var(--lk-text) !important; }
.lk.lk-mt :is(.muted, small, .adm-note, .cc-line, .cc-w-size):not(button *, .adm-btn *, [class*="badge"] *) { color: var(--lk-muted) !important; }
/* customize buttons sit inside the heading row (2026-11-21: they were cut off on the widget edges) */
.lk-chip.is-inline { position: static; flex: none; margin: 0 6px 0 0; padding: 4px 9px; font-size: .72rem; box-shadow: none; white-space: nowrap; }
.lk-chip.is-inline.is-small { padding: 3px 7px; }
.cc-sec-head > .lk-chip.is-inline { order: 9; margin: 0 0 0 8px; }
.adm-head > .lk-chip.is-inline { margin: 0 0 0 auto; order: 9; }
.cc-w-tools { display: flex; align-items: center; }
.lk-chip:not(.is-inline) { top: 8px; right: 8px; }
.lk-chip.is-small:not(.is-inline) { right: 46px; }
.cc-sec-head:has(> .lk-chip) { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.lk-chip.is-row { align-self: flex-end; margin: 0 0 6px; }
.cc-ident > .lk-chip.is-inline { margin: 0 0 0 12px; align-self: center; }
.cc-ident:has(> .lk-chip) { display: flex; align-items: center; }
.cc-w-tools > button.lk-chip { width: auto; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(230, 195, 90, .7); background: rgba(20, 16, 6, .88); color: #f5dd8f; font-size: .72rem; margin-right: 6px; }
.cc-w-tools > button.lk-chip:hover { background: #e6c35a; color: #1d1405; }

/* ---- Help center (2026-11-21, Vengefulmink): 🌐 Website & Discord / 🦖 Game help, a tab for every page, guided tours,
   the species guide. One screen on big screens (body.help-fit, set by site.js): the tab list and the topic box scroll
   inside themselves. */
.hc { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.hc-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hc-name { flex: 1 1 260px; min-width: 0; }
.hc-name h1 { margin: 0; font-size: 1.9rem; line-height: 1.1; }
.hc-name p { margin: 2px 0 0; font-size: .9rem; }
.hc-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.hc-switch button { border: 0; border-radius: 999px; padding: 8px 16px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hc-switch button:hover { color: var(--text); }
.hc-switch button[aria-selected="true"] { background: var(--accent); color: #1d1405; }
.hc-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); flex: 0 1 260px; min-width: 180px; }
.hc-search:focus-within { border-color: var(--accent); }
.hc-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.hc-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; }
.hc-tabs { display: flex; flex-direction: column; gap: 2px; padding: 10px; overflow-y: auto; scrollbar-width: thin; }
.hc-group { display: flex; flex-direction: column; gap: 2px; }
.hc-group + .hc-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.hc-gname { margin: 0 0 2px; padding: 0 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hc-gname small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.hc-group.is-admin .hc-gname { color: var(--accent); }
.hc-tabs button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-tabs button.hc-sub { padding-left: 22px; font-size: .86rem; font-weight: 500; color: var(--muted); }
.hc-tabs button:hover { background: rgba(244, 178, 95, .08); color: var(--text); }
.hc-tabs button.is-on { background: var(--accent); color: #1d1405; }
.hc-tabs [hidden], .hc-group[hidden] { display: none; }
.hc-box { padding: 20px 24px; overflow-y: auto; scrollbar-width: thin; min-width: 0; }
.hp[hidden] { display: none; }
.hp-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.hp-ico { font-size: 2rem; line-height: 1; padding-top: 2px; }
.hp-title { flex: 1 1 300px; min-width: 0; }
.hp-title h2 { margin: 0; font-size: 1.5rem; }
.hp-lead { margin: 2px 0 0; color: var(--muted); max-width: 70ch; }
.hp-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hp-acts .button { white-space: nowrap; }
.hp h3 { margin: 18px 0 6px; font-size: 1.05rem; color: var(--accent); }
.hp ul, .hp ol { margin: 0; padding-left: 22px; max-width: 80ch; }
.hp li { margin: 5px 0; line-height: 1.55; }
.hp p { max-width: 80ch; }
.hp-steps li::marker { color: var(--accent); font-weight: 700; }
.hp-callout { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: rgba(244, 178, 95, .08); border: 1px solid rgba(244, 178, 95, .25); max-width: 80ch; }
.hp-foot { margin-top: 16px; }
.hp code { padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-size: .88em; white-space: nowrap; }
.hp-table { width: 100%; max-width: 820px; border-collapse: collapse; font-size: .92rem; }
.hp-table th, .hp-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.hp-table th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.hp-table td:first-child { white-space: nowrap; }
.hp-q { max-width: 80ch; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: var(--bg-2); }
.hp-q summary { padding: 10px 14px; cursor: pointer; font-weight: 700; }
.hp-q[open] summary { color: var(--accent); }
.hp-q p { margin: 0; padding: 0 14px 12px; color: var(--muted); }
.hp-links { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; max-width: none !important; }
.hp-links li { margin: 0; display: flex; align-items: stretch; gap: 6px; }
.hp-links a { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); text-decoration: none; }
.hp-links a:hover { border-color: var(--accent); }
.hp-links a b { display: block; }
.hp-links a small { display: block; color: var(--muted); line-height: 1.4; }
.hp-lk-ico { font-size: 1.4rem; line-height: 1.2; }
.hp-lk-admin { display: flex; flex-direction: column; gap: 3px; }
.hp-lk-admin button { flex: 1; width: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-2); color: var(--muted); cursor: pointer; font-size: .75rem; }
.hp-lk-admin button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.hp-lk-admin button:disabled { opacity: .35; cursor: default; }
.hp-lk-add { margin-top: 16px; padding: 12px; border: 1px dashed rgba(244, 178, 95, .4); border-radius: 12px; display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.hp-lk-add .hp-lk-h { grid-column: 1 / -1; margin: 0; font-weight: 700; color: var(--accent); }
.hp-lk-add .hp-lk-note { grid-column: 1 / 4; }
.hp-lk-add select, .hp-lk-add input { min-width: 0; }
/* species guide */
.hp-sp-filter { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.hp-sp-filter button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.hp-sp-filter button b { margin-left: 4px; opacity: .7; }
.hp-sp-filter button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(244, 178, 95, .1); }
.hp-sp-sort { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.hp-sp-grid { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; max-width: none !important; }
.hp-sp-grid li { margin: 0; }
.hp-sp-grid li[hidden] { display: none; }
.sp-card { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-raised), var(--bg-2)); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.sp-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sp-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.sp-name { font-family: var(--display); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.hp-diet { align-self: flex-start; padding: 1px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid; }
.hp-diet.is-carnivore { color: #ff8a80; border-color: rgba(237, 66, 69, .45); background: rgba(237, 66, 69, .12); }
.hp-diet.is-herbivore { color: #8ee6a8; border-color: rgba(87, 242, 135, .4); background: rgba(87, 242, 135, .1); }
.hp-diet.is-omnivore { color: #a9b4ff; border-color: rgba(88, 101, 242, .5); background: rgba(88, 101, 242, .14); }
.sp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 2px; }
.sp-stats > span, .sp-tiles > span { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); min-width: 0; }
.sp-stats b { font-size: .95rem; white-space: nowrap; }
.sp-stats small, .sp-tiles small { color: var(--muted); font-size: .7rem; line-height: 1.25; }
.sp-sheet[hidden], .sp-list[hidden] { display: none; }
.sp-sheet-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sp-sheet-title { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-sheet-title h2 { margin: 0; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; }
.sp-sheet-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-sheet-nav .button { white-space: nowrap; font-size: .85rem; padding: 6px 12px; }
.sp-hero { border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 70%, rgba(244, 178, 95, .1), transparent 65%), var(--bg-2); padding: 10px; }
.sp-hero img { display: block; margin: 0 auto; width: 100%; max-width: 620px; max-height: 260px; object-fit: contain; }
.sp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.sp-tiles b { font-size: 1.3rem; }
.sp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.sp-box { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.sp-box h3 { margin: 0 0 8px; }
.sp-box h3 small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.sp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sp-table th, .sp-table td { padding: 5px 6px; border-bottom: 1px solid var(--line-soft); text-align: right; }
.sp-table th:first-child, .sp-table td:first-child { text-align: left; color: var(--muted); }
.sp-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sp-table em { font-style: normal; color: var(--leaf); font-size: .78rem; }
.sp-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
/* one screen on big screens */
body.help-fit .site-foot { display: none; }
body.help-fit main { padding-bottom: 0; }
body.help-fit .hc-wrap { height: var(--help-h, auto); }
body.help-fit .hc-tabs, body.help-fit .hc-box { max-height: 100%; min-height: 0; }
@media (max-width: 860px) {
  .hc-wrap { grid-template-columns: 1fr; }
  .hc-tabs { max-height: 260px; }
  .hp-lk-add { grid-template-columns: 1fr; }
  .hp-lk-add .hp-lk-note { grid-column: auto; }
}
.tour-ui.is-guide .tour-count { padding-right: 108px; }
main:has(.hc) { max-width: min(1560px, 100%); }
@media (min-width: 1400px) { .hc-wrap { grid-template-columns: 270px minmax(0, 1fr); } }
.hp-sp-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sp-stats { gap: 4px; }
.sp-stats > span { padding: 5px 6px; }
.sp-stats b { font-size: .86rem; }
.sp-stats { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.25fr); }
.tour-acts .button { white-space: nowrap; }
.tour-ui.is-guide .tour-count { line-height: 1.4; }
.sp-hero { position: relative; height: 300px; padding: 0; overflow: hidden; }
.sp-hero img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); max-width: none; max-height: none; transition: opacity .4s; }
.sp-hero .sp-3d { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s; }
.sp-hero.is-3d .sp-3d { opacity: 1; }
.sp-hero.is-3d img { opacity: 0; pointer-events: none; }
.sp-hero img { z-index: 0; } .sp-hero .sp-3d { z-index: 1; } .sp-3d-hint { z-index: 2; }
.sp-3d-hint { position: absolute; left: 12px; bottom: 8px; margin: 0; font-size: .75rem; color: var(--muted); pointer-events: none; opacity: 0; transition: opacity .4s; }
.sp-hero.is-3d .sp-3d-hint { opacity: 1; }
.sp-hero { height: 360px; }
.tour-ui .tour-veil, .tour-ui .tour-card { cursor: pointer; }
.tour-ui .tour-acts .button, .tour-ui .tour-x { cursor: pointer; }
.tour-ui .tour-x { padding: 3px 9px; border: 1px solid var(--line, #22362f); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text, #ecf2ee); font-weight: 600; }
.tour-ui .tour-x:hover { border-color: var(--red, #ed4245); color: #fff; background: rgba(237,66,69,.25); }
.tour-ui.is-guide .tour-count, .tour-ui .tour-count { padding-right: 96px; }
/* My dino: the earlier lives' mutations (2026-11-23) */
.dino-muts .chip.inherited { border-style: dashed; color: var(--muted); }
.dino-muts .muts-life { margin-top: .4rem; font-size: .85em; }
/* bloodlines past the player's tier (2026-11-23) */
.set-item.is-locked { opacity: .55; }
.set-item.is-locked .set-toggle strong::after { content: " 🔒"; }

/* the admins on duty, under the status line (2026-11-23) */
.status-duty { margin: 4px 0 0; }

/* Steam IDs beside names, in admin-only lists and the player desk (2026-11-24, the owner's; never on public pages) */
.cc-sid, .pd-sid { opacity: .65; font-size: .78em; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cc-people .cc-sid { margin-left: .45em; }
.pd-who .pd-sid { display: block; margin-top: 2px; user-select: all; }

/* 📈 the activity tracker in the Command center's Players tab, owners only (2026-11-24) */
.cc-activity { grid-column: 1 / -1; }
.act-grid { display: grid; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.act-row { display: grid; grid-template-columns: 3.2em repeat(24, minmax(18px, 1fr)); gap: 3px; align-items: center; }
.act-head span { font-size: .7rem; opacity: .6; text-align: left; }
.act-day { font-size: .8rem; font-weight: 700; opacity: .8; }
.act-cell { height: 22px; border-radius: 4px; font-size: .68rem; display: grid; place-items: center; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--amber, #f2a33a) calc(var(--a, 0) * 85%), rgba(255, 255, 255, .05)); color: rgba(0, 0, 0, .75); }

/* The zones glow (2026-11-24, the owner's: "lets try to get them to glow on the map, it can be hard to see the colors"):
   safe, no-AI and AI spawn zones, drawn or placed, with a soft light round the edge and a slow pulse (still for anyone
   who asks for less motion) */
.cat-aionly { --cat: #ff2df0; } /* as the AI desk's own layer */
.map-zones .zone.cat-aionly { fill-opacity: 0.16; stroke-width: 2px; stroke-dasharray: 2 4; }
.map-zones .zone.cat-safe, .map-zones .zone.cat-noai, .map-zones .zone.cat-aionly {
  stroke-opacity: 1; filter: drop-shadow(0 0 3px var(--cat)) drop-shadow(0 0 9px var(--cat)); }
.map-zones .zone.cat-safe { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .9)) drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #fff); }
/* the AI desk's layer (what admins see) glows the same */
.zone-plans .zplan { filter: drop-shadow(0 0 3px var(--zc)) drop-shadow(0 0 9px var(--zc)); }
.zone-plans .zplan.zk-safe { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .9)) drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #fff); }
@media (prefers-reduced-motion: no-preference) { .zone-plans .zplan { animation: zone-glow 2.8s ease-in-out infinite; } }
@media (prefers-reduced-motion: no-preference) {
  .map-zones .zone.cat-safe, .map-zones .zone.cat-noai, .map-zones .zone.cat-aionly { animation: zone-glow 2.8s ease-in-out infinite; }
}
@keyframes zone-glow { 0%, 100% { fill-opacity: .14; } 50% { fill-opacity: .3; } }
.has-plans .map-zones:not(.zone-plans) .zone.is-drawn { display: none; } /* admins: the desk's own layer draws these */
.pv-editing { margin: 4px 0 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--amber, #f2a33a); background: rgba(242, 163, 58, .08); font-size: .85rem; } /* editing a zone (2026-11-24) */
.pv-tabs.pv-tabs-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .pv-tabs.pv-tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* the AI desk with its Places tab (2026-11-24) */
.pv-tabs:has(#pv-map-places:checked) .pv-pane-places { display: flex; }

/* Pack colours on the Voice page (2026-11-24, the owner's: packs "identified differently"): the card's left edge, the
   radar dot and the small list's dot, A to H */
.vc-pack-0 { --pack: #ff9f0a; } .vc-pack-1 { --pack: #30d158; } .vc-pack-2 { --pack: #64d2ff; } .vc-pack-3 { --pack: #bf5af2; }
.vc-pack-4 { --pack: #ff375f; } .vc-pack-5 { --pack: #ffd60a; } .vc-pack-6 { --pack: #5e5ce6; } .vc-pack-7 { --pack: #ac8e68; }
.vc-person[class*="vc-pack-"] { border-left: 4px solid var(--pack); }
.vc-rdot[class*="vc-pack-"] { background: var(--pack); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 0 8px var(--pack); }
li[class*="vc-pack-"] > .vm-dot { background: var(--pack); }

/* The vote's winner on top once it closes (2026-11-24) */
.ev-poll-won { margin: .25rem 0 .6rem; padding: .5rem .7rem; border-radius: 10px; background: rgba(242, 181, 68, .14);
  border: 1px solid rgba(242, 181, 68, .45); font-size: 1.02rem; }
.ev-poll-won b { color: #ffd27a; }
.ev-hero-won .ev-title small { font-size: .55em; opacity: .85; }
.ev-hero-won .ev-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.ev-d-admin { margin: .6rem 0; }
.ed-editor textarea, .ed-editor input:not([type=color]), .ed-editor select { width: 100%; }
.ed-editor { display: grid; gap: .5rem; margin-bottom: 1rem; }

/* 🏆 The tournament bracket (2026-11-24) */
.ev-bracket { margin: 1rem 0; }
.ev-br-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.ev-br-head h2 { margin: 0; }
.ev-br-state { margin: 0; opacity: .85; flex: 1; }
.ev-br-tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .7rem 0; }
.ev-br-tools .adm-note { flex-basis: 100%; margin: .2rem 0 0; }
.ev-br-tools [aria-pressed="true"] { background: rgba(242, 181, 68, .25); border-color: #f2b544; }
.ev-br-add { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.ev-br-add input { min-width: 14rem; }
.ev-br-champ { font-size: 1.2rem; font-weight: 700; color: #ffd27a; margin: .4rem 0 .8rem; }
.ev-br-rounds { display: flex; gap: 1.2rem; overflow-x: auto; padding-bottom: .5rem; }
.ev-br-round { display: flex; flex-direction: column; justify-content: space-around; gap: .8rem; min-width: 11rem; }
.ev-br-round h3 { margin: 0 0 .2rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.ev-br-match { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.ev-br-slot { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .4rem; padding: .45rem .65rem; min-height: 2.2rem; width: 100%; }
.ev-br-slot + .ev-br-slot { border-top: 1px solid rgba(255, 255, 255, .1); }
button.ev-br-slot { cursor: pointer; }
button.ev-br-slot:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
button.ev-br-slot:disabled { cursor: default; }
button.ev-br-slot:focus-visible { outline: 2px solid #f2b544; outline-offset: -2px; }
.ev-br-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-br-slot.is-win { background: rgba(48, 209, 88, .18); font-weight: 700; }
.ev-br-slot.is-win::after { content: "✔"; color: #30d158; }
.ev-br-slot.is-out { opacity: .5; text-decoration: line-through; }
.ev-br-slot.is-empty { opacity: .45; font-style: italic; }
.ev-br-slot.is-movable { outline: 1px dashed rgba(242, 181, 68, .5); outline-offset: -3px; }
.ev-br-slot.is-picked { background: rgba(242, 181, 68, .3); }
.ev-br-x { padding: 0 .3rem; border-radius: 6px; color: #ff6b6b; }
.ev-br-x:hover { background: rgba(255, 107, 107, .2); }
@media (min-width: 1100px) { /* with a bracket on the page the whole left column scrolls, so nothing's cut off (2026-11-24) */
  .ev-main:has(.ev-bracket) { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .ev-main:has(.ev-bracket) > * { flex-shrink: 0; }
  .ev-main:has(.ev-bracket) .ev-grid { flex: none; overflow: visible; }
}
.ev-br-round { justify-content: flex-start; }
.ev-br-matches { display: flex; flex-direction: column; justify-content: space-around; gap: .8rem; flex: 1; }

/* 👤 You in the Skin Gallery: folders on the left, your skins on the right (2026-11-24) */
.sy { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; margin-top: 12px; }
.sy-side { display: flex; flex-direction: column; gap: 10px; }
.sy-folders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sy-folder button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
  border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.sy-folder button:hover { background: rgba(255, 255, 255, .06); }
.sy-folder button:focus-visible { outline: 2px solid #f2b544; }
.sy-folder.is-on button { background: rgba(242, 181, 68, .16); border-color: rgba(242, 181, 68, .5); font-weight: 700; }
.sy-folder:nth-child(4) { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sy-fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-folder b { font-size: .8rem; opacity: .7; }
.sy-folder.is-mine { cursor: grab; }
.sy-folder.is-drop button { background: rgba(48, 209, 88, .2); border-color: #30d158; }
.sy-new { display: flex; gap: 6px; }
.sy-new input { flex: 1; min-width: 0; }
.sy-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.sy-head h2 { margin: 0; flex: 1; }
.sy-tools { display: flex; gap: 6px; }
.sy-search { max-width: 260px; }
.sy-card { cursor: grab; }
.sy-card.is-dragging { opacity: .4; }
.sy-card.is-drop { outline: 2px dashed #30d158; outline-offset: 2px; }
.sy-dots { display: flex; gap: 3px; margin-top: 4px; }
.sy-dots i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .4); }
.sy-pick { max-width: 100%; }
@media (max-width: 760px) { .sy { grid-template-columns: minmax(0, 1fr); } .sy-search { max-width: none; flex-basis: 100%; } }
/* 🛠 the gallery desk's tabs and price grid */
.gd-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-tabs.gd-tabs-1 { grid-template-columns: minmax(0, 1fr); }
.gd-tabs:has(#gd-tab-prices:checked) .gd-pane-prices, .gd-tabs:has(#gd-tab-settings:checked) .gd-pane-settings { display: flex; }
.gd-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.gd-prices label span { font-size: .8rem; }
.sy-card .sg-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.sy-card .sg-acts > a, .sy-card .sg-acts > form { flex: 1 1 0; }
.sy-card .sg-acts > form .button { width: 100%; }
.sy-card .sy-pick { flex: 1 1 100%; order: 5; }
.sy-new { flex-direction: column; }
/* (2026-11-28, MrsFreak's screen: on the Gallery's You tab the cards ran out of the box and the footer drew over them)
   .sg-box is a fixed screen-height box built for Newest/Popular, whose grid scrolls inside it; the You tab's two-column
   layout has no inner scroller, so there the box grows with its cards and the page scrolls */
.sg-box:has(> .sy) { height: auto; }
.vc-pack-tag { display: inline-block; margin: 0 6px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  color: #111; background: var(--pack); }
/* Zone halos (2026-11-24, the owner's: the glow outside the border only, the zone itself clear): the zone a faint tint
   and a crisp edge, no glow or pulse of its own; its halo (site.js) a blurred border masked off inside, gently pulsing */
.map-zones .zone.cat-safe, .map-zones .zone.cat-noai, .map-zones .zone.cat-aionly { filter: none; animation: none; fill-opacity: .05; stroke-opacity: 1; }
.map-zones .zone.cat-safe { filter: drop-shadow(0 0 1px rgba(0, 0, 0, .9)); }
.zone-plans .zplan { filter: none; animation: none; fill-opacity: .05; }
.zone-plans .zplan.zk-safe { filter: drop-shadow(0 0 1px rgba(0, 0, 0, .9)); }
.zone-halo { fill: none; stroke: var(--cat, var(--zc, #fff)); stroke-width: 10px; stroke-dasharray: none; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; filter: blur(3px); opacity: .8; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .zone-halo { animation: zone-halo 2.8s ease-in-out infinite; } }
@keyframes zone-halo { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }
.has-plans .map-zones:not(.zone-plans) .zone-halo.is-drawn { display: none; }
.adm-check-auto { width: auto; } /* was an inline style the page's CSP blocked (2026-11-24) */

/* The bounty rework (2026-11-24, Vengefulmink's rules): rank stamps, backers, last seen, the pay-off, the rules in full,
   and the Sheriff's desk's nine tabs. Still images, no motion (the spec). */
.bn-rank-stamp { display: inline-block; margin: 2px 0 4px; padding: 2px 10px; border: 3px double #b0261a; border-radius: 4px; transform: rotate(-4deg);
  color: #b0261a; background: rgba(255, 244, 220, 0.7); font: 900 0.72rem/1.1 var(--west); letter-spacing: 0.14em; text-transform: uppercase; }
.bn-rank-stamp.is-r2 { color: #7a1408; border-color: #7a1408; }
.bn-rank-stamp.is-r3 { color: #6b4a00; border-color: #c99a1e; background: linear-gradient(135deg, #fff3c4, #f0d27a); box-shadow: 0 0 0 2px #c99a1e; }
.bn-poster:has(.bn-rank-stamp.is-r3) { box-shadow: 0 0 0 3px #c99a1e, 0 6px 18px rgba(0, 0, 0, 0.35); }
.bn-rep { font: 700 0.7rem/1.2 var(--west); color: #5a4024; letter-spacing: 0.04em; }
.bn-backers { list-style: none; margin: 4px 0 2px; padding: 0; width: 100%; max-height: 7.5em; overflow-y: auto; scrollbar-width: thin; font-size: 0.72rem; }
.bn-backers li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 4px; border-bottom: 1px dashed rgba(58, 36, 18, 0.25); color: #3a2412; }
.bn-backers li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-backers li b { flex: none; }
.bn-seen { font-style: italic; }
.bn-stamp.is-claimed { color: #1f4d8a; border-color: #1f4d8a; letter-spacing: 0.12em; text-transform: uppercase; }
.bn-payoff { display: grid; gap: 6px; margin: 6px 0 10px; padding: 8px 10px; border: 1px dashed rgba(240, 210, 122, 0.5); border-radius: 8px; }
.bn-payoff p { margin: 0; }
.bn-standing { margin: 4px 0 10px; }
.bn-fineprint { margin: 2px 0 6px; line-height: 1.35; }
.bn-how-full { margin-top: 10px; }
.bn-how-full > summary { cursor: pointer; font-weight: 800; }
.bn-how-full h4 { margin: 10px 0 2px; font-size: 0.85rem; }
.bn-how-full p, .bn-how-full ul { margin: 2px 0; font-size: 0.8rem; line-height: 1.4; }
.bn-how-full ul { padding-left: 18px; }
.bn-hall li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.rk-bounty-title { color: var(--muted, #9a8f7a); }
.bn-desk-v2 .bn-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; }
.bn-desk-v2 .bn-tabs:has(#bn-tab-rules:checked) .bn-pane-rules, .bn-desk-v2 .bn-tabs:has(#bn-tab-streaks:checked) .bn-pane-streaks,
.bn-desk-v2 .bn-tabs:has(#bn-tab-players:checked) .bn-pane-players, .bn-desk-v2 .bn-tabs:has(#bn-tab-payoffs:checked) .bn-pane-payoffs,
.bn-desk-v2 .bn-tabs:has(#bn-tab-safe:checked) .bn-pane-safe, .bn-desk-v2 .bn-tabs:has(#bn-tab-extras:checked) .bn-pane-extras,
.bn-desk-v2 .bn-tabs:has(#bn-tab-server:checked) .bn-pane-server, .bn-desk-v2 .bn-tabs:has(#bn-tab-down:checked) .bn-pane-down,
.bn-desk-v2 .bn-tabs:has(#bn-tab-log:checked) .bn-pane-log { display: flex; }
.bn-desk-v2 .bn-tabs:has(#bn-tab-rules:checked) .bn-pane-rules { grid-template-columns: none; }
.cc-sheriff .bn-desk-v2 .bn-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bn-desk-v2 .bn-settings { display: flex; flex-direction: column; gap: 10px; }
.bn-desk-v2 .bn-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 12px; align-items: start; }
.bn-desk-v2 .bn-fields > label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bn-desk-v2 .bn-fields > label > span { font-size: 0.74rem; font-weight: 700; }
.bn-desk-v2 .bn-fields > label.bn-check { flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.06); }
.bn-desk-v2 .bn-check > input { margin-top: 2px; }
.bn-desk-v2 .bn-check > span { display: flex; flex-direction: column; gap: 2px; }
.bn-desk-v2 .bn-weights { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.bn-desk-v2 .bn-inline { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: end; }
.bn-preview { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.bn-preview th, .bn-preview td { padding: 4px 6px; text-align: right; border-bottom: 1px solid rgba(58, 36, 18, 0.2); }
.bn-preview th:first-child, .bn-preview td:first-child { text-align: left; }
@media (max-width: 720px) { .bn-desk-v2 .bn-tabs, .cc-sheriff .bn-desk-v2 .bn-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; } }
.bn-desk-v2 .bn-tabs > label { padding: 7px 2px; font-size: 0.64rem; letter-spacing: 0.02em; }
.bn-desk-v2 .bn-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; }
.cc-sheriff .bn-desk-v2 .bn-tabs { grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: auto 1fr; }
@media (max-width: 1100px) { .cc-sheriff .bn-desk-v2 .bn-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; } }

/* The Sheriff's desk for admins (2026-11-24 evening, the owner's split): four tabs, Safeguards, Server bounty, Take down and
   the Log, two to a row; one row in the Command center. */
.bn-desk-v2.is-limited .bn-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; }
.cc-sheriff .bn-desk-v2.is-limited .bn-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto 1fr; }
@media (max-width: 720px) { .cc-sheriff .bn-desk-v2.is-limited .bn-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; } }

/* ----- Clans (2026-11-25, clans.py; clans.html and clan.html). A clan's colour comes from its class (clan-c-<colour>),
   never an inline style, so the CSP holds. ----- */
.clan-c-amber { --clan: #f5a524; } .clan-c-red { --clan: #ff453a; } .clan-c-green { --clan: #30d158; } .clan-c-blue { --clan: #0a84ff; }
.clan-c-purple { --clan: #bf5af2; } .clan-c-teal { --clan: #64d2ff; } .clan-c-pink { --clan: #ff375f; } .clan-c-stone { --clan: #8e8e93; }
.clans-page, .clan-page { display: grid; gap: 18px; }
.clans-head h1, .clan-hero h1 { margin: 0 0 6px; }
.clans-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
.clan-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; align-items: start; }
.clan-side { display: grid; gap: 18px; }
.clan-side h2, .clans-mine h2, .clan-desk h2, .clans-boards h2 { margin-top: 0; }
.clans-or { margin: 18px 0 6px; font-size: 1rem; color: var(--muted); }
.clan-banner { display: grid; place-items: center; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--clan, var(--accent)) 22%, var(--panel));
  border: 2px solid var(--clan, var(--line)); overflow: hidden; }
.clan-banner img { width: 86%; height: 86%; object-fit: contain; display: block; }
.clan-banner-sm { width: 34px; height: 34px; border-radius: 9px; }
.clan-banner-md { width: 52px; height: 52px; }
.clan-banner-lg { width: 112px; height: 112px; border-radius: 20px; box-shadow: 0 0 28px color-mix(in srgb, var(--clan) 45%, transparent); }
.clan-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-color: color-mix(in srgb, var(--clan) 45%, var(--line));
  background: linear-gradient(120deg, color-mix(in srgb, var(--clan) 14%, var(--panel)), var(--panel) 60%); }
.clan-hero-text { flex: 1 1 280px; min-width: 0; }
.clan-hero-text .lead { margin: 4px 0; }
.clan-hero-actions { display: grid; gap: 8px; justify-items: start; }
.clan-tag { color: var(--clan, var(--accent)); }
.clan-list, .clan-member-list, .clan-log, .clan-invites, .clan-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.clan-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; background: var(--bg-2); }
.clan-row:hover { border-color: var(--line); background: var(--panel-raised); }
.clan-row.is-mine { border-color: rgba(244, 178, 95, 0.45); }
.clan-row-text { display: grid; min-width: 0; flex: 1 1 auto; }
.clan-row-text b, .clan-row-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clan-row-text small { color: var(--muted); }
.clan-row-nums { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.clan-open { padding: 0 8px; border-radius: 999px; background: rgba(87, 242, 135, 0.13); color: var(--green); font-style: normal; font-weight: 700; }
.clan-invite { margin-bottom: 8px; }
.invite .clan-banner { flex: none; } /* the site's .invite span would stretch it */
.clan-form { display: grid; gap: 10px; }
.clan-form label { display: grid; gap: 2px; font-weight: 600; font-size: 0.92rem; }
.clan-form .text { margin-top: 2px; width: 100%; }
.clan-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.clan-form legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 0.92rem; }
.clan-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.clan-tag-input { text-transform: uppercase; }
.clan-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.clan-emblems { display: flex; flex-wrap: wrap; gap: 6px; }
.clan-emblem { position: relative; display: block !important; cursor: pointer; }
.clan-emblem input, .clan-colour input { position: absolute; opacity: 0; pointer-events: none; }
.clan-emblem img { width: 40px; height: 40px; padding: 3px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg-2); display: block; }
.clan-emblem input:checked + img { border-color: var(--accent); background: rgba(244, 178, 95, 0.14); }
.clan-emblem input:focus-visible + img, .clan-colour input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.clan-colours { display: flex; flex-wrap: wrap; gap: 6px; }
.clan-colour { position: relative; display: block !important; cursor: pointer; }
.clan-colour span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 2px solid var(--line); border-radius: 999px; font-size: 0.85rem; }
.clan-colour span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--clan); }
.clan-colour input:checked + span { border-color: var(--clan); background: color-mix(in srgb, var(--clan) 16%, transparent); }
.clan-boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.clan-board h3 { margin: 0 0 8px; font-size: 1.05rem; }
.clan-board ol { margin: 0; padding: 0; list-style: none; counter-reset: clan; display: grid; gap: 6px; }
.clan-board li { counter-increment: clan; display: flex; align-items: center; gap: 8px; }
.clan-board li::before { content: counter(clan); width: 1.4em; color: var(--muted); font-weight: 700; text-align: right; }
.clan-board li a { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; color: var(--text); text-decoration: none; }
.clan-board li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clan-board li a:hover span { text-decoration: underline; }
.clan-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.clan-stat { display: grid; gap: 2px; padding: 14px 18px; }
.clan-stat span { color: var(--muted); font-weight: 600; }
.clan-stat b { font: 700 1.9rem/1.1 var(--display); }
.clan-stat small { color: var(--accent); }
.clan-member { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-2); }
.clan-member.is-leader { border-color: rgba(244, 178, 95, 0.45); }
.clan-member-text { display: grid; flex: 1 1 260px; min-width: 0; }
.clan-member-text a { color: var(--text); font-weight: 700; text-decoration: none; }
.clan-member-text a:hover { text-decoration: underline; }
.clan-member-text small { color: var(--muted); }
.clan-member-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; }
.clan-member-tools form, .clan-invites form { margin: 0; }
button.link.danger { color: var(--red); }
.clan-invites li { display: flex; justify-content: space-between; gap: 10px; }
.clan-log li { font-size: 0.9rem; color: #c9d6cf; }
.clan-log time { color: var(--muted); margin-right: 4px; }
.clan-facts li { color: #c9d6cf; }
.clan-admin { border-color: rgba(237, 66, 69, 0.3); }
.clan-admin .clan-form { margin-bottom: 14px; }
@media (max-width: 860px) {
  .clans-grid, .clan-grid, .clan-boards { grid-template-columns: minmax(0, 1fr); }
  .clan-stats { gap: 8px; }
  .clan-stat { padding: 10px 12px; }
  .clan-stat span, .clan-stat small { font-size: 0.78rem; }
  .clan-stat b { font-size: 1.4rem; }
  .clan-row { flex-wrap: wrap; }
  .clan-row-nums { justify-content: flex-start; flex: 1 1 100%; }
}
.profile-clan { margin: 2px 0 6px; font-weight: 700; }
.profile-clan a { color: var(--text); text-decoration: none; }
.profile-clan a:hover { text-decoration: underline; }
.clan-settings { max-width: 560px; }
.clan-form .small-btn { justify-self: start; }

/* 🪙 Skin Gallery "Amber goes to the maker" note (2026-11-26, Vengefulmink). A slim amber ribbon above the species chips:
   coin, headline + text (admin-editable, gallery desk > Note), a wax-seal "100% to the maker" stamp on wide screens. */
.sg-note { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 14px; border-radius: 12px;
  border: 1px solid rgba(245, 166, 35, .45); border-left: 4px solid #f5a623;
  background: linear-gradient(100deg, rgba(245, 166, 35, .16), rgba(245, 166, 35, .05) 55%, rgba(20, 28, 24, .6)); }
.sg-note-coin { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 1.15rem;
  background: radial-gradient(circle at 35% 30%, #ffe2a0, #d58a12 70%); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 12px rgba(245, 166, 35, .35); }
.sg-note-body { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .9rem; line-height: 1.35; color: #e6ddc8; overflow-wrap: anywhere; }
.sg-note-body strong { color: #ffd27a; font-weight: 800; margin-right: 4px; }
.sg-note-seal { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  transform: rotate(-10deg); text-align: center; font-size: .5rem; font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: .04em;
  color: #ffe9c2; background: radial-gradient(circle at 40% 35%, #c2402f, #7d1a10 72%); border: 2px dashed rgba(255, 233, 194, .55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5); padding: 4px; }
.sg-note-seal b { display: block; font-size: .88rem; letter-spacing: 0; }
@media (max-width: 760px) {
  .sg-note { padding: 7px 10px; gap: 9px; }
  .sg-note-seal { display: none; }
  .sg-note-body { font-size: .84rem; }
}
.gd-tabs.gd-tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-tabs:has(#gd-tab-note:checked) .gd-pane-note { display: flex; }
.gd-note-text { width: 100%; resize: vertical; min-height: 64px; font: inherit; }
.gd-note-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* 🏷️ Skin Gallery: makers set their own price (2026-11-27, Vengefulmink). Price box on the maker's own cards + desk min/max. */
.sg-pricef { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; min-width: 0; }
.sg-pricef label { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; font-size: .82rem; color: #ffd27a; font-weight: 700; white-space: nowrap; }
.sg-pricef input { flex: 1 1 70px; min-width: 0; width: 100%; max-width: 120px; padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(245, 166, 35, .45); background: #0f1513; color: #fff; font: inherit; font-weight: 600; }
.sg-pricef .button { flex: 0 0 auto; padding: 5px 12px; font-size: .8rem; }
.sg-pricehint { display: block; }
.gd-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* ===== Admin desks, round 4 (2026-11-27, Vengefulmink: "layout, ease of access, and ease of use needs to be top
   priority. making sure everything can be seen clearly. also make them sizable and moveable on screen. when clicking
   out they'll reset back to their original place"). desk-win.js adds the move bar, the edges/corner that resize, and
   closes a desk when the page is clicked; nothing is saved, a desk always opens in its first place and size. ===== */
/* one width for every page desk: the 420px ones (Server, Dino, Bloodline, AI, Voice) squeezed their tabs into two rows.
   The Player desk keeps its 680px and Home's desk over the docked chat keeps the chat's width (more specific rules). */
.adm-drawer > .adm-desk, .has-desk-btn .adm-drawer > .adm-desk { width: min(640px, calc(100vw - 24px)); box-sizing: border-box; }
/* tabs: as many to a row as fit, so a wider desk lays them out in one row (the :not(#id) only lifts it over older rules) */
.adm-drawer .adm-desk .adm-tabs:not(#dw-x) { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.adm-drawer .adm-desk .adm-tabs:not(#dw-x) > label { padding: 8px 4px; font-size: 0.8rem; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
/* readable small print: hints, ranges and "default 100" notes were 9-10px on most desks */
.adm-drawer .adm-desk small, .adm-drawer .adm-desk th, .cc-desk small, .cc-desk th,
.adm-drawer .adm-desk .dc-mut-hint, .cc-desk .dc-mut-hint, .adm-drawer .adm-desk .bn-hint { font-size: max(11.5px, 0.8em); }
.adm-drawer .adm-desk .adm-note, .adm-drawer .adm-desk .adm-loglist > summary { font-size: max(12px, 0.8rem); }
/* the move bar: always on top of the desk, even when its content scrolls (sticky counts from inside the 14px padding) */
.adm-desk .dw-bar { position: sticky; top: -14px; z-index: 6; display: flex; align-items: center; gap: 8px; margin: -14px -14px 0; padding: 6px 6px 6px 12px;
  background: var(--adm-bg2, #1e2529); border-bottom: 1px solid rgba(230, 195, 90, 0.3); border-radius: 12px 12px 0 0;
  box-shadow: inset 0 3px 0 var(--adm-gold, #e6c35a); cursor: grab; user-select: none; touch-action: none; }
.adm-desk .dw-grip { color: var(--adm-gold, #e6c35a); font-size: 1rem; line-height: 1; letter-spacing: -1px; }
.adm-desk .dw-name { font-weight: 800; font-size: 0.86rem; color: var(--adm-ink, #e8e4d8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.adm-desk .dw-hint { flex: 1; min-width: 0; font-size: 0.74rem; color: var(--adm-dim, #a9a291); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-desk .dw-btn { flex: none; display: grid; place-items: center; width: 30px; height: 28px; padding: 0; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); color: var(--adm-ink, #e8e4d8); font: 800 0.9rem/1 inherit; }
.adm-desk .dw-btn:hover { background: rgba(230, 195, 90, 0.22); border-color: rgba(230, 195, 90, 0.6); }
.adm-desk .dw-close:hover { background: rgba(237, 66, 69, 0.3); border-color: #ed4245; }
.adm-desk .dw-btn:focus-visible { outline: 2px solid var(--adm-gold, #e6c35a); outline-offset: 1px; }
.adm-desk:not(.dw-moved) .dw-reset { opacity: 0.45; }
/* the view switch the open desk carries (site.js) sits right under the bar */
.adm-desk > .dw-bar + .admin-switch.in-desk { margin-top: 0; }
/* the resize corner: pinned to the desk's bottom-right while the content scrolls */
.adm-desk .dw-foot { position: sticky; bottom: -14px; z-index: 6; height: 0; margin: auto -14px -14px; pointer-events: none; }
.adm-desk .dw-corner { position: absolute; right: 3px; bottom: -11px; width: 16px; height: 16px; pointer-events: auto; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 0 45%, rgba(230, 195, 90, 0.75) 45% 53%, transparent 53% 64%, rgba(230, 195, 90, 0.75) 64% 72%, transparent 72%); }
.adm-desk.dw-moved { box-shadow: inset 0 3px 0 var(--adm-gold, #e6c35a), 0 18px 44px rgba(0, 0, 0, 0.6); }
html.dw-dragging, html.dw-dragging * { user-select: none !important; }
html.dw-dragging .dw-bar { cursor: grabbing; }
/* Command center desks are areas of their page, not pop-ups: no bar there */
.cc .dw-bar, .cc .dw-foot { display: none; }
/* phones: the desk stays fixed in place (no dragging on a touch screen), the ✕ stays */
@media (max-width: 759px) { .adm-desk .dw-hint, .adm-desk .dw-reset, .adm-desk .dw-corner { display: none; } .adm-desk .dw-bar { cursor: default; } .adm-desk .dw-name { flex: 1; } }
/* the Sheriff's desk in its pop-up: the Command center's plain look (its colours come from .cc there) */
.dw-sheriff { --cc-ink: #e9e5da; --cc-dim: #a9a291; --cc-gold: #e6c35a; --cc-line: rgba(255, 255, 255, .08); }
.adm-drawer .dw-sheriff .bn-desk-head { display: none; }
.adm-drawer .dw-sheriff .bn-desk { height: auto; overflow: visible; }
.adm-drawer .dw-sheriff .bn-desk-v2 .bn-tabs { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); grid-template-rows: none; }
.adm-drawer .dw-sheriff .bn-pane { overflow: visible; }
/* the Clans desks in their pop-ups */
.adm-desk .dw-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.86rem; cursor: pointer; }
.adm-desk .dw-check input { margin-top: 3px; }
.adm-desk .clan-facts { margin: 0; padding-left: 18px; font-size: 0.86rem; line-height: 1.6; }
.adm-desk .clan-desk, .adm-desk .clan-admin { display: flex; flex-direction: column; gap: 10px; border: 0; }
.adm-desk .clan-admin .adm-fields { grid-template-columns: minmax(70px, 0.4fr) minmax(0, 1.6fr); }

/* the AI desk's Zones tab, laid out again (2026-11-27, Vengefulmink: "this whole desk can be layed out better"):
   three small tabs (zones | draw | combat tag), each zone one tidy row with ✏ Edit and 🗑 at its right */
.pv-pane-zones { gap: 10px; }
.pv-ztabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); }
.pv-ztabs > input { position: absolute; opacity: 0; pointer-events: none; }
.pv-ztabs > label { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border-radius: 8px; cursor: pointer;
  font-weight: 800; font-size: 0.82rem; color: var(--adm-dim); text-align: center; line-height: 1.2; }
.pv-ztabs > label:hover { color: var(--adm-ink); background: rgba(255, 255, 255, 0.05); }
.pv-ztabs > input:checked + label { background: var(--adm-gold); color: #1d1405; }
.pv-ztabs > input:focus-visible + label { outline: 2px solid var(--adm-gold); outline-offset: 1px; }
.pv-ztabs b { min-width: 1.6em; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.74rem; }
.pv-ztabs em { font-style: normal; font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; }
.pv-ztabs em.is-on { background: rgba(87, 242, 135, 0.18); color: #57f287; }
.pv-ztabs em.is-off { background: rgba(255, 255, 255, 0.1); }
.pv-ztabs > input:checked + label b, .pv-ztabs > input:checked + label em { background: rgba(0, 0, 0, 0.18); color: #1d1405; }
.pv-zsec { display: none; flex-direction: column; gap: 10px; min-width: 0; }
.pv-pane-zones:has(#pv-zt-list:checked) .pv-zsec-list, .pv-pane-zones:has(#pv-zt-draw:checked) .pv-zsec-draw,
.pv-pane-zones:has(#pv-zt-tag:checked) .pv-zsec-tag { display: flex; }
.pv-zsec .pv-zkey { font-size: 0.8rem; }
.pv-zsec .pv-zkey small { font-size: 0.74rem; }
/* each zone: name and details on the left, ✏ Edit and 🗑 side by side on the right */
.pv-zsec .pv-zones { display: flex; flex-direction: column; gap: 4px; }
.pv-zsec .pv-zones > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 6px; row-gap: 2px;
  padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 8px; background: rgba(0, 0, 0, 0.18); }
.pv-zsec .pv-zones > li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.pv-zsec .pv-zones > li > b, .pv-zsec .pv-zones > li > .pv-zfold { grid-column: 1; grid-row: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.9rem; }
.pv-zsec .pv-zones > li > span { grid-column: 1; grid-row: 2; color: var(--adm-dim); font-size: 0.78rem; }
.pv-zsec .pv-zones > li > button, .pv-zsec .pv-zones > li > form { grid-row: 1 / span 2; margin: 0; }
.pv-zsec .pv-zones > li .adm-btn { padding: 6px 10px; white-space: nowrap; }
.pv-zsec .pv-zones > li.pv-zin { margin-left: 16px; border-left: 3px solid color-mix(in srgb, var(--adm-gold) 55%, transparent); padding-left: 10px; }
.pv-zsec .pv-zones > li.pv-zgroup { background: rgba(230, 195, 90, 0.1); border-color: rgba(230, 195, 90, 0.3); }
.pv-zsec .pv-zones > li.pv-ghost { display: block; color: var(--adm-dim); }
.pv-zsec .pv-zones .pv-zt { font-size: 0.72rem; padding: 2px 7px; }
.pv-zsec .pv-znew { align-self: flex-start; padding: 9px 16px; }
/* draw / edit */
.pv-zsec .pv-ztitle { font-size: 0.8rem; }
.pv-zsec .pv-ztypes label { padding: 8px; font-size: 0.82rem; }
.pv-zsec .pv-ztypes label small { font-size: 0.74rem; }
.pv-zfields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 10px; }
.pv-zsec .pv-zname { font-size: 0.8rem; }
.pv-zsec .pv-drawn { margin: 0; font-size: 0.82rem; color: var(--adm-dim); }
.pv-zsec .pv-zacts { position: sticky; bottom: 0; z-index: 2; padding: 8px 0 2px; background: linear-gradient(transparent, var(--adm-bg) 30%); }
/* combat tag: the switch and the seconds on one line */
.pv-tagrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; }
.pv-tagsecs { display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem; color: var(--adm-dim); }
.pv-tagsecs input { width: 7em; text-align: center; }
.pv-zsec .pv-safe-rules > .adm-btn { align-self: flex-start; }

/* Player desk: long staff badge names wrap instead of being cut off ("Chief Chicken Chaser") */
.adm-desk .pd-staff-btn b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* readable small print, part 2 (checked on every desk after round 4): field captions and the Sheriff's tab names */
.adm-drawer .adm-desk .adm-grid3 label > span, .adm-drawer .adm-desk .pv-grid label > span { font-size: 0.76rem; line-height: 1.25; }
.adm-drawer .dw-sheriff .bn-desk-v2 .bn-tabs > label { padding: 8px 4px; font-size: 0.8rem; }

/* the 🎨 desk-look button on desks without a heading row (the Player desk) sat on the new move bar: under it now */
.adm-drawer .adm-desk > .lk-chip:not(.is-inline) { top: 50px; right: 14px; }

/* 🖼 Events desk, Lineup editor: the event's background picture with a preview and "Upload your own picture" (2026-11-27) */
.ed-art { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 10px 14px; align-items: start; }
.ed-art-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--adm-line, rgba(255, 255, 255, 0.15)); background: rgba(0, 0, 0, 0.3); }
.ed-art-side { display: grid; gap: 8px; min-width: 0; }
.ed-art-side .ed-art-up { justify-self: start; cursor: pointer; }
.ed-art-note { color: var(--adm-dim); font-size: max(11.5px, 0.8em); line-height: 1.35; }
@media (max-width: 520px) { .ed-art { grid-template-columns: 1fr; } }

/* 🛡️ "Sentinels of the North" staff badge (2026-11-27, Vengefulmink: "make it a cool design. something that stands out"):
   frost steel and northern lights. Templates add is-k-<badge key> to every medal, so any badge can get its own look like this. */
.medal.is-k-sentinels_north { position: relative; isolation: isolate; overflow: hidden; color: #eaf6ff;
  border: 1px solid transparent !important;
  background: linear-gradient(165deg, #0d1b33 0%, #0a1426 55%, #081020 100%) padding-box,
    linear-gradient(120deg, #9ff3ff, #4fd6a8 30%, #8a7dff 60%, #d8f4ff 85%, #9ff3ff) border-box !important;
  box-shadow: 0 0 0 1px rgba(160, 240, 255, .25), 0 0 18px rgba(90, 210, 255, .35), 0 0 34px rgba(130, 110, 255, .18) !important; }
/* the aurora band across the top, and frost dust */
.medal.is-k-sentinels_north::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 55% at 50% -12%, rgba(79, 214, 168, .55), rgba(90, 160, 255, .28) 45%, transparent 70%),
    radial-gradient(60% 40% at 85% 0%, rgba(138, 125, 255, .45), transparent 70%),
    radial-gradient(1.5px 1.5px at 18% 72%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 64%, #dff6ff, transparent),
    radial-gradient(1px 1px at 40% 88%, #fff, transparent), radial-gradient(1px 1px at 63% 80%, #cfefff, transparent); }
.medal.is-k-sentinels_north::after { content: "❄"; position: absolute; top: 3px; right: 7px; font-size: .7rem; line-height: 1;
  color: rgba(220, 245, 255, .85); text-shadow: 0 0 6px rgba(160, 230, 255, .9); pointer-events: none; }
/* the emblem: an ice-steel shield, not the round medal */
.medal.is-k-sentinels_north .medal-ico { border-radius: 0; clip-path: polygon(50% 0, 100% 16%, 100% 58%, 50% 100%, 0 58%, 0 16%);
  background: linear-gradient(160deg, #f4fdff 0%, #9fdcf5 28%, #3d7fb8 62%, #14315c 100%) !important;
  box-shadow: none !important; filter: drop-shadow(0 0 6px rgba(140, 225, 255, .8)); }
.medal.is-k-sentinels_north b { color: #e6f8ff; letter-spacing: .04em; text-transform: uppercase; font-size: .74rem;
  text-shadow: 0 0 8px rgba(120, 220, 255, .75), 0 1px 0 rgba(0, 0, 0, .6); }
.medal.is-k-sentinels_north small { color: #a9d8ee !important; }
.badge-wall .medal.is-k-sentinels_north { padding-top: 12px; }
.badge-wall .medal.is-k-sentinels_north .medal-ico { width: 44px; height: 48px; }
.medal-row .medal.is-k-sentinels_north { padding-right: 18px; }
.medal-row .medal.is-k-sentinels_north::after { top: 50%; right: 6px; transform: translateY(-50%); }
.medal-row .medal.is-k-sentinels_north .medal-ico { width: 28px; height: 31px; }
/* the Player desk's give/take button for it */
.pd-staff-btn.is-k-sentinels_north { border-color: rgba(150, 230, 255, .55);
  background: linear-gradient(135deg, rgba(79, 214, 168, .16), rgba(90, 160, 255, .16) 50%, rgba(138, 125, 255, .16)); }
.pd-staff-btn.is-k-sentinels_north b { color: #bfefff; text-shadow: 0 0 6px rgba(120, 220, 255, .55); }
.pd-staff-btn.is-k-sentinels_north.is-on { border-color: #9ff3ff; box-shadow: 0 0 12px rgba(120, 220, 255, .35);
  background: linear-gradient(135deg, rgba(79, 214, 168, .32), rgba(90, 160, 255, .3) 50%, rgba(138, 125, 255, .32)); }

/* staff badge buttons on the Player desk show their whole name and description (Vengefulmink 2026-11-27: "it gets cut off") */
.adm-desk .pd-staff-btn { align-items: start; }
.adm-desk .pd-staff-btn .pd-staff-ico { align-self: center; }
.adm-desk .pd-staff-btn small { display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: anywhere; }

/* Bounties: clock paused under the grown % (2026-11-27) */
.bn-paused { display: block; font-weight: 700; color: #7a2e12; }

/* ----- 🏷️ Stored dino names (2026-11-27, Vengefulmink: name the dino in storage, edit it any time) ----- */
.stored-name { flex-basis: 100%; min-width: 0; overflow-wrap: anywhere; color: var(--accent); font-size: 1rem; line-height: 1.25; }
.stored-list[data-pager] .stored-name { display: block; }
.stored-rename { min-width: 0; }
.stored-rename > summary { cursor: pointer; width: max-content; max-width: 100%; font-size: 0.8rem; font-weight: 700; color: var(--muted, #b9b3a6); list-style: none; }
.stored-rename > summary::-webkit-details-marker { display: none; }
.stored-rename > summary:hover, .stored-rename[open] > summary { color: var(--accent); }
.stored-name-form { display: flex; gap: 6px; margin: 6px 0 0; min-width: 0; }
.stored-name-form .text { flex: 1 1 auto; min-width: 0; width: auto; padding: 5px 8px; }
.stored-name-form .button { flex: none; padding: 5px 12px; }
.stored-name-help { margin: 4px 0 0; font-size: 0.74rem; line-height: 1.35; }
.adm-tabs:has(#adm-tab-store:checked) .adm-pane-store { display: flex; }
.pd-store .pd-card-title { overflow-wrap: anywhere; }
.sd-tabs:has(#sd-tab-names:checked) .sd-pane-names { display: flex; }
.sn-words { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sn-words > span { font-size: 0.76rem; color: var(--adm-dim); line-height: 1.25; }
.sn-words textarea { resize: vertical; min-height: 90px; max-height: 260px; font: inherit; font-size: 0.85rem; }

/* ----- ⭐ Reviews page + Home's 3 reviews (2026-11-27, Vengefulmink: 1–5 dinos, a short post, admin replies, owner deletes) ----- */
.rv-dinos { display: inline-flex; gap: 1px; line-height: 1; white-space: nowrap; }
.rv-dinos i { font-style: normal; font-size: 1em; }
.rv-dinos i.off { filter: grayscale(1); opacity: .28; }
.rv-page { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; min-height: 0; }
.rv-side { display: grid; gap: 18px; min-width: 0; }
.rv-score, .rv-write, .rv-main { min-width: 0; }
.rv-title { margin: 0 0 10px; font-family: var(--display); font-size: 1.6rem; letter-spacing: .02em; }
.rv-sub { margin: 0 0 10px; font-family: var(--display); font-size: 1.1rem; }
.rv-avg { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rv-avg > b { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--accent); }
.rv-avg > span { display: grid; gap: 3px; font-size: 1.25rem; }
.rv-avg small { font-size: .8rem; color: var(--muted); }
.rv-bars { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rv-bar { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) 2.6em; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .85rem; }
.rv-bar:hover, .rv-bar.is-on { background: rgba(244, 178, 95, .12); }
.rv-bar.is-on { outline: 1px solid var(--accent); }
.rv-bar progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.rv-bar progress::-webkit-progress-bar { background: var(--line-soft); border-radius: 99px; }
.rv-bar progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.rv-bar progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.rv-bar-c { text-align: right; color: var(--muted); }
.rv-form { display: grid; gap: 10px; }
.rv-form textarea, .rv-reply-form textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 84px; max-height: 260px; font: inherit; }
.rv-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
.rv-pick legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rv-pick-h { margin-bottom: -6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.rv-pick input { position: absolute; opacity: 0; pointer-events: none; }
.rv-pick label { cursor: pointer; font-size: 1.7rem; line-height: 1; filter: grayscale(1); opacity: .3; transition: opacity .12s, transform .12s; }
.rv-pick input:checked ~ label, .rv-pick label:hover, .rv-pick label:hover ~ label { filter: none; opacity: 1; }
.rv-pick label:hover { transform: translateY(-2px); }
.rv-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.rv-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rv-form-foot small { flex: 1 1 160px; }
.rv-main { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 140px); }
.rv-msg { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .9rem; }
.rv-msg.is-done { background: rgba(87, 242, 135, .1); border: 1px solid rgba(87, 242, 135, .35); }
.rv-msg.is-bad { background: rgba(237, 66, 69, .1); border: 1px solid rgba(237, 66, 69, .4); }
.rv-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chip { padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); text-decoration: none; font-size: .85rem; white-space: nowrap; }
.rv-chip:hover { border-color: var(--accent); }
.rv-chip.is-on { background: var(--accent); border-color: var(--accent); color: #1d1206; font-weight: 700; }
.rv-admin-find { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 320px; min-width: 0; }
.rv-admin-find .text { flex: 1 1 120px; min-width: 0; padding: 6px 10px; }
.rv-found { margin: 0; }
.rv-list { display: grid; gap: 10px; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 4px; align-content: start; }
.rv-card { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-raised); min-width: 0; }
.rv-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rv-who { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
a.rv-who:hover { color: var(--accent); }
.rv-home-tag { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: rgba(244, 178, 95, .14); font-size: .74rem; }
.rv-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.rv-reply { padding: 8px 12px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: rgba(244, 178, 95, .07); }
.rv-reply b { font-size: .82rem; color: var(--accent); }
.rv-reply p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.45; }
.rv-tools { border-top: 1px dashed var(--line); padding-top: 6px; }
.rv-tools > summary { cursor: pointer; width: max-content; font-size: .8rem; font-weight: 700; color: var(--muted); }
.rv-tools[open] > summary { color: var(--accent); margin-bottom: 8px; }
.rv-tools form { margin: 0 0 8px; }
.rv-reply-form { display: grid; gap: 6px; }
.rv-tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rv-home-pick .adm-btn { min-width: 2.4em; }
.rv-home-pick .adm-btn.is-on { background: var(--accent); color: #1d1206; }
.rv-empty { display: grid; justify-items: center; gap: 4px; padding: 40px 12px; text-align: center; color: var(--muted); }
.rv-empty span { font-size: 2.2rem; filter: grayscale(.6); }
.rv-empty b { color: var(--text); }
.rv-empty p { margin: 0; }
.rv-pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
@media (max-width: 860px) {
  .rv-page { grid-template-columns: minmax(0, 1fr); }
  .rv-main { max-height: none; }
  .rv-list { overflow: visible; }
}
.hero > .hero-reviews { grid-column: 1 / -1; position: relative; z-index: 1; align-self: end; width: 100%; margin-top: 4px; }
.hr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hr-head h2 { margin: 0; font-family: var(--display); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.hr-head a { font-size: .85rem; white-space: nowrap; }
.hr-note { margin: 0 0 8px; font-size: .85rem; color: var(--green); }
.hr-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hr-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(6, 11, 10, .58); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.hr-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .95rem; }
.hr-slot { padding: 1px 7px; border-radius: 99px; background: rgba(244, 178, 95, .16); font-size: .72rem; color: var(--accent); }
.hero .hr-body { display: block; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }  /* the whole review, never cut off (person, 2026-11-27) */
.hero .hr-body:hover { color: var(--accent); text-decoration: none; }
.hr-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: .82rem; color: #c9d6cf; min-width: 0; }
.hr-foot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.hr-foot form { margin: 0 0 0 auto; }
.hr-replied { flex: none; }
.hr-auto { padding: 1px 7px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.hr-auto:hover { color: var(--accent); border-color: var(--accent); }
.hr-empty { margin: 0; font-size: .9rem; color: var(--muted); }
.hr-change { border-top: 1px dashed rgba(255, 255, 255, .14); padding-top: 6px; text-shadow: none; }
.hr-change > summary { cursor: pointer; width: max-content; max-width: 100%; font-size: .78rem; font-weight: 700; color: var(--accent); }
.hr-pick { display: grid; gap: 6px; margin-top: 8px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.hr-pick button { display: grid; gap: 3px; width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(6, 11, 10, .85); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.hr-pick button:hover, .hr-pick button:focus-visible { border-color: var(--accent); }
.hr-pick-top { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .78rem; }
.hr-pick-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-pick-top em { margin-left: auto; font-style: normal; font-size: .7rem; color: var(--accent); white-space: nowrap; }
.hr-pick-text { font-size: .8rem; line-height: 1.35; color: #c9d6cf; overflow-wrap: anywhere; }
.hr-pick-none { margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .hr-list { grid-template-columns: minmax(0, 1fr); } }
