:root {
  --bg: #f6f3ec;
  --bg-soft: #fbf8f1;
  --card: #ffffff;
  --ink: #1d2430;
  --muted: #5e6878;
  --line: #e3ddd0;
  --navy: #1b2433;
  --brand: #0d9488;
  --brand-deep: #2dd4bf;
  --warn: #f59e0b;
  --ok: #10b981;
  --danger: #fb7185;
  --pink: #f472b6;
  --gold: #f59e0b;
  --violet: #a78bfa;
  --sky: #38bdf8;
  --accent: var(--brand-deep);
  --accent-soft: rgba(45, 212, 191, 0.16);
  --hdr: 64px;
  --sub: 50px;
  --r: 18px;
  --shadow: 0 10px 28px rgba(27, 36, 51, 0.08);
  --shadow-hover: 0 16px 36px rgba(27, 36, 51, 0.14);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
body[data-accent="teal"] { --accent: #14b8a6; --accent-soft: rgba(20, 184, 166, 0.14); }
body[data-accent="pink"] { --accent: #ec4899; --accent-soft: rgba(236, 72, 153, 0.14); }
body[data-accent="crimson"] { --accent: #f43f5e; --accent-soft: rgba(244, 63, 94, 0.14); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  font: 16px/1.65 var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(700px 380px at 92% 4%, rgba(244, 114, 182, 0.14), transparent 50%),
    radial-gradient(640px 360px at 70% 90%, rgba(245, 158, 11, 0.12), transparent 55%),
    radial-gradient(520px 280px at 18% 75%, rgba(167, 139, 250, 0.10), transparent 50%),
    var(--bg);
  min-height: 100%;
}
img { max-width: 100%; height: auto; }
a { color: #0f766e; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #be185d; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 20; background: #fff; color: #111; padding: 8px 12px; border-radius: 8px; }

.fanbar {
  background: #111824;
  color: #c9d2df;
  font-size: 13px;
  text-align: center;
  padding: 6px 14px;
}
.fanbar a { color: #fbbf24; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, #121a27, var(--navy));
  color: #fff;
  border-bottom: 3px solid #2dd4bf;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.hdr { display: flex; align-items: center; gap: 18px; min-height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand svg { flex: none; }
.brand strong { display: block; font-size: 18px; letter-spacing: 0.2px; }
.brand small { display: block; color: #aeb9c9; font-size: 12px; line-height: 1.15; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a, .drop-t {
  color: #dfe5ee; text-decoration: none; padding: 8px 11px; border-radius: 10px; font-weight: 600; font-size: 15px;
}
.nav a:hover, .nav a[aria-current], .drop:hover .drop-t, .drop:focus-within .drop-t {
  background: #2a3850; color: #fff;
}
.drop { position: relative; }
.drop-t { display: inline-block; cursor: pointer; }
.drop-m {
  display: none; position: absolute; top: calc(100% - 2px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow-hover);
}
.drop:hover .drop-m, .drop:focus-within .drop-m { display: grid; gap: 2px; }
.drop-m a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.drop-m a:hover { background: #f3eee3; color: var(--ink); }
.menu-btn {
  display: none; margin-left: auto; background: #2a3850; color: #fff; border: 0;
  border-radius: 10px; padding: 8px 12px; font-weight: 700;
}

.game-sub {
  position: sticky; top: var(--hdr); z-index: 20;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}
.game-sub .wrap { display: flex; gap: 6px; overflow-x: auto; min-height: var(--sub); align-items: center; }
.game-sub a {
  color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.game-sub a[aria-current], .game-sub a:hover {
  background: var(--accent); color: #06201b;
}

body.has-sub { scroll-padding-top: calc(var(--hdr) + var(--sub) + 12px); }
main { padding-bottom: 72px; min-height: 60vh; }

.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 6px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 12px; color: var(--ink); }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; margin: 2em 0 0.6em; letter-spacing: -0.02em; color: var(--ink); }
h3 { font-size: 18px; margin: 1.3em 0 0.4em; color: var(--ink); }
.lead { font-size: 18px; color: #323b49; max-width: 42rem; }
.muted, .small { color: var(--muted); }
.small { font-size: 13px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: #0f766e; background: #ccfbf1; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px;
  padding: 4px 10px; border-radius: 999px;
}

/* ===== Full-bleed colorful home hero (Asylum-style) ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  padding: 56px 0 64px;
  text-align: center;
  border-bottom: 4px solid #fbbf24;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(246,243,236,0.38) 48%, rgba(246,243,236,0.62) 100%),
    url("/assets/img/og/bloxdesk-banner-light.webp") center / cover no-repeat,
    linear-gradient(135deg, #99f6e4 0%, #bae6fd 28%, #fbcfe8 62%, #fde68a 100%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .kicker {
  background: #fbbf24; color: #1b2433; border: 0;
}
.hero h1 {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(30px, 5vw, 52px);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero .lead {
  color: #323b49;
  text-shadow: none;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-panel {
  background: transparent; border: 0; box-shadow: none; padding: 0; min-height: 0; border-radius: 0;
}
.hero-copy { max-width: 40rem; margin-left: auto; margin-right: auto; }
.hero .stats { margin-top: 22px; justify-content: center; }
.hero .stat {
  background: #fff;
  border: 1px solid var(--line);
  backdrop-filter: none;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(27,36,51,0.04);
}
.hero .stat span { color: var(--muted); }
.hero .quick { justify-content: center; }
.hero .quick a.ghost, .hero .btn.ghost {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: #fff;
}
.hero .quick a.ghost:hover { background: var(--accent-soft); color: var(--ink); }

/* Colorful page banner, Asylum-style, with real art */
.pbanner {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ink);
  margin-bottom: 8px;
  text-align: center;
  background: linear-gradient(120deg, #99f6e4, #bae6fd 35%, #fbcfe8 70%, #fde68a);
  border-bottom: 4px solid #fbbf24;
}
.pbanner > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.pbanner:after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(246,243,236,0.28) 48%, rgba(246,243,236,0.58) 100%);
}
body[data-accent="pink"] .pbanner:after {
  background: linear-gradient(180deg, rgba(252,231,243,0.28) 0%, rgba(246,243,236,0.22) 48%, rgba(246,243,236,0.58) 100%);
}
body[data-accent="crimson"] .pbanner:after {
  background: linear-gradient(180deg, rgba(255,228,230,0.26) 0%, rgba(246,243,236,0.22) 48%, rgba(246,243,236,0.58) 100%);
}
body[data-accent="teal"] .pbanner:after {
  background: linear-gradient(180deg, rgba(204,251,241,0.28) 0%, rgba(246,243,236,0.22) 48%, rgba(246,243,236,0.58) 100%);
}
.pbanner .wrap, .pbanner .pb-in {
  position: relative;
  z-index: 1;
  padding: 34px 0 26px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pbanner h1, .pbanner .pb-t {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(28px, 4.4vw, 46px);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.pbanner .lead, .pbanner .pb-s, .pbanner .crumbs, .pbanner .crumbs a { color: #45505f; }
.pbanner .pb-s { margin: 0 auto 12px; max-width: 42rem; font-size: 17px; }
.pbanner .kicker { background: #fbbf24; color: #1b2433; }
.pbanner .updated { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.pbanner .quick { margin-top: 8px; justify-content: center; }
.banner-icon { margin: 6px auto 10px; }
.banner-icon .gicon { width: 120px; height: 120px; border-radius: 28px; border: 3px solid rgba(255,255,255,0.85); }
@media (min-width: 900px) { .pbanner { min-height: 280px; } }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 4px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; min-width: 140px;
  box-shadow: 0 2px 8px rgba(27,36,51,0.04);
}
.stat b { display: block; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.stat span { color: var(--muted); font-size: 13px; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick a, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #5eead4, #14b8a6);
  color: #06201b; text-decoration: none; font-weight: 800;
  border: 0; border-radius: 999px; padding: 12px 18px; min-height: 48px;
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.28);
}
.quick a.gold, .btn.gold {
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  color: #1b2433;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
}
.quick a.ghost, .btn.ghost {
  background: #fff; color: var(--ink);
  border: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: none;
}
.quick a:hover, .btn:hover { filter: brightness(1.05); color: #041512; }
.quick a.ghost:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }

.section { margin-top: 42px; }
.sec-h { display: flex; justify-content: space-between; gap: 12px; align-items: end; flex-wrap: wrap; }
.sec-h h2 { margin: 0; }
.sec-h a { font-weight: 700; }

.gcards, .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gcard, .card, .note, .empty, .faq, .guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}
.gcard {
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px;
  min-height: 260px; position: relative; overflow: hidden;
  border-left: 5px solid var(--card-accent, var(--accent));
}
.gcard:hover {
  border-color: color-mix(in srgb, var(--card-accent, var(--accent)) 55%, var(--line));
  border-left-color: var(--card-accent, var(--accent));
  transform: translateY(-3px);
  transition: 0.16s ease;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--card-accent, var(--accent)) 22%, rgba(27,36,51,0.08));
}
.card { border-radius: 18px; }
.gcard .bar {
  position: absolute; inset: 0 auto 0 0; width: 5px;
  background: var(--card-accent, var(--accent));
}
.gcard.teal { --card-accent: #14b8a6; }
.gcard.pink { --card-accent: #ec4899; }
.gcard.crimson { --card-accent: #f43f5e; }
.gicon {
  width: 80px; height: 80px; border-radius: 20px;
  object-fit: cover; display: block; flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(27,36,51,0.12), 0 0 0 1px rgba(27,36,51,0.06);
  background: var(--accent-soft);
}
.gicon-lg { width: 112px; height: 112px; border-radius: 28px; }

.game-hero {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 6px 0 10px;
}
.game-hero .gicon { width: 88px; height: 88px; border-radius: 20px; }
.game-hero h1 { margin-bottom: 8px; }
.desk-icon {
  width: 56px; height: 56px; border-radius: 14px;
  object-fit: cover; display: block; margin: 0 0 10px;
  box-shadow: 0 6px 16px rgba(27,36,51,0.10), 0 0 0 1px rgba(27,36,51,0.05);
}
.gcard h3, .card h3 { margin: 0; font-size: 22px; }
.gcard p, .card p { margin: 0; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pill, .tag {
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: #efe9dc; color: #4b4336;
}
.tag.s { background: #fff3cd; color: #92400e; }
.tag.a { background: #d1fae5; color: #065f46; }
.tag.pvp { background: #ffe4e6; color: #9f1239; }
.tag.grind { background: #ccfbf1; color: #115e59; }
.tag.utility { background: #ede9fe; color: #5b21b6; }
.pill.gold { background: #fef3c7; color: #92400e; }
.pill.pink { background: #fce7f3; color: #9d174d; }

.note { border-left: 4px solid var(--accent); background: #f8fafc; }
.note.warn { border-left-color: var(--warn); background: #fff8e8; }
.updated {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: #0f766e; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; font-size: 13px;
}

.code-list { display: grid; gap: 10px; margin-top: 14px; }
.code-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(27,36,51,0.04);
}
.code-row code {
  font-family: var(--mono); font-size: 15px; color: #0f766e; font-weight: 700;
  background: #ecfdf8; border: 1px solid #99f6e4; border-radius: 10px; padding: 8px 10px;
  word-break: break-all;
}
.code-row .reward { color: var(--ink); }
.code-row .note-line { display: block; color: var(--muted); font-size: 13px; }
.copy {
  appearance: none;
  background: linear-gradient(180deg, #5eead4, #14b8a6);
  color: #06201b; font-weight: 800;
  border: 0; border-radius: 14px; padding: 12px 16px; min-width: 96px; min-height: 48px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.25);
}
.copy.copied { background: var(--ok); color: #fff; }
.copy:hover { filter: brightness(1.05); }

.empty { text-align: center; padding: 28px 18px; }
.empty strong { display: block; font-size: 20px; margin-bottom: 6px; }

.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; margin: 12px 0 20px;
}
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee7da; vertical-align: top;
}
table.data th {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  background: #f3eee3; position: sticky; top: 0;
}
table.data tbody tr:hover { background: #fbf8f1; }
.inp {
  width: min(320px, 100%); background: #fff; color: var(--ink); border: 1px solid #cfc6b4;
  border-radius: 12px; padding: 10px 12px; font-size: 15px;
}

.tier-block { margin: 18px 0 28px; }
.tier-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.tier-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; letter-spacing: 0.04em;
}
.t-S { background: #fff3cd; color: #92400e; }
.t-A { background: #d1fae5; color: #065f46; }
.t-B { background: #dbeafe; color: #1e40af; }
.t-C { background: #ede9fe; color: #5b21b6; }
.t-D { background: #e5e7eb; color: #374151; }
.tier-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tier-item, .tier-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow);
}
.tier-item strong, .tier-card strong { display: block; }
.tier-card .tag { margin-top: 6px; }

.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }
.faq { margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq p { margin: 8px 0 0; color: #39414e; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a {
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  border-radius: 999px; padding: 8px 14px; font-weight: 700;
}
.related a:hover { border-color: var(--accent); background: var(--accent-soft); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 18px; }
.toc ol { margin: 8px 0; padding-left: 20px; }

.site-footer {
  background: #111824; color: #aeb9c9; padding: 36px 0 28px;
  border-top: 4px solid #2dd4bf; font-size: 14px;
}
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 22px; }
.fgrid a { display: block; color: #dfe5ee; text-decoration: none; margin: 5px 0; }
.fgrid strong { color: #fff; display: block; margin-bottom: 8px; }
.disc { margin-top: 22px; color: #8a96ab; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav-open .nav { display: flex; }
  .drop-m { position: static; display: grid; box-shadow: none; background: transparent; padding: 0 0 0 8px; border: 0; }
  .drop-m a { color: #dfe5ee; }
  .drop-m a:hover { background: #2a3850; color: #fff; }
  .code-row, .tier-item { grid-template-columns: 1fr; }
  .copy { width: 100%; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0 46px; }
  .game-hero .gicon { width: 72px; height: 72px; border-radius: 18px; }
}
@media (max-width: 560px) {
  .fgrid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  .gicon { width: 56px; height: 56px; border-radius: 14px; }
  .game-hero .gicon { width: 64px; height: 64px; }
  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(246,243,236,0.42) 50%, rgba(246,243,236,0.70) 100%),
      url("/assets/img/og/bloxdesk-banner-light.webp") center / cover no-repeat,
      linear-gradient(135deg, #99f6e4, #fbcfe8 55%, #fde68a);
  }
}

/* Kid-friendly extras + value calculator */
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.tip-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow);
}
.tip-card h2, .tip-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; line-height: 1.25; }
.tip-card p { margin: 0; color: var(--muted); font-size: 14px; }
.tip-card .emoji {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 10px;
  background: var(--accent-soft);
}
.fun-banner {
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
  background: linear-gradient(105deg, #ecfdf8 0%, #eff6ff 45%, #fdf2f8 100%);
  border: 1px solid #c7efe6;
  border-radius: 20px; padding: 16px 18px; margin: 16px 0;
}
.fun-banner strong { display: block; font-size: 18px; margin-bottom: 4px; color: var(--ink); }
.fun-banner p { margin: 0; color: #45505f; }
.starter-list { display: grid; gap: 10px; margin: 12px 0 8px; padding: 0; list-style: none; }
.starter-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
}
.starter-list .n {
  flex: none; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  font-weight: 900; background: var(--accent); color: #06201b;
}

.calc-anchor, #value-calc { scroll-margin-top: 88px; }
.value-calc {
  background:
    linear-gradient(145deg, rgba(45,212,191,0.12), transparent 40%),
    linear-gradient(320deg, rgba(244,114,182,0.10), transparent 45%),
    #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 24px;
  padding: 18px;
  margin: 18px 0 24px;
  box-shadow: var(--shadow);
}
.value-calc h2 { margin: 0 0 6px; }
.value-calc .calc-lead { margin: 0 0 14px; color: var(--muted); }
.calc-search-wrap { margin-bottom: 10px; }
.calc-search-wrap label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.calc-search-wrap input {
  width: 100%; min-height: 52px; border-radius: 16px; border: 1px solid #cfc6b4;
  background: #fff; color: var(--ink); padding: 12px 14px; font-size: 16px;
}
.calc-results { display: grid; gap: 8px; margin-bottom: 14px; }
.calc-results-label {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-pick {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center;
  width: 100%; text-align: left;
  background: #f8fafc; color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 14px; font: inherit; font-weight: 700;
}
.calc-pick-copy { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.calc-pick-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.calc-pick-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: #0f766e; font-size: 12px; font-weight: 800;
}
.calc-pick-val { color: #0f766e; font-weight: 800; white-space: nowrap; }
.calc-pick-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.calc-add {
  appearance: none; border: 1px solid var(--line); border-radius: 12px;
  min-height: 44px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer;
}
.calc-add-you { background: #ccfbf1; border-color: #5eead4; color: #115e59; }
.calc-add-them { background: #fce7f3; border-color: #f9a8d4; color: #9d174d; }
.calc-add:hover, .calc-add:focus-visible { filter: brightness(0.97); }
.calc-boards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 4px; }
.calc-board {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px;
}
.calc-board h3 { margin: 0 0 8px; font-size: 18px; }
.calc-board[data-side="you"] {
  background: linear-gradient(180deg, rgba(45,212,191,0.14), #fff 42%);
  border-color: color-mix(in srgb, #14b8a6 40%, var(--line));
}
.calc-board[data-side="them"] {
  background: linear-gradient(180deg, rgba(244,114,182,0.14), #fff 42%);
  border-color: color-mix(in srgb, #ec4899 40%, var(--line));
}
.calc-board.is-added { animation: calc-pop 0.35s ease; }
@keyframes calc-pop {
  from { transform: scale(0.985); box-shadow: 0 0 0 3px rgba(45,212,191,0.28); }
  to { transform: none; box-shadow: none; }
}
.calc-tray { display: grid; gap: 8px; margin: 10px 0; }
.calc-row {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center;
  background: #fbf8f1; border: 1px solid var(--line); border-radius: 16px; padding: 12px;
}
.calc-row-main { display: grid; gap: 2px; color: var(--ink); }
.calc-row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.calc-qty { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.calc-qty-btn, .calc-remove, .calc-clear {
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; min-height: 44px; min-width: 44px; padding: 8px 12px; font-weight: 800; cursor: pointer;
}
.calc-qty-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.calc-remove, .calc-clear { background: transparent; }
.calc-clear { width: 100%; margin-top: 8px; border-radius: 14px; }
.calc-clear-all { margin-top: 12px; background: #fff; }
.calc-total {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(90deg, #ccfbf1, #fef3c7 55%, #fce7f3);
  border: 1px solid #99f6e4;
}
.calc-board[data-side="you"] .calc-total {
  background: linear-gradient(90deg, #ccfbf1, #d1fae5);
  border-color: #99f6e4;
}
.calc-board[data-side="them"] .calc-total {
  background: linear-gradient(90deg, #fce7f3, #ffe4e6);
  border-color: #f9a8d4;
}
.calc-total b { font-size: clamp(20px, 4.5vw, 28px); letter-spacing: -0.03em; color: var(--ink); }
.calc-verdict {
  margin-top: 14px; padding: 16px 18px; border-radius: 20px; text-align: center;
  background: linear-gradient(90deg, #ccfbf1, #fef3c7 55%, #fce7f3);
  border: 1px solid #fde68a;
}
.calc-verdict.is-fair {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
}
.calc-verdict.is-you-win {
  background: linear-gradient(90deg, #ccfbf1, #a7f3d0);
  border-color: #5eead4;
}
.calc-verdict.is-they-win {
  background: linear-gradient(90deg, #fce7f3, #fecdd3);
  border-color: #f9a8d4;
}
.calc-status { margin: 0 0 8px; font-size: clamp(22px, 5vw, 32px); font-weight: 900; color: var(--ink); }
.calc-diff { display: grid; gap: 4px; color: var(--muted); font-weight: 700; }
.calc-diff b { font-size: clamp(18px, 4vw, 24px); color: var(--ink); }
.calc-explain { margin: 10px 0 0; color: var(--muted); }

@media (min-width: 760px) {
  .calc-boards { grid-template-columns: 1fr 1fr; align-items: start; }
  .calc-pick { grid-template-columns: auto 1fr auto; }
  .calc-pick-actions { grid-column: auto; justify-content: flex-end; }
}


/* Item pictures, galleries and hub extras */
.ithumb {
  width: 48px; height: 48px; object-fit: contain; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 4px 10px rgba(27,36,51,0.06);
}
.ithumb-md { width: 64px; height: 64px; border-radius: 16px; }
.ithumb-lg { width: 96px; height: 96px; border-radius: 22px; }
.ithumb-fallback {
  display: inline-grid; place-items: center;
  font-weight: 800; color: #0f766e; background: var(--accent-soft);
}
td.nm {
  white-space: nowrap;
}
td.nm span, .nm {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
}
table.data td.nm { white-space: normal; }
table.data .ithumb { width: 44px; height: 44px; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 14px 0 22px;
  align-items: stretch;
}
.item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 12px 14px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  min-height: 214px;
  height: 100%;
}
.item-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.item-card .ithumb,
.item-card img.ithumb,
.item-card .ithumb-lg,
.item-card .ithumb-fallback {
  width: 96px;
  height: 96px;
  object-fit: contain;
  object-position: center;
  display: block;
  flex: none;
  margin: 0 auto 8px;
  background:
    radial-gradient(circle at 50% 40%, #ffffff 0%, #f3eee3 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.item-card .ithumb-fallback {
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #0f766e;
  background: var(--accent-soft);
}
.item-card strong,
.item-card .item-name {
  display: block;
  width: 100%;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 800;
}
.item-card .item-val {
  display: block;
  width: 100%;
  color: #0f766e;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
}
.item-card small,
.item-card .item-extra {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
body[data-accent="pink"] .item-card .item-val { color: #be185d; }
body[data-accent="crimson"] .item-card .item-val { color: #be123c; }

.need-cards .need, a.card.need {
  text-decoration: none; color: inherit; display: block;
}
.need-cards .need:hover { border-color: var(--accent); transform: translateY(-2px); }
.need-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin: 22px 0;
}
.source-note {
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12;
  border-radius: 14px; padding: 10px 14px; font-size: 14px;
}
.source-note a { color: #9a3412; font-weight: 700; }
.pbanner .source-note { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }
.pbanner .source-note a { color: #9a3412; }

@media (max-width: 860px) {
  .code-row, .tier-item { grid-template-columns: 1fr; }
  .banner-icon .gicon, .banner-icon .gicon-lg { width: 88px; height: 88px; border-radius: 22px; }
  .gicon-lg { width: 88px; height: 88px; border-radius: 22px; }
}
@media (max-width: 560px) {
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
  .item-card { min-height: 196px; padding: 14px 10px 12px; }
  .item-card .ithumb,
  .item-card img.ithumb,
  .item-card .ithumb-lg,
  .item-card .ithumb-fallback { width: 80px; height: 80px; }
  .ithumb-lg { width: 80px; height: 80px; }
  .gicon-lg { width: 72px; height: 72px; border-radius: 20px; }
}

/* content sits on cream */
main{background:transparent}
.gallery-grid .ithumb{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}


.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin:16px 0 28px}
.gallery-grid a{text-decoration:none;color:inherit;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 10px;text-align:center;box-shadow:var(--shadow)}
.gallery-grid a:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)}
.gallery-grid .ithumb,.gallery-grid img.ithumb{width:72px;height:72px;object-fit:contain;border-radius:14px;background:#f8fafc;margin:0 auto 8px;display:block}
.gallery-grid .ithumb-fallback{width:72px;height:72px;border-radius:14px;display:grid;place-items:center;margin:0 auto 8px;font-weight:800;background:var(--accent-soft);color:var(--accent);font-size:28px}
.pbanner{isolation:isolate}

.calc-pick-has-vars { grid-template-columns: auto 1fr; }
.calc-var-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 6px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.calc-chip b { font-weight: 800; color: #0f766e; }
.calc-chip.is-on {
  background: #ccfbf1;
  border-color: #5eead4;
  color: #115e59;
}
.badge-new {
  display: inline-block;
  margin-left: 8px;
  background: #fce7f3;
  color: #9d174d;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.value-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.value-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.value-tab.is-on {
  background: #ccfbf1;
  border-color: #5eead4;
  color: #115e59;
}
.value-panel[hidden] { display: none; }
.news-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 22px; }
.news-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 14px;
  border-radius: 14px; border: 1px solid var(--line);
  background: #fff; font-weight: 800; text-decoration: none; color: var(--ink);
}
.news-links a.gold { background: #fef3c7; border-color: #f6d27a; }

/* Sourced news cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 14px 0 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.05);
}
.news-media {
  position: relative;
  background: linear-gradient(135deg, #ecfdf8, #fef3c7 55%, #fce7f3);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-media-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
}
.news-credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.news-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.news-body h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.news-body p { margin: 0; color: var(--muted); }
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}
.news-game {
  color: #0f766e;
  text-decoration: none;
}
a.news-game:hover { text-decoration: underline; }
.news-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #0e7490;
}
.news-kind.kind-event { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.news-kind.kind-teaser { background: #f3e8ff; border-color: #d8b4fe; color: #6b21a8; }
.news-kind.kind-values { background: #ecfdf8; border-color: #99f6e4; color: #115e59; }
.news-kind.kind-update { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.news-meta time { color: #0f766e; }
.news-source { font-size: 13px; }
.news-source a { font-weight: 800; }
.badge-teaser {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}
.hub-news { margin-top: 8px; margin-bottom: 18px; }
.home-news .news-card { min-height: 100%; }
.news-filters { margin-bottom: 8px; }
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-body { padding: 12px 14px 14px; }
  .news-body h3 { font-size: 18px; }
}

/* Blox Fruits daily-visit extras (codes check, stock/meta nav, Physical vs Permanent) */
.code-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.check-banner {
  background: linear-gradient(105deg, #ecfdf8 0%, #eff6ff 48%, #fef3c7 100%);
  border: 1px solid #99f6e4;
  border-radius: 20px;
  padding: 16px 18px;
  margin: 16px 0;
}
.check-banner strong { display: block; font-size: 18px; margin-bottom: 4px; color: var(--ink); }
.check-banner p { margin: 0; color: #45505f; }
.kind-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}
.kind-chip {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: #45505f;
  font-size: 14px;
}
.kind-chip strong { display: block; color: var(--ink); margin-bottom: 2px; }
.kind-chip.kind-physical { background: #ecfdf8; border-color: #99f6e4; }
.kind-chip.kind-permanent { background: #fce7f3; border-color: #f9a8d4; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.chip-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.chip-nav a[aria-current], .chip-nav a:hover {
  background: var(--accent);
  color: #06201b;
  border-color: transparent;
}

/* MM2 wishlist: colorful filters, demand tags, seasonal and change cards */
.filter-bar { display: grid; gap: 14px; margin: 16px 0 20px; }
.chip-group { display: grid; gap: 8px; }
.chip-label { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.chip-row, .static-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  font: inherit; font-weight: 800; text-decoration: none;
  cursor: pointer;
}
a.chip:hover { color: var(--ink); }
.chip.is-on {
  background: linear-gradient(180deg, #5eead4, #2dd4bf);
  border-color: transparent;
  color: #06201b;
}
.demand-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #efe9dc;
  color: #4b4336;
}
.demand-tag.demand-hot { background: #fce7f3; color: #9d174d; }
.demand-tag.demand-high { background: #ffedd5; color: #9a3412; }
.demand-tag.demand-mid { background: #fef3c7; color: #92400e; }
.demand-tag.demand-low { background: #e2e8f0; color: #334155; }
.tag.underpay { background: #fee2e2; color: #991b1b; margin-left: 6px; }
.last-checked {
  display: inline-flex; align-items: center;
  background: #ecfdf8; color: #0f766e; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; font-size: 13px;
  border: 1px solid #99f6e4;
}
.delta {
  display: inline-block;
  margin-top: 4px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}
.delta.up { background: #d1fae5; color: #065f46; }
.delta.down { background: #fee2e2; color: #991b1b; }
.season-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 8px;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
}
.season-block h2 { margin-top: 0; }
.filter-count { margin-top: 10px; }

/* Daily desk: compact calc, search, watchlist, stock clocks, feed, calendar */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.site-search { position: relative; margin-left: auto; width: min(320px, 34vw); }
.site-search input[type="search"] {
  width: 100%; min-height: 40px; border-radius: 12px;
  border: 1px solid #3b4b66; background: #1b2433; color: #fff;
  padding: 8px 12px; font: inherit;
}
.site-search input[type="search"]::placeholder { color: #9aa7bb; }
.site-search-pop {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0;
  min-width: min(420px, 90vw); max-height: 70vh; overflow: auto;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-hover); padding: 8px; z-index: 40;
}
.site-search-hit {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--ink);
}
.site-search-hit:hover { background: #f3eee3; }
.site-search-hit small { display: block; color: var(--muted); font-weight: 600; }
.site-search-hit .ithumb { width: 32px; height: 32px; border-radius: 10px; }
@media (max-width: 860px) {
  .hdr { flex-wrap: wrap; }
  .brand { order: 1; }
  .menu-btn { order: 2; }
  .nav { order: 4; }
  .site-search-pop { left: 0; right: 0; min-width: 0; }
}
@media (min-width: 760px) and (max-width: 860px) {
  .site-search { order: 3; width: calc(100% - 8px); margin: 0 0 10px; }
}
@media (max-width: 759px) {
  /* Force-hide header site search on phones; keep Menu. Calc page search is .calc-search-wrap. */
  .hdr .site-search,
  .hdr .site-search[data-site-search],
  header .site-search,
  .site-search[data-site-search] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

.calc-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
}
.calc-pick-copy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  min-width: 0;
}
.calc-pick-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.calc-var-chips { display: flex; flex-wrap: wrap; gap: 6px; grid-column: auto; }
.calc-pick-val { color: #0f766e; font-weight: 800; white-space: nowrap; justify-self: end; }
.calc-pick-actions { display: flex; flex-wrap: nowrap; gap: 6px; }
.calc-pick-has-vars { grid-template-columns: auto minmax(0, 1fr) auto; }
.calc-add { min-height: 40px; padding: 6px 12px; }
.calc-chip { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.calc-chip-physical { background: #ecfdf8; border-color: #99f6e4; color: #115e59; }
.calc-chip-physical.is-on { background: #99f6e4; border-color: #2dd4bf; color: #115e59; }
.calc-chip-permanent { background: #fce7f3; border-color: #f9a8d4; color: #9d174d; }
.calc-chip-permanent.is-on { background: #f9a8d4; border-color: #ec4899; color: #9d174d; }
.calc-chip-fr { background: #ecfeff; border-color: #a5f3fc; color: #0e7490; }
.calc-chip-fr.is-on { background: #a5f3fc; border-color: #22d3ee; }
.calc-chip-neon { background: #f3e8ff; border-color: #d8b4fe; color: #6b21a8; }
.calc-chip-neon.is-on { background: #d8b4fe; border-color: #a855f7; }
.calc-chip-mega { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.calc-chip-mega.is-on { background: #fde68a; border-color: #f59e0b; }
.calc-chip-egg, .calc-chip-wear, .calc-chip-vehicle, .calc-chip-toy {
  background: #f8fafc; border-color: #cbd5e1; color: #334155;
}
.calc-pick-tag.calc-chip-physical { background: #ccfbf1; color: #115e59; }
.calc-pick-tag.calc-chip-permanent { background: #fce7f3; color: #9d174d; }
@media (min-width: 760px) {
  .calc-pick, .calc-pick-has-vars { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .calc-pick-actions { grid-column: auto; justify-content: flex-end; }
}
@media (max-width: 759px) {
  .value-calc { padding: 12px; }
  .calc-pick, .calc-pick-has-vars {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px 10px;
    gap: 4px 8px;
    border-radius: 14px;
  }
  .calc-pick > .ithumb,
  .calc-pick > img.ithumb,
  .calc-pick > .ithumb-fallback {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
  }
  .calc-pick-copy { grid-column: 2 / -1; gap: 4px 6px; }
  .calc-pick-name { gap: 4px; }
  .calc-var-chips { gap: 4px; }
  .calc-pick-val { grid-column: 2; justify-self: start; }
  .calc-pick-actions {
    grid-column: 3;
    justify-self: end;
    gap: 4px;
  }
  .calc-add { min-height: 34px; padding: 4px 9px; font-size: 13px; border-radius: 10px; }
  .calc-chip { min-height: 28px; padding: 2px 8px; font-size: 12px; }
}

.calc-save-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.calc-save-row button, .calc-saved-actions button {
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; min-height: 44px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer;
}
.calc-saved-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 8px 0;
}
.calc-saved-actions { display: flex; gap: 6px; }

.item-card-wrap { position: relative; height: 100%; display: flex; }
.item-card-wrap .item-card { width: 100%; flex: 1; }
.watch-pin {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; min-height: 32px; padding: 4px 10px; font-weight: 800; font-size: 12px; cursor: pointer;
}
.watch-pin.is-on { background: #fef3c7; border-color: #f6d27a; color: #92400e; }
.item-card-wrap.is-watched .item-card,
.item-card.is-in-watchlist {
  border-color: #f6d27a;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}
.watch-stock-note { color: #92400e; font-weight: 800; }

.stock-clocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0 22px; }
.stock-clock {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stock-clock h3 { margin: 0 0 8px; }
.stock-eta { margin: 8px 0 0; font-weight: 700; color: #0f766e; }

.today-feed { list-style: none; padding: 0; margin: 12px 0 22px; display: grid; gap: 12px; }
.today-feed li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow);
}
.today-feed time, .today-feed .feed-date { display: block; font-weight: 800; color: #0f766e; margin-bottom: 4px; }
.feed-visual { display: grid; gap: 8px; justify-items: center; min-width: 64px; }
.feed-game-icon {
  width: 56px; height: 56px; object-fit: contain; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(27,36,51,0.06);
}
.feed-item-thumb { width: 64px; height: 64px; }
.feed-body { min-width: 0; }
.feed-body > strong { display: block; font-size: 18px; }
@media (max-width: 560px) {
  .today-feed li { grid-template-columns: auto 1fr; gap: 10px 12px; padding: 12px; }
  .feed-game-icon { width: 48px; height: 48px; border-radius: 14px; }
  .feed-item-thumb { width: 52px; height: 52px; }
}

.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; }
.event-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px;
  box-shadow: var(--shadow);
}
.event-card .event-status {
  display: inline-block; background: #ecfdf8; color: #0f766e; border-radius: 999px;
  padding: 2px 8px; font-size: 12px; font-weight: 800; margin-bottom: 8px;
}
.event-card .event-status.is-typical { background: #fef3c7; color: #92400e; }
.event-card .event-status.is-recent { background: #fce7f3; color: #9d174d; }
.scale-examples { display: grid; gap: 10px; margin: 12px 0 18px; }
.scale-examples p { margin: 0; }

/* Blox Fruits hub / home "What is new" feature cards */
.feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-height: 132px;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--feature-accent, var(--accent)) 45%, var(--line));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--feature-accent, var(--accent)) 18%, rgba(27,36,51,0.08));
}
.feature-card.tone-teal {
  --feature-accent: #14b8a6;
  background: linear-gradient(160deg, #ecfdf8 0%, #f0fdfa 55%, #ffffff 100%);
}
.feature-card.tone-amber {
  --feature-accent: #f59e0b;
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 50%, #ffffff 100%);
}
.feature-card.tone-pink {
  --feature-accent: #ec4899;
  background: linear-gradient(160deg, #fdf2f8 0%, #fce7f3 55%, #ffffff 100%);
}
.feature-card.tone-violet {
  --feature-accent: #8b5cf6;
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 55%, #ffffff 100%);
}
.feature-card.tone-sky {
  --feature-accent: #0ea5e9;
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 55%, #ffffff 100%);
}
.feature-card.tone-rose {
  --feature-accent: #f43f5e;
  background: linear-gradient(160deg, #fff1f2 0%, #ffe4e6 55%, #ffffff 100%);
}
.feature-visual {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 88px;
}
.feature-visual .feed-game-icon,
.feature-visual .gicon {
  width: 52px; height: 52px; border-radius: 16px;
  object-fit: contain; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(27,36,51,0.06);
}
.feature-visual .ithumb,
.feature-visual img.ithumb,
.feature-visual .ithumb-lg,
.feature-visual .ithumb-fallback {
  width: 96px; height: 96px; border-radius: 22px;
  object-fit: contain; background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 18px rgba(27,36,51,0.10);
}
.feature-visual .desk-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0;
}
.feature-copy { min-width: 0; }
.feature-copy h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.feature-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}
@media (max-width: 560px) {
  .feature-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 18px 16px 16px;
    gap: 12px;
  }
  .feature-visual { min-width: 0; }
  .feature-visual .ithumb,
  .feature-visual img.ithumb,
  .feature-visual .ithumb-lg,
  .feature-visual .ithumb-fallback {
    width: 112px; height: 112px; border-radius: 26px;
  }
  .feature-copy h3 { font-size: 22px; }
}

/* Soft colorful today-feed cards (home) */
.today-feed li:nth-child(3n+1) {
  background: linear-gradient(160deg, #ecfdf8 0%, #ffffff 70%);
}
.today-feed li:nth-child(3n+2) {
  background: linear-gradient(160deg, #fdf2f8 0%, #ffffff 70%);
}
.today-feed li:nth-child(3n+3) {
  background: linear-gradient(160deg, #f5f3ff 0%, #ffffff 70%);
}
@media (max-width: 560px) {
  .today-feed li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .feed-visual { min-width: 0; }
  .feed-game-icon { width: 56px; height: 56px; }
  .feed-item-thumb, .today-feed .ithumb, .today-feed img.ithumb {
    width: 96px !important; height: 96px !important;
  }
  .feed-body { text-align: center; }
}

/* Fan pack: charts, heat, wishlist, alerts, combo, neon, onboard */
.spark { display: block; overflow: visible; }
.trend-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 8px;
}
.trend-rising { background: #d1fae5; color: #065f46; }
.trend-stable { background: #e2e8f0; color: #334155; }
.trend-falling { background: #ffe4e6; color: #9f1239; }
.trend-cell { min-width: 112px; }
.trend-cell .spark { margin-bottom: 4px; }
.charts-panel, .heat-panel { margin: 1.4em 0 2em; }
.chart-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.chart-card {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px;
  box-shadow: var(--shadow);
}
.chart-card .ithumb, .chart-card img.ithumb { width: 72px; height: 72px; border-radius: 18px; }
.chart-card h3, .chart-card strong { display: block; margin: 0 0 4px; }
.chart-card .tiny { font-size: 12px; line-height: 1.4; margin: 6px 0 0; }
.heat-legend {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px;
}
.heat-count {
  font-weight: 800; font-size: 13px; border-radius: 999px; padding: 6px 12px;
}
.heat-count.rising { background: #d1fae5; color: #065f46; }
.heat-count.stable { background: #e2e8f0; color: #334155; }
.heat-count.falling { background: #ffe4e6; color: #9f1239; }
.heat-date { font-weight: 700; color: var(--muted); padding: 6px 4px; }
.heat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px;
}
.heat-cell {
  display: grid; justify-items: center; text-align: center; gap: 6px;
  text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 18px; padding: 12px 8px;
  box-shadow: var(--shadow);
}
.heat-cell:hover { transform: translateY(-2px); color: var(--ink); }
.heat-cell .ithumb, .heat-cell img.ithumb { width: 64px; height: 64px; }
.heat-cell.heat-rising { background: linear-gradient(180deg, #ecfdf5, #fff); }
.heat-cell.heat-falling { background: linear-gradient(180deg, #fff1f2, #fff); }
.heat-cell.heat-demand-hot { box-shadow: 0 0 0 2px #fb7185 inset, var(--shadow); }
.heat-cell.heat-demand-high { box-shadow: 0 0 0 2px #fbbf24 inset, var(--shadow); }
.calc-fairness { margin-top: 12px; display: grid; gap: 6px; }
.calc-score-line { display: flex; justify-content: center; gap: 10px; align-items: baseline; margin: 0; font-weight: 800; }
.calc-score-line b { font-size: 28px; }
.calc-hint, .calc-warn-line { margin: 0; }
.calc-warn-line { font-weight: 800; color: #9f1239; }
.calc-verdict.is-overpay { background: linear-gradient(90deg, #ffe4e6, #fecdd3); border-color: #fda4af; }
.calc-verdict.is-underpay { background: linear-gradient(90deg, #fef3c7, #fde68a); border-color: #fcd34d; }
.wish-hit, .wish-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px;
  margin: 0 0 8px;
}
.wish-hit button, .wish-row button, .combo-pick, .neon-card button, .alert-dismiss {
  border: 0; border-radius: 999px; padding: 8px 12px; font-weight: 800; cursor: pointer;
  background: #ccfbf1; color: #115e59;
}
.wish-boards { display: grid; gap: 16px; }
@media (min-width: 760px) { .wish-boards { grid-template-columns: 1fr 1fr; } }
.combo-pick {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 10px;
  border-radius: 18px;
}
.combo-pick.is-on { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,0.25); }
.combo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px;
  margin: 10px 0 18px;
}
.combo-loadout {
  display: grid; grid-template-columns: auto auto auto 1fr; gap: 12px; align-items: center;
  background: linear-gradient(160deg, #ecfdf8, #fff); border: 1px solid var(--line);
  border-radius: 24px; padding: 16px;
}
.combo-loadout .ithumb, .combo-loadout img.ithumb { width: 84px; height: 84px; border-radius: 22px; }
.combo-check { margin: 16px 0; }
.combo-check li { margin: 0 0 6px; }
.neon-card {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; margin: 0 0 12px;
}
.neon-card label { display: grid; gap: 4px; font-weight: 700; margin: 8px 0; }
.neon-card input[type="number"] {
  width: 100%; max-width: 140px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px;
}
.neon-bars {
  height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 8px 0;
}
.neon-bars span { display: block; height: 100%; background: #34d399; }
.neon-bars.mega span { background: #a78bfa; }
.alert-banner {
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(160deg, #fef3c7, #fff); border: 1px solid #fde68a;
  border-radius: 20px; padding: 14px 16px; margin: 16px 0;
}
.alert-banner ul { margin: 8px 0; }
.alert-prefs { display: grid; gap: 10px; margin: 12px 0; }
.alert-prefs label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.safety-box {
  background: #fff; border: 2px solid #14b8a6; border-radius: 24px; padding: 18px; margin: 16px 0;
}
.safety-box label { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-weight: 700; }
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pattern-card {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 18px; padding: 14px;
}
.pattern-card h3 { margin-top: 0; }
.onboard {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(17, 24, 36, 0.58);
  display: grid; place-items: center; padding: 16px;
  backdrop-filter: blur(3px);
}
.onboard[hidden] { display: none !important; }
body.onboard-open { overflow: hidden; }
.onboard-card {
  width: min(440px, 100%);
  border-radius: 32px;
  padding: 20px 18px 16px;
  box-shadow: 0 28px 64px rgba(17,24,36,0.28), 0 0 0 4px rgba(255,255,255,0.35);
  background:
    radial-gradient(420px 180px at 12% -10%, rgba(244, 114, 182, 0.28), transparent 55%),
    radial-gradient(360px 160px at 100% 0%, rgba(45, 212, 191, 0.28), transparent 50%),
    radial-gradient(320px 140px at 70% 110%, rgba(251, 191, 36, 0.24), transparent 55%),
    linear-gradient(180deg, #fff9fc 0%, #f3fbff 48%, #fff8eb 100%);
  text-align: center;
  border: 3px solid #fff;
}
.onboard-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 4px;
}
.onboard-kicker {
  margin: 0; font-size: 13px; font-weight: 900; letter-spacing: 0.02em;
  color: #be185d; background: #fce7f3; border-radius: 999px; padding: 6px 12px;
}
.onboard-status {
  margin: 0; font-weight: 900; color: #0f766e; font-size: 13px;
  background: #ccfbf1; border-radius: 999px; padding: 6px 12px;
}
.onboard-dots {
  display: flex; justify-content: center; gap: 10px; margin: 14px 0 6px;
}
.onboard-dot {
  width: 14px; height: 14px; border-radius: 999px; border: 0; padding: 0;
  cursor: pointer; background: #d8dee9;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
  transition: transform 0.15s ease, background 0.15s ease, width 0.15s ease;
}
.onboard-dot.is-active {
  width: 34px; background: linear-gradient(90deg, #f472b6, #2dd4bf, #fbbf24);
  transform: scale(1.05);
}
.onboard-slide { padding: 6px 4px 2px; }
.onboard-hero {
  width: 118px; height: 118px; margin: 8px auto 14px;
  border-radius: 36px; display: grid; place-items: center;
  box-shadow: 0 14px 28px rgba(27,36,51,0.12), inset 0 0 0 4px rgba(255,255,255,0.65);
  animation: onboard-pop 0.45s ease;
}
.onboard-emoji {
  font-size: 64px; line-height: 1;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.06));
}
.onboard-slide--codes .onboard-hero {
  background: linear-gradient(145deg, #ffe4f1, #ffd6e7 40%, #fecdd3);
}
.onboard-slide--calc .onboard-hero {
  background: linear-gradient(145deg, #d1fae5, #a7f3d0 40%, #99f6e4);
}
.onboard-slide--stock .onboard-hero {
  background: linear-gradient(145deg, #fef3c7, #fde68a 40%, #fdba74);
}
.onboard-slide h2 {
  margin: 0 0 8px; font-size: clamp(1.45rem, 5vw, 1.85rem);
  letter-spacing: -0.02em; color: #1d2430;
}
.onboard-copy {
  margin: 0 auto 16px; max-width: 28ch;
  font-size: 1.05rem; line-height: 1.45; font-weight: 650; color: #3f4a5a;
}
.onboard-cta { margin: 0 0 4px; }
.onboard-btn {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  pointer-events: auto !important;
  cursor: pointer;
  border-radius: 999px !important; padding: 12px 18px !important;
  font-weight: 900 !important; font-size: 15px !important;
  box-shadow: 0 8px 0 rgba(15, 118, 110, 0.22);
}
.onboard-slide--codes .onboard-btn { background: #db2777 !important; color: #fff !important; box-shadow: 0 8px 0 #9d174d; }
.onboard-slide--calc .onboard-btn { background: #14b8a6 !important; color: #042f2e !important; box-shadow: 0 8px 0 #0f766e; }
.onboard-slide--stock .onboard-btn { background: #f59e0b !important; color: #422006 !important; box-shadow: 0 8px 0 #b45309; }
.onboard-nav { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.onboard-nav button, .onboard-card [data-onboard-skip] {
  border: 0; border-radius: 999px; padding: 11px 16px; font-weight: 900; cursor: pointer; font-size: 14px;
}
.onboard-nav [data-onboard-next] {
  background: linear-gradient(90deg, #2dd4bf, #34d399); color: #042f2e; margin-left: auto;
  box-shadow: 0 6px 0 #0f766e;
}
.onboard-nav [data-onboard-prev] { background: #e8eef7; color: #1e293b; }
.onboard-nav [data-onboard-prev]:disabled { opacity: 0.45; cursor: default; }
.onboard-card [data-onboard-skip] {
  display: block; width: 100%; margin-top: 10px; background: transparent; color: #64748b; font-weight: 700;
}
@keyframes onboard-pop {
  0% { transform: scale(0.82); opacity: 0.4; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 420px) {
  .onboard-hero { width: 104px; height: 104px; border-radius: 30px; }
  .onboard-emoji { font-size: 54px; }
  .onboard-copy { font-size: 1rem; }
}
.feed-kicker { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #0f766e; }
@media (max-width: 560px) {
  .chart-card, .combo-loadout, .neon-card, .wish-hit {
    grid-template-columns: 1fr; justify-items: center; text-align: center;
  }
  .combo-loadout { grid-template-columns: 1fr; }
  .wish-hit { grid-template-columns: 1fr; }
}

.dual-val { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.dual-val b { font-variant-numeric: tabular-nums; }
.dual-primary, .dual-alt, .dual-badge {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 6px 10px;
  border-radius: 12px; background: #0f172a; border: 1px solid #1e293b;
}
.dual-primary small, .dual-alt small, .dual-badge small {
  font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: #94a3b8; font-weight: 800;
}
.dual-alt { background: #0b3b36; border-color: #134e4a; }
.dual-mm2 { background: #1e1b4b; border-color: #312e81; }
.dual-supreme { background: #3b1d2a; border-color: #7f1d1d; }
.opinion-banner {
  margin: 16px 0 22px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(135deg, #ecfeff, #fdf4ff); color: #0f172a;
  border: 2px solid #99f6e4;
}
.opinion-banner strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.opinion-banner p { margin: 0; }
.extra-grid, .set-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 14px 0 24px;
}
.extra-card, .set-card {
  background: #0f172a; border: 1px solid #1e293b; border-radius: 18px; padding: 16px 16px 14px;
}
.extra-card h3, .set-card h3 { margin: 0 0 8px; }
.plain-list { padding-left: 1.2em; }
.plain-list li { margin: 6px 0; }
@media (max-width: 560px) {
  .dual-val { flex-direction: column; }
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 2px 4px;
}
.lang-switch a[aria-current="true"], .lang-switch a:hover {
  color: #0f766e;
}
@media (max-width: 760px) {
  .lang-switch { order: 3; margin-left: auto; }
  .hdr { flex-wrap: wrap; }
}


/* YouTube two-click videos */
.vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px;margin:16px 0 24px}
.vcard{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.vb{padding:10px 14px}
.vb h3{font-size:16px;margin:.3em 0}
.vb h3 a{color:var(--ink);text-decoration:none}
.vb h3 a:hover{color:#0f766e}
.vplayer{position:relative;aspect-ratio:16/9;background:#000}
.vplayer img,.vplayer iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}
.vplay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:rgba(0,0,0,.25);color:#fff;border:0;cursor:pointer;font-weight:600;font-size:14px}
.vplay:hover{background:rgba(0,0,0,.45)}
.vplay .pl{width:58px;height:40px;border-radius:12px;background:#c4302b;display:grid;place-items:center;font-size:18px}
.vminis{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:12px;margin:12px 0 24px}
.vmini{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;text-decoration:none;color:var(--ink);font-size:14px;font-weight:600}
.vmini img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.vmini span{display:block;padding:8px 10px}
.vmini small{display:block;color:var(--muted);font-weight:400;margin-top:4px}


/* Home: phone-first game picker (above the fold) */
.hero-home { padding-bottom: 18px; }
.hero-home .lead { max-width: 38rem; }
.hero-quick { margin-top: 14px; }
.home-games-sec { padding-top: 8px; }
.home-games-lead { margin: 0 0 14px; }
.home-games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.home-game {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 16px 18px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.home-game:hover, .home-game:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--ink);
  border-color: var(--card-accent, var(--brand));
}
.home-game.teal { --card-accent: #14b8a6; }
.home-game.pink { --card-accent: #ec4899; }
.home-game.crimson { --card-accent: #f43f5e; }
.home-game .hg-art { flex: none; }
.home-game .hg-art .gicon,
.home-game .hg-art .gicon-lg {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 3px solid rgba(255,255,255,0.95);
  box-shadow: 0 8px 18px rgba(27,36,51,0.12);
}
.hg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hg-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-accent, var(--brand));
}
.hg-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hg-blurb {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.35;
}
.hg-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-top: 2px;
}
.hg-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card-accent, var(--brand));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
.home-game:hover .hg-cta { filter: brightness(1.05); }

/* Sticky bottom game strip on small phones */
.hg-strip {
  display: none;
}

@media (min-width: 760px) {
  .home-games { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .home-game {
    flex-direction: column;
    align-items: flex-start;
    min-height: 280px;
    padding: 22px;
  }
  .home-game .hg-art .gicon,
  .home-game .hg-art .gicon-lg {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }
  .hg-title { font-size: 1.6rem; }
  .hg-strip { display: none !important; }
}

@media (max-width: 759px) {
  .hero-home { padding-top: 18px; padding-bottom: 10px; }
  .hero-home h1 { font-size: clamp(1.55rem, 6.2vw, 2rem); margin-bottom: 8px; }
  .hero-home .lead { font-size: 0.98rem; margin-bottom: 10px; }
  .hero-home .stats { display: none; } /* free vertical space above game cards */
  .home-games-sec { padding-top: 4px; padding-bottom: 8px; }
  .home-game {
    min-height: 108px;
    padding: 14px 14px;
    gap: 12px;
    border-width: 2px;
  }
  .home-game .hg-art .gicon,
  .home-game .hg-art .gicon-lg {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }
  .hg-blurb { display: none; } /* title + CTA stay obvious on narrow screens */
  .hg-title { font-size: 1.28rem; }
  .hg-cta { padding: 10px 14px; font-size: 0.98rem; min-height: 44px; }
  .hg-strip {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 40;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 26, 39, 0.96);
    border-top: 2px solid #2dd4bf;
    backdrop-filter: blur(8px);
  }
  .hg-strip-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    padding: 6px 4px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
  }
  .hg-strip-item .gicon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .hg-strip-item:active,
  .hg-strip-item:hover { background: rgba(45, 212, 191, 0.18); color: #fff; }
  body { padding-bottom: 0; }
}

@media (max-width: 390px) {
  .home-game { min-height: 100px; }
  .hg-title { font-size: 1.18rem; }
  .home-game .hg-art .gicon,
  .home-game .hg-art .gicon-lg { width: 68px; height: 68px; }
}


/* Long-form guides */
.guide-page .lead { font-size: 1.08rem; }
.guide-hero {
  margin: 14px 0 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.guide-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200/630; object-fit: cover; }
.guide-hero figcaption { padding: 8px 12px; font-size: 13px; color: var(--muted); }
.guide-toc {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  margin: 0 0 18px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.guide-toc strong { margin-right: 6px; }
.guide-toc a {
  font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 4px 10px; border-radius: 999px; background: var(--bg); color: #0f766e;
}
.guide-toc a:hover { background: var(--accent-soft); }
.guide-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; margin: 12px 0 18px;
}
.guide-thumb {
  margin: 0; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; 
}
.guide-thumb img { width: 72px; height: 72px; object-fit: contain; }
.guide-thumb figcaption { font-size: 12px; font-weight: 700; margin-top: 4px; color: var(--ink); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.guide-actions .btn {
  display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px;
  background: #0f766e; color: #fff !important; text-decoration: none; font-weight: 800;
}
.guide-actions .btn:hover { filter: brightness(1.06); color: #fff !important; }
.guide-sources { padding-left: 1.2em; }
.guide-page .steps { padding-left: 1.2em; }
.guide-page .steps li { margin: 8px 0; }
.guide-page h2 { margin-top: 1.6em; scroll-margin-top: 90px; }
