:root {
  --game-ink: #172033;
  --game-muted: #667085;
  --game-line: #dbe4f0;
  --game-surface: #ffffff;
  --game-soft: #f3f7fb;
  --game-primary: #165dff;
  --game-primary-dark: #0d3fbd;
  --game-success: #14945f;
  --game-warning: #d98500;
  --game-danger: #c83545;
  --game-gold: #f2b84b;
  --game-cyan: #16a3b8;
}

body {
  background: radial-gradient(circle at 12% 6%, rgba(242, 184, 75, .12), transparent 28%), radial-gradient(circle at 92% 12%, rgba(22, 163, 184, .11), transparent 30%), var(--game-soft);
  color: var(--game-ink);
  font-size: .875rem;
}

.content { padding: 1.35rem; }
.content h1.h3, .page-title { color: var(--game-ink); font-weight: 700; letter-spacing: 0; }
.content h1.h3 strong { color: var(--game-primary-dark); }
.card { border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 10px 28px rgba(28, 39, 64, .07); }
.card-header, .card-footer { background: #fff; border-color: rgba(23, 32, 51, .08); }
.card-title { color: var(--game-ink); font-weight: 700; }
.btn { border-radius: 7px; font-weight: 700; }
.btn-primary { background: var(--game-primary); border-color: var(--game-primary); }
.btn-success { background: var(--game-success); border-color: var(--game-success); }
.btn-warning { color: #221700; background: var(--game-gold); border-color: var(--game-gold); }
.game-sound-toggle { align-items: center; background: rgba(255, 255, 255, .92); border: 1px solid rgba(23, 32, 51, .12); border-radius: 999px; box-shadow: 0 10px 24px rgba(28, 39, 64, .12); color: var(--game-ink); display: inline-flex; font-weight: 800; gap: .45rem; min-height: 42px; padding: .55rem .8rem; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; white-space: nowrap; }
.game-sound-toggle:hover { transform: translateY(-1px); }
.game-sound-toggle.is-enabled { background: var(--game-gold); border-color: rgba(242, 184, 75, .85); color: #241800; }
.game-sound-toggle i { font-size: .95rem; }
.slot-topbar .game-sound-toggle, .roulette-topbar .game-sound-toggle, .game-hero .game-sound-toggle, .arcade-board-header .game-sound-toggle { flex: 0 0 auto; }
@media (max-width: 575.98px) { .game-sound-toggle { min-height: 38px; padding: .48rem .65rem; } }
.form-control, .form-select, .select2-container--default .select2-selection--single { border-color: #cfd8e3; border-radius: 7px; }
.form-control:focus, .form-select:focus { border-color: var(--game-primary); box-shadow: 0 0 0 .2rem rgba(22, 93, 255, .12); }
.table { color: var(--game-ink); }
.table thead th { border-bottom: 0; color: #526071; font-size: .75rem; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.table tbody td, .table tbody th { vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(22, 93, 255, .045); }
.badge { border-radius: 999px; font-weight: 700; padding: .45rem .65rem; }
.nav-tabs { border-bottom: 0; gap: .45rem; margin-bottom: 1rem; }
.nav-tabs .nav-link { border: 1px solid var(--game-line); border-radius: 999px; color: #475467; background: #fff; }
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover { color: #fff; background: var(--game-primary); border-color: var(--game-primary); }
.sidebar { background: #101828; }
.sidebar-brand { color: #fff; font-weight: 800; }
.sidebar-header { color: #98a2b3; letter-spacing: .04em; }
.sidebar-link { border-radius: 7px; margin: .1rem .55rem; }
.sidebar-item.active .sidebar-link, .sidebar-link:hover { background: rgba(242, 184, 75, .16); color: #fff; }
.navbar-bg { border-bottom: 1px solid rgba(23, 32, 51, .08); box-shadow: 0 8px 22px rgba(28, 39, 64, .05); }
.credit-pill { background: #fff; border: 1px solid var(--game-line); border-radius: 999px; box-shadow: 0 7px 18px rgba(28, 39, 64, .06); }
.is-credit-pulsing { animation: creditPulse .75s ease both; }
.is-result-won { animation: resultWinPulse .8s ease both; }
.is-result-settled { animation: resultSettle .28s ease both; }
.game-confetti-layer { inset: 0; overflow: hidden; pointer-events: none; position: fixed; z-index: 4000; }
.game-confetti-layer span { animation: confettiFall 1.35s cubic-bezier(.18,.72,.28,1) forwards; border-radius: 2px; height: 12px; left: var(--x); opacity: .95; position: absolute; top: -16px; transform: translateY(0) rotate(0deg); width: 8px; animation-delay: var(--delay); }
.game-win-toast { animation: winToast .95s ease both; background: #fff; border: 1px solid rgba(20, 148, 95, .22); border-radius: 999px; box-shadow: 0 16px 36px rgba(28, 39, 64, .18); color: var(--game-success); font-size: 1rem; left: 50%; padding: .75rem 1rem; position: fixed; top: 18%; transform: translateX(-50%); white-space: nowrap; }
.page-loading-overlay { align-items: center; background: rgba(16, 24, 40, .46); display: flex; inset: 0; justify-content: center; opacity: 0; padding: 1rem; pointer-events: none; position: fixed; transition: opacity .18s ease; z-index: 5000; }
.page-loading-overlay.is-visible { opacity: 1; pointer-events: auto; }
.page-loading-box { align-items: center; background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 20px 44px rgba(16, 24, 40, .24); color: var(--game-ink); display: grid; gap: .45rem; justify-items: center; max-width: 280px; padding: 1.2rem; text-align: center; width: 100%; }
.page-loading-box strong { font-size: 1rem; font-weight: 900; }
.page-loading-box small { color: var(--game-muted); font-weight: 700; }
.page-loading-spinner { animation: pageSpinner .72s linear infinite; border: 4px solid #dbe4f0; border-top-color: var(--game-primary); border-radius: 999px; height: 42px; width: 42px; }
@keyframes creditPulse { 0% { transform: scale(1); color: inherit; } 40% { transform: scale(1.16); color: var(--game-success); } 100% { transform: scale(1); color: inherit; } }
@keyframes pageSpinner { to { transform: rotate(360deg); } }
@keyframes resultWinPulse { 0% { transform: scale(1); box-shadow: none; } 50% { transform: scale(1.015); box-shadow: 0 0 0 4px rgba(20, 148, 95, .18), 0 18px 34px rgba(20, 148, 95, .18); } 100% { transform: scale(1); box-shadow: none; } }
@keyframes resultSettle { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
@keyframes confettiFall { 0% { opacity: 1; transform: translateY(0) rotate(0deg); } 100% { opacity: 0; transform: translateY(var(--fall)) rotate(var(--rotate)); } }
@keyframes winToast { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.92); } 22% { opacity: 1; transform: translate(-50%, 0) scale(1.03); } 100% { opacity: 0; transform: translate(-50%, -10px) scale(1); } }
.game-hero { background: linear-gradient(135deg, rgba(13, 63, 189, .94), rgba(22, 163, 184, .86)), #0d3fbd; border-radius: 8px; color: #fff; overflow: hidden; padding: 1.25rem; position: relative; }
.game-hero:after { content: ""; position: absolute; right: -42px; top: -42px; width: 170px; height: 170px; border: 18px solid rgba(255, 255, 255, .14); border-radius: 50%; }
.game-hero h1, .game-hero p { position: relative; z-index: 1; }
.game-room-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.game-room-card:hover { box-shadow: 0 16px 34px rgba(28, 39, 64, .12); transform: translateY(-2px); }
.game-room-card:hover .card-img-top { transform: scale(1.035); }
.game-room-card .card-img-top { background: linear-gradient(135deg, #eef6ff, #fff7e5); height: 150px; object-fit: contain; padding: 1rem; transition: transform .22s ease; }
.game-meta { color: var(--game-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.game-stat { background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; padding: 1rem; }
.game-stat-label { color: var(--game-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.game-stat-value { color: var(--game-ink); font-size: 1.45rem; font-weight: 800; }
.game-help { border-radius: 8px; display: grid; gap: .55rem; padding: .9rem; }
.game-help-light { background: #fff; border: 1px solid var(--game-line); box-shadow: 0 10px 24px rgba(28, 39, 64, .06); }
.game-help-dark { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.game-help-kicker { color: var(--game-primary-dark); font-size: .74rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.game-help-dark .game-help-kicker { color: #f3b43f; }
.game-help ol { color: #475467; margin: 0; padding-left: 1.1rem; }
.game-help-dark ol { color: rgba(255, 255, 255, .72); }
.game-help li + li { margin-top: .35rem; }
.settings-shell { display: grid; gap: 1rem; max-width: 1120px; }
.settings-page-heading { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; }
.settings-page-heading .btn { flex: 0 0 auto; }
.settings-create-shell { max-width: 1240px; }
.settings-create-layout { align-items: start; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) 300px; }
.settings-panel { background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 12px 28px rgba(28, 39, 64, .07); padding: 1.2rem; }
.settings-panel-header { align-items: flex-start; border-bottom: 1px solid var(--game-line); display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.1rem; padding-bottom: 1rem; }
.settings-panel-header h2 { color: var(--game-ink); font-size: 1.18rem; font-weight: 900; letter-spacing: 0; line-height: 1.2; margin: .1rem 0 .25rem; }
.settings-panel-header p { color: var(--game-muted); margin: 0; max-width: 640px; }
.settings-kicker { color: var(--game-primary-dark); font-size: .74rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.settings-chip, .settings-icon { align-items: center; display: inline-flex; flex: 0 0 auto; justify-content: center; }
.settings-chip { background: #eef4ff; border: 1px solid #d8e5ff; border-radius: 999px; color: var(--game-primary-dark); font-size: .78rem; font-weight: 900; padding: .45rem .7rem; }
.settings-icon { border-radius: 8px; font-size: 1.2rem; height: 2.75rem; width: 2.75rem; }
.settings-icon-warning { background: #fff5df; color: var(--game-warning); }
.settings-icon-danger { background: #fff1f3; color: var(--game-danger); }
.settings-icon-success { background: #e9f8f1; color: var(--game-success); }
.settings-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-field { display: grid; gap: .4rem; min-width: 0; }
.settings-field-wide { grid-column: 1 / -1; }
.settings-field label, .settings-copy-box span { color: #344054; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.settings-field small { color: var(--game-muted); }
.settings-field .form-control, .settings-field .form-select, .settings-copy-box .form-control { min-height: 42px; }
.settings-native-select { margin-bottom: .75rem; }
.settings-type-grid { display: grid; gap: .75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.settings-type-card { background: #fff; border: 1px solid var(--game-line); border-radius: 8px; color: var(--game-ink); display: grid; gap: .35rem; min-height: 126px; padding: .9rem; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.settings-type-card:hover, .settings-type-card:focus, .settings-type-card.is-active { border-color: var(--game-primary); box-shadow: 0 12px 24px rgba(22, 93, 255, .12); outline: 0; transform: translateY(-1px); }
.settings-type-card strong { font-size: .94rem; line-height: 1.15; }
.settings-type-card span:last-child { color: var(--game-muted); font-size: .78rem; line-height: 1.25; }
.settings-type-icon, .settings-summary-icon, .rooms-overview-icon { align-items: center; border-radius: 8px; display: inline-flex; height: 2.35rem; justify-content: center; width: 2.35rem; }
.settings-type-blue, .rooms-overview-blue { background: #eef4ff; color: var(--game-primary-dark); }
.settings-type-dark, .rooms-overview-dark { background: #eef1f6; color: #101828; }
.settings-type-gold, .rooms-overview-gold { background: #fff5df; color: var(--game-warning); }
.settings-type-red { background: #fff1f3; color: var(--game-danger); }
.settings-type-green { background: #e9f8f1; color: var(--game-success); }
.settings-type-cyan { background: #e8f8fb; color: var(--game-cyan); }
.rooms-overview-green { background: #e9f8f1; color: var(--game-success); }
.settings-summary { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 12px 28px rgba(28, 39, 64, .07); padding: 1.1rem; position: sticky; top: 1rem; }
.settings-summary-icon { background: #eef4ff; color: var(--game-primary); margin-bottom: .75rem; }
.settings-summary h3 { color: var(--game-ink); font-size: 1.15rem; font-weight: 900; margin: .25rem 0; }
.settings-summary p { color: var(--game-muted); margin-bottom: 1rem; }
.settings-summary-list { display: grid; gap: .55rem; }
.settings-summary-list span { align-items: center; color: #475467; display: flex; font-weight: 700; gap: .45rem; }
.settings-summary-list i { color: var(--game-success); }
.settings-input-icon { position: relative; }
.settings-input-icon i { color: var(--game-muted); left: .85rem; position: absolute; top: 50%; transform: translateY(-50%); }
.settings-input-icon .form-control { padding-left: 2.35rem; }
.settings-note { align-items: center; background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; color: #475467; display: flex; gap: .65rem; margin-top: 1rem; padding: .85rem 1rem; }
.settings-note i { color: var(--game-primary); }
.settings-actions { align-items: center; display: flex; gap: .7rem; justify-content: flex-end; }
.settings-actions .btn { min-height: 42px; min-width: 132px; }
.settings-actions-inner { border-top: 1px solid var(--game-line); margin-top: 1.1rem; padding-top: 1rem; }
.settings-copy-box { background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; display: grid; gap: .55rem; padding: .9rem; }
.settings-toggle { align-items: flex-start; background: #fff; border: 1px solid var(--game-line); border-radius: 8px; display: flex; gap: .75rem; padding: .9rem; }
.settings-toggle .form-check-input { flex: 0 0 auto; height: 1.15rem; margin: .15rem 0 0; width: 1.15rem; }
.settings-toggle label { cursor: pointer; display: grid; gap: .2rem; margin: 0; }
.settings-toggle strong { color: var(--game-ink); line-height: 1.2; }
.settings-toggle span { color: var(--game-muted); font-size: .85rem; }
.rooms-overview { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; }
.rooms-overview-card { align-items: center; background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 10px 24px rgba(28, 39, 64, .06); display: flex; gap: .85rem; padding: 1rem; }
.rooms-overview-card span { color: var(--game-muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.rooms-overview-card strong { color: var(--game-ink); display: block; font-size: 1.45rem; font-weight: 900; line-height: 1.1; }
.rooms-list-panel { max-width: 1240px; }
.rooms-list-header { align-items: center; border-bottom: 1px solid var(--game-line); display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 1rem; }
.rooms-list-header h2 { color: var(--game-ink); font-size: 1.18rem; font-weight: 900; margin: .1rem 0 .25rem; }
.rooms-list-header p { color: var(--game-muted); margin: 0; }
.rooms-table-wrap { overflow-x: auto; }
.rooms-table { margin-bottom: 0 !important; }
.rooms-table td, .rooms-table th { white-space: nowrap; }
.rooms-table td:first-child, .rooms-table th:first-child { min-width: 260px; white-space: normal; }
.rooms-name-cell { align-items: center; display: flex; gap: .75rem; }
.rooms-id { align-items: center; background: #f2f5f9; border-radius: 999px; color: #475467; display: inline-flex; flex: 0 0 auto; font-size: .76rem; font-weight: 900; justify-content: center; min-width: 2.6rem; padding: .35rem .55rem; }
.rooms-name { color: var(--game-primary-dark); display: block; font-weight: 900; text-decoration: none; }
.rooms-name:hover { color: var(--game-primary); }
.rooms-name-cell span:not(.rooms-id), .rooms-muted { color: var(--game-muted); font-size: .82rem; }
.rooms-password, .rooms-count { align-items: center; color: #344054; display: inline-flex; font-weight: 800; gap: .45rem; }
.rooms-actions { display: flex; gap: .45rem; }
.rooms-actions .btn { align-items: center; display: inline-flex; height: 2.1rem; justify-content: center; padding: 0; width: 2.1rem; }
.users-overview { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; }
.users-overview-card { align-items: center; background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 10px 24px rgba(28, 39, 64, .06); display: flex; gap: .85rem; padding: 1rem; }
.users-overview-card span { color: var(--game-muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.users-overview-card strong { color: var(--game-ink); display: block; font-size: 1.45rem; font-weight: 900; line-height: 1.1; }
.users-overview-icon { align-items: center; border-radius: 8px; display: inline-flex; flex: 0 0 auto; height: 2.35rem; justify-content: center; width: 2.35rem; }
.users-overview-blue { background: #eef4ff; color: var(--game-primary-dark); }
.users-overview-green { background: #e9f8f1; color: var(--game-success); }
.users-overview-gold { background: #fff5df; color: var(--game-warning); }
.users-overview-dark { background: #eef1f6; color: #101828; }
.users-list-panel { max-width: 1240px; }
.users-list-header { align-items: center; border-bottom: 1px solid var(--game-line); display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 1rem; }
.users-list-header h2 { color: var(--game-ink); font-size: 1.18rem; font-weight: 900; margin: .1rem 0 .25rem; }
.users-list-header p { color: var(--game-muted); margin: 0; }
.users-header-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.users-table-wrap { overflow-x: auto; }
.users-table { margin-bottom: 0 !important; }
.users-table td, .users-table th { white-space: nowrap; }
.users-table td:first-child, .users-table th:first-child { min-width: 280px; white-space: normal; }
.users-name-cell { align-items: center; display: flex; gap: .75rem; }
.users-avatar { align-items: center; background: linear-gradient(135deg, #eef4ff, #e9f8f1); border: 1px solid #d8e5ff; border-radius: 999px; color: var(--game-primary-dark); display: inline-flex; flex: 0 0 auto; font-weight: 900; height: 2.45rem; justify-content: center; width: 2.45rem; }
.users-name { color: var(--game-primary-dark); display: block; font-weight: 900; text-decoration: none; }
.users-name:hover { color: var(--game-primary); }
.users-name-cell span:not(.users-avatar), .users-email { color: var(--game-muted); font-size: .84rem; }
.users-email, .users-credit { align-items: center; display: inline-flex; gap: .45rem; }
.users-credit { color: var(--game-ink); font-weight: 900; }
.users-actions { display: flex; gap: .45rem; }
.users-actions .btn { align-items: center; display: inline-flex; height: 2.1rem; justify-content: center; padding: 0; width: 2.1rem; }
.coupons-overview { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; }
.coupons-overview-card { align-items: center; background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 10px 24px rgba(28, 39, 64, .06); display: flex; gap: .85rem; padding: 1rem; }
.coupons-overview-card span { color: var(--game-muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.coupons-overview-card strong { color: var(--game-ink); display: block; font-size: 1.45rem; font-weight: 900; line-height: 1.1; }
.coupons-overview-icon { align-items: center; border-radius: 8px; display: inline-flex; flex: 0 0 auto; height: 2.55rem; justify-content: center; width: 2.55rem; }
.coupons-overview-blue { background: #eef4ff; color: var(--game-primary-dark); }
.coupons-overview-green { background: #e9f8f1; color: var(--game-success); }
.coupons-overview-gold { background: #fff5df; color: var(--game-warning); }
.coupons-overview-dark { background: #eef1f6; color: #101828; }
.coupons-list-panel { max-width: 1240px; }
.coupons-page .nav-tabs { margin-bottom: 1rem; }
.coupons-list-header { align-items: center; border-bottom: 1px solid var(--game-line); display: flex; gap: 1rem; justify-content: space-between; margin: -1.2rem -1.2rem 1rem; padding: 1.2rem; }
.coupons-list-header h2 { color: var(--game-ink); font-size: 1.18rem; font-weight: 900; margin: .1rem 0 .25rem; }
.coupons-list-header p { color: var(--game-muted); margin: 0; }
.coupons-table-wrap { overflow-x: auto; }
.coupons-table { margin-bottom: 0 !important; }
.coupons-table-wrap .dataTables_wrapper { display: grid; gap: .85rem; }
.coupons-table-wrap .dataTables_length, .coupons-table-wrap .dataTables_filter, .coupons-table-wrap .dataTables_info, .coupons-table-wrap .dataTables_paginate { color: var(--game-muted); font-size: .85rem; }
.coupons-table-wrap .dataTables_filter input, .coupons-table-wrap .dataTables_length select { border: 1px solid #cfd8e3; border-radius: 7px; min-height: 38px; }
.coupons-table-wrap .pagination { justify-content: flex-end; margin: 0; }
.coupons-table td, .coupons-table th { white-space: nowrap; }
.coupons-table td:first-child, .coupons-table th:first-child { min-width: 260px; white-space: normal; }
.coupons-name-cell { align-items: center; display: flex; gap: .75rem; }
.coupons-id { align-items: center; background: #f2f5f9; border-radius: 999px; color: #475467; display: inline-flex; flex: 0 0 auto; font-size: .78rem; font-weight: 900; justify-content: center; min-width: 2.4rem; padding: .35rem .55rem; }
.coupons-name { color: var(--game-primary-dark); display: block; font-weight: 900; text-decoration: none; }
.coupons-name:hover { color: var(--game-primary); }
.coupons-name-cell span:not(.coupons-id), .coupons-muted { color: var(--game-muted); font-size: .82rem; }
.coupons-code, .coupons-password, .coupons-users, .coupons-credit { align-items: center; display: inline-flex; gap: .45rem; }
.coupons-code { background: #f8fbff; border: 1px solid var(--game-line); border-radius: 999px; color: var(--game-primary-dark); font-weight: 900; padding: .42rem .65rem; }
.coupons-password, .coupons-users { color: #344054; font-weight: 800; text-decoration: none; }
.coupons-users:hover { color: var(--game-primary); }
.coupons-credit { color: var(--game-ink); font-weight: 900; }
.coupons-actions { display: flex; gap: .45rem; }
.coupons-actions .btn { align-items: center; display: inline-flex; height: 2.1rem; justify-content: center; padding: 0; width: 2.1rem; }
.coupon-status-message { align-items: center; background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; display: flex; gap: .85rem; padding: 1rem; }
.coupon-status-icon { align-items: center; background: #eef4ff; border-radius: 8px; color: var(--game-primary-dark); display: inline-flex; flex: 0 0 auto; height: 2.4rem; justify-content: center; width: 2.4rem; }
.account-balance-card { align-items: center; background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 10px 24px rgba(28, 39, 64, .06); display: flex; gap: .8rem; justify-content: flex-end; min-width: 220px; padding: .9rem 1rem; }
.account-balance-card span { color: var(--game-muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.account-balance-card strong { color: var(--game-ink); display: block; font-size: 1.35rem; font-weight: 900; line-height: 1.1; }
.account-balance-icon { align-items: center; background: #fff5df; border-radius: 8px; display: inline-flex; height: 46px; justify-content: center; width: 46px; }
.account-coupon-card .form-control { min-height: 42px; }
.account-profile-card { margin-bottom: 1rem; }
.account-avatar-panel { align-items: center; display: flex; gap: 1rem; }
.account-avatar-preview { align-items: center; background: #eef4ff; border: 1px solid #d8e5ff; border-radius: 999px; color: var(--game-primary-dark); display: inline-flex; flex: 0 0 auto; font-size: 2rem; font-weight: 900; height: 84px; justify-content: center; overflow: hidden; width: 84px; }
.account-avatar-preview img { height: 100%; object-fit: cover; width: 100%; }
.account-avatar-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.profile-camera-panel { background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; display: grid; gap: .75rem; margin-top: 1rem; padding: .75rem; }
.profile-camera-panel video { aspect-ratio: 4 / 3; background: #101828; border-radius: 8px; object-fit: cover; width: 100%; }
.profile-camera-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.account-history-card { min-width: 0; }
.account-history-header { align-items: center; border-bottom: 1px solid var(--game-line); display: flex; gap: 1rem; justify-content: space-between; padding: 1rem; }
.account-history-header h2 { color: var(--game-ink); font-size: 1.18rem; font-weight: 900; margin: .1rem 0 .25rem; }
.account-history-header p { color: var(--game-muted); margin: 0; }
.account-history-table { margin-bottom: 0 !important; }
.account-history-table td, .account-history-table th { vertical-align: middle; }
.account-history-amount { align-items: center; display: inline-flex; gap: .35rem; }
.account-history-details { border-top: 1px solid var(--game-line); margin: 1rem -1rem -1rem; }
.account-history-details summary { align-items: center; cursor: pointer; display: flex; gap: 1rem; justify-content: space-between; list-style: none; padding: 1rem; }
.account-history-details summary::-webkit-details-marker { display: none; }
.account-history-details summary span { align-items: center; color: var(--game-primary-dark); display: inline-flex; font-weight: 900; gap: .5rem; }
.account-history-details summary strong { color: var(--game-muted); font-size: .8rem; text-transform: uppercase; }
.account-history-full { border-top: 1px solid var(--game-line); max-height: 520px; overflow: auto; padding: 1rem; }
.bingo-purchase-grid { align-items: start; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) 320px; max-width: 1240px; }
.bingo-selection-layout { align-items: start; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); max-height: calc(100vh - 190px); min-height: 520px; }
.bingo-sticky-column { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.bingo-availability-panel { min-width: 0; max-height: calc(100vh - 190px); overflow: hidden; }
.bingo-availability-panel .rooms-list-header { margin-bottom: 1rem; }
.bingo-availability-scroll { max-height: calc(100vh - 300px); overflow: auto; padding-right: .25rem; }
.bingo-purchase-panel { min-width: 0; }
.bingo-owned-list { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bingo-owned-card { align-items: center; background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; color: var(--game-ink); display: flex; gap: .75rem; justify-content: space-between; padding: .85rem; text-decoration: none; }
.bingo-owned-card:hover, .bingo-owned-card.is-active { border-color: var(--game-primary); box-shadow: 0 10px 22px rgba(22, 93, 255, .1); color: var(--game-primary-dark); }
.bingo-owned-card span { align-items: center; display: inline-flex; font-weight: 900; gap: .45rem; }
.bingo-owned-card strong { color: var(--game-primary-dark); font-size: .82rem; text-transform: uppercase; }
.bingo-owned-compact { display: flex; flex-wrap: wrap; gap: .5rem; max-height: 112px; overflow: auto; padding-right: .25rem; }
.bingo-owned-pill { align-items: center; background: #e9f8f1; border: 1px solid rgba(20, 148, 95, .28); border-radius: 999px; color: var(--game-ink); display: inline-flex; font-weight: 900; gap: .4rem; padding: .45rem .65rem; text-decoration: none; }
.bingo-owned-pill:hover { color: var(--game-success); }
.bingo-owned-pill strong { color: var(--game-success); font-size: .72rem; text-transform: uppercase; }
.bingo-all-cards { background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 10px 24px rgba(28, 39, 64, .06); overflow: hidden; }
.bingo-all-cards summary { align-items: center; cursor: pointer; display: flex; gap: 1rem; justify-content: space-between; list-style: none; padding: .9rem 1rem; }
.bingo-all-cards summary::-webkit-details-marker { display: none; }
.bingo-all-cards summary span { align-items: center; color: var(--game-ink); display: inline-flex; font-weight: 900; gap: .5rem; }
.bingo-all-cards summary strong { color: var(--game-primary-dark); font-size: .82rem; text-transform: uppercase; }
.bingo-all-card-grid { border-top: 1px solid var(--game-line); display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 1rem; }
.bingo-mini-card { background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; padding: .75rem; }
.bingo-mini-card.is-active { border-color: var(--game-primary); box-shadow: 0 10px 22px rgba(22, 93, 255, .1); }
.bingo-mini-card-header { align-items: center; display: flex; gap: .75rem; justify-content: space-between; margin-bottom: .65rem; }
.bingo-mini-card-header strong { color: var(--game-ink); }
.bingo-mini-card-header a { color: var(--game-primary-dark); font-size: .82rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.bingo-mini-board { display: grid; gap: .3rem; }
.bingo-mini-row { display: grid; gap: .25rem; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.bingo-mini-row span { align-items: center; aspect-ratio: 1 / 1; background: #eef4ff; border: 1px solid #d8e5ff; border-radius: 6px; color: var(--game-primary-dark); cursor: pointer; display: inline-flex; font-size: .78rem; font-weight: 900; justify-content: center; min-width: 0; }
.bingo-mini-row span.is-empty { background: #e9f8f1; border-color: #d6f1e5; cursor: default; }
.bingo-mini-row span.is-called { background: var(--game-success); border-color: var(--game-success); color: #fff; }
.bingo-play-stack { display: grid; gap: 1rem; }
.bingo-play-card { overflow: hidden; }
.bingo-play-card.is-active { border-color: rgba(22, 93, 255, .28); box-shadow: 0 14px 30px rgba(22, 93, 255, .1); }
.bingo-play-card-header { align-items: center; border-bottom: 1px solid var(--game-line); display: flex; gap: 1rem; justify-content: space-between; padding: 1rem; }
.bingo-play-card-header h2 { color: var(--game-ink); font-size: 1.25rem; font-weight: 900; margin: .1rem 0 0; }
.bingo-play-table { margin-bottom: 0; table-layout: fixed; }
.bingo-play-table td { min-width: 54px; }
.bingo-play-table .items-click { transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.bingo-play-table .items-click:hover { box-shadow: inset 0 0 0 2px rgba(22, 93, 255, .32); transform: scale(1.01); }
.bingo-range-box { align-items: center; background: #f8fbff; border: 1px solid var(--game-line); border-radius: 7px; color: var(--game-ink); display: flex; font-size: 1.05rem; font-weight: 900; min-height: 42px; padding: .45rem .75rem; }
.bingo-preview { background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; padding: 1rem; }
.bingo-preview-header { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: .85rem; }
.bingo-preview-header h3 { color: var(--game-ink); font-size: 1.1rem; font-weight: 900; margin: .1rem 0 0; }
.bingo-card-board { background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; display: grid; gap: .35rem; padding: .65rem; }
.bingo-card-row { display: grid; gap: .35rem; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.bingo-card-row span { align-items: center; aspect-ratio: 1 / 1; background: #eef4ff; border: 1px solid #d8e5ff; border-radius: 7px; color: var(--game-primary-dark); display: inline-flex; font-weight: 900; justify-content: center; min-width: 0; }
.bingo-card-row span.is-empty { background: #e9f8f1; border-color: #d6f1e5; }
.bingo-empty-preview { align-items: center; color: var(--game-muted); display: flex; gap: .6rem; font-weight: 800; justify-content: center; min-height: 120px; text-align: center; }
.bingo-inline-spinner { animation: pageSpinner .72s linear infinite; border: 3px solid #dbe4f0; border-radius: 999px; border-top-color: var(--game-primary); flex: 0 0 auto; height: 26px; width: 26px; }
.room-chat { background: #fff; border: 1px solid var(--game-line); border-radius: 12px; box-shadow: 0 16px 36px rgba(12, 22, 44, .08); display: grid; gap: .85rem; margin-top: 1rem; padding: 1rem; }
.room-chat-header { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.room-chat-header h2 { color: var(--game-ink); font-size: 1.05rem; font-weight: 900; margin: 0; }
.room-chat-status { background: #edf8f3; border: 1px solid #ccebdc; border-radius: 999px; color: #157347; flex: 0 0 auto; font-size: .78rem; font-weight: 900; padding: .35rem .7rem; }
.room-chat-status.is-error { background: #fff1f1; border-color: #ffd1d1; color: #b42318; }
.room-chat-messages { background: #f7f9fd; border: 1px solid #e5ebf5; border-radius: 10px; display: grid; gap: .7rem; max-height: 280px; min-height: 170px; overflow-y: auto; padding: .85rem; }
.room-chat-empty { align-items: center; color: var(--game-muted); display: flex; gap: .6rem; font-weight: 800; justify-content: center; min-height: 120px; text-align: center; }
.room-chat-message { align-items: flex-end; display: flex; gap: .55rem; max-width: 82%; }
.room-chat-message.is-mine { justify-self: end; }
.room-chat-message.is-mine .room-chat-bubble { background: #e8f1ff; border-color: #cfe0ff; }
.room-chat-avatar { align-items: center; background: linear-gradient(135deg, #165dff, #14945f); border-radius: 999px; color: #fff; display: flex; flex: 0 0 auto; font-size: .82rem; font-weight: 900; height: 34px; justify-content: center; overflow: hidden; width: 34px; }
.room-chat-avatar img { height: 100%; object-fit: cover; width: 100%; }
.room-chat-bubble { background: #fff; border: 1px solid #e4eaf3; border-radius: 10px; padding: .55rem .7rem; }
.room-chat-meta { align-items: center; color: var(--game-muted); display: flex; gap: .5rem; justify-content: space-between; margin-bottom: .18rem; }
.room-chat-meta strong { color: var(--game-ink); font-size: .78rem; font-weight: 900; }
.room-chat-meta span { font-size: .72rem; font-weight: 800; }
.room-chat-bubble p { color: var(--game-ink); font-size: .9rem; font-weight: 700; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.room-chat-form { display: grid; gap: .65rem; grid-template-columns: 1fr auto; }
.room-chat-form .btn { align-items: center; display: inline-flex; gap: .4rem; justify-content: center; }
.loto-layout { display: grid; gap: 1rem; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.loto-balance-card { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; color: #fff; min-width: 190px; padding: .8rem 1rem; position: relative; z-index: 1; }
.loto-balance-card span { display: block; font-size: .78rem; font-weight: 900; opacity: .8; text-transform: uppercase; }
.loto-balance-card strong { align-items: center; display: flex; font-size: 1.2rem; gap: .45rem; margin-top: .2rem; }
.loto-search-panel, .loto-preview-panel { min-width: 0; }
.loto-help { align-items: flex-start; background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; color: var(--game-muted); display: flex; gap: .55rem; font-weight: 700; line-height: 1.35; margin-top: 1rem; padding: .8rem; }
.loto-help i { color: var(--game-primary); margin-top: .15rem; }
.loto-preview-header { align-items: center; border-bottom: 1px solid var(--game-line); display: flex; gap: 1rem; justify-content: space-between; margin: -1rem -1rem 1rem; padding: 1rem; }
.loto-preview-header h2 { color: var(--game-ink); font-size: 1.22rem; font-weight: 900; margin: 0; }
.loto-preview-badge { background: #eaf7f0; border: 1px solid #ccebdc; border-radius: 999px; color: #157347; font-size: .78rem; font-weight: 900; padding: .35rem .75rem; }
.loto-card-board { background: linear-gradient(180deg, #f8fbff, #fff); border: 1px solid #e2eaf6; border-radius: 12px; display: grid; gap: .45rem; margin: 0 auto; max-width: 760px; padding: .8rem; }
.loto-card-row { display: grid; gap: .45rem; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.loto-card-row span { align-items: center; aspect-ratio: 1 / 1; background: #fff; border: 1px solid #d8e5ff; border-radius: 8px; color: var(--game-primary-dark); display: inline-flex; font-size: clamp(1rem, 2.4vw, 1.65rem); font-weight: 900; justify-content: center; min-width: 0; }
.loto-card-row span.is-empty { background: #fff7df; border-color: #f4df9a; }
.loto-empty-state, .trophy-empty { align-items: center; color: var(--game-muted); display: grid; justify-items: center; min-height: 300px; padding: 1.5rem; text-align: center; }
.loto-empty-state h2, .trophy-empty h3 { color: var(--game-ink); font-weight: 900; margin: .75rem 0 .35rem; }
.loto-empty-state p, .trophy-empty p { max-width: 430px; }
.loto-empty-icon, .trophy-empty span { align-items: center; background: #eef4ff; border-radius: 999px; color: var(--game-primary); display: inline-flex; font-size: 1.55rem; height: 64px; justify-content: center; width: 64px; }
.trophy-hero { background: radial-gradient(circle at 86% 14%, rgba(243, 180, 63, .28), transparent 24%), linear-gradient(135deg, #172033 0%, #165dff 54%, #14945f 100%); }
.trophy-hero-icon { align-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; color: #ffd166; display: flex; font-size: 2rem; height: 70px; justify-content: center; position: relative; width: 70px; z-index: 1; }
.trophy-summary-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trophy-summary-card { background: #fff; border: 1px solid var(--game-line); border-radius: 10px; box-shadow: 0 12px 28px rgba(28, 39, 64, .07); padding: 1rem; }
.trophy-summary-card span { color: var(--game-muted); display: block; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.trophy-summary-card strong { color: var(--game-ink); display: block; font-size: 1.35rem; font-weight: 900; line-height: 1.2; margin-top: .35rem; }
.trophy-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.trophy-card { background: #fff; border: 1px solid var(--game-line); border-radius: 10px; box-shadow: 0 12px 26px rgba(28, 39, 64, .06); display: grid; gap: .85rem; padding: 1rem; }
.trophy-place { align-items: center; display: flex; gap: .6rem; }
.trophy-place i { font-size: 1.8rem; }
.trophy-place strong { color: var(--game-ink); font-size: 1rem; font-weight: 900; }
.trophy-card-body h3 { color: var(--game-primary-dark); font-size: 1.55rem; font-weight: 900; margin: .15rem 0; }
.trophy-card-body p { color: var(--game-muted); font-weight: 800; margin: 0; }
.trophy-meta { border-top: 1px solid var(--game-line); display: grid; gap: .4rem; padding-top: .75rem; }
.trophy-meta span { align-items: center; color: var(--game-muted); display: flex; font-size: .86rem; font-weight: 800; gap: .45rem; }
.bingo-card-picker { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.bingo-card-option { background: #fff; border: 1px solid var(--game-line); border-radius: 8px; color: var(--game-ink); display: grid; gap: .2rem; min-height: 70px; padding: .7rem; text-align: left; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.bingo-card-option:hover:not(:disabled), .bingo-card-option.is-selected { border-color: var(--game-primary); box-shadow: 0 10px 22px rgba(22, 93, 255, .1); transform: translateY(-1px); }
.bingo-card-option strong { font-size: 1rem; font-weight: 900; }
.bingo-card-option span { color: var(--game-muted); font-size: .78rem; font-weight: 800; }
.bingo-card-option.is-owned { background: #e9f8f1; border-color: rgba(20, 148, 95, .28); }
.bingo-card-option.is-taken { background: #f2f5f9; color: #98a2b3; cursor: not-allowed; }
.arcade-play { align-items: start; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) 320px; max-width: 1240px; }
.arcade-board, .arcade-help { background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 12px 28px rgba(28, 39, 64, .07); padding: 1.2rem; }
.arcade-board-header { align-items: flex-start; border-bottom: 1px solid var(--game-line); display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.2rem; padding-bottom: 1rem; }
.arcade-board-header h1 { color: var(--game-ink); font-size: 1.5rem; font-weight: 900; margin: .2rem 0; }
.arcade-board-header p, .arcade-help li { color: var(--game-muted); }
.arcade-credit { align-items: center; background: #f8fbff; border: 1px solid var(--game-line); border-radius: 999px; display: inline-flex; font-size: 1.1rem; font-weight: 900; gap: .4rem; padding: .45rem .75rem; }
.arcade-result { align-items: center; background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; display: grid; gap: 1rem; justify-items: center; min-height: 260px; padding: 1.2rem; }
.arcade-result { position: relative; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.arcade-result.is-playing { border-color: rgba(22, 93, 255, .34); box-shadow: 0 14px 32px rgba(22, 93, 255, .12); }
.arcade-result.is-won { border-color: rgba(20, 148, 95, .42); box-shadow: 0 16px 36px rgba(20, 148, 95, .16); }
.arcade-result.is-lost { animation: arcadeSettle .28s ease; }
.arcade-scratch-grid, .arcade-dice-grid, .arcade-card-row, .arcade-choice-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.arcade-scratch-grid span, .arcade-dice-grid span, .arcade-card-row span { align-items: center; background: #fff; border: 1px solid var(--game-line); border-radius: 8px; box-shadow: 0 8px 18px rgba(28, 39, 64, .06); color: var(--game-ink); display: inline-flex; font-size: 1.45rem; font-weight: 900; justify-content: center; min-height: 78px; min-width: 92px; padding: .75rem; }
.arcade-result.is-playing .arcade-tile { animation: arcadeScratchPulse .46s ease-in-out infinite alternate; }
.arcade-result.is-playing .arcade-die { animation: arcadeDiceRoll var(--dice-idle-duration, .34s) ease-in-out infinite; }
.arcade-result.is-dice-throwing .arcade-die { animation: diceDropSpin var(--dice-throw-duration, .9s) cubic-bezier(.16,.75,.2,1) infinite; }
.arcade-result.is-dice-throwing .arcade-die:nth-child(2) { animation-delay: .08s; }
.arcade-result.is-dice-throwing .arcade-dice-shadow { animation: diceShadow var(--dice-throw-duration, .9s) ease-in-out infinite; }
.arcade-result.is-dice-landed .arcade-die { animation: diceLand var(--dice-land-duration, .52s) cubic-bezier(.2,.9,.2,1) both; }
.arcade-result.is-dice-landed .arcade-die:nth-child(2) { animation-delay: .08s; }
.arcade-result.is-playing .arcade-card-face { animation: arcadeCardFlip .55s ease-in-out infinite; transform-style: preserve-3d; }
.arcade-result.is-revealed .arcade-tile, .arcade-result.is-revealed .arcade-die, .arcade-result.is-revealed .arcade-card-face { animation: arcadeReveal .42s cubic-bezier(.2,.85,.2,1) both; }
.arcade-result.is-won .arcade-tile, .arcade-result.is-won .arcade-die, .arcade-result.is-won .arcade-card-face { box-shadow: 0 0 0 3px rgba(20, 148, 95, .18), 0 14px 28px rgba(20, 148, 95, .2); }
.arcade-dice-grid span { font-size: 2rem; min-width: 84px; }
.arcade-dice-stage { align-items: center; display: grid; justify-items: center; min-height: 150px; perspective: 760px; position: relative; width: 100%; }
.arcade-dice-shadow { background: radial-gradient(ellipse, rgba(23, 32, 51, .22) 0%, rgba(23, 32, 51, 0) 70%); bottom: 18px; height: 24px; position: absolute; transform: scale(.9); width: 220px; }
.arcade-dice-grid { position: relative; z-index: 1; }
.arcade-dice-grid .arcade-die { background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.96), rgba(255,255,255,0) 30%), linear-gradient(145deg, #ffffff 0%, #eef4ff 100%); border: 1px solid #d8e5ff; border-radius: 18px; box-shadow: inset 0 -8px 18px rgba(22, 93, 255, .08), 0 16px 26px rgba(28, 39, 64, .14); display: grid; gap: 7px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); height: 96px; min-height: 96px; min-width: 96px; padding: 16px; transform-origin: 50% 70%; width: 96px; }
.arcade-die i { align-self: center; background: #172033; border-radius: 999px; box-shadow: inset 0 2px 3px rgba(255, 255, 255, .16); display: none; height: 12px; justify-self: center; width: 12px; }
.arcade-die[data-value="1"] i:nth-child(5), .arcade-die[data-value="2"] i:nth-child(1), .arcade-die[data-value="2"] i:nth-child(9), .arcade-die[data-value="3"] i:nth-child(1), .arcade-die[data-value="3"] i:nth-child(5), .arcade-die[data-value="3"] i:nth-child(9), .arcade-die[data-value="4"] i:nth-child(1), .arcade-die[data-value="4"] i:nth-child(3), .arcade-die[data-value="4"] i:nth-child(7), .arcade-die[data-value="4"] i:nth-child(9), .arcade-die[data-value="5"] i:nth-child(1), .arcade-die[data-value="5"] i:nth-child(3), .arcade-die[data-value="5"] i:nth-child(5), .arcade-die[data-value="5"] i:nth-child(7), .arcade-die[data-value="5"] i:nth-child(9), .arcade-die[data-value="6"] i:nth-child(1), .arcade-die[data-value="6"] i:nth-child(3), .arcade-die[data-value="6"] i:nth-child(4), .arcade-die[data-value="6"] i:nth-child(6), .arcade-die[data-value="6"] i:nth-child(7), .arcade-die[data-value="6"] i:nth-child(9) { display: block; }
.arcade-card-row { align-items: center; }
.arcade-card-row i { color: var(--game-muted); }
.arcade-help h2 { color: var(--game-ink); font-size: 1.15rem; font-weight: 900; margin: .3rem 0 .8rem; }
.arcade-help ol { margin: 0; padding-left: 1.1rem; }
.arcade-help li + li { margin-top: .55rem; }
.arcade-choice-row .btn, .arcade-action-btn { min-height: 44px; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.arcade-choice-row .btn:hover:not(:disabled), .arcade-choice-row .btn:focus:not(:disabled), .arcade-action-btn:hover:not(:disabled), .arcade-action-btn:focus:not(:disabled) { box-shadow: 0 10px 22px rgba(22, 93, 255, .14); transform: translateY(-2px); }
.arcade-choice-row .btn.is-charging, .arcade-action-btn.is-charging { box-shadow: 0 14px 28px rgba(22, 93, 255, .18), 0 0 28px rgba(242, 184, 75, .26); filter: saturate(1.14); transform: translateY(1px) scale(.99); }
@keyframes arcadeScratchPulse { from { transform: translateY(0) rotate(-1deg); filter: brightness(1); } to { transform: translateY(-5px) rotate(1deg); filter: brightness(1.08); } }
@keyframes arcadeDiceRoll { 0% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-7px); } 100% { transform: rotate(-8deg) translateY(0); } }
@keyframes diceDropSpin { 0% { transform: translate3d(-22px, -95px, 0) rotateX(0deg) rotateY(0deg) rotateZ(-18deg); } 38% { transform: translate3d(18px, -12px, 0) rotateX(250deg) rotateY(180deg) rotateZ(72deg); } 58% { transform: translate3d(-10px, 8px, 0) rotateX(340deg) rotateY(260deg) rotateZ(110deg); } 78% { transform: translate3d(8px, -20px, 0) rotateX(470deg) rotateY(340deg) rotateZ(150deg); } 100% { transform: translate3d(-22px, -95px, 0) rotateX(720deg) rotateY(540deg) rotateZ(220deg); } }
@keyframes diceLand { 0% { transform: translateY(-80px) rotateX(260deg) rotateY(190deg) rotateZ(-24deg); opacity: .55; } 58% { transform: translateY(8px) rotateX(368deg) rotateY(280deg) rotateZ(8deg); opacity: 1; } 76% { transform: translateY(-12px) rotateX(360deg) rotateY(360deg) rotateZ(-4deg); } 100% { transform: translateY(0) rotateX(360deg) rotateY(360deg) rotateZ(0deg); opacity: 1; } }
@keyframes diceShadow { 0% { opacity: .15; transform: scale(.55); } 45% { opacity: .34; transform: scale(1.05); } 78% { opacity: .22; transform: scale(.8); } 100% { opacity: .15; transform: scale(.55); } }
@keyframes arcadeCardFlip { 0% { transform: rotateY(0deg); } 50% { transform: rotateY(78deg) scale(.96); } 100% { transform: rotateY(0deg); } }
@keyframes arcadeReveal { 0% { opacity: .2; transform: scale(.84) translateY(8px); } 70% { opacity: 1; transform: scale(1.06) translateY(-3px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes arcadeSettle { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
.bingo-number { align-items: center; border-radius: 999px; display: inline-flex; font-weight: 800; height: 2rem; justify-content: center; margin: .2rem; min-width: 2rem; padding: 0 .45rem; }
.bingo-number.is-called, span.green { background: var(--game-success) !important; color: #fff !important; }
.bingo-number.is-pending, span.grey, span.dark { background: #e7edf5 !important; color: #344054 !important; }
.login-screen { min-height: 100vh; background: radial-gradient(circle at 16% 18%, rgba(242, 184, 75, .32), transparent 18%), radial-gradient(circle at 86% 16%, rgba(22, 163, 184, .26), transparent 20%), linear-gradient(135deg, #111827 0%, #173f7a 52%, #0f766e 100%); display: flex; overflow: hidden; position: relative; }
.login-screen:before, .login-screen:after { border: 2px solid rgba(255, 255, 255, .14); border-radius: 18px; content: ""; height: 180px; position: absolute; transform: rotate(-9deg); width: 132px; }
.login-screen:before { left: 7%; top: 12%; }
.login-screen:after { bottom: 9%; right: 8%; }
.login-card { background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .24); overflow: hidden; }
.login-brand-mark { align-items: center; background: #fff7e5; border: 1px solid #ffe1a3; border-radius: 999px; display: inline-flex; height: 70px; justify-content: center; width: 70px; }
.login-kicker { color: #d98500; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-title { color: var(--game-ink); font-size: 2rem; font-weight: 800; }
.login-copy { color: var(--game-muted); font-size: .96rem; }
.login-card .form-control { font-size: 1rem; min-height: 48px; }
.login-submit { min-height: 50px; }
.login-demo-box { background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; padding: 1rem; }
.login-demo-title { color: var(--game-muted); font-size: .78rem; font-weight: 800; margin-bottom: .7rem; text-align: center; text-transform: uppercase; }
.login-demo-btn { min-height: 48px; white-space: normal; }
.login-manual-link { color: var(--game-primary-dark); font-weight: 800; text-decoration: none; }
.manual-page { background: var(--game-soft); min-height: 100vh; }
.manual-hero { background: radial-gradient(circle at 88% 16%, rgba(242, 184, 75, .28), transparent 24%), linear-gradient(135deg, #111827 0%, #173f7a 55%, #0f766e 100%); color: #fff; padding: 2.2rem 0; }
.manual-back { color: #fff; display: inline-flex; font-weight: 800; text-decoration: none; }
.manual-kicker { color: #f2b84b; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.manual-hero h1 { font-size: 2.35rem; font-weight: 900; letter-spacing: 0; line-height: 1.08; }
.manual-lead { color: rgba(255, 255, 255, .82); font-size: 1.05rem; max-width: 680px; }
.manual-demo-card, .manual-section, .manual-note { background: #fff; border: 1px solid rgba(23, 32, 51, .08); border-radius: 8px; box-shadow: 0 12px 28px rgba(28, 39, 64, .08); }
.manual-demo-card { color: var(--game-ink); padding: 1.25rem; }
.manual-demo-card h2, .manual-section h2, .manual-note h2 { font-size: 1.2rem; font-weight: 900; }
.manual-credential { background: #f8fbff; border: 1px solid var(--game-line); border-radius: 8px; margin-top: .75rem; padding: .85rem; }
.manual-credential strong, .manual-credential span { display: block; }
.manual-credential span { color: var(--game-muted); margin-top: .25rem; }
.manual-content { padding: 1.4rem 0 2rem; }
.manual-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manual-section { padding: 1.15rem; }
.manual-step { align-items: center; background: var(--game-primary); border-radius: 999px; color: #fff; display: inline-flex; font-weight: 900; height: 2.1rem; justify-content: center; margin-bottom: .85rem; width: 2.1rem; }
.manual-section p, .manual-section li, .manual-note p { color: #526071; font-size: .96rem; }
.manual-section ul { margin-bottom: 0; padding-left: 1.1rem; }
.manual-note { margin-top: 1rem; padding: 1.25rem; }

@media (max-width: 767.98px) {
  body { font-size: .9rem; }
  .content { padding: .9rem; }
  .game-hero { padding: 1rem; }
  .table-responsive-cards table, .table-responsive-cards thead, .table-responsive-cards tbody, .table-responsive-cards th, .table-responsive-cards td, .table-responsive-cards tr { display: block; }
  .table-responsive-cards thead { display: none; }
  .table-responsive-cards tr { background: #fff; border: 1px solid var(--game-line); border-radius: 8px; margin-bottom: .8rem; padding: .75rem; }
  .table-responsive-cards td, .table-responsive-cards th { border: 0; padding: .35rem 0; }
  .table-responsive-cards td[data-label] { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
  .table-responsive-cards td[data-label]::before { color: var(--game-muted); content: attr(data-label); flex: 0 0 auto; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
  .table-responsive-cards td[data-label]:first-child { align-items: flex-start; display: block; }
  .table-responsive-cards td[data-label]:first-child::before { display: block; margin-bottom: .35rem; }
  .settings-page-heading, .coupons-list-header { align-items: stretch; flex-direction: column; }
  .settings-page-heading .btn, .coupons-list-header .btn { width: 100%; }
  .login-title { font-size: 1.65rem; }
  .login-screen { align-items: flex-start; min-height: 100svh; overflow: auto; }
  .login-card .card-body { padding: 1.25rem !important; }
  .login-demo-box { padding: .85rem; }
  .manual-hero { padding: 1.25rem 0; }
  .manual-hero h1 { font-size: 1.85rem; }
  .manual-lead { font-size: .98rem; }
  .manual-grid { grid-template-columns: 1fr; }
  .settings-create-layout, .rooms-overview { grid-template-columns: 1fr; }
  .settings-summary { position: static; }
  .settings-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-panel { padding: 1rem; }
  .settings-panel-header { display: grid; }
  .settings-grid, .settings-grid-compact { grid-template-columns: 1fr; }
  .settings-actions { align-items: stretch; flex-direction: column-reverse; }
  .settings-actions .btn { width: 100%; }
  .rooms-list-header { align-items: stretch; flex-direction: column; }
  .users-overview { grid-template-columns: 1fr; }
  .users-list-header { align-items: stretch; flex-direction: column; }
  .users-header-actions .btn { width: 100%; }
  .rooms-table td:first-child, .rooms-table th:first-child, .users-table td:first-child, .users-table th:first-child { min-width: 0; }
  .arcade-play { grid-template-columns: 1fr; }
  .coupons-overview { grid-template-columns: 1fr; }
  .coupons-table td:first-child, .coupons-table th:first-child { min-width: 0; }
  .bingo-purchase-grid, .bingo-selection-layout, .bingo-owned-list { grid-template-columns: 1fr; }
  .bingo-sticky-column { position: static; }
  .bingo-selection-layout, .bingo-availability-panel, .bingo-availability-scroll { max-height: none; min-height: 0; overflow: visible; }
  .bingo-card-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bingo-preview-header { align-items: flex-start; flex-direction: column; }
  .arcade-board-header { display: grid; }
  .arcade-result { min-height: 220px; padding: 1rem; }
  .arcade-scratch-grid span, .arcade-dice-grid span, .arcade-card-row span { font-size: 1.15rem; min-height: 66px; min-width: 72px; }
  .arcade-dice-stage { min-height: 132px; }
  .arcade-dice-grid .arcade-die { border-radius: 14px; gap: 5px; height: 76px; min-height: 76px; min-width: 76px; padding: 12px; width: 76px; }
  .arcade-die i { height: 9px; width: 9px; }
  .arcade-choice-row .btn, .arcade-action-btn { flex: 1 1 100%; }
  .room-chat { border-radius: 10px; padding: .85rem; }
  .room-chat-header { align-items: flex-start; flex-direction: column; }
  .room-chat-message { max-width: 100%; }
  .room-chat-form { grid-template-columns: 1fr; }
  .room-chat-form .btn { width: 100%; }
  .loto-layout, .trophy-summary-grid { grid-template-columns: 1fr; }
  .loto-balance-card { width: 100%; }
  .loto-preview-header { align-items: flex-start; flex-direction: column; }
  .loto-card-board { gap: .3rem; padding: .5rem; }
  .loto-card-row { gap: .3rem; }
  .loto-card-row span { border-radius: 6px; font-size: .9rem; }
  .trophy-grid { grid-template-columns: 1fr; }
  .manual-section, .manual-note, .manual-demo-card { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
