/* =========================================================
   Salo Games — Finnish forest / craft / lodge theme
   ========================================================= */

:root {
    --bg-cream:    hsl(35, 22%, 96%);
    --panel-cream: hsl(35, 18%, 90%);
    --panel-deep:  hsl(35, 20%, 84%);
    --forest-deep: hsl(140, 30%, 15%);
    --forest-mid:  hsl(140, 22%, 32%);
    --brass:       hsl(38, 60%, 42%);
    --brass-soft:  hsl(38, 55%, 55%);
    --moss:        hsl(85, 30%, 40%);
    --moss-soft:   hsl(85, 25%, 88%);
    --hair:        hsl(38, 40%, 70%);
    --shadow-soft: 0 2px 8px rgba(30, 42, 32, 0.08);
    --shadow-mid:  0 6px 24px rgba(30, 42, 32, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-cream);
    color: var(--forest-mid);
    font-family: 'Inter', 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: 'Fraunces', Georgia, "Times New Roman", serif;
    color: var(--forest-deep);
    font-weight: 600;
    letter-spacing: -0.005em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.25; }

p { margin: 0 0 1em; }

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

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

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

.section {
    padding: 72px 0;
}

.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    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: #fbf8f0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 22px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    text-decoration: none;
    line-height: 1;
}
.brass-btn:hover  { background: hsl(38, 60%, 36%); text-decoration: none; }
.brass-btn:active { transform: translateY(1px); }
.brass-btn.small  { padding: 10px 16px; font-size: 12px; }
.brass-btn[disabled],
.brass-btn.is-disabled {
    background: hsl(38, 15%, 68%);
    color: #f4efe3;
    cursor: not-allowed;
}

.moss-badge {
    display: inline-block;
    background: var(--moss-soft);
    color: var(--moss);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 241, 230, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--hair);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--forest-deep);
    text-decoration: none;
}
.brand-mark:hover { text-decoration: none; }
.brand-word {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: 0.22em;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--forest-deep);
}
.brand-glyph { color: var(--brass); }
.site-nav a {
    color: var(--forest-mid);
    font-size: 14px;
    font-weight: 500;
    margin-left: 22px;
    text-decoration: none;
}
.site-nav a:hover { color: var(--forest-deep); }

/* ---------- 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='240' height='240' viewBox='0 0 240 240'><g stroke='%23b58a35' stroke-opacity='0.09' fill='none' stroke-width='1'><path d='M0 20 Q60 15 120 22 T240 20'/><path d='M0 60 Q60 55 120 62 T240 60'/><path d='M0 100 Q60 95 120 102 T240 100'/><path d='M0 140 Q60 135 120 142 T240 140'/><path d='M0 180 Q60 175 120 182 T240 180'/><path d='M0 220 Q60 215 120 222 T240 220'/></g></svg>");
    background-repeat: repeat;
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--hair);
    overflow: hidden;
}
.hero-inner { max-width: 820px; }
.hero h1 { margin-bottom: 18px; }
.hero-sub {
    font-size: 19px;
    color: var(--forest-mid);
    margin-bottom: 26px;
    max-width: 640px;
}
.hero-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--forest-mid);
}
.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: 56px 0 72px;
}
.slot-frame {
    background: var(--panel-cream);
    border: 1px solid var(--hair);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow-mid);
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}
.slot-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}
.slot-title {
    font-family: 'Fraunces', serif;
    color: var(--forest-deep);
    font-size: 22px;
}
.slot-balance {
    background: var(--forest-deep);
    color: #f4efe3;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
}
.slot-balance .coins-num { color: var(--brass-soft); }

.reels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #201d15;
    border: 3px solid var(--brass);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 16px;
}
.reel {
    background: #f7f2e6;
    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%;
}
.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.25) inset;
}

.slot-readout {
    background: var(--bg-cream);
    border: 1px solid var(--hair);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--forest-mid);
    text-align: center;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}
.slot-readout strong { color: var(--forest-deep); }

.slot-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.spin-btn { min-width: 160px; }
.daily-btn {
    background: var(--moss);
    color: #f4efe3;
}
.daily-btn:hover:not([disabled]) { background: hsl(85, 32%, 32%); }

.slot-note {
    font-size: 12px;
    color: var(--forest-mid);
    text-align: center;
    margin-top: 14px;
    opacity: 0.75;
}

.win-flash {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--moss);
    color: #f4efe3;
    font-family: 'Fraunces', serif;
    font-size: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.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;
}
.venue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-mid); }
.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: 'Fraunces', serif;
    color: var(--forest-deep);
    font-size: 20px;
    margin: 0;
}
.venue-blurb {
    color: var(--forest-mid);
    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: 620px; 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: 26px;
}
.howto-card h3 { margin-top: 10px; }
.howto-num {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    color: var(--brass);
    letter-spacing: 0.14em;
}

/* ---------- 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: 26px;
}
.voice-quote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--forest-deep);
    font-size: 17px;
    line-height: 1.45;
    margin: 0 0 14px;
}
.voice-attr {
    font-size: 13px;
    color: var(--forest-mid);
    letter-spacing: 0.03em;
}

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

.respo {
    background: var(--forest-deep);
    color: #e9ded0;
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
}
.respo strong { color: #f4efe3; }

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

.site-footer {
    background: var(--forest-deep);
    color: #d8d0c1;
    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: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: 0.22em;
    font-size: 14px;
    color: #f4efe3;
    margin-bottom: 12px;
}
.footer-blurb { font-size: 13px; line-height: 1.6; color: #b8b0a2; }
.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    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: #d8d0c1; font-size: 14px; text-decoration: none; }
.footer-col ul li a:hover { color: #f4efe3; text-decoration: underline; }
.footer-contact {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #b8b0a2;
}
.footer-addr { margin-top: 8px; color: #98907f; font-size: 12px; }
.footer-bottom {
    padding-top: 20px;
    font-size: 12px;
    color: #98907f;
    text-align: center;
}

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

.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(30, 42, 32, 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: 460px;
    width: 100%;
    padding: 40px 36px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border-top: 4px solid var(--brass);
}
.age-gate-title {
    font-family: 'Fraunces', serif;
    color: var(--forest-deep);
    font-size: 64px;
    margin: 12px 0 16px;
    line-height: 1;
}
.age-gate-copy {
    color: var(--forest-mid);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
}
.age-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}
.age-gate-decline {
    color: var(--forest-mid);
    font-size: 13px;
    text-decoration: underline;
}
.age-gate-fine {
    font-size: 11px;
    color: var(--forest-mid);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 12px 0 0;
    opacity: 0.7;
}

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

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--forest-deep);
    color: #d8d0c1;
    z-index: 900;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
    padding: 14px 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.cookie-copy {
    margin: 0;
    font-size: 13px;
    color: #d8d0c1;
    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; }
.doc-inner p, .doc-inner li { color: var(--forest-mid); font-size: 15.5px; }
.doc-inner ul { padding-left: 22px; }
.doc-meta {
    color: var(--forest-mid);
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 26px;
}

/* ---------- 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.15em;
    color: var(--forest-mid);
    font-weight: 700;
}
.contact-form input,
.contact-form textarea {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--hair);
    border-radius: 8px;
    background: var(--panel-cream);
    color: var(--forest-deep);
    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(35, 22%, 96%); border: 1px solid rgba(191, 122, 32, 0.35); 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.35); border-radius: 4px; font-size: 22px; line-height: 1; cursor: pointer; color: hsl(140, 30%, 15%); 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); } }
