:root {
    --bg: #0b1020;
    --card: #131a33;
    --text: #e7ecff;
    --muted: #9aa3c7;
    --accent: #5b8cff;
    --ok: #2ba97a;
    --warn: #f6a700;
}

* {
    box-sizing: border-box
}

.passion-one-regular {
    font-family: "Passion One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.passion-one-bold {
    font-family: "Passion One", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.passion-one-black {
    font-family: "Passion One", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.barlow-thin {
    font-family: "Barlow", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.barlow-extralight {
    font-family: "Barlow", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.barlow-light {
    font-family: "Barlow", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.barlow-regular {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.barlow-medium {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.barlow-semibold {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.barlow-bold {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.barlow-extrabold {
    font-family: "Barlow", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.barlow-black {
    font-family: "Barlow", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.barlow-thin-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.barlow-extralight-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.barlow-light-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.barlow-regular-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.barlow-medium-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.barlow-semibold-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.barlow-bold-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.barlow-extrabold-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.barlow-black-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 900;
    font-style: italic;
}


.c {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

body:not(.login-page) {
    background: url("https://cdn.octathorpeweb.com/v1/webstore/store-bg.webp") center 40% / cover repeat fixed;
}


body {
    margin: 0;
    font-family: Inter, system-ui, Arial;
    background: var(--bg);
    color: var(--text);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1.25rem;
    background: #0B2143;
    border-bottom: 1px solid #1f2a55;
}

.header .brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none
}

.header .brand-logo .logo {
    height: auto;
    width: 148px;
    display: block
}

/* Header user area */
.header .user {
    display: flex;
    align-items: center;
    gap: .6rem
}

.header .user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #0b122a;
    display: inline-block;
    flex: 0 0 36px
}

.header .user .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.header .user .name {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px
}

.brand {
    font-weight: 700;
    letter-spacing: .5px
}

.container {
    max-width: 980px;
    margin: auto auto;
    padding: 0 0.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: .5rem
}

.card {
    background: var(--card);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #202a55;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25)
}

.thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: .5rem;
    background: #0B2143;
    border-radius: 10px;
    overflow: hidden
}

.thumb img {
    max-height: 100%
}

h1,
h3 {
    margin: .25rem 0
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    margin: .5rem 0
}

.btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: .6rem 1rem;
    border-radius: 10px;
    cursor: pointer
}

.btn.secondary {
    background: #0B2143
}

.btn.success {
    background: #2ba97a
}

label {
    display: block;
    margin-bottom: .75rem
}

input {
    width: 100%;
    padding: .6rem;
    border-radius: 8px;
    border: 1px solid #2a335f;
    background: #0B2143;
    color: var(--text)
}

.error {
    color: #ff6b6b;
    margin-top: .5rem
}

.muted {
    color: #9aa3c7
}

.footer {
    padding: 1rem 1.25rem;
    text-align: center;
    color: #9aa3c7
}

/* one full-bleed bg + shared layout vars for login + confirm */
body.login-page {
    background: url("https://cdn.octathorpeweb.com/v1/webstore/login-bg.png") center 32% / cover no-repeat fixed;
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    position: relative;

    /* placement knobs */
    --hero-top: 10px;
    /* move logo down/up */
    --hero-logo-h: 160px;
    /* logo height (was 220px; reduce if too big) */
    --gap-after-logo: 20px;
    /* space between logo and card */

    /* card dimensions */
    --card-w: 820px;
    --card-h: 301px;
    --card-r: 46.94px;

    /* compute card top so it always sits right under the logo */
    --card-top: calc(var(--hero-top) + var(--hero-logo-h) + var(--gap-after-logo));
}

body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://cdn.octathorpeweb.com/v1/webstore/login-bg.png") center 32% / cover no-repeat;
    z-index: -2;
}

body.login-page .login-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body.login-page .login-video-bg.loaded {
    opacity: 1;
}

/* remove the duplicate .container--login if you already have it */
.container--login {
    max-width: 100%;
    padding: 0;
}

#hw-login {
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    position: relative;
    overflow: hidden;
}

/* iOS Safari specific fixes for login container */
@supports (-webkit-touch-callout: none) {
    #hw-login {
        height: 100vh;
        height: -webkit-fill-available;
        /* iOS Safari fallback */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        overflow: hidden;
    }

    body.login-page {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* iOS Safari fixes for confirmation page */
    #hw-confirm {
        height: 100vh;
        height: -webkit-fill-available;
        position: relative;
        overflow: hidden;
    }
}

/* centered logo */
.hw-hero-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: var(--hero-top);
    height: var(--hero-logo-h);
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25));
    z-index: 10;
    /* above bg */
    pointer-events: none;
    user-select: none;
    display: block;
    /* Ensure it's visible */
}

/* iOS Safari specific fixes - LOGIN PAGE ONLY */
@supports (-webkit-touch-callout: none) {
    #hw-login .hw-hero-logo {
        position: fixed;
        top: max(var(--hero-top), env(safe-area-inset-top, 0px));
        z-index: 10;
        /* Ensure it's above everything */
    }
}

/* glass card */
.hw-glass-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: var(--card-top);
    width: var(--card-w);
    height: var(--card-h);

    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(11.8px);
    -webkit-backdrop-filter: blur(11.8px);
    border-radius: var(--card-r);
    border: 1px solid rgba(255, 255, 255, .18);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 22px;
    z-index: 2;
    /* below logo, above background/characters */
}

/* iOS Safari specific fixes for glass card - LOGIN PAGE ONLY */
@supports (-webkit-touch-callout: none) {
    #hw-login .hw-glass-card {
        position: fixed;
        top: max(var(--card-top), calc(var(--hero-top) + var(--hero-logo-h) + var(--gap-after-logo) + env(safe-area-inset-top, 0px)));
        max-width: calc(100vw - 40px);
        width: min(var(--card-w), calc(100vw - 40px));
    }
}

/* input row stays inside the glass width */
.hw-input-row {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: .7rem;
    background: white;
    border-radius: 14px;
    padding: .45rem;
    width: calc(var(--card-w) - 120px);
    max-width: 90vw;
}

/* Confirmation page specific adjustments */
#hw-confirm .hw-glass-card {
    max-width: min(95vw, var(--card-w));
    width: min(95vw, var(--card-w));
    padding: 20px 15px;
}

@media (max-width: 768px) {
    #hw-confirm .hw-glass-card {
        max-width: 95vw;
        width: 95vw;
        padding: 18px 12px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    #hw-confirm .hw-glass-card {
        max-width: 98vw;
        width: 98vw;
        padding: 15px 10px;
        margin: 0 auto;
    }
}

.hw-input {
    background: transparent;
    border: none;
    font-size: 16px;
    /* Prevents zoom on mobile devices */
    color: black;
    outline: none;
    padding: 1rem .95rem;
    border-radius: 12px;
}

.hw-input {
    font-size: 16px;
}

@media (min-width: 769px) {
    .hw-input {
        font-size: 1.06rem;
    }
}

/* iOS Safari input fixes */
@supports (-webkit-touch-callout: none) {
    .hw-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
        transform: translateZ(0);
        /* Hardware acceleration */
        -webkit-appearance: none;
        border-radius: 12px;
    }

    .hw-input:focus {
        transform: translateZ(0);
    }
}

.hw-go {
    background: #5b8cff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.hw-go:hover {
    background: #2a4a95;
}

/* Buttons on confirm */
.hw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.hw-btn.back {
    background: #404050;
    color: white;
    border: 1px solid rgba(42, 51, 95, .9);
}

.hw-btn.yes {
    background: #84CC16;
    color: white;
}

.hw-btn:hover {
    filter: brightness(1.06);
}

.hw-title {
    margin: 0 0 10px;
    font-size: clamp(24px, 6vw, 40px);
    line-height: 1.2;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Responsive title sizing for confirmation page */
@media (max-width: 768px) {
    .hw-title {
        font-size: 28px;
        line-height: 1.3;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hw-title {
        font-size: 24px;
        line-height: 1.4;
        padding: 0 15px;
    }

    .hw-glass-card {
        width: 420px;
    }
}

.hw-sub {
    margin: 0 0 14px;
    color: #cfd7ff;
    font-size: 27px;
}

.hw-hl {
    background: linear-gradient(transparent 70%, rgba(255, 255, 255, .22) 0);
    padding: 0 .08em;
}

.hw-help {
    margin: 6px 0 0;
    color: #cfe0ff;
    font-size: 27px;
}

.hw-help a {
    color: #fff;
    text-decoration: underline;
}

/* Default grid for all sections */
.hw-store .tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 8px;
}

/* Card shell */
.hw-store .card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(9, 14, 28, .18);
    overflow: hidden;
}

/* Top panel background (purple art) */
.hw-store .panel {
    position: relative;
    background: var(--panel-url) center/cover no-repeat;
    border-radius: 14px;
    margin: 12px 12px 0 12px;
    /* white frame around panel */
    height: clamp(140px, 16vw, 200px);
    /* consistent height across tiles */
}

/* Optional ribbon (top-right corner of panel) */
.hw-store .ribbon {
    position: absolute;
    right: -8px;
    top: 10px;
    background: #ff4d4f;
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
}

/* White price strip */
.hw-store .price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: #0b162e;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    border-radius: 0 0 16px 16px;
}

.hw-store .tile {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* PANEL: actual image, no card */
.hw-store .panel {
    position: relative;
}

.hw-store .panel-img {
    display: block;
    width: 100%;
    height: auto;
    /* natural aspect */
    border-radius: 16px 16px 0 0;
    /* rounded top to match mock */
    box-shadow: 0 10px 24px rgba(9, 14, 28, .12);
}

/* tile sprite on top (left) */
.hw-store .tile-sprite {
    position: absolute;
    left: 18px;
    bottom: 55px;
    max-width: 46%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25));
}

/* WHITE STRIP: price left, buy-now image button right */
.hw-store .strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 0 0 16px 16px;
    border: 1px solid rgba(0, 0, 0, .05);
    border-top: none;
    box-shadow: 0 6px 18px rgba(9, 14, 28, .10);
}

.section {
    margin: 4em 0em;
}

/* center the yellow banner */
.hw-store .section .banner {
    display: block;
    margin: 0 auto 18px;
    /* centers it horizontally */
}

/* white card around each tile */
.hw-store .tile-card {
    background: #E9F4F4;
    border-radius: 11.62px;
    box-shadow: 0px 2.4px 0px 0px #9A9A9A;
}

/* purple panel sits just above the white strip */
.hw-store .panel-wrap {
    position: relative;
    margin: 12px 12px 8px;
    /* small bottom margin so it hugs the strip */
}

.hw-store .panel-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* tile sprite on top/left */
.hw-store .tile-sprite {
    position: absolute;
    left: 16px;
    bottom: 18px;
    max-width: 46%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25));
}

.hw-store .item-title {
    font-size: 1.5em;
    margin: 8px 20px;
    color: black;
    text-shadow: 2px 2px lightblue;
}

/* white strip: price left, buy-now right */
.hw-store .tile-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 14px;
}

.hw-store .price-left {
    background: #f3f6ff;
    color: #0b162e;
    font-weight: 900;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06) inset;
}

/* buy-now image button */
.hw-store .buy-form {
    margin: 0;
}

.hw-store .buy-img-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
}

.hw-store .buy-img-btn img {
    display: block;
    height: 48px;
    width: auto;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25));
}

.hw-store .buy-img-btn:active img {
    transform: translateY(1px);
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25));
}

.price-now {
    color: black;
    font-size: 24px;
}


/* Center and scale the yellow banner */
.hw-store .section .banner {
    display: block;
    margin: 6px auto 16px;
    width: clamp(240px, 85vw, 478px);
    /* fluid width */
    height: auto;
}

.gradient-text {
    /* 1. Set the gradient as the background */
    background: linear-gradient(to right, red, orange);

    /* 2. Clip the background only to the shape of the text */
    -webkit-background-clip: text;
    background-clip: text;

    /* 3. Make the actual text transparent so the background shines through */
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;

    /* 4. (Optional) Fallback color for older browsers */
    color: rgb(255, 255, 255);
}

.hw-store .price-block {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.hw-store .price-block .mrp {
    font-size: 14px;
    color: #1E1E1E;
    text-decoration: line-through;
    text-decoration-color: #e74c3c;
    text-decoration-thickness: 2px;
    margin-bottom: 4px;
}

.hw-store .price-block .price-now {
    font-size: 30px;
    color: #0b162e;
    white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
    --footer-bg: #0E2140;
    /* navy */
    --footer-text: #D7E2F2;
    --footer-muted: #AFC0D8;
    --footer-accent: #ffffff;

    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 24px 18px;
    margin-top: 50px;
}

.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* brand | game | help */
    gap: 48px;
    align-items: start;
}

.site-footer .footer-col h3 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 800;
    color: var(--footer-accent);
}

/* Brand column */
.site-footer .fw-logo {
    width: 260px;
    height: auto;
    display: block;
    margin: 0 0 18px;
}

.site-footer .fw-follow {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 700;
}

.site-footer .fw-social {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    gap: 28px;
}

.site-footer .fw-social .ico {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--footer-accent);
    opacity: .9;
    transition: transform .15s ease, opacity .15s ease;
    text-decoration: none;
}

.site-footer .fw-social .ico:hover {
    transform: translateY(-1px);
    opacity: 1;
}

/* Game column placeholder box */
.site-footer .game-col .game-box {
    width: 100%;
    max-width: 360px;
    height: 240px;
    border-radius: 6px;
    background: #DCDDE1;
    opacity: .95;
}

/* Help links */
.site-footer .help-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.site-footer .help-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 18px;
    opacity: .9;
}

.site-footer .help-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Legal strip */
.site-footer .footer-legal {
    max-width: 1200px;
    margin: 28px auto 0;
    padding-top: 16px;
    text-align: center;
    color: var(--footer-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Season Pass dual layout */
.sp-dual .sp-hero {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border: 2.1px solid #000;
    /* black border */
    border-radius: 11.62px 11.62px 0px 0px;
    /* optional, keep corners rounded */
    box-sizing: border-box;
    /* ensures border doesn’t break layout */
}

.sp-dual .sp-hero-img {
    display: block;
    width: 100%;
    height: auto;
}

.sp-dual .sp-hero-sprite {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Flex row: left 1/3, right 2/3 */
.sp-dual .sp-row {
    display: flex;
    background: linear-gradient(180deg, #0368CC 0%, #001A99 100%);
    border-radius: 18px;
}

.sp-dual .sp-row--13-23 .sp-col--one {
    flex: 1 1 0;
    min-width: 0;
    background: linear-gradient(180deg, #0368CC 0%, #001A99 100%);
    border: 2.1px solid #000;
    border-top: none;
    /* black border */
    border-radius: 0px 0px 0px 11.62px;
    /* optional, keep corners rounded */
    box-sizing: border-box;

}

.sp-dual .sp-row--13-23 .sp-col--two {
    flex: 2 1 0;
    min-width: 0;
    background: linear-gradient(180deg, #7F03CC 0%, #540099 100%);
    padding: 12px;
    border: 2.1px solid #000;
    border-top: none;
    border-left: none;
    /* black border */
    border-radius: 0px 0px 11.62px 11.62px;
    /* optional, keep corners rounded */
    box-sizing: border-box;
}

/* Card boxes */
.sp-dual .sp-box {
    border-radius: 14px;
    box-shadow: 0 6px 11.62px rgba(0, 0, 0, 0.08);
    padding: 12px;
    background: linear-gradient(180deg, #0368CC 0%, #001A99 100%);
}

.sp-dual .item-title {
    letter-spacing: 0.3px;
    margin: 4px 0 8px;
    text-transform: none;
    /* we already send uppercase text; keep crisp kerning */
}

.sp-dual .tile-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
}

.sp-dual .price-block .mrp {
    opacity: 0.6;
    text-decoration: line-through;
    font-size: 13px;
    line-height: 1.1;
}

.sp-dual .buy-form {
    position: relative;
    display: inline-block;
}

/* container overlay on the button */
.sp-dual .price-overlay {
    position: absolute;
    top: 56px;
    /* adjust per layout */
    left: 53%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

/* current price – matches the large button look */
.sp-dual .price-overlay .price-now {
    font-family: "Passion One", system-ui, sans-serif;
    font-weight: 700;
    font-size: 30px;
    /* from Figma */
    line-height: 1;
    /* 100% */
    letter-spacing: 0.045em;
    /* 2.5% */
    color: #FFFFFF;
    filter: drop-shadow(0px 1.35px 0px #000000);
    white-space: nowrap;

    /* Figma border + shadow */
    -webkit-text-stroke: 1.11px #000000;
    /* Non-WebKit fallback: fake the stroke + the vertical drop */
    text-shadow:
        0 1.56px 0 #000,
        /* drop shadow */
        0 0 1.11px #000,
        0 0 1.11px #000,
        /* double to thicken edge a touch */
        -1px 0 #000, 1px 0 #000,
        0 -1px #000, 0 1px #000,
        1px 1px #000, -1px -1px #000,
        1px -1px #000, -1px 1px #000;
    /* keeps fill above stroke for crisp edges */
    paint-order: stroke fill;
}

/* (optional) small-screen autoscale so long prices don't wrap */
.sp-dual .price-overlay .price-now.fit {
    display: inline-block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    transform-origin: center;
}


.hw-store .qty-stack {
    position: absolute;
    right: 16px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.hw-store .qty-stack .qty-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #00000099;
    color: #fff;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 9999px;
    line-height: 1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
}

.hw-store .qty-stack .qty-pill .bonus-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(25, 26, 41, .9);
    color: #fff;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 9999px;
    line-height: 1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
    bottom: -12px;
}

.hw-store .qty-stack .qty-pill .hc-icon {
    width: 22px;
    height: 22px;
}

.hw-store .qty-stack .qty-pill .qty {
    font-size: 16px;
}

.hw-store .qty-stack .qty-pill .qty {
    font-size: 20px;
}

.hw-store .panel-wrap {
    position: relative;
}

.hw-store .panel-wrap .quantifier-img {
    position: absolute;
    top: -28px;
    /* adjust as needed */
    right: -19px;
    /* adjust as needed */
    width: 161px;
    /* scale for your asset */
    z-index: 2;
}

.sp-hero {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* Base styles for images and videos */
.sp-hero-img,
.sp-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Removed display: block as it conflicts with our responsive logic */
}

/* Picture element styles */
.sp-hero picture {
    display: block;
    width: 100%;
    height: 100%;
}

.sp-hero picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* RESPONSIVE VIDEO SWITCHING - Higher specificity */
.sp-hero .sp-hero-mobile-only {
    display: none !important;
}

.sp-hero .sp-hero-desktop-only {
    display: block !important;
}

/* --- Base Styles --- */

.hw-store .section.section--sp .tiles {
    grid-template-columns: 1fr;
}


/* =========================================
   Responsive Styles (Combined & Optimized)
   ========================================= */

/* For Tablets (<= 768px) */
@media (max-width: 768px) {

    /* Header: tighter padding + scale logo + hide long name on narrow */
    .header {
        padding: .45rem .9rem;
    }

    .header .brand-logo .logo {
        width: 118px;
    }

    .header .user {
        gap: .4rem;
    }

    .header .user .avatar {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }

    .header .user .name {
        max-width: 92px;
        font-size: .9rem;
    }
}

/* For Smaller Tablets (<= 760px) */
@media (max-width: 760px) {
    .site-footer {
        padding: 32px 16px 14px;
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        /* stack */
        gap: 28px;
    }

    .site-footer .fw-logo {
        width: 200px;
    }

    .site-footer .fw-follow {
        font-size: 22px;
    }

    .site-footer .fw-social {
        gap: 20px;
    }

    .site-footer .game-col .game-box {
        max-width: 100%;
        height: 180px;
    }

    .site-footer .help-links a {
        font-size: 16px;
    }

    .site-footer .footer-legal {
        font-size: 12px;
    }
}

/* For Smaller Tablets & Large Phones (<= 720px) */
@media (max-width: 720px) {
    .sp-dual .sp-row {
        flex-direction: row;
    }

    .sp-dual .sp-row--13-23 .sp-col--one,
    .sp-dual .sp-row--13-23 .sp-col--two {
        flex: 1 1 0;
    }
}

/* For Large Phones (<= 640px) */
@media (max-width: 640px) {

    /* Hero section visibility */
    .sp-hero .sp-hero-mobile-only {
        display: block !important;
    }

    .sp-hero .sp-hero-desktop-only {
        display: none !important;
    }

    /* Dual column layout stacking */
    .sp-dual .sp-row {
        flex-direction: row !important;
    }

    .sp-dual .sp-col--one,
    .sp-dual .sp-col--two {
        /* width: 100%;
        padding: 10px; */
        flex: 1 1 0;
        padding: 8px;
    }

    /* Store tile grid adjustments */
    .hw-store .tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;  /* Reduce gap instead of zoom */
        padding: 0 8px;
        zoom: 0.7;
    }

    /* Store tile card styles */
    .hw-store .tile-card {
        border-radius: 14px;
    }

    /* Store tile panel adjustments */
    .hw-store .panel-wrap {
        margin: 10px 10px 6px;
    }

    .hw-store .panel-img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    /* Store tile sprite positioning */
    .hw-store .tile-sprite {
        left: 26px;
        bottom: 17px;
        max-width: 44%;
    }

    /* Store tile bottom strip */
    .hw-store .tile-strip,
    .hw-store .strip {
        padding: 10px 12px 12px;
    }

    /* Store pricing and buy button */
    .hw-store .price-left {
        font-size: 16px;
        padding: 6px 10px;
        border-radius: 10px;
    }

    .hw-store .buy-img-btn img {
        height: 55px;
    }

    .hw-store .price-block .mrp {
        font-size: 13px;
    }

    .hw-store .price-block .price-now {
        font-size: 22px;
    }

    /* Store quantity pill */
    .hw-store .qty-stack {
        right: 3px;
        bottom: 16px;
        justify-content: center;
        align-items: center;
    }

    .hw-store .qty-stack .qty-pill {
        padding: 5px 10px;
    }

    .hw-store .qty-stack .qty-pill .hc-icon {
        width: 20px;
        height: 20px;
    }

    .hw-store .qty-stack .qty-pill .qty {
        font-size: 19px;
    }

    .section.section--sp,
    .hw-store .section.section--sp {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }

    /* SP tiles grid - force single column */
    .section.section--sp .tiles,
    .hw-store .section.section--sp .tiles {
        grid-template-columns: 1fr !important;
        /* Single column instead of multiple */
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Individual SP tile */
    .section.section--sp .tile,
    .hw-store .section.section--sp .tile {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
    }

    /* SP dual layout fixes */
    .tile.sp-dual {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* SP video elements */
    .sp-dual .sp-hero-video {
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }

    /* Keep landscape ratio for desktop video (hidden on mobile anyway) */
    .sp-hero-desktop-only {
        aspect-ratio: 16/9 !important;
        /* Landscape aspect for desktop */
    }

    .gold-rewards {
        width: 104%;
    }
}

/* For Standard Phones (<= 600px) */
@media (max-width: 600px) {

    /* Stop heavy fixed backgrounds on mobile (iOS jank) */
    body:not(.login-page) {
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
    }

    .gold-rewards {
        width: 104%;
    }

    .hw-store .panel-wrap .quantifier-img {
        top: -24px;
        right: -16px;
        width: 154px;
    }
}

/* For Narrow Phones (<= 420px) */
@media (max-width: 420px) {

    /* Hide user name to save space */
    .header .user .name {
        display: none;
    }

    /* Further reduce logo size */
    .header .brand-logo .logo {
        width: 100px;
    }

    .gold-rewards {
        width: 104%;
    }
}

/* For Extra-Narrow Phones (<= 360px) */
@media (max-width: 360px) {
    .hw-store .tiles {
        gap: 14px;
    }

    .hw-store .price-left {
        font-size: 15px;
        padding: 6px 8px;
    }

    .hw-store .buy-img-btn img {
        height: 36px;
    }

    .gold-rewards {
        width: 104%;
    }
}

.item-title {
    position: relative;
    /* keeps image aligned inside parent */
    display: flex;
    justify-content: center;
    margin: 0 auto 12px;
    /* space below */
    width: 100%;
    z-index: 5;
}

.item-title-img {
    max-width: 90vw;
    max-width: clamp(140px, 90vw, 327px);
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);  /* Proper centering */
}

.random {
    max-width: 245px;
    top: -34px;
}

/* Tablet screens */
@media (max-width: 1024px) {
    .item-title-img {
        max-width: 336px;
    }

    .gold-rewards {
        width: 104%;
    }

    .random {
        max-width: 239px;
        top: -32px;
    }

}

/* Mobile screens */
@media (max-width: 640px) {
    .item-title-img {
        max-width: 235px;
    }

    .random {
        max-width: 176px;
        top: -38px;
    }

    .gold-rewards {
        width: 104%;
    }
}

.sp-dual .tile-strip--column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-dual .sp-offer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
}

/* Desktop view - more padding for better spacing */
@media (min-width: 768px) {
    .sp-dual .sp-offer-container {
        padding: 12px 16px;
        margin-bottom: 12px;
    }
}

.sp-dual .sp-offer-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.sp-dual .sp-offer-img img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Desktop view - larger image */
@media (min-width: 768px) {
    .sp-dual .sp-offer-img img {
        min-height: 60px;
    }
}

/* Mobile view - smaller image */
@media (max-width: 767px) {
    .sp-dual .sp-offer-img img {
        min-height: 40px;
    }

    .sp-dual .tile-strip--column {
        flex-direction: column;
    }

}

/* GLOBAL RESET (mobile) */
@media (max-width: 480px) {

    html,
    body {
        margin: 0;
        padding: 0;
        height: 100%;
        overflow-x: hidden;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    /* kill default top/bottom margins that create jumps on mobile */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        margin: 0;
    }

    img {
        display: block;
    }

    /* removes baseline gap under images */

    /* page/container spacing (single source of truth) */
    :root {
        --pad-x: 12px;
        /* horizontal page padding */
        --pad-y: 10px;
        /* vertical page padding */
        --gap: 10px;
        /* space between blocks */
    }

    .screen,
    .page,
    #app {
        padding: var(--pad-y) var(--pad-x);
    }

    /* stop first-child margin collapse (common cause of “mystery” top space) */
    .screen {
        padding-top: calc(var(--pad-y) + 1px);
        overflow: auto;
    }

    .screen> :first-child {
        margin-top: 0 !important;
    }

    /* HEADER / RIBBON */
    .page-header {
        margin: 0;
        padding: 6px var(--pad-x);
    }

    .page-header h1 {
        line-height: 1;
        font-size: clamp(18px, 6vw, 28px);
    }

    .season-pass-ribbon {
        margin: 0 auto;
        transform: scale(.96);
        transform-origin: center;
    }

    /* CARD STACKING / SECTIONS */
    .hero,
    .sp-dual,
    .note-copy,
    .footer {
        margin-top: var(--gap);
    }

    .sp-dual {
        padding: 10px;
        gap: 10px;
    }

    /* tighter columns on mobile */
    .sp-dual .col {
        margin: 0;
    }

    /* remove nested random margins */

    /* BANNERS INSIDE CARDS */
    .banner {
        width: 100%;
        height: auto;
        margin: 0;
    }

    /* no extra space around */

    /* PRICE OVERLAY still centered; not contributing extra vertical space */
    .price-overlay {
        top: 63% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 92%;
    }

    /* CONSISTENT VERTICAL RHYTHM: every sibling gets exactly --gap space */
    .stack>*+* {
        margin-top: var(--gap);
    }

    .sp-dual .sp-row {
        flex-direction: column;
    }
}

/* iOS notch safe area (prevents fake “top gap” when using fixed headers) */
@supports (padding-top: env(safe-area-inset-top)) {
    .page-header.is-fixed {
        padding-top: calc(6px + env(safe-area-inset-top));
    }
}


/* keep NOTE exactly like before; ignore mobile spacing resets */
.legacy-note {
    /* restore margins/padding */
    margin: 16px auto;
    /* or whatever you had earlier */
    padding: 0;
    /* earlier value */
    text-align: center;
    white-space: normal;
    /* allow natural wrapping like before */
    line-height: 1.15;
    /* earlier line-height feel */
}

/* if earlier you used headings/paragraphs inside */
.legacy-note h1,
.legacy-note h2,
.legacy-note p {
    margin: 12px 0;
    /* restore default margins */
}

/* don’t let global mobile overrides touch this block */
@media (max-width: 480px) {
    .legacy-note {
        margin: 16px auto;
        padding: 0;
        letter-spacing: normal;
    }
}

/* keep emoji/icon alignment like before */
.legacy-note img {
    vertical-align: middle;
    /* align with text baseline */
    display: inline;
    /* undo img{display:block} reset */
    margin: 0 6px 0 0;
    /* earlier spacing near text */
}


/* iOS: prevent focus-zoom by keeping 16px+ */
@media (max-width: 480px) {

    input,
    textarea,
    select,
    button {
        font-size: 16px;
    }

    /* min */
    .login-input {
        font-size: 16px;
        line-height: 1.2;
        height: 48px;
    }

    /* your field */
    .login-input::placeholder {
        font-size: 16px;
    }

    /* placeholder too */
}

/* general mobile polish */
.login-input {
    -webkit-text-size-adjust: 100%;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
}

body:not(.login-page) {
    background-attachment: scroll;  /* Good on mobile */
}

@media (min-width: 769px) {
    body:not(.login-page) {
        background-attachment: fixed;  /* OK on desktop */
    }
}