* { box-sizing: border-box; } html { scroll-behavior: smooth; } body.site-body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; transition: background-color .22s ease, color .22s ease; } main { min-height: 80vh; } a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); background: var(--header-bg); backdrop-filter: blur(16px); }.site-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -1px; }.brand > span:last-child span { color: var(--primary); }.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: var(--radius-sm); background: linear-gradient(145deg, var(--primary), #b59aff); color: #fff; font-size: 18px; font-style: italic; }.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 600; }.nav-links a:hover { color: var(--primary); }.nav-actions { display: flex; align-items: center; gap: 15px; }.theme-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .2s ease, border-color .2s ease; }.theme-toggle:hover { border-color: var(--primary); transform: translateY(-1px); }.theme-toggle-icon { color: var(--primary); font-size: 17px; }.nav-order-link { color: var(--text); font-size: 14px; font-weight: 700; }.nav-order-link span { color: var(--primary); font-size: 18px; margin-left: 3px; }.footer { border-top: 1px solid var(--border); background: var(--footer-bg); color: var(--footer-text); }.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; }.footer .brand { color: #fff; font-size: 17px; }.footer p { margin: 0; font-size: 13px; }.footer-copy { font-size: 12px; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }.button:hover:not(:disabled) { transform: translateY(-2px); }.button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }.button-primary { gap: 10px; background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 20px rgba(114, 70, 232, .22); }.button-primary:hover:not(:disabled) { background: var(--primary-hover); color: var(--on-primary); box-shadow: 0 14px 25px rgba(114, 70, 232, .3); }.button-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
@media (max-width: 767.98px) { .site-nav { min-height: 63px; }.nav-links, .nav-order-link { display: none; }.footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding: 26px 0; } }

/* Shared public storefront game search. */
.nav-game-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 190px;
    max-width: 336px;
}

.nav-game-search__control {
    position: relative;
}

.nav-game-search__icon,
.section-game-search__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    pointer-events: none;
    transform: translateY(-50%);
    transition: stroke .2s ease;
}

.nav-game-search__input {
    display: block;
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    line-height: 1;
    outline: none;
    padding: 0 14px 0 42px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.nav-game-search__input::placeholder {
    color: var(--muted);
    opacity: .82;
}

.nav-game-search__control:focus-within .nav-game-search__icon {
    stroke: var(--primary);
}

.nav-game-search__input:hover {
    border-color: color-mix(in srgb, var(--primary) 54%, var(--border));
}

.nav-game-search__input:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent), 0 10px 22px rgba(6, 2, 20, .16);
}

.game-search-results {
    position: absolute;
    z-index: 40;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    max-height: min(360px, calc(100vh - 120px));
    overflow-y: auto;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface) 94%, #110923);
    box-shadow: 0 22px 48px rgba(4, 1, 15, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.game-search-results[hidden] {
    display: none;
}

.game-search-results__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.game-search-results__item:hover,
.game-search-results__item:focus-visible {
    border-color: color-mix(in srgb, var(--primary) 46%, var(--border));
    background: var(--primary-soft);
    color: var(--text);
    outline: none;
    transform: translateX(2px);
}

.game-search-results__media {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: 10px;
    background: var(--primary-soft);
}

.game-search-results__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-search-results__fallback {
    color: var(--primary);
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.game-search-results__details {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.game-search-results__name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-search-results__publisher,
.game-search-results__empty {
    color: var(--muted);
    font-size: 12px;
}

.game-search-results__empty {
    margin: 0;
    padding: 13px 12px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .site-nav {
        gap: 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-game-search {
        max-width: min(360px, 48vw);
    }
}

@media (max-width: 767.98px) {
    .site-nav {
        min-height: auto;
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 11px;
        padding-bottom: 12px;
    }

    .nav-game-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .nav-game-search__input {
        height: 41px;
    }
}

/* Disabled controls remain clearly readable instead of dimming the entire component. */
.button:disabled {
    border-color: var(--border);
    background: var(--surface-soft);
    color: var(--text-disabled);
    cursor: not-allowed;
    opacity: 1;
}

/* Public member access is intentionally compact so it fits alongside the
   existing game search and order link without changing the navbar structure. */
.nav-member-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 780;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.nav-member-link:hover {
    border-color: color-mix(in srgb, var(--primary) 64%, var(--border));
    background: var(--primary-soft);
    color: var(--primary-strong);
    transform: translateY(-1px);
}

.nav-member-link--account::before {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(104, 223, 160, .1);
    content: "";
}

/* Owner-provided branding assets stay local to the shared storefront shell. */
.brand--image { gap: 0; }
.brand-logo { display: block; width: auto; height: 65px; object-fit: contain; }
.footer .brand-logo { height: 65px; }
.footer p { flex: 1 1 420px; max-width: 640px; line-height: 1.55; }

.storefront-whatsapp {
    position: fixed;
    z-index: 35;
    right: max(20px, calc(env(safe-area-inset-right) + 14px));
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(157, 115, 241, .35);
    border-radius: 18px;
    background: rgba(20, 12, 37, .92);
    box-shadow: 0 16px 32px rgba(3, 1, 10, .36), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.storefront-whatsapp:hover { border-color: var(--primary); background: var(--surface-raised); transform: translateY(-2px); }
.storefront-whatsapp:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 58%, #fff); outline-offset: 3px; }
.storefront-whatsapp img { display: block; width: 31px; height: 31px; object-fit: contain; }

@media (max-width: 991.98px) {
    .brand-logo { height: 42px; max-width: 160px; }
    .footer .brand-logo { height: 52px; max-width: 190px; }
}

@media (max-width: 767.98px) {
    .brand-logo { height: 40px; max-width: 150px; }
    .footer .brand-logo { height: 48px; max-width: 180px; }
    .storefront-whatsapp { width: 54px; height: 54px; border-radius: 17px; }
    .storefront-whatsapp img { width: 29px; height: 29px; }
}

@media (max-width: 767.98px) {
    .nav-member-link { margin-left: auto; }
}
