:root {
  color-scheme: light;
  --bg: #f7efd9;
  --paper: #fffdf3;
  --ink: #282216;
  --muted: #655740;
  --line: #70634b;
  --soft-line: #d9cba9;
  --accent: #e9a100;
  --on-accent: #261c0b;
  --tint: #fbe7ab;
  --inset: #efe4c8;
  --shadow: #35260e32;
  --face: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --pixel: "Press Start 2P", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}
:root[data-accent="purple"] {
  --accent: #b9a0ec;
  --on-accent: #201432;
  --tint: #e5d9f9;
  --inset: #eee5f7;
  --bg: #f1eaf7;
  --paper: #fefaff;
  --muted: #62526f;
  --line: #756482;
  --soft-line: #d8c9e2;
}
:root[data-mode="dark"] {
  color-scheme: dark;
  --bg: #29251e;
  --paper: #373024;
  --ink: #f8efd7;
  --muted: #dac8a8;
  --line: #a58b60;
  --soft-line: #665339;
  --accent: #eeb64a;
  --tint: #514021;
  --inset: #413722;
  --shadow: #09060270;
}
:root[data-mode="dark"][data-accent="purple"] {
  --bg: #241f2b;
  --paper: #332a3e;
  --muted: #ddcce9;
  --line: #ae91c5;
  --soft-line: #665274;
  --accent: #c9a9f5;
  --tint: #4d365f;
  --inset: #40324d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--face); }
main { flex: 1; min-width: 0; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.35; }
h1 { font: 800 clamp(1.65rem, 3.5vw, 2.5rem)/1.25 var(--pixel); letter-spacing: -.035em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button, label[for] { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 5; padding: .5rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { max-width: 1440px; margin: auto; min-height: 76px; display: flex; align-items: center; gap: 1.75rem; padding: .65rem clamp(1rem, 3vw, 2rem); }
.brand { font-weight: 900; font-size: 1rem; white-space: nowrap; text-decoration: none; }
.brand span { color: var(--accent); font-size: 1.55em; vertical-align: -.08em; }
.header-controls { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1rem; }
.profile-link { min-width: 0; max-width: 13rem; flex-shrink: 0; }
.profile-link span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-transform: none; }
.profile-link[aria-current] { background: var(--tint); }
nav, .switches, .switch-unit { display: flex; align-items: center; gap: .65rem; }
nav { gap: .2rem; }
nav a { min-height: 40px; display: grid; place-items: center; padding: .35rem .75rem; border: 1px solid transparent; border-radius: 5px; font-weight: 700; text-transform: uppercase; font-size: .875rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { background: var(--tint); border-color: var(--line); box-shadow: 0 2px var(--shadow); }
.switch-unit { gap: .35rem; }
.switch { position: relative; width: 36px; height: 48px; padding: 0; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px var(--shadow); }
.switch::before, .switch::after { content: ""; position: absolute; left: calc(50% - 1.5px); width: 3px; height: 3px; background: var(--line); border-radius: 100%; }
.switch::before { top: 4px; }
.switch::after { bottom: 4px; }
.switch span { width: 16px; height: 26px; border: 1px solid var(--line); border-radius: 4px; background: var(--inset); }
.switch span::after { content: ""; display: block; width: 12px; height: 12px; margin: 10px auto 0; border: 1px solid var(--line); border-radius: 3px; background: var(--accent); transition: margin .15s; }
.switch[aria-checked="true"] span::after { margin-top: 1px; }
.header .menu-button { display: none; }
.ticker { padding: .35rem 1rem; text-align: center; color: var(--on-accent); background: var(--accent); border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 800; text-transform: uppercase; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: clamp(1.75rem, 4vw, 3.5rem) 0 3.75rem; }
.intro { margin: .65rem 0 1.45rem; color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, 1fr); gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
.hero-copy > p:not(.eyebrow) { margin: 1rem 0 1.3rem; max-width: 60ch; }
.eyebrow { border: 1px solid var(--line); border-radius: 5px; background: var(--tint); padding: .3rem .65rem; margin-bottom: 1.1rem; text-transform: uppercase; font-size: .82rem; font-weight: 800; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.button { min-height: 43px; padding: .55rem .95rem; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .4rem; text-decoration: none; text-transform: uppercase; font-size: .875rem; font-weight: 800; color: var(--on-accent); background: var(--accent); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 3px var(--shadow); }
.button.secondary { background: var(--paper); color: var(--ink); }
.button:hover, a.link-card:hover { filter: brightness(.95); }
.button:active, a.link-card:active { transform: translateY(2px); box-shadow: none; }
.window { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px var(--shadow); }
.titlebar { display: flex; align-items: center; gap: .55rem; min-height: 38px; padding: .5rem .85rem; border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0; background: var(--tint); font: 800 .9rem/1.35 var(--face); text-transform: uppercase; overflow-wrap: anywhere; }
.lights { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; margin-right: 19px; border-radius: 50%; background: #e85348; box-shadow: 10px 0 #e5a100, 20px 0 #5eab58; }
.profile-body { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: .8rem; padding: .85rem; }
.avatar-button { display: block; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: none; overflow: hidden; }
.avatar-button:active { transform: translateY(1px); }
.secret-dialog { width: min(340px, calc(100% - 32px)); padding: 0; color: var(--ink); }
.secret-dialog::backdrop { background: #1510179c; }
.secret-dialog form { padding: 1.2rem; text-align: center; }
.secret-star { display: block; color: var(--accent); font-size: 1.9rem; line-height: 1; }
.secret-dialog h2 { margin: .55rem 0 1rem; }
.profile dl { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .3rem .75rem; margin: 0; font-size: .875rem; }
.profile dd { margin: 0; text-align: right; }
.profile dt, .muted, small { color: var(--muted); }
.home-section { margin-top: 2.6rem; }
.home-section h2, .video-section > h2 { text-transform: uppercase; }
.home-section > p { margin: .3rem 0 1rem; font-size: .93rem; }
.link-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.micro { margin-bottom: .55rem; color: var(--muted); text-transform: uppercase; font-size: .8rem; }
.link-list { display: grid; gap: .6rem; }
.link-card { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .55rem .65rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px var(--shadow); text-decoration: none; }
.link-card small { display: block; font-size: .82rem; }
.link-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; font-weight: 800; border: 1px solid var(--line); border-radius: 6px; background: var(--tint); }
.link-mark { margin-left: auto; font-size: 1.5rem; line-height: 1; }
.favorites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.favorites ul { margin: .5rem 0; padding: 0 .7rem 0 1.75rem; font-size: .875rem; }
.favorites li + li { margin-top: .25rem; }
.guest-call { display: flex; align-items: center; gap: .9rem; margin-top: 2.6rem; padding: .85rem; background: var(--tint); }
.guest-call p { font-size: .875rem; }
.guest-call .button { margin-left: auto; }
.shelf { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .3rem; padding: .3rem .5rem 0; border-bottom: 10px solid #89613e; border-radius: 4px; box-shadow: 0 3px var(--shadow); }
.shelf span, .shelf a { display: grid; place-items: center; width: 88px; height: 31px; border: 1px solid #211a16; border-radius: 2px 2px 0 0; font-size: .65rem; font-weight: 900; background: #ffc44e; color: #241711; }
.shelf span:nth-child(2) { background: #7545c7; color: white; }
.shelf span:nth-child(3) { background: #232234; color: white; }
.shelf span:nth-child(4) { background: #2b6b49; color: white; }
.shelf span:nth-child(5) { background: #a42d56; color: white; }
.shelf span:nth-child(6) { background: #2651a9; color: white; }
.shelf a { background: var(--paper); color: var(--ink); font-size: .61rem; }
.post-form { padding: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .85rem; }
.post-form label { font-size: .875rem; font-weight: 700; }
.post-form label, .post-form input, .post-form textarea, .form-footer, .reply-draft { grid-column: 1 / -1; }
.post-form input, .post-form textarea, .proposal-form input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--soft-line); border-radius: 5px; padding: .55rem .7rem; background: var(--inset); }
.post-form input { max-width: 28rem; }
.post-form input:read-only { color: var(--muted); }
.post-form textarea { resize: vertical; }
.forum-emote-picker { grid-column: 1 / -1; }
.forum-emote-picker summary { min-height: 44px; cursor: pointer; }
.forum-emote-picker summary::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-.1rem) rotate(45deg); }
.forum-emote-picker[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.forum-emote-picker summary::-webkit-details-marker { display: none; }
.forum-emote-panel { display: grid; gap: .45rem; margin-top: .55rem; padding: .65rem; border: 1px solid var(--soft-line); border-radius: 6px; background: var(--paper); }
.forum-emote-panel p { font-size: .82rem; }
.forum-emote-panel p:not(:empty) { padding-block: .2rem; }
.forum-emote-panel > button { justify-self: start; }
.forum-emote-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7rem), 1fr)); gap: .4rem; max-height: 17rem; overflow: auto; padding: .25rem; }
.forum-emote-option { display: grid; align-content: center; justify-items: center; gap: .1rem; padding: .3rem; border: 1px solid var(--soft-line); border-radius: 5px; background: var(--inset); font-size: .8rem; overflow-wrap: anywhere; }
.forum-emote-option:hover { background: var(--tint); }
.forum-emote-image { display: inline-block; width: auto; max-width: 4rem; height: 1.55em; object-fit: contain; vertical-align: -.35em; }
.forum-emote-option .forum-emote-image { height: 1.65rem; }
.forum-emote-text { display: none; }
@media (prefers-reduced-motion: reduce) {
  .forum-emote-animated > .forum-emote-image, .forum-emote-option .forum-emote-animated { display: none; }
  .forum-emote-animated > .forum-emote-text { display: inline; }
}
.form-footer { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.form-footer p, .empty { color: var(--muted); font-size: .875rem; }
.forum-toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: .875rem; }
.more-posts { margin-top: .65rem; }
.forum-toolbar button, .more-posts, .post-form button { min-height: 44px; }
.post-form button:disabled, .forum-toolbar button:disabled, .more-posts:disabled { cursor: wait; opacity: .75; }
#local-posts summary, .forum-moderation summary, #suggest-topic summary { padding: .65rem 0; min-height: 44px; cursor: pointer; font-weight: 800; }
#local-posts summary { padding-inline: 1rem; }
.forum-topics { display: grid; gap: .9rem; }
.topic-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.topic-links .button { max-width: 100%; min-height: 44px; overflow-wrap: anywhere; }
.topic-links a[aria-current] { color: var(--on-accent); background: var(--accent); }
.forum-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem; }
.forum-pagination:first-child { padding-bottom: .6rem; border-bottom: 1px solid var(--soft-line); margin-bottom: .55rem; }
.forum-pagination:last-child { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--soft-line); }
.page-size, .page-links, .page-jump { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.page-size { font-size: .875rem; }
.page-size select, .page-jump input { min-height: 44px; padding: .35rem .5rem; border: 1px solid var(--soft-line); border-radius: 5px; background: var(--inset); }
.page-jump input { width: 4.5rem; }
.page-links .button { min-width: 44px; min-height: 44px; padding: .4rem .55rem; }
.page-links [aria-current="page"] { background: var(--accent); }
.forum-topics h3 { font-size: .96rem; margin-bottom: .4rem; }
.proposal-form { display: grid; gap: .5rem; justify-items: start; max-width: 28rem; }
.proposal-form label { font-weight: 700; }
.forum-notice { margin-top: .8rem; padding: .65rem .85rem; background: var(--tint); border: 1px solid var(--line); border-radius: 5px; }
.forum-moderation { display: grid; justify-items: start; gap: .45rem; }
.forum-moderation details { width: 100%; border-top: 1px solid var(--soft-line); }
.forum-moderation [role="status"]:empty { display: none; }
.reply-draft { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: .25rem 0; }
.reply-draft a, .reply-link { font-size: .875rem; overflow-wrap: anywhere; }
.reply-link { justify-self: start; }
.reply-author { min-height: 44px; padding: 0 .15rem; background: transparent; border: 0; font-weight: 800; text-align: left; text-decoration: underline; text-decoration-style: dotted; overflow-wrap: anywhere; }
.role-badge { position: relative; flex: none; }
.role-mark { width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-weight: 900; }
.role-admin { color: var(--ink); }
.role-member { color: var(--ink); }
.role-tooltip { position: absolute; top: calc(100% + 2px); left: 0; z-index: 2; width: max-content; max-width: min(15rem, calc(100vw - 4rem)); padding: .35rem .5rem; background: var(--ink); color: var(--paper); font-size: .78rem; white-space: normal; border-radius: 4px; pointer-events: none; display: none; }
.role-mark:focus-visible + .role-tooltip, .role-mark[aria-expanded="true"] + .role-tooltip { display: block; }
@media (hover: hover) {
  .role-mark:hover + .role-tooltip { display: block; }
}
.message.referenced-post { padding-inline: .65rem; background: var(--tint); border-left: 3px solid var(--accent); border-radius: 4px; }
.message .moderation-action { justify-self: start; min-height: 44px; margin-top: .25rem; }
.moderation-action:disabled, .account-form button:disabled { cursor: wait; opacity: .75; }
.account-layout { display: grid; gap: .65rem; max-width: 34rem; margin-top: 1.2rem; }
.account-form { display: grid; align-items: start; gap: .55rem; padding: 1rem; }
.account-form label { margin-top: .4rem; font-weight: 700; }
.account-form input { width: 100%; min-height: 44px; border: 1px solid var(--soft-line); border-radius: 5px; padding: .55rem .7rem; background: var(--inset); }
.account-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .4rem; }
.account-form .button { min-height: 44px; }
.account-status { min-height: 1.5em; }
#record-import-block button { margin-top: .55rem; }
.thread, .hall, .game-player { margin-top: 1.1rem; }
.thread-body { padding: .8rem 1rem; }
.message { display: grid; gap: .25rem; padding: .65rem 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.message + .message, .thread-body > p + div { border-top: 1px solid var(--soft-line); margin-top: .5rem; }
.message header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .75rem; }
.message header:has(.role-badge) { align-items: center; gap: .1rem .4rem; }
.message time { color: var(--muted); font-size: .8rem; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.game-card { overflow: hidden; display: flex; flex-direction: column; }
.game-card img { width: 100%; aspect-ratio: 716 / 340; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: .8rem; }
.card-body p { font-size: .9rem; }
.card-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .65rem; }
.card-heading h2 { text-transform: uppercase; font-size: 1.05rem; }
.badge { display: inline-block; border: 1px solid var(--soft-line); border-radius: 4px; background: var(--tint); padding: .08rem .4rem; text-transform: uppercase; font-size: .75rem; font-weight: 800; }
.card-body .button { margin-top: auto; }
.game-player .titlebar { justify-content: space-between; }
.game-player .titlebar h2 { font-size: 1rem; }
.game-player iframe { display: block; width: 100%; height: clamp(540px, 65vw, 650px); border: 0; background: var(--inset); }
.player-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem 1rem; padding: .65rem .85rem; border-top: 1px solid var(--line); font-size: .85rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { text-align: left; color: var(--muted); padding: .4rem .85rem 0; font-size: .82rem; }
th, td { padding: .4rem .85rem; border-bottom: 1px solid var(--soft-line); }
thead { font-size: .82rem; text-transform: uppercase; }
.window-note { padding: .55rem .85rem; color: var(--muted); font-size: .875rem; }
.leaderboard { display: grid; gap: 1rem; }
.leaderboard h3 { margin-bottom: .4rem; }
.personal-score { padding: .8rem; border: 1px solid var(--soft-line); border-radius: 6px; background: var(--inset); }
.personal-score .button, #leaderboard-pages { margin-top: .55rem; }
#leaderboard-table { table-layout: auto; overflow-wrap: anywhere; }
#leaderboard-status:not(:empty) { margin-top: .5rem; }
#leaderboard-table td .button { min-height: 44px; padding-inline: .45rem; }
.broadcast-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 1.1rem; margin-top: 1.2rem; }
.broadcast-body { display: grid; gap: .8rem; padding: clamp(.55rem, 1.6vw, 1rem); }
.broadcast-body > p { color: var(--muted); font-size: .875rem; }
.device-case {
  --case-peak: color-mix(in srgb, var(--paper) 88%, white);
  --case-base: color-mix(in srgb, var(--inset) 80%, var(--line));
  --device-light: color-mix(in srgb, var(--accent) 72%, white);
  --device-glass: #242321;
  --device-depth: color-mix(in srgb, var(--line) 64%, black);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--ink) 3%, transparent) 3px 4px),
    linear-gradient(145deg, var(--case-peak), var(--inset) 45%, var(--case-base));
  box-shadow: inset 0 1px 2px var(--case-peak), inset 0 -2px 3px var(--shadow), 0 4px 6px var(--shadow);
}
.radio-details { display: grid; gap: .7rem; padding: clamp(.6rem, 1.6vw, .95rem); }
.radio-readout {
  min-width: 0;
  min-height: 4.65rem;
  padding: .65rem .75rem;
  border: 1px solid var(--device-depth);
  border-radius: 7px;
  background: linear-gradient(145deg, #33312e, var(--device-glass) 65%);
  color: #f1ede0;
  box-shadow: inset 0 2px 7px #0009, 0 1px var(--case-peak);
  overflow-wrap: anywhere;
}
.radio-station { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .55rem; line-height: 1.3; }
.radio-station strong { color: var(--device-light); }
#radio-country { font-size: .76rem; color: #d0c9be; }
#radio-track { font-size: .85rem; margin-top: .28rem; }
.device-lamp {
  flex: 0 0 auto;
  width: .55rem;
  height: .55rem;
  border: 1px solid #0008;
  border-radius: 50%;
  background: #6b625b;
  box-shadow: inset 0 1px 2px #0007;
}
.radio-shell[data-playing="true"] .device-lamp, .tv-case[data-on="true"] .device-lamp {
  background: var(--device-light);
  border-color: var(--accent);
  box-shadow: 0 0 .6rem var(--accent), inset 0 1px 2px #fffe;
}
.radio-tuning, .instrument-controls { min-width: 0; border: 1px solid var(--soft-line); border-radius: 7px; background: color-mix(in srgb, var(--inset) 65%, var(--case-peak)); box-shadow: inset 0 1px 3px var(--shadow), 0 1px var(--case-peak); }
.radio-tuning { padding: .45rem .65rem .5rem; }
.instrument-label { font-size: .79rem; font-weight: 800; }
.radio-presets { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .45rem; color: var(--muted); font-size: .7rem; line-height: 1.2; }
.radio-presets [data-selected] { color: var(--ink); font-weight: 900; text-decoration: underline; text-underline-offset: .2em; }
.instrument-range {
  --rail-height: .5rem;
  --thumb-width: 1.45rem;
  --thumb-height: 1.45rem;
  --thumb-radius: 50%;
  --rail: linear-gradient(90deg, var(--accent) var(--volume-fill, 55%), var(--case-base) 0);
  --thumb: radial-gradient(circle at 42% 37%, var(--case-peak), var(--case-base));
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.tuning-range {
  --rail-height: 1.1rem;
  --thumb-width: .68rem;
  --thumb-height: 1.7rem;
  --thumb-radius: 3px;
  --rail: repeating-linear-gradient(90deg, transparent 0 calc(8.33% - 1px), #f3ebd47a calc(8.33% - 1px) 8.33%) center 2px / 100% 60% no-repeat, linear-gradient(#34302a, #1d1c19);
  --thumb: linear-gradient(90deg, var(--device-light), var(--accent) 66%, var(--device-light));
}
.instrument-range::-webkit-slider-runnable-track { height: var(--rail-height); border-radius: 4px; background: var(--rail); box-shadow: inset 0 1px 3px #0008, 0 1px var(--case-peak); }
.instrument-range::-moz-range-track { height: var(--rail-height); border-radius: 4px; background: var(--rail); box-shadow: inset 0 1px 3px #0008, 0 1px var(--case-peak); }
.instrument-range::-webkit-slider-thumb {
  appearance: none;
  width: var(--thumb-width);
  height: var(--thumb-height);
  margin-top: calc((var(--rail-height) - var(--thumb-height)) / 2);
  border: 1px solid var(--device-depth);
  border-radius: var(--thumb-radius);
  background: var(--thumb);
  box-shadow: inset 0 1px 2px #fff7, 0 2px 3px #0007;
}
.instrument-range::-moz-range-thumb { width: var(--thumb-width); height: var(--thumb-height); border: 1px solid var(--device-depth); border-radius: var(--thumb-radius); background: var(--thumb); box-shadow: inset 0 1px 2px #fff7, 0 2px 3px #0007; }
.device-speaker {
  min-height: 2.2rem;
  border: 1px solid var(--device-depth);
  border-radius: 6px;
  background: radial-gradient(circle, #171512 0 1px, transparent 1.7px) 0 0 / 6px 6px, linear-gradient(155deg, #77716b, #494341);
  box-shadow: inset 0 1px 5px #0009, 0 1px var(--case-peak);
}
.radio-controls { display: grid; gap: .55rem; padding: .58rem; }
.radio-select { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem; min-width: 0; }
.radio-select select { width: 100%; min-width: 0; min-height: 44px; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-size: .82rem; }
.radio-actions { display: flex; flex-wrap: wrap; gap: .55rem .45rem; }
.device-key {
  --key-top: var(--accent);
  --key-base: color-mix(in srgb, var(--accent) 82%, var(--device-depth));
  min-width: 0;
  min-height: 44px;
  padding-inline: .65rem;
  background: linear-gradient(var(--key-top), var(--key-base));
  box-shadow: inset 0 1px 1px #fff7, 0 3px var(--device-depth), 0 5px 5px var(--shadow);
  font-size: .78rem;
  transition: transform .12s, box-shadow .12s;
}
.device-key.secondary { --key-top: var(--case-peak); --key-base: var(--inset); background: linear-gradient(var(--key-top), var(--key-base)); }
.device-key:active { transform: translateY(2px); box-shadow: inset 0 1px 3px #0004, 0 1px var(--device-depth); }
.device-key:disabled { cursor: default; opacity: .65; }
.radio-shell[data-playing="true"] #radio-play { transform: translateY(2px); box-shadow: inset 0 1px 3px #0007, 0 1px var(--device-depth); opacity: 1; }
.radio-volume { display: grid; grid-template-columns: auto minmax(0, 1fr) 3em; align-items: center; gap: .5rem; }
#radio-volume-value { grid-column: 3; grid-row: 1; text-align: right; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#radio-volume { grid-column: 2; grid-row: 1; }
.device-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .8rem; font-size: .76rem; }
#radio-status:empty { position: absolute; }
#radio-dock { position: fixed; z-index: 8; right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); }
#radio-dock:empty { display: none; }
#radio-dock .radio-shell {
  position: relative; inline-size: min(23rem, calc(100vw - 1.5rem)); max-block-size: min(28rem, calc(100dvh - 1.5rem));
  overflow: hidden; box-shadow: 0 8px 28px var(--shadow);
  transition: inline-size .32s ease, max-block-size .32s ease, border-radius .32s ease, background-color .28s ease;
}
#radio-dock .radio-details { max-block-size: calc(100dvh - 1.65rem); overflow-y: auto; transition: opacity .24s ease, transform .32s ease; }
#radio-dock .radio-readout { padding-right: 3rem; }
#radio-dock .radio-tuning, #radio-dock .device-speaker { display: none; }
.radio-toggle { position: absolute; z-index: 1; top: .5rem; right: .5rem; width: 44px; height: 44px; min-width: 44px; padding: 0; display: grid; place-items: center; color: var(--ink); font-size: 1.22rem; font-weight: 800; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.radio-wave { display: none; align-items: center; justify-content: center; gap: 3px; height: 20px; }
.radio-wave i { width: 3px; height: 75%; border-radius: 4px; background: currentColor; transform: scaleY(.45); }
.radio-wave i:nth-child(2n) { height: 100%; animation-delay: -.55s; }
.radio-wave i:nth-child(3) { height: 120%; animation-delay: -1.1s; }
#radio-dock .radio-shell[data-collapsed="true"] { inline-size: 3.5rem; max-block-size: 3.5rem; border-radius: 50%; background: var(--accent); }
.radio-shell[data-collapsed="true"] .radio-details { opacity: 0; transform: translateY(12px); }
.radio-shell[data-collapsed="true"] .radio-toggle { inset: 0; width: 3.4rem; height: 3.4rem; border: 0; border-radius: 50%; background: transparent; color: var(--on-accent); }
.radio-shell[data-collapsed="true"] .radio-toggle:focus-visible { outline: 3px solid var(--on-accent); outline-offset: -5px; }
.radio-shell[data-collapsed="true"] .radio-collapse { display: none; }
.radio-shell[data-collapsed="true"] .radio-wave { display: flex; }
.radio-shell[data-playing="true"] .radio-wave i { animation-name: radio-wave; animation-duration: 2.8s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
@keyframes radio-wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(.95); box-shadow: 0 0 7px var(--paper); } }
.has-radio-dock footer { padding-bottom: 4.5rem; }
.tv-case { display: grid; gap: .7rem; padding: clamp(.6rem, 1.6vw, .95rem); }
.tv-frame {
  min-width: 0;
  padding: clamp(.35rem, 1.1vw, .75rem);
  border: 1px solid var(--device-depth);
  border-radius: 14px;
  background: linear-gradient(155deg, #53504d, #242220 66%, #37332f);
  box-shadow: inset 0 1px 2px #fff4, 0 1px 1px var(--case-peak), 0 2px 4px var(--shadow);
}
.tv-glass { overflow: hidden; border: 1px solid #191715; border-radius: 10px; background: #1e1b19; box-shadow: inset 0 0 15px #0008; }
.tv-screen {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  color: #e9e6de;
  background: repeating-linear-gradient(0deg, #0002 0 1px, transparent 1px 4px), radial-gradient(ellipse at 29% 15%, #494440, #262324 54%, #1d1b1b 86%);
  text-align: center;
  overflow-wrap: anywhere;
  font-size: .87rem;
  font-weight: 800;
}
#tv-player iframe { display: block; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; border: 0; }
.tv-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(1.8rem, .32fr); align-items: center; gap: .55rem; padding: .55rem; }
.tv-power { display: flex; align-items: center; gap: .4rem; }
#tv-stop { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.tv-power-symbol { position: relative; width: .95rem; height: .95rem; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; }
.tv-power-symbol::before { content: ""; position: absolute; top: -.17rem; left: calc(50% - 1px); width: 2px; height: .5rem; border-radius: 2px; background: currentColor; }
#tv-next { overflow-wrap: anywhere; }
.tv-speaker { height: 2.15rem; }
.tv-footer:not(:has(> :not([hidden]))) { display: none; }
.tv-channel-name { flex-basis: 100%; overflow-wrap: anywhere; font-weight: 800; }
.releases { display: grid; gap: 1rem; margin-top: 1.2rem; }
.releases .titlebar { flex-wrap: wrap; justify-content: space-between; }
.releases time { color: var(--muted); font-size: .82rem; font-weight: 400; text-transform: none; }
.releases ul { margin: .75rem 0; padding: 0 1rem 0 2rem; }
.releases li + li { margin-top: .35rem; }
.journey-jump { width: 100%; background: var(--tint); color: var(--ink); }
.journey { display: grid; gap: 2rem; margin: 1.65rem 0 2rem; }
.journey article { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); align-items: center; gap: 1.6rem; }
.journey article:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr); text-align: right; }
.journey article:nth-child(even) img { grid-column: 2; grid-row: 1; }
.journey article img { width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px var(--shadow); }
.journey h2 { text-transform: uppercase; }
.journey p { margin: .35rem 0 .7rem; color: var(--muted); }
.arrival { text-align: center; padding: 1.5rem; }
.arrival > span { display: block; color: var(--accent); font-size: 1.6rem; }
.arrival p { margin: .5rem 0 1rem; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; border-top: 1px solid var(--line); background: var(--paper); padding: .75rem clamp(1rem, 3vw, 2rem); color: var(--muted); font-size: .82rem; }
@media (max-width: 800px) {
  .header-row { flex-wrap: wrap; gap: .5rem; justify-content: space-between; min-height: 58px; }
  .header .brand { margin-inline-end: auto; }
  .header .menu-button { display: inline-flex; order: 1; }
  .header .profile-link { order: 2; max-width: clamp(6rem, 35vw, 13rem); }
  .header-controls { display: none; flex-basis: 100%; order: 3; }
  .menu-button[aria-expanded="true"] + .header-controls { display: grid; justify-items: stretch; }
  nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); }
  .switches { justify-content: flex-end; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(235px, .9fr); gap: 1rem; }
  .favorites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .broadcast-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); padding-bottom: 2.5rem; }
  .ticker span { display: none; }
  .hero, .link-columns, .game-grid, .broadcast-grid, .journey article, .journey article:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.4rem; }
  .home-section, .guest-call { margin-top: 1.75rem; }
  .guest-call { flex-wrap: wrap; }
  .guest-call > div { flex: 1 1 200px; }
  .guest-call .button { width: 100%; }
  .journey article:nth-child(even) { text-align: left; }
  .journey article:nth-child(even) img { grid-column: auto; grid-row: auto; }
  .journey article { gap: .75rem; }
  .game-player { margin-inline: -16px; border-inline: 0; border-radius: 0; }
  .game-player iframe { height: max(500px, 75svh); }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .form-footer .button { width: 100%; }
  #leaderboard-table th, #leaderboard-table td { padding: .35rem .25rem; font-size: .82rem; }
  #leaderboard-table .button { font-size: .72rem; }
}
@media (max-width: 390px) {
  .favorites, .post-form { grid-template-columns: minmax(0, 1fr); }
  .header .menu-button { padding-inline: .45rem; }
  .header .profile-link { max-width: 5.5rem; padding-inline: .45rem; }
  .radio-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) minmax(0, 1.2fr); }
  .radio-actions .device-key { padding-inline: .25rem; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .radio-shell[data-playing="true"] .radio-wave i { animation: none; }
}
