/* 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}}

@media(min-width:1080px){
 .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;
}
.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; }
    .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 > [data-slide-viewport]::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 .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){
    .home-content .banner-message h2 { font-size:clamp(26px,2.8cqw,46px); }
}

/* 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; }
}

/* Only editable slider lettering receives a metallic finish. */
.homepage .home-content .hero [data-home-slide] .slide-gold-lettering,
.admin-site .home-slide-preview .slide-gold-lettering {
    color:#ffda83;
    background:none;
    -webkit-text-fill-color:currentColor;
    -webkit-text-stroke:0;
    filter:none;
    text-shadow:none;
}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
    @media (forced-colors:none) {
        .homepage .home-content .hero [data-home-slide] .slide-gold-lettering,
        .admin-site .home-slide-preview .slide-gold-lettering {
            background-image:linear-gradient(180deg,#fff3c6 8%,#ffda83 42%,#fff3c6 51%,#ffda83 66%,#d8a451 94%);
            -webkit-background-clip:text;
            background-clip:text;
            -webkit-text-fill-color:transparent;
        }
    }
}

.homepage .home-content .hero {
    height:auto;
    min-height:0;
    padding:0;
    border:0;
    background:none;
}
.homepage .home-content .hero::before { content:none; }
/* SSR reserves the same canvas and control row used by the running carousel. */
.homepage .home-content .hero > [data-slide-viewport] {
    position:relative;
    width:100%;
    aspect-ratio:1554 / 470;
    flex:none;
    isolation:isolate;
    border-radius:inherit;
    overflow:hidden;
    touch-action:pan-y pinch-zoom;
}
[data-slide-viewport] > [data-slide] { position:absolute; inset:0; }
[data-slide-viewport] > [data-slide][hidden] { display:none; }
[data-slide-viewport] .home-slide-poster { height:100%; }
[data-slide-viewport][data-dragging],
[data-slide-viewport][data-dragging] * { user-select:none; -webkit-user-select:none; }
[data-slide-viewport] :is(img,a) { -webkit-user-drag:none; }
/* Native panning is negotiated at the inner scroll container on touch browsers. */
[data-slide-viewport] .home-slide-text { touch-action:pan-y pinch-zoom; }
[data-hero-slider] [data-slider-controls][inert] { visibility:hidden; }
/* Keep partial image scans behind the existing felt until decoding finishes. */
[data-slide-viewport] > [data-slide]:first-child:not([data-slide-ready]) > .home-slide-poster > img.home-slide-image { opacity:0; }
.admin-site .home-slide-preview {
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
    border-radius:12px;
}

/* The image and copy share the same canvas in the published slide and private preview. */
.home-slide-poster {
    position:relative;
    isolation:isolate;
    container-type:inline-size;
    width:100%;
    aspect-ratio:1554 / 470;
    overflow:hidden;
    background:radial-gradient(ellipse at 75% 50%, #182f4d, #07152c 72%);
    color:#fff;
    font-family:"BEVU Signature", "Segoe UI", Arial, sans-serif;
}
.home-slide-poster > .home-slide-image,
.home-slide-poster > noscript > .home-slide-image {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:contain;
    object-position:right center;
}
.home-slide-overlay {
    position:absolute;
    inset:0;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:clamp(5px,1cqw,18px);
    padding:clamp(8px,2.1cqw,34px) 46% clamp(8px,2.1cqw,34px) clamp(10px,4cqw,64px);
    background:linear-gradient(90deg,rgba(5,16,34,.92),rgba(7,19,37,.78) 38%,transparent 65%);
    pointer-events:none;
}
.home-slide-text {
    min-height:0;
    max-width:100%;
    overflow:auto;
    overscroll-behavior:contain;
    overflow-wrap:anywhere;
    scrollbar-width:thin;
    scrollbar-color:#dbb66a #13223b;
    pointer-events:auto;
}
.home-slide-eyebrow {
    display:block;
    width:fit-content;
    font-size:clamp(11px,1.05cqw,17px);
    line-height:1.15;
    font-weight:700;
    letter-spacing:.13em;
}
.home-slide-text > .home-slide-heading {
    margin:.1em 0;
    color:#fff;
    font:800 clamp(22px,3.8cqw,62px)/1.02 "BEVU Signature","Segoe UI",Arial,sans-serif;
    letter-spacing:-.025em;
    text-align:left;
}
.home-slide-text > p {
    margin:0;
    color:#f4f6fb;
    font:400 clamp(14px,1.45cqw,23px)/1.28 "BEVU Signature","Segoe UI",Arial,sans-serif;
    white-space:pre-line;
    text-align:left;
}
.home-slide-poster .home-slide-cta {
    position:relative;
    display:block;
    flex:none;
    box-sizing:border-box;
    width:fit-content;
    max-width:100%;
    margin:0;
    border:1px solid #e8bc69;
    border-radius:clamp(7px,1.4cqw,20px);
    padding:.48em 1.15em;
    color:#191407;
    background:linear-gradient(180deg,#ffdf88,#e7ac43 76%,#f4c769);
    font:700 clamp(13px,1.38cqw,21px)/1.13 "BEVU Signature","Segoe UI",Arial,sans-serif;
    text-decoration:none;
    overflow-wrap:anywhere;
    pointer-events:auto;
}
.home-slide-poster :is(.home-slide-cta,.home-slide-text):focus-visible {
    outline:2px solid #fff;
    outline-offset:-2px;
}
@container (max-width:600px) {
    .home-slide-overlay {
        padding:clamp(4px,1.15cqw,8px) 37% clamp(4px,1.15cqw,8px) clamp(7px,2.4cqw,15px);
        gap:3px;
    }
    .home-slide-eyebrow { font-size:clamp(10px,2.4cqw,12px); letter-spacing:.06em; }
    .home-slide-text > .home-slide-heading { font-size:clamp(16px,4.2cqw,23px); line-height:1.05; }
    .home-slide-heading br { display:none; }
    .home-slide-text > p { font-size:clamp(12px,2.9cqw,15px); line-height:1.16; white-space:normal; }
    .home-slide-poster .home-slide-cta {
        min-height:24px;
        padding:.28em .8em;
        font-size:clamp(12px,2.9cqw,15px);
    }
}

/* The original table-guide photograph has empty felt behind the longer guide copy. */
@container (max-width:400px) {
    .home-slide-default[data-home-slide="table-guide"] .home-slide-overlay {
        padding-inline-end:18%;
        padding-block:2px;
        gap:1px;
    }
    .home-slide-default[data-home-slide="table-guide"] .home-slide-heading { margin:0; font-size:15px; line-height:1; }
    .home-slide-default[data-home-slide="table-guide"] .home-slide-text > p { font-size:12px; line-height:1.08; }
    .home-slide-default[data-home-slide="table-guide"] .home-slide-eyebrow { font-size:10px; line-height:1.05; }
}
