/* Main page (index.php) modern styles */
.main-container {
    max-width: 700px;
    margin: 36px auto 36px auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0 8px;
}
.welcome-card {
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 32px 24px 18px 24px;
    text-align: center;
}
.main-title {
    font-size: 2.1em;
    color: #007bff;
    margin-bottom: 10px;
}
.main-desc {
    font-size: 1.13em;
    color: #444;
    margin-bottom: 0;
}
.section-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 24px 20px 18px 20px;
    margin-bottom: 0;
}
.section-card h3 {
    font-size: 1.25em;
    color: #222;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-icon {
    font-size: 1.2em;
    margin-right: 2px;
}
.section-list {
    margin: 0 0 0 18px;
    padding: 0;
    list-style: disc inside;
    font-size: 1.08em;
    color: #333;
}
.sub-list {
    margin: 8px 0 0 18px;
    padding: 0;
    list-style: circle inside;
    font-size: 0.98em;
    color: #444;
}
.rules-img {
    max-width: 220px;
    width: 100%;
    margin: 12px auto 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
@media (max-width: 700px) {
    .main-container { max-width: 99vw; }
    .welcome-card, .section-card { padding: 12px 4vw 10px 4vw; }
    .main-title { font-size: 1.3em; }
}
/* Withdraw Form Styles */
.withdraw-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    max-width: 420px;
    margin: 32px auto 32px auto;
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.withdraw-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.withdraw-range-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.withdraw-form input[type="range"] {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.withdraw-notes {
    font-size: 0.98em;
    color: #666;
    margin-top: 12px;
    text-align: left;
    width: 100%;
}
.withdraws-page {
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 20px 24px;
}
.withdraws-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe7f3;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(18, 38, 63, 0.10);
    padding: 32px 30px 26px;
}
.withdraws-title {
    margin: 0 0 10px;
    color: #17324d;
    font-size: 2.35rem;
    line-height: 1.1;
}
.withdraws-desc {
    margin: 0 0 24px;
    color: #58708a;
    font-size: 1.04rem;
    line-height: 1.6;
}
.withdraws-table-wrap {
    overflow-x: auto;
    padding-bottom: 6px;
}
.withdraws-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0 10px;
}
.withdraws-table th,
.withdraws-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: middle;
}
.withdraws-table th {
    color: #4c5d70;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: transparent;
    border-bottom: 0;
    padding-bottom: 8px;
}
.withdraws-table tbody tr td {
    background: #ffffff;
    border-top: 1px solid #e7eef6;
    border-bottom: 1px solid #e7eef6;
}
.withdraws-table tbody tr td:first-child {
    border-left: 1px solid #e7eef6;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}
.withdraws-table tbody tr td:last-child {
    border-right: 1px solid #e7eef6;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}
.withdraws-table tbody tr:hover td {
    background: #f4f9ff;
}
.wallet-cell {
    font-family: monospace;
    letter-spacing: 0.04em;
    color: #24384d;
    white-space: nowrap;
}
.withdraw-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e7f1ff;
    color: #175ea8;
    font-size: 0.85rem;
    font-weight: bold;
}

.withdraw-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.withdraw-status-pill.status-pending {
    background: #fff2cf;
    color: #8f5b00;
}

.withdraw-status-pill.status-completed {
    background: #def7e8;
    color: #1c6b3f;
}

.withdraw-status-pill.status-cancelled {
    background: #fde2e2;
    color: #8f2323;
}
.withdraws-empty {
    color: #6a7b8f;
    text-align: center;
    white-space: normal;
}
.withdraws-table tbody td:nth-child(1) {
    width: 24%;
    white-space: nowrap;
    color: #203244;
}
.withdraws-table tbody td:nth-child(2) {
    width: 36%;
}
.withdraws-table tbody td:nth-child(3) {
    width: 22%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.withdraws-table tbody td:nth-child(4) {
    width: 18%;
}
@media (max-width: 600px) {
    .withdraw-container {
        max-width: 98vw;
        padding: 10px 2vw;
    }
    .withdraw-form {
        gap: 10px;
    }
    .withdraws-card {
        padding: 20px 14px 16px;
    }
    .withdraws-title {
        font-size: 1.7rem;
    }
    .withdraws-desc {
        font-size: 0.96rem;
        margin-bottom: 18px;
    }
    .withdraws-page {
        padding: 0 10px 20px;
    }
    .withdraws-table {
        min-width: 680px;
    }
    .withdraws-table th,
    .withdraws-table td {
        padding: 14px 12px;
    }
}
/* Registration Form Styles */
.register-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    max-width: 420px;
    margin: 32px auto 32px auto;
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.register-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #007bff;
    text-align: center;
}
.register-desc {
    font-size: 1.08em;
    color: #444;
    margin-bottom: 22px;
    text-align: center;
}
.register-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-control {
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 1em;
    background: #f8fafc;
    transition: border 0.2s;
}
.form-control:focus {
    border: 1.5px solid #007bff;
    outline: none;
    background: #fff;
}
.register-btn {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.register-btn:hover {
    background: #0056b3;
}
.captcha-group {
    margin-bottom: 0;
}
.captcha-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.captcha-img {
    width: 100%;
    max-width: 260px;
    height: auto;
}
@media (min-width: 420px) {
    .captcha-row {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .captcha-img {
        height: 38px;
        width: auto;
    }
}
.captcha-input {
    flex: 1;
    min-width: 0;
}
.captcha-img {
    border-radius: 6px;
    border: 1px solid #cfd8dc;
    background: #f4f4f4;
}
@media (max-width: 600px) {
    .register-container {
        max-width: 98vw;
        padding: 10px 2vw;
    }
    .register-title {
        font-size: 1.3em;
    }
    .register-form {
        gap: 10px;
    }
}
/* Podbarvení řádků v tabulce sázek */
.bet-win {
    background-color: #e6ffe6 !important;
}
.bet-lose {
    background-color: #ffeaea !important;
}
/* Statistiky - tabulka */
.stats-table {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 18px auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    font-size: 1.08em;
}
.stats-table th, .stats-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.stats-table th {
    background: #f4f4f4;
    font-weight: bold;
    width: 60%;
}
.stats-table tr:last-child td, .stats-table tr:last-child th {
    border-bottom: none;
}
.stats-table td {
    background: #fff;
}
.stats-table tr:hover td {
    background: #eaf4ff;
}
.won-cell {
    color: #1ca91c;
    font-weight: bold;
}
.lost-cell {
    color: #d32f2f;
    font-weight: bold;
}
@media (max-width: 600px) {
    .stats-table { font-size: 0.98em; }
    .stats-table th, .stats-table td { padding: 8px 6px; }
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    flex: 1;
}
header {
    background: #333;
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
    text-align: center;
}
header h1 {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px #aaa;
    margin: 0;
}
header nav {
    margin: 20px 0;
}
header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    margin: 0 10px;
    transition: color 0.3s;
}
header a:hover {
    color: #77aaff;
}
hr {
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #333, #ccc);
    margin: 20px 0;
}
.content {
    padding: 20px;
    background: #fff;
    margin-top: 20px;
    word-wrap: break-word; /* Zalamování textu */
}
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto; /* Umožňuje zápatí být na konci stránky */
}
.wallet-address {
    display: inline-block;
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}
.navbar {
    overflow: hidden;
    background-color: #333;
    position: relative;
}
.navbar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
.navbar a:hover {
    background-color: #ddd;
    color: black;
}
.navbar a.active {
    background-color: #4CAF50;
    color: white;
}
.navbar .icon {
    display: none;
}
.dropdown {
    float: left;
    overflow: hidden;
}
.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}
.navbar a:hover, .dropdown:hover .dropbtn {
    background-color: red;
    color: white;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}
.dropdown-content a:hover {
    background-color: #ddd;
    color: black;
}
.dropdown:hover .dropdown-content {
    display: block;
}
@media screen and (max-width: 600px) {
    .navbar a:not(:first-child), .dropdown .dropbtn {
        display: none;
    }
    .navbar a.icon {
        float: right;
        display: block;
    }
}
@media screen and (max-width: 600px) {
    .navbar.responsive {position: relative;}
    .navbar.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .navbar.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .navbar.responsive .dropdown {float: none;}
    .navbar.responsive .dropdown-content {position: relative;}
    .navbar.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
}
.language-selector {
    text-align: right;
    margin: 10px 0;
}
.language-selector select {
    padding: 5px;
    font-size: 16px;
}
.game-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px 18px 18px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 420px;
    margin: 0 auto;
}
.bet-label {
    font-weight: bold;
    font-size: 1.1em;
}
.min-max-bet {
    font-size: 0.95em;
    color: #888;
    margin-top: 2px;
}
#bet_amount {
    width: 100%;
    margin: 10px 0 0 0;
}
#betOutput {
    font-weight: bold;
    margin-left: 8px;
    color: #007bff;
}
.choice-label {
    display: block;
    margin: 18px 0 8px 0;
    font-weight: bold;
    font-size: 1.1em;
}
.choices-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
}
.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f4f4f4;
    border-radius: 8px;
    padding: 8px 6px 4px 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s, background 0.2s;
    min-width: 60px;
    min-height: 70px;
    font-size: 0.98em;
}
.choice-btn span:first-child {
    margin-bottom: 4px;
}
.choices-container input[type="radio"] {
    display: none;
}
.choices-container input[type="radio"]:checked + label {
    border: 2px solid #007bff;
    background: #e6f0ff;
}
.bet-btn {
    margin-top: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.bet-btn:hover {
    background: #0056b3;
}
/* ========== GAME SELECTOR GRID / MŘÍŽKA VÝBĚRU HRY / GRID PEMILIHAN GAME ========== */

/**
 * Container pro všechny hry (Container for all games)
 * Kontainer untuk semua game
 * Контейнер для всех игр
 */
.games-container {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
}

.games-container h1 {
    text-align: center;
    font-size: 2.2em;
    color: #007bff;
    margin-bottom: 40px;
    font-weight: bold;
}

/**
 * Mřížka her - Responsivní design (Game grid - Responsive design)
 * Grid game - Desain responsif
 * Сетка игр - Адаптивный дизайн
 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/**
 * Karta hry - Jednotlivý prvek v mřížce (Game card - Individual grid item)
 * Kartu game - Item grid individual
 * Карточка игры - Отдельный элемент сетки
 */
.game-card {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
    background: linear-gradient(135deg, #e6f0ff 0%, #f0f8ff 100%);
    border: 2px solid #007bff;
}

/**
 * Emoji ikona hry (Game emoji icon)
 * Ikon emoji game
 * Эмоджи-иконка игры
 */
.game-emoji {
    font-size: 3.6em;
    margin-bottom: 14px;
    display: block;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * Název hry (Game title)
 * Judul game
 * Название игры
 */
.game-title {
    font-size: 1.4em;
    color: #222;
    margin: 8px 0 12px 0;
    font-weight: bold;
    line-height: 1.4;
}

/**
 * Popis hry (Game description)
 * Deskripsi game
 * Описание игры
 */
.game-description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

/**
 * Rozsah sázky (Bet range)
 * Jangkauan sazaran
 * Диапазон ставок
 */
.bet-range {
    background: #f4f4f4;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    margin-bottom: 16px;
    font-size: 0.9em;
}

.bet-range p {
    margin: 6px 0;
    color: #333;
}

.bet-range strong {
    color: #007bff;
    font-weight: 600;
}

/**
 * Tlačítko hry (Play button)
 * Tombol mainkan
 * Кнопка "Играть"
 */
.play-button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    display: inline-block;
    width: 100%;
    text-align: center;
}

.play-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #0056b3 0%, #003d7a 100%);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
}

.play-button:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .game-form { max-width: 98vw; padding: 10px; }
    .choices-container { gap: 2px; }
    .choice-btn { min-width: 40px; min-height: 50px; font-size: 0.9em; }
    .choice-btn span:first-child { font-size: 1.3em; }
    
    /* Game grid mobile adjustments (Mobilní úpravy mřížky her) */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .games-container h1 {
        font-size: 1.6em;
        margin-bottom: 24px;
    }
    
    .game-emoji {
        font-size: 2.8em;
        height: 60px;
    }
    
    .game-title {
        font-size: 1.2em;
    }
    
    .game-description {
        font-size: 0.85em;
    }
}
/* ============================================================
   CryptoGame - Branding & Header (v2)
   ============================================================ */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #0d1117; color: #c9d1d9; margin: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.main-content { padding-top: 24px; padding-bottom: 48px; }
a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Site Header ---- */
.site-header { background: #161b22; border-bottom: 1px solid #30363d; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; flex-direction: column; gap: 0; }

/* ---- Brand Bar ---- */
.brand-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; }
.brand-name { font-size: 1.7em; font-weight: 900; color: #c9d1d9; letter-spacing: -0.5px; }
.brand-accent { color: #f7b731; }

.lang-select { background: #21262d; color: #c9d1d9; border: 1px solid #30363d; border-radius: 6px; padding: 6px 10px; font-size: 0.9em; cursor: pointer; }
.lang-select:focus { outline: none; border-color: #58a6ff; }

/* ---- Navbar ---- */
.navbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px 0 8px; }
.navbar a { color: #8b949e; padding: 6px 12px; border-radius: 6px; font-size: 0.9em; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.navbar a:hover, .navbar a.active { background: #21262d; color: #f0f6fc; text-decoration: none; }
.navbar a.nav-play { background: linear-gradient(135deg, #238636, #2ea043); color: #fff !important; font-weight: 600; }
.navbar a.nav-play:hover { background: linear-gradient(135deg, #2ea043, #3fb950); }
.navbar a.nav-register { background: linear-gradient(135deg, #1f6feb, #388bfd); color: #fff !important; font-weight: 600; }
.navbar a.icon { display: none; }
.nav-info, .nav-balance { font-size: 0.85em; color: #8b949e; padding: 6px 12px; }
.nav-balance { color: #f7b731; font-weight: 600; }

/* ---- Wallet Bar ---- */
.wallet-bar { background: #0d1117; border-top: 1px solid #21262d; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.wallet-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wallet-label { font-size: 0.78em; color: #8b949e; white-space: nowrap; }
.wallet-address { font-size: 0.78em; color: #58a6ff; word-break: break-all; }
.wallet-address:hover { color: #79c0ff; }
.wallet-coin { font-size: 0.7em; font-weight: 700; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.wallet-coin.xmr { background: #ff6600; color: #fff; }
.wallet-coin.ltc { background: #345d9d; color: #fff; }

/* ============================================================
   CryptoGame - Hero Section
   ============================================================ */
.hero-section { background: linear-gradient(135deg, #0d1117 0%, #1a237e 50%, #0d1117 100%); border-radius: 12px; padding: 60px 24px; text-align: center; margin-bottom: 40px; }
.hero-logo { width: 90px; height: 90px; margin-bottom: 20px; filter: drop-shadow(0 4px 12px rgba(247,183,49,.5)); }
.hero-title { font-size: 2.4em; font-weight: 900; color: #f0f6fc; margin: 0 0 12px; letter-spacing: -1px; }
.hero-sub { font-size: 1.1em; color: #8b949e; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { background: linear-gradient(135deg, #f7b731, #e67e22); color: #1a237e; font-weight: 800; font-size: 1.1em; padding: 14px 28px; border-radius: 8px; text-decoration: none; transition: transform 0.15s; }
.btn-hero-primary:hover { transform: scale(1.04); text-decoration: none; color: #1a237e; }
.btn-hero-secondary { background: transparent; color: #58a6ff; border: 2px solid #58a6ff; font-weight: 600; font-size: 1em; padding: 12px 24px; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.btn-hero-secondary:hover { background: rgba(88,166,255,.12); text-decoration: none; }
.btn-outline { background: transparent; color: #58a6ff; border: 2px solid #58a6ff; font-size: 0.95em; padding: 10px 24px; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.btn-outline:hover { background: rgba(88,166,255,.12); text-decoration: none; }

/* ============================================================
   CryptoGame - Section Layout
   ============================================================ */
.section-block { margin-bottom: 48px; }
.section-title { font-size: 1.7em; font-weight: 800; color: #f0f6fc; margin: 0 0 24px; }
.game-card-actions { display: flex; gap: 8px; margin-top: 8px; }
.rules-link { background: #21262d; color: #8b949e; padding: 8px 16px; border-radius: 6px; font-size: 0.9em; text-align: center; flex: 1; transition: background 0.15s; }
.rules-link:hover { background: #30363d; color: #c9d1d9; text-decoration: none; }

.play-button,
.rules-link,
.btn-hero-primary,
.btn-hero-secondary,
.btn-outline,
.register-btn,
.bet-btn {
    min-height: 44px;
}

/* Higher contrast card styles for index preview game tiles */
.games-preview-grid .game-card {
    border: 1px solid #365275;
    box-shadow: 0 10px 24px rgba(7, 17, 29, 0.35);
}

.games-preview-grid .game-description {
    color: #5b6673;
}

.games-preview-grid .bet-range {
    background: #d7dee8;
    border: 1px solid #b4c2d5;
    color: #253648;
    font-weight: 600;
}

.games-preview-grid .game-economy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.games-preview-grid .economy-payout {
    color: #1a3650;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.games-preview-grid .economy-divider {
    color: #5f7288;
    font-weight: 700;
}

.games-preview-grid .economy-bet {
    color: #30465e;
    font-weight: 700;
}

.games-preview-grid .rules-link {
    background: #2a3646;
    border: 1px solid #445a75;
    color: #e8eef6;
    font-weight: 600;
}

.games-preview-grid .rules-link:hover {
    background: #34465d;
    color: #ffffff;
}

/* Subtle page-load motion for cards */
.reveal-rise {
    opacity: 0;
    transform: translateY(14px);
    animation: riseIn 0.45s ease forwards;
    animation-delay: calc(var(--card-index, 0) * 0.04s);
}

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Graphical withdraw success state */
.withdraw-success {
    max-width: 560px;
    margin: 26px auto;
    padding: 26px 22px;
    border-radius: 16px;
    background: linear-gradient(160deg, #10263e 0%, #0f1e32 100%);
    border: 1px solid #28486a;
    box-shadow: 0 14px 32px rgba(6, 16, 26, 0.45);
    color: #dce9f8;
}

.withdraw-success-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f2f1e;
    background: #5fe08b;
    border: 2px solid #80efaa;
}

.withdraw-success-title {
    margin: 0 0 8px;
    color: #f3f8ff;
    font-size: 1.55rem;
}

.withdraw-success-text,
.withdraw-success-eta {
    margin: 0 0 8px;
    color: #b4c7db;
    line-height: 1.55;
}

.withdraw-success-details {
    margin-top: 16px;
    background: rgba(11, 27, 45, 0.72);
    border: 1px solid #2b4868;
    border-radius: 12px;
    padding: 14px;
}

.withdraw-success-details h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #d7e8fb;
}

.withdraw-success-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-top: 1px solid rgba(69, 98, 128, 0.5);
    font-size: 0.94rem;
}

.withdraw-success-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.withdraw-success-row span {
    color: #9db4cc;
}

.withdraw-success-row strong {
    color: #f1f6ff;
    text-align: right;
}

.withdraw-success-wallet {
    font-family: monospace;
    letter-spacing: 0.03em;
}

.withdraw-success-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.withdraw-success-actions .play-button,
.withdraw-success-actions .rules-link {
    flex: 1;
    text-align: center;
}

@media (max-width: 600px) {
    .withdraw-success {
        margin: 16px auto;
        padding: 18px 14px;
    }

    .withdraw-success-title {
        font-size: 1.28rem;
    }

    .withdraw-success-row {
        flex-direction: column;
        gap: 4px;
    }

    .withdraw-success-row strong {
        text-align: left;
    }

    .withdraw-success-actions {
        flex-direction: column;
    }
}

/* ============================================================
   CryptoGame - How It Works
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step-card { background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 24px; text-align: center; }
.step-icon { font-size: 2.2em; margin-bottom: 10px; }
.step-card h3 { font-size: 1em; font-weight: 700; color: #f0f6fc; margin: 0 0 8px; }
.step-card p { font-size: 0.88em; color: #8b949e; margin: 0; line-height: 1.5; }

/* ============================================================
   CryptoGame - Info Grid (Referral / Fairness / Deposit)
   ============================================================ */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.info-card { background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 28px; }
.info-card h2 { font-size: 1.2em; font-weight: 700; color: #f0f6fc; margin: 0 0 14px; }
.info-card p, .info-card li { font-size: 0.9em; color: #8b949e; line-height: 1.6; }
.info-card ol, .info-card ul { padding-left: 20px; margin: 0; }
.info-card li { margin-bottom: 8px; }

/* ============================================================
   CryptoGame - Games Full Page (games.php)
   ============================================================ */
.games-hero { text-align: center; padding: 40px 20px 28px; border-bottom: 1px solid #21262d; margin-bottom: 36px; }
.games-hero h1 { font-size: 2em; font-weight: 900; color: #f0f6fc; margin: 0 0 10px; }
.games-subtitle { font-size: 1em; color: #8b949e; margin: 0; }

.games-grid-full { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.game-full-card { background: #161b22; border: 1px solid #30363d; border-radius: 12px; overflow: hidden; }
.game-card-header { display: flex; align-items: flex-start; gap: 20px; padding: 24px; border-bottom: 1px solid #21262d; flex-wrap: wrap; }
.game-emoji-lg { font-size: 3em; line-height: 1; flex-shrink: 0; }
.game-card-meta { flex: 1; min-width: 200px; }
.game-card-meta h2 { font-size: 1.3em; font-weight: 700; color: #f0f6fc; margin: 0 0 10px; }
.game-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-badge { font-size: 0.82em; padding: 4px 10px; border-radius: 20px; }
.stat-badge.payout { background: rgba(247,183,49,.15); color: #f7b731; border: 1px solid rgba(247,183,49,.3); }
.stat-badge.chance { background: rgba(63,185,80,.15); color: #3fb950; border: 1px solid rgba(63,185,80,.3); }
.stat-badge.bet { background: rgba(88,166,255,.12); color: #58a6ff; border: 1px solid rgba(88,166,255,.3); }
.game-play-btn { align-self: flex-start; white-space: nowrap; margin-left: auto; flex-shrink: 0; }
.register-cta { background: linear-gradient(135deg, #1f6feb, #388bfd) !important; }

.game-rules-list { padding: 20px 24px; }
.game-rules-list h3 { font-size: 1em; font-weight: 700; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 12px; }
.game-rules-list ol { margin: 0; padding-left: 20px; }
.game-rules-list li { font-size: 0.9em; color: #c9d1d9; line-height: 1.6; margin-bottom: 6px; }

/* ---- Terms Section ---- */
.terms-section { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 28px; margin-bottom: 32px; }
.terms-section h2 { font-size: 1.3em; font-weight: 700; color: #f0f6fc; margin: 0 0 16px; }
.terms-list { margin: 0; padding-left: 20px; }
.terms-list li { font-size: 0.9em; color: #8b949e; line-height: 1.6; margin-bottom: 8px; }

/* ============================================================
   Responsive overrides
   ============================================================ */
@media (max-width: 700px) {
    .hero-title { font-size: 1.6em; }
    .hero-section { padding: 40px 16px; }
    .hero-logo { width: 64px; height: 64px; }
    .btn-hero-primary, .btn-hero-secondary { font-size: 0.95em; padding: 12px 20px; }
    .hero-ctas { width: 100%; }
    .hero-ctas a { width: 100%; text-align: center; }
    .game-card-header { flex-direction: column; }
    .game-play-btn { margin-left: 0; width: 100%; text-align: center; }
    .brand-name { font-size: 1.3em; }
    .brand-bar { flex-wrap: wrap; gap: 10px; }
    .language-selector { width: 100%; text-align: left; }
    .lang-select { width: 100%; min-height: 42px; }

    .navbar {
        width: 100%;
        background: #111827;
        border: 1px solid #2a3340;
        border-radius: 10px;
        padding: 6px;
    }
    .navbar a.icon { display: block; font-size: 1.4em; margin-left: auto; }
    .navbar:not(.responsive) a:not(.icon) { display: none; }
    .navbar.responsive { flex-direction: column; align-items: flex-start; }
    .navbar.responsive a,
    .navbar.responsive .nav-info,
    .navbar.responsive .nav-balance {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .wallet-bar {
        flex-direction: column;
        gap: 8px;
    }

    .wallet-item {
        align-items: flex-start;
    }

    .wallet-address {
        font-size: 0.72em;
        line-height: 1.45;
    }

    .game-card {
        padding: 18px 14px;
    }

    .game-card-actions {
        width: 100%;
        flex-direction: column;
    }

    .games-preview-grid .game-economy {
        gap: 8px;
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .section-title {
        font-size: 1.35em;
    }

    .game-title {
        font-size: 1.18em;
    }

    .bet-range {
        font-size: 0.84em;
        padding: 10px 12px;
    }

    .games-preview-grid .economy-divider {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-rise {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Mobile bottom quick action bar */
.mobile-quickbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 120;
    display: none;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(13, 20, 31, 0.94);
    border: 1px solid #2d3e54;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
}

.mobile-quickbar .mq-item {
    flex: 1;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    border-radius: 10px;
    background: #1d2939;
    border: 1px solid #344860;
    color: #dfe9f6;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 10px;
}

.mobile-quickbar .mq-item.is-primary {
    background: linear-gradient(135deg, #1f6feb 0%, #0b53bf 100%);
    border-color: #3a7de0;
    color: #ffffff;
}

.mobile-quickbar .mq-item.is-active {
    border-color: #7fb3ff;
    box-shadow: inset 0 0 0 1px rgba(127, 179, 255, 0.45);
    background: #22344a;
}

.mobile-quickbar .mq-item:hover {
    text-decoration: none;
    filter: brightness(1.06);
}

@media (max-width: 760px) {
    .mobile-quickbar {
        display: flex;
    }

    .main-content {
        padding-bottom: 96px;
    }
}

/* Dedicated polish for game selector page cards */
.games-selector-grid {
    align-items: stretch;
}

.games-selector-grid .game-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #3a5474;
    box-shadow: 0 12px 28px rgba(3, 10, 22, 0.35);
}

.games-selector-grid .game-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -64px;
    top: -74px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(88, 166, 255, 0.22) 0%, rgba(88, 166, 255, 0) 70%);
    pointer-events: none;
}

.selector-economy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selector-economy-pill {
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 0.84rem;
    font-weight: 700;
}

.selector-economy-payout {
    background: #deebfb;
    color: #20384f;
    border: 1px solid #bdd2ea;
}

.selector-economy-range {
    background: #e9f4eb;
    color: #21452f;
    border: 1px solid #b8d8c1;
}

@media (max-width: 700px) {
    .games-selector-grid .game-card {
        padding: 16px 12px;
    }

    .selector-economy-pill {
        font-size: 0.8rem;
    }
}

/* ============================================================
   CryptoGame - PvP Duel page
   ============================================================ */
.duel-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.duel-wrap h1 {
    margin: 0 0 10px;
    color: #f0f6fc;
    font-size: 2rem;
}

.duel-subtitle {
    margin: 0 0 22px;
    color: #8b949e;
}

.duel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.duel-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.duel-card h2 {
    margin-top: 0;
    color: #f0f6fc;
}

.duel-input {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
    border-radius: 8px;
    padding: 10px 12px;
}

.duel-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.duel-choices {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.duel-choice {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 999px;
    padding: 8px 12px;
}

.duel-waiting {
    color: #f7b731;
    font-weight: 600;
}

.duel-message {
    font-weight: 600;
}

.duel-ok {
    border-color: rgba(63, 185, 80, 0.45);
    background: rgba(63, 185, 80, 0.08);
}

.duel-error {
    border-color: rgba(248, 81, 73, 0.45);
    background: rgba(248, 81, 73, 0.08);
}

.duel-alert {
    border-color: rgba(247, 183, 49, 0.45);
    background: rgba(247, 183, 49, 0.08);
}

.duel-danger {
    background: #8b1e3f;
}

.duel-danger:hover {
    background: #a61f48;
}

.duel-result.win {
    color: #3fb950;
    font-weight: 700;
}

.duel-result.lose {
    color: #f85149;
    font-weight: 700;
}

.duel-result.draw {
    color: #79c0ff;
    font-weight: 700;
}

.duel-help {
    color: #8b949e;
    font-size: 0.85rem;
}

.duel-note {
    border-style: dashed;
}

.duel-public-room {
    padding: 12px 0;
    border-top: 1px solid #30363d;
}

.duel-public-room:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.duel-public-room:last-of-type {
    padding-bottom: 0;
}

/* Duel Slider Styles */
.slider-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.duel-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #3fb950, #58a6ff);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.duel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #58a6ff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.4);
}

.duel-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #58a6ff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.4);
}

.slider-value {
    min-width: 90px;
    padding: 4px 8px;
    background: rgba(88, 166, 255, 0.15);
    border-radius: 6px;
    font-weight: 600;
    color: #58a6ff;
    font-size: 0.95em;
}

/* Duel Choices Display */
.duel-choices-display {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.duel-choice-display {
    background: linear-gradient(135deg, #1f6feb 0%, #3fb950 100%);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    color: #fff;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.duel-choice-display::first-letter {
    text-transform: uppercase;
}

/* Colored choice options */
.duel-choice input[type="radio"] {
    margin-right: 6px;
}

.duel-choice-rock {
    border-color: rgba(156, 163, 165, 0.5);
}

.duel-choice-rock:hover {
    background: rgba(156, 163, 165, 0.1);
}

.duel-choice-paper {
    border-color: rgba(100, 150, 200, 0.5);
}

.duel-choice-paper:hover {
    background: rgba(100, 150, 200, 0.1);
}

.duel-choice-scissors {
    border-color: rgba(255, 152, 0, 0.5);
}

.duel-choice-scissors:hover {
    background: rgba(255, 152, 0, 0.1);
}

.choice-icon {
    font-size: 1.3em;
    display: inline-block;
}

.stats-share-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 14px;
}

/* Internal admin dashboard (mischa_ops_dashboard.php) */
.ops-wrap {
    max-width: 1400px;
    margin: 0 auto;
}

.ops-head h1 {
    margin: 0 0 8px;
    color: #f0f6fc;
}

.ops-head p {
    margin: 0 0 18px;
    color: #8b949e;
}

.ops-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ops-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 14px;
}

.ops-card h3 {
    margin: 0 0 8px;
    color: #8b949e;
    font-size: 0.95rem;
}

.ops-card p {
    margin: 0;
    color: #f0f6fc;
    font-size: 1.15rem;
    font-weight: 700;
}

.ops-section {
    margin-bottom: 24px;
}

.ops-section h2 {
    color: #f0f6fc;
    margin: 0 0 10px;
}

.ops-table-wrap {
    overflow: auto;
    border: 1px solid #30363d;
    border-radius: 10px;
}

.ops-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.ops-table th,
.ops-table td {
    border-bottom: 1px solid #21262d;
    padding: 10px;
    text-align: left;
    font-size: 0.86rem;
}

.ops-table th {
    background: #0d1117;
    color: #8b949e;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.ops-table td {
    color: #c9d1d9;
}

.ops-table tr:hover td {
    background: rgba(88, 166, 255, 0.08);
}

.ops-table tr.ops-rtp-promo td {
    background: rgba(63, 185, 80, 0.09);
}

.ops-table tr.ops-rtp-balanced td {
    background: rgba(88, 166, 255, 0.08);
}

.ops-table tr.ops-rtp-tight td {
    background: rgba(248, 81, 73, 0.08);
}

.ops-table tr.ops-rtp-promo:hover td,
.ops-table tr.ops-rtp-balanced:hover td,
.ops-table tr.ops-rtp-tight:hover td {
    filter: brightness(1.08);
}

.ops-mono {
    font-family: monospace;
}

.ops-user-row {
    cursor: pointer;
}

.ops-user-row td {
    transition: background 0.15s ease;
}

.ops-user-row:hover td {
    background: rgba(88, 166, 255, 0.12);
}

.ops-user-row.is-open td {
    background: rgba(88, 166, 255, 0.2);
}

.ops-token-cell {
    max-width: 420px;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.8rem;
}

.ops-token-cell-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ops-copy-btn {
    border: 1px solid #3b516a;
    background: #1f2c3c;
    color: #d8e4f3;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.ops-copy-btn:hover {
    background: #2a3d53;
}

.ops-copy-btn.is-copied {
    background: #1f5f3a;
    border-color: #3da76a;
    color: #e7fff1;
}

.ops-user-detail-row {
    display: none;
}

.ops-user-detail-row.is-open {
    display: table-row;
}

.ops-user-detail-row td {
    background: #111926;
    border-bottom: 1px solid #2a3442;
    padding: 14px 12px;
}

.ops-user-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 14px;
    font-size: 0.84rem;
    color: #c9d1d9;
}

.ops-user-detail-grid strong {
    color: #8b949e;
}

.ops-profile-btn {
    min-height: 34px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
}

.ops-delta-ok {
    color: #7ee787;
    font-weight: 700;
}

.ops-delta-high {
    color: #ff7b72;
    font-weight: 700;
}

.ops-neutral {
    color: #8b949e;
}

.vip-voucher-page {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.vip-voucher-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    border: 1px solid #d5e5f7;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(16, 33, 59, 0.12);
}

.vip-voucher-title {
    margin: 0 0 8px;
    color: #16344f;
    font-size: 1.8rem;
}

.vip-voucher-subtitle {
    margin: 0 0 12px;
    color: #4f6c88;
    line-height: 1.5;
}

.vip-balance-badge {
    margin: 0 0 14px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f3ff;
    color: #16548b;
    font-weight: 700;
}

.vip-voucher-form {
    display: grid;
    gap: 10px;
    max-width: 540px;
}

.vip-voucher-history-title {
    margin: 0 0 10px;
    color: #1a3652;
}

.vip-voucher-table {
    min-width: 760px;
}

@media (max-width: 900px) {
    .ops-token-cell-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .vip-voucher-card {
        padding: 14px;
    }

    .vip-voucher-title {
        font-size: 1.35rem;
    }
}

.ops-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 1000px) {
    .ops-two-col {
        grid-template-columns: 1fr;
    }
}

/* Brighter game view overrides */
.game-screen-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.game-screen-title {
    text-align: center;
    color: #f0f6fc;
    margin: 0 0 12px;
    font-size: 1.6rem;
}

.game-form {
    background: linear-gradient(180deg, #1b2533 0%, #121a25 100%) !important;
    border: 1px solid #2f4055;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.bet-label,
.choice-label {
    color: #d8e3f3 !important;
    font-weight: 700;
}

.min-max-bet {
    color: #9fb3cc !important;
}

.bet-output-wrap {
    margin-top: 8px;
    color: #d8e3f3;
    font-weight: 700;
}

#betOutput {
    color: #58a6ff !important;
    font-weight: 800;
}

/* ─── VIP Voucher Floating Button & Modal ─────────────────────────────── */

.voucher-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1100;
    background: linear-gradient(135deg, #7b3fe4 0%, #c87d1c 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0 18px;
    height: 44px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(123, 63, 228, 0.55);
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.voucher-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(123, 63, 228, 0.7);
}

.voucher-fab:active {
    transform: translateY(0);
}

.voucher-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(5, 10, 20, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}

.voucher-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.voucher-modal {
    position: fixed;
    z-index: 1300;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -42%) scale(0.95);
    width: min(92vw, 420px);
    background: linear-gradient(180deg, #1b2533 0%, #0f1923 100%);
    border: 1px solid rgba(123, 63, 228, 0.4);
    border-radius: 18px;
    padding: 28px 28px 26px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
    text-align: center;
}

.voucher-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.voucher-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.07);
    border: none;
    color: #8b949e;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.voucher-modal-close:hover {
    background: rgba(255,255,255,0.14);
    color: #f0f6fc;
}

.voucher-modal-icon {
    font-size: 2.6rem;
    margin-bottom: 6px;
    line-height: 1;
}

.voucher-modal-title {
    color: #c9a84c;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.voucher-modal-subtitle {
    color: #8b949e;
    font-size: 0.83rem;
    margin: 0 0 16px;
    line-height: 1.4;
}

.voucher-modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.voucher-modal-form label {
    color: #d8e3f3;
    font-weight: 600;
    font-size: 0.88rem;
}

.voucher-modal-alert {
    background: rgba(255, 80, 80, 0.14);
    border: 1px solid rgba(255, 80, 80, 0.35);
    border-radius: 8px;
    color: #ff7b72;
    font-size: 0.85rem;
    padding: 9px 12px;
    text-align: left;
    margin-bottom: 4px;
}

.voucher-modal-success {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 0 8px;
}

.voucher-success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #238636, #2ea043);
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 0 24px rgba(46, 160, 67, 0.55);
}

.voucher-success-amount {
    color: #7ee787;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.voucher-success-balance {
    color: #8b949e;
    font-size: 0.88rem;
    margin: 0;
}

@media (max-width: 600px) {
    .voucher-fab {
        bottom: 70px;
        right: 14px;
        font-size: 0.82rem;
        padding: 0 14px;
        height: 40px;
    }

    .voucher-modal {
        padding: 22px 18px 20px;
    }
}

.choices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
}

.choice-btn {
    background: #0f1622 !important;
    color: #d6e2f2 !important;
    border: 1px solid #2f4055 !important;
    min-height: 82px;
}

.choice-btn:hover {
    border-color: #58a6ff !important;
    background: #162234 !important;
}

.choice-emoji {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 4px;
}

.choices-container input[type="radio"]:checked + label {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.22);
    background: #1a2a3f !important;
}

.bet-btn {
    background: linear-gradient(135deg, #1f6feb, #388bfd) !important;
    color: #fff;
    border-radius: 10px;
    border: 0;
    padding: 12px 16px;
    font-size: 1.05rem;
    font-weight: 700;
}

.bet-btn:hover {
    background: linear-gradient(135deg, #388bfd, #58a6ff) !important;
}

.game-back-link {
    margin-top: 14px;
    max-width: 320px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modern-result {
    max-width: 520px;
    margin: 0 auto 14px;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #2f4055;
    background: #151e2b;
    color: #dbe7f6;
}

.modern-result-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.modern-result-final {
    margin-top: 10px;
    font-weight: 800;
}

.modern-result-net {
    margin-top: 8px;
    font-weight: 700;
}

.modern-result-net.net-pos {
    color: #7ee787;
}

.modern-result-net.net-neg {
    color: #ff7b72;
}

.modern-result.win { border-color: #2d7d46; }
.modern-result.lose { border-color: #8a3d3d; }
.modern-result.draw { border-color: #2f5f8e; }

.game-visual {
    max-width: 520px;
    margin: 0 auto 14px;
    border: 1px solid #2f4055;
    border-radius: 14px;
    min-height: 94px;
    background: radial-gradient(circle at 20% 20%, #1f2f46, #111a27 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.visual-rpsls span {
    font-size: 2rem;
    animation: floatPulse 2.6s ease-in-out infinite;
}
.visual-rpsls span:nth-child(2) { animation-delay: 0.15s; }
.visual-rpsls span:nth-child(3) { animation-delay: 0.3s; }
.visual-rpsls span:nth-child(4) { animation-delay: 0.45s; }
.visual-rpsls span:nth-child(5) { animation-delay: 0.6s; }

.visual-dice .dice-face {
    font-size: 3.1rem;
    animation: diceShake 1.8s ease-in-out infinite;
}

.visual-coin .coin-orbit {
    font-size: 3rem;
    animation: coinFlip 1.5s linear infinite;
    transform-style: preserve-3d;
}

.visual-even-odd span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.visual-even-odd .eo-even {
    background: #2ea043;
    color: #fff;
    animation: pulseUp 1.6s ease-in-out infinite;
}

.visual-even-odd .eo-odd {
    background: #d29922;
    color: #111;
    animation: pulseUp 1.6s ease-in-out infinite 0.8s;
}

.visual-high-low {
    gap: 16px;
}

.visual-high-low .card-low,
.visual-high-low .card-high {
    width: 64px;
    height: 86px;
    border-radius: 8px;
    background: #f6f8fa;
    border: 1px solid #a8b3c2;
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.visual-high-low .card-low {
    color: #d1242f;
    animation: cardLift 2s ease-in-out infinite;
}

.visual-high-low .card-high {
    color: #1f6feb;
    animation: cardLift 2s ease-in-out infinite 0.6s;
}

.visual-wheel {
    position: relative;
}

.visual-wheel .wheel-disc {
    font-size: 3.2rem;
    animation: wheelSpin 2.4s linear infinite;
}

.visual-wheel .wheel-tip {
    position: absolute;
    top: 8px;
    color: #ffb86b;
    font-size: 1rem;
}

.visual-colors {
    gap: 18px;
}

.visual-colors .color-chip {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
    animation: colorBounce 1.8s ease-in-out infinite;
}

.visual-colors .color-chip.red {
    background: linear-gradient(135deg, #ff5b6e, #c6283f);
}

.visual-colors .color-chip.blue {
    background: linear-gradient(135deg, #60a5fa, #1d4ed8);
    animation-delay: 0.2s;
}

.visual-colors .color-chip.gold {
    background: linear-gradient(135deg, #ffd76a, #d29922);
    animation-delay: 0.4s;
}

.visual-colors .color-chip.green,
.visual-color-clash .color-chip.green {
    background: linear-gradient(135deg, #4ade80, #16a34a);
}

.visual-color-clash .color-chip.silver {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

.visual-quick-draw,
.visual-race-21,
.visual-target-50 {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.visual-quick-draw span,
.visual-race-21 span,
.visual-target-50 span {
    min-width: 52px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f6feb, #58a6ff);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(31, 111, 235, 0.25);
}

.visual-color-clash {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.visual-color-clash .color-chip {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

@keyframes floatPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.88; }
    50% { transform: translateY(-6px) scale(1.08); opacity: 1; }
}

@keyframes diceShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(-8deg) scale(1.07); }
    40% { transform: rotate(8deg) scale(1.05); }
    60% { transform: rotate(-4deg) scale(1.03); }
    80% { transform: rotate(4deg) scale(1.02); }
}

@keyframes coinFlip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes pulseUp {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
    50% { transform: scale(1.12); box-shadow: 0 0 18px rgba(255,255,255,0.2); }
}

@keyframes cardLift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-2deg); }
}

@keyframes wheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes colorBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.06); }
}
