/* Localized banner copy uses the accepted public palette and existing brand asset. */
.home-content .home-localized-banner{display:flex;align-items:center;justify-content:center;gap:clamp(16px,3vw,40px);padding:clamp(20px,3vw,40px);background:linear-gradient(125deg,#07142e,#102c58);border:1px solid #937646;border-radius:14px;color:#f5f6fa}
.home-content .home-localized-banner .home-localized-banner-brand{width:clamp(140px,24%,280px);height:auto;object-fit:contain}
.home-content .home-localized-banner h2{font-size:clamp(19px,2vw,30px);line-height:1.25;color:#edce82;margin:0 0 8px}
.home-content .home-localized-banner p{font-size:clamp(13px,1.2vw,17px);line-height:1.5;margin:0 0 12px}
.home-content .home-localized-banner a{display:inline-flex;gap:12px;align-items:center;border:1px solid #b3914c;border-radius:8px;padding:10px 16px;color:#f6df9d}
.home-content .home-localized-banner a:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:639px){.home-content .home-localized-banner{flex-direction:column;text-align:center}.home-content .home-localized-banner .home-localized-banner-brand{width:190px}}

/* The Turkish hero artwork embeds Turkish words. Other locales reuse the existing Okey artwork. */
.home-content .hero-media>img[src$="/reference-exact/okey-art.png"]{object-fit:contain;object-position:center}
@media(min-width:1080px){
 .home-content .hero-media>img[src$="/reference-exact/okey-art.png"]{position:absolute;right:2%;top:10%;width:38%;height:80%;max-width:38%;object-fit:contain}
 .homepage .home-content .chip-panel-copy{max-width:58%}
}

/* The site's existing desktop shell starts at 1080 CSS pixels. */
.home-content .feature-window, .home-content .feature-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.homepage .hero-media.home-feature-art {
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent 0, black 16%, black 94%, transparent);
}
.homepage .hero-media.home-feature-art > .feature-photo { position:static; width:100%; height:100%; max-width:none; object-fit:contain; }
.home-content .home-editorial-banner { position:relative; isolation:isolate; background:#06152b; overflow:hidden; }
.home-content .banner-composition {
    height:100%; position:relative; isolation:isolate; display:grid; place-items:center;
    background:radial-gradient(ellipse at 30% 100%,#213453,transparent 64%),linear-gradient(110deg,#191e2f,#08172b 44%,#091a32 70%,#262334);
}
.home-content .banner-crown, .home-content .banner-presenter, .home-content .banner-managed {
    position:absolute; inset-block:0; z-index:-1; pointer-events:none;
}
.home-content .banner-crown { left:0; width:37%; mask-image:linear-gradient(90deg,#000 74%,transparent); }
.home-content .banner-presenter { right:0; width:30%; mask-image:linear-gradient(90deg,transparent,#000 21%,#000 91%,transparent); }
.home-content .banner-managed { inset-inline:0; }
.home-content .banner-managed .feature-photo { max-height:none; object-fit:contain; }
.home-content .banner-message { position:relative; width:49%; padding:9px; text-align:center; color:#fff; }
.home-content .banner-message > span { color:#f7d991; font-size:clamp(9px,.8vw,13px); letter-spacing:.32em; font-weight:700; }
.home-content .banner-message h2 { font-size:clamp(18px,2.2vw,42px); line-height:1.02; text-wrap:balance; margin:4px 0; color:#ffe2a0; font-weight:850; }
.home-content .banner-message p { margin:5px 0; font-size:clamp(12px,.98vw,17px); line-height:1.28; }
.home-content .banner-message a {
    display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px;
    margin-top:6px; padding:6px 22px; background:linear-gradient(#ffe5a4,#dfa444); color:#19120b;
    border-radius:999px; text-decoration:none; font-weight:800;
}
.home-content .banner-message a:focus-visible { outline:3px solid white; outline-offset:3px; }
@media (min-width:1080px) {
    .homepage .home-content { container-type:inline-size; }
    .homepage .home-content .hero, .home-content .home-editorial-banner {
        /* Retain the approved artwork inset independently of the painted rim. */
        box-sizing:border-box; border:0; padding:3px; background:#09162a;
    }
    /* Retain the original border widths for layout and paint only the shared rim. */
    .homepage .home-content :is(.game-grid > .game-card, .home-lower > .bevu-chip-panel, .home-lower > .levels-panel) {
        --feature-frame-inset:-1px;
        border-color:transparent;
        box-shadow:none;
    }
    .homepage .home-content :is(.game-grid > .game-card, .home-lower > .bevu-chip-panel, .home-lower > .levels-panel) {
        position:relative;
        overflow:clip;
        overflow-clip-margin:border-box;
    }
    .homepage .home-content .hero::after, .home-content .home-editorial-banner::after,
    .homepage .home-content :is(.game-grid > .game-card, .home-lower > .bevu-chip-panel, .home-lower > .levels-panel)::after {
        content:""; position:absolute; inset:var(--feature-frame-inset,0); z-index:4; pointer-events:none;
        box-sizing:border-box; padding:var(--feature-frame-width, 1px); border-radius:inherit; background:var(--feature-gold);
        -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
        -webkit-mask-composite:xor;
        mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
        mask-composite:exclude;
    }
    .homepage .home-content .hero { height:clamp(356px,calc(5cqw + 314px),376px); }
    .homepage .home-content .hero > [data-slide] { height:100%; border-radius:19px; overflow:hidden; background:radial-gradient(ellipse at 70% 55%,#173456,#06162d 74%); }
    .homepage .home-content .hero-grid { width:100%; height:100%; padding-block:12px; display:flex; align-items:center; }
    .homepage .home-content .hero-copy { max-width:54%; max-height:100%; overflow-y:auto; overflow-wrap:anywhere; }
    .homepage .home-content .hero-copy > .eyebrow,
    .homepage .home-content .hero-copy > p { left:auto; }
    .homepage .home-content .hero-actions .button {
        width:fit-content; min-width:min(235px,100%); max-width:100%;
        height:auto; white-space:normal; overflow-wrap:anywhere;
    }
    .homepage .home-content .hero-title { font-size:clamp(32px,3.8cqw,60px); }
    .homepage .home-content .hero-title-accent { font-size:.92em; white-space:normal; }
    .homepage .home-content .hero-media.home-feature-art { position:absolute; inset:0 0 0 auto; height:100%; width:49%; }
    .homepage .home-content .slider-controls { display:none; }
    .home-content .home-editorial-banner { height:clamp(190px,calc(2cqw + 175px),200px); }
    .home-content .banner-composition { border-radius:inherit; }
    .home-content .banner-message { max-height:100%; overflow-y:auto; }
}
@media (max-width:1079px) {
    .home-content .home-editorial-banner { min-height:116px; }
    .home-content .banner-message { width:56%; }
    .home-content .banner-message h2 { font-size:clamp(16px,3.5vw,24px); }
    .home-content .banner-message a { min-height:44px; font-size:13px; margin-top:1px; padding:4px 12px; }
    .homepage .home-content .slider-controls { display:grid; grid-template-columns:44px auto 44px; justify-content:center; }
    .homepage .home-content .slider-playback { grid-column:2; grid-row:1; justify-self:center; }
    .homepage .home-content [data-slide-prev] { grid-column:1; grid-row:1; }
    .homepage .home-content [data-slide-next] { grid-column:3; grid-row:1; }
    .homepage .home-content .slider-dots { grid-column:1/-1; grid-row:2; display:flex; justify-content:center; flex-wrap:wrap; }
}
@media (min-width:640px) and (max-width:1079px) {
    .homepage .home-content .slider-controls { display:flex; }
}
@media (max-width:639px) {
    .home-content .banner-message { width:63%; }
    .home-content .banner-message p { font-size:11px; }
}

.home-content .banner-crown, .home-content .banner-presenter { overflow:hidden; }
.home-content .banner-extension { position:absolute; inset:-7%; filter:blur(8px) brightness(.72); }
.home-content .banner-crown > .feature-window, .home-content .banner-presenter > .feature-window {
    position:relative; height:100%; width:auto; max-width:100%; margin-inline:auto;
    mask-image:linear-gradient(90deg,transparent,#000 10%,#000 89%,transparent);
}
@media(min-width:1080px){
    .homepage .home-content .hero-copy { align-self:center; }
    .home-content .banner-message h2 { font-size:clamp(26px,2.8cqw,46px); }
}

@media(min-width:1080px){
    .homepage [data-home-slide="welcome"] .home-feature-art > .feature-window {
        width:auto; height:100%; max-width:100%; margin-left:auto;
        mask-image:linear-gradient(90deg,transparent,#000 16%);
    }
}


/* The Turkish master contains its own lettering; custom editions keep the HTML layout. */
.home-content .banner-original { display:none; }
@media (min-width:1080px) {
    .home-content .banner-original + .banner-composition { display:none; }
    .home-content .banner-original {
        display:flex; align-items:center; justify-content:center; height:100%;
        overflow:hidden; border-radius:inherit; background:#091321; container-type:size;
    }
    .home-content .banner-original-poster {
        position:relative; flex:none; width:min(100%,509.28382cqh); aspect-ratio:1920/377;
    }
    .home-content .banner-original-poster > svg { display:block; width:100%; height:100%; }
    .home-content .banner-original-side {
        position:relative; flex:1; height:100%; overflow:hidden;
    }
    .home-content .banner-original-side svg { display:block; width:100%; height:100%; }
    .home-content .banner-original-side::after {
        content:""; position:absolute; inset:0;
        --outward:90deg;
        backdrop-filter:blur(8px) brightness(.72);
        mask-image:linear-gradient(var(--outward),#000 calc(100% - 16px),transparent);
        background:linear-gradient(var(--outward),#091321 0%,rgb(9 19 33 / 92%) 44%,transparent 100%);
    }
    .home-content .banner-original-side:last-child::after { --outward:270deg; }
    .home-content .banner-original-link {
        position:absolute; left:41.15%; top:77.05%; width:17.7%; height:15.9%;
        border-radius:999px;
    }
    .home-content .banner-original-link:focus-visible { outline:3px solid white; outline-offset:2px; }
}

@media (min-width:1080px) {
    /* This panel photo includes the dark background for the editable copy. */
    .homepage .home-content [data-home-slide="welcome"]:has(.feature-photo) .home-feature-art {
        inset:0;
        width:100%;
        background:#0c1220;
        mask-image:none;
        overflow:hidden;
    }
    .homepage .home-content [data-home-slide="welcome"] .home-feature-art > .feature-photo {
        position:absolute;
        inset:0 0 0 auto;
        width:auto;
        height:100%;
        max-width:none;
        mask-image:linear-gradient(to right, transparent, #000 14%);
    }
    .homepage .home-content [data-home-slide="welcome"]:has(.feature-photo) .hero-copy {
        position:relative;
        z-index:1;
    }
}

@media (min-width:1080px) {
    @container (max-width:860px) {
        .homepage .home-content [data-home-slide="welcome"]:has(.feature-photo) .hero-copy {
            max-width:42%;
        }
    }
}
