:root {
    --paper: #f3ecdf;
    --ink: #1b140f;
    --coal: #14100d;
    --ember: #ff4b1f;
    --clay: #c2410c;
    --sand: #e6d9c6;
    --card: #fffaf3;
    --line: #e3d4c2;
    --moss: #0d6b52;
    --muted: #6e5d51;
    --shadow: 0 18px 40px rgba(40, 22, 10, 0.08);
    --sidebar: 248px;
    --display: "Bricolage Grotesque", sans-serif;
    --body: "Figtree", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(255, 75, 31, 0.16), transparent 60%),
        var(--paper);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--ink);
    color: white;
    padding: 8px 12px;
    z-index: 30;
}
.skip:focus { top: 12px; }

.shell { min-height: 100vh; }
.sidebar {
    width: var(--sidebar);
    background: var(--coal);
    color: #f6efe6;
    padding: 16px 14px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 20;
}
.main-column { margin-left: var(--sidebar); min-width: 0; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 720;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
}
.mark {
    width: 16px;
    height: 20px;
    background: var(--ember);
    clip-path: polygon(50% 0, 90% 42%, 68% 42%, 100% 100%, 0 100%, 32% 42%, 10% 42%);
}
.topbar { display: none; }
.nav-toggle {
    display: none;
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    color: white;
    border-radius: 999px;
    padding: 6px 12px;
}
.mobile-brand { color: white; text-decoration: none; }
.side-search { display: flex; gap: 6px; margin: 12px 0; }
.side-search input, .hero-search input, .contact-form input, .contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    padding: 12px 14px;
}
.side-search input { background: #2a221c; border-color: #3a2e26; color: white; }
.side-search button, .button {
    border: 0;
    background: var(--ember);
    color: white;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 680;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-nav { display: flex; flex-direction: column; gap: 0; }
.site-nav a, .site-footer a {
    text-decoration: none;
}
.site-nav a {
    padding: 4px 8px;
    border-radius: 10px;
    color: #f3e7da;
}
.site-nav a:hover, .site-nav a.is-active { background: rgba(255, 75, 31, 0.16); color: white; }
.nav-label {
    margin: 10px 8px 2px;
    color: #b7a394;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.main-column { min-width: 0; }
.age-strip {
    margin: 0;
    padding: 8px 28px;
    background: var(--moss);
    color: white;
    font-size: 0.86rem;
}
main { padding: 28px 32px 10px; }
.hero, .page-hero { max-width: 980px; }
.eyebrow, .eyebrow a { color: var(--clay); font-weight: 680; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.eyebrow a { text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 12px; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 16ch; }
.lede { font-size: 1.15rem; max-width: 62ch; color: #3c2d24; }
.hero-search { display: flex; gap: 10px; max-width: 640px; margin: 18px 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip {
    text-decoration: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.92rem;
}
.chip:hover { border-color: var(--ember); }
.chip-row-loose { margin-bottom: 8px; }
.band { margin: 28px 0 10px; }
.narrow { max-width: 760px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head a { color: var(--clay); font-weight: 680; }
.game-grid, .casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}
.game-card, .casino-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.card-media { display: block; aspect-ratio: 270 / 208; background: #2a211b; }
.card-media img, .card-fallback { width: 100%; height: 100%; object-fit: cover; }
.card-fallback { display: grid; place-items: center; color: white; font-family: var(--display); font-size: 2rem; }
.card-copy { padding: 12px 12px 14px; }
.card-title { font-weight: 680; text-decoration: none; display: inline-block; }
.card-meta { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 8px; }
.card-meta a { color: var(--clay); text-decoration: none; }
.casino-logo { min-height: 92px; display: grid; place-items: center; padding: 12px; }
.casino-logo img { max-height: 64px; width: auto; }
.casino-copy { padding: 12px 14px 16px; }
.casino-copy h3 { font-size: 1.2rem; }
.rating { margin: 0; font-weight: 680; color: var(--clay); }
.casino-games { color: var(--muted); font-size: 0.9rem; }
.stage {
    position: relative;
    margin: 18px 0;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: #1a120e;
    display: grid;
}
.stage-still, .stage iframe { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 420px; object-fit: cover; border: 0; }
.stage iframe { display: none; background: black; }
.stage.is-playing iframe { display: block; }
.stage.is-playing .stage-still, .stage.is-playing .stage-panel { display: none; }
.stage-panel, .age-panel {
    grid-area: 1 / 1;
    align-self: end;
    margin: 20px;
    max-width: 360px;
    background: rgba(20, 16, 13, 0.82);
    color: white;
    border-radius: 18px;
    padding: 16px;
    z-index: 1;
}
.age-panel { display: none; align-self: center; justify-self: center; }
.stage.needs-age .age-panel { display: block; }
.stage.needs-age .stage-panel { display: none; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.stat-row div { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; min-width: 120px; }
.stat-row dt { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-row dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.2rem; }
.game-heading h1 { max-width: 18ch; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #2d221b; }
.prose a { color: var(--clay); }
.prose table { width: 100%; border-collapse: collapse; background: white; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pager-link { text-decoration: none; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 12px; }
.pager-link.is-current { background: var(--ink); color: white; border-color: var(--ink); }
.empty { color: var(--muted); }
.contact-form { display: grid; gap: 8px; max-width: 560px; }
.contact-form textarea { min-height: 140px; }
.form-ok { background: #e5f6ef; border-radius: 12px; padding: 10px 12px; }
.form-error { background: #ffe8e1; border-radius: 12px; padding: 10px 12px; }
.note { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.site-footer { padding: 28px 32px 40px; color: #3d2e25; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 22px; }
.footer-grid a { display: block; padding: 4px 0; }
.legal { color: var(--muted); font-size: 0.9rem; margin-top: 22px; }
.brand-footer { color: var(--ink); margin-bottom: 8px; }

@media (max-width: 900px) {
    .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        background: var(--coal);
        position: sticky;
        top: 0;
        z-index: 15;
    }
    .sidebar {
        top: 58px;
        height: calc(100vh - 58px);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        width: min(86vw, 320px);
        overflow: hidden;
    }
    .sidebar.is-open { transform: none; }
    .nav-toggle { display: inline-flex; }
    .main-column { width: 100%; margin-left: 0; }
    main, .site-footer, .age-strip { padding-left: 16px; padding-right: 16px; }
    .hero-search { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stage, .stage-still, .stage iframe { min-height: 280px; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.3rem; }
}
