:root {
    color-scheme: dark;
    --bg: #11100f;
    --surface: #191715;
    --surface-raised: #211e1b;
    --border: #342e29;
    --ink: #fff7ef;
    --muted: #bdb0a5;
    --accent: #ff7d48;
    --accent-light: #ff9a71;
    --shell: 1160px;
    --radius: 18px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #1d100a; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.visually-hidden, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus {
    position: fixed;
    z-index: 10;
    inset: 12px auto auto 12px;
    padding: 12px 16px;
    background: var(--accent);
    color: #20110a;
    border-radius: 8px;
}

.site-header { border-bottom: 1px solid var(--border); background: #151311; }
.header-inner { position: relative; display: flex; min-height: 73px; gap: 24px; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 790; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #21140f; }
.brand-mark .icon { width: 24px; height: 24px; stroke-width: 2; }
.brand-accent { color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a, .mobile-nav a { color: var(--muted); font-size: .86rem; font-weight: 600; }
.header-nav a:hover, .header-nav [aria-current] { color: var(--accent-light); }
.header-search, .mobile-nav summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 650;
    white-space: nowrap;
}
.header-search:hover, .mobile-nav summary:hover { background: var(--surface-raised); }
.header-search .icon { width: 17px; height: 17px; color: var(--accent-light); }
.mobile-nav { display: none; }

.main-content { min-height: 55vh; }
.hero {
    isolation: isolate;
    position: relative;
    min-height: 428px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 32px;
    border: 1px solid #3b2b20;
    border-radius: 24px;
    background: radial-gradient(ellipse at 78% 85%, #2d190f, transparent 58%), #171310;
}
.hero-copy { position: relative; z-index: 1; width: min(66%, 700px); padding: 46px 0 48px 49px; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent-light);
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.signal { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #ff7d48a0; }
.hero h1, .profile-hero h1, .legal-page h1 {
    font-size: clamp(2rem, 4.4vw, 3.75rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.066em;
    text-wrap: balance;
}
.hero h1 { margin: 15px 0 18px; max-width: 625px; text-wrap: wrap; }
.hero-description { max-width: 540px; font-size: .94rem; line-height: 1.7; color: #ccbeb2; }
.hero-description strong { color: var(--ink); }
.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 46px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #25120a;
    background: var(--accent);
    font-size: .87rem;
    font-weight: 750;
}
.primary-button:hover { background: #ff9a71; }
.primary-button .icon, .secondary-button .icon { width: 17px; height: 17px; }
.hero .primary-button { margin-top: 24px; }
.hero-art {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 auto;
    width: 54%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 58% 55%, #4a2411, transparent 64%);
}
.hero-art img {
    position: absolute;
    top: 50%;
    right: -3%;
    width: min(100%, 570px);
    height: auto;
    transform: translateY(-50%);
    mask-image: radial-gradient(ellipse 59% 62% at 58% 50%, #000 57%, transparent 98%);
}
.hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #171310 1%, transparent 40%); }
.hero-rings { position: relative; display: grid; place-items: center; width: 70%; aspect-ratio: 1; border: 1px solid #754022; border-radius: 50%; }
.hero-rings::before, .hero-rings::after { position: absolute; inset: 9%; content: ""; border: 1px solid #9a4e28; border-radius: 50%; }
.hero-rings::after { inset: 19%; opacity: .6; }
.hero-art-mark { display: grid; place-items: center; width: 55%; height: 55%; color: #ff975f; filter: drop-shadow(0 0 22px #d45e21); }
.hero-art-mark .icon { width: 90%; height: 90%; stroke-width: 1.1; }
.catalog-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 17px 0;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.catalog-summary > div { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 2px 12px; }
.catalog-summary > div + div { border-left: 1px solid var(--border); }
.catalog-summary .icon { color: var(--accent-light); }
.catalog-summary strong { display: block; font-size: .9rem; }
.catalog-summary small { display: block; margin-top: 2px; font-size: .73rem; color: var(--muted); }

.directory { padding: 54px 0 0; scroll-margin-top: 10px; }
.breadcrumbs + .directory { padding-top: 10px; }
.directory-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.directory-header h1, .directory-header h2, .related-section h2 { font-size: clamp(1.65rem, 3vw, 2.18rem); letter-spacing: -.048em; line-height: 1.12; font-weight: 770; }
.directory-header p { margin-top: 9px; color: var(--muted); font-size: .91rem; line-height: 1.5; }
.search-form {
    display: flex;
    align-items: stretch;
    min-height: 45px;
    width: min(100%, 300px);
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}
.search-form:focus-within { border-color: var(--accent); }
.search-form input { width: 100%; min-width: 0; padding: 9px 0 9px 14px; outline: none; border: 0; background: transparent; color: var(--ink); font-size: .88rem; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { display: grid; place-items: center; width: 43px; border: 0; background: transparent; color: var(--accent-light); }
.search-form button .icon { width: 18px; height: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filters a {
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--muted);
    font-size: .79rem;
    font-weight: 650;
}
.filters a:hover, .filters [aria-current] { color: var(--accent-light); border-color: #774324; background: #2b1c14; }
.filters .icon { width: 15px; height: 15px; }
.results-header { margin: 20px 0 11px; color: var(--muted); font-size: .79rem; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 0; padding: 0; list-style: none; }
.game-card {
    height: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: linear-gradient(135deg, #201d19, #191715 72%);
    transition: background-color .18s, border-color .18s;
}
.game-card:hover { border-color: #885134; background: #261e18; }
.game-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid #594036; border-radius: 12px; color: #ffaa87; background: #37251c; }
.game-icon .icon { width: 24px; height: 24px; }
.game-icon.tone-rummy { border-color: #573e52; background: #322230; color: #f1a2db; }
.game-icon.tone-slots { border-color: #50462d; background: #332b19; color: #f2c66c; }
.game-icon.tone-spin { border-color: #453b60; background: #29223a; color: #c9b2ff; }
.game-icon.tone-other { border-color: #314946; background: #1e302e; color: #90dcd0; }
.game-copy { display: grid; gap: 5px; min-width: 0; }
.game-name { line-height: 1.13; font-size: .96rem; letter-spacing: -.014em; font-weight: 730; }
.game-meta { display: flex; flex-wrap: wrap; gap: 2px 5px; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.game-arrow { margin-left: auto; padding-left: 1px; flex: 0 0 auto; color: #a49486; }
.game-arrow .icon { width: 16px; height: 16px; }
.game-card:hover .game-arrow { color: var(--accent-light); }
.secondary-button { border-color: var(--border); color: var(--ink); background: var(--surface); }
.secondary-button:hover { border-color: var(--accent); background: var(--surface-raised); }
.show-more { display: flex; margin: 22px auto 0; }
.show-more .icon { rotate: 90deg; }
.empty-state { padding: 26px 14px; color: var(--muted); text-align: center; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 24px 0; color: var(--muted); font-size: .81rem; }
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs [aria-current] { color: var(--ink); }
.breadcrumbs .icon { width: 13px; height: 13px; }
.profile-hero, .legal-page {
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: radial-gradient(ellipse at top right, #332017, transparent 61%), var(--surface);
}
.profile-hero { display: flex; gap: 22px; align-items: flex-start; }
.profile-hero .game-icon { width: 63px; height: 63px; }
.profile-hero .game-icon .icon { width: 32px; height: 32px; }
.profile-hero h1, .legal-page h1 { margin: 9px 0 12px; font-size: clamp(1.9rem, 4.2vw, 3.25rem); text-wrap: wrap; }
.profile-summary, .legal-page p { color: var(--muted); line-height: 1.7; }
.profile-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: 16px; margin-top: 18px; }
.profile-body section { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.profile-body h2 { display: flex; gap: 9px; align-items: center; font-size: 1.12rem; letter-spacing: -.02em; }
.profile-body h2 .icon { color: var(--accent-light); }
.spec-panel h2 { padding: 20px; }
.spec-panel table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.55; }
.spec-panel th, .spec-panel td { padding: 12px 20px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-panel th { width: 35%; font-weight: 650; }
.spec-panel td, .guide-panel li, .guide-panel p { color: var(--muted); }
.guide-panel { padding: 20px; }
.guide-panel ol { padding-left: 21px; font-size: .88rem; line-height: 1.65; }
.guide-panel li + li { margin-top: 9px; }
.guide-panel strong { color: var(--ink); }
.guide-panel p { font-size: .84rem; line-height: 1.55; }
.related-section { margin-top: 36px; }
.related-section h2 { margin-bottom: 14px; }
.legal-page { max-width: 790px; }
.legal-page h2 { margin: 22px 0 6px; font-size: 1.12rem; }
.legal-page p + p, .legal-page p + .primary-button, .legal-page p + .secondary-button { margin-top: 14px; }
.legal-page p a, .disclaimer p a { color: var(--accent-light); text-decoration: underline; text-underline-offset: .14em; }

.share-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #1b1815;
}
.share-rail a, .share-rail button, .share-label {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ded1c5;
}
.share-rail a:hover, .share-rail button:hover { color: var(--accent-light); background: #352318; }
.share-rail .share-toggle { display: none; }
.share-label { color: var(--accent-light); }
.share-rail .icon { width: 17px; height: 17px; }
.share-status:not(:empty) {
    position: absolute;
    right: calc(100% + 7px);
    bottom: 3px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    white-space: nowrap;
    font-size: .76rem;
}
@media (min-width: 980px) {
    .shell { width: min(var(--shell), calc(100% - 126px)); }
    .share-rail { position: fixed; z-index: 3; top: 51%; right: max(11px, calc((100vw - var(--shell)) / 2 - 57px)); transform: translateY(-50%); }
    .share-links { flex-direction: column; }
}
@media (max-width: 979px) {
    .share-rail { width: fit-content; max-width: calc(100% - 32px); margin: 24px 16px 0 auto; }
    .share-links { flex-wrap: wrap; justify-content: flex-end; }
    .share-rail.is-interactive { position: fixed; z-index: 3; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; }
    .is-interactive .share-toggle { display: grid; width: 46px; height: 46px; border: 1px solid #945234; border-radius: 13px; color: var(--accent-light); background: #2b1c14; box-shadow: 0 5px 20px #0007; }
    .is-interactive .share-toggle .icon { width: 20px; height: 20px; }
    .is-interactive .share-links { position: absolute; right: 0; bottom: calc(100% + 7px); flex-direction: column; }
    .is-interactive .share-toggle[aria-expanded="false"] + .share-links, .is-interactive .share-label { display: none; }
    .share-status:not(:empty) { bottom: calc(100% + 7px); right: 0; }
}

.site-footer { margin-top: 62px; padding-top: 28px; background: #171412; border-top: 1px solid var(--border); }
.disclaimer { display: flex; align-items: flex-start; gap: 13px; padding: 15px; border: 1px solid #503627; border-radius: 12px; background: #251a14; }
.disclaimer-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 8px; background: #44281a; color: var(--accent-light); }
.disclaimer-icon .icon { width: 18px; height: 18px; }
.disclaimer p { color: #cfbdb0; font-size: .83rem; line-height: 1.68; }
.disclaimer strong { color: var(--ink); }
.footer-columns { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; padding: 29px 0; }
.footer-brand-note, .footer-bottom { color: var(--muted); font-size: .81rem; }
.footer-brand-note { margin-top: 9px; }
.footer-columns h2 { margin: 0 0 10px; font-size: .86rem; }
.footer-columns nav a { display: block; width: fit-content; padding: 3px 0; font-size: .83rem; color: var(--muted); }
.footer-columns nav a:hover, .footer-bottom a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding: 15px 0; border-top: 1px solid var(--border); }

@media (max-width: 960px) {
    .header-nav { gap: 15px; }
    .hero-copy { width: 66%; padding-left: 30px; }
    .hero-art { width: 52%; }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .shell { width: calc(100% - 32px); }
    .header-inner { min-height: 63px; gap: 10px; }
    .header-nav { display: none; }
    .mobile-nav { display: block; margin-left: auto; }
    .mobile-nav summary { padding: 0; width: 40px; cursor: pointer; list-style: none; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav nav { position: absolute; z-index: 4; top: calc(100% - 3px); right: 0; width: min(230px, 100%); padding: 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-raised); }
    .mobile-nav a { display: block; padding: 10px; border-radius: 7px; }
    .mobile-nav a:hover { background: var(--surface); color: var(--accent-light); }
    .header-search { width: 40px; padding: 0; }
    .header-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .hero { display: block; margin-top: 17px; min-height: 0; border-radius: 17px; }
    .hero-copy { width: 100%; padding: 25px 21px 8px; }
    .hero h1 { font-size: clamp(2rem, 7.1vw, 3.5rem); max-width: 570px; margin-block: 12px; }
    .hero-description { font-size: .88rem; }
    .hero .primary-button { margin-top: 17px; }
    .hero-art { position: relative; inset: auto; width: 100%; height: clamp(170px, 42vw, 270px); }
    .hero-art img { right: auto; width: min(86%, 345px); }
    .hero-art::after { background: linear-gradient(180deg, #171310 1%, transparent 26%); }
    .hero-rings { width: min(46%, 210px); }
    .catalog-summary { margin-top: 11px; padding: 12px 0; border-radius: 13px; }
    .catalog-summary > div { gap: 5px; flex-direction: column; text-align: center; }
    .catalog-summary .icon { width: 16px; height: 16px; }
    .catalog-summary small { display: none; }
    .catalog-summary strong { font-size: .76rem; }
    .directory { padding-top: 38px; }
    .directory-header { display: grid; gap: 15px; }
    .search-form { width: 100%; }
    .filters { margin-top: 14px; }
    .profile-body { grid-template-columns: 1fr; }
    .profile-hero { gap: 14px; }
    .profile-hero .game-icon { width: 49px; height: 49px; }
    .profile-hero .game-icon .icon { width: 24px; height: 24px; }
    .site-footer { margin-top: 38px; }
}
@media (max-width: 490px) {
    .game-grid { grid-template-columns: 1fr; gap: 8px; }
    .game-card { min-height: 65px; padding: 9px; }
    .game-icon { width: 42px; height: 42px; }
    .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
    .footer-columns > div { grid-column: 1 / -1; }
    .profile-hero { display: block; }
    .profile-hero .game-icon { margin-bottom: 12px; }
    .spec-panel th, .spec-panel td { padding: 11px 13px; }
    .share-links { gap: 1px; }
    .share-rail a, .share-rail button, .share-label { width: 29px; height: 34px; }
    .is-interactive .share-links a, .is-interactive .share-links button { width: 36px; height: 35px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .game-card { transition: none; }
}
