:root {
    --casino-bg: #0a0e27;
    --casino-surface: #111638;
    --casino-surface-light: #1a1f4a;
    --casino-accent: #e6c84c;
    --casino-accent-hover: #f0d96b;
    --casino-text: #e8e8f0;
    --casino-text-muted: #7a7fa0;
    --casino-success: #4caf50;
    --casino-danger: #f44336;
    --casino-focus: #2ec4b6;
    --casino-card-bg: rgba(17, 22, 56, 0.85);
    --casino-modal-bg: rgba(15, 18, 45, 0.92);
    --casino-border: rgba(255, 255, 255, 0.08);
}

html,
body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0a0e27;
    background-image: url('/images/Texture_BG.jpg');
    background-repeat: repeat;
    background-size: 200px 200px;
    color: var(--casino-text);
}

/* ── Header ── */
.rz-header {
    background: linear-gradient(135deg, #0e1230 0%, #111638 100%) !important;
    border-bottom: 1px solid rgba(230, 200, 76, 0.15) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
}

.rz-header .rz-text-h6 {
    color: var(--casino-text) !important;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.casino-logo-dot {
    color: var(--casino-accent);
    margin: 0 2px;
}

.casino-logo-sphere {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-left: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #f7e88a, #d4a017 45%, #8b6914 80%, #4a3508 100%);
    box-shadow: 0 0 10px rgba(230, 200, 76, 0.3);
    border: 2.5px solid #2a3066;
    outline: 1.5px solid #c44030;
    outline-offset: 0px;
    position: relative;
}

/* ── Sidebar ── */
.rz-sidebar {
    background: rgba(10, 14, 39, 0.6) !important;
    border-right: 1px solid var(--casino-border) !important;
    transition: width 0.25s ease, min-width 0.25s ease;
    backdrop-filter: blur(8px);
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body.sidebar-open .rz-sidebar {
    width: 230px !important;
    min-width: 230px !important;
    overflow: visible !important;
}

/* Custom nav menu */
.casino-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    gap: 0;
}

.casino-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    color: var(--casino-accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.15s ease;
    opacity: 0.65;
    border-left: 3px solid transparent;
    box-sizing: border-box;
}

.casino-nav-item:hover {
    opacity: 1;
    background: rgba(230, 200, 76, 0.06);
}

.casino-nav-item.active {
    opacity: 1;
    color: var(--casino-accent);
    border-left-color: var(--casino-accent);
    background: rgba(230, 200, 76, 0.08);
}

.casino-nav-item img {
    width: 22px;
    height: 22px;
}

.casino-nav-item.active img {
    filter: drop-shadow(0 0 4px rgba(230, 200, 76, 0.3));
}

/* Admin toggle */
.casino-nav-toggle {
    position: relative;
}

.casino-nav-chevron {
    width: 12px !important;
    height: 12px !important;
    margin-left: auto;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.casino-nav-toggle.expanded .casino-nav-chevron {
    transform: rotate(180deg);
}

/* Submenu */
.casino-nav-submenu {
    background: rgba(230, 200, 76, 0.04);
    border-left: 2px solid rgba(230, 200, 76, 0.15);
    margin-left: 20px;
}

.casino-nav-subitem {
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.casino-nav-subitem img {
    width: 18px !important;
    height: 18px !important;
}

/* Legacy Radzen panel menu overrides (for admin) */
.rz-panel-menu .rz-navigation-item-text {
    color: var(--casino-text) !important;
    font-weight: 500;
}

.rz-panel-menu .rz-navigation-item-icon {
    color: var(--casino-accent) !important;
}

.rz-panel-menu .rz-navigation-item:hover {
    background: var(--casino-surface-light) !important;
}

.rz-panel-menu .rz-navigation-item-active,
.rz-panel-menu .rz-navigation-item.rz-state-active {
    background: rgba(230, 200, 76, 0.12) !important;
    border-left: 3px solid var(--casino-accent) !important;
}

/* ── Body ── */
.rz-layout {
    background: #0a0e27 url('/images/Texture_BG.jpg') repeat !important;
    background-size: 300px 300px !important;
}

.rz-body {
    background: transparent !important;
}

/* ── Cards ── */
.rz-card {
    background: var(--casino-surface) !important;
    border: 1px solid var(--casino-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ── Game Grid ── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* ── Game Cards (Lobby) ── */
.game-card {
    background: var(--casino-surface);
    border: 1px solid var(--casino-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.game-card-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--casino-surface-light);
}

.game-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-placeholder img {
    width: 32px;
    height: 32px;
    opacity: 0.25;
}

.game-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--casino-text);
    margin: 0 0 4px;
}

.game-card-desc {
    font-size: 12px;
    color: var(--casino-text-muted);
    margin: 0 0 10px;
    line-height: 1.4;
}

.game-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.game-card-actions .btn-outline-gold,
.game-card-actions .btn-gold {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
}

/* ── Buttons ── */
.rz-button.rz-primary {
    background: var(--casino-accent) !important;
    color: #111 !important;
    font-weight: 600;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.rz-button.rz-primary:hover {
    background: var(--casino-accent-hover) !important;
}

.rz-button.rz-light {
    background: transparent !important;
    color: var(--casino-text) !important;
    border: 1px solid var(--casino-border) !important;
    border-radius: 8px !important;
}

.rz-button.rz-light:hover {
    border-color: var(--casino-accent) !important;
    color: var(--casino-accent) !important;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--casino-border);
    color: var(--casino-text);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-outline-gold:hover {
    border-color: var(--casino-accent);
    color: var(--casino-accent);
}

.btn-outline-gold img {
    width: 13px;
    height: 13px;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 14px;
    background: var(--casino-accent);
    border: none;
    color: #111;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-gold:hover {
    background: var(--casino-accent-hover);
}

.btn-gold img {
    width: 13px;
    height: 13px;
}

/* ── DataGrid ── */
.rz-datatable {
    background: var(--casino-surface) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.rz-datatable .rz-datatable-thead>tr>th {
    background: var(--casino-surface-light) !important;
    color: var(--casino-accent) !important;
    border-color: var(--casino-border) !important;
    font-weight: 600;
    font-size: 13px;
}

.rz-datatable .rz-datatable-tbody>tr>td {
    border-color: var(--casino-border) !important;
    font-size: 14px;
}

.rz-datatable .rz-datatable-tbody>tr:hover>td {
    background: var(--casino-surface-light) !important;
}

/* ── Forms ── */
.rz-textbox,
.rz-dropdown,
.rz-spinner,
.rz-password {
    background: var(--casino-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: var(--casino-text) !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: border-color 0.15s ease !important;
}

.rz-textbox:focus,
.rz-textbox:focus-within,
.rz-password:focus,
.rz-password:focus-within,
.rz-textbox.rz-state-focused {
    border-color: var(--casino-focus) !important;
    outline: none !important;
    box-shadow: none !important;
}

.rz-form-field label,
.rz-form-field .rz-form-field-label {
    color: var(--casino-text-muted) !important;
}

/* Casino form labels */
.casino-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--casino-accent);
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

/* Casino form input wrapper with password toggle */
.casino-input-wrapper {
    position: relative;
}

.casino-input-wrapper .rz-textbox {
    width: 100%;
    padding-right: 40px !important;
}

.casino-eye-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.casino-eye-toggle img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.casino-eye-toggle:hover img {
    opacity: 1;
}

/* ── Modal / Auth card ── */
.auth-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    padding: 20px;
}

.auth-card {
    background: var(--casino-modal-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--casino-border);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
}

.auth-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--casino-text);
    text-align: center;
    margin: 0 0 24px;
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.auth-close img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.auth-close:hover img {
    opacity: 1;
}

.auth-error {
    background: var(--casino-danger);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-error img {
    width: 18px;
    height: 18px;
}

.auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.auth-links a {
    color: var(--casino-accent);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a5290;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.back-link:hover {
    color: #6a72b0;
}

.back-link img {
    width: 18px;
    height: 18px;
    filter: brightness(0.5) sepia(1) hue-rotate(200deg) saturate(2);
}

/* ── Profile ── */
.profile-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--casino-accent);
    margin-bottom: 4px;
}

.profile-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--casino-text);
    margin-bottom: 24px;
}

.profile-balance {
    font-size: 42px;
    font-weight: 700;
    color: var(--casino-text);
    margin-bottom: 32px;
}

.profile-edit-icon {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    opacity: 0.6;
    cursor: pointer;
}

.profile-edit-icon:hover {
    opacity: 1;
}

/* ── Welcome modal ── */
.welcome-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.welcome-card {
    background: var(--casino-modal-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--casino-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 360px;
    width: 100%;
}

.welcome-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
}

.welcome-card .welcome-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.welcome-card p {
    color: var(--casino-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ── Validation ── */
.field-validation-error {
    color: var(--casino-danger);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.input-validation-error,
.casino-input-error .rz-textbox {
    border-color: var(--casino-danger) !important;
}

/* ── Badge ── */
.rz-badge.rz-success {
    background: var(--casino-success) !important;
}

.rz-badge.rz-warning {
    background: var(--casino-accent) !important;
    color: #111 !important;
}

/* ── Sidebar toggle button ── */
button.rz-sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--casino-text);
    display: flex;
    align-items: center;
}

button.rz-sidebar-toggle:hover {
    color: var(--casino-accent);
}

button.rz-sidebar-toggle img {
    width: 20px;
    height: 20px;
}

/* ── Alert ── */
.rz-alert {
    border-radius: 8px !important;
}

/* ── Progress ── */
.rz-progressbar-circular-value {
    color: var(--casino-accent) !important;
}

/* ── Game Page ── */
.game-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--casino-accent);
    margin: 0 0 16px;
}

/* ── User Badge ── */
.user-badge {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-badge-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 200, 76, 0.08);
    border: 1px solid rgba(230, 200, 76, 0.2);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--casino-accent);
}

.user-badge-balance img {
    width: 18px;
    height: 18px;
}

.user-badge-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--casino-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.user-badge-name:hover {
    color: var(--casino-accent-hover);
}

.user-badge-name img {
    width: 18px;
    height: 18px;
}

.user-badge-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--casino-accent);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    opacity: 0.8;
}

.user-badge-logout:hover {
    opacity: 1;
}

.user-badge-logout img {
    width: 16px;
    height: 16px;
}

/* Login button in header */
.btn-login-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 28px;
    background: #F8D06A;
    border: none;
    color: #080F2F !important;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-login-header:hover {
    background: #f0c850;
}

.btn-login-header img {
    width: 15px;
    height: 15px;
    filter: brightness(0) saturate(100%);
}

/* ── Mobile responsive ── */

@media (max-width: 768px) {
    .rz-sidebar {
        position: fixed !important;
        top: var(--header-height, 52px) !important;
        left: 0;
        bottom: 0;
        z-index: 1000;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
    }

    .rz-body {
        margin-left: 0 !important;
    }

    .casino-title {
        display: none;
    }

    .rz-body>.rz-p-4 {
        padding: 0.75rem !important;
    }

    .auth-card {
        max-width: 90vw;
    }

    .welcome-card {
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .rz-header .rz-stack {
        gap: 4px;
    }

    .user-badge {
        gap: 8px;
    }

    .user-badge-balance {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* ── Tablet portal header height ──
   Resolutions already include the header. Portrait tablets (768/820/834/1024)
   get a 92px header; their landscape swaps (1024/1180/1194/1366) get 72px.
   Header height flows from --header-height → the RadzenStack in MainLayout.razor
   and .rz-sidebar top; the game iframe re-derives its height automatically.
   The landscape aspect-ratio guard keeps 16:9/16:10 laptops on the default. */
@media (orientation: portrait) and (min-width: 768px) and (max-width: 1100px) {
    :root { --header-height: 92px; }
}
@media (orientation: landscape) and (min-width: 1024px) and (max-width: 1366px) and (max-aspect-ratio: 3/2) {
    :root { --header-height: 72px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--casino-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--casino-surface-light);
    border-radius: 4px;
}

/* ── Game iframe ──
   Desktop: 16:9 (высота = ширина × 0.5625), вписан по высоте окна, центрирован, в рамке;
   ширина дополнительно ограничена per-game max-width (inline из каталога, напр. 1920).
   Mobile (≤768px): хедер виден, iframe position:fixed оверлеем заполняет область ПОД
   хедером; заголовок/back-link скрыты, выход в лобби — «бургер». См. ROLLBACK MARKER ниже. */
.game-frame-wrap {
    /* Full-bleed на ВСЕХ разрешениях (десктоп/лендскейп + мобайл): фрейм
       оверлеем заполняет зону .rz-body ПОД 52px-хедером портала. .rz-body несёт
       transform (Radzen) → она containing block для position:fixed, поэтому
       inset:0 раскрывается ровно в body под хедером (не поверх него). */
    position: fixed;
    inset: 0;
    left: -1px;   /* свёрнутый .rz-sidebar занимает 1px → .rz-body сдвинут на x=1; гасим зазор слева */
    margin: 0;
    padding: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

#game-iframe {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none !important;   /* перекрываем inline per-game max-width — тянемся на всю ширину */
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    aspect-ratio: auto;
}

/* Full-bleed сопутствующее: страница игры тянется на всю зону body; заголовок и
   отдельный back-link скрыты (возврат в лобби — «бургер» хедера); гасим гориз.
   переполнение, которое даёт full-bleed фрейм. Лобби не трогаем (:has по .game-page). */
.rz-layout .rz-body { overflow-x: hidden; }
.rz-p-4:has(> .game-page) { height: 100%; min-height: 0; padding: 0; }
.game-title,
.back-link { display: none; }

/* ── Кнопка фуллскрина (поверх iframe, справа внизу) ── */
.game-fs-btn {
    position: absolute;
    right: 16px;
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));   /* не под home-indicator iOS */
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(15, 18, 45, 0.6);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background 0.15s ease, transform 0.1s ease;
}

.game-fs-btn:hover { background: rgba(30, 36, 86, 0.85); }
.game-fs-btn:active { transform: scale(0.94); }
.game-fs-btn .fs-icon { display: block; }
.game-fs-btn .fs-exit { display: none; }   /* по умолчанию показываем «развернуть» */

/* ── Полноэкранный режим: .is-fullscreen на обёртке (CSS-оверлей, работает и на iOS) ── */
.game-frame-wrap.is-fullscreen {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    z-index: 9999;             /* поверх хедера портала */
    background: #000;
}

.game-frame-wrap.is-fullscreen #game-iframe {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.game-frame-wrap.is-fullscreen .fs-enter { display: none; }
.game-frame-wrap.is-fullscreen .fs-exit { display: block; }

@media (max-width: 768px) {
    /* full-bleed игры даёт ~8px горизонтального переполнения у .rz-body —
       гасим ТОЛЬКО горизонтальный скролл, вертикальный (overflow-y:auto) остаётся.
       Селектор .rz-layout .rz-body — чтобы перебить Radzen (.rz-layout .rz-body{overflow:auto}). */
    .rz-layout .rz-body {
        overflow-x: hidden;
    }

    /* Radzen оборачивает контент страницы в .rz-p-4 (display:block, height:auto) между
       .rz-body и нашим .game-page — это рвёт цепочку height:100%. Тянем ТОЛЬКО тот .rz-p-4,
       что содержит .game-page (страница игры), чтобы не трогать лобби. */
    .rz-p-4:has(> .game-page) {
        height: 100%;
        min-height: 0;
    }

    /* ── ROLLBACK MARKER: mobile game frame (ветка mobile-fullscreen-game) ──
       Хедер портала ОСТАЁТСЯ виден; игровой фрейм оверлеем заполняет область ПОД ним.
       Radzen вешает на .rz-body transform → она containing block для position:fixed,
       поэтому fixed; inset:0 раскрывается ровно в зону .rz-body (под 52px-хедером) —
       100dvh/100vh НЕ задаём (иначе фрейм вылезал за низ экрана). Хедер не перекрыт:
       .rz-body — отдельный stacking context, оверлей не может оказаться поверх хедера.
       «Назад в лобби» теперь делает «бургер» хедера (toggleSidebar в App.razor),
       отдельная .back-link убрана. Зависимости от :has нет — работает во всех браузерах. */
    .game-frame-wrap {
        position: fixed;
        inset: 0;
        width: auto;       /* перекрываем десктопные width/height — */
        height: auto;      /* высоту/ширину задаёт inset:0 = вся зона .rz-body (под хедером). */
        margin: 0;
        padding: 0;
        z-index: 100;
    }

    #game-iframe {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* На мобиле заголовок игры и отдельная кнопка Back to Lobby не нужны:
       в лобби уводит «бургер» хедера. */
    .game-title,
    .back-link {
        display: none;
    }
}
/* Сервисная панель: книга событий бонуса может быть длинной — скроллим её,
   а не растягиваем страницу. Остальная разметка панели — на Radzen, как и вся
   админка, поэтому собственных классов ей больше не нужно. */
.json-dump {
    max-height: 24rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12.5px;
    line-height: 1.55;
    margin: 0;
}
