/*  ==========  KTM_168 THEME  ==========
    Loaded after each page's own <style>, so everything here wins.
    Accent colors still come from the page (--cyan / --violet) or the theme button.
*/

:root {
  --bg: #121110;
  --panel: #1b1a18;
  --panel-2: #22201d;
  --panel-line: #2e2b27;
  --text: #eee8dd;
  --muted: #9b9488;

  --acc: var(--cyan, var(--violet));
  --acc2: var(--amber, var(--coral));
  --acc-soft: color-mix(in srgb, var(--acc) 14%, transparent);
  --line-hover: color-mix(in srgb, var(--acc) 60%, var(--panel-line));

  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius: 12px;
  --glow: none;
}

/* Kill every leftover neon glow, including inline ones in the HTML. */
*, *::before, *::after { text-shadow: none !important; }

::selection { background: var(--acc); color: #121110; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* a bit of film grain so the dark background doesn't feel flat */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1, h2 { font-weight: 800; letter-spacing: -0.035em; }
h3 { font-weight: 650; letter-spacing: -0.01em; }

a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

/* serif italic for the little personal asides */
em.aside, .hello { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Top nav ---------- */
.topnav {
  padding: 16px 32px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color .2s ease;
}
.topnav .brand, .topnav a.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}
.topnav a { color: var(--muted); }
.topnav a:hover, .topnav a:focus-visible { color: var(--text); }
.topnav .nav-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topnav .nav-links span { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1rem; }
.topnav .nav-btn {
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.92rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.topnav .nav-btn:hover, .topnav .nav-btn:focus-visible { color: var(--text); background: transparent; text-decoration-color: var(--acc); }

/* ---------- Hero ---------- */
.hero {
  isolation: isolate;
  min-height: 0;
  padding: clamp(84px, 16vh, 160px) 32px clamp(56px, 9vh, 96px);
  animation: none;
  border-bottom: 0;
  background-image: none;
}
.hero::after { content: none; display: none; }
/* artist heroes: one soft, static wash of the artist color */
.hero:has(.spotlight-glow) {
  background: radial-gradient(ellipse 55% 70% at 50% -10%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%);
}
.spotlight-glow { display: none; }

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  animation: none;
}
.hero.sub { min-height: 0; }
/* line the hero text up with the content column below it */
.hero:not(:has(.spotlight-glow)) .hero-inner { width: 100%; max-width: 912px; margin-left: auto; margin-right: auto; }
.hero .role {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--acc);
  margin-top: 18px;
}
.hero .role::after { content: none; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero .tagline { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 12px; }
.hero .kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--acc);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.2rem;
  position: relative; z-index: 1;
  margin-bottom: 10px;
}

.status-badge {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  box-shadow: none;
}
.status-dot { width: 7px; height: 7px; background: var(--acc2); box-shadow: none; animation: none; }

.hero-photo {
  box-shadow: 0 0 0 1px var(--panel-line), 0 24px 60px rgba(0, 0, 0, .5);
  animation: none;
  width: 180px; height: 180px;
}

.official-links { gap: 18px; }
.official-links a {
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent);
  transition: text-decoration-color .15s ease;
}
.official-links a:hover, .official-links a:focus-visible { text-decoration-color: var(--acc); background: transparent; box-shadow: none; }

/* ---------- Sections & headings ---------- */
section { padding-top: 96px; padding-bottom: 96px; }
section + section { border-top: 0; }
section h2 { font-size: clamp(2.2rem, 5vw, 3.3rem); margin-bottom: 28px; }
section h2::after { content: none; }
section .eyebrow-color {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--acc);
  margin: 0 0 6px;
}
section .eyebrow-color::before { content: none; }
section p { line-height: 1.7; }

.prose p { max-width: 66ch; }
.prose ul { padding-left: 20px; max-width: 66ch; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--acc); }
.source-note { color: var(--muted); font-size: 0.85rem; }

/* ---------- Cards (one look for all of them) ---------- */
.hobby-card, .artist-card, .day-card, .feature-card, .stat-block, .callout,
.hobby-link-card, .subpage-card, .pager a, .fact, .cd-unit {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.hobby-card:hover, .hobby-card:focus-within,
.artist-card:hover, .artist-card:focus-visible,
.hobby-link-card:hover, .hobby-link-card:focus-visible,
.subpage-card:hover, .subpage-card:focus-visible,
.pager a:hover, .pager a:focus-visible,
.day-card:hover, .feature-card:hover {
  border-color: var(--line-hover);
  background: var(--panel-2);
  transform: none;
  box-shadow: none;
}
.hobby-card svg { filter: grayscale(0.15); }
.hobby-card:hover svg, .hobby-card:focus-within svg { filter: none; }
.hobby-card h3 { font-size: 1.15rem; }

.artist-card { gap: 22px; padding: 18px 22px; }
.artist-card img, .artist-card .artist-icon { width: 72px; height: 72px; border-radius: 8px; }
.artist-card h3 { font-size: 1.35rem; }
.artist-card .arrow, .hobby-link-card .arrow { color: var(--muted); transition: transform .2s ease, color .2s ease; }
.artist-card:hover .arrow, .hobby-link-card:hover .arrow { transform: translateX(4px); color: var(--acc); }
.artist-rank {
  background: none;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  padding: 0;
  min-width: 2ch;
  box-shadow: none;
}
.rank-badge {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1;
  padding: 6px 10px 7px;
  border-radius: 6px;
  box-shadow: none;
}

.anime-item img, .anime-tile { border-radius: var(--radius); transition: filter .25s ease; filter: none; }
.anime-item:hover img { transform: none; box-shadow: none; filter: brightness(1.08); }
.anime-item p { text-align: left; font-weight: 600; margin-top: 12px; }

.stat-block { border-left: 3px solid var(--acc2); }
.stat-block .num { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; }
.callout { border-left: 3px solid var(--acc); }
.feature-card .feature-label, .day-card .day-label {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--acc2);
}
.album-frame { background: var(--panel); box-shadow: none; border-radius: var(--radius); }

.stat-pill { border-radius: 999px; background: transparent; }
.stat-pill strong { font-family: var(--sans); font-weight: 700; }
.pr-badge { border-radius: 999px; font-family: var(--sans); font-weight: 600; }
.member-chip, .game-chip { border-radius: 999px; }
.game-chip:hover, .game-chip:focus-visible { border-color: var(--line-hover); color: var(--text); box-shadow: none; }

.msg-head .speaker { font-family: var(--sans); font-weight: 600; }

/* ---------- Terminal ---------- */
.terminal { background: #0c0b0a; border-color: var(--panel-line); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.terminal-bar { background: var(--panel); padding: 11px 14px; }
.terminal-bar span { width: 10px; height: 10px; }
.terminal-bar .r, .terminal-bar .y, .terminal-bar .g { background: var(--panel-line); }
.terminal-body { font-family: var(--mono); font-size: 0.88rem; color: #d3ccc0; animation: none; }
.terminal-body .prompt { color: var(--acc); }
.cursor { background: var(--acc); box-shadow: none; width: 7px; }

/* ---------- Timeline ---------- */
.timeline::before { background: var(--panel-line); opacity: 1; }
.t-item::before { background: var(--acc); box-shadow: 0 0 0 4px var(--bg); animation: none; width: 10px; height: 10px; left: -31px; top: 6px; }
.t-year { font-family: var(--serif); font-style: italic; font-size: 1.15rem; font-weight: 400; letter-spacing: 0; color: var(--acc); }

/* ---------- Tables, facts ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 32px 0; border-top: 1px solid var(--panel-line); }
.fact { padding: 18px 20px 18px 0; background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--panel-line); }
.fact h3 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); margin: 0; }
.fact p { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; }

.table-wrap { overflow-x: auto; margin-top: 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th { text-align: left; font-family: var(--serif); font-style: italic; color: var(--muted); font-weight: 400; font-size: 1rem; letter-spacing: 0; text-transform: none; padding: 10px 12px; border-bottom: 1px solid var(--panel-line); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--panel-line); vertical-align: top; }
.data-table td:first-child { color: var(--text); white-space: nowrap; font-weight: 600; }
.data-table tr:hover td { background: var(--panel); }

/* ---------- Sub-page grids, pager, crumbs, tabs ---------- */
.subpage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 24px; }
.subpage-card { display: block; padding: 18px 20px; text-decoration: none; color: var(--text); }
.subpage-card .k { font-family: var(--serif); font-style: italic; color: var(--acc); font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.subpage-card h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.subpage-card p { color: var(--muted); margin: 0; font-size: 0.9rem; }
.subpage-card.current { border-color: var(--acc); box-shadow: none; }
.subpage-card.has-thumb { display: flex; align-items: center; gap: 14px; padding: 10px 12px; }
.subpage-card .thumb { width: 52px; height: 74px; object-fit: cover; border-radius: 6px; flex-shrink: 0; border: 0; }
.subpage-card.has-thumb h3 { margin: 2px 0 0; }

.crumbs { max-width: 960px; margin: 0 auto; padding: 18px 24px 0; font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--acc); }
.crumbs span { margin: 0 8px; opacity: 0.5; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager a { display: flex; align-items: center; gap: 14px; padding: 12px; text-decoration: none; color: var(--text); }
.pager a.next { flex-direction: row-reverse; text-align: right; }
.pager .k { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.pager strong { font-size: 1.05rem; }
.pager img { width: 52px; height: 74px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a.next { flex-direction: row; text-align: left; } }

.tabs {
  position: sticky; top: 58px; z-index: 9;
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-line);
}
.tabs a {
  padding: 13px 14px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.tabs a:hover, .tabs a:focus-visible { color: var(--text); }
.tabs a.current { color: var(--text); border-bottom-color: var(--acc); box-shadow: none; }

/* ---------- Feature blocks (artist overview pages) ---------- */
.feature-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; max-width: 1000px; margin: 0 auto; padding: 80px 24px; }
.feature-block.rev { grid-template-columns: 1fr 1.1fr; }
.feature-block.rev .fb-media { order: 2; }
.fb-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); transition: filter .25s ease, transform .4s ease; }
.fb-media a:hover img { transform: scale(1.015); filter: brightness(1.06); }
.fb-media.mosaic a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fb-media.mosaic img { border-radius: 8px; }
.feature-block h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 16px; }
.feature-block p { color: var(--muted); max-width: 50ch; }
.fb-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  box-shadow: none; transition: background .15s ease, color .15s ease;
}
.fb-btn:hover, .fb-btn:focus-visible { background: var(--acc); color: #121110; transform: none; box-shadow: none; }
@media (max-width: 720px) {
  .feature-block, .feature-block.rev { grid-template-columns: 1fr; gap: 24px; padding: 48px 20px; }
  .feature-block.rev .fb-media { order: 0; }
}
.album-feature h2::after { content: none; }
.album-feature p, .album-feature .eyebrow-color { margin-left: auto; margin-right: auto; }
.album-feature .eyebrow-color { display: table; }
.album-feature .album-caption { max-width: 46ch; }
@media (max-width: 560px) { .topnav .nav-links span { display: none; } .topnav { padding: 12px 16px; } }

/* ---------- Pictures ---------- */
.pic-slot { position: relative; overflow: hidden; }
.pic-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.anime-poster-wrap { display: grid; grid-template-columns: 1fr 220px; gap: 48px; align-items: start; }
.anime-poster { width: 220px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); border: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); transform: rotate(1.5deg); }
@media (max-width: 720px) { .anime-poster-wrap { grid-template-columns: 1fr; } .anime-poster { width: 180px; } }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; margin-top: 24px; }
.cover { text-decoration: none; color: var(--text); }
.cover .pic-slot { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--panel-line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px;
  background: var(--panel); transition: filter .2s ease, transform .25s ease; }
.cover .pic-slot span { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.cover:hover .pic-slot { transform: translateY(-3px); box-shadow: none; filter: brightness(1.08); }
.cover h3 { font-size: 0.98rem; margin: 10px 0 2px; }
.cover p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.poster-stack { display: flex; flex-direction: column; gap: 18px; }
.pic-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.pic-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 0; box-shadow: none; }

.more-pics .pic-gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.more-pics figure { margin: 0; }
.more-pics figure img { aspect-ratio: 1 / 1; }
.more-pics figure.wide { grid-column: span 2; }
.more-pics figure.wide img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.more-pics figcaption { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted); text-align: left; }
@media (max-width: 560px) { .more-pics figure.wide { grid-column: span 1; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--panel-line); color: var(--muted); font-size: 0.9rem; line-height: 2; }
footer a { color: var(--text) !important; text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline !important; text-decoration-color: var(--acc) !important; }

/* ---------- fx.js bits ---------- */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--acc); pointer-events: none; }
.fx-on .fx-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.fx-on .fx-reveal.fx-in { opacity: 1; transform: none; }
/* confetti when a terminal secret unlocks */
.fx-spark { position: fixed; width: 5px; height: 5px; border-radius: 1px; background: var(--acc); pointer-events: none; z-index: 9998; animation: fx-spark .7s ease-out forwards; }
.fx-spark:nth-child(odd) { background: var(--acc2); }
@keyframes fx-spark { to { transform: translate(var(--dx), var(--dy)) rotate(180deg) scale(0); opacity: 0; } }
.fx-rain { position: fixed; inset: 0; z-index: 9997; pointer-events: none; transition: opacity .7s; }
.fx-toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9999; padding: 16px 26px; border: 1px solid var(--acc); border-radius: var(--radius);
  background: rgba(12, 11, 10, .9); color: #fff; font: 800 clamp(18px, 3.5vw, 30px) var(--display); letter-spacing: -.01em; text-align: center; transition: opacity .7s; }
.fx-rain.out, .fx-toast.out { opacity: 0; }

/* ---------- Color themes (nav button) ---------- */
html[data-theme="cyan"]  { --cyan: #5cc8d6; --violet: #5cc8d6; --amber: #e9c46a; --coral: #e9c46a; }
html[data-theme="pink"]  { --cyan: #f08bc4; --violet: #f08bc4; --amber: #a99cf2; --coral: #a99cf2; }
html[data-theme="red"]   { --cyan: #ef5f5f; --violet: #ef5f5f; --amber: #e9c46a; --coral: #e9c46a; }
html[data-theme="aurum"] { --cyan: #e8c26a; --violet: #e8c26a; --amber: #e0913a; --coral: #e0913a; }
.theme-btn { cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 7px; }
.topnav .theme-btn { border: 1px solid var(--panel-line); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.topnav .theme-btn:hover, .topnav .theme-btn:focus-visible { border-color: var(--line-hover); }
.theme-btn i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: none; }
.theme-btn b { font-weight: 500; }
.topnav > .theme-btn { margin-left: 12px; }

/* ---------- Gym PR bars ---------- */
.pr-bars { display: grid; gap: 16px; margin-top: 28px; }
.pr-row { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 76px; align-items: center; gap: 14px; }
.pr-name { font-weight: 500; color: var(--text); }
.pr-name small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.pr-track { height: 10px; border-radius: 999px; background: var(--panel); border: 0; overflow: hidden; }
.pr-fill { height: 100%; width: 0; border-radius: inherit; background: var(--acc); box-shadow: none; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.pr-row:nth-child(2) .pr-fill { transition-delay: .06s; } .pr-row:nth-child(3) .pr-fill { transition-delay: .12s; } .pr-row:nth-child(4) .pr-fill { transition-delay: .18s; }
.pr-row:nth-child(n+5) .pr-fill { transition-delay: .24s; }
.pr-go .pr-fill { width: var(--w); }
.pr-row.big3 .pr-name::before { content: "★ "; color: var(--acc2); }
.pr-kg { font: 800 1.2rem var(--display); letter-spacing: -0.02em; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.pr-kg span { font: 500 .75rem var(--sans); margin-left: 2px; color: var(--muted); }
.pr-total { margin-top: 24px; color: var(--muted); }
.pr-total strong { color: var(--text); font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.02em; }
@media (max-width: 560px) { .pr-row { grid-template-columns: 1fr 64px; gap: 6px 10px; } .pr-track { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 560px) { .theme-btn b { display: none; } .topnav .theme-btn { padding: 8px 10px; } .topnav .nav-links { gap: 12px; } }

/* ---------- Interactive terminal ---------- */
.terminal-body.t-live { max-height: 360px; overflow-y: auto; cursor: text; white-space: normal; }
.t-out { white-space: pre-wrap; }
.t-line { display: flex; gap: 8px; align-items: center; margin-top: 2px; cursor: text; }
.t-in { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; caret-color: var(--acc); padding: 0; }
.t-in::placeholder { color: rgba(255, 255, 255, .25); }
.t-acc { color: var(--acc); }
.t-ok { color: #8fc59a; }
.t-warn { color: #e9c46a; }
.t-big { font-size: 1.6em; font-weight: 700; color: var(--acc2); }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 14px; border-top: 1px solid var(--panel-line); }
.t-chips button { font: 500 .78rem var(--mono); color: var(--muted); background: transparent;
  border: 1px solid var(--panel-line); border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: color .15s, border-color .15s; }
.t-chips button:hover, .t-chips button:focus-visible { color: var(--text); border-color: var(--line-hover); box-shadow: none; }
.t-shake { animation: t-shake .45s; }
@keyframes t-shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-6px, 2px); } 40%, 60% { transform: translate(6px, -1px); } }
@keyframes blink { 50% { opacity: 0; } }
.t-game { margin: 6px 0; font: inherit; line-height: 1.15; letter-spacing: .12em; white-space: pre; }
.t-pad { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.t-pad button { font: 500 .88rem var(--mono); color: var(--text); background: var(--panel); border: 1px solid var(--panel-line); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.t-tip { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); } .t-tip code { font-family: var(--mono); font-style: normal; font-size: .85rem; color: var(--text); }
@media (max-width: 560px) { .terminal-body.t-live { font-size: .74rem; padding: 14px; } .t-chips button { padding: 5px 9px; font-size: .74rem; } }

/* ---------- Convention countdown ---------- */
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; max-width: 640px; }
.cd-unit { padding: 18px 8px; text-align: center; }
.cd-unit b { display: block; font: 800 clamp(2rem, 6vw, 3.2rem) var(--display); letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.cd-unit span { font: italic 400 1rem var(--serif); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cd-today { grid-column: 1 / -1; font: 800 2rem var(--display); color: var(--acc2); }
.cd-after { margin-top: 16px; color: var(--muted); }
@media (max-width: 560px) { .cd-grid { gap: 8px; } .cd-unit { padding: 12px 4px; } }

/* ==========  Home page  ========== */
.home-hero { padding-bottom: clamp(40px, 8vh, 80px); }

.home-hero .hello { color: var(--acc); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 6px; }
.home-hero h1 { font-size: clamp(4rem, 15vw, 10rem); }
.home-hero .lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--text); max-width: 34ch; margin-top: 22px; line-height: 1.45; }
.home-hero .lede em { font-family: var(--serif); font-size: 1.12em; color: var(--acc); }

.now { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .95rem; }
.now li { color: var(--text); }
.now a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent); }
.now a:hover, .now a:focus-visible { text-decoration-color: var(--acc); }
.now span { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.05rem; line-height: 1.2; }

/* hobbies as a numbered list instead of a grid of boxes */
.hobby-grid { counter-reset: hob; gap: 0 48px !important; grid-template-columns: repeat(2, 1fr) !important; border-top: 1px solid var(--panel-line); }
.hobby-grid .hobby-card { background: none; border: 0; border-bottom: 1px solid var(--panel-line); border-radius: 0; counter-increment: hob; }
.hobby-grid .hobby-card:hover, .hobby-grid .hobby-card:focus-within { background: none; }
.hobby-grid .hobby-card-link { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: baseline; gap: 4px 12px; padding: 22px 0; }
.hobby-grid .hobby-card-link::before { content: counter(hob, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.1rem; grid-row: span 2; }
.hobby-grid .hobby-card-link::after { content: '\2192'; color: var(--muted); grid-column: 3; grid-row: 1; transition: transform .2s ease, color .2s ease; }
.hobby-grid .hobby-card:hover .hobby-card-link::after { transform: translateX(4px); color: var(--acc); }
.hobby-grid .hobby-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0; transition: color .2s ease; }
.hobby-grid .hobby-card:hover h3 { color: var(--acc); }
.hobby-grid .hobby-card p { grid-column: 2 / 4; margin: 0; }
@media (max-width: 720px) { .hobby-grid { grid-template-columns: 1fr !important; } }

/* artists as big ranked rows */
.artist-list { gap: 0 !important; border-top: 1px solid var(--panel-line); }
.artist-list .artist-card { background: none; border: 0; border-bottom: 1px solid var(--panel-line); border-radius: 0; padding: 18px 4px; }
.artist-list .artist-card:hover, .artist-list .artist-card:focus-visible { background: linear-gradient(90deg, var(--acc-soft), transparent 70%); }
.artist-list .artist-card img, .artist-list .artist-card .artist-icon { transition: transform .3s ease; }
.artist-list .artist-card:hover img, .artist-list .artist-card:hover .artist-icon { transform: rotate(-3deg) scale(1.05); }
.artist-list .artist-card h3 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; }
.artist-list .artist-card .label { font-size: .9rem; margin: 0 0 2px; }

/* top 3 anime pinned up a little crooked, straighten on hover */
.anime-board .anime-item { transition: transform .3s ease; }
.anime-board .anime-item:nth-child(1) { transform: rotate(-1.4deg); }
.anime-board .anime-item:nth-child(2) { transform: rotate(0.9deg) translateY(10px); }
.anime-board .anime-item:nth-child(3) { transform: rotate(-0.6deg); }
.anime-board .anime-item:hover { transform: none; }
.anime-board .anime-item img, .anime-board .anime-tile { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); }

.home-footer { text-align: left !important; max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; border-top: 0 !important; }
.home-footer .sign { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--text); margin: 0; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: 520px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx-on .fx-reveal { opacity: 1; transform: none; }
  .pr-fill { transition: none; }
}
