@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;
  --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);
}
* { 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(--text); }
.search-box button { display: grid; place-items: center; height: 100%; border: 0; color: #07120f; 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(--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: #10110f; 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, .policy-page, .contact-page, .loading-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; 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 .thumb-placeholder { min-height: 0; }
.hero-game span { position: absolute; left: 20px; top: 20px; border-radius: 999px; padding: 5px 8px; color: #07120f; 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: #07120f; 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: #fffaf0; 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: #07120f; 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: #10110f; background: var(--accent); font-family: var(--font-display); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.icon-card.maintenance .card-actions button { color: #10110f; 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; 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: #07120f; 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,.62); color: var(--text); font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.success-detail-grid b { color: var(--muted); 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(--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(--text); background: #fff; box-shadow: var(--soft-shadow); }
.filter-bar button.active, .chip.active { color: #fff; 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: #fff; 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, .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(--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 { grid-column: 1 / -1; }
.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-methods b { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.contact-methods a { color: #a64612; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.support-note { margin-top: 20px; border-left: 5px solid var(--accent); padding: 12px 14px; color: #2d2115; background: rgba(255, 122, 26, .12); font-weight: 800; }
.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, .loading-page { min-height: 62vh; display: grid; place-items: center; }
.protected-page section, .loading-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: #10110f; 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: grid; gap: 12px; justify-items: center; margin-top: 28px; padding: 18px 0 28px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.site-footer a { color: var(--accent-2); font-weight: 800; }
.footer-brand { display: grid; gap: 2px; justify-items: center; color: var(--muted); }
.footer-brand strong { color: var(--text); font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; }
.footer-identity, .footer-policies { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 18px; }
.footer-policies { max-width: 980px; padding-top: 10px; border-top: 1px solid rgba(29, 19, 10, .14); }
.footer-policies > span { color: var(--text); font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
@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; }
  .portal-hero, .auth-page, .dashboard-shell, .cashier-page, .contact-page { grid-template-columns: 1fr; }
  .checkout-summary.compact { grid-template-columns: 1fr; }
  .checkout-summary.compact .cashier-rules, .currency-switch { grid-column: auto; grid-row: auto; }
  .currency-switch { justify-self: stretch; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-steps { 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, .policy-page, .contact-page, .loading-page, .notice, .site-footer, .sitebar { width: min(100% - 18px, 1120px); }
  .brand strong { font-size: 15px; }
  .account-chip span { display: none; }
  .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, .cashier, .policy-grid { grid-template-columns: 1fr; }
  .section-title, .library-head { flex-direction: column; align-items: flex-start; }
}

/* PlayVorast site skin: retro rally scoreboard, kept local to this generated site. */
:root {
  --bg: #130f0a;
  --bg-2: #2b1c10;
  --card: #fff0c8;
  --text: #1d130a;
  --muted: #7b6748;
  --accent: #ff7a1a;
  --accent-2: #a8ff3f;
  --line: rgba(29, 19, 10, .16);
  --danger: #ff4b3e;
  --shadow: 0 24px 60px rgba(42, 22, 7, .28);
  --soft-shadow: 0 12px 0 rgba(29, 19, 10, .08), 0 14px 28px rgba(42, 22, 7, .16);
}

body {
  background:
    linear-gradient(180deg, rgba(19, 15, 10, .18) 0%, rgba(19, 15, 10, .62) 34%, rgba(43, 28, 16, .92) 45%, rgba(232, 209, 159, .96) 45.1%, #fff3d6 100%),
    radial-gradient(circle at 12% -12%, rgba(255, 122, 26, .34), transparent 20rem),
    radial-gradient(circle at 88% 2%, rgba(168, 255, 63, .22), transparent 24rem),
    url('/assets/playvorast-atmosphere.webp') center top / min(1920px, 150vw) auto no-repeat,
    linear-gradient(180deg, #130f0a 0%, #2b1c10 45%, #e8d19f 45.1%, #fff3d6 100%);
}

body::before {
  opacity: .22;
  background-image:
    linear-gradient(90deg, rgba(168, 255, 63, .18) 0 2px, transparent 2px 74px),
    linear-gradient(135deg, rgba(255, 240, 200, .16) 0 1px, transparent 1px 24px);
  background-size: 148px 40px, 34px 34px;
}

.sitebar {
  border-radius: 12px;
  border-color: rgba(255, 240, 200, .24);
  background: rgba(19, 15, 10, .9);
}

.brand-mark {
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 6px 6px 0 rgba(168, 255, 63, .2);
}

.portal-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(210px, 280px);
  min-height: 520px;
}

.portal-hero h1 {
  max-width: 13ch;
  text-transform: uppercase;
}

.portal-hero > div {
  position: relative;
}

.portal-hero > div::after {
  content: 'PLAYVORAST';
  position: absolute;
  left: 0;
  bottom: -34px;
  color: rgba(255, 240, 200, .08);
  font-family: var(--font-display);
  font-size: clamp(58px, 12vw, 136px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .8;
  pointer-events: none;
}

.hero-game {
  border-radius: 14px;
  border-color: rgba(168, 255, 63, .8);
  box-shadow: 14px 14px 0 rgba(168, 255, 63, .18), 0 28px 70px rgba(0, 0, 0, .36);
  transform: rotate(-3deg);
}

.hero-game span,
.icon-tags span,
.product-card span,
.custom-recharge span {
  border-radius: 6px;
  letter-spacing: .08em;
}

.home-strip div,
.category-card,
.product-card,
.policy-index,
.policy-document,
.contact-copy,
.contact-card,
.auth-art,
.auth-card,
.checkout-summary,
.payment-card,
.dash-side,
.dash-main,
.product-list {
  border-radius: 14px;
}

.thumb-link img,
.thumb-placeholder {
  border-radius: 12px;
  box-shadow: 8px 8px 0 rgba(29, 19, 10, .12), 0 18px 34px rgba(42, 22, 7, .16);
}

.icon-card:hover .thumb-link img {
  transform: translate(-2px, -5px) rotate(-1deg);
  box-shadow: 12px 12px 0 rgba(168, 255, 63, .24), 0 22px 42px rgba(42, 22, 7, .22);
}

.pill,
.account-chip a,
.account-chip button {
  border-radius: 8px;
  text-transform: uppercase;
}

.pill.primary,
.account-chip a:first-of-type {
  background: linear-gradient(135deg, var(--accent), #ffbd59);
}

.filter-bar button.active,
.chip.active {
  color: #130f0a;
  background: var(--accent);
}

.policy-meta-line,
.cashier-rules span,
.checkout-heading span {
  border-radius: 6px;
}

@media (max-width: 980px) {
  .portal-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }
}
