:root {
    --bg-color: #0d0d0d;
    --card-bg: #151515;
    --card-bg-hover: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #909090;
    --accent-gradient: linear-gradient(92deg, #FF0055 0%, #FF264D 25%, #FF8800 100%);
    --accent-gradient-hover: linear-gradient(92deg, #ff1a66 0%, #ff4060 25%, #ffa333 100%);
    --accent-color: #FF264D;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 136, 0, 0.3);
    --glass-bg: rgba(20, 20, 20, 0.95);
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

main,
section {
    max-width: 100vw;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
}

header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
}

.header-content,
.header-actions {
    display: flex;
    align-items: center;
}

.header-content {
    justify-content: space-between;
}

.container.header-content {
    width: min(1200px, calc(100% - 40px));
}

.logo img {
    display: block;
    height: 25px;
}

.header-actions {
    gap: 14px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover {
    color: #fff;
}

.my-purchases-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(#111, #111) padding-box, linear-gradient(to right, #FF3D67, #FF8A00) border-box;
    border: 1.5px solid transparent;
}

.mobile-header-cta {
    display: none;
}

.hero {
    position: relative;
    min-height: min(860px, 100svh);
    padding: 128px 0 56px;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 70px 0 0;
    background:
        linear-gradient(180deg, rgba(13, 13, 13, 0.18) 0%, #0d0d0d 98%),
        linear-gradient(90deg, rgba(13, 13, 13, 0.90) 0%, rgba(13, 13, 13, 0.66) 42%, rgba(13, 13, 13, 0.22) 100%),
        url("https://www.rockstargames.com/VI/_next/static/media/Vice_City_01.135x56yoeu.6t.jpg?akim=1&imdensity=1&imwidth=1920") center 54% / cover no-repeat;
    opacity: 0.92;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    bottom: 0;
    background:
        linear-gradient(180deg, #0d0d0d 0, rgba(13, 13, 13, 0.72) 72px, rgba(13, 13, 13, 0) 210px),
        linear-gradient(180deg, rgba(13, 13, 13, 0) 78%, #0d0d0d 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
    gap: 34px;
    align-items: end;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-bottom: 18px;
    padding: 9px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-soft);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
}

.eyebrow.is-open {
    color: #07140a;
    background: linear-gradient(92deg, #c6ff4d 0%, #3dff7a 100%);
    border-color: rgba(198, 255, 77, 0.5);
    box-shadow: 0 0 28px rgba(91, 255, 122, 0.38);
    text-transform: uppercase;
}

h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy {
    max-width: 650px;
    margin: 0 0 28px;
    color: #d4d4d4;
    font-size: clamp(16px, 1.6vw, 20px);
    overflow-wrap: anywhere;
}

.hero-actions,
.proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-primary,
.btn-secondary,
.order-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 0 24px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.btn-primary,
.order-button {
    background: var(--accent-gradient);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-soft);
}

.btn-primary:hover,
.btn-secondary:hover,
.order-button:not(:disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.hero-panel {
    padding: 22px;
    border-radius: 20px;
    background: rgba(17, 17, 17, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.44);
}

.hero-cover-panel {
    position: relative;
    width: min(100%, 410px);
    justify-self: end;
    align-self: center;
    padding: 10px;
    overflow: visible;
    background:
        linear-gradient(#101010, #101010) padding-box,
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 138, 0, 0.18), rgba(255, 61, 103, 0.16)) border-box;
    border: 1px solid transparent;
    box-shadow:
        0 34px 96px rgba(0, 0, 0, 0.66),
        0 14px 42px rgba(0, 0, 0, 0.34),
        0 10px 34px rgba(255, 138, 0, 0.06);
    transform: rotate(1.25deg);
}

.hero-cover-panel::before {
    content: "";
    position: absolute;
    inset: 8% -10% -8%;
    z-index: -1;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 61, 103, 0.14), rgba(255, 138, 0, 0.10), rgba(0, 0, 0, 0.28));
    filter: blur(38px);
}

.hero-cover-panel img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.section {
    padding: 56px 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 30px;
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    overflow-wrap: break-word;
}

.section-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.preorder-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
    gap: 22px;
    align-items: stretch;
}

.package,
.order-box,
.info-card,
.faq-item {
    background: #111;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
}

.package {
    padding: 30px;
}

.media-package {
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.package h3,
.order-box h3,
.info-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.package p,
.order-box p,
.info-card p,
.faq-item p {
    color: var(--text-secondary);
}

.order-box {
    padding: 24px;
}

.product-config {
    display: grid;
    gap: 18px;
    margin: 20px 0;
}

.config-label {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.choice-row,
.edition-grid {
    display: grid;
    gap: 10px;
}

.choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edition-grid {
    grid-template-columns: 1fr;
}

.choice-pill,
.edition-card {
    width: 100%;
    min-width: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.choice-pill {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.edition-card {
    display: grid;
    gap: 5px;
    padding: 15px;
    border-radius: 16px;
}

.edition-card strong {
    font-size: 15px;
}

.edition-card span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.choice-pill:hover,
.edition-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.09);
}

.choice-pill.active,
.edition-card.active {
    background: linear-gradient(#171717, #171717) padding-box, var(--accent-gradient) border-box;
    border-color: transparent;
}

.order-included {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.order-included span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    color: #dedede;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.order-included span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent-gradient);
    flex: 0 0 auto;
}

.order-button {
    width: 100%;
    min-height: 68px;
    gap: 5px;
    flex-direction: column;
    font-size: 16px;
}

.order-button:disabled {
    cursor: not-allowed;
    opacity: 1;
    filter: none;
    color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(180deg, #2b2b2b 0%, #1d1d1d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.order-button-title {
    font-size: 17px;
    line-height: 1;
}

.order-button-timer {
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.order-hint {
    display: none;
}

.gallery-shell {
    position: relative;
}

.gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 78%);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    position: relative;
    min-height: clamp(260px, 46vw, 560px);
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
    border: 1px solid var(--border-soft);
    scroll-snap-align: center;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    background: rgba(17, 17, 17, 0.82);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
}

.gallery-shell.is-static .gallery-arrow {
    display: none;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
}

.gallery-shell.is-static .gallery-dots {
    display: none;
}

.gallery-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.gallery-dot.active {
    width: 28px;
    border-radius: 999px;
    background: var(--accent-gradient);
}

.gallery-prev {
    left: -23px;
}

.gallery-next {
    right: -23px;
}

.preorder-gallery {
    height: 100%;
}

.preorder-gallery .gallery-track {
    height: 100%;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
}

.preorder-gallery .gallery-slide {
    min-height: 172px;
    border-radius: 16px;
    scroll-snap-align: none;
}

.preorder-gallery .gallery-slide:first-child {
    grid-column: 1 / -1;
    min-height: 352px;
    border-radius: 20px 20px 14px 14px;
}

.preorder-gallery .gallery-arrow,
.preorder-gallery .gallery-dots {
    display: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-card {
    padding: 24px;
}

.faq-list {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.faq-item {
    padding: 22px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.faq-item p {
    margin: 0;
}

footer {
    border-top: 1px solid #222;
    padding: 36px 0 30px;
    color: #555;
    font-size: 12px;
    background: #0d0d0d;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.footer-articles h3 {
    margin: 0 0 18px;
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.footer-articles ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.footer-articles li {
    margin: 0;
}

.footer-articles a {
    color: #777;
}

.footer-articles a:hover {
    color: #aaa;
}

.footer-articles {
    padding: 0 0 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-articles + .footer-articles {
    padding-top: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 28px;
    padding-top: 22px;
    text-align: center;
}

.footer-links a {
    color: #666;
}

.footer-links a:hover {
    color: #aaa;
}

.footer-copy {
    margin-top: 22px;
    color: #555;
    text-align: center;
    line-height: 1.35;
}

.footer-legal {
    margin-top: 20px;
    max-width: none;
    color: #555;
    text-align: center;
    line-height: 1.35;
}

.support-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    width: 62px;
    height: 62px;
    min-height: 62px;
    padding: 0;
    border-radius: 50%;
}

.support-float img {
    width: 31px;
    height: 31px;
}

@media (min-width: 901px) {
    .gallery-track {
        grid-auto-flow: initial;
        grid-auto-columns: initial;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .gallery-arrow,
    .gallery-dots {
        display: none;
    }
}

@media (max-width: 900px) {
    .header-actions .nav-link {
        display: none;
    }

    .mobile-header-cta {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        padding: 0 16px;
        border-radius: 14px;
        color: #fff;
        background: var(--accent-gradient);
        font-size: 13px;
        font-weight: 800;
    }

    .hero {
        min-height: auto;
        padding-top: 112px;
    }

    .hero-inner,
    .preorder-card,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        align-self: start;
    }

    .hero-cover-panel {
        justify-self: center;
    }

    .gallery-track {
        grid-auto-columns: minmax(0, 86%);
    }

    .preorder-gallery .gallery-track {
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 86%);
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .preorder-gallery .gallery-slide,
    .preorder-gallery .gallery-slide:first-child {
        grid-column: auto;
        min-height: 280px;
        border-radius: 18px;
        scroll-snap-align: center;
    }

    .preorder-gallery .gallery-dots {
        display: flex;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
        padding-right: 0;
        padding-left: 0;
    }

    .container.header-content {
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
    }

    .hero-inner,
    .hero-inner > *,
    .hero-panel,
    .preorder-card,
    .package,
    .order-box,
    .gallery-shell,
    .gallery-track,
    .info-grid,
    .faq-list {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    h1,
    .hero-copy,
    .section-heading,
    .section-heading h2,
    .section-heading p,
    .package p,
    .order-box p,
    .info-card p,
    .faq-item p {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hero-inner,
    .hero-actions,
    .hero-panel,
    .preorder-card,
    .section-heading,
    .package,
    .order-box,
    .gallery-shell,
    .gallery-slide,
    .info-card,
    .faq-item,
    .gallery-track,
    .info-grid,
    .faq-list {
        width: 100%;
        max-width: 100%;
    }

    .section .container > * {
        max-width: 100%;
    }

    h1 {
        font-size: 40px;
        line-height: 1.02;
    }

    .hero-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .my-purchases-btn span {
        display: none;
    }

    .header-actions .my-purchases-btn {
        display: none;
    }

    .header-actions {
        gap: 10px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .hero-actions {
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .support-float.btn-primary {
        display: none;
    }

    .footer-content {
        align-items: stretch;
    }

    .footer-articles {
        padding-bottom: 28px;
    }

    .footer-articles ul {
        gap: 10px 20px;
    }

    .footer-links {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-legal {
        max-width: none;
        text-align: center;
    }

    .footer-copy {
        width: 100%;
        text-align: center;
    }

    .package,
    .order-box,
    .info-card,
    .faq-item {
        border-radius: 16px;
    }

    .section {
        padding: 42px 0;
    }

    .hero .container,
    .hero .hero-inner,
    .hero .hero-inner > *,
    .hero .hero-actions,
    .hero .hero-panel {
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .hero .container {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
        margin-right: 0;
        margin-left: 0;
    }

    .hero .hero-inner {
        display: block;
        width: calc(100% - 32px);
        max-width: 390px;
        margin-right: auto;
        margin-left: auto;
    }

    .hero h1,
    .hero .hero-copy {
        width: auto;
        max-width: 100%;
    }

    .hero .hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .hero .btn-primary,
    .hero .btn-secondary {
        width: 100%;
    }

    .hero .hero-panel {
        margin-top: 34px;
        width: min(100%, 330px);
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    .hero .hero-cover-panel {
        transform: none;
        padding: 8px;
    }

    .section .container {
        width: calc(100% - 32px);
        max-width: 390px;
        padding-right: 0;
        padding-left: 0;
        margin-right: auto;
        margin-left: auto;
    }

    .section-heading,
    .section-heading h2,
    .section-heading p,
    .preorder-card,
    .package,
    .order-box,
    .gallery-shell,
    .gallery-track,
    .gallery-slide,
    .info-grid,
    .info-card {
        width: auto;
        max-width: 100%;
        min-width: 0;
    }

    .preorder-card,
    .info-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .choice-row {
        grid-template-columns: 1fr;
    }

    .gallery-track {
        grid-auto-columns: 100%;
    }

    .gallery-slide,
    .preorder-gallery .gallery-slide,
    .preorder-gallery .gallery-slide:first-child {
        min-height: 235px;
    }

    .gallery-arrow {
        display: none;
    }

}
