/* ==========================================================================
   Zuno Marketplace design system — "Console store"
   Modelled on the PlayStation Store: deep blue-black surfaces, one blue call
   to action, a single humanist sans with weight contrast, key-art heroes that
   fade into the page, square product tiles in shelves, pill buttons.
   ========================================================================== */

:root {
    --bg: #0b0f17;
    --bg-2: #131927;
    --bg-3: #1b2232;
    --bg-4: #252e40;
    --fg: #ffffff;
    --fg-2: #b7bfcc;
    --fg-3: #7d8697;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.24);

    --blue: #0070d1;
    --blue-hover: #1c8aec;
    --blue-soft: rgba(0, 112, 209, 0.2);
    --blue-ink: #ffffff;

    --ok: #3ecf7a;
    --ok-soft: rgba(62, 207, 122, 0.16);
    --warn: #f3b83b;
    --warn-soft: rgba(243, 184, 59, 0.16);
    --bad: #ff5c5c;
    --bad-soft: rgba(255, 92, 92, 0.16);
    --info: #5aa9ff;
    --info-soft: rgba(90, 169, 255, 0.16);

    --r-sm: 4px;
    --r: 8px;
    --r-lg: 12px;

    --font: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.8);
    --z-topbar: 100;
    --z-toast: 1000;

    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

html, body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 16px;
}

body {
    min-height: 100dvh;
    line-height: 1.45;
    overflow-x: clip;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(0, 112, 209, 0.16), transparent 70%),
        var(--bg);
}

::selection { background: var(--blue); color: #fff; }

a { color: var(--fg); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 0.18em; }
a.underline-link { text-decoration: underline; text-underline-offset: 0.18em; }

code, pre, .mono { font-family: var(--font-mono); font-size: 0.86em; }
code { color: var(--fg); background: var(--bg-3); padding: 0.1em 0.35em; border-radius: var(--r-sm); }
pre { color: var(--fg-2); }
pre code { background: none; padding: 0; }

h1, h2, h3, h4, h5, h6, .display, .display-2 {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    text-wrap: balance;
    margin: 0;
}
h1:focus, h1:focus-visible { outline: none; }
p { text-wrap: pretty; }

.display { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; }
.display-2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.lede { font-size: 1.12rem; line-height: 1.5; color: var(--fg-2); max-width: 56ch; }
.prose { font-size: 1.05rem; line-height: 1.6; color: var(--fg-2); max-width: 70ch; white-space: pre-line; }

.text-dim { color: var(--fg-2) !important; }
.text-faint { color: var(--fg-3) !important; }
.text-accent { color: var(--blue-hover) !important; }
.text-danger { color: var(--bad) !important; }
.text-warning { color: var(--warn) !important; }
.text-white { color: var(--fg) !important; }
.tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.eyebrow.accent { color: var(--blue-hover); }
a.eyebrow:hover { color: var(--fg); text-decoration: none; }

.label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 0.4rem;
}

.container-xl { max-width: 1320px; }
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
hr { border-color: var(--line); opacity: 1; }
.ico { flex-shrink: 0; vertical-align: -0.2em; }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: var(--z-toast); padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 1rem; color: #fff; }

/* --------------------------------------------------------------------------
   Shell: top bar + footer
   -------------------------------------------------------------------------- */

.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.shell-main { flex: 1 0 auto; }

.topbar {
    position: sticky;
    top: 0;
    z-index: var(--z-topbar);
    background: rgba(11, 15, 23, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.topbar-row { display: flex; align-items: center; gap: 1.75rem; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg); white-space: nowrap; line-height: 1; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--fg); text-decoration: none; }
.brand .brand-sub { font-weight: 400; color: var(--fg-2); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fg);
    color: var(--bg);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.mainnav { display: flex; align-items: center; gap: 0.25rem; align-self: stretch; }
.mainnav a { white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 100%;
    padding: 0 0.8rem;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--fg-2);
}
.mainnav a:hover { color: var(--fg); text-decoration: none; }
.mainnav a.active { color: var(--fg); }
.mainnav a.active::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.mainnav .ico { display: none; }
.mainnav-mobile { overflow-x: auto; scrollbar-width: none; }
.mainnav-mobile::-webkit-scrollbar { display: none; }
.mainnav-mobile .mainnav { height: 44px; flex-wrap: nowrap; }
.mainnav-mobile .mainnav a { padding: 0 0.6rem; }

.search { position: relative; width: 100%; max-width: 300px; margin-left: auto; }
.search .ico { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.search input {
    width: 100%;
    padding: 0.55rem 0.9rem 0.55rem 2.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--bg-3);
    color: var(--fg);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--fg-3); }
.search input:focus { outline: none; border-color: var(--blue); background: var(--bg-2); box-shadow: 0 0 0 3px var(--blue-soft); }

.user-chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.25rem 0.85rem 0.25rem 0.25rem; border-radius: 999px; background: var(--bg-3); color: var(--fg); font-weight: 600; font-size: 0.9rem; transition: background-color 0.2s; }
.user-chip:hover { color: var(--fg); background: var(--bg-4); text-decoration: none; }

.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, #2d6cdf, #0b3d91); color: #fff; font-weight: 700; font-size: 0.9rem; line-height: 1; flex-shrink: 0; }
.avatar.lg { width: 72px; height: 72px; border-radius: var(--r-lg); font-size: 2rem; }
img.avatar.lg { background: var(--bg-3); }

.site-footer { flex-shrink: 0; margin-top: 5rem; background: #070a10; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 0.88rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding: 2.75rem 0 2rem; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; color: var(--fg); }
.site-footer .footer-note { color: var(--fg-3); max-width: 40ch; margin: 0.9rem 0 0; }
.site-footer .footer-col .label { margin-bottom: 0.7rem; }
.site-footer .footer-col a { display: block; padding: 0.28rem 0; color: var(--fg-2); }
.site-footer .footer-col a:hover { color: var(--fg); }
.site-footer .footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1rem 0 1.25rem; border-top: 1px solid var(--line); font-size: 0.8rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 0.62rem 1.4rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease);
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--blue-soft), 0 0 0 1px var(--blue-hover); }
.btn-sm { padding: 0.42rem 1rem; font-size: 0.86rem; }
.btn-lg { padding: 0.8rem 1.8rem; font-size: 1.05rem; }

.btn-accent, .btn-hot { background: var(--blue); border: 1px solid var(--blue); color: #fff; }
.btn-accent:hover, .btn-hot:hover, .btn-accent:focus, .btn-hot:focus { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-accent:disabled, .btn-accent.disabled, .btn-hot:disabled { background: var(--blue); border-color: var(--blue); color: #fff; opacity: 0.4; }

.btn-white { background: var(--fg); border: 1px solid var(--fg); color: var(--bg); }
.btn-white:hover, .btn-white:focus { background: #dfe5ef; border-color: #dfe5ef; color: var(--bg); }

.btn-ghost, .btn-outline-light { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); color: var(--fg); }
.btn-ghost:hover, .btn-outline-light:hover, .btn-ghost:focus, .btn-outline-light:focus { background: rgba(255, 255, 255, 0.14); border-color: var(--fg); color: var(--fg); }
.btn-ghost:disabled, .btn-outline-light:disabled { opacity: 0.5; color: var(--fg); }

.btn-danger-soft { background: var(--bad-soft); border: 1px solid transparent; color: #ffb3b3; }
.btn-danger-soft:hover { background: var(--bad); color: #fff; }

.btn-text { background: transparent; border: 1px solid transparent; color: var(--fg-2); padding-inline: 0.7rem; }
.btn-text:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); }

.btn-link { color: var(--fg-2); text-decoration: none; font-weight: 600; }
.btn-link:hover { color: var(--fg); }

/* --------------------------------------------------------------------------
   Surfaces and headings
   -------------------------------------------------------------------------- */

.panel { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.panel.p-0 { padding: 0; overflow: hidden; }
.panel-title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.panel-title .ico { color: var(--blue-hover); }

.page-head { padding: 2.5rem 0 1.5rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0.35rem 0 0; }
.page-head p { color: var(--fg-2); margin: 0.7rem 0 0; max-width: 64ch; font-size: 1.05rem; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.page-head .count { color: var(--fg-3); font-size: 0.95rem; margin-top: 0.6rem; }

.section { margin-bottom: 3.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: 1.5rem; }
.section-head h2 .n { font-size: 0.95rem; font-weight: 600; color: var(--fg-3); margin-left: 0.5rem; }
.section-head h2.h5 { font-size: 1.3rem; }
.section-head .more { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; color: var(--fg-2); white-space: nowrap; }
.section-head .more:hover { color: var(--fg); text-decoration: none; }
.section-head .more .ico { transition: transform 0.2s var(--ease); }
.section-head .more:hover .ico { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Chips, badges, statuses
   -------------------------------------------------------------------------- */

.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--bg-3); border: 1px solid transparent; color: var(--fg); line-height: 1.2; transition: background-color 0.15s, border-color 0.15s; }
a.chip:hover { background: var(--bg-4); color: var(--fg); text-decoration: none; }
.chip .count { color: var(--fg-3); font-weight: 400; }
.chip.active { background: var(--fg); color: var(--bg); }
.chip.required { background: var(--bg-3); }
.chip.optional { background: transparent; border-color: var(--line-strong); color: var(--fg-2); }
.chip.accent { background: var(--blue-soft); color: var(--blue-hover); }
.chip.sm { padding: 0.15rem 0.55rem; font-size: 0.72rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip-scroll { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex-shrink: 0; }

/* Platform-style device tags, like the PS5 / PS4 labels on a store tile */
.dev-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--fg); background: rgba(0, 0, 0, 0.3); }
.dev-badge.optional { color: var(--fg-3); border-style: dashed; }
.dev-badge.labeled { width: auto; gap: 0.35rem; padding: 0.2rem 0.55rem 0.2rem 0.45rem; height: auto; grid-auto-flow: column; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--r-sm); }
.dev-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.65rem 0.2rem 0.55rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-draft { background: var(--bg-3); color: var(--fg-2); }
.status-inreview { background: var(--warn-soft); color: var(--warn); }
.status-approved { background: var(--ok-soft); color: var(--ok); }
.status-rejected { background: var(--bad-soft); color: var(--bad); }
.status-unlisted { background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--fg-3); }
.status-takendown { background: var(--bad); color: #fff; }
.status-public { background: var(--blue-soft); color: var(--blue-hover); }

/* --------------------------------------------------------------------------
   Home: hero, shelves, collections, promo
   -------------------------------------------------------------------------- */

.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 15, 23, 0.95) 0%, rgba(11, 15, 23, 0.8) 30%, rgba(11, 15, 23, 0.25) 60%, rgba(11, 15, 23, 0.1) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 23, 0.6) 30%, rgba(11, 15, 23, 0) 65%);
}
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 4rem 0 3rem; max-width: 620px; }
.hero-copy .tag { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-copy .display { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.hero-copy .lede { color: var(--fg); opacity: 0.9; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.hero-copy .byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; color: var(--fg-2); font-size: 0.95rem; }
.hero-copy .byline .dev-badge { background: rgba(0, 0, 0, 0.45); }

/* Thumbnails to switch the hero, like a console store's featured rail */
.hero-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin-top: -1.25rem; margin-bottom: 3.5rem; position: relative; z-index: 1; }
.hero-rail a { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); min-width: 0; transition: background-color 0.15s, border-color 0.15s; }
.hero-rail a:hover { background: var(--bg-3); border-color: var(--line-strong); text-decoration: none; }
.hero-rail a.current { border-color: var(--blue); background: var(--blue-soft); }
.hero-rail .mini-icon { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.hero-rail .t { font-weight: 600; font-size: 0.92rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-rail .s { color: var(--fg-3); font-size: 0.78rem; }

/* Collections: category tiles with their own gradient */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.cat-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 118px;
    padding: 1rem 1.1rem;
    border-radius: var(--r-lg);
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    background:
        radial-gradient(140% 100% at 100% 0%, hsl(calc(205 + var(--i, 0) * 38), 70%, 62%), transparent 60%),
        linear-gradient(160deg, hsl(calc(215 + var(--i, 0) * 38), 60%, 34%), hsl(calc(230 + var(--i, 0) * 38), 55%, 16%));
    transition: transform 0.3s var(--ease), filter 0.3s;
}
.cat-card:hover { transform: translateY(-3px); filter: brightness(1.12); color: #fff; text-decoration: none; }
.cat-card .count { display: block; font-size: 0.8rem; font-weight: 600; opacity: 0.8; }
.cat-card .ico { position: absolute; top: 1rem; right: 1rem; opacity: 0.75; }

/* Promo banner */
.promo {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 16px;
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(0, 112, 209, 0.55), transparent 65%),
        linear-gradient(135deg, #15203a 0%, #0f1627 60%, #0b0f17 100%);
    border: 1px solid var(--line);
}
.promo .lede { color: var(--fg-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.steps li { padding: 1rem 1.1rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.steps .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.82rem; margin-bottom: 0.7rem; }
.steps h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.steps p { margin: 0; color: var(--fg-2); font-size: 0.9rem; }
.steps.stack { grid-template-columns: 1fr; gap: 0.6rem; }
.steps.stack li { display: grid; grid-template-columns: 30px 1fr; gap: 0.8rem; align-items: start; padding: 0.8rem 0.9rem; }
.steps.stack .num { margin: 0; }
.steps.stack h3 { font-size: 0.98rem; margin-bottom: 0.15rem; }
.steps.stack p { font-size: 0.86rem; }

/* --------------------------------------------------------------------------
   Product tiles and grids
   -------------------------------------------------------------------------- */

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 1.6rem 1.25rem; }

.game-card { display: block; color: var(--fg); min-width: 0; }
.game-card:hover { color: var(--fg); text-decoration: none; }
.game-card .tile {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--bg-3);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s;
}
.game-card .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card:hover .tile { transform: scale(1.04); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9), 0 0 0 2px var(--fg); filter: brightness(1.06); }
.game-card .tile .tag { position: absolute; top: 0.5rem; left: 0.5rem; padding: 0.15rem 0.5rem; border-radius: var(--r-sm); background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.game-card .body { padding-top: 0.7rem; }
.game-card .devices { display: flex; gap: 0.25rem; margin-bottom: 0.4rem; }
.game-card .devices .dev-badge { width: 22px; height: 22px; border-color: var(--line); background: var(--bg-3); }
.game-card .devices .dev-badge .ico { width: 13px; height: 13px; }
.game-card .title { font-weight: 700; font-size: 1.02rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card .meta { color: var(--fg-3); font-size: 0.86rem; margin-top: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card .price { font-weight: 700; font-size: 0.95rem; margin-top: 0.3rem; }

.icon-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #2d6cdf, #0b3d91); color: #fff; font-weight: 800; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }

/* --------------------------------------------------------------------------
   Browse: filter sidebar + sort
   -------------------------------------------------------------------------- */

.browse { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: 84px; }
.filters .group { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.filters .group:first-child { border-top: 0; padding-top: 0; }
.filters .group .label { margin-bottom: 0.6rem; }
.filters .options { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.filters .options a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.42rem 0.7rem; margin: 0 -0.7rem; border-radius: var(--r-sm); color: var(--fg-2); font-weight: 600; font-size: 0.95rem; }
.filters .options a:hover { background: var(--bg-3); color: var(--fg); text-decoration: none; }
.filters .options a.active { background: var(--blue-soft); color: var(--fg); }
.filters .options a.active::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hover); }
.filters .search { max-width: none; margin: 0; }
.filters .search input { background: var(--bg-2); border-color: var(--line); border-radius: var(--r); }

.browse-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin-bottom: 1.5rem; }
.browse-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.browse-head .count { color: var(--fg-3); font-size: 0.95rem; margin-top: 0.2rem; }
.sort { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--fg-3); font-weight: 600; }
.sort .form-select { width: auto; padding: 0.45rem 2.2rem 0.45rem 0.9rem; font-size: 0.92rem; font-weight: 600; background-color: var(--bg-3); border-color: transparent; border-radius: 999px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.active-filters .chip .ico { color: var(--fg-3); }

.pager { display: flex; justify-content: center; gap: 0.4rem; padding: 2.5rem 0; }
.pager a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 0.6rem; border-radius: 999px; background: var(--bg-3); color: var(--fg-2); font-weight: 600; font-size: 0.9rem; }
.pager a:hover { color: var(--fg); background: var(--bg-4); text-decoration: none; }
.pager a.active { background: var(--fg); color: var(--bg); }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */

.product-hero { position: relative; overflow: hidden; isolation: isolate; }
.product-hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.product-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: blur(2px) saturate(1.1); transform: scale(1.04); }
.product-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 15, 23, 0.92) 0%, rgba(11, 15, 23, 0.72) 45%, rgba(11, 15, 23, 0.45) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 23, 0.55) 40%, rgba(11, 15, 23, 0.2) 100%);
}
.product-head { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 3rem 0 2.5rem; }
.product-art { aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.product-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; min-width: 0; }
.product-info h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.02; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
.product-info .publisher { color: var(--fg-2); font-size: 1.05rem; }
.product-info .publisher a { text-decoration: underline; text-underline-offset: 0.18em; }
.product-info .price { font-size: 1.6rem; font-weight: 700; margin-top: 0.4rem; }
.product-info .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.product-info .note { color: var(--fg-2); font-size: 0.9rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 2.5rem; }
.facts > div { padding: 0.9rem 1.6rem 0.9rem 0; margin-right: 1.6rem; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; margin-right: 0; }
.facts .v { font-weight: 700; font-size: 1.1rem; }
.facts .k { color: var(--fg-3); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.shots { display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.6rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.shots img { height: 240px; border-radius: var(--r); scroll-snap-align: start; flex-shrink: 0; background: var(--bg-3); }

.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 0; }
.spec-row { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0.2rem 0.6rem; padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: 0.94rem; }
.spec-row:nth-child(-n+2) { border-top: 0; }
.spec-row .ico { color: var(--fg-3); margin-top: 0.15rem; grid-row: span 2; }
.spec-row dt { color: var(--fg-3); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.spec-row dd { margin: 0; color: var(--fg); min-width: 0; word-break: break-word; }
.spec-row dd code { font-size: 0.76rem; }
.spec.single { grid-template-columns: 1fr; }
.spec.single .spec-row:nth-child(2) { border-top: 1px solid var(--line); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.2rem; font-size: 0.92rem; }
.kv dt { color: var(--fg-3); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; word-break: break-word; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1.25rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .ver { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.timeline .ver small { flex-basis: 100%; color: var(--fg-3); font-size: 0.8rem; font-weight: 400; }
.timeline .notes { color: var(--fg-2); white-space: pre-line; font-size: 0.96rem; }
.timeline .facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; color: var(--fg-3); font-size: 0.8rem; margin: 0.35rem 0 0; border: 0; }
.timeline .facts > div, .timeline .facts span { border: 0; padding: 0; margin: 0; }

.cta-panel { background: linear-gradient(160deg, #16243d, var(--bg-2)); border-color: rgba(0, 112, 209, 0.45); }
.cta-panel ol { padding-left: 1.1rem; margin: 0; color: var(--fg-2); font-size: 0.92rem; display: grid; gap: 0.4rem; }
.cta-panel ol li::marker { color: var(--blue-hover); font-weight: 700; }

/* --------------------------------------------------------------------------
   Figures, tables, lists (developer + admin)
   -------------------------------------------------------------------------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.9rem; }
.stat { display: block; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); min-width: 0; transition: background-color 0.15s, border-color 0.15s; }
a.stat:hover { background: var(--bg-3); border-color: var(--line-strong); color: var(--fg); text-decoration: none; }
.stat .value { font-size: 2.2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .label { margin: 0.55rem 0 0; }
.stat.hot { border-color: rgba(0, 112, 209, 0.5); background: linear-gradient(160deg, #16243d, var(--bg-2)); }
.stat.hot .value { color: var(--blue-hover); }

.data-table { width: 100%; margin: 0; color: var(--fg); border-collapse: separate; border-spacing: 0; }
.data-table thead th { padding: 0.8rem 1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
.data-table tbody td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 0.95rem; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background-color 0.15s; }
.data-table.hover tbody tr:hover { background: var(--bg-3); }
.data-table .num { font-variant-numeric: tabular-nums; }
.data-table .muted { color: var(--fg-3); }
.data-table .sub { display: block; color: var(--fg-3); font-size: 0.8rem; margin-top: 0.15rem; }
.data-table .row-icon { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; }
.data-table .actions { text-align: right; white-space: nowrap; }
.data-table .actions .btn + .btn { margin-left: 0.35rem; }
.data-table .expand td { background: var(--bg-3); }
.data-table a.strong { font-weight: 700; }

.cell-title { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.cell-title .row-icon { flex-shrink: 0; }

.form-switch .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.form-switch .form-check-label { padding-left: 0.4rem; }

/* --------------------------------------------------------------------------
   Forms (Bootstrap classes, restyled)
   -------------------------------------------------------------------------- */

.form-control, .form-select { background-color: var(--bg-3); border: 1px solid transparent; border-radius: var(--r); color: var(--fg); padding: 0.65rem 0.9rem; font-size: 0.98rem; font-family: var(--font); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.form-control:focus, .form-select:focus { background-color: var(--bg-2); border-color: var(--blue); color: var(--fg); box-shadow: 0 0 0 3px var(--blue-soft); outline: none; }
.form-control::placeholder { color: var(--fg-3); }
.form-control:disabled, .form-select:disabled { background-color: var(--bg-2); opacity: 0.6; }
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 14px 14px;
    padding-right: 2.4rem;
}
.form-select option { background: var(--bg-2); color: var(--fg); }
.form-control-lg { padding: 0.8rem 1rem; font-size: 1.02rem; }
.form-label { color: var(--fg-2); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--bg-3) inset; -webkit-text-fill-color: var(--fg); caret-color: var(--fg); transition: background-color 9999s ease-out; }

.form-floating > .form-control { padding-top: 1.45rem; padding-bottom: 0.5rem; height: calc(3.6rem + 2px); }
.form-floating > label { color: var(--fg-3); padding: 0.9rem 0.9rem; }
.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--fg-3); transform: scale(0.8) translateY(-0.55rem) translateX(0.15rem); }
.form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after { background: transparent; }

.form-check-input { background-color: var(--bg-4); border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--blue-soft); border-color: var(--blue); }
.form-check-label { color: var(--fg-2); }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--ok); }
.invalid { outline: 1px solid var(--bad); }
.validation-message { color: var(--bad); font-size: 0.85rem; }

.progress { background: var(--bg-4); border-radius: 999px; overflow: hidden; }
.progress-bar { background: var(--blue); }

.dropzone { display: block; position: relative; padding: 2.6rem 1.5rem; text-align: center; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); background: var(--bg-3); color: var(--fg-2); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.dropzone:hover { border-color: var(--blue); background: var(--bg-4); }
.dropzone .drop-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; margin-bottom: 0.9rem; }
.dropzone .drop-title { font-weight: 700; font-size: 1.15rem; color: var(--fg); }
.dropzone .drop-sub { font-size: 0.86rem; color: var(--fg-3); margin-top: 0.3rem; }
.dropzone.has-file { border-style: solid; border-color: var(--blue); background: var(--blue-soft); }

.alert { border-radius: var(--r); border: 1px solid transparent; padding: 0.85rem 1rem; font-size: 0.94rem; }
.alert ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.alert-danger { background: var(--bad-soft); color: #ffc9c9; }
.alert-success { background: var(--ok-soft); color: #c7f2d8; }
.alert-warning { background: var(--warn-soft); color: #ffe6b3; }
.alert-info { background: var(--info-soft); color: #d2e6ff; }

/* --------------------------------------------------------------------------
   Auth pages: centred card, like a console sign-in
   -------------------------------------------------------------------------- */

.auth { max-width: 460px; margin: 3.5rem auto 2rem; }
.auth .auth-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.auth .auth-logo .brand-mark { width: 56px; height: 56px; font-size: 1.9rem; }
.auth-form { padding: 2rem; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-form h1 { font-size: 1.8rem; text-align: center; margin: 0 0 0.4rem; }
.auth-form .intro { color: var(--fg-2); text-align: center; margin-bottom: 1.6rem; font-size: 0.98rem; }
.auth-form .form-label { color: var(--fg-2); font-size: 0.85rem; font-weight: 600; }
.auth-form .btn-primary { background: var(--blue); border: 1px solid var(--blue); color: #fff; font-weight: 700; border-radius: 999px; padding: 0.8rem 1.3rem; }
.auth-form .btn-primary:hover, .auth-form .btn-primary:focus { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.auth-form .btn-primary:disabled { opacity: 0.45; }
/* The library's password "eye" button uses an icon font this site does not load. */
.auth-form .auth-pass-inputgroup .btn-light, .auth-form #password-addon { display: none; }
.auth-form .input-group > .form-control { border-radius: var(--r) !important; }
.auth-form .invalid-feedback { color: var(--bad); }
.auth-form .alert ul { margin: 0; padding-left: 1rem; }
.auth-form .switch { margin-top: 1.4rem; color: var(--fg-2); font-size: 0.92rem; text-align: center; }
.auth-form .switch a { color: var(--blue-hover); font-weight: 600; }
.auth-perks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; color: var(--fg-2); font-size: 0.9rem; }
.auth-perks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.auth-perks .ico { color: var(--blue-hover); margin-top: 0.15rem; }
.auth-perks strong { color: var(--fg); }

/* --------------------------------------------------------------------------
   Empty states, profile header, misc
   -------------------------------------------------------------------------- */

.empty { text-align: center; padding: 3.5rem 1.5rem; max-width: 560px; margin: 0 auto; }
.empty .ring { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg-3); color: var(--blue-hover); margin-bottom: 1.2rem; }
.empty h1, .empty h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty p { color: var(--fg-2); margin-bottom: 1.3rem; }

.profile-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.profile-head .who { min-width: 0; }
.profile-head .who h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0; }
.profile-head .who .sub { color: var(--fg-3); font-size: 0.88rem; margin-top: 0.3rem; }
.profile-head .roles { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-left: auto; }

.inline-note { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--fg-2); font-size: 0.92rem; }
.inline-note .ico { color: var(--blue-hover); flex-shrink: 0; margin-top: 0.15rem; }

details.panel summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 0.6rem; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::before { content: ""; width: 0; height: 0; border-left: 6px solid var(--fg-3); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform 0.2s; }
details.panel[open] summary::before { transform: rotate(90deg); }

/* Light host for the CMouss.IdentityFramework admin components */
.idf-host { background: #fff; color: #212529; color-scheme: light; border-radius: var(--r-lg); padding: 1rem 1.25rem; font-family: var(--font); }
.idf-host a { color: #0d6efd; }
.idf-host .table, .idf-host .table > :not(caption) > * > * { color: #212529; --bs-table-color: #212529; --bs-table-hover-color: #212529; --bs-table-hover-bg: #f1f3f5; --bs-table-border-color: #dee2e6; }
.idf-host .form-control, .idf-host .form-select, .idf-host .form-control:focus, .idf-host .form-select:focus { background: #fff; color: #212529; border-color: #ced4da; box-shadow: none; }
.idf-host .form-control::placeholder { color: #6c757d; }
.idf-host .form-check-input { background-color: #fff; border-color: #adb5bd; }
.idf-host .form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; }
.idf-host .text-muted { color: #6c757d !important; }
.idf-host .alert-danger { background: #f8d7da; border-color: #f5c2c7; color: #842029; }
.idf-host .alert-success { background: #d1e7dd; border-color: #badbcc; color: #0f5132; }
.idf-host .alert-warning { background: #fff3cd; border-color: #ffecb5; color: #664d03; }
.idf-host .alert-info { background: #cff4fc; border-color: #b6effb; color: #055160; }
.idf-host .modal-content { color: #212529; }
.idf-host .btn { border-radius: 999px; }
.idf-host .form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E"); }

/* --------------------------------------------------------------------------
   Blazor plumbing
   -------------------------------------------------------------------------- */

#blazor-error-ui { display: none; position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: var(--z-toast); width: min(92vw, 640px); padding: 0.85rem 2.6rem 0.85rem 1.1rem; border-radius: var(--r); background: var(--bg-3); color: #ffd4d4; border: 1px solid var(--bad); box-shadow: var(--shadow); }
#blazor-error-ui .reload { color: var(--blue-hover); margin-left: 0.5rem; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.9rem; top: 0.7rem; color: var(--fg-2); }
.blazor-error-boundary { background: var(--bad-soft); border: 1px solid var(--bad); padding: 1rem 1.2rem; color: #ffd4d4; border-radius: var(--r); }
.blazor-error-boundary::after { content: "Something went wrong on this page. Reload to try again."; }
.table-responsive { border-radius: inherit; }

/* --------------------------------------------------------------------------
   Landing page: download hero with a TV mock-up, platforms, features
   -------------------------------------------------------------------------- */

.landing-hero { position: relative; isolation: isolate; overflow: hidden; padding: 4.5rem 0 3rem; }
.landing-hero .hero-bg { position: absolute; inset: 0; z-index: -2; opacity: 0.55; }
.landing-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 40%; display: block; filter: blur(28px) saturate(1.2); transform: scale(1.15); }
.landing-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 15, 23, 0.98) 0%, rgba(11, 15, 23, 0.9) 45%, rgba(11, 15, 23, 0.6) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 23, 0.4) 40%, rgba(11, 15, 23, 0) 100%); }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.landing-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; max-width: 600px; }
.landing-copy .tag { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: var(--r-sm); background: var(--blue-soft); color: var(--blue-hover); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.landing-copy .display { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.landing-copy .lede { color: var(--fg-2); }
.dl-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.dl-row .btn-lg { padding-inline: 1.6rem; }
.btn.disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--fg-3); font-size: 0.88rem; font-weight: 600; }

/* A TV showing the Hub, built from boxes and the real store art */
.tv-mock { position: relative; justify-self: end; width: 100%; max-width: 620px; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.7)); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; border: 6px solid #0a0c12; background: #05070b; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.tv-foot { width: 34%; height: 10px; margin: 0 auto; border-radius: 0 0 8px 8px; background: linear-gradient(#1a1f2b, #0a0c12); }
.tv-foot::after { content: ""; display: block; width: 180%; height: 4px; margin: 10px 0 0 -40%; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.tv-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.tv-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 5% 5% 4%; background: linear-gradient(90deg, rgba(5, 7, 11, 0.92) 0%, rgba(5, 7, 11, 0.55) 45%, rgba(5, 7, 11, 0.05) 100%), linear-gradient(0deg, rgba(5, 7, 11, 0.95) 0%, rgba(5, 7, 11, 0.2) 45%, rgba(5, 7, 11, 0) 100%); }
.tv-top { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.tv-top .brand-mark { width: 20px; height: 20px; font-size: 0.7rem; border-radius: 5px; }
.tv-top .tv-clock { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.tv-hero { max-width: 60%; }
.tv-title { font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.tv-sub { color: var(--fg-2); font-size: 0.72rem; margin-top: 0.3rem; }
.tv-btn { display: inline-block; margin-top: 0.6rem; padding: 0.25rem 1rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: 0.7rem; font-weight: 700; }
.tv-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3%; }
.tv-tile { aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--bg-3); display: block; transition: transform 0.3s var(--ease); }
.tv-tile img, .tv-tile .icon-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; font-size: 1rem; }
.tv-tile.focus { box-shadow: 0 0 0 2px #fff, 0 10px 20px -8px rgba(0, 0, 0, 0.8); transform: scale(1.08); }

.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.platform-card { padding: 1.75rem; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.platform-card.available { background: linear-gradient(160deg, #16243d, var(--bg-2) 70%); border-color: rgba(0, 112, 209, 0.45); }
.platform-card.soon { opacity: 0.92; }
.platform-card h2 { font-size: 1.6rem; }
.platform-card p { color: var(--fg-2); margin: 0; }
.plat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.plat-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.platform-card.available .plat-icon { background: var(--blue); }
.plat-specs { list-style: none; margin: 0.2rem 0 0.4rem; padding: 0; display: grid; gap: 0.45rem; color: var(--fg-2); font-size: 0.92rem; }
.plat-specs li { display: flex; align-items: center; gap: 0.55rem; }
.plat-specs .ico { color: var(--blue-hover); }
.platform-card.soon .plat-specs .ico { color: var(--fg-3); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature { padding: 1.5rem; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.feature .f-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-hover); margin-bottom: 0.2rem; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--fg-2); margin: 0; font-size: 0.95rem; }
.feature .more { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; color: var(--blue-hover); margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   My devices
   -------------------------------------------------------------------------- */

.devices-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: 4rem; }
.device-list { position: sticky; top: 84px; display: grid; gap: 0.5rem; }
.device-card { display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 0.85rem 0.95rem; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); text-align: left; font-family: inherit; transition: background-color 0.15s, border-color 0.15s; }
.device-card:hover { background: var(--bg-3); border-color: var(--line-strong); }
.device-card.active { border-color: var(--blue); background: linear-gradient(160deg, #16243d, var(--bg-2) 80%); box-shadow: 0 0 0 1px var(--blue); }
.device-card .dev-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 255, 255, 0.08); flex-shrink: 0; }
.device-card.active .dev-icon { background: var(--blue); }
.device-card .name { display: block; font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-card .sub { display: flex; align-items: center; gap: 0.4rem; color: var(--fg-3); font-size: 0.8rem; margin-top: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-card .chip { flex-shrink: 0; }
.device-add { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); color: var(--fg-2); font-weight: 600; font-size: 0.9rem; }
.device-add:hover { color: var(--fg); border-color: var(--fg); text-decoration: none; background: rgba(255, 255, 255, 0.04); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); flex-shrink: 0; }
.dot.online { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.live { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--ok-soft); } 50% { box-shadow: 0 0 0 7px rgba(62, 207, 122, 0.05); } }

.now-playing { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 1.25rem; min-height: 200px; display: flex; align-items: flex-end; }
.now-playing.live { border-color: rgba(0, 112, 209, 0.45); }
.now-playing.offline { opacity: 0.85; }
.np-bg { position: absolute; inset: 0; z-index: -1; }
.np-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; display: block; }
.np-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 25, 39, 0.96) 0%, rgba(19, 25, 39, 0.75) 50%, rgba(19, 25, 39, 0.2) 100%), linear-gradient(0deg, rgba(19, 25, 39, 0.95), rgba(19, 25, 39, 0.1)); }
.np-body { position: relative; padding: 1.6rem 1.75rem; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; width: 100%; }
.np-body .eyebrow { gap: 0.5rem; color: var(--fg-2); }
.np-body h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.np-body p { color: var(--fg-2); margin: 0; max-width: 56ch; }
.np-title { display: flex; align-items: center; gap: 1rem; }
.np-icon { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); font-size: 1.6rem; }
.np-sub { color: var(--fg-2); font-size: 0.95rem; margin-top: 0.25rem; }
.np-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }

.lib-list, .pick-list, .cmd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.lib-list li, .pick-list li { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0.85rem; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.li-icon { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; font-size: 1.2rem; }
.li-name { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; min-width: 0; }
.li-name a, .li-name span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; color: var(--fg-3); font-size: 0.84rem; margin-top: 0.15rem; }
.li-sub .dev-badge { width: 20px; height: 20px; border-color: var(--line); }
.li-sub .dev-badge .ico { width: 12px; height: 12px; }
.li-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.pick-search { max-width: none; margin: 0; }
.pick-search input { background: var(--bg-2); border-color: var(--line); border-radius: var(--r); }

.cmd-list li { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.cmd-list li:first-child { border-top: 0; padding-top: 0; }
.cmd-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-3); color: var(--fg-2); flex-shrink: 0; }
.cmd-icon.ok { background: var(--ok-soft); color: var(--ok); }
.cmd-icon.bad { background: var(--bad-soft); color: var(--bad); }
.cmd-icon.img { border-radius: var(--r-sm); object-fit: cover; width: 34px; height: 34px; }
.cmd-what { font-size: 0.93rem; }
.cmd-when { color: var(--fg-3); font-size: 0.8rem; margin-top: 0.1rem; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .hero-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-rail a:nth-child(n+4) { display: none; }
}

@media (max-width: 991.98px) {
    .hero { min-height: 480px; }
    .landing-hero { padding: 3rem 0 2rem; }
    .landing-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .tv-mock { justify-self: center; max-width: 560px; }
    .platform-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .devices-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .device-list { position: static; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .promo { grid-template-columns: 1fr; gap: 1.5rem; }
    .steps { grid-template-columns: 1fr; gap: 0.8rem; }
    .browse { grid-template-columns: 1fr; gap: 1.5rem; }
    .filters { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1.5rem; }
    .filters .group { border-top: 0; padding: 0.5rem 0; }
    .filters .group:first-child { grid-column: 1 / -1; }
    .product-head { grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; }
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .site-footer .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .topbar-row { min-height: 58px; gap: 0.75rem; }
    .brand .brand-sub { display: none; }
    .hero { min-height: 420px; }
    .hero-bg img { object-position: 60% 50%; }
    .hero-copy { padding: 3rem 0 2rem; }
    .hero-rail { grid-template-columns: 1fr 1fr; margin-bottom: 2.5rem; }
    .hero-rail a:nth-child(n+3) { display: none; }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.2rem 0.9rem; }
    .page-head { padding: 1.8rem 0 1.1rem; }
    .section { margin-bottom: 2.5rem; }
    .shots img { height: 180px; }
    .spec { grid-template-columns: 1fr; }
    .spec-row:nth-child(2) { border-top: 1px solid var(--line); }
    .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
    .product-head { grid-template-columns: 1fr; padding-top: 2rem; }
    .product-art { max-width: 200px; }
    .facts > div { padding: 0.7rem 1rem 0.7rem 0; margin-right: 1rem; }
}

@media (max-width: 575.98px) {
    .lib-list li, .pick-list li { flex-wrap: wrap; }
    .li-actions { width: 100%; justify-content: flex-end; }
    .np-body { padding: 1.2rem; }
    .np-icon { width: 56px; height: 56px; }
    .game-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1rem 0.6rem; }
    .game-card .devices { display: none; }
    .game-card .title { font-size: 0.9rem; }
    .game-card .meta { display: none; }
    .display { font-size: 2.1rem; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .auth-form { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .rise { animation: none; }
}
