@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/_a/fredoka-latin.27d49d7c83.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/_a/figtree-latin.8330490a01.woff2") format("woff2");
}

:root {
  --bg: #f3f6f0;
  --surface: #ffffff;
  --surface-alt: #e8efe3;
  --surface-tint: #eef4ea;
  --bar: #141e1c;
  --bar-2: #1c2a27;
  --bar-line: #2a3e39;
  --ink: #15211c;
  --ink-2: #3b4f46;
  --mute: #586d63;
  --on-dark: #f2f7f3;
  --on-dark-dim: #b4c7be;
  --border: #ccd8c7;
  --border-strong: #1b2b24;
  --green: #207619;
  --green-hi: #298e20;
  --green-bright: #37c519;
  --green-soft: #e4f6df;
  --red: #be2218;
  --red-soft: #fdeceb;
  --blue: #0b66b5;
  --blue-soft: #e7f3fd;
  --gold: #945600;
  --gold-soft: #fff4dd;
  --r-common: #4f607d;
  --r-common-bg: #edf1f7;
  --r-uncommon: #147528;
  --r-uncommon-bg: #e7f8eb;
  --r-rare: #0b66b5;
  --r-rare-bg: #e6f3ff;
  --r-epic: #7329d6;
  --r-epic-bg: #f3ebff;
  --r-legendary: #945600;
  --r-legendary-bg: #fff4df;
  --r-mythic: #c4211a;
  --r-mythic-bg: #ffebe9;
  --r-cosmic: #5340c4;
  --r-cosmic-bg: #efecff;
  --f-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, sans-serif;
  --rad-sm: 8px;
  --rad-md: 14px;
  --rad-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-sm: 0 2px 6px rgba(20, 30, 28, 0.06);
  --shadow-md: 0 6px 20px rgba(20, 30, 28, 0.1);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bar); color: var(--on-dark); font-family: var(--f-body); font-size: 16px; line-height: 1.65; scroll-behavior: smooth; scrollbar-color: #9bb0a2 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; caret-color: var(--green); -webkit-font-smoothing: antialiased; }
::selection { background: #c5f0b8; color: var(--bar); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.18; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface-alt); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); }
.num, td.num, th.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--green-bright); color: var(--bar); font-family: var(--f-display); font-weight: 600; padding: 8px 14px; border-radius: var(--rad-sm); z-index: 200; text-decoration: none; }
.skip:focus { left: 12px; }
main { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; line-height: 1; padding: 11px 18px; border-radius: var(--rad-sm); border: 1.5px solid var(--border-strong); cursor: pointer; text-decoration: none; transition: transform 150ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: #ffffff; border-color: #195f14; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--green-hi); }
  a:hover { color: #195f14; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Top header bar (full-width 3-zone) & footer (1200px aligned bookend) */
.bar { position: sticky; top: 0; z-index: 100; background: var(--bar); color: var(--on-dark); border-bottom: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 4px 16px rgba(10, 18, 15, 0.14); }
.bar-in { width: 100%; padding: 0 24px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); flex-shrink: 0; }
.brand img, .brand svg { width: 34px; height: 34px; border-radius: 9px; display: block; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28); }
.brand-name { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 7px; background: rgba(55, 197, 25, 0.22); border: 1px solid rgba(94, 240, 62, 0.56); color: #67f549; font-size: 0.86em; font-weight: 700; letter-spacing: 0.015em; line-height: 1.15; }

.nav { margin: 0 auto; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a, .nav-list .nav-soon, .nav-label { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: var(--rad-sm); font-family: var(--f-display); font-weight: 500; font-size: 0.91rem; line-height: 1.1; text-decoration: none; color: var(--on-dark); white-space: nowrap; border: 0; background: transparent; cursor: pointer; transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out); }
.nav-list a:active, .nav-label:active { transform: scale(0.97); }
.nav-list a[aria-current="page"] { background: var(--green-bright); color: var(--bar); font-weight: 600; }
.nav-list .nav-soon { color: var(--on-dark-dim); opacity: 0.68; cursor: default; }
.nav-chev { width: 12px; height: 12px; transition: transform 180ms var(--ease-out); flex-shrink: 0; }
.nav-menu[data-open] .nav-chev { transform: rotate(180deg); }

.nav-sub { position: absolute; top: calc(100% + 9px); right: 0; min-width: 204px; list-style: none; margin: 0; padding: 6px; background: var(--bar-2); border: 1.5px solid var(--bar-line); border-radius: var(--rad-md); box-shadow: 0 14px 32px rgba(8, 14, 12, 0.42); transform-origin: top right; opacity: 0; visibility: hidden; pointer-events: none; transform: scale(0.96) translateY(-4px); transition: opacity 160ms var(--ease-out), transform 180ms var(--ease-out), visibility 160ms; }
.nav-menu[data-open] .nav-sub { opacity: 1; visibility: visible; pointer-events: auto; transform: scale(1) translateY(0); }
.nav-sub a, .nav-sub .nav-soon { width: 100%; justify-content: space-between; padding: 9px 11px; border-radius: 8px; font-size: 0.89rem; }
.nav-foot { display: none; }

/* Right utility cluster: version pill, Roblox CTA, Discord icon, quick search */
.bar-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.bar-ver { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: var(--rad-pill); background: var(--bar-2); border: 1px solid var(--bar-line); color: var(--on-dark); text-decoration: none; font-size: 0.79rem; line-height: 1; white-space: nowrap; transition: border-color 140ms ease, color 140ms ease; }
.bar-ver-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); flex-shrink: 0; }
.bar-ver b { font-family: var(--f-display); font-weight: 600; }

.bar-play { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--rad-sm); background: var(--green-bright); color: var(--bar); font-family: var(--f-display); font-weight: 600; font-size: 0.84rem; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: background-color 140ms ease, transform 140ms var(--ease-out); }
.bar-play:active { transform: scale(0.97); }

.bar-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--rad-sm); border: 1px solid var(--bar-line); background: var(--bar-2); color: var(--on-dark); text-decoration: none; cursor: pointer; flex-shrink: 0; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out); }
.bar-icon-btn:active { transform: scale(0.96); }

/* Site-wide quick search */
.bar-find { position: relative; }
.bar-find-btn { display: none; }
.find-box { position: relative; display: flex; align-items: center; width: 168px; }
.find-ic { position: absolute; left: 10px; color: var(--on-dark-dim); pointer-events: none; }
.find-in { width: 100%; height: 34px; padding: 0 28px 0 31px; border-radius: var(--rad-sm); border: 1px solid var(--bar-line); background: var(--bar-2); color: var(--on-dark); font-family: var(--f-body); font-size: 0.84rem; outline: none; transition: border-color 140ms ease, background-color 140ms ease; }
.find-in::placeholder { color: #8ea59a; }
.find-in:focus { border-color: var(--green-bright); background: #21332f; }
.find-in::-webkit-search-cancel-button { -webkit-appearance: none; }
.find-key { position: absolute; right: 7px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--bar-line); background: rgba(255, 255, 255, 0.05); color: var(--on-dark-dim); font-family: var(--f-body); font-size: 0.72rem; line-height: 1.3; pointer-events: none; }
.find-in:focus + .find-key { opacity: 0; }

.find-out { position: absolute; top: calc(100% + 9px); right: 0; width: 340px; max-height: 390px; overflow-y: auto; list-style: none; margin: 0; padding: 6px; background: var(--bar-2); border: 1.5px solid var(--bar-line); border-radius: var(--rad-md); box-shadow: 0 18px 42px rgba(6, 12, 10, 0.48); z-index: 120; display: none; }
.find-out[data-open] { display: block; }
.find-out li + li { margin-top: 2px; }
.find-out a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--on-dark); font-size: 0.88rem; line-height: 1.3; transition: background-color 120ms ease; }
.find-out a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-out small { flex-shrink: 0; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--on-dark-dim); font-family: var(--f-display); font-size: 0.71rem; font-weight: 500; }
.find-out li[aria-selected="true"] a { background: rgba(55, 197, 25, 0.2); color: #ffffff; }
.find-out li[aria-selected="true"] small { background: var(--green-bright); color: var(--bar); }
.find-out .find-none { padding: 8px 10px 6px; font-size: 0.82rem; color: var(--on-dark-dim); }

.bar-menu { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--rad-sm); border: 1px solid var(--bar-line); background: var(--bar-2); color: var(--on-dark); cursor: pointer; }
.bar-menu .i-close { display: none; }
.bar-menu[aria-expanded="true"] .i-open { display: none; }
.bar-menu[aria-expanded="true"] .i-close { display: block; }

@media (hover: hover) and (pointer: fine) {
  .brand:hover { color: #ffffff; }
  .brand:hover .brand-tag { background: rgba(55, 197, 25, 0.24); border-color: rgba(94, 240, 62, 0.6); }
  .nav-list a:not([aria-current="page"]):hover, .nav-label:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
  .nav-sub a:not([aria-current="page"]):hover { background: rgba(55, 197, 25, 0.18); color: #ffffff; }
  .bar-ver:hover { border-color: var(--green-bright); color: #ffffff; }
  .bar-play:hover { background: #4ddb2f; color: var(--bar); }
  .bar-discord:hover { background: rgba(88, 101, 242, 0.22); border-color: #7c87f8; color: #ffffff; }
  .bar-find-btn:hover { border-color: var(--green-bright); color: #ffffff; }
  .find-out a:hover { background: rgba(55, 197, 25, 0.18); color: #ffffff; }
}

/* Laptop refinement so 8 flat items + More + right tools breathe cleanly at 1280px */
@media (max-width: 1410px) {
  .bar-in { padding: 0 16px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img, .brand svg { width: 32px; height: 32px; }
  .brand-name { font-size: 0.98rem; gap: 5px; }
  .nav-list a, .nav-label { padding: 7px 8px; font-size: 0.85rem; }
  .bar-tools { gap: 6px; }
  .bar-ver { padding: 6px 8px; font-size: 0.76rem; }
  .bar-play { padding: 7px 9px; font-size: 0.81rem; }
  .find-box { width: 138px; }
  .find-in { padding: 0 10px 0 30px; font-size: 0.81rem; }
  .find-key { display: none; }
}

/* Tablet & mobile drawer */
@media (max-width: 1180px) {
  .bar-in { flex-wrap: wrap; padding: 10px 16px; min-height: 58px; gap: 8px; }
  .bar-ver { display: none; }
  .bar-menu { display: inline-flex; }
  .bar-find { position: static; }
  .bar-find-btn { display: inline-flex; }
  .bar-find .find-box { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px); width: auto; padding: 10px 16px; background: var(--bar); border-bottom: 1.5px solid var(--bar-line); box-shadow: 0 14px 32px rgba(6, 12, 10, 0.36); z-index: 115; }
  .bar-find[data-open] .find-box { display: flex; }
  .bar-find[data-open] .find-ic { left: 26px; }
  .bar-find[data-open] .find-in { height: 40px; font-size: 0.95rem; padding: 0 14px 0 36px; }
  .bar-find[data-open] .find-out { position: absolute; left: 16px; right: 16px; top: calc(100% + 60px); width: auto; max-height: 60vh; }

  .nav { order: 3; display: none; flex-basis: 100%; margin: 6px 0 4px; border-top: 1px solid var(--bar-line); padding-top: 10px; }
  .nav[data-open] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a, .nav-list .nav-soon, .nav-label { width: 100%; justify-content: space-between; padding: 10px 12px; font-size: 0.96rem; }
  .nav-sub { position: static; min-width: 0; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.04); border: 0; padding: 4px 0 4px 12px; display: none; }
  .nav-menu[data-open] .nav-sub { display: block; }

  .nav-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bar-line); }
  .nav-foot-ver { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark-dim); text-decoration: none; font-size: 0.84rem; }
  .nav-foot-cta { display: flex; flex-wrap: wrap; gap: 8px; }
  .bar-dc-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--rad-sm); border: 1px solid var(--bar-line); background: var(--bar-2); color: var(--on-dark); font-family: var(--f-display); font-weight: 500; font-size: 0.84rem; text-decoration: none; }
}

@media (max-width: 620px) {
  .bar-tools .bar-play, .bar-tools .bar-discord { display: none; }
  .brand-name { font-size: 0.96rem; }
}

/* Footer: pine-charcoal bookend with version strip, dual CTAs, 4 link columns & bottom bar */
.foot { background: var(--bar); color: var(--on-dark); border-top: 1px solid var(--bar-line); margin-top: 64px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 44px 24px 36px; display: grid; grid-template-columns: minmax(320px, 1.85fr) repeat(4, minmax(120px, 1fr)); gap: 32px 24px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.foot-brand img, .foot-brand svg { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.foot-brand .brand-name { font-size: 1.06rem; }
.foot-about p { margin: 12px 0 0; font-size: 0.87rem; color: var(--on-dark-dim); line-height: 1.55; max-width: 38ch; }
.foot-ver { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px !important; padding: 6px 10px; border-radius: var(--rad-sm); background: var(--bar-2); border: 1px solid var(--bar-line); font-size: 0.78rem !important; line-height: 1.35 !important; color: var(--on-dark) !important; max-width: none !important; }
.foot-ver a { color: #5ef03e; font-weight: 600; text-decoration: none; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.foot-play, .foot-dc { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: var(--rad-sm); font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; text-decoration: none; white-space: nowrap; transition: transform 150ms var(--ease-out), background-color 150ms ease, border-color 150ms ease; }
.foot-play { background: var(--green-bright); color: var(--bar); }
.foot-dc { background: var(--bar-2); color: var(--on-dark); border: 1px solid var(--bar-line); }
.foot-play:active, .foot-dc:active { transform: scale(0.97); }
.foot-h { font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; color: #ffffff; margin: 0 0 11px; letter-spacing: 0.01em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--on-dark-dim); text-decoration: none; font-size: 0.87rem; transition: color 130ms ease; }
.foot-col .foot-soon { color: #7e968b; font-size: 0.87rem; }

.foot-base { border-top: 1px solid var(--bar-line); background: rgba(0, 0, 0, 0.16); }
.foot-base-in { max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; font-size: 0.8rem; color: #8da59a; }

@media (hover: hover) and (pointer: fine) {
  .foot-ver a:hover { text-decoration: underline; }
  .foot-play:hover { background: #4ddb2f; color: var(--bar); }
  .foot-dc:hover { background: rgba(88, 101, 242, 0.22); border-color: #7c87f8; color: #ffffff; }
  .foot-col a:hover { color: var(--green-bright); text-decoration: underline; }
}

@media (max-width: 980px) {
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 34px 16px 30px; gap: 24px 20px; }
  .foot-about { grid-column: 1 / -1; }
  .foot-base-in { padding: 14px 16px; }
}
@media (max-width: 340px) {
  .foot-in { grid-template-columns: 1fr; }
}

/* Single 1200px page container: header, main content column on the left, sticky TOC rail on the right */
.doc { max-width: var(--max); margin: 0 auto; padding: 26px 24px 0; }

/* Airy daylight header with right-fading farm art instead of a heavy dark slab */
.doc-head { position: relative; padding: 6px 0 28px; margin-bottom: 4px; border-bottom: 1.5px solid var(--border); overflow: hidden; }
.doc-head.has-art .head-art {
  position: absolute; z-index: 0; top: -18px; right: 0; width: min(56%, 640px); height: calc(100% + 36px);
  object-fit: cover; object-position: center 45%; opacity: 0.32; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 58%, #000 88%, transparent), linear-gradient(180deg, #000 68%, transparent);
  mask-image: linear-gradient(90deg, transparent 5%, #000 58%, #000 88%, transparent), linear-gradient(180deg, #000 68%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.doc-head-in { position: relative; z-index: 1; max-width: 900px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--mute); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.crumbs span[aria-current="page"] { color: var(--ink); font-weight: 700; }
.crumb-sep { opacity: 0.45; }

.doc-head h1 { color: var(--ink); font-size: clamp(1.95rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
.lead { margin: 12px 0 0; font-size: 1.04rem; line-height: 1.62; color: var(--ink-2); max-width: 72ch; }
.doc-meta { margin: 12px 0 0; font-size: 0.84rem; color: var(--mute); }
.doc-meta a { color: var(--green); font-weight: 600; }

/* Main column (left, flush with top brand + H1) + sticky TOC rail (right, 220px) */
.doc-body { padding-top: 24px; }
.doc-body.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; align-items: start; }
.doc-main { min-width: 0; }
.doc-body:not(.has-toc) .doc-main { max-width: 860px; }

.toc { position: sticky; top: 86px; padding-left: 18px; border-left: 1.5px solid var(--border); }
.toc-h { font-family: var(--f-display); font-weight: 600; font-size: 0.88rem; color: var(--ink); margin: 0 0 8px; }
.toc-page ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.toc-page a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 7px; font-size: 0.86rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: background-color 140ms ease, color 140ms ease; }
.toc-page a[aria-current="true"] { background: var(--green-soft); color: #195f14; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .crumbs a:hover { color: var(--green); text-decoration: underline; }
  .toc-page a:hover { background: var(--surface-alt); color: var(--ink); }
}

/* Sections & prose: full column alignment with cards and blocks */
.first { margin-bottom: 42px; }
.block { margin-top: 46px; scroll-margin-top: 84px; }
.block > h2 { font-size: clamp(1.38rem, 2.2vw, 1.72rem); font-weight: 600; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.prose > p { margin: 0 0 14px; color: var(--ink); }
.prose > ul, .prose > ol { margin: 0 0 16px; padding-left: 22px; }
.prose li + li { margin-top: 6px; }

/* Figures & screenshots */
.shot { margin: 20px 0 22px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 10px; box-shadow: var(--shadow-sm); }
.shot img { display: block; width: 100%; border-radius: 9px; }
.shot figcaption { margin-top: 9px; font-size: 0.85rem; color: var(--mute); line-height: 1.45; padding: 0 4px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 18px 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); box-shadow: var(--shadow-sm); }
table.data-tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data-tbl th { text-align: left; font-family: var(--f-display); font-weight: 600; font-size: 0.86rem; color: var(--on-dark); background: var(--bar); padding: 11px 14px; white-space: nowrap; }
table.data-tbl td { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: top; }
table.data-tbl tbody tr:nth-child(even) { background: #f8fbf6; }
@media (hover: hover) and (pointer: fine) {
  table.data-tbl tbody tr:hover { background: var(--green-soft); }
}

/* FAQ accordion */
.faq { display: grid; gap: 10px; }
.fold { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.fold summary { list-style: none; cursor: pointer; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.fold summary::-webkit-details-marker { display: none; }
.fold-ic { flex-shrink: 0; color: var(--green); transition: transform 180ms var(--ease-out); }
.fold[open] .fold-ic { transform: rotate(180deg); }
.fold-body { padding: 0 18px 16px; color: var(--ink-2); font-size: 0.95rem; }
.fold-body p { margin: 0; }
.fold-body p + p { margin-top: 10px; }

/* Related cards */
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.related a, .related-soon { display: block; height: 100%; padding: 14px 16px; border-radius: var(--rad-md); background: var(--surface); border: 1.5px solid var(--border); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 160ms var(--ease-out), border-color 160ms ease; }
.related a:active { transform: scale(0.98); }
.related b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; color: var(--ink); margin-bottom: 4px; }
.related span { display: block; font-size: 0.86rem; color: var(--mute); line-height: 1.45; }
.related-soon { opacity: 0.76; border-style: dashed; }
@media (hover: hover) and (pointer: fine) {
  .related a:hover { border-color: var(--green); transform: translateY(-2px); }
}

/* Comments */
.c-count { font-size: 0.85rem; color: var(--mute); font-weight: 500; }
.c-empty { margin: 0 0 14px; font-size: 0.92rem; color: var(--mute); }
.c-list:not(:empty) + .c-empty { display: none; }
.c-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; margin-bottom: 10px; }
.c-meta { margin: 0 0 6px; font-size: 0.84rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.c-meta b { color: var(--ink); }
.c-owner { background: var(--green-soft); color: #195f14; font-weight: 700; font-size: 0.72rem; padding: 1px 6px; border-radius: 5px; }
.c-text { margin: 0 0 8px; white-space: pre-wrap; }
.c-reply { border: 0; background: transparent; color: var(--green); font-weight: 600; font-size: 0.84rem; padding: 0; cursor: pointer; }
.c-replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--border); }
.c-form { display: grid; gap: 10px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 16px; }
.c-replying { display: none; margin: 0; font-size: 0.86rem; color: var(--ink-2); }
.c-form.is-replying .c-replying { display: flex; gap: 10px; align-items: center; }
.c-form input, .c-form textarea { width: 100%; font: inherit; font-size: 0.94rem; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--rad-sm); background: var(--bg); color: var(--ink); }
.c-form input:focus, .c-form textarea:focus { border-color: var(--green); background: #ffffff; outline: none; }
.c-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.c-msg { font-size: 0.86rem; color: var(--ink-2); }

@media (max-width: 1040px) {
  .doc-body.has-toc { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
  .doc-main { width: 100%; }
  .toc { order: -1; position: static; padding: 0; border: 0; width: 100%; }
  .toc-page ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc-page a { margin: 0; background: var(--surface); border: 1px solid var(--border); padding: 6px 11px; border-radius: var(--rad-pill); }
}
@media (max-width: 600px) {
  .doc { padding: 20px 16px 0; }
  .doc-head.has-art .head-art { width: 100%; opacity: 0.16; }
  table.data-tbl { font-size: 0.82rem; }
  table.data-tbl th, table.data-tbl td { padding: 8px 8px; white-space: normal; }
}

/* /guns sample page: Gun Shop filterable catalog, CSS-content repeated labels, and clickable Quick-View sheet */
.gun-controls { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow-sm); display: grid; gap: 11px; }
.gun-search-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.search-box { position: relative; flex: 1 1 240px; max-width: 360px; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.search-box input { width: 100%; font: inherit; font-size: 0.94rem; padding: 9px 12px 9px 34px; border: 1.5px solid var(--border); border-radius: var(--rad-sm); background: var(--bg); color: var(--ink); }
.search-box input:focus { border-color: var(--green); background: #ffffff; outline: none; }
.gun-count { font-family: var(--f-display); font-size: 0.9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gun-count b { color: var(--ink); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-display); font-weight: 500; font-size: 0.81rem; line-height: 1; padding: 6px 10px; border-radius: var(--rad-pill); border: 1.5px solid var(--border); background: var(--bg); color: var(--ink-2); cursor: pointer; transition: transform 140ms var(--ease-out), background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--bar); border-color: var(--bar); color: #ffffff; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chip-toggle[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #ffffff; }
@media (hover: hover) and (pointer: fine) {
  .chip:not([aria-pressed="true"]):hover { border-color: var(--ink-2); color: var(--ink); background: #ffffff; }
}

/* Gun Shop cards — softer borders, clickable quick-view trigger, repeated UI labels via CSS content */
.gun-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.gun-card { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; transition: transform 170ms var(--ease-out), border-color 160ms ease, box-shadow 170ms var(--ease-out); }
.gun-card[hidden] { display: none; }
.gun-card:target { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
@media (hover: hover) and (pointer: fine) {
  .gun-card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow-md); }
}

.gun-open { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.gun-open:focus-visible { outline-offset: -3px; border-radius: var(--rad-md); }

.gun-art { position: relative; aspect-ratio: 284 / 192; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bar); }
.gun-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gun-card:hover .gun-art img { transform: scale(1.03); }
}

/* CSS content keeps repeated UI badges out of HTML keyword density (seo-workspace page.md §3) */
.gun-art::before { content: "#" attr(data-rank); position: absolute; top: 8px; left: 8px; z-index: 1; font-family: var(--f-display); font-weight: 600; font-size: 0.76rem; color: #ffffff; background: rgba(20, 30, 28, 0.84); padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.gun-flag::after { position: absolute; top: 8px; right: 8px; z-index: 1; font-family: var(--f-display); font-weight: 600; font-size: 0.73rem; padding: 3px 8px; border-radius: 6px; }
.gun-flag[data-flag="key"]::after { content: "Key pick"; background: var(--green-bright); color: var(--bar); }
.gun-flag[data-flag="end"]::after { content: "Endgame"; background: #ffad0a; color: var(--bar); }
.gun-flag[data-flag="skip"]::after { content: "Often skipped"; background: rgba(20, 30, 28, 0.86); color: #dce8e1; }

.gun-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gun-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gun-name { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0; }

.rar-badge::after { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.73rem; line-height: 1; padding: 4px 8px; border-radius: var(--rad-pill); white-space: nowrap; }
.rar-badge[data-r="common"]::after { content: "Common"; color: var(--r-common); background: var(--r-common-bg); }
.rar-badge[data-r="uncommon"]::after { content: "Uncommon"; color: var(--r-uncommon); background: var(--r-uncommon-bg); }
.rar-badge[data-r="rare"]::after { content: "Rare"; color: var(--r-rare); background: var(--r-rare-bg); }
.rar-badge[data-r="epic"]::after { content: "Epic"; color: var(--r-epic); background: var(--r-epic-bg); }
.rar-badge[data-r="legendary"]::after { content: "Legendary"; color: var(--r-legendary); background: var(--r-legendary-bg); }
.rar-badge[data-r="mythic"]::after { content: "Mythic"; color: var(--r-mythic); background: var(--r-mythic-bg); }
.rar-badge[data-r="cosmic"]::after { content: "Cosmic"; color: var(--r-cosmic); background: var(--r-cosmic-bg); }

/* Drawn Dice Tray modeled after the in-game Gun Shop slot */
.dice-tray { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #22302d; border-radius: 9px; padding: 6px 9px; }
.dice-pips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.die { width: 17px; height: 17px; border-radius: 4px; display: inline-grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 0.68rem; line-height: 1; border: 1px solid rgba(0, 0, 0, 0.3); }
.die-normal { background: #eef2f6; color: #243038; }
.die-gold { background: linear-gradient(180deg, #ffd23f 0%, #f09a08 100%); color: #3d2200; }
.die-rainbow { background: linear-gradient(135deg, #ff5e7e 0%, #ffd43b 35%, #48e563 68%, #47a8ff 100%); color: #141e1c; }
.die-void { background: #3b2266; color: #f4ecff; }
.die-glitch { background: #141e1c; color: #54ff6b; border-color: #54ff6b; }
.dice-roll-hint::after { content: attr(data-rolls); font-size: 0.77rem; color: #dbe9e1; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.gun-note { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); flex: 1; }
.gun-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.scope-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.scope-tag[data-s="yes"] { background: var(--blue-soft); color: var(--blue); }
.scope-tag[data-s="yes"]::after { content: "Scope"; }
.scope-tag[data-s="no"] { background: var(--surface-alt); color: var(--mute); }
.scope-tag[data-s="no"]::after { content: "No scope"; }
.gun-peek::after { content: "Details"; font-size: 0.76rem; font-weight: 600; color: var(--mute); margin-left: auto; margin-right: 4px; }
@media (hover: hover) and (pointer: fine) {
  .gun-card:hover .gun-peek::after { color: var(--green); }
}

.price-pill { font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; color: #ffffff; background: var(--green); padding: 4px 10px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.price-free { background: var(--blue); }

.gun-empty { display: none; text-align: center; padding: 28px 16px; background: var(--surface); border: 1.5px dashed var(--border); border-radius: var(--rad-md); color: var(--ink-2); }
.gun-empty[data-show] { display: block; }
.gun-empty p { margin: 0 0 12px; }

/* Quick-View native dialog sheet (Emil modal transition, verified by verify.mjs [data-sheet]) */
dialog.sheet { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 1.5px solid var(--border-strong); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(10, 18, 15, 0.34); overflow: hidden; }
dialog.sheet::backdrop { background: rgba(16, 26, 23, 0.58); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: sheetIn 190ms var(--ease-out); }
@keyframes sheetIn { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: var(--bar); color: #ffffff; border-bottom: 3px solid var(--green-bright); }
.sheet-head-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sheet-head h3 { color: #ffffff; font-size: 1.2rem; margin: 0; }
.sheet-x { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--bar-line); background: var(--bar-2); color: #ffffff; display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: transform 140ms var(--ease-out), background-color 140ms ease; }
.sheet-x:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .sheet-x:hover { background: var(--red); border-color: var(--red); }
}
.sheet-body { padding: 16px; overflow-y: auto; max-height: calc(100vh - 140px); display: grid; gap: 14px; }
.sheet-hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; }
.sheet-hero img { width: 100%; aspect-ratio: 284 / 208; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--border); display: block; }
.sheet-lead { margin: 0; font-size: 0.94rem; color: var(--ink-2); line-height: 1.5; }
.sheet-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sheet-dl > div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; }
.sheet-dl dt { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--mute); margin-bottom: 3px; }
.sheet-dl dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--border); background: var(--bg); }
.sheet-nav { font-family: var(--f-display); font-weight: 600; font-size: 0.86rem; padding: 7px 12px; border-radius: var(--rad-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform 140ms var(--ease-out), border-color 140ms ease; }
.sheet-nav:active { transform: scale(0.97); }
.sheet-nav:disabled { opacity: 0.4; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .sheet-nav:not(:disabled):hover { border-color: var(--green); color: var(--green); }
}

/* Progression route & Gun-vs-Dummy tradeoff blocks */
.route-grid { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.route-step { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 12px 15px; box-shadow: var(--shadow-sm); }
.route-thumb { width: 76px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); display: block; }
.route-step h3 { font-size: 1.02rem; margin-bottom: 3px; }
.route-step p { margin: 0; font-size: 0.89rem; color: var(--ink-2); line-height: 1.48; }
.route-meta { text-align: right; display: grid; gap: 5px; justify-items: end; }

.dice-meters { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.dice-row { display: grid; grid-template-columns: 125px minmax(140px, 1fr) minmax(180px, 1.15fr); gap: 14px; align-items: center; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 12px 15px; }
.dice-head { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 0.96rem; }
.roll-track { position: relative; height: 14px; background: var(--surface-alt); border-radius: var(--rad-pill); overflow: hidden; border: 1px solid var(--border); }
.roll-fill { position: absolute; top: 0; bottom: 0; border-radius: var(--rad-pill); background: var(--green); }
.roll-fill-gold { background: #e09100; }
.roll-fill-rainbow { background: linear-gradient(90deg, #e8382c, #ffad0a, #37c519, #189cff); }
.roll-fill-void { background: #6b3cd6; }
.roll-fill-glitch { background: #141e1c; }
.roll-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--mute); margin-top: 4px; font-variant-numeric: tabular-nums; }
.dice-desc { font-size: 0.87rem; color: var(--ink-2); }
.dice-desc b { color: var(--ink); }

.verdict-pill { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.v-gun { background: var(--green-soft); color: #195f14; }
.v-dummy { background: var(--blue-soft); color: var(--blue); }

@media (max-width: 820px) {
  .gun-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dice-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
  .gun-grid { grid-template-columns: 1fr; }
  .route-step { grid-template-columns: 64px minmax(0, 1fr); }
  .route-thumb { width: 64px; height: 48px; }
  .route-meta { grid-column: 1 / -1; justify-items: start; display: flex; align-items: center; gap: 8px; }
  .sheet-hero { grid-template-columns: 1fr; }
  .sheet-dl { grid-template-columns: 1fr; }
}

/* W2 pages (/codes; /updates and /bounties next): Operate-grade redemption deck & content blocks */
.code-deck { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.deck-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 16px; background: var(--bar); color: var(--on-dark); border-bottom: 3px solid var(--green-bright); }
.deck-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.88rem; }
.deck-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); flex-shrink: 0; }
.deck-counts { font-family: var(--f-display); font-weight: 500; font-variant-numeric: tabular-nums; }
.deck-counts b { color: #ffffff; font-weight: 700; }
.deck-date { color: var(--on-dark-dim); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.deck-all { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--rad-sm); border: 1.5px solid var(--bar-line); background: var(--bar-2); color: #ffffff; font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; line-height: 1; cursor: pointer; transition: transform 150ms var(--ease-out), background-color 150ms ease, border-color 150ms ease; }
.deck-all:active { transform: scale(0.97); }
.deck-all .ic-check { display: none; }
.deck-all[data-copied="1"] { background: var(--green); border-color: var(--green-bright); }
.deck-all[data-copied="1"] .ic-copy { display: none; }
.deck-all[data-copied="1"] .ic-check { display: block; }
.copy-all-lbl::after { content: "Copy all active"; }
.deck-all[data-copied="1"] .copy-all-lbl::after { content: "All copied"; }
@media (hover: hover) and (pointer: fine) {
  .deck-all:not([data-copied="1"]):hover { border-color: var(--green-bright); background: #223531; }
}

.code-list { list-style: none; margin: 0; padding: 0; }
.code-row { display: grid; grid-template-columns: minmax(232px, 248px) minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 16px; border-bottom: 1.5px solid var(--border); background: var(--surface); transition: background-color 150ms ease; }
.code-row:last-child { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .code-row:hover { background: #f8fbf6; }
}

.code-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.code-token-line { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.code-val { font-weight: 700; font-size: 0.96rem; letter-spacing: 0.015em; color: var(--ink); background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--rad-sm); padding: 5px 9px; font-variant-numeric: tabular-nums; }
.code-hint { font-size: 0.78rem; font-weight: 600; color: var(--gold); }

/* Repeated status & button labels via CSS content (page.md §3) */
.code-state::after { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; line-height: 1; padding: 4px 8px; border-radius: var(--rad-pill); white-space: nowrap; }
.code-state[data-st="active"]::after { content: "Active"; color: var(--green); background: var(--green-soft); }
.code-state[data-st="expired"]::after { content: "Expired"; color: var(--mute); background: var(--surface-alt); }

.code-info { min-width: 0; }
.code-reward { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); line-height: 1.25; }
.code-tip { margin: 4px 0 0; font-size: 0.88rem; line-height: 1.48; color: var(--ink-2); }

.code-act { display: flex; justify-content: flex-end; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 102px; padding: 10px 15px; border-radius: var(--rad-sm); border: 1.5px solid #195f14; background: var(--green); color: #ffffff; font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; line-height: 1; cursor: pointer; transition: transform 150ms var(--ease-out), background-color 150ms ease, border-color 150ms ease; }
.copy-btn:active { transform: scale(0.97); }
.copy-btn .ic-check { display: none; }
.copy-btn[data-copied="1"] { background: var(--bar); border-color: var(--bar); }
.copy-btn[data-copied="1"] .ic-copy { display: none; }
.copy-btn[data-copied="1"] .ic-check { display: block; color: var(--green-bright); }
.copy-lbl::after { content: "Copy"; }
.copy-btn[data-copied="1"] .copy-lbl::after { content: "Copied"; }
@media (hover: hover) and (pointer: fine) {
  .copy-btn:not([data-copied="1"]):hover { background: var(--green-hi); }
}

.exp-shelf { background: var(--bg); border-top: 1.5px solid var(--border); padding: 12px 16px 14px; }
.exp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 9px; }
.exp-title { font-family: var(--f-display); font-weight: 600; font-size: 0.88rem; color: var(--ink-2); }
.exp-note { font-size: 0.8rem; color: var(--mute); }
.exp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.exp-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1.5px solid var(--border); }
.exp-code { font-weight: 700; font-size: 0.9rem; color: var(--mute); text-decoration: line-through; background: var(--bg); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; }
.exp-meta { font-size: 0.82rem; color: var(--mute); flex: 1 1 130px; }

/* Redeem Stepper */
.step-track { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.step-card { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 15px; box-shadow: var(--shadow-sm); }
.step-card::before { content: attr(data-n); width: 32px; height: 32px; border-radius: var(--rad-sm); background: var(--bar); color: var(--green-bright); font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.step-card h3 { font-size: 0.98rem; margin: 0 0 4px; color: var(--ink); }
.step-card p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }

/* Boost Timing Split */
.timing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 20px; }
.timing-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 15px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.timing-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.timing-pill { font-family: var(--f-display); font-weight: 600; font-size: 0.8rem; line-height: 1; padding: 5px 10px; border-radius: var(--rad-pill); white-space: nowrap; }
.timing-money { background: var(--green-soft); color: var(--green); }
.timing-train { background: var(--blue-soft); color: var(--blue); }
.timing-steps { margin: 0; padding-left: 19px; font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); display: grid; gap: 6px; flex: 1; }
.shot-compact { margin: 4px 0 0; padding: 7px; box-shadow: none; background: var(--bg); }
.shot-compact figcaption { margin-top: 7px; font-size: 0.81rem; }

/* Wrong-game code table (wraps cleanly at 390px without mid-word breaks) */
.wg-tbl td, .wg-tbl th { overflow-wrap: break-word; word-break: normal; }
.wg-codes { display: flex; flex-wrap: wrap; gap: 5px; }
.wg-code { font-size: 0.8rem; font-weight: 600; padding: 2px 6px; background: var(--bg); color: var(--ink); }
.wg-tbl td small { color: var(--mute); font-size: 0.82rem; }
@media (max-width: 600px) {
  .wg-tbl td:first-child { width: 34%; }
  .wg-tbl td:nth-child(2) { width: 28%; }
  .wg-code { font-size: 0.74rem; padding: 2px 5px; }
}

/* Troubleshoot Rows (CSS-rendered Symptom / Cause / Fix labels) */
.fix-list { list-style: none; margin: 14px 0 22px; padding: 0; display: grid; gap: 10px; }
.fix-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.fix-cell { font-size: 0.89rem; line-height: 1.5; color: var(--ink-2); }
.fix-cell::before { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.fix-cell[data-k="symptom"] { color: var(--ink); font-weight: 600; }
.fix-cell[data-k="symptom"]::before { content: "Symptom"; color: var(--red); }
.fix-cell[data-k="cause"]::before { content: "Cause"; color: var(--gold); }
.fix-cell[data-k="fix"]::before { content: "Fix"; color: var(--green); }

@media (max-width: 820px) {
  .code-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .code-id { grid-column: 1; }
  .code-act { grid-column: 2; grid-row: 1; }
  .code-info { grid-column: 1 / -1; }
  .exp-list, .step-track, .timing-grid, .fix-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .code-row { grid-template-columns: 1fr; }
  .code-act { grid-column: 1; grid-row: auto; justify-content: stretch; }
  .copy-btn { width: 100%; }
  .deck-bar { padding: 11px 13px; }
  .deck-all { width: 100%; justify-content: center; }
}

/* /updates: Event Spotlight, Global Time Strip, slotbound-style Patch Drawers, Post-Patch Check Grid */
.event-spot { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.spot-top { display: grid; grid-template-columns: minmax(260px, 370px) minmax(0, 1fr); gap: 0; align-items: stretch; }
.spot-media { background: var(--bar); display: flex; align-items: center; }
.spot-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.spot-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.spot-host { font-size: 0.8rem; font-weight: 600; color: var(--mute); }
.spot-title { font-size: clamp(1.25rem, 2vw, 1.52rem); color: var(--ink); margin: 0; }
.spot-when { margin: 0; font-size: 0.93rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.spot-clock { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 10px 13px; border-radius: 10px; background: var(--bar); color: var(--on-dark); border: 1.5px solid var(--bar-line); }
.clock-val { font-family: var(--f-display); font-weight: 700; font-size: 1.04rem; color: var(--green-bright); font-variant-numeric: tabular-nums; }
.clock-local { font-size: 0.82rem; color: var(--on-dark-dim); font-variant-numeric: tabular-nums; }
.spot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 2px; }
.spot-link { font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; color: var(--green); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .spot-link:hover { text-decoration: underline; }
}

.tz-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--border); background: var(--bg); }
.tz-cell { padding: 9px 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tz-cell:nth-child(4n) { border-right: 0; }
.tz-cell:nth-last-child(-n+4) { border-bottom: 0; }
.tz-cell span { font-size: 0.74rem; font-weight: 600; color: var(--mute); }
.tz-cell b { font-family: var(--f-display); font-weight: 600; font-size: 0.88rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Repeated update tags via CSS content */
.up-tag::after { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; line-height: 1; padding: 4px 8px; border-radius: var(--rad-pill); white-space: nowrap; }
.up-tag[data-ut="upcoming"]::after { content: "Scheduled"; background: var(--blue-soft); color: var(--blue); }
.up-tag[data-ut="live"]::after { content: "Live now"; background: var(--green-soft); color: var(--green); }
.up-tag[data-ut="major"]::after { content: "Major patch"; background: var(--green-soft); color: var(--green); }
.up-tag[data-ut="change"]::after { content: "Store & badges"; background: var(--gold-soft); color: var(--gold); }
.up-tag[data-ut="store"]::after { content: "Store"; background: var(--surface-alt); color: var(--ink-2); }
.up-tag[data-ut="release"]::after { content: "Launch"; background: var(--bar); color: #ffffff; }

.up-timeline { display: grid; gap: 11px; margin: 18px 0 0; }
.up-entry { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 86px; transition: border-color 150ms ease; }
.up-entry[open] { border-color: #9cb499; }
.up-sum { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 122px minmax(0, 1fr) 20px; gap: 10px 14px; align-items: start; }
.up-sum::-webkit-details-marker { display: none; }
.up-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 2px; }
.up-date { font-family: var(--f-display); font-weight: 600; font-size: 0.86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.up-main { min-width: 0; }
.up-main h3 { font-size: 1.04rem; color: var(--ink); margin: 0 0 4px; }
.up-main p { margin: 0; font-size: 0.9rem; line-height: 1.48; color: var(--ink-2); }
.up-entry .fold-ic { margin-top: 4px; }
.up-entry[open] .fold-ic { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .up-entry:hover { border-color: var(--green); }
}

.up-body { padding: 0 16px 16px; border-top: 1px solid var(--border); background: #fafcf9; }
.up-banner { margin: 14px 0 12px; max-width: 520px; padding: 6px; box-shadow: none; background: var(--surface); }
.up-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.up-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 0.92rem; line-height: 1.54; color: var(--ink); }
.up-kind::after { display: inline-block; width: 100%; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 0.71rem; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.up-kind[data-k="new"]::after { content: "New"; background: var(--green-soft); color: var(--green); }
.up-kind[data-k="change"]::after { content: "Changed"; background: var(--blue-soft); color: var(--blue); }
.up-kind[data-k="event"]::after { content: "Event"; background: var(--gold-soft); color: var(--gold); }
.up-kind[data-k="code"]::after { content: "Code"; background: var(--bar); color: var(--green-bright); }
.up-kind[data-k="pending"]::after { content: "Pending"; background: var(--surface-alt); color: var(--mute); }

.check-grid { list-style: none; counter-reset: chk; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-card { counter-increment: chk; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.check-card h3 { font-size: 0.98rem; margin: 0 0 5px; display: flex; align-items: center; gap: 8px; }
.check-card h3::before { content: counter(chk); width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; background: var(--bar); color: var(--green-bright); font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.check-card h3 a { color: var(--green); text-decoration: none; }
.check-card p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .check-card h3 a:hover { text-decoration: underline; }
}

@media (max-width: 780px) {
  .spot-top { grid-template-columns: 1fr; }
  .up-sum { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px 12px; }
  .up-head { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .up-main { grid-column: 1; }
  .up-entry .fold-ic { grid-column: 2; grid-row: 2; }
}
@media (max-width: 600px) {
  .tz-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tz-cell:nth-child(4n) { border-right: 1px solid var(--border); }
  .tz-cell:nth-child(2n) { border-right: 0; }
  .tz-cell:nth-last-child(-n+4) { border-bottom: 1px solid var(--border); }
  .tz-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .check-grid { grid-template-columns: 1fr; }
  .up-item { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
}

/* /bounties: Spec Strip, 3-Tier Reward Track, Unlock Callout, Quest Triage, Range Slider Split */
.bounty-board { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bar); color: var(--on-dark); border-bottom: 3px solid var(--green-bright); }
.spec-cell { padding: 13px 15px; border-right: 1px solid var(--bar-line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.spec-cell:last-child { border-right: 0; }
.spec-k { font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--on-dark-dim); }
.spec-cell b { font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; color: #ffffff; font-variant-numeric: tabular-nums; }
.spec-reset b { color: var(--green-bright); }
.spec-reset small { font-size: 0.76rem; color: var(--on-dark-dim); font-variant-numeric: tabular-nums; }

.tier-track { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: var(--bg); }
.tier-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 15px; display: flex; flex-direction: column; gap: 6px; }
.tier-step::after { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; line-height: 1; padding: 4px 8px; border-radius: var(--rad-pill); }
.tier-step[data-ts="t1"]::after { content: "1 quest"; background: var(--green-soft); color: var(--green); }
.tier-step[data-ts="t2"]::after { content: "2 quests"; background: var(--blue-soft); color: var(--blue); }
.tier-step[data-ts="t3"]::after { content: "All 3 quests"; background: var(--gold-soft); color: var(--gold); }
.tier-card h3 { font-size: 1.02rem; color: var(--ink); margin: 2px 0 0; }
.tier-card p { margin: 0; font-size: 0.87rem; line-height: 1.48; color: var(--ink-2); }

.unlock-card { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 15px; align-items: center; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.unlock-thumb { width: 82px; height: auto; border-radius: 10px; border: 1.5px solid var(--border); display: block; }
.unlock-body h3 { font-size: 1.02rem; margin: 0 0 5px; color: var(--ink); }
.unlock-body p { margin: 0; font-size: 0.91rem; line-height: 1.52; color: var(--ink-2); }
.unlock-body .unlock-route { margin-top: 7px; font-size: 0.86rem; color: var(--mute); }

.v-gold { background: var(--gold-soft); color: var(--gold); }
.v-red { background: var(--red-soft); color: var(--red); }
.b-tbl td, .b-tbl th, .q-tbl td, .q-tbl th { overflow-wrap: break-word; word-break: normal; }

.slider-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 370px); gap: 16px; align-items: start; margin-top: 16px; }
.step-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slider-shot { margin: 0; }

.routine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.routine-list li { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 13px 16px; font-size: 0.94rem; line-height: 1.56; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.routine-list li b { color: var(--ink); }

@media (max-width: 780px) {
  .slider-split, .tier-track { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-cell:nth-child(2n) { border-right: 0; }
  .spec-cell:nth-child(-n+2) { border-bottom: 1px solid var(--bar-line); }
}
@media (max-width: 600px) {
  .unlock-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 13px; }
  .unlock-thumb { width: 64px; }
  .b-tbl td:first-child { width: 26%; }
  .b-tbl td:nth-child(2) { width: 18%; }
  .b-tbl td:nth-child(3) { width: 20%; }
  .q-tbl td:first-child { width: 34%; }
  .q-tbl td:nth-child(2) { width: 24%; }
}

/* /animals page: 160-species catalog, extra animal rarity tokens, area & trail icons, desktop TOC area rail, live Scaled Egg example, and illustrated 12-tier rarity ladder */
:root {
  --r-secret: #0d7477;
  --r-secret-bg: #e4f7f7;
  --r-ancient: #8c4a16;
  --r-ancient-bg: #faeee2;
  --r-divine: #9e5c00;
  --r-divine-bg: #fff5d6;
  --r-ethereal: #1f67b5;
  --r-ethereal-bg: #e6f2ff;
  --r-eternal: #a3175c;
  --r-eternal-bg: #fdeaf3;
  --r-scaled: #1d6f42;
  --r-scaled-bg: #e3f6eb;
  --r-mystery: #493494;
  --r-mystery-bg: #efecff;
  --r-pending: #4f5d56;
  --r-pending-bg: #e9eee8;
}

.rar-badge[data-r="secret"]::after { content: "Secret"; color: var(--r-secret); background: var(--r-secret-bg); }
.rar-badge[data-r="ancient"]::after { content: "Ancient"; color: var(--r-ancient); background: var(--r-ancient-bg); }
.rar-badge[data-r="divine"]::after { content: "Divine"; color: var(--r-divine); background: var(--r-divine-bg); }
.rar-badge[data-r="ethereal"]::after { content: "Ethereal"; color: var(--r-ethereal); background: var(--r-ethereal-bg); }
.rar-badge[data-r="eternal"]::after { content: "Eternal"; color: var(--r-eternal); background: var(--r-eternal-bg); }
.rar-badge[data-r="scaled"]::after { content: "Scaled"; color: var(--r-scaled); background: var(--r-scaled-bg); }
.rar-badge[data-r="mystery"]::after { content: "Mystery"; color: var(--r-mystery); background: var(--r-mystery-bg); }
.rar-badge[data-r="pending"]::after { content: "Pending"; color: var(--r-pending); background: var(--r-pending-bg); }

/* Desktop sticky right-rail 2-column area quick-jump (hidden on mobile where Area <select> serves the role) */
.toc-areas { list-style: none; margin: 5px 0 9px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.toc-areas a { display: flex; align-items: center; gap: 4px; padding: 4px 6px; margin: 0; font-size: 0.74rem; line-height: 1.2; border-radius: 6px; color: var(--mute); background: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-areas a::before { content: attr(data-n); font-family: var(--f-display); font-weight: 600; font-size: 0.66rem; color: var(--mute); opacity: 0.75; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.toc-areas a[aria-current="true"] { background: var(--green-soft); color: var(--green); font-weight: 700; }
.toc-areas a[aria-current="true"]::before { color: var(--green); opacity: 1; }
@media (max-width: 1040px) {
  .toc-areas { display: none; }
}

/* Range-aware filter dock: cleanly separates Search + Max Range from Category Chips and Area/Rarity selects */
.an-controls { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; margin-bottom: 20px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; }
.an-top-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.an-search { flex: 1 1 230px; max-width: none; }
.an-range-field { display: flex; align-items: center; flex: 0 1 255px; border: 1.5px solid var(--border); border-radius: var(--rad-sm); background: var(--bg); overflow: hidden; transition: border-color 140ms ease, background-color 140ms ease; }
.an-range-field:focus-within { border-color: var(--green); background: #ffffff; }
.an-range-lbl { font-family: var(--f-display); font-weight: 600; font-size: 0.8rem; color: var(--ink-2); background: var(--surface-alt); padding: 9px 10px; border-right: 1px solid var(--border); white-space: nowrap; }
.an-range-field input { width: 100%; min-width: 0; font: inherit; font-size: 0.9rem; padding: 8px 10px; border: 0; background: transparent; color: var(--ink); font-variant-numeric: tabular-nums; }
.an-range-field input:focus { outline: none; }
.an-count { margin-left: auto; font-family: var(--f-display); font-size: 0.92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-count b { color: var(--ink); }

.an-group-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.an-select-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.an-sel { min-width: 0; }
.an-sel select { width: 100%; font: inherit; font-size: 0.88rem; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: var(--rad-sm); background: var(--bg); color: var(--ink); cursor: pointer; }
.an-sel select:focus { border-color: var(--green); background: #ffffff; outline: none; }
.an-clear { font-family: var(--f-display); font-weight: 600; font-size: 0.8rem; padding: 6px 11px; border-radius: var(--rad-pill); border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform 140ms var(--ease-out); }
.an-clear:active { transform: scale(0.96); }
.an-range-note { margin: 0; padding: 8px 11px; border-radius: var(--rad-sm); background: var(--green-soft); color: #195f14; font-size: 0.85rem; font-weight: 500; }
.an-range-note[hidden], .an-clear[hidden] { display: none; }

/* Area chapter groups with real game island icons + trail badges */
.an-groups { display: grid; gap: 22px; }
.an-group { scroll-margin-top: 84px; }
.an-group[hidden] { display: none; }
.an-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 13px; margin-bottom: 11px; background: var(--surface-tint); border: 1.5px solid var(--border); border-radius: 11px; }
.an-group-id { display: inline-flex; align-items: center; gap: 9px; }
.an-area-ic { width: 30px; height: 35px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); flex-shrink: 0; display: block; }
.an-group-title { display: inline-flex; align-items: center; gap: 7px; font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0; }
.an-group-title::before { content: attr(data-num); display: inline-grid; place-items: center; min-width: 26px; height: 21px; padding: 0 5px; border-radius: 6px; background: var(--bar); color: #ffffff; font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.an-group-special .an-group-title::before { background: var(--r-mystery); }
.an-group-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.an-rng-tag::after { content: "Range " attr(data-rng); display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.75rem; color: var(--ink); background: var(--surface); border: 1px solid var(--border); padding: 3px 8px; border-radius: var(--rad-pill); font-variant-numeric: tabular-nums; }
.an-rng-special::after { content: attr(data-rng); }
.an-trail-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-alt); padding: 2px 8px 2px 3px; border-radius: var(--rad-pill); border: 1px solid var(--border); }
.an-trail-pill img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; display: block; }
.an-trail-txt::after, .an-trail-tag::after { content: attr(data-trail); font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.an-trail-tag::after { display: inline-block; background: var(--surface-alt); padding: 3px 8px; border-radius: var(--rad-pill); }

/* 4-column desktop / 2-column mobile animal cards */
.an-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.an-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; transition: transform 160ms var(--ease-out), border-color 160ms ease, box-shadow 160ms var(--ease-out); }
.an-card[hidden] { display: none; }
.an-card:target { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
@media (hover: hover) and (pointer: fine) {
  .an-card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow-md); }
}

.an-open { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.an-open:focus-visible { outline-offset: -3px; border-radius: var(--rad-md); }

.an-art { position: relative; aspect-ratio: 180 / 190; padding: 6px 6px 4px; overflow: hidden; background: var(--surface-tint); border-bottom: 1px solid var(--border); }
.an-art img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; display: block; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .an-card:hover .an-art img { transform: scale(1.03); }
}

/* Typographic specimen plates for the 16 non-area animals */
.an-plate { position: relative; aspect-ratio: 180 / 132; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 10px; border-bottom: 1px solid var(--border); text-align: center; }
.an-plate-scaled { background: linear-gradient(155deg, #153528 0%, #1c4c36 100%); color: #e8fbee; }
.an-plate-pct { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; color: #7ef087; font-variant-numeric: tabular-nums; }
.an-plate-sub::after { content: "of best pet"; font-size: 0.74rem; font-weight: 600; color: #c7e6d2; }
.an-plate-mystery { background: linear-gradient(155deg, #211a3b 0%, #31255a 100%); color: #d8ceff; }
.an-plate-event { background: linear-gradient(155deg, #3c1420 0%, #5b1d2e 100%); color: #ffd4df; }
.an-plate-mystery::after, .an-plate-event::after { content: attr(data-tag); position: absolute; top: 7px; right: 7px; font-family: var(--f-display); font-weight: 600; font-size: 0.71rem; background: rgba(255, 255, 255, 0.15); color: #ffffff; padding: 2px 7px; border-radius: 5px; }

.an-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.an-name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.an-name { font-family: var(--f-display); font-weight: 600; font-size: 0.94rem; line-height: 1.22; color: var(--ink); margin: 0; }
.an-num::after { content: "#" attr(data-id); font-family: var(--f-display); font-weight: 600; font-size: 0.71rem; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; }
.an-val { font-family: var(--f-display); font-weight: 700; font-size: 0.85rem; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-scaled-v { color: var(--r-scaled); }
.an-pend::after { content: "Pending"; font-family: var(--f-body); font-weight: 600; font-size: 0.76rem; color: var(--mute); }

.an-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border); min-height: 22px; }
.an-obs::after { content: attr(data-obs); font-size: 0.72rem; font-weight: 600; color: var(--ink-2); background: var(--bg); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.an-obs-plain::after { color: var(--mute); }
.an-obs-odds::after { color: var(--r-scaled); background: var(--r-scaled-bg); border-color: #bce5cc; }
.an-peek::after { content: "Info"; font-size: 0.72rem; font-weight: 600; color: var(--mute); margin-left: auto; }
@media (hover: hover) and (pointer: fine) {
  .an-card:hover .an-peek::after { color: var(--green); }
}

.an-sheet-hero { grid-template-columns: 140px minmax(0, 1fr); }
.an-sheet-hero img { aspect-ratio: 180 / 190; object-fit: contain; background: var(--surface-tint); padding: 4px; }
.an-sheet.sheet-no-art .an-sheet-hero { grid-template-columns: 1fr; }
.an-sheet.sheet-no-art .an-sheet-hero img { display: none; }

/* H2 #1: Illustrated 12-tier rarity ladder with real animal + area island icons */
.rar-ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.rl-item { text-align: left; font: inherit; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 10px 11px; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 150ms var(--ease-out), border-color 150ms ease, box-shadow 150ms ease; }
.rl-item:active { transform: scale(0.97); }
.rl-thumb { width: 54px; height: 57px; object-fit: contain; border-radius: 7px; background: var(--surface-tint); border: 1px solid var(--border); padding: 2px; display: block; }
.rl-info { display: grid; gap: 4px; min-width: 0; }
.rl-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rl-n { font-family: var(--f-display); font-weight: 700; font-size: 0.84rem; color: var(--mute); }
.rl-gate { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-gate b { color: var(--ink); }
.rl-area-ic { width: 17px; height: 20px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.rl-sample { font-size: 0.77rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) {
  .rl-item:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow-md); }
}

/* H2 #2: Live Scaled Egg concrete $/s calculator + bars */
.sc-calc { margin: 16px 0 14px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.sc-calc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; background: var(--bar); color: var(--on-dark); border-bottom: 2px solid var(--green-bright); }
.sc-inp-wrap { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; color: var(--on-dark); }
.sc-inp-wrap input { width: 88px; font: inherit; font-weight: 700; font-size: 0.94rem; padding: 5px 9px; border-radius: 7px; border: 1.5px solid var(--bar-line); background: var(--bar-2); color: #7ef087; text-align: right; font-variant-numeric: tabular-nums; }
.sc-inp-wrap input:focus { border-color: var(--green-bright); outline: none; }
.sc-unit { color: var(--on-dark-dim); font-size: 0.86rem; }
.sc-calc-head .chip { background: var(--bar-2); border-color: var(--bar-line); color: var(--on-dark-dim); }
.sc-calc-head .chip[aria-pressed="true"] { background: var(--green-bright); border-color: var(--green-bright); color: var(--bar); }

.scaled-bars { list-style: none; margin: 0; padding: 0; }
.sc-row { display: grid; grid-template-columns: 165px minmax(110px, 1fr) 128px; gap: 12px; align-items: center; padding: 11px 15px; border-top: 1px solid var(--border); }
.sc-row:first-child { border-top: 0; }
.sc-name { display: flex; flex-direction: column; gap: 2px; }
.sc-name a { font-family: var(--f-display); font-weight: 600; font-size: 0.96rem; color: var(--ink); text-decoration: none; }
.sc-odds { font-size: 0.77rem; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.sc-track { height: 11px; background: var(--surface-alt); border-radius: var(--rad-pill); border: 1px solid var(--border); overflow: hidden; }
.sc-fill { display: block; height: 100%; border-radius: var(--rad-pill); background: linear-gradient(90deg, var(--green) 0%, var(--green-bright) 100%); }
.sc-out { text-align: right; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.sc-out b { font-family: var(--f-display); color: var(--r-scaled); font-size: 1.02rem; }
.sc-out span { font-size: 0.76rem; color: var(--mute); }
@media (hover: hover) and (pointer: fine) {
  .sc-name a:hover { color: var(--green); text-decoration: underline; }
}

/* H2 #3 & #4: Compact 3-column rule & source cards */
.rule-strip, .source-cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rule-strip li { background: var(--surface-tint); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.rule-strip b { font-family: var(--f-display); font-size: 0.94rem; color: var(--ink); }
.rule-strip span { font-size: 0.85rem; line-height: 1.48; color: var(--ink-2); }
.source-cards li { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 13px 15px; box-shadow: var(--shadow-sm); display: grid; gap: 5px; align-content: start; }
.source-cards b { font-family: var(--f-display); font-size: 0.96rem; color: var(--ink); }
.source-cards p { margin: 0; font-size: 0.87rem; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 820px) {
  .an-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rar-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-strip, .source-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .an-range-field { flex: 1 1 180px; }
  .an-select-row { grid-template-columns: 1fr; }
  .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .an-body { padding: 8px 9px 9px; }
  .an-name { font-size: 0.89rem; }
  .rar-ladder { grid-template-columns: 1fr; gap: 8px; }
  .sc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .sc-bar-wrap { grid-column: 1 / -1; order: 3; }
  .an-sheet-hero { grid-template-columns: 1fr; }
}

/* /areas page: Range reach HUD, live Trail Stacker, 18-Area visual atlas, and alternating Money/Range Trail ledgers */
.ar-hud { background: var(--bar); color: var(--on-dark); border-radius: var(--rad-md); border: 1.5px solid var(--border-strong); padding: 15px 17px; margin-bottom: 18px; box-shadow: var(--shadow-sm); display: grid; gap: 14px; }
.ar-hud-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.ar-inp-label { display: inline-flex; align-items: center; border: 1.5px solid var(--bar-line); border-radius: var(--rad-sm); background: var(--bar-2); overflow: hidden; }
.ar-inp-label:focus-within { border-color: var(--green-bright); }
.ar-inp-label span { font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; color: var(--on-dark-dim); padding: 8px 10px; border-right: 1px solid var(--bar-line); white-space: nowrap; }
.ar-inp-label input { width: 118px; font: inherit; font-weight: 700; font-size: 0.92rem; padding: 7px 10px; border: 0; background: transparent; color: #7ef087; font-variant-numeric: tabular-nums; }
.ar-inp-label input:focus { outline: none; }
.ar-hud .chip { background: var(--bar-2); border-color: var(--bar-line); color: var(--on-dark-dim); }
.ar-hud .chip[aria-pressed="true"] { background: var(--green-bright); border-color: var(--green-bright); color: var(--bar); }
.ar-verdict { margin: 8px 0 0; font-size: 0.89rem; color: var(--on-dark); line-height: 1.45; }
.ar-verdict b { color: #7ef087; }

.ar-hud-trails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid var(--bar-line); }
.ar-stat { background: var(--bar-2); border: 1px solid var(--bar-line); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.ar-stat-k { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--on-dark-dim); }
.ar-stat b { font-family: var(--f-display); font-size: 1.24rem; line-height: 1.15; color: #ffffff; }
.ar-stat b[data-tr-money] { color: #7ef087; }
.ar-stat b[data-tr-range] { color: #76c4ff; }
.ar-stat small { font-size: 0.75rem; color: var(--on-dark-dim); }
.ar-reset-tr { position: absolute; top: 8px; right: 8px; font-family: var(--f-display); font-weight: 600; font-size: 0.73rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--bar-line); background: var(--bar); color: var(--on-dark-dim); cursor: pointer; }
.ar-reset-tr[hidden] { display: none; }

/* 18-Area visual atlas cards */
.ar-list { display: grid; gap: 12px; }
.ar-card { display: grid; grid-template-columns: 92px minmax(0, 1fr) 196px; gap: 14px; align-items: stretch; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 13px 14px; box-shadow: var(--shadow-sm); scroll-margin-top: 84px; transition: border-color 160ms ease, box-shadow 160ms var(--ease-out), opacity 160ms ease; }
.ar-card[data-reach="reached"] { border-color: #88cf7a; }
.ar-card[data-reach="next"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.ar-card[data-reach="locked"] { opacity: 0.72; }

.ar-left { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ar-island { position: relative; width: 82px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--border); background: var(--surface-tint); }
.ar-island img { width: 100%; aspect-ratio: 216 / 256; object-fit: cover; display: block; }
.ar-island::before { content: attr(data-num); position: absolute; top: 5px; left: 5px; font-family: var(--f-display); font-weight: 700; font-size: 0.7rem; background: rgba(20, 30, 28, 0.86); color: #ffffff; padding: 2px 5px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.ar-gate::after { content: "Range " attr(data-rng); display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 0.75rem; color: var(--ink); background: var(--bg); border: 1px solid var(--border); padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-state { display: none; font-family: var(--f-display); font-weight: 600; font-size: 0.7rem; padding: 2px 7px; border-radius: var(--rad-pill); }
.ar-card[data-reach="reached"] .ar-state { display: inline-block; background: var(--green-soft); color: var(--green); }
.ar-card[data-reach="reached"] .ar-state::after { content: "Reached"; }
.ar-card[data-reach="next"] .ar-state { display: inline-block; background: var(--blue-soft); color: var(--blue); }
.ar-card[data-reach="next"] .ar-state::after { content: "Next up"; }
.ar-card[data-reach="locked"] .ar-state { display: inline-block; background: var(--surface-alt); color: var(--mute); }
.ar-card[data-reach="locked"] .ar-state::after { content: "Locked"; }

.ar-mid { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.ar-head h3 { font-size: 1.12rem; margin: 0; color: var(--ink); }
.ar-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ar-mile { font-size: 0.74rem; font-weight: 600; color: var(--ink-2); background: var(--surface-alt); padding: 3px 8px; border-radius: var(--rad-pill); }
.ar-mile-hi { background: var(--gold-soft); color: var(--gold); }
.ar-first-r::before { content: "First "; font-family: var(--f-body); font-size: 0.71rem; font-weight: 600; color: var(--mute); margin-right: 4px; }

.ar-pets { display: flex; flex-wrap: wrap; gap: 5px; }
.ar-pet { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 4px; border-radius: 7px; background: var(--bg); border: 1px solid var(--border); font-size: 0.79rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color 140ms ease, background-color 140ms ease; }
.ar-pet img { width: 22px; height: 23px; object-fit: contain; border-radius: 4px; flex-shrink: 0; display: block; }
@media (hover: hover) and (pointer: fine) {
  .ar-pet:hover { border-color: var(--green); background: var(--green-soft); color: var(--ink); }
}
.ar-mid-foot { margin-top: auto; }
.ar-all-link { font-family: var(--f-display); font-weight: 600; font-size: 0.81rem; color: var(--green); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .ar-all-link:hover { text-decoration: underline; }
}

.ar-trail-box { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 10px 11px; border-radius: 10px; background: var(--surface-tint); border: 1px solid var(--border); }
.ar-trail-top { display: flex; align-items: center; gap: 9px; }
.ar-trail-top img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.ar-trail-name { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.88rem; line-height: 1.2; color: var(--ink); margin-bottom: 3px; }
.ar-buff { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 0.75rem; padding: 2px 7px; border-radius: var(--rad-pill); font-variant-numeric: tabular-nums; }
.ar-buff-money { background: var(--green-soft); color: var(--green); }
.ar-buff-range { background: var(--blue-soft); color: var(--blue); }

.ar-check { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; font-family: var(--f-display); font-weight: 600; font-size: 0.8rem; padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: transform 140ms var(--ease-out), background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.ar-check:active { transform: scale(0.96); }
.ar-check-box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--border-strong); display: inline-grid; place-items: center; flex-shrink: 0; }
.ar-check-txt::after { content: "Mark 8/8 done"; }
.ar-check[aria-pressed="true"] { background: var(--green); border-color: #195f14; color: #ffffff; }
.ar-check[aria-pressed="true"] .ar-check-box { border-color: #ffffff; background: #ffffff; color: var(--green); }
.ar-check[aria-pressed="true"] .ar-check-box::after { content: "✓"; font-size: 0.72rem; font-weight: 800; line-height: 1; }
.ar-check[aria-pressed="true"] .ar-check-txt::after { content: "8/8 Completed"; }

/* H2 #1: Alternating Money vs Range Trail Stacking Ledgers */
.trail-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 14px; }
.trail-col { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.trail-col-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; background: var(--bar); color: #ffffff; }
.trail-col-h h3 { font-size: 0.96rem; color: #ffffff; margin: 0; }
.trail-col-h span { font-family: var(--f-display); font-weight: 700; font-size: 0.84rem; padding: 2px 8px; border-radius: var(--rad-pill); }
.trail-col-money .trail-col-h span { background: var(--green-bright); color: var(--bar); }
.trail-col-range .trail-col-h span { background: #64bdff; color: var(--bar); }
.trail-ledger { list-style: none; margin: 0; padding: 8px 14px; display: grid; gap: 6px; }
.trail-ledger li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 9px; align-items: center; font-size: 0.87rem; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid var(--surface-alt); }
.trail-ledger li:last-child { border-bottom: 0; }
.trail-ledger img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; display: block; }
.trail-ledger b { color: var(--ink); }
.trail-col-money .trail-ledger strong { color: var(--green); }
.trail-col-range .trail-ledger strong { color: var(--blue); }
.trail-extra { margin: auto 0 0; padding: 10px 14px; background: var(--surface-tint); border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--ink-2); line-height: 1.45; }
.proof-note { margin: 0; padding: 11px 14px; border-radius: var(--rad-md); background: var(--surface-tint); border: 1.5px solid var(--border); font-size: 0.89rem; color: var(--ink-2); line-height: 1.55; }

@media (max-width: 820px) {
  .ar-card { grid-template-columns: 82px minmax(0, 1fr); }
  .ar-trail-box { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .ar-check { width: auto; flex-shrink: 0; }
  .trail-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ar-hud-trails { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .ar-stat { padding: 8px 9px; }
  .ar-stat b { font-size: 1.05rem; }
  .ar-card { grid-template-columns: 1fr; gap: 11px; }
  .ar-left { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .ar-island { width: 58px; }
  .ar-trail-box { flex-direction: column; align-items: stretch; }
}

/* /badges page: Official 8-badge tracker HUD, 2-column badge cards with win-rate meters, hardest-4 grid, and 3-stage unlock route */
.bg-hud { background: var(--bar); color: var(--on-dark); border: 1.5px solid var(--border-strong); border-radius: var(--rad-md); padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow-sm); display: grid; gap: 11px; }
.bg-hud-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.bg-prog-copy { display: inline-flex; align-items: baseline; gap: 9px; }
.bg-prog-copy b { font-family: var(--f-display); font-size: 1.32rem; color: #7ef087; line-height: 1; }
.bg-prog-copy span { font-size: 0.88rem; color: var(--on-dark); font-weight: 500; }
.bg-hud-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--on-dark-dim); }
.bg-reset { font-family: var(--f-display); font-weight: 600; font-size: 0.76rem; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--bar-line); background: var(--bar-2); color: var(--on-dark); cursor: pointer; transition: transform 140ms var(--ease-out); }
.bg-reset:active { transform: scale(0.96); }
.bg-reset[hidden] { display: none; }

.bg-prog-track { height: 10px; background: var(--bar-2); border: 1px solid var(--bar-line); border-radius: var(--rad-pill); overflow: hidden; }
.bg-prog-bar { display: block; width: 100%; height: 100%; border-radius: var(--rad-pill); background: linear-gradient(90deg, var(--green) 0%, var(--green-bright) 100%); transform-origin: left center; transform: scaleX(0); transition: transform 240ms var(--ease-out); }

/* 2-column official badge cards */
.bg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bg-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 15px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); scroll-margin-top: 84px; transition: border-color 160ms ease, box-shadow 160ms var(--ease-out), background-color 160ms ease; }
.bg-card[data-earned="true"] { border-color: var(--green); background: #f8fdf7; }

.bg-card-top { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 13px; align-items: start; }
.bg-ic { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); background: var(--surface-tint); display: block; flex-shrink: 0; }
.bg-card[data-earned="true"] .bg-ic { border-color: var(--green); }
.bg-head { display: grid; gap: 5px; min-width: 0; }
.bg-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.bg-title-row h3 { font-size: 1.05rem; margin: 0; color: var(--ink); }

.bg-tier::after { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; line-height: 1; padding: 4px 8px; border-radius: var(--rad-pill); white-space: nowrap; }
.bg-tier[data-tier="starter"]::after { content: "Starter"; background: var(--green-soft); color: var(--green); }
.bg-tier[data-tier="mid-game"]::after { content: "Mid-game"; background: var(--blue-soft); color: var(--blue); }
.bg-tier[data-tier="index"]::after { content: "Index"; background: var(--r-secret-bg); color: var(--r-secret); }
.bg-tier[data-tier="special"]::after { content: "Special"; background: var(--r-mystery-bg); color: var(--r-mystery); }
.bg-tier[data-tier="rare-rng"]::after { content: "Rare RNG"; background: var(--gold-soft); color: var(--gold); }
.bg-tier[data-tier="endgame-rng"]::after { content: "Endgame RNG"; background: var(--r-mythic-bg); color: var(--r-mythic); }
.bg-tier[data-tier="completionist"]::after { content: "Completionist"; background: var(--r-eternal-bg); color: var(--r-eternal); }

.bg-req { margin: 0; font-size: 0.87rem; font-weight: 600; color: var(--ink-2); line-height: 1.38; }
.bg-rate-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; align-items: center; margin-top: 2px; }
.bg-track { height: 8px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--rad-pill); overflow: hidden; }
.bg-fill { display: block; height: 100%; border-radius: var(--rad-pill); background: var(--green); }
.bg-pct { font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; color: var(--ink); }
.bg-award::after { content: "· " attr(data-aw); font-size: 0.77rem; font-weight: 600; color: var(--mute); }

.bg-tip { margin: 0; font-size: 0.87rem; line-height: 1.5; color: var(--ink-2); flex: 1; }
.bg-card-foot { padding-top: 9px; border-top: 1px solid var(--border); }
.bg-check { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; font-family: var(--f-display); font-weight: 600; font-size: 0.84rem; padding: 8px 12px; border-radius: var(--rad-sm); border: 1.5px solid var(--border); background: var(--bg); color: var(--ink-2); cursor: pointer; transition: transform 140ms var(--ease-out), background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.bg-check:active { transform: scale(0.97); }
.bg-check-box { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--border-strong); display: inline-grid; place-items: center; flex-shrink: 0; }
.bg-check-txt::after { content: "Mark as earned"; }
.bg-check[aria-pressed="true"] { background: var(--green); border-color: #195f14; color: #ffffff; }
.bg-check[aria-pressed="true"] .bg-check-box { border-color: #ffffff; background: #ffffff; color: var(--green); }
.bg-check[aria-pressed="true"] .bg-check-box::after { content: "✓"; font-size: 0.75rem; font-weight: 800; line-height: 1; }
.bg-check[aria-pressed="true"] .bg-check-txt::after { content: "Earned"; }
@media (hover: hover) and (pointer: fine) {
  .bg-check:not([aria-pressed="true"]):hover { border-color: var(--green); color: var(--ink); background: #ffffff; }
}

/* H2 #1: 4 hardest badges tactical grid */
.hard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.hard-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; box-shadow: var(--shadow-sm); display: grid; gap: 9px; align-content: start; }
.hard-top { display: flex; align-items: center; gap: 11px; }
.hard-top img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--border); flex-shrink: 0; }
.hard-top h3 { font-size: 1rem; margin: 0 0 2px; color: var(--ink); }
.hard-stat { font-size: 0.79rem; font-weight: 600; color: var(--mute); }
.hard-card p { margin: 0; font-size: 0.89rem; line-height: 1.52; color: var(--ink-2); }

/* H2 #2: 3-stage progression route */
.phase-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.phase-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; align-items: start; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 13px 15px; box-shadow: var(--shadow-sm); }
.phase-step::before { content: attr(data-st); width: 34px; height: 34px; border-radius: 9px; background: var(--bar); color: #7ef087; font-family: var(--f-display); font-weight: 700; font-size: 1rem; display: inline-grid; place-items: center; }
.phase-step h3 { font-size: 1rem; margin: 0 0 4px; color: var(--ink); }
.phase-step p { margin: 0; font-size: 0.9rem; line-height: 1.52; color: var(--ink-2); }

/* H2 #3: Official stats & reward split */
.stats-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.stats-pane { background: var(--surface-tint); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; }
.stats-pane h3 { font-size: 0.98rem; margin: 0 0 6px; color: var(--ink); }
.stats-pane p { margin: 0; font-size: 0.89rem; line-height: 1.52; color: var(--ink-2); }

@media (max-width: 780px) {
  .bg-grid, .hard-grid, .stats-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bg-card-top { grid-template-columns: 60px minmax(0, 1fr); gap: 11px; }
  .bg-ic { width: 60px; height: 60px; }
}

/* /dummies v2: Visual Next-Zone Shot Planner, 2x2 Four-Phase Dummy Atlas, Interactive Boost Rail, Rifle Pause Cards */
.dm-planner { background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); max-width: 100%; scroll-margin-top: 84px; }

.dm-top { background: var(--bar); color: var(--on-dark); padding: 14px 16px; display: grid; gap: 11px; }
.dm-top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dm-range-box { display: inline-flex; align-items: center; border: 1.5px solid var(--bar-line); border-radius: var(--rad-sm); background: var(--bar-2); overflow: hidden; flex: 1 1 220px; max-width: 310px; transition: border-color 150ms ease; }
.dm-range-box:focus-within { border-color: var(--green-bright); }
.dm-range-box span { font-family: var(--f-display); font-weight: 600; font-size: 0.84rem; color: var(--on-dark-dim); padding: 9px 12px; border-right: 1px solid var(--bar-line); white-space: nowrap; }
.dm-range-box input { width: 100%; min-width: 0; font: inherit; font-weight: 700; font-size: 1rem; padding: 8px 12px; border: 0; background: transparent; color: #7ef087; font-variant-numeric: tabular-nums; }
.dm-range-box input:focus { outline: none; }

.dm-boost-seg { display: inline-flex; padding: 3px; border-radius: var(--rad-sm); background: var(--bar-2); border: 1.5px solid var(--bar-line); }
.dm-boost-seg button { font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; line-height: 1; padding: 7px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--on-dark-dim); cursor: pointer; transition: transform 130ms var(--ease-out), background-color 140ms ease, color 140ms ease; }
.dm-boost-seg button:active { transform: scale(0.96); }
.dm-boost-seg button[aria-pressed="true"] { background: var(--green-bright); color: var(--bar); }
@media (hover: hover) and (pointer: fine) {
  .dm-boost-seg button:hover { color: #ffffff; }
  .dm-boost-seg button[aria-pressed="true"]:hover { color: var(--bar); }
}

.dm-stages { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--bar-line); }
.dm-stage { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: var(--rad-pill); border: 1px solid var(--bar-line); background: var(--bar-2); color: var(--on-dark-dim); font-family: var(--f-body); font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: transform 130ms var(--ease-out), border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.dm-stage:active { transform: scale(0.96); }
.dm-stage img { width: 20px; height: 24px; object-fit: cover; border-radius: 5px; flex-shrink: 0; display: block; }
.dm-stage b { font-family: var(--f-display); font-weight: 700; color: #ffffff; }
.dm-stage[aria-pressed="true"] { background: var(--green-bright); border-color: var(--green-bright); color: var(--bar); }
.dm-stage[aria-pressed="true"] b { color: var(--bar); }
@media (hover: hover) and (pointer: fine) {
  .dm-stage:hover { border-color: var(--green-bright); color: #ffffff; }
  .dm-stage[aria-pressed="true"]:hover { color: var(--bar); }
}

/* Main live result stage */
.dm-stage-body { padding: 16px 18px 14px; display: grid; gap: 14px; }
.dm-target-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 13px; align-items: center; }
.dm-island { width: 56px; height: 66px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface-tint); display: block; }
.dm-target-meta { min-width: 0; display: grid; gap: 6px; }
.dm-target-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dm-target-line strong { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.38rem); color: var(--ink); line-height: 1.15; }
.dm-left-pill { font-family: var(--f-display); font-weight: 700; font-size: 0.8rem; padding: 4px 10px; border-radius: var(--rad-pill); background: var(--green-soft); color: var(--green); border: 1px solid #b8e4ae; white-space: nowrap; }
.dm-left-pill[data-done="1"] { background: var(--blue-soft); color: var(--blue); border-color: #b4d8f6; }

.dm-meter { height: 7px; border-radius: var(--rad-pill); background: var(--surface-alt); overflow: hidden; border: 1px solid var(--border); }
.dm-meter-fill { display: block; width: 100%; height: 100%; background: var(--green); transform-origin: left center; transition: transform 220ms var(--ease-out); }
.dm-subline { margin: 0; font-size: 0.86rem; color: var(--ink-2); line-height: 1.4; }

.dm-step-btns { display: inline-flex; gap: 5px; }
.dm-step { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg); color: var(--ink); font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: transform 130ms var(--ease-out), border-color 140ms ease, background-color 140ms ease; }
.dm-step:active { transform: scale(0.94); }
.dm-step:disabled { opacity: 0.35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .dm-step:not(:disabled):hover { border-color: var(--green); background: var(--green-soft); color: var(--green); }
}

.dm-err { margin: 0; padding: 9px 12px; border-radius: var(--rad-sm); background: var(--red-soft); border: 1px solid #f0b8b4; color: var(--red); font-size: 0.86rem; font-weight: 600; }
.dm-err[hidden] { display: none; }

/* Live 4-dummy visual comparison bars */
.dm-comp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-comp-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1.5px solid var(--border); transition: border-color 150ms ease, background-color 150ms ease; }
.dm-comp-row[data-best="1"] { background: var(--green-soft); border-color: #88cf7a; }
.dm-comp-row[data-pinned="1"] { background: var(--blue-soft); border-color: var(--blue); }
.dm-comp-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; font-size: 0.86rem; }
.dm-comp-info b { font-family: var(--f-display); font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.dm-comp-price { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; }
.dm-comp-gain { font-weight: 700; font-size: 0.83rem; color: var(--green); }
.dm-comp-row[data-obs="1"] .dm-comp-gain { color: var(--gold); }

.dm-comp-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.dm-bar-track { height: 11px; border-radius: var(--rad-pill); background: rgba(20, 30, 28, 0.1); overflow: hidden; }
.dm-bar-fill { display: block; width: 100%; height: 100%; border-radius: var(--rad-pill); background: #6b8577; transform-origin: left center; transition: transform 220ms var(--ease-out); }
.dm-comp-row[data-best="1"] .dm-bar-fill { background: var(--green); }
.dm-comp-row[data-pinned="1"] .dm-bar-fill { background: var(--blue); }
.dm-comp-shots { font-family: var(--f-display); font-weight: 700; font-size: 0.96rem; color: var(--ink); white-space: nowrap; min-width: 82px; text-align: right; }
.dm-comp-row[data-best="1"] .dm-comp-shots { color: var(--green); }
.dm-comp-row[data-pinned="1"] .dm-comp-shots { color: var(--blue); }

/* Optional trails + custom screen rate disclosure */
.dm-extra { border-top: 1px solid var(--border); padding-top: 10px; }
.dm-extra summary { list-style: none; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 0.83rem; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm-extra summary::-webkit-details-marker { display: none; }
.dm-extra summary::after { content: "+ Expand"; font-size: 0.76rem; color: var(--green); }
.dm-extra[open] summary::after { content: "− Hide"; }
.dm-extra-body { margin-top: 11px; display: grid; gap: 11px; }
.dm-tr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.81rem; color: var(--mute); }
.dm-tr-clear { font-family: var(--f-display); font-weight: 600; font-size: 0.76rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--ink-2); cursor: pointer; }
.dm-tr-clear[hidden] { display: none; }
.dm-tr-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-tr-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg); color: var(--ink-2); font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: transform 130ms var(--ease-out), border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.dm-tr-btn:active { transform: scale(0.96); }
.dm-tr-btn img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; display: block; }
.dm-tr-btn b { font-family: var(--f-display); font-weight: 700; color: var(--blue); }
.dm-tr-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #ffffff; }
.dm-tr-btn[aria-pressed="true"] b { color: #ffffff; }
.dm-custom-hit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.83rem; font-weight: 600; color: var(--ink-2); }
.dm-custom-hit input { width: 240px; max-width: 100%; font: inherit; padding: 7px 10px; border-radius: var(--rad-sm); border: 1.5px solid var(--border); background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; }
.dm-custom-hit input:focus { border-color: var(--green); background: #ffffff; outline: none; }

/* CSS-rendered tier & basis tags (zero HTML keyword bloat) */
.dm-tnum::before { content: "#" attr(data-t); display: inline-block; min-width: 26px; font-family: var(--f-display); font-weight: 700; font-size: 0.71rem; color: var(--mute); background: var(--surface-alt); border: 1px solid var(--border); border-radius: 5px; padding: 2px 4px; text-align: center; }
.dm-basis { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.7rem; line-height: 1; padding: 3px 7px; border-radius: var(--rad-pill); white-space: nowrap; }
.dm-basis[data-b="1x"] { background: var(--green-soft); color: var(--green); }
.dm-basis[data-b="1x"]::after { content: "1x"; }
.dm-basis[data-b="x2"] { background: var(--gold-soft); color: var(--gold); }
.dm-basis[data-b="x2"]::after { content: "w/ x2"; }
.dm-basis[data-b="trails"] { background: var(--blue-soft); color: var(--blue); }
.dm-basis[data-b="trails"]::after { content: "x2+tr"; }
.dm-basis[data-b="pending"] { background: var(--surface-alt); color: var(--mute); }
.dm-basis[data-b="pending"]::after { content: "Pending"; }

/* H2 #1: 2x2 Four-Phase Dummy Atlas (all 32 dummies in one screen) */
.dm-atlas { margin: 16px 0 18px; }
.dm-atlas-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--bar); color: var(--on-dark); border: 1.5px solid var(--border-strong); border-radius: var(--rad-md); margin-bottom: 12px; }
.dm-atlas-mode { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 0.86rem; color: #ffffff; }
.dm-mode-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); flex-shrink: 0; }

.dm-phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dm-phase { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.dm-phase-h { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: var(--bar); color: var(--on-dark); }
.dm-phase-art { display: inline-flex; align-items: center; flex-shrink: 0; }
.dm-phase-art img { width: 24px; height: 28px; object-fit: cover; border-radius: 5px; border: 1px solid var(--bar-line); background: var(--bar-2); display: block; }
.dm-phase-art img + img { margin-left: -6px; }
.dm-phase-title { min-width: 0; flex: 1; }
.dm-phase-title h3 { font-size: 0.94rem; color: #ffffff; margin: 0; line-height: 1.15; }
.dm-phase-title span { display: block; font-size: 0.74rem; color: var(--on-dark-dim); line-height: 1.25; }
.dm-phase-band { font-family: var(--f-display); font-size: 0.76rem; padding: 3px 8px; border-radius: var(--rad-pill); background: var(--bar-2); border: 1px solid var(--bar-line); color: #7ef087; white-space: nowrap; }

.dm-phase-list { list-style: none; margin: 0; padding: 4px 0; }
.dm-phase-list li { border-top: 1px solid var(--surface-alt); }
.dm-phase-list li:first-child { border-top: 0; }
.dm-p-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 7px; align-items: center; padding: 7px 11px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.84rem; text-align: left; cursor: pointer; transition: background-color 130ms ease; }
.dm-p-pend { cursor: default; opacity: 0.72; }
.dm-p-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-p-price { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.dm-p-gain { font-weight: 700; color: var(--green); white-space: nowrap; min-width: 48px; text-align: right; }
.dm-p-row[data-basis="x2"] .dm-p-gain, .dm-p-row[data-basis="trails"] .dm-p-gain { color: var(--gold); }
.dm-p-row[data-basis="pending"] .dm-p-gain { color: var(--mute); font-weight: 500; }
.dm-p-row[data-pinned="1"] { background: var(--blue-soft); }
@media (hover: hover) and (pointer: fine) {
  button.dm-p-row:hover { background: var(--green-soft); }
  button.dm-p-row[data-pinned="1"]:hover { background: var(--blue-soft); }
}

/* H2 #2: Interactive Boost Equation Rail & Rifle Pause Cards */
.dm-eq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 0.85fr); gap: 8px; align-items: center; margin: 16px 0 16px; padding: 12px 14px; background: var(--bar); border: 1.5px solid var(--border-strong); border-radius: var(--rad-md); box-shadow: var(--shadow-sm); }
.dm-eq-step { background: var(--bar-2); border: 1.5px solid var(--bar-line); border-radius: 9px; padding: 9px 10px; text-align: center; color: #ffffff; font: inherit; }
.dm-eq-btn { cursor: pointer; transition: transform 130ms var(--ease-out), border-color 150ms ease, background-color 150ms ease; }
.dm-eq-btn:active { transform: scale(0.96); }
.dm-eq-btn[aria-pressed="true"] { background: var(--green-bright); border-color: var(--green-bright); }
.dm-eq-btn[aria-pressed="true"] b, .dm-eq-btn[aria-pressed="true"] span { color: var(--bar); }
.dm-eq-step b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 0.96rem; color: #ffffff; font-variant-numeric: tabular-nums; }
.dm-eq-step span { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--on-dark-dim); }
.dm-eq-pass b { color: #7ef087; }
.dm-eq-timed b { color: #ffd479; }
.dm-eq-out { background: #1d3228; border-color: #2f5941; }
.dm-eq-out b { color: #7ef087; font-size: 1.15rem; }
.dm-eq-op { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--on-dark-dim); text-align: center; }

.dm-boost-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.dm-boost-list li { padding: 12px 15px; border-top: 1px solid var(--border); }
.dm-boost-list li:first-child { border-top: 0; }
.dm-b-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 3px; }
.dm-b-head b { font-family: var(--f-display); font-weight: 600; font-size: 0.97rem; color: var(--ink); }
.dm-b-tag { font-family: var(--f-display); font-weight: 600; font-size: 0.75rem; padding: 3px 9px; border-radius: var(--rad-pill); background: var(--surface-alt); color: var(--ink-2); }
.dm-b-perm { background: var(--green-soft); color: var(--green); }
.dm-boost-list p { margin: 0; font-size: 0.91rem; color: var(--ink-2); }

.dm-pause-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 14px; }
.dm-pause-card { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 13px; border-radius: var(--rad-md); background: var(--surface); border: 1.5px solid var(--border); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 150ms var(--ease-out), border-color 150ms ease; }
.dm-pause-card:active { transform: scale(0.98); }
.dm-pause-card img { width: 78px; height: 58px; object-fit: contain; border-radius: 8px; background: var(--surface-tint); border: 1px solid var(--border); display: block; }
.dm-pause-card b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.94rem; color: var(--ink); line-height: 1.25; margin-bottom: 3px; }
.dm-pause-card span { display: block; font-size: 0.83rem; color: var(--ink-2); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) {
  .dm-pause-card:hover { border-color: var(--green); transform: translateY(-2px); }
}

/* Split media + rules cards */
.dm-slider-split { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 15px; align-items: start; margin: 16px 0 8px; }
.dm-slider-split .shot { margin: 0; }
.dm-slider-notes { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.dm-slider-notes h3 { font-size: 1rem; margin: 0 0 9px; }
.dm-slider-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 0.9rem; color: var(--ink-2); }
.dm-slider-notes strong { color: var(--ink); }

@media (max-width: 860px) {
  .dm-phases { grid-template-columns: minmax(0, 1fr); }
  .dm-pause-grid { grid-template-columns: minmax(0, 1fr); }
  .dm-eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .dm-eq-op { display: none; }
  .dm-slider-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .dm-top { padding: 12px; }
  .dm-range-box { max-width: none; }
  .dm-stage-body { padding: 13px 12px; }
  .dm-target-head { grid-template-columns: 46px minmax(0, 1fr); }
  .dm-island { width: 46px; height: 54px; }
  .dm-step-btns { grid-column: 1 / -1; justify-content: flex-end; }
  .dm-comp-row { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 9px 10px; }
  .dm-p-row { padding: 7px 9px; font-size: 0.8rem; gap: 5px; }
  .dm-p-row .dm-tnum { display: none; }
}

/* /mutations v2: 7x5 Interactive Multiplier & Live-Payout Matrix, 3-Species Proof Cards, Golden Sun vs Lucky Snipe, Luck Split */
.mx-board { background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); max-width: 100%; scroll-margin-top: 84px; }

.mx-bar { background: var(--bar); color: var(--on-dark); padding: 13px 16px; display: grid; gap: 10px; }
.mx-bar-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mx-pick-read { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-right: auto; }
.mx-pick-lbl { font-family: var(--f-display); font-size: 0.77rem; font-weight: 600; color: var(--on-dark-dim); text-transform: uppercase; letter-spacing: 0.03em; }
.mx-pick-read strong { font-family: var(--f-display); font-size: 0.98rem; font-weight: 700; color: #ffffff; }

.mx-cash-box { display: inline-flex; align-items: center; border: 1.5px solid var(--bar-line); border-radius: var(--rad-sm); background: var(--bar-2); overflow: hidden; transition: border-color 150ms ease; }
.mx-cash-box:focus-within { border-color: var(--green-bright); }
.mx-cash-box span { font-family: var(--f-display); font-weight: 600; font-size: 0.8rem; color: var(--on-dark-dim); padding: 7px 9px; border-right: 1px solid var(--bar-line); white-space: nowrap; }
.mx-cash-box input { width: 132px; min-width: 0; font: inherit; font-weight: 700; font-size: 0.9rem; padding: 6px 4px 6px 9px; border: 0; background: transparent; color: #7ef087; font-variant-numeric: tabular-nums; }
.mx-cash-box input:focus { outline: none; }
.mx-cash-box em { font-style: normal; font-size: 0.78rem; color: var(--on-dark-dim); padding-right: 9px; }

.mx-clear { font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; padding: 7px 11px; border-radius: var(--rad-sm); border: 1.5px solid var(--bar-line); background: var(--bar-2); color: #ffffff; cursor: pointer; transition: transform 130ms var(--ease-out), border-color 140ms ease; }
.mx-clear:active { transform: scale(0.96); }
.mx-clear[hidden] { display: none; }

.mx-ex-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 9px; border-top: 1px solid var(--bar-line); }
.mx-ex-lbl { font-size: 0.76rem; font-weight: 600; color: var(--on-dark-dim); margin-right: 2px; }
.mx-ex { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: var(--rad-pill); border: 1px solid var(--bar-line); background: var(--bar-2); color: var(--on-dark-dim); font-family: var(--f-body); font-size: 0.76rem; font-weight: 500; cursor: pointer; transition: transform 130ms var(--ease-out), border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.mx-ex:active { transform: scale(0.96); }
.mx-ex img { width: 18px; height: 19px; object-fit: contain; border-radius: 4px; display: block; flex-shrink: 0; }
.mx-ex b { font-family: var(--f-display); font-weight: 700; color: #7ef087; }
@media (hover: hover) and (pointer: fine) {
  .mx-ex:hover, .mx-clear:hover { border-color: var(--green-bright); color: #ffffff; }
}

/* 8x6 Heatmap Matrix Grid */
.mx-grid { display: grid; grid-template-columns: 94px repeat(6, minmax(0, 1fr)); gap: 5px; padding: 12px 14px; background: var(--bg); }
.mx-corner { display: grid; place-items: center; font-family: var(--f-display); font-size: 0.71rem; font-weight: 600; color: var(--mute); }
.mx-ch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; border-radius: 8px; background: var(--bar); color: #ffffff; text-align: center; line-height: 1.1; }
.mx-ch span { font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; }
.mx-ch small { font-size: 0.71rem; color: var(--on-dark-dim); }
.mx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7b8f86; }
.mx-ch[data-m="silver"] .mx-dot { background: #c5d0dc; }
.mx-ch[data-m="gold"] .mx-dot { background: #f2b705; }
.mx-ch[data-m="ruby"] .mx-dot { background: #e63946; }
.mx-ch[data-m="rainbow"] .mx-dot { background: conic-gradient(#ff4d4d, #ffd166, #37c519, #127dd6, #9b5de5, #ff4d4d); }
.mx-ch[data-m="frost"] .mx-dot { background: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3); }

.mx-rh { display: flex; flex-direction: column; justify-content: center; padding: 6px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); line-height: 1.15; }
.mx-rh b { font-family: var(--f-display); font-weight: 600; font-size: 0.83rem; color: var(--ink); }
.mx-rh small { font-size: 0.72rem; color: var(--mute); }

.mx-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 46px; padding: 6px 4px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-align: center; transition: transform 130ms var(--ease-out), border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease; }
.mx-cell:active { transform: scale(0.96); }
.mx-cell strong { font-family: var(--f-display); font-weight: 700; font-size: 0.94rem; line-height: 1.1; }
.mx-cell-sub { font-size: 0.68rem; font-weight: 600; color: var(--mute); line-height: 1.1; }
.mx-cell-sub:empty { display: none; }

/* Heat tiers: instant visual proof that Colossal (30x) beats Rainbow Massive (20x) */
.mx-cell[data-heat="lo"] { background: #ffffff; }
.mx-cell[data-heat="mid"] { background: #edf8ea; border-color: #c2e3ba; }
.mx-cell[data-heat="hi"] { background: #fff5de; border-color: #e9cf93; }
.mx-cell[data-heat="hi"] strong { color: #8c5200; }
.mx-cell[data-heat="max"] { background: #dff4da; border-color: #6cc25b; }
.mx-cell[data-heat="max"] strong { color: #1a6613; }

.mx-cell[aria-pressed="true"] { background: var(--bar); border-color: var(--green-bright); box-shadow: 0 0 0 2px rgba(55, 197, 25, 0.28); }
.mx-cell[aria-pressed="true"] strong { color: #7ef087; }
.mx-cell[aria-pressed="true"] .mx-cell-sub { color: var(--on-dark-dim); }
@media (hover: hover) and (pointer: fine) {
  .mx-cell:hover { border-color: var(--green); }
  .mx-cell[aria-pressed="true"]:hover { border-color: var(--green-bright); }
}

.mx-foot { padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); }
.mx-verdict { margin: 0; font-size: 0.89rem; color: var(--ink-2); line-height: 1.5; }
.mx-verdict b { color: var(--ink); }
.mx-err { margin: 8px 0 0; padding: 7px 10px; border-radius: var(--rad-sm); background: var(--red-soft); border: 1px solid #f0b8b4; color: var(--red); font-size: 0.84rem; font-weight: 600; }
.mx-err[hidden] { display: none; }

/* H2 #1: 3-Species Grouped Proof Cards (1 distinct portrait per species) */
.mx-sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 16px; }
.mx-sp-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.mx-sp-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-tint); border-bottom: 1px solid var(--border); }
.mx-sp-h img { width: 48px; height: 51px; object-fit: contain; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); padding: 2px; flex-shrink: 0; }
.mx-sp-h h3 { font-size: 0.96rem; margin: 0; color: var(--ink); line-height: 1.2; }
.mx-sp-h span { display: block; font-size: 0.75rem; color: var(--mute); line-height: 1.3; }
.mx-sp-list { list-style: none; margin: 0; padding: 6px 12px; display: grid; }
.mx-sp-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--surface-alt); font-size: 0.82rem; }
.mx-sp-list li:first-child { border-top: 0; }
.mx-sp-form { font-weight: 600; color: var(--ink); }
.mx-sp-math { color: var(--mute); font-size: 0.77rem; white-space: nowrap; }
.mx-sp-seen { color: var(--green); font-weight: 700; white-space: nowrap; }
.mx-sp-note { margin: auto 0 0; padding: 8px 12px; background: var(--bg); border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--ink-2); line-height: 1.4; }

/* H2 #2: Free vs Paid Hunting Paths */
.mx-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 16px 0 8px; }
.mx-path { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.mx-path-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; background: var(--bar); color: #ffffff; }
.mx-path-h h3 { font-size: 0.96rem; color: #ffffff; margin: 0; }
.mx-ptag { font-family: var(--f-display); font-weight: 700; font-size: 0.74rem; padding: 3px 9px; border-radius: var(--rad-pill); background: #f2b705; color: var(--bar); white-space: nowrap; }
.mx-ptag-free { background: var(--green-bright); }

.mx-specs { margin: 0; padding: 10px 14px; display: grid; gap: 7px; }
.mx-specs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--surface-alt); font-size: 0.86rem; }
.mx-specs > div:last-child { border-bottom: 0; padding-bottom: 0; }
.mx-specs dt { color: var(--mute); font-weight: 500; }
.mx-specs dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

.mx-ls-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 11px 14px; }
.mx-ls-cols h4 { font-size: 0.79rem; color: var(--mute); margin: 0 0 7px; text-transform: uppercase; letter-spacing: 0.02em; }
.mx-ls-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.mx-ls-cols li { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.84rem; padding: 4px 8px; border-radius: 6px; background: var(--bg); }
.mx-ls-cols li b { color: var(--ink); }

.mx-path-tip { margin: auto 0 0; padding: 10px 14px; background: var(--surface-tint); border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--ink-2); line-height: 1.45; }

/* H2 #3: Luck split */
.mx-luck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 16px 0 14px; }
.mx-luck-col { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.mx-luck-col h3 { font-size: 0.97rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1.5px solid var(--border); }
.mx-luck-yes h3 { color: var(--green); border-color: #b8e4ae; }
.mx-luck-no h3 { color: var(--red); border-color: #f0b8b4; }
.mx-luck-col ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 0.9rem; color: var(--ink-2); }
.mx-luck-col strong { color: var(--ink); }

@media (max-width: 900px) {
  .mx-sp-grid { grid-template-columns: minmax(0, 1fr); }
  .mx-paths, .mx-luck { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .mx-bar { padding: 12px; }
  .mx-cash-box input { width: 106px; }
  .mx-grid { grid-template-columns: 52px repeat(6, minmax(0, 1fr)); gap: 3px; padding: 8px 6px; }
  .mx-corner { font-size: 0.56rem; }
  .mx-ch { padding: 4px 2px; }
  .mx-ch span { font-size: 0.62rem; }
  .mx-ch small { font-size: 0.58rem; }
  .mx-rh { padding: 4px 4px; }
  .mx-rh b { font-size: 0.64rem; }
  .mx-rh small { font-size: 0.58rem; }
  .mx-cell { min-height: 38px; padding: 3px 1px; border-radius: 6px; }
  .mx-cell strong { font-size: 0.67rem; }
  .mx-cell-sub { font-size: 0.55rem; }
  .mx-ls-cols { grid-template-columns: minmax(0, 1fr); }
}

/* /tier-list page: Classic Horizontal S/A/B/C Gun Value Board, Fixed-Height Inspector, S+–C Pen Animal Board, & Quick-View Sheet */
.tl-board { background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); max-width: 100%; }

.tl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 15px; background: var(--bar); color: var(--on-dark); }
.tl-bar-copy { display: grid; gap: 2px; }
.tl-bar-copy b { font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; color: #ffffff; line-height: 1.15; }
.tl-bar-copy span { font-size: 0.78rem; color: var(--on-dark-dim); }

.tl-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: var(--rad-sm); background: var(--bar-2); border: 1.5px solid var(--bar-line); }
.tl-seg button { font-family: var(--f-display); font-weight: 600; font-size: 0.79rem; line-height: 1; padding: 7px 11px; border: 0; border-radius: 6px; background: transparent; color: var(--on-dark-dim); cursor: pointer; transition: transform 130ms var(--ease-out), background-color 140ms ease, color 140ms ease; }
.tl-seg button:active { transform: scale(0.96); }
.tl-seg button[aria-pressed="true"] { background: var(--green-bright); color: var(--bar); }
@media (hover: hover) and (pointer: fine) {
  .tl-seg button:hover { color: #ffffff; }
  .tl-seg button[aria-pressed="true"]:hover { color: var(--bar); }
}

/* Classic Horizontal Tier Lanes */
.tl-lanes { display: grid; background: var(--bg); }
.tl-lane { display: grid; grid-template-columns: 82px minmax(0, 1fr); border-top: 1.5px solid var(--border); min-height: 82px; }
.tl-lane:first-child { border-top: 0; }
.tl-lane[hidden] { display: none; }

.tl-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; text-align: center; border-right: 1.5px solid var(--border); }
.tl-badge b { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.tl-badge span { font-family: var(--f-display); font-weight: 600; font-size: 0.68rem; line-height: 1.1; opacity: 0.9; }

.tl-badge[data-t="splus"] { background: #141e1c; color: #ffd479; }
.tl-badge[data-t="s"] { background: #d93025; color: #ffffff; }
.tl-badge[data-t="a"] { background: #26841e; color: #ffffff; }
.tl-badge[data-t="b"] { background: var(--blue); color: #ffffff; }
.tl-badge[data-t="c"] { background: #596c8a; color: #ffffff; }

.tl-items { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px 11px; align-content: center; }
.tl-gun { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 106px; padding: 6px 6px 7px; border-radius: 9px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; text-align: center; cursor: pointer; transition: transform 130ms var(--ease-out), border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease; }
.tl-gun:active { transform: scale(0.96); }
.tl-gun[hidden] { display: none; }
.tl-gun img { width: 68px; height: 50px; object-fit: contain; display: block; border-radius: 6px; background: var(--surface-tint); }
.tl-g-name { font-family: var(--f-display); font-weight: 600; font-size: 0.77rem; line-height: 1.15; color: var(--ink); }
.tl-g-meta { font-size: 0.68rem; font-weight: 600; color: var(--mute); line-height: 1.1; white-space: nowrap; }
.tl-gun[aria-current="true"] { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 2px rgba(38, 132, 30, 0.2); }
@media (hover: hover) and (pointer: fine) {
  .tl-gun:hover { border-color: var(--green); transform: translateY(-1px); color: var(--ink); }
}

/* Fixed-Height Bottom Inspector Bar (prevents layout jump between 1-line and 2-line descriptions) */
.tl-inspector { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 13px 16px; min-height: 92px; background: var(--surface); border-top: 1.5px solid var(--border); }
.tl-ins-main { display: flex; align-items: flex-start; gap: 11px; flex: 1 1 360px; min-width: 0; }
.tl-ins-tier, .tl-sh-tier { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 0.96rem; color: #ffffff; flex-shrink: 0; }
.tl-ins-tier[data-t="s"], .tl-sh-tier[data-t="s"] { background: #d93025; }
.tl-ins-tier[data-t="a"], .tl-sh-tier[data-t="a"] { background: #26841e; }
.tl-ins-tier[data-t="b"], .tl-sh-tier[data-t="b"] { background: #127dd6; }
.tl-ins-tier[data-t="c"], .tl-sh-tier[data-t="c"] { background: #596c8a; }
.tl-sh-tier[data-t="splus"] { background: #ffd479; color: var(--bar); font-size: 0.86rem; }

.tl-ins-copy { min-width: 0; flex: 1; }
.tl-ins-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.tl-ins-head strong { font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.tl-ins-head span { font-size: 0.82rem; font-weight: 600; color: var(--green); }
.tl-ins-copy p { margin: 3px 0 0; font-size: 0.87rem; color: var(--ink-2); line-height: 1.45; min-height: 2.9em; }

.tl-ins-acts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; flex-shrink: 0; }
.tl-ins-btn, .tl-ins-link { font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; line-height: 1; padding: 8px 12px; border-radius: var(--rad-sm); white-space: nowrap; cursor: pointer; text-decoration: none; transition: transform 130ms var(--ease-out), border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.tl-ins-btn { border: 1.5px solid #195f14; background: var(--green); color: #ffffff; }
.tl-ins-link { border: 1.5px solid var(--border); background: var(--bg); color: var(--green); }
.tl-ins-btn:active, .tl-ins-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .tl-ins-btn:hover { background: var(--green-hi); }
  .tl-ins-link:hover { border-color: var(--green); background: var(--green-soft); color: #195f14; }
}

/* Quick-View Sheet adjustments for /tier-list (reuses 40-guns.css .sheet base) */
.tl-sheet[data-kind="animal"] .sheet-hero { grid-template-columns: 156px minmax(0, 1fr); }
.tl-sheet[data-kind="animal"] .sheet-hero img { aspect-ratio: 180 / 190; object-fit: contain; background: var(--surface-tint); }
.tl-sh-foot { flex-wrap: wrap; }
.tl-sh-cta { font-size: 0.86rem; padding: 8px 14px; }

/* H2 #1: Pen Animals Archetype Tier Board */
.tl-an-board { display: grid; border: 1.5px solid var(--border-strong); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); margin: 16px 0 14px; background: var(--surface); }
.tl-an-lane { display: grid; grid-template-columns: 82px minmax(0, 1fr); border-top: 1.5px solid var(--border); }
.tl-an-lane:first-child { border-top: 0; }
.tl-an-body { padding: 12px 15px; display: grid; gap: 8px; }
.tl-an-body h3 { font-size: 0.97rem; margin: 0; color: var(--ink); line-height: 1.25; }
.tl-an-body p { margin: 0; font-size: 0.88rem; color: var(--ink-2); line-height: 1.48; }
.tl-an-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-an-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border-radius: 9px; background: var(--bg); border: 1.5px solid var(--border); text-decoration: none; color: var(--ink); cursor: pointer; transition: transform 130ms var(--ease-out), border-color 140ms ease, background-color 140ms ease; }
.tl-an-chip:active { transform: scale(0.97); }
.tl-an-chip img { width: 34px; height: 36px; object-fit: contain; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; display: block; }
.tl-an-chip div { display: grid; line-height: 1.2; }
.tl-an-chip b { font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.tl-an-chip span { font-size: 0.74rem; color: var(--mute); }
@media (hover: hover) and (pointer: fine) {
  .tl-an-chip:hover { border-color: var(--green); background: var(--green-soft); color: var(--ink); transform: translateY(-1px); }
}

.tl-an-plate em { font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: 0.8rem; padding: 5px 8px; border-radius: 7px; background: var(--r-scaled-bg, #e3f6eb); color: var(--r-scaled, #1d6f42); border: 1px solid #b8e4ae; }
.tl-an-plate[data-p="mystery"] em { background: var(--r-mystery-bg, #efecff); color: var(--r-mystery, #493494); border-color: #d2c8f7; }

.tl-anchor-note { margin: 0; padding: 11px 14px; border-radius: var(--rad-md); background: var(--surface-tint); border: 1.5px solid var(--border); font-size: 0.89rem; color: var(--ink-2); line-height: 1.52; }
.tl-anchor-note b, .tl-anchor-note strong { color: var(--ink); }

/* H2 #2: Pen Swap & Cash Rules Split */
.tl-rules-split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 16px; align-items: start; margin: 16px 0 8px; }
.tl-rules-split .shot { margin: 0; }
.tl-rule-list { margin: 0; padding: 14px 16px 14px 32px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); box-shadow: var(--shadow-sm); display: grid; gap: 10px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.tl-rule-list b { color: var(--ink); }

@media (max-width: 860px) {
  .tl-rules-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .tl-bar { padding: 11px 12px; }
  .tl-lane, .tl-an-lane { grid-template-columns: 54px minmax(0, 1fr); }
  .tl-badge { padding: 8px 3px; }
  .tl-badge b { font-size: 1.18rem; }
  .tl-badge span { font-size: 0.6rem; }
  .tl-items { gap: 5px; padding: 7px 8px; }
  .tl-gun { width: calc(50% - 3px); padding: 5px 4px 6px; }
  .tl-gun img { width: 58px; height: 43px; }
  .tl-inspector { padding: 11px 12px; min-height: 0; }
  .tl-ins-copy p { min-height: 0; }
  .tl-an-body { padding: 10px 11px; }
  .tl-sh-cta { order: -1; width: 100%; text-align: center; }
}

/* W5: /how-to-play — Clickable 5-Step Loop Dock, Illustrated First-Hour Trail, Annotated HUD,
   18-Slot Pen Capacity Ladder, Visual Cash-Split Cards & 2x2 Do/Don't Tips Grid */
.htp-atlas { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); }

/* Clickable 5-step gameplay loop dock in Shop Charcoal chrome */
.htp-loop-bar { background: var(--bar); color: var(--on-dark); padding: 12px 16px; border-bottom: 3px solid var(--green-bright); }
.htp-loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.htp-loop-item { position: relative; min-width: 0; }
.htp-loop-item:not(:last-child)::after { content: "›"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--green-bright); font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1; z-index: 1; pointer-events: none; }
.htp-loop-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--rad-sm); background: var(--bar-2); border: 1px solid var(--bar-line); text-decoration: none; color: inherit; transition: transform 150ms var(--ease-out), border-color 150ms ease, background-color 150ms ease; }
.htp-loop-link:active { transform: scale(0.97); }
.htp-loop-link::after { content: "↗"; margin-left: auto; font-size: 0.72rem; color: var(--on-dark-dim); opacity: 0.55; transition: opacity 150ms ease, transform 150ms var(--ease-out), color 150ms ease; flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
  .htp-loop-link:hover { border-color: var(--green-bright); background: #223531; color: #ffffff; }
  .htp-loop-link:hover::after { opacity: 1; color: var(--green-bright); transform: translate(1px, -1px); }
}
.htp-loop-ic { width: 28px; height: 28px; border-radius: 7px; background: rgba(55, 197, 25, 0.14); color: var(--green-bright); display: grid; place-items: center; flex-shrink: 0; }
.htp-loop-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.htp-loop-txt b { font-family: var(--f-display); font-weight: 600; font-size: 0.86rem; line-height: 1.15; color: #ffffff; }
.htp-loop-txt small { font-size: 0.72rem; line-height: 1.2; color: var(--on-dark-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Reusable icon-led quick-jump chips (arrow via CSS content to keep HTML clean) */
.htp-jump-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.htp-jchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: var(--rad-pill); background: var(--bg); border: 1.5px solid var(--border); font-family: var(--f-display); font-weight: 600; font-size: 0.79rem; line-height: 1.1; color: var(--ink); text-decoration: none; transition: transform 140ms var(--ease-out), border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.htp-jchip:active { transform: scale(0.97); }
.htp-jchip::after { content: "›"; font-size: 0.95rem; line-height: 1; color: var(--green); margin-left: 1px; }
.htp-jchip-ext::after { content: "↗"; font-size: 0.76rem; color: var(--blue); }
.htp-jchip-ic { display: grid; place-items: center; color: var(--green); flex-shrink: 0; }
.htp-jchip-ext .htp-jchip-ic { color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .htp-jchip:hover { border-color: var(--green); background: var(--green-soft); color: var(--ink); }
  .htp-jchip-ext:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
}

/* 6-milestone connected progression trail */
.htp-trail { list-style: none; margin: 0; padding: 0; }
.htp-step { position: relative; display: grid; grid-template-columns: 30px 76px minmax(0, 1fr) 114px; gap: 12px 14px; align-items: center; padding: 15px 16px; border-bottom: 1.5px solid var(--border); background: var(--surface); transition: background-color 150ms ease; }
.htp-step:last-child { border-bottom: 0; }
.htp-step::before { content: attr(data-step); width: 28px; height: 28px; border-radius: 50%; background: var(--bar); color: var(--green-bright); font-family: var(--f-display); font-weight: 700; font-size: 0.86rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.htp-step:not(:last-child)::after { content: ""; position: absolute; left: 29px; top: calc(50% + 16px); bottom: calc(-50% + 16px); width: 2px; background: var(--border); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .htp-step:hover { background: #f8fbf6; }
}

.htp-thumb { width: 76px; height: 64px; border-radius: 10px; background: var(--bg); border: 1.5px solid var(--border); display: grid; place-items: center; padding: 4px; overflow: hidden; transition: transform 150ms var(--ease-out), border-color 150ms ease; }
.htp-thumb:active { transform: scale(0.96); }
.htp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (hover: hover) and (pointer: fine) {
  .htp-thumb:hover { border-color: var(--green); transform: translateY(-2px); }
}

.htp-step-body { min-width: 0; }
.htp-step-body h3 { font-size: 1rem; margin: 0 0 4px; color: var(--ink); }
.htp-step-body p { margin: 0; font-size: 0.89rem; line-height: 1.5; color: var(--ink-2); }

/* Right-side tabular Range / Cash target pills (micro-labels via CSS content) */
.htp-step-meta { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.htp-pill { display: flex; flex-direction: column; gap: 2px; padding: 6px 9px; border-radius: var(--rad-sm); font-family: var(--f-display); font-weight: 700; font-size: 0.86rem; line-height: 1.1; text-align: right; }
.htp-pill::before { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.82; }
.htp-pill-range { background: var(--blue-soft); color: var(--blue); border: 1px solid #c5dff7; }
.htp-pill-range::before { content: "Range"; }
.htp-pill-cash { background: var(--green-soft); color: var(--green); border: 1px solid #bfe4b7; }
.htp-pill-cash::before { content: "Key buy"; }

/* Annotated Aiming HUD split */
.htp-hud { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 18px; align-items: start; margin: 16px 0 18px; }
.htp-hud-fig { position: sticky; top: 86px; margin: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 10px; box-shadow: var(--shadow-sm); }
.htp-hud-frame { position: relative; border-radius: 9px; overflow: hidden; background: var(--bar); }
.htp-hud-frame img { display: block; width: 100%; height: auto; }
.htp-hud-fig figcaption { margin-top: 9px; font-size: 0.84rem; color: var(--mute); line-height: 1.45; padding: 0 2px; }

.htp-pin { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #ffffff; border: 2px solid #ffffff; font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(20, 30, 28, 0.42); font-variant-numeric: tabular-nums; }

.htp-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.htp-leg-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 13px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); box-shadow: var(--shadow-sm); }
.htp-leg-item::before { content: attr(data-pin); width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #ffffff; font-family: var(--f-display); font-weight: 700; font-size: 0.78rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; margin-top: 1px; }
.htp-leg-item h3 { font-size: 0.94rem; margin: 0 0 3px; color: var(--ink); }
.htp-leg-item p { margin: 0; font-size: 0.86rem; line-height: 1.48; color: var(--ink-2); }

/* Keycap PC vs Mobile controls */
.htp-ctrl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.htp-ctrl-box { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 15px 16px; box-shadow: var(--shadow-sm); }
.htp-ctrl-box h3 { display: flex; align-items: center; gap: 8px; font-size: 0.98rem; margin: 0 0 11px; padding-bottom: 8px; border-bottom: 1px solid var(--border); color: var(--ink); }
.htp-ctrl-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.htp-keys { margin: 0; display: grid; gap: 9px; }
.htp-keys > div { display: grid; grid-template-columns: 114px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.htp-keys dt { margin: 0; font-size: 0.84rem; color: var(--ink); }
.htp-keys dd { margin: 0; font-size: 0.87rem; line-height: 1.45; color: var(--ink-2); }
.htp-keys kbd { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; line-height: 1.15; padding: 3px 7px; border-radius: 6px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--border); box-shadow: 0 1px 0 var(--border); }

/* Visual 8 -> 18 Pen Capacity Pip Ladder */
.htp-slot-deck { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); margin: 16px 0 18px; }
.htp-slot-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 11px 16px; background: var(--bar); color: var(--on-dark); border-bottom: 2px solid var(--green-bright); }
.htp-slot-bar b { font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: #ffffff; }
.htp-slot-bar span { font-size: 0.8rem; color: var(--on-dark-dim); }
.htp-slot-list { list-style: none; margin: 0; padding: 0; }
.htp-slot-row { display: grid; grid-template-columns: 175px minmax(0, 1fr) 82px; gap: 10px 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.htp-slot-row:last-child { border-bottom: 0; }
.htp-slot-row:nth-child(even) { background: #f8fbf6; }
.htp-slot-head { display: flex; flex-direction: column; gap: 1px; }
.htp-slot-head b { font-family: var(--f-display); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.htp-slot-note { font-size: 0.78rem; color: var(--mute); }
.htp-pips { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 3px; max-width: 340px; }
.htp-pip { height: 11px; border-radius: 3px; background: var(--surface-alt); border: 1px solid var(--border); }
.htp-pip-on { background: var(--green); border-color: #1f6d18; }
.htp-pip-new { background: var(--green-bright); border-color: var(--green); }
.htp-slot-price { text-align: right; font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; color: var(--green); background: var(--green-soft); padding: 4px 9px; border-radius: var(--rad-sm); }

/* Visual Cash-Split Rule Grid + 4 Clickable Gun Checkpoints */
.htp-split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.htp-split-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 15px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.htp-split-guns { grid-column: 1 / -1; }
.htp-split-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.htp-split-guns .htp-split-top { justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.htp-split-art { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 4px; }
.htp-split-top h3 { font-size: 0.98rem; margin: 4px 0 0; color: var(--ink); }
.htp-split-card > p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); flex: 1; }

.htp-dec-tag::after { display: inline-block; padding: 3px 8px; border-radius: var(--rad-pill); font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; line-height: 1.1; white-space: nowrap; }
.htp-dec-tag[data-d="dummy"]::after { content: "Dummy first"; background: var(--blue-soft); color: var(--blue); }
.htp-dec-tag[data-d="pen"]::after { content: "Pen & Index"; background: var(--gold-soft); color: var(--gold); }
.htp-dec-tag[data-d="gun"]::after { content: "Milestone guns"; background: var(--green-soft); color: var(--green); }

.htp-gun-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.htp-gun-stop { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; background: var(--bg); border: 1.5px solid var(--border); text-decoration: none; color: inherit; transition: transform 150ms var(--ease-out), border-color 150ms ease, background-color 150ms ease; }
.htp-gun-stop:active { transform: scale(0.97); }
.htp-gun-stop img { width: 52px; height: 38px; object-fit: contain; flex-shrink: 0; }
.htp-gun-stop b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.88rem; line-height: 1.15; color: var(--ink); }
.htp-gun-stop small { display: block; font-family: var(--f-display); font-weight: 700; font-size: 0.8rem; color: var(--green); margin-top: 2px; }
@media (hover: hover) and (pointer: fine) {
  .htp-gun-stop:hover { border-color: var(--green); background: var(--green-soft); transform: translateY(-2px); }
}

/* 2x2 Visual Do / Don't Beginner Tips Grid (override .prose > ul left padding) */
.htp-tip-grid, .prose > ul.htp-tip-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.htp-tip-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 15px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 9px; }
.htp-tip-bad, .htp-tip-good { margin: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 0.88rem; line-height: 1.48; }
.htp-tip-bad { color: var(--ink); padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.htp-tip-good { color: var(--ink-2); flex: 1; }
.htp-tip-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; flex-shrink: 0; }
.htp-ic-bad { background: var(--red-soft); color: var(--red); }
.htp-ic-good { background: var(--green-soft); color: var(--green); }

@media (max-width: 860px) {
  .htp-loop { display: flex; flex-wrap: wrap; gap: 7px 14px; }
  .htp-loop-item { flex: 0 1 auto; }
  .htp-loop-link { padding: 5px 9px; }
  .htp-loop-link::after { display: none; }
  .htp-loop-item:not(:last-child)::after { right: -11px; }
  .htp-loop-ic { width: 22px; height: 22px; }
  .htp-loop-txt small { display: none; }
  .htp-hud, .htp-ctrl-grid, .htp-split-grid, .htp-tip-grid { grid-template-columns: 1fr; }
  .htp-hud-fig { position: static; }
  .htp-gun-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .htp-step { grid-template-columns: 26px 60px minmax(0, 1fr); align-items: start; gap: 10px 12px; padding: 14px 13px; }
  .htp-step::before { width: 26px; height: 26px; font-size: 0.8rem; margin-top: 2px; }
  .htp-step:not(:last-child)::after { left: 25px; top: 44px; bottom: -16px; }
  .htp-thumb { width: 60px; height: 54px; }
  .htp-step-meta { grid-column: 2 / -1; flex-direction: row; gap: 8px; }
  .htp-pill { flex: 1; text-align: left; }
  .htp-slot-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 11px 13px; }
  .htp-slot-price { grid-column: 2; grid-row: 1; justify-self: end; }
  .htp-pips { grid-column: 1 / -1; max-width: none; }
  .htp-keys > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 440px) {
  .htp-loop-bar { padding: 10px 12px; }
  .htp-pin { width: 22px; height: 22px; font-size: 0.72rem; }
  .htp-gun-strip { grid-template-columns: 1fr; }
}

/* W5: /shop — Official 2-Pass Head-to-Head Deck, Bundle Savings Strip, 24-Item Filterable Catalog & Egg Comparison */
.sh-pass-deck { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.sh-deck-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 11px 16px; background: var(--bar); color: var(--on-dark); border-bottom: 3px solid var(--green-bright); font-size: 0.86rem; }
.sh-deck-bar b { font-family: var(--f-display); font-weight: 600; color: #ffffff; }
.sh-deck-note { font-size: 0.8rem; color: var(--on-dark-dim); }

.sh-pass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1.5px solid var(--border); }
.sh-pass-card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 11px; background: var(--surface); }
.sh-pass-card + .sh-pass-card { border-left: 1.5px solid var(--border); }
.sh-pass-top { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.sh-pass-ic { width: 70px; height: 70px; object-fit: contain; padding: 6px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--border); }
.sh-pass-head { min-width: 0; }
.sh-pass-head h3 { font-size: 1.2rem; margin: 5px 0 2px; color: var(--ink); }
.sh-pass-quote { margin: 0; font-size: 0.82rem; color: var(--mute); font-style: italic; }

/* CSS-rendered priority & permanent chrome (keeps HTML word count focused) */
.sh-rank-badge::after { display: inline-block; padding: 3px 9px; border-radius: var(--rad-pill); font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; line-height: 1.1; }
.sh-rank-badge[data-rk="best"]::after { content: "#1 Best value"; background: var(--green-soft); color: var(--green); }
.sh-rank-badge[data-rk="grind"]::after { content: "#2 For late grinds"; background: var(--blue-soft); color: var(--blue); }

.sh-pass-price { text-align: right; padding: 7px 11px; border-radius: var(--rad-sm); background: var(--bar); color: #ffffff; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sh-pass-price b { font-family: var(--f-display); font-weight: 700; font-size: 1.16rem; line-height: 1; color: var(--green-bright); }
.sh-perm-lbl::after { content: "Permanent"; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--on-dark-dim); }

.sh-pass-desc { margin: 0; font-size: 0.9rem; line-height: 1.52; color: var(--ink-2); flex: 1; }
.sh-pass-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--mute); padding-top: 9px; border-top: 1px solid var(--border); }

/* 3-row budget decision strip */
.sh-bud-list { list-style: none; margin: 0; padding: 0; background: var(--bg); }
.sh-bud-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sh-bud-row:last-child { border-bottom: 0; }
.sh-bud-amt { display: inline-grid; place-items: center; padding: 6px 8px; border-radius: var(--rad-sm); background: var(--surface); border: 1.5px solid var(--border); font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.sh-bud-body b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.sh-bud-body p { margin: 2px 0 0; font-size: 0.85rem; line-height: 1.44; color: var(--ink-2); }
.sh-bud-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Visual 3-bundle per-unit savings strip */
.sh-bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; }
.sh-bcard { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 15px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.sh-bcard h3 { font-size: 1rem; margin: 0; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sh-btier-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sh-btier { display: grid; grid-template-columns: 34px 52px 58px minmax(0, 1fr); gap: 6px; align-items: center; padding: 6px 8px; border-radius: var(--rad-sm); background: var(--bg); font-size: 0.82rem; }
.sh-btier-best { background: var(--green-soft); border: 1px solid #bfe4b7; }
.sh-bqty { font-family: var(--f-display); font-weight: 600; color: var(--ink-2); }
.sh-bprice { font-family: var(--f-display); font-weight: 700; color: var(--ink); }
.sh-beach { color: var(--mute); font-size: 0.78rem; }
.sh-bsave { text-align: right; font-family: var(--f-display); font-weight: 600; font-size: 0.76rem; color: var(--green); white-space: nowrap; }
.sh-btier:first-child .sh-bsave { color: var(--mute); font-weight: 500; }
.sh-bverdict { margin: auto 0 0; font-size: 0.83rem; line-height: 1.45; color: var(--ink-2); }

/* 24-item filterable catalog */
.sh-cat-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.sh-cat-count { font-size: 0.84rem; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-cat-count b { color: var(--ink); }
.sh-tbl-wrap { margin-top: 0; }
.sh-tbl tr[hidden] { display: none; }

/* CSS-chrome item type & value tags inside catalog rows */
.sh-kind::after { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: var(--rad-pill); font-family: var(--f-display); font-weight: 600; font-size: 0.7rem; line-height: 1.1; vertical-align: middle; }
.sh-kind[data-k="pass"]::after { content: "Pass"; background: var(--bar); color: var(--green-bright); }
.sh-kind[data-k="prod"]::after { content: "Product"; background: var(--surface-alt); color: var(--mute); }
.sh-unit-lbl[data-u="perm"]::after { content: "Permanent"; color: var(--green); font-weight: 600; }
.sh-unit-lbl[data-u="scale"]::after { content: "Scales live"; color: var(--mute); }

.sh-vtag::after { display: inline-block; margin-right: 7px; padding: 2px 7px; border-radius: 6px; font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; line-height: 1.1; vertical-align: 1px; }
.sh-vtag[data-v="best"]::after { content: "Best value"; background: var(--green-soft); color: var(--green); }
.sh-vtag[data-v="good"]::after { content: "Strong pick"; background: var(--blue-soft); color: var(--blue); }
.sh-vtag[data-v="bundle"]::after { content: "Bundle save"; background: var(--green-soft); color: var(--green); }
.sh-vtag[data-v="late"]::after { content: "Late game"; background: var(--gold-soft); color: var(--gold); }
.sh-vtag[data-v="skip"]::after { content: "Skip early"; background: var(--red-soft); color: var(--red); }

/* 3-egg comparison deck + visual Scaled Egg odds bars */
.sh-egg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.sh-egg-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 15px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.sh-egg-wide { grid-column: 1 / -1; }
.sh-egg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.sh-egg-head h3 { font-size: 1.04rem; margin: 0; color: var(--ink); }
.sh-egg-sub { font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; color: var(--green); }
.sh-egg-card > p { margin: 0; font-size: 0.89rem; line-height: 1.5; color: var(--ink-2); }

.sh-odd-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.sh-odd-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 92px; gap: 8px; align-items: center; font-size: 0.85rem; }
.sh-odd-name { font-weight: 600; color: var(--ink); }
.sh-odd-track { height: 10px; border-radius: var(--rad-pill); background: var(--surface-alt); overflow: hidden; }
.sh-odd-track i { display: block; height: 100%; border-radius: var(--rad-pill); background: var(--green); }
.sh-odd-row:last-child .sh-odd-track i { background: var(--gold); }
.sh-odd-val { text-align: right; color: var(--mute); font-size: 0.82rem; }
.sh-odd-val b { color: var(--ink); }

@media (max-width: 900px) {
  .sh-pass-grid, .sh-bundle-grid, .sh-egg-grid, .sh-odd-list { grid-template-columns: 1fr; }
  .sh-pass-card + .sh-pass-card { border-left: 0; border-top: 1.5px solid var(--border); }
}
@media (max-width: 680px) {
  .sh-pass-top { grid-template-columns: 56px minmax(0, 1fr); }
  .sh-pass-ic { width: 56px; height: 56px; }
  .sh-pass-price { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .sh-bud-row { grid-template-columns: 56px minmax(0, 1fr); align-items: start; }
  .sh-bud-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .sh-tbl td:nth-child(3), .sh-tbl th:nth-child(3) { display: none; }
}

/* W5: /discord — Verified Official Channels Hub, Client-Side Invite Verifier & Roblox Join Split */
.dc-hub { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.dc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 11px 16px; background: var(--bar); color: var(--on-dark); border-bottom: 3px solid var(--green-bright); font-size: 0.86rem; }
.dc-bar-title { display: inline-flex; align-items: center; gap: 9px; }
.dc-bar-title b { font-family: var(--f-display); font-weight: 600; color: #ffffff; }
.dc-bar-note { font-size: 0.8rem; color: var(--on-dark-dim); }

/* Primary verified Discord card */
.dc-primary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; padding: 18px; border-bottom: 1.5px solid var(--border); background: var(--surface); }
.dc-prim-head { display: flex; align-items: flex-start; gap: 13px; flex: 1 1 360px; min-width: 0; }
.dc-emblem { width: 46px; height: 46px; border-radius: 12px; background: #4957e8; color: #ffffff; display: grid; place-items: center; flex-shrink: 0; }
.dc-prim-info { min-width: 0; }
.dc-prim-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dc-prim-title h3 { font-size: 1.15rem; margin: 0; color: var(--ink); }
.dc-prim-sub { margin: 5px 0 0; font-size: 0.88rem; line-height: 1.48; color: var(--ink-2); }

/* CSS-chrome verification pills */
.dc-badge::after { display: inline-block; padding: 3px 8px; border-radius: var(--rad-pill); font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; line-height: 1.1; white-space: nowrap; }
.dc-badge[data-b="official"]::after { content: "Official · Verified"; background: var(--green-soft); color: var(--green); }
.dc-badge[data-b="roblox"]::after { content: "Roblox Official"; background: var(--blue-soft); color: var(--blue); }

.dc-prim-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: 0 1 auto; }
.dc-code-box { text-align: center; font-weight: 700; font-size: 0.92rem; padding: 6px 12px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--border); border-radius: var(--rad-sm); }
.dc-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 112px; padding: 10px 14px; border-radius: var(--rad-sm); border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; line-height: 1; cursor: pointer; transition: transform 150ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.dc-copy-btn:active { transform: scale(0.97); }
.dc-copy-btn .ic-check { display: none; }
.dc-copy-btn[data-copied="1"] { background: var(--bar); border-color: var(--bar); color: #ffffff; }
.dc-copy-btn[data-copied="1"] .ic-copy { display: none; }
.dc-copy-btn[data-copied="1"] .ic-check { display: block; color: var(--green-bright); }
.dc-copy-lbl::after { content: "Copy link"; }
.dc-copy-btn[data-copied="1"] .dc-copy-lbl::after { content: "Copied"; }
@media (hover: hover) and (pointer: fine) {
  .dc-copy-btn:not([data-copied="1"]):hover { border-color: var(--green); background: var(--green-soft); }
}

/* Companion Roblox Group & Game/Events cards */
.dc-sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1.5px solid var(--border); }
.dc-sub-card { padding: 15px 18px; display: flex; flex-direction: column; gap: 7px; background: var(--surface); }
.dc-sub-card + .dc-sub-card { border-left: 1.5px solid var(--border); }
.dc-sub-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.dc-sub-top h4 { font-size: 1rem; margin: 0; color: var(--ink); }
.dc-sub-card > p { margin: 0; font-size: 0.87rem; line-height: 1.48; color: var(--ink-2); flex: 1; }

/* Checked & Not Official strip (Trello / Reddit / X) */
.dc-none-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; background: var(--bg); font-size: 0.84rem; }
.dc-none-h { font-family: var(--f-display); font-weight: 600; color: var(--ink-2); }
.dc-none-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--rad-pill); background: var(--surface); border: 1.5px solid var(--border); color: var(--mute); font-size: 0.8rem; }
.dc-none-pill b { color: var(--ink); font-weight: 600; }
.dc-none-bar .htp-jchip { margin-left: auto; }

/* Client-side Discord invite verifier */
.dc-verifier { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 16px; box-shadow: var(--shadow-sm); margin: 16px 0 18px; display: grid; gap: 10px; }
.dc-ver-lbl { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.dc-ver-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.dc-ver-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.dc-ver-row input { width: 100%; font: inherit; font-size: 0.94rem; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--rad-sm); background: var(--bg); color: var(--ink); }
.dc-ver-row input:focus { border-color: var(--green); background: #ffffff; outline: none; }
.dc-ver-out { padding: 10px 13px; border-radius: var(--rad-sm); font-size: 0.88rem; line-height: 1.48; border: 1.5px solid var(--border); background: var(--bg); color: var(--ink-2); }
.dc-ver-out[data-state="ok"] { background: var(--green-soft); border-color: #9dd492; color: #164f11; font-weight: 600; }
.dc-ver-out[data-state="warn"] { background: var(--red-soft); border-color: #efb2ad; color: #8c1b14; font-weight: 600; }

/* Safe join split with real loading screen */
.dc-join-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 16px; }
.dc-join-fig { margin: 0; }

@media (max-width: 860px) {
  .dc-sub-grid, .dc-join-split { grid-template-columns: 1fr; }
  .dc-sub-card + .dc-sub-card { border-left: 0; border-top: 1.5px solid var(--border); }
  .dc-none-bar .htp-jchip { margin-left: 0; }
}
@media (max-width: 560px) {
  .dc-prim-actions, .dc-btn-row { width: 100%; }
  .dc-btn-row > * { flex: 1; }
  .dc-ver-row { grid-template-columns: 1fr; }
}

/* Homepage layout: daylight game command deck + visual poster portals */
.hm { max-width: var(--max); margin: 0 auto; padding: 24px 24px 0; }

/* Hero command deck */
.hm-hero { padding: 4px 0 28px; border-bottom: 1.5px solid var(--border); }
.hm-hero-in { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.96fr); gap: 22px 28px; align-items: stretch; }
.hm-hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-width: 0; }
.hm-hero-top { min-width: 0; }
.hm-hero-top h1 { font-size: clamp(2.15rem, 4vw, 3.05rem); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); line-height: 1.1; }
.hm-h1-wiki { display: inline-block; padding: 0.04em 0.25em 0.08em; border-radius: 12px; background: var(--green-soft); color: var(--green); border: 1.5px solid rgba(32, 118, 25, 0.28); }
.hm-lead { margin: 10px 0 0; font-size: 0.97rem; line-height: 1.54; color: var(--ink-2); max-width: 58ch; }

.hm-hero-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 9px; margin-top: 14px; }
.hm-find-btn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: var(--rad-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--mute); font-family: var(--f-body); font-size: 0.92rem; cursor: pointer; text-align: left; box-shadow: var(--shadow-sm); transition: border-color 150ms ease, color 150ms ease, transform 130ms var(--ease-out); }
.hm-find-btn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-find-btn kbd { padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg); color: var(--ink-2); font-family: var(--f-body); font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.hm-cta-sec { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border-radius: var(--rad-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-sm); transition: border-color 150ms ease, color 150ms ease, transform 130ms var(--ease-out); }
.hm-find-btn:active, .hm-cta-sec:active, .hm-sec-btn:active { transform: scale(0.97); }
.hm-meta { margin: 0; font-size: 0.82rem; color: var(--mute); }
.hm-meta a { color: var(--green); font-weight: 600; }

/* Hero Winter Event Spotlight Card (real full-color art anchored in hero) */
.hm-winter-card {
  display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: stretch;
  border-radius: var(--rad-md); overflow: hidden; text-decoration: none;
  background: linear-gradient(135deg, #0b2438 0%, #123b58 100%);
  border: 1.5px solid #1d577c; box-shadow: var(--shadow-md); color: #f2f8fc;
  transition: transform 180ms var(--ease-out), border-color 160ms ease, box-shadow 180ms var(--ease-out);
}
.hm-winter-card:active { transform: scale(0.985); }
.hm-winter-art { position: relative; overflow: hidden; background: #0c263a; }
.hm-winter-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 260ms var(--ease-out); }
.hm-winter-copy { padding: 13px 16px; display: grid; align-content: center; gap: 5px; }
.hm-winter-live { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 8px; border-radius: 999px; background: rgba(125, 211, 252, 0.16); border: 1px solid rgba(125, 211, 252, 0.36); color: #9ee0ff; font-family: var(--f-display); font-size: 0.72rem; font-weight: 600; line-height: 1.1; }
.hm-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ef03e; flex-shrink: 0; }
.hm-winter-copy strong { font-family: var(--f-display); font-size: 1.14rem; font-weight: 700; color: #ffffff; line-height: 1.18; }
.hm-winter-copy > span:not(.hm-winter-live):not(.hm-winter-go) { font-size: 0.84rem; color: #c7e1f2; line-height: 1.35; }
.hm-winter-go { margin-top: 3px; display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-display); font-size: 0.84rem; font-weight: 600; color: #7dd3fc; }
.hm-winter-go .hm-go-ic { color: currentColor; }

.hm-go-ic { flex-shrink: 0; color: var(--mute); transition: transform 160ms var(--ease-out), color 140ms ease; }

/* Working Codes widget (entire code row is a one-tap copy button; refined header edge) */
.hm-codes { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-md); }
.hm-codes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--bar); color: var(--on-dark); border-bottom: 1px solid var(--bar-line); }
.hm-codes-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; }
.hm-codes-title::after { content: attr(data-count); padding: 3px 8px; border-radius: 999px; background: rgba(55, 197, 25, 0.22); border: 1px solid rgba(94, 240, 62, 0.52); color: #67f549; font-size: 0.74rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-copy-all { padding: 6px 12px; border-radius: 7px; border: 1px solid var(--bar-line); background: var(--bar-2); color: var(--on-dark); font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 130ms var(--ease-out); }
.hm-copy-all::before { content: "Copy all"; }
.hm-copy-all[data-copied="1"] { background: var(--green-bright); border-color: var(--green-bright); color: var(--bar); }
.hm-copy-all[data-copied="1"]::before { content: "Copied all"; }
.hm-copy-all:active { transform: scale(0.96); }

.hm-codes-list { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; flex: 1; align-content: center; }
.hm-code-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1.5px solid var(--border);
  text-align: left; cursor: pointer; font: inherit;
  transition: border-color 150ms ease, background-color 150ms ease, transform 130ms var(--ease-out);
}
.hm-code-row:active { transform: scale(0.985); }
.hm-code-row[data-copied="1"] { background: var(--green-soft); border-color: var(--green); }
.hm-code-main { min-width: 0; display: grid; gap: 3px; }
.hm-code-main code { width: fit-content; font-size: 0.98rem; font-weight: 700; letter-spacing: 0.03em; color: var(--ink); background: var(--surface); padding: 2px 9px; border-radius: 6px; border: 1px solid var(--border); }
.hm-code-reward { font-size: 0.84rem; color: var(--ink-2); font-weight: 500; }
.hm-copy-pill { flex-shrink: 0; padding: 7px 14px; border-radius: 7px; background: var(--green); color: #ffffff; font-family: var(--f-display); font-weight: 600; font-size: 0.83rem; transition: background-color 150ms ease, color 150ms ease; }
.hm-copy-pill::before { content: "Copy"; }
.hm-code-row[data-copied="1"] .hm-copy-pill { background: var(--bar); color: #67f549; }
.hm-code-row[data-copied="1"] .hm-copy-pill::before { content: "Copied"; }

.hm-codes-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding: 10px 14px; border-top: 1.5px solid var(--border); background: var(--green-soft); text-decoration: none; transition: background-color 150ms ease, transform 140ms var(--ease-out); }
.hm-codes-foot:active { transform: scale(0.99); }
.hm-codes-foot-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); }
.hm-codes-more { padding: 2px 7px; border-radius: 999px; background: var(--bar); color: #67f549; font-family: var(--f-display); font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-codes-foot-cta { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-display); font-size: 0.86rem; font-weight: 600; color: var(--green); white-space: nowrap; }
.hm-codes-foot-cta .hm-go-ic { color: var(--green); }

/* Direct-on-canvas Visual Portal Grid (no nested hub box, zero prose walls) */
.hm-body { padding-top: 24px; }
.hm-explore { display: grid; gap: 14px; }

.hm-portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hm-portal {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.hm-portal:active, .hm-mini:active, .hm-gun-card:active, .hm-an-card:active { transform: scale(0.985); }

.hm-portal-stage { position: relative; height: 122px; overflow: hidden; border-bottom: 1px solid var(--border); }
.hm-pv { width: 100%; height: 100%; position: relative; }
.hm-pbadge {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  padding: 3px 9px; border-radius: 999px; font-family: var(--f-display); font-size: 0.74rem; font-weight: 600;
  font-variant-numeric: tabular-nums; background: rgba(20, 30, 28, 0.86); color: #f2f7f3;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.hm-pbadge-in {
  padding: 3px 9px; border-radius: 999px; font-family: var(--f-display); font-size: 0.73rem; font-weight: 600;
  font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; flex-shrink: 0;
}
.hm-pbadge-in.is-tool { background: var(--green-bright); color: var(--bar); }

/* 1 & 3. Guns & Areas 3-panel triptych (downscaled >2x from native -> razor sharp) */
.pv-trio { background: var(--bar); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.pv-trio img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 240ms var(--ease-out); }

/* 2. Animals stage (official textless dragon artwork) */
.pv-animals { background: #143359; }
.pv-animals img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 42%; display: block; transition: transform 240ms var(--ease-out); }

/* Shared aligned HUD header row (fixes vertical misalignment & empty top gap) */
.pv-hud-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-hud-lbl { font-family: var(--f-display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; color: #a7c2b6; line-height: 1; }

/* 4. Dummies live range HUD */
.pv-dummies { background: linear-gradient(145deg, #141e1c 0%, #1d322c 100%); padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.pv-hud-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pv-hud-readout span { font-size: 0.76rem; font-weight: 500; color: #b7cfc4; }
.pv-hud-readout b { font-family: var(--f-display); font-size: 0.98rem; font-weight: 700; color: #ffffff; font-variant-numeric: tabular-nums; }
.pv-hud-meter { display: grid; gap: 6px; }
.pv-hud-track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.13); overflow: hidden; padding: 2px; }
.pv-hud-fill { display: block; width: 66%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #37c519 0%, #67f549 100%); transition: transform 240ms var(--ease-out); transform-origin: left center; }
.pv-hud-stops { display: flex; justify-content: space-between; font-size: 0.72rem; font-weight: 600; color: #c7dad0; font-variant-numeric: tabular-nums; }

/* 5. 55x Mutation equation HUD */
.pv-mutations { background: linear-gradient(140deg, #19182e 0%, #2a2452 100%); padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.pv-mutations .pv-hud-lbl { color: #c2bfe6; }
.pv-eq { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.pv-chip { padding: 5px 9px; border-radius: 8px; font-family: var(--f-display); font-size: 0.84rem; font-weight: 700; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-chip.is-gold { background: #ffd24a; color: #2d1b00; }
.pv-chip.is-ice { background: #7dd3fc; color: #082338; }
.pv-chip.is-max { background: #5ef03e; color: #102017; font-size: 0.94rem; }
.pv-op { font-family: var(--f-display); font-weight: 700; font-size: 0.9rem; color: #c8c5ea; }
.pv-sub-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-sub-chips span { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #e6e4fa; font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 6. Tier List S-C blocks + Phoenix art */
.pv-tiers { background: linear-gradient(135deg, #1d1b18 0%, #3a2714 100%); display: flex; align-items: center; justify-content: space-between; padding: 12px 0 12px 14px; }
.pv-ranks { display: grid; grid-template-columns: repeat(2, 34px); gap: 6px; z-index: 1; }
.pv-rk { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; line-height: 1; }
.rk-s { background: #ff5b5b; color: #ffffff; }
.rk-a { background: #ffad29; color: #2b1700; }
.rk-b { background: #38bdf8; color: #082338; }
.rk-c { background: #94a3b8; color: #0f172a; }
.pv-tier-gun { width: 58%; height: 122px; object-fit: cover; object-position: center; display: block; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%); transition: transform 240ms var(--ease-out); }

.hm-portal-cap { padding: 12px 14px 13px; display: grid; gap: 3px; }
.hm-portal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hm-portal-top strong { font-family: var(--f-display); font-size: 1.04rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.hm-portal-cap > span { font-size: 0.85rem; color: var(--ink-2); line-height: 1.38; }

/* Compact 4x2 Quick Strip (replaces 8 prose-heavy guide cards) */
.hm-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.hm-mini {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms var(--ease-out);
}
.hm-mini-ic { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); border: 1px solid var(--border); }
.hm-mini.is-frost { background: linear-gradient(135deg, #ffffff 55%, #e6f5fe); border-color: #8cc9ef; }
.hm-mini.is-frost .hm-mini-ic { background: #0e3a53; color: #7dd3fc; border-color: #0e3a53; }
.hm-mini.is-codes .hm-mini-ic, .hm-mini.is-guide .hm-mini-ic { background: var(--green-soft); color: var(--green); border-color: rgba(32, 118, 25, 0.24); }
.hm-mini.is-updates .hm-mini-ic { background: var(--blue-soft); color: var(--blue); border-color: rgba(11, 102, 181, 0.22); }
.hm-mini.is-bounties .hm-mini-ic, .hm-mini.is-shop .hm-mini-ic { background: var(--gold-soft); color: var(--gold); border-color: rgba(148, 86, 0, 0.22); }
.hm-mini.is-badges .hm-mini-ic, .hm-mini.is-discord .hm-mini-ic { background: var(--r-epic-bg); color: var(--r-epic); border-color: rgba(115, 41, 214, 0.2); }

.hm-mini-copy { min-width: 0; flex: 1; display: grid; gap: 1px; }
.hm-mini-copy strong { font-family: var(--f-display); font-size: 0.93rem; font-weight: 600; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-mini-copy span { font-size: 0.77rem; color: var(--ink-2); line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Section cadence & balanced header (H2 + intro left, high-contrast CTAs right) */
.hm-sec { margin-top: 44px; padding-top: 22px; border-top: 2px solid var(--border); }
.hm-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.hm-sec-copy { flex: 1 1 520px; min-width: 0; }
.hm-sec-head h2 { font-size: clamp(1.38rem, 2.2vw, 1.72rem); font-weight: 600; color: var(--ink); margin: 0; }
.hm-sec-intro { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.56; color: var(--ink-2); max-width: 72ch; }
.hm-sec-intro a { color: var(--green); font-weight: 600; }
.hm-sec-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; min-width: 0; }
.hm-sec-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 0.86rem; text-decoration: none; white-space: nowrap; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out); }
.hm-sec-btn.is-pri { border-color: var(--green); background: var(--green); color: #ffffff; box-shadow: 0 2px 6px rgba(32, 118, 25, 0.22); }
.hm-sec-btn.is-pri .hm-go-ic { color: #ffffff; }
.hm-prose > p { margin: 0 0 14px; color: var(--ink-2); max-width: 72ch; }

/* Latest Update strip */
.hm-event { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: stretch; padding: 14px; border-radius: var(--rad-md); background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.hm-event-media { border-radius: 10px; overflow: hidden; background: var(--bar); display: flex; }
.hm-event-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-event-body { display: grid; align-content: center; gap: 9px; }
.hm-event-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hm-event-top h3 { font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.hm-event-clock { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 11px; border-radius: var(--rad-sm); background: var(--bar); color: var(--on-dark); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.hm-event-clock strong { font-family: var(--f-display); color: #67f549; }
.hm-event-clock span { color: var(--on-dark-dim); }
.hm-event-pts { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 0.91rem; color: var(--ink-2); }

/* Compact Horizontal Gun Milestones (116x86 uncropped <= 284x208 native + mini color dice pips) */
.hm-gun-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.hm-gun-card {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.hm-gun-thumb { position: relative; width: 116px; height: 86px; flex-shrink: 0; border-radius: 9px; background: var(--bar); border: 1px solid var(--border); overflow: hidden; }
.hm-gun-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 220ms var(--ease-out); }
.hm-gun-info { min-width: 0; flex: 1; display: grid; gap: 5px; }
.hm-gun-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hm-gun-top strong { min-width: 0; font-family: var(--f-display); font-size: 0.98rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-price { padding: 2px 8px; border-radius: var(--rad-sm); background: var(--green-soft); color: var(--green); font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.hm-price.is-free { background: var(--blue-soft); color: var(--blue); }
.hm-gun-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.hm-pill { padding: 2px 7px; border-radius: 999px; font-family: var(--f-display); font-size: 0.72rem; font-weight: 600; line-height: 1.15; }
.hm-dice-mini { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 6px; background: #1e2c29; }
.hm-die { width: 13px; height: 13px; border-radius: 3px; display: inline-grid; place-items: center; font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: 0.56rem; line-height: 1; }
.hm-die.die-normal { background: #eef2f6; color: #243038; }
.hm-die.die-gold { background: linear-gradient(180deg, #ffd23f 0%, #f09a08 100%); color: #3d2200; }
.hm-die.die-rainbow { background: linear-gradient(135deg, #ff5e7e 0%, #ffd43b 35%, #48e563 68%, #47a8ff 100%); color: #141e1c; }
.hm-scope-chip { position: absolute; top: 5px; right: 5px; padding: 2px 6px; border-radius: 5px; background: rgba(11, 102, 181, 0.92); color: #ffffff; font-family: var(--f-display); font-size: 0.66rem; font-weight: 600; line-height: 1.15; }
.hm-gun-note { margin: 0; font-size: 0.84rem; line-height: 1.44; color: var(--ink-2); }

/* Compact Horizontal Animal Spotlight (66x70 uncropped <= 180x190 native, tight text balance) */
.hm-an-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hm-an-card {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.hm-an-art { width: 66px; height: 70px; flex-shrink: 0; border-radius: 9px; overflow: hidden; display: grid; place-items: center; }
.hm-an-art img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 220ms var(--ease-out); }
.hm-an-info { min-width: 0; flex: 1; display: grid; gap: 4px; }
.hm-an-info strong { font-family: var(--f-display); font-size: 0.94rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-an-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 6px; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.hm-an-pay { font-family: var(--f-display); font-weight: 600; color: var(--green); }
.hm-an-sub { font-size: 0.8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Rarity pill tones */
.r-common { background: var(--r-common-bg); color: var(--r-common); }
.r-uncommon { background: var(--r-uncommon-bg); color: var(--r-uncommon); }
.r-rare { background: var(--r-rare-bg); color: var(--r-rare); }
.r-epic { background: var(--r-epic-bg); color: var(--r-epic); }
.r-legendary { background: var(--r-legendary-bg); color: var(--r-legendary); }
.r-mythic { background: var(--r-mythic-bg); color: var(--r-mythic); }
.r-cosmic { background: var(--r-cosmic-bg); color: var(--r-cosmic); }
.r-secret { background: #e4f7f7; color: #0d7477; }
.r-divine { background: #fff5d6; color: #9e5c00; }
.r-eternal { background: #fdeaf3; color: #a3175c; }

/* Open reading surface for 5-Step Loop + Facts & HUD */
.hm-loop-split { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr); gap: 24px 28px; align-items: start; }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: hmstep; border-top: 1px solid var(--border); }
.hm-steps li { counter-increment: hmstep; position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; padding: 14px 4px 14px 42px; border-bottom: 1px solid var(--border); font-size: 0.94rem; color: var(--ink-2); line-height: 1.58; }
.hm-steps li::before { content: counter(hmstep); position: absolute; left: 0; top: 15px; width: 26px; height: 26px; border-radius: 8px; background: var(--bar); color: #67f549; font-family: var(--f-display); font-weight: 700; font-size: 0.84rem; display: grid; place-items: center; }
.hm-step-body { min-width: 0; flex: 1; }
.hm-steps strong { color: var(--ink); }
.hm-step-go { flex-shrink: 0; align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 999px; border: 1.5px solid rgba(32, 118, 25, 0.34); background: var(--green-soft); color: var(--green); font-family: var(--f-display); font-size: 0.79rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out); }
.hm-step-go .hm-go-ic { color: currentColor; }
.hm-step-go:active { transform: scale(0.96); }

.hm-side-stack { display: grid; gap: 14px; }
.hm-facts { margin: 0; padding: 14px 16px; border-radius: var(--rad-md); background: var(--surface); border: 1.5px solid var(--border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; box-shadow: var(--shadow-sm); }
.hm-facts div { display: grid; gap: 2px; }
.hm-facts dt { font-size: 0.8rem; color: var(--ink-2); font-weight: 600; }
.hm-facts dd { margin: 0; font-family: var(--f-display); font-size: 0.96rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-shot { margin: 0; border-radius: var(--rad-md); overflow: hidden; background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.hm-shot img { width: 100%; height: auto; display: block; }
.hm-shot figcaption { padding: 10px 12px; font-size: 0.84rem; color: var(--ink-2); border-top: 1px solid var(--border); line-height: 1.45; }

.hm-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: start; }

/* Emil pointer-fine hover craft (no sticky touch hovers) */
@media (hover: hover) and (pointer: fine) {
  .hm-find-btn:hover { border-color: var(--green); color: var(--ink); }
  .hm-cta-sec:hover, .hm-sec-btn:hover { border-color: var(--green); color: var(--green); }
  .hm-winter-card:hover { border-color: #38bdf8; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 36, 56, 0.22); }
  .hm-winter-card:hover .hm-winter-art img { transform: scale(1.04); }
  .hm-winter-card:hover .hm-go-ic { transform: translateX(3px); }
  .hm-copy-all:hover { border-color: var(--green-bright); color: #ffffff; }
  .hm-code-row:hover { border-color: var(--green); background: #eef6ea; }
  .hm-code-row:hover .hm-copy-pill { background: var(--green-hi); }
  .hm-code-row[data-copied="1"]:hover .hm-copy-pill { background: var(--bar); }
  .hm-codes-foot:hover { background: #d5f0ce; }
  .hm-codes-foot:hover .hm-go-ic, .hm-sec-btn:hover .hm-go-ic, .hm-step-go:hover .hm-go-ic, .hm-portal:hover .hm-go-ic, .hm-mini:hover .hm-go-ic { transform: translateX(3px); }
  .hm-sec-btn.is-pri:hover { background: var(--green-hi); border-color: var(--green-hi); color: #ffffff; }
  .hm-step-go:hover { background: var(--green); border-color: var(--green); color: #ffffff; }
  .hm-sec-btn:hover .hm-go-ic { color: currentColor; }

  .hm-portal:hover, .hm-gun-card:hover, .hm-an-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .hm-portal.tone-guns:hover { border-color: var(--r-cosmic); }
  .hm-portal.tone-animals:hover { border-color: var(--blue); }
  .hm-portal.tone-mutations:hover { border-color: var(--r-epic); }
  .hm-portal.tone-tiers:hover { border-color: var(--gold); }
  .hm-portal:hover .pv-trio img, .hm-portal:hover .pv-animals img, .hm-portal:hover .pv-tier-gun, .hm-gun-card:hover .hm-gun-thumb img, .hm-an-card:hover .hm-an-art img { transform: scale(1.04); }
  .hm-portal:hover .pv-hud-fill { transform: scaleX(1.08); }
  .hm-portal:hover .hm-go-ic, .hm-mini:hover .hm-go-ic { color: var(--green); }
  .hm-mini:hover { border-color: var(--green); background: var(--surface-tint); transform: translateY(-1px); }
  .hm-mini.is-frost:hover { border-color: var(--blue); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-portal, .hm-mini, .hm-gun-card, .hm-an-card, .hm-winter-card, .hm-winter-art img, .hm-go-ic, .hm-sec-btn, .hm-step-go, .hm-codes-foot, .hm-code-row, .hm-copy-all, .pv-trio img, .pv-animals img, .pv-hud-fill, .pv-tier-gun, .hm-gun-thumb img, .hm-an-art img { transition: none; }
}

@media (max-width: 1100px) {
  .hm-portal-grid, .hm-gun-grid, .hm-an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .hm-hero-in, .hm-event, .hm-loop-split, .hm-faq { grid-template-columns: minmax(0, 1fr); }
  .hm-hero-in { gap: 18px; }
  .hm-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-event-media { max-height: 220px; }
}

@media (max-width: 760px) {
  .hm-gun-grid { grid-template-columns: 1fr; }
  .hm-steps li { flex-direction: column; gap: 8px; }
  .hm-step-go { align-self: flex-start; }
}

@media (max-width: 600px) {
  .hm { padding: 18px 16px 0; }
  .hm-find-btn { padding: 9px 10px; font-size: 0.86rem; }
  .hm-find-btn kbd { display: none; }
  .hm-cta-sec { padding: 9px 12px; font-size: 0.84rem; flex-shrink: 0; }
  .hm-winter-card { grid-template-columns: 1fr; }
  .hm-winter-art { height: 148px; }
  .hm-portal-grid, .hm-an-grid { grid-template-columns: 1fr; }
  .hm-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hm-mini { padding: 9px 10px; gap: 8px; }
  .hm-mini-ic { width: 30px; height: 30px; }
  .hm-mini .hm-go-ic { display: none; }
  .hm-gun-thumb { width: 100px; height: 74px; }
}

/* /frost-machine: Winter Event Frost Shards Planner, Blizzard Loop, 1K/2K/5K Odds & Verification Notes */
.fm-board { background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.fm-bar { background: var(--bar); color: var(--on-dark); padding: 14px 16px; display: grid; gap: 12px; }
.fm-bar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fm-bar-head strong { font-family: var(--f-display); font-size: 1rem; color: #ffffff; }
.fm-tag { font-family: var(--f-display); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: var(--rad-pill); background: #38bdf8; color: #082032; }

.fm-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fm-field { display: grid; gap: 4px; }
.fm-field span { font-family: var(--f-display); font-size: 0.75rem; font-weight: 600; color: var(--on-dark-dim); }
.fm-field input { width: 100%; min-width: 0; font: inherit; font-weight: 700; font-size: 0.94rem; padding: 8px 10px; border-radius: var(--rad-sm); border: 1.5px solid var(--bar-line); background: var(--bar-2); color: #7ef087; font-variant-numeric: tabular-nums; }
.fm-field input:focus { outline: none; border-color: #38bdf8; }

.fm-tier-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px solid var(--bar-line); }
.fm-tier-lbl { font-size: 0.78rem; font-weight: 600; color: var(--on-dark-dim); margin-right: 2px; }
.fm-tier-btn { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: var(--rad-pill); border: 1.5px solid var(--bar-line); background: var(--bar-2); color: #ffffff; font-family: var(--f-display); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: transform 130ms var(--ease-out), border-color 140ms ease, background-color 140ms ease; }
.fm-tier-btn:active { transform: scale(0.96); }
.fm-tier-btn em { font-style: normal; font-family: var(--f-body); font-size: 0.72rem; color: var(--on-dark-dim); }
.fm-tier-btn[aria-pressed="true"] { background: #0e3a53; border-color: #38bdf8; color: #e0f4ff; }
.fm-tier-btn[aria-pressed="true"] em { color: #7dd3fc; }

.fm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; background: var(--bg); }
.fm-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad-sm); padding: 10px 11px; display: grid; gap: 3px; }
.fm-stat-lbl { font-size: 0.73rem; font-weight: 600; color: var(--mute); }
.fm-stat b { font-family: var(--f-display); font-size: 1.04rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.fm-stat-hi { background: #edf8ea; border-color: #9dd992; }
.fm-stat-hi b { color: var(--green); }

.fm-foot { padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); }
.fm-verdict { margin: 0; font-size: 0.89rem; color: var(--ink-2); line-height: 1.5; }
.fm-verdict b { color: var(--ink); }

.fm-spot-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 13px 15px; background: var(--surface-tint); border: 1.5px solid var(--border); border-radius: var(--rad-md); }
.fm-spot-card img { width: 64px; height: 68px; object-fit: contain; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); padding: 4px; flex-shrink: 0; }
.fm-spot-card h3 { font-size: 0.96rem; margin: 0 0 4px; color: var(--ink); }
.fm-spot-card p { margin: 0; font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }

.fm-loop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 13px; margin: 16px 0 8px; }
.fm-loop-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.fm-loop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; background: var(--bar); color: #ffffff; }
.fm-loop-h h3 { font-size: 0.95rem; margin: 0; color: #ffffff; }
.fm-pill { font-family: var(--f-display); font-weight: 700; font-size: 0.72rem; padding: 3px 9px; border-radius: var(--rad-pill); background: #38bdf8; color: #082032; white-space: nowrap; }
.fm-pill-tip { background: var(--green-bright); color: var(--bar); }
.fm-routine { margin: 0; padding: 12px 16px 14px 30px; display: grid; gap: 8px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.fm-routine strong { color: var(--ink); }

.fm-callout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 16px 0; }
.fm-callout { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.fm-callout h3 { font-size: 0.96rem; margin: 0 0 7px; color: var(--ink); }
.fm-callout p { margin: 0; font-size: 0.89rem; color: var(--ink-2); line-height: 1.55; }

.fm-caveat { background: #fff9ec; border: 1.5px solid #ead196; border-radius: var(--rad-md); padding: 14px 16px; margin-top: 14px; }
.fm-caveat h3 { font-size: 0.95rem; margin: 0 0 8px; color: #7a4b00; }
.fm-caveat ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.87rem; color: var(--ink-2); line-height: 1.5; }
.fm-caveat strong { color: var(--ink); }

@media (max-width: 820px) {
  .fm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-loop-grid, .fm-callout-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .fm-inputs { grid-template-columns: minmax(0, 1fr); }
  .fm-spot-card { flex-direction: column; align-items: flex-start; }
}
