﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0c0e14;
    --surface: #131620;
    --border: #1e2230;
    --accent: #3db8f5;
    --accent2: #ff4060;
    --accent3: #7c6af7;
    --text: #ffffff;
    --nav-text: #ffffff;
    --muted: #6a7290;
    --nav-h: 56px;
}

html {
    scroll-behavior: smooth;
    background: #0d0d10;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body > .container {
    flex: 1;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: .6;
}

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
header nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    width: 100%;
    overflow: visible;
    gap: 2rem;
}

header {
    height: var(--nav-h);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .2s;
}

a {
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.nav-active {
    color: var(--accent);
}

.nav-logo-shelf {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    position: relative;
}

/*.nav-logo-shelf::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    height: 20px;
    background: black;
    border-left: 1px solid rgba(255,255,255,.12);
    border-right: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-radius: 0 0 20px 20px;
}*/

.nav-logo {
    height: 38px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    color: var(--muted);
    margin-left: auto;
}

/* SYS_ONLINE status pill */
.nav-status {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: .5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2dcd73;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(45,205,115,0.7);
}

/* Nav search */
.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrap input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    padding: 6px 12px 6px 32px;
    width: 0;
    opacity: 0;
    outline: none;
    transition: border-color .2s, width .3s, opacity .3s, padding .3s;
}

.search-wrap:focus-within input,
.search-wrap input:not(:placeholder-shown) {
    width: 200px;
    opacity: 1;
    padding: 6px 12px 6px 32px;
}

.search-wrap input::placeholder {
    color: var(--muted);
}

.search-wrap input:focus {
    border-color: var(--accent);
}

.search-wrap svg {
    position: absolute;
    left: 9px;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s;
}

.search-wrap:focus-within svg {
    color: var(--accent);
}

/* Nav icon buttons */
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s, border-color .2s;
    position: relative;
}

/* Icon buttons */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    transition: color .2s;
    padding: 4px;
}

.icon-btn:hover {
    color: var(--accent2);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* ════════════════════════════════════════
   HERO  (index page)
════════════════════════════════════════ */
.hero {
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
}

hero-eyebrow {
    color: var(--muted);
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 25px;
    letter-spacing: .2em;
    text-transform: uppercase;
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeUp .6s .1s forwards;
}

.hero h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6.5rem);
    letter-spacing: -.02em;
    line-height: .9;
    color: var(--text);
    text-transform: uppercase;
    margin: 0;
}

.hero h1 em {
    font-style: normal;
    color: var(--muted);
    padding: 0 6px;
}

.hero-sub {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 15px;
    max-width: 420px;
    margin-inline: auto;
    opacity: 0;
    animation: fadeUp .6s .4s forwards;
}

/* ════════════════════════════════════════
   SECTION HEADER
════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 2rem 1.25rem;
    margin-left: 8vw;
}

.section-header-home {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 2rem 1.25rem;
    margin-left: 4vw;
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.3rem;
    letter-spacing: .1em;
    white-space: nowrap;
    color: var(--text);
}

.section-header .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-header a {
    font-size: 12px;
    font-family: 'DM Mono', monospace;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .05em;
    font-weight: 500;
}

.section-header a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════
   GAME GRID & CARDS
════════════════════════════════════════ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    padding: 0 2rem 4rem;
}

.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    opacity: 0;
    animation: fadeUp .5s forwards;
}

.game-card:nth-child(1) {
    animation-delay: .10s;
}

.game-card:nth-child(2) {
    animation-delay: .17s;
}

.game-card:nth-child(3) {
    animation-delay: .24s;
}

.game-card:nth-child(4) {
    animation-delay: .31s;
}

.game-card:nth-child(5) {
    animation-delay: .38s;
}

.game-card:nth-child(6) {
    animation-delay: .45s;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(78,168,222,0.25);
}

.game-card:hover .wishlist-hover {
    opacity: 1;
}

.game-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #1a1a22 0%, #16161e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a3a4a;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.game-img svg {
    z-index: 1;
    opacity: .3;
}

.game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: linear-gradient(135deg, #1a1a22 0%, #16161e 100%);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-new {
    background: var(--muted);
    color: #111;
}

.badge-sale {
    background: var(--accent2);
    color: #fff;
}

.badge-hot {
    background: #ff8c00;
    color: #111;
}

.wishlist-hover {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(22,22,28,.85);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    opacity: 0;
    transition: opacity .2s, color .2s;
}

.wishlist-hover:hover {
    color: var(--accent2);
}

/* When an availability badge shares the top-right corner, drop the heart below it */
.card-avail ~ .wishlist-hover {
    top: 39px;
}

/* Touch devices have no hover — keep the heart visible so wishlisting works */
@media (hover: none) {
    .wishlist-hover {
        opacity: 1;
    }
}

.game-info {
    padding: .85rem 1rem .95rem;
}

.game-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: .15rem;
}

.game-edition-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: .15rem;
}

.game-platform {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: .6rem;
    letter-spacing: .04em;
}

.game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: .06em;
    color: var(--text);
}

.add-btn {
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background .2s, transform .15s;
}

    .add-btn:hover {
        background: #6bbce8;
        color: #fff;
        transform: translateY(-1px);
    }

/* ════════════════════════════════════════
   FP RESERVE BANNER
════════════════════════════════════════ */
.fp-reserve-banner {
    margin-left: 12vw;
    margin-right: 12vw;
    margin-bottom: 2vh;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.fp-reserve-banner h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: .08em;
    margin-bottom: .4rem;
    color: var(--text);
}

.fp-reserve-banner p {
    color: var(--muted);
    font-size: 20px;
    max-width: 480px;
}

/* ════════════════════════════════════════
   INFO PAGES (About / Info / Future Games)
════════════════════════════════════════ */
.page-hero {
    padding: 4rem 2rem 3rem;
    text-align: center;
    opacity: 0;
    animation: fadeUp .5s .05s forwards;
    background: var(--bg);
}

.page-hero .hero-eyebrow {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 1.1rem;
}

.page-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: .07em;
    line-height: .95;
    color: var(--text);
    margin-bottom: .9rem;
}

.page-hero h1 em {
    font-style: normal;
    padding: 0 6px;
    color: var(--muted);
}

.page-hero .hero-sub {
    max-width: 480px;
    margin: 0 auto;
}

.content-wrapper {
    max-width: 760px;
    margin-left: 12vw;
    margin-right: 12vw;
    padding: 1rem 2rem 3rem;
}

.content-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: .05em;
    color: var(--text);
    margin-bottom: .85rem;
}

.content-section p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: .85rem;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul {
    list-style: none;
    margin: .25rem 0 .85rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.content-section ul:last-child {
    margin-bottom: 0;
}

.content-section li {
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.6;
    color: var(--text);
}

.content-section li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted);
}

.content-section strong {
    color: var(--text);
    font-weight: 600;
}

.content-section--lead {
    text-align: center;
    border-bottom: none;
    padding-bottom: .5rem;
}

.content-section--lead p {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--text);
    max-width: 620px;
    margin-inline: auto;
}

/* Tag pill row (e.g. partner list) — mirrors .filter-chip but non-interactive */
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: .25rem 0 1rem;
}

.pill-row span {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .05em;
    color: var(--muted);
    padding: 6px 14px;
}

/* Reject vs. embrace comparison list */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 760px;
    margin-left: auto;
    padding: 0 2rem 3rem;
}

.compare-col h4 {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .9rem;
}

.compare-col.reject h4 {
    color: var(--accent2);
}

.compare-col.embrace h4 {
    color: var(--muted);
}

.compare-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.compare-col li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 14px;
    line-height: 1.5;
}

.compare-col.reject li {
    color: var(--accent);
    opacity: .8;
}

.compare-col.reject li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--accent2);
    text-decoration: none;
}

.compare-col.embrace li {
    color: var(--text);
}

.compare-col.embrace li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--muted);
    font-weight: 700;
}

/* Info / support card grid (About, Info, Support contact + values) */
.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(78,168,222,0.2);
}

.info-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: .03em;
    color: var(--text);
    margin-bottom: .5rem;
}

.info-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    margin-top: .85rem;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--text);
    transition: color .2s, border-color .2s;
}

.card-link:hover {
    color: var(--accent2);
    border-color: var(--accent2);
}

/* FAQ accordion */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    text-align: left;
    padding: 1.15rem 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 13px;
    transition: transform .25s;
}

.faq-item.faq-open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-item.faq-open .faq-answer {
    max-height: 320px;
}

.faq-answer p {
    padding: 0 0 1.15rem;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

/* Vote candidate cards (Future Games) */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
    padding: 0 2rem 1rem;
}

.vote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.vote-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(78,168,222,0.2);
}

.vote-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #1a1a22 0%, #16161e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a3a4a;
    border-bottom: 1px solid var(--border);
}

.vote-card-info {
    padding: .85rem 1rem .95rem;
}

.vote-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .15rem;
}

.vote-card-platform {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: .75rem;
    letter-spacing: .04em;
}

.vote-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vote-count {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1;
}

.vote-count span {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 2px;
}

.vote-btn {
    background: var(--muted);
    border: none;
    color: #fff;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background .2s, transform .15s;
}

.vote-btn:hover {
    background: #9bc0e8;
    transform: translateY(-1px);
}

.vote-btn.voted {
    background: #9bc0e8;
    color: var(--muted);
}

/* ════════════════════════════════════════
   SHARED BUTTONS
════════════════════════════════════════ */
.btn-primary {
    background: var(--text);
    color: var(--accent3);
    border: none;
    border-radius: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .06em;
    padding: 12px 28px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
}

.btn-primary:hover {
    opacity: .85;
    transform: translateY(-2px);
}

/* Used on Login (register) and SignIn forms */
.btn-submit {
    background: var(--text);
    color: var(--muted);
    border: none;
    border-radius: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 12px 28px;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

.btn-submit:hover {
    opacity: .85;
    transform: translateY(-2px);
}

/* Full-width variant used on SignIn */
.btn-submit--full {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 1.5rem;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
    background: #1c1c1c;
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 3rem 2rem 2rem;
    margin-top: auto;
}

footer .logo-sm {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .12em;
    font-size: 1.25rem;
    color: #f7f5f5;
}

footer .logo-sm span {
    color: var(--muted);
    padding: 0 3px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-width: 120px;
}

.footer-col h4 {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(247,245,245,.35);
    margin-bottom: .25rem;
}

.footer-col a {
    color: rgba(247,245,245,.6);
    font-size: 13px;
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .2s;
}

.footer-col a:hover {
    color: #f7f5f5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
}

footer p {
    font-size: 11px;
    color: rgba(247,245,245,.3);
    font-family: 'DM Mono', monospace;
    letter-spacing: .04em;
}

/* ════════════════════════════════════════
   AUTH CARD  (Login & SignIn shared layout)
════════════════════════════════════════ */
.auth-wrapper {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp .55s .1s forwards;
}

/* Narrow variant for SignIn (fewer fields) */
.auth-card--narrow {
    max-width: 420px;
}

.auth-eyebrow {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 1rem;
}

.auth-card h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    letter-spacing: .08em;
    line-height: 1;
    color: var(--text);
    margin-bottom: .4rem;
}

.auth-card h1 em {
    font-style: normal;
    color: var(--muted);
    padding: 0 5px;
}

.auth-sub {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 2rem;
}

/* Bottom prompt (same pattern on both pages) */
.auth-prompt {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.auth-prompt a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.auth-prompt a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════
   FORM PRIMITIVES  (shared by Login & SignIn)
════════════════════════════════════════ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .85rem;
}

.form-group label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 10px 13px;
    width: 100%;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-group input::placeholder {
    color: #bbb;
}

.form-group input:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(17,17,17,.06);
}

/* Validation */
.field-validation-error {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--accent2);
    letter-spacing: .04em;
}

.input-validation-error {
    border-color: var(--accent2) !important;
}

.validation-summary-errors ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.validation-summary-errors li {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--accent2);
    margin-bottom: .25rem;
}

/* Divider (used in Login between fields and Security) */
.form-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0 .5rem;
}

.form-divider span {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.form-divider .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Submit row (Login page) */
.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.submit-row a {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.submit-row a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* ════════════════════════════════════════
   SIGN IN — TAB TOGGLE
════════════════════════════════════════ */
.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 9px 0;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.tab-btn.active {
    background: var(--text);
    color: var(--muted);
}

/* Forgot password row */
.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -.4rem;
    margin-bottom: .85rem;
}

.forgot-row a {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .05em;
    transition: color .2s;
}

.forgot-row a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* ════════════════════════════════════════
   GAMES PAGE
════════════════════════════════════════ */
.games-hero {
    padding: 4rem 2rem 2.5rem;
    text-align: left;
    animation: fadeUp .5s .05s forwards;
    background: var(--bg);
}

.games-hero .hero-eyebrow {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 1.1rem;
    background: var(--bg);
}

.games-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: .07em;
    line-height: .95;
    color: var(--text);
    margin-bottom: 1.75rem;
}

.games-hero h1 em {
    font-style: normal;
    padding: 0 6px;
    color: var(--muted);
}

/* Big search bar */
.big-search-wrap {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

.big-search-wrap svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.big-search-wrap input {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    padding: 15px 18px 15px 50px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.big-search-wrap input::placeholder {
    color: var(--muted);
}

.big-search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(78,168,222,0.15);
}

/* Filter chips */
.filter-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 2rem 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .45s .2s forwards;
}

.filter-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: .25rem;
}

.filter-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--muted);
    padding: 5px 14px;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
}

.filter-chip:hover {
    border-color: var(--text);
    color: var(--text);
}

.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* Results meta bar */
.results-meta {
    display: flex;
    align-items: center;
    padding: 1rem 2rem .75rem;
    flex-wrap: wrap;
    gap: .75rem;
}

.results-count {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.results-count strong {
    color: var(--accent);
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sort-wrap label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.sort-wrap select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    padding: 5px 10px;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}

.sort-wrap select:focus {
    border-color: var(--text);
}

/* No-results state */
.no-results {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
}

.no-results p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: .5rem;
}

.no-results span {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

/* ════════════════════════════════════════
   Merch 
════════════════════════════════════════ */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.modal-content {
    background: var(--surface);
    padding: 2rem;
    max-width: 500px;
    margin: 10% auto;
    border-radius: 10px;
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 20px;
}



/* ════════════════════════════════════════
   Admin Layout & Components
════════════════════════════════════════ */

/* ── ADMIN LAYOUT ── */
.admin-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 2rem;
}

.admin-card--form {
    margin-top: 2rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

/* ── ADMIN TILES ── */
.admin-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: opacity .2s;
}

.admin-tile:hover {
    opacity: .8;
}

.admin-tile__icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.admin-tile__label {
    font-weight: 600;
}

/* ── TABLE ── */
.admin-table-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-weight: 600;
    background: var(--surface);
}

.row--inactive td {
    opacity: .45;
}

.action-cell {
    display: flex;
    gap: .5rem;
    align-items: center;
}

/* ── BUTTONS ── */
.btn-sm {
    padding: .3rem .75rem;
    border-radius: 4px;
    font-size: .8rem;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    background: transparent;
}

.btn-sm--danger {
    border-color: #c0392b;
    color: #c0392b;
}

.btn-submit--danger {
    background: #c0392b;
}

.back-link {
    font-size: .9rem;
    color: var(--text);
    opacity: .6;
    text-decoration: none;
    display: inline-block;
    margin-top: .5rem;
}

.back-link:hover {
    opacity: 1;
}

/* ── BADGES ── */
.badge {
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.badge--admin {
    background: #f0c040;
    color: #333;
}

.badge--user {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

/* ── ALERTS ── */
.alert-success {
    background: rgba(0,200,100,0.1);
    color: #50c878;
    padding: .75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* ════════════════════════════════════════
   Verification
════════════════════════════════════════ */
.code-input {
    letter-spacing: 8px;
    font-size: 1.5rem;
    text-align: center;
    font-family: var(--font-mono);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text);
    opacity: .6;
    cursor: pointer;
    font-size: .9rem;
}

.btn-text:hover {
    opacity: 1;
}


/* ════════════════════════════════════════
   NAVBAR PROFILE DROPDOWN
════════════════════════════════════════ */
/* Standalone nav icon links (wishlist, cart) */
.nav-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid transparent;
    color: var(--muted);
    transition: color .2s, border-color .2s;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-icon-link:hover {
    color: var(--text);
    border-color: var(--border);
    background: none;
}

.nav-icon-link svg {
    width: 18px;
    height: 18px;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    position: relative;
    transition: color .2s, border-color .2s;
}

.profile-trigger:hover {
    color: var(--text);
    border-color: var(--border);
}

.profile-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent2);
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 200;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s;
}

.profile-dropdown.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    padding: .85rem 1rem .7rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.dropdown-section-label {
    padding: .55rem 1rem .2rem;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 1rem;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background .15s;
}

.dropdown-item:hover {
    background: var(--bg);
}

.dropdown-item--list {
    padding-left: 1.5rem;
    font-size: 12px;
    color: var(--muted);
}

.dropdown-item--list::before {
    content: '·';
    margin-right: .4rem;
    color: var(--border);
}

.dropdown-item--see-all {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--muted);
    padding-left: 1.5rem;
}

.dropdown-item--danger {
    color: var(--accent2);
}

.dropdown-item--danger:hover {
    background: rgba(255,79,79,.06);
}

.dropdown-badge {
    background: var(--muted);
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: .3rem 0;
}

/* ════════════════════════════════════════
   SHARED PAGE WRAPPER
════════════════════════════════════════ */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

/* ════════════════════════════════════════
   CART PAGE
════════════════════════════════════════ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    animation: fadeUp .4s forwards;
}

.cart-item:first-child {
    border-top: 1px solid var(--border);
}

.cart-item-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .2s;
}

.cart-item-title:hover {
    opacity: .7;
}

.cart-item-sub {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .04em;
}

.cart-item-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: .06em;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.cart-item-qty {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .6rem;
    flex-shrink: 0;
}

.cart-item-line-total {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: .06em;
    color: var(--text);
}

.cart-remove-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: border-color .2s, color .2s;
}

.cart-remove-btn:hover {
    border-color: var(--accent2);
    color: var(--accent2);
}

/* Cart summary sidebar */
.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cart-summary-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: .1em;
    color: var(--text);
    margin-bottom: .25rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text);
}

.cart-summary-row--muted {
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
}

.cart-summary-divider {
    height: 1px;
    background: var(--border);
    margin: .25rem 0;
}

.cart-checkout-btn {
    width: 100%;
    text-align: center;
    padding: 13px;
    margin-top: .25rem;
}

.cart-checkout-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.cart-checkout-note {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    letter-spacing: .05em;
}

/* Cart empty state (shared with wishlist) */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 5rem 1rem;
    text-align: center;
}

.cart-empty p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: .08em;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 700px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
}

/* ════════════════════════════════════════
   MASTER LIST PAGE
════════════════════════════════════════ */
.masterlist-top-row {
    margin-bottom: 1rem;
}

.list-summary-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    min-width: 240px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.list-summary-card:hover {
    border-color: var(--text);
    box-shadow: 4px 4px 0 var(--text);
    transform: translateY(-2px);
}

.list-summary-card--wishlist .list-summary-icon {
    color: var(--accent2);
}

.list-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-summary-body {
    flex: 1;
}

.list-summary-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.list-summary-count {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    margin-top: .15rem;
}

.list-summary-arrow {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: var(--muted);
}

.masterlist-empty-hint {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    padding: .75rem 0 .25rem;
    letter-spacing: .04em;
}

.list-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.list-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.list-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}

.list-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.list-card-count {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
}

.list-card-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.list-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px solid var(--border);
}

.list-card-date {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .05em;
}

.create-list-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 520px;
    margin-top: 1.5rem;
}

/* ════════════════════════════════════════
   WISHLIST ACTIVE STATE
════════════════════════════════════════ */
.wishlist-hover.active {
    color: var(--accent2);
    background: rgba(255, 79, 79, .12);
    border-color: var(--accent2);
}

.wishlist-hover.active svg path {
    fill: var(--accent2);
    stroke: var(--accent2);
}

/* ════════════════════════════════════════
   GAME DETAIL PAGE
════════════════════════════════════════ */
.game-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.game-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 1.75rem 0 2.25rem;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.game-back-link:hover {
    color: var(--text);
}

/* ── Hero two-column layout ── */
.game-detail-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    margin-bottom: 4.5rem;
    opacity: 0;
    animation: fadeUp .55s .05s forwards;
}

.game-cover-art {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 6px 6px 0 var(--border);
    background: var(--surface);
    border: 2px solid var(--border);
}

.game-cover-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
}

.game-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
}

.game-detail-developer {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-sep {
    margin: 0 .5rem;
    opacity: .5;
}

.game-detail-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: .06em;
    line-height: .93;
    color: var(--text);
}

.game-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.detail-chip {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface);
}

.detail-chip--esrb {
    border-color: var(--text);
    color: var(--text);
    font-weight: 600;
}

.game-detail-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.platform-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--text);
    color: var(--bg);
}

.game-detail-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 560px;
}

.game-website-link {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: opacity .2s;
}

.game-website-link:hover {
    opacity: .6;
}

/* ── Shared section spacing ── */
.game-section {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeUp .5s .15s forwards;
}

/* ── Editions grid ── */
.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.edition-card-detail {
    background: var(--surface);
    border: 1px solid #adada6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.edition-card-detail:hover {
    border-color: var(--text);
    box-shadow: 2px 2px 2px 2px  var(--text);
}

.edition-cover-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a22 0%, #16161e 100%);
    border-bottom: 1px solid var(--border);
}

.edition-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #1a1a22 0%, #16161e 100%);
}

.edition-card-body {
    padding: 1rem 1rem .5rem;
    flex: 1;
}

.edition-platform-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
}

.edition-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: .5rem;
}

.edition-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: .6rem;
}

.edition-contents {
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
}

.edition-contents li {
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    color: var(--muted);
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

.edition-contents li:last-child {
    border-bottom: none;
}

.edition-card-footer {
    padding: .85rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    flex-wrap: wrap;
}

.edition-price-block {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    flex-wrap: wrap;
}

.edition-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: .06em;
    color: var(--text);
}

.edition-sale-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: .06em;
    color: var(--accent2);
}

.edition-original-price {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
}

.edition-sale-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--accent2);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
}

.edition-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

/* Cart button */
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .05em;
    padding: 7px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
}

.cart-btn:hover {
    background: #6bbce8;
    transform: translateY(-1px);
}

.cart-btn.active {
    background: var(--muted);
    color: #fff;
}

.cart-btn.active:hover {
    background: var(--accent2);
}

/* Wishlist button inside edition card — always visible, static position */
.edition-wishlist {
    position: static !important;
    opacity: 1 !important;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

/* ── Screenshots ── */
.screenshots-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .75rem;
    margin-top: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.screenshots-scroll::-webkit-scrollbar { height: 4px; }
.screenshots-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.screenshot-item {
    flex-shrink: 0;
    width: 320px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.screenshot-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ── Trailer ── */
.trailer-wrap {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
    max-width: 800px;
}

.trailer-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Languages table ── */
.lang-table-wrap {
    margin-top: 1.5rem;
    overflow-x: auto;
    max-width: 600px;
}

.lang-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lang-table th {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    padding: .6rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.lang-table td {
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.lang-table tr:last-child td { border-bottom: none; }

.lang-check {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

/* ════════════════════════════════════════
   PRODUCT LAYOUT (Amazon-style game page)
════════════════════════════════════════ */

.game-info-header {
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp .55s .05s forwards;
}

.product-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
    align-items: start;
    opacity: 0;
    animation: fadeUp .55s .1s forwards;
}

.product-gallery {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}

.product-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.product-gallery-main img {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 460px;
}

.product-gallery-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
}

.product-gallery-thumbs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color .2s;
    background: var(--surface);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--text);
}

/* Edition selector row */
.edition-selector {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.75rem;
}

.edition-btn {
    padding: .55rem 1.25rem;
    border: 2px solid var(--text);
    background: transparent;
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: background .2s, color .2s;
    color: var(--text);
    line-height: 1;
}

.edition-btn.active {
    background: rgba(78,168,222,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.edition-btn:hover:not(.active) {
    background: var(--surface);
}

/* Platform sub-selector (appears when a multi-platform edition is selected) */
.platform-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1.25rem;
    padding: .6rem .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.platform-selector-label,
.selector-label {
    font-family: 'DM Mono', monospace;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: .25rem;
}

.edition-selector .selector-label {
    align-self: center;
}

.platform-btn {
    padding: .35rem .85rem;
    border: 1.5px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    font-size: .74rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: border-color .18s, background .18s, color .18s;
    color: var(--text);
    line-height: 1;
}

.platform-btn.active {
    background: rgba(78,168,222,0.15);
    color: var(--accent);
    border-color: var(--accent);
}

.platform-btn:hover:not(.active) {
    border-color: var(--text);
}

/* Edition panel */
.edition-panel {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.edition-panel-cover {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    display: block;
    border: 1px solid var(--border);
}

.edition-panel-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: .05em;
    line-height: 1;
    margin-bottom: .75rem;
    color: var(--text);
}

.edition-panel-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1rem;
}

.edition-panel-desc {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1rem;
}

.edition-panel-contents {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: .6rem;
}

.edition-panel-contents li {
    font-size: .84rem;
    padding: .35rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.edition-panel-contents li strong {
    color: var(--text);
}

.edition-panel-photos {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.edition-panel-photo-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.edition-price-row {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin: 1.25rem 0;
}

.edition-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-gallery {
        position: static;
    }
    .product-gallery-main img {
        max-height: 320px;
    }
}

@media (max-width: 640px) {
    .game-detail-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-detail-cover {
        max-width: 220px;
        margin: 0 auto;
    }

    .game-detail-info {
        justify-content: flex-start;
    }
}

/* ── Game Banner (full-width atmospheric hero) ── */
.game-banner {
    position: relative;
    width: 100%;
    height: clamp(320px, 40vw, 520px);
    overflow: hidden;
    background: var(--surface);
}

.game-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.game-banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(12, 14, 20, 0.15) 0%,
        rgba(12, 14, 20, 0.5)  55%,
        rgba(12, 14, 20, 0.95) 100%
    );
}

.game-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 4rem;
}

.game-banner-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: .6rem;
}

.game-banner-sep {
    margin: 0 .4rem;
    opacity: .5;
}

.game-banner-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 6rem);
    text-transform: uppercase;
    letter-spacing: -.02em;
    line-height: .9;
    color: var(--text);
    margin: 0;
}

/* ── Product Info Card (right panel glass card) ── */
.product-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
}

/* ── Full-width Add to Cart button ── */
.cart-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s;
}

.cart-btn-full:hover { opacity: .85; }

.cart-btn-full.active {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* ── Wishlist secondary (full-width, below cart btn) ── */
.wishlist-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .7rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    margin-top: .6rem;
}

.wishlist-btn-secondary:hover,
.wishlist-btn-secondary.active {
    border-color: var(--accent2);
    color: var(--accent2);
}

.wishlist-btn-secondary.active svg { fill: var(--accent2); stroke: var(--accent2); }

/* ── Screenshots grid (2-col) ── */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-top: .75rem;
}

.screenshots-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ── Lower sections: screenshots + languages side-by-side ── */
.game-lower-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* Responsive: banner + lower sections */
@media (max-width: 768px) {
    .game-banner { height: clamp(200px, 50vw, 320px); }
    .game-banner-content { padding: 1.5rem; }
    .game-banner-title { font-size: clamp(2rem, 10vw, 3.5rem); }
    .game-lower-sections { grid-template-columns: 1fr; gap: 2rem; }
    .product-info-card { padding: 1.25rem; }
}

/* ════════════════════════════════════════
   ACCOUNT SETTINGS PAGE
════════════════════════════════════════ */
.settings-layout {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.settings-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
}

.settings-section--danger {
    border-color: rgba(255, 79, 79, .4);
}

.settings-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: .1em;
    color: var(--text);
    margin-bottom: .75rem;
}

.settings-section-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.5rem;
}

.settings-current-value {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 1rem;
}

.settings-hint {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .04em;
    margin-bottom: .85rem;
}

/* Sidebar quick-nav */
.settings-nav {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.settings-nav-title {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.settings-nav-link {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
    padding: .4rem .5rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.settings-nav-link:hover {
    background: var(--bg);
}

.settings-nav-link--danger {
    color: var(--accent2);
}

/* Address cards */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.address-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.address-card--default {
    border-color: var(--muted);
}

.address-default-badge {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--muted);
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: .2rem;
}

.address-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.address-lines {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}

.address-card-actions {
    display: flex;
    gap: .5rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}

.add-address-trigger {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: 1px dashed var(--border);
    border-radius: 7px;
    padding: .6rem 1rem;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--muted);
    cursor: pointer;
    transition: border-color .2s, color .2s;
    margin-bottom: 1.25rem;
}

.add-address-trigger:hover {
    border-color: var(--text);
    color: var(--text);
}

.add-address-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: -.5rem;
    margin-bottom: .5rem;
}

/* Success / error banners */
.settings-success-banner {
    background: rgba(0,200,100,0.1);
    color: #50c878;
    border: 1px solid rgba(0,200,100,0.25);
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: 13px;
    margin-bottom: 1.25rem;
}

.settings-error-banner {
    background: rgba(255,64,96,0.1);
    color: #ff8090;
    border: 1px solid rgba(255,64,96,0.3);
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: 13px;
    margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
    .settings-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: .25rem;
    }
    .settings-nav-title {
        width: 100%;
        margin-bottom: .25rem;
    }
}

/* ════════════════════════════════════════
   PROFILE PAGE
════════════════════════════════════════ */
.profile-greeting {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: .06em;
    line-height: .93;
    color: var(--text);
    margin: 2rem 0 2rem;
    opacity: 0;
    animation: fadeUp .5s .05s forwards;
}

.profile-greeting em {
    font-style: normal;
    color: var(--muted);
}

.profile-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp .5s .15s forwards;
}

.profile-stat-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .85rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 130px;
}

.profile-stat-chip--accent {
    border-color: var(--muted);
    background: rgba(98, 125, 154, .07);
}

.profile-stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.profile-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeUp .5s .25s forwards;
}

.profile-link-card {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .9rem 1.4rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.profile-link-card:hover {
    border-color: var(--text);
    box-shadow: 3px 3px 0 var(--text);
    transform: translateY(-2px);
}

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ════════════════════════════════════════
   MOBILE RESPONSIVE
════════════════════════════════════════ */

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    color: var(--nav-text);
    min-width: 36px;
    min-height: 44px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════ 768px ════════ */
@media (max-width: 768px) {
    /* Nav — hamburger replaces nav-links in the grid */
    nav {
        grid-template-columns: auto 1fr auto;
        padding: 0 1.25rem;
    }
    .nav-hamburger { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(46,46,46,.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: .5rem 0 1.25rem;
        gap: 0;
        z-index: 99;
        border-bottom: 1px solid rgba(255,255,255,.1);
        list-style: none;
        box-shadow: 0 8px 32px rgba(0,0,0,.3);
    }
    .nav-links.nav-open { display: flex; }
    .nav-links li { border-bottom: 1px solid rgba(255,255,255,.06); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        padding: .9rem 1.5rem;
        display: block;
        font-size: 14px;
        letter-spacing: .08em;
    }
    .nav-logo { height: 60px; width: 100px;}
    .nav-logo-shelf::after { height: 14px; border-radius: 0 0 14px 14px; }
    .nav-right { gap: .85rem; }
    .search-wrap { display: none; }

    /* Hero */
    .hero { padding: 3rem 1.25rem 2.25rem; }

    /* Section header */
    .section-header { padding: 2rem 1.25rem 1rem; }
    .section-header h2 { white-space: normal; }

    /* Game grid */
    .game-grid { padding: 0 1.25rem 3rem; }

    /* Games page */
    .games-hero { padding: 2.5rem 1.25rem 2rem; }
    .filter-bar { padding: 0 1.25rem 1.25rem; }

    /* Info pages */
    .page-hero { padding: 2.5rem 1.25rem 2rem; }
    .content-wrapper { padding: 1rem 1.25rem 2rem; }
    .support-cards, .vote-grid { padding: 0 1.25rem 3rem; }
    .compare-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem 2.5rem; }

    /* Form row — stack to one column */
    .form-row { grid-template-columns: 1fr; }

    /* Settings address grid */
    .address-grid { grid-template-columns: 1fr !important; }

    /* Footer */
    footer { padding: 2.25rem 1.25rem 1.5rem; }
    .footer-top { gap: 2rem; padding-bottom: 1.5rem; }
    .footer-columns { gap: 1.75rem 2.25rem; }
}

/* ════════ 480px ════════ */
@media (max-width: 480px) {
    /* Nav */
    nav { padding: 0 1rem; }
    .nav-right { gap: .65rem; }

    /* Hero */
    .hero { padding: 2.5rem 1rem 1.75rem; }

    /* Auth card */
    .auth-wrapper { padding: 1.5rem 1rem; }
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 10px;
    }
    .auth-card h1 { font-size: 2rem; }

    /* Game grid — force 2 columns */
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem 2.5rem;
        gap: .85rem;
    }

    /* Section header */
    .section-header { padding: 1.75rem 1rem .85rem; }

    /* Games page */
    .games-hero { padding: 2rem 1rem 1.5rem; }
    .filter-bar { padding: 0 1rem 1rem; }
    .big-search-wrap { padding: 0 1rem; }

    /* Game detail */
    .game-detail-title { font-size: clamp(2rem, 10vw, 3.5rem) !important; }

    /* Profile */
    .profile-greeting { margin: 1.25rem 0 1.5rem; }
    .profile-stat-chip { min-width: 0; flex: 1 1 calc(50% - .5rem); }
    .profile-link-card { width: 100%; }

    /* Cart */
    .cart-item { gap: .85rem; }

    /* List cards — full width on small screens */
    .list-summary-card { min-width: 0; width: 100%; }

    /* Footer */
    footer { padding: 1.75rem 1rem 1.25rem; }
    .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 1.75rem; }
    .footer-columns { justify-content: center; text-align: center; gap: 1.5rem 2rem; }
    .footer-col { align-items: center; }

    /* FP Reserve banner */
    .fp-reserve-banner { margin: 0 1rem 3rem; padding: 1.5rem; }
}

/* ════════ 360px ════════ */
@media (max-width: 360px) {
    .nav-right { gap: .5rem; }
    .game-grid { gap: .65rem; }
    .footer-columns { gap: 1.25rem 1.5rem; }
}

/* ════════════════════════════════════════
   FP DESIGN SYSTEM — New Style
════════════════════════════════════════ */

/* ── Section divider ── */
.fp-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
    border: none;
}

/* ── Eyebrow label  (§ 01 — SECTION NAME) ── */
.fp-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}

/* ── Section header row ── */
.fp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 4rem 2rem 1.5rem;
    gap: 1rem;
}

.fp-section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.01em;
    line-height: 1.15;
}

.fp-view-all {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .2s;
    padding-bottom: .1rem;
}

.fp-view-all:hover { opacity: .7; }

/* ── Card REF label (top-left overlay) ── */
.card-ref {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .06em;
    color: rgba(255,255,255,.85);
    background: rgba(0,0,0,.6);
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
    pointer-events: none;
}

/* ── Availability badge (top-right overlay) ── */
.card-avail {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .08em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
    pointer-events: none;
}

.card-avail--stock   { background: rgba(15,42,28,.92); color: #2dcd73; }
.card-avail--preorder{ background: rgba(8,24,50,.92);  color: #3db8f5; }
.card-avail--sold    { background: rgba(50,10,14,.92); color: #ff4060; }
.card-avail--soon    { background: rgba(38,26,5,.92);  color: #f5a623; }
.card-avail--sale    { background: rgba(50,10,14,.92); color: #ff4060; }

/* ── Card override: transparent container so info below has no card bg ── */
.game-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.game-card:hover {
    transform: translateY(-5px);
    border: none !important;
    box-shadow: none !important;
}

.game-card:hover .game-img {
    border-color: var(--accent);
    box-shadow: 0 0 22px rgba(61,184,245,0.22);
}

.game-img {
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}

/* ── Game info: title+price row layout ── */
.game-info {
    padding: .75rem 0 .25rem !important;
    background: transparent !important;
}

.game-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .2rem;
}

.game-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    line-height: 1.3 !important;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-price,
.sale-price {
    font-family: 'DM Mono', monospace !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    flex-shrink: 0;
    letter-spacing: .03em;
    white-space: nowrap;
}

.game-price-orig {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
    margin-left: .2rem;
}

.game-platform {
    font-family: 'DM Mono', monospace !important;
    font-size: 10px !important;
    color: var(--muted) !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    margin-bottom: 0 !important;
}

/* ── Games page hero title ── */
.games-page-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: -.02em;
    text-transform: uppercase;
    line-height: .92;
    color: var(--text);
    margin-bottom: .5rem;
}

.games-page-title-accent { color: var(--accent); }

.games-page-sub {
    font-size: .9rem;
    color: var(--muted);
    margin-top: .6rem;
}

/* ── Hero badge eyebrow ── */
.hero-eyebrow-badge {
    display: inline-block;
    border: 1px solid var(--border);
    padding: 5px 12px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
    border-radius: 3px;
}

/* ── Hero outline title ── */
.hero-title-solid {
    display: block;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: .9;
    letter-spacing: -.02em;
}

.hero-title-outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.18);
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: .9;
    letter-spacing: -.02em;
    margin-top: .04em;
}

/* ── Site Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 0;
    margin-top: 5rem;
    background: var(--bg);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer-brand img {
    height: 44px;
    width: auto;
    opacity: .8;
}

.footer-brand p {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 300px;
    margin: 0;
}

.footer-location {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: .5;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.footer-col-title {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .4rem;
}

.footer-links-col a {
    font-size: .88rem;
    color: var(--text);
    opacity: .65;
    transition: opacity .2s, color .2s;
}

.footer-links-col a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: .45;
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .fp-section-header { padding: 2.5rem 1.25rem 1rem; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .fp-section-header { flex-direction: column; align-items: flex-start; }
    .games-page-title { font-size: clamp(2rem, 12vw, 3.5rem); }
    .fp-search-bar { flex-direction: column; align-items: stretch; }
}

/* ── Games page search + sort bar ── */
.fp-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 0;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fp-search-wrap {
    max-width: 420px;
    flex: 1;
    margin: 0 !important;
}

.sort-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ════════════════════════════════════════
   RESPONSIVE — game detail, wishlist & misc
════════════════════════════════════════ */
@media (max-width: 768px) {
    .game-detail-wrap { padding: 0 1.25rem 4rem; }
    .page-wrap { padding: 0 1.25rem 4rem; }
    .fp-search-bar { padding: 1.5rem 1.25rem 0; }
    .results-meta { padding: 0 1.25rem; }
    .edition-btn { padding: .5rem .95rem; font-size: .72rem; }
}

@media (max-width: 480px) {
    .game-detail-wrap { padding: 0 1rem 3rem; }
    .page-wrap { padding: 0 1rem 3rem; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .gallery-thumb { width: 56px; height: 56px; }
    .edition-panel-name { font-size: 1.6rem; }
    .game-banner-content { padding: 1.25rem 1rem; }
    .platform-selector { padding: .5rem .6rem; }
    .game-detail-chips { gap: .35rem; }
}
