/* 后台基础布局：左侧菜单固定，右侧承载当前功能页面。 */
body {
    margin: 0;
    background: #eef2f6;
    color: #1f2937;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

/* 深色左侧菜单，参考用户给的后台菜单样式，只承载当前系统功能。 */
.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #222222;
    color: #f8fafc;
    border-top: 6px solid #2f5597;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #2f5597;
    font-weight: 700;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    margin-top: 3px;
    color: #a8b3c2;
    font-size: 12px;
}

.sidebar-menu {
    flex: 1;
    padding: 12px 0;
}

.sidebar-link,
.sidebar-logout {
    height: 72px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    color: #f4f7fb;
    text-decoration: none;
    border-left: 4px solid transparent;
    background: #222222;
}

.sidebar-link:hover,
.sidebar-logout:hover {
    color: #ffffff;
    background: #282828;
}

.sidebar-link.active {
    background: #2b2b2b;
    border-left-color: #5b8def;
}

.sidebar-menu-group {
    background: #222222;
}

.sidebar-menu-group summary {
    list-style: none;
    cursor: pointer;
}

.sidebar-menu-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-menu-group[open] .sidebar-chevron {
    transform: rotate(90deg);
}

.sidebar-submenu {
    padding: 6px 0 10px;
    background: #1d1d1d;
}

.sidebar-submenu-link {
    height: 44px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 22px 0 62px;
    color: #c6ceda;
    text-decoration: none;
    border-left: 4px solid transparent;
}

.sidebar-submenu-link:hover {
    color: #ffffff;
    background: #282828;
}

.sidebar-submenu-link.active {
    color: #ffffff;
    background: #2b2b2b;
    border-left-color: #5b8def;
}

.sidebar-submenu-link svg {
    width: 18px;
    height: 18px;
    color: #a8b3c2;
    stroke-width: 1.9;
}

.sidebar-submenu-link span {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link svg,
.sidebar-logout svg {
    width: 22px;
    height: 22px;
    color: #d0d5dd;
    stroke-width: 1.9;
}

.sidebar-link span,
.sidebar-logout span {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-chevron {
    color: #a8b3c2;
}

.sidebar-footer {
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer form {
    margin: 0;
}

.top-profile {
    position: fixed;
    top: 18px;
    right: 28px;
    z-index: 20;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #dde3ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.top-profile svg {
    width: 18px;
    height: 18px;
    color: #667085;
}

.top-profile span {
    max-width: 140px;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-profile a {
    color: #2f5597;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.app-icon {
    display: block;
    flex: 0 0 auto;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-icon,
.top-profile-icon,
.button-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.sidebar-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-chevron svg {
    width: 18px;
    height: 18px;
}

.button-icon svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -2px;
}

.sidebar-logout {
    width: 100%;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    text-align: left;
    cursor: pointer;
}

.app-main {
    min-width: 0;
    padding: 72px 28px 36px;
}

/* 工作区标签保留已访问页面，让菜单切换不丢失当前工作上下文。 */
.workspace-tabs {
    margin: 0 0 22px;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    overflow: hidden;
}

.workspace-tab-list {
    display: flex;
    min-height: 48px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.workspace-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    max-width: 220px;
    border-right: 1px solid #e2e7ef;
    background: #f7f9fc;
}

.workspace-tab.active {
    position: relative;
    background: #ffffff;
}

.workspace-tab.active::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #2f5597;
    content: "";
}

.workspace-tab-label {
    min-width: 92px;
    max-width: 180px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    overflow: hidden;
    color: #5c6675;
    font-size: 14px;
    text-align: left;
    line-height: 48px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-tab.active .workspace-tab-label {
    color: #1f2937;
    font-weight: 700;
}

.workspace-tab-label:hover {
    color: #2f5597;
}

.workspace-tab-close {
    width: 34px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    margin: 7px 6px 7px -6px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #7b8798;
}

.workspace-tab-close:hover,
.workspace-tab-close:focus-visible {
    background: #e6edf8;
    color: #1e437d;
    outline: none;
}

.workspace-tab-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.page-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.page-subtitle {
    margin-top: 6px;
    color: #667085;
    font-size: 13px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -3px;
}

/* 业务区域容器：用于表格、表单和指标块。 */
.panel {
    background: #ffffff;
    border: 1px solid #dde3ee;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.metric {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-value {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
}

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

.table-wrap {
    overflow-x: auto;
}

.room-live-panel {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #eef2ff;
    background: #1f2737;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgb(22 31 48 / 24%);
}

.room-live-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 500px));
    justify-content: center;
    gap: 16px;
}

.room-live-panels .room-live-panel {
    max-width: none;
    margin: 0;
}

.room-record-loading-overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: none;
    place-items: center;
    background: rgb(241 245 249 / 58%);
    cursor: wait;
}

.room-record-loading-overlay.is-active {
    display: grid;
}

.room-record-loading-overlay span {
    width: 40px;
    height: 40px;
    border: 4px solid #b9c8dd;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: room-record-spinner .65s linear infinite;
}

@keyframes room-record-spinner {
    to { transform: rotate(360deg); }
}

[data-room-record-dissolve].is-loading {
    position: relative;
    color: transparent;
}

[data-room-record-dissolve].is-loading::after {
    position: absolute;
    inset: 0;
    width: 14px;
    height: 14px;
    margin: auto;
    border: 2px solid rgb(220 53 69 / 35%);
    border-top-color: #dc3545;
    border-radius: 50%;
    content: "";
    animation: room-record-dissolve-spinner .65s linear infinite;
}

@keyframes room-record-dissolve-spinner {
    to { transform: rotate(360deg); }
}

.room-live-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 10px 12px;
    background: #252e42;
    border-bottom: 1px solid #3a455d;
}

.room-live-header h1 {
    margin: 0;
    font-size: 18px;
}

.room-live-header > .btn {
    flex: 0 0 auto;
    min-width: 52px;
    white-space: nowrap;
}

.room-live-header p {
    margin: 4px 0 0;
    color: #aeb9d2;
}

.room-live-count {
    margin-left: auto;
    color: #d8def0;
    font-size: 14px;
    white-space: nowrap;
}

.room-live-refresh {
    margin-left: auto;
}

.room-live-refresh + .room-live-count {
    margin-left: 0;
}

.room-live-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-player-list {
    padding: 2px 12px;
}

.room-player {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #344057;
}

.room-player-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    object-fit: cover;
}

.room-player-avatar-placeholder {
    display: grid;
    place-items: center;
    color: #c9d2e8;
    background: #48536d;
}

.room-player-main {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.room-player-main strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-player-main span {
    color: #33ddd1;
}

.room-player-main small {
    color: #aeb9d2;
    font-size: 13px;
}

.room-player-change {
    margin-left: auto;
    font-size: 17px;
    white-space: nowrap;
}

.room-player-change.positive {
    color: #ff365d;
}

.room-player-change.negative {
    color: #23bb79;
}

.room-live-empty {
    padding: 32px 0;
    color: #aeb9d2;
    text-align: center;
}

.room-live-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #404b65;
    border-top: 1px solid #404b65;
}

.room-live-stats div {
    display: grid;
    gap: 5px;
    padding: 10px;
    background: #2b354b;
}

.room-live-stats span {
    color: #b9c3da;
}

.room-live-stats strong {
    font-size: 16px;
}

.room-hand-replay {
    margin: 18px;
    padding: 14px 10px 18px;
    background: #1f2737;
}

.room-hand-replay-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #eef2ff;
    font-size: 17px;
}

.room-hand-chip {
    color: #fff;
    font-size: 19px;
    text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
}

.room-hand-replay.is-loading {
    opacity: .56;
    pointer-events: none;
}

.room-hand-cards {
    display: flex;
    gap: 2px;
    min-height: 82px;
}

.playing-card {
    position: relative;
    display: inline-flex;
    flex: 0 0 42px;
    flex-direction: column;
    justify-content: space-between;
    width: 42px;
    height: 82px;
    padding: 3px 5px 5px;
    color: #182132;
    font-family: Arial, sans-serif;
    background: #f8fafc;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

.playing-card strong {
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.playing-card small {
    align-self: center;
    font-size: 26px;
    line-height: 1;
}

.playing-card.suit-red {
    color: #d21f45;
}

.playing-card-back {
    background: linear-gradient(135deg, #42516d, #28354c);
    border: 2px solid #8191ae;
    box-shadow: inset 0 0 0 3px #28354c, 0 1px 2px rgb(0 0 0 / 30%);
}

.room-hand-players {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

.room-hand-player {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 76px;
    grid-template-rows: 82px 28px;
    column-gap: 9px;
    min-height: 110px;
}

.room-hand-player.is-winner {
    background: linear-gradient(90deg, rgb(243 182 31 / 8%), transparent 48%);
}

.room-hand-identity {
    display: grid;
    grid-row: 1 / span 2;
    grid-template-rows: 74px 28px;
    min-width: 0;
}

.room-hand-identity img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.room-hand-identity strong {
    overflow: hidden;
    color: #edf1f7;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-hand-card-line {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 16px;
}

.room-community-cards {
    flex-wrap: nowrap;
}

.room-hand-type {
    position: absolute;
    z-index: 2;
    bottom: -1px;
    left: 10px;
    padding: 1px 5px;
    color: #fff;
    font-size: 12px;
    background: #111827;
    border-radius: 2px;
}

.room-hand-action {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    color: #c7cfdd;
    font-size: 17px;
}

.room-hand-change {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-left: auto;
    align-self: center;
    font-size: 28px;
}

.room-hand-change.positive {
    color: #ff365d;
}

.room-hand-change.negative {
    color: #23bb79;
}

.room-hand-empty {
    padding: 16px 0 2px;
    color: #aeb9d2;
    text-align: center;
}

.room-hand-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.room-hand-navigation button {
    min-width: 40px;
    color: #eef2ff;
    background: #35415a;
    border: 0;
    border-radius: 7px;
    padding: 7px;
}

.room-hand-navigation button:disabled {
    opacity: .38;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
}

.pagination-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-jump .form-control {
    width: 76px;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-actions .active {
    color: #ffffff;
    background: #2f5597;
    border-color: #2f5597;
}

.stack-trace {
    max-width: 480px;
    margin: 8px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.agent-new-form-row {
    align-items: start;
}

.agent-parent-config {
    display: grid;
    gap: 16px;
}

.agent-rebate-config {
    grid-column: 1 / -1;
}

.form-panel {
    padding: 24px;
}

.club-settings-row {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    align-items: start;
    max-width: 980px;
}

.club-id-field {
    grid-column: 1 / -1;
    max-width: 480px;
}

.own-password-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    max-width: 980px;
}

.balance-form-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.balance-remark {
    grid-column: span 2;
}

.form-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.member-group-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.member-group-create-input {
    width: 240px;
}

.member-group-edit-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.member-group-edit-form .form-control {
    width: 160px;
}

.member-group-name {
    cursor: pointer;
}

.member-group-members {
    display: grid;
    min-width: 720px;
}

.member-group-member {
    display: grid;
    grid-template-columns: 110px minmax(160px, 1fr) 120px 100px minmax(150px, 1fr);
    gap: 12px;
    align-items: center;
    padding: 7px 0;
    color: #475467;
    border-bottom: 1px solid #eaecf0;
}

.member-group-member span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-group-member-header {
    padding-top: 0;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
}

.member-group-select .form-select {
    min-width: 160px;
}

.member-balance-records-dialog {
    width: min(1100px, 96vw);
    height: min(640px, 90vh);
    padding: 0;
    border: 0;
    border-radius: 12px;
}

.member-balance-records-dialog::backdrop {
    background: rgba(0, 0, 0, .45);
}

.member-balance-records-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.member-balance-records-dialog iframe {
    width: 100%;
    height: calc(100% - 53px);
    border: 0;
}

.member-balance-records-page .form-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
    gap: 12px;
}

.member-filter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
}

.member-sync-action {
    flex: 0 0 auto;
}

.form-card {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 16px;
    background: #fbfcfe;
}

.form-card .btn {
    margin-top: 4px;
}

.permission-tree {
    display: grid;
    gap: 14px;
}

.permission-tree-node {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 14px;
}

.permission-tree-root {
    display: block;
    margin: 0;
}

.permission-tree-children {
    display: grid;
    gap: 10px;
    margin: 12px 0 0 18px;
    padding-left: 16px;
    border-left: 2px solid #d0d5dd;
}

.permission-tree-leaf {
    margin: 0;
}

.muted {
    color: #667085;
}

.danger {
    color: #b42318;
}

code {
    white-space: pre-wrap;
    word-break: break-word;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #202020 0%, #2b3445 100%);
}

.login-panel {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.google-qr {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid #dde3ee;
    border-radius: 8px;
    background: #f8fafc;
}

.google-qr-image {
    width: 220px;
    height: 220px;
}

.robot-flow-panel {
    padding: 0;
    overflow: hidden;
}

.robot-device {
    min-height: 650px;
    display: grid;
    place-items: center;
    padding: 26px;
    background: #f5f7fb;
}

.robot-phone-screen {
    width: min(430px, 100%);
    min-height: 620px;
    display: none;
    flex-direction: column;
    padding: 28px;
    border: 1px solid #dde3ee;
    border-radius: 8px;
    background: #f5f7fb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.robot-phone-screen.active {
    display: flex;
}

.robot-phone-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.robot-phone-brand h3,
.robot-mobile-header h3,
.robot-sms-account h3 {
    margin: 0;
    color: #101828;
    font-size: 24px;
    font-weight: 700;
}

.robot-phone-brand p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 13px;
}

.robot-logged-state {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.robot-logged-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-top: 4px;
    border-radius: 8px;
    background: #e6f7f4;
    color: #0f9f8f;
}

.robot-logged-icon svg {
    width: 32px;
    height: 32px;
}

.robot-logged-state h3 {
    margin: 0;
    color: #101828;
    font-size: 24px;
    font-weight: 700;
}

.robot-login-details {
    display: grid;
    gap: 12px;
    margin: 0;
}

.robot-login-details div {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid #dde3ee;
    border-radius: 8px;
    background: #ffffff;
}

.robot-login-details dt {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.robot-login-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
}

.robot-login-form,
.robot-sms-form {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.robot-phone-control,
.robot-password-control,
.robot-country-search,
.robot-sms-code-control {
    min-height: 58px;
    display: flex;
    align-items: center;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    background: #ffffff;
}

.robot-phone-control:focus-within,
.robot-password-control:focus-within,
.robot-country-search:focus-within,
.robot-sms-code-control:focus-within {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.robot-country-button {
    height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 0 12px 0 16px;
    border: 0;
    background: transparent;
    color: #475467;
    font-weight: 700;
}

.robot-country-button svg {
    width: 18px;
    height: 18px;
}

.robot-country-flag {
    width: 28px;
    display: inline-grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
}

.robot-country-flag-image {
    width: 26px;
    height: 18px;
    display: block;
    object-fit: cover;
}

.robot-phone-divider {
    width: 1px;
    height: 24px;
    background: #cfd5df;
}

.robot-phone-control input,
.robot-password-control input,
.robot-country-search input,
.robot-sms-code-control input {
    min-width: 0;
    flex: 1;
    height: 56px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
    font-size: 18px;
}

.robot-phone-control input::placeholder,
.robot-password-control input::placeholder,
.robot-country-search input::placeholder,
.robot-sms-code-control input::placeholder {
    color: #98a2b3;
}

.robot-password-control {
    padding-left: 18px;
}

.robot-password-control button,
.robot-mobile-header button {
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
}

.robot-password-control button {
    width: 58px;
    height: 58px;
    color: #667085;
}

.robot-password-control button svg {
    width: 23px;
    height: 23px;
}

.robot-submit-button {
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    background: #14b8a6;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.robot-delete-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    border: 1px solid #f1a7a0;
    border-radius: 8px;
    background: #ffffff;
    color: #b42318;
    font-size: 16px;
    font-weight: 700;
}

.robot-delete-button:hover {
    background: #fff4f2;
}

.robot-delete-button:disabled {
    cursor: wait;
    color: #98a2b3;
    border-color: #dde3ee;
    background: #f8fafc;
}

.robot-delete-button svg {
    width: 18px;
    height: 18px;
}

.robot-submit-button:hover {
    background: #0f9f8f;
}

.robot-submit-button:disabled {
    cursor: wait;
    background: #7acfc6;
}

.robot-form-message {
    min-height: 20px;
    margin: -8px 0 0;
    color: #b42318;
    font-size: 14px;
    line-height: 1.45;
}

.robot-mobile-header {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.robot-mobile-header button {
    width: 36px;
    height: 36px;
    color: #101828;
}

.robot-mobile-header button svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.4;
}

.robot-country-search {
    padding: 0 18px;
    margin-bottom: 18px;
}

.robot-country-search svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    margin-right: 8px;
    color: #98a2b3;
}

.robot-country-list {
    min-height: 0;
    flex: 1;
    overflow: auto;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    background: #ffffff;
}

.robot-country-row {
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: 36px minmax(0, max-content) minmax(64px, 1fr) 28px;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: #ffffff;
    color: #1f2937;
    text-align: left;
}

.robot-country-row:last-child {
    border-bottom: 0;
}

.robot-country-row:hover {
    background: #f8fafc;
}

.robot-country-row strong {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.robot-country-row em {
    color: #667085;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
}

.robot-country-row svg {
    display: none;
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 999px;
    background: #14b8a6;
    color: #ffffff;
}

.robot-country-row.selected svg {
    display: block;
}

.robot-sms-account {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 48px 0 42px;
    text-align: center;
}

.robot-sms-account svg {
    width: 58px;
    height: 58px;
    color: #222222;
    stroke-width: 1.8;
}

.robot-sms-account p {
    margin: 0;
    color: #667085;
    font-size: 17px;
    font-weight: 700;
}

.robot-sms-code-control {
    padding-left: 18px;
}

.robot-sms-code-control button {
    height: 30px;
    flex: 0 0 auto;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid #cfd5df;
    background: transparent;
    color: #14b8a6;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.robot-sms-code-control button:disabled {
    color: #98a2b3;
}

.robot-sms-form p {
    margin: -6px 0 0;
    color: #98a2b3;
    font-size: 14px;
    line-height: 1.45;
}

.robot-sms-form .robot-submit-button {
    margin-top: auto;
}

@media (max-width: 860px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        height: auto;
    }

    .sidebar-brand {
        padding: 16px;
    }

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

    .sidebar-link,
    .sidebar-logout {
        height: 56px;
        border-left: 0;
        border-radius: 8px;
        padding: 0 12px;
    }

    .sidebar-link span,
    .sidebar-logout span {
        font-size: 15px;
    }

    .sidebar-menu-group {
        grid-column: 1 / -1;
    }

    .sidebar-submenu {
        padding: 4px 8px;
    }

    .sidebar-submenu-link {
        height: 42px;
        padding-left: 26px;
        border-left: 0;
        border-radius: 8px;
    }

    .sidebar-footer {
        padding: 0 8px 8px;
        border-top: 0;
    }

    .top-profile {
        position: static;
        margin: 0 8px 8px;
        justify-content: center;
    }

    .app-main {
        padding: 18px 14px 28px;
    }

    .workspace-tabs {
        margin-bottom: 18px;
    }

    .workspace-tab-label {
        min-width: 84px;
        max-width: 150px;
        padding: 0 12px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }


    .form-row {
        grid-template-columns: 1fr;
    }

    .room-live-panels {
        grid-template-columns: 1fr;
    }

    .room-live-header {
        flex-wrap: wrap;
        padding: 16px;
    }

    .room-live-count {
        width: 100%;
        margin-left: 0;
    }

    .room-live-refresh {
        margin-left: auto;
    }

    .room-live-content {
        min-height: 0;
    }

    .room-player-list {
        padding: 8px 14px;
    }

    .room-player-main small {
        max-width: 190px;
    }

    .room-live-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-hand-replay {
        margin: 14px;
        padding: 14px;
    }

    .room-hand-card-line {
        gap: 12px;
        overflow-x: auto;
    }

    .room-hand-player .playing-card {
        flex-basis: 40px;
        width: 40px;
        height: 78px;
    }

    .playing-card strong {
        font-size: 23px;
    }

    .playing-card small {
        font-size: 24px;
    }

    .balance-remark {
        grid-column: auto;
    }

    .robot-device {
        min-height: 640px;
        padding: 14px;
    }

    .robot-phone-screen {
        min-height: 610px;
        padding: 22px 18px;
    }

    .robot-country-row {
        grid-template-columns: 32px minmax(0, 1fr) auto 28px;
        padding: 0 14px;
    }
}

@media (min-width: 861px) and (max-width: 1180px) {
    .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .balance-remark {
        grid-column: span 2;
    }
}

.room-create-layout .top-profile {
    display: none;
}

.room-create-main {
    padding: 0;
    background: linear-gradient(135deg, #e9fbfb 0%, #f3f4f6 58%);
}

.room-create-page {
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 8px 76px;
}

.room-create-form,
.room-create-advanced {
    display: grid;
    gap: 10px;
}

.room-create-card {
    min-width: 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: #ffffff;
}

.room-create-basic {
    display: grid;
    gap: 22px;
}

.room-create-top-row {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.45fr;
    gap: 18px;
}

.room-create-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.room-create-field {
    min-width: 0;
    display: grid;
    gap: 9px;
    color: #7a7d80;
    font-size: 16px;
    font-weight: 700;
}

.room-create-field > span,
.room-create-option > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.room-create-field > span svg,
.room-create-option > span:first-child svg {
    width: 20px;
    height: 20px;
    color: #85898d;
}

.room-create-field output {
    color: #17191c;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.room-create-straddle-control {
    display: flex;
    align-items: center;
    gap: 7px;
}

.room-create-straddle-control output {
    color: #d1d3d6;
}

.room-create-field input[type="range"] {
    width: 100%;
    height: 24px;
    margin: 2px 0 0;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 999px;
    background:
        linear-gradient(#10bea9, #10bea9) 0 50% / var(--range-progress, 0%) 8px no-repeat,
        linear-gradient(#dedfe2, #dedfe2) 0 50% / 100% 8px no-repeat,
        repeating-linear-gradient(to right, #e3e4e6 0 1px, transparent 1px var(--range-tick-step, 14.2857%)) 0 0 / 100% 10px no-repeat;
    outline: none;
}

.room-create-field input[type="range"]::-webkit-slider-thumb {
    width: 38px;
    height: 38px;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #d8d9dc;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 5px 10px rgba(15, 23, 42, 0.16);
    cursor: pointer;
}

.room-create-select,
.room-create-number {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: #f6f6f7;
    color: #111315;
    font-size: 16px;
    font-weight: 700;
}

.room-create-select {
    width: 100%;
    padding: 0 12px;
}

.room-create-ante {
    position: relative;
    display: block;
}

.room-create-ante-trigger {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111315;
}

.room-create-ante-trigger strong {
    font-size: 16px;
    line-height: 1;
}

.room-create-ante-trigger svg {
    width: 26px;
    height: 26px;
    padding: 4px;
    border-radius: 50%;
    background: #f6f6f7;
    stroke-width: 2.5;
}

.room-create-ante-trigger.is-open svg {
    border: 1px solid #10bea9;
    background: #ffffff;
    color: #111315;
    transform: rotate(180deg);
}

.room-create-ante-options {
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    right: 0;
    width: 210px;
    overflow: hidden;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.room-create-ante-options[hidden] {
    display: none;
}

.room-create-ante-options button {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid #e2e2e2;
    background: #ffffff;
    color: #181b1e;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.room-create-ante-options button:last-child {
    border-bottom: 0;
}

.room-create-ante-options button[aria-selected="true"] {
    color: #10bea9;
}

.room-create-ante-options button svg {
    width: 20px;
    height: 20px;
    stroke-width: 3;
}

.room-create-ante-options em {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 5px;
    background: #9240cf;
    color: #ffffff;
    font-size: 16px;
    font-style: normal;
    line-height: 1.35;
    vertical-align: 2px;
}

.room-create-duration-field {
    gap: 9px;
}

.room-create-range-hints {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    color: #202225;
    font-size: 16px;
}

.room-create-range-hints b:last-child {
    color: #10bea9;
}

.room-create-seat-field {
    display: grid;
    grid-template-columns: 1fr minmax(110px, 150px);
    align-items: center;
    gap: 16px;
    color: #1c1f22;
    font-size: 16px;
    font-weight: 700;
}

.room-create-basic .room-create-select {
    font-size: 16px;
}

.room-create-option {
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #1d2023;
    font-size: 16px;
    font-weight: 700;
}

.room-create-help {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #85898d;
}

.room-create-help svg {
    width: 20px;
    height: 20px;
}

.room-create-help-popover {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 9px);
    left: -20px;
    width: min(360px, calc(100vw - 24px));
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
    color: #1d2023;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    white-space: pre-line;
}

.room-create-help-popover::after {
    position: absolute;
    bottom: -9px;
    left: 26px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    content: "";
    transform: rotate(45deg);
}

.room-create-options {
    display: grid;
    gap: 16px;
}

.room-create-options .room-create-option {
    min-height: 34px;
}

.room-create-start-when-full > span:first-child {
    white-space: nowrap;
}

.room-create-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.room-create-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.room-create-switch span {
    width: 68px;
    height: 38px;
    display: block;
    border-radius: 999px;
    background: #dcdddf;
    cursor: pointer;
}

.room-create-switch span::after {
    width: 30px;
    height: 30px;
    display: block;
    margin: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
    content: "";
    transition: transform 0.16s ease;
}

.room-create-switch input:checked + span {
    background: #10bea9;
}

.room-create-switch input:checked + span::after {
    transform: translateX(30px);
}

.room-create-switch input:focus-visible + span {
    outline: 2px solid rgba(16, 190, 169, 0.35);
    outline-offset: 2px;
}

.room-create-advanced {
    gap: 12px;
}

.room-create-advanced summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px 10px;
    color: #1d2023;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    list-style: none;
}

.room-create-advanced summary::-webkit-details-marker {
    display: none;
}

.room-create-advanced-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.room-create-advanced-state::before {
    content: "展开";
}

.room-create-advanced[open] .room-create-advanced-state::before {
    content: "收起";
}

.room-create-advanced[open] summary svg {
    transform: rotate(180deg);
}

.room-create-number {
    width: 150px;
    display: flex;
    align-items: center;
}

.room-create-number input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: right;
}

.room-create-number b {
    padding-right: 12px;
}

.room-create-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    padding: 12px 0 8px;
    background: linear-gradient(to bottom, transparent, #f2f3f5 30%);
}

.room-create-title,
.room-create-submit {
    height: 60px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
}

.room-create-title {
    min-width: 0;
    padding: 0 18px;
    border: 1px solid #d6d8dc;
    background: #ffffff;
    color: #1b1d20;
}

.room-create-submit {
    border: 0;
    background: #10bea9;
    color: #ffffff;
    font-size: 16px;
}

.room-create-submit.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.room-create-submit.is-loading::after {
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    margin: auto;
    border: 2px solid rgb(255 255 255 / 38%);
    border-top-color: #ffffff;
    border-radius: 50%;
    content: "";
    animation: room-create-submit-spinner .65s linear infinite;
}

@keyframes room-create-submit-spinner {
    to { transform: rotate(360deg); }
}

@media (max-width: 660px) {
    .room-create-page {
        padding-right: 6px;
        padding-left: 6px;
    }

    .room-create-card {
        padding: 14px;
    }

    .room-create-top-row,
    .room-create-two-columns {
        grid-template-columns: 1fr;
    }

    .room-create-field,
    .room-create-option {
        font-size: 16px;
    }

    .room-create-field output {
        font-size: 16px;
    }

    .room-create-switch span {
        width: 60px;
        height: 34px;
    }

    .room-create-switch span::after {
        width: 26px;
        height: 26px;
    }

    .room-create-switch input:checked + span::after {
        transform: translateX(26px);
    }

    .room-create-select,
    .room-create-number {
        min-height: 38px;
        font-size: 16px;
    }

    .room-create-seat-field {
        font-size: 16px;
    }

    .room-create-title,
    .room-create-submit {
        height: 52px;
        font-size: 16px;
    }
}

.room-table-body {
    min-height: 100vh;
    overflow: hidden;
    background: #071f1b;
}

.room-table {
    position: relative;
    width: 100vw;
    max-width: none;
    min-height: 660px;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    isolation: isolate;
    background:
        repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
        radial-gradient(ellipse 80% 56% at 50% 45%, #04bfa7 0%, #008a72 54%, #006048 100%);
    color: #ffffff;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.room-table::before,
.room-table::after {
    position: absolute;
    z-index: -1;
    left: -18%;
    width: 136%;
    border-radius: 50%;
    content: "";
}

.room-table::before {
    bottom: -9%;
    height: 33%;
    border: 2px solid rgba(0, 51, 41, 0.65);
    box-shadow: inset 0 -12px 24px rgba(0, 35, 29, 0.38);
}

.room-table::after {
    bottom: -21%;
    height: 31%;
    border: 8px solid #111b1b;
    box-shadow: 0 -3px 4px rgba(255, 255, 255, 0.18), 0 -12px 28px #03120f;
}

.room-table-tools {
    position: absolute;
    top: 4.6%;
    right: 3.4%;
    display: flex;
    align-items: center;
    gap: clamp(14px, 4.2vw, 32px);
    color: #ffffff;
}

.room-table-menu-toggle {
    position: absolute;
    z-index: 3;
    top: 5.4%;
    left: 3.6%;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
}

.room-table-menu-toggle svg {
    width: clamp(22px, 4.2vw, 42px);
    height: clamp(22px, 4.2vw, 42px);
    stroke-width: 2.8;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25));
}

.room-table-tools svg {
    width: clamp(18px, 7.2vw, 43px);
    height: clamp(18px, 7.2vw, 43px);
    stroke-width: 2.8;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25));
}

.room-table-menu {
    position: absolute;
    z-index: 2;
    top: 4.8%;
    left: 2.4%;
    width: 30%;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(37, 40, 52, 0.96);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.2);
}

.room-table-menu button {
    width: calc(100% - 10px);
    min-height: 34px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    margin: 0 5px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
    background: transparent;
    color: #f4f6f6;
    font: inherit;
    font-size: clamp(13px, 4.3vw, 29px);
    font-weight: 700;
    text-align: left;
}

.room-table-menu button:last-child {
    border-bottom: 0;
}

.room-table-menu button:disabled {
    color: #90999c;
}

.room-table-menu svg {
    width: 20px;
    height: 20px;
    color: currentColor;
    stroke-width: 2.5;
}

.room-table-seat {
    position: absolute;
    z-index: 1;
    width: clamp(38px, 10.5vw, 104px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(255, 255, 255, 0.68);
    border-radius: 34%;
    color: #ffffff;
    font-size: clamp(26px, 8vw, 70px);
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.22);
}

.room-table-seat-one { top: 11%; left: 44%; }
.room-table-seat-two { top: 23%; left: 13%; }
.room-table-seat-three { top: 21%; right: 13%; }
.room-table-seat-four { top: 38%; right: 13%; }
.room-table-seat-five { top: 56%; right: 13%; }
.room-table-seat-six { top: 56%; left: 13%; }
.room-table-seat-seven { bottom: 18%; left: 44%; }

.room-table-center {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 50%;
    min-width: 260px;
    display: grid;
    justify-items: center;
    transform: translateX(-50%);
    text-align: center;
}

.room-table-pot {
    min-width: 64px;
    padding: 4px 12px;
    background: #007762;
    color: rgba(0, 58, 48, 0.78);
    font-size: clamp(11px, 3vw, 22px);
    font-weight: 700;
    line-height: 1.2;
}

.room-table-watermark {
    display: grid;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 700;
    line-height: 0.9;
}

.room-table-watermark strong {
    font-size: clamp(48px, 14vw, 118px);
    font-weight: 400;
}

.room-table-watermark span {
    margin-top: -10px;
    font-size: clamp(22px, 6vw, 56px);
}

.room-table-watermark small {
    font-size: clamp(10px, 2.8vw, 24px);
}

.room-table-invite {
    width: 68%;
    height: 34px;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(61, 218, 187, 0.52);
    box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.18), 0 3px 4px rgba(0, 64, 51, 0.35);
    color: #ffffff;
    font: inherit;
    font-size: clamp(14px, 5vw, 32px);
    font-weight: 700;
}

.room-table-meta,
.room-table-title {
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: clamp(13px, 3vw, 20px);
    font-weight: 700;
}

.room-table-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.room-table-meta b {
    font: inherit;
}

.room-table-title {
    max-width: 250px;
    margin-top: 3px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.room-table-lucky {
    position: absolute;
    bottom: 26%;
    left: 2%;
    display: grid;
    justify-items: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.room-table-lucky svg {
    width: 38px;
    height: 25px;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(0, 75, 59, 0.68);
}

.room-table-lucky span {
    margin-top: 8px;
    font-size: 30px;
}

.room-table-lucky b {
    margin-top: -3px;
}

.room-table-shield {
    position: absolute;
    right: 3.6%;
    bottom: 20%;
    width: 35px;
    height: 35px;
    color: #61f8e3;
    fill: rgba(89, 247, 224, 0.45);
    filter: drop-shadow(0 0 6px #00cdb4);
}

.room-table-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 8.6%;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 4%;
    background: linear-gradient(0deg, rgba(7, 12, 13, 0.96), rgba(32, 35, 35, 0.86));
    box-shadow: inset 0 4px 5px rgba(255, 255, 255, 0.16);
}

.room-table-footer svg {
    width: 31px;
    height: 31px;
    padding: 7px;
    border-radius: 5px;
    background: #f0f0f0;
    color: #1e2325;
    stroke-width: 2.8;
}

.room-table-footer svg:last-child {
    margin-left: auto;
    border-radius: 50%;
    background: transparent;
    color: #d6d7d7;
}

@media (max-width: 420px) {
    .room-table-menu {
        min-width: 0;
    }

    .room-table-menu button {
        min-height: 34px;
        grid-template-columns: 22px minmax(0, 1fr);
        font-size: 14px;
    }

    .room-table-menu svg {
        width: 20px;
        height: 20px;
    }

    .room-table-center {
        top: 20%;
    }

    .room-table-watermark {
        margin-top: 12px;
    }

    .room-table-invite {
        height: 34px;
    }
}

.room-table-tools button {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.room-table-menu {
    top: 4.8%;
    left: 0.9%;
    width: min(27.5vw, 300px);
    border-radius: 24px;
}

.room-table-menu button {
    min-height: clamp(58px, 5.65vh, 101px);
    grid-template-columns: clamp(35px, 5vw, 64px) minmax(0, 1fr);
    gap: clamp(8px, 1.8vw, 20px);
    margin: 0 clamp(15px, 2.6vw, 28px);
    width: calc(100% - clamp(30px, 5.2vw, 56px));
    font-size: clamp(17px, 3.8vw, 42px);
    line-height: 1.2;
    white-space: nowrap;
}

.room-table-menu svg {
    width: clamp(26px, 4.2vw, 46px);
    height: clamp(26px, 4.2vw, 46px);
}

.room-table-seat-1 { top: 11%; left: 44%; }
.room-table-seat-2 { top: 21%; right: 13%; }
.room-table-seat-3 { top: 38%; right: 13%; }
.room-table-seat-4 { top: 56%; right: 13%; }
.room-table-seat-5 { bottom: 18%; left: 44%; }
.room-table-seat-6 { top: 56%; left: 13%; }
.room-table-seat-7 { top: 38%; left: 13%; }
.room-table-seat-8 { top: 21%; left: 13%; }
.room-table-seat-9 { top: 11%; right: 44%; }

.room-table-center {
    top: 24.3%;
}

.room-table-pot {
    position: relative;
    min-width: clamp(106px, 15.2vw, 165px);
    height: clamp(28px, 2.4vw, 43px);
    padding: 0 clamp(12px, 2vw, 22px);
    display: grid;
    place-items: center;
    font-size: clamp(15px, 2.5vw, 27px);
}

.room-table-pot::before,
.room-table-pot::after {
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-top: calc(clamp(28px, 2.4vw, 43px) / 2) solid transparent;
    border-bottom: calc(clamp(28px, 2.4vw, 43px) / 2) solid transparent;
    content: "";
}

.room-table-pot::before {
    left: -19px;
    border-right: 19px solid #007762;
}

.room-table-pot::after {
    right: -19px;
    border-left: 19px solid #007762;
}

.room-table-watermark {
    margin-top: clamp(28px, 4vw, 50px);
}

.room-table-invite {
    height: clamp(58px, 5.65vh, 101px);
    margin-top: clamp(18px, 1.8vw, 30px);
    font-size: clamp(18px, 3.8vw, 42px);
}

.room-table-meta,
.room-table-title {
    font-size: clamp(14px, 2.4vw, 27px);
}

.room-table-title {
    max-width: clamp(180px, 22vw, 240px);
}

.room-table-lucky {
    bottom: 20%;
    left: 1.8%;
    padding: 0;
    border: 0;
    background: transparent;
}

.room-table-lucky span {
    display: grid;
    place-items: center;
    width: clamp(45px, 6vw, 66px);
    height: clamp(52px, 7vw, 78px);
    margin-top: 8px;
    border-radius: 10px;
    background: linear-gradient(160deg, #ff6c50, #ef2f29 58%, #ffb52e);
    color: #ffe6a9;
}

.room-table-lucky span svg {
    width: 58%;
    height: 58%;
}

.room-table-lucky b {
    font-size: clamp(14px, 2.2vw, 24px);
}

.room-table-shield {
    right: 3.6%;
    bottom: 11.5%;
    width: clamp(38px, 5vw, 56px);
    height: clamp(38px, 5vw, 56px);
}

.room-table-footer {
    height: 10%;
    gap: clamp(20px, 3.4vw, 38px);
}

.room-table-footer svg {
    width: clamp(34px, 4.2vw, 46px);
    height: clamp(34px, 4.2vw, 46px);
    padding: clamp(5px, 0.7vw, 8px);
}

.room-table-menu.is-hidden {
    display: none;
}

@media (orientation: landscape) {
    .room-table-menu {
        width: clamp(105px, 13.75vw, 150px);
        border-radius: 12px;
    }

    .room-table-menu button {
        min-height: clamp(22px, 2.825vh, 48px);
        grid-template-columns: clamp(14px, 1.9vw, 23px) minmax(0, 1fr);
        gap: clamp(3px, 0.5vw, 7px);
        margin: 0 clamp(6px, 0.9vw, 10px);
        width: calc(100% - clamp(12px, 1.8vw, 20px));
        font-size: clamp(8px, 1.6vw, 19px);
    }

    .room-table-menu svg {
        width: clamp(12px, 1.9vw, 23px);
        height: clamp(12px, 1.9vw, 23px);
    }
}

@media (max-width: 420px) {
    .room-table-menu {
        width: 30%;
        min-width: 0;
        border-radius: 18px;
    }

    .room-table-menu button {
        min-height: 34px;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 5px;
        margin: 0 5px;
        width: calc(100% - 10px);
        font-size: 14px;
    }

    .room-table-menu svg {
        width: 20px;
        height: 20px;
    }
}
