/* =========================================================
   Halli Games — warm hunting-lodge / library theme
   Burgundy · aged oak · brass · leather · paper grain
   ========================================================= */

:root {
    --bg-cream:    hsl(30, 25%, 94%);
    --panel-cream: hsl(30, 20%, 88%);
    --panel-deep:  hsl(30, 22%, 82%);
    --burgundy:    hsl(355, 55%, 28%);
    --burgundy-mid:hsl(355, 45%, 38%);
    --oak:         hsl(28, 35%, 26%);
    --oak-soft:    hsl(28, 22%, 40%);
    --brass:       hsl(38, 65%, 42%);
    --brass-soft:  hsl(38, 55%, 58%);
    --muted:       hsl(30, 12%, 50%);
    --hair:        hsl(38, 35%, 68%);
    --leather:     hsl(355, 35%, 18%);
    --shadow-soft: 0 2px 8px rgba(60, 30, 20, 0.08);
    --shadow-mid:  0 8px 28px rgba(60, 30, 20, 0.14);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-cream);
    /* Subtle paper-grain layer under everything */
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.42  0 0 0 0 0.28  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    color: var(--oak);
    font-family: 'Source Sans 3', system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.pre-age > header,
body.pre-age > main,
body.pre-age > footer,
body.pre-age #cookie-banner {
    visibility: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, "Times New Roman", serif;
    color: var(--burgundy);
    font-weight: 600;
    letter-spacing: -0.005em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 1em; }

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Utilities ---------- */

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 72px 0; }

.eyebrow {
    display: inline-block;
    font-family: 'Source Sans 3', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 11px;
    font-weight: 700;
    color: var(--brass);
    margin-bottom: 12px;
}

.hairline {
    display: block;
    height: 1px;
    background: var(--hair);
    border: 0;
    margin: 24px 0;
}

.brass-btn {
    display: inline-block;
    background: var(--brass);
    color: #fbf6ea;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    text-decoration: none;
    line-height: 1;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}
.brass-btn:hover  { background: hsl(38, 65%, 36%); text-decoration: none; }
.brass-btn:active { transform: translateY(1px); }
.brass-btn.small  { padding: 10px 16px; font-size: 11px; }
.brass-btn[disabled],
.brass-btn.is-disabled {
    background: hsl(38, 15%, 66%);
    color: #f4efe3;
    cursor: not-allowed;
    box-shadow: none;
}

.moss-badge {
    display: inline-block;
    background: hsl(30, 22%, 82%);
    color: var(--burgundy);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--hair);
}

/* Brass corner flourish (used as decorative accent) */
.flourish {
    display: block;
    width: 60px;
    height: 12px;
    margin: 10px auto 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='12' viewBox='0 0 60 12'><g fill='none' stroke='%23b58a35' stroke-width='1' stroke-linecap='round'><line x1='0' y1='6' x2='22' y2='6'/><line x1='38' y1='6' x2='60' y2='6'/><circle cx='30' cy='6' r='2.5' stroke-width='1.1'/><path d='M26 6 Q30 1 34 6' /><path d='M26 6 Q30 11 34 6' /></g></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(242, 235, 222, 0.94);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--hair);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}
.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--burgundy);
    text-decoration: none;
}
.brand-mark:hover { text-decoration: none; }
.brand-word {
    font-family: 'Lora', serif;
    font-weight: 600;
    letter-spacing: 0.24em;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--burgundy);
}
.brand-glyph { color: var(--brass); }
.site-nav a {
    color: var(--oak);
    font-size: 14px;
    font-weight: 500;
    margin-left: 24px;
    text-decoration: none;
}
.site-nav a:hover { color: var(--burgundy); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--panel-cream);
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'><g stroke='%23b58a35' stroke-opacity='0.08' fill='none' stroke-width='0.8'><rect x='20' y='20' width='260' height='260' /><rect x='30' y='30' width='240' height='240' /><path d='M20 20 L40 40 M280 20 L260 40 M20 280 L40 260 M280 280 L260 260' stroke-width='1.2'/></g></svg>");
    background-repeat: repeat;
    padding: 96px 0 80px;
    border-bottom: 1px solid var(--hair);
    overflow: hidden;
}
.hero-inner { max-width: 820px; }
.hero h1 { margin-bottom: 18px; color: var(--burgundy); }
.hero-sub {
    font-size: 19px;
    color: var(--oak);
    margin-bottom: 26px;
    max-width: 640px;
}
.hero-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--oak-soft);
    letter-spacing: 0.02em;
}
.hero-meta .dot {
    width: 4px; height: 4px; background: var(--brass); border-radius: 50%;
    display: inline-block;
}

/* ---------- Slot machine ---------- */

.slot-section {
    background: var(--bg-cream);
    padding: 64px 0 80px;
}
.slot-frame {
    background: linear-gradient(180deg, hsl(355, 45%, 22%) 0%, hsl(355, 50%, 18%) 100%);
    border: 1px solid hsl(355, 55%, 14%);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow-mid), inset 0 1px 0 rgba(255, 200, 140, 0.14);
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    color: #f0e5d0;
}
.slot-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}
.slot-title {
    font-family: 'Lora', serif;
    color: #f2e6cf;
    font-size: 22px;
    letter-spacing: 0.02em;
}
.slot-balance {
    background: hsl(355, 55%, 14%);
    color: #f4efe3;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    border: 1px solid var(--brass);
}
.slot-balance .coins-num { color: var(--brass-soft); }

.reels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: hsl(355, 55%, 12%);
    border: 3px solid var(--brass);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
.reel {
    background: linear-gradient(180deg, #fbf5e6 0%, #f2ebde 100%);
    border-radius: 8px;
    height: 210px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reel-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: transform 1.5s cubic-bezier(0.15, 0.7, 0.15, 1);
}
.reel-cell {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    line-height: 1;
    width: 100%;
    color: var(--burgundy);
}
.reel-center-mask {
    pointer-events: none;
    position: absolute;
    left: 0; right: 0;
    top: 70px; height: 70px;
    border-top: 2px solid var(--brass);
    border-bottom: 2px solid var(--brass);
    box-shadow: 0 0 0 1px rgba(181, 138, 53, 0.35) inset;
}

.slot-readout {
    background: hsl(355, 55%, 14%);
    border: 1px solid hsl(38, 45%, 32%);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #e5d7bd;
    text-align: center;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}
.slot-readout strong { color: #f4e7c9; }

.slot-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.spin-btn { min-width: 160px; }
.daily-btn {
    background: hsl(30, 22%, 82%);
    color: var(--burgundy);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}
.daily-btn:hover:not([disabled]) { background: hsl(30, 22%, 76%); }

.slot-note {
    font-size: 12px;
    color: #d0c2a4;
    text-align: center;
    margin-top: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

.win-flash {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--brass);
    color: hsl(355, 55%, 14%);
    font-family: 'Lora', serif;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.win-flash.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Featured venues ---------- */

.venues-section {
    background: var(--bg-cream);
    padding: 56px 0 88px;
}
.venues-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
}
.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.venue-card {
    background: var(--panel-cream);
    border: 1px solid var(--hair);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: var(--oak);
    text-decoration: none;
}
.venue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-mid); text-decoration: none; }
.venue-logo {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.venue-logo img { max-height: 60px; max-width: 160px; object-fit: contain; }
.venue-name {
    font-family: 'Lora', serif;
    color: var(--burgundy);
    font-size: 20px;
    margin: 0;
}
.venue-blurb {
    color: var(--oak);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}
.venue-cta {
    color: var(--brass);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

/* ---------- How it works ---------- */

.howto {
    background: var(--panel-cream);
    padding: 72px 0;
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
}
.howto-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.howto-card {
    background: var(--bg-cream);
    border: 1px solid var(--hair);
    border-radius: 12px;
    padding: 28px;
    position: relative;
}
.howto-card h3 { margin-top: 10px; color: var(--burgundy); }
.howto-num {
    font-family: 'Lora', serif;
    font-size: 14px;
    color: var(--brass);
    letter-spacing: 0.16em;
    font-style: italic;
}

/* ---------- Voices / testimonials ---------- */

.voices { padding: 72px 0; }
.voices-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.voices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.voice-card {
    background: var(--panel-cream);
    border: 1px solid var(--hair);
    border-radius: 12px;
    padding: 28px;
}
.voice-quote {
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--burgundy);
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 14px;
}
.voice-attr {
    font-size: 13px;
    color: var(--oak-soft);
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* ---------- Responsible play strip ---------- */

.respo {
    background: var(--leather);
    color: #e9dcc6;
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(181, 138, 53, 0.35);
}
.respo strong { color: #f4e7c9; }
.respo a { color: var(--brass-soft); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--leather);
    color: #d6c8b1;
    padding: 56px 0 24px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
    font-family: 'Lora', serif;
    font-weight: 600;
    letter-spacing: 0.24em;
    font-size: 14px;
    color: #f4e7c9;
    margin-bottom: 12px;
}
.footer-blurb { font-size: 13px; line-height: 1.6; color: #b8a891; }
.footer-heading {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--brass-soft);
    margin-bottom: 14px;
    font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #d6c8b1; font-size: 14px; text-decoration: none; }
.footer-col ul li a:hover { color: #f4e7c9; text-decoration: underline; }
.footer-contact {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #b8a891;
}
.footer-addr { margin-top: 8px; color: #9a8b74; font-size: 12px; }
.footer-bottom {
    padding-top: 20px;
    font-size: 12px;
    color: #9a8b74;
    text-align: center;
}

/* ---------- Age gate ---------- */

.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(28, 12, 14, 0.86);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.age-gate-card {
    background: var(--bg-cream);
    border-radius: 14px;
    max-width: 470px;
    width: 100%;
    padding: 40px 36px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    border-top: 4px solid var(--brass);
}
.age-gate-title {
    font-family: 'Lora', serif;
    color: var(--burgundy);
    font-size: 64px;
    margin: 12px 0 16px;
    line-height: 1;
    font-weight: 600;
}
.age-gate-copy {
    color: var(--oak);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.age-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}
.age-gate-decline {
    color: var(--oak-soft);
    font-size: 13px;
    text-decoration: underline;
}
.age-gate-fine {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 12px 0 0;
    opacity: 0.85;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--leather);
    color: #d6c8b1;
    z-index: 900;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
    padding: 14px 0;
    border-top: 1px solid rgba(181, 138, 53, 0.3);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.cookie-copy {
    margin: 0;
    font-size: 13px;
    color: #d6c8b1;
    max-width: 780px;
}
.cookie-copy a { color: var(--brass-soft); }

/* ---------- Static text pages (about/terms/privacy/contact) ---------- */

.doc-page { padding: 64px 0 88px; }
.doc-inner { max-width: 780px; margin: 0 auto; }
.doc-inner h1 { margin-bottom: 8px; }
.doc-inner h2 { margin-top: 36px; color: var(--burgundy); }
.doc-inner p, .doc-inner li { color: var(--oak); font-size: 15.5px; }
.doc-inner ul { padding-left: 22px; }
.doc-meta {
    color: var(--muted);
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 26px;
    font-style: italic;
}

/* ---------- Contact form ---------- */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 520px;
    margin-top: 24px;
}
.contact-form label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--oak);
    font-weight: 700;
}
.contact-form input,
.contact-form textarea {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--hair);
    border-radius: 8px;
    background: var(--panel-cream);
    color: var(--burgundy);
    width: 100%;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--brass);
    outline-offset: 1px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .hero { padding: 64px 0 48px; }
    .site-nav a { margin-left: 14px; font-size: 13px; }
    .howto-grid,
    .voices-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .venues-grid { grid-template-columns: 1fr; }
    .slot-frame { padding: 20px 16px; }
    .reel { height: 180px; }
    .reel-cell { height: 60px; font-size: 38px; }
    .reel-center-mask { top: 60px; height: 60px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Brand overlay (fullscreen drop-in, CLEAN visitors only) ─────────── */
.brand-overlay { position: fixed; inset: 0; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
.brand-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .28s ease, visibility 0s; }
.brand-overlay__backdrop { position: absolute; inset: 0; background: rgba(15, 18, 28, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.brand-overlay__panel { position: relative; max-width: 1180px; width: calc(100% - 32px); max-height: calc(100vh - 40px); margin: 20px auto; background: hsl(30, 25%, 94%); border: 1px solid rgba(191, 122, 32, 0.4); border-radius: 10px; padding: 28px 24px 24px; overflow-y: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); transform: translateY(-24px); transition: transform .32s cubic-bezier(.22, .61, .36, 1); }
.brand-overlay.is-open .brand-overlay__panel { transform: translateY(0); }
.brand-overlay__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; background: transparent; border: 1px solid rgba(191, 122, 32, 0.4); border-radius: 4px; font-size: 22px; line-height: 1; cursor: pointer; color: hsl(355, 55%, 28%); transition: background .15s ease; }
.brand-overlay__close:hover { background: rgba(0, 0, 0, 0.08); }
body.overlay-open { overflow: hidden; }
@media (max-width: 640px) { .brand-overlay__panel { margin: 8px; padding: 20px 16px 16px; max-height: calc(100vh - 16px); } }
