:root {
    --ink: #f7f2e8;
    --ink-muted: #cfc7b6;
    --paper: #f5ead5;
    --charcoal: #162118;
    --charcoal-2: #223329;
    --soil: #8f3f28;
    --soil-dark: #552816;
    --grass: #4d8d4a;
    --grass-dark: #254b32;
    --wattle: #f2c84b;
    --flower: #e86f98;
    --teal: #2d8f8c;
    --sky: #8fd0c7;
    --line: rgba(255, 255, 255, 0.16);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    --radius: 8px;
    --wrap: min(1180px, calc(100% - 36px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--charcoal);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--wattle);
    color: #1c1a11;
    border-radius: var(--radius);
    transition: top 160ms ease;
}

.skip-link:focus {
    top: 12px;
}

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.notice-strip {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 8px 16px;
    background: #0f1712;
    color: var(--wattle);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.notice-strip span {
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(22, 33, 24, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-image: url("../img/favicon-192.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 2px rgba(242, 200, 75, 0.24), 0 8px 22px rgba(0, 0, 0, 0.28);
    flex: 0 0 auto;
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.08rem;
    letter-spacing: 0;
}

.brand-text small {
    color: var(--ink-muted);
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--ink-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    padding: 8px 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
}

.nav-toggle b {
    font-size: 0.86rem;
}

.hero {
    position: relative;
    min-height: calc(82vh - 102px);
    display: grid;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(90deg, rgba(12, 20, 14, 0.92) 0%, rgba(12, 20, 14, 0.62) 46%, rgba(12, 20, 14, 0.32) 100%), url("../img/hero-aureefia.png");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-inner {
    padding: 80px 0 58px;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--wattle);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(3.4rem, 11vw, 7.6rem);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.18;
}

.hero-lead {
    max-width: 660px;
    color: #f5ead5;
    font-size: clamp(1.04rem, 2.2vw, 1.26rem);
}

.hero-actions,
.game-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: var(--wattle);
    color: #1b1a10;
    box-shadow: 0 12px 26px rgba(242, 200, 75, 0.18);
}

.btn.secondary {
    background: var(--teal);
    color: #071412;
}

.btn.ghost,
.btn.quiet {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
}

.btn.compact {
    min-height: 38px;
    padding: 8px 12px;
    background: var(--grass);
    color: white;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.compliance-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.compliance-row li {
    padding: 7px 10px;
    border: 1px solid rgba(242, 200, 75, 0.34);
    border-radius: var(--radius);
    color: var(--wattle);
    background: rgba(16, 24, 18, 0.72);
    font-size: 0.86rem;
    font-weight: 800;
}

.band {
    padding: 78px 0;
}

.intro-band,
.play-band,
.policy-content {
    background: #f4ead7;
    color: #1d241e;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 42px;
    align-items: start;
}

.fact-list {
    display: grid;
    gap: 12px;
}

.fact-list article {
    padding: 18px;
    border-radius: var(--radius);
    background: #fff7e9;
    border: 1px solid rgba(85, 40, 22, 0.16);
}

.fact-list strong,
.fact-list span {
    display: block;
}

.fact-list strong {
    margin-bottom: 5px;
    color: var(--soil-dark);
}

.games-band {
    background: #18281f;
}

.section-head {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-head p:last-child {
    color: var(--ink-muted);
}

.game-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.game-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.game-card-media {
    display: block;
    height: 236px;
    overflow: hidden;
    background: #0e1712;
}

.game-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 300ms ease;
}

.game-card:hover .game-card-media img {
    transform: scale(1.1);
}

.game-card-body {
    padding: 20px;
}

.game-card-body p {
    color: var(--ink-muted);
}

.game-tone {
    color: var(--wattle) !important;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.safety-band {
    background: #233629;
}

.faq-preview-band {
    background: #f4ead7;
    color: #1d241e;
    border-top: 1px solid rgba(22, 33, 24, 0.08);
}

.faq-preview-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 18px;
    align-items: start;
}

.home-faq-head {
    max-width: var(--wrap);
}

.home-faq-head p:last-child {
    max-width: 780px;
    color: #445044;
}

.home-faq-action {
    padding: 22px;
    border-radius: var(--radius);
    background: #fff7e9;
    border: 1px solid rgba(85, 40, 22, 0.16);
}

.home-faq-action p {
    color: #445044;
}

.faq-preview-layout > div {
    max-width: 760px;
}

.faq-preview-layout p:last-child {
    color: #445044;
}

.safety-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.safety-layout > div {
    max-width: 790px;
}

.game-hero {
    padding: 64px 0;
    background: radial-gradient(circle at 82% 10%, rgba(242, 200, 75, 0.18), transparent 28%), #172219;
}

.outback-hero {
    background-color: #251b14;
}

.wattle-hero {
    background-color: #15291d;
}

.coral-hero {
    background-color: #112a2c;
}

.game-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
    gap: 36px;
    align-items: center;
}

.game-hero h1,
.policy-hero h1 {
    font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.game-hero p {
    color: var(--ink-muted);
    max-width: 720px;
}

.game-hero-art {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.play-band {
    padding: 42px 0 82px;
}

.play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: start;
}

.play-layout.wide-game {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 320px);
}

.game-shell,
.rules-panel {
    border-radius: var(--radius);
    border: 1px solid rgba(22, 33, 24, 0.16);
    background: #fff8eb;
    box-shadow: 0 20px 44px rgba(47, 30, 18, 0.12);
}

.game-shell {
    position: relative;
    overflow: hidden;
    padding: 18px;
}

.game-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(120deg, rgba(242, 200, 75, 0.12), transparent 32%, rgba(45, 143, 140, 0.10));
}

.game-shell > * {
    position: relative;
}

.game-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.game-topbar h2 {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.meter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.meter-row span {
    display: grid;
    gap: 2px;
    min-width: 108px;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: #19251d;
    color: var(--ink-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 800;
}

.meter-row strong {
    color: var(--wattle);
    font-size: 1rem;
}

.slot-board,
.mini-slot-board,
.cascade-board {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius);
    background: #172119;
    border: 1px solid rgba(22, 33, 24, 0.18);
    box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.35);
}

.slot-board {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
}

.mini-slot-board {
    grid-template-columns: repeat(3, minmax(64px, 1fr));
    flex: 1 1 330px;
}

.coral-lines-board {
    width: min(690px, 100%);
    flex: none;
}

.cascade-board {
    grid-template-columns: repeat(6, minmax(46px, 1fr));
}

.symbol-slot {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(145deg, #fff5dd, #d6b774);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 10px 20px rgba(0, 0, 0, 0.22);
    transform: translateZ(0);
}

.symbol-art {
    width: 100%;
    height: 100%;
    background-image: var(--sheet);
    background-size: 400% 200%;
    background-position: var(--sx) var(--sy);
    filter: saturate(1.08) contrast(1.03);
}

.symbol-slot.spinning .symbol-art {
    animation: reelBlur 130ms linear infinite;
}

.symbol-slot.winning {
    box-shadow: inset 0 0 0 2px var(--wattle), 0 0 22px rgba(242, 200, 75, 0.62);
    animation: winPulse 620ms ease-in-out 2;
}

.symbol-slot.popping {
    animation: popAway 380ms ease forwards;
}

.symbol-slot.drop-in {
    animation: dropIn 360ms cubic-bezier(0.2, 0.88, 0.2, 1.15);
}

.game-controls {
    margin-top: 16px;
}

.stake-control {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-button {
    min-height: 40px;
    padding: 8px 13px;
    border-radius: var(--radius);
    border: 1px solid rgba(22, 33, 24, 0.2);
    background: #f0dfbd;
    color: #1b241b;
    font-weight: 800;
    cursor: pointer;
}

.chip-button.active,
.chip-button:hover {
    background: var(--soil);
    color: white;
}

.game-message {
    min-height: 58px;
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: var(--radius);
    background: #172119;
    color: var(--ink);
    font-weight: 700;
}

.rules-panel {
    padding: 22px;
}

.rules-panel h2 {
    font-size: 1.35rem;
}

.rules-panel p {
    color: #445044;
}

.coral-stage {
    display: flex;
    align-items: center;
    gap: 18px;
}

.petal {
    position: absolute;
    z-index: 3;
    width: 8px;
    height: 14px;
    border-radius: 8px 8px 8px 0;
    background: var(--flower);
    pointer-events: none;
    animation: petalFall 880ms ease-out forwards;
}

.policy-hero {
    padding: 72px 0 46px;
    background: radial-gradient(circle at 82% 20%, rgba(232, 111, 152, 0.15), transparent 28%), #172219;
}

.policy-hero p {
    max-width: 820px;
    color: var(--ink-muted);
}

.policy-content {
    padding: 54px 0 88px;
}

.policy-wrap {
    max-width: 900px;
}

.policy-wrap article {
    padding: 30px;
    border-radius: var(--radius);
    background: #fffaf0;
    border: 1px solid rgba(22, 33, 24, 0.14);
}

.policy-wrap h2 {
    margin-top: 30px;
    font-size: 1.45rem;
}

.policy-wrap h2:first-child {
    margin-top: 0;
}

.policy-wrap p,
.policy-wrap li,
.policy-table {
    color: #3b463d;
}

.policy-wrap a {
    color: #126d67;
    font-weight: 800;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid rgba(22, 33, 24, 0.15);
    border-radius: var(--radius);
    background: #fff5e4;
    overflow: hidden;
}

.faq-list summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    color: #172119;
    font-weight: 900;
    cursor: pointer;
}

.faq-list summary::after {
    content: "+";
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #172119;
    color: var(--wattle);
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list details p {
    margin: 0;
    padding: 0 16px 16px;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.95rem;
}

.policy-table th,
.policy-table td {
    padding: 12px;
    border: 1px solid rgba(22, 33, 24, 0.16);
    text-align: left;
    vertical-align: top;
}

.policy-table th {
    background: #e8d6b6;
}

.site-footer {
    background: #0f1712;
    color: var(--ink-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, 0.6fr)) minmax(180px, 0.7fr);
    gap: 26px;
    padding: 44px 0;
}

.site-footer h2 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--ink);
}

.site-footer a {
    display: block;
    margin: 7px 0;
    color: var(--ink-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--wattle);
}

.footer-about p {
    max-width: 480px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
}

.footer-badges span {
    padding: 7px 9px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: var(--wattle);
    font-weight: 800;
    font-size: 0.82rem;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 16px 0;
    font-size: 0.9rem;
}

.age-gate,
.cookie-note {
    position: fixed;
    z-index: 30;
}

.age-gate {
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 12, 9, 0.82);
    backdrop-filter: blur(10px);
}

.age-panel,
.cookie-note {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff8eb;
    color: #1b241b;
    box-shadow: var(--shadow);
}

.age-panel {
    width: min(520px, 100%);
    padding: 26px;
}

.age-panel h2 {
    font-size: 1.7rem;
}

.age-panel p {
    color: #405044;
}

.age-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cookie-note {
    right: 18px;
    bottom: 18px;
    width: min(440px, calc(100% - 36px));
    padding: 16px;
}

.cookie-note p {
    margin-bottom: 12px;
    color: #405044;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes reelBlur {
    from { transform: translateY(-5%) scale(1.04); filter: blur(1px) saturate(1.2); }
    to { transform: translateY(5%) scale(1.04); filter: blur(1px) saturate(1.2); }
}

@keyframes winPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes popAway {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.35) rotate(12deg); opacity: 0; }
}

@keyframes dropIn {
    0% { transform: translateY(-28px) scale(0.96); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes petalFall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--petal-x), var(--petal-y), 0) rotate(220deg);
        opacity: 0;
    }
}

@media (max-width: 920px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-toggle {
        flex-direction: column;
    }

    .site-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: calc(100% + 8px);
        display: none;
        padding: 10px;
        border-radius: var(--radius);
        background: #101812;
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: grid;
    }

    .intro-grid,
    .game-card-grid,
    .game-hero-grid,
    .play-layout,
    .play-layout.wide-game,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .game-card-media {
        height: 220px;
    }

    .safety-layout,
    .faq-preview-layout,
    .home-faq-layout,
    .game-topbar,
    .coral-stage {
        align-items: stretch;
        flex-direction: column;
    }

    .meter-row {
        justify-content: flex-start;
    }

}

@media (max-width: 620px) {
    :root {
        --wrap: min(100% - 24px, 1180px);
    }

    .notice-strip {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        font-size: 0.74rem;
    }

    .header-inner {
        min-height: 64px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: 76vh;
    }

    .hero-inner {
        padding: 58px 0 44px;
    }

    .band {
        padding: 54px 0;
    }

    .game-hero {
        padding: 34px 0 24px;
    }

    .game-hero-grid {
        gap: 20px;
    }

    .game-hero-art {
        max-height: 178px;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .play-band {
        padding: 24px 0 56px;
    }

    .game-shell {
        padding: 12px;
    }

    .slot-board,
    .mini-slot-board,
    .cascade-board {
        gap: 5px;
        padding: 8px;
    }

    .slot-board {
        grid-template-columns: repeat(5, minmax(42px, 1fr));
    }

    .cascade-board {
        grid-template-columns: repeat(6, minmax(34px, 1fr));
    }

    .game-controls,
    .stake-control,
    .hero-actions {
        width: 100%;
    }

    .btn,
    .chip-button {
        flex: 1 1 auto;
    }

    .policy-wrap article {
        padding: 18px;
    }

    .policy-table {
        display: block;
        overflow-x: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
