:root {
    --bg-top: #08070a;
    --bg-bottom: #1b120a;
    --cabinet-top: #49311f;
    --cabinet-bottom: #1b130b;
    --panel-bg: rgba(24, 16, 10, 0.88);
    --panel-border: rgba(255, 215, 125, 0.28);
    --gold: #ffd45f;
    --gold-deep: #b97824;
    --highlight: #ff7b56;
    --accent-blue: #7ad9d2;
    --text-main: #fdf7e5;
    --text-soft: #cdbd9c;
    --danger: #ff8d63;
    --symbol-height: 33.3333%;
}

* {
    box-sizing: border-box;
}

html {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px;
    overflow-x: hidden;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top, rgba(255, 210, 122, 0.2), transparent 34%),
        radial-gradient(circle at 18% 12%, rgba(122, 217, 210, 0.08), transparent 24%),
        radial-gradient(circle at bottom, rgba(255, 123, 86, 0.12), transparent 30%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image:
        repeating-linear-gradient(90deg, rgba(242, 205, 122, 0.05) 0 14px, transparent 14px 40px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 28px);
    background-size: 180px 28px, 28px 28px;
}

body::after {
    content: "";
    position: fixed;
    top: -18vh;
    left: 50%;
    width: min(72vw, 820px);
    height: min(72vw, 820px);
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.38;
    background: radial-gradient(circle, rgba(255, 217, 114, 0.18) 0%, rgba(255, 217, 114, 0.08) 28%, transparent 66%);
    filter: blur(12px);
}

.game-container {
    width: min(980px, 100%);
    position: relative;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 224, 148, 0.38);
    background:
        linear-gradient(180deg, rgba(255, 249, 229, 0.04), transparent 16%),
        radial-gradient(circle at top, rgba(122, 217, 210, 0.08), transparent 26%),
        repeating-linear-gradient(90deg, rgba(255, 215, 125, 0.035) 0 28px, transparent 28px 56px),
        linear-gradient(180deg, var(--cabinet-top) 0%, var(--cabinet-bottom) 100%);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    touch-action: manipulation;
}

.game-container::before,
.game-container::after {
    content: "";
    position: absolute;
    inset-inline: 18px;
    height: 8px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent, rgba(255, 220, 132, 0.82), transparent),
        repeating-linear-gradient(90deg, rgba(255, 220, 132, 0.16) 0 18px, transparent 18px 36px);
    opacity: 0.88;
}

.game-container::before {
    top: 10px;
}

.game-container::after {
    bottom: 10px;
}

.game-container.fs-mode {
    border-color: rgba(255, 95, 125, 0.72);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.6),
        0 0 42px rgba(255, 91, 125, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-container.autoplay-mode {
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(87, 211, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

header {
    display: grid;
    gap: 18px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

.header-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 220px;
}

.title-cartouche {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
    max-width: min(100%, 560px);
    padding: 16px 22px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 221, 138, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 248, 227, 0.08), rgba(255, 248, 227, 0.02) 22%, transparent 72%),
        radial-gradient(circle at 20% 18%, rgba(122, 217, 210, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(73, 47, 24, 0.94) 0%, rgba(30, 18, 10, 0.96) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -14px 24px rgba(0, 0, 0, 0.18),
        0 14px 28px rgba(0, 0, 0, 0.2);
}

.title-cartouche::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 214, 109, 0.12);
    pointer-events: none;
}

.title-cartouche::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 9px;
    height: 6px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent, rgba(255, 214, 109, 0.9), transparent),
        repeating-linear-gradient(90deg, rgba(255, 214, 109, 0.18) 0 16px, transparent 16px 32px);
    opacity: 0.72;
    pointer-events: none;
}

.title-cartouche .eyebrow {
    margin-bottom: 8px;
}

.title-cartouche h1 {
    line-height: 0.96;
    text-wrap: balance;
}

.feature-tease {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding: 12px 16px 13px;
    border-radius: 18px;
    border: 1px solid rgba(255, 214, 109, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 248, 227, 0.06), transparent 34%),
        radial-gradient(circle at 78% 20%, rgba(122, 217, 210, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(54, 34, 17, 0.92) 0%, rgba(23, 14, 9, 0.95) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 22px rgba(0, 0, 0, 0.18);
    text-align: right;
}

.feature-tease::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 7px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 109, 0.82), transparent);
    opacity: 0.58;
    pointer-events: none;
}

.feature-tease-label {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--accent-blue);
}

.feature-tease-value {
    font-size: clamp(0.5rem, 0.82vw, 0.62rem);
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.04;
    color: var(--gold);
    text-shadow: 0 5px 14px rgba(255, 196, 79, 0.22);
}

.eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 0.72rem;
    color: var(--accent-blue);
}

header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.06em;
    color: transparent;
    background: linear-gradient(180deg, #fffaf0 0%, #ffe391 48%, #d29a3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(255, 184, 72, 0.2);
}

.fs-counter {
    min-width: 180px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 97, 130, 0.42);
    background: rgba(37, 10, 19, 0.82);
    color: #ffdce6;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 24px rgba(255, 91, 125, 0.16);
}

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

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--panel-border);
    background:
        linear-gradient(180deg, rgba(255, 249, 229, 0.045), transparent 40%),
        var(--panel-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--text-soft);
}

.stat-value {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 700;
    color: var(--gold);
}

.win-box {
    position: relative;
    overflow: hidden;
}

.win-box::after {
    content: "";
    position: absolute;
    inset: auto -20% -50% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 213, 95, 0.24), transparent 70%);
    pointer-events: none;
}

.slot-machine {
    position: relative;
    margin-top: 24px;
    padding: 16px;
    height: clamp(320px, 48vw, 440px);
    border-radius: 24px;
    border: 1px solid rgba(255, 214, 102, 0.26);
    background:
        radial-gradient(circle at top, rgba(255, 210, 107, 0.13), transparent 24%),
        radial-gradient(circle at 50% 10%, rgba(122, 217, 210, 0.08), transparent 28%),
        linear-gradient(180deg, #17120d 0%, #08090d 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 24px 48px rgba(255, 255, 255, 0.04),
        inset 0 -30px 40px rgba(0, 0, 0, 0.48),
        0 18px 40px rgba(0, 0, 0, 0.34);
}

.slot-machine::before,
.slot-machine::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    height: 28px;
    pointer-events: none;
    z-index: 15;
}

.slot-machine::before {
    top: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
}

.slot-machine::after {
    bottom: 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.96), transparent);
}

.slot-machine.anticipation-mode {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 24px 48px rgba(255, 255, 255, 0.05),
        inset 0 -30px 40px rgba(0, 0, 0, 0.48),
        0 18px 40px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(255, 91, 125, 0.24);
}

.slot-machine.big-win-mode {
    animation: cabinetPulse 0.75s ease-in-out infinite alternate;
}

.reels-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    height: 100%;
}

.reel {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 214, 102, 0.15);
    background:
        linear-gradient(180deg, rgba(255, 248, 228, 0.045), transparent 28%),
        linear-gradient(180deg, #1b1713 0%, #0a0d12 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 12px 24px rgba(255, 255, 255, 0.03),
        inset 0 -16px 30px rgba(0, 0, 0, 0.45);
}

.reel::before,
.reel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 34px;
    pointer-events: none;
    z-index: 4;
}

.reel::before {
    top: 0;
    background: linear-gradient(180deg, rgba(4, 7, 13, 0.95), transparent);
}

.reel::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(4, 7, 13, 0.98), transparent);
}

.reel-strip {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    will-change: transform;
}

.reel.spinning {
    filter: saturate(1.15);
}

.reel.spinning .symbol:not(.sticky) {
    animation: reelFlicker 0.14s linear infinite alternate;
}

.reel.anticipation {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 0 32px rgba(255, 91, 125, 0.2),
        0 0 24px rgba(255, 91, 125, 0.22);
}

.reel.anticipation .symbol:not(.sticky) {
    animation: anticipationGlow 0.28s ease-in-out infinite alternate;
}

.reel.anticipation .reel-card-back {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 26px rgba(255, 91, 125, 0.18),
        0 0 20px rgba(255, 91, 125, 0.18);
}

.reel.settled {
    animation: reelSettle 0.18s ease-out;
}

.reel-card-layer {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    perspective: 1400px;
}

.reel-card-slot {
    position: absolute;
    left: 5px;
    right: 5px;
    top: calc(var(--row-index) * (100% / 3));
    height: calc(100% / 3);
    padding: 4px 2px;
}

.reel-card {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform-style: preserve-3d;
    transform: translateY(24%) scale(0.84) rotateX(14deg) rotate(var(--card-tilt, 0deg));
    transition:
        transform 0.28s cubic-bezier(0.16, 0.9, 0.24, 1),
        opacity 0.2s ease,
        filter 0.22s ease;
    transition-delay: var(--deal-delay, 0ms);
    will-change: transform, opacity;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.34));
}

.reel-card.is-resting {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg) rotate(var(--card-tilt, 0deg));
}

.reel-card.is-revealed {
    opacity: 0.18;
    transform: translateY(0) scale(1) rotateY(180deg) rotate(var(--card-tilt-inverse, 0deg));
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.reel-card-face {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.reel-card-back {
    border: 1px solid rgba(255, 223, 142, 0.46);
    background:
        linear-gradient(180deg, rgba(255, 248, 214, 0.16), rgba(34, 17, 6, 0.08)),
        linear-gradient(180deg, rgba(118, 76, 24, 0.36), rgba(24, 12, 6, 0.28));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 14px 28px rgba(0, 0, 0, 0.28);
}

.reel-card-back::before,
.reel-card-back::after,
.reel-card-front::before,
.reel-card-front::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.reel-card-back::before {
    inset: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 219, 132, 0.22);
    box-shadow: inset 0 0 18px rgba(255, 210, 104, 0.08);
}

.reel-card-back::after {
    inset: 8px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 224, 140, 0.22), transparent 40%),
        url("assets/pics/cardback.png") center / contain no-repeat;
}

.reel-card-front {
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 219, 122, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 248, 225, 0.03), rgba(24, 14, 8, 0.008)),
        linear-gradient(180deg, rgba(30, 21, 12, 0.02), rgba(11, 9, 8, 0.002));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 10px 18px rgba(0, 0, 0, 0.08);
}

.reel-card-front::before {
    inset: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 220, 134, 0.14);
}

.reel-card-front::after {
    inset: 9px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 223, 133, 0.08), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%);
}

.symbol {
    position: relative;
    height: var(--reel-symbol-height, 120px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 50%),
        linear-gradient(180deg, rgba(26, 35, 61, 0.98), rgba(11, 16, 30, 0.98));
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.symbol-covered {
    opacity: 0;
    filter: none;
    transform: scale(0.98);
    transition: none;
}

.reel.preparing-card-reveal .symbol:not(.sticky) {
    opacity: 0;
    filter: none;
    transform: scale(0.98);
    transition: none;
}

.classic-sticky-overlay {
    position: absolute;
    inset: 0;
    z-index: 9;
    pointer-events: none;
}

.classic-sticky-lock {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--row-index) * (100% / 3));
    height: calc(100% / 3);
}

.classic-sticky-lock .symbol {
    height: 100%;
    border-bottom: none;
}

.symbol:last-child {
    border-bottom: none;
}

.symbol::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.symbol .icon {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.symbol .icon-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.symbol .name {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(255, 248, 230, 0.72);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.05;
}

.symbol-dm .name,
.symbol-tw .name {
    font-size: 0.67rem;
    letter-spacing: 0.02em;
    line-height: 1.02;
}

.symbol-bewd .icon,
.symbol-dm .icon,
.symbol-wild .icon,
.symbol-scatter .icon {
    transform: scale(1.06);
}

body.visual-max .symbol-scatter.symbol-scatter-asset .icon {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: clamp(2rem, 4vw, 3.4rem);
    height: clamp(2rem, 4vw, 3.4rem);
    font-size: 0;
    isolation: isolate;
    overflow: visible;
}

body.visual-max .symbol-scatter.symbol-scatter-asset .icon-image {
    width: 100%;
    height: 100%;
    transform: scale(1.22);
    transform-origin: center bottom;
    opacity: 0.98;
    filter:
        brightness(1.18)
        saturate(1.18)
        contrast(1.1)
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34))
        drop-shadow(0 0 14px rgba(255, 213, 99, 0.2))
        drop-shadow(0 0 10px rgba(255, 92, 128, 0.14));
}

body.visual-max .symbol-bewd.symbol-bewd-asset {
    gap: 4px;
}

body.visual-max .symbol-bewd.symbol-bewd-asset .icon {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: clamp(2.18rem, 4.36vw, 3.68rem);
    height: clamp(2.86rem, 5.44vw, 4.48rem);
    font-size: 0;
    isolation: isolate;
    overflow: visible;
}

body.visual-max .symbol-bewd.symbol-bewd-asset .icon-image {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-50%) scale(1.06);
    transform-origin: center bottom;
    filter:
        brightness(1.09)
        saturate(1.1)
        contrast(1.05)
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.36))
        drop-shadow(0 0 14px rgba(97, 225, 255, 0.18))
        drop-shadow(0 0 12px rgba(132, 196, 255, 0.12));
}

body.visual-max .symbol-dm.symbol-dm-asset {
    gap: 4px;
}

body.visual-max .symbol-dm.symbol-dm-asset .icon {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: clamp(2.08rem, 4.16vw, 3.5rem);
    height: clamp(2.56rem, 4.96vw, 4.08rem);
    font-size: 0;
    isolation: isolate;
    overflow: visible;
}

body.visual-max .symbol-dm.symbol-dm-asset .icon-image {
    width: 100%;
    height: 100%;
    transform: scale(1.18) translateY(1%);
    transform-origin: center bottom;
    filter:
        brightness(1.08)
        saturate(1.08)
        contrast(1.04)
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34))
        drop-shadow(0 0 12px rgba(255, 182, 224, 0.12));
}

body.visual-max .symbol-tw.symbol-tw-asset {
    gap: 4px;
}

body.visual-max .symbol-tw.symbol-tw-asset .icon {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: clamp(2.12rem, 4.22vw, 3.54rem);
    height: clamp(2.44rem, 4.72vw, 3.94rem);
    font-size: 0;
    isolation: isolate;
    overflow: visible;
}

body.visual-max .symbol-tw.symbol-tw-asset .icon-image {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-50%) scale(1.06);
    transform-origin: center bottom;
    filter:
        brightness(1.08)
        saturate(1.08)
        contrast(1.04)
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34))
        drop-shadow(0 0 12px rgba(255, 197, 78, 0.16))
        drop-shadow(0 0 10px rgba(169, 106, 255, 0.12));
}

body.visual-max .symbol-jinzo.symbol-jinzo-asset {
    gap: 4px;
}

body.visual-max .symbol-jinzo.symbol-jinzo-asset .icon {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: clamp(2.08rem, 4.16vw, 3.48rem);
    height: clamp(2.52rem, 4.88vw, 4.02rem);
    font-size: 0;
    isolation: isolate;
    overflow: visible;
}

body.visual-max .symbol-jinzo.symbol-jinzo-asset .icon-image {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-50%) scale(1.08);
    transform-origin: center bottom;
    filter:
        brightness(1.08)
        saturate(1.08)
        contrast(1.04)
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.36))
        drop-shadow(0 0 12px rgba(132, 255, 232, 0.14))
        drop-shadow(0 0 10px rgba(255, 98, 166, 0.08));
}

body.visual-max .symbol-wild.symbol-wild-asset .icon {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: clamp(2.12rem, 4.24vw, 3.56rem);
    height: clamp(2.7rem, 5.18vw, 4.28rem);
    font-size: 0;
    isolation: isolate;
    overflow: visible;
}

body.visual-max .symbol-wild.symbol-wild-asset .icon-image {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-50%) scale(1.08);
    transform-origin: center bottom;
    filter:
        brightness(1.05)
        saturate(1.06)
        contrast(1.04)
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.36))
        drop-shadow(0 0 14px rgba(255, 214, 102, 0.16))
        drop-shadow(0 0 10px rgba(255, 61, 122, 0.08));
}

.symbol-wild {
    background:
        linear-gradient(180deg, rgba(255, 214, 102, 0.22), rgba(116, 48, 14, 0.14)),
        linear-gradient(180deg, #312614, #140e08);
}

.symbol-scatter {
    background:
        linear-gradient(180deg, rgba(255, 91, 125, 0.22), rgba(58, 18, 30, 0.14)),
        linear-gradient(180deg, #2d1620, #11090d);
}

.sticky {
    box-shadow:
        inset 0 0 0 2px rgba(255, 214, 102, 0.78),
        inset 0 0 24px rgba(255, 214, 102, 0.18);
}

.winning-symbol {
    animation: winSymbol 0.58s ease-in-out infinite alternate;
    z-index: 3;
}

#win-lines-container {
    position: absolute;
    inset: 16px;
    pointer-events: none;
    z-index: 20;
}

#win-lines-container svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

#win-lines-container path {
    filter: drop-shadow(0 0 6px rgba(255, 238, 178, 0.42));
    animation: linePulse 0.34s ease-in-out alternate 2;
}

.status-strip {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--panel-border);
    background:
        linear-gradient(180deg, rgba(255, 249, 229, 0.045), transparent 50%),
        var(--panel-bg);
}

.msg-display {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gold);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.controls {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 18px;
}

.bet-controls,
.secondary-controls,
.sound-controls {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--panel-border);
    background:
        linear-gradient(180deg, rgba(255, 249, 229, 0.045), transparent 55%),
        var(--panel-bg);
}

.bet-controls {
    position: relative;
    display: grid;
}

.sound-controls {
    position: relative;
    display: grid;
}

.bet-controls button,
.secondary-btn,
.sound-controls button,
.sound-slider {
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease, background 0.14s ease;
}

.bet-selector-btn {
    width: 100%;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 16px;
    text-align: left;
    color: var(--text-main);
    background:
        linear-gradient(180deg, rgba(255, 249, 229, 0.05), transparent 55%),
        linear-gradient(180deg, #2b241b, #17110b);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.18);
}

.bet-selector-btn[aria-expanded="true"] {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 212, 95, 0.3),
        0 10px 24px rgba(255, 212, 95, 0.14);
}

.sound-selector-btn {
    width: 100%;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 16px;
    text-align: left;
    color: var(--text-main);
    background:
        linear-gradient(180deg, rgba(255, 249, 229, 0.05), transparent 55%),
        linear-gradient(180deg, #2b241b, #17110b);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.18);
}

.sound-selector-btn[aria-expanded="true"] {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 212, 95, 0.3),
        0 10px 24px rgba(255, 212, 95, 0.14);
}

.bet-selector-label,
.bet-selector-value {
    display: block;
}

.bet-selector-label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--text-soft);
}

.bet-selector-value {
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--gold);
}

.bet-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 14px);
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 219, 138, 0.32);
    background:
        linear-gradient(180deg, rgba(255, 249, 229, 0.05), transparent 32%),
        linear-gradient(180deg, rgba(39, 28, 16, 0.98), rgba(16, 11, 7, 0.98));
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(255, 212, 95, 0.1);
    z-index: 120;
}

.bet-menu-section {
    display: grid;
    gap: 8px;
}

.sound-menu-section {
    display: grid;
    gap: 10px;
}

.mobile-sound-only {
    display: none;
}

.bet-menu-title {
    padding-inline: 4px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--accent-blue);
}

.bet-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bet-option-btn {
    min-height: 46px;
    padding: 10px 8px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #2d3650, #182033);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bet-option-btn.active {
    color: #1d1200;
    background: linear-gradient(180deg, #fff1af, #ffbf4f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 0 1px rgba(255, 218, 126, 0.24);
}

.sound-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: min(340px, 76vw);
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 219, 138, 0.32);
    background:
        linear-gradient(180deg, rgba(255, 249, 229, 0.05), transparent 32%),
        linear-gradient(180deg, rgba(39, 28, 16, 0.98), rgba(16, 11, 7, 0.98));
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(255, 212, 95, 0.1);
    z-index: 120;
}

.sound-menu-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sound-tab-btn {
    min-height: 40px;
    padding: 10px 10px 9px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-main);
    background: linear-gradient(180deg, #2d3650, #182033);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.sound-tab-btn.active {
    color: #1d1200;
    background: linear-gradient(180deg, #fff1af, #ffbf4f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 0 1px rgba(255, 218, 126, 0.24);
}

.sound-tab-badge {
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: normal;
    color: #fff7d8;
    background: linear-gradient(180deg, #ff7a88, #c53041);
    box-shadow: 0 0 0 1px rgba(255, 176, 170, 0.18);
}

.sound-menu-panel {
    display: grid;
    gap: 12px;
}

.sound-power-btn {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #1d1200;
    background: linear-gradient(180deg, #fff1af, #ffbf4f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 0 1px rgba(255, 218, 126, 0.24);
}

.sound-power-btn.active {
    color: var(--text-main);
    background: linear-gradient(180deg, #2d3650, #182033);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sound-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.visual-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sound-toggle-btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #1d1200;
    background: linear-gradient(180deg, #fff1af, #ffbf4f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 0 1px rgba(255, 218, 126, 0.24);
}

.sound-toggle-btn.active {
    color: var(--text-main);
    background: linear-gradient(180deg, #2d3650, #182033);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.visual-mode-btn {
    min-height: 42px;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-main);
    background: linear-gradient(180deg, #2d3650, #182033);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.visual-mode-btn.active {
    color: #1d1200;
    background: linear-gradient(180deg, #fff1af, #ffbf4f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 0 1px rgba(255, 218, 126, 0.24);
}

.sound-power-btn:disabled,
.sound-toggle-btn:disabled,
.visual-mode-btn:disabled,
.sound-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sound-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.sound-slider-label {
    font-size: 0.92rem;
    color: #efe3bf;
}

.sound-slider-value {
    min-width: 48px;
    text-align: right;
    font-weight: 700;
    color: var(--gold);
}

.sound-slider {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 214, 102, 0.7), rgba(87, 211, 255, 0.76));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    appearance: none;
    -webkit-appearance: none;
}

.sound-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 214, 102, 0.76), rgba(87, 211, 255, 0.78));
}

.sound-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 2px solid rgba(255, 248, 218, 0.9);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff7ce 0%, #ffd45f 58%, #be7a18 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
    appearance: none;
    -webkit-appearance: none;
}

.sound-slider::-moz-range-track {
    height: 6px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 214, 102, 0.76), rgba(87, 211, 255, 0.78));
}

.sound-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 248, 218, 0.9);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff7ce 0%, #ffd45f 58%, #be7a18 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.chat-menu-summary {
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%),
        rgba(15, 20, 31, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.chat-menu-meta {
    display: grid;
    gap: 4px;
}

.chat-menu-label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--accent-blue);
}

.chat-menu-username {
    font-weight: 700;
    color: #fff0c1;
}

.chat-status-pill,
.chat-menu-unread {
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.chat-status-pill {
    color: #fff7df;
    background: linear-gradient(180deg, #48546d, #253249);
}

.chat-status-pill[data-state="connected"] {
    color: #0d2018;
    background: linear-gradient(180deg, #9cffd8, #47dca8);
}

.chat-status-pill[data-state="loading"] {
    color: #211100;
    background: linear-gradient(180deg, #ffe28c, #ffb03b);
}

.chat-status-pill[data-state="error"],
.chat-status-pill[data-state="disabled"] {
    color: #fff1e7;
    background: linear-gradient(180deg, #ff8e8b, #c54651);
}

.chat-menu-unread {
    color: #fff6e0;
    background: linear-gradient(180deg, #ff8c76, #b63746);
}

.chat-menu-copy {
    margin: 0;
    color: #efe2c0;
    line-height: 1.55;
}

.chat-open-btn {
    min-height: 44px;
    padding: 11px 14px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #1b0d00;
    background: linear-gradient(180deg, #ffe39a, #ffb44c);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 12px 24px rgba(255, 176, 59, 0.14);
}

body.mobile-sound-menu .mobile-sound-only {
    display: grid;
}

body.mobile-sound-menu .desktop-sound-only {
    display: none;
}

body.visual-classic .slot-machine {
    padding: 12px;
    border-radius: 20px;
    border-color: rgba(255, 214, 102, 0.22);
    background:
        radial-gradient(circle at 50% -6%, rgba(255, 210, 107, 0.09), transparent 24%),
        linear-gradient(180deg, #15110d 0%, #06080d 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        inset 0 18px 36px rgba(255, 255, 255, 0.035),
        inset 0 -24px 34px rgba(0, 0, 0, 0.5),
        0 18px 36px rgba(0, 0, 0, 0.32);
}

body.visual-classic .slot-machine::before,
body.visual-classic .slot-machine::after {
    left: 12px;
    right: 12px;
}

body.visual-classic .reels-container {
    gap: 8px;
}

body.visual-classic .reel {
    border-radius: 14px;
    border-color: rgba(255, 214, 102, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 248, 228, 0.035), transparent 22%),
        linear-gradient(180deg, #19140f 0%, #060910 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        inset 0 10px 22px rgba(255, 255, 255, 0.022),
        inset 0 -14px 26px rgba(0, 0, 0, 0.46);
}

body.visual-classic .reel::before,
body.visual-classic .reel::after {
    height: 28px;
}

body.visual-classic .reel-card-layer {
    display: none;
}

body.visual-classic .symbol-covered {
    opacity: 1;
    filter: inherit;
    transform: none;
}

.main-btn {
    width: clamp(120px, 18vw, 156px);
    height: clamp(120px, 18vw, 156px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    color: #241500;
    font-weight: 800;
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    letter-spacing: 0.08em;
    background:
        radial-gradient(circle at 35% 28%, #fff5c2 0%, #ffe28f 16%, #f6c24e 44%, #be7a18 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 12px 0 #7a4d0b,
        0 24px 40px rgba(0, 0, 0, 0.36);
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.2s ease;
}

.main-btn:active {
    transform: translateY(6px);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 6px 0 #7a4d0b,
        0 16px 28px rgba(0, 0, 0, 0.28);
}

.secondary-controls {
    display: grid;
    gap: 10px;
}

.secondary-btn {
    min-width: 116px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-main);
    background: linear-gradient(180deg, #2b3551, #141d2e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.secondary-btn.active {
    color: #1d1200;
    background: linear-gradient(180deg, #ffe590, #ffb339);
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.44;
    filter: grayscale(0.3);
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    background: rgba(5, 8, 15, 0.78);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.hidden {
    display: none;
}

.overlay-content {
    width: min(460px, 100%);
    padding: 34px 32px;
    border-radius: 26px;
    text-align: center;
    touch-action: manipulation;
    border: 1px solid rgba(255, 111, 139, 0.44);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%),
        linear-gradient(180deg, #27121b 0%, #12090d 100%);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34), 0 0 32px rgba(255, 91, 125, 0.16);
}

.chat-card {
    width: min(760px, 100%);
    padding: 28px 28px 24px;
    text-align: left;
    border-color: rgba(255, 214, 109, 0.26);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
        linear-gradient(180deg, #1b140e 0%, #0f0b08 100%);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.44),
        0 0 34px rgba(255, 212, 95, 0.14),
        0 0 22px rgba(87, 211, 255, 0.08);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 14px;
}

.chat-close-btn {
    min-height: 40px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-main);
    background: linear-gradient(180deg, #2d3650, #182033);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chat-profile-row {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.chat-profile-label {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    color: var(--accent-blue);
}

.chat-profile-input,
.chat-input {
    width: 100%;
    border: 1px solid rgba(255, 219, 138, 0.2);
    border-radius: 16px;
    color: #fff3d0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
        rgba(12, 9, 7, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.chat-profile-input {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 1rem;
}

.chat-connection-note {
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: 14px;
    color: #efe3bf;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
        rgba(21, 18, 13, 0.92);
}

.chat-connection-note[data-state="connected"] {
    color: #dafde8;
}

.chat-connection-note[data-state="error"],
.chat-connection-note[data-state="disabled"] {
    color: #ffd8d1;
}

.chat-messages {
    min-height: 280px;
    max-height: min(46vh, 420px);
    padding: 14px;
    border-radius: 20px;
    overflow-y: auto;
    display: grid;
    gap: 12px;
    background:
        radial-gradient(circle at top, rgba(255, 214, 102, 0.05), transparent 45%),
        rgba(8, 8, 9, 0.86);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.chat-empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #d8ccb5;
    line-height: 1.55;
}

.chat-message {
    padding: 12px 14px;
    border-radius: 18px;
    display: grid;
    gap: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%),
        linear-gradient(180deg, #2a2130 0%, #151019 100%);
    border: 1px solid rgba(255, 171, 191, 0.14);
}

.chat-message.own {
    margin-left: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 100%),
        linear-gradient(180deg, #2b2311 0%, #171108 100%);
    border-color: rgba(255, 214, 102, 0.18);
}

.chat-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.chat-message-name {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff0c1;
}

.chat-message-time {
    font-size: 0.72rem;
    color: #c7bec9;
}

.chat-message-body {
    margin: 0;
    color: #f0e4ca;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-form {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.chat-input {
    min-height: 96px;
    padding: 12px 14px;
    resize: vertical;
    font: inherit;
}

.chat-profile-input:focus,
.chat-input:focus {
    outline: none;
    border-color: rgba(255, 219, 138, 0.42);
    box-shadow:
        inset 0 0 0 1px rgba(255, 219, 138, 0.18),
        0 0 0 3px rgba(255, 212, 95, 0.12);
}

.chat-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.chat-char-count {
    font-size: 0.8rem;
    color: #d9cfb7;
}

.chat-send-btn {
    min-width: 132px;
    min-height: 44px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #1b0d00;
    background: linear-gradient(180deg, #ffe49e, #ffb03b);
    box-shadow: 0 12px 26px rgba(255, 176, 59, 0.18);
}

.result-card {
    border-color: rgba(255, 215, 125, 0.38);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
        linear-gradient(180deg, #23170c 0%, #100c07 100%);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.38),
        0 0 34px rgba(255, 212, 95, 0.14);
}

.result-card.result-regular {
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.38),
        0 0 38px rgba(255, 212, 95, 0.18);
}

.result-card.result-big {
    border-color: rgba(255, 230, 146, 0.56);
    box-shadow:
        0 26px 56px rgba(0, 0, 0, 0.42),
        0 0 46px rgba(255, 212, 95, 0.24),
        0 0 26px rgba(87, 211, 255, 0.14);
}

.result-card.result-jackpot {
    border-color: rgba(255, 244, 190, 0.74);
    box-shadow:
        0 28px 62px rgba(0, 0, 0, 0.44),
        0 0 56px rgba(255, 212, 95, 0.32),
        0 0 34px rgba(87, 211, 255, 0.24);
}

.result-label {
    margin: 0 0 10px;
    letter-spacing: 0.24em;
    font-size: 0.76rem;
    color: var(--accent-blue);
}

.overlay-content h2 {
    margin: 0 0 10px;
    font-size: clamp(2.1rem, 6vw, 3rem);
    letter-spacing: 0.08em;
    color: #fff2c0;
}

#fs-award-count {
    margin: 0;
    color: #ffb9c8;
    font-size: 1.4rem;
    font-weight: 700;
}

.overlay-copy {
    margin: 12px 0 24px;
    color: #e2d8dc;
    line-height: 1.5;
}

.result-amount {
    margin: 10px 0 14px;
    font-size: clamp(2.2rem, 8vw, 4.3rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff8df;
    text-shadow: 0 0 18px rgba(255, 212, 95, 0.24);
}

.result-card.result-big .result-amount {
    color: #fffbe8;
    text-shadow:
        0 0 22px rgba(255, 212, 95, 0.34),
        0 0 16px rgba(87, 211, 255, 0.16);
}

.result-card.result-jackpot .result-amount {
    color: #ffffff;
    text-shadow:
        0 0 30px rgba(255, 212, 95, 0.42),
        0 0 22px rgba(87, 211, 255, 0.28);
}

.result-copy {
    margin: 0 0 24px;
    color: #f0e3ca;
    line-height: 1.55;
}

#fs-start-btn {
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #1b0e00;
    background: linear-gradient(180deg, #ffe28c, #ffb03b);
    box-shadow: 0 10px 24px rgba(255, 176, 59, 0.28);
}

#fs-result-btn {
    border: none;
    border-radius: 999px;
    padding: 14px 30px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #1b0e00;
    background: linear-gradient(180deg, #fff0ae, #ffc34e);
    box-shadow: 0 12px 28px rgba(255, 195, 78, 0.26);
}

.confetti {
    position: absolute;
    top: 0;
    width: 8px;
    height: 16px;
    border-radius: 999px;
    pointer-events: none;
    animation: confettiFall 1.9s ease-in forwards;
    z-index: 25;
}

.counting {
    animation: countingGlow 0.45s ease-in-out infinite alternate;
}

.win-meter-active {
    color: #fff3d2;
}

.win-small {
    color: #ffe08d;
}

.win-regular {
    color: #fff5cb;
    text-shadow: 0 0 12px rgba(255, 212, 95, 0.18);
}

.win-big {
    color: #fff7e0;
    text-shadow: 0 0 18px rgba(255, 212, 95, 0.28);
}

.win-jackpot {
    color: #ffffff;
    text-shadow: 0 0 24px rgba(87, 211, 255, 0.3), 0 0 18px rgba(255, 212, 95, 0.24);
}

@keyframes reelFlicker {
    from {
        filter: brightness(0.95) blur(1px);
    }
    to {
        filter: brightness(1.22) blur(2.6px);
    }
}

@keyframes reelSettle {
    0% {
        transform: translateY(-6px) scaleY(1.02);
    }
    60% {
        transform: translateY(4px) scaleY(0.99);
    }
    100% {
        transform: translateY(0) scaleY(1);
    }
}

@keyframes anticipationGlow {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.28);
    }
}

@keyframes winSymbol {
    from {
        transform: scale(1);
        filter: brightness(1);
    }
    to {
        transform: scale(1.08);
        filter: brightness(1.35);
    }
}

@keyframes cabinetPulse {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-1px);
    }
}

@keyframes countingGlow {
    from {
        text-shadow: 0 0 0 rgba(255, 214, 102, 0.1);
    }
    to {
        text-shadow: 0 0 18px rgba(255, 214, 102, 0.34);
    }
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift, 0), 420px, 0) rotate(480deg);
    }
}

@keyframes linePulse {
    from {
        stroke-width: 5;
        opacity: 0.76;
    }
    to {
        stroke-width: 7;
        opacity: 1;
    }
}

@media (max-width: 900px) {
    body {
        padding: 16px;
    }

    .game-container {
        padding: 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .controls {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .main-btn {
        justify-self: center;
    }

    .secondary-controls,
    .sound-controls,
    .bet-controls {
        width: 100%;
    }

    .slot-machine {
        height: 360px;
    }

    .header-content {
        align-items: start;
        flex-direction: column;
    }

    .header-side {
        width: 100%;
        align-items: stretch;
        min-width: 0;
    }

    .feature-tease {
        align-items: flex-start;
        text-align: left;
    }

    .chat-card {
        padding: 24px 22px 20px;
    }
}

@media (max-width: 640px) {
    .game-container {
        padding: 16px;
        border-radius: 22px;
    }

    .slot-machine {
        padding: 12px;
        height: 320px;
    }

    .reels-container {
        gap: 6px;
    }

    .reel-card-slot {
        left: 3px;
        right: 3px;
        padding: 3px 1px;
    }

    .reel-card-face {
        border-radius: 14px;
    }

    .symbol .icon {
        font-size: clamp(1.55rem, 5vw, 2.3rem);
    }

    .symbol .name {
        font-size: 0.6rem;
    }

    .bet-controls {
        width: 100%;
    }

    .sound-menu {
        width: 100%;
    }

    .bet-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sound-menu-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chat-card {
        padding: 22px 18px 18px;
    }

    .chat-header {
        flex-direction: column;
    }

    .chat-close-btn,
    .chat-send-btn,
    .chat-open-btn {
        width: 100%;
    }

    .chat-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-message.own {
        margin-left: 0;
    }
}
