﻿@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --bg-0: #071015;
    --bg-1: #0f1f26;
    --bg-2: #152d36;
    --panel: rgba(9, 24, 31, 0.78);
    --panel-strong: rgba(13, 33, 42, 0.92);
    --line: rgba(124, 220, 173, 0.34);
    --line-soft: rgba(124, 220, 173, 0.16);
    --gold: #ffd166;
    --mint: #7ce7c1;
    --mint-strong: #44d39f;
    --danger: #ff5d5d;
    --ink: #f2f6f7;
    --muted: #a9c1c7;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.35);
    --transition: 220ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 16px;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(1200px 700px at -15% -20%, rgba(255, 209, 102, 0.2), transparent 55%),
        radial-gradient(1100px 700px at 115% 0%, rgba(68, 211, 159, 0.2), transparent 52%),
        linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(65px);
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
}

body::selection {
    background: rgba(255, 209, 102, 0.28);
}

.ambient-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

body::before {
    top: -140px;
    left: -120px;
    background: #ffd166;
}

body::after {
    right: -120px;
    bottom: -120px;
    background: #44d39f;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    transition: box-shadow 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.live-wins-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    margin: -6px 0 16px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 209, 102, 0.3);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(40, 33, 10, 0.55), rgba(18, 23, 25, 0.7));
}

.live-wins-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    color: #1b170a;
    background: linear-gradient(180deg, #ffe08a, #f0bc46);
    border-radius: 999px;
    padding: 4px 8px;
}

.live-wins-track {
    min-height: 20px;
    color: #f2ddb0;
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header h1,
.header h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--gold);
    text-shadow: 0 0 28px rgba(255, 209, 102, 0.26);
    line-height: 1.1;
}

.header h1 {
    font-size: 1.55rem;
}

.header h2 {
    font-size: 1.25rem;
}

.balance {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--mint);
    background: linear-gradient(180deg, rgba(10, 31, 39, 0.92), rgba(8, 24, 30, 0.92));
    border: 1px solid rgba(124, 231, 193, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(124, 231, 193, 0.08);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(8, 26, 33, 0.8);
    color: var(--gold);
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.back-btn:hover {
    transform: translateY(-1px);
    background: rgba(16, 44, 54, 0.95);
    border-color: rgba(255, 209, 102, 0.7);
}

.games-menu {
    display: grid;
    gap: 14px;
    margin: 8px 0 18px;
}

.game-card {
    background:
        linear-gradient(120deg, rgba(124, 231, 193, 0.11), transparent 45%),
        linear-gradient(180deg, rgba(8, 25, 32, 0.95), rgba(12, 32, 40, 0.95));
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    display: grid;
    gap: 6px;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 209, 102, 0.6);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 209, 102, 0.12) inset;
}

.game-card:active {
    transform: translateY(-1px) scale(0.99);
}

.table-card {
    padding: 14px;
    margin: 12px 0;
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(9, 28, 36, 0.95), rgba(10, 23, 30, 0.95));
    box-shadow: var(--shadow-md);
}

.table-card h3 {
    margin-bottom: 10px;
    color: var(--mint);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.table-form {
    display: grid;
    gap: 8px;
}

.table-form label {
    color: var(--muted);
    font-size: 0.82rem;
}

.table-form select,
.table-actions-row input,
.table-play-controls input,
.table-play-controls select {
    width: 100%;
    padding: 10px 11px;
    border-radius: 11px;
    border: 1px solid rgba(124, 231, 193, 0.36);
    background: rgba(9, 27, 34, 0.94);
    color: var(--ink);
    outline: none;
}

.table-form select:focus,
.table-actions-row input:focus,
.table-play-controls input:focus,
.table-play-controls select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.16);
}

.table-summary {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--line-soft);
    background: rgba(10, 29, 36, 0.8);
    color: #cfe6dc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.table-actions-row {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.table-list {
    display: grid;
    gap: 8px;
}

.table-invite-item {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 209, 102, 0.24);
    background: rgba(21, 30, 35, 0.9);
}

.table-invite-top {
    color: #def3eb;
    font-size: 0.9rem;
}

.table-invite-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.table-play-empty {
    color: var(--muted);
    font-size: 0.9rem;
}

.table-play-controls {
    display: grid;
    gap: 8px;
}

.table-play-controls .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dice-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(124, 231, 193, 0.24);
    background: rgba(8, 25, 31, 0.62);
}

.dice-box {
    text-align: center;
}

.dice-title {
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.dice-vs {
    font-family: 'Orbitron', sans-serif;
    color: var(--gold);
    opacity: 0.9;
}

.dice-face {
    font-size: 2.1rem;
    line-height: 1;
    border-radius: 10px;
    padding: 8px 4px;
    border: 1px solid rgba(255, 209, 102, 0.3);
    background: rgba(18, 37, 44, 0.9);
}

.dice-face.rolling {
    animation: diceShake 110ms linear infinite;
}

.dice-face.stopped {
    animation: diceStop 300ms ease;
}

@keyframes diceShake {
    0% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-1px) rotate(4deg); }
    66% { transform: translateY(1px) rotate(-4deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes diceStop {
    0% { transform: scale(0.9); }
    65% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.game-icon {
    font-size: 2.4rem;
    filter: drop-shadow(0 4px 10px rgba(255, 209, 102, 0.2));
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.12rem;
    color: var(--gold);
}

.game-desc {
    color: var(--muted);
    font-size: 0.92rem;
}

.roulette-wheel-container {
    width: min(330px, 100%);
    aspect-ratio: 1;
    margin: 12px auto 20px;
    position: relative;
    display: grid;
    place-items: center;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #cb4d4d 0deg 9.73deg,
        #151617 9.73deg 19.46deg,
        #cb4d4d 19.46deg 29.19deg,
        #151617 29.19deg 38.92deg,
        #cb4d4d 38.92deg 48.65deg,
        #151617 48.65deg 58.38deg,
        #cb4d4d 58.38deg 68.11deg,
        #151617 68.11deg 77.84deg,
        #cb4d4d 77.84deg 87.57deg,
        #151617 87.57deg 97.3deg,
        #cb4d4d 97.3deg 107.03deg,
        #151617 107.03deg 116.76deg,
        #cb4d4d 116.76deg 126.49deg,
        #151617 126.49deg 136.22deg,
        #cb4d4d 136.22deg 145.95deg,
        #151617 145.95deg 155.68deg,
        #cb4d4d 155.68deg 165.41deg,
        #151617 165.41deg 175.14deg,
        #cb4d4d 175.14deg 184.87deg,
        #151617 184.87deg 194.6deg,
        #cb4d4d 194.6deg 204.33deg,
        #151617 204.33deg 214.06deg,
        #cb4d4d 214.06deg 223.79deg,
        #151617 223.79deg 233.52deg,
        #cb4d4d 233.52deg 243.25deg,
        #151617 243.25deg 252.98deg,
        #cb4d4d 252.98deg 262.71deg,
        #151617 262.71deg 272.44deg,
        #cb4d4d 272.44deg 282.17deg,
        #151617 282.17deg 291.9deg,
        #cb4d4d 291.9deg 301.63deg,
        #151617 301.63deg 311.36deg,
        #cb4d4d 311.36deg 321.09deg,
        #151617 321.09deg 330.82deg,
        #cb4d4d 330.82deg 340.55deg,
        #151617 340.55deg 350.28deg,
        #2fae73 350.28deg 360deg
    );
    border: 6px solid rgba(255, 209, 102, 0.88);
    box-shadow: 0 0 0 8px rgba(255, 209, 102, 0.07), 0 16px 28px rgba(0, 0, 0, 0.42);
    transition: transform 1.3s cubic-bezier(0.2, 0.85, 0.25, 1);
    will-change: transform;
}

.roulette-wheel::after {
    content: '';
    position: absolute;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 2px solid rgba(255, 209, 102, 0.72);
    background: radial-gradient(circle at 35% 35%, #173b48, #0b2028 70%);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.15);
}

.ball {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-140px);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.64));
    will-change: transform;
    z-index: 2;
}

.ball.spinning {
    filter: drop-shadow(0 0 14px rgba(255, 209, 102, 0.82));
}

.result-display,
.bet-section,
.dealer-area,
.player-area,
.slot-machine,
.history,
.game-info {
    background: linear-gradient(180deg, rgba(9, 28, 36, 0.95), rgba(10, 23, 30, 0.95));
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.result-win {
    animation: resultWinPulse 620ms ease;
}

.result-lose {
    animation: resultLoseShake 440ms ease;
}

@keyframes resultWinPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(124, 231, 193, 0); }
    40% { transform: scale(1.04); box-shadow: 0 0 28px rgba(124, 231, 193, 0.42); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(124, 231, 193, 0); }
}

@keyframes resultLoseShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.result-display {
    margin: 14px 0 18px;
    padding: 14px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.1rem, 7vw, 3rem);
    color: var(--gold);
}

.bet-section {
    padding: 14px;
    margin: 12px 0;
}

.compact-section {
    margin-top: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.bet-section h3,
.dealer-area h3,
.player-area h3,
.bet-choices h3 {
    margin-bottom: 12px;
    color: var(--mint);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.color-bets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.bet-btn,
.action-btn,
.bet-amount,
.spin-btn,
.menu-btn,
.custom-bet button {
    border: none;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), opacity var(--transition);
}

.bet-btn {
    min-height: 42px;
    padding: 8px;
    color: #fff;
    font-size: 0.92rem;
}

.bet-btn.red { background: linear-gradient(180deg, #df5252, #bb3f3f); }
.bet-btn.black { background: linear-gradient(180deg, #404040, #222); }
.bet-btn.green { background: linear-gradient(180deg, #48d78e, #2fae73); color: #07311d; }

.bet-btn:hover,
.action-btn:hover,
.bet-amount:hover,
.spin-btn:hover,
.menu-btn:hover,
.custom-bet button:hover,
.number-btn:hover,
.bet-down:hover,
.bet-up:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.number-btn {
    aspect-ratio: 1;
    border: 1px solid rgba(124, 231, 193, 0.45);
    border-radius: 10px;
    background: rgba(14, 42, 52, 0.9);
    color: #dff7ef;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.number-btn:hover {
    border-color: var(--gold);
    background: rgba(39, 76, 88, 0.95);
}

.custom-bet {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin: 16px 0 6px;
}

.custom-bet input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 11px;
    border: 1px solid rgba(124, 231, 193, 0.36);
    background: rgba(9, 27, 34, 0.94);
    color: var(--ink);
    outline: none;
}

.custom-bet input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.16);
}

.custom-bet button {
    padding: 11px 14px;
    background: linear-gradient(180deg, #ffe28f, #f7bf47);
    color: #1f1a0b;
}

.dealer-area,
.player-area,
.slot-machine,
.history,
.game-info {
    padding: 14px;
    margin: 12px 0;
}

.cards {
    min-height: 120px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    width: 76px;
    height: 108px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.12rem;
    font-weight: 700;
    background: linear-gradient(150deg, #ffffff, #e8eef2);
    border: 1px solid rgba(9, 21, 28, 0.25);
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.3);
    animation: slideIn 240ms ease;
}

.card.dealing {
    animation: dealCard 260ms cubic-bezier(0.15, 0.72, 0.28, 1.1);
}

@keyframes slideIn {
    from {
        transform: translateY(8px) scale(0.94);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes dealCard {
    from {
        transform: translateY(-24px) scale(0.86) rotate(-6deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1) rotate(0);
        opacity: 1;
    }
}

.card.red { color: #d63b3b; }
.card.black { color: #131313; }

.score {
    margin-top: 10px;
    text-align: center;
    color: var(--gold);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.12rem;
}

.actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.action-btn {
    min-height: 46px;
    color: #fff;
    font-size: 1rem;
}

.action-btn:first-child {
    background: linear-gradient(180deg, #49ca8f, #2f9d69);
}

.action-btn:last-child {
    background: linear-gradient(180deg, #ff6d6d, #d94a4a);
}

.bet-choices {
    text-align: center;
}

.bet-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bet-amount {
    min-height: 44px;
    border: 1px solid rgba(124, 231, 193, 0.35);
    color: #def8ef;
    background: rgba(11, 34, 42, 0.9);
}

.bet-amount:hover {
    border-color: rgba(255, 209, 102, 0.65);
    background: rgba(17, 49, 59, 0.95);
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.slot-grid.spinning .slot-cell {
    animation: reelSpin 150ms linear infinite;
    filter: blur(0.8px) saturate(1.15);
}

.slot-cell {
    aspect-ratio: 1;
    border-radius: 14px;
    border: 1px solid rgba(124, 231, 193, 0.42);
    background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.08), rgba(7, 26, 33, 0.95));
    display: grid;
    place-items: center;
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    box-shadow: inset 0 0 0 1px rgba(124, 231, 193, 0.08);
    animation: spinCell 500ms ease;
}

.slot-cell.stopped {
    animation: slotStop 280ms cubic-bezier(0.17, 0.82, 0.29, 1.2);
}

@keyframes spinCell {
    from {
        transform: scale(0.9) rotate(-10deg);
        opacity: 0.45;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes reelSpin {
    0% { transform: translateY(0) scale(0.98); }
    50% { transform: translateY(2px) scale(1.02); }
    100% { transform: translateY(0) scale(0.98); }
}

@keyframes slotStop {
    0% { transform: scale(0.86); filter: brightness(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}

.multipliers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 14px 0;
}

.multiplier-item {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 102, 0.4);
    background: rgba(31, 46, 38, 0.86);
    color: #f6e5b1;
    font-size: 0.86rem;
    font-weight: 700;
}

.slot-controls {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin: 14px 0;
}

.bet-selector {
    display: grid;
    grid-template-columns: 42px 1fr 42px auto;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid var(--line-soft);
    background: rgba(8, 27, 34, 0.92);
    padding: 6px;
}

.bet-down,
.bet-up {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffe18b, #efb63f);
    color: #241b08;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
}

.bet-value {
    text-align: center;
    color: var(--mint);
    font-weight: 700;
    font-size: 1.02rem;
}

.bet-currency {
    color: #f5df9e;
    font-size: 0.92rem;
    font-weight: 700;
    padding-right: 4px;
}

.spin-btn {
    min-height: 54px;
    color: #1f1a0b;
    background: linear-gradient(180deg, #ffe08a, #f0bc46);
    font-size: 1.03rem;
}

.spin-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.game-info {
    display: grid;
    gap: 6px;
}

.bet-info,
.lines-info,
.win-info,
.multiplier-info,
.game-result {
    color: #d6ecf0;
    font-size: 0.95rem;
}

.history {
    max-height: 190px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 231, 193, 0.35) transparent;
}

.history-item {
    padding: 7px 0;
    border-bottom: 1px solid rgba(124, 231, 193, 0.2);
    color: #bfead9;
    font-size: 0.9rem;
}

.history-item:last-child {
    border-bottom: none;
}

.bottom-menu {
    margin-top: 24px;
    text-align: center;
}

.menu-btn {
    min-height: 44px;
    padding: 8px 22px;
    color: #fff;
    background: linear-gradient(180deg, #ff6e6e, #d84949);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 66px;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: min(92vw, 480px);
    text-align: center;
    padding: 12px 16px;
    border-radius: 14px;
    color: #ebfbf5;
    font-weight: 600;
    background: rgba(6, 25, 32, 0.95);
    border: 1px solid rgba(124, 231, 193, 0.38);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
    animation: slideUp 180ms ease;
}

.tgk-fab {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1001;
    border: 1px solid rgba(124, 231, 193, 0.52);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #def8ef;
    background: rgba(8, 28, 35, 0.9);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.tgk-fab:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    border-color: rgba(255, 209, 102, 0.66);
}

.fx-win {
    border-color: rgba(124, 231, 193, 0.68);
    box-shadow: 0 0 0 1px rgba(124, 231, 193, 0.18), 0 24px 60px rgba(54, 192, 136, 0.3);
}

.fx-lose {
    border-color: rgba(255, 93, 93, 0.56);
    box-shadow: 0 0 0 1px rgba(255, 93, 93, 0.16), 0 24px 60px rgba(186, 56, 56, 0.3);
}

.fx-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.fx-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    opacity: 0;
    animation-name: particleBurst;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.fx-particle.win {
    background: linear-gradient(180deg, #ffe08b, #7ce7c1);
}

.fx-particle.lose {
    background: linear-gradient(180deg, #ff9f9f, #ff5d5d);
}

.fx-particle.neutral {
    background: linear-gradient(180deg, #ffe4a6, #ffd166);
}

@keyframes particleBurst {
    0% {
        transform: translate(0, 0) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0.35) rotate(200deg);
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(18px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 560px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 14px;
        border-radius: 18px;
    }

    .header h1 {
        font-size: 1.22rem;
    }

    .header h2 {
        font-size: 1.08rem;
    }

    .balance {
        font-size: 0.82rem;
        padding: 7px 11px;
    }

    .roulette-wheel-container {
        width: min(292px, 100%);
    }

    .custom-bet {
        grid-template-columns: 1fr;
    }

    .slot-controls {
        grid-template-columns: 1fr;
    }

    .color-bets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .table-actions-row {
        grid-template-columns: 1fr;
    }

    .table-play-controls .row {
        grid-template-columns: 1fr;
    }

    .dice-arena {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
