/* ============================================================
   International homepage stylesheet  (site/css/en.css)
   Used only by /en/index.html
   ============================================================ */

:root {
    --navy: #070f27;
    --navy-2: #0d1a3d;
    --gold: #ffd257;
    --blue: #2f86ff;
    --blue-deep: #1050d0;
    --text: #eaf1ff;
    --muted: #9fb0d0;
    --light: #f3f7ff;
    --header-h: 84px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

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

ul {
    list-style: none;
}

h1,
h2,
h3 {
    line-height: 1.15;
    text-wrap: balance;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--gold);
    color: #101f3d;
    font-weight: 800;
    border-radius: 0 0 10px 10px;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 0;
}

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

/* ---------------- header ---------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 40px);
    padding: 0 clamp(16px, 4vw, 48px);
    background: rgba(3, 8, 20, .42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .3s ease, box-shadow .3s ease;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #1296ff, var(--gold), #71ffeb, var(--gold), #1296ff);
    opacity: .85;
}

.site-header.is-solid {
    background: rgba(4, 9, 22, .94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.brand img {
    height: 44px;
    width: 44px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}

.brand-name {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #cfdcf7;
    white-space: nowrap;
}

.brand-name b {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .1em;
    color: var(--gold);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 38px);
    margin: 0 auto;
}

.main-nav a {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    opacity: .92;
    padding: 8px 2px;
    position: relative;
    white-space: nowrap;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.main-nav a:hover {
    color: var(--gold);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #5cb0ff 0%, #1465d8 100%);
    box-shadow: 0 6px 16px rgba(20, 101, 216, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
    transition: transform .18s ease, filter .18s ease;
}

.header-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 4px;
    background: rgba(255, 255, 255, .06);
    flex: none;
}

.lang-switch a,
.lang-switch span {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}

.lang-switch span {
    background: var(--gold);
    color: #12203f;
}

.lang-switch a {
    color: #dbe6ff;
    opacity: .85;
    transition: opacity .2s ease;
}

.lang-switch a:hover {
    opacity: 1;
}

/* ---------------- hero ---------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--header-h) + clamp(12px, 4vh, 44px)) 24px clamp(18px, 3.6vh, 38px);
    background: var(--navy);
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-inner {
    position: relative;
    width: min(880px, 100%);
    margin-top: auto;
    margin-bottom: auto;
    padding: 0 6px;
    text-align: center;
}

/* nudge the copy into the calm part of the artwork on tall screens */
@media (min-height: 760px) {
    .hero-inner {
        transform: translateY(-11vh);
    }
}

/* soft local spotlight so the copy stays readable on the bright artwork */
.hero-inner::before {
    content: "";
    position: absolute;
    inset: -20% -18%;
    z-index: -1;
    background: radial-gradient(ellipse at center,
            rgba(4, 10, 26, .92) 0%,
            rgba(4, 10, 26, .82) 34%,
            rgba(4, 10, 26, .58) 54%,
            rgba(4, 10, 26, .24) 68%,
            rgba(4, 10, 26, 0) 80%);
    pointer-events: none;
}

.eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--gold);
    border: 1px solid rgba(255, 210, 87, .5);
    border-radius: 999px;
    padding: 6px 16px;
    background: rgba(5, 12, 30, .55);
    margin-bottom: clamp(12px, 2vh, 20px);
}

.hero h1 {
    font-size: clamp(36px, 7vw, 88px);
    font-weight: 900;
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 8, 24, .8), 0 2px 0 rgba(0, 0, 0, .3);
}

.hero h1 span {
    color: var(--gold);
}

.hero .lead {
    margin: clamp(12px, 2vh, 20px) auto 0;
    max-width: 660px;
    font-size: clamp(15px, 1.5vw, 19px);
    color: #f0f5ff;
    text-shadow: 0 2px 14px rgba(0, 6, 20, .9), 0 0 30px rgba(0, 6, 20, .7);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: clamp(16px, 2.6vh, 26px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #e3ecff;
    text-shadow: 0 1px 10px rgba(0, 4, 16, .95);
}

.hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-chips li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

/* gold download panel, same artwork as the CN homepage */
.download-card {
    position: relative;
    width: min(900px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3vw, 34px);
    padding: clamp(16px, 2.4vw, 26px) clamp(52px, 7.5vw, 96px);
    background: url("../img/pomy/opt/bg-download.webp") center center / 100% 100% no-repeat;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .45));
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: clamp(190px, 24vw, 300px);
    height: clamp(50px, 5.2vw, 68px);
    padding: 0 clamp(22px, 3vw, 40px);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: clamp(15px, 1.5vw, 20px);
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, #5cb0ff 0%, #1465d8 100%);
    box-shadow: 0 8px 20px rgba(16, 80, 208, .5), inset 0 2px 0 rgba(255, 255, 255, .55);
    transition: transform .18s ease, filter .18s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.icon-dl {
    width: 22px;
    height: 22px;
    flex: none;
}

.gift-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: clamp(98px, 9.5vw, 124px);
    aspect-ratio: 213 / 179;
    padding: 8px;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(180deg, #4ea3ff 0%, #1b5fe0 100%);
    box-shadow: 0 8px 18px rgba(0, 20, 60, .4), inset 0 2px 0 rgba(255, 255, 255, .45);
    transition: transform .18s ease;
}

.gift-card:hover {
    transform: translateY(-2px) scale(1.02);
}

.gift-icon svg {
    width: clamp(30px, 3vw, 40px);
    height: auto;
}

.gift-label {
    font-size: clamp(9px, .85vw, 11px);
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.15;
    text-transform: uppercase;
    text-align: left;
}

/* ---------------- section basics ---------------- */
.section {
    padding: clamp(56px, 7vw, 100px) 0;
}

.section-light {
    background: var(--light);
    color: #14224a;
}

.section-dark {
    background:
        radial-gradient(900px 420px at 15% 0%, rgba(47, 134, 255, .22), transparent 70%),
        radial-gradient(760px 400px at 88% 100%, rgba(255, 210, 87, .1), transparent 70%),
        var(--navy-2);
    color: var(--text);
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(26px, 3.6vw, 44px);
}

.kicker {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.section-dark .kicker {
    color: var(--gold);
}

.section h2 {
    font-size: clamp(25px, 3.1vw, 40px);
    font-weight: 900;
    letter-spacing: -.01em;
}

.section-head p:last-child {
    margin-top: 12px;
    font-size: 15px;
    color: #5b6b8f;
}

.section-dark .section-head p:last-child {
    color: var(--muted);
}

/* ---------------- carousel ---------------- */
.carousel {
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .4);
    background: #08122b;
}

.carousel-track {
    display: flex;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
}

.carousel-slide picture,
.carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 2688 / 1242;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(20px, 3.2vw, 38px);
    background: linear-gradient(180deg, rgba(3, 8, 20, 0) 0%, rgba(3, 8, 20, .58) 42%, rgba(3, 8, 20, .92) 100%);
    color: #fff;
    pointer-events: none;
}

.slide-caption h3 {
    font-size: clamp(17px, 2.2vw, 27px);
    font-weight: 900;
    letter-spacing: .01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

.slide-caption p {
    margin-top: 4px;
    max-width: 620px;
    font-size: clamp(12.5px, 1.2vw, 14.5px);
    color: #dfe9ff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(5, 12, 30, .62);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.carousel-arrow.is-prev {
    left: clamp(8px, 1.6vw, 18px);
}

.carousel-arrow.is-next {
    right: clamp(8px, 1.6vw, 18px);
}

.carousel-arrow svg {
    width: 22px;
    height: 22px;
}

.carousel-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #10203f;
    transform: translateY(-50%) scale(1.05);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.carousel-dot.is-active {
    width: 28px;
    background: var(--gold);
}

/* ---------------- news ---------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.news-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #dfe8f8;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 6px 20px rgba(20, 45, 100, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: #b8d3fb;
    box-shadow: 0 14px 32px rgba(20, 45, 100, .13);
}

.news-tag {
    flex: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f4fc4;
    background: #e6f0ff;
    border-radius: 6px;
    padding: 4px 9px;
    margin-top: 2px;
}

.news-tag.is-announcement {
    color: #8a5b00;
    background: #fff1d6;
}

.news-body {
    min-width: 0;
}

.news-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    color: #14224a;
}

.news-excerpt {
    margin-top: 6px;
    font-size: 13.5px;
    color: #5b6b8f;
}

.news-date {
    margin-top: 8px;
    font-size: 12.5px;
    color: #7a8aab;
}

.news-more {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #5b6b8f;
}

.news-more a {
    color: #0f4fc4;
    font-weight: 700;
    border-bottom: 1px solid rgba(15, 79, 196, .35);
}

.news-more a:hover {
    border-bottom-color: #0f4fc4;
}

/* ---------------- starters ---------------- */
.starter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.starter-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 26px 26px 24px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.starter-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 210, 87, .5);
    background: rgba(255, 255, 255, .08);
}

.starter-art {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: radial-gradient(circle at 50% 55%, rgba(105, 180, 255, .35), rgba(105, 180, 255, 0) 62%);
    border-radius: 14px;
}

.starter-art img {
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .4));
}

.starter-no {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--gold);
}

.starter-card h3 {
    font-size: 22px;
    font-weight: 900;
    margin-top: 2px;
}

.starter-types {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.starter-types span {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 11px;
    color: #fff;
}

.type-grass {
    background: #3fae5a;
}

.type-poison {
    background: #9b57c9;
}

.type-fire {
    background: #e8623a;
}

.type-water {
    background: #2f86ff;
}

.starter-meta {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: .03em;
}

.starter-desc {
    margin-top: 10px;
    font-size: 14px;
    color: #d6e2fa;
}

/* ---------------- features ---------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    display: flex;
    gap: 18px;
    background: #fff;
    border: 1px solid #dfe8f8;
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: 0 6px 20px rgba(20, 45, 100, .06);
}

.feature-num {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .04em;
    color: #0f4fc4;
    background: linear-gradient(180deg, #eaf2ff, #d5e6ff);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #14224a;
}

.feature-card p {
    margin-top: 6px;
    font-size: 14px;
    color: #5b6b8f;
}

/* ---------------- faq ---------------- */
.faq-list {
    display: grid;
    gap: 10px;
    max-width: 920px;
}

.faq-item {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 0 22px;
    transition: background .2s ease, border-color .2s ease;
}

.faq-item[open] {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 210, 87, .4);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
    font-size: clamp(15px, 1.5vw, 17px);
    font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: none;
    font-size: 22px;
    line-height: 1;
    color: var(--gold);
    transition: transform .2s ease;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    padding: 0 0 20px;
    max-width: 72ch;
    font-size: 14.5px;
    color: var(--muted);
}

/* ---------------- about ---------------- */
.about-copy {
    max-width: 820px;
    display: grid;
    gap: 16px;
    font-size: clamp(15px, 1.35vw, 16.5px);
    color: #3d4f78;
}

/* ---------------- CTA ---------------- */
.cta {
    padding: clamp(56px, 7vw, 92px) 0;
    text-align: center;
    background:
        radial-gradient(800px 300px at 50% 0%, rgba(120, 190, 255, .35), transparent 70%),
        linear-gradient(135deg, #0d3ea8 0%, #1465d8 55%, #2f86ff 100%);
    color: #fff;
}

.cta h2 {
    font-size: clamp(25px, 3.3vw, 40px);
    font-weight: 900;
}

.cta p {
    max-width: 620px;
    margin: 14px auto 0;
    color: #dbe9ff;
    font-size: 15.5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: inherit;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 15px;
    border: 0;
    border-radius: 999px;
    padding: 17px 46px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #5cb0ff 0%, #1465d8 100%);
    box-shadow: 0 10px 26px rgba(20, 101, 216, .48), inset 0 2px 0 rgba(255, 255, 255, .5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn-ghost {
    color: #fff;
    background: rgba(9, 18, 44, .55);
    border: 1px solid rgba(255, 210, 87, .7);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 210, 87, .16);
}

.cta .btn {
    margin-top: 28px;
    background: #fff;
    color: #0f4fc4;
    box-shadow: 0 12px 28px rgba(2, 20, 60, .32);
}

.cta .btn:hover {
    transform: translateY(-2px);
    filter: none;
}

.cta small {
    display: block;
    margin-top: 14px;
    font-size: 12.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #bcd4ff;
}

/* ---------------- footer ---------------- */
.site-footer {
    background: #060d22;
    padding: 46px 0 40px;
    color: var(--muted);
    font-size: 13px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-top img {
    height: 40px;
    width: 40px;
}

.footer-links {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-links a,
.footer-links button {
    font: inherit;
    color: #dbe6ff;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    opacity: .9;
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
}

.footer-bottom p:last-child {
    max-width: 640px;
    color: #71809f;
    font-size: 12px;
}

/* ---------------- download modal ---------------- */
.dl-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 9, 24, .78);
    backdrop-filter: blur(6px);
}

.dl-modal[hidden] {
    display: none;
}

.dl-modal-card {
    width: min(440px, 100%);
    background: linear-gradient(180deg, #12224a 0%, #0b1734 100%);
    border: 1px solid rgba(255, 210, 87, .35);
    border-radius: 22px;
    padding: 30px 28px 22px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.dl-modal-card h2 {
    font-size: 22px;
    font-weight: 900;
}

.dl-modal-card p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

.dl-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.dl-modal-actions .btn {
    flex: 1;
    padding: 14px 18px;
    font-size: 14px;
}

.dl-modal-close {
    margin-top: 16px;
    background: none;
    border: 0;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

/* ---------------- toast ---------------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translate(-50%, 20px);
    z-index: 90;
    max-width: calc(100vw - 32px);
    background: rgba(8, 16, 38, .94);
    border: 1px solid rgba(255, 210, 87, .5);
    color: #fff;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------------- language dropdown ---------------- */
.lang-menu {
    position: relative;
    flex: none;
}

.lang-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.lang-menu > summary::-webkit-details-marker {
    display: none;
}

.lang-menu > summary svg {
    width: 10px;
    height: 8px;
    opacity: .8;
}

.lang-menu[open] > summary {
    background: var(--gold);
    border-color: var(--gold);
    color: #10203f;
}

.lang-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 172px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: #0b1734;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    z-index: 90;
}

.lang-menu-list a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #dfe8ff;
}

.lang-menu-list a:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--gold);
}

.lang-menu-list a[aria-current="page"] {
    color: var(--gold);
    font-weight: 800;
}

.news-note {
    margin-top: 16px;
    font-size: 13px;
    color: #5b6b8f;
}

/* ---------------- language dropdown end ---------------- */

/* ---------------- mobile menu ---------------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 8px 7px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    cursor: pointer;
    flex: none;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    padding: 0 22px 30px;
    color: #fff;
    background:
        radial-gradient(600px 320px at 80% 0%, rgba(47, 134, 255, .28), transparent 70%),
        radial-gradient(500px 300px at 10% 100%, rgba(255, 210, 87, .16), transparent 70%),
        #060e22;
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu-head {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 18px;
    height: 18px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, .22);
}

.mobile-menu-nav a {
    padding: 16px 4px;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .03em;
    border-bottom: 1px dashed rgba(255, 255, 255, .22);
}

.mobile-menu-nav a:active {
    color: var(--gold);
}

.mobile-menu-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #5cb0ff 0%, #1465d8 100%);
    box-shadow: 0 12px 26px rgba(20, 101, 216, .45), inset 0 2px 0 rgba(255, 255, 255, .45);
}

.mobile-menu-lang {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: #9fb0d0;
}

.mobile-menu-lang span {
    color: #fff;
    font-weight: 700;
}

body.is-menu-open {
    overflow: hidden;
}

/* ---------------- responsive ---------------- */
@media (min-width: 761px) and (max-width: 1100px) {

    /* narrow desktop / tablet landscape: keep the gold card proportional */
    .download-card {
        width: min(680px, 100%);
        gap: 18px;
        padding: 18px 58px;
    }

    .btn-download {
        min-width: 190px;
        height: 54px;
        font-size: 16px;
        padding: 0 22px;
    }

    .gift-card {
        width: 92px;
    }

    .hero .lead {
        max-width: 560px;
    }
}

@media (min-width: 761px) and (max-width: 1080px) {
    .header-cta {
        display: none;
    }
}

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

    .main-nav a {
        font-size: 13px;
        letter-spacing: .08em;
    }

    .news-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .starter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .starter-card {
        padding: 20px 18px;
    }

    .starter-art {
        height: 150px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-h: 64px;
    }

    .site-header {
        gap: 10px;
        padding: 0 14px;
    }

    .brand img {
        height: 44px;
        width: 44px;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
        gap: 8px;
    }

    .header-cta {
        height: 34px;
        padding: 0 14px;
        font-size: 11.5px;
        letter-spacing: .06em;
    }

    .menu-toggle {
        display: flex;
    }

    .lang-switch {
        padding: 3px;
    }

    .lang-switch a,
    .lang-switch span {
        font-size: 11.5px;
        padding: 3px 8px;
    }

    /* ---- phone hero: portrait key art, copy on top, CTA at the bottom ---- */
    .hero {
        display: block;
        min-height: 100svh;
        padding: 0;
        overflow: hidden;
    }

    .hero-bg img {
        object-position: 50% 28%;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 58%;
        z-index: 0;
        pointer-events: none;
        background: linear-gradient(180deg,
                rgba(3, 9, 24, .94) 0%,
                rgba(3, 9, 24, .82) 34%,
                rgba(3, 9, 24, .46) 70%,
                rgba(3, 9, 24, 0) 100%);
    }

    .hero::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 36%;
        z-index: 0;
        pointer-events: none;
        background: linear-gradient(0deg,
                rgba(3, 9, 24, .92) 0%,
                rgba(3, 9, 24, .55) 46%,
                rgba(3, 9, 24, 0) 100%);
    }

    .hero-inner {
        position: relative;
        z-index: 1;
        width: auto;
        margin: 0;
        padding: calc(var(--header-h) + 24px) 22px 0;
        transform: none;
        text-align: center;
    }

    .hero-inner::before {
        display: none;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: .2em;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .hero h1 {
        font-size: clamp(34px, 10.5vw, 46px);
    }

    .hero .lead {
        max-width: 330px;
        margin-top: 12px;
        font-size: 14.5px;
        line-height: 1.55;
    }

    .hero-chips {
        display: none;
    }

    .download-card {
        position: absolute;
        left: 50%;
        bottom: max(30px, 7vh);
        transform: translateX(-50%);
        z-index: 1;
        width: min(300px, 64%);
        padding: 0;
        gap: 0;
        background: none;
        filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .5));
    }

    .btn-download {
        width: 100%;
        min-width: 0;
        height: 54px;
        font-size: 16px;
        padding: 0 18px;
    }

    .gift-card {
        display: none;
    }

    .carousel-arrow {
        width: 42px;
        height: 42px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    /* a 2.16:1 frame is short on phones, so the caption moves below the image */
    .slide-caption {
        position: static;
        padding: 12px 16px 14px;
        background: #08122b;
    }

    .slide-caption h3 {
        font-size: 15.5px;
    }

    .slide-caption p {
        margin-top: 2px;
        font-size: 12.5px;
    }

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

    .section {
        padding: 52px 0;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .section h2 {
        font-size: 26px;
    }

    .news-grid {
        gap: 12px;
    }

    .feature-grid {
        gap: 14px;
    }

    .starter-art {
        height: 200px;
    }

    .news-card {
        padding: 18px;
        gap: 12px;
    }

    .feature-card {
        padding: 22px 20px;
    }

    .footer-links {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .brand-name {
        display: none;
    }
}

@media (max-width: 420px) {
    .btn {
        width: 100%;
        padding: 15px 24px;
    }

    .dl-modal-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
