/* Compact utility sheets stay within the poker client. */
.modal { width: min(350px, calc(100% - 24px)); max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; padding: 16px; border: 1px solid #60555c; border-radius: 5px; color: #ebe5e9; background: linear-gradient(#2b252b, #201b21); box-shadow: 0 12px 40px #000b; }
.modal::backdrop { background: #080408b3; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 27px; padding-bottom: 10px; margin-bottom: 11px; border-bottom: 1px solid #493c46; }
.modal-head strong { font-size: 15px; font-weight: 600; }
.close-btn { width: 27px; height: 27px; color: #b9abb6; display: grid; place-items: center; font-size: 23px; line-height: 1; }
.close-btn:hover { color: #fff; }
.close-btn svg { width: 17px; height: 17px; }
.modal h2 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.modal-description { color: #b2a4ae; font-size: 12px; line-height: 1.5; margin-bottom: 14px; }
.modal-description.modal-footnote { font-size: 10px; line-height: 1.5; color: #91818c; margin: 14px 0 0; }
.choice-menu { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(344px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); height: fit-content; margin: 0; padding: 14px; overflow: hidden; }
.choice-menu::backdrop { background: #0a030866; }
.choice-menu .modal-head { min-height: 32px; padding-bottom: 8px; margin-bottom: 10px; }
.choice-menu .modal-head strong { font-size: 14px; }
.choice-menu .modal-description { font-size: 11px; line-height: 1.3; margin-bottom: 9px; }
.choice-menu .close-btn { width: 32px; height: 32px; font-size: 23px; }
.choice-options { display: grid; gap: 6px; }
.choice-menu .game-option { min-height: 58px; gap: 4px; }
.choice-menu [data-skip-choice], .choice-menu [data-choice-skip], .choice-menu .choice-skip { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid #766350; border-radius: 4px; background: #362a31; color: #e9d6ba; font-size: 13px; font-weight: 650; }
.game-option { position: relative; min-height: 46px; text-align: left; padding: 8px 38px 8px 11px; background: #1d171e; border: 1px solid #574450; border-radius: 3px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.game-option > span:not(.selection-dot) { font-size: 13px; font-weight: 550; color: #e2d6de; }
.game-option small { color: #a18c9b; font-size: 10px; }
.game-option.selected { background: #40352f; border-color: #b29460; }
.game-option:hover { border-color: #9e8596; }
.selection-dot { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border: 1px solid #82707e; border-radius: 50%; }
.selected .selection-dot { border: 4px solid #c8aa6a; background: #eee2c6; }
.choice-note { margin-top: 9px; color: #9c8796; font-size: 10px; line-height: 1.3; }
.menu-modal { position: fixed; inset: calc(36px + env(safe-area-inset-top, 0px)) auto auto max(10px, calc((100vw - 520px) / 2)); width: 270px; max-height: calc(100dvh - 52px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); margin: 0; padding: 12px; }
.menu-modal .modal-head { margin-bottom: 5px; padding-bottom: 7px; }
.menu-list { display: grid; gap: 0; }
.menu-list > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 5px; text-align: left; font-size: 12px; color: #d1c2cd; border-bottom: 1px solid #43343f; }
.menu-list > button:last-child { border: 0; }
.menu-list > button:hover { color: #fff; background: #3b2c37; }
.menu-icon { display: grid; place-items: center; width: 21px; color: #a68c9e; }
.menu-icon svg { width: 17px; height: 17px; }
.menu-arrow { display: grid; place-items: center; align-self: center; flex: 0 0 20px; height: 24px; line-height: 1; margin-left: auto; font-size: 18px; color: #977b8d; }
.menu-profile { display: flex; align-items: center; gap: 9px; }
.menu-profile small { color: #9e7e94; font-size: 10px; max-width: 93px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field { display: block; margin: 15px 0; color: #c5b1bf; font-size: 12px; }
.field .input, .input { display: block; width: 100%; min-height: 41px; margin-top: 7px; padding: 10px 11px; color: #f2e9ef; border: 1px solid #6c5264; border-radius: 3px; background: #171017; font-size: 16px; color-scheme: dark; }
.input::placeholder { color: #87687f; }
.field small { display: block; margin-top: 6px; color: #9c7c91; font-size: 10px; line-height: 1.4; }
.primary-btn, .secondary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 9px 15px; border-radius: 4px; font-size: 13px; font-weight: 550; }
.primary-btn { color: #f5eeee; border: 1px solid #78646e; background: linear-gradient(#66525d, #44343e); box-shadow: inset 0 1px 0 #ffffff16, 0 2px 3px #0005; }
.secondary-btn { color: #d5c5cf; border: 1px solid #715768; background: #42313e; }
.primary-btn:hover, .secondary-btn:hover { filter: brightness(1.1); }
.full-width { width: 100%; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.chip-grid button { min-height: 36px; padding: 7px 4px; color: #d6c2ce; background: #3e2d38; border: 1px solid #6b4d60; border-radius: 3px; font-size: 12px; }
.chip-grid button.selected { border-color: #ae925c; color: #ead5a4; background: #494030; }
.rules-list { margin: 15px 0; }
.rules-list > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #4e3948; }
.rules-list strong { color: #e0cbd8; font-size: 12px; font-weight: 550; }
.rules-list span { color: #b497ab; font-size: 11px; text-align: right; }
.toast { position: fixed; left: 50%; bottom: calc(var(--dock-height) + env(safe-area-inset-bottom, 0px) + 12px); transform: translate(-50%, 7px); width: max-content; max-width: calc(100% - 24px); padding: 9px 14px; border: 1px solid #8f7486; border-radius: 4px; color: #efe3ec; background: #2e1d29f5; box-shadow: 0 4px 15px #0008; font-size: 12px; line-height: 1.4; text-align: center; opacity: 0; pointer-events: none; z-index: 100; transition: opacity .15s ease, transform .15s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-height: 680px) {
  .choice-menu { padding: 12px; }
  .choice-menu .modal-head { margin-bottom: 7px; padding-bottom: 5px; }
  .choice-menu .game-option { min-height: 52px; padding-top: 7px; padding-bottom: 7px; }
  .choice-menu .choice-note { margin-top: 7px; }
}

/* Main menu stays separate from the table; server snapshots keep balances live. */
.lobby-view { min-height: 0; overflow-y: auto; padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px)); background: radial-gradient(at 50% 0, #38212d, #151115 65%); }
.lobby-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.lobby-heading small { color: #b99aaa; font-size: 10px; letter-spacing: 1.3px; }
.lobby-heading h1 { margin-top: 5px; font-size: 23px; overflow-wrap: anywhere; }
.lobby-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
#lobby-practice { padding: 18px; border: 1px solid #58404e; border-radius: 8px; background: #21181f; }
#lobby-practice h2 { font-size: 18px; }
#lobby-practice p { margin: 10px 0 20px; color: #bdaab7; font-size: 13px; line-height: 1.5; }
#lobby-tables-body .club-table-list { max-height: none; }
#rules-modal .variant-rules { display: block; padding: 0; }
.variant-rules strong { display: block; margin: 18px 0 6px; }
.variant-rules p { margin: 0; }
.variant-rules small { display: block; margin-top: 14px; line-height: 1.5; }
