@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* ════════════════════════════════════════════════════════════════════════════
   RecVard — site stylesheet
   Tokens first; every page (and the admin panel) reads these names, so a season
   theme only has to swap tokens. Seasons are set by /js/theme.js from /themes.json
   as <html data-season="halloween|christmas|newyear|valentines|summer">.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Consolas, monospace;

  --bg:        #0c0707;
  --surface:   #150c0d;
  --surface2:  #1f1012;
  --border:    #2e1719;
  --border2:   #452226;
  --accent:    #e0281f;
  --accent2:   #ff4a3d;
  --accent3:   #ff8076;
  --accent-ink:#ffffff;          /* text on an accent fill */
  --accent-glow: rgba(224,40,31,.2);
  --season2:   #e0281f;          /* a theme's second colour (stripes, marks) */
  --text:      #f4e9e7;
  --muted:     #ab9592;
  --muted2:    #77605e;
  --green:     #45d483;
  --shadow:    #050405;

  --radius:    10px;
  --radius-sm: 7px;
  --nav-h:     64px;
  --lift:      3px 3px 0 var(--shadow);
  --lift-lg:   5px 5px 0 var(--shadow);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
code, kbd { font-family: var(--font-mono); font-size: .88em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.1; }
.page { display: none; }
.page.active { display: block; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  letter-spacing: -.03em; color: var(--text);
  margin-right: auto;
}
.nav-logo img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border2); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; color: var(--muted);
  transition: color .12s, background .12s;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-links a.active-link { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-dc {
  margin-left: 10px; padding: 7px 14px;
  color: var(--text); border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .86rem;
  display: flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0;
  transition: border-color .12s, background .12s;
}
.nav-dc:hover { border-color: #5865F2; background: rgba(88,101,242,.12); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 8px; padding: 7px 14px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink) !important;
  border: 1px solid var(--shadow);
  box-shadow: 2px 2px 0 var(--shadow);
  font-weight: 700; font-size: .86rem;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .1s, box-shadow .1s;
}
.nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
.nav-cta:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shadow); }
.nav-burger { display: none; padding: 8px; color: var(--muted); margin-left: 8px; }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--bg); padding: calc(var(--nav-h) + 16px) 20px 40px;
  flex-direction: column; gap: 2px; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--muted);
}
.mobile-menu a:hover { background: var(--surface2); color: var(--text); }

/* Auth pills (filled in by /js/auth-nav.js) */
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: 10px; flex-shrink: 0; }
.nav-actions a, .nav-actions button { cursor: pointer; white-space: nowrap; }
.nav-link-btn, .nav-actions .nav-link-btn, .nav-actions button.nav-link-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600; line-height: 1.2;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border2);
  transition: color .12s, border-color .12s;
}
.nav-link-btn:hover, .nav-actions .nav-link-btn:hover { color: var(--text); border-color: var(--muted2); }
.nav-link-btn.admin, .nav-actions .nav-link-btn.admin { color: var(--accent3); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.nav-link-btn.ghost { border-color: transparent; }
.nav-user, .nav-actions .nav-user {
  display: inline-flex; align-items: center;
  padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 700; color: var(--text);
  border: 1px solid var(--border2); background: var(--surface);
  max-width: 150px; overflow: hidden; text-overflow: ellipsis;
}
.nav-user:hover { border-color: var(--muted2); }
.nav-actions .nav-cta { margin-left: 0; }
#authNavMobile { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
#authNavMobile:empty { display: none; }
#authNavMobile a[href="/Admin"] { color: var(--accent3); }

/* ── SHARED ──────────────────────────────────────────────────────────────── */
main { display: block; }
/* Small pages (login, register, settings, room, profile) put their content straight in <main>: clear the fixed bar. */
main > .auth-wrap, main > .wrap { margin-top: calc(var(--nav-h) + 40px); }
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; }
.inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px;
}
.section-label::before { content: ''; width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; color: var(--text); margin-bottom: 10px; }
.section-sub { font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.65; margin-bottom: 36px; }

.btn-primary, .btn-secondary, .btn-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; line-height: 1.2;
  border: 1px solid var(--shadow);
  box-shadow: var(--lift);
  transition: transform .1s, box-shadow .1s, background .12s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: var(--surface2); color: var(--text); border-color: var(--border2); box-shadow: 3px 3px 0 var(--shadow); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-primary:hover, .btn-secondary:hover, .btn-discord:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-lg); }
.btn-primary:active, .btn-secondary:active, .btn-discord:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.home-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.card-flat {
  background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius);
}
.lift-hover { transition: transform .12s, box-shadow .12s, border-color .12s; }
.lift-hover:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-lg); border-color: var(--muted2); }

/* ── HOME ────────────────────────────────────────────────────────────────── */
.home-hero { padding: calc(var(--nav-h) + 56px) 0 56px; border-bottom: 1px solid var(--border); position: relative; }
.home-hero .inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 22px;
}
.kicker .tag { padding: 3px 8px; border: 1px solid var(--border2); border-radius: 4px; color: var(--text); background: var(--surface); }
.home-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-bottom: 22px; }
.home-hero h1 em { font-style: normal; color: var(--accent2); }
.home-hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.home-hero .lede strong { color: var(--text); font-weight: 600; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.text-link { font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border2); padding-bottom: 1px; transition: border-color .12s; }
.text-link:hover { border-color: var(--accent2); }

.live-panel { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); box-shadow: var(--lift-lg); overflow: hidden; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.live-head .lbl { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted2); }
.status-dot.up { color: var(--green); }
.status-dot.up::before { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.status-dot.down { color: #ff7b7b; }
.status-dot.down::before { background: #ff7b7b; }
.live-count { display: flex; align-items: baseline; gap: 10px; padding: 20px 18px 6px; }
.live-count .n { font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.live-count .w { color: var(--muted); font-weight: 600; }
.live-list { list-style: none; padding: 8px 10px 14px; display: flex; flex-direction: column; }
.live-list li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border-radius: var(--radius-sm); }
.live-list li a:hover { background: var(--surface2); }
.live-list .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-list .where { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; text-align: right; }
.live-empty { padding: 4px 18px 20px; color: var(--muted); font-size: .9rem; }
.live-foot { border-top: 1px solid var(--border); padding: 10px 18px; font-size: .8rem; color: var(--muted2); display: flex; justify-content: space-between; gap: 10px; }
.live-foot a { color: var(--muted); }
.live-foot a:hover { color: var(--text); }

.home-section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.steps li { list-style: none; padding: 26px 24px; border-right: 1px solid var(--border2); position: relative; }
.steps li:last-child { border-right: 0; }
.steps .no { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--accent2); margin-bottom: 14px; display: block; }
.steps h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .92rem; }
.steps code { display: inline-block; margin-top: 10px; padding: 4px 8px; border-radius: 4px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: .78rem; word-break: break-all; }

.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.photo-tile { display: block; border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.photo-tile .img { aspect-ratio: 16 / 10; background: var(--surface2) center / cover no-repeat; }
.photo-tile .cap { padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; }
.photo-tile .cap b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-tile .cap span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-note { color: var(--muted); font-size: .92rem; padding: 18px 0; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.facts dt { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; padding-top: 22px; }
.facts dd { color: var(--muted); padding: 6px 0 22px; border-bottom: 1px solid var(--border); font-size: .95rem; }

.join-band { padding: 64px 0; }
.join-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.join-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; max-width: 620px; }
.join-band p { color: var(--muted); margin-top: 10px; max-width: 520px; }

/* Old home blocks (kept so cached pages still look right) */
.hero { min-height: 70vh; padding-top: var(--nav-h); display: flex; align-items: center; position: relative; }
.hero-bg, .hero-grid, .hero-logo-glow { display: none; }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 span { color: var(--accent2); }
.hero p { color: var(--muted); max-width: 460px; margin-bottom: 30px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .06em; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.hero-visual { display: flex; justify-content: center; }
.hero-logo-img { width: 220px; height: 220px; border-radius: 18px; object-fit: cover; border: 1px solid var(--border2); box-shadow: var(--lift-lg); }
.stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3,1fr); }
.stat-item { padding: 22px 0; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-item .num.red { color: var(--accent2); }
.stat-item .desc { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.about-section { padding: 72px 0; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.about-card { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 24px; }
.about-card .icon { display: none; }
.about-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.about-card p { font-size: .9rem; color: var(--muted); }
.dc-section, .dl-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.dc-inner, .dl-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.dc-inner h2, .dl-inner h2 { font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 800; margin-bottom: 8px; }
.dc-inner p, .dl-inner p { color: var(--muted); max-width: 460px; }
.dl-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── INNER PAGES ─────────────────────────────────────────────────────────── */
.page-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 10px; }
.page-hero p { font-size: 1.02rem; color: var(--muted); max-width: 620px; }

/* Connect */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; counter-reset: step; }
.step-card { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 22px 20px; }
.step-num {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem; color: var(--accent2);
}
.step-num::before { content: 'Step '; color: var(--muted); }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 7px; }
.step-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.code-pill {
  display: inline-block; margin-top: 10px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: .78rem; color: var(--text);
}
.command-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.command-row .code-pill { flex: 1 1 280px; min-width: 0; word-break: break-all; }
.copy-btn {
  min-height: 34px; margin-top: 10px; padding: 0 12px;
  border: 1px solid var(--border2); border-radius: var(--radius-sm);
  background: var(--surface2); color: var(--text);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  transition: border-color .12s;
}
.copy-btn:hover { border-color: var(--muted2); }
.info-box {
  margin-top: 26px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border2); border-left: 3px solid #5865F2;
  border-radius: var(--radius); display: flex; align-items: center; gap: 14px; max-width: 700px; flex-wrap: wrap;
}
.info-box p { font-size: .9rem; color: var(--muted); margin: 0; flex: 1; }
.info-box a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: #5865F2; color: #fff; border-radius: var(--radius-sm); font-weight: 700; font-size: .84rem; white-space: nowrap;
}

/* Download */
.dl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 16px; margin-bottom: 48px; counter-reset: dl; }
.dl-card { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; }
.dl-card-icon { counter-increment: dl; font-size: 0; margin-bottom: 14px; }
.dl-card-icon::before { content: counter(dl, decimal-leading-zero); font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--accent2); }
.dl-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.dl-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.dl-card .version { font-size: .76rem; color: var(--muted); margin-bottom: 12px; font-family: var(--font-mono); }
.req-list { list-style: none; display: flex; flex-direction: column; gap: 0; max-width: 760px; border-top: 1px solid var(--border); }
.req-list li { display: flex; gap: 12px; font-size: .95rem; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.req-list li::before { content: '—'; color: var(--accent2); font-weight: 700; flex-shrink: 0; }

/* Credits */
.credits-intro { font-size: 1rem; color: var(--muted); max-width: 620px; line-height: 1.7; margin-bottom: 40px; }
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; margin-bottom: 20px; }
.credit-card { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.credit-card.featured { border-color: var(--accent); box-shadow: var(--lift); }
.credit-tag { display: inline-block; margin-bottom: 14px; padding: 3px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--border2); color: var(--muted); }
.tag-core { color: var(--accent3); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.tag-tool { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.tag-community { color: #f5c842; border-color: rgba(245,200,66,.4); }
.credit-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.credit-card .role { font-size: .84rem; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.credit-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.credit-link { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border2); }
.credit-link:hover { border-color: var(--accent2); }
.oss-notice { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.oss-notice h3 { margin-bottom: 10px; }
.oss-notice p { font-size: .92rem; color: var(--muted); line-height: 1.7; }

/* Search (RecNet-style) */
.search-box-wrap { max-width: 640px; margin: 0 auto 28px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 6px 6px 6px 16px; transition: border-color .12s, box-shadow .12s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: var(--lift); }
.search-box input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: 1rem; font-family: inherit; padding: 10px 0; min-width: 0; }
.search-box input::placeholder { color: var(--muted2); }
.search-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.search-tab { padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border2); background: var(--surface); color: var(--muted); font-size: .88rem; font-weight: 600; transition: all .12s; }
.search-tab:hover { color: var(--text); border-color: var(--muted2); }
.search-tab.active { background: var(--accent); border-color: var(--shadow); color: var(--accent-ink); box-shadow: 2px 2px 0 var(--shadow); }
.search-status { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 20px; min-height: 1.4em; }
.search-status.error { color: #ff7b7b; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding-bottom: 80px; }
.search-card { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; transition: transform .12s, box-shadow .12s; display: flex; flex-direction: column; }
.search-card:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-lg); }
.search-card-media { aspect-ratio: 16 / 10; background: var(--surface2); overflow: hidden; }
.search-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-card.player .search-card-media { aspect-ratio: 1; max-height: 200px; display: flex; align-items: center; justify-content: center; background: var(--surface2); }
.search-card.player .search-card-media img { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border2); }
.search-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.search-card-body h3 { font-weight: 700; font-size: 1.05rem; margin: 0; word-break: break-word; }
.search-card-body .sub { font-size: .84rem; color: var(--muted); }
.search-card-body .meta { font-size: .76rem; color: var(--muted2); margin-top: auto; padding-top: 8px; font-family: var(--font-mono); }
.search-empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); }

/* Message of the day */
.motd-card {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 520px; margin: 0 0 28px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border2); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.motd-card[hidden] { display: none !important; }
.motd-label {
  flex-shrink: 0; padding: 2px 7px; border-radius: 4px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); margin-top: 2px;
}
.motd-text { flex: 1; font-size: .92rem; font-weight: 500; color: var(--text); line-height: 1.5; margin: 0; }
.motd-success { border-left-color: var(--green); }
.motd-success .motd-label { background: var(--green); color: #06210f; }
.motd-warning { border-left-color: #f5c842; }
.motd-warning .motd-label { background: #f5c842; color: #1a1200; }
.motd-error { border-left-color: #ff4d4d; }
.motd-error .motd-label { background: #ff4d4d; color: #fff; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 24px 32px; }
.footer-top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.footer-brand .logo img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.footer-brand p { font-size: .88rem; color: var(--muted); line-height: 1.6; max-width: 340px; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 700; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: .9rem; color: var(--muted); transition: color .12s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 22px; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom .copy { font-size: .8rem; color: var(--muted2); }
.footer-bottom .disc { font-size: .76rem; color: var(--muted2); max-width: 540px; line-height: 1.5; }

/* ── SEASONS ─────────────────────────────────────────────────────────────────
   Tokens per season, plus the pieces /js/theme.js adds: a mark beside the logo,
   an optional banner under the nav, and an optional effect layer.
   --glow-a / --glow-b tint the page backdrop (theme-plus.css); a season sets
   them so its sky reads as its own (pine aurora, pumpkin haze...).          */
.season-mark { display: none; width: 22px; height: 22px; margin-left: -2px; color: var(--season2); flex-shrink: 0; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--season2) 55%, transparent)); }
.season-mark svg { width: 100%; height: 100%; display: block; }
html[data-season] .season-mark { display: inline-block; }
.season-banner {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 98;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 16px; font-size: .84rem; font-weight: 600; text-align: center;
  color: var(--text);
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 16%, transparent) 30%, color-mix(in srgb, var(--season2) 16%, transparent) 70%, transparent),
    color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border2) 70%, transparent);
}
.season-banner .ico { display: inline-flex; width: 16px; height: 16px; color: var(--season2); }
.season-banner .ico svg { width: 100%; height: 100%; }
.season-banner .x { margin-left: 8px; color: var(--muted); font-size: 1rem; line-height: 1; padding: 2px 6px; border-radius: 4px; }
.season-banner .x:hover { color: var(--text); background: var(--surface2); }
html.has-season-banner { --banner-h: 36px; }
html.has-season-banner body { padding-top: var(--banner-h); }
html.has-season-banner .mobile-menu { padding-top: calc(var(--nav-h) + var(--banner-h) + 16px); }

/* The nav's lower edge: a soft two-colour glow line (Christmas hangs lights on it). */
html[data-season] nav { border-bottom: 0; box-shadow: 0 1px 0 var(--border); }
html[data-season] nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--season2) 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
  opacity: .9;
}
html[data-season="christmas"] nav::after {
  bottom: -9px; height: 12px; box-shadow: none; opacity: 1;
  background:
    radial-gradient(circle at 50% 75%, var(--accent) 0 2.6px, color-mix(in srgb, var(--accent) 35%, transparent) 3.4px, transparent 6px) 0 0 / 66px 12px repeat-x,
    radial-gradient(circle at 50% 75%, var(--season2) 0 2.6px, color-mix(in srgb, var(--season2) 35%, transparent) 3.4px, transparent 6px) 22px 0 / 66px 12px repeat-x,
    radial-gradient(circle at 50% 75%, #3fd68a 0 2.6px, rgba(63,214,138,.35) 3.4px, transparent 6px) 44px 0 / 66px 12px repeat-x,
    radial-gradient(120% 70% at 50% -10%, transparent 62%, color-mix(in srgb, var(--border2) 90%, transparent) 64% 70%, transparent 72%) 0 0 / 22px 10px repeat-x;
  animation: rv-twinkle 2.6s ease-in-out infinite alternate;
}
@keyframes rv-twinkle { 0% { filter: brightness(.75) saturate(.9); } 50% { filter: brightness(1.25); } 100% { filter: brightness(.9); } }
.season-fx { position: fixed; inset: 0; pointer-events: none; z-index: 97; }

html[data-season="halloween"] {
  --bg: #0a0710; --surface: #130d19; --surface2: #1b1223; --border: #291b33; --border2: #3c2849;
  --accent: #ff6a1a; --accent2: #ff9638; --accent3: #ffc78f; --accent-ink: #1a0800;
  --accent-glow: rgba(255,106,26,.22); --season2: #a35bff; --text: #f6ecf2; --muted: #ad9cb2; --muted2: #75657d;
  --glow-a: #7a2fd6; --glow-b: #ff6a1a;
}
html[data-season="christmas"] {
  --bg: #06100c; --surface: #0b1913; --surface2: #10231b; --border: #183327; --border2: #234838;
  --accent: #e8343a; --accent2: #ff5e4d; --accent3: #ffb4a6; --accent-ink: #ffffff;
  --accent-glow: rgba(232,52,58,.22); --season2: #f2c14e; --text: #eef6f1; --muted: #9db4a9; --muted2: #647e72;
  --glow-a: #1f9c66; --glow-b: #e8343a;
}
html[data-season="newyear"] {
  --bg: #07081a; --surface: #0f1126; --surface2: #161933; --border: #222647; --border2: #323863;
  --accent: #f5c451; --accent2: #ffe08a; --accent3: #fff1c7; --accent-ink: #1c1400;
  --accent-glow: rgba(245,196,81,.2); --season2: #8f7dff; --text: #eef0fb; --muted: #a0a5c4; --muted2: #676d8f;
  --glow-a: #6d5cff; --glow-b: #f5c451;
}
html[data-season="valentines"] {
  --bg: #12070e; --surface: #1c0d17; --surface2: #261220; --border: #371a2d; --border2: #4f2640;
  --accent: #ff4f8b; --accent2: #ff7d9f; --accent3: #ffb8cc; --accent-ink: #ffffff;
  --accent-glow: rgba(255,79,139,.22); --season2: #ff9a7a; --text: #fbecf2; --muted: #bc9cab; --muted2: #836574;
  --glow-a: #ff4f8b; --glow-b: #c2337a;
}
html[data-season="summer"] {
  --bg: #051214; --surface: #0a1c1f; --surface2: #10272b; --border: #17373c; --border2: #224d53;
  --accent: #ffb020; --accent2: #ff8a3d; --accent3: #ffd38f; --accent-ink: #1f1300;
  --accent-glow: rgba(255,176,32,.2); --season2: #19c9b5; --text: #ecf7f6; --muted: #98b6b3; --muted2: #5f7f7c;
  --glow-a: #19c9b5; --glow-b: #ffb020;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .home-hero .inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--border2); }
  .steps li:last-child { border-bottom: 0; }
  .facts { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-dc, .nav-inner > .nav-cta { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .nav-actions { display: none !important; }
  .nav-inner { padding: 0 16px; }
}
@media (max-width: 560px) {
  .inner, .home-hero .inner { padding: 0 16px; }
  .home-hero { padding-top: calc(var(--nav-h) + 36px); }
  .home-section { padding: 52px 0; }
  .stats-bar-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-top { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .season-banner { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .season-fx { display: none; }
}
