:root {
    color-scheme: dark;
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    background: #080c0b;
    color: #f4f7f5;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --mint: #7cf5bd;
    --muted: #9ba9a2;
    --panel: #101714;
    --line: rgba(198, 230, 213, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.accessibility-large-text {
    font-size: 112%;
}

html.accessibility-high-contrast {
    --mint: #a5ffd1;
    --muted: #e2efe8;
    --line: rgba(255, 255, 255, 0.28);
}

html.accessibility-high-contrast body {
    color: #fff;
}

html.accessibility-high-contrast .site-content,
html.accessibility-high-contrast .game-card,
html.accessibility-high-contrast .game-center-panel {
    border-color: rgba(255, 255, 255, 0.3);
}

html.accessibility-reduce-motion,
html.accessibility-reduce-motion *,
html.accessibility-reduce-motion *::before,
html.accessibility-reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
}

body {
    background:
        radial-gradient(ellipse at 82% 3%, rgba(46, 158, 106, 0.15), transparent 34rem),
        radial-gradient(ellipse at 4% 46%, rgba(27, 74, 54, 0.11), transparent 30rem),
        #080c0b;
    margin: 0;
    min-width: 320px;
}

a {
    color: inherit;
}

.skip-link {
    background: var(--mint);
    border-radius: 0 0 8px 8px;
    color: #07110b;
    font-size: 0.85rem;
    font-weight: 700;
    left: 16px;
    padding: 10px 14px;
    position: absolute;
    text-decoration: none;
    top: 0;
    transform: translateY(-120%);
    transition: transform 160ms ease;
    z-index: 20;
}

.skip-link:focus {
    transform: translateY(0);
}

.topbar {
    align-items: center;
    background: #0b100e;
    border-bottom: 1px solid var(--line);
    color: #aebbb4;
    display: flex;
    font-size: 0.75rem;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
}

.topbar > span::before {
    background: var(--mint);
    border-radius: 50%;
    content: '';
    display: inline-block;
    height: 6px;
    margin: 0 8px 1px 0;
    width: 6px;
}

.topbar-links {
    display: flex;
    gap: 20px;
}

.topbar-links a {
    text-decoration: none;
    transition: color 160ms ease;
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
    color: var(--mint);
}

.site-header {
    align-items: center;
    background: rgba(8, 12, 11, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
}

.site-brand {
    align-items: center;
    color: #f4f7f5;
    display: inline-flex;
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    gap: 10px;
    letter-spacing: -0.07em;
    text-decoration: none;
}

.site-brand::before {
    align-items: center;
    background: var(--mint);
    border-radius: 9px;
    color: #08110c;
    content: 'M';
    display: inline-flex;
    font-size: 0.9rem;
    height: 31px;
    justify-content: center;
    letter-spacing: -0.04em;
    width: 31px;
}

.pwa-install-button {
    background: rgba(124, 245, 189, 0.1);
    border: 1px solid rgba(124, 245, 189, 0.35);
    border-radius: 7px;
    color: var(--mint);
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 650;
    padding: 8px 11px;
}

.pwa-install-button:hover,
.pwa-install-button:focus-visible {
    background: rgba(124, 245, 189, 0.18);
}

.site-menu {
    display: flex;
    gap: 28px;
}

.site-menu a {
    color: #aebbb4;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 160ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu a[aria-current='page'] {
    color: var(--mint);
}

.accessibility-tools {
    align-self: center;
    position: relative;
    z-index: 15;
}

.accessibility-tools summary {
    align-items: center;
    background: rgba(124, 245, 189, 0.07);
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 7px;
    color: var(--mint);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.77rem;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    list-style: none;
    width: 40px;
}

.accessibility-tools summary::-webkit-details-marker {
    display: none;
}

.accessibility-tools fieldset {
    background: #101714;
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 12px 30px #0008;
    display: grid;
    gap: 11px;
    min-width: 205px;
    padding: 13px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
}

.accessibility-tools legend {
    color: #e5f0e8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 5px;
}

.accessibility-tools label {
    align-items: center;
    color: #c0cbc3;
    display: flex;
    font-size: 0.72rem;
    gap: 8px;
}

.accessibility-tools input {
    accent-color: var(--mint);
    height: 16px;
    width: 16px;
}

.site-content {
    min-height: calc(100vh - 190px);
}

.arcade-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px 76px;
}

.hero {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr 0.82fr;
    min-height: 440px;
    overflow: hidden;
    padding: 48px 0 40px;
}

.hero-copy {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    align-items: center;
    color: var(--mint);
    display: flex;
    font-size: 0.73rem;
    font-weight: 700;
    gap: 9px;
    letter-spacing: 0.15em;
    margin: 0 0 19px;
    text-transform: uppercase;
}

.status-dot {
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(124, 245, 189, 0.7);
    height: 7px;
    width: 7px;
}

.hero h1 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: clamp(3.2rem, 7.1vw, 5.9rem);
    letter-spacing: -0.085em;
    line-height: 0.98;
    margin: 0;
}

.hero h1 span {
    color: var(--mint);
}

.hero-description {
    color: #a5b1ab;
    font-size: 1rem;
    line-height: 1.8;
    margin: 24px 0;
    max-width: 450px;
}

.hero-button,
.play-button {
    align-items: center;
    background: var(--mint);
    border: 1px solid var(--mint);
    border-radius: 8px;
    color: #07110b;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    justify-content: space-between;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-button {
    gap: 24px;
    padding: 13px 17px;
}

.hero-button:hover,
.hero-button:focus-visible,
.play-button:hover,
.play-button:focus-visible {
    background: transparent;
    color: var(--mint);
    transform: translateY(-2px);
}

.hero-note {
    color: #78867e;
    font-size: 0.74rem;
    margin: 14px 0 0;
}

.hero-art {
    align-items: center;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    justify-self: end;
    max-width: 405px;
    position: relative;
    width: 100%;
}

.hero-art::before {
    background: radial-gradient(circle, rgba(51, 170, 116, 0.25), rgba(16, 53, 37, 0.12) 46%, transparent 70%);
    content: '';
    inset: 0;
    position: absolute;
    animation: hero-glow 5s ease-in-out infinite alternate;
}

.orbit {
    border: 1px solid rgba(124, 245, 189, 0.18);
    border-radius: 50%;
    position: absolute;
}

.orbit-one {
    height: 73%;
    transform: rotate(-25deg) scaleY(0.48);
    width: 115%;
}

.orbit-two {
    height: 73%;
    transform: rotate(35deg) scaleY(0.48);
    width: 115%;
}

.hero-chip {
    align-items: center;
    background: linear-gradient(145deg, #c2ffdf, #55d99c 55%, #218457);
    border: 9px double rgba(6, 37, 23, 0.72);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(164, 255, 209, 0.7), 0 0 80px rgba(79, 236, 156, 0.2), inset 0 0 30px rgba(4, 70, 39, 0.26);
    color: #082a19;
    display: flex;
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 700;
    height: 52%;
    justify-content: center;
    letter-spacing: -0.1em;
    padding-right: 9px;
    position: relative;
    transform: rotate(-12deg);
    width: 52%;
}

.floating-mark {
    color: var(--mint);
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    position: absolute;
    text-shadow: 0 0 25px rgba(124, 245, 189, 0.35);
}

.mark-seven {
    font-size: 2.4rem;
    right: 11%;
    top: 19%;
    transform: rotate(12deg);
}

.mark-diamond {
    bottom: 20%;
    font-size: 2.8rem;
    left: 12%;
    opacity: 0.75;
    transform: rotate(-12deg);
}

.mark-star {
    color: #d7ff61;
    font-size: 1.5rem;
    right: 17%;
    bottom: 24%;
}

.hero-art-caption {
    bottom: 2%;
    color: #74867a;
    font-size: 0.63rem;
    letter-spacing: 0.28em;
    position: absolute;
}

.trust-strip {
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 23px 0;
}

.trust-strip > div {
    align-items: center;
    display: flex;
    gap: 13px;
    justify-content: center;
}

.trust-strip > div + div {
    border-left: 1px solid var(--line);
}

.strip-icon {
    align-items: center;
    background: rgba(124, 245, 189, 0.08);
    border: 1px solid rgba(124, 245, 189, 0.12);
    border-radius: 9px;
    color: var(--mint);
    display: inline-flex;
    font-size: 1rem;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.trust-strip strong,
.trust-strip small {
    display: block;
}

.trust-strip strong {
    font-size: 0.82rem;
    font-weight: 600;
}

.trust-strip small {
    color: #7e8b84;
    font-size: 0.71rem;
    margin-top: 4px;
}

.games-section {
    padding: 66px 0 70px;
    scroll-margin-top: 24px;
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

.section-heading h2,
.arcade-note h2 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    letter-spacing: -0.055em;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    margin: 0;
}

.heading-period {
    color: var(--mint);
}

.games-description {
    color: #87958d;
    font-size: 0.9rem;
    margin: 9px 0 0;
}

.game-count {
    border: 1px solid var(--line);
    border-radius: 99px;
    color: #aab7af;
    font-size: 0.72rem;
    padding: 8px 12px;
    white-space: nowrap;
}

.games-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
}

.game-discovery-tools {
    display: grid;
    gap: 11px;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
    margin-bottom: 18px;
}

.game-search-label {
    align-self: center;
    color: #aebbb4;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-search-input {
    background: #101714;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #f4f7f5;
    font: inherit;
    font-size: 0.8rem;
    min-height: 42px;
    padding: 0 12px;
}

.game-search-input:focus-visible {
    border-color: var(--mint);
    outline: 2px solid rgba(124, 245, 189, 0.25);
    outline-offset: 2px;
}

.game-discovery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    grid-column: 1 / -1;
}

.game-discovery-filters button,
.game-favorite-toggle {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #aebbb4;
    cursor: pointer;
    font: inherit;
    font-size: 0.69rem;
    padding: 8px 12px;
}

.game-discovery-filters button.is-active,
.game-discovery-filters button[aria-pressed="true"],
.game-favorite-toggle.is-favorite {
    background: rgba(124, 245, 189, 0.1);
    border-color: rgba(124, 245, 189, 0.34);
    color: var(--mint);
}

.game-favorite-toggle {
    border-radius: 7px;
    margin: 4px 0 12px;
}

.game-search-empty {
    color: #aebbb4;
    font-size: 0.8rem;
    grid-column: 1 / -1;
}

.game-search-empty[hidden] {
    display: none;
}

.arcade-progress-save {
    background: rgba(124, 245, 189, 0.055);
    border: 1px solid rgba(124, 245, 189, 0.16);
    border-radius: 8px;
    color: #b9ddc9;
    font-size: 0.7rem;
    line-height: 1.55;
    margin: 8px auto 24px;
    max-width: 900px;
    padding: 10px 14px;
    width: calc(100% - 40px);
}

.game-card {
    background: linear-gradient(150deg, rgba(20, 30, 25, 0.97), rgba(12, 17, 14, 0.97));
    border: 1px solid var(--line);
    border-radius: 13px;
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
    border-color: rgba(124, 245, 189, 0.38);
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.22);
    transform: translateY(-4px);
}

.card-art {
    align-items: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(124, 245, 189, 0.13), transparent 36%),
        linear-gradient(135deg, #14271d, #102019 55%, #111512);
    display: flex;
    height: 150px;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-art.has-thumbnail {
    background: #101714;
}

.game-thumbnail {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.card-art.has-thumbnail::before,
.card-art.has-thumbnail::after {
    display: none;
}

.card-art.has-thumbnail .game-icon,
.card-art.has-thumbnail .card-art-spark {
    display: none;
}

.card-art.has-thumbnail .game-thumbnail {
    z-index: 0;
}

.card-art.has-thumbnail .card-category {
    z-index: 1;
}

.card-art::before,
.card-art::after {
    border: 1px solid rgba(124, 245, 189, 0.11);
    border-radius: 50%;
    content: '';
    height: 175px;
    position: absolute;
    transform: rotate(-23deg) scaleY(0.5);
    width: 285px;
}

.card-art::after {
    transform: rotate(26deg) scaleY(0.5);
}

.game-card-1 .card-art {
    background:
        radial-gradient(circle at 50% 50%, rgba(126, 91, 232, 0.19), transparent 40%),
        linear-gradient(135deg, #1d1930, #171522 60%, #111318);
}

.game-card-2 .card-art {
    background:
        radial-gradient(circle at 50% 50%, rgba(229, 175, 72, 0.17), transparent 40%),
        linear-gradient(135deg, #282116, #1c1914 60%, #111411);
}

.game-card-3 .card-art {
    background:
        radial-gradient(circle at 50% 50%, rgba(56, 167, 206, 0.18), transparent 40%),
        linear-gradient(135deg, #14242b, #131b20 60%, #111411);
}

.card-category {
    background: rgba(8, 12, 11, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 99px;
    color: #cad6cf;
    font-size: 0.63rem;
    left: 13px;
    padding: 6px 9px;
    position: absolute;
    top: 13px;
}

.game-status-badge {
    align-items: center;
    background: rgba(8, 12, 11, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    color: #d4e0d8;
    display: inline-flex;
    font-size: 0.63rem;
    justify-content: center;
    padding: 6px 9px;
}

.card-art > .game-status-badge {
    position: absolute;
    right: 13px;
    top: 13px;
    z-index: 2;
}

.game-status-live {
    border-color: rgba(124, 245, 189, 0.38);
    color: #a9f5c8;
}

.game-status-coming_soon {
    border-color: rgba(135, 190, 255, 0.4);
    color: #b9d8ff;
}

.game-status-development {
    border-color: rgba(196, 165, 255, 0.4);
    color: #d2bdff;
}

.game-status-maintenance {
    border-color: rgba(255, 204, 122, 0.4);
    color: #ffdc9f;
}

.game-status-offline {
    border-color: rgba(255, 140, 140, 0.4);
    color: #ffb3b3;
}

.game-icon {
    color: var(--mint);
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    position: relative;
    text-shadow: 0 0 28px rgba(124, 245, 189, 0.36);
    z-index: 1;
}

.game-card-1 .game-icon {
    color: #c2a7ff;
}

.game-card-2 .game-icon {
    color: #f0c86b;
}

.game-card-3 .game-icon {
    color: #82d9f3;
}

.card-art-spark {
    color: rgba(231, 255, 242, 0.45);
    font-size: 0.9rem;
    position: absolute;
    right: 18%;
    top: 28%;
}

.game-card-content {
    padding: 17px;
}

.game-title-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.game-card h3 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 1.12rem;
    letter-spacing: -0.025em;
    margin: 0;
}

.game-card-number {
    color: #59675f;
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 0.68rem;
}

.game-card-content p {
    color: #849188;
    font-size: 0.77rem;
    line-height: 1.6;
    margin: 8px 0 18px;
}

.play-button {
    border-radius: 6px;
    font-size: 0.76rem;
    padding: 10px 12px;
    width: 100%;
}

.play-button-disabled {
    background: #202a24;
    border-color: rgba(198, 230, 213, 0.12);
    color: #a0ada5;
    cursor: not-allowed;
    justify-content: center;
    pointer-events: none;
}

.empty-games {
    background: var(--panel);
    border: 1px dashed rgba(198, 230, 213, 0.2);
    border-radius: 12px;
    color: var(--muted);
    padding: 45px 24px;
    text-align: center;
}

.empty-games > span {
    color: var(--mint);
    font-size: 1.7rem;
}

.empty-games h3 {
    color: #f4f7f5;
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    margin: 12px 0 6px;
}

.empty-games p {
    font-size: 0.84rem;
    margin: 0;
}

.arcade-note {
    align-items: center;
    background: linear-gradient(105deg, rgba(24, 62, 43, 0.55), rgba(16, 26, 21, 0.8));
    border: 1px solid rgba(124, 245, 189, 0.14);
    border-radius: 12px;
    display: flex;
    gap: 17px;
    padding: 23px 25px;
}

.note-mark {
    align-items: center;
    background: rgba(124, 245, 189, 0.1);
    border-radius: 10px;
    color: var(--mint);
    display: flex;
    flex: 0 0 42px;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
}

.arcade-note h2 {
    font-size: 1rem;
    margin: 0 0 5px;
}

.arcade-note p {
    color: #9ba9a2;
    font-size: 0.77rem;
    margin: 0;
}

.arcade-note > a {
    color: var(--mint);
    font-size: 0.76rem;
    font-weight: 600;
    margin-left: auto;
    text-decoration: none;
    white-space: nowrap;
}

.arcade-note > a span {
    margin-left: 5px;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: #77847c;
    font-size: 0.75rem;
    padding: 20px 24px;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer {
    background: rgba(7, 10, 9, 0.45);
}

.site-footer-content {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: center;
}

.site-footer-content a {
    color: var(--mint);
    text-decoration: none;
}

.site-footer-content a:hover,
.site-footer-content a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px 76px;
}

.about-hero {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 36px;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 440px;
    overflow: hidden;
    padding: 56px 0;
}

.about-hero-copy {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.about-hero-copy .eyebrow,
.about-section-heading .eyebrow,
.about-wallet .eyebrow,
.about-bottom .eyebrow {
    margin: 0 0 16px;
}

.about-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    letter-spacing: -0.08em;
    line-height: 1.02;
    margin: 0;
    max-width: 680px;
}

.about-hero h1 > span,
.about-section-heading h2,
.about-bottom h2 {
    color: var(--mint);
}

.about-lead {
    color: #a5b1ab;
    font-size: 1.02rem;
    line-height: 1.8;
    margin: 24px 0;
    max-width: 570px;
}

.about-actions,
.about-bottom-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.about-actions .hero-button {
    justify-content: center;
}

.about-text-link,
.about-bottom-links a {
    color: var(--mint);
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
}

.about-text-link:hover,
.about-text-link:focus-visible,
.about-bottom-links a:hover,
.about-bottom-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.about-hero-art {
    align-items: center;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    justify-self: end;
    max-width: 390px;
    position: relative;
    width: 100%;
}

.about-hero-orbit {
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 50%;
    position: absolute;
}

.about-hero-orbit-one {
    height: 88%;
    transform: rotate(-24deg) scaleY(0.62);
    width: 88%;
}

.about-hero-orbit-two {
    height: 70%;
    transform: rotate(35deg) scaleY(0.68);
    width: 70%;
}

.about-hero-mark {
    align-items: center;
    background: linear-gradient(145deg, #9cffd0, #43c88b);
    border: 1px solid rgba(201, 255, 226, 0.65);
    border-radius: 30%;
    box-shadow: 0 24px 80px rgba(52, 207, 137, 0.2), inset 0 1px rgba(255, 255, 255, 0.45);
    color: #07110b;
    display: flex;
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 800;
    height: 45%;
    justify-content: center;
    letter-spacing: -0.1em;
    padding-right: 0.1em;
    transform: rotate(-8deg);
    width: 45%;
}

.about-hero-spark {
    color: var(--mint);
    position: absolute;
}

.about-hero-spark-one {
    font-size: 2rem;
    right: 12%;
    top: 18%;
}

.about-hero-spark-two {
    bottom: 18%;
    font-size: 1.4rem;
    left: 12%;
}

.about-section,
.about-how {
    padding: 76px 0 10px;
}

.about-section-heading {
    margin-bottom: 28px;
    max-width: 700px;
}

.about-section-heading h2,
.about-wallet h2,
.about-bottom h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.06em;
    line-height: 1.15;
    margin: 0;
}

.about-section-heading > p:last-child,
.about-wallet > div > p:last-child,
.about-bottom > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
    margin: 14px 0 0;
    max-width: 690px;
}

.about-card-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card {
    background: linear-gradient(145deg, rgba(18, 28, 23, 0.9), rgba(12, 17, 14, 0.9));
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 205px;
    padding: 24px;
}

.about-card-icon {
    align-items: center;
    background: rgba(124, 245, 189, 0.1);
    border: 1px solid rgba(124, 245, 189, 0.16);
    border-radius: 9px;
    color: var(--mint);
    display: inline-flex;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.about-card h3,
.about-feature h3,
.about-steps h3 {
    color: #edf5ef;
    font-size: 1rem;
    margin: 17px 0 7px;
}

.about-card p,
.about-feature p,
.about-steps p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.75;
    margin: 0;
}

.about-how {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    margin-top: 70px;
    padding-bottom: 60px;
}

.about-steps {
    counter-reset: about-step;
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-steps li {
    align-items: flex-start;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: 58px 1fr;
    padding: 22px 0;
}

.about-step-number {
    color: var(--mint);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding-top: 18px;
}

.about-steps h3 {
    margin-top: 14px;
}

.about-feature-list {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-feature {
    align-items: flex-start;
    background: rgba(16, 23, 20, 0.64);
    border: 1px solid var(--line);
    display: flex;
    gap: 15px;
    min-height: 150px;
    padding: 22px;
}

.about-feature > span {
    align-items: center;
    background: rgba(124, 245, 189, 0.1);
    border-radius: 8px;
    color: var(--mint);
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.about-feature h3 {
    margin: 3px 0 7px;
}

.about-wallet {
    align-items: flex-start;
    background: linear-gradient(120deg, rgba(22, 46, 34, 0.7), rgba(12, 18, 14, 0.6));
    border: 1px solid rgba(124, 245, 189, 0.16);
    border-radius: 12px;
    display: flex;
    gap: 22px;
    margin-top: 74px;
    padding: clamp(22px, 5vw, 38px);
}

.about-wallet-mark {
    align-items: center;
    background: rgba(124, 245, 189, 0.1);
    border-radius: 10px;
    color: var(--mint);
    display: flex;
    flex: 0 0 48px;
    font-size: 1.7rem;
    height: 48px;
    justify-content: center;
}

.about-wallet .eyebrow {
    font-size: 0.68rem;
}

.about-wallet h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.about-bottom {
    padding: 78px 0 10px;
}

.about-bottom h2 {
    max-width: 690px;
}

.about-bottom-links {
    border-top: 1px solid var(--line);
    margin-top: 27px;
    padding-top: 20px;
}

.about-join {
    align-items: center;
    background:
        radial-gradient(ellipse at 88% 20%, rgba(72, 185, 128, 0.16), transparent 48%),
        rgba(16, 23, 20, 0.8);
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 14px;
    display: flex;
    gap: 26px;
    justify-content: space-between;
    margin-top: 35px;
    padding: clamp(22px, 5vw, 38px);
}

.about-join h2 {
    color: #edf5ef;
    font-size: clamp(1.7rem, 3.5vw, 2.35rem);
    letter-spacing: -0.06em;
    line-height: 1.15;
    margin: 0;
}

.about-join > div:first-child > p:last-child {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 12px 0 0;
    max-width: 480px;
}

.about-join-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 14px;
}

.about-join-actions .hero-button {
    gap: 16px;
}

.faq-page {
    margin: 0 auto;
    max-width: 900px;
    min-height: calc(100vh - 220px);
    padding: clamp(42px, 8vw, 88px) 24px;
}

.activity-page {
    margin: 0 auto;
    max-width: 1000px;
    min-height: calc(100vh - 220px);
    padding: clamp(42px, 7vw, 78px) 24px;
}

.data-privacy-page {
    margin: 0 auto;
    max-width: 900px;
    min-height: calc(100vh - 220px);
    padding: clamp(42px, 7vw, 78px) 24px;
}

.data-privacy-card {
    background: rgba(16, 23, 20, 0.82);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 18px;
    padding: clamp(20px, 4vw, 30px);
}

.data-privacy-card h2 {
    font-size: 1.45rem;
    letter-spacing: -0.04em;
    margin: 0;
}

.data-privacy-card > div > p:last-child {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.75;
    margin: 12px 0 20px;
}

.data-privacy-delete {
    border-color: rgba(255, 126, 126, 0.2);
}

.data-privacy-form {
    display: grid;
    gap: 10px;
    max-width: 500px;
}

.data-privacy-form label {
    color: #c5d0c9;
    font-size: 0.8rem;
    font-weight: 650;
    margin-top: 5px;
}

.data-privacy-form input {
    background: #0b100e;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #edf5ef;
    font: inherit;
    padding: 11px 12px;
}

.data-privacy-delete-button {
    background: #401e20;
    border: 1px solid rgba(255, 126, 126, 0.35);
    border-radius: 7px;
    color: #ffd9d9;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 10px;
    padding: 12px 15px;
    text-align: left;
}

.data-privacy-delete-button:hover,
.data-privacy-delete-button:focus-visible {
    background: #532528;
}

.activity-heading {
    margin-bottom: 30px;
}

.activity-heading .eyebrow {
    margin: 0 0 14px;
}

.activity-heading h1 {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    letter-spacing: -0.07em;
    line-height: 1.05;
    margin: 0;
}

.activity-heading > p:last-child,
.activity-empty {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 14px 0 0;
}

.activity-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity-stats article,
.activity-badge,
.activity-challenge,
.activity-game {
    background: rgba(16, 23, 20, 0.82);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.activity-stats article {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.activity-stats span,
.activity-badge p,
.activity-challenge p,
.activity-game time {
    color: var(--muted);
    font-size: 0.8rem;
}

.activity-stats strong {
    color: var(--mint);
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.activity-section {
    margin-top: 46px;
}

.activity-section-heading {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 17px;
}

.activity-section-heading .eyebrow {
    font-size: 0.67rem;
    margin: 0 0 8px;
}

.activity-section-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.05em;
    margin: 0;
}

.activity-challenge-status,
.activity-badge small {
    color: var(--mint);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.activity-challenge {
    align-items: center;
    display: flex;
    gap: 16px;
    padding: 20px;
}

.activity-challenge-icon,
.activity-game-mark {
    align-items: center;
    background: rgba(124, 245, 189, 0.1);
    border-radius: 9px;
    color: var(--mint);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
}

.activity-challenge > div {
    flex: 1;
}

.activity-challenge strong,
.activity-badge strong,
.activity-game strong {
    color: #edf5ef;
    font-size: 0.9rem;
}

.activity-challenge p,
.activity-badge p {
    line-height: 1.65;
    margin: 5px 0 0;
}

.activity-challenge .hero-button {
    flex: 0 0 auto;
    gap: 14px;
}

.activity-badges,
.activity-game-list {
    display: grid;
    gap: 10px;
}

.activity-badge {
    align-items: center;
    display: flex;
    gap: 14px;
    padding: 15px 17px;
}

.activity-badge > span {
    color: #718078;
    font-size: 1.2rem;
}

.activity-badge > div {
    flex: 1;
}

.activity-badge.is-earned {
    border-color: rgba(124, 245, 189, 0.25);
}

.activity-badge.is-earned > span {
    color: var(--mint);
}

.activity-badge:not(.is-earned) small {
    color: #7f8b84;
}

.activity-game {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px 16px;
}

.activity-game strong {
    flex: 1;
    min-width: 120px;
}

.activity-game a,
.activity-game button {
    background: none;
    border: 0;
    color: var(--mint);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    text-decoration: none;
}

.activity-game a:hover,
.activity-game a:focus-visible,
.activity-game button:hover,
.activity-game button:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.activity-alert {
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.6;
    margin-bottom: 18px;
    padding: 13px 16px;
}

.activity-alert p {
    margin: 0;
}

.activity-alert-success {
    background: rgba(124, 245, 189, 0.08);
    border: 1px solid rgba(124, 245, 189, 0.2);
    color: var(--mint);
}

.activity-alert-error {
    background: rgba(255, 126, 126, 0.08);
    border: 1px solid rgba(255, 126, 126, 0.2);
    color: #ffb4b4;
}

.arcade-announcements {
    display: grid;
    gap: 10px;
    padding-top: 18px;
}

.arcade-announcement {
    align-items: flex-start;
    background: rgba(124, 245, 189, 0.07);
    border: 1px solid rgba(124, 245, 189, 0.18);
    border-radius: 9px;
    color: var(--mint);
    display: flex;
    gap: 13px;
    padding: 15px 18px;
}

.arcade-announcement > span {
    padding-top: 1px;
}

.arcade-announcement strong {
    color: #eaf5ee;
    font-size: 0.87rem;
}

.arcade-announcement p {
    color: #aebbb4;
    font-size: 0.82rem;
    line-height: 1.65;
    margin: 4px 0 0;
}

.faq-page-heading {
    margin-bottom: 34px;
    max-width: 680px;
}

.faq-page-heading .eyebrow {
    margin: 0 0 14px;
}

.faq-page-heading h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    letter-spacing: -0.06em;
    line-height: 1.08;
    margin: 0;
}

.faq-page-heading > p:last-child,
.faq-contact {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 15px 0 0;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    background: rgba(16, 23, 20, 0.86);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    align-items: center;
    color: #edf5ef;
    cursor: pointer;
    display: flex;
    font-size: 0.95rem;
    font-weight: 650;
    justify-content: space-between;
    list-style: none;
    padding: 19px 21px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    color: var(--mint);
    content: '+';
    flex: 0 0 auto;
    font-size: 1.35rem;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: -3px;
}

.faq-answer {
    border-top: 1px solid var(--line);
    color: #aebbb4;
    font-size: 0.87rem;
    line-height: 1.8;
    padding: 15px 21px 19px;
    overflow-wrap: anywhere;
}

.faq-contact {
    margin-top: 28px;
}

.faq-contact a {
    color: var(--mint);
    text-decoration: none;
}

.faq-contact a:hover,
.faq-contact a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-empty-state {
    background: rgba(16, 23, 20, 0.86);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
}

.faq-empty-state > span {
    color: var(--mint);
    font-size: 1.4rem;
}

.faq-empty-state h2 {
    font-size: 1.1rem;
    margin: 12px 0 6px;
}

.faq-empty-state p {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.policy-page {
    margin: 0 auto;
    max-width: 900px;
    min-height: calc(100vh - 220px);
    padding: clamp(42px, 8vw, 88px) 24px;
}

.policy-page-heading {
    margin-bottom: 25px;
}

.policy-page-heading .eyebrow {
    margin: 0 0 14px;
}

.policy-page-heading h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    letter-spacing: -0.06em;
    line-height: 1.08;
    margin: 0;
}

.policy-page-heading > p:last-child {
    color: var(--muted);
    font-size: 0.78rem;
    margin: 12px 0 0;
}

.policy-draft-notice {
    background: rgba(240, 200, 107, 0.07);
    border: 1px solid rgba(240, 200, 107, 0.2);
    border-radius: 8px;
    color: #e8d39d;
    font-size: 0.78rem;
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 13px 16px;
}

.policy-content {
    background: rgba(16, 23, 20, 0.86);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #c0ccc4;
    font-size: 0.87rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
    padding: clamp(20px, 4vw, 34px);
}

.policy-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 24px;
}

.policy-related-links a {
    color: var(--mint);
    font-size: 0.8rem;
    text-decoration: none;
}

.policy-related-links a:hover,
.policy-related-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 700px) {
    .hero {
        gap: 4px;
        grid-template-columns: 1fr 0.62fr;
        min-height: 370px;
    }

    .hero-art {
        margin-right: -30px;
        width: 125%;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 9vw, 4.3rem);
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .trust-strip {
        gap: 15px;
    }

    .trust-strip > div {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .site-footer-content {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .about-page {
        padding: 0 18px 54px;
    }

    .about-hero {
        display: block;
        min-height: 0;
        padding: 42px 0 34px;
        position: relative;
    }

    .about-hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.4rem);
    }

    .about-hero-art {
        height: 160px;
        margin: 20px auto 0;
        max-width: 190px;
    }

    .about-card-grid,
    .about-feature-list {
        grid-template-columns: 1fr;
    }

    .about-section,
    .about-how {
        padding-top: 52px;
    }

    .about-how {
        margin-top: 48px;
        padding-bottom: 42px;
    }

    .about-wallet {
        gap: 14px;
        margin-top: 50px;
        padding: 20px;
    }

    .about-wallet-mark {
        flex-basis: 40px;
        height: 40px;
        width: 40px;
    }

    .about-bottom {
        padding-top: 55px;
    }

    .about-join {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 26px;
    }

    .about-join-actions {
        align-items: flex-start;
    }

    .faq-page {
        padding: 38px 18px 54px;
    }

    .activity-page {
        padding: 38px 18px 54px;
    }

    .data-privacy-page {
        padding: 38px 18px 54px;
    }

    .activity-stats {
        gap: 8px;
    }

    .activity-stats article {
        padding: 13px 11px;
    }

    .activity-stats span {
        font-size: 0.68rem;
    }

    .activity-stats strong {
        font-size: 1.4rem;
    }

    .activity-challenge {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 15px;
    }

    .activity-challenge > div {
        flex-basis: calc(100% - 58px);
    }

    .activity-challenge .hero-button {
        margin-left: 56px;
    }

    .policy-page {
        padding: 38px 18px 54px;
    }

    .faq-item summary {
        font-size: 0.88rem;
        padding: 16px;
    }

    .faq-answer {
        padding: 13px 16px 16px;
    }
}

@media (max-width: 520px) {
    .topbar {
        font-size: 0.68rem;
        padding: 0 16px;
    }

    .topbar-links {
        gap: 12px;
    }

    .site-header {
        min-height: 64px;
        padding: 0 16px;
    }

    .site-menu {
        gap: 17px;
    }

    .site-menu a {
        font-size: 0.8rem;
    }

    .pwa-install-button {
        font-size: 0.68rem;
        padding: 6px 8px;
    }

    .arcade-page {
        padding: 0 16px 48px;
    }

    .hero {
        display: block;
        min-height: 0;
        padding: 55px 0 27px;
        position: relative;
    }

    .hero-copy {
        max-width: 390px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 15vw, 4.7rem);
    }

    .hero-art {
        height: 100px;
        margin: 18px auto 0;
        max-width: 200px;
        position: absolute;
        right: -28px;
        top: 0;
        width: 200px;
        opacity: 0.75;
    }

    .hero-art-caption {
        display: none;
    }

    .hero-chip {
        font-size: 3rem;
    }

    .mark-seven {
        font-size: 1.5rem;
    }

    .mark-diamond {
        font-size: 1.7rem;
    }

    .mark-star {
        font-size: 1rem;
    }

    .hero-description {
        max-width: 310px;
    }

    .trust-strip {
        gap: 12px 6px;
        grid-template-columns: 1fr;
        padding: 16px 0;
    }

    .trust-strip > div {
        padding: 0 4px;
    }

    .trust-strip > div + div {
        border-left: 0;
    }

    .trust-strip small {
        margin-top: 2px;
    }

    .games-section {
        padding: 45px 0;
    }

    .section-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .game-count {
        font-size: 0.65rem;
        padding: 7px 9px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .card-art {
        height: 138px;
    }

    .arcade-note {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 18px;
    }

    .arcade-note > div {
        flex: 1;
    }

    .arcade-note > a {
        margin-left: 59px;
    }
}

::selection {
    background: rgba(124, 245, 189, 0.28);
    color: #fff;
}

.leaderboard-page {
    min-height: 650px;
    padding-top: 66px;
}

.leaderboard-heading {
    align-items: flex-end;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 0 0 30px;
}

.leaderboard-heading h1 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.3rem);
    letter-spacing: -0.075em;
    line-height: 1;
    margin: 0;
}

.leaderboard-heading > div > p:last-child {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 14px 0 0;
    max-width: 540px;
}

.leaderboard-period,
.leaderboard-count {
    border: 1px solid var(--line);
    border-radius: 99px;
    color: #b4c0b9;
    font-size: 0.72rem;
    padding: 9px 13px;
    white-space: nowrap;
}

.leaderboard-period span {
    color: var(--mint);
    margin-right: 5px;
}

.leaderboard-panel {
    background: linear-gradient(150deg, rgba(18, 27, 22, 0.96), rgba(11, 16, 13, 0.96));
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-top: 28px;
    overflow: hidden;
}

.leaderboard-panel-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 22px 24px;
}

.leaderboard-panel-heading .eyebrow {
    margin-bottom: 8px;
}

.leaderboard-panel-heading h2 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 1.45rem;
    letter-spacing: -0.045em;
    margin: 0;
}

.leaderboard-count {
    color: #8f9c94;
    font-size: 0.67rem;
}

.leaderboard-table-wrap {
    overflow-x: auto;
}

.leaderboard-table {
    border-collapse: collapse;
    min-width: 560px;
    text-align: left;
    width: 100%;
}

.leaderboard-table th {
    background: rgba(5, 9, 7, 0.46);
    border-bottom: 1px solid var(--line);
    color: #849188;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 13px 24px;
    text-transform: uppercase;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
    width: 100px;
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
    text-align: right;
}

.leaderboard-empty {
    color: var(--muted);
    height: 235px;
    text-align: center !important;
}

.leaderboard-empty > span,
.leaderboard-empty > strong {
    display: block;
}

.leaderboard-empty-mark {
    color: var(--mint);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.leaderboard-empty strong {
    color: #e5ede8;
    font-size: 0.9rem;
    margin-bottom: 7px;
}

.leaderboard-empty > span:last-child {
    font-size: 0.76rem;
}

.leaderboard-cta {
    align-items: center;
    background: linear-gradient(105deg, rgba(24, 62, 43, 0.55), rgba(16, 26, 21, 0.8));
    border: 1px solid rgba(124, 245, 189, 0.14);
    border-radius: 12px;
    display: flex;
    gap: 17px;
    margin-top: 22px;
    padding: 21px 23px;
}

.leaderboard-cta > div {
    flex: 1;
}

.leaderboard-cta h2 {
    font-size: 1rem;
    margin: 0 0 5px;
}

.leaderboard-cta p {
    color: #9ba9a2;
    font-size: 0.77rem;
    margin: 0;
}

.leaderboard-cta > a {
    color: var(--mint);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.leaderboard-cta > a:hover,
.leaderboard-cta > a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 600px) {
    .leaderboard-page {
        min-height: 0;
        padding-top: 38px;
    }

    .leaderboard-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .leaderboard-panel-heading {
        padding: 19px 17px;
    }

    .leaderboard-table th {
        padding: 12px 17px;
    }

    .leaderboard-cta {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 18px;
    }

    .leaderboard-cta > div {
        min-width: calc(100% - 60px);
    }

    .leaderboard-cta > a {
        margin-left: 59px;
    }
}

.notifications-page {
    min-height: 650px;
    padding-top: 66px;
}

.notifications-heading {
    border-bottom: 1px solid var(--line);
    padding-bottom: 28px;
}

.notifications-heading h1 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.3rem);
    letter-spacing: -0.075em;
    line-height: 1;
    margin: 0;
}

.notifications-heading > div > p:last-child {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 14px 0 0;
}

.notifications-heading {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.notification-count {
    align-items: center;
    background: var(--mint);
    border-radius: 99px;
    color: #07110b;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    margin-left: 6px;
    min-width: 18px;
    padding: 0 5px;
    vertical-align: 1px;
}

.notification-read-all {
    background: transparent;
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 7px;
    color: var(--mint);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    padding: 9px 12px;
    white-space: nowrap;
}

.notification-read-all:hover,
.notification-read-all:focus-visible {
    background: rgba(124, 245, 189, 0.08);
}

.notification-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.notification-card {
    align-items: flex-start;
    background: linear-gradient(150deg, rgba(18, 27, 22, 0.96), rgba(11, 16, 13, 0.96));
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    gap: 14px;
    padding: 19px;
}

.notification-card.is-unread {
    border-color: rgba(124, 245, 189, 0.27);
}

.notification-card-icon {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.15);
    border-radius: 50%;
    color: var(--mint);
    display: flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.notification-card-content {
    flex: 1;
    min-width: 0;
}

.notification-card-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.notification-card-heading h2 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 0.98rem;
    letter-spacing: -0.025em;
    margin: 0;
    overflow-wrap: anywhere;
}

.notification-unread-label {
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.17);
    border-radius: 99px;
    color: var(--mint);
    font-size: 0.62rem;
    padding: 4px 8px;
}

.notification-card-content > p {
    color: #a5b1ab;
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 9px 0 10px;
    overflow-wrap: anywhere;
}

.notification-card-content time {
    color: #77857d;
    font-size: 0.67rem;
}

.notifications-empty {
    align-items: center;
    background:
        radial-gradient(ellipse at 50% 0, rgba(124, 245, 189, 0.07), transparent 60%),
        linear-gradient(150deg, rgba(18, 27, 22, 0.96), rgba(11, 16, 13, 0.96));
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    margin-top: 28px;
    min-height: 330px;
    padding: 38px 24px;
    text-align: center;
}

.notifications-empty-icon {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.19);
    border-radius: 50%;
    color: var(--mint);
    display: flex;
    font-size: 1.35rem;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.notifications-empty h2 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
    margin: 19px 0 0;
}

.notifications-empty p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 9px 0 20px;
    max-width: 410px;
}

.notifications-empty .hero-button {
    font-size: 0.78rem;
    gap: 20px;
    padding: 11px 14px;
}

@media (max-width: 600px) {
    .notifications-page {
        min-height: 0;
        padding-top: 38px;
    }

    .notifications-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .notifications-empty {
        min-height: 290px;
        padding: 30px 20px;
    }
}

.helpdesk-page {
    padding-top: 56px;
}

.helpdesk-heading {
    align-items: flex-end;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding-bottom: 25px;
}

.helpdesk-heading h1 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.075em;
    line-height: 1;
    margin: 0;
}

.helpdesk-heading > div > p:last-child {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 13px 0 0;
}

.helpdesk-ticket-count {
    border: 1px solid var(--line);
    border-radius: 99px;
    color: #aab7af;
    font-size: 0.7rem;
    padding: 8px 11px;
    white-space: nowrap;
}

.helpdesk-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    margin-top: 24px;
}

.helpdesk-panel {
    background: linear-gradient(150deg, rgba(18, 27, 22, 0.96), rgba(11, 16, 13, 0.96));
    border: 1px solid var(--line);
    border-radius: 12px;
    min-width: 0;
    overflow: hidden;
}

.helpdesk-panel-heading {
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
}

.helpdesk-panel-heading .eyebrow {
    margin-bottom: 7px;
}

.helpdesk-panel-heading h2 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 1.12rem;
    letter-spacing: -0.035em;
    margin: 0;
    overflow-wrap: anywhere;
}

.helpdesk-form {
    padding: 18px 20px 20px;
}

.helpdesk-form textarea,
.helpdesk-reply-form textarea {
    background: #090e0c;
    border: 1px solid rgba(198, 230, 213, 0.17);
    border-radius: 7px;
    color: #f4f7f5;
    font: inherit;
    font-size: 0.87rem;
    line-height: 1.6;
    min-height: 110px;
    padding: 11px 13px;
    resize: vertical;
    width: 100%;
}

.helpdesk-form textarea:focus,
.helpdesk-reply-form textarea:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(124, 245, 189, 0.1);
    outline: none;
}

.helpdesk-form .auth-submit,
.helpdesk-reply-form .auth-submit {
    margin-top: 5px;
}

.helpdesk-list-empty {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 210px;
    padding: 24px;
    text-align: center;
}

.helpdesk-list-empty > span {
    color: var(--mint);
    font-size: 1.4rem;
}

.helpdesk-list-empty p {
    font-size: 0.78rem;
    margin: 11px 0 0;
}

.helpdesk-ticket-links {
    display: grid;
    max-height: 470px;
    overflow-y: auto;
}

.helpdesk-ticket-link {
    align-items: center;
    border-bottom: 1px solid rgba(198, 230, 213, 0.07);
    color: inherit;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 15px 18px;
    text-decoration: none;
    transition: background 140ms ease;
}

.helpdesk-ticket-link:hover,
.helpdesk-ticket-link.is-selected {
    background: rgba(124, 245, 189, 0.055);
}

.helpdesk-ticket-link.is-selected {
    box-shadow: inset 2px 0 var(--mint);
}

.helpdesk-ticket-link-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.helpdesk-ticket-link-main strong {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helpdesk-ticket-link-main small {
    color: #819087;
    font-size: 0.67rem;
}

.helpdesk-status {
    border: 1px solid;
    border-radius: 99px;
    font-size: 0.62rem;
    padding: 5px 8px;
    white-space: nowrap;
}

.helpdesk-status-open {
    background: rgba(124, 245, 189, 0.07);
    border-color: rgba(124, 245, 189, 0.18);
    color: var(--mint);
}

.helpdesk-status-closed {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.09);
    color: #a1ada5;
}

.helpdesk-conversation {
    margin-top: 20px;
}

.helpdesk-conversation-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.helpdesk-messages {
    display: grid;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding: 20px;
}

.helpdesk-message {
    background: rgba(5, 9, 7, 0.5);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 14px 16px;
}

.helpdesk-message-staff {
    border-color: rgba(124, 245, 189, 0.18);
}

.helpdesk-message-meta {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.helpdesk-message-meta strong {
    color: #dfe8e2;
    font-size: 0.75rem;
}

.helpdesk-message-meta time {
    color: #76847b;
    font-size: 0.65rem;
}

.helpdesk-message > p {
    color: #aab6af;
    font-size: 0.79rem;
    line-height: 1.7;
    margin: 10px 0 0;
    overflow-wrap: anywhere;
}

.helpdesk-reply-form {
    border-top: 1px solid var(--line);
    padding: 18px 20px 20px;
}

.helpdesk-closed-note {
    border-top: 1px solid var(--line);
    color: #8f9c94;
    font-size: 0.75rem;
    margin: 0;
    padding: 17px 20px;
}

@media (max-width: 760px) {
    .helpdesk-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .helpdesk-page {
        padding-top: 35px;
    }

    .helpdesk-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .helpdesk-panel-heading,
    .helpdesk-form,
    .helpdesk-reply-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .helpdesk-messages {
        padding: 15px;
    }
}

@media (max-width: 760px) {
    .site-header {
        flex-wrap: wrap;
        gap: 8px 14px;
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .site-menu {
        flex: 1;
        flex-wrap: wrap;
        gap: 4px 7px;
        justify-content: flex-end;
    }

    .site-menu a {
        font-size: 0.76rem;
        padding: 6px 7px;
    }
}

@media (max-width: 520px) {
    .game-discovery-tools {
        grid-template-columns: 1fr;
    }

    .site-menu {
        flex-basis: 100%;
        justify-content: space-between;
    }

    .site-menu a {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

.site-menu-toggle {
    align-items: center;
    background: rgba(124, 245, 189, 0.07);
    border: 1px solid rgba(124, 245, 189, 0.19);
    border-radius: 7px;
    color: var(--mint);
    cursor: pointer;
    display: none;
    font: inherit;
    font-size: 0.78rem;
    gap: 8px;
    min-height: 38px;
    padding: 0 11px;
}

.site-menu-toggle-icon {
    font-size: 1rem;
}

.profile-edit-form {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

@media (max-width: 760px) {
    .site-header {
        justify-content: space-between;
    }

    .site-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-menu {
        background: rgba(11, 16, 13, 0.98);
        border: 1px solid var(--line);
        border-radius: 10px;
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        width: 100%;
    }

    .site-menu.is-open {
        display: flex;
    }

    .site-menu a {
        font-size: 0.84rem;
        padding: 10px 12px;
    }
}

@media (max-width: 520px) {
    .site-menu {
        border-top: 1px solid var(--line);
        flex-basis: 100%;
        justify-content: initial;
        padding-top: 8px;
        width: 100%;
    }

    .site-menu a {
        flex: initial;
        text-align: left;
    }
}

.dashboard-avatar {
    background: #15251d;
    border: 1px solid rgba(124, 245, 189, 0.22);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24), inset 0 0 0 3px rgba(124, 245, 189, 0.035);
    overflow: hidden;
    padding: 0;
}

.dashboard-avatar svg {
    display: block;
    height: 100%;
    width: 100%;
}

.dashboard-avatar.avatar-female {
    border-color: rgba(192, 154, 255, 0.3);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24), inset 0 0 0 3px rgba(192, 154, 255, 0.045);
}

.avatar-picker {
    border: 0;
    margin: 7px 0 4px;
    padding: 0;
}

.avatar-picker legend {
    color: #e8f0eb;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 0;
}

.avatar-picker-hint {
    color: #849188;
    font-size: 0.7rem;
    line-height: 1.5;
    margin: 0 0 12px;
}

.avatar-choice-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.avatar-choice {
    cursor: pointer;
    display: block;
    margin: 0;
    position: relative;
}

.profile-edit-form .avatar-choice {
    color: inherit;
    margin: 0;
}

.avatar-choice-input {
    height: 1px;
    left: 8px;
    opacity: 0;
    position: absolute;
    top: 8px;
    width: 1px;
}

.profile-edit-form input.avatar-choice-input:not([type='hidden']) {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    font: inherit;
    min-height: 0;
    padding: 0;
    width: 1px;
}

.avatar-choice-body {
    align-items: center;
    background: rgba(5, 9, 7, 0.42);
    border: 1px solid rgba(198, 230, 213, 0.12);
    border-radius: 10px;
    color: #d9e4dd;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 127px;
    padding: 13px 10px 11px;
    position: relative;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.avatar-choice:hover .avatar-choice-body {
    background: rgba(124, 245, 189, 0.045);
    transform: translateY(-2px);
}

.avatar-choice-input:checked + .avatar-choice-body {
    background: linear-gradient(145deg, rgba(124, 245, 189, 0.1), rgba(124, 245, 189, 0.035));
    border-color: rgba(124, 245, 189, 0.55);
    box-shadow: 0 0 0 3px rgba(124, 245, 189, 0.075), inset 0 0 20px rgba(124, 245, 189, 0.025);
}

.avatar-choice-input:focus-visible + .avatar-choice-body {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

.avatar-choice-portrait {
    flex: 0 0 56px;
    height: 56px;
    width: 56px;
}

.avatar-choice-label {
    color: #e6eee8;
    font-size: 0.75rem;
    font-weight: 650;
}

.avatar-choice-check {
    align-items: center;
    background: var(--mint);
    border: 2px solid #0d1711;
    border-radius: 50%;
    color: #08120c;
    display: flex;
    font-size: 0.58rem;
    font-weight: 800;
    height: 19px;
    justify-content: center;
    opacity: 0;
    position: absolute;
    right: 9px;
    top: 9px;
    transform: scale(0.7);
    transition: opacity 150ms ease, transform 150ms ease;
    width: 19px;
}

.avatar-choice-input:checked + .avatar-choice-body .avatar-choice-check {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 420px) {
    .avatar-choice-grid {
        gap: 8px;
    }

    .avatar-choice-body {
        min-height: 118px;
        padding-left: 7px;
        padding-right: 7px;
    }
}

:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 4px;
}

.topbar {
    min-height: 40px;
}

.site-header {
    position: relative;
    z-index: 5;
}

.site-menu a {
    border-radius: 6px;
    padding: 9px 11px;
}

.site-menu a[aria-current='page'] {
    background: rgba(124, 245, 189, 0.08);
}

.hero {
    position: relative;
}

.hero::after {
    background: linear-gradient(90deg, transparent, rgba(124, 245, 189, 0.16), transparent);
    bottom: -1px;
    content: '';
    height: 1px;
    left: 8%;
    position: absolute;
    right: 8%;
}

.hero-chip {
    animation: chip-float 6s ease-in-out infinite;
}

.hero-art .orbit {
    animation: orbit-breathe 8s ease-in-out infinite alternate;
}

.hero-art .orbit-two {
    animation-delay: -4s;
}

.trust-strip > div {
    padding: 0 12px;
}

.game-card {
    display: flex;
    flex-direction: column;
}

.game-live-grid {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 22px;
}

.game-live-card {
    align-items: center;
    border-bottom: 1px solid rgba(198, 230, 213, 0.11);
    display: grid;
    gap: 12px 18px;
    grid-template-columns: minmax(95px, 0.55fr) minmax(110px, 0.7fr) minmax(190px, 1.4fr) minmax(170px, 1.1fr) auto;
    min-width: 0;
    padding: 14px 8px;
}

.game-live-card:first-child {
    border-top: 1px solid rgba(198, 230, 213, 0.11);
}

.game-live-card-heading,
.game-center-panel-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.game-live-card-heading > span:first-child {
    color: #e5f2e9;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.game-live-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    justify-content: flex-start;
}

.game-live-indicator {
    align-items: center;
    color: var(--mint);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 7px;
    white-space: nowrap;
}

.game-live-indicator i {
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(124, 245, 189, 0.7);
    height: 7px;
    width: 7px;
}

.game-live-mode {
    color: #a6b3aa;
    font-size: 0.73rem;
    margin: 0;
}

.game-live-players {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-live-players > div {
    display: grid;
    gap: 3px;
    min-width: 100px;
}

.game-live-players span {
    color: #e0eae3;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.game-live-players small {
    color: #92a197;
    font-size: 0.65rem;
}

.game-live-piles {
    color: #a5b3a9;
    font-size: 0.68rem;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
}

.game-live-watch {
    align-items: center;
    border: 1px solid rgba(124, 245, 189, 0.25);
    border-radius: 8px;
    color: var(--mint);
    display: flex;
    font-size: 0.76rem;
    font-weight: 700;
    justify-content: space-between;
    padding: 8px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.game-live-watch:hover,
.game-live-watch:focus-visible {
    background: rgba(124, 245, 189, 0.07);
    border-color: rgba(124, 245, 189, 0.55);
}

.game-live-empty {
    grid-column: 1 / -1;
    margin-top: 0;
}

@media (max-width: 760px) {
    .game-live-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .game-live-card-heading {
        grid-column: 1;
    }

    .game-live-mode {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .game-live-players {
        grid-column: 1 / -1;
    }

    .game-live-piles {
        grid-column: 1;
    }

    .game-live-watch {
        grid-column: 2;
        grid-row: 3;
    }
}

.game-live-panel > .game-center-disclaimer {
    margin-top: 22px;
}

.game-spectator-panel > .game-center-back {
    display: inline-flex;
    margin-bottom: 25px;
}

.game-spectator-privacy {
    margin-bottom: 20px;
}

.game-spectator-presence {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-spectator-viewer-count {
    color: #a6b3aa;
    font-size: 0.7rem;
    white-space: nowrap;
}

.game-spectator-summary {
    display: grid;
    gap: 14px;
}

.game-spectator-players {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.game-spectator-player {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(198, 230, 213, 0.1);
    border-radius: 10px;
    display: grid;
    gap: 7px;
    padding: 14px;
}

.game-spectator-player strong {
    color: #e3efe7;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.game-spectator-player span,
.game-spectator-player small {
    color: #99a89e;
    font-size: 0.68rem;
}

.game-spectator-player small {
    color: var(--mint);
}

.game-spectator-piles {
    background: rgba(124, 245, 189, 0.045);
    border: 1px solid rgba(124, 245, 189, 0.11);
    border-radius: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    padding: 13px 15px;
}

.game-spectator-piles span {
    color: #c7d6cc;
    font-size: 0.73rem;
}

.game-spectator-result {
    background: rgba(124, 245, 189, 0.08);
    border-radius: 8px;
    color: var(--mint);
    margin: 0;
    padding: 12px 14px;
}

.game-spectator-events {
    border-top: 1px solid rgba(198, 230, 213, 0.1);
    margin-top: 25px;
    padding-top: 19px;
}

.game-spectator-events h3 {
    color: #e3eee6;
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.game-spectator-events ol {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 0;
    max-height: 380px;
    overflow-y: auto;
    padding: 0;
}

.game-spectator-events li {
    background: rgba(255, 255, 255, 0.022);
    border-left: 2px solid rgba(124, 245, 189, 0.55);
    border-radius: 0 7px 7px 0;
    color: #b7c4bb;
    font-size: 0.74rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    padding: 9px 12px;
}

.game-spectator-events li.is-recent {
    background: rgba(124, 245, 189, 0.075);
    border-left-color: var(--mint);
    color: #e1f3e7;
}

.game-spectator-latest-move {
    background: rgba(124, 245, 189, 0.07);
    border-radius: 8px;
    color: #d8efe0;
    font-size: 0.75rem;
    margin: 0;
    padding: 10px 12px;
}

.game-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.game-card-content p {
    min-height: 2.5em;
}

.play-button {
    margin-top: auto;
}

.card-art {
    isolation: isolate;
}

.card-art::before,
.card-art::after {
    transition: transform 400ms ease, border-color 400ms ease;
}

.game-card:hover .card-art::before {
    border-color: rgba(124, 245, 189, 0.3);
    transform: rotate(-12deg) scaleY(0.54) scale(1.08);
}

.game-card:hover .card-art::after {
    border-color: rgba(124, 245, 189, 0.22);
    transform: rotate(17deg) scaleY(0.54) scale(1.08);
}

.game-icon {
    transition: filter 180ms ease, transform 180ms ease;
}

.game-card:hover .game-icon {
    filter: drop-shadow(0 0 12px currentColor);
    transform: scale(1.08) rotate(-4deg);
}

.arcade-note {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

@keyframes chip-float {
    0%,
    100% {
        transform: translateY(0) rotate(-12deg);
    }

    50% {
        transform: translateY(-8px) rotate(-9deg);
    }
}

.discover-panel {
    background: linear-gradient(180deg, rgba(14, 23, 19, 0.95), rgba(11, 16, 14, 0.97));
    border: 1px solid var(--line);
    border-radius: 18px;
    margin: 28px 0 12px;
    padding: 26px 24px 18px;
}

.discover-header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.discover-header h2 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    letter-spacing: -0.065em;
    margin: 0;
}

.discover-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.discover-filter {
    background: rgba(140, 157, 151, 0.06);
    border: 1px solid rgba(198, 230, 213, 0.12);
    border-radius: 999px;
    color: #dfeae4;
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 8px 13px;
    transition: all 180ms ease;
}

.discover-filter:hover,
.discover-filter:focus-visible {
    border-color: rgba(124, 245, 189, 0.35);
    color: var(--mint);
}

.discover-filter.is-active {
    background: rgba(124, 245, 189, 0.12);
    border-color: rgba(124, 245, 189, 0.42);
    color: var(--mint);
    box-shadow: 0 0 0 1px rgba(124, 245, 189, 0.14);
}

.recommended-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recommended-card {
    background: linear-gradient(180deg, rgba(19, 27, 24, 0.96), rgba(10, 15, 13, 0.98));
    border: 1px solid rgba(198, 230, 213, 0.12);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.recommended-card:hover {
    border-color: rgba(124, 245, 189, 0.34);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px);
}

.recommended-card-art {
    background: linear-gradient(135deg, rgba(18, 34, 27, 0.98), rgba(10, 15, 13, 1));
    display: block;
    height: 176px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.recommended-card-image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.recommended-tag,
.recommended-status {
    position: absolute;
    z-index: 1;
}

.recommended-tag {
    top: 12px;
    left: 12px;
    background: rgba(8, 12, 11, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--mint);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 8px;
    text-transform: uppercase;
}

.recommended-status {
    right: 12px;
    top: 12px;
    background: rgba(8, 12, 11, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    color: #d9eee2;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 6px 8px;
}

.recommended-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 16px 15px 17px;
}

.recommended-meta {
    color: #9eb0a5;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.67rem;
    gap: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.recommended-card-body h3 {
    color: #eef7f1;
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
    margin: 0;
}

.recommended-card-body p {
    color: #a5b2ac;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.recommended-cta {
    align-items: center;
    background: rgba(124, 245, 189, 0.10);
    border: 1px solid rgba(124, 245, 189, 0.26);
    border-radius: 10px;
    color: var(--mint);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: space-between;
    margin-top: auto;
    padding: 10px 12px;
    text-decoration: none;
}

.recommended-cta:hover,
.recommended-cta:focus-visible {
    background: rgba(124, 245, 189, 0.14);
}

.mobile-dock {
    background: rgba(10, 16, 14, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(198, 230, 213, 0.12);
    border-radius: 16px 16px 0 0;
    bottom: 0;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.2);
    display: none;
    gap: 8px;
    justify-content: space-between;
    left: 12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    position: fixed;
    right: 12px;
    z-index: 30;
}

.mobile-dock a {
    align-items: center;
    border-radius: 10px;
    color: #b1bdb6;
    display: inline-flex;
    flex: 1;
    font-size: 0.72rem;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    text-decoration: none;
}

.mobile-dock a.is-active {
    background: rgba(124, 245, 189, 0.09);
    color: var(--mint);
}

@media (max-width: 1160px) {
    .recommended-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .discover-panel {
        padding: 20px 16px 15px;
    }

    .discover-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .discover-tabs {
        justify-content: flex-start;
    }

    .recommended-grid {
        grid-template-columns: 1fr;
    }

    .mobile-dock {
        display: flex;
    }

    .site-content {
        padding-bottom: 72px;
    }
}

@keyframes orbit-breathe {
    from {
        opacity: 0.55;
    }

    to {
        opacity: 1;
    }
}

@keyframes hero-glow {
    from {
        opacity: 0.62;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hero-chip,
    .hero-art .orbit,
    .hero-art::before {
        animation: none;
    }
}

.lotto-page {
    color: #eff8f0;
    margin: 0 auto;
    max-width: 1180px;
    padding: 42px 22px 86px;
}

.lotto-heading {
    margin: 0 auto 30px;
    text-align: center;
}

.lotto-eyebrow,
.lotto-panel-kicker {
    color: #83e8ad;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 0 0 10px;
}

.lotto-heading h1 {
    color: #f1f7f0;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 850;
    letter-spacing: -0.065em;
    line-height: 0.98;
    margin: 0;
}

.lotto-heading h1 span {
    background: linear-gradient(110deg, #a8ffc5, #61dc97 58%, #d9fa91);
    background-clip: text;
    color: transparent;
}

.lotto-heading > p:last-child {
    color: #9eafa3;
    font-size: 0.88rem;
    margin: 13px 0 0;
}

.lotto-layout {
    align-items: stretch;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
}

.lotto-play-panel,
.lotto-draw-panel {
    background:
        radial-gradient(ellipse at 50% 0, rgba(62, 151, 100, 0.17), transparent 56%),
        linear-gradient(145deg, #13231a, #0c1510 72%);
    border: 1px solid rgba(147, 224, 173, 0.17);
    border-radius: 21px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.035);
    min-width: 0;
}

.lotto-play-panel {
    padding: clamp(20px, 3vw, 30px);
}

.lotto-panel-top,
.lotto-draw-panel-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.lotto-panel-kicker {
    font-size: 0.56rem;
    margin-bottom: 7px;
}

.lotto-panel-top h2,
.lotto-draw-panel-heading h2 {
    color: #f0f7f0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    letter-spacing: -0.04em;
    margin: 0;
}

.lotto-pick-counter {
    background: rgba(126, 239, 171, 0.075);
    border: 1px solid rgba(126, 239, 171, 0.18);
    border-radius: 999px;
    color: #aebfb3;
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 750;
    padding: 8px 11px;
}

.lotto-pick-counter strong {
    color: #a2f2b9;
    font-size: 0.8rem;
}

.lotto-instruction {
    color: #94a499;
    font-size: 0.73rem;
    margin: 11px 0 16px;
}

.lotto-number-grid {
    background: rgba(4, 12, 7, 0.3);
    border: 1px solid rgba(185, 220, 192, 0.1);
    border-radius: 15px;
    display: grid;
    gap: clamp(4px, 0.85vw, 8px);
    grid-template-columns: repeat(10, minmax(0, 1fr));
    padding: clamp(10px, 2vw, 17px);
}

.lotto-number {
    aspect-ratio: 1;
    background: linear-gradient(145deg, rgba(239, 249, 237, 0.075), rgba(228, 242, 229, 0.025));
    border: 1px solid rgba(202, 232, 207, 0.11);
    border-radius: 50%;
    color: #b8c8bb;
    cursor: pointer;
    font: inherit;
    font-size: clamp(0.59rem, 1.35vw, 0.76rem);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-width: 0;
    padding: 0;
    position: relative;
    transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.lotto-number:hover:not(:disabled) {
    background: rgba(130, 232, 168, 0.13);
    border-color: rgba(130, 232, 168, 0.45);
    color: #d9ffe4;
    transform: translateY(-2px);
}

.lotto-number.is-selected {
    background: linear-gradient(145deg, #baffc8, #69db96);
    border-color: #c5ffd1;
    box-shadow: 0 0 0 3px rgba(114, 230, 155, 0.11), 0 4px 13px rgba(60, 198, 113, 0.2);
    color: #10251a;
    transform: scale(1.045);
}

.lotto-number:disabled:not(.is-selected) {
    cursor: not-allowed;
    opacity: 0.43;
}

.lotto-number:focus-visible,
.lotto-actions button:focus-visible,
.lotto-draw-button:focus-visible,
.lotto-sound-toggle:focus-visible,
.lotto-dialog button:focus-visible {
    outline: 3px solid #e5ffc0;
    outline-offset: 2px;
    z-index: 1;
}

.lotto-actions {
    align-items: center;
    display: flex;
    gap: 9px;
    justify-content: flex-start;
    margin-top: 14px;
}

.lotto-actions button {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 9px;
    color: #c5d6c9;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.65rem;
    font-weight: 750;
    gap: 7px;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.lotto-actions button:hover:not(:disabled) {
    background: rgba(124, 245, 189, 0.09);
    border-color: rgba(124, 245, 189, 0.34);
    color: #c9ffda;
}

.lotto-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.lotto-quick-pick span {
    color: #a6f2bd;
}

.lotto-ticket {
    align-items: center;
    background: linear-gradient(110deg, rgba(134, 225, 160, 0.055), rgba(134, 225, 160, 0.02));
    border: 1px solid rgba(147, 224, 173, 0.11);
    border-radius: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 17px;
    min-height: 57px;
    padding: 10px 12px;
}

.lotto-ticket-label {
    color: #83a18b;
    flex: 0 0 auto;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.lotto-ticket-picks {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
}

.lotto-ticket-empty {
    color: #728078;
    font-size: 0.63rem;
}

.lotto-ticket-chip {
    align-items: center;
    background: #caffd4;
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(77, 198, 116, 0.16);
    color: #183421;
    display: inline-flex;
    font-size: 0.64rem;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.lotto-draw-button {
    align-items: center;
    background: linear-gradient(110deg, #baffc9, #74e7a3 54%, #9cffbb);
    border: 1px solid rgba(214, 255, 223, 0.83);
    border-radius: 11px;
    box-shadow: 0 9px 24px rgba(61, 217, 132, 0.18), inset 0 1px rgba(255, 255, 255, 0.54);
    color: #10251a;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 850;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
    min-height: 49px;
    padding: 0 15px;
    position: relative;
    transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

.lotto-draw-button:hover:not(:disabled) {
    box-shadow: 0 11px 27px rgba(61, 217, 132, 0.27), inset 0 1px rgba(255, 255, 255, 0.54);
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.lotto-draw-button:disabled {
    cursor: not-allowed;
    filter: saturate(0.62);
    opacity: 0.65;
}

.lotto-draw-icon {
    font-size: 0.95rem;
}

.lotto-draw-arrow {
    margin-left: auto;
}

.lotto-draw-button.is-drawing .lotto-draw-icon {
    animation: lotto-star-turn 900ms linear infinite;
}

.lotto-draw-button.is-drawing {
    cursor: wait;
    overflow: hidden;
}

.lotto-draw-button.is-drawing::after {
    animation: lotto-button-sheen 1.15s ease-in-out infinite;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.37), transparent);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-110%);
}

.lotto-audio-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 11px auto 0;
}

.lotto-sound-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 999px;
    color: #c5d6c9;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: 0.61rem;
    font-weight: 750;
    gap: 7px;
    min-height: 31px;
    padding: 0 11px;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.lotto-sound-toggle:hover {
    background: rgba(124, 245, 189, 0.08);
    border-color: rgba(124, 245, 189, 0.35);
    color: #d4ffe0;
}

.lotto-sound-toggle > span:first-child {
    color: #a5f4c2;
    font-size: 0.86rem;
}

.lotto-sound-toggle.is-muted {
    color: #8c9a90;
}

.lotto-sound-toggle.is-muted > span:first-child,
.lotto-sound-toggle.is-unavailable > span:first-child {
    color: #88978d;
}

.lotto-audio-note {
    color: #819187;
    font-size: 0.57rem;
    line-height: 1.4;
}

.lotto-status {
    color: #9ead9f;
    font-size: 0.69rem;
    line-height: 1.5;
    margin: 10px 0 0;
    min-height: 1.5em;
    text-align: center;
}

.lotto-status[data-kind="match"],
.lotto-status[data-kind="complete"] {
    color: #a5f2bb;
}

.lotto-status[data-kind="miss"] {
    color: #e2c994;
}

.lotto-status[data-kind="error"] {
    color: #ffbdb2;
}

.lotto-draw-panel {
    padding: clamp(20px, 3vw, 28px);
}

.lotto-draw-live {
    align-items: center;
    background: rgba(245, 198, 113, 0.07);
    border: 1px solid rgba(245, 198, 113, 0.16);
    border-radius: 999px;
    color: #d9c18e;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.5rem;
    font-weight: 800;
    gap: 7px;
    letter-spacing: 0.11em;
    padding: 7px 9px;
}

.lotto-draw-live > span {
    background: #8bf0a9;
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(131, 237, 170, 0.65);
    height: 6px;
    width: 6px;
}

.lotto-draw-copy {
    color: #96a79a;
    font-size: 0.72rem;
    margin: 12px 0 21px;
}

.lotto-balls {
    align-items: center;
    background:
        radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.06), transparent 72%),
        linear-gradient(145deg, #09110c, #111e15);
    border: 1px solid rgba(206, 219, 177, 0.2);
    border-radius: 16px;
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 25px rgba(0, 0, 0, 0.29);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(5px, 0.8vw, 8px);
    justify-content: center;
    min-height: 106px;
    padding: 15px 8px;
}

.lotto-ball {
    align-items: center;
    background:
        radial-gradient(circle at 33% 26%, #fffde8 0, #f1dfad 42%, #d8b766 78%, #98753a 100%);
    border: 1px solid rgba(255, 245, 195, 0.75);
    border-radius: 50%;
    box-shadow: inset -4px -6px 10px rgba(88, 63, 19, 0.24), inset 2px 3px 7px rgba(255, 255, 255, 0.72), 0 8px 14px rgba(0, 0, 0, 0.3);
    color: #372b16;
    display: inline-flex;
    flex: 0 1 clamp(42px, 4.4vw, 54px);
    font-size: clamp(0.78rem, 1.5vw, 0.96rem);
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    height: clamp(42px, 4.4vw, 54px);
    justify-content: center;
    position: relative;
    width: clamp(42px, 4.4vw, 54px);
}

.lotto-ball::before {
    background: rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    content: '';
    height: 6px;
    left: 29%;
    position: absolute;
    top: 21%;
    width: 9px;
}

.lotto-ball-placeholder {
    background: radial-gradient(circle at 34% 28%, #34483a, #17261b 75%);
    border: 1px solid rgba(178, 210, 184, 0.18);
    box-shadow: inset -4px -5px 10px rgba(0, 0, 0, 0.23), inset 2px 3px 7px rgba(255, 255, 255, 0.06);
    color: #7d9483;
}

.lotto-ball-placeholder::before {
    background: rgba(194, 225, 200, 0.18);
}

.lotto-ball.is-revealing {
    animation: lotto-ball-reveal 470ms cubic-bezier(0.17, 0.8, 0.25, 1) both;
}

.lotto-ball.is-match {
    background: radial-gradient(circle at 33% 26%, #e8ffce, #a5e97e 56%, #68b94e);
    border-color: rgba(216, 255, 180, 0.95);
    box-shadow: inset -4px -6px 10px rgba(46, 96, 30, 0.2), inset 2px 3px 7px rgba(255, 255, 255, 0.7), 0 0 19px rgba(113, 235, 110, 0.34), 0 8px 14px rgba(0, 0, 0, 0.25);
    color: #183519;
}

.lotto-ball.is-match::before {
    background: rgba(255, 255, 255, 0.67);
}

.lotto-match-result {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(192, 225, 200, 0.1);
    border-radius: 12px;
    display: flex;
    gap: 11px;
    margin-top: 17px;
    min-height: 73px;
    padding: 13px;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.lotto-match-result.is-win {
    background: rgba(91, 209, 125, 0.075);
    border-color: rgba(120, 235, 150, 0.25);
    box-shadow: 0 0 23px rgba(69, 203, 114, 0.08);
}

.lotto-match-result.is-miss {
    background: rgba(208, 172, 97, 0.04);
    border-color: rgba(208, 172, 97, 0.13);
}

.lotto-match-icon {
    align-items: center;
    background: rgba(131, 237, 170, 0.09);
    border: 1px solid rgba(131, 237, 170, 0.16);
    border-radius: 9px;
    color: #a5f4c2;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 0.78rem;
    height: 32px;
    justify-content: center;
}

.lotto-match-result.is-miss .lotto-match-icon {
    background: rgba(208, 172, 97, 0.08);
    border-color: rgba(208, 172, 97, 0.15);
    color: #d9c18e;
}

.lotto-match-result > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.lotto-match-result strong {
    color: #dce9dd;
    font-size: 0.75rem;
}

.lotto-match-result p {
    color: #95a79a;
    font-size: 0.65rem;
    line-height: 1.5;
    margin: 0;
}

.lotto-play-counts {
    border-bottom: 1px solid rgba(192, 225, 200, 0.1);
    border-top: 1px solid rgba(192, 225, 200, 0.1);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 17px;
    padding: 12px 0;
}

.lotto-play-counts > div {
    display: grid;
    gap: 4px;
    text-align: center;
}

.lotto-play-counts > div + div {
    border-left: 1px solid rgba(192, 225, 200, 0.1);
}

.lotto-play-counts strong {
    color: #d4e9d7;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.lotto-play-counts span {
    color: #819187;
    font-size: 0.56rem;
}

.lotto-note {
    align-items: flex-start;
    background: rgba(223, 180, 100, 0.055);
    border: 1px solid rgba(223, 180, 100, 0.13);
    border-radius: 11px;
    color: #d2b97e;
    display: flex;
    gap: 9px;
    margin-top: 15px;
    padding: 10px 11px;
}

.lotto-note > span {
    flex: 0 0 auto;
    font-size: 0.79rem;
    padding-top: 1px;
}

.lotto-note p {
    color: #a9a08a;
    font-size: 0.59rem;
    line-height: 1.6;
    margin: 0;
}

.lotto-note strong {
    color: #e7d39e;
}

.lotto-dialog {
    background: transparent;
    border: 0;
    color: #eff8f0;
    max-width: min(440px, calc(100vw - 30px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.lotto-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(3, 8, 5, 0.78);
}

.lotto-dialog[open] {
    animation: lotto-dialog-enter 300ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.lotto-dialog-card {
    background:
        radial-gradient(ellipse at 50% 0, rgba(93, 203, 131, 0.18), transparent 48%),
        linear-gradient(145deg, #17271c, #0d1711);
    border: 1px solid rgba(154, 239, 177, 0.24);
    border-radius: 20px;
    box-shadow: 0 25px 85px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.04);
    padding: 33px 28px 24px;
    position: relative;
    text-align: center;
}

.lotto-dialog-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #c2d0c5;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1.35rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 13px;
    top: 13px;
    width: 34px;
}

.lotto-dialog-mark {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 19px;
    box-shadow: 0 0 35px rgba(98, 227, 151, 0.1);
    color: #b7f5c5;
    display: inline-flex;
    font-size: 2rem;
    height: 70px;
    justify-content: center;
    width: 70px;
}

.lotto-dialog-kicker {
    color: #91e9ad;
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 18px 0 7px;
}

.lotto-dialog h2 {
    color: #f2f7f0;
    font-size: 1.7rem;
    letter-spacing: -0.045em;
    margin: 0;
}

.lotto-dialog-copy {
    color: #bfcec2;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 10px 0 0;
}

.lotto-dialog-note {
    color: #b8a87f;
    font-size: 0.64rem;
    line-height: 1.5;
    margin: 13px 0 0;
}

.lotto-dialog-actions {
    display: flex;
    gap: 9px;
    margin-top: 21px;
}

.lotto-dialog-actions button {
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 750;
    min-height: 42px;
    padding: 0 14px;
}

.lotto-dialog-again {
    background: linear-gradient(110deg, #baffc9, #74e7a3);
    border: 1px solid #a4f8b9;
    color: #10251a;
    flex: 1;
}

.lotto-dialog-dismiss {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #c3d1c5;
}

@keyframes lotto-ball-reveal {
    0% { opacity: 0; transform: translateY(-34px) scale(0.72) rotate(-18deg); }
    66% { opacity: 1; transform: translateY(5px) scale(1.06) rotate(3deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes lotto-star-turn {
    to { transform: rotate(360deg); }
}

@keyframes lotto-button-sheen {
    to { transform: translateX(110%); }
}

@keyframes lotto-dialog-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
    .lotto-layout {
        grid-template-columns: minmax(0, 1fr);
        margin: 0 auto;
        max-width: 650px;
    }
}

@media (max-width: 540px) {
    .lotto-page {
        padding: 31px 13px 55px;
    }

    .lotto-heading {
        margin-bottom: 22px;
    }

    .lotto-play-panel,
    .lotto-draw-panel {
        border-radius: 17px;
        padding: 17px 13px;
    }

    .lotto-number-grid {
        gap: 5px;
        padding: 9px;
    }

    .lotto-number {
        font-size: clamp(0.54rem, 2.7vw, 0.73rem);
    }

    .lotto-pick-counter {
        font-size: 0.55rem;
        padding: 7px 8px;
    }

    .lotto-actions {
        gap: 7px;
    }

    .lotto-actions button {
        font-size: 0.6rem;
        padding: 0 9px;
    }

    .lotto-ticket {
        gap: 8px;
        padding: 9px;
    }

    .lotto-ticket-label {
        font-size: 0.47rem;
    }

    .lotto-ticket-chip {
        height: 27px;
        width: 27px;
    }

    .lotto-ball {
        flex-basis: 46px;
        height: 46px;
        width: 46px;
    }

    .lotto-audio-row {
        align-items: flex-start;
    }

    .lotto-audio-note {
        padding-top: 7px;
    }

    .lotto-dialog-card {
        padding: 30px 19px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lotto-ball.is-revealing,
    .lotto-draw-button.is-drawing .lotto-draw-icon,
    .lotto-draw-button.is-drawing::after,
    .lotto-dialog[open] {
        animation: none;
    }
}

.topbar-divider {
    color: #4c5a52;
    margin: 0 7px;
}

.topbar-signup {
    color: var(--mint);
}

.topbar-logout {
    display: inline-flex;
}

.topbar-logout button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.topbar-logout button:hover,
.topbar-logout button:focus-visible {
    color: var(--mint);
}

.auth-shell {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
    margin: 0 auto;
    max-width: 1040px;
    min-height: 610px;
    padding: 55px 24px 70px;
}

.auth-shell-reverse .auth-card {
    order: 2;
}

.auth-shell-reverse .auth-aside {
    order: 1;
}

.auth-card {
    align-self: center;
    background:
        radial-gradient(ellipse at 100% 0, rgba(124, 245, 189, 0.065), transparent 42%),
        linear-gradient(145deg, #111916, #0d1210);
    border: 1px solid rgba(198, 230, 213, 0.13);
    border-radius: 16px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.2);
    padding: clamp(25px, 5vw, 43px);
    width: 100%;
}

.auth-card-compact {
    max-width: 525px;
}

.auth-back-link {
    color: #8e9c94;
    display: inline-block;
    font-size: 0.76rem;
    margin-bottom: 33px;
    text-decoration: none;
}

.auth-back-link:hover,
.auth-back-link:focus-visible {
    color: var(--mint);
}

.auth-card .eyebrow,
.auth-aside .eyebrow {
    margin-bottom: 12px;
}

.auth-card h1,
.auth-aside h2 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    letter-spacing: -0.055em;
}

.auth-card h1 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1.13;
    margin: 0;
}

.auth-intro {
    color: #9ba9a2;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 12px 0 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.auth-form label {
    color: #dfe8e2;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 5px;
}

.auth-form input:not([type='hidden']) {
    background: #090e0c;
    border: 1px solid rgba(198, 230, 213, 0.17);
    border-radius: 7px;
    color: #f4f7f5;
    font: inherit;
    font-size: 0.87rem;
    min-height: 46px;
    padding: 0 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.auth-form input:not([type='hidden']):hover {
    border-color: rgba(198, 230, 213, 0.3);
}

.auth-form input:not([type='hidden']):focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(124, 245, 189, 0.1);
    outline: none;
}

.auth-form input::placeholder {
    color: #67756d;
}

.password-label-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.password-label-row a,
.auth-switch a {
    color: var(--mint);
    font-size: 0.76rem;
    text-decoration: none;
}

.password-label-row a:hover,
.auth-switch a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.field-hint {
    color: #77857d;
    font-size: 0.7rem;
    font-weight: 400;
}

.auth-submit {
    align-items: center;
    background: var(--mint);
    border: 1px solid var(--mint);
    border-radius: 7px;
    color: #07110b;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 0.83rem;
    font-weight: 700;
    justify-content: space-between;
    margin-top: 12px;
    min-height: 46px;
    padding: 0 15px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    width: 100%;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    background: transparent;
    color: var(--mint);
    transform: translateY(-1px);
}

.auth-submit-link {
    max-width: 100%;
}

.auth-switch {
    color: #8e9c94;
    font-size: 0.77rem;
    margin: 21px 0 0;
    text-align: center;
}

.auth-switch a {
    font-weight: 600;
}

.auth-legal {
    color: #718078;
    font-size: 0.7rem;
    line-height: 1.6;
    margin: 17px 0 0;
    text-align: center;
}

.form-alert {
    border: 1px solid;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 18px 0;
    padding: 12px 14px;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 5px;
}

.form-alert-error {
    background: rgba(255, 105, 105, 0.07);
    border-color: rgba(255, 130, 130, 0.24);
    color: #ffc0bb;
}

.form-alert-success {
    background: rgba(124, 245, 189, 0.07);
    border-color: rgba(124, 245, 189, 0.24);
    color: #c6f9dc;
}

.demo-link {
    color: var(--mint);
    display: inline-flex;
    font-weight: 700;
    gap: 7px;
    margin-top: 9px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.demo-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-aside {
    align-self: stretch;
    background:
        radial-gradient(circle at 80% 16%, rgba(124, 245, 189, 0.12), transparent 34%),
        linear-gradient(155deg, rgba(19, 47, 33, 0.76), rgba(11, 17, 14, 0.82));
    border: 1px solid rgba(124, 245, 189, 0.13);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 380px;
    overflow: hidden;
    padding: clamp(26px, 5vw, 44px);
    position: relative;
}

.register-auth-aside {
    background: #07100c;
    isolation: isolate;
}

.register-aside-thumbnail {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    opacity: 0.72;
    position: absolute;
    transform: scale(1);
    transition: transform 500ms ease;
    width: 100%;
    z-index: 0;
}

.register-auth-aside:hover .register-aside-thumbnail {
    transform: scale(1.04);
}

.register-auth-aside::before {
    background:
        linear-gradient(155deg, rgba(7, 16, 12, 0.28) 0%, rgba(7, 16, 12, 0.64) 100%),
        linear-gradient(90deg, rgba(7, 16, 12, 0.22), transparent 75%);
    content: '';
    inset: 0;
    position: absolute;
    z-index: 1;
}

.register-auth-aside .auth-aside-symbol {
    background: rgba(7, 16, 12, 0.62);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.auth-aside.register-auth-aside .eyebrow {
    margin-top: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.register-auth-aside h2,
.register-auth-aside > p:last-child {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.register-auth-aside > p:last-child {
    color: #c1d0c7;
}

.register-auth-aside > :not(.register-aside-thumbnail) {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .register-aside-thumbnail {
        transition: none;
    }
}

.auth-aside::after {
    border: 1px solid rgba(124, 245, 189, 0.12);
    border-radius: 50%;
    bottom: -180px;
    content: '';
    height: 390px;
    position: absolute;
    right: -150px;
    width: 390px;
}

.auth-aside-symbol {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 15px;
    color: var(--mint);
    display: flex;
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 1.6rem;
    height: 58px;
    justify-content: center;
    margin-bottom: auto;
    width: 58px;
}

.auth-aside .eyebrow {
    margin-top: 52px;
}

.auth-aside h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.1;
    margin: 0;
    max-width: 360px;
}

.auth-aside > p:last-child {
    color: #9ba9a2;
    font-size: 0.85rem;
    line-height: 1.75;
    margin: 15px 0 0;
    max-width: 340px;
}

.auth-result-icon {
    align-items: center;
    border: 1px solid;
    border-radius: 50%;
    display: flex;
    font-size: 1.3rem;
    height: 48px;
    justify-content: center;
    margin: 0 0 22px;
    width: 48px;
}

.auth-result-success {
    background: rgba(124, 245, 189, 0.1);
    border-color: rgba(124, 245, 189, 0.35);
    color: var(--mint);
}

.auth-result-error {
    background: rgba(255, 105, 105, 0.08);
    border-color: rgba(255, 130, 130, 0.28);
    color: #ffaaa3;
}

.dashboard-details {
    align-items: center;
    background: rgba(5, 9, 7, 0.48);
    border: 1px solid var(--line);
    border-radius: 9px;
    display: flex;
    gap: 12px;
    margin: 24px 0;
    padding: 14px;
}

.profile-identity {
    align-items: center;
    background: rgba(5, 9, 7, 0.48);
    border: 1px solid var(--line);
    border-radius: 9px;
    display: flex;
    gap: 12px;
    margin: 24px 0;
    padding: 14px;
}

.profile-identity > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-identity strong {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.profile-identity > div span {
    color: #849188;
    font-size: 0.73rem;
}

.profile-details {
    border-top: 1px solid var(--line);
    margin: 0 0 24px;
}

.profile-details > div {
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 2px;
}

.profile-details dt {
    color: #849188;
    font-size: 0.76rem;
}

.profile-details dd {
    color: #e5ede8;
    font-size: 0.8rem;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.security-section {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 20px;
}

.security-section h2 {
    font-size: 1rem;
    margin: 0;
}

.security-section > .auth-intro {
    margin-bottom: 14px;
}

.security-secret {
    background: #090e0c;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--mint);
    margin: 0;
    overflow-wrap: anywhere;
    padding: 12px;
}

.security-hint {
    color: #849188;
    font-size: 0.73rem;
    line-height: 1.6;
}

.security-action-button {
    width: 100%;
}

.recovery-codes ul {
    display: grid;
    gap: 7px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.recovery-codes li {
    color: #c6f9dc;
    font-size: 0.76rem;
}

.recovery-codes code {
    overflow-wrap: anywhere;
}

.dashboard-avatar {
    align-items: center;
    background: rgba(124, 245, 189, 0.12);
    border-radius: 50%;
    color: var(--mint);
    display: flex;
    flex: 0 0 42px;
    font-size: 1.1rem;
    height: 42px;
    justify-content: center;
}

.dashboard-details > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dashboard-details strong {
    font-size: 0.82rem;
}

.dashboard-details > div span {
    color: #849188;
    font-size: 0.73rem;
    overflow-wrap: anywhere;
}

.account-status {
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.17);
    border-radius: 99px;
    color: var(--mint);
    font-size: 0.65rem;
    padding: 5px 8px;
}

.dashboard-actions {
    align-items: center;
    display: flex;
    gap: 17px;
}

.dashboard-actions .auth-submit {
    flex: 1;
    margin: 0;
}

.quiet-button {
    background: transparent;
    border: 0;
    color: #9ba9a2;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    padding: 12px 0;
}

.quiet-button:hover,
.quiet-button:focus-visible {
    color: #fff;
}

.auth-shell-single {
    display: block;
    max-width: 570px;
    min-height: 540px;
}

@media (max-width: 760px) {
    .auth-shell {
        gap: 18px;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
        padding-top: 38px;
    }

    .auth-aside {
        padding: 24px;
    }

    .auth-aside h2 {
        font-size: 1.85rem;
    }
}

@media (max-width: 600px) {
    .auth-shell {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 28px 16px 48px;
    }

    .auth-shell-reverse .auth-card,
    .auth-shell-reverse .auth-aside {
        order: initial;
    }

    .auth-card {
        padding: 25px 21px;
    }

    .auth-back-link {
        margin-bottom: 26px;
    }

    .auth-aside {
        min-height: 230px;
    }

    .auth-aside-symbol {
        height: 44px;
        margin-bottom: 22px;
        width: 44px;
    }

    .auth-aside .eyebrow {
        margin-top: 0;
    }
}

.game-card-art-link {
    color: inherit;
    text-decoration: none;
}

.game-card-art-link:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
    z-index: 4;
}

.card-art-open {
    align-items: center;
    background: rgba(7, 15, 11, 0.82);
    border: 1px solid rgba(124, 245, 189, 0.34);
    border-radius: 99px;
    bottom: 15px;
    color: #d9f8e5;
    display: inline-flex;
    font-size: 0.69rem;
    font-weight: 700;
    gap: 8px;
    opacity: 0;
    padding: 8px 11px;
    position: absolute;
    right: 15px;
    transform: translateY(5px);
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 4;
}

.card-art-open span {
    color: var(--mint);
}

.game-card-art-link:hover .card-art-open,
.game-card-art-link:focus-visible .card-art-open {
    opacity: 1;
    transform: translateY(0);
}

.game-center-page {
    margin: 0 auto;
    max-width: 1120px;
    padding: 34px 24px 82px;
}

.game-center-back {
    align-items: center;
    color: #aab8af;
    display: inline-flex;
    font-size: 0.78rem;
    gap: 9px;
    margin-bottom: 24px;
    text-decoration: none;
    transition: color 160ms ease;
}

.game-center-back:hover,
.game-center-back:focus-visible {
    color: var(--mint);
}

.game-center-hero {
    background:
        radial-gradient(ellipse at 0 0, rgba(124, 245, 189, 0.09), transparent 55%),
        linear-gradient(145deg, #111a15, #0c110e);
    border: 1px solid rgba(198, 230, 213, 0.13);
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
    min-height: 300px;
    overflow: hidden;
}

.game-center-art {
    align-items: center;
    background: linear-gradient(145deg, #1a3829, #101a14 76%);
    display: flex;
    justify-content: center;
    min-height: 280px;
    overflow: hidden;
    position: relative;
}

.game-center-art::after {
    background: linear-gradient(0deg, rgba(6, 11, 8, 0.48), transparent 65%);
    content: '';
    inset: 0;
    position: absolute;
}

.game-center-art img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    opacity: 0.62;
    position: absolute;
    width: 100%;
}

.game-center-art-mark {
    color: #d7f9e5;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(6rem, 12vw, 10rem);
    line-height: 1;
    position: relative;
    text-shadow: 0 0 55px rgba(124, 245, 189, 0.44);
    z-index: 1;
}

.game-center-intro {
    align-self: center;
    padding: clamp(27px, 5vw, 54px);
}

.game-center-intro .eyebrow {
    color: var(--mint);
    margin: 0 0 12px;
}

.game-center-status {
    border: 1px solid currentColor;
    border-radius: 99px;
    display: inline-flex;
    font-size: 0.65rem;
    margin-bottom: 15px;
    padding: 6px 10px;
}

.game-center-intro h1 {
    color: #f1f6f2;
    font-size: clamp(2.25rem, 5vw, 3.65rem);
    letter-spacing: -0.065em;
    line-height: 1.04;
    margin: 0;
    overflow-wrap: anywhere;
}

.game-center-intro > p:not(.eyebrow) {
    color: #a6b3aa;
    line-height: 1.75;
    margin: 14px 0 22px;
    max-width: 510px;
}

.game-center-play {
    align-items: center;
    display: inline-flex;
    gap: 14px;
    text-decoration: none;
}

.game-center-unavailable {
    color: #c1cec5;
    font-size: 0.8rem;
}

.game-center-tabs {
    border-bottom: 1px solid rgba(198, 230, 213, 0.13);
    display: flex;
    gap: clamp(18px, 4vw, 42px);
    margin: 26px 0 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.game-center-tabs a {
    border-bottom: 2px solid transparent;
    color: #a6b3aa;
    flex: 0 0 auto;
    font-size: 0.79rem;
    padding: 0 1px 13px;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease;
}

.game-center-tabs a:hover,
.game-center-tabs a:focus-visible,
.game-center-tabs a[aria-current="page"] {
    border-color: var(--mint);
    color: #e3f6e9;
}

.game-tab-lock {
    color: var(--mint);
    font-size: 0.68rem;
    margin-left: 7px;
}

.game-version-bar {
    align-items: center;
    background: linear-gradient(105deg, rgba(124, 245, 189, 0.055), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(198, 230, 213, 0.11);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: -3px 0 20px;
    padding: 12px 15px;
}

.game-version-bar [data-game-updates] {
    display: contents;
}

.game-version-summary {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
}

.game-version-label {
    color: #9eaba3;
    font-size: 0.7rem;
}

.game-version-summary code {
    color: #c8f4d9;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.game-auto-update {
    align-items: center;
    color: #d1ded5;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.72rem;
    gap: 8px;
}

.game-auto-update input {
    accent-color: var(--mint);
    height: 16px;
    margin: 0;
    width: 16px;
}

.game-update-status {
    color: #9eaba3;
    flex: 1 1 250px;
    font-size: 0.68rem;
    line-height: 1.5;
    margin: 0;
}

.game-update-now {
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.25);
    border-radius: 7px;
    color: #c8f4d9;
    cursor: pointer;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 7px 10px;
}

.game-update-now:hover,
.game-update-now:focus-visible {
    background: rgba(124, 245, 189, 0.16);
}

.game-center-panel {
    background: linear-gradient(145deg, rgba(17, 25, 20, 0.96), rgba(11, 16, 13, 0.96));
    border: 1px solid rgba(198, 230, 213, 0.11);
    border-radius: 14px;
    padding: clamp(22px, 4vw, 38px);
}

.game-center-panel > .eyebrow,
.game-center-panel-heading .eyebrow {
    color: var(--mint);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.game-center-panel h2 {
    color: #edf5ef;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.045em;
    margin: 0;
}

.game-center-panel > p:not(.eyebrow) {
    color: #a6b3aa;
    font-size: 0.84rem;
    line-height: 1.75;
    margin: 12px 0 0;
}

.game-center-facts {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 25px;
}

.game-center-facts article {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(198, 230, 213, 0.1);
    border-radius: 10px;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.game-center-facts span {
    color: #9eaba3;
    font-size: 0.69rem;
}

.game-center-facts strong {
    color: #e2f4e9;
    font-size: 1rem;
}

.game-center-overview-grid {
    display: grid;
    gap: 11px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.game-center-overview-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(198, 230, 213, 0.1);
    border-radius: 10px;
    min-width: 0;
    padding: 15px;
}

.game-center-overview-card span {
    color: #9eaba3;
    display: block;
    font-size: 0.67rem;
    letter-spacing: 0.07em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.game-center-overview-card p {
    color: #d1ded5;
    font-size: 0.78rem;
    line-height: 1.65;
    margin: 0;
}

.game-center-objective {
    grid-column: 1 / -1;
}

.game-center-subsection,
.game-rule-section {
    margin-top: 27px;
}

.game-center-subsection h3,
.game-rule-section h3 {
    color: #e5f0e8;
    font-size: 1rem;
    letter-spacing: -0.02em;
    margin: 0;
}

.game-center-subsection .eyebrow {
    margin-bottom: 8px;
}

.game-center-steps {
    counter-reset: game-step;
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.game-center-steps li {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(198, 230, 213, 0.08);
    border-radius: 9px;
    color: #c0cbc3;
    counter-increment: game-step;
    display: flex;
    font-size: 0.8rem;
    gap: 12px;
    line-height: 1.65;
    padding: 12px 14px;
}

.game-center-steps li::before {
    align-items: center;
    background: rgba(124, 245, 189, 0.08);
    border-radius: 50%;
    color: var(--mint);
    content: counter(game-step);
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 0.68rem;
    font-weight: 700;
    height: 24px;
    justify-content: center;
}

.game-center-update {
    align-items: flex-start;
    background: rgba(124, 245, 189, 0.04);
    border: 1px solid rgba(124, 245, 189, 0.12);
    border-radius: 9px;
    color: var(--mint);
    display: flex;
    gap: 11px;
    margin-top: 22px;
    padding: 13px 15px;
}

.game-center-update p {
    color: #aebbb2;
    font-size: 0.74rem;
    line-height: 1.65;
    margin: 0;
}

.game-center-update strong {
    color: #d9f4e3;
    display: block;
    font-size: 0.76rem;
    margin-bottom: 3px;
}

.game-center-notice {
    align-items: flex-start;
    background: rgba(124, 245, 189, 0.045);
    border: 1px solid rgba(124, 245, 189, 0.13);
    border-radius: 9px;
    color: var(--mint);
    display: flex;
    gap: 11px;
    margin-top: 20px;
    padding: 13px 15px;
}

.game-center-notice p {
    color: #bdc9c1;
    font-size: 0.76rem;
    line-height: 1.6;
    margin: 0;
}

.game-rules-list,
.game-history-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.game-rules-list {
    display: grid;
    gap: 10px;
}

.game-rules-list li {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(198, 230, 213, 0.08);
    border-radius: 9px;
    color: var(--mint);
    display: flex;
    gap: 13px;
    padding: 14px 15px;
}

.game-rules-list p {
    color: #c0cbc3;
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 0;
}

.game-center-disclaimer {
    color: #89978e !important;
    font-size: 0.72rem !important;
    margin-top: 20px !important;
}

.game-rule-section > .game-rules-list {
    margin-top: 12px;
}

.game-faq-section {
    display: grid;
    gap: 9px;
}

.game-faq-section h3 {
    margin-bottom: 3px;
}

.game-faq {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(198, 230, 213, 0.09);
    border-radius: 9px;
    padding: 13px 15px;
}

.game-faq summary {
    color: #dce9df;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.55;
}

.game-faq summary::marker {
    color: var(--mint);
}

.game-faq p {
    color: #aab7ae;
    font-size: 0.76rem;
    line-height: 1.7;
    margin: 10px 0 0;
}

.game-center-empty {
    align-items: center;
    background: rgba(255, 255, 255, 0.022);
    border: 1px dashed rgba(198, 230, 213, 0.15);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    margin-top: 22px;
    padding: 34px 18px;
    text-align: center;
}

.game-center-empty > span {
    color: var(--mint);
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.game-center-empty strong {
    color: #e2eee6;
    font-size: 0.9rem;
}

.game-center-empty p {
    color: #9eaba3;
    font-size: 0.76rem;
    margin: 7px 0 0;
}

.game-history-list {
    display: grid;
    gap: 8px;
    max-height: 520px;
    overflow-y: auto;
}

.game-history-list li {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(198, 230, 213, 0.08);
    border-radius: 9px;
    display: flex;
    gap: 14px;
    padding: 13px 15px;
}

.game-history-number {
    align-items: center;
    background: rgba(124, 245, 189, 0.08);
    border-radius: 7px;
    color: var(--mint);
    display: inline-flex;
    flex: 0 0 35px;
    font-size: 0.7rem;
    height: 35px;
    justify-content: center;
}

.game-history-list li > span:last-child {
    display: grid;
    gap: 4px;
}

.game-history-list strong {
    color: #dce9df;
    font-size: 0.8rem;
}

.game-history-list small {
    color: #95a39a;
    font-size: 0.7rem;
}

.game-center-panel-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.game-center-leaderboard-count {
    background: rgba(124, 245, 189, 0.08);
    border: 1px solid rgba(124, 245, 189, 0.16);
    border-radius: 99px;
    color: #c8f0d8;
    flex: 0 0 auto;
    font-size: 0.68rem;
    padding: 7px 10px;
}

.game-leaderboard-wrap {
    margin-top: 20px;
    overflow-x: auto;
}

.game-leaderboard {
    border-collapse: collapse;
    min-width: 520px;
    text-align: left;
    width: 100%;
}

.game-leaderboard th {
    color: #94a198;
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    padding: 12px 14px;
    text-transform: uppercase;
}

.game-leaderboard td {
    border-top: 1px solid rgba(198, 230, 213, 0.09);
    color: #cbd7ce;
    font-size: 0.77rem;
    padding: 13px 14px;
}

.game-leader-rank {
    align-items: center;
    background: rgba(124, 245, 189, 0.075);
    border-radius: 6px;
    color: var(--mint);
    display: inline-flex;
    font-size: 0.67rem;
    justify-content: center;
    min-height: 28px;
    min-width: 32px;
}

@media (max-width: 700px) {
    .game-center-page {
        padding: 25px 17px 56px;
    }

    .game-center-hero {
        grid-template-columns: 1fr;
    }

    .game-center-art {
        min-height: 205px;
    }

    .game-center-intro {
        padding: 25px;
    }

    .game-center-facts {
        grid-template-columns: 1fr;
    }

    .game-center-overview-grid {
        grid-template-columns: 1fr;
    }

    .game-center-objective {
        grid-column: auto;
    }

    .game-center-facts article {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

@media (hover: none) {
    .card-art-open {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-center-back,
    .game-center-tabs a,
    .card-art-open {
        transition: none;
    }
}

.rummy-duration.is-hidden {
    display: none;
}

.rummy-deal-animation[hidden] {
    display: none;
}

.rummy-game.is-shuffling .rummy-hand-panel,
.rummy-game.is-dealing .rummy-hand-panel,
.rummy-game.is-shuffling .rummy-piles,
.rummy-game.is-dealing .rummy-piles,
.rummy-game.is-shuffling .rummy-turn-message,
.rummy-game.is-dealing .rummy-turn-message {
    display: none;
}

.rummy-game.is-shuffling .rummy-table-surface,
.rummy-game.is-dealing .rummy-table-surface {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
}

.rummy-deal-animation {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 12px;
    text-align: center;
}

.rummy-deal-deck {
    height: 83px;
    position: relative;
    width: 68px;
}

.rummy-deal-deck span,
.rummy-deal-card-back {
    align-items: center;
    background:
        repeating-linear-gradient(45deg, rgba(124, 245, 189, 0.08) 0 3px, transparent 3px 7px),
        linear-gradient(145deg, #193c2b, #102319);
    border: 1px solid rgba(185, 242, 207, 0.48);
    border-radius: 7px;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.27);
    color: #c7f5d9;
    display: inline-flex;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 700;
    justify-content: center;
}

.rummy-deal-deck span {
    height: 76px;
    left: 0;
    position: absolute;
    top: 0;
    width: 58px;
}

.rummy-deal-deck span:nth-child(1) {
    transform: rotate(-11deg);
}

.rummy-deal-deck span:nth-child(2) {
    transform: rotate(7deg) translate(3px, -2px);
}

.rummy-deal-deck span:nth-child(3) {
    transform: rotate(-2deg) translate(1px, -4px);
}

.rummy-deal-animation.is-shuffling .rummy-deal-deck span {
    animation: rummy-deck-shuffle 420ms ease-in-out infinite alternate;
}

.rummy-deal-animation.is-shuffling .rummy-deal-deck span:nth-child(2) {
    animation-delay: 100ms;
}

.rummy-deal-animation.is-shuffling .rummy-deal-deck span:nth-child(3) {
    animation-delay: 200ms;
}

.rummy-deal-message {
    color: #e1f2e6;
    font-size: 0.9rem;
    font-weight: 650;
    margin: 0;
}

.rummy-deal-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.rummy-deal-progress span {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.1);
    border-radius: 99px;
    color: #89988f;
    font-size: 0.61rem;
    padding: 6px 9px;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.rummy-deal-progress span.is-active {
    background: rgba(124, 245, 189, 0.1);
    border-color: rgba(124, 245, 189, 0.38);
    color: #d9f8e4;
}

.rummy-deal-progress span.is-complete {
    border-color: rgba(124, 245, 189, 0.19);
    color: var(--mint);
}

.rummy-deal-cards {
    display: flex;
    justify-content: center;
    margin-top: 3px;
    min-height: 63px;
}

.rummy-deal-card-back {
    animation: rummy-card-deal 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--deal-index) * 38ms);
    font-size: 0.85rem;
    height: 58px;
    margin-left: -15px;
    width: 40px;
}

.rummy-deal-card-back:first-child {
    margin-left: 0;
}

@keyframes rummy-deck-shuffle {
    from {
        margin-left: -8px;
        transform: rotate(-14deg) translateY(1px);
    }
    to {
        margin-left: 8px;
        transform: rotate(14deg) translateY(-5px);
    }
}

@keyframes rummy-card-deal {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.88);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rummy-deal-animation.is-shuffling .rummy-deal-deck span,
    .rummy-deal-card-back {
        animation: none;
    }

    .rummy-deal-progress span {
        transition: none;
    }
}

.games-grid {
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.game-card {
    background:
        radial-gradient(ellipse at 85% 0, rgba(124, 245, 189, 0.055), transparent 45%),
        linear-gradient(155deg, #121a16, #0b100e 78%);
    border: 1px solid rgba(198, 230, 213, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
    isolation: isolate;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.game-card:hover,
.game-card:focus-within {
    border-color: rgba(124, 245, 189, 0.42);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35), 0 0 30px rgba(124, 245, 189, 0.07);
    transform: translateY(-6px);
}

.card-art {
    background:
        radial-gradient(circle at 75% 28%, rgba(124, 245, 189, 0.2), transparent 36%),
        linear-gradient(135deg, #173226, #111b16 65%, #101512);
    height: 184px;
}

.game-card-1 .card-art {
    background:
        radial-gradient(circle at 75% 28%, rgba(177, 147, 255, 0.2), transparent 36%),
        linear-gradient(135deg, #211a32, #15141f 68%, #101215);
}

.game-card-2 .card-art {
    background:
        radial-gradient(circle at 75% 28%, rgba(244, 196, 93, 0.2), transparent 36%),
        linear-gradient(135deg, #2a2416, #1b1914 68%, #111411);
}

.game-card-3 .card-art {
    background:
        radial-gradient(circle at 75% 28%, rgba(90, 192, 226, 0.2), transparent 36%),
        linear-gradient(135deg, #172a32, #141b20 68%, #111411);
}

.card-art.has-thumbnail::before {
    background: linear-gradient(0deg, rgba(7, 12, 9, 0.64), transparent 62%);
    display: block;
    inset: 0;
    transform: none;
    width: auto;
    height: auto;
    z-index: 1;
}

.card-art.has-thumbnail::after {
    border-color: rgba(220, 255, 235, 0.18);
    display: block;
    height: 220px;
    right: -108px;
    top: 46px;
    transform: rotate(24deg) scaleY(0.5);
    width: 330px;
    z-index: 1;
}

.game-thumbnail {
    object-position: center 48%;
    z-index: 0;
}

.card-art.has-thumbnail .card-category,
.card-art > .game-status-badge {
    backdrop-filter: blur(12px);
    font-size: 0.66rem;
    padding: 7px 10px;
    z-index: 3;
}

.card-art > .game-status-badge::before {
    background: currentColor;
    border-radius: 50%;
    content: '';
    height: 6px;
    margin-right: 7px;
    width: 6px;
}

.game-card-content {
    gap: 0;
    padding: 19px 19px 18px;
}

.game-card h3 {
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}

.game-card-number {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.09);
    border-radius: 99px;
    color: #93a198;
    display: inline-flex;
    font-size: 0.66rem;
    justify-content: center;
    min-height: 28px;
    min-width: 34px;
}

.game-card-content p {
    color: #a1aea6;
    font-size: 0.79rem;
    line-height: 1.65;
    margin: 9px 0 15px;
    min-height: 2.8em;
}

.game-card-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 16px;
    min-height: 27px;
}

.card-player-mode,
.game-card-for-fun {
    align-items: center;
    background: rgba(8, 12, 11, 0.56);
    border: 1px solid rgba(198, 230, 213, 0.11);
    border-radius: 99px;
    color: #b8c5bd;
    display: inline-flex;
    font-size: 0.65rem;
    gap: 6px;
    line-height: 1.2;
    padding: 6px 9px;
}

.card-player-mode {
    border-color: rgba(124, 245, 189, 0.23);
    color: #c9f3db;
    position: static;
}

.game-card-for-fun span {
    color: var(--mint);
}

.game-card .play-button {
    border-radius: 8px;
    box-shadow: 0 6px 17px rgba(124, 245, 189, 0.12);
    font-size: 0.78rem;
    min-height: 47px;
    padding: 0 14px;
}

.game-card .play-button > span:last-child {
    align-items: center;
    background: rgba(7, 17, 11, 0.1);
    border-radius: 50%;
    display: inline-flex;
    height: 27px;
    justify-content: center;
    transition: transform 180ms ease;
    width: 27px;
}

.game-card .play-button:hover > span:last-child,
.game-card .play-button:focus-visible > span:last-child {
    transform: translate(2px, -2px);
}

.game-card .play-button-disabled {
    box-shadow: none;
}

@media (max-width: 600px) {
    .games-grid {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .card-art {
        height: 190px;
    }

    .game-card-content {
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-card,
    .game-thumbnail,
    .game-card .play-button > span:last-child {
        transition: none;
    }
}

.game-splash {
    align-items: center;
    background:
        radial-gradient(ellipse at 16% 10%, rgba(75, 207, 143, 0.13), transparent 36rem),
        radial-gradient(ellipse at 90% 92%, rgba(88, 98, 217, 0.13), transparent 32rem),
        rgba(5, 9, 7, 0.97);
    display: flex;
    inset: 0;
    justify-content: center;
    min-height: 100svh;
    overflow: hidden;
    padding: 32px;
    position: fixed;
    transition: opacity 360ms ease, visibility 360ms ease;
    visibility: visible;
    z-index: 10000;
}

body.game-splash-open {
    overflow: hidden;
}

.game-splash.is-dismissed {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.game-splash-glow {
    border: 1px solid rgba(124, 245, 189, 0.09);
    border-radius: 50%;
    height: 48rem;
    pointer-events: none;
    position: absolute;
    transform: scaleY(0.58) rotate(-24deg);
    width: 72rem;
}

.game-splash-glow-one {
    left: -29rem;
    top: -20rem;
}

.game-splash-glow-two {
    bottom: -25rem;
    right: -34rem;
    transform: scaleY(0.58) rotate(31deg);
}

.game-splash-card {
    background:
        radial-gradient(ellipse at 100% 0, rgba(124, 245, 189, 0.055), transparent 42%),
        linear-gradient(145deg, #121a16, #0b100e);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 22px;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
    display: grid;
    grid-template-columns: minmax(250px, 0.88fr) minmax(340px, 1.12fr);
    max-width: 960px;
    min-height: 515px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.game-splash-art {
    align-items: center;
    background:
        radial-gradient(circle at 48% 44%, rgba(124, 245, 189, 0.23), transparent 36%),
        linear-gradient(155deg, #183629, #111c17 64%, #121713);
    display: flex;
    justify-content: center;
    min-height: 390px;
    overflow: hidden;
    position: relative;
}

.game-splash-art::before,
.game-splash-art::after {
    border: 1px solid rgba(220, 255, 235, 0.17);
    border-radius: 50%;
    content: '';
    height: 380px;
    position: absolute;
    transform: scaleY(0.61) rotate(-24deg);
    width: 510px;
}

.game-splash-art::after {
    height: 300px;
    transform: scaleY(0.61) rotate(28deg);
    width: 420px;
}

.game-splash-art img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    opacity: 0.52;
    position: absolute;
    width: 100%;
}

.game-splash-art-shade {
    background: linear-gradient(0deg, rgba(6, 11, 8, 0.92), transparent 64%), linear-gradient(90deg, transparent 60%, #111713);
    inset: 0;
    position: absolute;
}

.game-splash-symbol {
    color: #b7f9d2;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(7rem, 16vw, 12rem);
    line-height: 1;
    position: relative;
    text-shadow: 0 0 75px rgba(124, 245, 189, 0.45);
    z-index: 1;
}

.game-splash-art-label {
    bottom: 27px;
    color: rgba(224, 248, 234, 0.7);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    position: absolute;
    z-index: 1;
}

.game-splash-copy {
    align-self: center;
    padding: clamp(32px, 5vw, 62px);
    position: relative;
    z-index: 1;
}

.game-splash-back {
    color: #9ba9a2;
    display: inline-flex;
    font-size: 0.77rem;
    gap: 9px;
    margin-bottom: 37px;
    text-decoration: none;
}

.game-splash-back:hover,
.game-splash-back:focus-visible {
    color: var(--mint);
}

.game-splash-eyebrow {
    align-items: center;
    color: var(--mint);
    display: flex;
    font-size: 0.67rem;
    gap: 9px;
    letter-spacing: 0.18em;
    margin: 0 0 13px;
    text-transform: uppercase;
}

.game-splash-copy h1 {
    color: #f1f6f2;
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: clamp(2.7rem, 6vw, 4.2rem);
    letter-spacing: -0.075em;
    line-height: 0.98;
    margin: 0;
    overflow-wrap: anywhere;
}

.game-splash-copy h1 span {
    color: var(--mint);
}

.game-splash-description {
    color: #a4b0a8;
    font-size: 0.91rem;
    line-height: 1.75;
    margin: 19px 0 22px;
    max-width: 390px;
}

.game-splash-details {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
    margin: 0 0 29px;
    padding: 0;
}

.game-splash-details li {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.11);
    border-radius: 99px;
    color: #c3d0c8;
    display: inline-flex;
    font-size: 0.68rem;
    gap: 7px;
    padding: 8px 10px;
}

.game-splash-details li span {
    color: var(--mint);
}

.game-splash-start {
    align-items: center;
    background: var(--mint);
    border: 1px solid var(--mint);
    border-radius: 8px;
    color: #07110b;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    justify-content: space-between;
    min-width: 195px;
    padding: 13px 16px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.game-splash-start:hover,
.game-splash-start:focus-visible {
    background: transparent;
    color: var(--mint);
    transform: translateY(-2px);
}

.game-splash-footnote {
    color: #647269;
    font-size: 0.67rem;
    margin: 15px 0 0;
}

.game-splash-index {
    bottom: 19px;
    color: #536159;
    font-size: 0.6rem;
    letter-spacing: 0.17em;
    position: absolute;
    right: 24px;
}

@media (max-width: 680px) {
    .game-splash {
        padding: 15px;
    }

    .game-splash-card {
        grid-template-columns: 1fr;
        max-width: 475px;
        min-height: 0;
    }

    .game-splash-art {
        min-height: 190px;
    }

    .game-splash-art::before {
        height: 270px;
        width: 390px;
    }

    .game-splash-art::after {
        height: 220px;
        width: 320px;
    }

    .game-splash-symbol {
        font-size: 6.4rem;
    }

    .game-splash-art-label {
        bottom: 14px;
        font-size: 0.54rem;
    }

    .game-splash-copy {
        padding: 24px 23px 31px;
    }

    .game-splash-back {
        margin-bottom: 20px;
    }

    .game-splash-copy h1 {
        font-size: clamp(2.4rem, 12vw, 3.5rem);
    }

    .game-splash-description {
        font-size: 0.83rem;
        margin: 13px 0 17px;
    }

    .game-splash-details {
        gap: 7px;
        margin-bottom: 22px;
    }

    .game-splash-details li {
        font-size: 0.63rem;
        padding: 7px 9px;
    }

    .game-splash-index {
        bottom: 10px;
        right: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-splash,
    .game-splash-start {
        transition: none;
    }
}

.status-page {
    align-items: center;
    background:
        radial-gradient(ellipse at 50% 34%, rgba(38, 120, 78, 0.19), transparent 31rem),
        radial-gradient(ellipse at 12% 92%, rgba(31, 86, 61, 0.13), transparent 28rem),
        #080c0b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 28px 20px;
    position: relative;
}

.status-page::before {
    background-image: linear-gradient(rgba(198, 230, 213, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(198, 230, 213, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    content: '';
    inset: 0;
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
    pointer-events: none;
    position: absolute;
}

.status-brand {
    align-items: center;
    color: #f4f7f5;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 750;
    gap: 10px;
    left: max(22px, calc((100vw - 1180px) / 2));
    letter-spacing: -0.045em;
    position: absolute;
    text-decoration: none;
    top: 26px;
}

.status-brand > span {
    align-items: center;
    background: var(--mint);
    border-radius: 9px;
    color: #07110b;
    display: inline-flex;
    font-size: 0.8rem;
    height: 31px;
    justify-content: center;
    width: 31px;
}

.status-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 560px;
    padding: 45px 0 20px;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.status-art {
    align-items: center;
    display: flex;
    height: 174px;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    width: 250px;
}

.status-orbit {
    border: 1px solid rgba(124, 245, 189, 0.13);
    border-radius: 50%;
    height: 130px;
    position: absolute;
    transform: rotate(-24deg) scaleY(0.5);
    width: 220px;
}

.status-orbit-one {
    animation: status-orbit 16s linear infinite;
}

.status-orbit-two {
    border-color: rgba(124, 245, 189, 0.08);
    height: 165px;
    transform: rotate(38deg) scaleY(0.54);
    width: 260px;
}

.status-art-mark {
    align-items: center;
    background: linear-gradient(145deg, rgba(124, 245, 189, 0.17), rgba(124, 245, 189, 0.045));
    border: 1px solid rgba(124, 245, 189, 0.25);
    border-radius: 27px;
    box-shadow: 0 0 65px rgba(75, 220, 145, 0.12), inset 0 1px rgba(255, 255, 255, 0.1);
    color: var(--mint);
    display: flex;
    font-size: 3rem;
    height: 92px;
    justify-content: center;
    transform: rotate(-8deg);
    width: 92px;
}

.status-art-dot {
    background: var(--mint);
    border: 3px solid #0b130f;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(124, 245, 189, 0.65);
    height: 10px;
    position: absolute;
    width: 10px;
}

.status-art-dot-one {
    left: 37px;
    top: 48px;
}

.status-art-dot-two {
    background: #edc66d;
    height: 7px;
    right: 34px;
    top: 46px;
    width: 7px;
}

.status-art-dot-three {
    bottom: 28px;
    height: 6px;
    left: 67px;
    width: 6px;
}

.status-eyebrow {
    align-items: center;
    color: var(--mint);
    display: inline-flex;
    font-size: 0.64rem;
    font-weight: 750;
    gap: 8px;
    letter-spacing: 0.16em;
    margin: 0;
}

.status-eyebrow > span {
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 9px currentColor;
    height: 6px;
    width: 6px;
}

.status-code {
    color: rgba(198, 230, 213, 0.27);
    font-family: Consolas, monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    margin: 18px 0 8px;
}

.status-content h1 {
    color: #f1f7f3;
    font-size: clamp(2.25rem, 7vw, 3.7rem);
    letter-spacing: -0.075em;
    line-height: 1.02;
    margin: 0;
}

.status-description {
    color: #9eaca4;
    font-size: 0.88rem;
    line-height: 1.75;
    margin: 16px 0 0;
    max-width: 450px;
}

.status-custom-message {
    background: rgba(124, 245, 189, 0.055);
    border: 1px solid rgba(124, 245, 189, 0.14);
    border-radius: 8px;
    color: #d0e4d7;
    font-size: 0.76rem;
    line-height: 1.6;
    margin: 16px 0 0;
    padding: 10px 13px;
}

.status-primary-link {
    align-items: center;
    background: var(--mint);
    border: 1px solid var(--mint);
    border-radius: 8px;
    color: #07110b;
    display: inline-flex;
    font-size: 0.77rem;
    font-weight: 750;
    gap: 18px;
    justify-content: space-between;
    margin-top: 25px;
    min-height: 46px;
    padding: 0 15px;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.status-primary-link:hover,
.status-primary-link:focus-visible {
    background: transparent;
    color: var(--mint);
    transform: translateY(-2px);
}

.status-footnote {
    color: #65746b;
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    margin: 41px 0 0;
}

.status-footnote span {
    color: var(--mint);
    margin: 0 5px;
}

.status-page-coming-soon .status-art-mark {
    color: #c6a7ff;
    border-color: rgba(192, 154, 255, 0.27);
    box-shadow: 0 0 65px rgba(152, 112, 237, 0.13), inset 0 1px rgba(255, 255, 255, 0.1);
}

.status-page-coming-soon .status-orbit {
    border-color: rgba(192, 154, 255, 0.14);
}

.status-page-coming-soon .status-eyebrow {
    color: #c6a7ff;
}

.status-page-coming-soon .status-code {
    color: #c6a7ff;
}

.status-page-maintenance .status-code {
    color: #f0d58f;
}

.status-page-error .status-art-mark,
.status-page-error .status-eyebrow,
.status-page-error .status-code {
    color: #ffaaa3;
}

.status-page-error .status-art-mark {
    background: linear-gradient(145deg, rgba(255, 111, 111, 0.15), rgba(255, 111, 111, 0.035));
    border-color: rgba(255, 111, 111, 0.23);
    box-shadow: 0 0 65px rgba(255, 111, 111, 0.1), inset 0 1px rgba(255, 255, 255, 0.08);
}

.status-page-error .status-orbit {
    border-color: rgba(255, 111, 111, 0.12);
}

@keyframes status-orbit {
    to {
        transform: rotate(336deg) scaleY(0.5);
    }
}

@media (max-width: 520px) {
    .status-page {
        padding: 20px 17px;
    }

    .status-brand {
        left: 18px;
        top: 18px;
    }

    .status-content {
        padding-top: 58px;
    }

    .status-art {
        transform: scale(0.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-orbit-one {
        animation: none;
    }
}

.topbar-links {
    align-items: center;
}

@media (max-width: 520px) {
    .topbar {
        gap: 6px 9px;
    }

    .topbar-links {
        gap: 10px;
    }

}

.rummy-page {
    padding-bottom: 56px;
}

.rummy-back-link {
    align-items: center;
    color: #9eada4;
    display: inline-flex;
    font-size: 0.78rem;
    gap: 8px;
    margin: 25px 0 32px;
    text-decoration: none;
}

.rummy-back-link:hover,
.rummy-back-link:focus-visible {
    color: var(--mint);
}

.rummy-heading {
    margin: 0 auto;
    max-width: 680px;
    text-align: center;
}

.rummy-heading .eyebrow {
    justify-content: center;
    margin-bottom: 12px;
}

.rummy-heading h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    letter-spacing: -0.075em;
    line-height: 1;
    margin: 0;
}

.rummy-heading h1 span {
    color: var(--mint);
}

.rummy-heading > p:last-child {
    color: #9aa79f;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 14px auto 0;
}

.rummy-lobby,
.rummy-game,
.rummy-howto {
    margin-left: auto;
    margin-right: auto;
    max-width: 920px;
}

.rummy-lobby {
    margin-top: 34px;
}

.rummy-name-field {
    display: grid;
    gap: 8px;
    margin: 0 auto 17px;
    max-width: 440px;
}

.rummy-name-field label,
.rummy-select-label {
    color: #bac9c0;
    font-size: 0.76rem;
    font-weight: 650;
}

.rummy-name-field input,
.rummy-join-row input,
.rummy-room-actions select {
    background: #0d1410;
    border: 1px solid rgba(198, 230, 213, 0.17);
    border-radius: 8px;
    color: #f4f7f5;
    font: inherit;
    min-height: 44px;
    padding: 0 13px;
}

.rummy-name-field input:focus,
.rummy-join-row input:focus,
.rummy-room-actions select:focus {
    border-color: var(--mint);
    outline: 2px solid rgba(124, 245, 189, 0.15);
}

.rummy-match-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 auto 20px;
    max-width: 440px;
}

.rummy-match-settings label {
    color: #bac9c0;
    display: grid;
    flex: 1 1 170px;
    font-size: 0.72rem;
    font-weight: 650;
    gap: 6px;
}

.rummy-match-settings select {
    background: #0d1410;
    border: 1px solid rgba(198, 230, 213, 0.17);
    border-radius: 8px;
    color: #f4f7f5;
    font: inherit;
    min-height: 42px;
    padding: 0 10px;
}

.rummy-mode-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rummy-mode-card {
    background:
        radial-gradient(ellipse at 90% 0%, rgba(71, 157, 111, 0.12), transparent 48%),
        linear-gradient(145deg, #111b16, #0e1411);
    border: 1px solid rgba(124, 245, 189, 0.14);
    border-radius: 16px;
    min-height: 285px;
    padding: 24px;
    position: relative;
}

.rummy-mode-practice {
    background:
        radial-gradient(ellipse at 92% 8%, rgba(124, 245, 189, 0.18), transparent 48%),
        linear-gradient(145deg, #123327, #101a14);
}

.rummy-mode-icon {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.17);
    border-radius: 11px;
    color: var(--mint);
    display: inline-flex;
    font-size: 1.25rem;
    height: 43px;
    justify-content: center;
    width: 43px;
}

.rummy-mode-tag,
.rummy-hand-label,
.rummy-room-label {
    color: var(--mint);
    display: block;
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.15em;
}

.rummy-mode-tag {
    margin-top: 18px;
}

.rummy-mode-card h2 {
    font-size: 1.4rem;
    letter-spacing: -0.035em;
    margin: 6px 0 7px;
}

.rummy-mode-card p {
    color: #98a69e;
    font-size: 0.78rem;
    line-height: 1.65;
    margin: 0 0 18px;
    max-width: 340px;
    min-height: 2.6em;
}

.rummy-button {
    cursor: pointer;
    font: inherit;
    font-size: 0.77rem;
    min-height: 43px;
    min-width: 154px;
}

.rummy-room-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 5px 0 12px;
}

.rummy-room-actions select {
    min-height: 42px;
    padding: 0 10px;
}

.rummy-join-row {
    display: flex;
    gap: 8px;
}

.rummy-join-row input {
    flex: 1;
    font-size: 0.75rem;
    letter-spacing: 0.13em;
    min-width: 0;
}

.rummy-join-button,
.rummy-action-secondary,
.rummy-leave-button {
    background: rgba(124, 245, 189, 0.08);
    border: 1px solid rgba(124, 245, 189, 0.24);
    border-radius: 8px;
    color: #c8f8df;
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0 16px;
}

.rummy-join-button:hover,
.rummy-action-secondary:hover:not(:disabled),
.rummy-leave-button:hover {
    background: rgba(124, 245, 189, 0.15);
}

.rummy-leave-dialog {
    background: transparent;
    border: 0;
    color: #edf5ef;
    max-width: min(440px, calc(100vw - 32px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.rummy-leave-dialog::backdrop {
    backdrop-filter: blur(5px);
    background: rgba(3, 8, 5, 0.78);
}

.rummy-leave-dialog-card {
    background:
        radial-gradient(ellipse at 100% 0, rgba(124, 245, 189, 0.07), transparent 45%),
        linear-gradient(145deg, #142019, #0c120e);
    border: 1px solid rgba(198, 230, 213, 0.16);
    border-radius: 16px;
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.55);
    padding: clamp(24px, 6vw, 34px);
}

.rummy-leave-dialog-icon {
    align-items: center;
    background: rgba(124, 245, 189, 0.08);
    border: 1px solid rgba(124, 245, 189, 0.18);
    border-radius: 11px;
    color: var(--mint);
    display: inline-flex;
    font-size: 1.2rem;
    height: 43px;
    justify-content: center;
    margin-bottom: 18px;
    width: 43px;
}

.rummy-leave-dialog-card > .eyebrow {
    color: var(--mint);
    font-size: 0.63rem;
    letter-spacing: 0.16em;
    margin: 0 0 9px;
    text-transform: uppercase;
}

.rummy-leave-dialog-card h2 {
    color: #f0f6f1;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    letter-spacing: -0.045em;
    margin: 0;
}

.rummy-leave-dialog-card > p:not(.eyebrow) {
    color: #aab8af;
    font-size: 0.82rem;
    line-height: 1.65;
    margin: 12px 0 0;
}

.rummy-leave-dialog-card .rummy-leave-winner {
    color: #d9f5e2;
    font-weight: 650;
}

.rummy-leave-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.rummy-leave-dialog-actions button {
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    min-height: 42px;
    padding: 0 15px;
}

.rummy-stay-button {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.16);
    color: #d2ded5;
}

.rummy-stay-button:hover {
    background: rgba(255, 255, 255, 0.07);
}

.rummy-confirm-leave {
    background: var(--mint);
    border: 1px solid var(--mint);
    color: #08120c;
}

.rummy-confirm-leave:hover {
    background: #a2f8c6;
}

.rummy-leave-dialog-actions button:focus-visible {
    outline: 3px solid #e1ffec;
    outline-offset: 3px;
}

.rummy-feedback {
    color: #ffc1b8;
    font-size: 0.78rem;
    min-height: 1.4em;
    text-align: center;
}

.rummy-rule-note {
    color: #728078;
    font-size: 0.7rem;
    margin-top: 18px;
    text-align: center;
}

.rummy-game {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(54, 121, 82, 0.24), transparent 58%),
        linear-gradient(145deg, #11271b, #0b1510);
    border: 1px solid rgba(124, 245, 189, 0.15);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.025);
    margin-top: 32px;
    overflow: hidden;
    padding-bottom: 12px;
}

.rummy-game-topbar {
    align-items: center;
    background: rgba(5, 12, 8, 0.45);
    border-bottom: 1px solid rgba(198, 230, 213, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: space-between;
    min-height: 71px;
    padding: 12px 22px;
}

.rummy-duration {
    align-items: baseline;
    display: inline-flex;
    gap: 8px;
}

.rummy-duration span {
    color: #8d9e93;
    font-size: 0.64rem;
}

.rummy-duration strong {
    color: #d8f6e3;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    min-width: 4.4em;
}

.rummy-sound-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rummy-sound-controls button,
.rummy-sound-controls label,
.rummy-hand-tools button {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 7px;
    color: #b9c9be;
    cursor: pointer;
    font: inherit;
    font-size: 0.65rem;
    min-height: 32px;
    padding: 5px 8px;
}

.rummy-sound-controls label {
    align-items: center;
    border: 0;
    display: flex;
    gap: 5px;
    padding: 0;
}

.rummy-sound-controls input[type="range"] {
    accent-color: var(--mint);
    max-width: 74px;
}

.rummy-turn-timer {
    color: #aebdb3;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    margin: 9px 18px 0;
    min-height: 1.2em;
    text-align: center;
}

.rummy-turn-timer.is-warning {
    color: #ffcf75;
}

.rummy-room-label {
    color: #8d9e93;
    font-size: 0.57rem;
}

.rummy-code-button {
    background: none;
    border: 0;
    color: var(--mint);
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    margin-top: 3px;
    padding: 0;
}

.rummy-wild {
    color: #9ba9a2;
    font-size: 0.75rem;
}

.rummy-wild strong {
    background: rgba(124, 245, 189, 0.1);
    border: 1px solid rgba(124, 245, 189, 0.17);
    border-radius: 99px;
    color: var(--mint);
    margin-left: 7px;
    padding: 5px 10px;
}

.rummy-leave-button {
    min-height: 34px;
    padding: 0 11px;
}

.rummy-seats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 20px 20px 0;
    position: relative;
    z-index: 1;
}

.rummy-player-seat {
    align-items: center;
    background: linear-gradient(145deg, rgba(10, 24, 17, 0.94), rgba(8, 17, 12, 0.92));
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 13px;
    display: flex;
    gap: 10px;
    min-height: 58px;
    min-width: 205px;
    padding: 9px 12px;
    position: relative;
}

.rummy-player-seat.is-active {
    border-color: rgba(124, 245, 189, 0.72);
    box-shadow: 0 0 0 2px rgba(124, 245, 189, 0.1), 0 0 25px rgba(124, 245, 189, 0.1);
}

.rummy-player-seat.is-you {
    background: rgba(124, 245, 189, 0.055);
}

.rummy-player-avatar {
    align-items: center;
    background: #1b3829;
    border: 1px solid rgba(124, 245, 189, 0.25);
    border-radius: 50%;
    color: var(--mint);
    display: inline-flex;
    flex: 0 0 33px;
    font-size: 0.8rem;
    font-weight: 750;
    height: 33px;
    justify-content: center;
}

.rummy-player-details {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.rummy-player-details strong {
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rummy-player-details small,
.rummy-seat-number {
    color: #829188;
    font-size: 0.62rem;
}

.rummy-seat-number {
    margin-left: auto;
}

.rummy-table-surface {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 177px;
    padding: 8px 15px 12px;
    position: relative;
    z-index: 1;
}

.rummy-felt-table {
    background:
        radial-gradient(ellipse at 50% 36%, rgba(95, 184, 125, 0.2), transparent 53%),
        repeating-linear-gradient(115deg, rgba(218, 255, 226, 0.012) 0 1px, transparent 1px 8px),
        linear-gradient(145deg, #174631, #0e3423 58%, #123d29);
    border: 8px solid #33261c;
    border-radius: 50% / 18%;
    box-shadow:
        0 17px 26px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(232, 192, 119, 0.57),
        inset 0 0 0 9px rgba(35, 26, 17, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.23);
    margin: 20px 27px 23px;
    min-height: 425px;
    overflow: hidden;
    padding: 18px 25px 17px;
    position: relative;
}

.rummy-felt-table::before,
.rummy-felt-table::after {
    border: 1px solid rgba(203, 244, 208, 0.12);
    border-radius: 50%;
    content: '';
    inset: 19px 25px;
    pointer-events: none;
    position: absolute;
}

.rummy-felt-table::after {
    border-color: rgba(203, 244, 208, 0.07);
    inset: 27px 33px;
}

.rummy-self-seat {
    display: flex;
    justify-content: center;
    margin-top: -2px;
    position: relative;
    z-index: 1;
}

.rummy-self-seat .rummy-player-seat {
    background: linear-gradient(145deg, #153b2a, #0c2519);
    border-color: rgba(124, 245, 189, 0.38);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.19);
    min-width: 250px;
    padding: 10px 14px;
}

.rummy-self-seat .rummy-player-seat.is-active {
    border-color: var(--mint);
    box-shadow: 0 0 0 2px rgba(124, 245, 189, 0.13), 0 8px 24px rgba(0, 0, 0, 0.22);
}

.rummy-self-seat .rummy-seat-number {
    color: var(--mint);
    font-size: 0.57rem;
    letter-spacing: 0.08em;
}

.rummy-opponent-cards {
    bottom: -16px;
    display: flex;
    height: 29px;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 68px;
}

.rummy-opponent-card {
    background:
        repeating-linear-gradient(45deg, transparent 0 3px, rgba(124, 245, 189, 0.15) 3px 4px),
        linear-gradient(145deg, #24543c, #11291d);
    border: 1px solid rgba(160, 225, 184, 0.7);
    border-radius: 3px;
    height: 27px;
    margin-left: -11px;
    transform: rotate(calc((var(--card-index, 1) - 2) * 9deg));
    width: 19px;
}

.rummy-opponent-card:nth-child(1) {
    transform: rotate(-13deg) translateY(2px);
}

.rummy-opponent-card:nth-child(2) {
    transform: rotate(-5deg);
}

.rummy-opponent-card:nth-child(3) {
    transform: rotate(5deg);
}

.rummy-opponent-card:nth-child(4) {
    transform: rotate(13deg) translateY(2px);
}

.rummy-piles {
    align-items: center;
    display: flex;
    gap: clamp(30px, 10vw, 85px);
}

.rummy-pile {
    align-items: center;
    background: none;
    border: 0;
    color: #8f9d94;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    font-size: 0.57rem;
    gap: 7px;
    letter-spacing: 0.12em;
    padding: 0;
}

.rummy-pile:disabled {
    cursor: default;
    opacity: 0.57;
}

.rummy-pile:not(:disabled):hover .rummy-pile-back,
.rummy-pile:not(:disabled):hover .rummy-discard-card {
    transform: translateY(-4px);
}

.rummy-discard-pile.is-drop-target .rummy-discard-card {
    box-shadow: 0 0 0 3px rgba(124, 245, 189, 0.8), 0 0 24px rgba(124, 245, 189, 0.45);
    transform: translateY(-6px) scale(1.06);
}

.rummy-card.is-dragging {
    opacity: 0.72;
    transform: translateY(-26px) scale(1.12);
    z-index: 10;
}

.rummy-pile-back,
.rummy-discard-card {
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 9px 19px rgba(0, 0, 0, 0.25);
    display: flex;
    height: 84px;
    justify-content: center;
    transition: transform 150ms ease;
    width: 60px;
}

.rummy-pile-back {
    background:
        repeating-linear-gradient(45deg, transparent 0 6px, rgba(124, 245, 189, 0.08) 6px 8px),
        linear-gradient(145deg, #22513c, #10291e);
    border: 1px solid rgba(124, 245, 189, 0.48);
    box-shadow: inset 0 0 0 4px rgba(8, 20, 13, 0.37), inset 0 0 0 6px rgba(124, 245, 189, 0.16), 0 9px 19px rgba(0, 0, 0, 0.25);
}

.rummy-pile-back span {
    align-items: center;
    border: 1px solid rgba(184, 255, 218, 0.5);
    border-radius: 50%;
    color: #b8ffda;
    display: flex;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.rummy-discard-card {
    background: #f5f2e9;
    border: 1px solid white;
    color: #18362a;
    font-family: Georgia, serif;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.rummy-discard-value.is-red {
    color: #bb4353;
}

.rummy-turn-message {
    color: #d7e7dc;
    font-size: 0.85rem;
    font-weight: 650;
    margin: 17px 0 0;
    min-height: 1.4em;
    text-align: center;
}

.slotmachine-page {
    color: #eff8f0;
    margin: 0 auto;
    max-width: 1160px;
    padding: 42px 22px 88px;
}

.slotmachine-heading {
    margin: 0 auto 30px;
    max-width: 1160px;
    text-align: center;
}

.slotmachine-eyebrow,
.slotmachine-panel-eyebrow {
    color: #80e7ae;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 0 0 11px;
}

.slotmachine-heading h1 {
    color: #f2f7ef;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    font-weight: 850;
    letter-spacing: -0.065em;
    line-height: 0.98;
    margin: 0;
}

.slotmachine-heading h1 span {
    background: linear-gradient(110deg, #9cffc0, #49d899 58%, #c6ff8e);
    background-clip: text;
    color: transparent;
}

.slotmachine-heading > p:last-child {
    color: #9cac9f;
    font-size: 0.92rem;
    margin: 13px 0 0;
}

.slotmachine-layout {
    align-items: stretch;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.slotmachine-machine,
.slotmachine-info {
    background:
        radial-gradient(ellipse at 50% 0, rgba(64, 153, 102, 0.16), transparent 53%),
        linear-gradient(145deg, #13231a, #0c1510 70%);
    border: 1px solid rgba(147, 224, 173, 0.17);
    border-radius: 21px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.27), inset 0 1px rgba(255, 255, 255, 0.035);
    min-width: 0;
    overflow: hidden;
}

.slotmachine-machine {
    padding: 21px clamp(16px, 4vw, 42px) 18px;
    position: relative;
}

.slotmachine-machine::before {
    background: radial-gradient(ellipse, rgba(115, 255, 176, 0.13), transparent 68%);
    content: '';
    height: 370px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 100px;
    transform: translateX(-50%);
    width: 570px;
}

.slotmachine-machine-top,
.slotmachine-machine-foot {
    align-items: center;
    color: #92a499;
    display: flex;
    font-size: 0.61rem;
    font-weight: 750;
    justify-content: space-between;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.slotmachine-live {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.slotmachine-live > span {
    background: #83edaa;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(131, 237, 170, 0.72);
    height: 7px;
    width: 7px;
}

.slotmachine-round {
    color: #b8c8bb;
}

.slotmachine-round span {
    color: #a5f4c2;
    margin-left: 4px;
}

.slotmachine-marquee {
    align-items: center;
    color: #ffe4a6;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 36px 0 21px;
    position: relative;
    text-shadow: 0 0 24px rgba(246, 195, 97, 0.27);
}

.slotmachine-marquee > span {
    color: #a9f2bc;
    font-size: 0.88rem;
}

.slotmachine-marquee strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.7rem, 4vw, 2.55rem);
    font-weight: 800;
    letter-spacing: 0.17em;
}

.slotmachine-marquee::before,
.slotmachine-marquee::after {
    background: #e6c16e;
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(255, 214, 128, 0.78);
    content: '';
    height: 5px;
    left: 12%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
}

.slotmachine-marquee::after {
    left: auto;
    right: 12%;
}

.slotmachine-machine.is-spinning .slotmachine-marquee::before,
.slotmachine-machine.is-spinning .slotmachine-marquee::after {
    animation: slotmachine-marquee-light 460ms ease-in-out infinite alternate;
}

.slotmachine-marquee em {
    color: #ffce73;
    font-style: normal;
}

.slotmachine-reels {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 8px),
        linear-gradient(145deg, #080e0a, #17241a);
    border: 1px solid rgba(235, 215, 163, 0.43);
    border-radius: 17px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.36), inset 0 0 0 5px rgba(0, 0, 0, 0.31), inset 0 0 38px rgba(0, 0, 0, 0.36);
    display: grid;
    gap: clamp(8px, 2vw, 17px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 540px;
    padding: clamp(13px, 3vw, 24px);
    position: relative;
    z-index: 1;
}

.slotmachine-reels::before {
    border-bottom: 1px solid rgba(142, 247, 184, 0.25);
    border-top: 1px solid rgba(142, 247, 184, 0.25);
    content: '';
    inset: 50% 9px auto;
    pointer-events: none;
    position: absolute;
    transform: translateY(-50%);
}

.slotmachine-reel {
    align-items: center;
    background:
        radial-gradient(ellipse at 50% 45%, #fcfff7 0, #f0f3e8 57%, #d8e0d1 100%);
    border: 1px solid rgba(255, 255, 255, 0.83);
    border-radius: 11px;
    box-shadow: inset 0 0 0 4px rgba(20, 39, 26, 0.045), 0 5px 14px rgba(0, 0, 0, 0.26);
    display: flex;
    height: clamp(112px, 19vw, 180px);
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.slotmachine-reel::before {
    background: linear-gradient(180deg, transparent 5%, rgba(255, 255, 255, 0.56) 49%, transparent 94%);
    content: '';
    inset: -110% 0 auto;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.slotmachine-reel::after {
    background: linear-gradient(180deg, rgba(16, 34, 21, 0.09), transparent 28% 72%, rgba(16, 34, 21, 0.1));
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.slotmachine-symbol {
    filter: drop-shadow(0 8px 7px rgba(17, 36, 21, 0.19));
    font-size: clamp(3.2rem, 9vw, 6.3rem);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.slotmachine-reel.is-spinning .slotmachine-symbol {
    animation: slotmachine-reel-blur 220ms linear infinite;
    filter: blur(1.2px);
    opacity: 0.75;
}

.slotmachine-reel.is-spinning::before {
    animation: slotmachine-reel-sheen 520ms linear infinite;
    opacity: 0.72;
}

.slotmachine-reel.has-stopped {
    animation: slotmachine-stop 460ms cubic-bezier(0.16, 0.85, 0.25, 1);
}

.slotmachine-reel.has-stopped .slotmachine-symbol {
    animation: slotmachine-symbol-land 460ms cubic-bezier(0.16, 0.85, 0.25, 1);
}

.slotmachine-reels.is-match .slotmachine-reel {
    animation: slotmachine-reel-win 620ms ease-in-out 2;
    border-color: rgba(86, 213, 129, 0.88);
    box-shadow: inset 0 0 0 4px rgba(20, 39, 26, 0.045), 0 0 25px rgba(76, 219, 127, 0.42);
}

.slotmachine-reels.is-match .slotmachine-symbol {
    animation: slotmachine-symbol-win 740ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.slotmachine-reels.is-match .slotmachine-reel:nth-child(2) {
    animation-delay: 70ms;
}

.slotmachine-reels.is-match .slotmachine-reel:nth-child(3) {
    animation-delay: 140ms;
}

.slotmachine-reels.is-miss .slotmachine-reel {
    animation: slotmachine-reel-miss 380ms ease-out;
}

.slotmachine-payline {
    align-items: center;
    color: #819388;
    display: flex;
    font-size: 0.56rem;
    font-weight: 800;
    gap: 11px;
    justify-content: center;
    letter-spacing: 0.18em;
    margin: 18px 0 23px;
    position: relative;
    z-index: 1;
}

.slotmachine-payline span {
    background: linear-gradient(90deg, transparent, rgba(125, 241, 169, 0.63));
    height: 1px;
    max-width: 58px;
    width: 14%;
}

.slotmachine-payline span:last-child {
    transform: rotate(180deg);
}

.slotmachine-spin-wrap {
    margin: 0 auto;
    max-width: 380px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.slotmachine-audio-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px auto 0;
    max-width: 380px;
}

.slotmachine-sound-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 999px;
    color: #c5d6c9;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: 0.63rem;
    font-weight: 750;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.slotmachine-sound-toggle:hover,
.slotmachine-sound-toggle:focus-visible {
    background: rgba(124, 245, 189, 0.09);
    border-color: rgba(124, 245, 189, 0.38);
    color: #c9ffda;
}

.slotmachine-sound-toggle:focus-visible {
    outline: 2px solid #a8f5bf;
    outline-offset: 3px;
}

.slotmachine-sound-toggle > span:first-child {
    color: #a5f4c2;
    font-size: 0.9rem;
}

.slotmachine-sound-toggle.is-muted {
    color: #8c9a90;
}

.slotmachine-sound-toggle.is-muted > span:first-child,
.slotmachine-sound-toggle.is-unavailable > span:first-child {
    color: #88978d;
}

.slotmachine-audio-note {
    color: #819187;
    font-size: 0.59rem;
    line-height: 1.4;
    text-align: left;
}

.slotmachine-spin {
    align-items: center;
    background: linear-gradient(110deg, #baffc9, #74e7a3 54%, #9cffbb);
    border: 1px solid rgba(214, 255, 223, 0.83);
    border-radius: 12px;
    box-shadow: 0 9px 24px rgba(61, 217, 132, 0.2), inset 0 1px rgba(255, 255, 255, 0.54);
    color: #10251a;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 850;
    gap: 12px;
    justify-content: center;
    letter-spacing: 0.015em;
    min-height: 54px;
    padding: 0 18px;
    transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

.slotmachine-spin:hover:not(:disabled) {
    box-shadow: 0 11px 29px rgba(61, 217, 132, 0.3), inset 0 1px rgba(255, 255, 255, 0.54);
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.slotmachine-spin:focus-visible,
.slotmachine-dialog button:focus-visible {
    outline: 3px solid #f3ffc1;
    outline-offset: 3px;
}

.slotmachine-spin:disabled {
    cursor: wait;
    opacity: 0.75;
}

.slotmachine-spin > span:first-child {
    font-size: 1.24rem;
}

.slotmachine-spin.is-spinning > span:first-child {
    animation: slotmachine-turn 700ms linear infinite;
}

.slotmachine-status {
    color: #9ead9f;
    font-size: 0.74rem;
    line-height: 1.5;
    margin: 11px 0 0;
    min-height: 1.5em;
}

.slotmachine-status[data-kind="match"] {
    color: #a5f2bb;
}

.slotmachine-status[data-kind="miss"] {
    color: #e2c994;
}

.slotmachine-status[data-kind="error"] {
    color: #ffbdb2;
}

.slotmachine-machine-foot {
    border-top: 1px solid rgba(192, 225, 200, 0.1);
    gap: 9px;
    justify-content: flex-start;
    margin-top: 21px;
    padding-top: 15px;
}

.slotmachine-machine-foot strong {
    color: #d5e5d7;
    font-variant-numeric: tabular-nums;
}

.slotmachine-foot-divider {
    background: rgba(192, 225, 200, 0.22);
    height: 13px;
    margin: 0 3px;
    width: 1px;
}

.slotmachine-demo-tag {
    background: rgba(245, 198, 113, 0.09);
    border: 1px solid rgba(245, 198, 113, 0.2);
    border-radius: 999px;
    color: #e9c680;
    font-size: 0.51rem;
    letter-spacing: 0.14em;
    margin-left: auto;
    padding: 6px 9px;
}

.slotmachine-info {
    padding: 24px clamp(17px, 2.5vw, 28px);
}

.slotmachine-panel-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.slotmachine-panel-eyebrow {
    font-size: 0.56rem;
    margin-bottom: 7px;
}

.slotmachine-panel-heading h2 {
    color: #eff8f0;
    font-size: 1.32rem;
    letter-spacing: -0.035em;
    margin: 0;
}

.slotmachine-panel-icon {
    align-items: center;
    background: rgba(132, 239, 172, 0.08);
    border: 1px solid rgba(132, 239, 172, 0.19);
    border-radius: 11px;
    color: #9af1b6;
    display: inline-flex;
    font-size: 0.9rem;
    height: 37px;
    justify-content: center;
    width: 37px;
}

.slotmachine-panel-copy {
    color: #9aa99d;
    font-size: 0.76rem;
    line-height: 1.6;
    margin: 12px 0 17px;
}

.slotmachine-paytable {
    border-bottom: 1px solid rgba(192, 225, 200, 0.11);
    border-top: 1px solid rgba(192, 225, 200, 0.11);
}

.slotmachine-payrow {
    align-items: center;
    border-bottom: 1px solid rgba(192, 225, 200, 0.07);
    display: grid;
    gap: 9px;
    grid-template-columns: 33px minmax(0, 1fr) auto;
    min-height: 57px;
    padding: 7px 1px;
}

.slotmachine-payrow:last-child {
    border-bottom: 0;
}

.slotmachine-payrow.is-winning {
    animation: slotmachine-payrow-win 1.1s ease-in-out infinite alternate;
    background: linear-gradient(90deg, rgba(105, 226, 145, 0.1), rgba(105, 226, 145, 0.015));
    border-radius: 8px;
    padding-left: 7px;
    padding-right: 7px;
}

.slotmachine-payrow.is-winning strong,
.slotmachine-payrow.is-winning b {
    color: #b8ffc7;
}

.slotmachine-pay-symbol {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(219, 241, 219, 0.09);
    border-radius: 9px;
    display: inline-flex;
    font-size: 1.08rem;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.slotmachine-payrow > span:nth-child(2) {
    display: grid;
    gap: 3px;
}

.slotmachine-payrow strong {
    color: #e1ece2;
    font-size: 0.71rem;
}

.slotmachine-payrow small {
    color: #7f9184;
    font-size: 0.56rem;
}

.slotmachine-payrow b {
    color: #b5f1be;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.slotmachine-payrow b small {
    color: #c1aa72;
    font-size: 0.49rem;
    letter-spacing: 0.08em;
    margin-left: 2px;
}

.slotmachine-notice {
    align-items: flex-start;
    background: rgba(223, 180, 100, 0.06);
    border: 1px solid rgba(223, 180, 100, 0.13);
    border-radius: 11px;
    color: #d2b97e;
    display: flex;
    gap: 9px;
    margin-top: 18px;
    padding: 11px 12px;
}

.slotmachine-notice > span {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding-top: 1px;
}

.slotmachine-notice p {
    color: #a9a08a;
    font-size: 0.62rem;
    line-height: 1.6;
    margin: 0;
}

.slotmachine-notice strong {
    color: #e7d39e;
}

.slotmachine-dialog {
    background: transparent;
    border: 0;
    color: #eff8f0;
    max-width: min(440px, calc(100vw - 30px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.slotmachine-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(3, 8, 5, 0.78);
}

.slotmachine-dialog[open] {
    animation: slotmachine-dialog-enter 300ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.slotmachine-dialog[open]::backdrop {
    animation: slotmachine-backdrop-enter 240ms ease-out both;
}

.slotmachine-dialog-card {
    background:
        radial-gradient(ellipse at 50% 0, rgba(93, 203, 131, 0.18), transparent 48%),
        linear-gradient(145deg, #17271c, #0d1711);
    border: 1px solid rgba(154, 239, 177, 0.24);
    border-radius: 20px;
    box-shadow: 0 25px 85px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.04);
    padding: 34px 30px 26px;
    position: relative;
    text-align: center;
}

.slotmachine-dialog-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #c2d0c5;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1.35rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 13px;
    top: 13px;
    width: 34px;
}

.slotmachine-dialog-symbol {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 19px;
    box-shadow: 0 0 35px rgba(98, 227, 151, 0.1);
    display: inline-flex;
    font-size: 2.5rem;
    height: 78px;
    justify-content: center;
    width: 78px;
}

.slotmachine-dialog-eyebrow {
    color: #91e9ad;
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 20px 0 8px;
}

.slotmachine-dialog h2 {
    color: #f2f7f0;
    font-size: 1.75rem;
    letter-spacing: -0.045em;
    margin: 0;
}

.slotmachine-dialog-message {
    color: #bfcec2;
    font-size: 0.87rem;
    line-height: 1.6;
    margin: 11px 0 0;
}

.slotmachine-dialog-disclaimer {
    color: #b8a87f;
    font-size: 0.66rem;
    line-height: 1.5;
    margin: 15px 0 0;
}

.slotmachine-dialog-actions {
    display: flex;
    gap: 9px;
    margin-top: 23px;
}

.slotmachine-dialog-actions button {
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    min-height: 43px;
    padding: 0 14px;
}

.slotmachine-dialog-again {
    background: linear-gradient(110deg, #baffc9, #74e7a3);
    border: 1px solid #a4f8b9;
    color: #10251a;
    flex: 1;
}

.slotmachine-dialog-dismiss {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #c3d1c5;
}

@keyframes slotmachine-reel-blur {
    0% { transform: translateY(-17px) scale(0.94); }
    50% { transform: translateY(17px) scale(1.04); }
    100% { transform: translateY(-17px) scale(0.94); }
}

@keyframes slotmachine-stop {
    0% { transform: translateY(-11px) scale(0.98); }
    52% { transform: translateY(4px) scale(1.015); }
    100% { transform: translateY(0); }
}

@keyframes slotmachine-symbol-land {
    0% { filter: blur(4px); opacity: 0.5; transform: translateY(-22px) scale(0.88); }
    64% { filter: blur(0); opacity: 1; transform: translateY(5px) scale(1.04); }
    100% { filter: blur(0); opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slotmachine-reel-sheen {
    0% { transform: translateY(0); }
    100% { transform: translateY(330%); }
}

@keyframes slotmachine-reel-win {
    0%, 100% { transform: translateY(0); }
    38% { transform: translateY(-9px); }
    66% { transform: translateY(2px); }
}

@keyframes slotmachine-symbol-win {
    0% { filter: drop-shadow(0 0 0 rgba(106, 230, 149, 0)); transform: scale(1); }
    48% { filter: drop-shadow(0 0 18px rgba(59, 206, 114, 0.82)); transform: scale(1.19) rotate(-4deg); }
    100% { filter: drop-shadow(0 0 5px rgba(59, 206, 114, 0.42)); transform: scale(1); }
}

@keyframes slotmachine-reel-miss {
    0%, 100% { transform: translateX(0); }
    28% { transform: translateX(-4px); }
    70% { transform: translateX(3px); }
}

@keyframes slotmachine-payrow-win {
    from { box-shadow: inset 0 0 0 1px rgba(113, 239, 153, 0.1); }
    to { box-shadow: inset 0 0 0 1px rgba(113, 239, 153, 0.48), 0 0 16px rgba(60, 204, 117, 0.1); }
}

@keyframes slotmachine-marquee-light {
    from { opacity: 0.35; transform: translateY(-50%) scale(0.75); }
    to { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

@keyframes slotmachine-dialog-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slotmachine-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slotmachine-turn {
    to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
    .slotmachine-layout {
        grid-template-columns: minmax(0, 1fr);
        margin: 0 auto;
        max-width: 620px;
    }
}

@media (max-width: 540px) {
    .slotmachine-page {
        padding: 32px 14px 58px;
    }

    .slotmachine-heading {
        margin-bottom: 22px;
    }

    .slotmachine-heading > p:last-child {
        font-size: 0.82rem;
    }

    .slotmachine-machine {
        padding-left: 13px;
        padding-right: 13px;
    }

    .slotmachine-reel {
        height: clamp(105px, 33vw, 145px);
    }

    .slotmachine-symbol {
        font-size: clamp(3rem, 15vw, 4.7rem);
    }

    .slotmachine-machine-foot {
        font-size: 0.55rem;
    }

    .slotmachine-audio-row {
        align-items: flex-start;
    }

    .slotmachine-audio-note {
        padding-top: 8px;
    }

    .slotmachine-demo-tag {
        font-size: 0.46rem;
        padding: 5px 7px;
    }

    .slotmachine-dialog-card {
        padding: 31px 20px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slotmachine-reel.is-spinning .slotmachine-symbol,
    .slotmachine-reel.is-spinning::before,
    .slotmachine-reel.has-stopped,
    .slotmachine-reel.has-stopped .slotmachine-symbol,
    .slotmachine-reels.is-match .slotmachine-reel,
    .slotmachine-reels.is-match .slotmachine-symbol,
    .slotmachine-reels.is-miss .slotmachine-reel,
    .slotmachine-payrow.is-winning,
    .slotmachine-dialog[open],
    .slotmachine-dialog[open]::backdrop,
    .slotmachine-machine.is-spinning .slotmachine-marquee::before,
    .slotmachine-machine.is-spinning .slotmachine-marquee::after,
    .slotmachine-spin.is-spinning > span:first-child {
        animation: none;
    }
}

.rummy-turn-message.is-finished {
    color: var(--mint);
}

.rummy-lobby-message {
    color: #91a096;
    font-size: 0.72rem;
    margin: 8px 0 0;
    text-align: center;
}

.rummy-start-button {
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    margin-top: 13px;
}

.rummy-start-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.rummy-hand-panel {
    border-top: 1px solid rgba(198, 230, 213, 0.1);
    padding: 19px 20px 20px;
}

.rummy-hand-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rummy-hand-label {
    color: #8ea096;
}

.rummy-hand-heading h2 {
    font-size: 0.98rem;
    margin: 4px 0 0;
}

.rummy-hand-heading h2 span {
    color: #8d9b92;
    font-size: 0.78rem;
    font-weight: 500;
}

.rummy-hand-heading > p {
    color: #8f9d94;
    font-size: 0.68rem;
    margin: 0;
    text-align: right;
}

.rummy-hand-tools {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.rummy-hand-tools > p {
    color: #8f9d94;
    font-size: 0.68rem;
    margin: 0;
    text-align: right;
}

.rummy-hand-tools > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.rummy-hand-tools button {
    min-height: 30px;
}

.rummy-hand {
    align-items: flex-end;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    min-height: 153px;
    overflow: visible;
    padding: 18px 4px 17px;
}

.rummy-card {
    background:
        radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.92), transparent 72%),
        linear-gradient(145deg, #fffef8, #f0eee3);
    border: 1px solid #d5d2c4;
    border-radius: 9px;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.9);
    cursor: pointer;
    flex: 0 0 58px;
    height: 104px;
    isolation: isolate;
    margin-left: -35px;
    position: relative;
    transform: translateY(var(--fan-lift, 0px)) rotate(var(--fan-angle, 0deg));
    transform-origin: 50% 100%;
    transition: transform 180ms ease, border-color 160ms ease, box-shadow 160ms ease;
    z-index: 0;
}

.rummy-card:first-child {
    margin-left: 0;
}

.rummy-card:hover:not(:disabled),
.rummy-card.is-selected {
    z-index: 3;
}

.rummy-card.is-grouped {
    border-bottom-width: 4px;
}

.rummy-card.group-0 { border-bottom-color: #60dfa0; }
.rummy-card.group-1 { border-bottom-color: #82b9ff; }
.rummy-card.group-2 { border-bottom-color: #e2c77f; }
.rummy-card.group-3 { border-bottom-color: #d59be8; }

.rummy-card-frame {
    border: 1px solid rgba(36, 67, 49, 0.12);
    border-radius: 5px;
    inset: 4px;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.rummy-card:hover:not(:disabled) {
    box-shadow: 0 9px 16px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.9);
    transform: translateY(calc(var(--fan-lift, 0px) - 11px)) rotate(var(--fan-angle, 0deg)) scale(1.07);
}

.rummy-card.is-selected {
    border-color: #60dfa0;
    box-shadow: 0 0 0 2px rgba(124, 245, 189, 0.58), 0 10px 20px rgba(0, 0, 0, 0.32);
    transform: translateY(calc(var(--fan-lift, 0px) - 15px)) rotate(var(--fan-angle, 0deg)) scale(1.09);
}

.rummy-card:disabled {
    cursor: default;
    opacity: 0.92;
}

.rummy-card.is-red {
    color: #c1394d;
}

.rummy-card-corner {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.67rem;
    gap: 0;
    left: 6px;
    line-height: 1;
    position: absolute;
    top: 6px;
    z-index: 1;
}

.rummy-card-corner strong {
    font-size: 0.94rem;
    font-weight: 750;
}

.rummy-card-suit {
    font-size: 0.62rem;
}

.rummy-card-center {
    align-items: center;
    display: flex;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.05rem;
    color: #17372a;
    inset: 0;
    position: absolute;
    justify-content: center;
    text-shadow: 0 1px rgba(255, 255, 255, 0.8);
    z-index: 0;
}

.rummy-card-corner-bottom {
    bottom: 6px;
    left: auto;
    right: 6px;
    top: auto;
    transform: rotate(180deg);
}

.rummy-card.is-wild {
    background:
        radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.94), transparent 72%),
        linear-gradient(145deg, #fffdf3, #f1e8ce);
    border-color: #cfad64;
}

.rummy-card.is-wild .rummy-card-frame {
    border-color: rgba(170, 129, 48, 0.22);
}

.rummy-card-wild-label {
    background: #e2c77f;
    border-radius: 99px;
    bottom: 7px;
    color: #443617;
    font-size: 0.38rem;
    font-weight: 850;
    left: 50%;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 3px 5px;
    position: absolute;
    transform: translateX(-50%);
    z-index: 2;
}

.rummy-card.is-wild.is-red .rummy-card-wild-label {
    color: #443617;
}

.rummy-card.is-joker {
    background:
        radial-gradient(circle at 50% 43%, rgba(124, 245, 189, 0.2), transparent 45%),
        linear-gradient(145deg, #f8fff6, #deeee1);
}

.rummy-card.is-joker .rummy-card-center {
    color: #35875a;
    font-size: 2rem;
}

.rummy-card.is-joker .rummy-card-wild-label {
    background: #39865d;
    color: white;
}

.rummy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
    margin-top: 9px;
}

.rummy-action-secondary {
    min-height: 43px;
}

.rummy-action-secondary:disabled,
.rummy-actions .rummy-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    transform: none;
}

.rummy-match-panel {
    border-top: 1px solid rgba(198, 230, 213, 0.1);
    margin-top: 18px;
    padding-top: 15px;
}

.rummy-match-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.rummy-match-heading h3 {
    color: #dcebe0;
    font-size: 0.8rem;
    margin: 0;
}

.rummy-match-heading span,
.rummy-score-row span,
.rummy-round-history-item span {
    color: #91a096;
    font-size: 0.65rem;
}

.rummy-scoreboard {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.rummy-score-row {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(198, 230, 213, 0.08);
    border-radius: 8px;
    display: flex;
    flex: 1 1 180px;
    gap: 8px;
    justify-content: space-between;
    padding: 9px 11px;
}

.rummy-score-row strong {
    color: #dcebe0;
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

.rummy-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.rummy-achievement {
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.19);
    border-radius: 99px;
    color: var(--mint);
    font-size: 0.63rem;
    padding: 5px 9px;
}

.rummy-round-history {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.rummy-round-history-item {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: space-between;
    padding: 7px 2px;
}

.rummy-round-history-item strong {
    color: #cbd9cf;
    font-size: 0.67rem;
}

.rummy-game-feedback {
    margin: 0 10px 10px;
}

.rummy-howto {
    align-items: flex-start;
    background: rgba(17, 30, 23, 0.7);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding: 17px 19px;
}

.rummy-howto-mark {
    color: var(--mint);
    flex: 0 0 auto;
}

.rummy-howto h2 {
    font-size: 0.88rem;
    margin: 0 0 5px;
}

.rummy-howto p {
    color: #93a198;
    font-size: 0.73rem;
    line-height: 1.7;
    margin: 0;
}

.rummy-page [hidden] {
    display: none !important;
}

.rummy-page .visually-hidden {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 680px) {
    .rummy-mode-grid {
        grid-template-columns: 1fr;
    }

    .rummy-mode-card {
        min-height: 0;
        padding: 20px;
    }

    .rummy-mode-card p {
        min-height: 0;
    }

    .rummy-game {
        border-radius: 13px;
    }

    .rummy-game-topbar {
        gap: 10px;
        padding: 11px 13px;
    }

    .rummy-sound-controls {
        flex: 1 1 100%;
        justify-content: center;
        order: 5;
    }

    .rummy-sound-controls button {
        min-height: 40px;
    }

    .rummy-seats {
        padding: 13px 10px 0;
    }

    .rummy-player-seat {
        flex: 1 1 145px;
        min-width: 0;
        padding: 7px;
    }

    .rummy-felt-table {
        border-radius: 16% / 8%;
        border-width: 5px;
        margin: 15px 7px 18px;
        min-height: 385px;
        padding: 13px 8px 12px;
    }

    .rummy-felt-table::before {
        inset: 12px;
    }

    .rummy-felt-table::after {
        inset: 19px;
    }

    .rummy-table-surface {
        min-height: 165px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .rummy-seats {
        gap: 18px;
        padding-top: 14px;
    }

    .rummy-seats .rummy-player-seat {
        flex: 0 1 205px;
        min-width: min(205px, 100%);
    }

    .rummy-self-seat .rummy-player-seat {
        min-width: min(250px, 100%);
    }

    .rummy-hand-panel {
        padding: 16px 11px 18px;
    }

    .rummy-hand {
        justify-content: center;
    }

    .rummy-card {
        flex-basis: 53px;
        height: 99px;
        margin-left: -33px;
    }

    .rummy-hand-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .rummy-hand-heading > p {
        text-align: left;
    }

    .rummy-hand-tools {
        justify-items: start;
        width: 100%;
    }

    .rummy-hand-tools > p {
        text-align: left;
    }

    .rummy-hand-tools > div {
        justify-content: flex-start;
    }

    .rummy-hand-tools button {
        min-height: 40px;
    }

    .rummy-room-actions {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rummy-card,
    .rummy-pile-back,
    .rummy-discard-card {
        transition: none;
    }
}

.site-header {
    background: rgba(8, 12, 11, 0.88);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    position: sticky;
    top: 0;
}

.site-menu a {
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-menu a:hover {
    transform: translateY(-1px);
}

.monte-page {
    padding-bottom: 56px;
}

.monte-back-link {
    align-items: center;
    color: #9eada4;
    display: inline-flex;
    font-size: 0.78rem;
    gap: 8px;
    margin: 25px 0 34px;
    text-decoration: none;
}

.monte-back-link:hover,
.monte-back-link:focus-visible {
    color: var(--mint);
}

.monte-heading {
    margin: 0 auto;
    max-width: 680px;
    text-align: center;
}

.monte-heading .eyebrow {
    justify-content: center;
    margin-bottom: 12px;
}

.monte-heading h1 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.3rem);
    letter-spacing: -0.075em;
    line-height: 1;
    margin: 0;
}

.monte-heading > p:last-child {
    color: #9aa79f;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 14px auto 0;
    max-width: 470px;
}

.monte-table {
    background:
        radial-gradient(ellipse at 50% 45%, rgba(44, 109, 75, 0.26), transparent 60%),
        linear-gradient(145deg, rgba(17, 41, 29, 0.9), rgba(10, 20, 15, 0.96));
    border: 1px solid rgba(124, 245, 189, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.025);
    margin: 34px auto 0;
    max-width: 820px;
    padding: 22px 28px 28px;
}

.monte-table-topline {
    align-items: center;
    color: #96a69c;
    display: flex;
    font-size: 0.68rem;
    justify-content: space-between;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.monte-table-stats {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-end;
}

.monte-duration {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.monte-duration strong {
    align-items: center;
    background: rgba(124, 245, 189, 0.06);
    border: 1px solid rgba(124, 245, 189, 0.14);
    border-radius: 99px;
    color: #d8f6e3;
    display: inline-flex;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    justify-content: center;
    letter-spacing: normal;
    min-height: 27px;
    min-width: 48px;
    padding: 0 7px;
}

.monte-table-label {
    color: var(--mint);
    font-weight: 700;
}

.monte-wins {
    align-items: center;
    display: inline-flex;
    gap: 9px;
}

.monte-wins strong {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.16);
    border-radius: 99px;
    color: var(--mint);
    display: inline-flex;
    font-size: 0.75rem;
    justify-content: center;
    letter-spacing: normal;
    min-height: 27px;
    min-width: 27px;
    padding: 0 7px;
}

.monte-cards {
    align-items: center;
    display: flex;
    gap: clamp(12px, 4vw, 32px);
    justify-content: center;
    min-height: 265px;
    padding: 24px 0 10px;
    perspective: 1000px;
}

.monte-cards.is-reordering .monte-card {
    transition: none;
}

.monte-card {
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    height: 215px;
    padding: 0;
    transition: transform 720ms cubic-bezier(0.2, 0.75, 0.25, 1);
    width: 150px;
}

.monte-card:disabled {
    cursor: default;
}

.monte-card:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 5px;
}

.monte-card-inner {
    display: block;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 430ms cubic-bezier(0.2, 0.75, 0.25, 1);
    width: 100%;
}

.monte-card.is-revealed .monte-card-inner {
    transform: rotateY(180deg);
}

.monte-card-back,
.monte-card-face {
    align-items: center;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
}

.monte-card-back {
    background:
        repeating-linear-gradient(45deg, transparent 0 8px, rgba(124, 245, 189, 0.07) 8px 10px),
        linear-gradient(145deg, #1d4c35, #10291d);
    border: 1px solid rgba(124, 245, 189, 0.58);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), inset 0 0 0 5px rgba(8, 20, 13, 0.4), inset 0 0 0 7px rgba(124, 245, 189, 0.22);
    color: rgba(184, 255, 218, 0.88);
}

.monte-card-back-mark {
    align-items: center;
    border: 1px solid rgba(184, 255, 218, 0.5);
    border-radius: 50%;
    display: flex;
    font-family: Georgia, serif;
    font-size: 2.1rem;
    height: 62px;
    justify-content: center;
    width: 62px;
}

.monte-card-face {
    background: #f5f2e9;
    border: 1px solid #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
    color: #1a2720;
    overflow: hidden;
    transform: rotateY(180deg);
}

.monte-card.is-winner .monte-card-face {
    box-shadow: 0 0 0 2px var(--mint), 0 14px 32px rgba(124, 245, 189, 0.2);
}

.monte-card.is-decoy .monte-card-face {
    opacity: 0.8;
}

.monte-card-corner {
    align-self: flex-start;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    left: 12px;
    position: absolute;
    top: 10px;
}

.monte-card-suit {
    font-size: 0.82rem;
    left: 14px;
    position: absolute;
    top: 35px;
}

.monte-card-center {
    font-family: Georgia, serif;
    font-size: 5rem;
}

.monte-card.is-red .monte-card-face {
    color: #b54248;
}

.monte-card:hover:not(:disabled) .monte-card-inner {
    transform: translateY(-7px);
}

.monte-card.is-revealed:hover .monte-card-inner {
    transform: rotateY(180deg);
}

.monte-message {
    color: #d5e5db;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 4px 0 18px;
    min-height: 1.5em;
    text-align: center;
}

.monte-actions {
    display: flex;
    justify-content: center;
}

.monte-shuffle-button {
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    min-width: 180px;
}

.monte-shuffle-button:disabled {
    cursor: wait;
    opacity: 0.55;
    transform: none;
}

.monte-howto {
    align-items: flex-start;
    background: rgba(17, 30, 23, 0.7);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    gap: 16px;
    margin: 20px auto 0;
    max-width: 820px;
    padding: 18px 21px;
}

.monte-howto .note-mark {
    flex: 0 0 auto;
    margin-top: 2px;
}

.monte-howto h2 {
    font-size: 0.92rem;
    margin: 0 0 5px;
}

.monte-howto p {
    color: #93a198;
    font-size: 0.76rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 520px) {
    .monte-back-link {
        margin: 18px 0 28px;
    }

    .monte-table {
        border-radius: 13px;
        padding: 17px 12px 21px;
    }

    .monte-cards {
        gap: 10px;
        min-height: 220px;
        padding: 24px 0 16px;
    }

    .monte-card {
        height: min(52vw, 180px);
        max-height: 180px;
        width: min(29vw, 126px);
    }

    .monte-card-center {
        font-size: 4rem;
    }

    .monte-card-back-mark {
        font-size: 1.7rem;
        height: 48px;
        width: 48px;
    }

    .monte-howto {
        gap: 12px;
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .monte-card,
    .monte-card-inner {
        transition: none;
    }
}

.monte-sound-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 14px auto 0;
    max-width: 540px;
}

.monte-sound-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 999px;
    color: #c5d6c9;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: 0.63rem;
    font-weight: 750;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.monte-sound-toggle:hover,
.monte-sound-toggle:focus-visible {
    background: rgba(124, 245, 189, 0.09);
    border-color: rgba(124, 245, 189, 0.38);
    color: #c9ffda;
}

.monte-sound-toggle:focus-visible,
.monte-result-dialog button:focus-visible {
    outline: 2px solid #a8f5bf;
    outline-offset: 3px;
}

.monte-sound-toggle > span:first-child {
    color: #a5f4c2;
    font-size: 0.9rem;
}

.monte-sound-toggle.is-muted {
    color: #8c9a90;
}

.monte-sound-toggle.is-muted > span:first-child,
.monte-sound-toggle.is-unavailable > span:first-child {
    color: #88978d;
}

.monte-sound-note {
    color: #819187;
    font-size: 0.59rem;
    line-height: 1.4;
}

.monte-result-dialog {
    background: transparent;
    border: 0;
    color: #eff8f0;
    max-width: min(440px, calc(100vw - 30px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.monte-result-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(3, 8, 5, 0.78);
}

.monte-result-dialog[open] {
    animation: monte-dialog-enter 300ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.monte-result-card {
    background:
        radial-gradient(ellipse at 50% 0, rgba(93, 203, 131, 0.18), transparent 48%),
        linear-gradient(145deg, #17271c, #0d1711);
    border: 1px solid rgba(154, 239, 177, 0.24);
    border-radius: 20px;
    box-shadow: 0 25px 85px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.04);
    padding: 34px 29px 25px;
    position: relative;
    text-align: center;
}

.monte-result-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #c2d0c5;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1.35rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 13px;
    top: 13px;
    width: 34px;
}

.monte-result-emblem {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 19px;
    box-shadow: 0 0 35px rgba(98, 227, 151, 0.1);
    color: #b7f5c5;
    display: inline-flex;
    font-size: 2.45rem;
    height: 78px;
    justify-content: center;
    width: 78px;
}

.monte-result-emblem[data-outcome="loss"] {
    background: rgba(208, 172, 97, 0.08);
    border-color: rgba(208, 172, 97, 0.2);
    box-shadow: 0 0 28px rgba(208, 172, 97, 0.08);
    color: #ddc38c;
}

.monte-result-kicker {
    color: #91e9ad;
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 20px 0 8px;
}

.monte-result-emblem[data-outcome="loss"] + .monte-result-kicker {
    color: #dfc38b;
}

.monte-result-dialog h2 {
    color: #f2f7f0;
    font-size: 1.75rem;
    letter-spacing: -0.045em;
    margin: 0;
}

.monte-result-message {
    color: #bfcec2;
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 11px 0 0;
}

.monte-result-disclaimer {
    color: #b8a87f;
    font-size: 0.65rem;
    line-height: 1.5;
    margin: 15px 0 0;
}

.monte-result-actions {
    display: flex;
    gap: 9px;
    margin-top: 22px;
}

.monte-result-actions button {
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    min-height: 43px;
    padding: 0 14px;
}

.monte-result-again {
    background: linear-gradient(110deg, #baffc9, #74e7a3);
    border: 1px solid #a4f8b9;
    color: #10251a;
    flex: 1;
}

.monte-result-dismiss {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #c3d1c5;
}

@keyframes monte-dialog-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
    .monte-sound-row {
        align-items: flex-start;
    }

    .monte-sound-note {
        padding-top: 8px;
    }

    .monte-result-card {
        padding: 31px 20px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .monte-result-dialog[open] {
        animation: none;
    }
}

.games-section {
    scroll-margin-top: 100px;
}

.game-card {
    border-radius: 16px;
}

.card-art.has-thumbnail .game-thumbnail {
    transition: transform 500ms ease;
}

.game-card:hover .card-art.has-thumbnail .game-thumbnail {
    transform: scale(1.045);
}

.card-category {
    backdrop-filter: blur(10px);
}

.card-player-mode {
    background: rgba(8, 12, 11, 0.76);
    border: 1px solid rgba(124, 245, 189, 0.28);
    border-radius: 99px;
    color: #d5f8e6;
    font-size: 0.63rem;
    font-weight: 600;
    padding: 6px 9px;
    position: absolute;
    right: 13px;
    top: 13px;
    z-index: 1;
}

.game-card-meta .card-player-mode {
    position: static;
    right: auto;
    top: auto;
}

.spinner-page {
    margin: 0 auto;
    max-width: 1120px;
    padding: 34px 0 72px;
}

.spinner-heading {
    margin: 0 auto 30px;
    max-width: 760px;
    text-align: center;
}

.spinner-back-link {
    color: #96a69c;
    display: inline-flex;
    font-size: 0.72rem;
    gap: 8px;
    margin-bottom: 26px;
    text-decoration: none;
}

.spinner-back-link:hover {
    color: var(--mint);
}

.spinner-eyebrow {
    color: var(--mint);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    margin: 0 0 11px;
}

.spinner-heading h1 {
    color: #f0f7f2;
    font-size: clamp(2.1rem, 6vw, 3.65rem);
    letter-spacing: -0.07em;
    line-height: 1;
    margin: 0;
}

.spinner-heading h1 > span {
    color: var(--mint);
}

.spinner-intro {
    color: #9baaa1;
    font-size: 0.86rem;
    line-height: 1.65;
    margin: 14px auto 0;
    max-width: 540px;
}

.spinner-layout {
    align-items: center;
    background:
        radial-gradient(ellipse at 27% 45%, rgba(47, 118, 78, 0.19), transparent 44%),
        linear-gradient(145deg, rgba(17, 31, 23, 0.95), rgba(8, 15, 11, 0.98));
    border: 1px solid rgba(124, 245, 189, 0.15);
    border-radius: 23px;
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.035);
    display: grid;
    gap: clamp(20px, 5vw, 64px);
    grid-template-columns: minmax(0, 1.25fr) minmax(255px, 0.75fr);
    overflow: hidden;
    padding: clamp(20px, 4vw, 48px);
}

.spinner-wheel-panel {
    min-width: 0;
}

.spinner-wheel-stage {
    aspect-ratio: 1;
    margin: 0 auto;
    max-width: 510px;
    position: relative;
    width: 100%;
}

.spinner-stage-glow {
    background: radial-gradient(circle, rgba(124, 245, 189, 0.17), transparent 68%);
    border-radius: 50%;
    inset: 8%;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.spinner-wheel {
    filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 12px rgba(213, 171, 89, 0.12));
    inset: 0;
    position: absolute;
    transform: rotate(0deg);
    transition: transform 6.5s cubic-bezier(0.12, 0.72, 0.11, 1);
    z-index: 1;
}

.spinner-wheel svg {
    display: block;
    height: 100%;
    overflow: visible;
    width: 100%;
}

.spinner-wheel-rim {
    fill: none;
    stroke: url(#spinner-rim-gradient);
    stroke-width: 9;
}

.spinner-wheel-rim-shadow {
    fill: none;
    stroke: rgba(0, 0, 0, 0.62);
    stroke-width: 8;
}

.spinner-wheel-rim-inner {
    fill: none;
    pointer-events: none;
    stroke: rgba(255, 232, 173, 0.72);
    stroke-width: 1.5;
}

.spinner-wheel-bulb {
    fill: #fff1be;
    filter: drop-shadow(0 0 3px rgba(255, 224, 143, 0.9));
    pointer-events: none;
    stroke: rgba(115, 78, 30, 0.8);
    stroke-width: 1;
}

.spinner-wheel-stage.is-spinning .spinner-wheel-bulb {
    animation: spinner-bulb-chase 420ms ease-in-out infinite alternate;
    animation-delay: var(--bulb-delay, 0ms);
}

.spinner-wheel-hub-shadow {
    fill: rgba(0, 0, 0, 0.48);
    pointer-events: none;
}

.spinner-wheel-hub {
    fill: url(#spinner-hub-gradient);
    pointer-events: none;
    stroke: #e1bf70;
    stroke-width: 4;
}

.spinner-wheel-hub-core {
    fill: none;
    pointer-events: none;
    stroke: rgba(199, 255, 219, 0.22);
    stroke-width: 1;
}

.spinner-wheel-hub-mark {
    fill: #e7d39a;
    font-size: 24px;
    pointer-events: none;
}

.spinner-segment-marker {
    fill: #f6e3ab;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}

.spinner-segment-marker.is-offer {
    fill: #b8ffdd;
}

.spinner-segment-number {
    fill: rgba(250, 255, 251, 0.94);
    font-family: var(--font-sans, "Segoe UI", sans-serif);
    font-size: 10px;
    font-weight: 800;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(8, 16, 11, 0.72);
    stroke-width: 2px;
    user-select: none;
}

.spinner-pointer {
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.55));
    height: 0;
    left: 50%;
    position: absolute;
    top: -11px;
    transform: translateX(-50%);
    width: 0;
    z-index: 3;
}

.spinner-pointer::before {
    border-left: 19px solid transparent;
    border-right: 19px solid transparent;
    border-top: 40px solid #f5d47e;
    content: "";
    display: block;
    filter: drop-shadow(0 0 3px rgba(255, 227, 158, 0.55));
    transform-origin: 50% 0;
}

.spinner-wheel-stage.is-spinning .spinner-pointer::before {
    animation: spinner-pointer-tick 105ms ease-in-out infinite alternate;
}

.spinner-controls {
    margin: 25px auto 0;
    max-width: 410px;
    text-align: center;
}

.spinner-audio-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 11px;
}

.spinner-sound-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(198, 230, 213, 0.17);
    border-radius: 99px;
    color: #d5e5db;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 6px;
    min-height: 31px;
    padding: 0 11px;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.spinner-sound-toggle:hover,
.spinner-sound-toggle:focus-visible {
    background: rgba(124, 245, 189, 0.1);
    border-color: rgba(124, 245, 189, 0.38);
    color: #edfff4;
}

.spinner-sound-toggle.is-muted {
    color: #91a097;
}

.spinner-sound-toggle > span:first-child {
    color: var(--mint);
    font-size: 0.88rem;
}

.spinner-sound-toggle:focus-visible {
    outline: 2px solid #e1ffec;
    outline-offset: 3px;
}

.spinner-audio-note {
    color: #819087;
    font-size: 0.58rem;
    line-height: 1.4;
    text-align: left;
}

.spinner-spin-button {
    align-items: center;
    background: linear-gradient(110deg, #c4f5d7, #79e5aa 55%, #9bf0bc);
    border: 1px solid rgba(216, 255, 229, 0.8);
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(75, 205, 132, 0.16), inset 0 1px rgba(255, 255, 255, 0.58);
    color: #092013;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 0.83rem;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 52px;
    padding: 0 16px;
    transition: filter 160ms ease, transform 160ms ease, opacity 160ms ease;
    width: 100%;
}

.spinner-spin-button:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.spinner-spin-button:focus-visible {
    outline: 3px solid #effff4;
    outline-offset: 3px;
}

.spinner-spin-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.spinner-button-icon {
    font-size: 1.2rem;
}

.spinner-button-arrow {
    font-size: 1rem;
    margin-left: auto;
}

.spinner-result {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.12);
    border-radius: 9px;
    color: #c6d7cc;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.55;
    margin: 13px 0 0;
    min-height: 48px;
    padding: 12px 14px;
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.spinner-result[data-kind="demo"] {
    background: linear-gradient(110deg, rgba(188, 132, 48, 0.18), rgba(226, 194, 123, 0.08));
    border-color: rgba(238, 195, 111, 0.42);
    box-shadow: 0 0 25px rgba(210, 158, 63, 0.1);
    color: #f5d88f;
}

.spinner-result[data-kind="offer"] {
    background: linear-gradient(110deg, rgba(35, 130, 103, 0.2), rgba(124, 245, 189, 0.06));
    border-color: rgba(124, 245, 189, 0.3);
    box-shadow: 0 0 25px rgba(76, 207, 144, 0.08);
    color: #baf5d1;
}

.spinner-result[data-kind="empty"] {
    color: #aab9b0;
}

.spinner-result[data-kind="spinning"] {
    color: #f3e1ad;
}

.spinner-result-dialog {
    background: transparent;
    border: 0;
    color: #edf6f0;
    max-height: calc(100% - 32px);
    max-width: min(430px, calc(100% - 30px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.spinner-result-dialog::backdrop {
    animation: spinner-popup-backdrop-in 180ms ease-out both;
    background: rgba(2, 7, 4, 0.78);
    backdrop-filter: blur(7px);
}

.spinner-result-card {
    background:
        radial-gradient(ellipse at 50% 0, rgba(124, 245, 189, 0.14), transparent 55%),
        linear-gradient(150deg, #17251c, #0b120e 76%);
    border: 1px solid rgba(124, 245, 189, 0.25);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 255, 255, 0.05);
    padding: 34px 28px 25px;
    position: relative;
    text-align: center;
}

.spinner-result-dialog[data-kind="demo"] .spinner-result-card {
    background:
        radial-gradient(ellipse at 50% 0, rgba(224, 174, 80, 0.2), transparent 57%),
        linear-gradient(150deg, #292116, #100e0a 76%);
    border-color: rgba(238, 195, 111, 0.42);
}

.spinner-result-dialog[data-kind="loss"] .spinner-result-card {
    background:
        radial-gradient(ellipse at 50% 0, rgba(194, 102, 87, 0.13), transparent 55%),
        linear-gradient(150deg, #211b19, #110e0d 76%);
    border-color: rgba(214, 142, 126, 0.25);
}

.spinner-result-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #a9b7ae;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 1.25rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
}

.spinner-result-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.spinner-result-emblem {
    align-items: center;
    background: rgba(124, 245, 189, 0.1);
    border: 1px solid rgba(124, 245, 189, 0.27);
    border-radius: 50%;
    color: #a9f2c3;
    display: flex;
    font-size: 1.8rem;
    height: 64px;
    justify-content: center;
    margin: 0 auto 17px;
    width: 64px;
}

.spinner-result-dialog[data-kind="demo"] .spinner-result-emblem {
    background: rgba(224, 174, 80, 0.12);
    border-color: rgba(238, 195, 111, 0.38);
    color: #f1cd7a;
}

.spinner-result-dialog[data-kind="loss"] .spinner-result-emblem {
    background: rgba(194, 102, 87, 0.1);
    border-color: rgba(214, 142, 126, 0.28);
    color: #e0a092;
}

.spinner-result-kicker {
    color: var(--mint);
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin: 0 0 9px;
}

.spinner-result-dialog[data-kind="demo"] .spinner-result-kicker {
    color: #efca78;
}

.spinner-result-dialog[data-kind="loss"] .spinner-result-kicker {
    color: #d59a8d;
}

.spinner-result-card h2 {
    color: #f1f7f3;
    font-size: clamp(1.8rem, 7vw, 2.45rem);
    letter-spacing: -0.065em;
    margin: 0;
}

.spinner-result-message {
    color: #c0cec5;
    font-size: 0.84rem;
    line-height: 1.6;
    margin: 11px 0 0;
}

.spinner-result-disclaimer {
    background: rgba(226, 194, 123, 0.075);
    border: 1px solid rgba(226, 194, 123, 0.17);
    border-radius: 8px;
    color: #d6bf8b;
    font-size: 0.66rem;
    line-height: 1.5;
    margin: 14px 0 0;
    padding: 9px 10px;
}

.spinner-result-disclaimer[hidden] {
    display: none;
}

.spinner-result-actions {
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 22px;
}

.spinner-result-again,
.spinner-result-dismiss {
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 750;
    min-height: 43px;
    padding: 0 15px;
}

.spinner-result-again {
    align-items: center;
    background: linear-gradient(110deg, #c4f5d7, #79e5aa 55%, #9bf0bc);
    border: 1px solid rgba(216, 255, 229, 0.8);
    color: #092013;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.spinner-result-again:hover {
    filter: brightness(1.08);
}

.spinner-result-dismiss {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.16);
    color: #c0cec5;
}

.spinner-result-dismiss:hover {
    background: rgba(255, 255, 255, 0.075);
}

.spinner-result-dialog button:focus-visible {
    outline: 3px solid #e1ffec;
    outline-offset: 3px;
}

@keyframes spinner-popup-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.spinner-side-panel {
    align-self: stretch;
    background: rgba(4, 10, 7, 0.42);
    border: 1px solid rgba(196, 230, 211, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(19px, 3vw, 29px);
}

.spinner-side-heading {
    align-items: center;
    color: #a8b8ad;
    display: flex;
    font-size: 0.61rem;
    font-weight: 750;
    gap: 9px;
    letter-spacing: 0.11em;
}

.spinner-live-dot {
    background: #76edaa;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(118, 237, 170, 0.7);
    height: 7px;
    width: 7px;
}

.spinner-stat-grid {
    border-bottom: 1px solid rgba(198, 230, 213, 0.1);
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin: 20px 0;
    padding-bottom: 20px;
}

.spinner-stat-grid > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spinner-stat-grid strong {
    color: #f0f7f2;
    font-size: 1.6rem;
    letter-spacing: -0.06em;
}

.spinner-stat-grid span {
    color: #84948a;
    font-size: 0.62rem;
}

.spinner-legend h2 {
    color: #e5efe8;
    font-size: 0.9rem;
    margin: 0 0 15px;
}

.spinner-legend > p {
    align-items: center;
    display: flex;
    gap: 11px;
    margin: 12px 0;
}

.spinner-legend-swatch {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 7px;
    flex: 0 0 30px;
    height: 30px;
}

.spinner-legend-swatch.is-empty {
    background: linear-gradient(135deg, #14251c, #20382a);
}

.spinner-legend-swatch.is-offer {
    background: linear-gradient(135deg, #176b53, #238267);
}

.spinner-legend-swatch.is-demo {
    background: linear-gradient(135deg, #a76e23, #c18a38);
}

.spinner-legend > p > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spinner-legend strong {
    color: #dce9e0;
    font-size: 0.7rem;
}

.spinner-legend small {
    color: #84948a;
    font-size: 0.62rem;
}

.spinner-demo-notice {
    align-items: flex-start;
    background: rgba(226, 194, 123, 0.075);
    border: 1px solid rgba(226, 194, 123, 0.17);
    border-radius: 9px;
    color: #d6bf8b;
    display: flex;
    font-size: 0.7rem;
    gap: 10px;
    line-height: 1.55;
    margin-top: 16px;
    padding: 12px;
}

.spinner-demo-notice > span {
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.spinner-demo-notice p {
    margin: 0;
}

.spinner-demo-notice strong {
    color: #f1d994;
}

@keyframes spinner-pointer-tick {
    from {
        transform: rotate(-5deg);
    }

    to {
        transform: rotate(5deg);
    }
}

@keyframes spinner-bulb-chase {
    from {
        opacity: 0.5;
        transform: scale(0.78);
    }

    to {
        opacity: 1;
        transform: scale(1.28);
    }
}

@media (max-width: 760px) {
    .spinner-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 590px;
        margin: 0 auto;
    }

    .spinner-side-panel {
        display: grid;
        gap: 0 22px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }

    .spinner-side-heading,
    .spinner-stat-grid {
        grid-column: 1 / -1;
    }

    .spinner-stat-grid {
        margin-bottom: 18px;
    }

    .spinner-demo-notice {
        align-self: start;
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .spinner-page {
        padding-top: 20px;
    }

    .spinner-heading {
        margin-bottom: 23px;
    }

    .spinner-back-link {
        margin-bottom: 20px;
    }

    .spinner-intro {
        font-size: 0.78rem;
    }

    .spinner-layout {
        border-radius: 16px;
        gap: 22px;
        padding: 17px 13px 14px;
    }

    .spinner-wheel-stage {
        max-width: 390px;
        width: calc(100% - 12px);
    }

    .spinner-pointer::before {
        border-left-width: 15px;
        border-right-width: 15px;
        border-top-width: 34px;
    }

    .spinner-controls {
        margin-top: 17px;
    }

    .spinner-audio-row {
        gap: 8px;
    }

    .spinner-audio-note {
        font-size: 0.55rem;
    }

    .spinner-side-panel {
        display: flex;
        padding: 17px;
    }

    .spinner-stat-grid {
        align-self: stretch;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner-wheel {
        transition-duration: 1ms;
    }

    .spinner-wheel-stage.is-spinning .spinner-wheel-bulb,
    .spinner-wheel-stage.is-spinning .spinner-pointer::before {
        animation: none;
    }

    .spinner-spin-button {
        transition: none;
    }
}

.game-slider-section {
    border-bottom: 1px solid var(--line);
    padding: 38px 0 34px;
}

.game-slider-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.game-slider-heading .eyebrow {
    margin-bottom: 8px;
}

.game-slider-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.055em;
    margin: 0;
}

.game-slider-controls {
    display: flex;
    gap: 8px;
}

.slider-arrow {
    align-items: center;
    background: rgba(124, 245, 189, 0.06);
    border: 1px solid rgba(124, 245, 189, 0.18);
    border-radius: 50%;
    color: var(--mint);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 1.05rem;
    height: 40px;
    justify-content: center;
    transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
    width: 40px;
}

.slider-arrow:not(:disabled):hover {
    background: var(--mint);
    color: #07110b;
}

.slider-arrow:disabled {
    cursor: default;
    opacity: 0.35;
}

.game-slider {
    min-width: 0;
}

.game-slider-track {
    border-radius: 17px;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.game-slider-track::-webkit-scrollbar {
    display: none;
}

.game-slide {
    align-items: center;
    background:
        radial-gradient(ellipse at 80% 45%, rgba(124, 245, 189, 0.12), transparent 44%),
        linear-gradient(120deg, #13221a, #101714 55%, #0e1411);
    border: 1px solid rgba(198, 230, 213, 0.13);
    border-radius: 17px;
    display: flex;
    flex: 0 0 100%;
    height: clamp(300px, 32vw, 370px);
    isolation: isolate;
    overflow: hidden;
    padding: clamp(22px, 5vw, 48px);
    position: relative;
    scroll-snap-align: start;
}

.game-slide-1 {
    background:
        radial-gradient(ellipse at 80% 45%, rgba(125, 91, 232, 0.17), transparent 45%),
        linear-gradient(120deg, #191625, #14131b 55%, #101114);
}

.game-slide-2 {
    background:
        radial-gradient(ellipse at 80% 45%, rgba(229, 175, 72, 0.15), transparent 45%),
        linear-gradient(120deg, #262116, #191712 55%, #101310);
}

.game-slide-3 {
    background:
        radial-gradient(ellipse at 80% 45%, rgba(56, 167, 206, 0.16), transparent 45%),
        linear-gradient(120deg, #14242b, #12191e 55%, #101310);
}

.game-slide-image {
    height: 100%;
    inset: 0 0 0 auto;
    object-fit: cover;
    object-position: 67% center;
    position: absolute;
    width: 62%;
    z-index: -1;
}

.game-slide::after {
    background: linear-gradient(90deg, #101714 5%, rgba(16, 23, 20, 0.96) 34%, rgba(16, 23, 20, 0.45) 69%, rgba(16, 23, 20, 0.04));
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.game-slide-1::after {
    background: linear-gradient(90deg, #14131b 5%, rgba(20, 19, 27, 0.96) 34%, rgba(20, 19, 27, 0.45) 69%, rgba(20, 19, 27, 0.04));
}

.game-slide-2::after {
    background: linear-gradient(90deg, #191712 5%, rgba(25, 23, 18, 0.96) 34%, rgba(25, 23, 18, 0.45) 69%, rgba(25, 23, 18, 0.04));
}

.game-slide-3::after {
    background: linear-gradient(90deg, #12191e 5%, rgba(18, 25, 30, 0.96) 34%, rgba(18, 25, 30, 0.45) 69%, rgba(18, 25, 30, 0.04));
}

.game-slide-copy {
    max-width: 480px;
    position: relative;
    width: 55%;
    z-index: 1;
}

.game-slide-kicker {
    color: #a8b6ad;
    display: flex;
    font-size: 0.62rem;
    font-weight: 700;
    gap: 13px;
    letter-spacing: 0.15em;
    margin: 0 0 17px;
}

.game-slide-kicker span {
    color: #708077;
}

.game-slide-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.game-slide-category,
.game-slide-player-mode,
.game-slide-badges .game-status-badge {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    color: #d4e0d8;
    font-size: 0.65rem;
    padding: 5px 9px;
}

.game-slide-player-mode {
    border-color: rgba(124, 245, 189, 0.28);
    color: #c6f2da;
}

.game-slide-badges .game-status-coming_soon {
    border-color: rgba(135, 190, 255, 0.4);
    color: #b9d8ff;
}

.game-slide-badges .game-status-development {
    border-color: rgba(196, 165, 255, 0.4);
    color: #d2bdff;
}

.game-slide-badges .game-status-maintenance {
    border-color: rgba(255, 204, 122, 0.4);
    color: #ffdc9f;
}

.game-slide-badges .game-status-live {
    border-color: rgba(124, 245, 189, 0.38);
    color: #a9f5c8;
}

.game-slide h3 {
    color: #f4f7f5;
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.07em;
    line-height: 1;
    margin: 14px 0 8px;
}

.game-slide-description {
    color: #a7b3ac;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0 0 19px;
    max-width: 330px;
}

.game-slide-button {
    align-items: center;
    background: var(--mint);
    border: 1px solid var(--mint);
    border-radius: 7px;
    color: #07110b;
    display: inline-flex;
    font-size: 0.77rem;
    font-weight: 700;
    gap: 19px;
    justify-content: space-between;
    padding: 10px 13px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.game-slide-button:hover,
.game-slide-button:focus-visible {
    background: transparent;
    color: var(--mint);
    transform: translateY(-1px);
}

.game-slide-button-disabled {
    background: #202a24;
    border-color: rgba(198, 230, 213, 0.12);
    color: #a0ada5;
    cursor: not-allowed;
    pointer-events: none;
}

.game-slider-pagination {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: center;
    padding-top: 15px;
}

.slider-dot {
    background: #45544b;
    border: 0;
    border-radius: 99px;
    cursor: pointer;
    height: 7px;
    padding: 0;
    transition: background 180ms ease, width 180ms ease;
    width: 7px;
}

.slider-dot.is-active {
    background: var(--mint);
    width: 23px;
}

.game-slider-track:focus-visible .game-slide {
    outline: 2px solid var(--mint);
    outline-offset: -3px;
}

@media (max-width: 380px) {
    .topbar {
        flex-wrap: wrap;
        gap: 6px 12px;
        justify-content: center;
        padding-bottom: 8px;
        padding-top: 8px;
    }

    .topbar-links {
        gap: 10px;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .site-menu {
        border-top: 1px solid var(--line);
        gap: 8px;
        justify-content: space-between;
        padding-top: 7px;
        width: 100%;
    }

    .site-menu a {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .game-slider-section {
        padding: 30px 0;
    }

    .game-slide {
        height: 340px;
        padding: 24px 20px;
    }

    .game-slide-image {
        opacity: 0.68;
        object-position: 66% center;
        width: 76%;
    }

    .game-slide::after,
    .game-slide-1::after,
    .game-slide-2::after,
    .game-slide-3::after {
        background: linear-gradient(90deg, rgba(16, 23, 20, 0.99) 0%, rgba(16, 23, 20, 0.88) 42%, rgba(16, 23, 20, 0.36) 100%);
    }

    .game-slide-1::after {
        background: linear-gradient(90deg, rgba(20, 19, 27, 0.99) 0%, rgba(20, 19, 27, 0.88) 42%, rgba(20, 19, 27, 0.36) 100%);
    }

    .game-slide-2::after {
        background: linear-gradient(90deg, rgba(25, 23, 18, 0.99) 0%, rgba(25, 23, 18, 0.88) 42%, rgba(25, 23, 18, 0.36) 100%);
    }

    .game-slide-3::after {
        background: linear-gradient(90deg, rgba(18, 25, 30, 0.99) 0%, rgba(18, 25, 30, 0.88) 42%, rgba(18, 25, 30, 0.36) 100%);
    }

    .game-slide-copy {
        width: 88%;
    }

    .game-slide h3 {
        font-size: clamp(2rem, 9vw, 2.8rem);
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-menu a:hover {
        transform: none;
    }
}

.topbar-divider {
    color: #4c5a52;
    margin: 0 7px;
}

.topbar-signup {
    color: var(--mint);
}

.topbar-logout {
    display: inline-flex;
}

.topbar-logout button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.topbar-logout button:hover,
.topbar-logout button:focus-visible {
    color: var(--mint);
}

.auth-shell {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
    margin: 0 auto;
    max-width: 1040px;
    min-height: 610px;
    padding: 55px 24px 70px;
}

.auth-shell-reverse .auth-card {
    order: 2;
}

.auth-shell-reverse .auth-aside {
    order: 1;
}

.auth-card {
    align-self: center;
    background:
        radial-gradient(ellipse at 100% 0, rgba(124, 245, 189, 0.065), transparent 42%),
        linear-gradient(145deg, #111916, #0d1210);
    border: 1px solid rgba(198, 230, 213, 0.13);
    border-radius: 16px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.2);
    padding: clamp(25px, 5vw, 43px);
    width: 100%;
}

.auth-card-compact {
    max-width: 525px;
}

.auth-back-link {
    color: #8e9c94;
    display: inline-block;
    font-size: 0.76rem;
    margin-bottom: 33px;
    text-decoration: none;
}

.auth-back-link:hover,
.auth-back-link:focus-visible {
    color: var(--mint);
}

.auth-card .eyebrow,
.auth-aside .eyebrow {
    margin-bottom: 12px;
}

.auth-card h1,
.auth-aside h2 {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    letter-spacing: -0.055em;
}

.auth-card h1 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1.13;
    margin: 0;
}

.auth-intro {
    color: #9ba9a2;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 12px 0 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.auth-form label {
    color: #dfe8e2;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 5px;
}

.auth-form input:not([type='hidden']) {
    background: #090e0c;
    border: 1px solid rgba(198, 230, 213, 0.17);
    border-radius: 7px;
    color: #f4f7f5;
    font: inherit;
    font-size: 0.87rem;
    min-height: 46px;
    padding: 0 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.auth-form input:not([type='hidden']):hover {
    border-color: rgba(198, 230, 213, 0.3);
}

.auth-form input:not([type='hidden']):focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(124, 245, 189, 0.1);
    outline: none;
}

.auth-form input::placeholder {
    color: #67756d;
}

.password-label-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.password-label-row a,
.auth-switch a {
    color: var(--mint);
    font-size: 0.76rem;
    text-decoration: none;
}

.password-label-row a:hover,
.auth-switch a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.field-hint {
    color: #77857d;
    font-size: 0.7rem;
    font-weight: 400;
}

.auth-submit {
    align-items: center;
    background: var(--mint);
    border: 1px solid var(--mint);
    border-radius: 7px;
    color: #07110b;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 0.83rem;
    font-weight: 700;
    justify-content: space-between;
    margin-top: 12px;
    min-height: 46px;
    padding: 0 15px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    width: 100%;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    background: transparent;
    color: var(--mint);
    transform: translateY(-1px);
}

.auth-submit-link {
    max-width: 100%;
}

.auth-switch {
    color: #8e9c94;
    font-size: 0.77rem;
    margin: 21px 0 0;
    text-align: center;
}

.auth-switch a {
    font-weight: 600;
}

.auth-legal {
    color: #718078;
    font-size: 0.7rem;
    line-height: 1.6;
    margin: 17px 0 0;
    text-align: center;
}

.form-alert {
    border: 1px solid;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 18px 0;
    padding: 12px 14px;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 5px;
}

.form-alert-error {
    background: rgba(255, 105, 105, 0.07);
    border-color: rgba(255, 130, 130, 0.24);
    color: #ffc0bb;
}

.form-alert-success {
    background: rgba(124, 245, 189, 0.07);
    border-color: rgba(124, 245, 189, 0.24);
    color: #c6f9dc;
}

.demo-link {
    color: var(--mint);
    display: inline-flex;
    font-weight: 700;
    gap: 7px;
    margin-top: 9px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.demo-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-aside {
    align-self: stretch;
    background:
        radial-gradient(circle at 80% 16%, rgba(124, 245, 189, 0.12), transparent 34%),
        linear-gradient(155deg, rgba(19, 47, 33, 0.76), rgba(11, 17, 14, 0.82));
    border: 1px solid rgba(124, 245, 189, 0.13);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 380px;
    overflow: hidden;
    padding: clamp(26px, 5vw, 44px);
    position: relative;
}

.auth-aside::after {
    border: 1px solid rgba(124, 245, 189, 0.12);
    border-radius: 50%;
    bottom: -180px;
    content: '';
    height: 390px;
    position: absolute;
    right: -150px;
    width: 390px;
}

.auth-aside-symbol {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 15px;
    color: var(--mint);
    display: flex;
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-size: 1.6rem;
    height: 58px;
    justify-content: center;
    margin-bottom: auto;
    width: 58px;
}

.auth-aside .eyebrow {
    margin-top: 52px;
}

.auth-aside h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.1;
    margin: 0;
    max-width: 360px;
}

.auth-aside > p:last-child {
    color: #9ba9a2;
    font-size: 0.85rem;
    line-height: 1.75;
    margin: 15px 0 0;
    max-width: 340px;
}

.auth-result-icon {
    align-items: center;
    border: 1px solid;
    border-radius: 50%;
    display: flex;
    font-size: 1.3rem;
    height: 48px;
    justify-content: center;
    margin: 0 0 22px;
    width: 48px;
}

.auth-result-success {
    background: rgba(124, 245, 189, 0.1);
    border-color: rgba(124, 245, 189, 0.35);
    color: var(--mint);
}

.auth-result-error {
    background: rgba(255, 105, 105, 0.08);
    border-color: rgba(255, 130, 130, 0.28);
    color: #ffaaa3;
}

.dashboard-details {
    align-items: center;
    background: rgba(5, 9, 7, 0.48);
    border: 1px solid var(--line);
    border-radius: 9px;
    display: flex;
    gap: 12px;
    margin: 24px 0;
    padding: 14px;
}

.dashboard-avatar {
    align-items: center;
    background: rgba(124, 245, 189, 0.12);
    border-radius: 50%;
    color: var(--mint);
    display: flex;
    flex: 0 0 42px;
    font-size: 1.1rem;
    height: 42px;
    justify-content: center;
}

.dashboard-details > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dashboard-details strong {
    font-size: 0.82rem;
}

.dashboard-details > div span {
    color: #849188;
    font-size: 0.73rem;
    overflow-wrap: anywhere;
}

.account-status {
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.17);
    border-radius: 99px;
    color: var(--mint);
    font-size: 0.65rem;
    padding: 5px 8px;
}

.dashboard-actions {
    align-items: center;
    display: flex;
    gap: 17px;
}

.dashboard-actions .auth-submit {
    flex: 1;
    margin: 0;
}

.quiet-button {
    background: transparent;
    border: 0;
    color: #9ba9a2;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    padding: 12px 0;
}

.quiet-button:hover,
.quiet-button:focus-visible {
    color: #fff;
}

.auth-shell-single {
    display: block;
    max-width: 570px;
    min-height: 540px;
}

@media (max-width: 760px) {
    .auth-shell {
        gap: 18px;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
        padding-top: 38px;
    }

    .auth-aside {
        padding: 24px;
    }

    .auth-aside h2 {
        font-size: 1.85rem;
    }
}

@media (max-width: 600px) {
    .auth-shell {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 28px 16px 48px;
    }

    .auth-shell-reverse .auth-card,
    .auth-shell-reverse .auth-aside {
        order: initial;
    }

    .auth-card {
        padding: 25px 21px;
    }

    .auth-back-link {
        margin-bottom: 26px;
    }

    .auth-aside {
        min-height: 230px;
    }

    .auth-aside-symbol {
        height: 44px;
        margin-bottom: 22px;
        width: 44px;
    }

    .auth-aside .eyebrow {
        margin-top: 0;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .auth-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        max-width: 700px;
        min-height: 0;
        padding: 38px 24px 56px;
    }

    .auth-shell-reverse .auth-card,
    .auth-shell-reverse .auth-aside {
        order: initial;
    }

    .auth-card {
        align-self: stretch;
        padding: clamp(30px, 5vw, 42px);
    }

    .auth-aside {
        min-height: 320px;
    }
}

#teenpatti-lobby[hidden],
#teenpatti-table[hidden],
#teenpatti-self-hand[hidden],
#teenpatti-start[hidden],
#teenpatti-rematch[hidden],
#teenpatti-turn-pill[hidden] {
    display: none !important;
}

.teenpatti-page .visually-hidden {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.teenpatti-page {
    color: #eff8f0;
    margin: 0 auto;
    max-width: 1130px;
    padding-bottom: 75px;
}

.teenpatti-back-link {
    align-items: center;
    color: #9eada4;
    display: inline-flex;
    font-size: 0.76rem;
    gap: 8px;
    margin: 23px 0 28px;
    text-decoration: none;
}

.teenpatti-back-link:hover,
.teenpatti-back-link:focus-visible {
    color: var(--mint);
}

.teenpatti-heading {
    margin: 0 auto 27px;
    text-align: center;
}

.teenpatti-eyebrow,
.teenpatti-panel-kicker {
    color: #83e8ad;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 0 0 10px;
}

.teenpatti-heading h1 {
    color: #f1f7f0;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 850;
    letter-spacing: -0.065em;
    line-height: 0.98;
    margin: 0;
}

.teenpatti-heading h1 span {
    background: linear-gradient(110deg, #a8ffc5, #61dc97 58%, #d9fa91);
    background-clip: text;
    color: transparent;
}

.teenpatti-heading > p:last-child {
    color: #9eafa3;
    font-size: 0.86rem;
    margin: 12px 0 0;
}

.teenpatti-lobby {
    background:
        radial-gradient(ellipse at 50% 0, rgba(70, 162, 111, 0.16), transparent 53%),
        linear-gradient(145deg, #14241b, #0d1711 72%);
    border: 1px solid rgba(147, 224, 173, 0.17);
    border-radius: 21px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.035);
    margin: 0 auto;
    max-width: 690px;
    padding: clamp(21px, 4vw, 36px);
}

.teenpatti-lobby-intro {
    align-items: center;
    display: flex;
    gap: 16px;
    margin-bottom: 23px;
}

.teenpatti-lobby-mark {
    align-items: center;
    background: linear-gradient(145deg, rgba(137, 238, 171, 0.17), rgba(137, 238, 171, 0.05));
    border: 1px solid rgba(137, 238, 171, 0.2);
    border-radius: 15px;
    color: #a7f2bf;
    display: inline-flex;
    flex: 0 0 53px;
    font-size: 1.55rem;
    height: 53px;
    justify-content: center;
}

.teenpatti-panel-kicker {
    font-size: 0.53rem;
    margin-bottom: 6px;
}

.teenpatti-lobby-intro h2 {
    color: #f0f7f0;
    font-size: 1.38rem;
    letter-spacing: -0.04em;
    margin: 0;
}

.teenpatti-lobby-intro > div > p:last-child {
    color: #9aa99d;
    font-size: 0.72rem;
    line-height: 1.5;
    margin: 6px 0 0;
}

.teenpatti-lobby-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.65fr);
}

.teenpatti-field {
    color: #d3e1d6;
    display: grid;
    font-size: 0.67rem;
    font-weight: 700;
    gap: 7px;
}

.teenpatti-field input,
.teenpatti-field select,
.teenpatti-join-row input {
    background: rgba(4, 12, 7, 0.54);
    border: 1px solid rgba(198, 230, 213, 0.15);
    border-radius: 9px;
    color: #eff8f0;
    font: inherit;
    font-size: 0.77rem;
    min-height: 43px;
    outline: 0;
    padding: 0 12px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

.teenpatti-field select {
    cursor: pointer;
}

.teenpatti-field input:focus,
.teenpatti-field select:focus,
.teenpatti-join-row input:focus {
    border-color: rgba(124, 245, 189, 0.63);
    box-shadow: 0 0 0 3px rgba(124, 245, 189, 0.09);
}

.teenpatti-button {
    align-items: center;
    background: linear-gradient(110deg, #baffc9, #74e7a3 54%, #9cffbb);
    border: 1px solid rgba(214, 255, 223, 0.83);
    border-radius: 10px;
    box-shadow: 0 7px 19px rgba(61, 217, 132, 0.14), inset 0 1px rgba(255, 255, 255, 0.54);
    color: #10251a;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 43px;
    padding: 0 13px;
    transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.teenpatti-button:hover:not(:disabled) {
    box-shadow: 0 10px 24px rgba(61, 217, 132, 0.23), inset 0 1px rgba(255, 255, 255, 0.54);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.teenpatti-button:focus-visible,
.teenpatti-copy-code:focus-visible,
.teenpatti-sound-toggle:focus-visible,
.teenpatti-leave:focus-visible,
.teenpatti-result-dialog button:focus-visible {
    outline: 3px solid #e5ffc0;
    outline-offset: 3px;
}

.teenpatti-button:disabled {
    cursor: not-allowed;
    filter: saturate(0.55);
    opacity: 0.56;
    transform: none;
}

.teenpatti-lobby-form > .teenpatti-button {
    grid-column: 1 / -1;
}

.teenpatti-lobby-divider {
    align-items: center;
    color: #7f9084;
    display: flex;
    font-size: 0.52rem;
    font-weight: 800;
    gap: 12px;
    letter-spacing: 0.16em;
    margin: 21px 0;
}

.teenpatti-lobby-divider::before,
.teenpatti-lobby-divider::after {
    background: rgba(192, 225, 200, 0.13);
    content: '';
    flex: 1;
    height: 1px;
}

.teenpatti-join-row {
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.teenpatti-join-row input {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.teenpatti-join-button {
    min-width: 135px;
}

.teenpatti-feedback {
    color: #ffbdb2;
    font-size: 0.7rem;
    line-height: 1.5;
    margin: 13px 0 0;
    min-height: 1.2em;
}

.teenpatti-lobby-note {
    border-top: 1px solid rgba(192, 225, 200, 0.1);
    color: #85958a;
    font-size: 0.59rem;
    margin: 13px 0 0;
    padding-top: 13px;
    text-align: center;
}

.teenpatti-table {
    background:
        radial-gradient(ellipse at 50% 0, rgba(65, 147, 99, 0.1), transparent 58%),
        linear-gradient(145deg, #122119, #0b1410);
    border: 1px solid rgba(147, 224, 173, 0.17);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.teenpatti-table-topbar {
    align-items: center;
    border-bottom: 1px solid rgba(192, 225, 200, 0.11);
    display: flex;
    flex-wrap: wrap;
    gap: 13px 21px;
    justify-content: space-between;
    min-height: 67px;
    padding: 13px 20px;
}

.teenpatti-table-code-wrap {
    display: grid;
    gap: 3px;
}

.teenpatti-table-label {
    color: #82958a;
    font-size: 0.49rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.teenpatti-copy-code {
    background: none;
    border: 0;
    color: #a8f2bf;
    cursor: pointer;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 2px 0;
}

.teenpatti-topbar-status {
    align-items: center;
    color: #c0cfbf;
    display: inline-flex;
    font-size: 0.54rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.12em;
}

.teenpatti-live-dot {
    background: #83edaa;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(131, 237, 170, 0.67);
    height: 7px;
    width: 7px;
}

.teenpatti-table.is-playing .teenpatti-live-dot {
    animation: teenpatti-live-pulse 1.2s ease-in-out infinite;
}

.teenpatti-sound-controls {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
}

.teenpatti-sound-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 999px;
    color: #c5d6c9;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.58rem;
    font-weight: 750;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
}

.teenpatti-sound-toggle:hover {
    background: rgba(124, 245, 189, 0.08);
    border-color: rgba(124, 245, 189, 0.35);
    color: #d4ffe0;
}

.teenpatti-sound-toggle > span:first-child {
    color: #a5f4c2;
    font-size: 0.82rem;
}

.teenpatti-sound-toggle.is-muted {
    color: #8c9a90;
}

.teenpatti-sound-note {
    color: #829187;
    font-size: 0.52rem;
}

.teenpatti-leave {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.13);
    border-radius: 8px;
    color: #b9c7bc;
    cursor: pointer;
    font: inherit;
    font-size: 0.61rem;
    font-weight: 700;
    min-height: 32px;
    padding: 0 10px;
}

.teenpatti-leave:hover {
    border-color: rgba(255, 157, 144, 0.33);
    color: #ffc5bb;
}

.teenpatti-felt {
    background:
        radial-gradient(ellipse at 50% 48%, rgba(110, 195, 131, 0.15), transparent 43%),
        repeating-linear-gradient(135deg, rgba(225, 255, 231, 0.012) 0 1px, transparent 1px 7px),
        linear-gradient(145deg, #16442e, #103723 53%, #102e20);
    border: 9px solid #34281d;
    border-radius: 50% / 17%;
    box-shadow: inset 0 0 0 2px rgba(232, 192, 119, 0.58), inset 0 0 0 10px rgba(35, 26, 17, 0.46), inset 0 0 55px rgba(0, 0, 0, 0.27), 0 17px 32px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.8fr) minmax(180px, 1fr);
    grid-template-rows: auto minmax(150px, 1fr) auto;
    margin: 23px 30px 0;
    min-height: 420px;
    overflow: hidden;
    padding: 26px clamp(16px, 4vw, 39px) 23px;
    position: relative;
}

.teenpatti-felt::before,
.teenpatti-felt::after {
    border: 1px solid rgba(205, 242, 209, 0.11);
    border-radius: 50%;
    content: '';
    inset: 19px 25px;
    pointer-events: none;
    position: absolute;
}

.teenpatti-felt::after {
    border-color: rgba(205, 242, 209, 0.06);
    inset: 27px 33px;
}

.teenpatti-felt-ornament {
    align-items: center;
    border: 1px solid rgba(217, 203, 152, 0.12);
    border-radius: 50%;
    color: rgba(234, 218, 162, 0.1);
    display: flex;
    font-family: Georgia, serif;
    font-size: 3.3rem;
    height: 82px;
    justify-content: center;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 47%;
    transform: translate(-50%, -50%);
    width: 82px;
}

.teenpatti-seat-ring {
    align-content: start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    grid-column: 1 / 4;
    grid-row: 1;
    justify-content: space-around;
    position: relative;
    z-index: 1;
}

.teenpatti-seat,
.teenpatti-waiting-seat {
    background: linear-gradient(145deg, rgba(9, 24, 16, 0.9), rgba(7, 17, 12, 0.92));
    border: 1px solid rgba(214, 238, 203, 0.16);
    border-radius: 13px;
    box-shadow: 0 11px 24px rgba(0, 0, 0, 0.24);
    min-width: 155px;
    padding: 10px 12px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.teenpatti-seat.is-current {
    border-color: rgba(170, 246, 178, 0.76);
    box-shadow: 0 0 0 2px rgba(170, 246, 178, 0.13), 0 0 25px rgba(119, 232, 148, 0.2), 0 11px 24px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.teenpatti-seat.is-winner {
    border-color: rgba(255, 221, 139, 0.8);
    box-shadow: 0 0 22px rgba(246, 207, 115, 0.18), 0 11px 24px rgba(0, 0, 0, 0.24);
}

.teenpatti-seat.is-folded {
    opacity: 0.54;
}

.teenpatti-seat-heading {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.teenpatti-seat-avatar {
    align-items: center;
    background: rgba(124, 245, 189, 0.1);
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 50%;
    color: #b7f2ca;
    display: inline-flex;
    flex: 0 0 27px;
    font-size: 0.65rem;
    font-weight: 800;
    height: 27px;
    justify-content: center;
}

.teenpatti-seat-name {
    color: #e1ece2;
    flex: 1;
    font-size: 0.66rem;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teenpatti-seat-presence {
    color: #ddc58c;
    font-size: 0.43rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.teenpatti-seat-presence.is-online {
    color: #8ce9aa;
}

.teenpatti-opponent-hand {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 11px 0 8px;
}

.teenpatti-card {
    align-items: center;
    background: linear-gradient(150deg, #fffef8, #f0eee4);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 7px;
    box-shadow: 0 7px 13px rgba(0, 0, 0, 0.24), inset 0 0 0 2px rgba(39, 65, 43, 0.04);
    color: #203026;
    display: inline-flex;
    flex-direction: column;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 800;
    justify-content: center;
    position: relative;
}

.teenpatti-card.is-red {
    color: #b4424a;
}

.teenpatti-card.is-hidden {
    background:
        repeating-linear-gradient(45deg, transparent 0 5px, rgba(124, 245, 189, 0.12) 5px 7px),
        linear-gradient(145deg, #24543c, #11291d);
    border: 1px solid rgba(160, 225, 184, 0.68);
    color: #b8ffda;
}

.teenpatti-card-back-mark {
    align-items: center;
    border: 1px solid rgba(184, 255, 218, 0.5);
    border-radius: 50%;
    display: flex;
    font-size: 0.62rem;
    height: 21px;
    justify-content: center;
    width: 21px;
}

.teenpatti-opponent-hand .teenpatti-card {
    height: 53px;
    width: 37px;
}

.teenpatti-opponent-hand .teenpatti-card-rank {
    font-size: 0.73rem;
}

.teenpatti-opponent-hand .teenpatti-card-suit {
    font-family: 'Segoe UI Symbol', serif;
    font-size: 0.76rem;
    margin-top: 2px;
}

.teenpatti-seat-state {
    color: #8fa193;
    display: block;
    font-size: 0.53rem;
    text-align: center;
}

.teenpatti-seat.is-winner .teenpatti-seat-state {
    color: #f2d38f;
}

.teenpatti-waiting-seat {
    align-items: center;
    background: rgba(4, 20, 12, 0.29);
    border: 1px dashed rgba(204, 235, 198, 0.24);
    box-shadow: none;
    color: #a0b3a5;
    display: flex;
    flex-direction: column;
    font-size: 0.61rem;
    gap: 6px;
    justify-content: center;
    min-height: 92px;
    text-align: center;
}

.teenpatti-waiting-icon {
    color: rgba(176, 238, 188, 0.62);
    font-size: 1.4rem;
}

.teenpatti-center {
    align-items: center;
    align-self: center;
    display: flex;
    flex-direction: column;
    grid-column: 1 / 4;
    grid-row: 2;
    justify-content: center;
    min-height: 165px;
    padding: 15px 8px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.teenpatti-center-kicker {
    color: #b9c69d;
    font-size: 0.47rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.teenpatti-center-mark {
    color: rgba(198, 239, 184, 0.74);
    font-size: 1.35rem;
    margin-top: 8px;
    text-shadow: 0 0 16px rgba(120, 232, 150, 0.34);
}

.teenpatti-center h2 {
    color: #edf4e4;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 4px 0 0;
}

.teenpatti-center > p {
    color: #a6b5a1;
    font-size: 0.59rem;
    line-height: 1.55;
    margin: 7px 0 0;
    max-width: 235px;
}

.teenpatti-turn-pill {
    align-items: center;
    background: rgba(160, 244, 168, 0.1);
    border: 1px solid rgba(160, 244, 168, 0.26);
    border-radius: 999px;
    color: #c8ffce;
    display: inline-flex;
    font-size: 0.46rem;
    font-weight: 850;
    gap: 6px;
    letter-spacing: 0.12em;
    margin-top: 11px;
    padding: 6px 9px;
}

.teenpatti-turn-pill > span:first-child {
    font-size: 0.46rem;
}

.teenpatti-self-hand {
    align-items: center;
    background: linear-gradient(145deg, rgba(9, 24, 16, 0.9), rgba(7, 17, 12, 0.92));
    border: 1px solid rgba(174, 240, 182, 0.35);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.27), 0 0 22px rgba(99, 201, 126, 0.08);
    display: flex;
    flex-direction: column;
    gap: 9px;
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
    min-width: 190px;
    padding: 11px 17px 12px;
    position: relative;
    z-index: 1;
}

.teenpatti-hand-label {
    color: #a3d4a9;
    font-size: 0.45rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.teenpatti-hand-cards {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.teenpatti-hand-cards .teenpatti-card {
    height: 83px;
    width: 57px;
}

.teenpatti-hand-cards .teenpatti-card-rank {
    font-size: 1.18rem;
}

.teenpatti-hand-cards .teenpatti-card-suit {
    font-family: 'Segoe UI Symbol', serif;
    font-size: 1.22rem;
    margin-top: 1px;
}

.teenpatti-hand-rank {
    color: #9cafa0;
    font-size: 0.52rem;
    text-align: center;
}

.teenpatti-table-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    justify-content: space-between;
    padding: 17px 22px;
}

.teenpatti-action-message {
    color: #9caca0;
    flex: 1 1 220px;
    font-size: 0.66rem;
    line-height: 1.5;
    min-height: 1.5em;
}

.teenpatti-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.teenpatti-fold-button {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(231, 201, 154, 0.23);
    box-shadow: none;
    color: #e0c99b;
}

.teenpatti-fold-button:hover:not(:disabled) {
    background: rgba(231, 201, 154, 0.09);
    border-color: rgba(231, 201, 154, 0.42);
    box-shadow: none;
    color: #f5dbab;
}

.teenpatti-table-bottom {
    align-items: center;
    border-top: 1px solid rgba(192, 225, 200, 0.1);
    display: grid;
    gap: 13px 20px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.9fr);
    padding: 14px 22px 17px;
}

.teenpatti-activity h3 {
    color: #82958a;
    font-size: 0.48rem;
    letter-spacing: 0.16em;
    margin: 0 0 7px;
}

.teenpatti-activity ol {
    color: #a8b6aa;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.54rem;
    gap: 5px 13px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.teenpatti-activity li::before {
    color: #95e5aa;
    content: '•';
    margin-right: 5px;
}

.teenpatti-free-note {
    align-items: flex-start;
    color: #ac9e7d;
    display: flex;
    font-size: 0.55rem;
    gap: 7px;
    line-height: 1.55;
    margin: 0;
}

.teenpatti-free-note > span {
    color: #ddc38a;
    flex: 0 0 auto;
}

.teenpatti-howto {
    align-items: flex-start;
    background: rgba(17, 30, 23, 0.7);
    border: 1px solid rgba(192, 225, 200, 0.1);
    border-radius: 13px;
    display: grid;
    gap: 6px 13px;
    grid-template-columns: 25px minmax(0, 1fr);
    margin: 19px auto 0;
    max-width: 100%;
    padding: 17px 19px;
}

.teenpatti-howto-icon {
    color: #91e6aa;
    font-size: 1rem;
    grid-row: 1 / 3;
    margin-top: 1px;
}

.teenpatti-howto h2 {
    color: #e4eee5;
    font-size: 0.83rem;
    margin: 0;
}

.teenpatti-howto > div > p {
    color: #93a198;
    font-size: 0.67rem;
    line-height: 1.65;
    margin: 5px 0 0;
}

.teenpatti-hand-rank-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 2;
    margin-top: 5px;
}

.teenpatti-hand-rank-list span {
    background: rgba(124, 245, 189, 0.045);
    border: 1px solid rgba(124, 245, 189, 0.1);
    border-radius: 999px;
    color: #a6c5ad;
    font-size: 0.51rem;
    padding: 4px 7px;
}

.teenpatti-result-dialog {
    background: transparent;
    border: 0;
    color: #eff8f0;
    max-width: min(440px, calc(100vw - 30px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.teenpatti-result-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(3, 8, 5, 0.79);
}

.teenpatti-result-dialog[open] {
    animation: teenpatti-dialog-enter 300ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.teenpatti-result-card {
    background:
        radial-gradient(ellipse at 50% 0, rgba(93, 203, 131, 0.18), transparent 48%),
        linear-gradient(145deg, #17271c, #0d1711);
    border: 1px solid rgba(154, 239, 177, 0.24);
    border-radius: 20px;
    box-shadow: 0 25px 85px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.04);
    padding: 34px 29px 25px;
    position: relative;
    text-align: center;
}

.teenpatti-result-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #c2d0c5;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1.35rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 13px;
    top: 13px;
    width: 34px;
}

.teenpatti-result-emblem {
    align-items: center;
    background: rgba(124, 245, 189, 0.09);
    border: 1px solid rgba(124, 245, 189, 0.2);
    border-radius: 19px;
    box-shadow: 0 0 35px rgba(98, 227, 151, 0.1);
    color: #b7f5c5;
    display: inline-flex;
    font-size: 2.45rem;
    height: 78px;
    justify-content: center;
    width: 78px;
}

.teenpatti-result-emblem[data-outcome="loss"] {
    background: rgba(208, 172, 97, 0.08);
    border-color: rgba(208, 172, 97, 0.2);
    box-shadow: 0 0 28px rgba(208, 172, 97, 0.08);
    color: #ddc38c;
}

.teenpatti-result-kicker {
    color: #91e9ad;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 20px 0 8px;
}

.teenpatti-result-emblem[data-outcome="loss"] + .teenpatti-result-kicker {
    color: #dfc38b;
}

.teenpatti-result-dialog h2 {
    color: #f2f7f0;
    font-size: 1.75rem;
    letter-spacing: -0.045em;
    margin: 0;
}

.teenpatti-result-copy {
    color: #bfcec2;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 11px 0 0;
}

.teenpatti-result-note {
    color: #b8a87f;
    font-size: 0.64rem;
    line-height: 1.5;
    margin: 15px 0 0;
}

.teenpatti-result-actions {
    display: flex;
    gap: 9px;
    margin-top: 22px;
}

.teenpatti-result-actions button {
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 750;
    min-height: 43px;
    padding: 0 14px;
}

.teenpatti-result-again {
    background: linear-gradient(110deg, #baffc9, #74e7a3);
    border: 1px solid #a4f8b9;
    color: #10251a;
    flex: 1;
}

.teenpatti-result-dismiss {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #c3d1c5;
}

@keyframes teenpatti-live-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(131, 237, 170, 0.4); }
    50% { box-shadow: 0 0 14px rgba(131, 237, 170, 0.9); }
}

@keyframes teenpatti-dialog-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
    .teenpatti-table-topbar {
        justify-content: flex-start;
    }

    .teenpatti-sound-controls {
        margin-left: auto;
    }

    .teenpatti-felt {
        grid-template-columns: minmax(130px, 1fr) minmax(120px, 0.8fr) minmax(130px, 1fr);
        margin-left: 16px;
        margin-right: 16px;
        min-height: 400px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .teenpatti-seat {
        min-width: 130px;
    }

    .teenpatti-table-bottom {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .teenpatti-page {
        padding-bottom: 50px;
    }

    .teenpatti-back-link {
        margin: 17px 0 21px;
    }

    .teenpatti-heading {
        margin-bottom: 22px;
    }

    .teenpatti-heading > p:last-child {
        font-size: 0.75rem;
    }

    .teenpatti-lobby {
        border-radius: 17px;
        padding: 18px 15px;
    }

    .teenpatti-lobby-form {
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) minmax(105px, 0.6fr);
    }

    .teenpatti-lobby-form > .teenpatti-button {
        grid-column: 1 / -1;
    }

    .teenpatti-join-button {
        min-width: 0;
        padding: 0 9px;
    }

    .teenpatti-table {
        border-radius: 15px;
    }

    .teenpatti-table-topbar {
        gap: 11px;
        padding: 12px;
    }

    .teenpatti-topbar-status {
        flex: 1 1 120px;
        order: 3;
    }

    .teenpatti-sound-controls {
        margin-left: auto;
    }

    .teenpatti-sound-note {
        display: none;
    }

    .teenpatti-leave {
        margin-left: auto;
    }

    .teenpatti-felt {
        border-radius: 14% / 7%;
        border-width: 5px;
        grid-template-columns: 1fr minmax(112px, 0.9fr) 1fr;
        grid-template-rows: auto minmax(135px, 1fr) auto;
        margin: 13px 8px 0;
        min-height: 365px;
        padding: 19px 7px 16px;
    }

    .teenpatti-seat-ring {
        gap: 7px;
    }

    .teenpatti-seat,
    .teenpatti-waiting-seat {
        min-width: 107px;
        padding: 8px 7px;
    }

    .teenpatti-seat-heading {
        gap: 5px;
    }

    .teenpatti-seat-avatar {
        flex-basis: 22px;
        font-size: 0.57rem;
        height: 22px;
    }

    .teenpatti-seat-name {
        font-size: 0.57rem;
    }

    .teenpatti-seat-presence {
        font-size: 0.37rem;
    }

    .teenpatti-opponent-hand .teenpatti-card {
        height: 47px;
        width: 31px;
    }

    .teenpatti-center {
        min-height: 138px;
        padding: 10px 4px;
    }

    .teenpatti-center h2 {
        font-size: 0.92rem;
    }

    .teenpatti-center > p {
        font-size: 0.53rem;
    }

    .teenpatti-self-hand {
        min-width: 160px;
        padding: 9px 12px;
    }

    .teenpatti-hand-cards .teenpatti-card {
        height: 72px;
        width: 49px;
    }

    .teenpatti-table-actions {
        align-items: stretch;
        padding: 13px 12px;
    }

    .teenpatti-action-message {
        flex-basis: 100%;
        text-align: center;
    }

    .teenpatti-action-buttons {
        justify-content: center;
        width: 100%;
    }

    .teenpatti-table-bottom {
        padding: 13px 13px 15px;
    }

    .teenpatti-activity ol {
        display: grid;
        gap: 5px;
    }

    .teenpatti-howto {
        padding: 15px 13px;
    }

    .teenpatti-result-card {
        padding: 31px 20px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teenpatti-table.is-playing .teenpatti-live-dot,
    .teenpatti-result-dialog[open] {
        animation: none;
    }

    .teenpatti-seat,
    .teenpatti-button {
        transition: none;
    }
}

.baccarat-page {
    color: #eff7f0;
    margin: 0 auto;
    max-width: 1110px;
    padding-bottom: 68px;
}

.baccarat-back-link {
    align-items: center;
    color: #9eada4;
    display: inline-flex;
    font-size: 0.76rem;
    gap: 8px;
    margin: 23px 0 27px;
    text-decoration: none;
}

.baccarat-back-link:hover,
.baccarat-back-link:focus-visible {
    color: var(--mint);
}

.baccarat-heading {
    margin: 0 auto 27px;
    text-align: center;
}

.baccarat-eyebrow,
.baccarat-table-kicker,
.baccarat-hand-kicker {
    color: #90e4ae;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    margin: 0 0 9px;
}

.baccarat-heading h1 {
    color: #f0f7f0;
    font-size: clamp(2.7rem, 7vw, 4.4rem);
    font-weight: 850;
    letter-spacing: -0.07em;
    line-height: 0.96;
    margin: 0;
}

.baccarat-heading h1 span {
    background: linear-gradient(110deg, #eddba9, #bd9858 56%, #fff0c4);
    background-clip: text;
    color: transparent;
}

.baccarat-heading > p:last-child {
    color: #9eafa3;
    font-size: 0.85rem;
    margin: 12px 0 0;
}

.baccarat-table {
    background:
        radial-gradient(ellipse at 50% 0, rgba(72, 160, 112, 0.15), transparent 55%),
        linear-gradient(145deg, #14231a, #0b1510 75%);
    border: 1px solid rgba(216, 191, 125, 0.2);
    border-radius: 21px;
    box-shadow: 0 25px 68px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.baccarat-table-topbar {
    align-items: center;
    border-bottom: 1px solid rgba(206, 226, 201, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 13px 20px;
    justify-content: space-between;
    padding: 15px 20px;
}

.baccarat-table-title {
    align-items: center;
    display: flex;
    gap: 12px;
}

.baccarat-table-mark {
    align-items: center;
    background: linear-gradient(145deg, rgba(217, 190, 123, 0.18), rgba(217, 190, 123, 0.05));
    border: 1px solid rgba(217, 190, 123, 0.24);
    border-radius: 12px;
    color: #e6ce94;
    display: inline-flex;
    flex: 0 0 43px;
    font-size: 1.2rem;
    height: 43px;
    justify-content: center;
}

.baccarat-table-kicker {
    color: #bea76e;
    display: block;
    font-size: 0.48rem;
    margin-bottom: 4px;
}

.baccarat-table-title h2 {
    color: #edf5ed;
    font-size: 0.98rem;
    letter-spacing: -0.025em;
    margin: 0;
}

.baccarat-round-tag {
    align-items: center;
    color: #c3d1c4;
    display: inline-flex;
    font-size: 0.51rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.11em;
}

.baccarat-live-dot {
    background: #8de4a9;
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(141, 228, 169, 0.62);
    height: 7px;
    width: 7px;
}

.baccarat-table.is-dealing .baccarat-live-dot {
    animation: baccarat-live-pulse 0.8s ease-in-out infinite;
}

.baccarat-sound-controls {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
}

.baccarat-sound-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 999px;
    color: #c5d6c9;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.58rem;
    font-weight: 750;
    gap: 6px;
    min-height: 31px;
    padding: 0 10px;
}

.baccarat-sound-toggle:hover {
    background: rgba(217, 190, 123, 0.08);
    border-color: rgba(217, 190, 123, 0.36);
    color: #fff0c4;
}

.baccarat-sound-toggle > span:first-child {
    color: #e6ce94;
    font-size: 0.82rem;
}

.baccarat-sound-toggle.is-muted {
    color: #8d9a90;
}

.baccarat-sound-note {
    color: #829187;
    font-size: 0.51rem;
}

.baccarat-score-strip {
    background: linear-gradient(90deg, rgba(7, 16, 11, 0.55), rgba(24, 40, 29, 0.33), rgba(7, 16, 11, 0.55));
    border-bottom: 1px solid rgba(206, 226, 201, 0.08);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px 24px;
}

.baccarat-score-strip > div {
    align-items: baseline;
    border-right: 1px solid rgba(206, 226, 201, 0.1);
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 2px 8px;
}

.baccarat-score-strip > div:last-child {
    border: 0;
}

.baccarat-score-strip span {
    color: #84958a;
    font-size: 0.44rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.baccarat-score-strip strong {
    color: #eff5df;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.baccarat-score-strip .baccarat-streak strong {
    color: #eddba9;
}

.baccarat-felt {
    background:
        radial-gradient(ellipse at 50% 46%, rgba(99, 175, 121, 0.17), transparent 51%),
        repeating-linear-gradient(135deg, rgba(225, 255, 231, 0.013) 0 1px, transparent 1px 7px),
        linear-gradient(145deg, #164630, #103824 55%, #0d2d1f);
    border: 9px solid #35281d;
    border-radius: 50% / 16%;
    box-shadow: inset 0 0 0 2px rgba(232, 192, 119, 0.52), inset 0 0 0 10px rgba(35, 26, 17, 0.43), inset 0 0 60px rgba(0, 0, 0, 0.26), 0 18px 34px rgba(0, 0, 0, 0.3);
    display: grid;
    gap: 12px clamp(10px, 3vw, 30px);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin: 25px 30px 0;
    min-height: 284px;
    overflow: hidden;
    padding: 32px clamp(16px, 4vw, 42px) 20px;
    position: relative;
}

.baccarat-felt::before,
.baccarat-felt::after {
    border: 1px solid rgba(205, 242, 209, 0.11);
    border-radius: 50%;
    content: '';
    inset: 17px 23px;
    pointer-events: none;
    position: absolute;
}

.baccarat-felt::after {
    border-color: rgba(205, 242, 209, 0.055);
    inset: 25px 31px;
}

.baccarat-felt-seal {
    align-items: center;
    border: 1px solid rgba(220, 199, 139, 0.12);
    border-radius: 50%;
    color: rgba(234, 218, 162, 0.12);
    display: flex;
    flex-direction: column;
    height: 96px;
    justify-content: center;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 96px;
}

.baccarat-felt-seal span {
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.baccarat-felt-seal small {
    font-size: 0.34rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.baccarat-hand {
    align-self: center;
    background: linear-gradient(145deg, rgba(7, 22, 14, 0.82), rgba(6, 17, 11, 0.9));
    border: 1px solid rgba(212, 236, 203, 0.17);
    border-radius: 15px;
    box-shadow: 0 12px 27px rgba(0, 0, 0, 0.24);
    min-height: 190px;
    padding: 15px clamp(10px, 2vw, 21px) 12px;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    z-index: 1;
}

.baccarat-player-hand {
    grid-column: 1;
}

.baccarat-banker-hand {
    grid-column: 3;
}

.baccarat-hand-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.baccarat-hand-kicker {
    color: #7dcab0;
    display: block;
    font-size: 0.42rem;
    margin-bottom: 5px;
}

.baccarat-banker-hand .baccarat-hand-kicker {
    color: #db9ca3;
}

.baccarat-hand-heading h3 {
    color: #e9f5ed;
    font-size: 0.78rem;
    letter-spacing: 0.13em;
    margin: 0;
}

.baccarat-total {
    align-items: center;
    background: rgba(204, 241, 221, 0.08);
    border: 1px solid rgba(204, 241, 221, 0.17);
    border-radius: 10px;
    color: #d8f6e3;
    display: inline-flex;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 650;
    height: 39px;
    justify-content: center;
    width: 39px;
}

.baccarat-cards {
    align-items: center;
    display: flex;
    gap: clamp(7px, 1.8vw, 14px);
    justify-content: center;
    min-height: 102px;
    padding: 6px 0;
}

.baccarat-card {
    align-items: center;
    background: linear-gradient(150deg, #fffef7, #e9ebdf);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 9px 17px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(39, 65, 43, 0.04);
    color: #263b30;
    display: flex;
    flex-direction: column;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 800;
    height: 87px;
    justify-content: center;
    opacity: 0;
    position: relative;
    transform: translateY(-14px) rotate(-3deg) scale(0.88);
    transition: opacity 240ms ease, transform 340ms cubic-bezier(0.2, 0.8, 0.25, 1);
    width: 60px;
}

.baccarat-card.is-dealt {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

.baccarat-card.is-red {
    color: #b3444b;
}

.baccarat-card-corner {
    font-size: 1.25rem;
}

.baccarat-card-suit {
    font-family: 'Segoe UI Symbol', serif;
    font-size: 1.17rem;
    margin-top: 1px;
}

.baccarat-hand-caption {
    color: #8ea497;
    display: block;
    font-size: 0.5rem;
    min-height: 1em;
    text-align: center;
}

.baccarat-versus {
    align-items: center;
    align-self: center;
    background: rgba(9, 28, 18, 0.65);
    border: 1px solid rgba(221, 201, 141, 0.29);
    border-radius: 50%;
    color: #e5d29d;
    display: flex;
    font-size: 0.49rem;
    font-weight: 850;
    grid-column: 2;
    grid-row: 1;
    height: 35px;
    justify-content: center;
    letter-spacing: 0.08em;
    position: relative;
    width: 35px;
    z-index: 1;
}

.baccarat-deal-status {
    color: #c2d3c4;
    font-size: 0.64rem;
    grid-column: 1 / 4;
    grid-row: 2;
    line-height: 1.5;
    min-height: 1.5em;
    position: relative;
    text-align: center;
    z-index: 1;
}

.baccarat-felt.is-player-winner .baccarat-player-hand {
    border-color: rgba(133, 224, 192, 0.74);
    box-shadow: 0 0 25px rgba(91, 224, 174, 0.17), 0 12px 27px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.baccarat-felt.is-banker-winner .baccarat-banker-hand {
    border-color: rgba(239, 157, 162, 0.73);
    box-shadow: 0 0 25px rgba(233, 128, 143, 0.15), 0 12px 27px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.baccarat-felt.is-tie .baccarat-player-hand,
.baccarat-felt.is-tie .baccarat-banker-hand {
    border-color: rgba(238, 213, 146, 0.54);
    box-shadow: 0 0 21px rgba(238, 213, 146, 0.11), 0 12px 27px rgba(0, 0, 0, 0.24);
}

.baccarat-controls {
    display: grid;
    gap: 13px;
    margin: 0 auto;
    max-width: 670px;
    padding: 20px 20px 16px;
}

.baccarat-predictions {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.baccarat-prediction {
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(203, 224, 202, 0.13);
    border-radius: 11px;
    color: #c7d4c9;
    cursor: pointer;
    display: grid;
    font: inherit;
    grid-template-columns: 22px 1fr auto;
    min-height: 51px;
    padding: 7px 11px;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.baccarat-prediction:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(215, 232, 205, 0.34);
    transform: translateY(-1px);
}

.baccarat-prediction.is-selected[data-prediction="player"] {
    background: rgba(89, 213, 179, 0.1);
    border-color: rgba(108, 233, 192, 0.55);
    box-shadow: inset 0 0 0 1px rgba(108, 233, 192, 0.09);
    color: #d8ffed;
}

.baccarat-prediction.is-selected[data-prediction="tie"] {
    background: rgba(222, 190, 111, 0.1);
    border-color: rgba(230, 199, 124, 0.57);
    box-shadow: inset 0 0 0 1px rgba(230, 199, 124, 0.08);
    color: #fff1c6;
}

.baccarat-prediction.is-selected[data-prediction="banker"] {
    background: rgba(220, 119, 132, 0.1);
    border-color: rgba(235, 145, 155, 0.53);
    box-shadow: inset 0 0 0 1px rgba(235, 145, 155, 0.08);
    color: #ffe2e4;
}

.baccarat-prediction:disabled {
    cursor: not-allowed;
    opacity: 0.63;
}

.baccarat-prediction:focus-visible,
.baccarat-deal-button:focus-visible,
.baccarat-sound-toggle:focus-visible,
.baccarat-result-dialog button:focus-visible {
    outline: 3px solid #f1dfa9;
    outline-offset: 3px;
}

.baccarat-prediction-glyph {
    color: #79d8b7;
    font-size: 0.85rem;
}

.baccarat-prediction[data-prediction="tie"] .baccarat-prediction-glyph {
    color: #e3c77f;
}

.baccarat-prediction[data-prediction="banker"] .baccarat-prediction-glyph {
    color: #e6a0a6;
}

.baccarat-prediction-name {
    font-size: 0.7rem;
    font-weight: 800;
}

.baccarat-prediction-hint {
    color: #839288;
    font-size: 0.48rem;
}

.baccarat-action-row {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.baccarat-action-row p {
    color: #8fa196;
    font-size: 0.62rem;
    margin: 0;
}

.baccarat-action-row p strong {
    color: #dbe8d9;
    font-weight: 750;
}

.baccarat-deal-button {
    align-items: center;
    background: linear-gradient(110deg, #f1dfa9, #c9a961 55%, #f4e7bd);
    border: 1px solid rgba(255, 242, 202, 0.8);
    border-radius: 10px;
    box-shadow: 0 7px 19px rgba(209, 177, 100, 0.13), inset 0 1px rgba(255, 255, 255, 0.54);
    color: #2b2416;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 850;
    gap: 19px;
    justify-content: space-between;
    min-height: 43px;
    min-width: 153px;
    padding: 0 14px;
    transition: filter 150ms ease, transform 150ms ease;
}

.baccarat-deal-button:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.baccarat-deal-button:disabled {
    cursor: progress;
    opacity: 0.65;
}

.baccarat-table-footer {
    align-items: center;
    border-top: 1px solid rgba(206, 226, 201, 0.09);
    color: #b5a781;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.54rem;
    gap: 8px 15px;
    justify-content: space-between;
    padding: 12px 20px 14px;
}

.baccarat-table-footer p {
    margin: 0;
}

.baccarat-table-footer p span {
    color: #ddc88f;
    margin-right: 5px;
}

.baccarat-shoe-note {
    color: #84958a;
}

.baccarat-howto {
    align-items: start;
    background: rgba(17, 30, 23, 0.7);
    border: 1px solid rgba(192, 225, 200, 0.1);
    border-radius: 13px;
    display: grid;
    gap: 6px 13px;
    grid-template-columns: 25px minmax(0, 1fr);
    margin: 18px auto 0;
    padding: 17px 19px;
}

.baccarat-howto-mark {
    color: #e0c67f;
    font-size: 1rem;
    grid-row: 1 / 3;
}

.baccarat-howto h2 {
    color: #e4eee5;
    font-size: 0.83rem;
    margin: 0;
}

.baccarat-howto > div > p {
    color: #93a198;
    font-size: 0.66rem;
    line-height: 1.65;
    margin: 5px 0 0;
}

.baccarat-rules-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 2;
    margin-top: 5px;
}

.baccarat-rules-chips span {
    background: rgba(217, 190, 123, 0.055);
    border: 1px solid rgba(217, 190, 123, 0.12);
    border-radius: 999px;
    color: #c9b881;
    font-size: 0.5rem;
    padding: 4px 8px;
}

.baccarat-result-dialog {
    background: transparent;
    border: 0;
    color: #eff8f0;
    max-width: min(430px, calc(100vw - 30px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.baccarat-result-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(3, 8, 5, 0.79);
}

.baccarat-result-dialog[open] {
    animation: baccarat-dialog-enter 280ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.baccarat-result-card {
    background:
        radial-gradient(ellipse at 50% 0, rgba(205, 177, 105, 0.16), transparent 48%),
        linear-gradient(145deg, #19271d, #0d1711);
    border: 1px solid rgba(224, 199, 130, 0.26);
    border-radius: 20px;
    box-shadow: 0 25px 85px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.04);
    padding: 32px 27px 24px;
    position: relative;
    text-align: center;
}

.baccarat-result-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #c2d0c5;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1.35rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 13px;
    top: 13px;
    width: 34px;
}

.baccarat-result-emblem {
    align-items: center;
    background: rgba(217, 190, 123, 0.09);
    border: 1px solid rgba(217, 190, 123, 0.22);
    border-radius: 18px;
    box-shadow: 0 0 33px rgba(221, 190, 120, 0.09);
    color: #ead89f;
    display: inline-flex;
    font-size: 2.2rem;
    height: 74px;
    justify-content: center;
    width: 74px;
}

.baccarat-result-emblem[data-outcome="win"] {
    background: rgba(124, 245, 189, 0.09);
    border-color: rgba(124, 245, 189, 0.24);
    color: #b7f5c5;
}

.baccarat-result-emblem[data-outcome="loss"] {
    background: rgba(208, 134, 141, 0.08);
    border-color: rgba(208, 134, 141, 0.2);
    color: #e9a6ab;
}

.baccarat-result-kicker {
    color: #e4ce92;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    margin: 18px 0 8px;
}

.baccarat-result-emblem[data-outcome="win"] + .baccarat-result-kicker {
    color: #91e9ad;
}

.baccarat-result-emblem[data-outcome="loss"] + .baccarat-result-kicker {
    color: #e29fa6;
}

.baccarat-result-dialog h2 {
    color: #f2f7f0;
    font-size: 1.62rem;
    letter-spacing: -0.045em;
    margin: 0;
}

.baccarat-result-copy {
    color: #bfcec2;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 10px 0 0;
}

.baccarat-result-note {
    color: #b8a87f;
    font-size: 0.61rem;
    line-height: 1.5;
    margin: 13px 0 0;
}

.baccarat-result-actions {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.baccarat-result-actions button {
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 750;
    min-height: 42px;
    padding: 0 14px;
}

.baccarat-result-again {
    background: linear-gradient(110deg, #f1dfa9, #c9a961);
    border: 1px solid #efdaa0;
    color: #2b2416;
    flex: 1;
}

.baccarat-result-dismiss {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #c3d1c5;
}

@keyframes baccarat-live-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(141, 228, 169, 0.4); }
    50% { box-shadow: 0 0 14px rgba(141, 228, 169, 0.9); }
}

@keyframes baccarat-dialog-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
    .baccarat-felt {
        margin-left: 15px;
        margin-right: 15px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .baccarat-hand {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 520px) {
    .baccarat-page {
        padding-bottom: 48px;
    }

    .baccarat-back-link {
        margin: 17px 0 21px;
    }

    .baccarat-heading {
        margin-bottom: 21px;
    }

    .baccarat-heading > p:last-child {
        font-size: 0.75rem;
    }

    .baccarat-table {
        border-radius: 16px;
    }

    .baccarat-table-topbar {
        gap: 10px;
        padding: 12px;
    }

    .baccarat-round-tag {
        flex: 1 1 110px;
        order: 3;
    }

    .baccarat-sound-controls {
        margin-left: auto;
    }

    .baccarat-sound-note {
        display: none;
    }

    .baccarat-score-strip {
        padding: 11px 5px;
    }

    .baccarat-score-strip > div {
        align-items: center;
        flex-direction: column;
        gap: 4px;
        padding: 2px;
    }

    .baccarat-score-strip span {
        font-size: 0.36rem;
        letter-spacing: 0.06em;
        text-align: center;
    }

    .baccarat-score-strip strong {
        font-size: 0.89rem;
    }

    .baccarat-felt {
        border-radius: 12% / 5%;
        border-width: 5px;
        gap: 8px 6px;
        grid-template-columns: minmax(0, 1fr) 27px minmax(0, 1fr);
        margin: 12px 7px 0;
        min-height: 0;
        padding: 17px 8px 13px;
    }

    .baccarat-felt::before {
        inset: 12px 11px;
    }

    .baccarat-felt::after {
        inset: 18px 17px;
    }

    .baccarat-hand {
        min-height: 164px;
        padding: 10px 6px 8px;
    }

    .baccarat-hand-kicker {
        font-size: 0.35rem;
        letter-spacing: 0.1em;
    }

    .baccarat-hand-heading h3 {
        font-size: 0.67rem;
    }

    .baccarat-total {
        border-radius: 8px;
        font-size: 1rem;
        height: 31px;
        width: 31px;
    }

    .baccarat-cards {
        gap: 4px;
        min-height: 95px;
    }

    .baccarat-card {
        border-radius: 6px;
        height: 72px;
        width: clamp(36px, 11vw, 47px);
    }

    .baccarat-card-corner {
        font-size: 1rem;
    }

    .baccarat-card-suit {
        font-size: 0.97rem;
    }

    .baccarat-hand-caption {
        font-size: 0.43rem;
    }

    .baccarat-versus {
        font-size: 0.4rem;
        height: 27px;
        width: 27px;
    }

    .baccarat-deal-status {
        font-size: 0.56rem;
    }

    .baccarat-controls {
        gap: 11px;
        padding: 15px 10px 13px;
    }

    .baccarat-predictions {
        gap: 6px;
    }

    .baccarat-prediction {
        gap: 3px;
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 66px;
        padding: 7px 4px;
        text-align: center;
    }

    .baccarat-prediction-glyph {
        font-size: 0.78rem;
        line-height: 1;
    }

    .baccarat-prediction-name {
        font-size: 0.62rem;
    }

    .baccarat-prediction-hint {
        font-size: 0.42rem;
    }

    .baccarat-action-row {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .baccarat-action-row p {
        text-align: center;
    }

    .baccarat-deal-button {
        justify-content: center;
        width: 100%;
    }

    .baccarat-table-footer {
        padding: 11px 12px 13px;
    }

    .baccarat-howto {
        padding: 15px 13px;
    }

    .baccarat-result-card {
        padding: 30px 19px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .baccarat-table.is-dealing .baccarat-live-dot,
    .baccarat-result-dialog[open] {
        animation: none;
    }

    .baccarat-card,
    .baccarat-hand,
    .baccarat-prediction,
    .baccarat-deal-button {
        transition: none;
    }
}

.blackjack-page {
    color: #eff7f0;
    margin: 0 auto;
    max-width: 1110px;
    padding-bottom: 68px;
}

.blackjack-back-link {
    align-items: center;
    color: #9eada4;
    display: inline-flex;
    font-size: 0.76rem;
    gap: 8px;
    margin: 23px 0 27px;
    text-decoration: none;
}

.blackjack-back-link:hover,
.blackjack-back-link:focus-visible {
    color: var(--mint);
}

.blackjack-heading {
    margin: 0 auto 27px;
    text-align: center;
}

.blackjack-eyebrow,
.blackjack-table-kicker,
.blackjack-hand-kicker {
    color: #90e4ae;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    margin: 0 0 9px;
}

.blackjack-heading h1 {
    color: #f0f7f0;
    font-size: clamp(2.7rem, 7vw, 4.4rem);
    font-weight: 850;
    letter-spacing: -0.07em;
    line-height: 0.96;
    margin: 0;
}

.blackjack-heading h1 span {
    background: linear-gradient(110deg, #eddba9, #bd9858 56%, #fff0c4);
    background-clip: text;
    color: transparent;
}

.blackjack-heading > p:last-child {
    color: #9eafa3;
    font-size: 0.85rem;
    margin: 12px 0 0;
}

.blackjack-table {
    background:
        radial-gradient(ellipse at 50% 0, rgba(72, 160, 112, 0.15), transparent 55%),
        linear-gradient(145deg, #14231a, #0b1510 75%);
    border: 1px solid rgba(216, 191, 125, 0.2);
    border-radius: 21px;
    box-shadow: 0 25px 68px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.blackjack-table-topbar {
    align-items: center;
    border-bottom: 1px solid rgba(206, 226, 201, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 13px 20px;
    justify-content: space-between;
    padding: 15px 20px;
}

.blackjack-table-title {
    align-items: center;
    display: flex;
    gap: 12px;
}

.blackjack-table-mark {
    align-items: center;
    background: linear-gradient(145deg, rgba(217, 190, 123, 0.18), rgba(217, 190, 123, 0.05));
    border: 1px solid rgba(217, 190, 123, 0.24);
    border-radius: 12px;
    color: #e6ce94;
    display: inline-flex;
    flex: 0 0 43px;
    font-size: 1.2rem;
    height: 43px;
    justify-content: center;
}

.blackjack-table-kicker {
    color: #bea76e;
    display: block;
    font-size: 0.48rem;
    margin-bottom: 4px;
}

.blackjack-table-title h2 {
    color: #edf5ed;
    font-size: 0.98rem;
    letter-spacing: -0.025em;
    margin: 0;
}

.blackjack-round-tag {
    align-items: center;
    color: #c3d1c4;
    display: inline-flex;
    font-size: 0.51rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.11em;
}

.blackjack-live-dot {
    background: #8de4a9;
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(141, 228, 169, 0.62);
    height: 7px;
    width: 7px;
}

.blackjack-table.is-dealing .blackjack-live-dot {
    animation: blackjack-live-pulse 0.8s ease-in-out infinite;
}

.blackjack-sound-controls {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
}

.blackjack-sound-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 999px;
    color: #c5d6c9;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.58rem;
    font-weight: 750;
    gap: 6px;
    min-height: 31px;
    padding: 0 10px;
}

.blackjack-sound-toggle:hover {
    background: rgba(217, 190, 123, 0.08);
    border-color: rgba(217, 190, 123, 0.36);
    color: #fff0c4;
}

.blackjack-sound-toggle > span:first-child {
    color: #e6ce94;
    font-size: 0.82rem;
}

.blackjack-sound-toggle.is-muted {
    color: #8d9a90;
}

.blackjack-sound-note {
    color: #829187;
    font-size: 0.51rem;
}

.blackjack-score-strip {
    background: linear-gradient(90deg, rgba(7, 16, 11, 0.55), rgba(24, 40, 29, 0.33), rgba(7, 16, 11, 0.55));
    border-bottom: 1px solid rgba(206, 226, 201, 0.08);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 12px 24px;
}

.blackjack-score-strip > div {
    align-items: baseline;
    border-right: 1px solid rgba(206, 226, 201, 0.1);
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 2px 8px;
}

.blackjack-score-strip > div:last-child {
    border: 0;
}

.blackjack-score-strip span {
    color: #84958a;
    font-size: 0.44rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.blackjack-score-strip strong {
    color: #eff5df;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.blackjack-score-strip .blackjack-streak strong {
    color: #eddba9;
}

.blackjack-felt {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(99, 175, 121, 0.17), transparent 58%),
        repeating-linear-gradient(135deg, rgba(225, 255, 231, 0.013) 0 1px, transparent 1px 7px),
        linear-gradient(145deg, #164630, #103824 55%, #0d2d1f);
    border: 9px solid #35281d;
    border-radius: 50% / 17%;
    box-shadow: inset 0 0 0 2px rgba(232, 192, 119, 0.52), inset 0 0 0 10px rgba(35, 26, 17, 0.43), inset 0 0 60px rgba(0, 0, 0, 0.26), 0 18px 34px rgba(0, 0, 0, 0.3);
    display: grid;
    gap: 14px 26px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin: 25px 30px 0;
    min-height: 360px;
    overflow: hidden;
    padding: 27px clamp(16px, 4vw, 42px) 19px;
    position: relative;
}

.blackjack-felt::before,
.blackjack-felt::after {
    border: 1px solid rgba(205, 242, 209, 0.11);
    border-radius: 50%;
    content: '';
    inset: 17px 23px;
    pointer-events: none;
    position: absolute;
}

.blackjack-felt::after {
    border-color: rgba(205, 242, 209, 0.055);
    inset: 25px 31px;
}

.blackjack-felt-seal {
    align-items: center;
    border: 1px solid rgba(220, 199, 139, 0.12);
    border-radius: 50%;
    color: rgba(234, 218, 162, 0.12);
    display: flex;
    flex-direction: column;
    height: 96px;
    justify-content: center;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 47%;
    transform: translate(-50%, -50%);
    width: 96px;
}

.blackjack-felt-seal span {
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.blackjack-felt-seal small {
    font-size: 0.34rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.blackjack-hand {
    align-self: center;
    background: linear-gradient(145deg, rgba(7, 22, 14, 0.82), rgba(6, 17, 11, 0.9));
    border: 1px solid rgba(212, 236, 203, 0.17);
    border-radius: 15px;
    box-shadow: 0 12px 27px rgba(0, 0, 0, 0.24);
    min-height: 213px;
    padding: 15px clamp(10px, 2vw, 21px) 12px;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    z-index: 1;
}

.blackjack-dealer-hand {
    grid-column: 1;
}

.blackjack-player-hand {
    grid-column: 3;
}

.blackjack-hand-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.blackjack-hand-kicker {
    color: #dbbd7f;
    display: block;
    font-size: 0.42rem;
    margin-bottom: 5px;
}

.blackjack-player-hand .blackjack-hand-kicker {
    color: #7dcab0;
}

.blackjack-hand-heading h3 {
    color: #e9f5ed;
    font-size: 0.78rem;
    letter-spacing: 0.13em;
    margin: 0;
}

.blackjack-total {
    align-items: center;
    background: rgba(204, 241, 221, 0.08);
    border: 1px solid rgba(204, 241, 221, 0.17);
    border-radius: 10px;
    color: #d8f6e3;
    display: inline-flex;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 650;
    height: 39px;
    justify-content: center;
    width: 39px;
}

.blackjack-cards {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 124px;
    padding: 8px 0;
}

.blackjack-card {
    align-items: center;
    background: linear-gradient(150deg, #fffef7, #e9ebdf);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 9px 17px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(39, 65, 43, 0.04);
    color: #263b30;
    display: flex;
    flex: 0 0 58px;
    flex-direction: column;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 800;
    height: 87px;
    justify-content: center;
    opacity: 0;
    position: relative;
    transform: translateY(-14px) rotate(-3deg) scale(0.88);
    transition: opacity 240ms ease, transform 340ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.blackjack-card.is-dealt {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

.blackjack-card.is-red {
    color: #b3444b;
}

.blackjack-card.is-hidden {
    background:
        repeating-linear-gradient(45deg, transparent 0 5px, rgba(124, 245, 189, 0.12) 5px 7px),
        linear-gradient(145deg, #24543c, #11291d);
    border: 1px solid rgba(160, 225, 184, 0.68);
    color: #b8ffda;
    opacity: 1;
    transform: none;
}

.blackjack-card-back-mark {
    align-items: center;
    border: 1px solid rgba(184, 255, 218, 0.5);
    border-radius: 50%;
    display: flex;
    font-size: 0.85rem;
    height: 27px;
    justify-content: center;
    width: 27px;
}

.blackjack-card-rank {
    font-size: 1.23rem;
}

.blackjack-card-suit {
    font-family: 'Segoe UI Symbol', serif;
    font-size: 1.15rem;
    margin-top: 1px;
}

.blackjack-hand-caption {
    color: #8ea497;
    display: block;
    font-size: 0.5rem;
    min-height: 1em;
    text-align: center;
}

.blackjack-versus {
    align-items: center;
    align-self: center;
    background: rgba(9, 28, 18, 0.65);
    border: 1px solid rgba(221, 201, 141, 0.29);
    border-radius: 50%;
    color: #e5d29d;
    display: flex;
    font-size: 0.49rem;
    font-weight: 850;
    grid-column: 2;
    grid-row: 1;
    height: 35px;
    justify-content: center;
    letter-spacing: 0.08em;
    position: relative;
    width: 35px;
    z-index: 1;
}

.blackjack-status {
    color: #c2d3c4;
    font-size: 0.64rem;
    grid-column: 1 / 4;
    grid-row: 2;
    line-height: 1.5;
    min-height: 1.5em;
    position: relative;
    text-align: center;
    z-index: 1;
}

.blackjack-felt.is-player-winner .blackjack-player-hand {
    border-color: rgba(133, 224, 192, 0.74);
    box-shadow: 0 0 25px rgba(91, 224, 174, 0.17), 0 12px 27px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.blackjack-felt.is-dealer-winner .blackjack-dealer-hand {
    border-color: rgba(239, 203, 139, 0.73);
    box-shadow: 0 0 25px rgba(233, 193, 128, 0.15), 0 12px 27px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.blackjack-felt.is-push .blackjack-player-hand,
.blackjack-felt.is-push .blackjack-dealer-hand {
    border-color: rgba(238, 213, 146, 0.54);
    box-shadow: 0 0 21px rgba(238, 213, 146, 0.11), 0 12px 27px rgba(0, 0, 0, 0.24);
}

.blackjack-controls {
    margin: 0 auto;
    max-width: 790px;
    padding: 18px 20px 16px;
}

.blackjack-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
}

.blackjack-turn-hint {
    color: #8fa196;
    flex: 1 1 220px;
    font-size: 0.62rem;
    margin: 0;
}

.blackjack-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.blackjack-action {
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 18px;
    justify-content: space-between;
    min-height: 43px;
    min-width: 103px;
    padding: 0 13px;
    transition: filter 150ms ease, transform 150ms ease;
}

.blackjack-action:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.blackjack-action:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.blackjack-hit {
    background: rgba(124, 245, 189, 0.08);
    border: 1px solid rgba(124, 245, 189, 0.29);
    color: #bdf5d0;
}

.blackjack-stand {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(226, 213, 177, 0.24);
    color: #e6d5a6;
}

.blackjack-deal {
    background: linear-gradient(110deg, #f1dfa9, #c9a961 55%, #f4e7bd);
    border: 1px solid rgba(255, 242, 202, 0.8);
    box-shadow: 0 7px 19px rgba(209, 177, 100, 0.13), inset 0 1px rgba(255, 255, 255, 0.54);
    color: #2b2416;
    min-width: 150px;
}

.blackjack-action:focus-visible,
.blackjack-sound-toggle:focus-visible,
.blackjack-result-dialog button:focus-visible {
    outline: 3px solid #f1dfa9;
    outline-offset: 3px;
}

.blackjack-table-footer {
    align-items: center;
    border-top: 1px solid rgba(206, 226, 201, 0.09);
    color: #b5a781;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.54rem;
    gap: 8px 15px;
    justify-content: space-between;
    padding: 12px 20px 14px;
}

.blackjack-table-footer p {
    margin: 0;
}

.blackjack-table-footer p span {
    color: #ddc88f;
    margin-right: 5px;
}

.blackjack-shoe-note {
    color: #84958a;
}

.blackjack-howto {
    align-items: start;
    background: rgba(17, 30, 23, 0.7);
    border: 1px solid rgba(192, 225, 200, 0.1);
    border-radius: 13px;
    display: grid;
    gap: 6px 13px;
    grid-template-columns: 25px minmax(0, 1fr);
    margin: 18px auto 0;
    padding: 17px 19px;
}

.blackjack-howto-mark {
    color: #e0c67f;
    font-size: 1rem;
    grid-row: 1 / 3;
}

.blackjack-howto h2 {
    color: #e4eee5;
    font-size: 0.83rem;
    margin: 0;
}

.blackjack-howto > div > p {
    color: #93a198;
    font-size: 0.66rem;
    line-height: 1.65;
    margin: 5px 0 0;
}

.blackjack-rules-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 2;
    margin-top: 5px;
}

.blackjack-rules-chips span {
    background: rgba(217, 190, 123, 0.055);
    border: 1px solid rgba(217, 190, 123, 0.12);
    border-radius: 999px;
    color: #c9b881;
    font-size: 0.5rem;
    padding: 4px 8px;
}

.blackjack-result-dialog {
    background: transparent;
    border: 0;
    color: #eff8f0;
    max-width: min(430px, calc(100vw - 30px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.blackjack-result-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(3, 8, 5, 0.79);
}

.blackjack-result-dialog[open] {
    animation: blackjack-dialog-enter 280ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.blackjack-result-card {
    background:
        radial-gradient(ellipse at 50% 0, rgba(205, 177, 105, 0.16), transparent 48%),
        linear-gradient(145deg, #19271d, #0d1711);
    border: 1px solid rgba(224, 199, 130, 0.26);
    border-radius: 20px;
    box-shadow: 0 25px 85px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.04);
    padding: 32px 27px 24px;
    position: relative;
    text-align: center;
}

.blackjack-result-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #c2d0c5;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1.35rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 13px;
    top: 13px;
    width: 34px;
}

.blackjack-result-emblem {
    align-items: center;
    background: rgba(217, 190, 123, 0.09);
    border: 1px solid rgba(217, 190, 123, 0.22);
    border-radius: 18px;
    color: #ead89f;
    display: inline-flex;
    font-size: 2.2rem;
    height: 74px;
    justify-content: center;
    width: 74px;
}

.blackjack-result-emblem[data-outcome="win"] {
    background: rgba(124, 245, 189, 0.09);
    border-color: rgba(124, 245, 189, 0.24);
    color: #b7f5c5;
}

.blackjack-result-emblem[data-outcome="loss"] {
    background: rgba(208, 134, 141, 0.08);
    border-color: rgba(208, 134, 141, 0.2);
    color: #e9a6ab;
}

.blackjack-result-kicker {
    color: #e4ce92;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    margin: 18px 0 8px;
}

.blackjack-result-emblem[data-outcome="win"] + .blackjack-result-kicker {
    color: #91e9ad;
}

.blackjack-result-emblem[data-outcome="loss"] + .blackjack-result-kicker {
    color: #e29fa6;
}

.blackjack-result-dialog h2 {
    color: #f2f7f0;
    font-size: 1.62rem;
    letter-spacing: -0.045em;
    margin: 0;
}

.blackjack-result-copy {
    color: #bfcec2;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 10px 0 0;
}

.blackjack-result-note {
    color: #b8a87f;
    font-size: 0.61rem;
    line-height: 1.5;
    margin: 13px 0 0;
}

.blackjack-result-actions {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.blackjack-result-actions button {
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 750;
    min-height: 42px;
    padding: 0 14px;
}

.blackjack-result-again {
    background: linear-gradient(110deg, #f1dfa9, #c9a961);
    border: 1px solid #efdaa0;
    color: #2b2416;
    flex: 1;
}

.blackjack-result-dismiss {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #c3d1c5;
}

@keyframes blackjack-live-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(141, 228, 169, 0.4); }
    50% { box-shadow: 0 0 14px rgba(141, 228, 169, 0.9); }
}

@keyframes blackjack-dialog-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
    .blackjack-felt {
        margin-left: 15px;
        margin-right: 15px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .blackjack-hand {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 520px) {
    .blackjack-page {
        padding-bottom: 48px;
    }

    .blackjack-back-link {
        margin: 17px 0 21px;
    }

    .blackjack-heading {
        margin-bottom: 21px;
    }

    .blackjack-heading > p:last-child {
        font-size: 0.75rem;
    }

    .blackjack-table {
        border-radius: 16px;
    }

    .blackjack-table-topbar {
        gap: 10px;
        padding: 12px;
    }

    .blackjack-round-tag {
        flex: 1 1 110px;
        order: 3;
    }

    .blackjack-sound-controls {
        margin-left: auto;
    }

    .blackjack-sound-note {
        display: none;
    }

    .blackjack-score-strip {
        padding: 11px 3px;
    }

    .blackjack-score-strip > div {
        align-items: center;
        flex-direction: column;
        gap: 4px;
        padding: 2px;
    }

    .blackjack-score-strip span {
        font-size: 0.34rem;
        letter-spacing: 0.03em;
        text-align: center;
    }

    .blackjack-score-strip strong {
        font-size: 0.87rem;
    }

    .blackjack-felt {
        border-radius: 12% / 5%;
        border-width: 5px;
        gap: 8px 6px;
        grid-template-columns: minmax(0, 1fr) 27px minmax(0, 1fr);
        margin: 12px 7px 0;
        min-height: 0;
        padding: 17px 8px 13px;
    }

    .blackjack-felt::before {
        inset: 12px 11px;
    }

    .blackjack-felt::after {
        inset: 18px 17px;
    }

    .blackjack-hand {
        min-height: 185px;
        padding: 10px 6px 8px;
    }

    .blackjack-hand-kicker {
        font-size: 0.35rem;
        letter-spacing: 0.1em;
    }

    .blackjack-hand-heading h3 {
        font-size: 0.67rem;
    }

    .blackjack-total {
        border-radius: 8px;
        font-size: 1rem;
        height: 31px;
        width: 31px;
    }

    .blackjack-cards {
        gap: 4px;
        min-height: 121px;
        padding: 6px 0;
    }

    .blackjack-card {
        border-radius: 6px;
        flex-basis: clamp(31px, 9vw, 40px);
        height: 69px;
    }

    .blackjack-card-rank {
        font-size: 0.96rem;
    }

    .blackjack-card-suit {
        font-size: 0.88rem;
    }

    .blackjack-hand-caption {
        font-size: 0.41rem;
    }

    .blackjack-versus {
        font-size: 0.4rem;
        height: 27px;
        width: 27px;
    }

    .blackjack-status {
        font-size: 0.55rem;
    }

    .blackjack-controls {
        padding: 14px 10px 13px;
    }

    .blackjack-action-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .blackjack-turn-hint {
        text-align: center;
    }

    .blackjack-action-buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .blackjack-action {
        gap: 6px;
        justify-content: center;
        min-width: 0;
        padding: 0 7px;
    }

    .blackjack-deal {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .blackjack-hit,
    .blackjack-stand {
        grid-row: 2;
    }

    .blackjack-table-footer {
        padding: 11px 12px 13px;
    }

    .blackjack-howto {
        padding: 15px 13px;
    }

    .blackjack-result-card {
        padding: 30px 19px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blackjack-table.is-dealing .blackjack-live-dot,
    .blackjack-result-dialog[open] {
        animation: none;
    }

    .blackjack-card,
    .blackjack-hand,
    .blackjack-action {
        transition: none;
    }
}

.poker-page {
    color: #eff7f0;
    margin: 0 auto;
    max-width: 1110px;
    padding-bottom: 68px;
}

.poker-back-link {
    align-items: center;
    color: #9eada4;
    display: inline-flex;
    font-size: 0.76rem;
    gap: 8px;
    margin: 23px 0 27px;
    text-decoration: none;
}

.poker-back-link:hover,
.poker-back-link:focus-visible {
    color: var(--mint);
}

.poker-heading {
    margin: 0 auto 27px;
    text-align: center;
}

.poker-heading > p:first-child {
    color: #90e4ae;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    margin: 0 0 9px;
}

.poker-heading h1 {
    background: linear-gradient(110deg, #f0f7f0, #eddba9 54%, #bde8cb);
    background-clip: text;
    color: transparent;
    font-size: clamp(2.7rem, 7vw, 4.4rem);
    font-weight: 850;
    letter-spacing: -0.07em;
    line-height: 0.96;
    margin: 0;
}

.poker-heading > p:last-child {
    color: #9eafa3;
    font-size: 0.85rem;
    margin: 12px 0 0;
}

.poker-table {
    background: radial-gradient(ellipse at 50% 0, rgba(72, 160, 112, 0.15), transparent 55%), linear-gradient(145deg, #14231a, #0b1510 75%);
    border: 1px solid rgba(216, 191, 125, 0.2);
    border-radius: 21px;
    box-shadow: 0 25px 68px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.poker-table-topbar {
    align-items: center;
    border-bottom: 1px solid rgba(206, 226, 201, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 13px 20px;
    justify-content: space-between;
    padding: 15px 20px;
}

.poker-table-title {
    align-items: center;
    display: flex;
    gap: 12px;
}

.poker-table-mark {
    align-items: center;
    background: linear-gradient(145deg, rgba(217, 190, 123, 0.18), rgba(217, 190, 123, 0.05));
    border: 1px solid rgba(217, 190, 123, 0.24);
    border-radius: 12px;
    color: #e6ce94;
    display: inline-flex;
    flex: 0 0 43px;
    font-size: 1.2rem;
    height: 43px;
    justify-content: center;
}

.poker-table-kicker,
.poker-seat-kicker {
    color: #bea76e;
    display: block;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.poker-table-title h2 {
    color: #edf5ed;
    font-size: 0.98rem;
    letter-spacing: -0.025em;
    margin: 0;
}

.poker-round-tag {
    align-items: center;
    color: #c3d1c4;
    display: inline-flex;
    font-size: 0.51rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.11em;
}

.poker-live-dot {
    background: #8de4a9;
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(141, 228, 169, 0.62);
    height: 7px;
    width: 7px;
}

.poker-table.is-dealing .poker-live-dot {
    animation: blackjack-live-pulse 0.8s ease-in-out infinite;
}

.poker-sound-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 999px;
    color: #c5d6c9;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.58rem;
    font-weight: 750;
    gap: 6px;
    min-height: 31px;
    padding: 0 10px;
}

.poker-sound-toggle > span:first-child {
    color: #e6ce94;
    font-size: 0.82rem;
}

.poker-sound-toggle.is-muted {
    color: #8d9a90;
}

.poker-score-strip {
    background: linear-gradient(90deg, rgba(7, 16, 11, 0.55), rgba(24, 40, 29, 0.33), rgba(7, 16, 11, 0.55));
    border-bottom: 1px solid rgba(206, 226, 201, 0.08);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 12px 24px;
}

.poker-score-strip > div {
    align-items: baseline;
    border-right: 1px solid rgba(206, 226, 201, 0.1);
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 2px 8px;
}

.poker-score-strip > div:last-child {
    border: 0;
}

.poker-score-strip span {
    color: #84958a;
    font-size: 0.44rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.poker-score-strip strong {
    color: #eff5df;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.poker-felt {
    background: radial-gradient(ellipse at 50% 50%, rgba(99, 175, 121, 0.17), transparent 58%), repeating-linear-gradient(135deg, rgba(225, 255, 231, 0.013) 0 1px, transparent 1px 7px), linear-gradient(145deg, #164630, #103824 55%, #0d2d1f);
    border: 9px solid #35281d;
    border-radius: 50% / 17%;
    box-shadow: inset 0 0 0 2px rgba(232, 192, 119, 0.52), inset 0 0 0 10px rgba(35, 26, 17, 0.43), inset 0 0 60px rgba(0, 0, 0, 0.26), 0 18px 34px rgba(0, 0, 0, 0.3);
    display: grid;
    gap: 15px;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 1.35fr) minmax(0, 1fr);
    margin: 25px 30px 0;
    min-height: 350px;
    overflow: hidden;
    padding: 25px clamp(15px, 3vw, 34px) 18px;
    position: relative;
}

.poker-felt::before,
.poker-felt::after {
    border: 1px solid rgba(205, 242, 209, 0.11);
    border-radius: 50%;
    content: '';
    inset: 17px 23px;
    pointer-events: none;
    position: absolute;
}

.poker-felt::after {
    border-color: rgba(205, 242, 209, 0.055);
    inset: 25px 31px;
}

.poker-felt-seal {
    align-items: center;
    border: 1px solid rgba(220, 199, 139, 0.12);
    border-radius: 50%;
    color: rgba(234, 218, 162, 0.1);
    display: flex;
    flex-direction: column;
    height: 120px;
    justify-content: center;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 43%;
    transform: translate(-50%, -50%);
    width: 120px;
}

.poker-felt-seal span {
    font-size: 3.5rem;
    line-height: 1;
}

.poker-felt-seal small {
    font-size: 0.34rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.poker-seat,
.poker-board-wrap {
    align-self: center;
    background: linear-gradient(145deg, rgba(7, 22, 14, 0.82), rgba(6, 17, 11, 0.9));
    border: 1px solid rgba(212, 236, 203, 0.17);
    border-radius: 15px;
    box-shadow: 0 12px 27px rgba(0, 0, 0, 0.24);
    min-width: 0;
    min-height: 189px;
    padding: 14px 11px 12px;
    position: relative;
    text-align: center;
    transition: border-color 180ms ease, box-shadow 180ms ease;
    z-index: 1;
}

.poker-seat-heading {
    min-height: 39px;
}

.poker-seat-kicker {
    color: #90e4ae;
    font-size: 0.4rem;
}

.poker-seat-heading h3 {
    color: #e9f5ed;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin: 0;
}

.poker-cards,
.poker-board {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    min-height: 100px;
    padding: 7px 0;
}

.poker-card {
    align-items: center;
    background: linear-gradient(150deg, #fffef7, #e9ebdf);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 7px;
    box-shadow: 0 9px 17px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(39, 65, 43, 0.04);
    color: #263b30;
    display: flex;
    flex: 0 0 46px;
    flex-direction: column;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 800;
    height: 69px;
    justify-content: center;
    opacity: 0;
    transform: translateY(-12px) rotate(-3deg) scale(0.88);
    transition: opacity 220ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.poker-card.is-dealt {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

.poker-card.is-red {
    color: #b3444b;
}

.poker-card.is-hidden {
    background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(124, 245, 189, 0.12) 5px 7px), linear-gradient(145deg, #24543c, #11291d);
    border: 1px solid rgba(160, 225, 184, 0.68);
    color: #b8ffda;
    opacity: 1;
    transform: none;
}

.poker-card-back-mark {
    align-items: center;
    border: 1px solid rgba(184, 255, 218, 0.5);
    border-radius: 50%;
    display: flex;
    font-size: 0.8rem;
    height: 25px;
    justify-content: center;
    width: 25px;
}

.poker-card-rank {
    font-size: 1.04rem;
}

.poker-card-suit {
    font-family: 'Segoe UI Symbol', serif;
    font-size: 0.95rem;
    margin-top: 1px;
}

.poker-seat-caption,
.poker-board-caption {
    color: #8ea497;
    display: block;
    font-size: 0.43rem;
    min-height: 1em;
}

.poker-board-wrap {
    align-self: center;
    background: rgba(8, 29, 18, 0.59);
    border-color: rgba(220, 199, 139, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 172px;
    padding: 13px 9px;
}

.poker-board-label {
    color: #e2cf99;
    font-size: 0.43rem;
    font-weight: 850;
    letter-spacing: 0.15em;
}

.poker-board {
    flex-wrap: nowrap;
    gap: 5px;
    min-height: 82px;
}

.poker-board .poker-card {
    flex-basis: clamp(34px, 4.2vw, 48px);
    height: 66px;
}

.poker-status {
    color: #c2d3c4;
    font-size: 0.63rem;
    grid-column: 1 / -1;
    line-height: 1.5;
    min-height: 1.5em;
    position: relative;
    text-align: center;
    z-index: 1;
}

.poker-felt.is-player-winner .poker-player-seat {
    border-color: rgba(133, 224, 192, 0.74);
    box-shadow: 0 0 25px rgba(91, 224, 174, 0.17), 0 12px 27px rgba(0, 0, 0, 0.24);
}

.poker-felt.is-dealer-winner .poker-dealer-seat {
    border-color: rgba(231, 150, 156, 0.68);
    box-shadow: 0 0 25px rgba(221, 115, 129, 0.14), 0 12px 27px rgba(0, 0, 0, 0.24);
}

.poker-felt.is-push .poker-board-wrap {
    border-color: rgba(231, 205, 141, 0.61);
}

.poker-controls {
    border-top: 1px solid rgba(206, 226, 201, 0.08);
    padding: 16px 24px;
}

.poker-turn-hint {
    color: #a9b9ad;
    font-size: 0.66rem;
    margin: 0 0 12px;
    text-align: center;
}

.poker-action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.poker-action-buttons button {
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 43px;
    min-width: 150px;
    padding: 0 17px;
    transition: transform 160ms ease, filter 160ms ease;
}

.poker-action-buttons button:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.poker-action-buttons button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.poker-continue {
    background: linear-gradient(110deg, #f1dfa9, #c9a961);
    border: 1px solid #efdaa0;
    color: #2b2416;
}

.poker-fold {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #c3d1c5;
}

.poker-table-footer {
    align-items: center;
    border-top: 1px solid rgba(206, 226, 201, 0.08);
    color: #9ba99e;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.55rem;
    gap: 8px 16px;
    justify-content: space-between;
    padding: 12px 20px 15px;
}

.poker-table-footer p {
    margin: 0;
}

.poker-table-footer p span {
    color: #d3c18d;
}

.poker-howto {
    align-items: flex-start;
    background: linear-gradient(145deg, rgba(22, 37, 28, 0.8), rgba(11, 21, 15, 0.86));
    border: 1px solid rgba(206, 226, 201, 0.1);
    border-radius: 15px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 18px;
    padding: 17px 19px;
}

.poker-howto-mark {
    color: #d8c58f;
    font-size: 1.05rem;
    padding-top: 1px;
}

.poker-howto h2 {
    color: #e8f1e9;
    font-size: 0.78rem;
    margin: 0 0 5px;
}

.poker-howto p {
    color: #9eafa3;
    font-size: 0.62rem;
    line-height: 1.65;
    margin: 0;
}

.poker-rules-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 2;
}

.poker-rules-chips span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(206, 226, 201, 0.1);
    border-radius: 999px;
    color: #b7c5b9;
    font-size: 0.48rem;
    padding: 5px 8px;
}

.poker-result-dialog {
    background: transparent;
    border: 0;
    color: #eff7f0;
    max-width: min(420px, calc(100vw - 28px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.poker-result-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(3, 8, 5, 0.78);
}

.poker-result-card {
    animation: blackjack-dialog-enter 250ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
    background: radial-gradient(ellipse at 50% 0, rgba(78, 144, 102, 0.14), transparent 50%), linear-gradient(145deg, #17251b, #0c1510 72%);
    border: 1px solid rgba(220, 199, 139, 0.27);
    border-radius: 19px;
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.56), inset 0 1px rgba(255, 255, 255, 0.05);
    padding: 30px 28px 24px;
    position: relative;
    text-align: center;
}

.poker-result-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #c4d0c6;
    cursor: pointer;
    font-size: 1.15rem;
    height: 31px;
    line-height: 1;
    position: absolute;
    right: 13px;
    top: 13px;
    width: 31px;
}

.poker-result-emblem {
    align-items: center;
    background: rgba(217, 190, 123, 0.08);
    border: 1px solid rgba(217, 190, 123, 0.22);
    border-radius: 18px;
    color: #ead89f;
    display: inline-flex;
    font-size: 2.2rem;
    height: 74px;
    justify-content: center;
    width: 74px;
}

.poker-result-emblem[data-outcome="win"] {
    color: #b7f5c5;
}

.poker-result-emblem[data-outcome="loss"] {
    color: #e9a6ab;
}

.poker-result-kicker {
    color: #e4ce92;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    margin: 18px 0 8px;
}

.poker-result-dialog h2 {
    color: #f2f7f0;
    font-size: 1.62rem;
    letter-spacing: -0.045em;
    margin: 0;
}

.poker-result-copy {
    color: #bfcec2;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 10px 0 0;
}

.poker-result-note {
    color: #b8a87f;
    font-size: 0.61rem;
    line-height: 1.5;
    margin: 13px 0 0;
}

.poker-result-actions {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.poker-result-actions button {
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 750;
    min-height: 42px;
    padding: 0 14px;
}

.poker-result-again {
    background: linear-gradient(110deg, #f1dfa9, #c9a961);
    border: 1px solid #efdaa0;
    color: #2b2416;
    flex: 1;
}

.poker-result-dismiss {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #c3d1c5;
}

@media (max-width: 900px) {
    .poker-felt {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 1.15fr) minmax(0, 1fr);
        margin-left: 15px;
        margin-right: 15px;
        padding-left: 13px;
        padding-right: 13px;
    }

    .poker-seat {
        padding-left: 7px;
        padding-right: 7px;
    }
}

@media (max-width: 680px) {
    .poker-page {
        padding-bottom: 48px;
    }

    .poker-back-link {
        margin: 17px 0 21px;
    }

    .poker-heading {
        margin-bottom: 21px;
    }

    .poker-table {
        border-radius: 16px;
    }

    .poker-table-topbar {
        gap: 10px;
        padding: 12px;
    }

    .poker-round-tag {
        flex: 1 1 100px;
        order: 3;
    }

    .poker-score-strip {
        padding: 11px 3px;
    }

    .poker-score-strip > div {
        align-items: center;
        flex-direction: column;
        gap: 4px;
        padding: 2px;
    }

    .poker-score-strip span {
        font-size: 0.34rem;
        letter-spacing: 0.03em;
        text-align: center;
    }

    .poker-felt {
        border-radius: 12% / 5%;
        border-width: 5px;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        margin: 12px 7px 0;
        min-height: 0;
        padding: 14px 8px 12px;
    }

    .poker-felt::before {
        inset: 12px 11px;
    }

    .poker-felt::after {
        inset: 18px 17px;
    }

    .poker-seat {
        min-height: 156px;
        padding: 9px 4px 7px;
    }

    .poker-seat-heading {
        min-height: 35px;
    }

    .poker-seat-kicker {
        font-size: 0.33rem;
    }

    .poker-seat-heading h3 {
        font-size: 0.6rem;
    }

    .poker-cards {
        gap: 4px;
        min-height: 87px;
        padding: 5px 0;
    }

    .poker-card {
        border-radius: 6px;
        flex-basis: clamp(34px, 10vw, 43px);
        height: 65px;
    }

    .poker-board-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 115px;
        padding: 8px 5px;
    }

    .poker-board {
        min-height: 70px;
    }

    .poker-board .poker-card {
        flex-basis: clamp(39px, 12vw, 48px);
        height: 64px;
    }

    .poker-player-seat {
        grid-column: 2;
        grid-row: 1;
    }

    .poker-dealer-seat {
        grid-column: 1;
        grid-row: 1;
    }

    .poker-seat-caption,
    .poker-board-caption {
        font-size: 0.38rem;
    }

    .poker-status {
        grid-column: 1 / -1;
        grid-row: 3;
        font-size: 0.53rem;
    }

    .poker-controls {
        padding: 13px 10px;
    }

    .poker-action-buttons {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
    }

    .poker-action-buttons button {
        min-width: 0;
        padding: 0 10px;
    }

    .poker-table-footer {
        padding: 11px 12px 13px;
    }

    .poker-howto {
        padding: 15px 13px;
    }

    .poker-result-card {
        padding: 30px 19px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .poker-table.is-dealing .poker-live-dot,
    .poker-result-dialog[open] {
        animation: none;
    }

    .poker-card,
    .poker-action-buttons button {
        transition: none;
    }
}

.ludo-page {
    color: #eff7f0;
    margin: 0 auto;
    max-width: 1180px;
    padding-bottom: 68px;
}

.ludo-back-link {
    align-items: center;
    color: #9eada4;
    display: inline-flex;
    font-size: 0.76rem;
    gap: 8px;
    margin: 23px 0 27px;
    text-decoration: none;
}

.ludo-back-link:hover,
.ludo-back-link:focus-visible {
    color: var(--mint);
}

.ludo-heading {
    margin: 0 auto 27px;
    text-align: center;
}

.ludo-heading > p:first-child {
    color: #90e4ae;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    margin: 0 0 9px;
}

.ludo-heading h1 {
    background: linear-gradient(110deg, #f0f7f0, #eddba9 54%, #bde8cb);
    background-clip: text;
    color: transparent;
    font-size: clamp(2.7rem, 7vw, 4.4rem);
    font-weight: 850;
    letter-spacing: -0.07em;
    line-height: 0.96;
    margin: 0;
}

.ludo-heading > p:last-child {
    color: #9eafa3;
    font-size: 0.85rem;
    margin: 12px 0 0;
}

.ludo-lobby {
    background: radial-gradient(ellipse at 0 0, rgba(105, 204, 158, 0.1), transparent 48%), linear-gradient(145deg, #15251b, #0c1510 75%);
    border: 1px solid rgba(216, 191, 125, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 68px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-width: 760px;
    padding: clamp(19px, 4vw, 31px);
}

.ludo-lobby-intro {
    align-items: center;
    display: flex;
    gap: 15px;
    margin-bottom: 23px;
}

.ludo-lobby-mark {
    align-items: center;
    background: linear-gradient(145deg, rgba(217, 190, 123, 0.18), rgba(217, 190, 123, 0.05));
    border: 1px solid rgba(217, 190, 123, 0.24);
    border-radius: 15px;
    color: #e6ce94;
    display: inline-flex;
    flex: 0 0 54px;
    font-size: 1.5rem;
    height: 54px;
    justify-content: center;
}

.ludo-lobby-intro p {
    color: #bea76e;
    font-size: 0.49rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    margin: 0 0 5px;
}

.ludo-lobby-intro h2 {
    color: #eff7f0;
    font-size: 1.23rem;
    letter-spacing: -0.035em;
    margin: 0;
}

.ludo-lobby-intro div > span {
    color: #9eafa3;
    display: block;
    font-size: 0.69rem;
    margin-top: 5px;
}

.ludo-lobby-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1.3fr) minmax(110px, 0.65fr) auto;
}

.ludo-field {
    color: #bdcbbf;
    display: grid;
    font-size: 0.63rem;
    font-weight: 750;
    gap: 7px;
}

.ludo-field input,
.ludo-field select,
.ludo-join-row input {
    background: rgba(4, 13, 8, 0.55);
    border: 1px solid rgba(206, 226, 201, 0.16);
    border-radius: 9px;
    color: #edf5ed;
    font: inherit;
    font-size: 0.71rem;
    min-height: 43px;
    outline: none;
    padding: 0 12px;
    width: 100%;
}

.ludo-field select option {
    background: #14231a;
}

.ludo-field input:focus,
.ludo-field select:focus,
.ludo-join-row input:focus {
    border-color: rgba(139, 228, 174, 0.63);
    box-shadow: 0 0 0 3px rgba(139, 228, 174, 0.09);
}

.ludo-button {
    align-items: center;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.67rem;
    font-weight: 800;
    gap: 11px;
    justify-content: center;
    min-height: 43px;
    padding: 0 15px;
    transition: filter 160ms ease, transform 160ms ease;
}

.ludo-button:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ludo-button:disabled {
    cursor: not-allowed;
    opacity: 0.43;
}

.ludo-create,
.ludo-start,
.ludo-rematch,
.ludo-roll {
    background: linear-gradient(110deg, #f1dfa9, #c9a961);
    border: 1px solid #efdaa0;
    color: #2b2416;
}

.ludo-lobby-divider {
    align-items: center;
    color: #708076;
    display: flex;
    font-size: 0.48rem;
    font-weight: 800;
    gap: 13px;
    letter-spacing: 0.15em;
    margin: 23px 0 13px;
}

.ludo-lobby-divider::before,
.ludo-lobby-divider::after {
    background: rgba(206, 226, 201, 0.1);
    content: '';
    flex: 1;
    height: 1px;
}

.ludo-join-row {
    display: flex;
    gap: 9px;
}

.ludo-join-row input {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.ludo-join-row input::placeholder {
    color: #69796e;
}

.ludo-join {
    background: rgba(141, 228, 174, 0.1);
    border: 1px solid rgba(141, 228, 174, 0.29);
    color: #b6f0cb;
    min-width: 125px;
}

.ludo-feedback {
    color: #f1a6a7;
    font-size: 0.64rem;
    min-height: 1em;
    margin: 11px 0 0;
}

.ludo-lobby-note {
    color: #829187;
    font-size: 0.55rem;
    margin: 12px 0 0;
    text-align: center;
}

.ludo-room {
    background: radial-gradient(ellipse at 50% 0, rgba(72, 160, 112, 0.12), transparent 55%), linear-gradient(145deg, #14231a, #0b1510 75%);
    border: 1px solid rgba(216, 191, 125, 0.2);
    border-radius: 21px;
    box-shadow: 0 25px 68px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.ludo-room-topbar {
    align-items: center;
    border-bottom: 1px solid rgba(206, 226, 201, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: space-between;
    padding: 14px 18px;
}

.ludo-room-code-wrap {
    display: grid;
    gap: 3px;
}

.ludo-room-code-wrap > span {
    color: #92a396;
    font-size: 0.4rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.ludo-room-code-wrap button {
    background: transparent;
    border: 0;
    color: #e9d69d;
    cursor: pointer;
    font: inherit;
    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    padding: 0;
}

.ludo-room-status {
    align-items: center;
    color: #c3d1c4;
    display: inline-flex;
    font-size: 0.49rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.11em;
}

.ludo-live-dot {
    background: #8de4a9;
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(141, 228, 169, 0.62);
    height: 7px;
    width: 7px;
}

.ludo-room-tools {
    align-items: center;
    display: flex;
    gap: 9px;
}

.ludo-room-tools button {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(198, 230, 213, 0.14);
    border-radius: 999px;
    color: #c5d6c9;
    cursor: pointer;
    font: inherit;
    font-size: 0.55rem;
    font-weight: 750;
    min-height: 31px;
    padding: 0 10px;
}

.ludo-room-tools button[aria-pressed="true"] span:first-child {
    color: #e6ce94;
    margin-right: 5px;
}

.ludo-room-tools button.is-muted {
    color: #849187;
}

.ludo-room-tools #ludo-leave {
    border-color: rgba(223, 144, 145, 0.22);
    color: #e5b0ad;
}

.ludo-match-layout {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(215px, 0.75fr) minmax(0, 1.6fr);
    padding: 20px;
}

.ludo-player-panel {
    background: rgba(5, 15, 9, 0.44);
    border: 1px solid rgba(206, 226, 201, 0.11);
    border-radius: 15px;
    padding: 15px;
}

.ludo-panel-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ludo-panel-heading span {
    color: #91a398;
    display: block;
    font-size: 0.4rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.ludo-panel-heading h2 {
    color: #edf5ed;
    font-size: 0.94rem;
    margin: 0;
}

.ludo-panel-heading > strong {
    color: #e6ce94;
    font-family: Georgia, serif;
    font-size: 0.85rem;
}

.ludo-players {
    display: grid;
    gap: 7px;
}

.ludo-player-card,
.ludo-player-waiting {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(206, 226, 201, 0.08);
    border-radius: 10px;
    display: flex;
    gap: 9px;
    min-height: 52px;
    padding: 7px 8px;
}

.ludo-player-card.is-current {
    background: rgba(143, 223, 174, 0.075);
    border-color: rgba(143, 223, 174, 0.35);
}

.ludo-player-avatar {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #d9e4dc;
    display: inline-flex;
    flex: 0 0 31px;
    font-size: 0.68rem;
    font-weight: 850;
    height: 31px;
    justify-content: center;
}

.ludo-player-red .ludo-player-avatar {
    background: rgba(222, 100, 111, 0.16);
    color: #f09198;
}

.ludo-player-blue .ludo-player-avatar {
    background: rgba(92, 155, 228, 0.16);
    color: #94c7fb;
}

.ludo-player-green .ludo-player-avatar {
    background: rgba(84, 196, 133, 0.16);
    color: #8be0aa;
}

.ludo-player-yellow .ludo-player-avatar {
    background: rgba(226, 187, 87, 0.16);
    color: #f2d785;
}

.ludo-player-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ludo-player-copy strong {
    color: #e8f1e9;
    font-size: 0.62rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ludo-player-copy small {
    color: #86968b;
    font-size: 0.46rem;
}

.ludo-host-tag {
    color: #e2ce97;
    font-size: 0.36rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    margin-left: auto;
}

.ludo-player-waiting {
    border-style: dashed;
    color: #75857a;
    font-size: 0.54rem;
    justify-content: center;
}

.ludo-activity {
    border-top: 1px solid rgba(206, 226, 201, 0.09);
    margin-top: 16px;
    padding-top: 12px;
}

.ludo-activity h3 {
    color: #96a79b;
    font-size: 0.42rem;
    letter-spacing: 0.15em;
    margin: 0 0 8px;
}

.ludo-activity ol {
    color: #aab8ac;
    display: grid;
    font-size: 0.49rem;
    gap: 7px;
    line-height: 1.45;
    list-style: none;
    margin: 0;
    min-height: 40px;
    padding: 0;
}

.ludo-free-note {
    border-top: 1px solid rgba(206, 226, 201, 0.09);
    color: #98a89b;
    font-size: 0.46rem;
    line-height: 1.55;
    margin: 14px 0 0;
    padding-top: 12px;
}

.ludo-board-column {
    min-width: 0;
}

.ludo-board-frame {
    align-items: center;
    background: radial-gradient(circle at 50% 45%, rgba(64, 122, 82, 0.15), transparent 65%), linear-gradient(145deg, #0b1c12, #09130d);
    border: 1px solid rgba(213, 191, 132, 0.22);
    border-radius: 19px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: clamp(10px, 2.4vw, 19px);
    position: relative;
}

.ludo-board {
    display: block;
    height: auto;
    max-width: 570px;
    overflow: visible;
    width: 100%;
}

.ludo-board-bg {
    fill: #0c2115;
    stroke: rgba(218, 192, 125, 0.4);
    stroke-width: 3;
}

.ludo-base {
    stroke: rgba(255, 255, 255, 0.38);
    stroke-width: 1.5;
}

.ludo-base-red {
    fill: #632c38;
}

.ludo-base-blue {
    fill: #244c70;
}

.ludo-base-green {
    fill: #23553d;
}

.ludo-base-yellow {
    fill: #69572b;
}

.ludo-home-shape {
    fill: #17291c;
    stroke: rgba(220, 199, 139, 0.56);
    stroke-width: 2;
}

.ludo-track-cell {
    fill: #e4e8db;
    stroke: #9eab99;
    stroke-width: 1;
}

.ludo-track-start-red {
    fill: #db6c77;
}

.ludo-track-start-blue {
    fill: #70afea;
}

.ludo-track-start-green {
    fill: #67c58d;
}

.ludo-track-start-yellow {
    fill: #e4c768;
}

.ludo-home-cell {
    stroke: rgba(10, 18, 12, 0.56);
    stroke-width: 1;
}

.ludo-home-red {
    fill: #df6875;
}

.ludo-home-blue {
    fill: #66a8e9;
}

.ludo-home-green {
    fill: #63c487;
}

.ludo-home-yellow {
    fill: #e0c35f;
}

.ludo-base-slot {
    fill: rgba(6, 17, 10, 0.4);
    stroke-width: 2;
}

.ludo-slot-red {
    stroke: #f09198;
}

.ludo-slot-blue {
    stroke: #94c7fb;
}

.ludo-slot-green {
    stroke: #8be0aa;
}

.ludo-slot-yellow {
    stroke: #f2d785;
}

.ludo-base-slot-number {
    fill: rgba(241, 248, 239, 0.54);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    pointer-events: none;
    text-anchor: middle;
}

.ludo-token {
    cursor: default;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.48));
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.ludo-token.is-legal {
    cursor: pointer;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.ludo-token.is-legal .ludo-token-disc {
    stroke: #fff8d8;
    stroke-width: 3;
}

.ludo-token-disc {
    fill: #b14754;
    stroke: #ffe0d5;
    stroke-width: 1.5;
}

.ludo-token-blue .ludo-token-disc {
    fill: #3476ad;
    stroke: #d3ebff;
}

.ludo-token-green .ludo-token-disc {
    fill: #2c8a54;
    stroke: #d2ffe0;
}

.ludo-token-yellow .ludo-token-disc {
    fill: #aa8728;
    stroke: #fff4bd;
}

.ludo-token-label {
    fill: #fff;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 900;
    pointer-events: none;
    text-anchor: middle;
}

.ludo-die {
    align-items: center;
    background: linear-gradient(145deg, #fffef8, #dfdfce);
    border: 2px solid rgba(231, 211, 158, 0.88);
    border-radius: 15px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), inset 0 0 0 3px rgba(43, 69, 48, 0.06);
    color: #284432;
    display: flex;
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    height: clamp(47px, 7vw, 62px);
    justify-content: center;
    pointer-events: none;
    position: absolute;
    right: 23%;
    top: 50%;
    transform: translate(50%, -50%);
    width: clamp(47px, 7vw, 62px);
    z-index: 3;
}

.ludo-die.is-rolling span {
    animation: ludo-die-bounce 420ms ease-in-out infinite alternate;
}

.ludo-turn-panel {
    align-items: center;
    background: rgba(5, 15, 9, 0.4);
    border: 1px solid rgba(206, 226, 201, 0.1);
    border-radius: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 12px;
    padding: 12px 14px;
}

.ludo-turn-panel > p {
    color: #b8c6ba;
    flex: 1 1 190px;
    font-size: 0.63rem;
    line-height: 1.5;
    margin: 0;
}

.ludo-turn-actions {
    display: flex;
    gap: 8px;
}

.ludo-howto {
    align-items: flex-start;
    background: linear-gradient(145deg, rgba(22, 37, 28, 0.8), rgba(11, 21, 15, 0.86));
    border: 1px solid rgba(206, 226, 201, 0.1);
    border-radius: 13px;
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 13px 15px;
}

.ludo-howto > span {
    color: #d8c58f;
    font-size: 0.95rem;
}

.ludo-howto strong {
    color: #e8f1e9;
    display: block;
    font-size: 0.67rem;
    margin-bottom: 4px;
}

.ludo-howto p {
    color: #9eafa3;
    font-size: 0.55rem;
    line-height: 1.6;
    margin: 0;
}

.ludo-result-dialog {
    background: transparent;
    border: 0;
    color: #eff7f0;
    max-width: min(420px, calc(100vw - 28px));
    overflow: visible;
    padding: 0;
    width: 100%;
}

.ludo-result-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(3, 8, 5, 0.78);
}

.ludo-result-card {
    animation: blackjack-dialog-enter 250ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
    background: radial-gradient(ellipse at 50% 0, rgba(78, 144, 102, 0.14), transparent 50%), linear-gradient(145deg, #17251b, #0c1510 72%);
    border: 1px solid rgba(220, 199, 139, 0.27);
    border-radius: 19px;
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.56), inset 0 1px rgba(255, 255, 255, 0.05);
    padding: 30px 28px 24px;
    position: relative;
    text-align: center;
}

.ludo-result-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #c4d0c6;
    cursor: pointer;
    font-size: 1.15rem;
    height: 31px;
    line-height: 1;
    position: absolute;
    right: 13px;
    top: 13px;
    width: 31px;
}

.ludo-result-emblem {
    color: #ead89f;
    display: inline-block;
    font-size: 3rem;
}

.ludo-result-card > p:first-of-type {
    color: #e4ce92;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    margin: 8px 0;
}

.ludo-result-card h2 {
    color: #f2f7f0;
    font-size: 1.62rem;
    letter-spacing: -0.045em;
    margin: 0;
}

.ludo-result-card > p:nth-of-type(2) {
    color: #bfcec2;
    font-size: 0.82rem;
    line-height: 1.6;
}

.ludo-result-note {
    color: #b8a87f;
    font-size: 0.61rem;
}

.ludo-result-actions {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.ludo-result-actions button {
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 750;
    min-height: 42px;
    padding: 0 14px;
}

.ludo-result-actions button:first-child {
    background: linear-gradient(110deg, #f1dfa9, #c9a961);
    border: 1px solid #efdaa0;
    color: #2b2416;
    flex: 1;
}

.ludo-result-actions button:last-child {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #c3d1c5;
}

@keyframes ludo-die-bounce {
    from { transform: translateY(-3px) rotate(-8deg); }
    to { transform: translateY(3px) rotate(8deg); }
}

@media (max-width: 820px) {
    .ludo-match-layout {
        grid-template-columns: minmax(185px, 0.72fr) minmax(0, 1.4fr);
        gap: 12px;
        padding: 13px;
    }

    .ludo-player-panel {
        padding: 11px;
    }
}

@media (min-width: 761px) and (max-width: 820px) {
    .site-header {
        flex-wrap: wrap;
        gap: 8px 14px;
        justify-content: space-between;
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .site-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-menu {
        background: rgba(11, 16, 13, 0.98);
        border: 1px solid var(--line);
        border-radius: 10px;
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        width: 100%;
    }

    .site-menu.is-open {
        display: flex;
    }

    .site-menu a {
        font-size: 0.84rem;
        padding: 10px 12px;
    }
}

@media (max-width: 650px) {
    .ludo-page {
        padding-bottom: 48px;
    }

    .ludo-back-link {
        margin: 17px 0 21px;
    }

    .ludo-heading {
        margin-bottom: 21px;
    }

    .ludo-lobby {
        border-radius: 16px;
        padding: 18px 14px;
    }

    .ludo-lobby-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
    }

    .ludo-create {
        grid-column: 1 / -1;
    }

    .ludo-room {
        border-radius: 16px;
    }

    .ludo-room-topbar {
        gap: 10px;
        padding: 11px;
    }

    .ludo-room-status {
        order: 3;
        flex: 1 1 100%;
    }

    .ludo-room-tools {
        margin-left: auto;
    }

    .ludo-match-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 11px;
        padding: 10px;
    }

    .ludo-board-column,
    .ludo-player-panel {
        width: 100%;
    }

    .ludo-board-frame {
        border-radius: 13px;
        padding: 8px;
    }

    .ludo-board {
        max-width: 500px;
    }

    .ludo-die {
        right: 22%;
    }

    .ludo-player-panel {
        padding: 11px;
    }

    .ludo-players {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ludo-player-card,
    .ludo-player-waiting {
        min-width: 0;
        padding: 6px;
    }

    .ludo-turn-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .ludo-turn-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ludo-turn-actions button {
        width: 100%;
    }

    .ludo-result-card {
        padding: 28px 18px 20px;
    }
}

@media (max-width: 390px) {
    .ludo-player-copy strong {
        font-size: 0.54rem;
    }

    .ludo-player-copy small {
        font-size: 0.4rem;
    }

    .ludo-room-tools button {
        font-size: 0.49rem;
        padding: 0 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ludo-die.is-rolling span,
    .ludo-result-dialog[open] {
        animation: none;
    }

    .ludo-token,
    .ludo-button {
        transition: none;
    }
}

.ludo-page .visually-hidden {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.ludo-lobby {
    background: radial-gradient(ellipse at 0 0, rgba(105, 204, 158, 0.14), transparent 48%), radial-gradient(ellipse at 100% 100%, rgba(217, 190, 123, 0.08), transparent 44%), linear-gradient(145deg, #17291e, #0c1510 75%);
    border-color: rgba(216, 191, 125, 0.28);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.055);
}

.ludo-lobby-mark {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.1);
}

.ludo-lobby-intro h2 {
    font-size: clamp(1.15rem, 2.6vw, 1.4rem);
}

.ludo-field {
    font-size: 0.68rem;
}

.ludo-field input,
.ludo-field select,
.ludo-join-row input {
    border-radius: 11px;
    min-height: 47px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ludo-field input:hover,
.ludo-field select:hover,
.ludo-join-row input:hover {
    background-color: rgba(4, 13, 8, 0.75);
    border-color: rgba(206, 226, 201, 0.27);
}

.ludo-button:focus-visible,
.ludo-room-tools button:focus-visible,
.ludo-room-code-wrap button:focus-visible,
.ludo-result-actions button:focus-visible,
.ludo-result-close:focus-visible,
.ludo-token.is-legal:focus-visible {
    outline: 3px solid rgba(141, 228, 174, 0.86);
    outline-offset: 3px;
}

.ludo-button {
    min-height: 47px;
}

.ludo-turn-actions > .ludo-button[hidden] {
    display: none !important;
}

.ludo-turn-actions > .ludo-button:not([hidden]) {
    min-width: 146px;
}

.ludo-button:disabled {
    opacity: 0.58;
}

.ludo-create,
.ludo-start,
.ludo-rematch,
.ludo-roll {
    background: linear-gradient(115deg, #f6e7b7, #d7b96d 72%, #c6a453);
    box-shadow: 0 8px 22px rgba(190, 157, 81, 0.16), inset 0 1px rgba(255, 255, 255, 0.52);
}

.ludo-room {
    border-color: rgba(216, 191, 125, 0.28);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.055);
}

.ludo-room-status {
    background: rgba(141, 228, 169, 0.07);
    border: 1px solid rgba(141, 228, 169, 0.14);
    border-radius: 999px;
    min-height: 30px;
    padding: 0 11px;
}

.ludo-panel-heading span,
.ludo-room-code-wrap > span {
    font-size: 0.48rem;
}

.ludo-player-card,
.ludo-player-waiting {
    border-radius: 12px;
    min-height: 57px;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ludo-player-card.is-current {
    background: linear-gradient(100deg, rgba(143, 223, 174, 0.12), rgba(143, 223, 174, 0.035));
    border-color: rgba(143, 223, 174, 0.48);
    box-shadow: inset 3px 0 #8de4a9, 0 5px 18px rgba(0, 0, 0, 0.12);
}

.ludo-player-copy strong {
    font-size: 0.68rem;
}

.ludo-player-copy small {
    font-size: 0.53rem;
}

.ludo-host-tag {
    background: rgba(226, 206, 151, 0.09);
    border: 1px solid rgba(226, 206, 151, 0.15);
    border-radius: 999px;
    font-size: 0.43rem;
    padding: 4px 6px;
}

.ludo-player-waiting {
    font-size: 0.59rem;
}

.ludo-activity h3 {
    font-size: 0.49rem;
}

.ludo-activity ol {
    font-size: 0.56rem;
}

.ludo-activity li {
    border-left: 2px solid rgba(226, 206, 151, 0.42);
    padding-left: 8px;
}

.ludo-free-note {
    font-size: 0.52rem;
}

.ludo-board-frame {
    background: radial-gradient(circle at 50% 45%, rgba(77, 150, 101, 0.23), transparent 65%), linear-gradient(145deg, #10271a, #09130d);
    border-color: rgba(225, 202, 143, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 14px 36px rgba(0, 0, 0, 0.2);
}

.ludo-board-frame::after {
    border: 1px solid rgba(223, 202, 151, 0.11);
    border-radius: 13px;
    content: '';
    inset: 7px;
    pointer-events: none;
    position: absolute;
}

.ludo-board {
    filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.2));
}

.ludo-board-bg {
    fill: #102a1a;
    stroke: rgba(229, 207, 150, 0.52);
}

.ludo-base {
    stroke: rgba(255, 255, 255, 0.48);
    stroke-width: 2;
}

.ludo-home-shape {
    fill: #1d3524;
    stroke: rgba(232, 212, 158, 0.76);
}

.ludo-track-cell {
    fill: #f0f0df;
    stroke: #9da994;
    stroke-width: 1.2;
}

.ludo-track-start-red {
    fill: #eb7882;
}

.ludo-track-start-blue {
    fill: #81baf0;
}

.ludo-track-start-green {
    fill: #78d59a;
}

.ludo-track-start-yellow {
    fill: #f0d477;
}

.ludo-token {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.62));
    transform-box: fill-box;
    transform-origin: center;
}

.ludo-token.is-legal {
    animation: ludo-token-ready 900ms ease-in-out infinite alternate;
    filter: drop-shadow(0 0 7px rgba(255, 248, 216, 0.9));
}

.ludo-token.is-legal:hover,
.ludo-token.is-legal:focus-visible {
    filter: drop-shadow(0 0 10px rgba(255, 248, 216, 1));
    transform: scale(1.14);
}

.ludo-token-disc {
    stroke-width: 1.8;
}

.ludo-die {
    border-radius: 17px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.48), 0 0 0 5px rgba(233, 213, 160, 0.09), inset 0 0 0 3px rgba(43, 69, 48, 0.06);
}

.ludo-turn-panel {
    background: linear-gradient(105deg, rgba(5, 15, 9, 0.65), rgba(17, 34, 22, 0.62));
    border-color: rgba(206, 226, 201, 0.15);
    min-height: 68px;
}

.ludo-turn-panel > p {
    font-size: 0.68rem;
}

.ludo-howto {
    background: linear-gradient(110deg, rgba(26, 44, 31, 0.86), rgba(11, 21, 15, 0.9));
    border-color: rgba(206, 226, 201, 0.14);
}

.ludo-howto p {
    font-size: 0.61rem;
}

@keyframes ludo-token-ready {
    from { filter: drop-shadow(0 0 4px rgba(255, 248, 216, 0.65)); }
    to { filter: drop-shadow(0 0 9px rgba(255, 248, 216, 1)); }
}

@media (max-width: 650px) {
    .ludo-room-status {
        min-height: 27px;
    }

    .ludo-join-row input {
        min-width: 0;
        text-align: center;
    }

    .ludo-player-copy strong {
        font-size: 0.62rem;
    }

    .ludo-player-copy small {
        font-size: 0.48rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ludo-token.is-legal {
        animation: none;
    }

    .ludo-player-card,
    .ludo-player-waiting,
    .ludo-field input,
    .ludo-field select,
    .ludo-join-row input {
        transition: none;
    }
}
