@font-face {
    font-family: 'DM Sans';
    src: url('/css/fonts/headings.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
}

:root {
    --bg: #fffaf0; --surface: #fff; --ink: #282318; --muted: #564c38; --line: #e4d8ba;
    --header: #fffdf6; --accent: #f7c957; --accent-hover: #efb93b; --button-ink: #282318;
    --focus: #8b5702; --link: #754a04; --shadow: #69470022;
    --width: 1120px; --card-radius: 12px; --panel-radius: 22px; --button-radius: 10px; --tile-ratio: 3 / 2;
}

.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; }
}

:root { --heading-font: 'DM Sans', system-ui, sans-serif; --body-font: 'DM Sans'; --accent:#286047; --accent-hover:#194731; --button-ink:#fff; }
.easy-head { display: grid; grid-template-columns: 1.55fr 1fr; align-items: end; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #baa97b; }
.easy-head h1 { max-width: 13ch; }
.easy-head p { color: var(--muted); }
.easy-board { display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr); gap:16px; margin-top: 16px; }
.easy-board .easy-lead { background:#262219; position:relative; color:#fff; }
.easy-lead img { aspect-ratio: 4 / 3; }
.easy-lead .card-caption { font-size:clamp(1.05rem,2vw,1.7rem); padding:12px 16px; }
.easy-menu { border-radius:var(--panel-radius); background:#f7ebcf; padding:clamp(13px,2vw,22px); }
.easy-menu h2, .easy-sampler h2 { margin-bottom:12px; }
.easy-menu-games, .easy-sampler-games { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.easy-menu-games .game-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: #fffdf7;
}
.easy-menu-games img { aspect-ratio: 8 / 5; }
.easy-menu-games .card-caption {
    min-block-size: 44px;
    padding: 8px 10px;
    border-top: 1px solid var(--line);
}
.easy-sampler-games { grid-template-columns:repeat(4,minmax(0,1fr)); }
.easy-sampler-games img { aspect-ratio: 4 / 3; }
.easygame-home .category-collections { grid-template-columns:repeat(2,minmax(0,1fr)); border-top:0; }
.easygame-home .category-collections .tile-grid { --columns:3; }
.easygame-home .category-collections .game-card img { aspect-ratio:1.35; }
.listing .page-heading { border-left:5px solid var(--accent); background:#f7ebcf; padding:15px 21px; }
.easy-brief { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:clamp(12px,3vw,33px); align-items:center; padding:clamp(14px,3vw,32px); background:#f7ebcf; border:1px solid var(--line); border-radius:var(--panel-radius); }
.easy-brief .guide-cover { width:clamp(80px,12vw,144px); }
.easy-guide-body { display:grid; grid-template-columns:minmax(0, 1.55fr) minmax(0,1fr); gap:clamp(20px,4vw,48px); margin-top:28px; }
.easy-guide-body .guide-related { border-left:1px solid var(--line); padding-left:18px; }
.easy-guide-body .guide-games { grid-template-columns:repeat(2,minmax(0,1fr)); }
.easy-guide-body .guide-games .game-card { flex-direction:row; align-items:center; }
.easy-guide-body .guide-games img { width:45px; aspect-ratio:1; flex:none; }
@media (max-width:760px) {
    .easy-head, .easy-board { grid-template-columns:1fr; }
    .easy-head p { margin-top:0; }
    .easy-lead img { aspect-ratio:2; }
    .easy-sampler-games, .easygame-home .category-collections { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .easy-guide-body { grid-template-columns:1fr; }
    .easy-guide-body .guide-related { border-left:0; padding-left:0; }
}
@media (max-width:550px) {
    .easygame-home .category-collections { grid-template-columns:1fr; }
    .easy-brief { grid-template-columns:auto minmax(0,1fr); }
    .easy-brief .button { grid-column:2; }
    .easy-brief .guide-cover { grid-row:span 2; }
}

.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: 761px) {
    .easy-opening, .easy-menu { display: grid; grid-template-rows: auto 1fr; }
    .easy-board .easy-lead { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
    .easy-lead img, .easy-menu-games img { height: 100%; min-height: 0; aspect-ratio: auto; }
    .easy-menu-games .game-card { grid-template-rows: minmax(0, 1fr) auto; min-block-size: 112px; }
    .easy-menu-games img { contain: size; }
}
