:root {
  --bg: #141210;
  --bg2: #1a1816;
  --card: #1e1c19;
  --card2: #252320;
  --border: rgba(255,255,255,.06);
  --border2: rgba(255,255,255,.03);
  --text: #ede8e0;
  --muted: #9a9488;
  --dim: #6b665e;
  --accent: #c45c3c;
  --accent2: #d4a04a;
  --green: #5ba88c;
  --danger: #c44040;
  --r: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,.3);
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100dvh;
  color: var(--text);
  font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  padding-bottom: 100px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.scanlines { display: none !important; }

/* ===== LAYOUT ===== */
.top-shell, .site-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.top-shell {
  display: flex; align-items: center; height: 64px; gap: 16px;
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,18,16,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--text); }
.brand-chip {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 700 11px/1 var(--head); border-radius: 10px;
}
.brand strong { font-family: var(--head); font-size: 16px; font-weight: 700; }
.brand small { display: block; font-size: 11px; color: var(--dim); }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav a { font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 12px; border-radius: 8px; transition: .15s; }
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.main-nav a.active { color: var(--bg); background: var(--text); font-weight: 600; }

/* User mini */
.user-mini { position: relative; }
.user-mini-button { display: flex; align-items: center; gap: 8px; background: none; border: none; color: var(--text); padding: 4px 8px; border-radius: 8px; }
.user-mini-button:hover { background: rgba(255,255,255,.04); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 12px/1 var(--head); }
.user-avatar.is-online { box-shadow: 0 0 0 2px var(--green); }
.user-mini-name { font-size: 13px; font-weight: 500; }
.user-mini-panel { display: none; position: absolute; top: 100%; right: 0; margin-top: 6px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; min-width: 220px; box-shadow: var(--shadow); flex-direction: column; gap: 6px; z-index: 50; }
.user-mini-panel strong { font-size: 14px; }
.user-mini-panel em { font-size: 12px; color: var(--dim); font-style: normal; }
.user-mini-panel span { font-size: 12px; color: var(--dim); }
.user-mini-panel a, .user-mini-panel button { font-size: 13px; color: var(--accent); background: none; border: none; text-align: left; padding: 4px 0; }
.user-mini-button[aria-expanded="true"] + .user-mini-panel { display: flex; }

/* ===== COMMON ===== */
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.section-title { margin-bottom: 28px; }
.section-title h2 { font-family: var(--head); font-size: clamp(24px,4vw,36px); margin-bottom: 8px; }
.section-title p { color: var(--muted); max-width: 520px; font-size: 15px; }
.primary-action { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: none; font: 600 14px/1 var(--head); padding: 12px 22px; border-radius: 10px; transition: .15s; text-decoration: none; }
.primary-action:hover { opacity: .9; transform: translateY(-1px); }
.primary-action.compact { font-size: 13px; padding: 9px 16px; }
.ghost-action { display: inline-flex; align-items: center; gap: 8px; background: none; color: var(--text); border: 1px solid var(--border); font: 500 14px/1 var(--body); padding: 11px 20px; border-radius: 10px; transition: .15s; text-decoration: none; }
.ghost-action:hover { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.03); }
.ghost-action.compact { font-size: 13px; padding: 8px 14px; }
.muted { color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ===== HERO (home + air) ===== */
.portal-grid { margin-bottom: 48px; }
.portal-grid-home, .portal-grid-air { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; align-items: start; }
.command-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 32px; }
.panel-cap { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 6px 14px; border-radius: 20px; background: rgba(91,168,140,.1); color: var(--green); border: 1px solid rgba(91,168,140,.2); margin-bottom: 20px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.live-dot.is-online { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.retro-badges { display: flex; gap: 6px; margin-bottom: 16px; }
.cart-badge, .pad-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--border); }
.pad-badge { padding: 4px 8px; }
.hero-copy { margin-bottom: 28px; }
.hero-copy h1 { font-family: var(--head); font-size: clamp(28px,5vw,44px); font-weight: 800; margin-bottom: 10px; line-height: 1.1; }
.hero-copy p:not(.section-label) { color: var(--muted); font-size: 16px; max-width: 500px; }
.now-console { }
.cover-terminal, .reel-deck { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.reel-head, .reel-stage, .olymp-knob, .olymp-cover, .cassette-panel, .vu-window, .deck-knobs { display: none; }
.deck-meters { margin-bottom: 12px; }
.deck-meters canvas { width: 100%; height: 56px; border-radius: 8px; background: rgba(0,0,0,.3); }
.signal-card { display: flex; flex-direction: column; gap: 2px; }
.signal-card span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.signal-card strong { font-family: var(--head); font-size: 20px; font-weight: 700; }
.signal-card em { font-size: 14px; color: var(--muted); font-style: normal; }
.console-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== SIDEBAR ===== */
.right-stack { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.side-head h2 { font-family: var(--head); font-size: 17px; }
.side-head span { font-size: 13px; color: var(--muted); }
.side-head button { font-size: 13px; color: var(--accent); background: none; border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; }
.chat-widget { display: flex; flex-direction: column; }
.chat-log { height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; margin-bottom: 10px; }
.chat-log::-webkit-scrollbar { width: 3px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }
.chat-empty { color: var(--dim); font-size: 13px; padding: 20px 0; }
.chat-msg-author { font-size: 12px; font-weight: 600; color: var(--accent2); }
.chat-msg-time { font-size: 11px; color: var(--dim); margin-left: 6px; }
.chat-msg-text { font-size: 14px; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.chat-form input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; padding: 8px 12px; outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form button { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 12px; }
.chat-form button:disabled { opacity: .4; }
.chat-note { font-size: 11px; color: var(--dim); margin-top: 6px; }
.chat-action-bar { display: flex; gap: 4px; margin-top: 4px; }
.chat-action-bar button { font-size: 11px; background: none; border: none; color: var(--dim); padding: 2px 4px; }
.chat-action-bar button:hover { color: var(--accent); }
.terminal-log { display: flex; flex-direction: column; }
.terminal-log li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--border2); }
.terminal-log li:last-child { border: none; }
.terminal-log li span { font-size: 12px; color: var(--dim); }
.terminal-log li strong { font-size: 14px; }
.terminal-log li em { font-size: 12px; color: var(--dim); font-style: normal; }
.terminal-cursor { display: none; }
.request-widget h2 { font-family: var(--head); font-size: 16px; margin-bottom: 6px; }
.request-widget p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* ===== SCHEDULE ===== */
.schedule-board { margin-bottom: 48px; }
.schedule-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; }
.schedule-day { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; min-height: 180px; }
.schedule-day.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.schedule-day header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.schedule-day header span { width: 24px; height: 24px; border-radius: 6px; background: rgba(196,92,60,.12); color: var(--accent); display: grid; place-items: center; font: 700 11px/1 var(--head); text-transform: uppercase; }
.schedule-day header strong { font-size: 13px; font-weight: 600; }
.schedule-slot { margin-bottom: 10px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.02); }
.schedule-slot span { font-size: 11px; color: var(--accent); font-weight: 600; display: block; }
.schedule-slot strong { font-size: 13px; font-weight: 600; display: block; margin-top: 2px; }
.schedule-slot em { font-size: 12px; color: var(--muted); font-style: normal; display: block; }
.schedule-slot b { font-size: 11px; color: var(--green); display: block; margin-top: 4px; }
.schedule-slot.requests-open { border-left: 3px solid var(--green); }
.schedule-slot.is-empty span { color: var(--dim); }
.schedule-slot.is-empty strong { color: var(--dim); }

/* ===== REQUESTS ===== */
.request-board { margin-bottom: 48px; }
.request-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.request-status { display: flex; flex-direction: column; gap: 6px; }
.request-status span { display: inline-block; width: fit-content; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.request-panel.is-open .request-status span { background: rgba(91,168,140,.1); color: var(--green); }
.request-panel.is-closed .request-status span { background: rgba(196,92,60,.1); color: var(--accent); }
.request-status strong { font-family: var(--head); font-size: 18px; }
.request-status em { font-size: 14px; color: var(--muted); font-style: normal; }
.request-next-window { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.request-next-window span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.request-next-window strong { font-family: var(--head); font-size: 15px; display: block; margin-top: 4px; }
.request-next-window em { font-size: 13px; color: var(--muted); font-style: normal; }
.request-next-window p { font-size: 14px; margin-top: 4px; }
.request-next-window small { font-size: 12px; color: var(--dim); }
.request-form { display: flex; flex-direction: column; gap: 14px; }
.request-form label { display: flex; flex-direction: column; gap: 4px; }
.request-form label span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.request-form input, .request-form textarea { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; padding: 10px 12px; outline: none; }
.request-form input:focus, .request-form textarea:focus { border-color: var(--accent); }
.request-form textarea { resize: vertical; min-height: 68px; }

/* ===== NEWS ===== */
.magazine-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 48px; }
.news-lead { grid-column: 1; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.news-lead h2 { font-family: var(--head); font-size: clamp(22px,4vw,32px); margin-bottom: 8px; }
.news-lead p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.content-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.content-filter a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); }
.content-filter a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.content-filter a em { font-size: 11px; opacity: .7; font-style: normal; }
.news-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; transition: .2s; }
.news-card:hover { border-color: rgba(255,255,255,.12); transform: translateY(-2px); }
.news-card.is-pinned { border-color: rgba(212,160,74,.2); }
.news-card > span { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.news-card h3 { font-family: var(--head); font-size: 17px; margin-bottom: 6px; }
.news-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.news-card .ghost-action { margin-top: auto; align-self: flex-start; }

/* Post detail */
.post-detail { max-width: 720px; margin: 0 auto 48px; }
.post-detail h1 { font-family: var(--head); font-size: clamp(26px,5vw,38px); margin: 12px 0; }
.post-excerpt { font-size: 17px; color: var(--muted); margin-bottom: 24px; }
.post-body p { margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.post-source { font-size: 13px; color: var(--dim); margin-top: 24px; }
.post-source a { color: var(--accent); }
.related-posts { margin-top: 40px; }
.related-post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.related-post-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: .2s; }
.related-post-card:hover { border-color: rgba(255,255,255,.12); }
.related-post-card span { font-size: 11px; color: var(--accent); text-transform: uppercase; }
.related-post-card strong { font-size: 14px; }
.related-post-card em { font-size: 13px; color: var(--muted); font-style: normal; }

/* ===== COMMUNITY ===== */
.community-grid { margin-bottom: 48px; }
.community-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.community-filter a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); }
.community-filter a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.community-filter a b { font-size: 11px; opacity: .7; }
.community-category-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.community-category-panel span { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.community-category-panel h3 { font-family: var(--head); font-size: 18px; margin: 4px 0; }
.community-category-panel p { font-size: 14px; color: var(--muted); }
.community-category-panel small { font-size: 12px; color: var(--dim); }
.community-notice { background: var(--card); border: 1px solid rgba(91,168,140,.2); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--green); margin-bottom: 16px; }
.community-notice.is-bad { border-color: rgba(196,64,64,.3); color: var(--danger); }
.community-empty { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; text-align: center; }
.community-empty span { font-size: 11px; color: var(--dim); text-transform: uppercase; }
.community-empty h3 { font-family: var(--head); font-size: 18px; margin: 8px 0; }
.community-empty p { color: var(--muted); font-size: 14px; }
.topic-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 10px; transition: .2s; }
.topic-card:hover { border-color: rgba(255,255,255,.1); }
.topic-card > span, .topic-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--muted); margin-bottom: 8px; }
.topic-tag { text-decoration: none; }
.topic-card h3 { font-family: var(--head); font-size: 16px; margin-bottom: 5px; }
.topic-card h3 a { color: var(--text); }
.topic-card h3 a:hover { color: var(--accent); }
.topic-card p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.topic-card small { font-size: 12px; color: var(--dim); }
.topic-create-card, .topic-reply-card { border-style: dashed; }
.community-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.community-form label { display: flex; flex-direction: column; gap: 4px; }
.community-form label span { font-size: 12px; font-weight: 600; color: var(--muted); }
.community-form input, .community-form textarea, .community-form select { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; padding: 9px 12px; outline: none; }
.community-form input:focus, .community-form textarea:focus { border-color: var(--accent); }
.community-form textarea { resize: vertical; min-height: 100px; }
.community-form select { appearance: auto; }
.community-thread { margin-bottom: 48px; }
.thread-head { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; margin-bottom: 16px; }
.thread-head h1 { font-family: var(--head); font-size: clamp(22px,4vw,30px); margin: 8px 0; }
.thread-head p { color: var(--muted); font-size: 15px; }
.thread-head small { font-size: 12px; color: var(--dim); }
.thread-posts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.thread-post { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.thread-post header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.thread-post header strong { font-size: 14px; color: var(--accent2); }
.thread-post header span { font-size: 12px; color: var(--dim); }
.thread-post-body p { font-size: 15px; line-height: 1.6; margin-bottom: 8px; }

/* ===== CONTACTS ===== */
.contacts-board { margin-bottom: 48px; }
.contacts-hero { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; margin-bottom: 20px; }
.contacts-hero h1 { font-family: var(--head); font-size: clamp(24px,4vw,34px); margin: 8px 0; }
.contacts-hero p { color: var(--muted); font-size: 15px; }
.contact-channel-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.contact-card.is-pending { opacity: .6; }
.contact-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(196,92,60,.1); color: var(--accent); display: grid; place-items: center; flex: none; font-size: 16px; }
.contact-card div { flex: 1; }
.contact-card small { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.contact-card h2 { font-family: var(--head); font-size: 16px; margin: 2px 0; }
.contact-card p { font-size: 13px; color: var(--muted); }
.contact-card em { font-size: 12px; color: var(--dim); font-style: normal; }
.contact-card b { font-size: 11px; color: var(--dim); text-transform: uppercase; }
.contact-rules { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.contact-rules h2 { font-family: var(--head); font-size: 18px; margin: 8px 0 12px; }
.contact-rules ul { padding-left: 20px; list-style: disc; }
.contact-rules li { font-size: 14px; color: var(--muted); margin-bottom: 6px; }

/* ===== OST ===== */
.ost-board { margin-bottom: 48px; }
.ost-hero { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; margin-bottom: 20px; }
.ost-hero h2 { font-family: var(--head); font-size: clamp(24px,4vw,34px); margin: 8px 0; }
.ost-hero p { color: var(--muted); font-size: 15px; max-width: 600px; }
.ost-stats { display: flex; gap: 20px; margin-top: 16px; }
.ost-stats span { font-size: 13px; color: var(--muted); }
.ost-stats strong { color: var(--text); }
.ost-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ost-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; transition: .2s; }
.ost-card:hover { border-color: rgba(255,255,255,.1); transform: translateY(-2px); }
.ost-card.is-empty { text-align: center; padding: 40px 20px; }
.ost-card.is-empty span { font-size: 11px; color: var(--dim); }
.ost-card.is-empty h3 { font-family: var(--head); font-size: 18px; margin: 8px 0; }
.ost-card.is-empty p { color: var(--muted); font-size: 14px; }
.ost-card-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ost-card-head span { font-size: 11px; color: var(--dim); text-transform: uppercase; }
.ost-card-head em { font-size: 12px; color: var(--muted); font-style: normal; }
.ost-card h3 { font-family: var(--head); font-size: 16px; margin-bottom: 6px; }
.ost-game-link { color: var(--text); }
.ost-game-link:hover { color: var(--accent); }
.ost-description { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ost-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ost-flags span { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.04); color: var(--muted); }
.ost-flags .is-ok { background: rgba(91,168,140,.1); color: var(--green); }
.ost-flags .is-warn { background: rgba(212,160,74,.1); color: var(--accent2); }
.ost-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.ost-tags span { font-size: 10px; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,.04); color: var(--dim); }
.ost-track-list, .game-track-list { display: flex; flex-direction: column; }
.ost-track-list li, .game-track-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border2); }
.ost-track-list li:last-child { border: none; }
.ost-track-list li span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ost-track-list li strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ost-track-list li em { font-size: 12px; color: var(--muted); font-style: normal; }
.ost-track-list li button { width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; font-size: 10px; }
.ost-track-list li small { font-size: 11px; color: var(--dim); }
.ost-seek { width: 80px; height: 4px; accent-color: var(--accent); }
.ost-last { font-size: 12px; color: var(--dim); margin-top: 8px; }

/* Game detail */
.game-profile { margin-bottom: 48px; }
.game-hero-card { display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; margin-bottom: 20px; }
.game-cover img { border-radius: 12px; }
.game-cover-fallback { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--bg2); display: grid; place-items: center; font: 700 32px var(--head); color: var(--dim); }
.game-info h1 { font-family: var(--head); font-size: clamp(22px,4vw,32px); margin: 8px 0; }
.game-subtitle { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.game-info p { font-size: 14px; color: var(--muted); }
.game-meta-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.game-meta-grid span { font-size: 13px; color: var(--muted); }
.game-meta-grid b { display: block; font-size: 11px; color: var(--dim); font-weight: 600; text-transform: uppercase; }
.game-signal-strip { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.game-signal-strip span { font-size: 13px; color: var(--muted); }
.game-signal-strip b { color: var(--text); }
.game-tag-strip { display: flex; gap: 4px; flex-wrap: wrap; }
.game-tag-strip span { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.04); color: var(--dim); }
.game-content-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.game-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.game-panel h2 { font-family: var(--head); font-size: 17px; margin-bottom: 14px; }
.game-air-log h3 { font-size: 14px; font-weight: 600; margin: 16px 0 8px; }
.game-air-log ul { list-style: none; }
.game-air-log li { display: flex; gap: 10px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--border2); }
.game-air-log time { color: var(--dim); flex: none; width: 100px; }

/* ===== AUTH ===== */
.auth-board { display: flex; justify-content: center; padding: 40px 0; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; max-width: 420px; width: 100%; }
.auth-card h1, .auth-card h2 { font-family: var(--head); font-size: 22px; margin: 4px 0 8px; color: var(--text); }
.auth-card > p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 4px; }
.auth-form label span { font-size: 12px; font-weight: 600; color: var(--muted); }
.auth-form input { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; padding: 10px 12px; outline: none; }
.auth-form input:focus { border-color: var(--accent); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-switch { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.auth-switch a { color: var(--accent); }
.auth-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.profile-card { max-width: 560px; }
.profile-view-card { margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-view-card div { font-size: 13px; }
.profile-view-card span { font-size: 11px; color: var(--dim); display: block; }
.profile-view-card strong { font-size: 14px; }
.profile-view-wide { grid-column: 1 / -1; }
.profile-view-wide p { font-size: 14px; color: var(--muted); }
.profile-edit-form { margin-top: 16px; }
.is-hidden { display: none !important; }
.profile-flags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== PLAYER DOCK ===== */
.player-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(20,18,16,.94); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  display: flex; align-items: center; gap: 14px;
  max-width: 100%; padding: 0 24px; height: 68px;
}
.player-dock > .dock-wave { display: none; }
.dock-wave { display: none; }
.audio-scope canvas { display: block; }
.dock-play { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; font-size: 16px; box-shadow: 0 2px 12px rgba(196,92,60,.3); transition: .15s; }
.dock-play:hover { transform: scale(1.06); }
.dock-play.is-playing i:before { content: "\f04c"; }
.dock-meta { flex: 1; min-width: 0; }
.dock-meta span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.dock-meta strong { display: block; font-family: var(--head); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-meta em { font-size: 13px; color: var(--muted); font-style: normal; }
.volume { display: flex; align-items: center; gap: 8px; flex: none; color: var(--muted); }
.volume input[type="range"] { width: 90px; height: 4px; accent-color: var(--accent); }

/* ===== MODALS ===== */
dialog {
  border: none; background: none; padding: 0;
  max-width: 100vw; max-height: 100vh;
  margin: auto;
}
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.auth-modal {
  background: var(--card); border-radius: var(--r); padding: 28px;
  max-width: 420px; width: calc(100vw - 40px);
  margin: auto;
  position: relative;
}
.auth-modal-card { max-width: 100%; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; z-index: 1;
}
.archive-modal {
  max-width: 600px; width: calc(100vw - 40px);
  background: var(--card); border-radius: var(--r); padding: 28px;
  margin: auto; position: relative;
}
.archive-modal h2 { font-family: var(--head); font-size: 22px; margin: 8px 0 16px; }
.archive-modal-list { max-height: 60vh; overflow-y: auto; }

/* Gate */
.gate-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.gate-shell { max-width: 480px; width: 100%; }
.gate-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.gate-card h1 { font-family: var(--head); font-size: 22px; margin: 8px 0; }
.gate-card p { font-size: 14px; color: var(--muted); }
.gate-message { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin: 10px 0; }
.gate-message.ok { background: rgba(91,168,140,.1); color: var(--green); }
.gate-message.bad { background: rgba(196,64,64,.1); color: var(--danger); }
.gate-message.warn { background: rgba(212,160,74,.1); color: var(--accent2); }
.gate-message.info { background: rgba(255,255,255,.04); color: var(--muted); }
.gate-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.gate-form label { display: flex; flex-direction: column; gap: 4px; }
.gate-form label span { font-size: 12px; color: var(--muted); }
.gate-form input { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 10px 12px; outline: none; font-size: 14px; }
.gate-form button { padding: 10px 18px; border-radius: 8px; border: none; font-weight: 600; background: var(--accent); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .portal-grid-home, .portal-grid-air { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: repeat(4,1fr); }
  .magazine-grid { grid-template-columns: 1fr 1fr; }
  .ost-grid { grid-template-columns: 1fr 1fr; }
  .game-hero-card { grid-template-columns: 140px 1fr; }
  .game-content-grid { grid-template-columns: 1fr; }
  .contact-channel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-shell { flex-wrap: wrap; height: auto; padding: 12px 24px; }
  .main-nav { width: 100%; }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .magazine-grid { grid-template-columns: 1fr; }
  .request-panel { grid-template-columns: 1fr; }
  .ost-grid { grid-template-columns: 1fr; }
  .related-post-grid { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .game-hero-card { grid-template-columns: 1fr; }
  .profile-view-card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .volume { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
