/* =========================================================
   Infinite Plane — main site
   Shares its palette and type with IPRPS OS downloads + manual.
   ========================================================= */

:root {
  --bg: #121a3f;
  --bg-2: #0f1636;
  --panel: #19224c;
  --raise: #1a2350;
  --field: #0e1535;
  --line: #2c3770;
  --text: #ebe8de;
  --mist: #b4b8d4;
  --gold: #d9b45a;
  --gold-hi: #f1d58c;
  --on-gold: #1d1606;
  --link: #f1d58c;
  --teal: #47bfc4;
  --ember: #e0675f;
  --violet: #b49cf0;
  --bar: rgba(18, 26, 63, .88);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --r-s: 6px;
  --r-m: 12px;
  --wrap: 1180px;
  color-scheme: dark;
}

/* Light theme: chosen, or "auto" while the OS is in light mode. */
:root[data-theme="light"] {
  --bg: #f4f2ec; --bg-2: #ebe8df; --panel: #ffffff; --raise: #ffffff; --field: #f4f2ec;
  --line: #d8d3c4; --text: #1b2142; --mist: #545b7c; --gold: #8f6a14; --gold-hi: #6f5110;
  --on-gold: #fff8e6; --link: #7a5a10; --teal: #17777b; --ember: #b23b33; --violet: #5b3fb0;
  --bar: rgba(244, 242, 236, .9); --shadow: 0 8px 24px rgba(27, 33, 66, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f4f2ec; --bg-2: #ebe8df; --panel: #ffffff; --raise: #ffffff; --field: #f4f2ec;
    --line: #d8d3c4; --text: #1b2142; --mist: #545b7c; --gold: #8f6a14; --gold-hi: #6f5110;
    --on-gold: #fff8e6; --link: #7a5a10; --teal: #17777b; --ember: #b23b33; --violet: #5b3fb0;
    --bar: rgba(244, 242, 236, .9); --shadow: 0 8px 24px rgba(27, 33, 66, .12);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--on-gold); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mist); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: var(--r-s); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

/* ---------- Header ---------- */
.bar {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 40;
  background: var(--bar); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
}
.bar__in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.15rem/1 var(--serif); white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 800; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: var(--r-s); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover { background: var(--raise); color: var(--link); }
.nav__ticket { color: var(--teal) !important; }
.nav__room { display: none !important; }
.bar__tools { display: flex; align-items: center; gap: 8px; }
.chip, .iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: transparent; color: var(--text); font: 500 .92rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.iconbtn { width: 38px; padding: 0; }
.chip:hover, .iconbtn:hover { border-color: var(--gold); color: var(--link); }
.chip--room { border-color: var(--gold); color: var(--link); }
.ic--moon, .ic--close { display: none; }
:root[data-theme="light"] .ic--sun { display: none; }
:root[data-theme="light"] .ic--moon { display: inline; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .ic--sun { display: none; }
  :root[data-theme="auto"] .ic--moon { display: inline; }
}
.menu-btn { display: none; }

@media (max-width: 1420px) {
  .chip span { display: none; }
  .chip { width: 38px; padding: 0; }
}
@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .bar__tools { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav a { padding: 12px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .nav.is-open { display: flex; }
  .nav__room { display: flex !important; color: var(--link) !important; }
  .menu-btn[aria-expanded="true"] .ic--menu { display: none; }
  .menu-btn[aria-expanded="true"] .ic--close { display: inline; }
  /* Without JavaScript the menu stays visible below the bar. */
  html:not(.js) .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; padding: 0 0 8px; }
  html:not(.js) .bar__in { flex-wrap: wrap; }
  html:not(.js) .menu-btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--raise); color: var(--text);
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background-color .15s, color .15s, transform .15s;
}
.btn:hover { border-color: var(--gold); color: var(--link); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-hi); border-color: var(--link); color: var(--on-gold) !important; }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn--wide { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(71, 191, 196, .10), transparent 70%),
    radial-gradient(50% 50% at 10% 0%, rgba(217, 180, 90, .08), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.lede { font-size: 1.15rem; color: var(--text); max-width: 34em; }
.fine { font-size: .92rem; color: var(--mist); max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .9rem; }
.pill { display: inline-block; padding: 3px 12px; border: 1px solid var(--teal); border-radius: 99px; color: var(--teal); font-weight: 700; font-size: .85rem; }
.hero__art { margin: 0; }
.hero__art figcaption { color: var(--mist); font-style: italic; font-size: .9rem; text-align: center; margin-top: -6px; }
.disc { display: block; width: 100%; height: auto; }
.disc .sun { animation: glow 6s ease-in-out infinite; }
.disc .sparks circle { animation: twinkle 3.2s ease-in-out infinite; }
.disc .sparks circle:nth-child(2) { animation-delay: .6s; }
.disc .sparks circle:nth-child(3) { animation-delay: 1.2s; }
.disc .sparks circle:nth-child(4) { animation-delay: 1.8s; }
.disc .sparks circle:nth-child(5) { animation-delay: 2.4s; }
@keyframes glow { 50% { opacity: .75; } }
@keyframes twinkle { 50% { opacity: .2; } }

.badges { list-style: none; margin: 38px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.badges li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.badges b { display: block; font: 700 1.2rem/1.2 var(--serif); color: var(--link); }
.badges span { color: var(--mist); font-size: .92rem; }

/* ---------- Sections ---------- */
.sec { padding: 84px 0; border-top: 1px solid var(--line); }
.sec--alt { background: var(--bg-2); }
.eyebrow { font: 700 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--teal); margin-bottom: 14px; }
.sec__lede { font-size: 1.1rem; color: var(--mist); max-width: 46em; margin-bottom: 36px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split--form { align-items: start; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 24px; color: var(--text); text-decoration: none;
}
.card h3 { margin-top: 14px; }
.card p { color: var(--mist); }
.card .meta { font-size: .9rem; color: var(--teal); margin-top: auto; margin-bottom: 0; }
.card__ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; background: var(--field); border: 1px solid var(--line); color: var(--gold); }
.card__ic .ic { width: 22px; height: 22px; }
.card--link { transition: border-color .15s, transform .15s, box-shadow .15s; }
.card--link:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); }
.card--link:hover .go .ic { transform: translateX(3px); }
.go .ic { transition: transform .15s; }

/* ---------- Video frames ---------- */
.frame { background: #000; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }
.frame--video { position: relative; width: 100%; padding-top: 56.25%; /* 16:9, works without aspect-ratio */ }
.frame--video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; object-fit: contain; display: block; }
#trailer { object-fit: cover; }
#trailer.is-playing { object-fit: contain; }

/* ---------- Combat ---------- */
.combat { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.combat__tabs { display: flex; flex-direction: column; gap: 10px; }
.mode {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
  color: var(--text); text-decoration: none; transition: border-color .15s, background-color .15s;
}
.mode:hover { border-color: var(--gold); color: var(--text); }
.mode.is-on { border-color: var(--gold); background: var(--raise); box-shadow: inset 4px 0 0 var(--gold); }
.mode__n { font: 600 .85rem/1.6 var(--mono); color: var(--teal); }
.mode__t b { display: block; font: 700 1.15rem/1.3 var(--serif); }
.mode.is-on .mode__t b { color: var(--link); }
.mode__t span { color: var(--mist); font-size: .93rem; line-height: 1.4; display: block; }
.stage__cap { margin: 14px 2px 0; color: var(--mist); }
.stage__cap b { font-family: var(--serif); color: var(--link); margin-right: 6px; font-size: 1.15rem; }

/* ---------- Session Master console ---------- */
.console { background: #0a0f28; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; color: #d9dcef; }
.console__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #222b5c; font: 500 .8rem var(--mono); color: #8d93b8; }
.console__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3770; }
.console__bar i:first-child { background: var(--ember); }
.console__bar i:nth-child(2) { background: #d9b45a; }
.console__bar i:nth-child(3) { background: #47bfc4; }
.console__bar span { margin-left: 8px; }
.console__log { list-style: none; margin: 0; padding: 18px; font: 400 .88rem/1.7 var(--mono); }
.console__log li { display: grid; grid-template-columns: auto auto 1fr; gap: 0 12px; margin-bottom: 6px; }
.console__log li.cursor { display: block; }
.console__log .t { color: #6d749e; }
.lv { display: inline-block; min-width: 3em; color: #47bfc4; font-weight: 600; }
.lv--warn { color: #e0675f; }
.lv--npc { color: #f1d58c; }
.cursor { color: #8d93b8; }
.cursor::after { content: "▍"; color: #47bfc4; animation: blink 1s steps(1) infinite; margin-left: 4px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Libraries (videos + podcasts) ---------- */
.library, .radio { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.library__player, .radio__deck { position: -webkit-sticky; position: sticky; top: 84px; }
.nowplaying { padding: 18px 2px 0; }
.np__k { font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: 10px; }
.nowplaying h3, .deck__info h3 { font-size: 1.6rem; margin-bottom: .3em; }
.nowplaying p, .deck__info p { color: var(--mist); }
.np__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

.library__list, .radio__list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--field); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 12px; color: var(--mist); }
.search:focus-within { border-color: var(--teal); }
.search input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; color: var(--text); font: 400 1rem var(--sans); outline: none; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--mist); opacity: .8; }
.count { font-size: .85rem; color: var(--mist); margin: 8px 4px; min-height: 1.2em; }
.list { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 640px; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.list::-webkit-scrollbar { width: 8px; }
.list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.item {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start;
  padding: 11px 10px; border-radius: var(--r-s); color: var(--text); text-decoration: none;
  border: 1px solid transparent;
}
.item:hover { background: var(--raise); color: var(--text); border-color: var(--line); }
.item.is-on { background: var(--raise); border-color: var(--gold); }
.item__ic { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--field); color: var(--gold); border: 1px solid var(--line); }
.item__ic .ic { width: 14px; height: 14px; }
.item.is-on .item__ic { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.item__t b { display: block; font-weight: 700; line-height: 1.3; }
.item__t span { display: block; color: var(--mist); font-size: .88rem; line-height: 1.4; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__rt { font: 400 .8rem/1.6 var(--mono); color: var(--mist); white-space: nowrap; }

/* Podcast deck */
.radio__deck { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; box-shadow: var(--shadow); }
.deck { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.deck__art {
  height: 120px; border-radius: var(--r-m); background: linear-gradient(160deg, #26336e, #0c1230);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 5px;
}
.deck__art span { width: 6px; height: 30%; border-radius: 3px; background: var(--gold); opacity: .85; }
.deck__art span:nth-child(2n) { background: var(--teal); }
.deck__art span:nth-child(1) { height: 26%; } .deck__art span:nth-child(2) { height: 52%; }
.deck__art span:nth-child(3) { height: 70%; } .deck__art span:nth-child(4) { height: 44%; }
.deck__art span:nth-child(5) { height: 62%; } .deck__art span:nth-child(6) { height: 36%; }
.deck__art span:nth-child(7) { height: 22%; }
.radio.is-playing .deck__art span { animation: eq 1.1s ease-in-out infinite alternate; }
.radio.is-playing .deck__art span:nth-child(2n) { animation-duration: .8s; }
.radio.is-playing .deck__art span:nth-child(3n) { animation-duration: 1.4s; }
@keyframes eq { from { transform: scaleY(.4); } to { transform: scaleY(1.15); } }
#pod-audio { width: 100%; display: block; margin: 6px 0 4px; }
.speed { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--mist); margin: 0 4px; }
.speed select, .field select {
  background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-s);
  font: 400 .95rem var(--sans); min-height: 38px; padding: 0 8px;
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fchip { border: 1px solid var(--line); background: transparent; color: var(--mist); border-radius: 99px; padding: 5px 12px; font: 500 .88rem var(--sans); cursor: pointer; }
.fchip:hover { color: var(--text); border-color: var(--gold); }
.fchip.is-on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }

/* ---------- Join form ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 0 12px; background: var(--field); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-s); font: 400 1rem var(--sans);
}
.field input:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(71, 191, 196, .25); }
.field input[aria-invalid="true"] { border-color: var(--ember); }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .93rem; color: var(--mist); margin: 6px 0 20px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { background: rgba(224, 103, 95, .12); border: 1px solid var(--ember); color: var(--text); border-radius: var(--r-s); padding: 10px 14px; font-size: .95rem; }
.done h3 { color: var(--link); font-size: 1.8rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; color: var(--mist); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* ---------- Room form + modal ---------- */
.roomform { display: flex; gap: 8px; margin-top: auto; min-width: 0; }
.roomform input { width: 100%; }
.roomform input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; background: var(--field); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-s); font: 400 1rem var(--mono);
}
.roomform input:focus { border-color: var(--teal); outline: none; }
.roomform .btn--sm { min-height: 46px; }
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(6, 9, 26, .7); }
.modal__box { position: relative; width: 100%; max-width: 480px; animation: pop .18s ease-out; }
.modal__x { position: absolute; top: 14px; right: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg); padding: 56px 0 28px; font-size: .95rem; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { font: 700 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--teal); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--link); text-decoration: underline; }
.foot__brand p { color: var(--mist); margin-top: 14px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mist); }
.foot__base p { margin: 0; }
.foot__base a { display: inline-flex; align-items: center; gap: 6px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--gold); color: var(--on-gold); font-weight: 700; padding: 10px 18px; border-radius: var(--r-s); box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; margin: 0 auto; }
  .combat { grid-template-columns: 1fr; }
  .combat__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .library, .radio { grid-template-columns: 1fr; }
  .library__player, .radio__deck { position: static; }
  .list { max-height: 520px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 40px; }
  .sec { padding: 60px 0; }
  .badges { grid-template-columns: 1fr 1fr; }
  .cards--3 { grid-template-columns: minmax(0, 1fr); }
  .field2 { grid-template-columns: 1fr; }
  .deck { grid-template-columns: 80px 1fr; }
  .deck__art { height: 80px; }
  .panel { padding: 20px; }
  .item { grid-template-columns: 28px 1fr; }
  .item__rt { grid-column: 2; }
  .brand span { font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .badges { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .chip--room { display: none; }
}

/* Respect "reduce motion" on every OS. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Windows High Contrast / forced colors */
@media (forced-colors: active) {
  .btn, .card, .mode, .item, .chip, .iconbtn { border: 1px solid CanvasText; }
  .item.is-on, .mode.is-on, .fchip.is-on { outline: 2px solid Highlight; }
}

/* Printing gives a clean, ink-friendly page. */
@media print {
  .bar, .hero__art, .frame, .console, .filters, .search, .np__tools, .modal, #join, audio { display: none !important; }
  body { background: #fff; color: #000; }
  .sec { padding: 20px 0; border: 0; background: none !important; }
  .card, .library__list, .radio__list { border: 1px solid #999; box-shadow: none; background: none; }
  .list { max-height: none; overflow: visible; }
  a { color: #000; }
}

/* ---------- IPRPS Lite promo on the homepage ---------- */
.lite-art { margin: 0; }
.lite-art img { display: block; width: 100%; height: auto; border-radius: var(--r-m); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lite-art figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--mist); font-size: .92rem; }
.nav__lite { color: var(--link) !important; font-weight: 700 !important; }
