/* Shared Lumiri design layer. Page-specific layouts and semantic status colours stay intact. */
:root {
    --bg:#080d19;
    --surface:#101b2b;
    --raised:#19293b;
    --border:#30465c;
    --text:#f0f5ff;
    --muted:#b1bdd1;
    --primary:#7ff4e3;
    --violet:#bc9bff;
    --radius:12px;
    --panel-edge:#30465c;
    --panel-glass:linear-gradient(140deg,#122033,#0e1726);
    --soft-shadow:0 16px 42px #0003,inset 0 1px #ffffff08;
    --lumiri-focus:0 0 0 3px #7ff4e324;
}
body { background:radial-gradient(ellipse at 90% 0,#43315b33,transparent 48rem),radial-gradient(ellipse at 0 80%,#17424b26,transparent 45rem),var(--bg); color:var(--text); }
body::before { background-size:72px 72px; opacity:.14; }
h1,h2,h3 { letter-spacing:-.035em; }
h1 { line-height:1.12; }
.eyebrow,.nav-label { color:#a9b9d0; }
a { text-underline-offset:4px; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:2px solid var(--primary); outline-offset:4px; }

/* A quiet shared shell keeps game imagery and page content in the foreground. */
.sidebar { background:linear-gradient(180deg,#101b2b,#090f1c 80%); border-color:var(--border); box-shadow:12px 0 40px #0002; }
.sidebar nav a,.nav-group>summary { border-radius:8px; }
.sidebar nav a[aria-current=page] { color:var(--primary); border-color:#7ff4e34d; background:linear-gradient(90deg,#183b43,#162536); box-shadow:inset 3px 0 var(--primary); }
.sidebar .brand .logo { border-radius:10px; box-shadow:none; }
.topbar { min-height:68px; background:#09131fed; border-color:var(--border); backdrop-filter:blur(14px); }
.global-search { border-radius:9px; background:#0a1522; }
.currency-form { border-radius:8px; background:#101c2b; }
.container { max-width:1500px; }

/* Shared title panels, including catalogue, charts, account, Lab and administration. */
:is(.public-page-header,.trending-intro,.member-hero,.lab-hero,.admin-heading,.company-hero,.game-hero-modern) {
    border:1px solid #456273;
    border-radius:4px 20px 4px 20px;
    background:radial-gradient(ellipse at 95% 0,#65509122,transparent 60%),linear-gradient(125deg,#15283a,#101a2a);
    box-shadow:0 20px 55px #0003,inset 0 1px #7ff4e318;
}
.admin-heading { padding:24px; }
.public-page-header { padding:28px 32px; min-height:0; }
.public-page-header h1 { font-size:clamp(30px,3.6vw,48px); line-height:1.1; }
.public-page-header::after { opacity:.5; }
:is(.public-page-header,.trending-intro,.member-hero,.lab-hero,.admin-heading,.company-hero) p { color:var(--muted); }

/* Reusable surfaces. Avoid changing the layout or meaning of specialised widgets. */
:is(.panel,.settings-card,.admin-card,.admin-stats>div,.ranking-table-wrap,.trending-panel,.release-chart-panel,.release-upcoming-panel,.public-information-page section,.feature-link,.lab-tool-card,.company-card,.auth-card,.status-card) {
    border-color:var(--border);
    border-radius:var(--radius);
    background:var(--panel-glass);
    box-shadow:var(--soft-shadow);
}
:is(.game-card,.deal-row,.home-library-row) { border-color:var(--border); border-radius:var(--radius); background:var(--panel-glass); box-shadow:var(--soft-shadow); }
:is(.game-card,.deal-row,.feature-link,.lab-tool-card,.company-card):hover { border-color:#72d2cb88; box-shadow:0 18px 42px #0004; }
:is(.game-card,.deal-row):hover { transform:none; }
.game-card-cover img { border-radius:8px; }
:is(.library-filters,.public-search-form,.admin-form,.price-explanation,.discovery-nav,.member-tabs) { border-color:var(--border); border-radius:10px; background:#0e1a2a; }
:is(.public-page-badge,.count-pill,.pill) { border-color:#7ff4e34d; background:#143038; color:#cafff2; box-shadow:none; }

/* Buttons share a clear hierarchy; destructive and warning actions keep their own colours. */
button,.button { min-height:44px; border-radius:8px; border-color:#3b566d; background:linear-gradient(#1b2c40,#142337); box-shadow:inset 0 1px #ffffff0a; }
button:hover,.button:hover { border-color:#7ff4e388; background:#20354a; }
.button-primary { border-color:var(--primary); color:#082c30; background:linear-gradient(110deg,#7ff4e3,#91dceb); box-shadow:0 6px 20px #7ff4e312; }
.button-primary:hover { color:#082c30; background:#a5fff0; border-color:#c0fff4; }
input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea { border-radius:8px; border-color:#365168; background:#091421; color:var(--text); }
input:focus,select:focus,textarea:focus { border-color:var(--primary); box-shadow:var(--lumiri-focus); }
input::placeholder,textarea::placeholder { color:#91a4ba; opacity:1; }
button:disabled,input:disabled,select:disabled,textarea:disabled { opacity:.6; cursor:not-allowed; }

/* Tables stay compact enough for data-heavy pages; rows remain easy to track. */
:is(.ranking-table,.trending-table,.admin-table) thead th { color:#b1bfd2; background:#0b1523; }
:is(.ranking-table,.trending-table,.admin-table) tbody tr:hover>td { background:#172c3c; }
.member-tabs a[aria-current=page],.discovery-nav a[aria-current=page] { color:var(--primary); background:#18313d; border-radius:7px; }
.auth-context { background:radial-gradient(ellipse at 30% 20%,#67509944,transparent 70%),linear-gradient(#142c39,#10182b); }
.auth-mark { color:var(--primary); }
.status-coming-soon .status-card { border-radius:4px 24px 4px 24px; }
.site-footer { border-color:var(--border); background:#0a1320; }

/* The consent panel keeps both choices equally visible and full information expandable. */
.advertising-consent { width:min(880px,calc(100% - 32px)); padding:16px 20px; border-color:#436276; border-radius:12px; background:#101c2bf7; }
.advertising-consent h2 { margin:0 0 6px; font-size:16px; }
.advertising-consent p { margin:6px 0; font-size:12px; line-height:1.55; }
.advertising-consent details { margin:6px 0 12px; font-size:12px; }
.advertising-consent summary { width:fit-content; padding:3px 0; color:var(--primary); cursor:pointer; }
.advertising-consent-actions { gap:10px; }
.advertising-consent-actions button { flex:1 1 0; min-width:0; font-size:12px; }
.advertising-consent [data-advertising-status]:empty { display:none; }
@media(max-width:760px) {
    .public-page-header { padding:24px 20px; }
    .admin-heading { padding:20px; }
    .topbar { padding:12px 18px; }
    :is(.public-page-header,.member-hero,.lab-hero,.admin-heading,.company-hero) { border-radius:4px 16px 4px 16px; }
    .advertising-consent { inset:auto 12px 12px; width:calc(100% - 24px); padding:14px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; scroll-behavior:auto !important; transition:none !important; } }
/* Destructive actions keep their established warning treatment. */
.button-danger,.admin-danger-button { border-color:#915365; color:#ffb9c4; background:#39202c; }
.button-danger:hover,.admin-danger-button:hover { border-color:#e08096; color:#ffd9e1; background:#4a2534; }
@media(max-width:700px) {
    .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:10px 18px; }
    .topbar-lumiri { display:none; }
    .global-search { grid-column:1; width:100%; min-width:0; gap:6px; padding-left:8px; }
    .global-search input { font-size:12px; }
    .global-search button { padding:7px 9px; font-size:11px; }
    .currency-form { grid-column:2; width:auto; margin:0; padding:3px; }
    .currency-form label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
    .currency-form select { min-height:38px; padding:5px; font-size:12px; }
}
@media(max-width:700px) { .topbar .global-search,.topbar .currency-form { grid-row:1; } }
