@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;500;600;700;800&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: 16px; line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; background: radial-gradient(circle at 14% -8%, rgba(215,255,79,.28), transparent 19rem), radial-gradient(circle at 86% 4%, rgba(255,106,61,.24), transparent 22rem), linear-gradient(180deg, #10110f 0%, #1f2d26 41%, #e9efcf 41.1%, #f4eedc 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(1120px, calc(100% - 28px)); min-height: 68px; margin: 0 auto; padding: 10px 12px; border: 1px solid rgba(247,241,223,.16); border-radius: 24px; background: rgba(16,17,15,.86); color: #f7f1df; backdrop-filter: blur(18px); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.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(1120px, calc(100% - 28px)); 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 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(5, minmax(0, 1fr)); gap: 12px; }
.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); }
.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 span { border-radius: 16px; padding: 12px 14px; background: rgba(18,32,25,.08); font-weight: 900; overflow-wrap: anywhere; }
.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 { border-radius: 999px; padding: 10px 12px; color: var(--muted); font-weight: 900; }
.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-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: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding: 18px 0 28px; color: var(--muted); font-size: 13px; font-weight: 700; }
.site-footer a { color: var(--accent-2); font-weight: 800; }
.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; }
@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 { 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; }
  .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; }
  .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; }
}

/* 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="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="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 { 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 { 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;
  }
}
