:root {
    --bg: #0b0b0d;
    --panel: #141416;
    --gold: #e6c579;
    --red: #e43243;
    --muted: #aaa7a2;
    --line: #2b2928
}

* {
    box-sizing: border-box
}

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

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select {
    font: inherit
}

button,
a,
input,
select {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:disabled {
    opacity: .5;
    cursor: wait
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px
}

.skip {
    position: absolute;
    top: -80px;
    background: var(--gold);
    color: #111;
    padding: 12px;
    z-index: 20
}

.skip:focus {
    top: 0
}

.shell {
    max-width: 1440px;
    margin: auto;
    padding: 0 42px
}

.topbar {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 45px;
    border-bottom: 1px solid var(--line)
}

.logo {
    width: 185px;
    height: auto;
    display: block
}

.topnav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px
}

.topnav a {
    color: #a9a7a2
}

.topnav a.active,
.topnav a:hover {
    color: var(--gold)
}

.top-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center
}

.demo-tag {
    font-size: 10px;
    letter-spacing: 1.5px;
    border: 1px solid #66502b;
    padding: 5px 9px;
    color: var(--gold);
    white-space: nowrap
}

.balance {
    font-size: 13px;
    background: #20201f;
    padding: 9px 14px;
    border-radius: 7px
}

.balance b {
    color: var(--gold)
}

.menu-btn {
    display: none;
    background: none;
    color: white;
    border: 1px solid var(--line);
    padding: 8px 12px
}

.layout {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 34px
}

.sidebar {
    padding-top: 30px;
    border-right: 1px solid var(--line);
    padding-right: 25px
}

.side-caption {
    font-size: 10px;
    color: #77736c;
    letter-spacing: 2px;
    margin: 0 0 13px
}

.side-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 34px
}

.side-links a {
    font-size: 13px;
    color: #bbb8b2;
    padding: 10px 12px;
    border-radius: 6px
}

.side-links a.active {
    color: var(--gold);
    background: #292319
}

.side-links a:hover {
    background: #222
}

.side-icon {
    display: inline-block;
    width: 25px
}

.side-note {
    border: 1px solid var(--line);
    padding: 16px;
    font-size: 11px;
    color: var(--muted)
}

.side-note strong {
    display: block;
    color: var(--gold);
    margin-bottom: 5px
}

main {
    min-width: 0;
    padding: 30px 0 60px
}

.eyebrow {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2.5px;
    color: var(--gold);
    text-transform: uppercase
}

.hero {
    min-height: 385px;
    border: 1px solid #4d3326;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 85% 40%, #612019 0, transparent 60%), linear-gradient(110deg, #211b16, #151013 65%);
    display: flex;
    align-items: center;
    padding: 42px;
    border-radius: 10px
}

.hero-copy {
    max-width: 56%;
    position: relative;
    z-index: 2
}

.hero h1 {
    font-size: 49px;
    line-height: 1.12;
    letter-spacing: -2px;
    margin: 17px 0 18px
}

.hero h1 em {
    font-family: Georgia, serif;
    color: var(--gold);
    font-weight: normal
}

.hero p {
    color: #bfb7af;
    font-size: 13px;
    max-width: 355px
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    padding: 12px 19px;
    border-radius: 5px;
    background: var(--gold);
    color: #20190d;
    font-size: 12px;
    font-weight: bold
}

.btn.red {
    background: var(--red);
    color: white
}

.btn.outline {
    background: transparent;
    border-color: #4b4438;
    color: #eee
}

.hero .btn {
    margin-top: 14px
}

.hero-art {
    position: absolute;
    width: 43%;
    right: 1%;
    height: 100%;
    top: 0;
    display: grid;
    place-items: center
}

.orbit {
    width: 285px;
    height: 285px;
    border: 1px solid #a2783866;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 0 28px #9e66300b, 0 0 0 57px #9e663008
}

.big-card {
    width: 142px;
    height: 205px;
    border-radius: 13px;
    border: 2px solid #e6c579;
    background: linear-gradient(145deg, #32261a, #0c0c0d);
    position: absolute;
    display: grid;
    place-items: center;
    font-size: 95px;
    color: var(--gold);
    box-shadow: 0 20px 40px #0008;
    transform: rotate(-16deg) translate(-33px, -2px)
}

.big-card.second {
    color: #d92e3d;
    transform: rotate(15deg) translate(46px, 12px);
    background: linear-gradient(145deg, #4a171c, #150f12)
}

.chip {
    position: absolute;
    bottom: 58px;
    right: 29px;
    background: repeating-conic-gradient(#e6c579 0 15deg, #45361f 15deg 30deg);
    border: 7px solid #d1a75c;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    color: #e6c579;
    box-shadow: 0 12px 30px #0008;
    transform: rotate(-20deg)
}

.chip span {
    background: #342318;
    border-radius: 50%;
    padding: 10px;
    font-size: 24px
}

.hero-bottom {
    position: absolute;
    bottom: 15px;
    left: 42px;
    font-size: 9px;
    letter-spacing: 1.3px;
    color: #988571
}

.quick-strip {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
    padding: 20px 3px;
    font-size: 11px;
    color: #b1ada6
}

.quick-strip span:first-child {
    color: var(--gold)
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    margin: 29px 0 17px
}

.section-head h2 {
    font-size: 22px;
    letter-spacing: -.6px;
    margin: 0
}

.section-head a {
    font-size: 11px;
    color: var(--gold)
}

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

.game-art {
    display: flex;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 185px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: radial-gradient(circle at 50% 35%, #7a5423, #271b0e 70%);
    border: 1px solid #ffffff0d
}

.game-art.red {
    background: radial-gradient(circle at 50% 35%, #922d36, #2a1118 70%)
}

.game-art.blue {
    background: radial-gradient(circle at 50% 35%, #315d75, #0f1c2a 70%)
}

.game-art.purple {
    background: radial-gradient(circle at 50% 35%, #695093, #20172f 70%)
}

.game-art.green {
    background: radial-gradient(circle at 50% 35%, #3b6953, #10251d 70%)
}

.game-art.pink {
    background: radial-gradient(circle at 50% 35%, #8b486e, #301323 70%)
}

.art-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 1px solid #e6c57955;
    transform: rotate(45deg);
    box-shadow: 0 0 0 12px #e6c57906, 0 0 0 25px #e6c57903
}

.art-icon {
    font-family: Georgia, serif;
    font-size: 100px;
    color: #f1d18b;
    text-shadow: 0 9px 15px #0008;
    transition: transform .25s
}

.game-art:hover .art-icon {
    transform: scale(1.1) rotate(-5deg)
}

.art-label {
    position: absolute;
    bottom: 12px;
    font-size: 7px;
    letter-spacing: 2px;
    color: #dfccac
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: #000a;
    display: grid;
    place-items: center;
    opacity: 0;
    font-size: 13px;
    color: var(--gold);
    transition: .2s
}

.game-art:hover .play-overlay,
.game-art:focus .play-overlay {
    opacity: 1
}

.card-caption {
    display: flex;
    justify-content: space-between;
    padding: 12px 1px
}

.card-caption h3 {
    font-size: 14px;
    margin: 0
}

.card-caption p {
    font-size: 10px;
    color: #918d87;
    margin: 3px 0
}

.favorite {
    border: 0;
    background: none;
    color: #a09a90;
    font-size: 24px;
    padding: 0 4px
}

.favorite[aria-pressed=true] {
    color: var(--gold)
}

.banner {
    margin-top: 28px;
    background: linear-gradient(100deg, #251c13, #211418);
    border: 1px solid #574129;
    border-radius: 8px;
    padding: 23px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.banner h2 {
    font: 24px Georgia, serif;
    margin: 0 0 5px;
    color: var(--gold)
}

.banner p {
    font-size: 12px;
    margin: 0;
    color: #b3aaa0
}

.lower-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    margin: 28px 0
}

.editorial {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel)
}

.editorial h2 {
    font: 24px Georgia, serif
}

.editorial p {
    font-size: 13px;
    color: #b3afa9
}

.text-link {
    font-size: 12px;
    color: var(--gold)
}

.mini-list {
    padding: 0;
    list-style: none;
    color: #bbb7ae;
    font-size: 12px
}

.mini-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line)
}

.mini-list span {
    color: var(--gold);
    margin-right: 12px
}

.page-head {
    margin: 12px 0 30px
}

.crumb {
    font-size: 11px;
    color: #98918a
}

.page-head h1 {
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 17px 0 12px
}

.page-head p {
    font-size: 14px;
    color: var(--muted);
    max-width: 680px
}

.reading {
    max-width: 800px
}

.reading section,
.info-box {
    margin-bottom: 25px;
    padding: 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 7px
}

.reading h2,
.info-box h2 {
    font-size: 20px;
    margin: 0 0 13px
}

.reading p,
.info-box p {
    font-size: 14px;
    line-height: 1.9;
    color: #bcb7b0;
    margin: 0
}

.faq-list details {
    padding: 19px 0;
    border-bottom: 1px solid var(--line)
}

summary {
    cursor: pointer;
    font-size: 14px;
    padding-right: 16px
}

details p {
    color: var(--muted);
    font-size: 13px;
    max-width: 760px;
    line-height: 1.8
}

.search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 25px
}

input,
select {
    background: #1b1b1e;
    color: white;
    border: 1px solid #49433a;
    border-radius: 5px;
    padding: 12px;
    max-width: 100%
}

.search-row input {
    flex: 1;
    min-width: 180px
}

.pill {
    background: #211c15;
    color: var(--gold);
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 20px
}

.game-stage {
    border: 1px solid #62492c;
    border-radius: 12px;
    background: radial-gradient(ellipse at center, #342418, #101013 75%);
    min-height: 340px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 20px
}

.game-stage h2 {
    font-size: 13px;
    font-weight: normal;
    color: var(--gold);
    letter-spacing: 2px;
    margin: 0
}

.reels {
    display: flex;
    gap: 14px
}

.reel {
    display: grid;
    place-items: center;
    background: linear-gradient(#f5e9c7, #d7b672);
    color: #7c3519;
    border-radius: 10px;
    width: 100px;
    height: 125px;
    font: 65px Georgia, serif;
    box-shadow: inset 0 0 0 5px #a88b4d
}

.reels.spinning .reel {
    animation: pulse .2s infinite alternate
}

@keyframes pulse {
    to {
        transform: translateY(7px);
        opacity: .6
    }
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap
}

.result {
    min-height: 30px;
    color: var(--gold);
    font-size: 14px;
    margin: 0
}

.round-display {
    font-size: 50px;
    color: var(--gold);
    min-height: 75px
}

.wheel {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(#b62d3a 0 168deg, #17171a 168deg 336deg, #e6c579 336deg);
    border: 7px double #e6c579;
    display: grid;
    place-items: center;
    font-size: 45px;
    transition: transform .7s
}

.color-btn {
    padding: 10px 15px;
    background: #8e2330;
    color: white;
    border: 1px solid #b98a53;
    border-radius: 5px
}

.color-btn[data-color=black] {
    background: #111
}

.color-btn[data-color=gold] {
    background: #e6c579;
    color: #111
}

.color-btn[aria-pressed=true] {
    outline: 3px solid white;
    outline-offset: 3px
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    gap: 10px
}

.mem-card {
    height: 65px;
    border: 1px solid #b68d4e;
    background: #2e211b;
    color: var(--gold);
    font-size: 30px;
    border-radius: 5px
}

.mem-card.matched {
    background: #3c5333
}

.sitemap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.sitemap-grid a {
    display: block;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    font-size: 13px
}

.empty {
    padding: 30px;
    color: var(--muted);
    border: 1px dashed #65513a
}

.footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
    font-size: 11px;
    color: #85817a
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center
}

.footer-logo {
    width: 130px
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #242222;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 10px
}

.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 22px;
    background: #e6c579;
    color: #21190b;
    z-index: 30;
    box-shadow: 0 5px 30px #0008;
    border-radius: 5px;
    font-size: 13px;
    max-width: 90vw
}

.toast:empty {
    display: none
}

.result-actions {
    margin: 20px 0
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap
}

button.reset {
    background: transparent;
    color: var(--gold);
    border: 1px solid #5b4930;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 11px
}

[hidden] {
    display: none !important
}

@media(min-width:1500px) {
    .hero {
        min-height: 420px
    }

    .game-art {
        height: 210px
    }
}

@media(max-width:1100px) {
    .shell {
        padding: 0 24px
    }

    .layout {
        grid-template-columns: 160px 1fr;
        gap: 24px
    }

    .sidebar {
        padding-right: 15px
    }

    .topbar {
        gap: 25px
    }

    .topnav {
        gap: 18px
    }

    .hero {
        padding: 30px
    }

    .hero h1 {
        font-size: 40px
    }

    .hero-art {
        right: -20px
    }

    .big-card {
        width: 110px;
        height: 165px;
        font-size: 75px
    }

    .orbit {
        width: 220px;
        height: 220px
    }

    .chip {
        right: 16px;
        bottom: 65px;
        width: 70px;
        height: 70px
    }

    .chip span {
        font-size: 17px
    }

    .game-art {
        height: 155px
    }

    .art-icon {
        font-size: 80px
    }
}

@media(max-width:800px) {
    .topnav {
        display: none
    }

    .layout {
        grid-template-columns: 1fr
    }

    .sidebar {
        display: none
    }

    .sidebar.open {
        display: block;
        border: 1px solid var(--line);
        padding: 20px;
        margin-top: 18px
    }

    .menu-btn {
        display: block
    }

    .hero {
        min-height: 350px
    }

    .hero-copy {
        max-width: 58%
    }

    .hero h1 {
        font-size: 42px
    }

    .topbar {
        height: 74px
    }

    .quick-strip {
        gap: 20px
    }

    .game-art {
        height: 180px
    }

    .sidebar .side-note {
        display: none
    }

    .sidebar .side-links {
        margin: 0
    }

    .sidebar .side-caption {
        margin-top: 10px
    }

    .lower-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:540px) {
    .shell {
        padding: 0 17px
    }

    .logo {
        width: 132px
    }

    .topbar {
        gap: 8px
    }

    .top-actions {
        gap: 8px
    }

    .demo-tag {
        display: none
    }

    .balance {
        font-size: 10px;
        padding: 7px
    }

    .menu-btn {
        font-size: 13px;
        padding: 6px 9px
    }

    main {
        padding-top: 18px
    }

    .hero {
        padding: 26px 23px;
        min-height: 430px;
        align-items: flex-start
    }

    .hero-copy {
        max-width: 90%
    }

    .hero h1 {
        font-size: 38px;
        margin-top: 12px
    }

    .hero p {
        font-size: 12px;
        max-width: 260px
    }

    .hero-art {
        width: 45%;
        height: 170px;
        top: auto;
        bottom: 7px;
        right: 5px;
        opacity: .8
    }

    .big-card {
        width: 71px;
        height: 100px;
        font-size: 43px
    }

    .orbit {
        width: 125px;
        height: 125px
    }

    .chip {
        width: 45px;
        height: 45px;
        bottom: 12px;
        right: 12px;
        border-width: 4px
    }

    .chip span {
        padding: 3px;
        font-size: 12px
    }

    .hero-bottom {
        bottom: 22px;
        left: 23px;
        max-width: 140px;
        font-size: 8px
    }

    .hero .btn {
        padding: 11px 14px
    }

    .quick-strip {
        font-size: 9px;
        gap: 13px;
        padding: 17px 0;
        justify-content: space-between
    }

    .game-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px
    }

    .game-art {
        height: 155px
    }

    .art-icon {
        font-size: 82px
    }

    .art-ring {
        width: 105px;
        height: 105px
    }

    .art-label {
        font-size: 5px
    }

    .section-head h2 {
        font-size: 19px
    }

    .section-head a {
        font-size: 10px
    }

    .card-caption h3 {
        font-size: 12px
    }

    .card-caption p {
        font-size: 9px
    }

    .favorite {
        font-size: 21px
    }

    .banner {
        padding: 20px;
        display: block
    }

    .banner h2 {
        font-size: 22px
    }

    .banner .btn {
        margin-top: 15px
    }

    .lower-grid {
        grid-template-columns: 1fr
    }

    .page-head h1 {
        font-size: 30px
    }

    .page-head p {
        font-size: 13px
    }

    .reading section,
    .info-box {
        padding: 21px
    }

    .reading p {
        font-size: 13px
    }

    .footer-top,
    .footer-bottom {
        display: block
    }

    .footer-links {
        gap: 14px;
        margin: 20px 0
    }

    .game-stage {
        padding: 25px 12px
    }

    .reel {
        width: 75px;
        height: 100px;
        font-size: 50px
    }

    .reels {
        gap: 10px
    }

    .sitemap-grid {
        grid-template-columns: 1fr
    }

    .controls .btn {
        padding: 11px 15px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

