/* Beglo — shared Niguro styleguide (Fredoka / Nunito / Gochi Hand, cream
   pages, pill chips, sticker notes) with this site's two brand tokens:
   orange #e0531f (primary) and violet #6741d9 (accent). */

@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Gochi Hand"; font-display: swap; src: url("fonts/gochi-hand-latin-400-normal.woff2") format("woff2"); }

:root {
  --brand: #e0531f;  --brand-2: #6741d9;
  --brand-tint: color-mix(in srgb, var(--brand) 13%, #fff);
  --brand-2-tint: color-mix(in srgb, var(--brand-2) 12%, #fff);
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-2-ink: color-mix(in srgb, var(--brand-2) 85%, #000);
  --on-brand: #fff;
  --sun: #ffc83d; --sun-tint: #fff4d6; --mint: #2dd4a7; --mint-tint: #ddf8f0; --mint-ink: #0d8a69;
  --danger: #e5484d; --danger-tint: #fde8e8; --danger-ink: #b42328;
  --ink: #1d1a24; --muted: #6a6474; --cream: #fbf8f4; --card: #fff; --line: #ece5dc;
  --shadow-soft: 0 6px 20px #16212b0f; --shadow-brand: 0 8px 24px color-mix(in srgb, var(--brand) 22%, transparent);
  --font-head: "Fredoka", ui-rounded, system-ui, sans-serif; --font-body: "Nunito", ui-rounded, system-ui, sans-serif; --font-note: "Gochi Hand", cursive;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand-tint: color-mix(in srgb, var(--brand) 26%, #14121c); --brand-2-tint: color-mix(in srgb, var(--brand-2) 26%, #14121c);
  --brand-ink: #ff9a6b; --brand-2-ink: #b7a4ff; --sun-tint: #3a3220; --mint-tint: #163a33; --mint-ink: #5fe6c1; --danger-tint: #3a1e22; --danger-ink: #ff8a8f;
  --ink: #f2eef6; --muted: #a8a0b4; --cream: #14121c; --card: #1e1b28; --line: #2e2a3a; --shadow-soft: 0 6px 20px #0000004d; color-scheme: dark; } }
:root[data-theme="dark"] {
  --brand-tint: color-mix(in srgb, var(--brand) 26%, #14121c); --brand-2-tint: color-mix(in srgb, var(--brand-2) 26%, #14121c);
  --brand-ink: #ff9a6b; --brand-2-ink: #b7a4ff; --sun-tint: #3a3220; --mint-tint: #163a33; --mint-ink: #5fe6c1; --danger-tint: #3a1e22; --danger-ink: #ff8a8f;
  --ink: #f2eef6; --muted: #a8a0b4; --cream: #14121c; --card: #1e1b28; --line: #2e2a3a; --shadow-soft: 0 6px 20px #0000004d; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html, body, * { scrollbar-width: none; } *::-webkit-scrollbar { display: none; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 12px; }
p { margin: 0 0 12px; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-2-ink); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 8px; }
code, .mono { font-family: var(--font-mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .nowrap { white-space: nowrap; }
.note { font-family: var(--font-note); color: var(--brand-ink); font-size: 21px; line-height: 1.2; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* buttons + chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border: 0; border-radius: 999px; font: 600 16px/1 var(--font-head); cursor: pointer; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: var(--on-brand); filter: brightness(1.06); }
.btn-soft { background: var(--brand-2-tint); color: var(--brand-2-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font: 800 12.5px/1.4 var(--font-body); white-space: nowrap; }
.chip-brand { background: var(--brand-tint); color: var(--brand-ink); }
.chip-accent { background: var(--brand-2-tint); color: var(--brand-2-ink); }
.chip-sun { background: var(--sun-tint); color: var(--ink); }
.chip-mint { background: var(--mint-tint); color: var(--mint-ink); }
.chip-danger { background: var(--danger-tint); color: var(--danger-ink); }
.chip-muted { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.sticker { display: inline-block; background: var(--sun-tint); color: var(--ink); border-radius: 14px; padding: 6px 14px; font: 400 20px/1.2 var(--font-note); transform: rotate(-3deg); box-shadow: var(--shadow-soft); }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 10px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; text-decoration: none; color: var(--ink); font: 700 22px/1 var(--font-head); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--brand); }
.logo small { font: 800 10px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase; background: var(--sun-tint); color: var(--ink); padding: 4px 7px; border-radius: 99px; transform: rotate(-4deg); }
.nav { display: flex; gap: 2px; overflow-x: auto; min-width: 0; }
.logo { flex: none; }
.nav a { padding: 8px 12px; border-radius: 999px; font: 600 15px/1 var(--font-head); color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--brand-tint); color: var(--brand-ink); }
.nav a[aria-current="page"] { background: var(--brand-2-tint); color: var(--brand-2-ink); }
.theme { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--brand-2-tint); color: var(--brand-2-ink); font-size: 18px; cursor: pointer; flex: none; }
@media (max-width: 720px) { .nav a:nth-child(3) { display: none; } .logo small { display: none; } .top-in { height: 56px; } }
@media (max-width: 480px) { .nav a:nth-child(4) { display: none; } .nav a { padding: 8px 9px; font-size: 14px; } .logo { font-size: 20px; } }

/* hero */
.hero { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding-top: 34px; padding-bottom: 8px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); } }
.hero h1 { font-size: clamp(36px, 8vw, 62px); line-height: 1; letter-spacing: -.025em; }
.hero h1 span { display: block; color: var(--brand); }
.lede { font-size: 18px; color: var(--muted); max-width: 64ch; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats > div { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 12px 14px; min-width: 0; overflow-wrap: anywhere; }
.stats b { display: block; font: 700 24px/1.1 var(--font-head); color: var(--brand-ink); }
.stats span { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.stats.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 18px; }
@media (max-width: 420px) { .stats.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats.compact > div:last-child { grid-column: 1 / -1; } .stats b { font-size: 20px; } }
.hero-art { display: grid; place-items: center; }
.pulse-card { position: relative; width: min(100%, 320px); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-brand); padding: 22px; display: grid; gap: 10px; transform: rotate(2deg); }
.pulse-card .sticker { position: absolute; right: -10px; top: -14px; }
.mini { display: flex; justify-content: space-between; gap: 10px; background: var(--brand-tint); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.mini b { font-family: var(--font-head); font-weight: 600; } .mini span { font-family: var(--font-mono); color: var(--brand-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* sections */
.block { margin-top: 38px; margin-bottom: 38px; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 16px; }
.section-title h2 { font-size: clamp(25px, 5vw, 34px); margin: 0; }
.band { background: var(--brand-tint); border-radius: var(--r-lg); padding: 26px 20px; }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 20px; }

/* build feed */
.builds { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.build { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 16px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 14px 16px; }
@media (min-width: 760px) { .build { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.build-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.build-main:hover .build-tag { color: var(--brand-2-ink); }
.build-emu { grid-row: span 2; align-self: start; font: 800 12.5px/1.4 var(--font-body); background: var(--brand-tint); color: var(--brand-ink); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.build-tag { font: 700 16px/1.3 var(--font-mono); color: var(--brand-ink); overflow-wrap: anywhere; }
.build-tag.big { font-size: 22px; }
.build-note { color: var(--muted); font-size: 14.5px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.build-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.builds.compact .build-main { grid-template-columns: minmax(0, 1fr); }

/* emulator cards */
.emu-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.emu-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); color: var(--ink); text-decoration: none; transition: transform .2s; }
.emu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); color: var(--ink); }
.emu-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; }
.emu-card strong { font: 600 22px/1.15 var(--font-head); }
.emu-tag { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.emu-latest { margin-top: auto; padding-top: 6px; font-size: 14px; } .emu-latest b { font-family: var(--font-mono); color: var(--brand-ink); }
.emu-stats { display: flex; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }

/* pages */
.page-head { padding-top: 26px; }
.page-head h1 { font-size: clamp(32px, 7vw, 48px); letter-spacing: -.02em; margin-top: 10px; }
.page-head .mono { color: var(--brand-ink); font-size: .8em; overflow-wrap: anywhere; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 6px; list-style: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--brand); }
.two-col { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.two-col h2 { font-size: 26px; margin-top: 18px; }
.latest-card { display: grid; gap: 8px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 20px; text-decoration: none; color: var(--ink); border: 2px solid var(--brand-tint); }
.latest-card .btn { justify-self: start; margin-top: 4px; }
.facts { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 20px; }
@media (min-width: 960px) { .facts { position: sticky; top: 80px; } }
.facts h2 { margin-top: 0 !important; font-size: 22px !important; }
.facts dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0 0 14px; font-size: 14.5px; }
.facts dt { color: var(--muted); font-weight: 800; } .facts dd { margin: 0; }
.callout { background: var(--brand-2-tint); border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 18px; }
.callout.warn { background: var(--sun-tint); } .callout.danger { background: var(--danger-tint); }
.excerpt { margin: 0 0 14px; padding: 14px 18px; background: var(--card); border-left: 4px solid var(--brand); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; font-weight: 700; }
.prose h2 { font-size: 24px; margin-top: 28px; } .prose p { font-size: 17px; }

/* tables (scroll inside their card, never the page) */
.table-card { position: relative; max-width: 100%; overflow-x: auto; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); margin: 0 0 18px; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 800 12px/1.2 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 899px) { .table-card table { min-width: 620px; } }
td.file { font-weight: 800; overflow-wrap: anywhere; min-width: 170px; }
.hash { display: block; max-width: 30ch; font-size: 11.5px; color: var(--muted); word-break: break-all; }
.copy { margin-top: 6px; border: 0; border-radius: 99px; background: var(--brand-tint); color: var(--brand-ink); font: 800 11px/1 var(--font-body); padding: 5px 9px; cursor: pointer; }
.dl { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: var(--brand-2-tint); color: var(--brand-2-ink); font: 600 14px/1 var(--font-head); text-decoration: none; white-space: nowrap; }
.dl:hover { background: var(--brand); color: #fff; }
.compare-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 10px; }
.compare-form label { display: grid; gap: 4px; font-weight: 800; font-size: 13px; }
select, input, textarea { font: 400 15px var(--font-body); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 9px 12px; max-width: 100%; }
textarea { width: 100%; font-family: var(--font-mono); font-size: 13px; }

/* lists */
.nope { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.nope li { position: relative; padding: 10px 14px 10px 44px; background: var(--card); border-radius: 14px; }
.nope li::before { content: "✕"; position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 7px; background: var(--danger); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.faq details { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 0; font: 600 17px/1.3 var(--font-head); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* footer */
.foot { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); background: var(--card); }
.foot-in { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding-bottom: 10px; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.foot h2 { font: 800 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot ul a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 42ch; }
.legal { color: var(--muted); font-size: 13.5px; padding-top: 14px; padding-bottom: 28px; }

.lost { text-align: center; padding-top: 60px; padding-bottom: 60px; display: grid; justify-items: center; gap: 10px; }
.lost h1 { font-size: 72px; color: var(--brand); margin: 0; }

/* ads (filled by app.js) */
.ad-slot { display: flex; justify-content: center; align-items: center; margin: 22px auto; max-width: 100%; overflow: hidden; }
.ad-slot--scaled > * { zoom: var(--ad-scale); }
.ad-slot--scaled iframe { max-width: none; }
.ad-slot--debug { min-height: 80px; border: 2px dashed var(--brand-2); border-radius: var(--r-md); background: var(--brand-2-tint); color: var(--brand-2-ink); font: 600 14px var(--font-head); padding: 10px; }
.ad-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; justify-content: center; background: color-mix(in srgb, var(--card) 95%, transparent); border-top: 1px solid var(--line); padding: 6px 40px 6px 6px; }
.ad-sticky .ad-slot { margin: 0; }
.ad-sticky-close { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--brand-2-tint); color: var(--brand-2-ink); cursor: pointer; }

/* admin */
.admin-wrap { padding-top: 24px; padding-bottom: 120px; }
.admin-login { max-width: 400px; margin: 10vh auto 0; display: grid; gap: 12px; }
.admin-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.admin-form { display: grid; gap: 16px; }
.admin-form label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; margin-top: 10px; }
.admin-form label.check { display: flex; align-items: center; gap: 8px; }
.admin-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 8px 0; }
.admin-row input { flex: 1; min-width: 220px; }
.slot { border: 2px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-top: 12px; }
.slot.on { border-color: var(--brand); }
.slot legend { font: 600 17px var(--font-head); padding: 0 6px; }
.savebar { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
main p, main li, main td, main dd, main blockquote { overflow-wrap: break-word; }
/* Lichii-focused additions */
a.pulse-card { color: var(--ink); text-decoration: none; transition: transform .2s; }
a.pulse-card:hover { transform: rotate(0deg) translateY(-3px); color: var(--ink); }
.pulse-card .btn { justify-self: start; }
.guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); color: var(--ink); text-decoration: none; transition: transform .2s; min-width: 0; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); color: var(--ink); }
.guide-card .chip { align-self: flex-start; }
.guide-card strong { font: 600 20px/1.2 var(--font-head); }
.guide-card span:last-child { color: var(--muted); font-size: 14.5px; }
.latest-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0; padding: 14px 18px; background: var(--card); border-radius: var(--r-md); border: 2px solid var(--brand-tint); }
.latest-inline > a:not(.btn) { color: var(--brand-ink); text-decoration: none; font-size: 18px; }
.latest-inline .btn { margin-left: auto; }
.prose ol, .prose ul { padding-left: 1.3em; } .prose li { margin: 6px 0; font-size: 17px; }
.prose .table-card { margin: 14px 0; } .prose .callout { margin: 16px 0; }
.prose code { overflow-wrap: anywhere; }
.prose .faq { margin-top: 30px; }
@media (max-width: 899px) { .prose .table-card table { min-width: 520px; } }
/* ---- Beglo components ---- */
.callout.mint { background: var(--mint-tint); } .callout ul { margin: 0; padding-left: 1.2em; }
.search { display: flex; gap: 8px; margin: 18px 0 6px; max-width: 560px; flex-wrap: wrap; }
.search input { flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.search input:focus { border-color: var(--brand); outline: none; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.letters a { min-width: 34px; text-align: center; padding: 4px 9px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); box-shadow: var(--shadow-soft); font-weight: 700; font-size: 14px; }
.letters a[aria-current="page"] { background: var(--brand); color: #fff; }
.game-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.game-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 12px 16px; }
.game-row > a { display: grid; gap: 2px; min-width: 0; text-decoration: none; color: var(--ink); }
.game-row > a:hover .gr-title { color: var(--brand-ink); }
.gr-title { font: 600 17px/1.25 var(--font-head); overflow-wrap: anywhere; }
.gr-meta { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.gr-date { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; }
.gr-reports { grid-column: 1 / -1; font-size: 13px; color: var(--brand-2-ink); font-weight: 700; }
h2.month { margin-top: 30px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.report-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.report-list { display: grid; gap: 12px; margin: 16px 0; }
.report { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 16px; min-width: 0; }
.report header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.rp-game { font: 600 17px/1.2 var(--font-head); text-decoration: none; }
.rp-plat { color: var(--muted); font-size: 14px; font-weight: 700; }
.rp-spec { font-size: 14px; color: var(--brand-2-ink); font-weight: 700; margin-bottom: 6px; overflow-wrap: anywhere; }
.rp-notes { overflow-wrap: anywhere; }
.report-form { margin-top: 22px; display: grid; gap: 12px; }
.report-form h2 { margin: 0; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.report-form label, .admin-form label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; min-width: 0; }
.report-form input, .report-form select, .report-form textarea { width: 100%; min-width: 0; padding: 10px 12px; border-radius: var(--r-sm); border: 2px solid var(--line); background: var(--cream); color: var(--ink); font: 400 15px/1.4 var(--font-body); }
.report-form input:focus, .report-form select:focus, .report-form textarea:focus { border-color: var(--brand); outline: none; }
.report-form .human { grid-template-columns: auto 90px; align-items: center; justify-content: start; gap: 10px; }
.report-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.feature-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); color: var(--ink); text-decoration: none; transition: transform .2s; min-width: 0; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); color: var(--ink); }
.feature-card strong { font: 600 19px/1.2 var(--font-head); }
.feed-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.feed-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); text-decoration: none; color: var(--ink); font-weight: 700; }
.tabs a[aria-current="page"] { background: var(--brand); color: #fff; }
.mod { display: grid; gap: 8px; margin-bottom: 12px; } .mod textarea { width: 100%; }
.admin-list { columns: 2 260px; padding-left: 1.1em; }
@media (max-width: 560px) { .game-row { grid-template-columns: minmax(0, 1fr); } .gr-date { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; } }
/* ---- art, icons, charts ---- */
.ico { flex: none; vertical-align: -3px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 700px) { .nav a .ico { display: none; } }
.section-title h2, h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-title h2 .ico, h2 > .ico { color: var(--brand); }
.chip .sdot { margin-right: 6px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; }
.mascot { display: block; overflow: visible; }
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; }
.hero-mascot { width: min(150px, 34vw); height: auto; margin-bottom: -18px; position: relative; z-index: 1; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
.next-card { text-decoration: none; color: var(--ink); transform: rotate(1.5deg); }
.next-card strong { font: 600 22px/1.15 var(--font-head); overflow-wrap: anywhere; }
.next-card .count { display: flex; align-items: baseline; gap: 8px; }
.next-card .count b { font: 700 54px/1 var(--font-head); color: var(--brand); }
.next-card .count span { font-weight: 800; color: var(--muted); }
.next-card .mini { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 6px; }
.next-card .mini b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.next-card:hover { transform: rotate(0deg) translateY(-3px); color: var(--ink); }
.empty { display: flex; align-items: center; gap: 18px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 18px 22px; }
.empty .mascot { width: 84px; height: auto; flex: none; }
.empty p { margin: 4px 0 8px; color: var(--muted); }
.empty.mint { background: var(--mint-tint); box-shadow: none; }
@media (max-width: 480px) { .empty { flex-direction: column; text-align: center; } }
.lost .mascot { margin: 0 auto 10px; }
.foot-mascot { margin: 6px 0 4px; } .foot-mascot .mascot { width: 70px; height: auto; }
.timeline { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mchart { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 18px 14px 10px; margin-bottom: 18px; }
.mchart ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; }
.mchart li { height: 100%; min-width: 0; }
.mchart a { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); }
.mchart .bar { width: 100%; max-width: 44px; height: calc(var(--v) * 140px + 22px); background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--brand-2))); border-radius: 10px 10px 4px 4px; display: flex; justify-content: center; transition: filter .15s, transform .15s; }
.mchart .bar b { color: #fff; font: 700 13px/1 var(--font-head); margin-top: 5px; }
.mchart .lbl { font-size: 12px; font-weight: 800; white-space: nowrap; }
.mchart li.now .bar { background: linear-gradient(180deg, var(--brand-2), color-mix(in srgb, var(--brand-2) 70%, var(--brand))); }
.mchart li.now .lbl { color: var(--brand-2-ink); }
.mchart a:hover .bar { filter: brightness(1.08); transform: translateY(-2px); }
@media (max-width: 480px) { .mchart ol { gap: 3px; height: 170px; } .mchart .bar b { font-size: 10px; } .mchart .lbl { font-size: 10px; } }
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pubs li { position: relative; }
.pubs a { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14.5px; }
.pubs a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pubs i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--brand-tint); border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .hero-mascot { animation: none; } }
