﻿:root {
    --bg: #f5efe3;
    --ink: #172635;
    --muted: #5f7281;
    --panel: rgba(255, 251, 244, 0.84);
    --brand: #163a59;
    --brand-accent: #c97432;
    --success: #197355;
    --warn: #b65b27;
    --danger: #b13333;
    --shadow: 0 18px 40px rgba(25, 42, 63, 0.12);
    --radius-lg: 24px;
    --sidebar-width: 272px;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Verdana", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(201, 116, 50, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(22, 58, 89, 0.14), transparent 28%),
        linear-gradient(180deg, #faf4ea 0%, #f5efe3 58%, #efe6d9 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 280px;
    height: 280px;
    top: 8%;
    right: -72px;
    background: rgba(201, 116, 50, 0.08);
}

body::after {
    width: 380px;
    height: 380px;
    left: -120px;
    bottom: -120px;
    background: rgba(22, 58, 89, 0.08);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.app-shell,
.login-shell {
    position: relative;
    z-index: 1;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    padding: 28px;
    background: rgba(255, 249, 240, 0.72);
    border: 1px solid rgba(23, 38, 53, 0.08);
    border-radius: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.login-hero,
.login-panel {
    padding: 28px;
    border-radius: 28px;
}

.login-hero {
    background:
        linear-gradient(160deg, rgba(22, 58, 89, 0.94), rgba(39, 83, 106, 0.88)),
        linear-gradient(135deg, rgba(201, 116, 50, 0.1), rgba(255, 255, 255, 0));
    color: #f7efe1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    overflow: hidden;
    position: relative;
}

.login-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -54px;
    bottom: -42px;
    background: rgba(255, 218, 180, 0.16);
    border-radius: 42px;
    transform: rotate(18deg);
    pointer-events: none;
}

.login-hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge,
.chip,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.hero-badge {
    background: rgba(255, 244, 228, 0.14);
    border: 1px solid rgba(255, 240, 220, 0.16);
    width: fit-content;
}

.brand-title,
.section-title,
.page-title,
.login-title,
.stat-value {
    font-family: Georgia, "Times New Roman", serif;
}

.login-title {
    margin: 22px 0 10px;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.02;
}

.login-copy,
.login-panel p,
.hero-point p,
.page-copy,
.section-subtitle,
.empty-state,
.hint,
.table-sub,
.notice-item p,
.game-card p,
.list-card p,
.feature-card p {
    color: var(--muted);
    line-height: 1.7;
}

.login-copy,
.hero-point p {
    color: rgba(247, 239, 225, 0.84);
}

.hero-points,
.notice-list,
.request-list,
.game-card-list,
.chart-list,
.mini-list,
.page-layout,
.nav-section,
.field-grid,
.control-grid,
.finance-grid,
.game-grid,
.profile-grid {
    display: grid;
    gap: 12px;
}

.hero-point,
.notice-item,
.request-card,
.game-card,
.mini-item,
.sidebar-footer,
.feature-card,
.list-card,
.panel,
.section-card,
.stat-card {
    border: 1px solid rgba(23, 38, 53, 0.08);
    box-shadow: var(--shadow);
}

.hero-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.hero-point strong,
.notice-item strong,
.request-card strong,
.game-card strong,
.mini-item strong,
.table-main {
    display: block;
    margin-bottom: 4px;
}

.login-panel {
    background: rgba(255, 255, 255, 0.62);
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
}

.login-panel h2 {
    margin: 0;
    font-size: 30px;
}

.totp-setup-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: center;
}

.totp-qr {
    width: 220px;
    aspect-ratio: 1;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(23, 38, 53, 0.08);
    pointer-events: none;
}

.totp-qr svg {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.totp-secret {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.totp-secret span {
    font-size: 13px;
    color: var(--muted);
}

.totp-secret code {
    white-space: normal;
    word-break: break-all;
    line-height: 1.6;
}

.totp-secret .ghost-btn {
    width: fit-content;
}

.field,
.quick-search {
    display: grid;
    gap: 8px;
}

.field label,
.meta-label,
.table-label,
.stat-label,
.nav-title {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea,
.quick-search input,
.filter-range input {
    width: 100%;
    border: 1px solid rgba(23, 38, 53, 0.1);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.quick-search input:focus,
.filter-range input:focus {
    border-color: rgba(22, 58, 89, 0.38);
    box-shadow: 0 0 0 4px rgba(22, 58, 89, 0.08);
}

.field textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-row,
.panel-actions,
.table-actions,
.inline-actions,
.toolbar-row,
.topbar-side,
.pagination,
.request-meta,
.mini-meta,
.panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn,
.ghost-btn,
.tag-btn,
.action-btn,
.menu-btn {
    border: none;
    border-radius: 999px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover,
.ghost-btn:hover,
.tag-btn:hover,
.action-btn:hover,
.nav-link:hover {
    transform: translateY(-1px);
}

.btn {
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--brand) 0%, #245d87 100%);
    color: #fff8ee;
    box-shadow: 0 12px 24px rgba(22, 58, 89, 0.18);
}

.btn.secondary {
    background: linear-gradient(135deg, var(--brand-accent) 0%, #d18a55 100%);
    box-shadow: 0 12px 24px rgba(201, 116, 50, 0.18);
}

.btn.subtle,
.ghost-btn,
.tag-btn,
.action-btn,
.menu-btn,
.chip,
.pill {
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand);
}

.ghost-btn,
.tag-btn,
.action-btn {
    padding: 9px 14px;
}

.ghost-btn.warn,
.action-btn.warn,
.pill.warn {
    background: rgba(182, 91, 39, 0.12);
    color: var(--warn);
}

.ghost-btn.danger,
.action-btn.danger,
.pill.danger {
    background: rgba(177, 51, 51, 0.12);
    color: var(--danger);
}

.pill.success {
    background: rgba(25, 115, 85, 0.12);
    color: var(--success);
}

.tag-btn.active,
.nav-link.active {
    background: linear-gradient(135deg, rgba(22, 58, 89, 0.9), rgba(36, 93, 135, 0.88));
    color: #fff9ee;
}

.login-feedback,
.page-feedback {
    min-height: 24px;
    font-size: 14px;
}

.feedback-error {
    color: var(--danger);
}

.feedback-ok {
    color: var(--success);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-shell.is-resizing,
.app-shell.is-resizing * {
    cursor: col-resize !important;
    user-select: none;
}

.sidebar {
    width: var(--sidebar-width);
    padding: 26px 20px;
    background: linear-gradient(180deg, rgba(15, 39, 60, 0.94) 0%, rgba(21, 54, 77, 0.94) 100%);
    color: #f8efe1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    box-shadow: 24px 0 48px rgba(7, 16, 25, 0.12);
}

.brand-block {
    display: grid;
    gap: 10px;
}

.brand-title {
    margin: 0;
    font-size: 28px;
}

.brand-subtitle,
.sidebar-footer p {
    margin: 0;
    color: rgba(248, 239, 225, 0.72);
    line-height: 1.7;
    font-size: 13px;
}

.brand-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.nav-title {
    padding: 0 8px;
    color: rgba(248, 239, 225, 0.44);
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: rgba(248, 239, 225, 0.84);
    transition: background 0.18s ease, transform 0.18s ease;
}

.nav-link.active {
    transform: translateX(3px);
}

.nav-badge {
    min-width: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-resizer {
    position: fixed;
    inset: 0 auto 0 calc(var(--sidebar-width) - 6px);
    width: 12px;
    z-index: 24;
    cursor: col-resize;
    touch-action: none;
}

.sidebar-resizer::before,
.sidebar-resizer::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.sidebar-resizer::before {
    width: 2px;
    height: calc(100vh - 80px);
    max-height: 100%;
    transform: translate(-50%, -50%);
    background: rgba(23, 38, 53, 0.08);
}

.sidebar-resizer::after {
    width: 6px;
    height: 72px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: rgba(22, 58, 89, 0.18);
    opacity: 0.72;
}

.sidebar-resizer:hover::before,
.sidebar-resizer:focus-visible::before,
.app-shell.is-resizing .sidebar-resizer::before {
    background: rgba(22, 58, 89, 0.24);
}

.sidebar-resizer:hover::after,
.sidebar-resizer:focus-visible::after,
.app-shell.is-resizing .sidebar-resizer::after {
    opacity: 1;
    transform: translate(-50%, -50%) scaleY(1.08);
    background: rgba(201, 116, 50, 0.72);
}

.sidebar-resizer:focus-visible {
    outline: none;
}

.shell-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px clamp(18px, 3vw, 32px) 32px;
}

.topbar,
.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar {
    margin-bottom: 20px;
}

.topbar-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.page-title {
    margin: 0;
    font-size: clamp(32px, 3vw, 40px);
}

.page-copy,
.section-subtitle,
.notice-item p,
.game-card p,
.list-card p,
.feature-card p {
    margin: 6px 0 0;
}

.panel,
.section-card,
.stat-card,
.feature-card,
.list-card {
    background: var(--panel);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
}

.panel,
.section-card,
.stat-card,
.feature-card,
.list-card,
.notice-item,
.request-card,
.game-card,
.mini-item {
    padding: 18px;
}

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

.stat-value {
    margin: 0;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1;
}

.stat-foot {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.feature-card,
.list-card,
.notice-item,
.request-card,
.game-card,
.mini-item {
    background: rgba(255, 255, 255, 0.66);
    border-radius: 18px;
}

.feature-card h3,
.list-card h3,
.game-card h3,
.section-title {
    margin: 0;
}

.metric-card {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(23, 38, 53, 0.08);
    background: rgba(22, 58, 89, 0.04);
}

.metric-label {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.metric-value {
    font-size: 18px;
    line-height: 1.2;
    word-break: break-word;
}

.game-summary-grid,
.room-summary-grid,
.game-ops-grid,
.room-form-grid {
    display: grid;
    gap: 12px;
}

.game-summary-grid,
.room-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 14px 0;
}

.game-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.compact-form {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(23, 38, 53, 0.08);
    background: rgba(22, 58, 89, 0.04);
}

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

.room-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    margin-top: 12px;
}

.room-name-field {
    grid-column: span 2;
}

.room-hint {
    grid-column: 1 / -2;
}

.room-submit-row {
    grid-column: -2 / -1;
    justify-content: flex-end;
}

.empty-state,
.loading-shell {
    padding: 16px;
    border-radius: 18px;
    background: rgba(22, 58, 89, 0.04);
}

.table-wrap {
    overflow: auto;
    border-radius: 20px;
    border: 1px solid rgba(23, 38, 53, 0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 880px;
    background: rgba(255, 255, 255, 0.7);
}

.data-table th,
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(23, 38, 53, 0.08);
    vertical-align: top;
    text-align: left;
}

.data-table th {
    background: rgba(22, 58, 89, 0.06);
    font-size: 13px;
    color: var(--muted);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.table-stack {
    display: grid;
    gap: 4px;
}

.table-sub {
    font-size: 12px;
}

.quick-search,
.toolbar-row {
    align-items: end;
}

.toolbar-row {
    margin-bottom: 14px;
}

.section-head.compact {
    margin-top: 18px;
}

.quick-search {
    min-width: min(360px, 100%);
    flex: 1;
}

.member-filter-grid {
    margin-top: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.member-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: flex-end;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
}

.finance-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

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

.profile-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.chart-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
}

.chart-label {
    font-size: 12px;
    color: var(--muted);
}

.chart-track {
    border-radius: 999px;
    background: rgba(22, 58, 89, 0.08);
    overflow: hidden;
    min-height: 18px;
}

.chart-bars {
    display: flex;
    min-height: 18px;
}

.chart-bar {
    min-width: 4px;
}

.chart-bar.charge {
    background: linear-gradient(135deg, #245d87, #4b84ad);
}

.chart-bar.withdraw {
    background: linear-gradient(135deg, #c97432, #db9a67);
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1180px) {
    .card-grid,
    .game-grid,
    .profile-grid,
    .finance-grid,
    .split-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 980px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .shell-main {
        margin-left: 0;
    }

    .menu-btn {
        display: inline-flex;
    }

    .sidebar-resizer {
        display: none;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(11, 18, 28, 0.28);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 15;
    }

    .app-shell.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .topbar {
        flex-direction: column;
    }

    .topbar-side {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .login-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .login-hero,
    .login-panel {
        padding: 22px;
    }

    .totp-setup-grid {
        grid-template-columns: 1fr;
    }

    .totp-qr {
        width: min(260px, 100%);
        justify-self: center;
    }

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

@media (max-width: 640px) {
    .shell-main {
        padding: 18px 14px 24px;
    }

    .panel,
    .section-card,
    .stat-card,
    .feature-card,
    .list-card,
    .notice-item,
    .request-card,
    .game-card,
    .mini-item {
        padding: 16px;
    }

    .page-title {
        font-size: 30px;
    }

    .table-wrap {
        border-radius: 16px;
    }

    .data-table {
        min-width: 720px;
    }
}

.triple-layout,
.room-card-list {
    display: grid;
    gap: 18px;
}

.triple-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 28, 0.4);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(23, 38, 53, 0.08);
    background: rgba(255, 250, 243, 0.96);
    box-shadow: 0 28px 70px rgba(7, 16, 25, 0.22);
}

.modal-body {
    display: grid;
    gap: 16px;
}

.member-action-panel,
.member-child-card {
    border: 1px solid rgba(23, 38, 53, 0.08);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.member-action-panel {
    padding: 18px;
    border-radius: 22px;
}

.modal-action-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-action-grid .action-btn {
    width: 100%;
    justify-content: center;
}

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

.modal-card-with-child {
    overflow: hidden;
}

.member-child-shell {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.member-child-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 28, 0.38);
    backdrop-filter: blur(3px);
}

.member-child-card {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: 100%;
    overflow: auto;
    padding: 20px;
    border-radius: 24px;
}

.admin-coin-challenge-shell {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-coin-challenge-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 28, 0.46);
    backdrop-filter: blur(4px);
}

.admin-coin-challenge-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(23, 38, 53, 0.08);
    background: rgba(255, 250, 243, 0.98);
    box-shadow: 0 28px 70px rgba(7, 16, 25, 0.26);
}

.admin-coin-key-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-coin-key {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(23, 38, 53, 0.08);
    background: rgba(22, 58, 89, 0.05);
}

.admin-coin-key span {
    color: var(--muted);
    font-size: 12px;
}

.admin-coin-key strong {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 18px;
    letter-spacing: 0.08em;
    word-break: break-all;
}

.room-card {
    margin-top: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(23, 38, 53, 0.08);
    background: rgba(255, 255, 255, 0.6);
}

.room-card-list {
    margin-top: 18px;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.room-card .section-head {
    margin-bottom: 8px;
}

.room-list-panel {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(23, 38, 53, 0.08);
    background: rgba(255, 255, 255, 0.58);
}

.room-list-headings,
.room-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 0.9fr)) auto;
    gap: 12px;
    align-items: center;
}

.room-list-headings {
    padding: 0 14px 10px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.room-list-body {
    display: grid;
    gap: 10px;
}

.room-list-row {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(23, 38, 53, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.room-list-cell {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.room-name-main,
.room-list-value {
    display: block;
}

.room-name-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.room-mobile-label {
    display: none;
    font-size: 12px;
    color: var(--muted);
}

.room-list-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-room-summary .mini-item {
    background: rgba(22, 58, 89, 0.04);
}
@media (max-width: 1180px) {
    .triple-layout {
        grid-template-columns: 1fr;
    }

    .game-summary-grid,
    .room-summary-grid,
    .room-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .room-name-field {
        grid-column: span 2;
    }

    .room-hint,
    .room-submit-row {
        grid-column: 1 / -1;
    }

    .room-submit-row {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .game-summary-grid,
    .room-summary-grid,
    .game-ops-grid,
    .room-form-grid,
    .compact-control-grid,
    .room-card-list,
    .modal-detail-grid,
    .admin-coin-key-grid {
        grid-template-columns: 1fr;
    }

    .room-name-field {
        grid-column: auto;
    }

    .room-list-panel {
        padding: 14px;
    }

    .room-list-headings {
        display: none;
    }

    .room-list-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .room-mobile-label {
        display: block;
    }

    .room-list-actions {
        justify-content: stretch;
    }

    .room-list-actions .ghost-btn,
    .room-list-actions .btn,
    .room-list-actions .action-btn {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }

    .modal-action-grid {
        grid-template-columns: 1fr;
    }
}
