/* Bungee by David Jonathan Ross, distributed under the SIL Open Font License. */
@font-face {
    font-family: "Bungee";
    src: url("../fonts/bungee/bungee-regular.9b4961603832.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

html { color-scheme: light dark; scroll-behavior: smooth; scroll-padding-top: 24px; }
body.gta-pc-page {
    --gta-pink: #ad396d;
    --gta-pink-border: #cf75a54d;
    --gta-glow: #ef9dc650;
    padding-bottom: 0;
    line-height: 1.6;
}
.gta-pc-page a { text-underline-offset: 4px; }
.gta-pc-page a:hover { color: var(--game-widgets-light); }
.gta-pc-page a:focus-visible, .gta-pc-page summary:focus-visible { outline: 3px solid var(--game-widgets-light); outline-offset: 5px; }
.page-shell { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 32px; }
.preview-notice { padding-block: 16px; font-size: .8rem; color: var(--gta-pink); }
.preview-notice a { display: inline-block; margin-left: 8px; }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--separator); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: .8rem; color: var(--secondaryLabel); }
.site-header nav a { color: inherit; text-decoration: none; }
.release-hero { position: relative; isolation: isolate; overflow: clip; }
.release-hero::before {
    content: "";
    position: absolute;
    inset: -10% -10% -20% 20%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 75% 32%, var(--gta-glow), transparent 65%);
    filter: blur(40px);
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-areas: "title artwork" "status artwork";
    align-items: start;
    gap: 24px 44px;
    padding-block: 48px;
}
.hero-title { grid-area: title; min-width: 0; }
.hero-copy { grid-area: status; min-width: 0; }
.hero-artwork { grid-area: artwork; align-self: center; margin: 0; }
.hero-artwork img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--gta-pink-border); border-radius: 20px; box-shadow: 0 16px 48px #bd618f24; }
.eyebrow { color: var(--gta-pink); font-size: .85rem; margin-bottom: 8px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.18; letter-spacing: -.04em; }
.release-status { padding: 26px 28px; border: 1px solid var(--gta-pink-border); border-radius: 16px; background: var(--systemBackground); }
.status-label { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: var(--secondaryLabel); margin-bottom: 8px; }
.status-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--gta-pink); }
.release-status h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 12px; }
.status-detail { color: var(--secondaryLabel); font-size: .95rem; }
.release-date { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--separator); color: var(--secondaryLabel); font-size: .85rem; }
.release-date strong { color: var(--gta-pink); }
.source-note { margin-top: 18px; color: var(--secondaryLabel); font-size: .75rem; line-height: 1.6; }
.source-note a { color: var(--label); }
.countdown-wrap { padding-bottom: 40px; }
.countdown-wrap[hidden] { display: none; }
.release-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border: 1px solid #f5a6d75c;
    border-radius: 16px;
    background: radial-gradient(ellipse at 70% 0%, #e783bd35, transparent 70%), linear-gradient(110deg, #30213e, #58304c);
    box-shadow: 0 8px 28px #ad396d18;
    color: #fff;
}
.countdown-value {
    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(2rem, 7.2vw, 4.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.04em;
    text-align: center;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px #ffd6ed;
}
@media (forced-colors: active) {
    .countdown-value { color: CanvasText; -webkit-text-stroke: 0; }
}

.app-section { background: var(--secondarySystemBackground); border-block: 1px solid var(--separator); }
.app-section-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 72px; padding-block: 48px; }
.app-copy { max-width: 500px; }
.app-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 600; font-size: .9rem; }
.app-identity img { border-radius: 11px; }
.app-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.1rem); line-height: 1.2; letter-spacing: -.03em; margin-bottom: 20px; }
.app-copy > p { color: var(--secondaryLabel); margin-bottom: 24px; }
.widget-steps { padding-left: 24px; margin-bottom: 28px; font-size: .9rem; }
.widget-steps li + li { margin-top: 8px; }
.app-store-link { display: block; width: fit-content; }
.app-store-link img { display: block; width: 160px; height: auto; }
.app-learn-more { display: inline-block; font-size: .8rem; margin-top: 14px; color: var(--gta-pink); }
.widget-stage { display: flex; flex-direction: column; align-items: center; margin: 0; min-width: 0; }
.phone-frame { width: min(270px, 100%); padding: 7px; border: 1px solid #ffffff25; border-radius: 40px; background: #171719; box-shadow: 0 16px 40px #0003; }
.phone-screen { position: relative; aspect-ratio: 1170 / 2532; border-radius: 32px; overflow: hidden; background: #32245a; }
.home-screen-background { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Match the GTA VI widget bounds in the 1170 × 2532 Home Screen screenshot. */
.phone-widget { position: absolute; left: 6.15%; top: 7.94%; width: 87.7%; height: 42.38%; }
.phone-widget[hidden] { display: none; }
.widget { display: flex; flex-direction: column; align-items: center; gap: 3%; padding: 6%; width: 100%; height: 100%; overflow: hidden; border-radius: 21px; background: #352a3d; container-type: inline-size; }
.widget-artwork { display: block; flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.widget-content { flex-shrink: 0; width: 100%; display: flex; justify-content: center; align-items: center; }
.widget-status { max-width: 100%; font-family: "Bungee", Impact, "Arial Black", sans-serif; font-size: 25px; font-size: 10.5cqw; font-weight: 400; line-height: 1.05; letter-spacing: -.06em; white-space: nowrap; text-align: center; margin: 0; color: white; -webkit-text-stroke: 4px #090509; paint-order: stroke fill; text-shadow: 0 2px 1px #090509; }
.widget-stage figcaption { max-width: 290px; text-align: center; margin-top: 20px; color: var(--secondaryLabel); font-size: .75rem; }

.news-section { padding-block: 48px 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 26px; }
.section-heading h2, .faq-section > h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.section-note { font-size: .75rem; color: var(--secondaryLabel); }
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.news-item { min-width: 0; }
.news-card { display: block; height: 100%; overflow: hidden; border: 1px solid var(--separator); border-radius: 24px; background: var(--systemBackground); color: var(--label); text-decoration: none; }
.gta-pc-page .news-card:hover { border-color: var(--gta-pink-border); color: var(--label); text-decoration: none; box-shadow: 0 4px 16px #0000000c; }
.news-image { aspect-ratio: 2 / 1; background: var(--tertiarySystemFill); overflow: hidden; }
.news-preview { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 12px; }
.news-meta { display: flex; align-items: center; gap: 6px; color: var(--secondaryLabel); font-size: .75rem; line-height: 1.4; }
.news-meta > * { margin-block: 0; align-self: center; }
.news-meta > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-meta time, .news-meta > span[aria-hidden] { flex-shrink: 0; white-space: nowrap; }
.news-favicon { display: block; width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; margin-right: 2px; border-radius: 3px; }
.news-card [hidden] { display: none; }
.news-item h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; height: 3lh; font-size: .85rem; font-weight: 500; line-height: 1.3; letter-spacing: normal; margin-top: 8px; overflow-wrap: anywhere; }
.news-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; }
.news-view-more { padding: 10px 24px; border-radius: 12px; border: 1px solid var(--separator); background: var(--systemBackground); font-size: .9rem; font-weight: 600; text-decoration: none; }
.gta-pc-page .news-view-more:hover { border-color: var(--gta-pink); color: var(--gta-pink); text-decoration: none; }
.news-view-more[aria-disabled="true"] { opacity: .6; cursor: wait; }
.news-previous { font-size: .85rem; }
.news-load-status { color: var(--secondaryLabel); font-size: .8rem; margin-top: 12px; text-align: center; }
.news-load-status:empty { display: none; }
.news-empty { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--separator); }
.news-empty h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.news-empty p { max-width: 650px; color: var(--secondaryLabel); margin-bottom: 14px; }
.news-empty a { font-size: .85rem; }
.videos-section {
    margin-block: 24px 8px;
    padding-block: 40px;
    background: radial-gradient(ellipse at 70% 30%, var(--gta-glow), transparent 75%);
    border-block: 1px solid var(--gta-pink-border);
}
.video-controls { display: flex; gap: 8px; }
.video-controls[hidden], .video-preview[hidden] { display: none; }
.video-controls button { border: 1px solid var(--separator); border-radius: 10px; padding: 8px 12px; background: var(--systemBackground); color: var(--label); font: inherit; font-size: .8rem; }
.video-controls button:hover:not(:disabled) { border-color: var(--gta-pink); color: var(--gta-pink); }
.video-controls button:disabled { opacity: .4; cursor: default; }
.video-controls button:focus-visible, .video-carousel:focus-visible { outline: 3px solid var(--game-widgets-light); outline-offset: 3px; }
.video-window {
    position: relative;
    isolation: isolate;
    border: 1px solid var(--gta-pink-border);
    border-radius: 24px;
    background: #39203105;
    box-shadow: inset 0 3px 9px #39203118, inset 0 -1px 0 #ffffff80, 0 1px 0 #ffffff90;
}
.video-window::before, .video-window::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 28px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.video-window::before { left: 0; background: linear-gradient(to right, #39203130, transparent); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.video-window::after { right: 0; background: linear-gradient(to left, #39203130, transparent); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.video-window.has-previous::before, .video-window.has-next::after { opacity: 1; }
.video-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; list-style: none; margin: 0; padding: 22px 20px; overflow-x: auto; border-radius: inherit; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; overscroll-behavior-x: contain; }
.video-card { min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--separator); border-radius: 20px; background: var(--systemBackground); box-shadow: 0 3px 5px #39203112, 0 9px 16px -6px #39203130; }
.video-media { position: relative; aspect-ratio: 16 / 9; background: #111; }
.video-preview { display: block; position: absolute; inset: 0; color: white; }
.video-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play { display: grid; place-items: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: #111d; color: white; }
.video-play svg { display: block; width: 22px; height: auto; fill: currentColor; padding-left: 2px; }
.video-duration { position: absolute; right: 8px; bottom: 8px; padding: 1px 5px; border-radius: 4px; background: #111d; color: white; font-size: .7rem; }
.video-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; }
.video-player.is-loaded { opacity: 1; }
.video-card-body { padding: 14px 16px 16px; }
.video-card time { color: var(--secondaryLabel); font-size: .75rem; }
.video-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 2lh; font-size: .95rem; font-weight: 600; line-height: 1.4; letter-spacing: normal; margin-top: 8px; }
.faq-section { max-width: 850px; padding-block: 32px; }
.faq-section > h2 { margin-bottom: 24px; }
.faq-section details { border-top: 1px solid var(--separator); padding-block: 18px; }
.faq-section summary { font-weight: 600; font-size: .95rem; cursor: pointer; }
.faq-section details p { margin-top: 12px; color: var(--secondaryLabel); font-size: .9rem; }
.game-link { font-size: .85rem; color: var(--secondaryLabel); margin-bottom: 40px; }
.gta-pc-page footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding-block: 26px 32px; border-top: 1px solid var(--separator); }
.footer-brand { font-weight: 800; text-decoration: none; }
.gta-pc-page footer p { font-size: .7rem; color: var(--secondaryLabel); text-align: right; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 10px 16px; background: var(--systemBackground); color: var(--label); z-index: 3; }
.skip-link:focus { top: 16px; }

@media (max-width: 900px) {
    .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .video-carousel { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
}
@media (max-width: 800px) {
    .page-shell { padding-inline: 24px; }
    .site-header { flex-wrap: wrap; padding-block: 20px; gap: 16px; }
    .site-header nav { gap: 18px; }
    .hero { gap: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .app-section-inner { gap: 36px; }
    .app-copy h2 { font-size: 1.7rem; }
    .section-heading { display: block; }
    .section-note { display: block; margin-top: 8px; }
}
@media (max-width: 600px) {
    .page-shell { padding-inline: 20px; }
    .site-header { min-height: 0; }
    .brand { font-size: 1.2rem; }
    .site-header nav { font-size: .75rem; gap: 16px; }
    .hero { padding-block: 32px; grid-template-columns: minmax(0, 1fr) 110px; grid-template-areas: "title artwork" "status status"; gap: 24px 16px; }
    .hero h1 { font-size: clamp(1.65rem, 7vw, 1.9rem); }
    .hero-artwork img { border-radius: 12px; box-shadow: 0 8px 24px #bd618f24; }
    .release-status { padding: 20px; }
    .release-status h2 { font-size: 1.25rem; }
    .countdown-wrap { padding-bottom: 32px; }
    .release-countdown { padding: 24px 16px; }
    .app-section-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px; }
    .app-copy { max-width: none; }
    .app-copy h2 { font-size: 1.8rem; }
    .phone-frame { width: min(270px, 100%); }
    .news-section { padding-top: 36px; }
    .news-list { grid-template-columns: minmax(0, 1fr); }
    .video-carousel { grid-auto-columns: 85%; gap: 16px; }
    .video-controls { margin-top: 12px; }
    .gta-pc-page footer { flex-direction: column; gap: 12px; }
    .gta-pc-page footer p { text-align: left; }
}
@media (prefers-color-scheme: dark) {
    body.gta-pc-page { --gta-pink: #f5a6d7; --gta-pink-border: #f5a6d740; --gta-glow: #d26caa35; }
    .news-card { background: linear-gradient(135deg, #252529, #29262a); border-color: #ffffff20; }
    .video-card { background: linear-gradient(135deg, #252529, #29262a); border-color: #ffffff20; }
    .video-window { box-shadow: inset 0 4px 12px #0006, inset 0 -1px 0 #ffffff0d, 0 1px 0 #ffffff0d; }
    .video-window::before { background: linear-gradient(to right, #0008, transparent); }
    .video-window::after { background: linear-gradient(to left, #0008, transparent); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
