@import url('./design/batch-20260917.css?v=1');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Barlow+Condensed:wght@600;700&family=Bricolage+Grotesque:wght@600;700&family=Chakra+Petch:wght@600;700&family=DM+Sans:wght@400;500;600;700&family=Fraunces:wght@600;700&family=IBM+Plex+Sans:wght@400;500;600&family=Manrope:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --font-display: 'Fredoka', 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SFMono-Regular', 'Roboto Mono', 'Consolas', monospace;
  --bg: #10110f;
  --bg-2: #1f2d26;
  --card: #f7f1df;
  --text: #171713;
  --muted: #677166;
  --accent: #d7ff4f;
  --accent-2: #ff6a3d;
  --on-accent: #07120f;
  --on-accent-2: #07120f;
  --surface-solid: #fffaf0;
  --surface-text: #10110f;
  --surface-muted: #4f5d54;
  --surface-accent: #155f4a;
  --line: rgba(18, 32, 25, .12);
  --danger: #f25f5c;
  --shadow: 0 22px 55px rgba(0, 0, 0, .26);
  --soft-shadow: 0 10px 24px rgba(0, 0, 0, .14);
  --profile-background-image: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100dvh; color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.58; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; background: radial-gradient(circle at 14% -8%, rgba(215,255,79,.32), transparent 22rem), radial-gradient(circle at 86% 4%, rgba(255,106,61,.28), transparent 24rem), linear-gradient(180deg, #070806 0%, #1a2a22 38%, #dce8bd 38.1%, #f6eedb 100%); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; opacity: .2; background-image: linear-gradient(135deg, rgba(255,255,255,.14) 0 1px, transparent 1px 18px), linear-gradient(90deg, rgba(215,255,79,.13) 1px, transparent 1px); background-size: 36px 36px, 96px 96px; mask-image: linear-gradient(#000, transparent 58%); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.sitebar { position: sticky; top: 10px; z-index: 20; display: grid; grid-template-columns: auto auto minmax(220px, 360px) auto; gap: 18px; align-items: center; width: min(1280px, calc(100% - 32px)); min-height: 68px; margin: 0 auto; padding: 10px 12px; border: 1px solid rgba(247,241,223,.2); border-radius: 24px; background: rgba(10,11,9,.9); color: #fffaf0; backdrop-filter: blur(18px); box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; color: var(--accent); letter-spacing: -.015em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid rgba(247,241,223,.2); border-radius: 13px; color: #10110f; background: linear-gradient(135deg, var(--accent), #f7f1df); box-shadow: 0 8px 18px rgba(215,255,79,.18); }
.primary-nav { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: rgba(255,250,240,.78); }
.primary-nav a { display: inline-flex; align-items: center; gap: 5px; opacity: .82; }
.primary-nav a::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 12px rgba(22,184,109,.8); }
.primary-nav a.active, .primary-nav a:hover { opacity: 1; color: var(--accent); }
.search-box { display: grid; grid-template-columns: 1fr 38px; align-items: center; height: 40px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,250,240,.96); box-shadow: none; overflow: hidden; }
.search-box input { width: 100%; height: 100%; border: 0; padding: 0 14px; outline: 0; color: var(--surface-text); }
.search-box button { display: grid; place-items: center; height: 100%; border: 0; color: var(--on-accent-2); background: var(--accent-2); font-size: 18px; }
.account-chip { justify-self: end; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.account-chip span { color: rgba(255,250,240,.74); }
.account-chip a, .account-chip button, .pill { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; min-height: 44px; padding: 10px 16px; color: var(--surface-text); background: var(--card); box-shadow: var(--soft-shadow); font-family: var(--font-display); font-weight: 700; letter-spacing: .005em; }
.account-chip a:first-of-type, .pill.primary { color: var(--on-accent); background: var(--accent); font-weight: 900; }
.account-chip button, .pill.dark { color: #fffaf0; background: #122019; }
.portal-shell, .page-stack, .auth-page, .dashboard-shell, .cashier-page, .checkout-page, .policy-page, .contact-page, .notice, .site-footer { width: min(1280px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.portal-hero { display: grid; grid-template-columns: 1fr minmax(168px, 240px); gap: 28px; align-items: center; padding: 48px 0 26px; color: #fffaf0; }
.portal-hero > div { padding: 28px 4px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--font-display); font-size: clamp(36px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.portal-hero h1 { max-width: 12ch; }
p { color: var(--muted); line-height: 1.65; }
.portal-hero p { color: rgba(255,250,240,.72); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-game { position: relative; display: grid; gap: 9px; padding: 12px; border: 2px solid rgba(255,250,240,.22); border-radius: 28px; color: var(--surface-text); background: var(--card); box-shadow: 0 26px 60px rgba(0,0,0,.36); transform: rotate(2deg); }
.hero-game img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.hero-game span { position: absolute; left: 20px; top: 20px; border-radius: 999px; padding: 5px 8px; color: var(--on-accent-2); background: var(--accent-2); font-size: 10px; font-weight: 900; }
.hero-game strong { padding: 0 4px 4px; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.home-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 20px; }
.home-strip div { padding: 18px; border: 1px solid rgba(18,32,25,.1); border-radius: 18px; background: rgba(255,250,240,.9); box-shadow: var(--soft-shadow); }
.home-strip strong { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
.home-strip span { color: var(--muted); font-size: 12px; }
.icon-board, .game-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 13px; align-items: start; }
.icon-board { padding: 8px 0 22px; }
.icon-card { position: relative; min-width: 0; border: 0; background: transparent; }
.thumb-link { position: relative; display: block; }
.thumb-link img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--card); border-radius: 23px; background: var(--card); box-shadow: 0 12px 0 rgba(18,32,25,.08), var(--soft-shadow); transition: transform .16s ease, box-shadow .16s ease; }
.icon-card:hover .thumb-link img { transform: translateY(-4px) scale(1.025); box-shadow: 0 18px 30px rgba(74, 84, 116, .18); }
.icon-tags { position: absolute; left: 6px; top: 6px; display: flex; flex-wrap: wrap; gap: 3px; pointer-events: none; }
.icon-tags span { border-radius: 999px; padding: 3px 5px; color: var(--on-accent-2); background: var(--accent-2); font-size: 8px; font-weight: 900; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.icon-tags span:nth-child(2) { color: var(--on-accent); background: var(--accent); }
.icon-tags span:nth-child(3) { background: #fffaf0; }
.icon-meta { margin-top: 7px; min-height: 34px; }
.icon-meta strong { display: block; overflow: hidden; color: #252a3b; font-family: var(--font-display); font-size: 13px; font-weight: 600; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
.icon-meta small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: capitalize; }
.card-actions { display: grid; grid-template-columns: 1fr; gap: 5px; margin-top: 6px; opacity: 0; transform: translateY(5px); transition: opacity .16s ease, transform .16s ease; }
.icon-card:hover .card-actions, .icon-card:focus-within .card-actions { opacity: 1; transform: translateY(0); }
.card-actions a, .card-actions button { border: 0; border-radius: 999px; min-height: 32px; color: #fffaf0; background: rgba(18,32,25,.9); font-family: var(--font-display); font-size: 12px; font-weight: 700; text-align: center; }
.card-actions a { display: grid; place-items: center; color: var(--on-accent-2); background: var(--accent-2); }
.icon-card.maintenance { filter: saturate(.72); }
.icon-card.maintenance .thumb-link::after { content: 'Fixing'; position: absolute; right: 10px; bottom: 10px; padding: 6px 9px; border-radius: 999px; color: var(--on-accent); background: var(--accent); font-family: var(--font-display); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.icon-card.maintenance .card-actions button { color: var(--on-accent); background: var(--accent); }
.thumb-placeholder { display: grid; place-items: center; align-content: center; gap: 4px; width: 100%; aspect-ratio: 1; min-height: 170px; border: 3px solid var(--card); border-radius: 23px; color: #fffaf0; background: linear-gradient(135deg, #122019, #ff6a3d); box-shadow: 0 12px 0 rgba(18,32,25,.08), var(--soft-shadow); text-align: center; }
.thumb-placeholder > * { min-width: 0; max-width: 100%; padding-inline: 6px; overflow-wrap: anywhere; word-break: break-word; }
.thumb-placeholder b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.03em; }
.thumb-placeholder small { font-size: 12px; font-weight: 900; opacity: .75; text-transform: uppercase; }
.stack-placeholder { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fffaf0; background: #ff6a3d; font-family: var(--font-display); font-size: 10px; font-weight: 900; }
.notice { margin-top: 10px; padding: 14px 16px; border: 1px solid rgba(49,184,137,.22); border-radius: 18px; color: #17654a; background: rgba(255,255,255,.88); box-shadow: var(--soft-shadow); }
.notice.error { border-color: rgba(242,95,92,.28); color: #a12f32; }
.modal-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; border: 0; border-radius: 0; background: rgba(7,18,15,.66); backdrop-filter: blur(10px); cursor: default; }
.auth-modal { position: relative; z-index: 1; color: #10110f; width: min(480px, 100%); padding: clamp(22px, 4vw, 34px); border: 1px solid rgba(255,255,255,.38); border-radius: 30px; background: linear-gradient(135deg, rgba(255,250,240,.98), rgba(238,244,221,.96)); box-shadow: 0 34px 90px rgba(0,0,0,.44); }
.auth-modal h2 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 42px); line-height: 1.02; letter-spacing: -.035em; }
.auth-modal p { margin-bottom: 0; font-weight: 800; }
.modal-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fffaf0; background: #122019; box-shadow: var(--soft-shadow); font-size: 24px; line-height: 1; }
.modal-choice-summary { display: grid; gap: 4px; margin: 18px 0; padding: 16px; border-radius: 22px; color: var(--on-accent-2); background: linear-gradient(135deg, var(--accent-2), #fff6b6); }
.modal-choice-summary span, .modal-choice-summary small { font-size: 12px; font-weight: 900; opacity: .72; }
.modal-choice-summary strong { font-family: var(--font-display); font-size: clamp(30px, 6vw, 48px); line-height: 1; letter-spacing: -.035em; }
.auth-game-summary strong { font-size: clamp(24px, 5vw, 42px); overflow-wrap: anywhere; }
.success-modal { overflow: hidden; border-color: rgba(215,255,79,.56); }
.success-modal::before { content: ''; position: absolute; inset: -40% -20% auto; height: 180px; background: radial-gradient(circle, rgba(215,255,79,.5), transparent 65%); pointer-events: none; }
.success-coin-badge { position: relative; display: grid; gap: 2px; margin: 18px 0; padding: 18px; border-radius: 24px; color: #10110f; background: linear-gradient(135deg, var(--accent), #f7f1df); box-shadow: 0 18px 38px rgba(80,98,18,.22); }
.success-coin-badge span, .success-coin-badge small { font-size: 12px; font-weight: 900; opacity: .72; text-transform: uppercase; }
.success-coin-badge strong { font-family: var(--font-display); font-size: clamp(42px, 9vw, 72px); line-height: .95; letter-spacing: -.035em; }
.success-detail-grid { display: grid; gap: 8px; margin-bottom: 18px; }
.success-detail-grid span { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid rgba(16,17,15,.08); border-radius: 14px; background: rgba(255,255,255,.82); color: #10110f; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.success-detail-grid b { color: #4d5955; font-family: var(--font-display); font-weight: 600; }
.funds-modal { overflow: hidden; border-color: rgba(255,106,61,.5); }
.funds-modal::before { content: ''; position: absolute; right: -44px; top: -58px; width: 190px; height: 190px; border-radius: 44px; background: linear-gradient(135deg, rgba(255,106,61,.36), rgba(215,255,79,.34)); transform: rotate(14deg); pointer-events: none; }
.funds-gap-badge { position: relative; display: grid; gap: 2px; margin: 18px 0; padding: 18px; border-radius: 24px; color: #fffaf0; background: linear-gradient(135deg, #122019, #ff6a3d); box-shadow: 0 18px 38px rgba(122,43,21,.22); }
.funds-gap-badge span, .funds-gap-badge small { font-size: 12px; font-weight: 900; opacity: .72; text-transform: uppercase; }
.funds-gap-badge strong { font-family: var(--font-display); font-size: clamp(42px, 9vw, 72px); line-height: .95; letter-spacing: -.035em; }
.maintenance-modal { overflow: hidden; border-color: rgba(255,106,61,.48); }
.maintenance-modal::before { content: ''; position: absolute; inset: -70px -80px auto auto; width: 210px; height: 210px; border-radius: 48px; background: linear-gradient(135deg, rgba(255,106,61,.34), rgba(18,32,25,.2)); transform: rotate(18deg); pointer-events: none; }
.maintenance-badge { position: relative; display: grid; gap: 2px; margin: 18px 0; padding: 18px; border-radius: 24px; color: #10110f; background: linear-gradient(135deg, var(--accent-2), #fff6b6); box-shadow: 0 18px 38px rgba(122,43,21,.18); }
.maintenance-badge span, .maintenance-badge small { font-size: 12px; font-weight: 900; opacity: .72; text-transform: uppercase; }
.maintenance-badge strong { font-family: var(--font-display); font-size: clamp(38px, 8vw, 64px); line-height: .95; letter-spacing: -.035em; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-actions .pill { min-width: 140px; }
.section-title, .library-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 22px 0 14px; }
.section-title h2, .library-head h1, .auth-card h2, .dash-side h1, .payment-card h2 { margin: 0; font-family: var(--font-display); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.section-title h2, .auth-card h2, .payment-card h2 { font-size: clamp(24px, 3.5vw, 34px); }
.section-title a { color: var(--accent-2); font-weight: 900; }
.library-head h1 { font-size: clamp(34px, 4.6vw, 56px); }
.search-summary { min-width: 240px; display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--soft-shadow); color: var(--muted); }
.search-summary strong { color: var(--surface-text); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-bar button, .chip { border: 1px solid var(--line); border-radius: 999px; min-height: 38px; padding: 9px 13px; color: var(--surface-text); background: #fff; box-shadow: var(--soft-shadow); }
.filter-bar button.active, .chip.active { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.category-grid.large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card { display: grid; grid-template-columns: 56px 1fr 30px; gap: 12px; align-items: center; min-height: 72px; border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; color: var(--text); background: rgba(255,255,255,.86); box-shadow: var(--soft-shadow); text-align: left; }
.category-card.active { outline: 2px solid rgba(49,184,137,.35); }
.category-stack { position: relative; width: 56px; height: 56px; }
.category-stack img { position: absolute; width: 34px; height: 34px; object-fit: cover; border: 2px solid #fff; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.category-stack img:nth-child(1) { left: 0; top: 0; }
.category-stack img:nth-child(2) { right: 0; top: 0; }
.category-stack img:nth-child(3) { left: 0; bottom: 0; }
.category-stack img:nth-child(4) { right: 0; bottom: 0; }
.category-card strong { font-family: var(--font-display); font-size: 14px; font-weight: 600; text-transform: capitalize; }
.category-card em { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--on-accent); background: var(--accent); font-style: normal; font-size: 22px; }
.auth-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; padding: 44px 0; }
.auth-art, .auth-card, .protected-page section, .checkout-summary, .payment-card, .checkout-receipt, .checkout-result, .dash-side, .dash-main, .policy-grid article { border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.auth-art { padding: clamp(24px, 5vw, 54px); background: linear-gradient(135deg, rgba(108,92,231,.13), rgba(49,184,137,.12)), #fff; }
.auth-art h1 { max-width: 10ch; }
.auth-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.auth-card.single { grid-template-columns: 1fr; max-width: 520px; }
.auth-card form, .cashier { display: grid; gap: 12px; }
.admin-login { border-left: 1px solid var(--line); padding-left: 16px; }
.admin-login.solo { border-left: 0; padding-left: 0; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 700; }
input, textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; color: var(--surface-text); background: #fff; outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49,184,137,.15); }
.dashboard-shell { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding: 32px 0; }
.dash-side, .dash-main { padding: clamp(18px, 3vw, 28px); }
.dash-side { align-self: start; position: sticky; top: 88px; }
.dash-side h1 { max-width: 100%; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; overflow-wrap: anywhere; word-break: break-word; }
.balance-card { display: grid; gap: 6px; margin: 22px 0; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(49,184,137,.16), rgba(108,92,231,.11)); }
.balance-card span { color: var(--muted); }
.balance-card strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.cashier-page { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 24px 0 34px; }
.checkout-summary, .payment-card { padding: clamp(18px, 3vw, 30px); }
.checkout-summary { align-self: start; }
.checkout-summary.compact { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, auto); gap: 14px 24px; align-items: end; }
.checkout-summary.compact .cashier-rules { grid-column: 1; }
.category-price-list { display: flex; flex-wrap: wrap; gap: 8px; }
.category-price-list span { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; border: 1px solid rgba(23,23,19,.12); border-radius: 999px; padding: 8px 13px; color: #10110f; background: rgba(247,241,223,.92); box-shadow: var(--soft-shadow); font-size: 13px; font-weight: 800; text-transform: capitalize; }
.category-price-list b { color: var(--accent-2); }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.flow-steps span { position: relative; min-height: 58px; display: flex; align-items: center; padding: 12px 14px; border: 1px solid rgba(23,23,19,.12); border-radius: 18px; color: #10110f; background: var(--card); box-shadow: var(--soft-shadow); font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.flow-steps span::after { content: ''; position: absolute; right: 12px; top: 12px; width: 8px; height: 8px; border-radius: 99px; background: var(--accent-2); box-shadow: 0 0 0 5px rgba(255,106,61,.12); }
.cashier-info-copy h1 { max-width: none; margin: 0 0 10px; font-size: clamp(36px, 5.4vw, 64px); line-height: 1; }
.cashier-info-copy p { max-width: 68ch; margin: 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); font-weight: 700; line-height: 1.65; }
.currency-switch { grid-column: 2; grid-row: 1 / span 2; justify-self: end; min-width: min(420px, 100%); padding: 14px; border: 1px solid rgba(18,32,25,.08); border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,207,58,.16)); box-shadow: var(--soft-shadow); }
.currency-switch > span { display: block; margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.currency-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.package { min-height: 84px; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; box-shadow: var(--soft-shadow); text-align: left; }
.package.active { border-color: rgba(255,207,58,.85); background: linear-gradient(135deg, rgba(255,207,58,.25), #fffaf0); box-shadow: 0 0 0 3px rgba(255,207,58,.2), var(--soft-shadow); }
.package strong { display: block; font-size: 22px; letter-spacing: -.04em; }
.package span { color: var(--muted); font-size: 12px; }
.cashier-rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cashier-rules span, .checkout-heading span { border-radius: 999px; padding: 7px 9px; color: #07120f; background: rgba(255,207,58,.32); font-size: 11px; font-weight: 900; }
.checkout-heading { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.checkout-heading h2 { margin: 0; }
.product-list { grid-column: 1 / -1; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.product-list .section-title { margin-top: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { display: grid; gap: 8px; min-height: 132px; border: 1px solid var(--line); border-radius: 22px; padding: 16px; color: var(--text); background: linear-gradient(180deg, #fff, #fffaf0); box-shadow: var(--soft-shadow); text-align: left; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card.active { border-color: rgba(255,207,58,.9); box-shadow: 0 0 0 4px rgba(255,207,58,.2), var(--soft-shadow); }
.product-card span { justify-self: start; border-radius: 999px; padding: 5px 8px; color: #07120f; background: var(--accent-2); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.product-card strong { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.product-card em { color: var(--muted); font-style: normal; font-weight: 900; }
.custom-recharge { display: grid; grid-template-columns: 1fr minmax(220px, 320px) auto; gap: 18px; align-items: end; margin-top: 14px; padding: 18px; border: 1px dashed rgba(18,32,25,.24); border-radius: 22px; background: linear-gradient(135deg, rgba(22,184,109,.12), rgba(255,207,58,.16)); }
.custom-recharge span { display: inline-flex; width: max-content; margin-bottom: 8px; border-radius: 999px; padding: 5px 8px; color: #07120f; background: var(--accent-2); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.custom-recharge strong { display: block; font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 34px); letter-spacing: -.03em; }
.custom-recharge small { color: var(--muted); font-weight: 900; }
.custom-pay { min-height: 52px; align-self: end; white-space: nowrap; }
.cashier-login-panel { align-self: stretch; display: grid; align-content: center; }
.cashier-login-panel h2 { font-size: clamp(26px, 3.5vw, 38px); }
.cashier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cashier h2, .cashier .wide, .cashier .muted, .cashier .payment-feedback { grid-column: 1 / -1; }
.payment-feedback { display: grid; gap: 4px; padding: 15px 16px; border: 2px solid rgba(255,207,58,.45); border-radius: 18px; color: #4b3711; background: rgba(255,245,201,.94); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.payment-feedback[hidden] { display: none; }
.payment-feedback strong { font-size: 16px; font-weight: 1000; }
.payment-feedback span, .payment-feedback small { font-weight: 800; color: inherit; opacity: .86; }
.payment-feedback.processing { border-color: rgba(255,122,26,.5); background: rgba(255,241,226,.96); }
.payment-feedback.success { border-color: rgba(49,184,137,.48); color: #09563c; background: rgba(221,255,238,.96); }
.payment-feedback.pending { border-color: rgba(255,207,58,.58); color: #5b4100; background: rgba(255,248,209,.96); }
.payment-feedback.error { border-color: rgba(242,95,92,.52); color: #8e2629; background: rgba(255,230,231,.96); }
.cashier button[disabled] { cursor: wait; opacity: .72; filter: grayscale(.15); }

.checkout-register { gap: 18px; }
.cashier-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); gap: 18px; align-items: end; padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,207,58,.2) 52%, rgba(49,184,137,.14)); box-shadow: var(--shadow); }
.cashier-hero .cashier-rules { grid-column: 1; }
.cashier-meter { justify-self: end; display: grid; place-items: center; width: min(220px, 100%); min-height: 172px; border: 1px solid rgba(18,32,25,.1); border-radius: 30px; color: #07120f; background: repeating-linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.92) 11px, rgba(255,207,58,.14) 12px, rgba(255,207,58,.14) 22px); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), var(--soft-shadow); text-align: center; }
.cashier-meter span, .cashier-meter small { color: var(--muted); font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.cashier-meter strong { font-family: var(--font-display); font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.05em; }
.register-products { position: relative; overflow: hidden; }
.register-products::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.product-card .product-action { align-self: end; width: max-content; margin-top: 4px; border-radius: 999px; padding: 7px 10px; color: var(--on-accent); background: var(--accent); font-size: 11px; font-weight: 950; }
.product-card:active, .custom-pay:active, .checkout-submit:active { transform: translateY(1px) scale(.99); }
.recharge-preview .cashier-meter strong { font-size: clamp(28px, 5vw, 46px); letter-spacing: .04em; }
.recharge-preview-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 24px; align-items: center; margin: 16px 0; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; color: var(--surface-text); background: color-mix(in srgb, var(--surface-solid) 88%, var(--accent) 12%); box-shadow: var(--soft-shadow); }
.recharge-preview-banner strong { font-family: var(--font-display); font-size: 16px; }
.recharge-preview-banner span { color: var(--surface-muted); font-size: 13px; font-weight: 700; }
.product-card.recharge-preview-card:disabled { opacity: 1; cursor: not-allowed; }
.product-card.recharge-preview-card:disabled:hover,
.product-card.recharge-preview-card:disabled:active { transform: none; box-shadow: var(--soft-shadow); }
.product-card.recharge-preview-card .product-action,
.recharge-preview-button:disabled { color: var(--surface-solid); background: var(--surface-muted); opacity: .9; cursor: not-allowed; }
.recharge-preview-custom input:disabled { color: var(--surface-muted); background: color-mix(in srgb, var(--surface-solid) 82%, var(--surface-muted) 18%); cursor: not-allowed; opacity: 1; }
.checkout-page { display: grid; gap: 18px; padding: 24px 0 36px; }
.checkout-title { display: grid; gap: 8px; padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(135deg, rgba(13,22,40,.94), rgba(16,56,42,.9)); color: #fffaf0; box-shadow: var(--shadow); }
.checkout-title h1 { max-width: 12ch; margin: 0; color: inherit; font-size: clamp(38px, 6vw, 68px); line-height: .98; }
.checkout-title p:not(.eyebrow) { max-width: 62ch; margin: 0; color: rgba(255,250,240,.78); font-weight: 800; line-height: 1.6; }
.checkout-title .eyebrow { color: var(--accent-2); }
.text-link { width: max-content; color: var(--accent-2); font-weight: 950; }
.checkout-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.checkout-rail li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; min-height: 82px; padding: 14px; border: 1px solid rgba(23,23,19,.12); border-radius: 20px; background: rgba(255,255,255,.86); box-shadow: var(--soft-shadow); }
.checkout-rail b { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); background: rgba(18,32,25,.08); }
.checkout-rail span { font-family: var(--font-display); font-weight: 800; }
.checkout-rail small { color: var(--muted); font-weight: 750; }
.checkout-rail li.done b, .checkout-rail li.active b { color: var(--on-accent); background: var(--accent); }
.checkout-rail li.active { border-color: color-mix(in srgb, var(--accent) 42%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--soft-shadow); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); gap: 18px; align-items: start; }
.checkout-side { position: sticky; top: 88px; display: grid; gap: 14px; }
.checkout-form { grid-template-columns: 1fr; gap: 16px; }
.checkout-form .form-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid rgba(18,32,25,.08); border-radius: 22px; background: rgba(255,255,255,.62); }
.checkout-form .form-group h3 { grid-column: 1 / -1; margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; }
.checkout-form .wide-field { grid-column: 1 / -1; }
.checkout-submit { min-height: 56px; font-size: 15px; }
.checkout-receipt { display: grid; gap: 12px; padding: 20px; overflow: hidden; }
.receipt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(18,32,25,.2); }
.receipt-top span, .receipt-line span, .receipt-total span { color: var(--muted); font-size: 12px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.receipt-top b { border-radius: 999px; padding: 6px 9px; color: #07120f; background: var(--accent-2); font-size: 11px; }
.receipt-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.receipt-line strong { text-align: right; }
.receipt-line.muted strong { color: var(--muted); }
.receipt-total { display: grid; gap: 3px; margin-top: 6px; padding: 16px; border-radius: 20px; color: #07120f; background: linear-gradient(135deg, rgba(255,207,58,.42), rgba(49,184,137,.18)); }
.receipt-total strong { font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.receipt-total small, .checkout-receipt p { color: var(--muted); font-weight: 850; line-height: 1.5; }
.checkout-result { display: grid; gap: 10px; padding: 18px; }
.checkout-result h3 { margin: 0; font-family: var(--font-display); font-size: 24px; letter-spacing: -.03em; }
.checkout-result p { margin: 0; color: var(--muted); font-weight: 820; line-height: 1.55; }
.checkout-result.success { border-color: rgba(49,184,137,.34); background: rgba(222,255,239,.92); }
.checkout-result.pending, .checkout-result.processing { border-color: rgba(255,207,58,.42); background: rgba(255,249,218,.94); }
.checkout-result.error { border-color: rgba(242,95,92,.34); background: rgba(255,234,235,.94); }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-loader { display: flex; gap: 7px; align-items: center; min-height: 20px; }
.payment-loader span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: cashierPulse 1s ease-in-out infinite; }
.payment-loader span:nth-child(2) { animation-delay: .16s; }
.payment-loader span:nth-child(3) { animation-delay: .32s; }
@keyframes cashierPulse { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .payment-loader span { animation: none; } .product-card, .product-card:hover { transition: none; transform: none; } }

.contact-page { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; padding: 42px 0; }
.contact-copy, .contact-card { border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.contact-copy { padding: clamp(24px, 5vw, 56px); background: linear-gradient(135deg, rgba(255,207,58,.2), rgba(22,184,109,.12)), #fff; }
.contact-copy h1 { max-width: 10ch; }
.contact-methods { display: grid; gap: 10px; margin-top: 24px; }
.contact-methods div { display: grid; gap: 4px; border-radius: 16px; padding: 12px 14px; background: rgba(18,32,25,.08); overflow-wrap: anywhere; }
.contact-methods dt { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.contact-methods dd { margin: 0; color: var(--text); font-weight: 900; }
.contact-methods a { color: var(--accent); }
.contact-card { padding: clamp(18px, 3vw, 30px); }
.contact-card form { display: grid; gap: 13px; }
.contact-card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.03em; }
.protected-page { min-height: 62vh; display: grid; place-items: center; }
.protected-page section { max-width: 640px; padding: 42px; text-align: center; }
.policy-page { padding: 32px 0; }
.document-page { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.policy-index, .policy-document { border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.policy-index { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; }
.policy-index .eyebrow { width: 100%; margin-bottom: 2px; }
.policy-index a { display: inline-flex; gap: 7px; align-items: center; border-radius: 999px; padding: 10px 12px; color: var(--muted); font-weight: 900; }
.policy-index a span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(18,32,25,.08); font-size: 11px; }
.policy-index a.active, .policy-index a:hover { color: #07120f; background: var(--accent-2); }
.policy-document { min-height: 68vh; padding: clamp(26px, 5vw, 62px); }
.policy-document h1 { max-width: none; margin-bottom: 20px; }
.policy-document h2 { max-width: 900px; margin: 28px 0 8px; font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 30px); line-height: 1.14; letter-spacing: -.025em; }
.policy-document p { max-width: 900px; margin: 10px 0; font-size: 17px; line-height: 1.75; }
.policy-document ul { display: grid; gap: 8px; max-width: 860px; margin: 12px 0 18px; padding-left: 24px; }
.policy-document li { padding-left: 4px; font-size: 17px; line-height: 1.65; }
.policy-labeled-line { display: grid; grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(18,32,25,.06); }
.policy-labeled-line strong { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.policy-unavailable { padding: 18px; border: 1px solid rgba(242,95,92,.25); border-radius: 16px; background: rgba(255,234,235,.92); }
.policy-meta-line { display: inline-flex; width: auto; max-width: 100%; margin: 0 0 18px !important; padding: 9px 12px; border-radius: 999px; color: #07120f; background: rgba(255,207,58,.34); font-size: 13px !important; font-weight: 800; overflow-wrap: anywhere; }
.policy-document footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.policy-grid article { padding: 22px; }
.policy-grid h2 { margin: 0 0 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; line-height: 1.45; }
td { overflow-wrap: anywhere; }
th { color: var(--muted); font-family: var(--font-display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.status { border-radius: 999px; padding: 5px 9px; color: #17654a; background: rgba(49,184,137,.12); font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.status.failed { color: #a12f32; background: rgba(242,95,92,.12); }
.status.paid { color: #29450f; background: rgba(215,255,79,.42); }
.status.pending_payment { color: #854100; background: rgba(255,106,61,.14); }
.table-link { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 999px; padding: 6px 12px; color: var(--on-accent); background: var(--accent); font-family: var(--font-display); font-weight: 700; }
.empty-copy { grid-column: 1 / -1; padding: 24px; border-radius: 18px; background: #fff; color: var(--muted); }
.site-footer { display: block; margin-top: 48px; padding: 0 0 28px; color: var(--text); font-size: 14px; font-weight: 600; }
.footer-shell { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(300px, 1.5fr) minmax(140px, .7fr) minmax(190px, .85fr); gap: clamp(24px, 3vw, 44px); padding: clamp(28px, 4vw, 52px); border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 92%, #050609 8%); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.footer-shell.payments-disabled { grid-template-columns: minmax(220px, 1.2fr) minmax(300px, 1.4fr) minmax(180px, .8fr); }
.footer-company, .footer-legal, .footer-info, .footer-payments { min-width: 0; }
.footer-kicker { margin: 0 0 16px; color: var(--muted); font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footer-company h2 { max-width: 24ch; margin: 0 0 22px; color: var(--text); font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); line-height: 1.16; letter-spacing: -.02em; overflow-wrap: anywhere; }
.footer-company-details { display: grid; gap: 14px; margin: 0; }
.footer-company-details div { display: grid; gap: 4px; }
.footer-company-details dt, .footer-hours span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-company-details dd { margin: 0; color: var(--text); line-height: 1.55; overflow-wrap: anywhere; }
.site-footer a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent-2) 55%, transparent); text-underline-offset: 4px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent-2); text-decoration-line: underline; }
.footer-policy-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 42px); }
.footer-policy-links a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1.3; }
.footer-policy-links a span { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.footer-info { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact-link { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.footer-hours { display: grid; gap: 7px; margin-top: 24px; }
.footer-hours strong { color: var(--text); font-size: 13px; line-height: 1.55; }
.footer-payment-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.footer-payment-badge { display: grid; place-items: center; min-height: 76px; padding: 9px; border: 1px solid color-mix(in srgb, var(--text) 20%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--text) 9%, var(--panel)); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent); }
.footer-payment-badge img { display: block; width: 84px; max-width: 100%; height: auto; border-radius: 6px; }
.footer-copyright { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
@media (max-width: 980px) {
  .footer-shell { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); }
  .footer-shell.payments-disabled { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); }
  .footer-info, .footer-payments { padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
}
@media (max-width: 580px) {
  .site-footer { margin-top: 32px; padding-bottom: 18px; }
  .footer-shell { grid-template-columns: 1fr; gap: 28px; padding: 24px 20px; }
  .footer-shell.payments-disabled { grid-template-columns: 1fr; }
  .footer-legal, .footer-info, .footer-payments { padding-top: 26px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
  .footer-policy-links { grid-template-columns: 1fr; }
  .footer-info { grid-column: auto; display: flex; align-items: flex-start; }
  .footer-info .footer-kicker { margin-bottom: 10px; }
  .footer-hours { margin-top: 22px; }
  .footer-payment-badges { max-width: 240px; }
}
.home-hero { position: relative; display: grid; align-items: center; min-height: 500px; padding: 42px 0 28px; color: #fffaf0; }
.home-hero h1 { max-width: 12ch; }
.home-hero p { max-width: 56ch; color: rgba(255,250,240,.76); }
.poster-stack, .score-feature, .orbit-stage, .toy-collage, .lounge-marquee { position: relative; min-height: 360px; }
.mini-thumb { position: absolute; display: grid; gap: 6px; width: 116px; padding: 8px; border: 1px solid rgba(255,250,240,.28); border-radius: 22px; color: #10110f; background: rgba(255,250,240,.94); box-shadow: var(--soft-shadow); }
.mini-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.mini-thumb span { overflow: hidden; font-family: var(--font-display); font-size: 11px; font-weight: 800; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.hero-poster { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 28px; }
.hero-poster .poster-copy { align-self: end; padding-bottom: 46px; }
.hero-poster .poster-stack .hero-game { width: min(300px, 72%); margin: 20px 0 0 auto; transform: rotate(6deg); }
.hero-poster .mini-thumb-1 { left: 8px; top: 24px; transform: rotate(-9deg); }
.hero-poster .mini-thumb-2 { left: 0; bottom: 18px; transform: rotate(7deg); }
.hero-scoreboard { grid-template-columns: minmax(0, .95fr) minmax(300px, 430px); gap: 18px; min-height: 470px; margin-top: 26px; padding: 26px; border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px; background: linear-gradient(135deg, rgba(16,19,15,.88), rgba(47,57,35,.76)); }
.score-kicker { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px; max-width: 390px; margin-bottom: 14px; color: var(--accent); font-family: var(--font-display); font-weight: 900; }
.score-kicker span { display: grid; place-items: center; min-height: 42px; border-radius: 8px; color: #10110f; background: var(--accent); font-size: 28px; }
.score-feature .hero-game { width: min(320px, 76%); margin-left: auto; border-radius: 8px; transform: none; }
.score-roster { position: absolute; left: 0; bottom: 0; display: grid; width: min(280px, 70%); gap: 6px; }
.score-roster span { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; padding: 8px; border: 1px solid rgba(215,255,79,.22); border-radius: 8px; color: #f7f1df; background: rgba(0,0,0,.34); font-size: 12px; font-weight: 800; }
.score-roster b { color: var(--accent); }
.hero-portal { grid-template-columns: minmax(0, .9fr) minmax(320px, 480px); gap: 30px; min-height: 560px; }
.orbit-stage { display: grid; place-items: center; min-height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(56,217,255,.16), transparent 58%); }
.orbit-stage::before { content: ''; position: absolute; inset: 26px; border: 1px solid rgba(238,247,255,.18); border-radius: 50%; }
.orbit-stage .orbit-core { width: min(260px, 58%); border-radius: 50%; transform: none; }
.orbit-stage .orbit-core img { border-radius: 50%; }
.hero-portal .mini-thumb { border-radius: 50%; color: #eef7ff; background: rgba(13,22,40,.72); }
.hero-portal .mini-thumb img { border-radius: 50%; }
.hero-portal .mini-thumb-1 { left: 8%; top: 4%; }
.hero-portal .mini-thumb-2 { right: 3%; top: 22%; }
.hero-portal .mini-thumb-3 { right: 14%; bottom: 4%; }
.hero-portal .mini-thumb-4 { left: 10%; bottom: 12%; }
.hero-portal .mini-thumb-5 { left: 42%; top: 0; }
.portal-count { position: absolute; right: 24px; bottom: 34px; display: grid; place-items: center; width: 116px; height: 116px; border: 1px solid rgba(238,247,255,.2); border-radius: 50%; color: #eef7ff; background: rgba(13,22,40,.74); box-shadow: 0 0 60px rgba(56,217,255,.18); }
.portal-count strong { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.portal-count span { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.hero-toybox { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 36px; }
.toy-copy { padding: 30px; border: 4px solid rgba(255,255,255,.64); border-radius: 42px; background: rgba(255,250,240,.18); box-shadow: 12px 12px 0 color-mix(in srgb, var(--accent-2) 52%, transparent); }
.toy-collage .hero-game { width: min(260px, 66%); margin: 42px auto 0; border-radius: 38px; transform: rotate(-5deg); }
.toy-collage .mini-thumb { border-width: 3px; border-color: #fff; border-radius: 28px; }
.toy-collage .mini-thumb-1 { left: 8px; top: 10px; transform: rotate(8deg); }
.toy-collage .mini-thumb-2 { right: 8px; top: 0; transform: rotate(-7deg); }
.toy-collage .mini-thumb-3 { left: 0; bottom: 22px; transform: rotate(-4deg); }
.toy-collage .mini-thumb-4 { right: 20px; bottom: 4px; transform: rotate(6deg); }
.hero-lounge { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) 150px; gap: 22px; min-height: 540px; align-items: end; }
.lounge-copy { align-self: center; padding-right: 20px; }
.lounge-marquee .hero-game { width: min(300px, 90%); margin: 0 auto 18px; border-radius: 34px; transform: none; background: rgba(255,255,255,.08); color: #fffaf0; }
.lounge-list { display: grid; gap: 8px; }
.lounge-list a { padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fffaf0; background: rgba(7,8,13,.62); font-family: var(--font-display); font-weight: 800; }
.lounge-pass { align-self: center; display: grid; place-items: center; text-align: center; min-height: 220px; padding: 18px; border: 1px solid rgba(214,167,96,.3); border-radius: 999px 999px 34px 34px; color: #fffaf0; background: rgba(7,8,13,.74); box-shadow: 0 30px 80px rgba(0,0,0,.34); }
.lounge-pass b { color: var(--accent); font-family: var(--font-display); font-size: 54px; line-height: 1; }
.lounge-pass span { color: rgba(255,250,240,.68); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hero-magazine { grid-template-columns: 86px minmax(0, 1fr) minmax(220px, 300px); gap: 24px; min-height: 500px; align-items: end; color: #141414; }
.mag-coverline { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 0; border-right: 2px solid rgba(20,20,20,.82); color: #141414; font-family: var(--font-display); text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.mag-headline p { color: #445044; }
.mag-headline .eyebrow { color: #141414; }
.magazine-cover { border-radius: 0; transform: none; box-shadow: 14px 14px 0 rgba(20,20,20,.14), var(--shadow); }
.magazine-cover img { border-radius: 0; }
.mag-teasers { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.mag-teasers a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-top: 2px solid rgba(20,20,20,.72); color: #141414; font-weight: 900; }
.hero-kinetic { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 42px; min-height: 520px; padding-top: 56px; }
.kinetic-copy { align-self: center; }
.kinetic-stage { position: relative; min-height: 410px; padding: 46px 24px 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 0; background: linear-gradient(142deg, rgba(18,29,46,.92), rgba(14,20,30,.84)); box-shadow: 16px 18px 0 color-mix(in srgb, var(--accent) 68%, transparent), 0 28px 70px rgba(0,0,0,.28); }
.kinetic-stage::before { content: ''; position: absolute; inset: -24% 28% -24% -12%; z-index: 0; border-right: 20px solid color-mix(in srgb, var(--accent) 82%, transparent); background: repeating-linear-gradient(142deg, transparent 0 34px, rgba(255,255,255,.06) 35px 37px); transform: skewX(-16deg); pointer-events: none; }
.kinetic-stage > * { position: relative; z-index: 1; }
.kinetic-strip { position: absolute; top: 18px; left: -24px; display: grid; grid-template-columns: auto 52px auto 52px; gap: 8px; align-items: center; width: calc(100% + 48px); min-height: 38px; padding: 0 24px; color: #eef2f6; background: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 900; letter-spacing: .08em; transform: skewY(-3deg); }
.kinetic-strip b { display: grid; place-items: center; height: 26px; color: #f8f9fb; background: #151d2c; font-size: 16px; transform: skewY(3deg); }
.kinetic-stage .kinetic-lead { width: min(280px, 72%); margin: 18px 0 0 auto; border: 0; border-radius: 0; background: rgba(248,249,251,.96); box-shadow: -12px 14px 0 rgba(8,12,18,.38); transform: rotate(3deg); }
.kinetic-stage .kinetic-lead img { border-radius: 0; }
.kinetic-stage .mini-thumb { border-radius: 0; border-color: rgba(255,255,255,.48); box-shadow: 8px 10px 0 rgba(8,12,18,.36); }
.kinetic-stage .mini-thumb img { border-radius: 0; }
.kinetic-stage .mini-thumb-1 { left: 18px; bottom: 28px; transform: rotate(-5deg); }
.kinetic-stage .mini-thumb-2 { right: 28px; bottom: -8px; transform: rotate(7deg); }
@media (max-width: 980px) {
  .sitebar { grid-template-columns: 1fr auto; gap: 10px; }
  .primary-nav { order: 3; grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; }
  .search-box { grid-column: 1 / -1; order: 4; }
  .home-hero, .hero-poster, .hero-scoreboard, .hero-portal, .hero-toybox, .hero-lounge, .hero-magazine, .hero-kinetic { grid-template-columns: 1fr; min-height: auto; }
  .poster-stack, .score-feature, .orbit-stage, .toy-collage, .lounge-marquee { min-height: 330px; }
  .lounge-pass { min-height: auto; border-radius: 28px; }
  .mag-coverline { writing-mode: initial; transform: none; border-right: 0; border-bottom: 2px solid rgba(20,20,20,.82); }
  .mag-teasers { grid-column: auto; }
  .portal-hero, .auth-page, .dashboard-shell, .cashier-page, .checkout-page, .contact-page { grid-template-columns: 1fr; }
  .checkout-summary.compact, .cashier-hero, .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary.compact .cashier-rules, .currency-switch { grid-column: auto; grid-row: auto; }
  .currency-switch, .cashier-meter { justify-self: stretch; width: 100%; }
  .cashier-hero .cashier-rules { grid-column: auto; }
  .checkout-side { position: static; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-steps, .checkout-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-recharge { grid-template-columns: 1fr; }
  .document-page { grid-template-columns: 1fr; }
  .policy-index { position: static; }
  .dash-side { position: static; }
  .icon-board, .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .category-grid, .category-grid.large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { grid-template-columns: 1fr; }
  .admin-login { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
}
@media (max-width: 580px) {
  .portal-shell, .page-stack, .auth-page, .dashboard-shell, .cashier-page, .checkout-page, .policy-page, .contact-page, .notice, .site-footer, .sitebar { width: min(100% - 18px, 1120px); }
  .brand strong { font-size: 15px; }
  .policy-labeled-line { grid-template-columns: 1fr; gap: 4px; }
  .account-chip span { display: none; }
  .home-hero { padding-top: 28px; }
  .home-hero h1 { font-size: 38px; line-height: 1.04; }
  .mini-thumb { width: 92px; }
  .poster-stack, .score-feature, .orbit-stage, .toy-collage, .lounge-marquee { min-height: 280px; }
  .score-kicker { grid-template-columns: repeat(2, 1fr); }
  .score-roster { position: static; width: 100%; margin-top: 10px; }
  .portal-count { position: static; width: auto; height: auto; border-radius: 22px; padding: 14px; }
  .mag-teasers { grid-template-columns: 1fr; }
  .portal-hero h1, h1 { font-size: 38px; line-height: 1.04; }
  .hero-game { width: 168px; }
  html[data-design-profile="expedition-log"] .hero-poster .poster-stack .hero-game { margin-right: 12px; }
  .icon-board, .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
  .home-strip, .category-grid, .category-grid.large, .package-grid, .product-grid, .flow-steps, .checkout-rail, .cashier, .checkout-form .form-group, .policy-grid { grid-template-columns: 1fr; }
  .section-title, .library-head { flex-direction: column; align-items: flex-start; }
  .recharge-preview-banner { grid-template-columns: 1fr; }
}

/* Profile hooks: blocks read these classes after public/app.js maps a design profile. */
html[data-design-profile="arcade-poster"] body {
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 20rem),
    radial-gradient(circle at 84% 10%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, var(--panel) 46%, color-mix(in srgb, var(--panel-strong) 70%, #fff 30%) 46.1%, color-mix(in srgb, var(--card) 75%, #fff 25%) 100%);
}
html[data-design-profile="sports-scoreboard"] .block-arena-scoreboard-hero .portal-hero,
html[data-design-profile="sports-scoreboard"] .home-strip div,
html[data-design-profile="sports-scoreboard"] .product-card { border-radius: 10px; }
html[data-design-profile="sports-scoreboard"] .primary-nav a::before { border-radius: 2px; }
html[data-design-profile="cosmic-portal"] body {
  background:
    radial-gradient(circle at 70% 4%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 22rem),
    radial-gradient(circle at 22% 24%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 20rem),
    linear-gradient(180deg, var(--bg), var(--panel) 52%, color-mix(in srgb, var(--panel-strong) 60%, #fff 40%) 100%);
}
html[data-design-profile="cosmic-portal"] .block-portal-ring-hero .hero-game { border-radius: 50%; transform: rotate(-4deg); }
html[data-design-profile="toybox-casual"] .block-sticker-collage-hero .hero-game,
html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento .icon-card:nth-child(4n+1) { transform: rotate(-2deg); }
html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento .icon-card:nth-child(4n+2) { transform: rotate(1.5deg); }
html[data-design-profile="midnight-lounge"] body {
  background:
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 22rem),
    linear-gradient(180deg, var(--bg) 0%, #11131a 48%, color-mix(in srgb, var(--panel) 70%, #fff 30%) 48.1%, color-mix(in srgb, var(--card) 70%, #fff 30%) 100%);
}
html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves .icon-board,
html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves.game-section .icon-board { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
html[data-design-profile="magazine-discovery"] body {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 32%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 84%, #fff 16%));
  background-size: 44px 44px, auto;
}
html[data-design-profile="magazine-discovery"] .sitebar,
html[data-design-profile="magazine-discovery"] .hero-game,
html[data-design-profile="magazine-discovery"] .product-card,
html[data-design-profile="magazine-discovery"] .policy-document { border-radius: var(--radius); }
@media (max-width: 980px) {
  html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves .icon-board,
  html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves.game-section .icon-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves .icon-board,
  html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves.game-section .icon-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Profile structure pass: each uploaded SaaS profile gets a distinct page geometry. */
html[data-design-profile] body {
  background-attachment: fixed;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.32) 42%, rgba(0,0,0,.5)),
    var(--site-background-image, var(--profile-background-image));
  background-size: cover, cover;
  background-position: center top, center top;
  background-repeat: no-repeat;
}
html[data-design-profile="arcade-poster"] { --profile-background-image: url('/design/backgrounds/arcade-poster.svg'); }
html[data-design-profile="sports-scoreboard"] { --profile-background-image: url('/design/backgrounds/sports-scoreboard.svg'); }
html[data-design-profile="cosmic-portal"] { --profile-background-image: url('/design/backgrounds/cosmic-portal.svg'); }
html[data-design-profile="toybox-casual"] { --profile-background-image: url('/design/backgrounds/toybox-casual.svg'); }
html[data-design-profile="midnight-lounge"] { --profile-background-image: url('/design/backgrounds/midnight-lounge.svg'); }
html[data-design-profile="magazine-discovery"] { --profile-background-image: url('/design/backgrounds/magazine-discovery.svg'); }
html[data-design-profile="kinetic-scoreboard"] { --profile-background-image: none; }
html[data-design-profile="magazine-discovery"] body {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.32) 46%, rgba(242,244,237,.78)),
    var(--site-background-image, var(--profile-background-image));
}
html[data-design-profile] .sitebar,
html[data-design-profile] .home-strip div,
html[data-design-profile] .product-list,
html[data-design-profile] .payment-card,
html[data-design-profile] .checkout-receipt,
html[data-design-profile] .checkout-result,
html[data-design-profile] .checkout-summary,
html[data-design-profile] .contact-copy,
html[data-design-profile] .contact-card,
html[data-design-profile] .policy-index,
html[data-design-profile] .policy-document,
html[data-design-profile] .dash-side,
html[data-design-profile] .dash-main { backdrop-filter: blur(18px) saturate(1.2); }
html[data-design-profile] .portal-shell,
html[data-design-profile] .page-stack,
html[data-design-profile] .cashier-page,
html[data-design-profile] .checkout-page,
html[data-design-profile] .contact-page,
html[data-design-profile] .policy-page,
html[data-design-profile] .dashboard-shell { isolation: isolate; }

html[data-design-profile] .home-strip div,
html[data-design-profile] .product-list,
html[data-design-profile] .payment-card,
html[data-design-profile] .checkout-receipt,
html[data-design-profile] .checkout-result,
html[data-design-profile] .checkout-summary,
html[data-design-profile] .contact-copy,
html[data-design-profile] .contact-card,
html[data-design-profile] .policy-index,
html[data-design-profile] .policy-document,
html[data-design-profile] .dash-side,
html[data-design-profile] .dash-main,
html[data-design-profile] .auth-art,
html[data-design-profile] .auth-card,
html[data-design-profile] .protected-page section,
html[data-design-profile] .policy-grid article,
html[data-design-profile] .search-summary,
html[data-design-profile] .category-card,
html[data-design-profile] .product-card,
html[data-design-profile] .custom-recharge,
html[data-design-profile] .currency-switch,
html[data-design-profile] .category-price-list span,
html[data-design-profile] .flow-steps span,
html[data-design-profile] .checkout-rail li,
html[data-design-profile] .checkout-receipt,
html[data-design-profile] .checkout-result,
html[data-design-profile] .package,
html[data-design-profile] .table-wrap,
html[data-design-profile] .empty-copy,
html[data-design-profile] .notice {
  color: var(--surface-text);
}
html[data-design-profile] .home-strip span,
html[data-design-profile] .product-card em,
html[data-design-profile] .product-list p,
html[data-design-profile] .payment-card p,
html[data-design-profile] .checkout-receipt p,
html[data-design-profile] .checkout-result p,
html[data-design-profile] .checkout-summary p,
html[data-design-profile] .contact-copy p,
html[data-design-profile] .contact-card p,
html[data-design-profile] .policy-index a,
html[data-design-profile] .policy-document p,
html[data-design-profile] .dash-side p,
html[data-design-profile] .dash-main p,
html[data-design-profile] .auth-art p,
html[data-design-profile] .auth-card p,
html[data-design-profile] .search-summary,
html[data-design-profile] .category-card small,
html[data-design-profile] .custom-recharge small,
html[data-design-profile] .currency-switch > span,
html[data-design-profile] .package span,
html[data-design-profile] .checkout-rail small,
html[data-design-profile] .receipt-top span,
html[data-design-profile] .receipt-line span,
html[data-design-profile] .receipt-total span,
html[data-design-profile] .receipt-total small,
html[data-design-profile] label,
html[data-design-profile] th,
html[data-design-profile] .empty-copy {
  color: var(--surface-muted);
}
html[data-design-profile] .home-strip .eyebrow,
html[data-design-profile] .product-list .eyebrow,
html[data-design-profile] .payment-card .eyebrow,
html[data-design-profile] .checkout-summary .eyebrow,
html[data-design-profile] .contact-copy .eyebrow,
html[data-design-profile] .policy-index .eyebrow,
html[data-design-profile] .policy-document .eyebrow,
html[data-design-profile] .dash-side .eyebrow,
html[data-design-profile] .dash-main .eyebrow,
html[data-design-profile] .auth-art .eyebrow,
html[data-design-profile] .auth-card .eyebrow,
html[data-design-profile] .category-price-list b,
html[data-design-profile] .product-list .section-title a,
html[data-design-profile] .payment-card .section-title a,
html[data-design-profile] .checkout-summary .section-title a {
  color: var(--surface-accent);
}
html[data-design-profile] input::placeholder,
html[data-design-profile] textarea::placeholder {
  color: color-mix(in srgb, var(--surface-muted) 78%, #fff 22%);
}

html[data-design-profile] .checkout-rail li,
html[data-design-profile] .checkout-receipt,
html[data-design-profile] .checkout-result {
  color: #1b211f;
  background-color: rgba(255,255,255,.9);
}
html[data-design-profile] .checkout-rail small,
html[data-design-profile] .receipt-top span,
html[data-design-profile] .receipt-line span,
html[data-design-profile] .receipt-total small,
html[data-design-profile] .checkout-receipt p,
html[data-design-profile] .checkout-result p {
  color: #4d5955;
}
html[data-design-profile] .checkout-rail li.active small,
html[data-design-profile] .checkout-rail li.active span {
  color: #1b211f;
}
html[data-design-profile] .receipt-total span { color: #294139; }

html[data-design-profile] .auth-modal { color: #10110f; }
html[data-design-profile] .auth-modal h2 { color: #10110f; }
html[data-design-profile] .success-detail-grid span { color: #10110f; }
html[data-design-profile] .success-detail-grid b { color: #4d5955; }

html[data-design-profile="arcade-poster"] .profile-arcade-poster .portal-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  min-height: 520px;
  padding: 64px 0 34px;
}
html[data-design-profile="arcade-poster"] .profile-arcade-poster .portal-hero h1 { max-width: 10ch; font-size: clamp(42px, 7.2vw, 84px); text-transform: uppercase; }
html[data-design-profile="arcade-poster"] .profile-arcade-poster .hero-game { transform: rotate(5deg); border-width: 5px; box-shadow: 18px 18px 0 color-mix(in srgb, var(--accent) 60%, transparent), 0 34px 70px rgba(0,0,0,.46); }
html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid .icon-board,
html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid.game-section .icon-board,
html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid.game-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 16px; }
html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid .icon-card { grid-column: auto; }
html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid .thumb-link img { aspect-ratio: 1; }
html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid .icon-meta strong { color: rgba(255,250,240,.88); text-shadow: 0 1px 2px rgba(0,0,0,.52); }
html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid .icon-meta small { color: rgba(255,250,240,.72); }
html[data-design-profile="arcade-poster"] .block-ticket-booth-products .product-card { border: 2px dashed color-mix(in srgb, var(--accent-2) 65%, transparent); transform: skew(-1deg); }

html[data-design-profile="sports-scoreboard"] .profile-sports-scoreboard .portal-hero {
  grid-template-columns: minmax(0, .9fr) minmax(260px, 420px);
  gap: 18px;
  min-height: 460px;
  border: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: var(--radius);
  margin-top: 28px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(16,19,15,.82), rgba(48,57,37,.72));
}
html[data-design-profile="sports-scoreboard"] .profile-sports-scoreboard .portal-hero h1 { max-width: 13ch; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.02em; }
html[data-design-profile="sports-scoreboard"] .profile-sports-scoreboard .hero-game { transform: none; border-radius: 8px; background: #11170e; color: var(--text); }
html[data-design-profile="sports-scoreboard"] .home-strip { grid-template-columns: 1.2fr .8fr .8fr; }
html[data-design-profile="sports-scoreboard"] .block-league-table-grid.game-section .icon-board,
html[data-design-profile="sports-scoreboard"] .block-league-table-grid.game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
html[data-design-profile="sports-scoreboard"] .block-league-table-grid .icon-card { padding: 8px; border: 1px solid rgba(215,255,56,.18); border-radius: 10px; background: rgba(16,19,15,.72); }
html[data-design-profile="sports-scoreboard"] .block-league-table-grid .icon-meta strong { color: var(--text); }
html[data-design-profile="sports-scoreboard"] .block-energy-pack-scorecards .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-design-profile="sports-scoreboard"] .block-energy-pack-scorecards .product-card { min-height: 104px; border-radius: 8px; background: linear-gradient(135deg, rgba(215,255,56,.18), rgba(255,138,43,.08)); }

html[data-design-profile="kinetic-scoreboard"] {
  --font-display: 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Avenir Next', 'Helvetica Neue', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, monospace;
}
html[data-design-profile="kinetic-scoreboard"] body {
  background:
    linear-gradient(128deg, transparent 0 38%, rgba(231,88,78,.2) 38.15% 40%, transparent 40.15%),
    radial-gradient(circle at 86% 7%, rgba(231,88,78,.24), transparent 24rem),
    linear-gradient(180deg, #0d1625 0%, #111c2d 46%, #e7eaee 46.1%, #f4f5f7 100%);
}
html[data-design-profile="kinetic-scoreboard"] .sitebar { width: min(1320px, calc(100% - 32px)); border-radius: 0; border-color: rgba(255,255,255,.14); background: rgba(13,22,37,.94); box-shadow: 10px 10px 0 rgba(231,88,78,.68); }
html[data-design-profile="kinetic-scoreboard"] .brand { color: #f4f5f7; text-transform: uppercase; letter-spacing: .06em; }
html[data-design-profile="kinetic-scoreboard"] .brand-mark { border-radius: 0; color: #f4f5f7; background: var(--accent); }
html[data-design-profile="kinetic-scoreboard"] .primary-nav a::before { display: none; }
html[data-design-profile="kinetic-scoreboard"] .primary-nav a.active,
html[data-design-profile="kinetic-scoreboard"] .primary-nav a:hover { color: var(--accent); }
html[data-design-profile="kinetic-scoreboard"] .profile-kinetic-scoreboard .portal-hero h1 { max-width: 9ch; font-size: clamp(46px, 7vw, 88px); line-height: .9; text-transform: uppercase; letter-spacing: -.055em; }
html[data-design-profile="kinetic-scoreboard"] .profile-kinetic-scoreboard .portal-hero p:not(.eyebrow) { max-width: 48ch; color: rgba(244,245,247,.78); }
html[data-design-profile="kinetic-scoreboard"] .pill { border-radius: 0; box-shadow: 5px 5px 0 rgba(8,12,18,.32); }
html[data-design-profile="kinetic-scoreboard"] .home-strip { grid-template-columns: 1.25fr .75fr .75fr; gap: 0; margin-top: 26px; border: 1px solid rgba(13,22,37,.2); background: #f4f5f7; }
html[data-design-profile="kinetic-scoreboard"] .home-strip div { border-radius: 0; border: 0; border-right: 1px solid rgba(13,22,37,.16); background: transparent; box-shadow: none; }
html[data-design-profile="kinetic-scoreboard"] .home-strip div:last-child { border-right: 0; }
html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery.game-section .icon-board,
html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery.game-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery .icon-card { grid-column: span 3; padding: 0; }
html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery .icon-card:nth-child(7n+1),
html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery .icon-card:nth-child(7n+5) { grid-column: span 4; margin-top: 32px; }
html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery .thumb-link img { border-width: 0; border-radius: 0; box-shadow: 7px 8px 0 rgba(13,22,37,.14); }
html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery .icon-meta strong { color: #101925; font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: .01em; }
html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery .icon-meta small { color: #536172; font-family: var(--font-mono); font-size: 10px; }
html[data-design-profile="kinetic-scoreboard"] .block-pit-lane-checkout .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-design-profile="kinetic-scoreboard"] .block-pit-lane-checkout .product-card { border-radius: 0; border: 1px solid rgba(13,22,37,.16); box-shadow: 6px 6px 0 rgba(231,88,78,.22); }

@media (prefers-reduced-motion: no-preference) {
  html[data-design-profile="kinetic-scoreboard"] .kinetic-stage { animation: kinetic-stage-enter .56s cubic-bezier(.16, 1, .3, 1) both; }
  html[data-design-profile="kinetic-scoreboard"] .kinetic-stage .mini-thumb { animation: kinetic-thumb-enter .48s cubic-bezier(.16, 1, .3, 1) both; }
  html[data-design-profile="kinetic-scoreboard"] .kinetic-stage .mini-thumb-2 { animation-delay: .1s; }
}
@keyframes kinetic-stage-enter { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes kinetic-thumb-enter { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

html[data-design-profile="cosmic-portal"] .profile-cosmic-portal .portal-hero {
  grid-template-columns: minmax(0, .95fr) minmax(250px, 420px);
  min-height: 560px;
  padding-top: 70px;
}
html[data-design-profile="cosmic-portal"] .profile-cosmic-portal .portal-hero h1 { max-width: 11ch; }
html[data-design-profile="cosmic-portal"] .profile-cosmic-portal .hero-game { border-radius: 50%; padding: 18px; aspect-ratio: 1; place-content: center; box-shadow: 0 0 0 18px rgba(56,217,255,.08), 0 0 0 42px rgba(140,255,184,.04), 0 34px 90px rgba(0,0,0,.52); }
html[data-design-profile="cosmic-portal"] .block-orbital-category-map.game-section .icon-board,
html[data-design-profile="cosmic-portal"] .block-orbital-category-map.game-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; align-items: center; }
html[data-design-profile="cosmic-portal"] .block-orbital-category-map .icon-card:nth-child(8n+1) { grid-column: span 2; }
html[data-design-profile="cosmic-portal"] .block-orbital-category-map .thumb-link img { border-radius: 50%; border-color: rgba(238,247,255,.62); }
html[data-design-profile="cosmic-portal"] .block-fuel-cell-products .product-card { border-radius: 999px; min-height: 116px; align-content: center; background: radial-gradient(circle at 30% 0%, rgba(56,217,255,.25), rgba(13,22,40,.92)); color: var(--text); }
html[data-design-profile="cosmic-portal"] .block-fuel-cell-products .product-card em { color: var(--muted); }

html[data-design-profile="toybox-casual"] .profile-toybox-casual .portal-hero {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 310px);
  gap: 38px;
  min-height: 500px;
}
html[data-design-profile="toybox-casual"] .profile-toybox-casual .portal-hero h1 { max-width: 12ch; font-size: clamp(42px, 6.6vw, 78px); }
html[data-design-profile="toybox-casual"] .profile-toybox-casual .hero-game { border-radius: 38px; transform: rotate(-5deg); }
html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento.game-section .icon-board,
html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento.game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento .icon-card:nth-child(10n+1),
html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento .icon-card:nth-child(10n+6) { grid-column: span 2; }
html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento .thumb-link img { border-radius: 30px; border-width: 5px; }
html[data-design-profile="toybox-casual"] .block-toy-price-tag-products .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-design-profile="toybox-casual"] .block-toy-price-tag-products .product-card:nth-child(odd) { transform: rotate(-1deg); }
html[data-design-profile="toybox-casual"] .block-toy-price-tag-products .product-card:nth-child(even) { transform: rotate(1deg); }

html[data-design-profile="midnight-lounge"] .profile-midnight-lounge .portal-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, 320px);
  min-height: 540px;
  padding-top: 74px;
}
html[data-design-profile="midnight-lounge"] .profile-midnight-lounge .portal-hero h1 { max-width: 14ch; font-size: clamp(38px, 5.8vw, 72px); text-transform: none; }
html[data-design-profile="midnight-lounge"] .profile-midnight-lounge .hero-game { transform: none; border-radius: 32px; background: rgba(255,255,255,.08); color: var(--text); }
html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves.game-section .icon-board,
html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves.game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves .icon-card:nth-child(5n+2),
html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves .icon-card:nth-child(5n+4) { margin-top: 38px; }
html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves .thumb-link img { border-radius: 999px 999px 28px 28px; border-color: rgba(255,255,255,.3); }
html[data-design-profile="midnight-lounge"] .block-concierge-card-checkout .product-list,
html[data-design-profile="midnight-lounge"] .block-concierge-card-checkout .payment-card { background: rgba(7,8,13,.78); color: var(--text); border-color: rgba(214,167,96,.22); }
html[data-design-profile="midnight-lounge"] .block-concierge-card-checkout .product-card { background: linear-gradient(135deg, rgba(214,167,96,.18), rgba(255,255,255,.06)); color: var(--text); }
html[data-design-profile="midnight-lounge"] .block-concierge-card-checkout .product-card em,
html[data-design-profile="midnight-lounge"] .block-concierge-card-checkout .product-list p,
html[data-design-profile="midnight-lounge"] .block-concierge-card-checkout .payment-card p,
html[data-design-profile="midnight-lounge"] .block-concierge-card-checkout .payment-card label { color: var(--muted); }
html[data-design-profile="midnight-lounge"] .block-concierge-card-checkout .product-list .eyebrow,
html[data-design-profile="midnight-lounge"] .block-concierge-card-checkout .payment-card .eyebrow { color: var(--accent); }

html[data-design-profile="magazine-discovery"] .profile-magazine-discovery .portal-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 300px);
  min-height: 490px;
  align-items: end;
  color: #141414;
}
html[data-design-profile="magazine-discovery"] .profile-magazine-discovery .portal-hero p { color: #445044; }
html[data-design-profile="magazine-discovery"] .profile-magazine-discovery .portal-hero h1 { max-width: 13ch; font-size: clamp(44px, 7vw, 86px); line-height: .96; }
html[data-design-profile="magazine-discovery"] .profile-magazine-discovery .hero-game { transform: none; border-radius: 0; box-shadow: 14px 14px 0 rgba(20,20,20,.12), 0 28px 70px rgba(0,0,0,.22); }
html[data-design-profile="magazine-discovery"] .block-editorial-game-wall.game-section .icon-board,
html[data-design-profile="magazine-discovery"] .block-editorial-game-wall.game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
html[data-design-profile="magazine-discovery"] .block-editorial-game-wall .icon-card:nth-child(6n+1) { grid-column: span 2; }
html[data-design-profile="magazine-discovery"] .block-editorial-game-wall .icon-card:nth-child(6n+1) .thumb-link img { aspect-ratio: 16 / 10; }
html[data-design-profile="magazine-discovery"] .block-editorial-game-wall .thumb-link img { border-radius: 0; border-width: 1px; box-shadow: none; }
html[data-design-profile="magazine-discovery"] .block-membership-recharge-table .product-grid { grid-template-columns: 1fr; }
html[data-design-profile="magazine-discovery"] .block-membership-recharge-table .product-card { min-height: 82px; grid-template-columns: 120px 1fr 1fr; align-items: center; border-radius: 0; }

@media (max-width: 980px) {
  html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid .icon-board,
  html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid.game-section .icon-board,
  html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid.game-grid,
  html[data-design-profile="sports-scoreboard"] .block-league-table-grid.game-section .icon-board,
  html[data-design-profile="sports-scoreboard"] .block-league-table-grid.game-grid,
  html[data-design-profile="cosmic-portal"] .block-orbital-category-map.game-section .icon-board,
  html[data-design-profile="cosmic-portal"] .block-orbital-category-map.game-grid,
  html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento.game-section .icon-board,
  html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento.game-grid,
  html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves.game-section .icon-board,
  html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves.game-grid,
  html[data-design-profile="magazine-discovery"] .block-editorial-game-wall.game-section .icon-board,
  html[data-design-profile="magazine-discovery"] .block-editorial-game-wall.game-grid,
  html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery.game-section .icon-board,
  html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery.game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html[data-design-profile="sports-scoreboard"] .home-strip,
  html[data-design-profile="sports-scoreboard"] .block-energy-pack-scorecards .product-grid,
  html[data-design-profile="toybox-casual"] .block-toy-price-tag-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-design-profile="magazine-discovery"] .block-membership-recharge-table .product-card { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  html[data-design-profile] body { background-attachment: scroll; }
  html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid .icon-board,
  html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid.game-section .icon-board,
  html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid.game-grid,
  html[data-design-profile="sports-scoreboard"] .block-league-table-grid.game-section .icon-board,
  html[data-design-profile="sports-scoreboard"] .block-league-table-grid.game-grid,
  html[data-design-profile="cosmic-portal"] .block-orbital-category-map.game-section .icon-board,
  html[data-design-profile="cosmic-portal"] .block-orbital-category-map.game-grid,
  html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento.game-section .icon-board,
  html[data-design-profile="toybox-casual"] .block-mixed-sticker-bento.game-grid,
  html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves.game-section .icon-board,
  html[data-design-profile="midnight-lounge"] .block-curated-wave-shelves.game-grid,
  html[data-design-profile="magazine-discovery"] .block-editorial-game-wall.game-section .icon-board,
  html[data-design-profile="magazine-discovery"] .block-editorial-game-wall.game-grid,
  html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery.game-section .icon-board,
  html[data-design-profile="kinetic-scoreboard"] .block-heat-grid-gallery.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-design-profile] .icon-card,
  html[data-design-profile] .icon-card:nth-child(n),
  html[data-design-profile] .product-card:nth-child(n) { grid-column: auto; margin-top: 0; transform: none; }
  html[data-design-profile="arcade-poster"] .block-cabinet-marquee-grid .icon-card:nth-child(9n+1) .thumb-link img,
  html[data-design-profile="magazine-discovery"] .block-editorial-game-wall .icon-card:nth-child(6n+1) .thumb-link img { aspect-ratio: 1; }
}

@media (max-width: 580px) {
  html[data-design-profile] .profile-arcade-poster .portal-hero,
  html[data-design-profile] .profile-sports-scoreboard .portal-hero,
  html[data-design-profile] .profile-cosmic-portal .portal-hero,
  html[data-design-profile] .profile-toybox-casual .portal-hero,
  html[data-design-profile] .profile-midnight-lounge .portal-hero,
  html[data-design-profile] .profile-magazine-discovery .portal-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
    padding-top: 28px;
  }
}

/* Vorexat readability pass: keep the lounge atmosphere but avoid pale text on glass panels. */
html[data-design-profile="midnight-lounge"] .cashier-hero {
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(7, 8, 13, .9), rgba(54, 37, 13, .82) 52%, rgba(8, 47, 40, .78)),
    radial-gradient(circle at 92% 10%, rgba(240, 180, 91, .28), transparent 18rem);
  border-color: rgba(240, 180, 91, .32);
}
html[data-design-profile="midnight-lounge"] .cashier-info-copy h1,
html[data-design-profile="midnight-lounge"] .cashier-info-copy p,
html[data-design-profile="midnight-lounge"] .cashier-hero .eyebrow {
  color: #fffaf0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .42);
}
html[data-design-profile="midnight-lounge"] .cashier-info-copy p { opacity: .88; }
html[data-design-profile="midnight-lounge"] .cashier-meter,
html[data-design-profile="midnight-lounge"] .currency-switch {
  background: rgba(244, 239, 229, .94);
  color: #08090d;
}
html[data-design-profile="midnight-lounge"] .custom-recharge {
  color: #fffaf0;
  background: linear-gradient(135deg, rgba(6, 20, 17, .92), rgba(43, 35, 12, .9));
  border-color: rgba(105, 214, 197, .4);
}
html[data-design-profile="midnight-lounge"] .custom-recharge strong,
html[data-design-profile="midnight-lounge"] .custom-recharge small,
html[data-design-profile="midnight-lounge"] .custom-recharge label {
  color: #fffaf0;
}
html[data-design-profile="midnight-lounge"] .custom-recharge small { opacity: .8; }

/* Checkout form contrast fix: use readable ivory form sections inside the dark lounge shell. */
html[data-design-profile="midnight-lounge"] .checkout-panel.payment-card {
  background: rgba(7, 8, 13, .94);
  border-color: rgba(240, 180, 91, .34);
  color: #fffaf0;
}
html[data-design-profile="midnight-lounge"] .checkout-panel .checkout-heading h2,
html[data-design-profile="midnight-lounge"] .checkout-panel .eyebrow,
html[data-design-profile="midnight-lounge"] .checkout-panel > .muted {
  color: #fffaf0;
}
html[data-design-profile="midnight-lounge"] .checkout-panel .checkout-heading span {
  color: #08090d;
  background: #f0b45b;
}
html[data-design-profile="midnight-lounge"] .checkout-form .form-group {
  background: #fffaf0;
  border: 1px solid rgba(8, 9, 13, .16);
  color: #10110f;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
html[data-design-profile="midnight-lounge"] .checkout-form .form-group h3,
html[data-design-profile="midnight-lounge"] .checkout-form .form-group label,
html[data-design-profile="midnight-lounge"] .checkout-form .form-group strong {
  color: #10110f;
}
html[data-design-profile="midnight-lounge"] .checkout-form .form-group label {
  font-size: 15px;
  font-weight: 950;
}
html[data-design-profile="midnight-lounge"] .checkout-form input,
html[data-design-profile="midnight-lounge"] .checkout-form textarea {
  color: #10110f;
  background: #ffffff;
  border: 2px solid rgba(8, 9, 13, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
html[data-design-profile="midnight-lounge"] .checkout-form input:focus,
html[data-design-profile="midnight-lounge"] .checkout-form textarea:focus {
  border-color: #0f7cff;
  box-shadow: 0 0 0 4px rgba(15, 124, 255, .18);
}
html[data-design-profile="midnight-lounge"] .payment-method-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}
html[data-design-profile="midnight-lounge"] .payment-method-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px;
  border: 2px solid rgba(8, 9, 13, .16);
  border-radius: 18px;
  color: #10110f;
  background: #ffffff;
}
html[data-design-profile="midnight-lounge"] .payment-method-card:has(input:checked) {
  border-color: #0f7cff;
  background: #eef6ff;
}
html[data-design-profile="midnight-lounge"] .payment-method-card input[type="radio"] {
  width: 28px;
  min-height: 28px;
  accent-color: #0f7cff;
  box-shadow: none;
}
html[data-design-profile="midnight-lounge"] .payment-method-card span {
  display: grid;
  gap: 4px;
}
html[data-design-profile="midnight-lounge"] .payment-method-card small {
  color: #4b5563;
  font-size: 14px;
  font-weight: 800;
}

/* Broadcast scoreboard: a compact night-channel system with real game counts and a playable rundown. */
html[data-design-profile="broadcast-scoreboard"] {
  --font-display: 'DIN Condensed', 'Franklin Gothic Condensed', 'Avenir Next Condensed', sans-serif;
  --font-body: 'IBM Plex Sans', 'Avenir Next', 'Gill Sans', sans-serif;
  --font-mono: 'SFMono-Regular', 'IBM Plex Mono', Consolas, monospace;
  --card: #f2f5f7;
  --on-accent: #0b1424;
  --on-accent-2: #0b1424;
  --surface-solid: #f2f5f7;
  --surface-text: #0b1424;
  --surface-muted: #4d6078;
  --surface-accent: #805000;
  --line: rgba(175, 192, 212, .2);
}
html[data-design-profile="broadcast-scoreboard"] body {
  background:
    linear-gradient(118deg, transparent 0 64%, rgba(235, 175, 69, .09) 64.1% 65.2%, transparent 65.3%),
    repeating-linear-gradient(90deg, rgba(175, 192, 212, .035) 0 1px, transparent 1px 80px),
    radial-gradient(circle at 78% 8%, rgba(235, 175, 69, .16), transparent 27rem),
    linear-gradient(180deg, #07101e, var(--bg) 42%, #0e1c2e 100%);
}
html[data-design-profile="broadcast-scoreboard"] body::before {
  opacity: .24;
  background-image: repeating-linear-gradient(135deg, transparent 0 28px, rgba(175, 192, 212, .08) 29px 30px);
  background-size: auto;
}
html[data-design-profile="broadcast-scoreboard"] .sitebar.block-broadcast-rail {
  grid-template-columns: minmax(190px, auto) auto minmax(180px, 1fr) auto;
  gap: 14px;
  width: min(1380px, calc(100% - 28px));
  min-height: 62px;
  border: 1px solid rgba(175, 192, 212, .24);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(7, 16, 30, .95);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .34);
}
html[data-design-profile="broadcast-scoreboard"] .block-broadcast-rail .brand {
  color: var(--text);
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[data-design-profile="broadcast-scoreboard"] .block-broadcast-rail .brand-mark {
  border: 0;
  border-radius: var(--radius);
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: none;
}
html[data-design-profile="broadcast-scoreboard"] .block-broadcast-rail .primary-nav {
  flex-wrap: nowrap;
  gap: clamp(8px, 1vw, 16px);
  letter-spacing: .06em;
  white-space: nowrap;
}
html[data-design-profile="broadcast-scoreboard"] .block-broadcast-rail .primary-nav a::before {
  width: 10px;
  height: 3px;
  border-radius: 0;
  box-shadow: none;
}
html[data-design-profile="broadcast-scoreboard"] .block-broadcast-rail .search-box,
html[data-design-profile="broadcast-scoreboard"] .block-broadcast-rail .account-chip a,
html[data-design-profile="broadcast-scoreboard"] .block-broadcast-rail .account-chip button {
  border-radius: var(--radius);
}

html[data-design-profile="broadcast-scoreboard"] .block-score-headliner .hero-broadcast {
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 0;
  min-height: 540px;
  margin-top: 26px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(175, 192, 212, .28);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(122deg, rgba(18, 35, 58, .97), rgba(8, 19, 34, .94));
  box-shadow: 18px 20px 0 rgba(5, 11, 21, .46), 0 36px 80px rgba(0, 0, 0, .28);
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
  border-right: 1px solid rgba(175, 192, 212, .2);
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-copy h1 {
  max-width: 10ch;
  color: var(--text);
  font-size: clamp(48px, 6.3vw, 84px);
  line-height: .88;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-copy > p:not(.eyebrow) {
  max-width: 48ch;
  color: var(--muted);
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-bug {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 34px;
  border: 1px solid rgba(175, 192, 212, .28);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-bug span,
html[data-design-profile="broadcast-scoreboard"] .broadcast-bug b { padding: 7px 10px; }
html[data-design-profile="broadcast-scoreboard"] .broadcast-bug span { color: var(--on-accent); background: var(--accent); }
html[data-design-profile="broadcast-scoreboard"] .broadcast-bug b { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
html[data-design-profile="broadcast-scoreboard"] .broadcast-scoreline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  border-block: 1px solid rgba(175, 192, 212, .22);
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-scoreline span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 8px 14px 8px 0;
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-scoreline span + span { padding-left: 14px; border-left: 1px solid rgba(175, 192, 212, .22); }
html[data-design-profile="broadcast-scoreboard"] .broadcast-scoreline small { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
html[data-design-profile="broadcast-scoreboard"] .broadcast-scoreline b { color: var(--accent); font-family: var(--font-display); font-size: 32px; line-height: 1; }
html[data-design-profile="broadcast-scoreboard"] .block-score-headliner .pill { border-radius: var(--radius); box-shadow: 5px 5px 0 rgba(0, 0, 0, .28); text-transform: uppercase; }
html[data-design-profile="broadcast-scoreboard"] .broadcast-feature {
  position: relative;
  align-self: stretch;
  min-height: 500px;
  padding: 66px 28px 28px;
  overflow: hidden;
  background:
    linear-gradient(145deg, transparent 0 49%, rgba(235, 175, 69, .11) 49.2% 52%, transparent 52.2%),
    repeating-linear-gradient(0deg, transparent 0 45px, rgba(175, 192, 212, .06) 46px 47px);
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-feature::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(175, 192, 212, .13);
  pointer-events: none;
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-channel {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(175, 192, 212, .28);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-channel b { color: var(--accent); }
html[data-design-profile="broadcast-scoreboard"] .broadcast-lead {
  z-index: 1;
  width: min(340px, 74%);
  margin: 10px 0 18px auto;
  border: 0;
  border-radius: var(--radius);
  color: var(--surface-text);
  background: var(--surface-solid);
  box-shadow: -12px 14px 0 var(--accent), 0 24px 50px rgba(0, 0, 0, .34);
  transform: none;
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-lead img { aspect-ratio: 16 / 10; border-radius: 0; }
html[data-design-profile="broadcast-scoreboard"] .broadcast-lead span { border-radius: 0; }
html[data-design-profile="broadcast-scoreboard"] .broadcast-rundown {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(360px, 88%);
  margin-top: -16px;
  background: rgba(7, 16, 30, .9);
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-rundown a {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border-top: 1px solid rgba(175, 192, 212, .22);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
html[data-design-profile="broadcast-scoreboard"] .broadcast-rundown a:last-child { border-bottom: 1px solid rgba(175, 192, 212, .22); }
html[data-design-profile="broadcast-scoreboard"] .broadcast-rundown b { color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
html[data-design-profile="broadcast-scoreboard"] .broadcast-rundown img { width: 54px; aspect-ratio: 16 / 10; object-fit: cover; }
html[data-design-profile="broadcast-scoreboard"] .broadcast-rundown span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

html[data-design-profile="broadcast-scoreboard"] .block-channel-cards.game-section .icon-board,
html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .game-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .icon-card {
  padding: 9px;
  border: 1px solid rgba(175, 192, 212, .2);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(18, 35, 58, .88);
}
html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .thumb-link img {
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .icon-tags { left: 14px; top: 14px; }
html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .icon-tags span { border-radius: 0; box-shadow: none; }
html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .icon-meta strong { color: var(--text); font-family: var(--font-display); font-size: 15px; letter-spacing: .025em; text-transform: uppercase; }
html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .icon-meta small { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; }
html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .card-actions { opacity: 1; transform: none; }
html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .card-actions button { border-radius: 0; color: var(--on-accent); background: var(--accent); text-transform: uppercase; }
html[data-design-profile="broadcast-scoreboard"] .home-strip { grid-template-columns: 1.4fr .8fr .8fr; gap: 1px; margin-top: 26px; border: 1px solid rgba(175, 192, 212, .2); background: rgba(175, 192, 212, .2); }
html[data-design-profile="broadcast-scoreboard"] .home-strip div { border: 0; border-radius: 0; background: rgba(18, 35, 58, .96); box-shadow: none; }
html[data-design-profile="broadcast-scoreboard"] .home-strip strong { color: var(--accent); }
html[data-design-profile="broadcast-scoreboard"] .home-strip span { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  html[data-design-profile="broadcast-scoreboard"] .broadcast-copy { animation: broadcast-copy-enter .52s cubic-bezier(.16, 1, .3, 1) both; }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-feature { animation: broadcast-feature-enter .58s cubic-bezier(.16, 1, .3, 1) .08s both; }
}
@keyframes broadcast-copy-enter { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes broadcast-feature-enter { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 980px) {
  html[data-design-profile="broadcast-scoreboard"] .sitebar.block-broadcast-rail { grid-template-columns: 1fr auto; }
  html[data-design-profile="broadcast-scoreboard"] .block-broadcast-rail .primary-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }
  html[data-design-profile="broadcast-scoreboard"] .block-score-headliner .hero-broadcast { grid-template-columns: 1fr; min-height: auto; }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-copy { border-right: 0; border-bottom: 1px solid rgba(175, 192, 212, .2); }
  html[data-design-profile="broadcast-scoreboard"] .block-channel-cards.game-section .icon-board,
  html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  html[data-design-profile="broadcast-scoreboard"] .sitebar.block-broadcast-rail { width: min(100% - 18px, 1120px); }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-copy { padding: 28px 20px 32px; }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-copy h1 { font-size: 44px; }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-bug { margin-bottom: 24px; }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-scoreline { grid-template-columns: 1fr; }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-scoreline span + span { padding-left: 0; border-top: 1px solid rgba(175, 192, 212, .22); border-left: 0; }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-feature { min-height: auto; padding: 66px 18px 24px; }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-lead { width: calc(100% - 12px); margin-right: 0; }
  html[data-design-profile="broadcast-scoreboard"] .broadcast-rundown { width: 100%; margin-top: 28px; }
  html[data-design-profile="broadcast-scoreboard"] .block-channel-cards.game-section .icon-board,
  html[data-design-profile="broadcast-scoreboard"] .block-channel-cards .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-design-profile="broadcast-scoreboard"] .home-strip { grid-template-columns: 1fr; }
}

/* Flat Nova Night keeps every player-facing route in one calm, dark system. */
html[data-design-profile="flat-nova-night"] {
  --font-display: 'Avenir Next', 'Helvetica Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Avenir Next', 'Helvetica Neue', sans-serif;
  --font-mono: 'SFMono-Regular', 'Roboto Mono', Consolas, monospace;
  --bg: #0b1212;
  --bg-2: #0e1918;
  --card: #111e1d;
  --panel: #111e1d;
  --panel-strong: #162726;
  --text: #e5f2ef;
  --muted: #9ab4ad;
  --accent: #35c8a8;
  --accent-2: #35c8a8;
  --on-accent: #06231e;
  --on-accent-2: #06231e;
  --surface-solid: #111e1d;
  --surface-text: #e5f2ef;
  --surface-muted: #9ab4ad;
  --surface-accent: #35c8a8;
  --line: rgba(154, 180, 173, .2);
  --danger: #ef7468;
  --shadow: none;
  --soft-shadow: none;
  --radius: 8px;
  color-scheme: dark;
}
html[data-design-profile="flat-nova-night"] body {
  color: var(--text);
  background: linear-gradient(180deg, #0b1212 0%, #0d1717 100%);
  background-image: linear-gradient(180deg, #0b1212 0%, #0d1717 100%);
  background-attachment: scroll;
}
html[data-design-profile="flat-nova-night"] body::before { opacity: 0; }
html[data-design-profile="flat-nova-night"] :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 78%, transparent);
  outline-offset: 3px;
}
html[data-design-profile="flat-nova-night"] .sitebar.block-nova-night-rail {
  top: 0;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  gap: clamp(10px, 1.5vw, 20px);
  min-height: 64px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: rgba(11, 18, 18, .96);
  box-shadow: none;
  backdrop-filter: none;
}
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .brand {
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .primary-nav {
  flex-wrap: nowrap;
  gap: clamp(8px, 1vw, 16px);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .055em;
  white-space: nowrap;
}
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .primary-nav a::before { display: none; }
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .primary-nav a.active,
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .primary-nav a:hover { color: var(--accent); }
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .search-box {
  grid-template-columns: 1fr 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .search-box input {
  color: var(--text);
  background: transparent;
}
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .search-box input::placeholder { color: var(--muted); }
html[data-design-profile="flat-nova-night"] .block-nova-night-rail .search-box button {
  color: var(--on-accent);
  background: var(--accent);
}
html[data-design-profile="flat-nova-night"] .account-chip { color: var(--muted); }
html[data-design-profile="flat-nova-night"] .account-chip span { color: var(--muted); }
html[data-design-profile="flat-nova-night"] .account-chip a,
html[data-design-profile="flat-nova-night"] .account-chip button,
html[data-design-profile="flat-nova-night"] .pill {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  box-shadow: none;
  font-family: var(--font-display);
  font-weight: 750;
}
html[data-design-profile="flat-nova-night"] .account-chip a:first-of-type,
html[data-design-profile="flat-nova-night"] .pill.primary {
  border-color: var(--accent);
  color: var(--on-accent);
  background: var(--accent);
}
html[data-design-profile="flat-nova-night"] .account-chip button,
html[data-design-profile="flat-nova-night"] .pill.dark { color: var(--text); background: #101b1a; }
html[data-design-profile="flat-nova-night"] .pill:hover,
html[data-design-profile="flat-nova-night"] .account-chip a:hover,
html[data-design-profile="flat-nova-night"] .account-chip button:hover { border-color: var(--accent); }
html[data-design-profile="flat-nova-night"] .pill:active,
html[data-design-profile="flat-nova-night"] .account-chip a:active,
html[data-design-profile="flat-nova-night"] .account-chip button:active { transform: translateY(1px); }

html[data-design-profile="flat-nova-night"] .block-nova-night-split .hero-nova-night {
  grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
  gap: clamp(32px, 6vw, 88px);
  min-height: min(540px, calc(100dvh - 84px));
  padding: clamp(32px, 5vw, 64px) 0 36px;
  color: var(--text);
}
html[data-design-profile="flat-nova-night"] .nova-night-copy { align-self: center; max-width: 640px; }
html[data-design-profile="flat-nova-night"] .nova-night-copy .eyebrow { color: var(--accent); letter-spacing: .1em; }
html[data-design-profile="flat-nova-night"] .nova-night-copy h1 {
  max-width: 10ch;
  color: var(--text);
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: .96;
  letter-spacing: -.055em;
}
html[data-design-profile="flat-nova-night"] .nova-night-copy > p:not(.eyebrow) {
  max-width: 46ch;
  color: var(--muted);
}
html[data-design-profile="flat-nova-night"] .nova-night-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .44fr);
  gap: 14px;
  align-items: end;
}
html[data-design-profile="flat-nova-night"] .nova-night-lead {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  box-shadow: none;
  transform: none;
}
html[data-design-profile="flat-nova-night"] .nova-night-lead img {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}
html[data-design-profile="flat-nova-night"] .nova-night-lead small {
  display: block;
  padding: 14px 16px 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-design-profile="flat-nova-night"] .nova-night-lead strong {
  display: block;
  padding: 3px 16px 16px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 26px);
}
html[data-design-profile="flat-nova-night"] .nova-night-queue {
  display: grid;
  align-self: stretch;
  align-content: end;
  border-top: 1px solid var(--line);
}
html[data-design-profile="flat-nova-night"] .nova-night-queue a {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
html[data-design-profile="flat-nova-night"] .nova-night-queue a:hover { color: var(--accent); }
html[data-design-profile="flat-nova-night"] .home-strip-nova-night {
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: 0;
  margin: 0 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
html[data-design-profile="flat-nova-night"] .home-strip-nova-night div {
  min-height: 84px;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .home-strip-nova-night div + div { padding-left: clamp(18px, 3vw, 42px); border-left: 1px solid var(--line); }
html[data-design-profile="flat-nova-night"] .home-strip-nova-night span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-design-profile="flat-nova-night"] .home-strip-nova-night strong {
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 34px);
}

html[data-design-profile="flat-nova-night"] .section-title,
html[data-design-profile="flat-nova-night"] .library-head { margin-top: 34px; }
html[data-design-profile="flat-nova-night"] .section-title h2,
html[data-design-profile="flat-nova-night"] .library-head h1,
html[data-design-profile="flat-nova-night"] .auth-card h2,
html[data-design-profile="flat-nova-night"] .dash-side h1,
html[data-design-profile="flat-nova-night"] .payment-card h2 { color: var(--text); }
html[data-design-profile="flat-nova-night"] .section-title a { color: var(--accent); }
html[data-design-profile="flat-nova-night"] .library-head p,
html[data-design-profile="flat-nova-night"] .library-head .eyebrow { color: var(--muted); }
html[data-design-profile="flat-nova-night"] .block-nova-night-card-grid.game-section .icon-board,
html[data-design-profile="flat-nova-night"] .block-nova-night-card-grid .game-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 16px;
}
html[data-design-profile="flat-nova-night"] .nova-night-card { min-width: 0; }
html[data-design-profile="flat-nova-night"] .nova-night-card .thumb-link img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .nova-night-card .thumb-link:hover img,
html[data-design-profile="flat-nova-night"] .nova-night-card .thumb-link:focus-visible img {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .nova-night-card .icon-tags { display: none; }
html[data-design-profile="flat-nova-night"] .nova-night-card .icon-meta {
  display: grid;
  gap: 3px;
  min-height: 0;
  margin-top: 10px;
}
html[data-design-profile="flat-nova-night"] .nova-night-card .icon-meta small {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[data-design-profile="flat-nova-night"] .nova-night-card .icon-meta strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}
html[data-design-profile="flat-nova-night"] .nova-night-card .icon-meta span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
html[data-design-profile="flat-nova-night"] .nova-night-card .card-actions {
  display: block;
  margin-top: 10px;
  opacity: 1;
  transform: none;
}
html[data-design-profile="flat-nova-night"] .nova-night-card .card-actions button {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  font-size: 11px;
}
html[data-design-profile="flat-nova-night"] .nova-night-card .card-actions button:hover {
  border-color: var(--accent);
  color: var(--on-accent);
  background: var(--accent);
}
html[data-design-profile="flat-nova-night"] .nova-night-card.maintenance { opacity: .64; filter: none; }
html[data-design-profile="flat-nova-night"] .nova-night-card.maintenance .thumb-link::after { display: none; }
html[data-design-profile="flat-nova-night"] .filter-bar button,
html[data-design-profile="flat-nova-night"] .chip {
  border-color: var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .filter-bar button.active,
html[data-design-profile="flat-nova-night"] .chip.active {
  border-color: var(--accent);
  color: var(--on-accent);
  background: var(--accent);
}
html[data-design-profile="flat-nova-night"] .search-summary,
html[data-design-profile="flat-nova-night"] .category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .category-card.active,
html[data-design-profile="flat-nova-night"] .category-card:hover { border-color: var(--accent); }

html[data-design-profile="flat-nova-night"] .auth-art,
html[data-design-profile="flat-nova-night"] .auth-card,
html[data-design-profile="flat-nova-night"] .protected-page section,
html[data-design-profile="flat-nova-night"] .checkout-summary,
html[data-design-profile="flat-nova-night"] .payment-card,
html[data-design-profile="flat-nova-night"] .checkout-receipt,
html[data-design-profile="flat-nova-night"] .checkout-result,
html[data-design-profile="flat-nova-night"] .dash-side,
html[data-design-profile="flat-nova-night"] .dash-main,
html[data-design-profile="flat-nova-night"] .policy-grid article,
html[data-design-profile="flat-nova-night"] .contact-copy,
html[data-design-profile="flat-nova-night"] .contact-card,
html[data-design-profile="flat-nova-night"] .policy-index,
html[data-design-profile="flat-nova-night"] .policy-document {
  border-color: var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  box-shadow: none;
  backdrop-filter: none;
}
html[data-design-profile="flat-nova-night"] .auth-art,
html[data-design-profile="flat-nova-night"] .contact-copy { background: var(--panel-strong); }
html[data-design-profile="flat-nova-night"] .auth-page p,
html[data-design-profile="flat-nova-night"] .contact-page p,
html[data-design-profile="flat-nova-night"] .policy-page p,
html[data-design-profile="flat-nova-night"] .dashboard-shell p { color: var(--muted); }
html[data-design-profile="flat-nova-night"] .cashier-hero {
  border-color: var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .cashier-hero h1,
html[data-design-profile="flat-nova-night"] .cashier-hero p,
html[data-design-profile="flat-nova-night"] .cashier-hero .eyebrow { color: var(--text); text-shadow: none; }
html[data-design-profile="flat-nova-night"] .cashier-meter,
html[data-design-profile="flat-nova-night"] .currency-switch,
html[data-design-profile="flat-nova-night"] .custom-recharge,
html[data-design-profile="flat-nova-night"] .product-list,
html[data-design-profile="flat-nova-night"] .checkout-panel.payment-card {
  border-color: var(--line);
  color: var(--text);
  background: var(--panel);
}
html[data-design-profile="flat-nova-night"] .product-card {
  border-color: var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .product-card:hover,
html[data-design-profile="flat-nova-night"] .product-card.active { border-color: var(--accent); box-shadow: none; }
html[data-design-profile="flat-nova-night"] .product-card span,
html[data-design-profile="flat-nova-night"] .product-card .product-action {
  border-radius: var(--radius);
  color: var(--on-accent);
  background: var(--accent);
}
html[data-design-profile="flat-nova-night"] .product-card em,
html[data-design-profile="flat-nova-night"] .product-list p,
html[data-design-profile="flat-nova-night"] .payment-card p,
html[data-design-profile="flat-nova-night"] .payment-card label,
html[data-design-profile="flat-nova-night"] .contact-methods dt,
html[data-design-profile="flat-nova-night"] .policy-index a { color: var(--muted); }
html[data-design-profile="flat-nova-night"] .payment-card h2,
html[data-design-profile="flat-nova-night"] .checkout-heading h2,
html[data-design-profile="flat-nova-night"] .contact-copy h1,
html[data-design-profile="flat-nova-night"] .contact-card h2,
html[data-design-profile="flat-nova-night"] .policy-document h1,
html[data-design-profile="flat-nova-night"] .policy-document h2,
html[data-design-profile="flat-nova-night"] .dash-main h2 { color: var(--text); }
html[data-design-profile="flat-nova-night"] .cashier input,
html[data-design-profile="flat-nova-night"] .cashier textarea,
html[data-design-profile="flat-nova-night"] .auth-card input,
html[data-design-profile="flat-nova-night"] .contact-card input,
html[data-design-profile="flat-nova-night"] .contact-card textarea {
  border-color: var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0c1615;
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .cashier input:focus,
html[data-design-profile="flat-nova-night"] .cashier textarea:focus,
html[data-design-profile="flat-nova-night"] .auth-card input:focus,
html[data-design-profile="flat-nova-night"] .contact-card input:focus,
html[data-design-profile="flat-nova-night"] .contact-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(53, 200, 168, .2); }
html[data-design-profile="flat-nova-night"] .payment-method-card,
html[data-design-profile="flat-nova-night"] .success-detail-grid span {
  border-color: var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0c1615;
}
html[data-design-profile="flat-nova-night"] .payment-method-card:has(input:checked) { border-color: var(--accent); background: #102421; }
html[data-design-profile="flat-nova-night"] .payment-method-card small,
html[data-design-profile="flat-nova-night"] .success-detail-grid b { color: var(--muted); }
html[data-design-profile="flat-nova-night"] .policy-index a.active,
html[data-design-profile="flat-nova-night"] .policy-index a:hover { color: var(--on-accent); background: var(--accent); }
html[data-design-profile="flat-nova-night"] .policy-index a span { border-radius: var(--radius); background: rgba(53, 200, 168, .14); }
html[data-design-profile="flat-nova-night"] .policy-document a,
html[data-design-profile="flat-nova-night"] .contact-copy a,
html[data-design-profile="flat-nova-night"] .contact-card a { color: var(--accent); }
html[data-design-profile="flat-nova-night"] .table-wrap { border-color: var(--line); background: #0c1615; }
html[data-design-profile="flat-nova-night"] .table-wrap th,
html[data-design-profile="flat-nova-night"] .table-wrap td { border-color: var(--line); color: var(--text); }
html[data-design-profile="flat-nova-night"] .notice,
html[data-design-profile="flat-nova-night"] .auth-modal {
  border-color: var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .4);
}
html[data-design-profile="flat-nova-night"] .auth-modal p { color: var(--muted); }
html[data-design-profile="flat-nova-night"] .modal-close { border-radius: var(--radius); color: var(--text); background: #0c1615; box-shadow: none; }
html[data-design-profile="flat-nova-night"] .modal-choice-summary,
html[data-design-profile="flat-nova-night"] .success-coin-badge,
html[data-design-profile="flat-nova-night"] .funds-gap-badge,
html[data-design-profile="flat-nova-night"] .maintenance-badge { border-radius: var(--radius); color: var(--on-accent); background: var(--accent); box-shadow: none; }
html[data-design-profile="flat-nova-night"] .site-footer { color: var(--text); }
html[data-design-profile="flat-nova-night"] .footer-shell {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .footer-kicker,
html[data-design-profile="flat-nova-night"] .footer-company-details dt,
html[data-design-profile="flat-nova-night"] .footer-hours span,
html[data-design-profile="flat-nova-night"] .footer-policy-links a span,
html[data-design-profile="flat-nova-night"] .footer-copyright { color: var(--muted); }
html[data-design-profile="flat-nova-night"] .footer-company h2,
html[data-design-profile="flat-nova-night"] .footer-company-details dd,
html[data-design-profile="flat-nova-night"] .footer-policy-links a,
html[data-design-profile="flat-nova-night"] .footer-contact-link,
html[data-design-profile="flat-nova-night"] .footer-hours strong { color: var(--text); }
html[data-design-profile="flat-nova-night"] .footer-payment-badge {
  border-color: var(--line);
  border-radius: var(--radius);
  background: #0c1615;
  box-shadow: none;
}
html[data-design-profile="flat-nova-night"] .site-footer a:hover,
html[data-design-profile="flat-nova-night"] .site-footer a:focus-visible { color: var(--accent); }

@media (max-width: 980px) {
  html[data-design-profile="flat-nova-night"] .sitebar.block-nova-night-rail { grid-template-columns: 1fr auto; }
  html[data-design-profile="flat-nova-night"] .block-nova-night-rail .primary-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }
  html[data-design-profile="flat-nova-night"] .block-nova-night-rail .search-box { grid-column: 1 / -1; }
  html[data-design-profile="flat-nova-night"] .block-nova-night-split .hero-nova-night { grid-template-columns: minmax(0, 1fr) minmax(270px, .8fr); }
  html[data-design-profile="flat-nova-night"] .block-nova-night-card-grid.game-section .icon-board,
  html[data-design-profile="flat-nova-night"] .block-nova-night-card-grid .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  html[data-design-profile="flat-nova-night"] .sitebar.block-nova-night-rail { width: min(100% - 18px, 1120px); }
  html[data-design-profile="flat-nova-night"] .block-nova-night-split .hero-nova-night {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-top: 34px;
  }
  html[data-design-profile="flat-nova-night"] .nova-night-copy h1 { max-width: 11ch; font-size: clamp(42px, 13vw, 58px); }
  html[data-design-profile="flat-nova-night"] .nova-night-stage { grid-template-columns: minmax(0, 1fr) minmax(116px, .46fr); }
  html[data-design-profile="flat-nova-night"] .nova-night-queue a { min-height: 48px; font-size: 12px; }
  html[data-design-profile="flat-nova-night"] .home-strip-nova-night { grid-template-columns: 1fr; }
  html[data-design-profile="flat-nova-night"] .home-strip-nova-night div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  html[data-design-profile="flat-nova-night"] .block-nova-night-card-grid.game-section .icon-board,
  html[data-design-profile="flat-nova-night"] .block-nova-night-card-grid .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  html[data-design-profile="flat-nova-night"] .nova-night-card .icon-meta strong { font-size: 13px; }
}

/* Xavier Carlos gives its single free game a centered, glass-backed opening stage. */
html[data-theme-id="xaviercarlos-frosted"] .frosted-home {
  padding-top: clamp(20px, 3.5vw, 46px);
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-feature {
  display: grid;
  justify-items: center;
  gap: clamp(20px, 3vw, 32px);
  width: min(100%, 840px);
  min-height: min(620px, calc(100dvh - 112px));
  margin: 0 auto;
  padding: clamp(24px, 4.5vw, 58px) clamp(14px, 3vw, 34px) clamp(30px, 5vw, 64px);
  text-align: center;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-heading h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-heading > p:not(.frosted-free-kicker) {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card {
  display: grid;
  width: min(100%, 680px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--shadow);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card:hover,
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 28px 78px rgba(1, 17, 33, .4);
  transform: translateY(-4px);
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card:active { transform: translateY(-1px); }
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-art {
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 25, 42, .32);
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-art img,
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-art .thumb-placeholder {
  width: min(100%, 620px);
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 8px);
  object-fit: cover;
  box-shadow: var(--soft-shadow);
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 13px 18px;
  color: var(--muted);
  text-align: left;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card-footer > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card-footer strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: calc(var(--radius) - 6px);
  color: var(--on-accent);
  background: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-library-head {
  display: block;
  margin: clamp(20px, 4vw, 44px) 0 18px;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-library-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
html[data-theme-id="xaviercarlos-frosted"] .frosted-library-head p { margin: 8px 0 0; color: var(--muted); }

@media (max-width: 580px) {
  html[data-theme-id="xaviercarlos-frosted"] .frosted-home { padding-top: 12px; }
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-feature {
    min-height: 0;
    padding: 24px 0 34px;
  }
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-heading h1 { font-size: clamp(40px, 13vw, 56px); }
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card-footer {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card-footer strong { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-heading,
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card {
    animation: frosted-free-enter .56s cubic-bezier(.16, 1, .3, 1) both;
  }
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card { animation-delay: .08s; }
}
@keyframes frosted-free-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card { transition: none; }
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card:hover,
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card:focus-visible,
  html[data-theme-id="xaviercarlos-frosted"] .frosted-free-card:active { transform: none; }
}

/* Galaga Assault Flat is a site-scoped evolution of the flat Nova renderer. */
html[data-theme-id="galaga-assault-flat"] body {
  background: var(--bg);
  background-image: none;
}
html[data-theme-id="galaga-assault-flat"] .sitebar.block-nova-night-rail {
  background: var(--bg);
}
html[data-theme-id="galaga-assault-flat"] .block-nova-night-rail .brand-mark {
  border-radius: 3px;
  color: var(--on-accent);
  background: var(--accent);
}
html[data-theme-id="galaga-assault-flat"] .account-chip button,
html[data-theme-id="galaga-assault-flat"] .pill.dark,
html[data-theme-id="galaga-assault-flat"] .table-wrap,
html[data-theme-id="galaga-assault-flat"] .modal-close,
html[data-theme-id="galaga-assault-flat"] .footer-payment-badge {
  background: var(--panel);
}
html[data-theme-id="galaga-assault-flat"] .galaga-home {
  padding-top: clamp(22px, 4vw, 48px);
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease;
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-card:hover,
html[data-theme-id="galaga-assault-flat"] .galaga-feature-card:focus-within {
  border-color: var(--accent);
  transform: translateY(-2px);
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-link {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  min-height: 420px;
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-art {
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 24px);
  border-right: 1px solid var(--line);
  background: var(--panel-strong);
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-art img,
html[data-theme-id="galaga-assault-flat"] .galaga-feature-art .thumb-placeholder {
  width: min(100%, 372px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 2px;
  object-fit: cover;
  box-shadow: none;
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-copy h1 {
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-copy > p:not(.galaga-feature-kicker) {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--muted);
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-meta {
  margin-top: 20px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[data-theme-id="galaga-assault-flat"] .galaga-feature-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  margin-top: 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--on-accent);
  background: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
html[data-theme-id="galaga-assault-flat"] .galaga-library-head {
  display: block;
  margin: clamp(36px, 6vw, 64px) 0 18px;
}
html[data-theme-id="galaga-assault-flat"] .galaga-library-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
html[data-theme-id="galaga-assault-flat"] .galaga-library-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  html[data-theme-id="galaga-assault-flat"] .galaga-feature-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  html[data-theme-id="galaga-assault-flat"] .galaga-feature-art {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  html[data-theme-id="galaga-assault-flat"] .galaga-feature-copy {
    padding: 28px 22px 30px;
  }
  html[data-theme-id="galaga-assault-flat"] .galaga-feature-copy h1 {
    font-size: clamp(38px, 12vw, 54px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme-id="galaga-assault-flat"] .galaga-feature-card {
    transition: none;
  }
  html[data-theme-id="galaga-assault-flat"] .galaga-feature-card:hover,
  html[data-theme-id="galaga-assault-flat"] .galaga-feature-card:focus-within {
    transform: none;
  }
}

/* Six-site visual overhaul. Each site owns a separate composition and card language. */
.six-home { overflow: clip; }
.six-home img { display: block; width: 100%; height: 100%; object-fit: cover; }
.six-home button { cursor: pointer; }
.six-home .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tremixo: sharp neo-broadcast poster wall. */
html[data-theme-id="tremixo-signal-grid"] body {
  background:
    linear-gradient(112deg, transparent 0 72%, rgba(240, 75, 53, .12) 72.2% 73%, transparent 73.2%),
    repeating-linear-gradient(90deg, rgba(255, 246, 232, .035) 0 1px, transparent 1px 96px),
    #0b0b0a;
}
html[data-theme-id="tremixo-signal-grid"] .sitebar {
  width: min(1400px, calc(100% - 24px));
  min-height: 68px;
  border: 1px solid rgba(255, 246, 232, .24);
  border-left: 8px solid var(--accent);
  border-radius: 0;
  background: rgba(11, 11, 10, .94);
  box-shadow: 10px 12px 0 rgba(240, 75, 53, .16);
}
html[data-theme-id="tremixo-signal-grid"] .brand-mark,
html[data-theme-id="tremixo-signal-grid"] .search-box,
html[data-theme-id="tremixo-signal-grid"] .account-chip a,
html[data-theme-id="tremixo-signal-grid"] .account-chip button,
html[data-theme-id="tremixo-signal-grid"] .pill { border-radius: 0; }
html[data-theme-id="tremixo-signal-grid"] .tremixo-stage {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(460px, 1.28fr);
  min-height: min(680px, calc(100dvh - 92px));
  margin-top: 22px;
  border: 1px solid rgba(255, 246, 232, .24);
  background: #10100f;
}
html[data-theme-id="tremixo-signal-grid"] .tremixo-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 5vw, 74px);
  border-right: 1px solid rgba(255, 246, 232, .2);
}
html[data-theme-id="tremixo-signal-grid"] .tremixo-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 62%;
  height: 12px;
  background: var(--accent);
}
html[data-theme-id="tremixo-signal-grid"] .tremixo-copy > p {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
html[data-theme-id="tremixo-signal-grid"] .tremixo-copy h1 {
  max-width: 8ch;
  color: var(--text);
  font-size: clamp(54px, 7.8vw, 108px);
  line-height: .83;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
html[data-theme-id="tremixo-signal-grid"] .tremixo-copy > span { max-width: 30ch; margin: 22px 0 28px; color: var(--muted); font-size: 17px; }
html[data-theme-id="tremixo-signal-grid"] .tremixo-lead { position: relative; min-height: 500px; overflow: hidden; }
html[data-theme-id="tremixo-signal-grid"] .tremixo-lead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 11, 10, .82)); pointer-events: none; }
html[data-theme-id="tremixo-signal-grid"] .tremixo-lead strong { position: absolute; right: 24px; bottom: 22px; z-index: 1; max-width: 11ch; color: var(--text); font-family: var(--font-display); font-size: clamp(28px, 4vw, 58px); line-height: .9; text-align: right; text-transform: uppercase; }
html[data-theme-id="tremixo-signal-grid"] .signal-program { display: grid; grid-template-columns: 1.45fr .8fr .8fr; grid-template-rows: repeat(2, 220px); gap: 8px; margin-top: 8px; }
html[data-theme-id="tremixo-signal-grid"] .signal-program .signal-slice:first-child { grid-row: 1 / 3; }
html[data-theme-id="tremixo-signal-grid"] .signal-program .signal-slice:nth-child(4) { grid-column: 2 / 4; }
html[data-theme-id="tremixo-signal-grid"] .signal-library { padding: clamp(52px, 8vw, 104px) 0 24px; }
html[data-theme-id="tremixo-signal-grid"] .signal-library > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
html[data-theme-id="tremixo-signal-grid"] .signal-library h2 { color: var(--text); font-size: clamp(46px, 7vw, 88px); line-height: .86; text-transform: uppercase; }
html[data-theme-id="tremixo-signal-grid"] .signal-library header a { color: var(--accent-2); font-weight: 800; }
html[data-theme-id="tremixo-signal-grid"] .signal-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
html[data-theme-id="tremixo-signal-grid"] .signal-wall .signal-slice:nth-child(11n+1),
html[data-theme-id="tremixo-signal-grid"] .signal-wall .signal-slice:nth-child(11n+6) { grid-column: span 2; }
html[data-theme-id="tremixo-signal-grid"] .signal-slice { position: relative; min-width: 0; min-height: 210px; overflow: hidden; border: 1px solid rgba(255, 246, 232, .18); background: #171714; }
html[data-theme-id="tremixo-signal-grid"] .signal-art { position: absolute; inset: 0; }
html[data-theme-id="tremixo-signal-grid"] .signal-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11, 11, 10, .92)); }
html[data-theme-id="tremixo-signal-grid"] .signal-copy { position: absolute; inset: auto 0 0; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: end; padding: 16px; }
html[data-theme-id="tremixo-signal-grid"] .signal-copy span { grid-column: 1 / -1; color: var(--accent-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
html[data-theme-id="tremixo-signal-grid"] .signal-copy strong { min-width: 0; color: var(--text); font-size: 15px; line-height: 1.05; overflow-wrap: anywhere; }
html[data-theme-id="tremixo-signal-grid"] .signal-copy button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 0; color: #0b0b0a; background: var(--accent); font-weight: 900; white-space: nowrap; }

/* Juvanors: field atlas with routed waypoints and broad map regions. */
html[data-theme-id="juvanors-field-map"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 203, 136, .18), transparent 24rem),
    repeating-radial-gradient(circle at 82% 26%, transparent 0 44px, rgba(224, 168, 58, .08) 45px 46px),
    #102018;
}
html[data-theme-id="juvanors-field-map"] .sitebar { border-radius: 26px 26px 8px 8px; border-color: rgba(245, 241, 220, .2); background: rgba(16, 32, 24, .92); box-shadow: 0 20px 55px rgba(4, 12, 8, .28); }
html[data-theme-id="juvanors-field-map"] .atlas-opening { display: grid; grid-template-columns: minmax(0, .86fr) minmax(430px, 1.14fr); gap: clamp(28px, 6vw, 90px); align-items: center; min-height: min(670px, calc(100dvh - 90px)); padding: 44px 0; }
html[data-theme-id="juvanors-field-map"] .atlas-opening > div > p { color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
html[data-theme-id="juvanors-field-map"] .atlas-opening h1 { max-width: 9ch; color: var(--text); font-size: clamp(50px, 7vw, 88px); line-height: .9; letter-spacing: -.045em; }
html[data-theme-id="juvanors-field-map"] .atlas-opening > div > span { display: block; max-width: 34ch; margin: 22px 0 28px; color: var(--muted); }
html[data-theme-id="juvanors-field-map"] .atlas-lead { position: relative; display: grid; min-height: 500px; padding: 22px; border: 1px solid rgba(245, 241, 220, .28); border-radius: 46% 54% 42% 58% / 55% 39% 61% 45%; background: rgba(26, 48, 36, .78); box-shadow: 24px 26px 0 rgba(224, 168, 58, .12); }
html[data-theme-id="juvanors-field-map"] .atlas-lead img { border-radius: inherit; }
html[data-theme-id="juvanors-field-map"] .atlas-lead strong { position: absolute; left: 0; bottom: 52px; max-width: 75%; padding: 12px 18px; border-radius: 0 18px 18px 0; color: #102018; background: var(--accent); font-family: var(--font-display); font-size: 24px; }
html[data-theme-id="juvanors-field-map"] .atlas-lead small { position: absolute; right: 7%; bottom: 15px; color: var(--text); font-family: var(--font-mono); font-weight: 700; }
html[data-theme-id="juvanors-field-map"] .atlas-regions { display: grid; gap: 72px; padding: 40px 0 70px; }
html[data-theme-id="juvanors-field-map"] .atlas-region { position: relative; padding: clamp(24px, 4vw, 54px); border: 1px solid rgba(245, 241, 220, .19); border-radius: 32px; background: rgba(26, 48, 36, .62); }
html[data-theme-id="juvanors-field-map"] .atlas-region:nth-child(even) { margin-left: 8vw; }
html[data-theme-id="juvanors-field-map"] .atlas-region:nth-child(odd) { margin-right: 8vw; }
html[data-theme-id="juvanors-field-map"] .atlas-region > header { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; margin-bottom: 34px; }
html[data-theme-id="juvanors-field-map"] .atlas-region > header span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #102018; background: var(--accent); font-family: var(--font-mono); font-weight: 900; }
html[data-theme-id="juvanors-field-map"] .atlas-region h2 { color: var(--text); font-size: clamp(30px, 4vw, 52px); }
html[data-theme-id="juvanors-field-map"] .atlas-region > header b { color: var(--accent-2); font-family: var(--font-mono); font-size: 11px; }
html[data-theme-id="juvanors-field-map"] .waypoint-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
html[data-theme-id="juvanors-field-map"] .atlas-waypoint { position: relative; min-width: 0; }
html[data-theme-id="juvanors-field-map"] .atlas-waypoint:nth-child(4n+2) { margin-top: 34px; }
html[data-theme-id="juvanors-field-map"] .atlas-waypoint:nth-child(4n+4) { margin-top: -18px; }
html[data-theme-id="juvanors-field-map"] .waypoint-art { display: block; aspect-ratio: 4 / 3; padding: 8px; border: 1px solid rgba(245, 241, 220, .24); border-radius: 28px 10px 28px 10px; background: #1a3024; }
html[data-theme-id="juvanors-field-map"] .waypoint-art img { border-radius: 20px 5px 20px 5px; }
html[data-theme-id="juvanors-field-map"] .atlas-waypoint > div { display: grid; gap: 5px; padding: 12px 8px 0; }
html[data-theme-id="juvanors-field-map"] .atlas-waypoint small { color: var(--accent); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
html[data-theme-id="juvanors-field-map"] .atlas-waypoint strong { min-height: 2.3em; color: var(--text); line-height: 1.12; }
html[data-theme-id="juvanors-field-map"] .atlas-waypoint button { width: max-content; min-height: 34px; padding: 0 12px; border: 1px solid rgba(245, 241, 220, .26); border-radius: 18px; color: var(--text); background: transparent; font-weight: 800; }

/* Orlixas: liquid chrome gallery with irregular image scale and quiet captions. */
html[data-theme-id="orlixas-tidal-chrome"] body {
  background:
    radial-gradient(ellipse at 72% 0%, rgba(126, 231, 242, .16), transparent 34rem),
    linear-gradient(160deg, #061827 0%, #0b2639 46%, #061827 100%);
}
html[data-theme-id="orlixas-tidal-chrome"] .sitebar { border: 1px solid rgba(201, 212, 220, .26); border-radius: 999px; background: rgba(6, 24, 39, .78); box-shadow: inset 0 1px 0 rgba(241, 250, 255, .12), 0 24px 62px rgba(0, 8, 16, .28); backdrop-filter: blur(18px); }
html[data-theme-id="orlixas-tidal-chrome"] .tidal-opening { display: grid; grid-template-columns: .72fr 1.28fr .58fr; gap: 18px; align-items: end; min-height: min(720px, calc(100dvh - 92px)); padding: 42px 0 54px; }
html[data-theme-id="orlixas-tidal-chrome"] .tidal-title { align-self: center; padding-right: 20px; }
html[data-theme-id="orlixas-tidal-chrome"] .tidal-title > p { color: var(--accent); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
html[data-theme-id="orlixas-tidal-chrome"] .tidal-title h1 { max-width: 9ch; color: var(--text); font-size: clamp(48px, 6vw, 80px); line-height: .92; letter-spacing: -.05em; }
html[data-theme-id="orlixas-tidal-chrome"] .tidal-title .hero-actions { margin-top: 28px; }
html[data-theme-id="orlixas-tidal-chrome"] .tidal-lead { position: relative; min-height: 570px; overflow: hidden; border: 1px solid rgba(241, 250, 255, .28); border-radius: 46% 54% 24% 76% / 38% 28% 72% 62%; background: var(--panel); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 40px 90px rgba(0, 8, 16, .32); }
html[data-theme-id="orlixas-tidal-chrome"] .tidal-lead strong { position: absolute; left: 7%; bottom: 7%; max-width: 76%; padding: 10px 14px; border: 1px solid rgba(241, 250, 255, .24); border-radius: 18px; color: var(--text); background: rgba(6, 24, 39, .74); backdrop-filter: blur(14px); }
html[data-theme-id="orlixas-tidal-chrome"] .tidal-pair { display: grid; gap: 24px; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-gallery { display: grid; grid-template-columns: .7fr 1.3fr .8fr; gap: 34px 18px; align-items: start; padding: 70px 0; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-gallery .chrome-frame:nth-child(2) { grid-row: span 2; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-gallery .chrome-frame:nth-child(4) { grid-column: 1 / 3; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-collection { padding: 60px 0 80px; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-collection h2 { max-width: 8ch; margin-bottom: 42px; color: var(--text); font-size: clamp(44px, 7vw, 84px); line-height: .9; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-collection > div { columns: 4 240px; column-gap: 24px; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-collection .chrome-frame { break-inside: avoid; margin-bottom: 30px; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-frame { min-width: 0; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-frame > a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(241, 250, 255, .22); border-radius: 38px; background: var(--panel); }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-frame:nth-child(3n+1) > a { aspect-ratio: 3 / 4; border-radius: 46% 54% 32% 68% / 28% 42% 58% 72%; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-frame > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px 8px; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-frame strong { min-width: 0; color: var(--text); line-height: 1.1; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-frame span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
html[data-theme-id="orlixas-tidal-chrome"] .chrome-frame button { grid-column: 1 / -1; width: max-content; min-height: 32px; padding: 0 12px; border: 1px solid rgba(126, 231, 242, .48); border-radius: 18px; color: var(--accent); background: transparent; font-weight: 800; }

/* Vamiroxst: live esports broadcast with a dense channel guide. */
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-ticker { display: flex; gap: 1px; margin: 28px 0 72px; overflow-x: auto; border: 1px solid rgba(92, 255, 131, .22); background: rgba(92, 255, 131, .2); scroll-snap-type: x mandatory; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-ticker a { flex: 0 0 min(300px, 78vw); display: grid; grid-template-columns: 34px 72px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 72px; padding: 0 12px; color: var(--text); background: #101f31; scroll-snap-align: start; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-ticker b { color: var(--accent); font-family: var(--font-mono); }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-ticker img { width: 72px; aspect-ratio: 16 / 10; object-fit: cover; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-ticker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-grid { padding-bottom: 74px; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-grid > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; border-bottom: 4px solid var(--accent); }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-grid h2 { color: var(--text); font-size: clamp(42px, 6vw, 76px); line-height: .9; text-transform: uppercase; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-grid header span { padding-bottom: 10px; color: var(--accent); font-family: var(--font-mono); font-weight: 800; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-grid > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-card { display: grid; min-width: 0; padding: 8px; border: 1px solid rgba(244, 255, 248, .18); border-top: 3px solid var(--accent); border-radius: 2px; background: #101f31; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-card > a { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-card-line { display: grid; grid-template-columns: 32px 1fr; gap: 7px; align-items: start; padding: 11px 2px; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-card-line b { color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-card-line strong { min-height: 2.3em; color: var(--text); font-size: 14px; line-height: 1.12; text-transform: uppercase; overflow-wrap: anywhere; }
html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-card > button { min-height: 36px; border: 0; border-radius: 0; color: #07111f; background: var(--accent); font-weight: 900; text-transform: uppercase; }

/* Ravinozond: pop-art sticker zine with intentionally broken rhythm. */
html[data-theme-id="ravinozond-sticker-circuit"] body {
  background:
    linear-gradient(90deg, transparent 0 49.6%, rgba(23, 37, 90, .06) 49.8% 50.2%, transparent 50.4%),
    repeating-linear-gradient(0deg, rgba(23, 37, 90, .025) 0 1px, transparent 1px 32px),
    #fff2dc;
}
html[data-theme-id="ravinozond-sticker-circuit"] .sitebar { border: 3px solid #17255a; border-radius: 18px 5px 22px 7px; color: #17255a; background: #fff; box-shadow: 8px 9px 0 #2457d6; transform: rotate(-.35deg); }
html[data-theme-id="ravinozond-sticker-circuit"] .primary-nav { color: #17255a; }
html[data-theme-id="ravinozond-sticker-circuit"] .primary-nav a::before { background: #f05b4f; box-shadow: none; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-opening { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; min-height: min(730px, calc(100dvh - 90px)); padding: 54px 0 90px; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-copy { align-self: center; position: relative; z-index: 3; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-copy > p { width: max-content; max-width: 100%; margin: 0 0 18px; padding: 8px 12px; color: #fff2dc; background: #2457d6; font-family: var(--font-mono); font-size: 11px; font-weight: 900; text-transform: uppercase; transform: rotate(-2deg); }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-copy h1 { max-width: 7ch; color: #17255a; font-size: clamp(58px, 8.5vw, 112px); line-height: .78; letter-spacing: -.05em; text-transform: uppercase; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-copy > span { display: block; max-width: 32ch; margin: 24px 0 28px; color: #17255a; font-weight: 700; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-lead { position: relative; min-height: 560px; padding: 14px; border: 4px solid #17255a; border-radius: 9px; background: #fff; box-shadow: 16px 18px 0 #f05b4f; transform: rotate(2deg); }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-lead strong { position: absolute; right: -14px; bottom: 26px; max-width: 72%; padding: 12px 15px; color: #fff2dc; background: #17255a; font-family: var(--font-display); font-size: 27px; line-height: .95; text-transform: uppercase; transform: rotate(-3deg); }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-burst { position: absolute; inset: auto 0 10px 0; z-index: 4; display: flex; align-items: end; justify-content: center; gap: 8px; pointer-events: none; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-burst .zine-sticker { width: 132px; pointer-events: auto; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-burst .zine-sticker:nth-child(even) { transform: translateY(18px) rotate(4deg); }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-pages { display: grid; gap: 82px; padding: 50px 0 80px; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-page { padding: clamp(24px, 4vw, 52px); border: 4px solid #17255a; background: #fff; box-shadow: 14px 15px 0 #2457d6; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-page:nth-child(2) { background: #ffd83d; box-shadow-color: #f05b4f; transform: rotate(.7deg); }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-page:nth-child(3) { background: #bfe8ff; transform: rotate(-.5deg); }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-page h2 { margin-bottom: 32px; color: #17255a; font-size: clamp(42px, 6vw, 72px); line-height: .9; text-transform: uppercase; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-page > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 16px; align-items: start; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-sticker { min-width: 0; padding: 8px; border: 3px solid #17255a; border-radius: 8px; background: #fff; box-shadow: 6px 7px 0 #f05b4f; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-sticker:nth-child(3n+1) { transform: rotate(-2deg); }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-sticker:nth-child(3n+2) { margin-top: 24px; transform: rotate(2deg); }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-sticker > a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-sticker > div { display: grid; gap: 8px; padding-top: 9px; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-sticker strong { min-height: 2.3em; color: #17255a; line-height: 1.05; overflow-wrap: anywhere; }
html[data-theme-id="ravinozond-sticker-circuit"] .zine-sticker button { min-height: 34px; border: 0; border-radius: 3px; color: #fff; background: #2457d6; font-weight: 900; }

/* Paper Switchyard: a cool-paper collage with a high-contrast cobalt route system. */
html[data-theme-id="paper-switchyard"] body {
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(40, 92, 196, .08) 49.8% 50.2%, transparent 50.3%),
    repeating-linear-gradient(0deg, rgba(16, 33, 58, .035) 0 1px, transparent 1px 34px),
    #f3f6f3;
}
html[data-theme-id="paper-switchyard"] .sitebar {
  border: 2px solid #10213a;
  border-radius: 18px;
  color: #10213a;
  background: rgba(255, 255, 255, .96);
  box-shadow: 8px 9px 0 #78a8ff;
  transform: rotate(-.2deg);
}
html[data-theme-id="paper-switchyard"] .brand,
html[data-theme-id="paper-switchyard"] .primary-nav,
html[data-theme-id="paper-switchyard"] .account-chip span { color: #10213a; }
html[data-theme-id="paper-switchyard"] .primary-nav a::before { background: #285cc4; box-shadow: none; }
html[data-theme-id="paper-switchyard"] .zine-opening {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  gap: 34px;
  min-height: min(650px, calc(100dvh - 96px));
  padding: 34px 0 82px;
}
html[data-theme-id="paper-switchyard"] .zine-copy { position: relative; z-index: 3; align-self: center; }
html[data-theme-id="paper-switchyard"] .zine-copy > p {
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: #f8faff;
  background: #285cc4;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}
html[data-theme-id="paper-switchyard"] .zine-copy h1 {
  max-width: 14ch;
  color: #10213a;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .9;
  letter-spacing: -.045em;
}
html[data-theme-id="paper-switchyard"] .zine-copy > span {
  display: block;
  max-width: 38ch;
  margin: 22px 0 26px;
  color: #3f5067;
  font-weight: 750;
}
html[data-theme-id="paper-switchyard"] .zine-lead {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  padding: 12px;
  border: 3px solid #10213a;
  border-radius: 16px;
  background: #fff;
  box-shadow: 14px 16px 0 #285cc4;
  transform: rotate(1.4deg);
}
html[data-theme-id="paper-switchyard"] .zine-lead img { width: 100%; height: 100%; min-height: 486px; object-fit: cover; border-radius: 8px; }
html[data-theme-id="paper-switchyard"] .zine-lead strong {
  position: absolute;
  right: -1px;
  bottom: 24px;
  max-width: 78%;
  padding: 11px 15px;
  color: #f8faff;
  background: #10213a;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
  transform: rotate(-2deg);
}
html[data-theme-id="paper-switchyard"] .zine-burst {
  position: absolute;
  inset: auto 0 8px;
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
html[data-theme-id="paper-switchyard"] .zine-burst .zine-sticker { width: 126px; pointer-events: auto; }
html[data-theme-id="paper-switchyard"] .zine-burst .zine-sticker:nth-child(even) { transform: translateY(14px) rotate(2deg); }
html[data-theme-id="paper-switchyard"] .zine-pages { display: grid; gap: 70px; padding: 48px 0 82px; }
html[data-theme-id="paper-switchyard"] .zine-page {
  padding: clamp(24px, 4vw, 50px);
  border: 3px solid #10213a;
  border-radius: 18px;
  background: #fff;
  box-shadow: 12px 13px 0 #78a8ff;
}
html[data-theme-id="paper-switchyard"] .zine-page:nth-child(2) { background: #dce6f8; box-shadow-color: #285cc4; transform: rotate(.35deg); }
html[data-theme-id="paper-switchyard"] .zine-page:nth-child(3) { background: #eef3ff; transform: rotate(-.3deg); }
html[data-theme-id="paper-switchyard"] .zine-page h2 { margin-bottom: 30px; color: #10213a; font-size: clamp(38px, 5vw, 64px); line-height: .94; }
html[data-theme-id="paper-switchyard"] .zine-page > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; align-items: start; }
html[data-theme-id="paper-switchyard"] .zine-sticker {
  min-width: 0;
  padding: 8px;
  border: 2px solid #10213a;
  border-radius: 12px;
  background: #fff;
  box-shadow: 5px 6px 0 #78a8ff;
}
html[data-theme-id="paper-switchyard"] .zine-sticker:nth-child(3n+1) { transform: rotate(-1.4deg); }
html[data-theme-id="paper-switchyard"] .zine-sticker:nth-child(3n+2) { margin-top: 20px; transform: rotate(1.4deg); }
html[data-theme-id="paper-switchyard"] .zine-sticker > a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 7px; }
html[data-theme-id="paper-switchyard"] .zine-sticker > div { display: grid; gap: 8px; padding-top: 9px; }
html[data-theme-id="paper-switchyard"] .zine-sticker strong { min-height: 2.3em; color: #10213a; line-height: 1.08; overflow-wrap: anywhere; }
html[data-theme-id="paper-switchyard"] .zine-sticker button { min-height: 34px; border: 0; border-radius: 8px; color: #f8faff; background: #285cc4; font-weight: 900; }

@media (max-width: 980px) {
  html[data-theme-id="paper-switchyard"] .zine-opening { grid-template-columns: 1fr; min-height: 0; padding-top: 38px; }
  html[data-theme-id="paper-switchyard"] .zine-copy h1 { max-width: 12ch; }
  html[data-theme-id="paper-switchyard"] .zine-lead { min-height: 420px; }
  html[data-theme-id="paper-switchyard"] .zine-lead img { min-height: 396px; }
  html[data-theme-id="paper-switchyard"] .zine-burst { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme-id="paper-switchyard"] .zine-burst .zine-sticker { width: auto; }
  html[data-theme-id="paper-switchyard"] .zine-page > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  html[data-theme-id="paper-switchyard"] .zine-opening { padding-top: 28px; }
  html[data-theme-id="paper-switchyard"] .zine-copy h1 { max-width: 10ch; font-size: 52px; }
  html[data-theme-id="paper-switchyard"] .zine-lead { min-height: 340px; box-shadow: 8px 9px 0 #285cc4; }
  html[data-theme-id="paper-switchyard"] .zine-lead img { min-height: 316px; }
  html[data-theme-id="paper-switchyard"] .zine-burst,
  html[data-theme-id="paper-switchyard"] .zine-page > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme-id="paper-switchyard"] .zine-sticker:nth-child(n),
  html[data-theme-id="paper-switchyard"] .zine-burst .zine-sticker:nth-child(n),
  html[data-theme-id="paper-switchyard"] .zine-page:nth-child(n) { margin-top: 0; transform: none; }
}

/* Ulmexosy: radical black, white and red editorial issue. */
html[data-theme-id="ulmexosy-editorial-index"] body { background: #f2f1ec; }
html[data-theme-id="ulmexosy-editorial-index"] .sitebar { width: min(1400px, calc(100% - 24px)); border: 0; border-top: 6px solid #111; border-bottom: 1px solid #111; border-radius: 0; color: #111; background: #f2f1ec; box-shadow: none; }
html[data-theme-id="ulmexosy-editorial-index"] .primary-nav { color: #111; }
html[data-theme-id="ulmexosy-editorial-index"] .primary-nav a::before { background: #d51f24; box-shadow: none; }
html[data-theme-id="ulmexosy-editorial-index"] .brand-mark,
html[data-theme-id="ulmexosy-editorial-index"] .search-box,
html[data-theme-id="ulmexosy-editorial-index"] .account-chip a,
html[data-theme-id="ulmexosy-editorial-index"] .account-chip button,
html[data-theme-id="ulmexosy-editorial-index"] .pill { border-radius: 0; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-masthead { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 20px; align-items: end; padding: 20px 0 12px; border-bottom: 8px solid #111; color: #111; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-masthead > span { font-family: var(--font-display); font-size: clamp(54px, 10vw, 136px); font-weight: 900; line-height: .74; letter-spacing: -.07em; text-transform: uppercase; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-masthead p { margin: 0; font-weight: 800; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-masthead b { color: var(--accent); font-family: var(--font-mono); }
html[data-theme-id="ulmexosy-editorial-index"] .front-page { display: grid; grid-template-columns: .74fr 1.26fr .74fr; gap: 22px; padding: 26px 0 72px; border-bottom: 8px solid #111; }
html[data-theme-id="ulmexosy-editorial-index"] .front-copy { align-self: end; padding-bottom: 20px; }
html[data-theme-id="ulmexosy-editorial-index"] .front-copy > p { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 900; text-transform: uppercase; }
html[data-theme-id="ulmexosy-editorial-index"] .front-copy h1 { max-width: 6ch; color: #111; font-size: clamp(58px, 8vw, 104px); line-height: .8; letter-spacing: -.06em; text-transform: uppercase; }
html[data-theme-id="ulmexosy-editorial-index"] .front-copy > span { display: block; margin: 22px 0 28px; color: #333; font-weight: 700; }
html[data-theme-id="ulmexosy-editorial-index"] .front-cover { position: relative; min-height: 620px; overflow: hidden; }
html[data-theme-id="ulmexosy-editorial-index"] .front-cover strong { position: absolute; inset: auto 0 0; padding: 18px; color: #f2f1ec; background: #111; font-family: var(--font-display); font-size: clamp(24px, 3vw, 42px); line-height: .95; text-transform: uppercase; }
html[data-theme-id="ulmexosy-editorial-index"] .front-page > aside { display: grid; align-content: start; gap: 18px; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-index { padding: 64px 0 86px; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-index > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-index h2 { max-width: 8ch; color: #111; font-size: clamp(50px, 8vw, 100px); line-height: .78; text-transform: uppercase; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-index header a { padding-bottom: 10px; color: var(--accent); font-weight: 900; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-index > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 16px; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-index .issue-entry { grid-column: span 3; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-index .issue-entry:nth-child(9n+1),
html[data-theme-id="ulmexosy-editorial-index"] .issue-index .issue-entry:nth-child(9n+6) { grid-column: span 6; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-entry { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; padding-top: 9px; border-top: 2px solid #111; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-entry .issue-number { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 900; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-entry > a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-entry > div { grid-column: 2; display: grid; gap: 5px; padding-top: 4px; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-entry strong { color: #111; font-size: 17px; line-height: 1.05; overflow-wrap: anywhere; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-entry small { color: #505050; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
html[data-theme-id="ulmexosy-editorial-index"] .issue-entry button { grid-column: 2; width: max-content; min-height: 32px; padding: 0 10px; border: 1px solid #111; border-radius: 0; color: #f2f1ec; background: #111; font-weight: 900; }

/* Jamilachn: a cobalt Texas-modernist sunprint built from real game artwork. */
html[data-theme-id="jamilachn-sunprint-modernist"] {
  --font-display: 'Avenir Next Condensed', 'Franklin Gothic Condensed', 'Futura Condensed', sans-serif;
  --font-body: 'Avenir Next', 'Century Gothic', 'Gill Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --card: #f7f4ec;
  --on-accent: #f7f4ec;
  --on-accent-2: #f7f4ec;
  --surface-solid: #f7f4ec;
  --surface-text: #151713;
  --surface-muted: #54594f;
  --surface-accent: #1647d6;
  --line: rgba(21, 23, 19, .2);
}
html[data-theme-id="jamilachn-sunprint-modernist"] body {
  background:
    linear-gradient(118deg, transparent 0 69%, rgba(22, 71, 214, .08) 69.1% 82%, transparent 82.1%),
    repeating-linear-gradient(0deg, rgba(21, 23, 19, .035) 0 1px, transparent 1px 34px),
    #e9e6dc;
}
html[data-theme-id="jamilachn-sunprint-modernist"] body::before {
  opacity: .2;
  background-image: radial-gradient(rgba(21, 23, 19, .26) .65px, transparent .65px);
  background-size: 6px 6px;
}
html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar {
  grid-template-columns: minmax(180px, auto) auto minmax(170px, 1fr) auto;
  width: min(1380px, calc(100% - 24px));
  min-height: 68px;
  border: 2px solid #151713;
  border-radius: 0;
  color: #151713;
  background: rgba(247, 244, 236, .95);
  box-shadow: 8px 8px 0 #1647d6;
}
html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar .brand { color: #151713; letter-spacing: -.025em; text-transform: uppercase; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar .brand-mark { border: 0; border-radius: 0; color: #f7f4ec; background: #1647d6; box-shadow: none; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar .primary-nav { flex-wrap: nowrap; color: #151713; white-space: nowrap; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar .primary-nav a::before { width: 14px; height: 3px; border-radius: 0; background: #1647d6; box-shadow: none; }
html[data-theme-id="jamilachn-sunprint-modernist"] .search-box,
html[data-theme-id="jamilachn-sunprint-modernist"] .account-chip a,
html[data-theme-id="jamilachn-sunprint-modernist"] .account-chip button,
html[data-theme-id="jamilachn-sunprint-modernist"] .pill { border-radius: 0; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-home { width: min(1380px, calc(100% - 32px)); overflow: clip; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-opening {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(520px, 1.18fr);
  align-items: stretch;
  min-height: min(720px, calc(100dvh - 82px));
  margin-top: 12px;
  border: 2px solid #151713;
  background: #f7f4ec;
  box-shadow: 14px 14px 0 #bd4a32;
}
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 86px);
  border-right: 2px solid #151713;
}
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy::after {
  content: '';
  position: absolute;
  right: -22px;
  bottom: 52px;
  width: 42px;
  height: 42px;
  z-index: 3;
  background: #1647d6;
  transform: rotate(45deg);
}
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy > p {
  width: max-content;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 8px 10px;
  color: #f7f4ec;
  background: #1647d6;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy h1 {
  max-width: 8.4ch;
  margin: 0;
  color: #151713;
  font-size: clamp(54px, 7.2vw, 104px);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy > span { max-width: 30ch; margin: 24px 0 28px; color: #3f443c; font-size: 17px; font-weight: 700; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy .pill.primary { color: #f7f4ec; background: #1647d6; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-collage {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: #151713;
}
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-collage img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-collage a:hover img { transform: scale(1.025); }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lead { position: relative; grid-row: 1 / 5; min-height: 540px; overflow: hidden; background: #1647d6; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lead::after { content: ''; position: absolute; inset: 46% 0 0; background: linear-gradient(180deg, transparent, rgba(21, 23, 19, .92)); pointer-events: none; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lead > span { position: absolute; inset: auto 24px 24px; z-index: 1; display: grid; gap: 6px; color: #f7f4ec; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lead small { font-family: var(--font-mono); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lead strong { max-width: 11ch; font-family: var(--font-display); font-size: clamp(32px, 4vw, 58px); line-height: .9; text-transform: uppercase; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-mini { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; min-height: 0; overflow: hidden; color: #151713; background: #f7f4ec; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-mini img { aspect-ratio: 1; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-mini strong { padding: 12px; font-family: var(--font-display); font-size: 18px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-mini-2,
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-mini-4 { background: #1647d6; color: #f7f4ec; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lanes { display: grid; grid-template-columns: .65fr 1.35fr; gap: 28px; align-items: center; margin-top: 64px; padding: 30px 0; border-block: 2px solid #151713; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lanes h2 { color: #151713; font-size: clamp(40px, 5vw, 70px); line-height: .9; text-transform: uppercase; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lanes > div { display: flex; flex-wrap: wrap; gap: 10px; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lanes a { padding: 11px 14px; border: 2px solid #151713; color: #151713; background: #f7f4ec; font-weight: 900; text-transform: uppercase; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lanes a:hover { color: #f7f4ec; background: #1647d6; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-library { padding: 78px 0 96px; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-library > header { display: grid; gap: 20px; max-width: 760px; margin-bottom: 38px; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-library h2 { color: #151713; font-size: clamp(52px, 7vw, 94px); line-height: .82; letter-spacing: -.045em; text-transform: uppercase; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-library header a { width: max-content; color: #1647d6; font-weight: 900; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px 14px; align-items: start; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card { grid-column: span 3; min-width: 0; border-top: 3px solid #151713; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card:nth-child(10n+1),
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card:nth-child(10n+6) { grid-column: span 6; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card:nth-child(10n+4),
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card:nth-child(10n+9) { margin-top: 48px; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #d6d3ca; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card:hover .sunprint-art img { transform: scale(1.025); }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: end; padding-top: 10px; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card-copy span { grid-column: 1 / -1; color: #1647d6; font-family: var(--font-mono); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card-copy strong { color: #151713; font-size: 16px; line-height: 1.05; overflow-wrap: anywhere; }
html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card-copy button { min-height: 34px; padding: 0 11px; border: 0; border-radius: 0; color: #f7f4ec; background: #1647d6; font-weight: 900; white-space: nowrap; }
html[data-theme-id="jamilachn-sunprint-modernist"] .site-footer { border-radius: 0; color: #f7f4ec; background: #151713; }
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-shell { border-color: #151713; background: #151713; box-shadow: none; }
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-kicker,
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-company-details dt,
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-hours span,
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-policy-links a span,
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-copyright { color: #c8c7bf; }
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-company h2,
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-company-details dd,
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-policy-links a,
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-contact-link,
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-hours strong,
html[data-theme-id="jamilachn-sunprint-modernist"] .site-footer a { color: #f7f4ec; }
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-policy-links a,
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-contact-link { border-color: rgba(247, 244, 236, .2); }
html[data-theme-id="jamilachn-sunprint-modernist"] .footer-payment-badge { border-color: #f7f4ec; background: #f7f4ec; box-shadow: none; }

@media (prefers-color-scheme: dark) {
  html[data-theme-id="jamilachn-sunprint-modernist"] body { background: #151713; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar,
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-opening,
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lanes a { color: #f1efe8; background: #20231e; border-color: #f1efe8; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar .brand,
  html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar .primary-nav,
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy h1,
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lanes h2,
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-library h2,
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card-copy strong { color: #f1efe8; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy > span { color: #c8ccc2; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy { border-color: #f1efe8; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lanes { border-color: #f1efe8; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card { border-color: #f1efe8; }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-theme-id="tremixo-signal-grid"] .tremixo-copy,
  html[data-theme-id="juvanors-field-map"] .atlas-opening > div,
  html[data-theme-id="orlixas-tidal-chrome"] .tidal-title,
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-copy,
  html[data-theme-id="ulmexosy-editorial-index"] .front-copy { animation: six-copy-enter .58s cubic-bezier(.16, 1, .3, 1) both; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy { animation: six-copy-enter .58s cubic-bezier(.16, 1, .3, 1) both; }
  html[data-theme-id="tremixo-signal-grid"] .tremixo-lead,
  html[data-theme-id="juvanors-field-map"] .atlas-lead,
  html[data-theme-id="orlixas-tidal-chrome"] .tidal-lead,
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-lead,
  html[data-theme-id="ulmexosy-editorial-index"] .front-cover { animation: six-art-enter .66s cubic-bezier(.16, 1, .3, 1) .08s both; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-collage { animation: six-art-enter .66s cubic-bezier(.16, 1, .3, 1) .08s both; }
}
@keyframes six-copy-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes six-art-enter { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 980px) {
  html[data-theme-id="tremixo-signal-grid"] .tremixo-stage,
  html[data-theme-id="juvanors-field-map"] .atlas-opening,
  html[data-theme-id="orlixas-tidal-chrome"] .tidal-opening,
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-opening,
  html[data-theme-id="ulmexosy-editorial-index"] .front-page { grid-template-columns: 1fr; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-opening { grid-template-columns: 1fr; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar { grid-template-columns: minmax(0, 1fr) auto; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar .primary-nav { min-width: 0; flex-wrap: wrap; white-space: normal; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sitebar .search-box { width: 100%; min-width: 0; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy { border-right: 0; border-bottom: 2px solid #151713; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy::after { right: 48px; bottom: -22px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-collage { min-height: 620px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card,
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card:nth-child(10n+1),
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card:nth-child(10n+6) { grid-column: span 2; }
  html[data-theme-id="tremixo-signal-grid"] .tremixo-copy { border-right: 0; border-bottom: 1px solid rgba(255, 246, 232, .2); }
  html[data-theme-id="tremixo-signal-grid"] .signal-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme-id="juvanors-field-map"] .waypoint-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme-id="juvanors-field-map"] .atlas-region:nth-child(n) { margin-inline: 0; }
  html[data-theme-id="orlixas-tidal-chrome"] .tidal-pair { grid-template-columns: repeat(2, 1fr); }
  html[data-theme-id="orlixas-tidal-chrome"] .chrome-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-grid > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-burst { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-burst .zine-sticker { width: auto; }
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-page > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme-id="ulmexosy-editorial-index"] .front-page > aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme-id="ulmexosy-editorial-index"] .issue-index .issue-entry,
  html[data-theme-id="ulmexosy-editorial-index"] .issue-index .issue-entry:nth-child(n) { grid-column: span 4; }
}

@media (max-width: 580px) {
  .six-home { width: min(100% - 24px, 1120px); }
  .six-home .hero-actions { align-items: stretch; flex-direction: column; }
  .six-home .hero-actions .pill { width: 100%; }
  html[data-theme-id="tremixo-signal-grid"] .tremixo-stage { min-height: 0; }
  html[data-theme-id="tremixo-signal-grid"] .tremixo-copy { padding: 42px 20px 28px; }
  html[data-theme-id="tremixo-signal-grid"] .tremixo-copy h1 { font-size: 56px; }
  html[data-theme-id="tremixo-signal-grid"] .tremixo-lead { min-height: 330px; }
  html[data-theme-id="tremixo-signal-grid"] .signal-program { grid-template-columns: 1fr; grid-template-rows: none; }
  html[data-theme-id="tremixo-signal-grid"] .signal-program .signal-slice:nth-child(n) { grid-column: auto; grid-row: auto; }
  html[data-theme-id="tremixo-signal-grid"] .signal-library > header,
  html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-grid > header,
  html[data-theme-id="ulmexosy-editorial-index"] .issue-index > header { align-items: flex-start; flex-direction: column; }
  html[data-theme-id="tremixo-signal-grid"] .signal-wall { grid-template-columns: 1fr; }
  html[data-theme-id="tremixo-signal-grid"] .signal-wall .signal-slice:nth-child(n) { grid-column: auto; }
  html[data-theme-id="juvanors-field-map"] .atlas-opening { min-height: 0; padding-top: 34px; }
  html[data-theme-id="juvanors-field-map"] .atlas-opening h1 { font-size: 54px; }
  html[data-theme-id="juvanors-field-map"] .atlas-lead { min-height: 360px; }
  html[data-theme-id="juvanors-field-map"] .atlas-region { padding: 24px 16px; }
  html[data-theme-id="juvanors-field-map"] .atlas-region > header { grid-template-columns: 48px 1fr; }
  html[data-theme-id="juvanors-field-map"] .atlas-region > header b { grid-column: 2; }
  html[data-theme-id="juvanors-field-map"] .waypoint-route { grid-template-columns: 1fr; }
  html[data-theme-id="juvanors-field-map"] .atlas-waypoint:nth-child(n) { margin-top: 0; }
  html[data-theme-id="orlixas-tidal-chrome"] .tidal-opening { min-height: 0; padding-top: 38px; }
  html[data-theme-id="orlixas-tidal-chrome"] .tidal-title h1 { font-size: 52px; }
  html[data-theme-id="orlixas-tidal-chrome"] .tidal-lead { min-height: 390px; }
  html[data-theme-id="orlixas-tidal-chrome"] .tidal-pair,
  html[data-theme-id="orlixas-tidal-chrome"] .chrome-gallery { grid-template-columns: 1fr; }
  html[data-theme-id="orlixas-tidal-chrome"] .chrome-gallery .chrome-frame:nth-child(n) { grid-column: auto; grid-row: auto; }
  html[data-theme-id="orlixas-tidal-chrome"] .chrome-collection > div { columns: 1; }
  html[data-theme-id="vamiroxst-broadcast-core"] .broadcast-grid > div { grid-template-columns: 1fr; }
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-opening { min-height: 0; padding-top: 40px; }
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-copy h1 { font-size: 60px; }
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-lead { min-height: 390px; }
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-burst,
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-page > div { grid-template-columns: 1fr; }
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-sticker:nth-child(n),
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-burst .zine-sticker:nth-child(n),
  html[data-theme-id="ravinozond-sticker-circuit"] .zine-page:nth-child(n) { margin-top: 0; transform: none; }
  html[data-theme-id="ulmexosy-editorial-index"] .issue-masthead { grid-template-columns: 1fr auto; }
  html[data-theme-id="ulmexosy-editorial-index"] .issue-masthead > span { grid-column: 1 / -1; font-size: 62px; }
  html[data-theme-id="ulmexosy-editorial-index"] .front-copy h1 { font-size: 62px; }
  html[data-theme-id="ulmexosy-editorial-index"] .front-cover { min-height: 420px; }
  html[data-theme-id="ulmexosy-editorial-index"] .front-page > aside { grid-template-columns: 1fr; }
  html[data-theme-id="ulmexosy-editorial-index"] .issue-index > div { grid-template-columns: 1fr; }
  html[data-theme-id="ulmexosy-editorial-index"] .issue-index .issue-entry,
  html[data-theme-id="ulmexosy-editorial-index"] .issue-index .issue-entry:nth-child(n) { grid-column: auto; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-home { width: min(100% - 24px, 1380px); }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-opening { min-height: 0; box-shadow: 8px 8px 0 #bd4a32; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy { padding: 40px 20px 34px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy h1 { max-width: 9ch; font-size: 52px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-copy::after { width: 28px; height: 28px; right: 28px; bottom: -15px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 340px repeat(2, 150px); min-height: 0; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lead { grid-column: 1 / -1; grid-row: 1; min-height: 0; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-mini { grid-template-columns: 72px minmax(0, 1fr); }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-mini strong { padding: 8px; font-size: 14px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-lanes { grid-template-columns: 1fr; margin-top: 44px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-library { padding: 58px 0 76px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-library h2 { font-size: 52px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-grid { grid-template-columns: 1fr; gap: 28px; }
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card,
  html[data-theme-id="jamilachn-sunprint-modernist"] .sunprint-card:nth-child(n) { grid-column: auto; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .six-home *, .six-home *::before, .six-home *::after { animation: none !important; transition: none !important; }
}
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-800.ttf') format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/space-grotesk-400.ttf') format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-700.ttf') format('truetype'); }
html[data-theme-id="stripe-riot"] {
  body { background: #f5f3ec; font-family: var(--font-body); }
  body::before { display: none; }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 800; }
  .sitebar { border-radius: 0; position: relative; display: flex; flex-wrap: nowrap; max-width: 1400px; margin: 0 auto; min-height: 76px; padding: 16px 32px; gap: 26px; border: 0; border-bottom: 3px solid #161616; background: #f5f3ec; box-shadow: none; color: #161616; }
  .brand { gap: 10px; color: #161616; }
  .brand strong { font: 800 32px/1 var(--font-display); text-transform: uppercase; letter-spacing: -.02em; }
  .brand-mark { width: 32px; height: 36px; border: 2px solid #161616; border-radius: 0; color: #ff5a1f; background: repeating-linear-gradient(90deg,#161616 0 5px,#f5f3ec 5px 10px); font-size: 0; transform: skew(-9deg); }
  .primary-nav { gap: 20px; color: #161616; font-size: 12px; }
  .primary-nav a::before { display: none; }
  .primary-nav a.active { color: #161616; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .search-box { min-width: 110px; width: 160px; margin-left: auto; border: 1px solid #161616; border-radius: 0; background: transparent; }
  .search-box input { min-width: 0; color: #161616; font-size: 11px; }
  .account-chip { gap: 9px; color: #161616; font-size: 12px; }
  .account-chip > span { display: none; }
  .account-chip a { border-radius: 0; }
  .portal-shell { max-width: 1400px; }
  .riot-home { padding: 0 32px 70px; }
  .riot-hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 540px; margin-top: 24px; border: 3px solid #161616; background: repeating-linear-gradient(135deg,#161616 0 24px,#f5f3ec 24px 48px); overflow: hidden; }
  .riot-hero-copy { position: relative; z-index: 1; align-self: center; margin: 28px 0 28px 26px; padding: 36px; background: #ff5a1f; border: 3px solid #161616; box-shadow: 10px 10px 0 #161616; }
  .riot-hero-copy > p { margin: 0 0 16px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
  .riot-hero h1 { margin: 0; font-size: clamp(60px,5.2vw,82px); line-height: .88; letter-spacing: -.035em; color: #161616; }
  .riot-hero-copy > span { display: block; max-width: 330px; margin-top: 23px; font-size: 15px; line-height: 1.5; }
  .hero-actions { margin-top: 26px; gap: 12px; }
  .pill { border: 2px solid #161616; border-radius: 0; background: #f5f3ec; color: #161616; box-shadow: none; font-size: 13px; min-height: 44px; }
  .pill.primary { color: #f5f3ec; background: #161616; }
  .riot-feature { align-self: center; margin: 38px; background: #f5f3ec; border: 3px solid #161616; transform: rotate(5deg); box-shadow: 12px 12px 0 #d5ff45; }
  .riot-feature > a { display: block; overflow: hidden; aspect-ratio: 1.24; border-bottom: 3px solid #161616; }
  .riot-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
  .riot-feature:hover img { transform: scale(1.04); }
  .riot-feature > div { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 18px; }
  .riot-feature span { grid-column: 1/-1; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
  .riot-feature strong { font: 800 30px/.95 var(--font-display); text-transform: uppercase; }
  .riot-feature div a { align-self: center; font-size: 12px; font-weight: 700; text-decoration: underline; }
  .riot-jump { display: grid; grid-template-columns: repeat(3,1fr); margin: 20px 0 56px; border: 2px solid #161616; }
  .riot-jump a { display: flex; justify-content: space-between; gap: 12px; padding: 22px; font: 800 25px/1 var(--font-display); }
  .riot-jump a + a { border-left: 2px solid #161616; }
  .riot-jump a:nth-child(2) { background: #d5ff45; }
  .riot-jump a:hover { background: #ff5a1f; }
  .riot-picks { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-bottom: 58px; align-items: start; }
  .riot-picks h2 { font-size: 60px; line-height: .9; margin: 0; text-transform: uppercase; }
  .riot-picks-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
  .riot-picks-grid .riot-card:nth-child(even) { margin-top: 34px; }
  .riot-card { min-width: 0; background: #f5f3ec; animation: riot-reveal .5s both; animation-delay: var(--reveal); }
  .riot-card > a { display: block; aspect-ratio: 1; overflow: hidden; border: 2px solid #161616; }
  .riot-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
  .riot-card:hover img { transform: scale(1.05); }
  .riot-card > div { padding: 12px 0 0; display: grid; gap: 7px; }
  .riot-card strong { font-size: 14px; line-height: 1.25; min-height: 2.5em; }
  .riot-card span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #595950; }
  .riot-card button { justify-self: start; min-height: 34px; padding: 7px 12px; border: 1px solid #161616; background: transparent; color: #161616; border-radius: 0; font: 700 11px var(--font-body); }
  .riot-card button:hover { background: #d5ff45; }
  .riot-library { border-top: 16px solid #161616; padding-top: 34px; }
  .riot-library-heading { margin-bottom: 30px; border-left: 18px solid #ff5a1f; padding-left: 22px; }
  .riot-library h2 { margin: 0; font-size: 60px; line-height: .9; }
  .riot-library-heading p { font-size: 14px; margin: 16px 0 0; }
  .riot-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 32px 20px; }
  .site-footer { border-top: 18px solid #161616; background: #eae7dd; color: #161616; }
  :focus-visible { outline: 3px solid #161616; outline-offset: 4px; }
  @media (max-width: 1100px) {
    .sitebar { padding: 16px 24px; gap: 20px; }
    .search-box { display: none; }
    .primary-nav { margin-left: auto; gap: 15px; }
    .riot-hero-copy { padding: 28px; margin-left: 20px; }
    .riot-feature { margin: 30px; }
    .riot-hero { min-height: 480px; }
    .riot-picks { grid-template-columns: 1fr; }
    .riot-picks h2 br { display: none; }
    .riot-picks h2 { font-size: 48px; }
    .riot-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  }
  @media (max-width: 760px) {
    .sitebar { flex-wrap: wrap; padding: 16px; gap: 14px; }
    .brand strong { font-size: 30px; }
    .account-chip { margin-left: auto; }
    .primary-nav { order: 3; flex: 0 0 100%; justify-content: space-between; gap: 8px; font-size: 10px; overflow: visible; }
    .riot-home { padding: 0 16px 40px; }
    .riot-hero { grid-template-columns: 1fr; margin-top: 16px; }
    .riot-hero-copy { margin: 20px 20px 0; padding: 24px 20px; }
    .riot-hero h1 { font-size: clamp(51px,11vw,78px); }
    .riot-hero-copy > p { font-size: 9px; }
    .riot-hero-copy > span { font-size: 13px; margin-top: 18px; }
    .hero-actions { margin-top: 18px; flex-wrap: wrap; }
    .riot-feature { width: min(75%,350px); justify-self: center; margin: 32px 30px; }
    .riot-feature > a { aspect-ratio: 1.4; }
    .riot-feature > div { padding: 12px; }
    .riot-feature strong { font-size: 24px; }
    .riot-jump { margin-bottom: 36px; }
    .riot-jump a { font-size: 18px; padding: 14px 10px; }
    .riot-picks-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
    .riot-picks-grid .riot-card:nth-child(even) { margin-top: 0; }
    .riot-picks-grid .riot-card:last-child { display: grid; grid-template-columns: 1fr 1fr; grid-column: 1/-1; gap: 16px; align-items: center; }
    .riot-picks h2, .riot-library h2 { font-size: 44px; }
    .riot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 16px; }
    .riot-library-heading { padding-left: 14px; border-left-width: 12px; }
    .riot-picks { margin-bottom: 36px; }
  }
  @media (prefers-reduced-motion: reduce) { .riot-card { animation: none; } .riot-card img, .riot-feature img { transition: none; } }
}
@keyframes riot-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Tide Arcade: restore the editorial renderer geometry for this theme only. */
html[data-theme-id="tide-arcade"] body { background: var(--panel); }
html[data-theme-id="tide-arcade"] .sitebar { width: min(1400px, calc(100% - 24px)); border: 0; border-top: 6px solid var(--text); border-bottom: 1px solid var(--text); border-radius: 0; color: var(--text); background: var(--panel); box-shadow: none; }
html[data-theme-id="tide-arcade"] .primary-nav { color: var(--text); }
html[data-theme-id="tide-arcade"] .primary-nav a::before { background: var(--accent-2); box-shadow: none; }
html[data-theme-id="tide-arcade"] .brand-mark,
html[data-theme-id="tide-arcade"] .search-box,
html[data-theme-id="tide-arcade"] .account-chip a,
html[data-theme-id="tide-arcade"] .account-chip button,
html[data-theme-id="tide-arcade"] .pill { border-radius: 0; }
html[data-theme-id="tide-arcade"] .issue-masthead { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 20px; align-items: end; padding: 20px 0 12px; border-bottom: 8px solid var(--text); color: var(--text); }
html[data-theme-id="tide-arcade"] .issue-masthead > span { font-family: var(--font-display); font-size: clamp(54px, 10vw, 136px); font-weight: 900; line-height: .74; letter-spacing: -.07em; text-transform: uppercase; }
html[data-theme-id="tide-arcade"] .issue-masthead p { margin: 0; font-weight: 800; }
html[data-theme-id="tide-arcade"] .issue-masthead b { color: var(--accent); font-family: var(--font-mono); }
html[data-theme-id="tide-arcade"] .front-page { display: grid; grid-template-columns: .74fr 1.26fr .74fr; gap: 22px; padding: 26px 0 72px; border-bottom: 8px solid var(--text); }
html[data-theme-id="tide-arcade"] .front-copy { align-self: end; padding-bottom: 20px; }
html[data-theme-id="tide-arcade"] .front-copy > p { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 900; text-transform: uppercase; }
html[data-theme-id="tide-arcade"] .front-copy h1 { max-width: 6ch; color: var(--text); font-size: clamp(58px, 8vw, 104px); line-height: .8; letter-spacing: -.06em; text-transform: uppercase; }
html[data-theme-id="tide-arcade"] .front-copy > span { display: block; margin: 22px 0 28px; color: var(--muted); font-weight: 700; }
html[data-theme-id="tide-arcade"] .front-cover { position: relative; min-height: 620px; overflow: hidden; }
html[data-theme-id="tide-arcade"] .front-cover strong { position: absolute; inset: auto 0 0; padding: 18px; color: var(--panel); background: var(--text); font-family: var(--font-display); font-size: clamp(24px, 3vw, 42px); line-height: .95; text-transform: uppercase; }
html[data-theme-id="tide-arcade"] .front-page > aside { display: grid; align-content: start; gap: 18px; }
html[data-theme-id="tide-arcade"] .issue-index { padding: 64px 0 86px; }
html[data-theme-id="tide-arcade"] .issue-index > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
html[data-theme-id="tide-arcade"] .issue-index h2 { max-width: 8ch; color: var(--text); font-size: clamp(50px, 8vw, 100px); line-height: .78; text-transform: uppercase; }
html[data-theme-id="tide-arcade"] .issue-index header a { padding-bottom: 10px; color: var(--accent); font-weight: 900; }
html[data-theme-id="tide-arcade"] .issue-index > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 16px; }
html[data-theme-id="tide-arcade"] .issue-index .issue-entry { grid-column: span 3; }
html[data-theme-id="tide-arcade"] .issue-index .issue-entry:nth-child(9n+1),
html[data-theme-id="tide-arcade"] .issue-index .issue-entry:nth-child(9n+6) { grid-column: span 6; }
html[data-theme-id="tide-arcade"] .issue-entry { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; padding-top: 9px; border-top: 2px solid var(--text); }
html[data-theme-id="tide-arcade"] .issue-entry .issue-number { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 900; }
html[data-theme-id="tide-arcade"] .issue-entry > a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
html[data-theme-id="tide-arcade"] .issue-entry > div { grid-column: 2; display: grid; gap: 5px; padding-top: 4px; }
html[data-theme-id="tide-arcade"] .issue-entry strong { color: var(--text); font-size: 17px; line-height: 1.05; overflow-wrap: anywhere; }
html[data-theme-id="tide-arcade"] .issue-entry small { color: var(--muted); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
html[data-theme-id="tide-arcade"] .issue-entry button { grid-column: 2; width: max-content; min-height: 32px; padding: 0 10px; border: 1px solid var(--text); border-radius: 0; color: var(--panel); background: var(--text); font-weight: 900; }

/* Keep the light palette readable on navigation, cards, and legal surfaces. */
html[data-theme-id="tide-arcade"] body { background: var(--site-background-image), var(--bg); background-attachment: fixed; }
html[data-theme-id="tide-arcade"] .sitebar { top: 12px; gap: 18px; width: min(1320px, calc(100% - 32px)); min-height: 76px; padding: 12px 16px; border-top: 4px solid var(--accent); border-bottom-color: var(--line); border-radius: var(--radius); color: var(--text); background: var(--panel); box-shadow: var(--soft-shadow); }
html[data-theme-id="tide-arcade"] .sitebar .brand { color: var(--accent); font-size: 22px; }
html[data-theme-id="tide-arcade"] .sitebar .brand-mark { border: 0; border-radius: 6px; color: var(--on-accent); background: var(--accent); box-shadow: none; }
html[data-theme-id="tide-arcade"] .sitebar .primary-nav { gap: 16px; color: var(--text); }
html[data-theme-id="tide-arcade"] .sitebar .primary-nav a { opacity: 1; }
html[data-theme-id="tide-arcade"] .sitebar .primary-nav a:hover,
html[data-theme-id="tide-arcade"] .sitebar .primary-nav a.active { color: var(--accent); }
html[data-theme-id="tide-arcade"] .sitebar .search-box { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-solid); }
html[data-theme-id="tide-arcade"] .sitebar .account-chip span { color: var(--muted); }
html[data-theme-id="tide-arcade"] .sitebar .account-chip a,
html[data-theme-id="tide-arcade"] .sitebar .account-chip button,
html[data-theme-id="tide-arcade"] .pill { border-radius: 6px; }
html[data-theme-id="tide-arcade"] .sitebar .account-chip a:not(:first-of-type) { border: 1px solid var(--line); color: var(--text); background: var(--panel); }
html[data-theme-id="tide-arcade"] .six-home { width: min(1280px, calc(100% - 48px)); padding-top: 36px; }
html[data-theme-id="tide-arcade"] .issue-masthead { gap: 22px; padding: 20px 0 22px; border-bottom: 5px solid var(--accent); }
html[data-theme-id="tide-arcade"] .issue-masthead > span { min-width: 0; font-size: clamp(56px, 9.4vw, 124px); line-height: .88; letter-spacing: -.055em; }
html[data-theme-id="tide-arcade"] .issue-masthead p { color: var(--muted); font-size: 15px; }
html[data-theme-id="tide-arcade"] .issue-masthead b { color: var(--accent-2); white-space: nowrap; }
html[data-theme-id="tide-arcade"] .front-page { grid-template-columns: minmax(210px, .82fr) minmax(0, 1.35fr) minmax(200px, .72fr); gap: 28px; align-items: start; padding: 30px 0 54px; border-bottom: 3px solid var(--accent); }
html[data-theme-id="tide-arcade"] .front-copy { padding: 34px 0 20px; align-self: start; }
html[data-theme-id="tide-arcade"] .front-copy > p { color: var(--accent-2); font-size: 12px; letter-spacing: .12em; }
html[data-theme-id="tide-arcade"] .front-copy h1 { max-width: 7ch; font-size: clamp(54px, 6.7vw, 86px); line-height: .9; letter-spacing: -.045em; }
html[data-theme-id="tide-arcade"] .front-copy > span { max-width: 26ch; font-weight: 500; }
html[data-theme-id="tide-arcade"] .front-cover { display: block; height: 520px; min-height: 0; border-radius: var(--radius); background: var(--panel-strong); box-shadow: var(--shadow); }
html[data-theme-id="tide-arcade"] .front-cover img { width: 100%; height: 100%; object-fit: cover; }
html[data-theme-id="tide-arcade"] .front-cover strong { padding: 20px; color: var(--on-accent); background: var(--accent); font-size: clamp(25px, 3vw, 38px); }
html[data-theme-id="tide-arcade"] .front-page > aside { gap: 20px; }
html[data-theme-id="tide-arcade"] .front-page > aside .issue-entry > a { aspect-ratio: 16 / 9; }
html[data-theme-id="tide-arcade"] .issue-entry { border-top-color: var(--line); }
html[data-theme-id="tide-arcade"] .issue-entry .issue-number { color: var(--accent-2); }
html[data-theme-id="tide-arcade"] .issue-entry > a { border-radius: 6px; background: var(--panel-strong); }
html[data-theme-id="tide-arcade"] .issue-entry strong { font-weight: 800; line-height: 1.15; }
html[data-theme-id="tide-arcade"] .issue-entry small { font-size: 10px; line-height: 1.5; }
html[data-theme-id="tide-arcade"] .issue-entry button { min-height: 40px; margin-top: 4px; padding: 8px 14px; border: 0; border-radius: 5px; color: var(--on-accent); background: var(--accent); }
html[data-theme-id="tide-arcade"] .issue-index { padding: 50px 0 72px; }
html[data-theme-id="tide-arcade"] .issue-index h2 { max-width: 10ch; margin: 0; font-size: clamp(46px, 6vw, 76px); line-height: .94; letter-spacing: -.035em; }
html[data-theme-id="tide-arcade"] .issue-index > div { gap: 34px 22px; }
html[data-theme-id="tide-arcade"] .site-footer { border-top: 0; color: var(--text); background: transparent; }
html[data-theme-id="tide-arcade"] .footer-shell { border-color: var(--line); border-top: 4px solid var(--accent); color: var(--text); background: var(--panel); box-shadow: var(--soft-shadow); }
html[data-theme-id="tide-arcade"] .footer-company h2,
html[data-theme-id="tide-arcade"] .footer-company-details dd,
html[data-theme-id="tide-arcade"] .footer-policy-links a,
html[data-theme-id="tide-arcade"] .footer-contact-link,
html[data-theme-id="tide-arcade"] .footer-hours strong { color: var(--text); }
html[data-theme-id="tide-arcade"] .footer-kicker,
html[data-theme-id="tide-arcade"] .footer-company-details dt,
html[data-theme-id="tide-arcade"] .footer-hours span,
html[data-theme-id="tide-arcade"] .footer-policy-links a span,
html[data-theme-id="tide-arcade"] .footer-copyright { color: var(--muted); }
html[data-theme-id="tide-arcade"] a:focus-visible,
html[data-theme-id="tide-arcade"] button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
  html[data-theme-id="tide-arcade"] .front-copy { animation: six-copy-enter .58s cubic-bezier(.16, 1, .3, 1) both; }
  html[data-theme-id="tide-arcade"] .front-cover { animation: six-art-enter .66s cubic-bezier(.16, 1, .3, 1) .08s both; }
}

@media (max-width: 980px) {
  html[data-theme-id="tide-arcade"] .sitebar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  html[data-theme-id="tide-arcade"] .sitebar .primary-nav { min-width: 0; flex-wrap: wrap; }
  html[data-theme-id="tide-arcade"] .sitebar .search-box { grid-column: 1 / -1; width: 100%; }
  html[data-theme-id="tide-arcade"] .six-home { padding-top: 26px; }
  html[data-theme-id="tide-arcade"] .issue-masthead { grid-template-columns: minmax(0, 1fr) auto; }
  html[data-theme-id="tide-arcade"] .issue-masthead > span { grid-column: 1 / -1; }
  html[data-theme-id="tide-arcade"] .front-page { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
  html[data-theme-id="tide-arcade"] .front-cover { height: 450px; }
  html[data-theme-id="tide-arcade"] .front-page > aside { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme-id="tide-arcade"] .issue-index .issue-entry,
  html[data-theme-id="tide-arcade"] .issue-index .issue-entry:nth-child(n) { grid-column: span 4; }
}

@media (max-width: 580px) {
  html[data-theme-id="tide-arcade"] .sitebar { top: 0; width: 100%; padding: 10px 16px 12px; border-radius: 0; gap: 10px; }
  html[data-theme-id="tide-arcade"] .sitebar .brand { font-size: 21px; }
  html[data-theme-id="tide-arcade"] .sitebar .primary-nav { grid-column: 1 / -1; grid-row: 2; gap: 18px; }
  html[data-theme-id="tide-arcade"] .sitebar .primary-nav a { min-height: 32px; }
  html[data-theme-id="tide-arcade"] .sitebar .account-chip { grid-column: 2; grid-row: 1; gap: 6px; }
  html[data-theme-id="tide-arcade"] .sitebar .account-chip a,
  html[data-theme-id="tide-arcade"] .sitebar .account-chip button { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  html[data-theme-id="tide-arcade"] .sitebar .search-box { grid-row: 3; }
  html[data-theme-id="tide-arcade"] .six-home { width: calc(100% - 32px); padding-top: 20px; }
  html[data-theme-id="tide-arcade"] .issue-masthead { gap: 14px; padding-top: 14px; padding-bottom: 18px; }
  html[data-theme-id="tide-arcade"] .issue-masthead > span { font-size: clamp(54px, 16vw, 86px); }
  html[data-theme-id="tide-arcade"] .issue-masthead p { font-size: 12px; }
  html[data-theme-id="tide-arcade"] .issue-masthead b { font-size: 12px; }
  html[data-theme-id="tide-arcade"] .front-page { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 18px; padding-bottom: 36px; }
  html[data-theme-id="tide-arcade"] .front-copy { padding: 14px 0 0; }
  html[data-theme-id="tide-arcade"] .front-copy h1 { max-width: 10ch; font-size: clamp(48px, 15vw, 68px); }
  html[data-theme-id="tide-arcade"] .front-copy > span { max-width: 30ch; margin: 18px 0 22px; }
  html[data-theme-id="tide-arcade"] .front-cover { height: 390px; }
  html[data-theme-id="tide-arcade"] .front-page > aside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  html[data-theme-id="tide-arcade"] .issue-entry { grid-template-columns: 24px minmax(0, 1fr); gap: 5px; }
  html[data-theme-id="tide-arcade"] .issue-entry strong { font-size: 15px; }
  html[data-theme-id="tide-arcade"] .issue-entry button { min-height: 44px; width: 100%; padding: 8px; font-size: 12px; }
  html[data-theme-id="tide-arcade"] .issue-index { padding: 36px 0 44px; }
  html[data-theme-id="tide-arcade"] .issue-index > header { align-items: flex-start; flex-direction: column; gap: 20px; }
  html[data-theme-id="tide-arcade"] .issue-index h2 { font-size: 48px; }
  html[data-theme-id="tide-arcade"] .issue-index > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  html[data-theme-id="tide-arcade"] .issue-index .issue-entry,
  html[data-theme-id="tide-arcade"] .issue-index .issue-entry:nth-child(n) { grid-column: auto; }
  html[data-theme-id="tide-arcade"] .issue-index .issue-entry:nth-child(6n+1) { grid-column: 1 / -1; }
  html[data-theme-id="tide-arcade"] .footer-shell,
  html[data-theme-id="tide-arcade"] .footer-shell.payments-disabled { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  html[data-theme-id="tide-arcade"] .footer-policy-links { column-gap: 16px; }
}

/* Five independent theme compositions, scoped to the approved new theme IDs. */
html:is([data-theme-id="velocity-lab"], [data-theme-id="iron-broadcast"], [data-theme-id="rain-ribbon"], [data-theme-id="paper-playbill"], [data-theme-id="trail-atlas"]) {
  body { background: var(--site-background-image), var(--bg); color: var(--text); }
  body::before { opacity: .12; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 80px); }
  .sitebar { width: min(1360px, calc(100% - 48px)); grid-template-columns: auto auto minmax(150px, 1fr) auto; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); box-shadow: var(--soft-shadow); gap: 24px; }
  .brand { font-size: 25px; }
  .brand-mark { color: var(--on-accent); background: var(--accent); box-shadow: none; border-radius: var(--radius); }
  .primary-nav, .account-chip, .account-chip span { color: var(--text); }
  .primary-nav { font-size: 13px; gap: 16px; }
  .primary-nav a::before { display: none; }
  .primary-nav a { min-height: 42px; display: inline-flex; align-items: center; }
  .primary-nav .active { color: var(--accent); border-bottom: 2px solid var(--accent); }
  .search-box { border: 1px solid var(--line); background: var(--bg); color: var(--text); }
  .search-box input { color: var(--text); font-size: 14px; }
  .account-chip a, .pill { border-radius: var(--radius); box-shadow: none; }
  .six-home, .portal-shell { width: min(1280px, calc(100% - 64px)); }
  .six-home { padding-top: 30px; }
  .six-home h1, .six-home h2 { color: var(--text); font-family: var(--font-display); }
  .six-home h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
  .six-home .hero-actions { margin-top: 26px; }
  .six-home [data-game-card] { min-width: 0; }
  .six-home [data-game-card] button { min-height: 44px; padding: 8px 12px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--accent); }
  .six-home [data-game-card] strong { overflow-wrap: anywhere; }
  .six-home > section:first-child { animation: five-arrive .5s ease-out both; }
  .footer-shell { width: min(1280px, calc(100% - 48px)); color: var(--text); background: var(--panel); border: 1px solid var(--line); box-shadow: none; }
  .footer-shell a, .footer-shell h2, .footer-shell dd, .footer-shell dt, .footer-shell p { color: var(--text); }
  .icon-meta strong, .icon-meta small { color: var(--text); text-shadow: none; }
  .game-filter-bar, .game-search-summary { color: var(--text); }
}
@keyframes five-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html[data-theme-id="velocity-lab"] {
  .sitebar { border-bottom: 4px solid var(--accent); }
  .tremixo-stage { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; padding: 20px 0 42px; }
  .tremixo-copy { padding: 30px 0; }
  .tremixo-copy > p { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
  .tremixo-copy h1 { max-width: 10ch; font-size: clamp(64px, 7vw, 100px); line-height: .93; text-transform: uppercase; font-style: italic; }
  .tremixo-copy > span { display: block; max-width: 28ch; margin-top: 24px; color: var(--muted); }
  .tremixo-lead { position: relative; height: 470px; border: 8px solid var(--accent); box-shadow: 12px 12px 0 var(--accent-2); overflow: hidden; transform: rotate(-2deg); }
  .tremixo-lead strong { position: absolute; bottom: 0; left: 0; padding: 12px 20px; font-family: var(--font-display); font-size: 30px; color: white; background: var(--accent); }
  .signal-program { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); grid-template-rows: repeat(2, 190px); gap: 14px; }
  .signal-program .signal-slice:first-child { grid-row: span 2; }
  .signal-library { padding: 60px 0; }
  .signal-library > header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
  .signal-library header a { color: var(--accent); font-weight: 700; }
  .signal-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .signal-slice { position: relative; min-height: 240px; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
  .signal-art { position: absolute; inset: 0; }
  .signal-copy { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; padding: 14px; background: linear-gradient(transparent, rgba(13,31,61,.97) 22%); }
  .signal-copy span { grid-column: 1 / -1; color: var(--accent-2); font-size: 10px; text-transform: uppercase; }
  .signal-copy strong { color: white; font-size: 16px; line-height: 1.1; }
}
html[data-theme-id="iron-broadcast"] {
  .sitebar { border-left: 6px solid var(--accent); }
  .hero-broadcast { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 0; background: var(--panel); }
  .broadcast-copy { min-width: 0; padding: 40px; }
  .broadcast-feature { min-width: 0; }
  .broadcast-ticker { display: flex; gap: 2px; overflow: auto; margin: 24px 0 50px; border-block: 1px solid var(--line); }
  .broadcast-ticker > a { display: grid; flex: 0 0 280px; grid-template-columns: 26px 68px 1fr; align-items: center; gap: 12px; padding: 12px; background: var(--panel); font-size: 13px; }
  .broadcast-ticker img { width: 68px; height: 54px; }
  .broadcast-ticker b { color: var(--accent); }
  .broadcast-grid { padding-bottom: 60px; }
  .broadcast-grid > header { display: flex; justify-content: space-between; align-items: end; padding-bottom: 20px; border-bottom: 3px solid var(--accent); margin-bottom: 22px; }
  .broadcast-grid > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .broadcast-card { display: grid; padding: 10px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--panel); }
  .broadcast-card > a { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
  .broadcast-card-line { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 16px 0; line-height: 1.2; min-height: 72px; }
  .broadcast-card-line b { color: var(--accent); font-size: 11px; }
  .broadcast-card-line strong { font-size: 15px; }
}
html[data-theme-id="rain-ribbon"] {
  .brand, .primary-nav .active, .tidal-title > p { color: #286752; }
  .pill:not(.ghost), .account-chip a:first-of-type { background: #286752; color: white; }
  .sitebar { border-radius: 28px; }
  .tidal-opening { display: grid; grid-template-columns: .85fr 1.05fr .55fr; gap: 26px; align-items: center; padding: 20px 0 50px; }
  .tidal-title > p { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
  .tidal-title h1 { max-width: 10ch; font-size: clamp(48px, 5vw, 72px); line-height: 1.05; }
  .tidal-lead { position: relative; display: block; height: 490px; overflow: hidden; border-radius: 44% 44% 24px 24px; border: 10px solid var(--panel-strong); box-shadow: var(--soft-shadow); }
  .tidal-lead strong { position: absolute; bottom: 18px; left: 18px; right: 18px; padding: 10px; text-align: center; color: var(--text); background: var(--panel); border-radius: 16px; }
  .tidal-pair { display: grid; gap: 24px; }
  .tidal-pair .chrome-frame > a { aspect-ratio: 4 / 3; }
  .chrome-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; align-items: start; padding: 26px 0 56px; }
  .chrome-gallery .chrome-frame:nth-child(even) { margin-top: 50px; }
  .chrome-collection { padding: 30px 0 70px; }
  .chrome-collection h2 { margin-bottom: 36px; }
  .chrome-collection > div { columns: 4 230px; gap: 26px; }
  .chrome-collection .chrome-frame { break-inside: avoid; margin-bottom: 26px; }
  .chrome-frame > a { display: block; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
  .chrome-frame:nth-child(3n+1) > a { aspect-ratio: 4 / 5; border-radius: 60px 20px 20px; }
  .chrome-frame > div { display: grid; gap: 6px; padding: 14px 4px; }
  .chrome-frame strong { font-size: 16px; line-height: 1.2; }
  .chrome-frame span { font-size: 11px; color: var(--muted); }
  .chrome-frame button { justify-self: start; }
}
html[data-theme-id="paper-playbill"] {
  .sitebar { border-radius: 0; border-block: 2px solid var(--text); }
  .issue-masthead { display: flex; justify-content: space-between; align-items: end; gap: 18px; border-bottom: 2px solid var(--text); padding: 8px 0 22px; }
  .issue-masthead > span { color: var(--accent); font-family: var(--font-display); font-size: clamp(54px, 9vw, 118px); font-weight: 700; line-height: 1; letter-spacing: -.06em; }
  .issue-masthead p, .issue-masthead b { font-size: 12px; }
  .front-page { display: grid; grid-template-columns: .8fr 1.3fr .8fr; gap: 26px; padding: 32px 0 52px; border-bottom: 3px solid var(--accent); }
  .front-copy { align-self: center; }
  .front-copy > p { color: var(--accent); text-transform: uppercase; font-size: 12px; letter-spacing: .13em; }
  .front-copy h1 { font-size: clamp(54px, 6vw, 84px); line-height: .95; }
  .front-copy > span { display: block; margin-top: 22px; color: var(--muted); }
  .front-cover { position: relative; display: block; height: 530px; overflow: hidden; transform: rotate(1.5deg); box-shadow: 10px 10px 0 var(--panel-strong); }
  .front-cover strong { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; color: white; background: var(--accent); font-family: var(--font-display); font-size: 28px; }
  .front-page > aside { display: grid; gap: 18px; }
  .front-page > aside .issue-entry { grid-template-columns: 18px 80px minmax(0, 1fr); align-content: start; }
  .front-page > aside .issue-entry > a { grid-column: 2; grid-row: 1 / span 3; aspect-ratio: 1; }
  .front-page > aside .issue-entry > div, .front-page > aside .issue-entry > button { grid-column: 3; }
  .issue-entry { display: grid; grid-template-columns: 22px 1fr; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); }
  .issue-number { color: var(--accent); font-size: 11px; }
  .issue-entry > a { aspect-ratio: 16 / 9; overflow: hidden; display: block; }
  .issue-entry > div, .issue-entry > button { grid-column: 2; }
  .issue-entry > div { display: grid; gap: 5px; }
  .issue-entry strong { font-size: 15px; line-height: 1.2; }
  .issue-entry small { color: var(--muted); font-size: 9px; }
  .issue-entry button { justify-self: start; }
  .issue-index { padding: 44px 0 64px; }
  .issue-index > header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }
  .issue-index > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
  .issue-index .issue-entry:nth-child(9n+1) { grid-column: span 2; }
}
html[data-theme-id="trail-atlas"] {
  body { background: repeating-radial-gradient(ellipse at 90% 18%, transparent 0 58px, rgba(35,86,70,.06) 59px 60px), var(--site-background-image); }
  .atlas-opening { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; padding: 32px 0 50px; }
  .atlas-opening p { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
  .atlas-opening h1 { font-size: clamp(46px, 5.2vw, 74px); line-height: 1.06; max-width: 11ch; }
  .atlas-opening > div > span { display: block; margin-top: 24px; max-width: 34ch; color: var(--muted); }
  .atlas-lead { display: block; position: relative; height: 470px; border-radius: 45% 45% 18% 18%; overflow: hidden; border: 14px solid var(--panel); box-shadow: 14px 18px 0 var(--accent-2); }
  .atlas-lead strong { position: absolute; bottom: 46px; left: 18px; right: 18px; padding: 12px; color: white; background: var(--accent); text-align: center; }
  .atlas-lead small { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--text); background: var(--panel); }
  .atlas-regions { display: grid; gap: 32px; padding: 30px 0 60px; }
  .atlas-region { border: 1px solid var(--line); background: var(--panel); border-radius: 22px; padding: 32px; }
  .atlas-region > header { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center; margin-bottom: 30px; }
  .atlas-region > header > span { padding: 10px; border-radius: 50%; background: var(--accent); color: white; text-align: center; }
  .atlas-region > header b { font-size: 11px; color: var(--muted); }
  .waypoint-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .waypoint-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px 5px; }
  .atlas-waypoint:nth-child(even) { padding-top: 24px; }
  .atlas-waypoint > div { display: grid; gap: 8px; padding-top: 12px; }
  .atlas-waypoint small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
  .atlas-waypoint strong { min-height: 2.5em; line-height: 1.2; }
  .atlas-waypoint button { justify-self: start; }
}
@media (max-width: 1100px) {
  html:is([data-theme-id="velocity-lab"], [data-theme-id="iron-broadcast"], [data-theme-id="rain-ribbon"], [data-theme-id="paper-playbill"], [data-theme-id="trail-atlas"]) {
    .sitebar { grid-template-columns: 1fr auto; gap: 12px; }
    .sitebar .primary-nav { grid-row: 2; grid-column: 1; }
    .sitebar .search-box { grid-row: 2; grid-column: 2; width: 240px; }
    .sitebar .account-chip { grid-row: 1; grid-column: 2; justify-self: end; }
    .signal-wall, .broadcast-grid > div, .issue-index > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tidal-opening { grid-template-columns: 1fr 1fr; }
    .tidal-pair { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .tidal-pair .chrome-frame > a { aspect-ratio: 16 / 9; }
    .front-page { grid-template-columns: .8fr 1.2fr; }
    .front-page > aside { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
    .waypoint-route { grid-template-columns: repeat(3, 1fr); }
  }
}
@media (max-width: 700px) {
  html:is([data-theme-id="velocity-lab"], [data-theme-id="iron-broadcast"], [data-theme-id="rain-ribbon"], [data-theme-id="paper-playbill"], [data-theme-id="trail-atlas"]) {
    .sitebar { top: 0; width: 100%; padding: 10px 16px; border-radius: 0; gap: 8px; }
    .brand { font-size: 22px; }
    .brand-mark { width: 32px; height: 32px; font-size: 18px; }
    .sitebar .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 9px; overflow: auto; font-size: 11px; }
    .sitebar .search-box { grid-row: 3; grid-column: 1 / -1; width: 100%; }
    .account-chip a { padding: 8px 10px; min-height: 40px; font-size: 12px; }
    .six-home, .portal-shell { width: calc(100% - 32px); padding-top: 20px; }
    .tremixo-stage, .tidal-opening, .front-page, .atlas-opening, .hero-broadcast { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 0; }
    .broadcast-copy { padding: 24px; }
    .broadcast-feature { min-height: 350px; }
    .tremixo-copy { padding: 8px 0; }
    .six-home h1 { max-width: 13ch; font-size: clamp(44px, 13vw, 64px); }
    .six-home .hero-actions { flex-direction: row; }
    .six-home .hero-actions .pill { width: auto; }
    .tremixo-lead, .tidal-lead, .front-cover, .atlas-lead { height: 350px; min-height: 0; }
    .tremixo-lead { transform: none; box-shadow: 6px 6px 0 var(--accent-2); }
    .signal-program { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .signal-program .signal-slice:first-child { grid-column: 1 / -1; grid-row: auto; }
    .signal-slice { min-height: 230px; }
    .signal-copy { grid-template-columns: 1fr; padding: 12px; }
    .signal-copy span { grid-column: 1; }
    .signal-copy button { justify-self: start; }
    .signal-wall, .broadcast-grid > div, .issue-index > div, .waypoint-route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .signal-library > header, .issue-index > header, .broadcast-grid > header { flex-direction: column; align-items: start; gap: 15px; }
    .chrome-gallery { grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px 0 30px; }
    .chrome-gallery .chrome-frame:nth-child(even) { margin-top: 24px; }
    .chrome-collection > div { columns: 2 140px; gap: 16px; }
    .tidal-pair { grid-column: 1; }
    .issue-masthead { flex-wrap: wrap; padding-bottom: 16px; }
    .issue-masthead > span { width: 100%; font-size: 17vw; }
    .issue-masthead p { margin: 0; }
    .front-page > aside { grid-template-columns: 1fr 1fr; }
    .front-page > aside .issue-entry { grid-template-columns: 18px minmax(0, 1fr); }
    .front-page > aside .issue-entry > a { grid-row: auto; aspect-ratio: 16 / 9; }
    .front-page > aside .issue-entry > div, .front-page > aside .issue-entry > button { grid-column: 2; }
    .issue-index .issue-entry:nth-child(9n+1) { grid-column: 1 / -1; }
    .issue-entry { grid-template-columns: 18px minmax(0, 1fr); gap: 5px; }
    .atlas-region { padding: 20px 16px; }
    .atlas-region > header { grid-template-columns: 34px 1fr; gap: 12px; }
    .atlas-region > header b { grid-column: 2; }
    .atlas-region h2 { font-size: 28px; }
    .atlas-waypoint:nth-child(even) { padding-top: 18px; }
    .footer-shell { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html:is([data-theme-id="velocity-lab"], [data-theme-id="iron-broadcast"], [data-theme-id="rain-ribbon"], [data-theme-id="paper-playbill"], [data-theme-id="trail-atlas"]) .six-home > section:first-child { animation: none; }
}

/* Five independent theme compositions, scoped to the approved new theme IDs. */
/* Geometry adapted from the September 12 batch; only these five IDs match. */
html:is([data-theme-id="orange-press"], [data-theme-id="phosphor-station"], [data-theme-id="tidal-observatory"], [data-theme-id="toy-cabinet"], [data-theme-id="field-atlas"])[data-theme-id] {
  body { background: var(--site-background-image), var(--bg); color: var(--text); }
  body::before { opacity: .12; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 80px); }
  .sitebar { width: min(1360px, calc(100% - 48px)); grid-template-columns: auto auto minmax(150px, 1fr) auto; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); box-shadow: var(--soft-shadow); gap: 24px; }
  .brand { font-size: 25px; }
  .brand-mark { color: var(--on-accent); background: var(--accent); box-shadow: none; border-radius: var(--radius); }
  .primary-nav, .account-chip, .account-chip span { color: var(--text); }
  .primary-nav { font-size: 13px; gap: 16px; }
  .primary-nav a::before { display: none; }
  .primary-nav a { min-height: 42px; display: inline-flex; align-items: center; }
  .primary-nav .active { color: var(--accent); border-bottom: 2px solid var(--accent); }
  .search-box { border: 1px solid var(--line); background: var(--bg); color: var(--text); }
  .search-box input { color: var(--text); font-size: 14px; }
  .account-chip a, .pill { border-radius: var(--radius); box-shadow: none; }
  .six-home, .portal-shell { width: min(1280px, calc(100% - 64px)); }
  .six-home { padding-top: 30px; }
  .six-home h1, .six-home h2 { color: var(--text); font-family: var(--font-display); }
  .six-home h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
  .six-home .hero-actions { margin-top: 26px; }
  .six-home [data-game-card] { min-width: 0; }
  .six-home [data-game-card] button { min-height: 44px; padding: 8px 12px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--accent); }
  .six-home [data-game-card] strong { overflow-wrap: anywhere; }
  .six-home > section:first-child { animation: september-five-arrive .5s ease-out both; }
  .footer-shell { width: min(1280px, calc(100% - 48px)); color: var(--text); background: var(--panel); border: 1px solid var(--line); box-shadow: none; }
  .footer-shell a, .footer-shell h2, .footer-shell dd, .footer-shell dt, .footer-shell p { color: var(--text); }
  .icon-meta strong, .icon-meta small { color: var(--text); text-shadow: none; }
  .game-filter-bar, .game-search-summary { color: var(--text); }
}
@keyframes september-five-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html[data-theme-id="orange-press"][data-theme-id] {
  .sitebar { border-bottom: 4px solid var(--accent); }
  .tremixo-stage { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; padding: 20px 0 42px; }
  .tremixo-copy { padding: 30px 0; }
  .tremixo-copy > p { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
  .tremixo-copy h1 { max-width: 10ch; font-size: clamp(64px, 7vw, 100px); line-height: .93; text-transform: uppercase; font-style: italic; }
  .tremixo-copy > span { display: block; max-width: 28ch; margin-top: 24px; color: var(--muted); }
  .tremixo-lead { position: relative; height: 470px; border: 8px solid var(--accent); box-shadow: 12px 12px 0 var(--accent-2); overflow: hidden; transform: rotate(-2deg); }
  .tremixo-lead strong { position: absolute; bottom: 0; left: 0; padding: 12px 20px; font-family: var(--font-display); font-size: 30px; color: white; background: var(--accent); }
  .signal-program { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); grid-template-rows: repeat(2, 190px); gap: 14px; }
  .signal-program .signal-slice:first-child { grid-row: span 2; }
  .signal-library { padding: 60px 0; }
  .signal-library > header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
  .signal-library header a { color: var(--accent); font-weight: 700; }
  .signal-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .signal-slice { position: relative; min-height: 240px; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
  .signal-art { position: absolute; inset: 0; }
  .signal-copy { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; padding: 14px; background: linear-gradient(transparent, rgba(13,31,61,.97) 22%); }
  .signal-copy span { grid-column: 1 / -1; color: var(--accent-2); font-size: 10px; text-transform: uppercase; }
  .signal-copy strong { color: white; font-size: 16px; line-height: 1.1; }
}
html[data-theme-id="phosphor-station"][data-theme-id] {
  .sitebar { border-left: 6px solid var(--accent); }
  .hero-broadcast { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 0; background: var(--panel); }
  .broadcast-copy { min-width: 0; padding: 40px; }
  .broadcast-feature { min-width: 0; }
  .broadcast-ticker { display: flex; gap: 2px; overflow: auto; margin: 24px 0 50px; border-block: 1px solid var(--line); }
  .broadcast-ticker > a { display: grid; flex: 0 0 280px; grid-template-columns: 26px 68px 1fr; align-items: center; gap: 12px; padding: 12px; background: var(--panel); font-size: 13px; }
  .broadcast-ticker img { width: 68px; height: 54px; }
  .broadcast-ticker b { color: var(--accent); }
  .broadcast-grid { padding-bottom: 60px; }
  .broadcast-grid > header { display: flex; justify-content: space-between; align-items: end; padding-bottom: 20px; border-bottom: 3px solid var(--accent); margin-bottom: 22px; }
  .broadcast-grid > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .broadcast-card { display: grid; padding: 10px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--panel); }
  .broadcast-card > a { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
  .broadcast-card-line { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 16px 0; line-height: 1.2; min-height: 72px; }
  .broadcast-card-line b { color: var(--accent); font-size: 11px; }
  .broadcast-card-line strong { font-size: 15px; }
}
html[data-theme-id="tidal-observatory"][data-theme-id] {
  .brand, .primary-nav .active, .tidal-title > p { color: #286752; }
  .pill:not(.ghost), .account-chip a:first-of-type { background: #286752; color: white; }
  .sitebar { border-radius: 28px; }
  .tidal-opening { display: grid; grid-template-columns: .85fr 1.05fr .55fr; gap: 26px; align-items: center; padding: 20px 0 50px; }
  .tidal-title > p { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
  .tidal-title h1 { max-width: 10ch; font-size: clamp(48px, 5vw, 72px); line-height: 1.05; }
  .tidal-lead { position: relative; display: block; height: 490px; overflow: hidden; border-radius: 44% 44% 24px 24px; border: 10px solid var(--panel-strong); box-shadow: var(--soft-shadow); }
  .tidal-lead strong { position: absolute; bottom: 18px; left: 18px; right: 18px; padding: 10px; text-align: center; color: var(--text); background: var(--panel); border-radius: 16px; }
  .tidal-pair { display: grid; gap: 24px; }
  .tidal-pair .chrome-frame > a { aspect-ratio: 4 / 3; }
  .chrome-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; align-items: start; padding: 26px 0 56px; }
  .chrome-gallery .chrome-frame:nth-child(even) { margin-top: 50px; }
  .chrome-collection { padding: 30px 0 70px; }
  .chrome-collection h2 { margin-bottom: 36px; }
  .chrome-collection > div { columns: 4 230px; gap: 26px; }
  .chrome-collection .chrome-frame { break-inside: avoid; margin-bottom: 26px; }
  .chrome-frame > a { display: block; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
  .chrome-frame:nth-child(3n+1) > a { aspect-ratio: 4 / 5; border-radius: 60px 20px 20px; }
  .chrome-frame > div { display: grid; gap: 6px; padding: 14px 4px; }
  .chrome-frame strong { font-size: 16px; line-height: 1.2; }
  .chrome-frame span { font-size: 11px; color: var(--muted); }
  .chrome-frame button { justify-self: start; }
}
html[data-theme-id="field-atlas"][data-theme-id] {
  body { background: repeating-radial-gradient(ellipse at 90% 18%, transparent 0 58px, rgba(35,86,70,.06) 59px 60px), var(--site-background-image); }
  .atlas-opening { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; padding: 32px 0 50px; }
  .atlas-opening p { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
  .atlas-opening h1 { font-size: clamp(46px, 5.2vw, 74px); line-height: 1.06; max-width: 11ch; }
  .atlas-opening > div > span { display: block; margin-top: 24px; max-width: 34ch; color: var(--muted); }
  .atlas-lead { display: block; position: relative; height: 470px; border-radius: 45% 45% 18% 18%; overflow: hidden; border: 14px solid var(--panel); box-shadow: 14px 18px 0 var(--accent-2); }
  .atlas-lead strong { position: absolute; bottom: 46px; left: 18px; right: 18px; padding: 12px; color: white; background: var(--accent); text-align: center; }
  .atlas-lead small { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--text); background: var(--panel); }
  .atlas-regions { display: grid; gap: 32px; padding: 30px 0 60px; }
  .atlas-region { border: 1px solid var(--line); background: var(--panel); border-radius: 22px; padding: 32px; }
  .atlas-region > header { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center; margin-bottom: 30px; }
  .atlas-region > header > span { padding: 10px; border-radius: 50%; background: var(--accent); color: white; text-align: center; }
  .atlas-region > header b { font-size: 11px; color: var(--muted); }
  .waypoint-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .waypoint-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px 5px; }
  .atlas-waypoint:nth-child(even) { padding-top: 24px; }
  .atlas-waypoint > div { display: grid; gap: 8px; padding-top: 12px; }
  .atlas-waypoint small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
  .atlas-waypoint strong { min-height: 2.5em; line-height: 1.2; }
  .atlas-waypoint button { justify-self: start; }
}
@media (max-width: 1100px) {
  html:is([data-theme-id="orange-press"], [data-theme-id="phosphor-station"], [data-theme-id="tidal-observatory"], [data-theme-id="toy-cabinet"], [data-theme-id="field-atlas"])[data-theme-id] {
    .sitebar { grid-template-columns: 1fr auto; gap: 12px; }
    .sitebar .primary-nav { grid-row: 2; grid-column: 1; }
    .sitebar .search-box { grid-row: 2; grid-column: 2; width: 240px; }
    .sitebar .account-chip { grid-row: 1; grid-column: 2; justify-self: end; }
    .signal-wall, .broadcast-grid > div, .issue-index > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tidal-opening { grid-template-columns: 1fr 1fr; }
    .tidal-pair { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .tidal-pair .chrome-frame > a { aspect-ratio: 16 / 9; }
    .front-page { grid-template-columns: .8fr 1.2fr; }
    .front-page > aside { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
    .waypoint-route { grid-template-columns: repeat(3, 1fr); }
  }
}
@media (max-width: 700px) {
  html:is([data-theme-id="orange-press"], [data-theme-id="phosphor-station"], [data-theme-id="tidal-observatory"], [data-theme-id="toy-cabinet"], [data-theme-id="field-atlas"])[data-theme-id] {
    .sitebar { top: 0; width: 100%; padding: 10px 16px; border-radius: 0; gap: 8px; }
    .brand { font-size: 22px; }
    .brand-mark { width: 32px; height: 32px; font-size: 18px; }
    .sitebar .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 9px; overflow: auto; font-size: 11px; }
    .sitebar .search-box { grid-row: 3; grid-column: 1 / -1; width: 100%; }
    .account-chip a { padding: 8px 10px; min-height: 40px; font-size: 12px; }
    .six-home, .portal-shell { width: calc(100% - 32px); padding-top: 20px; }
    .tremixo-stage, .tidal-opening, .front-page, .atlas-opening, .hero-broadcast { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 0; }
    .broadcast-copy { padding: 24px; }
    .broadcast-feature { min-height: 350px; }
    .tremixo-copy { padding: 8px 0; }
    .six-home h1 { max-width: 13ch; font-size: clamp(44px, 13vw, 64px); }
    .six-home .hero-actions { flex-direction: row; }
    .six-home .hero-actions .pill { width: auto; }
    .tremixo-lead, .tidal-lead, .front-cover, .atlas-lead { height: 350px; min-height: 0; }
    .tremixo-lead { transform: none; box-shadow: 6px 6px 0 var(--accent-2); }
    .signal-program { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .signal-program .signal-slice:first-child { grid-column: 1 / -1; grid-row: auto; }
    .signal-slice { min-height: 230px; }
    .signal-copy { grid-template-columns: 1fr; padding: 12px; }
    .signal-copy span { grid-column: 1; }
    .signal-copy button { justify-self: start; }
    .signal-wall, .broadcast-grid > div, .issue-index > div, .waypoint-route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .signal-library > header, .issue-index > header, .broadcast-grid > header { flex-direction: column; align-items: start; gap: 15px; }
    .chrome-gallery { grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px 0 30px; }
    .chrome-gallery .chrome-frame:nth-child(even) { margin-top: 24px; }
    .chrome-collection > div { columns: 2 140px; gap: 16px; }
    .tidal-pair { grid-column: 1; }
    .issue-masthead { flex-wrap: wrap; padding-bottom: 16px; }
    .issue-masthead > span { width: 100%; font-size: 17vw; }
    .issue-masthead p { margin: 0; }
    .front-page > aside { grid-template-columns: 1fr 1fr; }
    .front-page > aside .issue-entry { grid-template-columns: 18px minmax(0, 1fr); }
    .front-page > aside .issue-entry > a { grid-row: auto; aspect-ratio: 16 / 9; }
    .front-page > aside .issue-entry > div, .front-page > aside .issue-entry > button { grid-column: 2; }
    .issue-index .issue-entry:nth-child(9n+1) { grid-column: 1 / -1; }
    .issue-entry { grid-template-columns: 18px minmax(0, 1fr); gap: 5px; }
    .atlas-region { padding: 20px 16px; }
    .atlas-region > header { grid-template-columns: 34px 1fr; gap: 12px; }
    .atlas-region > header b { grid-column: 2; }
    .atlas-region h2 { font-size: 28px; }
    .atlas-waypoint:nth-child(even) { padding-top: 18px; }
    .footer-shell { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html:is([data-theme-id="orange-press"], [data-theme-id="phosphor-station"], [data-theme-id="tidal-observatory"], [data-theme-id="toy-cabinet"], [data-theme-id="field-atlas"]) .six-home > section:first-child { animation: none; }
}



/* Use solid surfaces so labels remain readable independently of game artwork. */
html:is([data-theme-id="toy-cabinet"], [data-theme-id="phosphor-station"], [data-theme-id="field-atlas"], [data-theme-id="tidal-observatory"], [data-theme-id="orange-press"])[data-theme-id] {
  body { overflow-x: clip; background-color: var(--bg); }
  .sitebar { position: relative; top: auto; grid-template-columns: minmax(150px, 1fr) minmax(150px, 260px) auto; min-height: 90px; gap: 20px; backdrop-filter: none; transform: none; filter: none; }
  .brand { min-width: 0; max-width: 100%; gap: 10px; font-size: clamp(18px, 1.7vw, 25px); color: var(--text); line-height: 1.12; }
  .brand strong { min-width: 0; overflow-wrap: anywhere; text-wrap: balance; }
  .brand-mark { flex: 0 0 36px; width: 36px; height: 36px; border: 0; }
  .account-chip { min-width: 0; flex-wrap: wrap; justify-content: end; gap: 7px; }
  .account-chip span { color: var(--muted); }
  .account-chip a, .account-chip button { min-height: 44px; padding: 10px 13px; }
  .account-chip a:not(:first-of-type), .account-chip button { border: 1px solid var(--line); color: var(--text); background: var(--panel); }
  .primary-nav { color: var(--text); font-size: 13px; font-weight: 800; }
  .primary-nav a { opacity: 1; border: 0; min-height: 44px; padding: 9px 13px; color: var(--text); }
  .primary-nav a.active, .primary-nav a:hover { border: 0; color: var(--on-accent); background: var(--accent); }
  .primary-nav a::before { display: none; }
  .search-box { min-width: 0; width: 100%; max-width: none; height: 44px; }
  .search-box input { min-width: 0; color: var(--text); background: var(--bg); }
  .search-box button { color: var(--on-accent-2); background: var(--accent-2); }
  .six-home img { width: 100%; height: 100%; object-fit: cover; }
  .six-home .hero-actions .pill, .pill { border: 1px solid var(--line); color: var(--text); background: var(--panel); }
  .six-home .hero-actions .pill.primary, .pill.primary, .account-chip a:first-of-type { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
  .six-home [data-game-card] button { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
  .six-home [data-game-card] button:hover { text-decoration: underline; }
  .six-home h1 { overflow-wrap: normal; }
  .six-home p, .six-home small, .six-home em { color: var(--muted); }
  .six-home .hero-actions { flex-wrap: wrap; }
  .six-home .hero-actions a { white-space: nowrap; }
  .site-footer { width: min(1280px, calc(100% - 40px)); background: transparent; padding-bottom: 28px; }
  .footer-shell { width: 100%; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .7fr) minmax(188px, .8fr); padding: 30px; gap: 26px; }
  .footer-shell h2, .footer-shell a, .footer-shell dd, .footer-hours strong { color: var(--text); overflow-wrap: anywhere; }
  .footer-company h2 { font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
  .footer-shell dt, .footer-shell .footer-kicker, .footer-hours span, .footer-policy-links a span, .footer-copyright { color: var(--muted); opacity: 1; }
  .footer-payment-badges { display: flex; flex-wrap: wrap; gap: 12px; }
  .footer-payment-badge { flex: 0 0 88px; width: 88px; min-height: 58px; padding: 10px; background: #ffffff; color: #161616; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: none; }
  .footer-payment-badge img { width: 66px; max-width: 100%; height: 36px; object-fit: contain; border-radius: 0; background: transparent; }
  .footer-payment-badge--googlepay img { width: 48px; height: 24px; }
  .footer-payment-badge--cashapp { flex-basis: 162px; width: 162px; padding: 12px; }
  .footer-payment-badge--cashapp img { width: 135px; height: 24px; }
  .icon-meta strong { color: var(--text); }
  .icon-meta small, .library-head p, .filter-summary { color: var(--muted); }
  .game-grid .card-actions { opacity: 1; transform: none; }
  .icon-card .card-actions a, .icon-card .card-actions button { color: var(--on-accent); background: var(--accent); min-height: 40px; }
  .game-filter-bar, .game-search-summary { color: var(--text); }
  .home-strip div, .product-list, .payment-card, .checkout-receipt, .checkout-result, .checkout-summary, .contact-copy, .contact-card, .policy-index, .policy-document, .dash-side, .dash-main, .auth-art, .auth-card, .protected-page section, .policy-grid article, .search-summary, .category-card, .product-card, .custom-recharge, .currency-switch, .category-price-list span, .flow-steps span, .checkout-rail li, .package, .table-wrap, .empty-copy, .notice, .checkout-title, .cashier-hero, .cashier-meter, .checkout-form .form-group, .balance-card, .payment-method-card, .auth-modal { color: var(--text); background: var(--panel); border-color: var(--line); backdrop-filter: none; box-shadow: none; }
  .home-strip span, .product-card em, .product-list p, .payment-card p, .checkout-receipt p, .checkout-result p, .checkout-summary p, .contact-copy p, .contact-card p, .policy-index a, .policy-document p, .dash-side p, .dash-main p, .auth-art p, .auth-card p, .category-card small, .custom-recharge small, .currency-switch > span, .package span, .checkout-rail small, .receipt-top span, .receipt-line span, .receipt-total span, .receipt-total small, label, th, .checkout-title p:not(.eyebrow), .cashier-meter span, .cashier-meter small, .payment-method-card small, .auth-modal p { color: var(--muted); opacity: 1; }
  .checkout-rail li.active span, .checkout-rail li.active small, .receipt-line strong, .receipt-total strong, .auth-modal h2, .success-detail-grid span, .payment-method-card strong { color: var(--text); }
  .success-detail-grid b { color: var(--muted); }
  .product-list .eyebrow, .payment-card .eyebrow, .checkout-summary .eyebrow, .contact-copy .eyebrow, .policy-index .eyebrow, .policy-document .eyebrow, .dash-side .eyebrow, .dash-main .eyebrow, .auth-art .eyebrow, .category-price-list b, .product-list .section-title a, .payment-card .section-title a, .checkout-summary .section-title a, .checkout-title .eyebrow { color: var(--accent); }
  input:not([type="checkbox"]):not([type="radio"]), textarea, select { color: var(--text); background: var(--bg); border-color: var(--line); font-size: 16px; }
  input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-card { min-width: 0; min-height: 166px; transform: none; border: 1px solid var(--line); border-radius: var(--radius); }
  .product-card:nth-child(n) { transform: none; }
  .product-card strong { color: var(--text); font-size: clamp(28px, 3vw, 38px); font-variant-numeric: tabular-nums; }
  .product-card.active, .package.active { outline: 3px solid var(--accent); outline-offset: 2px; background: var(--panel-strong); box-shadow: none; }
  .product-card span, .custom-recharge span, .cashier-rules span, .checkout-heading span, .receipt-top b { color: var(--on-accent-2); background: var(--accent-2); }
  .product-card .product-action { color: var(--on-accent); background: var(--accent); }
  .custom-recharge { grid-template-columns: minmax(0, 1fr) minmax(160px, 250px) auto; }
  .checkout-rail b { color: var(--text); background: var(--panel-strong); }
  .checkout-rail li.done b, .checkout-rail li.active b, .success-coin-badge, .funds-gap-badge, .modal-choice-summary { color: var(--on-accent); background: var(--accent); }
  .modal-choice-summary span, .modal-choice-summary small, .success-coin-badge span, .success-coin-badge small { color: var(--on-accent); opacity: 1; }
  .auth-modal .success-detail-grid span { background: var(--panel-strong); }
  .policy-document :is(h1, h2, h3, strong, li, td), .contact-card strong { color: var(--text); }
  .policy-document a, .contact-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
  .policy-document, .contact-copy, .contact-card { overflow-wrap: anywhere; }
  .payment-feedback, .payment-feedback.processing, .payment-feedback.pending, .payment-feedback.success, .payment-feedback.error { color: var(--text); background: var(--panel-strong); border-color: var(--accent); }
  .payment-feedback.error { border-color: var(--danger); }
  .payment-feedback span, .payment-feedback small { color: var(--text); opacity: 1; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
}

html[data-theme-id="toy-cabinet"][data-theme-id] {
  body { padding-bottom: 100px; background: repeating-linear-gradient(0deg, transparent 0 47px, rgba(20,37,91,.05) 48px 49px), var(--bg); }
  .sitebar { margin-top: 18px; border: 3px solid var(--text); box-shadow: 6px 6px 0 var(--panel-strong); }
  .primary-nav { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); display: flex; justify-content: space-between; gap: 4px; padding: 10px; border: 3px solid var(--text); border-radius: 22px; background: var(--panel); box-shadow: 0 7px 0 var(--text); }
  .primary-nav a { border-radius: 12px; }
  .zine-opening { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; padding: 35px 0 55px; }
  .zine-copy > p { color: var(--accent); font-weight: 900; font-size: 13px; }
  .zine-copy h1 { max-width: 10ch; font-size: clamp(54px, 6.5vw, 88px); line-height: .97; }
  .zine-copy > span { display: block; margin-top: 24px; color: var(--muted); max-width: 32ch; }
  .zine-lead { position: relative; display: block; height: 450px; border: 12px solid var(--panel); border-radius: 30px; box-shadow: 12px 12px 0 var(--accent-2); transform: rotate(3deg); overflow: hidden; }
  .zine-lead strong { position: absolute; left: 12px; right: 12px; bottom: 14px; padding: 14px; border-radius: 12px; color: var(--on-accent); background: var(--accent); font: 700 25px var(--font-display); }
  .zine-burst { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; padding-top: 30px; }
  .zine-sticker { min-width: 0; }
  .zine-sticker > a { display: block; aspect-ratio: 1; border: 6px solid var(--panel); border-radius: 26% 18% 26% 18%; box-shadow: 4px 4px 0 var(--text); overflow: hidden; }
  .zine-sticker:nth-child(3n+1) > a { transform: rotate(-3deg); }
  .zine-sticker:nth-child(3n+2) > a { transform: rotate(3deg); }
  .zine-sticker > div { display: grid; gap: 9px; padding: 18px 0 0; }
  .zine-sticker strong { font-size: 15px; line-height: 1.25; min-height: 2.5em; }
  .zine-sticker button { justify-self: start; }
  .zine-pages { display: grid; gap: 54px; padding: 12px 0 70px; }
  .zine-page { padding-top: 26px; border-top: 6px solid var(--accent); }
  .zine-page h2 { margin-bottom: 30px; font-size: clamp(34px, 5vw, 62px); }
  .zine-page > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 24px; }
  .zine-page .zine-sticker:nth-child(9n+1) { grid-column: span 2; }
  .zine-page .zine-sticker:nth-child(9n+1) > a { aspect-ratio: 2; border-radius: 25px; }
}

html[data-theme-id="phosphor-station"][data-theme-id] {
  body { padding-left: 194px; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(183,210,189,.055) 80px 81px), var(--bg); }
  .sitebar { border-width: 0 0 2px; border-color: var(--accent); }
  .primary-nav { position: fixed; inset: 0 auto 0 0; width: 194px; padding: 140px 16px 30px; display: flex; flex-direction: column; align-items: stretch; justify-content: start; gap: 9px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; }
  .primary-nav a { min-height: 54px; font-size: 15px; border-left: 3px solid var(--line); }
  .primary-nav a::after { content: '+'; margin-left: auto; font-family: var(--font-mono); }
  .primary-nav a.active { border-left-color: var(--accent); }
  .hero-broadcast { border: 1px solid var(--line); }
  .broadcast-copy { padding: 32px; }
  .broadcast-copy h1 { font-size: clamp(38px, 4.1vw, 60px); line-height: 1.04; }
  .broadcast-bug { display: grid; grid-template-columns: 1fr; gap: 5px; margin-bottom: 26px; }
  .broadcast-bug span { color: var(--on-accent); background: var(--accent); padding: 7px 10px; width: max-content; }
  .broadcast-bug b { color: var(--text); overflow-wrap: anywhere; }
  .broadcast-scoreline { margin-top: 22px; }
  .broadcast-feature { background: var(--panel-strong); }
  .broadcast-channel, .broadcast-rundown a { color: var(--text); }
  .broadcast-channel b, .broadcast-channel span, .broadcast-rundown b { color: var(--accent); }
  .broadcast-rundown a { min-height: 58px; }
  .broadcast-lead strong { color: var(--text); background: var(--panel); }
  .broadcast-lead span { color: var(--on-accent-2); background: var(--accent-2); }
}

html[data-theme-id="field-atlas"][data-theme-id] {
  body { padding-right: 176px; background-color: var(--bg); }
  .sitebar { border: 0; border-bottom: 2px solid var(--text); border-radius: 0; box-shadow: none; }
  .primary-nav { position: fixed; right: 0; top: 118px; width: 166px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 10px 0 16px 8px; }
  .primary-nav a { min-height: 56px; padding: 13px 18px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; color: var(--text); background: var(--panel); box-shadow: -5px 5px 0 var(--panel-strong); }
  .primary-nav a.active { color: var(--on-accent); background: var(--accent); transform: translateX(-8px); }
  .atlas-opening { gap: 36px; }
  .atlas-opening h1 { font-size: clamp(46px, 4.7vw, 68px); }
  .atlas-lead { border-radius: 42% 42% 5px 5px; }
  .atlas-region { border-radius: 3px; border-top: 5px solid var(--accent); }
  .atlas-region > header > span, .atlas-lead strong { color: var(--on-accent); }
  .waypoint-art { border-radius: 2px; border: 7px solid var(--panel-strong); }
}

html[data-theme-id="tidal-observatory"][data-theme-id] {
  body { background: radial-gradient(ellipse at 60% 5%, #173e4d 0, transparent 38%), repeating-linear-gradient(125deg, transparent 0 150px, rgba(124,230,235,.09) 151px 153px), var(--bg); }
  .sitebar { grid-template-columns: minmax(190px, 1fr) minmax(140px, 240px) auto; border-radius: 0 0 24px 24px; border: 1px solid var(--line); border-top: 0; gap: 16px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 22px; padding-top: 8px; border-top: 1px solid var(--line); }
  .primary-nav a { border-radius: 30px; }
  .brand, .primary-nav .active, .tidal-title > p { color: var(--accent); }
  .primary-nav a.active { color: var(--on-accent); }
  .tidal-opening { grid-template-columns: .9fr 1.05fr .55fr; }
  .tidal-title h1 { font-size: clamp(43px, 4.6vw, 64px); line-height: 1.06; }
  .tidal-lead { height: 480px; border: 2px solid var(--accent); box-shadow: 0 0 35px rgba(124,230,235,.16); }
  .tidal-lead strong { color: var(--text); background: var(--panel); }
  .chrome-frame > a { border: 2px solid var(--line); border-radius: 50% 50% 10px 10px; }
  .chrome-frame:nth-child(3n+1) > a { border-radius: 10px 10px 50% 50%; }
  .chrome-frame > div { background: var(--bg); padding: 15px 6px; }
  .chrome-frame strong { color: var(--text); }
  .chrome-frame span { color: var(--muted); }
}

/* Display contents lets the existing navigation participate in this site's page grid. */
html[data-theme-id="orange-press"][data-theme-id] {
  body { padding: 0 28px; background: repeating-linear-gradient(135deg, transparent 0 42px, rgba(181,51,16,.035) 43px 44px), var(--bg); }
  #app { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 0 24px; align-items: start; max-width: 1560px; margin: 0 auto; }
  .sitebar { display: contents; }
  .brand { grid-column: 2; grid-row: 1; min-height: 88px; max-width: calc(100% - 230px); font-size: 28px; }
  .account-chip { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; max-width: 220px; }
  .search-box { grid-column: 2; grid-row: 2; width: 100%; max-width: 420px; margin-bottom: 8px; justify-self: end; }
  .primary-nav { grid-column: 1; grid-row: 1 / span 7; position: sticky; top: 28px; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 24px 0; border-top: 14px solid var(--accent); border-bottom: 3px solid var(--text); counter-reset: chapter; }
  .primary-nav a { min-height: 64px; justify-content: space-between; padding: 15px 10px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 19px; }
  .primary-nav a::after { counter-increment: chapter; content: counter(chapter, decimal-leading-zero); font-size: 12px; }
  #app > :not(header):not(.modal-layer) { grid-column: 2; min-width: 0; }
  .six-home, .portal-shell, .page-stack, .auth-page, .dashboard-shell, .cashier-page, .checkout-page, .policy-page, .contact-page, .site-footer, .notice { width: 100%; }
  .six-home { padding-top: 16px; }
  .tremixo-stage { grid-template-columns: .9fr 1.1fr; padding-top: 0; }
  .tremixo-copy h1 { font-size: clamp(58px, 6.5vw, 92px); line-height: .95; padding-bottom: .08em; }
  .tremixo-lead { height: 445px; border-width: 5px; transform: rotate(-2deg); }
  .tremixo-lead strong { color: var(--on-accent); }
  .signal-copy { background: #161616; padding: 15px; }
  .signal-copy span { color: #f2ac19; }
  .signal-copy strong { color: #ffffff; }
  .signal-program { grid-template-rows: repeat(2, 200px); }
  .signal-slice { min-height: 235px; }
  .signal-wall { gap: 20px; }
}

@media (max-width: 1180px) {
  html:is([data-theme-id="toy-cabinet"], [data-theme-id="phosphor-station"], [data-theme-id="field-atlas"], [data-theme-id="tidal-observatory"], [data-theme-id="orange-press"])[data-theme-id] {
    .sitebar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .sitebar .search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; }
    .sitebar .account-chip { grid-column: 2; grid-row: 1; }
    .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .custom-recharge { grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr); }
    .custom-recharge > button { grid-column: 1 / -1; }
    .checkout-summary.compact { grid-template-columns: 1fr; }
    .currency-switch { grid-row: auto; grid-column: 1; justify-self: stretch; min-width: 0; }
    .tidal-opening { grid-template-columns: 1fr 1fr; }
    .tidal-pair { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zine-burst { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zine-page > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero-broadcast { grid-template-columns: 1fr; }
    .broadcast-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    .broadcast-channel { grid-column: 1 / -1; }
    .broadcast-lead { margin: 0; }
    .broadcast-rundown { margin: 0; }
  }
  html[data-theme-id="tidal-observatory"][data-theme-id] .sitebar .primary-nav { grid-column: 1 / -1; grid-row: 3; }
  html[data-theme-id="orange-press"][data-theme-id] { .tremixo-stage { grid-template-columns: 1fr; } .tremixo-copy h1 { max-width: 12ch; } .tremixo-lead { height: 370px; } .sitebar .search-box { grid-column: 2; grid-row: 2; } }
}

@media (max-width: 900px) {
  html:is([data-theme-id="phosphor-station"], [data-theme-id="field-atlas"])[data-theme-id] {
    body { padding-left: 0; padding-right: 0; }
    .sitebar .primary-nav { position: relative; inset: auto; width: 100%; grid-column: 1 / -1; grid-row: 3; padding: 8px 0 0; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 6px; border: 0; background: transparent; }
    .sitebar .primary-nav a { min-height: 44px; padding: 10px 13px; font-size: 12px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
    .primary-nav a::after { display: none; }
    .primary-nav a.active { transform: none; }
  }
  html[data-theme-id="orange-press"][data-theme-id] {
    body { padding: 0 18px; }
    #app { grid-template-columns: 120px minmax(0, 1fr); gap: 0 18px; }
    .primary-nav a { font-size: 16px; padding-inline: 5px; }
    .brand { font-size: 22px; }
    .signal-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
}

@media (max-width: 700px) {
  html:is([data-theme-id="toy-cabinet"], [data-theme-id="phosphor-station"], [data-theme-id="field-atlas"], [data-theme-id="tidal-observatory"], [data-theme-id="orange-press"])[data-theme-id] {
    body { padding-left: 0; padding-right: 0; padding-bottom: 0; }
    .sitebar { display: grid; position: relative; margin: 0; width: 100%; padding: 16px; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; border-radius: 0; }
    .sitebar .brand { grid-column: 1; grid-row: 1; max-width: none; min-height: 44px; font-size: 18px; }
    .brand-mark { flex-basis: 30px; width: 30px; height: 30px; font-size: 18px; }
    .sitebar .account-chip { grid-column: 2; grid-row: 1; max-width: 180px; font-size: 11px; gap: 5px; }
    .account-chip span { flex-basis: 100%; text-align: right; }
    .account-chip a, .account-chip button { font-size: 12px; min-height: 44px; padding: 8px 10px; }
    .sitebar .search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; margin: 0; }
    .sitebar .primary-nav { grid-column: 1 / -1; grid-row: 3; font-size: 11px; gap: 4px; justify-content: space-between; overflow: visible; }
    .primary-nav a { padding: 9px 8px; min-height: 44px; }
    .six-home, .portal-shell, .page-stack, .auth-page, .dashboard-shell, .cashier-page, .checkout-page, .policy-page, .contact-page, .notice, .site-footer { width: calc(100% - 32px); margin-left: auto; margin-right: auto; }
    .six-home h1 { font-size: clamp(38px, 10.5vw, 60px); max-width: 13ch; }
    .six-home .hero-actions { gap: 8px; margin-top: 22px; }
    .six-home .hero-actions .pill { font-size: 14px; padding: 10px 14px; }
    .zine-opening { grid-template-columns: 1fr; gap: 30px; padding-top: 5px; }
    .zine-lead { height: 330px; border-width: 8px; transform: rotate(1.5deg); box-shadow: 7px 7px 0 var(--accent-2); }
    .zine-lead strong { font-size: 23px; }
    .zine-burst { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; padding-top: 8px; }
    .zine-page > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
    .zine-page h2 { font-size: 38px; }
    .zine-sticker strong { font-size: 14px; }
    .hero-broadcast { grid-template-columns: 1fr; gap: 0; }
    .broadcast-copy { padding: 24px 20px; }
    .broadcast-feature { grid-template-columns: 1fr; padding: 20px; min-height: 0; }
    .broadcast-lead { min-height: 300px; }
    .broadcast-rundown { margin-top: 8px; }
    .broadcast-copy p { font-size: 15px; }
    .broadcast-grid > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .broadcast-card { padding: 8px; }
    .broadcast-card-line { gap: 5px; grid-template-columns: 18px minmax(0, 1fr); }
    .broadcast-card-line strong { font-size: 14px; }
    .tidal-opening, .atlas-opening { grid-template-columns: 1fr; }
    .tidal-pair { grid-column: 1; }
    .tidal-lead, .atlas-lead { height: 350px; }
    .atlas-region { padding: 20px 14px; }
    .waypoint-route { gap: 20px 12px; }
    .atlas-waypoint strong { font-size: 15px; }
    .tremixo-stage { grid-template-columns: 1fr; }
    .signal-program { grid-template-rows: none; }
    .tremixo-lead { height: 340px; transform: none; }
    .signal-slice { min-height: 260px; }
    .signal-copy { grid-template-columns: 1fr; gap: 7px; }
    .signal-copy strong { font-size: 15px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .product-list { padding: 18px 12px; }
    .product-card { padding: 14px 12px; min-height: 168px; }
    .product-card strong { font-size: 30px; }
    .product-card em { font-size: 13px; }
    .product-card .product-action { max-width: 100%; font-size: 11px; }
    .custom-recharge, .checkout-summary.compact, .cashier, .checkout-form .form-group, .checkout-layout, .dashboard-shell, .auth-page { grid-template-columns: minmax(0, 1fr); }
    .custom-recharge { padding: 18px 14px; gap: 16px; }
    .custom-recharge > button { grid-column: auto; }
    .custom-recharge strong { font-size: 26px; }
    .payment-card, .checkout-summary, .policy-document, .contact-copy, .contact-card { padding: 22px 18px; }
    .checkout-summary h1 { font-size: 36px; }
    .footer-shell { width: 100%; grid-template-columns: minmax(0, 1fr); padding: 26px 20px; }
    .footer-company h2 { max-width: none; }
    .footer-payment-badges { max-width: 280px; }
  }
  html:is([data-theme-id="toy-cabinet"], [data-theme-id="tidal-observatory"])[data-theme-id] {
    body { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
    .sitebar .primary-nav { position: fixed; inset: auto 12px max(12px, env(safe-area-inset-bottom)); left: 12px; width: calc(100vw - 24px); transform: none; z-index: 60; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 6px; border: 2px solid var(--text); border-radius: 16px; background: var(--panel); box-shadow: 0 4px 0 var(--text); }
    .sitebar .primary-nav a { min-height: 40px; padding: 7px 4px; justify-content: center; font-size: 11px; border-radius: 8px; }
  }
  html[data-theme-id="orange-press"][data-theme-id] {
    #app { display: block; }
    .sitebar { border-bottom: 5px solid var(--accent); }
    .sitebar .primary-nav { position: relative; inset: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: 7px 0 0; border: 0; }
    .sitebar .primary-nav a { font-size: 16px; border-bottom: 1px solid var(--line); }
    .sitebar .primary-nav a::after { font-size: 10px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html:is([data-theme-id="toy-cabinet"], [data-theme-id="phosphor-station"], [data-theme-id="field-atlas"], [data-theme-id="tidal-observatory"], [data-theme-id="orange-press"])[data-theme-id] {
    .six-home > section:first-child, .six-home [data-game-card] { animation: none; }
    *, *::before, *::after { scroll-behavior: auto; transition: none; }
  }
}

html:is([data-theme-id="toy-cabinet"], [data-theme-id="phosphor-station"], [data-theme-id="field-atlas"], [data-theme-id="tidal-observatory"], [data-theme-id="orange-press"])[data-theme-id] {
  .policy-index a.active, .policy-index a:hover { color: var(--on-accent-2); background: var(--accent-2); }
  .policy-meta-line, .policy-unavailable { color: var(--muted); background: var(--panel-strong); }
  .status { color: var(--text); background: var(--panel-strong); }
}
@media (min-width: 701px) {
  html[data-theme-id="orange-press"][data-theme-id] .sitebar .primary-nav { grid-column: 1; grid-row: 1 / span 7; }
}

/* Keep all selectable controls legible on both light and dark surfaces. */
html:is([data-theme-id="toy-cabinet"], [data-theme-id="phosphor-station"], [data-theme-id="field-atlas"], [data-theme-id="tidal-observatory"], [data-theme-id="orange-press"])[data-theme-id] {
  .filter-bar button, .chip, .currency-switch button { color: var(--text); background: var(--panel-strong); }
  .filter-bar button.active, .chip.active, .currency-switch button.active { color: var(--on-accent); background: var(--accent); }
  .checkout-form .form-group h3, .checkout-form .form-group label, .checkout-form .form-group strong { color: var(--text); }
  .checkout-form .form-group label > span > small { color: var(--muted); }
  .payment-method-card:has(input:checked) { background: var(--panel-strong); border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
  .payment-method-card input[type="radio"] { width: 22px; min-height: 22px; accent-color: var(--accent); }
}

html:is([data-theme-id="toy-cabinet"], [data-theme-id="phosphor-station"], [data-theme-id="field-atlas"], [data-theme-id="tidal-observatory"], [data-theme-id="orange-press"])[data-theme-id] {
  .category-card.active { background: var(--panel-strong); outline: 3px solid var(--accent); outline-offset: 2px; }
  .funds-gap-badge span, .funds-gap-badge small { color: var(--on-accent); opacity: 1; }
  .section-title a { color: var(--accent); }
  .payment-method-grid { grid-column: 1 / -1; display: grid; gap: 12px; }
  .payment-method-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); }
}

html:is([data-theme-id="toy-cabinet"], [data-theme-id="phosphor-station"], [data-theme-id="field-atlas"], [data-theme-id="tidal-observatory"], [data-theme-id="orange-press"])[data-theme-id] .receipt-total { color: var(--text); background: var(--panel-strong); }

/* Official payment artwork stays legible inside each theme's existing footer. */
html .footer-payments .payment-brand-list .payment-brand-card {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: start;
  flex: 0 0 88px;
  width: 88px;
  min-width: 88px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

html .footer-payments .payment-brand-list .payment-brand-card img {
  display: block;
  width: 66px;
  max-width: 100%;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
}

html .footer-payments .payment-brand-list .payment-brand-card--googlepay img {
  width: 48px;
  height: 24px;
}

html .footer-payments .payment-brand-list .payment-brand-card--cashapp {
  /* Span old footer grids without changing the existing flex layouts. */
  grid-column: 1 / -1;
  flex-basis: 162px;
  width: 162px;
  min-width: 162px;
  padding: 12px;
}

html .footer-payments .payment-brand-list .payment-brand-card--cashapp img {
  width: 135px;
  height: 24px;
}

/* Batch unitypay-five-20260920 — palette binding for this batch's five themes. */
/*
   Root cause: the shared sheet paints the page with a hardcoded two-tone gradient
   per design profile (e.g. styles.css:732 for kinetic-scoreboard goes #0d1625 ->
   #111c2d for the top 46% and then #e7eaee -> #f4f5f7), and it hardcodes light card
   surfaces (#fff, rgba(255,255,255,.88/.9)). Neither follows --bg or --panel, so a
   theme palette only binds if a scoped block opts the theme into its own surfaces.
   The 2026-09-14 batch has such a block at styles.css:3240; this batch shipped
   without one, so all five themes fell back to the profile's fixed colours and half
   of every page ended up same-on-same (measured 1.05-1.9 contrast on the cashier,
   login and catalogue views).

   This block binds the five theme palettes to the surfaces the template actually
   paints. Scoped to these five theme IDs only; no other site is affected.
*/
html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"], [data-theme-id="aurora-atlas"])[data-theme-id] {
  /* The page itself, instead of the profile's fixed two-tone gradient. */
  body { background: var(--site-background-image), var(--bg); color: var(--text); }
  body::before { opacity: .1; }

  /* Card surfaces the sheet hardcodes to white. */
  .product-list,
  .contact-copy, .contact-card,
  .policy-index, .policy-document, .policy-grid article,
  .auth-card, .auth-art,
  .protected-page section,
  .checkout-summary, .payment-card, .checkout-receipt, .checkout-result,
  .dash-side, .dash-main {
    color: var(--text);
    background: var(--panel);
    border-color: var(--line);
  }

  .cashier-hero {
    color: var(--text);
    background: linear-gradient(135deg, var(--panel), var(--panel-strong));
    border-color: var(--line);
  }

  .cashier-meter {
    color: var(--text);
    background: var(--panel-strong);
    border-color: var(--line);
    box-shadow: var(--soft-shadow);
  }

  .search-summary {
    color: var(--muted);
    background: var(--panel-strong);
    border: 1px solid var(--line);
  }

  .package {
    color: var(--text);
    background: var(--panel-strong);
    border-color: var(--line);
  }

  input, textarea {
    color: var(--text);
    background: var(--panel-strong);
    border-color: var(--line);
  }
  input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }

  .filter-bar button, .chip {
    color: var(--text);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .filter-bar button.active, .chip.active {
    color: var(--on-accent);
    background: var(--accent);
    border-color: transparent;
  }

  /* Game titles were pinned to a slate ink that disappears on a dark shelf. */
  .icon-meta strong { color: var(--text); }
  .icon-meta small { color: var(--muted); }

  /* The header search stays a light pill inside the always-dark site bar, so it
     needs its own ink rather than the theme's page text colour. */
  .search-box { background: #f6f7f9; border-color: rgba(255, 255, 255, .18); }
  .search-box input { color: #16181c; background: transparent; border: 0; }
  .search-box input::placeholder { color: #5b616c; opacity: 1; }

  /* Keep the catalogue shelf even instead of letting one feature card dominate. */
  .icon-card .thumb-link { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
  .icon-card .thumb-link img { width: 100%; height: 100%; object-fit: cover; }
}

/* ============================================================================
   UnityPay four-site visual identities — 2026-09-22

   These four sites render `six-home` homepage markup that is dispatched by
   design profile (games.js `renderHome`), while every rule for that markup is
   scoped by theme id to whichever theme originally shipped it. Their profiles
   matched the dispatch, their theme ids did not match any CSS, so the only
   rules that applied were the three unscoped `.six-home` fallbacks. The result
   was a column of raw 1280x720 images: measured 37,003px / 36,982px / 29,564px
   tall, with proofpointech falling through to a `.library-grid` that has no
   rules at all.

   Each block below implements that site's direction from
   plans/unitypay-five-sites-2026-09-20/design-directions.json against the
   markup it actually renders. Scoped to these four theme ids only; the shared
   profile rules are left alone because other live sites depend on them.

   Cover art is 720x405, so every lead image column is capped below that width
   and every card carries an explicit 16/9 ratio — no upscaling, no drift.
   ========================================================================== */


/* --- Shared: header and rhythm corrections ------------------------------- */

/* At 390px the four-column sitebar grid wraps the brand onto two lines and
   crushes the account pills. Re-flow it into two rows: identity + account on
   top, navigation and search below. */
@media (max-width: 720px) {
  html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .sitebar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand account' 'nav nav' 'search search';
    gap: 10px 12px;
    padding: 12px 14px;
  }
  html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .brand { grid-area: brand; white-space: nowrap; font-size: 15px; }
  /* nowrap + scroll keeps the six links on one line instead of orphaning CONTACT. */
  html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .primary-nav { grid-area: nav; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .primary-nav::-webkit-scrollbar { display: none; }
  html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .search-box { grid-area: search; }
  html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .account-chip { grid-area: account; }
  html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .account-chip > span { display: none; }
}

/* The sitebar is sticky at top:10px, so the first section of the page slides
   under it. techbdshdo showed this most clearly: its masthead was cut in half. */
html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .six-home > section:first-child,
html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .page-stack > .library-head:first-child {
  padding-top: clamp(26px, 4vw, 52px);
}

/* The shared mobile rule stacks hero buttons full-width; every finished theme
   opts back out of it, and these four should too. */
@media (max-width: 720px) {
  html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .six-home .hero-actions { flex-direction: row; flex-wrap: wrap; }
  html:is([data-theme-id="sentinel-lattice"], [data-theme-id="proof-ledger"], [data-theme-id="sonic-drift"], [data-theme-id="steel-gazette"]) .six-home .hero-actions .pill { width: auto; }
}


/* ==========================================================================
   sentinel-lattice — sentinetechnology.com — "哨塔栅格"
   Deep navy, ice-blue searchlight, amber markers. Skewed lattice behind the
   lead art, hairline grid lines, liquid-glass navigation and cards.
   ========================================================================== */

html[data-theme-id="sentinel-lattice"] {
  --lattice-line: rgba(127, 212, 255, .16);
  --lattice-glass: rgba(18, 36, 58, .58);
  --lattice-edge: rgba(190, 226, 255, .22);
}

html[data-theme-id="sentinel-lattice"] .sitebar {
  border: 1px solid var(--lattice-edge);
  border-radius: 14px;
  background: var(--lattice-glass);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(233, 246, 255, .22), 0 18px 44px rgba(2, 10, 22, .5);
}
html[data-theme-id="sentinel-lattice"] .primary-nav { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: .06em; }
html[data-theme-id="sentinel-lattice"] .primary-nav a::before { width: 5px; height: 5px; box-shadow: 0 0 10px var(--accent); }

html[data-theme-id="sentinel-lattice"] .tremixo-home { display: grid; gap: clamp(38px, 4.4vw, 62px); padding-bottom: clamp(40px, 6vw, 76px); }

html[data-theme-id="sentinel-lattice"] .tremixo-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--lattice-edge);
  border-radius: 18px;
  background: linear-gradient(128deg, rgba(27, 51, 80, .85), rgba(10, 22, 38, .92));
}
/* The skewed searchlight lattice. Sits behind content, never intercepts taps. */
html[data-theme-id="sentinel-lattice"] .tremixo-stage::before {
  content: '';
  position: absolute;
  inset: -40% -10%;
  z-index: 0;
  background:
    repeating-linear-gradient(104deg, transparent 0 46px, var(--lattice-line) 46px 47px),
    repeating-linear-gradient(14deg, transparent 0 46px, var(--lattice-line) 46px 47px),
    radial-gradient(circle at 24% 18%, rgba(127, 212, 255, .2), transparent 58%);
  transform: skewX(-12deg);
  pointer-events: none;
}
html[data-theme-id="sentinel-lattice"] .tremixo-stage > * { position: relative; z-index: 1; }

html[data-theme-id="sentinel-lattice"] .tremixo-copy > p {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
html[data-theme-id="sentinel-lattice"] .tremixo-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: .94;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
html[data-theme-id="sentinel-lattice"] .tremixo-copy > span {
  display: block;
  max-width: 40ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
}
html[data-theme-id="sentinel-lattice"] .tremixo-copy .hero-actions { margin-top: clamp(20px, 2.6vw, 30px); }

html[data-theme-id="sentinel-lattice"] .tremixo-lead {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--lattice-edge);
  border-radius: 14px;
  background: var(--panel-strong);
  box-shadow: 0 30px 70px rgba(2, 10, 22, .55);
}
html[data-theme-id="sentinel-lattice"] .tremixo-lead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(10, 22, 38, .9));
}
html[data-theme-id="sentinel-lattice"] .tremixo-lead strong {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 1;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.06;
  text-transform: uppercase;
}

/* Five featured slices on five equal tracks. A double-width first slice was
   tried and rejected: it made the row twice as tall as the four cards beside
   it and left a dead band under them. */
html[data-theme-id="sentinel-lattice"] .signal-program {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

html[data-theme-id="sentinel-lattice"] .signal-library > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(16px, 2vw, 24px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lattice-line);
}
html[data-theme-id="sentinel-lattice"] .signal-library h2 {
  margin: 0;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
html[data-theme-id="sentinel-lattice"] .signal-library > header a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
html[data-theme-id="sentinel-lattice"] .signal-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

html[data-theme-id="sentinel-lattice"] .signal-slice {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--lattice-edge);
  border-radius: 12px;
  background: var(--lattice-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(233, 246, 255, .14);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html[data-theme-id="sentinel-lattice"] .signal-slice:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 212, 255, .48);
  box-shadow: inset 0 1px 0 rgba(233, 246, 255, .2), 0 16px 34px rgba(2, 10, 22, .5);
}
html[data-theme-id="sentinel-lattice"] .signal-art { display: block; aspect-ratio: 16 / 9; background: var(--panel-strong); }
html[data-theme-id="sentinel-lattice"] .signal-slice > * { min-width: 0; }
html[data-theme-id="sentinel-lattice"] .signal-copy { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 10px 12px 12px; }
html[data-theme-id="sentinel-lattice"] .signal-copy > * { min-width: 0; }
html[data-theme-id="sentinel-lattice"] .signal-copy span {
  color: var(--accent-2);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
html[data-theme-id="sentinel-lattice"] .signal-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-theme-id="sentinel-lattice"] .signal-copy button {
  margin-top: 6px;
  border: 1px solid rgba(127, 212, 255, .34);
  border-radius: 8px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--accent);
  background: rgba(127, 212, 255, .1);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[data-theme-id="sentinel-lattice"] .signal-copy button:hover { color: var(--on-accent); background: var(--accent); }

@media (max-width: 1080px) {
  html[data-theme-id="sentinel-lattice"] .tremixo-stage { grid-template-columns: minmax(0, 1fr); }
  html[data-theme-id="sentinel-lattice"] .signal-program,
  html[data-theme-id="sentinel-lattice"] .signal-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html[data-theme-id="sentinel-lattice"] .signal-program,
  html[data-theme-id="sentinel-lattice"] .signal-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme-id="sentinel-lattice"] .signal-slice { transition: none; }
  html[data-theme-id="sentinel-lattice"] .signal-slice:hover { transform: none; }
}


/* ==========================================================================
   proof-ledger — proofpointech.com — "账本计分板"
   Paper white and grey-green, deep pine ink, brick-red accent. This profile
   (kinetic-scoreboard) has no six-home renderer, so the site opens on the
   library view — which suits a ledger. Numbered rows, hard 4px edges, a
   compact scoreboard head. Scoped to this theme so novagamex.com, which shares
   the profile, is untouched.
   ========================================================================== */

html[data-theme-id="proof-ledger"] {
  --ledger-rule: rgba(22, 33, 28, .16);
  --ledger-band: rgba(20, 107, 75, .06);
}

html[data-theme-id="proof-ledger"] .sitebar {
  border: 1px solid rgba(22, 33, 28, .5);
  border-radius: 4px;
  background: #16211c;
  box-shadow: 6px 6px 0 var(--accent);
}
html[data-theme-id="proof-ledger"] .primary-nav { font-family: 'Chakra Petch', sans-serif; letter-spacing: .08em; }

html[data-theme-id="proof-ledger"] .library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  padding-bottom: clamp(16px, 2vw, 22px);
  border-bottom: 3px solid var(--text);
}
html[data-theme-id="proof-ledger"] .library-head .eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  letter-spacing: .2em;
}
html[data-theme-id="proof-ledger"] .library-head h1 {
  margin: 0;
  color: var(--text);
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: .96;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
html[data-theme-id="proof-ledger"] .library-head > div > p:not(.eyebrow) {
  max-width: 54ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
html[data-theme-id="proof-ledger"] .search-summary {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--ledger-rule);
  border-radius: 4px;
  background: var(--panel-strong);
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
}

html[data-theme-id="proof-ledger"] .filter-bar { gap: 6px; margin-bottom: clamp(18px, 2.4vw, 26px); }
html[data-theme-id="proof-ledger"] .filter-bar button {
  border: 1px solid var(--ledger-rule);
  border-radius: 4px;
  min-height: 36px;
  padding: 8px 14px;
  background: var(--panel);
  box-shadow: none;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
html[data-theme-id="proof-ledger"] .filter-bar button.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* `.library-grid` carried no rules at all, which is why 48 cards rendered at
   562px each. Six ledger columns, numbered rows, 16/9 art matching the source.
   This grid also carries `block-heat-grid-gallery`, whose profile rules give
   every card `grid-column: span 3` (span 4 on a 7n rhythm) against a 12-column
   track. Those spans have to be reset here or two cards fill a row. */
html[data-theme-id="proof-ledger"] .game-grid.library-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--ledger-rule);
  background: var(--ledger-rule);
}
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-card,
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-card:nth-child(7n+1),
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-card:nth-child(7n+5) {
  counter-increment: ledger-row;
  position: relative;
  display: grid;
  grid-column: span 1;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  margin-top: 0;
  padding: 10px;
  overflow: hidden;
  background: var(--panel);
}
/* `.icon-card` becomes a grid container here, so its children default to
   min-width:auto and a long nowrap title would push past the column. */
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-card > * { min-width: 0; }
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-card:nth-child(even) { background: color-mix(in srgb, var(--panel) 92%, var(--accent)); }
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-card::before {
  content: counter(ledger-row, decimal-leading-zero);
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 2px 5px;
  color: var(--panel);
  background: var(--text);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}
html[data-theme-id="proof-ledger"] .game-grid.library-grid { counter-reset: ledger-row; }
/* The art box owns the ratio; the image just fills it. Setting the ratio on the
   image alone loses to the square `.thumb-link img` sizing it inherits. */
html[data-theme-id="proof-ledger"] .game-grid.library-grid .thumb-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--ledger-rule);
  background: var(--panel-strong);
}
html[data-theme-id="proof-ledger"] .game-grid.library-grid .thumb-link img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-card:hover .thumb-link img { transform: none; box-shadow: 0 0 0 2px var(--accent); }
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-tags { left: 12px; top: 12px; }
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-tags span { border-radius: 2px; font-size: 8px; }
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-meta { margin-top: 8px; min-height: 0; }
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-meta strong {
  color: var(--text);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
html[data-theme-id="proof-ledger"] .game-grid.library-grid .icon-meta small { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
/* The action row is hover-revealed by the shared profile rules; on a ledger it
   should hold its slot so rows do not jump. */
html[data-theme-id="proof-ledger"] .game-grid.library-grid .card-actions { margin-top: 8px; opacity: 1; transform: none; }
html[data-theme-id="proof-ledger"] .game-grid.library-grid .card-actions button {
  border: 1px solid var(--text);
  border-radius: 4px;
  min-height: 30px;
  color: var(--text);
  background: transparent;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[data-theme-id="proof-ledger"] .game-grid.library-grid .card-actions button:hover { color: var(--panel); background: var(--text); }

@media (max-width: 1080px) {
  html[data-theme-id="proof-ledger"] .library-head { grid-template-columns: minmax(0, 1fr); }
  html[data-theme-id="proof-ledger"] .game-grid.library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html[data-theme-id="proof-ledger"] .game-grid.library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ==========================================================================
   sonic-drift — soundhounhitech.com — "声波夜航"
   Deep violet night, mint signal lines, rose highlights. Curved lead art,
   staggered wave shelves, liquid-glass frames.
   ========================================================================== */

html[data-theme-id="sonic-drift"] {
  --drift-glass: rgba(44, 27, 76, .5);
  --drift-edge: rgba(244, 238, 255, .16);
}

html[data-theme-id="sonic-drift"] .sitebar {
  border: 1px solid var(--drift-edge);
  border-radius: 26px;
  background: var(--drift-glass);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 20px 50px rgba(9, 4, 20, .5);
}

html[data-theme-id="sonic-drift"] .orlixas-home { display: grid; gap: clamp(48px, 6vw, 90px); padding-bottom: clamp(40px, 6vw, 76px); }

html[data-theme-id="sonic-drift"] .tidal-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  grid-template-areas: 'title lead' 'pair lead';
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
}
html[data-theme-id="sonic-drift"] .tidal-title { grid-area: title; align-self: end; }
html[data-theme-id="sonic-drift"] .tidal-title > p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
html[data-theme-id="sonic-drift"] .tidal-title h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -.035em;
}
html[data-theme-id="sonic-drift"] .tidal-title .hero-actions { margin-top: clamp(20px, 2.6vw, 30px); }

/* The wave: an asymmetric organic radius, echoing the sonar theme. */
html[data-theme-id="sonic-drift"] .tidal-lead {
  position: relative;
  grid-area: lead;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--drift-edge);
  border-radius: 46% 54% 28% 72% / 36% 30% 70% 64%;
  background: var(--panel-strong);
  box-shadow: 0 34px 80px rgba(9, 4, 20, .55);
}
html[data-theme-id="sonic-drift"] .tidal-lead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 18%, rgba(255, 158, 203, .28), transparent 56%), linear-gradient(180deg, transparent 52%, rgba(18, 10, 36, .88));
}
/* The organic radius eats the corners, so the caption has to sit well inside
   it or the first and last glyphs are clipped by the curve. */
html[data-theme-id="sonic-drift"] .tidal-lead strong {
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 13%;
  z-index: 1;
  color: var(--text);
  font-size: clamp(17px, 1.9vw, 24px);
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}
/* Hold the pair at collection-card scale; left to fill the column they render
   half again as large as every card below them. */
html[data-theme-id="sonic-drift"] .tidal-pair { grid-area: pair; display: grid; grid-template-columns: repeat(2, minmax(0, 216px)); gap: 16px; align-self: start; }

/* Staggered shelves: alternate cards ride lower, so the row reads as a wave. */
html[data-theme-id="sonic-drift"] .chrome-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
html[data-theme-id="sonic-drift"] .chrome-gallery .chrome-frame:nth-child(odd) { margin-top: clamp(18px, 2.6vw, 38px); }

html[data-theme-id="sonic-drift"] .chrome-collection h2 {
  margin: 0 0 clamp(16px, 2vw, 24px);
  color: var(--text);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
html[data-theme-id="sonic-drift"] .chrome-collection > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
html[data-theme-id="sonic-drift"] .chrome-collection > div .chrome-frame:nth-child(even) { margin-top: clamp(14px, 2vw, 30px); }

html[data-theme-id="sonic-drift"] .chrome-frame {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--drift-edge);
  border-radius: 20px;
  background: var(--drift-glass);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 30px rgba(9, 4, 20, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}
html[data-theme-id="sonic-drift"] .chrome-frame:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 22px 44px rgba(9, 4, 20, .55);
}
html[data-theme-id="sonic-drift"] .chrome-frame > a { display: block; aspect-ratio: 16 / 9; background: var(--panel-strong); }
html[data-theme-id="sonic-drift"] .chrome-frame > * { min-width: 0; }
html[data-theme-id="sonic-drift"] .chrome-frame > div { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 11px 13px 13px; }
html[data-theme-id="sonic-drift"] .chrome-frame > div > * { min-width: 0; }
html[data-theme-id="sonic-drift"] .chrome-frame strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-theme-id="sonic-drift"] .chrome-frame span { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
html[data-theme-id="sonic-drift"] .chrome-frame button {
  margin-top: 7px;
  border: 1px solid rgba(143, 227, 196, .34);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  color: var(--accent);
  background: rgba(143, 227, 196, .1);
  font-size: 12px;
  font-weight: 600;
}
html[data-theme-id="sonic-drift"] .chrome-frame button:hover { color: var(--on-accent); background: var(--accent); }

@media (max-width: 1080px) {
  html[data-theme-id="sonic-drift"] .tidal-opening { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'title' 'lead' 'pair'; }
  html[data-theme-id="sonic-drift"] .tidal-lead { aspect-ratio: 16 / 10; }
  html[data-theme-id="sonic-drift"] .chrome-gallery,
  html[data-theme-id="sonic-drift"] .chrome-collection > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html[data-theme-id="sonic-drift"] .chrome-gallery,
  html[data-theme-id="sonic-drift"] .chrome-collection > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* The stagger costs more than it gives on a two-column phone layout. */
  html[data-theme-id="sonic-drift"] .chrome-gallery .chrome-frame:nth-child(odd),
  html[data-theme-id="sonic-drift"] .chrome-collection > div .chrome-frame:nth-child(even) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme-id="sonic-drift"] .chrome-frame { transition: none; }
  html[data-theme-id="sonic-drift"] .chrome-frame:hover { transform: none; }
}


/* ==========================================================================
   steel-gazette — techbdshdo.com — "钢灰报刊"
   Newsprint white, ink-black body, steel blue, press red. Magazine columns,
   hairline typographic rules, a numbered index.
   ========================================================================== */

html[data-theme-id="steel-gazette"] {
  --gazette-rule: rgba(26, 26, 28, .2);
  --gazette-hair: rgba(26, 26, 28, .1);
}

html[data-theme-id="steel-gazette"] .sitebar {
  border: 1px solid rgba(26, 26, 28, .55);
  border-radius: 2px;
  background: #1a1a1c;
  box-shadow: 0 10px 26px rgba(26, 26, 28, .26);
}
html[data-theme-id="steel-gazette"] .primary-nav { font-family: 'Bricolage Grotesque', sans-serif; letter-spacing: .04em; }

html[data-theme-id="steel-gazette"] .ulmexosy-home { display: grid; gap: clamp(34px, 4.5vw, 62px); padding-bottom: clamp(40px, 6vw, 76px); }

/* Masthead: three fields on one rule, the way a paper sets its nameplate. */
html[data-theme-id="steel-gazette"] .issue-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}
html[data-theme-id="steel-gazette"] .issue-masthead span {
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
}
html[data-theme-id="steel-gazette"] .issue-masthead p { margin: 0; color: var(--muted); font-size: 13px; font-style: italic; }
html[data-theme-id="steel-gazette"] .issue-masthead b {
  margin-left: auto;
  padding: 3px 8px;
  color: var(--panel);
  background: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-theme-id="steel-gazette"] .front-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, .85fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: start;
}
html[data-theme-id="steel-gazette"] .front-copy { border-right: 1px solid var(--gazette-hair); padding-right: clamp(14px, 2vw, 26px); }
html[data-theme-id="steel-gazette"] .front-copy > p {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
html[data-theme-id="steel-gazette"] .front-copy h1 {
  margin: 0;
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: .96;
  letter-spacing: -.035em;
}
html[data-theme-id="steel-gazette"] .front-copy > span {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gazette-hair);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
html[data-theme-id="steel-gazette"] .front-copy .hero-actions { margin-top: clamp(16px, 2.2vw, 24px); }

html[data-theme-id="steel-gazette"] .front-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--gazette-rule);
  border-radius: 2px;
  background: var(--panel-strong);
}
html[data-theme-id="steel-gazette"] .front-cover strong {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 92%;
  padding: 8px 14px;
  color: var(--panel);
  background: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1.12;
}
html[data-theme-id="steel-gazette"] .front-page aside { display: grid; gap: 0; border-top: 2px solid var(--text); }

html[data-theme-id="steel-gazette"] .issue-index > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(14px, 1.8vw, 20px);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
}
html[data-theme-id="steel-gazette"] .issue-index h2 {
  margin: 0;
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.03em;
}
html[data-theme-id="steel-gazette"] .issue-index > header a { color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
html[data-theme-id="steel-gazette"] .issue-index > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(18px, 2.4vw, 30px);
}

/* Index entry: number, art, title, action — set as a compact listing row. */
html[data-theme-id="steel-gazette"] .issue-entry {
  display: grid;
  grid-template-columns: 26px minmax(0, 88px) minmax(0, 1fr);
  grid-template-areas: 'num art copy' 'num art action';
  gap: 2px 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gazette-hair);
}
html[data-theme-id="steel-gazette"] .issue-number {
  grid-area: num;
  color: var(--accent);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
html[data-theme-id="steel-gazette"] .issue-entry > a {
  grid-area: art;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--gazette-hair);
  background: var(--panel-strong);
}
html[data-theme-id="steel-gazette"] .issue-entry > div { grid-area: copy; display: grid; gap: 2px; min-width: 0; }
html[data-theme-id="steel-gazette"] .issue-entry > div > * { min-width: 0; }
html[data-theme-id="steel-gazette"] .issue-entry strong {
  overflow: hidden;
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-theme-id="steel-gazette"] .issue-entry small { color: var(--muted); font-size: 11px; text-transform: capitalize; }
html[data-theme-id="steel-gazette"] .issue-entry button {
  grid-area: action;
  justify-self: start;
  align-self: end;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
html[data-theme-id="steel-gazette"] .issue-entry button:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

@media (max-width: 1080px) {
  html[data-theme-id="steel-gazette"] .front-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html[data-theme-id="steel-gazette"] .front-copy { border-right: 0; padding-right: 0; }
  html[data-theme-id="steel-gazette"] .front-page aside { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 30px); }
  html[data-theme-id="steel-gazette"] .issue-index > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html[data-theme-id="steel-gazette"] .front-page { grid-template-columns: minmax(0, 1fr); }
  html[data-theme-id="steel-gazette"] .front-page aside { grid-template-columns: minmax(0, 1fr); }
  html[data-theme-id="steel-gazette"] .issue-index > div { grid-template-columns: minmax(0, 1fr); }
  html[data-theme-id="steel-gazette"] .issue-masthead b { margin-left: 0; }
}
