@font-face {
    font-family: 'Barlow Condensed';
    src: url('/css/fonts/headings.woff2') format('woff2');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --color-scheme: dark; --bg: #15161c; --surface: #20222b; --ink: #fff8ed; --muted: #c9c4c1; --line: #42434f;
    --header: #191a21; --accent: #ff8d58; --accent-hover: #ffad84; --button-ink: #1b1613;
    --focus: #ff9d72; --link: #ffb28d; --shadow: #0005;
    --width: 1320px; --card-radius: 7px; --panel-radius: 15px; --button-radius: 5px; --tile-ratio: 16 / 10;
    --heading-font: 'Barlow Condensed', system-ui, sans-serif;
}

.easygame-home section, .funplay-home section, .casual-home section, .minigame-home section { min-width: 0; }
.ad-break-content h1 {
    font-size: clamp(2.35rem, 5.8vw, 5.25rem);
    line-height: .98;
    overflow-wrap: anywhere;
}
.ad-break-content h2, .home-after-ad h2, .new-collections > h2, .guide h2 {
    font-size: clamp(1.45rem, 3vw, 2.55rem);
    line-height: 1.06;
}
.ad-break-content header p { margin-top: 13px; max-width: 44ch; line-height: 1.55; }
.new-collections > h2 { margin-bottom: 18px; }
.new-collections .category-collections { display: grid; gap: clamp(16px, 2.6vw, 34px); }
.new-collections .game-section { margin: 0; padding: clamp(12px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.new-collections .section-heading { margin-bottom: 12px; }
.new-collections h2:not(#library-title) { font-size: clamp(1.35rem, 2.65vw, 2.1rem); }
.guide h1 { font-size: clamp(2.1rem, 5.4vw, 4.7rem); overflow-wrap: anywhere; }
.guide-cover { display: block; aspect-ratio: 1; object-fit: contain; border-radius: var(--card-radius); }
.guide-about p { max-width: 73ch; margin-top: 12px; color: var(--muted); line-height: 1.75; overflow-wrap: anywhere; }
.guide-related h2 { margin-bottom: 15px; }
.guide-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide .load-status { margin-top: 0; }
@media (max-width: 600px) {
    .guide-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}

h1, h2 { font-weight:800; }
.arcade-head { display:flex; align-items:end; justify-content:space-between; gap:14px; border-top:3px solid var(--accent); padding-block:14px 17px; }
.arcade-head h1 { text-transform:uppercase; }
.arcade-head p { color:var(--muted); }
.arcade-marquee { display:grid; grid-template-columns:1.15fr 1.15fr 1fr 1fr; grid-template-rows:repeat(2,minmax(0,1fr)); block-size:clamp(350px,35vw,500px); gap:9px; }
.arcade-marquee .game-card { display:grid; grid-template-rows:minmax(0,1fr) auto; }
.arcade-marquee .arcade-lead { grid-column:span 2; grid-row:span 2; border-color:var(--accent); }
.arcade-marquee .game-card img { width:100%; height:100%; aspect-ratio:auto; }
.arcade-marquee .game-card img { min-height:0; }
.arcade-marquee .card-caption { min-height:44px; }
.arcade-marquee .arcade-lead .card-caption { background:var(--accent); color:var(--button-ink); font-size:1.25rem; }
.arcade-lineup { border-top:2px solid var(--line); padding-top:14px; }
.arcade-lineup h2 { margin-bottom:13px; }
.arcade-lineup-games { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.arcade-lineup-games img { aspect-ratio:1.47; }
.funplay-home .category-collections .game-section { border-radius:4px; border-top:2px solid var(--accent); }
.funplay-home .category-collections .tile-grid { --tile-ratio:1.8; }
.listing .page-heading { border-bottom:2px solid var(--accent); padding-bottom:15px; }
.arcade-brief { display:flex; align-items:center; justify-content:space-between; gap:14px; background:#292731; border-left:6px solid var(--accent); padding:clamp(15px,3vw,35px); }
.arcade-brief .button { flex:none; }
.arcade-guide-body { display:grid; grid-template-columns:minmax(100px,190px) minmax(0,1fr); align-items:center; gap:clamp(14px,3.5vw,46px); padding:clamp(16px,3vw,36px); border:1px solid var(--line); border-top:0; }
.arcade-guide-body .guide-cover { width:100%; }
.funplay-guide .guide-related { margin-top:32px; }
.funplay-guide .guide-games img { aspect-ratio:2; }
@media (max-width:850px) {
    .arcade-head { display:block; }
    .arcade-marquee { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; block-size:auto; }
    .arcade-marquee .arcade-lead { grid-row:auto; }
    .arcade-marquee .game-card img { min-height:0; aspect-ratio:1.75; }
    .arcade-lineup-games { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:520px) {
    .arcade-lineup-games { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .arcade-brief { flex-wrap:wrap; }
    .arcade-guide-body { grid-template-columns:1fr; }
    .arcade-guide-body .guide-cover { width:104px; }
}

.adx-slot {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: min(100%, 336px);
    margin-inline: auto;
    padding-block: 50px;
}

/* Keep the featured section tall enough to separate the homepage ad slots. */
.ad-break-content {
    display: grid;
    min-block-size: max(0px, calc(100vh - 98px));
    min-block-size: max(0px, calc(100lvh - 98px));
}

.adx-slot + main { padding-top: 0; }
.adx-slot + .home-after-ad { margin-top: 0; }
.home-after-ad + .new-collections { margin-top: clamp(24px, 3vw, 44px); }

@media (min-width: 851px) {
    .arcade-opening { display: grid; grid-template-rows: auto 1fr; }
    .arcade-marquee { block-size: auto; min-block-size: clamp(350px, 35vw, 500px); }
}
