:root { color-scheme: light; font-family: "Noto Sans KR", sans-serif; font-size: 16px; font-synthesis: none; color: #14213d; background: #f4f7fb; }
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; font-size: 16px !important; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; min-width: 0; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { min-height: 48px; border: 0; border-radius: 10px; background: #315a9f; color: #fff; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
label { display: grid; gap: 7px; font-size: .92rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #14213d; font-size: 16px; }
textarea { resize: vertical; }
.page-shell { width: min(calc(100% - 32px), 680px); max-width: 100%; min-width: 0; margin: 0 auto; padding: max(32px, calc(env(safe-area-inset-top) + 20px)) 0 104px; }
.auth-card, .card { border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(34, 55, 90, .09); }
html[data-theme="light"] body:has(#loginView:not(.hidden)), html[data-theme="light"] body:has(#loginView:not(.hidden)) .page-shell { background: #fdf2e0; }
.auth-card { position: relative; display: grid; grid-template-columns: 1fr; align-items: start; gap: 24px; max-width: 680px; margin: clamp(28px, 10vh, 96px) auto; padding: 28px 32px 34px; overflow: hidden; border: 1px solid #eadfcf; border-radius: 28px; background: #fdf2e0; box-shadow: 0 20px 55px rgba(109,76,48,.14); }
.login-brand-panel { align-self: center; width: min(100%, 360px); height: 210px; margin: 0 auto; overflow: hidden; border: 1px solid #eadfcf; border-radius: 22px; background: #fdf2e0; box-shadow: 0 12px 28px rgba(109,76,48,.12); }
.login-brand-panel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.login-form-panel { position: relative; z-index: 1; display: grid; align-content: center; gap: 18px; width: min(100%, 420px); min-width: 0; margin: 0 auto; }
.auth-card h1, .auth-card .description, .auth-card form { margin: 0; }
.login-eyebrow-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.login-join-button { display: inline-flex; align-items: center; gap: 4px; width: auto; min-height: 34px; padding: 6px 12px; border: 1px solid #cbdcf7; border-radius: 999px; background: #edf4ff; color: #315a9f; font-size: .74rem; font-weight: 800; }
.login-join-button span { font-size: 1rem; line-height: .8; }
.auth-card h1 { position: relative; z-index: 1; margin-top: 4px; color: #14213d; font-size: clamp(1.7rem, 4vw, 2rem); letter-spacing: -.04em; }
.auth-card .description { position: relative; z-index: 1; color: #6b7c93; font-size: .9rem; }
.auth-card form { position: relative; z-index: 1; gap: 14px; }
.auth-card form label { gap: 8px; color: #334766; font-size: .8rem; }
.auth-card form input, .auth-card form select { min-height: 52px; border-color: #d6e1f1; border-radius: 14px; background: rgba(255,255,255,.88); font-size: 1rem; }
.auth-card form > button[type="submit"] { min-height: 54px; margin-top: 4px; border-radius: 14px; background: linear-gradient(135deg, #315a9f, #4776c0); box-shadow: 0 9px 18px rgba(49,90,159,.22); font-size: 1rem; }
.auth-card form .text-button { min-height: 34px; color: #71819a; font-size: .78rem; }
.app-loading { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: #64748b; font-size: .9rem; text-align: center; }
.app-loading > span:last-child { display: block; text-align: center; }
.loading-spinner { width: 32px; height: 32px; border: 3px solid #dbe5f6; border-top-color: #315a9f; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes game-turn-alert { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }
.auth-card form, .card form { display: grid; gap: 16px; }
.checkin-nickname-suggestions { overflow: hidden; max-height: 210px; margin-top: -8px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; box-shadow: 0 10px 22px rgba(34,55,90,.16); }
.checkin-visit-at { display: grid; grid-column: 1 / -1; gap: 8px; width: 100%; min-width: 0; margin: 0 0 8px; color: #14213d; font-weight: 700; }
.checkin-visit-at input { display: block; width: 100%; cursor: pointer; box-sizing: border-box; min-width: 0; max-width: 100%; }
.checkin-visit-at, #checkinForm, #checkinForm #nicknames { inline-size: 100%; max-inline-size: 100%; }
#checkinForm { min-inline-size: 0; }
#checkinForm #nicknames { display: block; box-sizing: border-box; }
.checkin-nickname-help { margin-bottom: 8px; }
@media (max-width: 680px) {
  .checkin-visit-at input { padding-right: 8px; padding-left: 8px; font-size: 15px; }
}
.checkin-visit-at input { margin: 0; }
.checkin-visit-at-help { margin-top: -2px; }
.checkin-nickname-suggestions button { width: 100%; min-height: 40px; padding: 8px 13px; border-bottom: 1px solid #edf0f4; border-radius: 0; background: #fff; color: #14213d; text-align: left; font-size: .9rem; }
.checkin-nickname-suggestions button:last-child { border-bottom: 0; }
.checkin-nickname-suggestions button:hover, .checkin-nickname-suggestions button:focus-visible { background: #eef3fb; color: #315a9f; }
.text-button { min-height: 36px; padding: 0; background: transparent; color: #315a9f; font-size: .9rem; }
.app { display: grid; gap: 18px; }
.app-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 5px 2px; }
.header-eyebrow-row { display: flex; align-items: center; gap: 8px; }
.header-switch-badge { display: inline-flex; align-items: center; gap: 4px; width: auto; min-height: 28px; padding: 4px 9px; border: 1px solid #c9d8f0; border-radius: 999px; background: #e8eef9; color: #315a9f; font-size: .72rem; font-weight: 800; }
.header-switch-badge span { font-size: 1rem; line-height: .8; }
.app-header h1, h2 { margin: 5px 0; }
.app-header p, .description, .help-text { margin: 5px 0 0; color: #64748b; line-height: 1.5; }
.eyebrow { color: #315a9f; font-weight: 800; letter-spacing: .09em; font-size: .75rem; }
.card { padding: 24px; }
.card h2 { font-size: 1.15rem; }
.screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; max-width: 100%; }
#memberPricingContent { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.screen-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 5px 2px; }
.screen-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.subpage-heading > .title-badge-button { margin-left: auto; }
.screen-heading h2 { margin: 4px 0 0; }
.screen-actions { display: flex; gap: 8px; }
.screen-actions .register-button { width: auto; }
.games-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.games-actions .secondary-button, .games-actions .register-button { width: 100%; }
.games-actions .games-records-button { grid-column: 1 / -1; }
.back-button { width: auto; min-height: 40px; padding: 0 13px; background: #e8eef9; color: #315a9f; }
.subpage-heading { justify-content: flex-start; align-items: center; gap: 10px; }
.subpage-heading .back-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; font-size: 1.45rem; line-height: 1; }
.subpage-title-wrap { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.subpage-heading .subpage-title-wrap .eyebrow { display: block; line-height: 1.2; }
.subpage-heading .subpage-title-wrap h2 { margin: 4px 0 0; line-height: 1.2; }
.members-total { margin: 5px 0 0; color: #315a9f; font-size: .84rem; font-weight: 700; }
.sort-control { width: 112px; font-size: .75rem; color: #64748b; }
.sort-control select { padding: 8px; color: #14213d; font-size: .9rem; }
.members-heading { flex-wrap: wrap; gap: 8px 12px; }
.members-heading-controls { display: flex; align-items: end; gap: 8px; margin-left: auto; }
.members-inactive-filter { display: flex; align-items: center; gap: 5px; min-height: 36px; font-size: .8rem; white-space: nowrap; cursor: pointer; }
.members-inactive-filter input { width: 16px; height: 16px; margin: 0; }
.history-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #edf0f4; }
.history-item:last-child { border-bottom: 0; }
.history-member { display: grid; gap: 3px; min-width: 0; }
.history-member strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-member span, .history-date { color: #64748b; font-size: .83rem; }
.history-date { flex: 0 0 auto; text-align: right; }
.history-status { min-height: 24px; padding: 4px; color: #64748b; text-align: center; font-size: .88rem; }
.list-toolbar { display: flex; align-items: center; gap: 10px; min-height: 38px; color: #64748b; font-size: .84rem; }
.favorite-filter-button { width: auto; min-height: 36px; margin-left: auto; padding: 0 13px; background: #eef3fb; color: #315a9f; font-size: .84rem; }
.favorite-filter-button.active { background: #315a9f; color: #fff; }
.preference-filter-group { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.preference-filter-group .favorite-filter-button { margin-left: 0; }
.favorite-filter-button.dislike.active { background: #b84755; }
.delete-button { width: auto; min-height: 36px; padding: 0 13px; background: #c63e3e; }
.delete-button:disabled { background: #e6b9b9; opacity: 1; cursor: not-allowed; }
.list-select { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; cursor: pointer; }
.list-select input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.list-select span { display: block; width: 20px; height: 20px; border: 1.5px solid #b7c2d0; border-radius: 6px; background: #fff; }
.list-select input:checked + span { border-color: #315a9f; background: #315a9f; box-shadow: inset 0 0 0 4px #fff; }
.history-item:has(input:checked), .member-list-item:has(input:checked) { background: #f3f7ff; }
.member-search { display: grid; grid-template-columns: 1fr 86px; gap: 8px; }
.member-search button { min-height: 44px; }
.unvisited-open-button { width: 100%; min-height: 44px; }
.unvisited-heading { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.unvisited-heading > div { min-width: 0; text-align: center; }
.unvisited-heading h2 { font-size: clamp(1.15rem, 4vw, 1.5rem); }
.unvisited-heading #copyUnvisitedMembers { margin-left: 0; white-space: nowrap; }
.unvisited-period-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.unvisited-period-form label { display: grid; gap: 6px; min-width: 0; font-size: .82rem; font-weight: 700; }
.unvisited-period-form input { width: 100%; min-width: 0; box-sizing: border-box; }
.unvisited-period-form button { min-height: 44px; }
.unvisited-members-list:empty { display: none; }
.unvisited-member-item { padding: 14px 16px; border-bottom: 1px solid #edf0f4; }
.unvisited-member-item:last-child { border-bottom: 0; }
@media (max-width: 520px) { .unvisited-period-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .unvisited-period-form button { grid-column: 1 / -1; } }
.other-favorite-search { grid-template-columns: 104px minmax(0, 1fr) 86px; }
.other-favorite-search select { padding: 8px; }
.members-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.member-list-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px; border-bottom: 1px solid #edf0f4; cursor: pointer; }
.member-list-item:last-child { border-bottom: 0; }
.member-name-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.member-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-rating-badge-inline { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: #fff4d6; color: #9a6500; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.member-status-badge { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: #e9eef5; color: #64748b; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.member-status-badge.disabled { background: #f8d7d7; color: #b42318; }
.member-status-badge.mummy-gm-badge { background: #fff0d2; color: #9a6500; }
.member-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 7px; color: #64748b; font-size: .82rem; }
.member-visit-inline, .member-warning-inline { font-weight: 700; }
.member-visit-inline { color: #315a9f; }
.member-warning-inline { color: #c2413d; }
.warning-button { align-self: center; width: auto; min-height: 38px; padding: 0 11px; background: #fff1f0; color: #c2413d; font-size: .78rem; white-space: nowrap; }
.warning-stepper { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; overflow: hidden; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; }
.warning-stepper button { min-height: 52px; border: 0; border-radius: 0; background: #eef3fb; color: #315a9f; font-size: 1.5rem; font-weight: 700; }
.warning-stepper output { color: #14213d; font-size: 1.05rem; font-weight: 800; text-align: center; }
.member-welcome-card { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #315a9f, #5275b4); color: #fff; }
.member-welcome-card .eyebrow, .member-welcome-card p { color: #dce8ff; }
.member-welcome-card h2 { margin: 5px 0; font-size: 1.25rem; }
.member-welcome-card p { margin: 0; font-size: .88rem; }
.member-welcome-card > div { flex: 1 1 auto; min-width: 0; }
.member-welcome-body { display: grid; gap: 0; }
.member-membership-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.member-welcome-body > .eyebrow { margin-top: 12px; }
.relationship-badge { display: inline-flex; align-items: center; gap: 4px; width: auto; min-height: 30px; max-width: 170px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; overflow: hidden; background: #7b8798; color: #fff; font-size: .76rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.relationship-badge > :first-child { overflow: hidden; text-overflow: ellipsis; }
.badge-chevron { flex: 0 0 auto; margin-left: 2px; color: rgba(255,255,255,.82); font-size: 1rem; line-height: .8; }
.relationship-badge.relationship-solo { background: #6b7280; }
.relationship-badge.relationship-dating { background: #ec4899; }
.relationship-badge.relationship-secret { background: #7c3aed; }
.relationship-badge.relationship-divorced { background: #dc2626; }
.member-rating-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: auto; min-height: 30px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: .76rem; line-height: 1; text-align: center; }
.member-rating-badge span { color: #fbbf24; font-size: .95rem; }
.member-rating-badge .badge-chevron { color: rgba(255,255,255,.82); font-size: 1rem; }
.member-rating-badge strong { font-size: .82rem; }
.member-rating-badge .member-rating-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4em; font-size: 1.2rem; line-height: 1; }
.my-rating-card .member-rating-detail-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; line-height: 1; }
.member-rating-badge small { color: #dce8ff; font-size: .67rem; font-weight: 700; }
.member-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.achievement-summary-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 15px 16px; border: 1px solid #e2d5a8; border-radius: 15px; background: #fffdf5; color: #14213d; text-align: left; }
.achievement-summary-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff0bd; font-size: 1.35rem; }
.achievement-summary-copy { display: grid; gap: 3px; min-width: 0; }
.achievement-summary-copy small { color: #a4780e; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.achievement-summary-copy strong { font-size: .98rem; }
.achievement-summary-copy em { overflow: hidden; color: #6e7280; font-size: .78rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.member-achievement-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; padding-bottom: 13px; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.member-achievement-badge { display: inline-flex; align-items: center; gap: 3px; min-height: 25px; padding: 0 6px; border: 1px solid #d4a83d; border-radius: 6px; background: linear-gradient(135deg, #fff8dc, #f8e7a6); box-shadow: 0 1px 3px rgba(133, 94, 7, .14); color: #79580b; font-size: .64rem; font-weight: 800; cursor: pointer; }
.member-achievement-badge span { font-size: .82rem; line-height: 1; }
.achievement-badge-visits { border-color: #82a9df; background: #e7f0ff; color: #28558f; }
.achievement-badge-strategy { border-color: #9b8ad1; background: #f0ebff; color: #5a438c; }
.achievement-badge-party { border-color: #e59aa9; background: #fff0f3; color: #a43e59; }
.achievement-badge-favorite { border-color: #78bda8; background: #e9f8f1; color: #26745d; }
.achievement-badge-rulemaster { border-color: #d4a83d; background: #fff8dc; color: #79580b; }
.achievement-badge-played { border-color: #e2a66c; background: #fff1e3; color: #9a5b20; }
.achievement-badge-rating_given { border-color: #82b7c8; background: #e8f7fb; color: #286b7d; }
.achievement-badge-rating_received { border-color: #c59acb; background: #f8edfa; color: #7a4482; }
.achievements-list { display: grid; gap: 10px; }
.achievement-group { display: grid; gap: 10px; }
.achievement-group + .achievement-group { margin-top: 18px; }
.achievement-group-header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.achievement-group-header h3 { margin: 0; color: var(--text); font-size: 16px; font-weight: 800; }
.achievement-group-header span { color: var(--muted); font-size: 13px; font-weight: 700; }
.achievement-level-card { display: grid; gap: 14px; padding: 16px; border: 1px solid #e4e9f0; border-radius: 15px; background: #fff; }
.achievement-level-card.locked { opacity: .72; }
.achievement-stepper { position: relative; width: 100%; height: 20px; }
.achievement-stepper::before { content: ""; position: absolute; left: var(--achievement-track-start, 0px); width: var(--achievement-track-width, 0px); top: 50%; height: 4px; transform: translateY(-50%); border-radius: 99px; background: #e4e9f0; }
.achievement-stepper::after { content: ""; position: absolute; left: var(--achievement-track-start, 0px); width: var(--achievement-fill-width, 0px); top: 50%; height: 4px; transform: translateY(-50%); border-radius: 99px; background: #315a9f; }
.achievement-step { appearance: none; -webkit-appearance: none; position: absolute; z-index: 2; width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; border: 2px solid #87909d; border-radius: 50%; background: #fff; cursor: pointer; }
.achievement-step.done { border-color: #315a9f; background: #315a9f; }
.achievement-step.current, .achievement-step.selected { box-shadow: 0 0 0 3px rgba(49, 90, 159, .18); }
.achievement-stage-details { min-height: 58px; }
.achievement-stage-detail { display: none; align-items: center; gap: 12px; }
.achievement-stage-detail.selected { display: flex; }
.achievement-stage-detail.locked { opacity: .48; filter: blur(.25px); }
.achievement-stage-detail strong { display: block; color: var(--text); font-size: 1rem; }
.achievement-stage-detail p { margin: 4px 0 0; color: #6b778b; font-size: .82rem; line-height: 1.45; }
.achievement-stage-detail small { display: block; margin-top: 6px; color: #315a9f; font-size: .76rem; font-weight: 700; }
.achievement-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 15px; border: 1px solid #e4e9f0; border-radius: 15px; background: #fff; }
.achievement-item.locked { opacity: .72; }
.achievement-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eff4fd; font-size: 1.25rem; }
.achievement-item.achieved .achievement-icon { background: #fff0bd; }
.achievement-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.achievement-title-row strong { font-size: .98rem; }
.achievement-title-row span { color: #315a9f; font-size: .76rem; font-weight: 800; }
.achievement-item p { margin: 5px 0 9px; color: #6b778b; font-size: .82rem; line-height: 1.45; }
.achievement-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #e7edf5; }
.achievement-progress span { display: block; height: 100%; border-radius: inherit; background: #315a9f; }
.daily-fortune-button { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 0 18px; background: #fff7de; color: #855d05; border: 1px solid #f0cf72; font-size: .98rem; font-weight: 800; }
.daily-fortune-button span:first-child { font-size: 1.2rem; color: #d39b18; }
.game-world-button { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 0 18px; border: 1px solid #bfd2f3; background: #edf4ff; color: #244f93; font-size: .98rem; font-weight: 800; }
.game-world-button span:first-child { font-size: 1.2rem; color: #3565ad; }
.game-world-list { display: grid; gap: 12px; margin-top: 18px; }
.game-world-item { width: 100%; min-height: 88px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 16px; border: 1px solid #dfe7f3; border-radius: 18px; background: #fff; color: #0e2346; text-align: left; box-shadow: 0 8px 24px rgba(38, 65, 105, .06); }
.game-world-item-wrap { position: relative; min-width: 0; }
.game-world-item-wrap > .game-world-item { height: 100%; }
.game-world-favorite-button { position: absolute; z-index: 2; top: 7px; left: 7px; display: grid; width: 34px; height: 34px; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #8593a8; font-size: 1.35rem; line-height: 1; cursor: pointer; text-shadow: 0 1px 3px rgba(255,255,255,.9); }
.game-world-favorite-button.is-favorite { background: transparent; color: #c28b14; }
.game-world-favorite-button:focus-visible { outline: 3px solid #4a86dc; outline-offset: 2px; }
.game-world-item-icon { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e1e8f2; border-radius: 16px; background: #fff; color: #315fa5; font-size: 1.25rem; font-weight: 900; }
.game-world-item-icon.word-guess { background: #fff; }
.game-world-item-icon.omok-game { background: #f0d09a; color: #161616; font-size: 2rem; }
.game-world-item-icon.othello-game { background: #fff; color: #315fa5; }
.game-world-item-icon.ricochet-game { background: #eef4ff; font-size: 1.75rem; }
.game-world-item-icon.yahtzee-game { background: #fff4d6; font-size: 1.75rem; }
.game-world-item-icon.cloud-courier-icon { background: #263858; color: #c7fff0; font-size: 1.85rem; }
.game-world-item-icon.mini-game-menu-icon { color: #28685e; font-size: 2.3rem; }
.modal.mini-game-modal { place-items: center; padding: 12px; box-sizing: border-box; }
.mini-game-modal .modal-content { display: grid; justify-items: stretch; gap: 12px; width: min(100%,400px); border-radius: 20px; text-align: left; padding: 18px; }
.mini-game-modal .modal-header { width: 100%; margin: 0; gap: 12px; }
.mini-game-modal .modal-header h2 { text-align: left; }
.mini-game-modal .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 0; }
.mini-game-modal .mini-game-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; text-align: left; }
.mini-game-option strong, .mini-game-option small { display: block; }
.mini-game-option small { margin-top: 3px; font-size: .79rem; }
.mini-game-heading-actions { display: flex; align-items: center; gap: 8px; }
#miniGameScreen .mystery-game-header { margin-bottom: 0; }
html:has(> body[data-current-screen="mini-game-jump-rope"]),
html > body[data-current-screen="mini-game-jump-rope"] {
  background: #101520 !important;
}
body[data-current-screen="mini-game-jump-rope"] .page-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
body[data-current-screen="mini-game-jump-rope"] #appView,
#miniGameScreen {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
#miniGameScreen { gap: 12px; color: #edf2fa; color-scheme: dark; }
#miniGameScreen .mystery-game-header h2 { color: #f7f9fd; }
#miniGameScreen .close-button { background: #2a384d; color: #dce8ff; }
#miniGameRecordsModal .modal-content { background: #1a2230; color: #edf2fa; }
#miniGameRecordsModal #miniGameRecordsStatus { color: #b7c4d6; }
.jump-rope-game {
  display: grid;
  flex: 1;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  overflow: hidden;
  border: 2px solid #3c567c;
  border-radius: 12px;
  background: #202f4b;
  color: #e2efff;
}
.jump-rope-score { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; border-bottom: 2px solid #45678c; background: #172743; color: #f4faff; }
.jump-rope-score > div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; padding: 10px clamp(10px,3vw,20px); gap: 8px; }
.jump-rope-score > div + div { border-inline-start: 1px solid #ffffff33; }
.jump-rope-score dt { font-size: .78rem; font-weight: 700; }
.jump-rope-score dd { display: flex; align-items: baseline; gap: 3px; margin: 0; color: #ffe092; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.jump-rope-score dd small { font-size: .75rem; }
.jump-rope-stage { position: relative; min-width: 0; background: #202f58; touch-action: manipulation; }
.jump-rope-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.jump-rope-overlay { position: absolute; left: 0; right: 0; bottom: 4%; display: grid; gap: 6px; justify-items: center; padding: 0 12px; }
#jumpRopeResult { width: max-content; max-width: 100%; margin: 0; padding: 5px 10px; border: 1px solid #d58d83; border-radius: 4px; background: #26334d; color: #fff; text-align: center; font-weight: 800; }
#jumpRopeResult:empty, #jumpRopeSaveStatus:empty, #miniGameRecordsStatus:empty { display: none; }
#jumpRopeStart, .jump-rope-jump { min-height: 44px; padding: 7px 18px; border: 2px solid #172641; border-radius: 4px; background: #ffe092; color: #222d47; box-shadow: inset 0 2px #fff2c6, 0 3px 0 #172641; }
.jump-rope-jump { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: 12px; }
#jumpRopeStart:active, .jump-rope-jump:active { transform: translateY(2px); box-shadow: 0 1px 0 #172641; }
.jump-rope-footer { padding: 10px 14px; }
.jump-rope-footer p { margin: 0; font-size: .82rem; }
#jumpRopeSaveStatus:not(:empty) { margin-top: 6px; }
#jumpRopeRetrySave { width: auto; margin-top: 6px; }
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  html:has(> body[data-current-screen="mini-game-jump-rope"]) { scrollbar-gutter: auto; }
  body[data-current-screen="mini-game-jump-rope"] .page-shell { width: 100%; padding: env(safe-area-inset-top) 0 0; }
  #miniGameScreen { gap: 8px; }
  #miniGameScreen .mystery-game-header,
  .jump-rope-score,
  .jump-rope-footer {
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
  #miniGameScreen .mystery-game-header { padding-top: 8px; }
  .jump-rope-game { border: 0; border-radius: 0; }
  .jump-rope-score > div { padding-block: 8px; }
  .jump-rope-overlay { bottom: 10px; }
  .jump-rope-footer { padding-block: 8px max(8px, env(safe-area-inset-bottom)); }
}
#miniGameRecordsModal .mini-game-record-best { margin: 0; padding: 12px; border-radius: 10px; background: #27473f; color: #e7f6ec; font-weight: 800; }
.mini-game-record-best strong { margin-inline-start: 8px; }
#miniGameRecent { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
#miniGameRecent:empty { display: none; }
#miniGameRecent li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #7e948944; }
#miniGameRecent time { font-size: .8rem; }
html[data-theme="dark"] .game-world-item-icon.mini-game-menu-icon { color: #97dcca; }
.glow-snake-arena { overflow: hidden; border-radius: 18px; background: #102822; color: #eefbe9; }
.glow-snake-hud { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px; font-size: .86rem; }
.glow-snake-hud strong { color: #a4efbd; font-variant-numeric: tabular-nums; }
.glow-snake-stage { position: relative; min-height: min(62dvh, 520px); }
.glow-snake-stage:focus-visible { outline: 2px solid #b7ed9f; outline-offset: -3px; }
.glow-snake-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.glow-snake-stage-actions { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 16px; pointer-events: none; }
.glow-snake-stage-actions p { margin: 0; text-align: center; color: #f0fee8; background: #091d19de; border-radius: 8px; }
.glow-snake-stage-actions p:not(:empty) { padding: 6px 10px; }
.glow-snake-stage-actions button { pointer-events: auto; min-height: 46px; padding: 8px 24px; background: #bbef9c; color: #172f22; }
#glowSnakeHelp { margin: 0; padding: 9px 12px; color: #bcd5c5; text-align: center; font-size: .8rem; }
.glow-snake-joystick, .glow-snake-touch-help { display: none; }
.glow-snake-boost:not([hidden]) {
  position: absolute; z-index: 1; left: 12px; bottom: 12px;
  display: grid; place-content: center; gap: 2px;
  width: 74px; height: 74px; padding: 4px; border: 1px solid #adf2ba99; border-radius: 50%;
  background: #153e32dc; color: #efffe9; font-weight: 800; text-align: center;
  touch-action: manipulation;
}
.glow-snake-boost:active:not(:disabled) { background: #b8ed9e; color: #153e32; }
.glow-snake-boost:disabled { border-color: #91bda373; background: #0e251ecf; color: #bcd6c7; }
.glow-snake-boost small:empty { display: none; }
@media (pointer: coarse), (any-pointer: coarse) {
  .glow-snake-joystick:not([hidden]) {
    --stick-size: clamp(104px, 31vw, 140px);
    position: absolute; z-index: 1; right: 12px; bottom: 12px;
    display: block; width: var(--stick-size); height: var(--stick-size);
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  }
  .glow-snake-joystick-base, .glow-snake-joystick-thumb {
    position: absolute; border-radius: 50%; opacity: 0; pointer-events: none;
  }
  .glow-snake-joystick.is-active > span { opacity: 1; }
  .glow-snake-joystick-base {
    inset: 0; border: 2px solid #a7dfba99; background: #0b2d26b3;
    box-shadow: inset 0 0 0 9px #b8ebc314;
  }
  .glow-snake-joystick-thumb {
    left: 50%; top: 50%; width: 40%; height: 40%;
    border: 2px solid #c5f3d5; background: #79cba8;
    box-shadow: 0 3px 9px #091d1980;
    transform: translate(calc(-50% + var(--stick-x, 0px)), calc(-50% + var(--stick-y, 0px)));
  }
}
@media (pointer: coarse) {
  .glow-snake-touch-help { display: inline; }
  .glow-snake-mouse-help { display: none; }
}
.cloud-courier-header { align-items: center; gap: 8px; }
.cloud-courier-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cloud-courier-header-actions .title-badge-button { white-space: nowrap; }
#cloudCourierScreen.is-online-room :is(#cloudCourierSolo, #cloudCourierToday, #cloudCourierOnline) { display: none; }
.cloud-courier-duel { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.cloud-courier-room-header, .cloud-courier-room-actions { display: flex; align-items: center; gap: 8px; }
.cloud-courier-room-header { justify-content: space-between; }
.cloud-courier-room-header h3 { margin: 0; overflow-wrap: anywhere; }
.cloud-courier-room-header small { display: block; }
.cloud-courier-room-header button { flex-shrink: 0; }
.cloud-courier-room-message { margin: 0; font-size: .85rem; overflow-wrap: anywhere; }
.cloud-courier-room-message:empty { display: none; }
.cloud-courier-duel-board { position: relative; display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: min(58dvh, 640px); }
.cloud-courier-duel-seat { display: grid; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0; border-radius: 12px; background: #101a30; color: #edf7fb; }
.cloud-courier-duel-seat.is-first { order: -1; }
.cloud-courier-duel-seat.is-self { outline: 2px solid #7bcdb8; outline-offset: -2px; }
.cloud-courier-duel-seat header { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; padding: 7px 10px; font-size: .8rem; }
.cloud-courier-duel-seat header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-courier-duel-seat header small { color: #b8cbdc; }
.cloud-courier-duel-seat header progress { width: 70px; height: 7px; margin: 0; accent-color: #8ce2ca; justify-self: end; }
.cloud-courier-duel-stage { min-height: 128px; }
#cloudCourierDuelControls button { --courier-control-size: clamp(48px, 19cqh, 80px); }
.cloud-courier-duel-countdown { position: absolute; inset: 50% auto auto 50%; z-index: 2; transform: translate(-50%, -50%); display: grid; place-items: center; width: 2em; aspect-ratio: 1; border-radius: 50%; background: #0a1728e0; color: #bbf4e2; font-size: 2.6rem; font-weight: 800; pointer-events: none; }
.cloud-courier-room-actions { justify-content: flex-end; }
.cloud-courier-duel .cloud-courier-room-actions { flex-wrap: wrap; }
.cloud-courier-duel .cloud-courier-room-actions > button {
  flex: 0 0 auto; inline-size: max-content; min-inline-size: 7rem;
  padding-inline: 14px; white-space: nowrap;
}
#cloudCourierLobby { place-items: center; padding: 16px; }
#cloudCourierLobby .modal-content { width: min(100%,470px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; gap: 10px; text-align: left; }
#cloudCourierLobby .modal-header { width: 100%; justify-content: space-between; gap: 12px; margin: 0; }
#cloudCourierLobby .modal-header h2 { text-align: left; }
#cloudCourierLobby .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; }
#cloudCourierLobby p { margin: 0; }
#cloudCourierLobby p:empty { display: none; }
.cloud-courier-room-list { display: grid; gap: 6px; margin: 0; padding: 2px; list-style: none; overflow: auto; min-height: 0; }
.cloud-courier-room-list button { display: grid; width: 100%; gap: 2px; padding: 9px 12px; text-align: left; overflow-wrap: anywhere; }
.cloud-courier-room-list button span { font-size: .8rem; }
@media (max-width: 600px) {
  .cloud-courier-duel-board { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(166px, 2fr) minmax(210px, 3fr); }
  .cloud-courier-duel-seat { order: -1; }
  .cloud-courier-duel-seat.is-first { order: 0; }
  .cloud-courier-duel .cloud-courier-room-actions { padding-inline: 12px; }
  .cloud-courier-duel .cloud-courier-room-actions > button { flex-grow: 1; }
  .cloud-courier-header-actions { gap: 4px; }
  .cloud-courier-header-actions .title-badge-button { padding-inline: 8px; }
}
body[data-current-screen="cloud-courier"] .page-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
body[data-current-screen="cloud-courier"] #appView,
#cloudCourierScreen { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.cloud-courier-game {
  display: grid;
  flex: 1;
  grid-template-rows: auto minmax(160px, 1fr);
  overflow: hidden;
  border-radius: 20px;
  background: #101a30;
  color: #edf7fb;
}
.cloud-courier-hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 12px; font-size: .85rem; }
.cloud-courier-hud strong { color: #b8ffee; font-variant-numeric: tabular-nums; }
.cloud-courier-hud label { display: flex; align-items: center; gap: 6px; }
.cloud-courier-hud progress { width: clamp(46px, 14vw, 110px); height: 10px; accent-color: #8ce2ca; }
.cloud-courier-stage { position: relative; container-type: size; }
.cloud-courier-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cloud-courier-terrain { position: absolute; inset-block-start: 10px; inset-inline-start: max(12px, env(safe-area-inset-left)); padding: 4px 10px; border-radius: 999px; background: #101a30d9; color: #edf7fb; font-size: .78rem; font-weight: 700; pointer-events: none; }
.cloud-courier-start { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); min-width: min(190px, 90%); min-height: 48px; padding: 8px 18px; text-align: center; white-space: pre-line; background: #baf4e1; color: #142a41; box-shadow: 0 5px 18px #101a3070; }
.cloud-courier-status { position: absolute; inset: 44px 12px auto; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto; padding: 6px 10px; border-radius: 10px; background: #101a30e6; color: #edf7fb; text-align: center; font-size: .86rem; pointer-events: none; }
.cloud-courier-status:empty { padding: 0; }
.cloud-courier-controls {
  position: absolute;
  inset: auto max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  visibility: hidden;
  pointer-events: none;
}
.cloud-courier-controls.is-visible { visibility: visible; }
.cloud-courier-controls button {
  --courier-control-size: min(clamp(144px, 42vw, 204px), calc((100% - 10px) / 2), 48dvh);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: var(--courier-control-size);
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid #edf7fb30;
  border-radius: 50%;
  background: #142a4126;
  color: #edf7fb;
  font: 700 1.8rem/1 system-ui, sans-serif;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cloud-courier-controls button:enabled:active {
  transform: translateY(2px) scale(.92);
  border-color: #edf7fb;
  background: #294765;
  box-shadow: inset 0 3px 6px #101a30;
}
@supports (height: 1cqh) {
  .cloud-courier-controls button {
    --courier-control-size: min(clamp(144px, 42vw, 204px), calc((100% - 10px) / 2), max(44px, 36cqh));
  }
}
:is(#cloudCourierSkins, #cloudCourierDuelSkins) { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: 12px; min-width: 54px; min-height: 44px; padding: 6px 9px; background: #baf4e1; color: #142a41; font-size: .92rem; }
.cloud-courier-game button:disabled { opacity: .55; cursor: default; }
.cloud-courier-records-content h3 { margin: 0 0 8px; font-size: 1rem; }
.cloud-courier-record-list { margin: 0; padding: 0; list-style: none; }
.cloud-courier-record-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 39px; padding: 6px 8px; border-bottom: 1px solid #829bb24d; overflow-wrap: anywhere; }
.cloud-courier-record-list li span:last-child { grid-column: -2 / -1; font-weight: 700; white-space: nowrap; }
.cloud-courier-record-list li.history-status { display: block; }
:is(#cloudCourierRecordsModal, #cloudCourierSkinsModal, #cloudCourierUnlockModal) { place-items: center; padding: 16px; }
:is(#cloudCourierRecordsModal, #cloudCourierSkinsModal, #cloudCourierUnlockModal) .cloud-courier-records-content { width: min(100%, 470px); border-radius: 20px; justify-items: stretch; text-align: left; padding: 16px; }
:is(#cloudCourierRecordsModal, #cloudCourierSkinsModal, #cloudCourierUnlockModal) .modal-header { width: 100%; margin: 0; gap: 12px; }
:is(#cloudCourierRecordsModal, #cloudCourierSkinsModal, #cloudCourierUnlockModal) .modal-header h2 { flex: 1 1 auto; text-align: left; }
#cloudCourierRecordsModal .modal-header .title-badge-button { width: auto; flex: 0 0 auto; }
#cloudCourierRecordsModal .modal-header .title-badge-button:disabled { opacity: .55; cursor: default; }
:is(#cloudCourierRecordsModal, #cloudCourierSkinsModal) .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 0; }
:is(#cloudCourierRecordsModal, #cloudCourierSkinsModal) .history-status { color: inherit; }
#cloudCourierSkinsModal .cloud-courier-records-content { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.cloud-courier-skin-list { display: grid; gap: 8px; margin: 0; padding: 0 2px 2px 0; list-style: none; overflow: auto; min-height: 0; }
.cloud-courier-skin-list li { display: grid; grid-template-columns: clamp(52px, 20vw, 92px) minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px; border: 1px solid #829bb26b; border-radius: 12px; }
.cloud-courier-skin-list li.is-unlocked { border-color: #369178; }
.cloud-courier-skin-list strong, .cloud-courier-skin-list small { display: block; color: inherit; overflow-wrap: anywhere; }
.cloud-courier-skin-list small { margin-top: 3px; font-size: .78rem; }
.cloud-courier-skin-preview { display: grid; place-items: center; background: #20334e; border-radius: 8px; min-height: 48px; }
.cloud-courier-skin-preview img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
#cloudCourierSkinsModal .cloud-courier-skin-list button { width: auto; min-width: 54px; min-height: 40px; padding: 4px 6px; font-size: .78rem; }
#cloudCourierSkinsModal .cloud-courier-skin-list button:disabled { opacity: .65; cursor: default; }
#cloudCourierUnlockModal .cloud-courier-records-content { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.cloud-courier-unlocked-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; min-height: 0; list-style: none; overflow: auto; }
.cloud-courier-unlocked-list li { display: grid; gap: 6px; flex: 0 1 125px; text-align: center; }
.cloud-courier-unlocked-list .cloud-courier-skin-preview { padding: 8px; }
#cloudCourierScreen [hidden] { display: none !important; }
@media (max-width: 767px) {
  html:has(body[data-current-screen="cloud-courier"]) { scrollbar-gutter: auto; }
  body[data-current-screen="cloud-courier"] .page-shell { width: 100%; padding: env(safe-area-inset-top) 0 0; }
  #cloudCourierScreen { gap: 8px; }
  #cloudCourierScreen .cloud-courier-header {
    padding: 8px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }
  .cloud-courier-game { border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  .cloud-courier-hud {
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
}
.gyul-hap-card { margin: 12px 0; min-width:0; width:100%; box-sizing:border-box; }
.gyul-hap-join { display:flex; gap:8px; margin-top:10px; }
.gyul-hap-join input { min-width:0; flex:1; }
.gyul-hap-card h3 { margin:18px 0 8px; }
.gyul-hap-card .omok-lobby-room { width:100%; }
.gyul-hap-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0; }
.gyul-hap-tile { position:relative; aspect-ratio:1; border:2px solid #d9e2ef; border-radius:14px; background:var(--gh-bg); color:var(--gh-color); font-size:clamp(2.2rem,11vw,4.6rem); font-weight:900; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; user-select:none; }
.gyul-hap-tile small { position:absolute; right:7px; bottom:5px; color:#718096; font-size:.72rem; }
.gyul-hap-tile.is-selected { outline:3px solid #2f80ed; outline-offset:2px; transform:translateY(-2px); }
.gyul-hap-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; min-width:0; }
#gyulHapPlayers .gyul-hap-solved-combinations { display:flex; flex-wrap:wrap; gap:4px 8px; margin-top:6px; font-size:.78rem; line-height:1.5; font-weight:600; }
#gyulHapPlayers .gyul-hap-player-slot { min-width:0; }
#gyulHapBoardResults { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 12px; padding:9px; border-radius:12px; background:rgba(255,255,255,.06); }
#gyulHapBoardResults.hidden { display:none; }
#gyulHapBoardResults .gyul-hap-result-badge { display:inline-flex; align-items:center; justify-content:center; flex:0 1 auto; width:max-content; max-width:100%; min-height:29px; padding:4px 10px; border:1px solid #b6dbc9; border-radius:999px; background:#eaf8f0; color:#17633d; font-size:.76rem; font-weight:800; line-height:1.2; overflow-wrap:anywhere; }
#gyulHapBoardResults .gyul-hap-result-badge strong { margin-right:4px; font-weight:900; }
#gyulHapBoardResults .gyul-hap-result-badge.is-incorrect { border-color:#ebbdc3; background:#fff0f1; color:#a12d3d; }
html[data-theme="dark"] #gyulHapBoardResults .gyul-hap-result-badge { border-color:#35644f; background:#183a2c; color:#a0e5be; }
html[data-theme="dark"] #gyulHapBoardResults .gyul-hap-result-badge.is-incorrect { border-color:#71404a; background:#46252c; color:#ffb6c0; }
.gyul-hap-actions button { min-height:44px; }
.gyul-hap-actions:has(#gyulHapStart) { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:10px; }
.gyul-hap-actions button { min-width:0; padding-inline:8px; white-space:normal; overflow-wrap:anywhere; }
.gyul-hap-join button { flex:0 0 auto; min-width:84px; }
.gyul-hap-room-code { overflow-wrap:anywhere; }
.gyul-hap-history-row span { min-width:0; overflow-wrap:anywhere; }
#gyulHapScreen .omok-game-room { border:1px solid rgba(49,90,159,.14); border-radius:22px; background:rgba(255,255,255,.82); box-shadow:0 10px 26px rgba(20,33,61,.07); padding:16px; min-width:0; }
#gyulHapScreen #gyulHapLobby { border:0; border-radius:0; background:transparent; box-shadow:none; padding:0; min-width:0; }
#gyulHapScreen .omok-lobby-list { gap:10px; margin-top:14px; }
#gyulHapScreen .omok-players { gap:10px; }
#gyulHapPlayActions { position:fixed; left:50%; bottom:0; transform:translateX(-50%); z-index:85; width:min(calc(100% - 24px),680px); box-sizing:border-box; padding:12px 12px calc(12px + env(safe-area-inset-bottom)); border:1px solid #dfe7f3; border-bottom:0; border-radius:18px 18px 0 0; background:#f4f7fc; box-shadow:0 -6px 24px rgba(20,33,61,.12); }
#gyulHapPlayActions button { min-height:48px; }
#gyulHapRoom:has(#gyulHapPlayActions:not(.hidden)) { padding-bottom:calc(100px + env(safe-area-inset-bottom)); }
html[data-theme="dark"] #gyulHapPlayActions { background:#1a2230; border-color:#2f3e53; }
#gyulHapScreen .omok-player { min-width:0; overflow-wrap:anywhere; }
#gyulHapScreen .omok-records { text-align:center; margin:10px 0; }
#gyulHapScreen .gyul-hap-join { margin-top:0; }
#gyulHapLocalTest { margin-top:12px; }
html[data-theme="dark"] #gyulHapScreen .omok-game-room { background:#1a2230; border-color:#2f3e53; box-shadow:none; }
@media(max-width:600px){ #gyulHapScreen .omok-lobby-panel,#gyulHapScreen .omok-game-room { padding:12px; } #gyulHapScreen .omok-header-actions { flex-shrink:0; gap:6px; } #gyulHapScreen .word-chain-close-button { width:40px; height:40px; flex:0 0 40px; min-width:40px; padding:0; } }
.gyul-hap-history-row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 14px; border-bottom:1px solid #e2e8f0; font-size:.88rem; }
@media (max-width:600px) {
  #gyulHapScreen { width:100%; max-width:100%; min-width:0; padding-inline:12px; box-sizing:border-box; overflow-x:clip; }
  #gyulHapScreen .mystery-game-header { gap:8px; }
  #gyulHapScreen .mystery-game-header > div { min-width:0; }
  #gyulHapScreen .mystery-game-header .eyebrow { font-size:.68rem; letter-spacing:.08em; }
  #gyulHapScreen .help-text { line-height:1.45; overflow-wrap:anywhere; }
  #gyulHapScreen .gyul-hap-card { padding:14px; border-radius:18px; }
  #gyulHapScreen .gyul-hap-join { align-items:stretch; }
  #gyulHapScreen .gyul-hap-join input { width:1%; font-size:16px; }
  #gyulHapScreen .gyul-hap-board { gap:clamp(5px,2vw,9px); margin:12px 0; }
  #gyulHapScreen .gyul-hap-tile { min-width:0; aspect-ratio:1/1; padding:0; border-width:1px; border-radius:clamp(8px,2.5vw,12px); font-size:clamp(2rem,17vw,4rem); }
  #gyulHapScreen .gyul-hap-tile small { right:4px; bottom:2px; font-size:.62rem; }
  #gyulHapScreen .yahtzee-score-heading { align-items:flex-start; gap:8px; flex-wrap:wrap; }
  #gyulHapScreen .yahtzee-score-heading > * { min-width:0; overflow-wrap:anywhere; }
  #gyulHapScreen .gyul-hap-history-row { align-items:flex-start; flex-direction:column; padding-inline:8px; }
  #gyulHapScreen .omok-lobby-room { gap:4px; min-width:0; flex-wrap:wrap; }
}
.chat-rush-game-icon { background: linear-gradient(145deg, #f59e0b, #ea580c); color: #fff; font-size: 1.35rem; }
.sky-team-game-icon { background: linear-gradient(145deg, #0f4c81, #38bdf8); color: #fff; font-size: 1.45rem; }
.decrypto-game-icon { background: #f3e6cf; color: #1d3557; }
.game-world-item-icon img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.game-world-item strong, .game-world-item small { display: block; }
.game-world-item strong { margin-bottom: 5px; font-size: 1.02rem; }
.game-world-complete-badge { display: inline-flex; align-items: center; margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: #e6f6ed; color: #218654; font-size: .64rem; font-weight: 800; vertical-align: middle; }
.game-world-complete-badge.is-in-progress { background: #edf4ff; color: #3565ad; }
.game-world-item small { color: #728198; font-size: .78rem; font-weight: 500; }
.game-world-item-chevron { color: #6f85a5; font-size: 1.5rem; text-align: right; }
.game-world-item-status { display: grid; grid-template-columns: auto 20px; grid-template-rows: repeat(2, auto); align-items: center; justify-content: end; gap: 4px 5px; min-width: 0; }
.stop-challenge-menu-badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 7px; border: 1px solid #f0c8cb; border-radius: 999px; background: #fff2f2; color: #b52d3c; font-size: .67rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.stop-challenge-menu-badge.is-rank { border-color: #e7c77b; background: #fff8e7; color: #9a6a08; }
.game-world-item-status .stop-challenge-menu-badge { grid-column: 1; }
.game-world-item-status .game-world-item-chevron { grid-column: 2; grid-row: 1 / span 2; }
.stop-challenge-game { background: #fff0f0; color: #e5484d; font-size: 2rem; text-shadow: 0 2px 4px rgba(180,30,40,.2); }
.kamisado-game-icon { border: 0; background: #fff; color: #ffd76b; font-size: 2rem; text-shadow: 0 2px 5px rgba(0,0,0,.28); box-shadow: none !important; }
.kamisado-world-item { border-color: #b9cbe7; }
.kamisado-game-card { display: grid; gap: 14px; margin-top: 8px; padding: 16px; border: 1px solid #d7e0ef; border-radius: 22px; background: #fff; box-shadow: 0 10px 26px rgba(20,33,61,.07); }
.kamisado-game-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #60748f; font-size: .86rem; }
.kamisado-game-status strong { color: #244f93; font-size: 1rem; }
.kamisado-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border: 7px solid #254d67; border-radius: 12px; background: #254d67; box-shadow: 0 12px 24px rgba(20,33,61,.16); }
.kamisado-cell { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; border: 1px solid rgba(255,255,255,.24); background: var(--kamisado-color); cursor: pointer; }
.kamisado-cell:hover, .kamisado-cell:focus-visible { z-index: 2; outline: 3px solid #fff; outline-offset: -5px; filter: brightness(1.12); }
.kamisado-cell.is-legal::after { content: ""; position: absolute; width: 19%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 0 3px rgba(24,48,74,.2); }
.kamisado-cell.is-selected { outline: 4px solid #fff; outline-offset: -5px; box-shadow: inset 0 0 0 4px #152c4f; }
.kamisado-cell.is-last-move::before { content: ""; position: absolute; inset: 4%; border: 3px solid #ef3340; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.95), 0 0 10px rgba(239,51,64,.8); pointer-events: none; z-index: 3; }
.kamisado-piece { position: relative; z-index: 3; display: grid; place-items: center; width: 78%; height: 78%; border: 0; border-radius: 50%; background: #17202c; box-shadow: 0 3px 6px rgba(0,0,0,.28), inset 0 0 0 2px rgba(255,255,255,.22); }
.kamisado-piece.p1 { background: #fff; box-shadow: 0 3px 6px rgba(0,0,0,.28), inset 0 0 0 2px rgba(20,35,58,.22); }
.kamisado-piece img { display: block; width: 72%; height: 72%; object-fit: contain; }
.kamisado-game-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.kamisado-game-actions span { color: #b52d3c; font-size: .8rem; font-weight: 700; text-align: right; }
.janggi-game-icon { border: 0; background: #f5e4c2; }
.janggi-game-icon img { object-fit: cover; }
.janggi-world-item { border-color: #d8b37a; }
.janggi-game-card { position: relative; display: grid; gap: 14px; margin-top: 8px; padding: 16px; border: 1px solid #d7e0ef; border-radius: 22px; background: #fff; box-shadow: 0 10px 26px rgba(20,33,61,.07); }
.janggi-game-room { display: grid; gap: 14px; margin-top: 8px; }
.janggi-players-card { padding: 14px; border: 1px solid #d7e0ef; border-radius: 22px; background: #fff; box-shadow: 0 8px 20px rgba(20,33,61,.06); }
.janggi-players-card .omok-players { margin: 0; }
.janggi-player-side { margin-left: 4px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.janggi-player-side-1 { color: #c33b32; }
.janggi-player-side-2 { color: #008f8c; }
.janggi-player-side-red { color: #c33b32; }
.janggi-player-side-blue { color: #008f8c; }
.janggi-players-card .omok-records { min-height: 0; margin: 0; }
.janggi-start-button { width: 100%; margin-top: 4px; }
.janggi-player-seat-1 { border-left: 4px solid #d62973; }
.janggi-player-seat-2 { border-left: 4px solid #008b88; }
.janggi-player-seat-1 > b { color: #b51e5d; }
.janggi-player-seat-2 > b { color: #00716f; }
.janggi-board.is-preparing .janggi-piece { visibility: hidden; }
.janggi-captured-tray { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: start; gap: 5px; width: min(100%, 560px); min-height: 34px; margin: 0 auto; padding: 2px 4px; box-sizing: border-box; pointer-events: none; }
.janggi-captured-han { justify-content: flex-start; }
.janggi-captured-cho { justify-content: flex-start; }
.janggi-captured-tray .janggi-captured-piece { width: 100%; height: auto; min-width: 0; min-height: 0; aspect-ratio: 1; align-self: start; font-size: clamp(.65rem, 2.8vw, 1rem); }
.janggi-captured-piece .janggi-piece-label { transform: scale(1.05); }
.janggi-player-formation { display: grid; gap: 5px; margin-top: 8px; color: #6b7e99; font-size: .74rem; font-weight: 700; }
.janggi-player-formation select { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid #cbd7e8; border-radius: 8px; background: #fff; color: #1b365d; font: inherit; }
.janggi-game-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6b4b31; }
.janggi-game-status strong { color: #9d3d2e; font-size: 1rem; }
.janggi-game-status.is-preparing strong { visibility: hidden; }
.janggi-game-message.is-check { display: inline-flex; align-items: center; gap: 8px; margin: 8px auto 12px; padding: 8px 16px; border: 2px solid #c8322b; border-radius: 999px; background: #fff1ef; color: #b5231f !important; font-size: 1.18rem; font-weight: 900; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(255,255,255,.8); box-shadow: 0 5px 16px rgba(200,50,43,.2); animation: janggi-check-pulse 1.5s ease-in-out infinite; }
@keyframes janggi-check-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.janggi-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.janggi-setup > p, .janggi-setup > button { grid-column: 1 / -1; }
.janggi-setup label { display: grid; gap: 6px; min-width: 0; }
.janggi-setup select { width: 100%; min-width: 0; }
.janggi-board { position: relative; display: block; width: min(100%, 560px); aspect-ratio: 9 / 10; margin: 0 auto; border: 3px solid #8b542e; background: #e4ad78; box-sizing: border-box; }
.janggi-cell { position: absolute; z-index: 3; display: grid; place-items: center; width: 11.111111%; height: 10%; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%, -50%); }
.janggi-grid { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.janggi-cell::before, .janggi-cell::after { display: none; }
.janggi-board.is-player-reversed { transform: rotate(180deg); }
.janggi-board.is-player-reversed .janggi-cell { transform: translate(-50%, -50%) rotate(180deg); }
.janggi-cell.is-selected { outline: 3px solid #e24e3f; outline-offset: -5px; z-index: 4; }
.janggi-cell.is-last-move-cell { outline: 4px solid #ef3d35; outline-offset: -8px; border-radius: 50%; z-index: 4; }
.janggi-cell.is-last-move-from-cell { z-index: 4; }
.janggi-last-move-from-ring { position: absolute; z-index: 4; left: 8%; top: 8%; width: 84%; height: 84%; box-sizing: border-box; border: 3px solid rgba(220, 38, 38, .9); border-radius: 50%; background: rgba(239, 68, 68, .24); box-shadow: 0 0 7px rgba(220, 38, 38, .42); pointer-events: none; }
.janggi-last-move-ring { position: absolute; z-index: 5; left: 4%; top: 4%; width: 92%; height: 92%; box-sizing: border-box; border: 4px solid #ef3d35; border-radius: 50%; box-shadow: 0 0 8px rgba(239,61,53,.95); pointer-events: none; }
.janggi-cell.is-legal::before { display: block; content: ""; position: absolute; z-index: 1; width: 28%; height: 28%; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 0 2px rgba(42,27,16,.22); }
.janggi-piece { position: relative; z-index: 3; display: grid; place-items: center; width: 88%; height: 88%; overflow: hidden; clip-path: polygon(18% 0, 82% 0, 100% 50%, 82% 100%, 18% 100%, 0 50%); background: #d62973; color: #d62973; filter: drop-shadow(2px 3px 1px rgba(37,32,28,.34)); font-family: serif; font-size: clamp(.92rem, 4.4vw, 1.5rem); font-weight: 900; line-height: 1; }
.janggi-piece::before { content: ""; position: absolute; z-index: 0; inset: 1.5px; clip-path: inherit; background: #fff; }
.janggi-piece-label { position: relative; z-index: 1; display: block; transform: translateY(-1px); }
.janggi-piece .janggi-piece-label { width: 100%; height: 100%; transform: scale(1.5); background-repeat: no-repeat; background-size: 100% 100%; background-position: center; color: transparent; font-size: 0; }
.janggi-piece.red .janggi-piece-label { transform: scale(2.05); transform-origin: center center; }
.janggi-piece.red .janggi-piece-label { background-image: url("./assets/janggi-chars-red.png"); }
.janggi-piece.blue .janggi-piece-label { background-image: url("./assets/janggi-chars-teal.png"); }
.janggi-piece-label.piece-chariot { background-position-x: 0%; }
.janggi-piece-label.piece-horse { background-position-x: 16.6667%; }
.janggi-piece-label.piece-elephant { background-position-x: 33.3333%; }
.janggi-piece-label.piece-guard { background-position-x: 50%; }
.janggi-piece-label.piece-general { background-position-x: 66.6667%; }
.janggi-piece-label.piece-cannon { background-position-x: 83.3333%; }
.janggi-piece-label.piece-soldier { background-position-x: 100%; }
.janggi-piece .janggi-piece-label { background-size: 100% 100%; background-position: center; }
.janggi-piece.red .piece-chariot { background-image: url("./assets/janggi-red-chariot.png?v=10"); }
.janggi-piece.red .piece-horse { background-image: url("./assets/janggi-red-horse.png?v=10"); }
.janggi-piece.red .piece-elephant { background-image: url("./assets/janggi-red-elephant.png?v=10"); }
.janggi-piece.red .piece-guard { background-image: url("./assets/janggi-red-guard.png?v=10"); }
.janggi-piece.red .piece-general { background-image: url("./assets/janggi-red-general.png?v=10"); }
.janggi-piece.red .piece-cannon { background-image: url("./assets/janggi-red-cannon.png?v=10"); }
.janggi-piece.red .piece-soldier { background-image: url("./assets/janggi-red-soldier.png?v=12"); }
.janggi-piece.red .piece-soldier { transform: scale(.9); transform-origin: center center; }
.janggi-piece.blue .piece-chariot { background-image: url("./assets/janggi-teal-chariot.png?v=15"); }
.janggi-piece.blue .piece-horse { background-image: url("./assets/janggi-teal-horse.png?v=15"); }
.janggi-piece.blue .piece-elephant { background-image: url("./assets/janggi-teal-elephant.png?v=15"); }
.janggi-piece.blue .piece-guard { background-image: url("./assets/janggi-teal-guard.png?v=15"); }
.janggi-piece.blue .piece-general { background-image: url("./assets/janggi-teal-general.png?v=15"); }
.janggi-piece.blue .piece-cannon { background-image: url("./assets/janggi-teal-cannon.png?v=15"); }
.janggi-piece.blue .piece-soldier { background-image: url("./assets/janggi-teal-soldier.png?v=15"); }
.janggi-piece.blue .piece-elephant,
.janggi-piece.blue .piece-cannon { transform: scale(.78); transform-origin: center center; }
.janggi-piece.red .janggi-piece-label { transform: scale(1.05); transform-origin: center center; }
.janggi-piece.blue .janggi-piece-label { transform: scale(1.12); transform-origin: center center; }
.janggi-piece.red .piece-general { transform: scale(.92); transform-origin: center center; }
.janggi-piece.blue .piece-general { transform: scale(.98); transform-origin: center center; }
.janggi-piece.blue { background: #223db0; color: #223db0; }
.janggi-piece.red .janggi-piece-label,
.janggi-piece.blue .janggi-piece-label { background-repeat: no-repeat; background-position: center; background-size: contain; }
.janggi-piece.red .piece-chariot { background-image: url("./assets/janggi-svg-red-chariot.svg?v=1"); }
.janggi-piece.red .piece-horse { background-image: url("./assets/janggi-svg-red-horse.svg?v=1"); }
.janggi-piece.red .piece-elephant { background-image: url("./assets/janggi-svg-red-elephant.svg?v=1"); }
.janggi-piece.red .piece-guard { background-image: url("./assets/janggi-svg-red-guard.svg?v=1"); }
.janggi-piece.red .piece-general { background-image: url("./assets/janggi-svg-red-general.svg?v=1"); }
.janggi-piece.red .piece-cannon { background-image: url("./assets/janggi-svg-red-cannon.svg?v=1"); }
.janggi-piece.red .piece-soldier { background-image: url("./assets/janggi-svg-red-soldier.svg?v=1"); }
.janggi-piece.blue .piece-chariot { background-image: url("./assets/janggi-svg-blue-chariot.svg?v=1"); }
.janggi-piece.blue .piece-horse { background-image: url("./assets/janggi-svg-blue-horse.svg?v=1"); }
.janggi-piece.blue .piece-elephant { background-image: url("./assets/janggi-svg-blue-elephant.svg?v=1"); }
.janggi-piece.blue .piece-guard { background-image: url("./assets/janggi-svg-blue-guard.svg?v=1"); }
.janggi-piece.blue .piece-general { background-image: url("./assets/janggi-svg-blue-general.svg?v=1"); }
.janggi-piece.blue .piece-cannon { background-image: url("./assets/janggi-svg-blue-cannon.svg?v=1"); }
.janggi-piece.blue .piece-soldier { background-image: url("./assets/janggi-svg-blue-soldier.svg?v=1"); }
.janggi-piece.red .janggi-piece-label,
.janggi-piece.blue .janggi-piece-label { background-size: 118% 118%; }
.janggi-piece.is-last-move { filter: drop-shadow(0 0 0 #ef3d35) drop-shadow(0 0 5px #ef3d35) drop-shadow(2px 3px 1px rgba(37,32,28,.34)); box-shadow: 0 0 0 3px #ef3d35; }
.janggi-piece.is-last-move::after { content: ""; position: absolute; inset: -2px; border: 2px solid #ef3d35; clip-path: inherit; pointer-events: none; }
.janggi-game-message { min-height: 1.3em; margin: 0; color: #735e4b; text-align: center; font-size: .82rem; font-weight: 700; }
.janggi-game-message.is-red { color: #c33b32; }
.janggi-game-message.is-blue { color: #2453b8; }
html[data-theme="dark"] .janggi-game-icon { background: #5d422c; }
html[data-theme="dark"] .janggi-game-card { border-color: #33445e; background: #1a2230; box-shadow: none; }
html[data-theme="dark"] .janggi-players-card { border-color: #33445e; background: #1a2230; box-shadow: none; }
html[data-theme="dark"] .janggi-game-status { color: #d8c0a8; }
html[data-theme="dark"] .janggi-game-status strong { color: #ff9b91; }
html[data-theme="dark"] .janggi-game-message.is-check { border-color: #ff756d; background: #3b2022; color: #ffaaa4 !important; }
html[data-theme="dark"] .janggi-game-message { color: #cdbda9; }
html[data-theme="dark"] .janggi-game-message.is-red { color: #ff8d86; }
html[data-theme="dark"] .janggi-game-message.is-blue { color: #9ebcff; }
html[data-theme="dark"] .kamisado-game-icon { background: linear-gradient(135deg, #182d4d, #573a72); }
html[data-theme="dark"] .kamisado-world-item { border-color: #3f5676; }
html[data-theme="dark"] .kamisado-game-card { border-color: #33445e; background: #1a2230; box-shadow: none; }
html[data-theme="dark"] .kamisado-game-status { color: #b5c4d8; }
html[data-theme="dark"] .kamisado-game-status strong { color: #bcd5ff; }
html[data-theme="dark"] .kamisado-board { border-color: #52718d; }
html[data-theme="dark"] .kamisado-game-actions span { color: #ff8d93; }
.stop-challenge-world-item { border-color: #f0c8cb; }
.stop-challenge-card { display: grid; gap: 18px; justify-items: center; margin-top: 8px; padding: 24px 18px 28px; border: 1px solid #f1cdd0; border-radius: 24px; background: linear-gradient(145deg, #fff, #fff6f6); box-shadow: 0 12px 30px rgba(169,39,49,.1); }
.stop-challenge-meta { width: 100%; display: flex; justify-content: space-between; gap: 12px; color: #71809a; font-size: .82rem; }
.stop-challenge-meta strong { color: #243b61; }
.stop-challenge-timer { color: #172b4d; font-size: clamp(2.35rem, 12vw, 4.7rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .03em; line-height: 1; opacity: 1; transition: opacity 1s ease; }
.stop-challenge-timer.is-fading { opacity: 0; }
.stop-challenge-timer b { color: #bd6470; }
.stop-challenge-timer-hint { margin: -8px 0 0; color: #8793a6; font-size: .75rem; }
.stop-challenge-button { width: min(240px, 76vw); aspect-ratio: 1; border: 10px solid #ffc9cc; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ff7478, #e12832 62%, #ad111c); color: #fff; box-shadow: 0 10px 0 #a8121d, 0 18px 25px rgba(178,24,35,.28); font-size: 1.4rem; font-weight: 900; letter-spacing: .12em; cursor: pointer; }
.stop-challenge-button:active { transform: translateY(6px); box-shadow: 0 4px 0 #a8121d, 0 10px 15px rgba(178,24,35,.2); }
.stop-challenge-button:disabled { opacity: .65; cursor: wait; }
.stop-challenge-result { min-height: 1.4em; margin: 0; color: #b52d3c; font-size: .9rem; font-weight: 700; text-align: center; }
.stop-challenge-cumulative, .stop-challenge-ranking { margin-top: 18px; }
.stop-challenge-share-button { display: block; width: 100%; margin: 0 0 10px; padding: 10px 14px; border: 1px solid #e1a8ad; border-radius: 10px; background: #fff6f6; color: #b52d3c; font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.stop-challenge-share-button:hover { background: #ffecef; }
.stop-challenge-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.stop-challenge-section-heading h3 { margin: 0; color: #233b63; }
.stop-challenge-section-heading span { color: #8591a3; font-size: .75rem; }
.stop-challenge-ranking-list { display: grid; gap: 8px; }
.stop-challenge-ranking-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid #e5eaf2; border-radius: 12px; background: #fff; }
.stop-challenge-ranking-row b { color: #bd6470; }
.stop-challenge-ranking-row strong { overflow: hidden; color: #243b61; text-overflow: ellipsis; white-space: nowrap; }
.stop-challenge-ranking-row span { color: #687993; font-size: .78rem; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .stop-challenge-game { background: #3d2028; color: #ff8790; }
html[data-theme="dark"] .stop-challenge-world-item { border-color: #63313b; }
html[data-theme="dark"] .stop-challenge-card { border-color: #63313b; background: linear-gradient(145deg, #211c28, #281b23); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
html[data-theme="dark"] .stop-challenge-meta { color: #abb8cc; }
html[data-theme="dark"] .stop-challenge-meta strong, html[data-theme="dark"] .stop-challenge-timer, html[data-theme="dark"] .stop-challenge-section-heading h3, html[data-theme="dark"] .stop-challenge-ranking-row strong { color: #f3f6ff; }
html[data-theme="dark"] .stop-challenge-ranking-row { border-color: #38455b; background: #202b3d; }
html[data-theme="dark"] .stop-challenge-ranking-row span { color: #b4c1d5; }
html[data-theme="dark"] .stop-challenge-share-button { border-color: #824550; background: #34202a; color: #ffabb2; }
html[data-theme="dark"] .stop-challenge-share-button:hover { background: #422630; }
#gameWorldScreen { gap: 20px; }
#gameWorldScreen .subpage-heading { padding: 8px 4px 4px; }
#gameWorldScreen .help-text { margin: 0; font-size: .98rem; }
#gameWorldScreen .game-world-list { gap: 14px; margin-top: 0; }
#gameWorldScreen .subpage-heading {
  position: relative;
  min-height: 94px;
  align-items: center;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(49,90,159,.14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(238,245,255,.86));
  box-shadow: 0 10px 26px rgba(20,33,61,.08);
}
#gameWorldScreen .subpage-heading::after {
  position: absolute;
  right: -36px;
  bottom: -64px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(49,90,159,.08);
  content: "";
  pointer-events: none;
}
#gameWorldScreen .subpage-heading > * { position: relative; z-index: 1; }
#gameWorldScreen .subpage-heading .back-button {
  border: 1px solid #c8d8f0;
  border-radius: 14px;
  background: #e9f1ff;
  color: #315a9f;
  box-shadow: 0 4px 10px rgba(49,90,159,.1);
}
#gameWorldScreen .subpage-heading h2 {
  margin-top: 5px;
  color: #14213d;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  letter-spacing: -.04em;
}
#gameWorldScreen .subpage-heading .eyebrow { font-size: .72rem; letter-spacing: .14em; }
html[data-theme="dark"] #gameWorldScreen .subpage-heading {
  border-color: rgba(195,192,255,.2);
  background: linear-gradient(135deg, rgba(30,41,59,.9), rgba(28,44,73,.82));
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}
html[data-theme="dark"] #gameWorldScreen .subpage-heading::after { background: rgba(158,193,255,.1); }
html[data-theme="dark"] #gameWorldScreen .subpage-heading .back-button { border-color: #405a80; background: #253755; color: #cfe0ff; }
html[data-theme="dark"] #gameWorldScreen .subpage-heading h2 { color: #f4f7ff; }
/* 게임세상 타이틀은 카드 없이 단순한 앱 헤더 형태로 표시 */
#gameWorldScreen .subpage-heading {
  min-height: 72px;
  justify-content: center;
  padding: 8px 44px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#gameWorldScreen .subpage-heading::after { display: none; }
#gameWorldScreen .subpage-heading .back-button {
  position: absolute;
  left: 4px;
  top: 50%;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #315a9f;
  box-shadow: none;
  font-size: 1.55rem;
  font-weight: 500;
  transform: translateY(-50%);
}
#gameWorldScreen .subpage-heading .back-button:hover,
#gameWorldScreen .subpage-heading .back-button:focus-visible {
  background: rgba(49,90,159,.1);
  outline: none;
}
#gameWorldScreen .subpage-heading .subpage-title-wrap { align-items: center; text-align: center; }
#gameWorldScreen .subpage-heading .screen-heading-actions {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  margin: 0;
  transform: translateY(-50%);
}
#gameWorldScreen.is-external-mode .subpage-heading #externalThemeToggle {
  position: static;
}
#gameWorldScreen.is-external-mode .subpage-heading .screen-heading-actions {
  left: max(8px, calc((100vw - 720px) / 2));
  right: auto;
  top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  transform: none;
}
#gameWorldScreen.is-external-mode .subpage-heading .screen-heading-actions .external-admin-login-button {
  position: static;
  transform: none;
  flex: 0 0 auto;
  width: auto;
}
#gameWorldScreen.is-external-mode .subpage-heading .screen-heading-actions:has(#openExternalAdminLogin:not(.hidden)) {
  right: 8px;
  max-width: none;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}
@media (max-width: 720px) {
  #gameWorldScreen.is-external-mode .subpage-heading #externalThemeToggle {
    position: static;
  }
  #gameWorldScreen.is-external-mode .subpage-heading .screen-heading-actions {
    left: 8px;
    top: 8px;
  }
}
#gameWorldScreen .subpage-heading .eyebrow { color: #6b78a7; font-size: .67rem; letter-spacing: .16em; }
#gameWorldScreen .subpage-heading h2 { margin-top: 0; font-size: clamp(1.45rem, 4.4vw, 1.85rem); line-height: 1.12; }
html[data-theme="light"] #gameWorldScreen,
html[data-theme="dark"] #gameWorldScreen { background: transparent; }
/* 아지트정보 탭과 콘텐츠 카드 */
#pricingScreen .info-tabs {
  margin: 14px 0 18px;
  padding: 5px;
  gap: 6px;
  border: 1px solid rgba(49,90,159,.12);
  border-radius: 16px;
  background: rgba(232,240,252,.72);
  box-shadow: 0 6px 16px rgba(20,33,61,.05);
}
#pricingScreen .info-tabs-shell { margin: 14px 0 18px; }
#pricingScreen .info-tabs-shell > .info-tabs { margin: 0; }
#pricingScreen .info-tab { min-height: 44px; border-radius: 12px; color: #52647e; font-weight: 800; }
#pricingScreen .info-tab.active { background: #315a9f; color: #fff; box-shadow: 0 5px 12px rgba(49,90,159,.2); }
#pricingScreen .member-info-title,
#pricingScreen .member-menu-title { margin: 0 0 12px; }
#pricingScreen .member-info-title h3,
#pricingScreen .member-menu-title h3 { margin: 3px 0 0; font-size: 1.25rem; letter-spacing: -.02em; }
#pricingScreen .price-grid { gap: 12px; }
#pricingScreen .price-card,
#pricingScreen .hours-card,
#pricingScreen .member-menu-group {
  border-radius: 18px;
  border-color: rgba(49,90,159,.14);
  box-shadow: 0 8px 20px rgba(20,33,61,.06);
}
#pricingScreen .price-card { min-height: 108px; padding: 16px; }
#pricingScreen .hours-card { padding: 16px; }
#pricingScreen .member-menu-group { overflow: hidden; background: rgba(255,255,255,.88); }
html[data-theme="dark"] #pricingScreen .info-tabs { border-color: rgba(195,192,255,.16); background: rgba(30,41,59,.72); }
html[data-theme="dark"] #pricingScreen .info-tab { color: #aab8cb; }
html[data-theme="dark"] #pricingScreen .info-tab.active { background: #4b76c0; color: #fff; }
html[data-theme="dark"] #pricingScreen .price-card,
html[data-theme="dark"] #pricingScreen .hours-card,
html[data-theme="dark"] #pricingScreen .member-menu-group { border-color: rgba(195,192,255,.16); background: rgba(30,41,59,.72); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
html[data-theme="dark"] #gameWorldScreen .subpage-heading {
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
}
html[data-theme="dark"] #gameWorldScreen .subpage-heading .back-button { background: transparent; color: #dce5ff; }
html[data-theme="dark"] #gameWorldScreen .subpage-heading .back-button:hover,
html[data-theme="dark"] #gameWorldScreen .subpage-heading .back-button:focus-visible { background: rgba(158,193,255,.12); }
html[data-theme="dark"] #gameWorldScreen .subpage-heading .eyebrow { color: #9ba8d1; }
#dailyFortuneScreen .subpage-heading,
#achievementsScreen .subpage-heading,
#historyScreen .subpage-heading,
#memberHistoryScreen .subpage-heading,
#membersScreen .subpage-heading,
#pricingScreen .subpage-heading,
#roomStatusScreen .subpage-heading,
#memberRatingsScreen .subpage-heading,
#mummyRankingScreen .subpage-heading,
#gameRecordsScreen .subpage-heading,
#rulemasterGamesScreen .subpage-heading,
#otherFavoriteGamesScreen .subpage-heading {
  min-height: 72px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#dailyFortuneScreen .subpage-heading .back-button,
#achievementsScreen .subpage-heading .back-button,
#historyScreen .subpage-heading .back-button,
#memberHistoryScreen .subpage-heading .back-button,
#membersScreen .subpage-heading .back-button,
#pricingScreen .subpage-heading .back-button,
#roomStatusScreen .subpage-heading .back-button,
#memberRatingsScreen .subpage-heading .back-button,
#mummyRankingScreen .subpage-heading .back-button,
#gameRecordsScreen .subpage-heading .back-button,
#rulemasterGamesScreen .subpage-heading .back-button,
#otherFavoriteGamesScreen .subpage-heading .back-button {
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #315a9f;
  box-shadow: none;
  font-size: 1.45rem;
  font-weight: 500;
}
#dailyFortuneScreen .subpage-heading .back-button:hover,
#dailyFortuneScreen .subpage-heading .back-button:focus-visible,
#achievementsScreen .subpage-heading .back-button:hover,
#achievementsScreen .subpage-heading .back-button:focus-visible,
#historyScreen .subpage-heading .back-button:hover,
#historyScreen .subpage-heading .back-button:focus-visible,
#memberHistoryScreen .subpage-heading .back-button:hover,
#memberHistoryScreen .subpage-heading .back-button:focus-visible,
#membersScreen .subpage-heading .back-button:hover,
#membersScreen .subpage-heading .back-button:focus-visible,
#pricingScreen .subpage-heading .back-button:hover,
#pricingScreen .subpage-heading .back-button:focus-visible,
#roomStatusScreen .subpage-heading .back-button:hover,
#roomStatusScreen .subpage-heading .back-button:focus-visible,
#memberRatingsScreen .subpage-heading .back-button:hover,
#memberRatingsScreen .subpage-heading .back-button:focus-visible,
#mummyRankingScreen .subpage-heading .back-button:hover,
#mummyRankingScreen .subpage-heading .back-button:focus-visible,
#gameRecordsScreen .subpage-heading .back-button:hover,
#gameRecordsScreen .subpage-heading .back-button:focus-visible,
#rulemasterGamesScreen .subpage-heading .back-button:hover,
#rulemasterGamesScreen .subpage-heading .back-button:focus-visible,
#otherFavoriteGamesScreen .subpage-heading .back-button:hover,
#otherFavoriteGamesScreen .subpage-heading .back-button:focus-visible {
  background: rgba(49,90,159,.1);
  outline: none;
}
html[data-theme="dark"] #dailyFortuneScreen .subpage-heading,
html[data-theme="dark"] #achievementsScreen .subpage-heading,
html[data-theme="dark"] #historyScreen .subpage-heading,
html[data-theme="dark"] #memberHistoryScreen .subpage-heading,
html[data-theme="dark"] #membersScreen .subpage-heading,
html[data-theme="dark"] #pricingScreen .subpage-heading,
html[data-theme="dark"] #roomStatusScreen .subpage-heading,
html[data-theme="dark"] #memberRatingsScreen .subpage-heading,
html[data-theme="dark"] #mummyRankingScreen .subpage-heading,
html[data-theme="dark"] #gameRecordsScreen .subpage-heading,
html[data-theme="dark"] #rulemasterGamesScreen .subpage-heading,
html[data-theme="dark"] #otherFavoriteGamesScreen .subpage-heading { background: transparent; }
html[data-theme="dark"] #dailyFortuneScreen .subpage-heading .back-button,
html[data-theme="dark"] #achievementsScreen .subpage-heading .back-button,
html[data-theme="dark"] #historyScreen .subpage-heading .back-button,
html[data-theme="dark"] #memberHistoryScreen .subpage-heading .back-button,
html[data-theme="dark"] #membersScreen .subpage-heading .back-button,
html[data-theme="dark"] #pricingScreen .subpage-heading .back-button,
html[data-theme="dark"] #roomStatusScreen .subpage-heading .back-button,
html[data-theme="dark"] #memberRatingsScreen .subpage-heading .back-button,
html[data-theme="dark"] #mummyRankingScreen .subpage-heading .back-button,
html[data-theme="dark"] #gameRecordsScreen .subpage-heading .back-button,
html[data-theme="dark"] #rulemasterGamesScreen .subpage-heading .back-button,
html[data-theme="dark"] #otherFavoriteGamesScreen .subpage-heading .back-button { background: transparent; color: #dce5ff; }
html[data-theme="dark"] .subpage-heading .eyebrow { color: #9ba8d1; }
#gamesScreen #gamesHeading {
  position: relative;
  min-height: 72px;
  justify-content: center;
  padding: 8px 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#gamesScreen #gamesHeading .games-title-wrap { align-items: center; justify-content: center; text-align: center; }
#gamesScreen #gamesHeading .back-button {
  position: absolute;
  left: 4px;
  top: 50%;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #315a9f;
  font-size: 1.45rem;
  font-weight: 500;
  transform: translateY(-50%);
}
#gameRecordsScreen > .subpage-heading { justify-content: flex-start; }
#gameRecordsScreen > .subpage-heading > .back-button { position: static; transform: none; }
#gameRecordsScreen > .subpage-heading > .subpage-title-wrap { align-items: flex-start; text-align: left; }
#gamesScreen #gamesHeading .back-button:hover,
#gamesScreen #gamesHeading .back-button:focus-visible { background: rgba(49,90,159,.1); outline: none; }
#gamesScreen #gamesHeading h2 { margin-top: 0; line-height: 1.12; }
#gamesScreen #gamesHeading .screen-heading-actions { position: absolute; right: 4px; }
#gamesScreen #gamesHeading:has(#backFromFavoriteGames:not(.hidden)) {
  justify-content: center;
  padding-left: 44px;
  padding-right: 44px;
}
#gamesScreen #gamesHeading:has(#backFromFavoriteGames:not(.hidden)) .games-title-wrap { align-items: center; text-align: center; }
#gamesScreen #gamesHeading:has(#backFromFavoriteGames:not(.hidden)) #backFromFavoriteGames { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); }
#mummyRankingScreen .subpage-heading { position: relative; justify-content: center; padding-left: 44px; padding-right: 44px; }
#mummyRankingScreen .subpage-heading > div { align-items: center; text-align: center; }
#mummyRankingScreen .subpage-heading > .back-button { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); }
#mummyRankingScreen .subpage-heading > .title-badge-button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
#mummyRankingScreen .games-list { display: grid; gap: 10px; overflow: visible; border: 0; background: transparent; }
#mummyRankingScreen .game-item {
  min-height: 78px;
  border: 1px solid rgba(49,90,159,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 7px 18px rgba(20,33,61,.07);
  content-visibility: visible;
  contain-intrinsic-size: 0 0;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
#mummyRankingScreen .game-item:hover,
#mummyRankingScreen .game-item:focus-within { transform: translateY(-1px); border-color: rgba(49,90,159,.34); box-shadow: 0 10px 24px rgba(49,90,159,.13); }
#mummyRankingScreen .game-item:last-child { border-bottom: 1px solid rgba(49,90,159,.14); }
html[data-theme="dark"] #mummyRankingScreen .game-item { border-color: rgba(195,192,255,.16); background: rgba(30,41,59,.72); box-shadow: 0 8px 22px rgba(0,0,0,.2); backdrop-filter: blur(10px); }
html[data-theme="dark"] #mummyRankingScreen .game-item:last-child { border-bottom-color: rgba(195,192,255,.16); }
html[data-theme="dark"] #mummyRankingScreen .game-item:hover,
html[data-theme="dark"] #mummyRankingScreen .game-item:focus-within { border-color: rgba(158,193,255,.55); box-shadow: 0 10px 26px rgba(20,33,61,.4); }
#gamesScreen #gamesHeading {
  justify-content: flex-start;
  padding: 8px 4px;
}
#gamesScreen #gamesHeading .games-title-wrap {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
#gamesScreen #gamesHeading .back-button {
  position: static;
  flex: 0 0 30px;
  transform: none;
}
#gamesScreen #gamesHeading h2,
.subpage-heading h2,
#historyScreen .screen-heading h2,
#memberHistoryScreen .screen-heading h2 {
  margin-top: 0 !important;
  line-height: 1.12;
}
#historyScreen .screen-heading { min-height: 72px; padding: 8px 4px; }
#gamesScreen #gamesHeading .eyebrow,
#historyScreen .screen-heading .eyebrow,
#memberHistoryScreen .screen-heading .eyebrow {
  display: block;
  line-height: 1;
  margin: 0;
}
#gamesScreen #gamesHeading,
#historyScreen > .screen-heading,
#memberHistoryScreen > .screen-heading,
#pricingScreen > .pricing-heading,
#dailyFortuneScreen > .subpage-heading,
#achievementsScreen > .subpage-heading,
#pricingScreen > .subpage-heading,
#roomStatusScreen > .subpage-heading,
#memberRatingsScreen > .subpage-heading,
#mummyRankingScreen > .subpage-heading,
#gameRecordsScreen > .subpage-heading,
#rulemasterGamesScreen > .subpage-heading,
#otherFavoriteGamesScreen > .subpage-heading {
  box-sizing: border-box;
  height: 72px;
  min-height: 72px;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}
#gamesScreen #gamesHeading .subpage-title-wrap,
#historyScreen > .screen-heading > div:first-child,
#memberHistoryScreen > .screen-heading > div:first-child,
#pricingScreen > .pricing-heading > div:first-child,
#dailyFortuneScreen > .subpage-heading > div,
#achievementsScreen > .subpage-heading > div,
#pricingScreen > .subpage-heading > div,
#roomStatusScreen > .subpage-heading > div,
#memberRatingsScreen > .subpage-heading > div,
#mummyRankingScreen > .subpage-heading > div,
#gameRecordsScreen > .subpage-heading > div,
#rulemasterGamesScreen > .subpage-heading > div,
#otherFavoriteGamesScreen > .subpage-heading > div {
  justify-content: center;
}
#pricingScreen > .pricing-heading {
  box-sizing: border-box;
  height: 72px;
  min-height: 72px;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}
#pricingScreen > .pricing-heading > div:first-child { align-items: center; text-align: center; }
#pricingScreen > .pricing-heading h2 { margin-top: 0 !important; line-height: 1.12; }
#pricingScreen .pricing-heading {
  box-sizing: border-box;
  min-height: 72px;
  height: 72px;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
  transform: translateY(12px);
}
#pricingScreen .pricing-heading > div:first-child { align-items: flex-start; justify-content: center; }
#pricingScreen .pricing-heading .eyebrow { display: block; height: 12px; margin: 0; line-height: 12px; }
#pricingScreen .pricing-heading h2 { margin-top: 0 !important; line-height: 1.12; }
#gamesScreen #gamesHeading h2,
.subpage-heading h2,
#historyScreen .screen-heading h2,
#memberHistoryScreen .screen-heading h2,
#pricingScreen .pricing-heading h2 { margin-top: 3px !important; }
#balanceGameScreen .subpage-heading {
  position: relative;
  justify-content: flex-start;
  padding-left: 4px;
  padding-right: 48px;
}
#balanceGameScreen .subpage-heading > div { align-items: flex-start; text-align: left; }
#balanceGameScreen #closeBalanceGame {
  position: absolute;
  right: 4px;
  left: auto;
  top: 50%;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8eef9;
  color: #315a9f;
  font-size: 0;
  transform: translateY(-50%);
}
#balanceGameScreen #closeBalanceGame::before {
  content: "×";
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}
#balanceGameScreen #closeBalanceGame:hover,
#balanceGameScreen #closeBalanceGame:focus-visible { background: #dbe7fa; outline: none; }
html[data-theme="dark"] #balanceGameScreen #closeBalanceGame { background: #25354d; color: #dce8ff; }
html[data-theme="dark"] #balanceGameScreen #closeBalanceGame:hover,
html[data-theme="dark"] #balanceGameScreen #closeBalanceGame:focus-visible { background: #304664; }
#dailyWordGuessScreen .daily-word-guess-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
#dailyWordGuessScreen .daily-word-guess-header > div { text-align: left; }
#dailyWordGuessScreen .daily-word-guess-header h2 { margin-top: 3px; line-height: 1.12; }
#dailyWordGuessKeyboard {
  z-index: 100;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 45dvh;
  overflow-y: auto;
}
/* 자모 키보드가 열려도 문제 입력 영역은 상단에 고정하고,
   그 아래 도전 목록만 스크롤되도록 유지합니다. */
.daily-word-guess-input-panel:has(#dailyWordGuessKeyboard.is-visible) {
  position: sticky;
  top: 0;
  z-index: 12;
}
@media (max-width: 560px) {
  #dailyWordGuessScreen .daily-word-guess-input-row { grid-template-columns: 1fr; gap: 10px; }
  #dailyWordGuessScreen .daily-word-guess-inputs { gap: 7px; }
#dailyWordGuessScreen .daily-word-guess-input-row > button { width: 100%; min-height: 46px; }
}

#dailyWordGuessMessage:empty { display: none; }
#gamesScreen #gamesHeading .subpage-title-wrap,
#historyScreen > .screen-heading > div:first-child,
#memberHistoryScreen > .screen-heading > div:first-child,
#pricingScreen > .pricing-heading > div:first-child,
#dailyFortuneScreen > .subpage-heading > div,
#achievementsScreen > .subpage-heading > div,
#roomStatusScreen > .subpage-heading > div,
#memberRatingsScreen > .subpage-heading > div,
#mummyRankingScreen > .subpage-heading > div,
#gameRecordsScreen > .subpage-heading > div,
#rulemasterGamesScreen > .subpage-heading > div,
#otherFavoriteGamesScreen > .subpage-heading > div {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#gamesScreen #gamesHeading .eyebrow,
#historyScreen > .screen-heading .eyebrow,
#memberHistoryScreen > .screen-heading .eyebrow,
#pricingScreen > .pricing-heading .eyebrow,
#dailyFortuneScreen > .subpage-heading .eyebrow,
#achievementsScreen > .subpage-heading .eyebrow,
#roomStatusScreen > .subpage-heading .eyebrow,
#memberRatingsScreen > .subpage-heading .eyebrow,
#mummyRankingScreen > .subpage-heading .eyebrow,
#gameRecordsScreen > .subpage-heading .eyebrow,
#rulemasterGamesScreen > .subpage-heading .eyebrow,
#otherFavoriteGamesScreen > .subpage-heading .eyebrow {
  height: 12px;
  line-height: 12px;
}
#dailyFortuneScreen .subpage-heading .back-button,
#achievementsScreen .subpage-heading .back-button,
#historyScreen .subpage-heading .back-button,
#memberHistoryScreen .subpage-heading .back-button,
#membersScreen .subpage-heading .back-button,
#pricingScreen .subpage-heading .back-button,
#roomStatusScreen .subpage-heading .back-button,
#memberRatingsScreen .subpage-heading .back-button,
#mummyRankingScreen .subpage-heading .back-button,
#gameRecordsScreen .subpage-heading .back-button,
#rulemasterGamesScreen .subpage-heading .back-button,
#otherFavoriteGamesScreen .subpage-heading .back-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 30px;
  padding: 0;
}
html[data-theme="dark"] #gamesScreen #gamesHeading .back-button { background: transparent; color: #dce5ff; }
html[data-theme="dark"] #gamesScreen #gamesHeading .back-button:hover,
html[data-theme="dark"] #gamesScreen #gamesHeading .back-button:focus-visible { background: rgba(158,193,255,.12); }
#dailyFortuneScreen .subpage-heading,
#achievementsScreen .subpage-heading,
#historyScreen .subpage-heading,
#memberHistoryScreen .subpage-heading,
#membersScreen .subpage-heading,
#pricingScreen .subpage-heading,
#roomStatusScreen .subpage-heading,
#memberRatingsScreen .subpage-heading,
#mummyRankingScreen .subpage-heading,
#gameRecordsScreen .subpage-heading,
#rulemasterGamesScreen .subpage-heading,
#otherFavoriteGamesScreen .subpage-heading { position: relative; justify-content: center; }
#dailyFortuneScreen .subpage-heading > .back-button,
#achievementsScreen .subpage-heading > .back-button,
#historyScreen .subpage-heading > .back-button,
#memberHistoryScreen .subpage-heading > .back-button,
#membersScreen .subpage-heading > .back-button,
#pricingScreen .subpage-heading > .back-button,
#roomStatusScreen .subpage-heading > .back-button,
#memberRatingsScreen .subpage-heading > .back-button,
#mummyRankingScreen .subpage-heading > .back-button,
#gameRecordsScreen .subpage-heading > .back-button,
#rulemasterGamesScreen .subpage-heading > .back-button,
#otherFavoriteGamesScreen .subpage-heading > .back-button { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); }
#dailyFortuneScreen .subpage-heading > div:not(.screen-heading-actions),
#achievementsScreen .subpage-heading > div:not(.screen-heading-actions),
#historyScreen .subpage-heading > div:not(.screen-heading-actions),
#memberHistoryScreen .subpage-heading > div:not(.screen-heading-actions),
#membersScreen .subpage-heading > div:not(.screen-heading-actions),
#pricingScreen .subpage-heading > div:not(.screen-heading-actions),
#roomStatusScreen .subpage-heading > div:not(.screen-heading-actions),
#memberRatingsScreen .subpage-heading > div:not(.screen-heading-actions),
#mummyRankingScreen .subpage-heading > div:not(.screen-heading-actions),
#gameRecordsScreen .subpage-heading > div:not(.screen-heading-actions),
#rulemasterGamesScreen .subpage-heading > div:not(.screen-heading-actions),
#otherFavoriteGamesScreen .subpage-heading > div:not(.screen-heading-actions) { align-items: center; text-align: center; }
#dailyFortuneScreen .subpage-heading h2,
#achievementsScreen .subpage-heading h2,
#historyScreen .subpage-heading h2,
#memberHistoryScreen .subpage-heading h2,
#membersScreen .subpage-heading h2,
#pricingScreen .subpage-heading h2,
#roomStatusScreen .subpage-heading h2,
#memberRatingsScreen .subpage-heading h2,
#mummyRankingScreen .subpage-heading h2,
#gameRecordsScreen .subpage-heading h2,
#rulemasterGamesScreen .subpage-heading h2,
#otherFavoriteGamesScreen .subpage-heading h2 { margin-top: 0; line-height: 1.12; }
#dailyFortuneScreen .subpage-heading .screen-heading-actions,
#achievementsScreen .subpage-heading .screen-heading-actions,
#historyScreen .subpage-heading .screen-heading-actions,
#memberHistoryScreen .subpage-heading .screen-heading-actions,
#membersScreen .subpage-heading .screen-heading-actions,
#pricingScreen .subpage-heading .screen-heading-actions,
#roomStatusScreen .subpage-heading .screen-heading-actions,
#memberRatingsScreen .subpage-heading .screen-heading-actions,
#mummyRankingScreen .subpage-heading .screen-heading-actions,
#gameRecordsScreen .subpage-heading .screen-heading-actions,
#rulemasterGamesScreen .subpage-heading .screen-heading-actions,
#otherFavoriteGamesScreen .subpage-heading .screen-heading-actions { position: absolute; right: 4px; }
#gameWorldScreen .game-world-item { position: relative; min-height: 104px; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; padding: 18px; border-radius: 22px; border-color: rgba(49,90,159,.18); background: rgba(255,255,255,.82); box-shadow: 0 10px 28px rgba(39,65,103,.08); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
#gameWorldScreen .game-world-item:hover, #gameWorldScreen .game-world-item:focus-visible { transform: translateY(-2px); border-color: #9ebcf0; box-shadow: 0 12px 28px rgba(39,65,103,.14); outline: none; }
#gameWorldScreen .game-world-item-icon { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 8px 18px rgba(20,35,65,.14); }
#gameWorldScreen .game-world-item strong { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 1.08rem; }
#gameWorldScreen .game-world-item small { font-size: .8rem; line-height: 1.4; }
#gameWorldScreen .game-world-item > span:nth-child(2) { min-width: 0; padding-right: 62px; }
#gameWorldScreen .game-world-item-chevron { align-self: center; font-size: 1.7rem; line-height: 1; }
#gameWorldScreen .stop-challenge-menu-badge { font-size: .64rem; }
#gameWorldScreen .stop-challenge-world-item > span:nth-child(2) { padding-right: 0; }
#gameWorldScreen .game-world-complete-badge { position: absolute; top: 50%; right: 48px; margin: 0; transform: translateY(-50%); line-height: 1.2; }
.mystery-game-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0; }
.mystery-game-header h2 { margin: 3px 0 0; font-size: 1.55rem; }
#mysteryGameScreen { gap: 8px; }
#mysteryGameStatus:empty { display: none; min-height: 0; margin: 0; padding: 0; }
#turtleSoupScreen { gap: 8px; }
#turtleSoupStatus:empty { display: none; min-height: 0; margin: 0; padding: 0; }
#murderTimelineScreen { gap: 8px; }
#murderTimelineStatus:empty { display: none; min-height: 0; margin: 0; padding: 0; }
#balanceGameStatus:empty { display: none; min-height: 0; margin: 0; padding: 0; }
.mystery-game-case { padding: 18px; border: 1px solid #dfe7f3; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(39,65,103,.06); }
.mystery-game-date { color: #728198; font-size: .75rem; }
.mystery-game-timeline-button { float: right; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 4px 10px 4px 12px; border: 1px solid #b7cdf0; border-radius: 999px; background: #f1f6ff; color: #24579f; box-shadow: 0 2px 6px rgba(49,95,165,.12); font-size: .8rem; font-weight: 900; }
.mystery-game-timeline-button::after { content: ">"; font-size: 1.05rem; line-height: 1; font-weight: 900; }
.mystery-game-timeline-backdrop { position: fixed; z-index: 79; inset: 0; background: rgba(12, 24, 44, .3); opacity: 0; pointer-events: none; transition: opacity .24s ease; }
.mystery-game-timeline-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mystery-game-timeline-layer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(78vw, 360px); padding: 18px; background: #fff; box-shadow: -10px 0 28px rgba(20,33,61,.22); transform: translateX(100%); transition: transform .24s ease; overflow-y: auto; }
.mystery-game-timeline-layer.is-open { transform: translateX(0); }
.mystery-game-timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: #13294b; font-size: 1.05rem; }
.mystery-game-timeline-header button { border: 0; background: transparent; font-size: 1.5rem; }
.mystery-game-timeline-item { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #e1e8f2; }
.mystery-game-timeline-item time { color: #315a9f; font-size: .9rem; font-weight: 900; }
.mystery-game-timeline-item p { margin: 0; color: #536981; font-size: .93rem; line-height: 1.6; }
@media (min-width: 700px) { .mystery-game-timeline-layer { width: min(42vw, 360px); } }
.turtle-soup-choices { display: grid; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e1e8f2; }
.turtle-soup-choices h4 { margin: 0 0 2px; color: #13294b; font-size: .96rem; }
#turtleSoupCaseTitle { margin-bottom: 8px; }
#turtleSoupStory { margin-top: 0; }
.turtle-soup-questions { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border-radius: 14px; background: #f4f7fc; }
.turtle-soup-questions h4 { margin: 0 0 2px; color: #13294b; font-size: .96rem; }
.turtle-soup-question { display: grid; gap: 4px; padding: 10px 12px; border-left: 3px solid #315a9f; background: #fff; border-radius: 8px; color: #536981; font-size: .88rem; line-height: 1.45; }
.turtle-soup-question strong { color: #13294b; }
.turtle-soup-question em { color: #315a9f; font-style: normal; font-weight: 900; }
.turtle-soup-choice { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border: 1px solid #d6e0ee; border-radius: 12px; background: #f7f9fc; color: #13294b; font-weight: 700; line-height: 1.45; text-align: left; }
.turtle-soup-choice b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #315a9f; color: #fff; font-size: .78rem; }
.turtle-soup-choice:hover, .turtle-soup-choice:focus-visible { border-color: #315a9f; background: #edf4ff; outline: none; }
.murder-timeline-guide { margin: 0 0 16px; color: #536981; font-size: .86rem; line-height: 1.5; }
.murder-timeline-segments { display: grid; gap: 10px; }
.murder-timeline-slot { padding: 2px 0 8px; border: 0; background: transparent; }
.murder-timeline-slot-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.murder-timeline-slot-header small { color: #728198; font-size: .72rem; font-weight: 700; }
.murder-timeline-slot-body { min-height: 80px; }
.murder-timeline-case h3 { margin-bottom: 4px; }
.murder-timeline-story-panel { padding-bottom: 14px; border-bottom: 1px solid rgba(120,145,180,.25); }
.murder-timeline-story-panel p { margin-top: 0; }
.murder-timeline-guide-panel { margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: rgba(49,95,165,.1); }
.murder-timeline-guide-panel .murder-timeline-guide { margin: 0; }
.murder-timeline-slots-panel { padding-top: 2px; }
.murder-timeline-segment { display: block; padding: 13px; border: 1px solid #d6e0ee; border-radius: 14px; background: #f7f9fc; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .15s ease, opacity .15s ease, border-color .15s ease; }
.murder-timeline-segment.is-long-pressing { border-color: #6f9ee8; box-shadow: 0 0 0 2px rgba(49,95,165,.12); }
.murder-timeline-segment.is-dragging { touch-action: none; }
.murder-timeline-segment.is-dragging { opacity: .65; border-color: #315fa5; transform: scale(.98); cursor: grabbing; }
.murder-timeline-segment.is-correct { border-color: #2e9b70; background: #edf9f2; box-shadow: 0 0 0 2px rgba(46,155,112,.12); }
.murder-timeline-segment.is-incorrect { border-color: #d46b73; background: #fff1f2; }
.murder-timeline-card-label { display: block; margin-bottom: 5px; color: #b94c59; font-size: .72rem; font-weight: 900; }
.murder-timeline-correction-card { margin-top: 8px; border-style: dashed; border-color: #315fa5; background: #edf4ff; }
.murder-timeline-correction-card .murder-timeline-card-label { color: #315fa5; }
.murder-timeline-slot.is-drag-preview .murder-timeline-slot-body { min-height: 86px; border: 1px dashed #6f9ee8; border-radius: 14px; background: rgba(49,95,165,.1); }
.murder-timeline-segment.is-locked { cursor: default; touch-action: auto; }
.murder-timeline-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.murder-timeline-time { color: #315a9f; font-size: .78rem; font-weight: 800; }
.murder-timeline-segment-detail { padding: 9px 0 0; color: #536981; font-size: .84rem; line-height: 1.55; }
.murder-timeline-segment-detail b { display: block; color: #1d4f95; font-size: 1rem; line-height: 1.35; }
.murder-timeline-segment-detail p { margin: 5px 0 0; color: #64748b; }
.murder-timeline-order-label { display: flex; align-items: center; gap: 6px; color: #536981; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.murder-timeline-order-label b { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #315fa5; color: #fff; font-size: .88rem; }
.murder-timeline-submit { width: 100%; margin-top: 16px; padding: 13px; border: 0; border-radius: 12px; background: #315fa5; color: #fff; font-weight: 800; cursor: pointer; }
.murder-timeline-answer-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.murder-timeline-answer-list li { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(120,145,180,.24); }
.murder-timeline-answer-list li:last-child { border-bottom: 0; }
.murder-timeline-answer-list time { color: #315fa5; font-size: .8rem; font-weight: 900; white-space: nowrap; }
.murder-timeline-answer-list strong { color: #13294b; font-size: .9rem; line-height: 1.45; }
html[data-theme="dark"] .murder-timeline-guide, html[data-theme="dark"] .murder-timeline-segment-detail { color: #b8c5d6; }
html[data-theme="dark"] .murder-timeline-story-panel { border-bottom-color: rgba(140,165,205,.22); }
html[data-theme="dark"] .murder-timeline-guide-panel { background: rgba(71,119,197,.14); }
html[data-theme="dark"] .murder-timeline-segment-detail b { color: #a9c8ff; }
html[data-theme="dark"] .murder-timeline-segment-detail p { color: #b8c5d6; }
html[data-theme="dark"] .murder-timeline-slot-header small { color: #9bacbf; }
html[data-theme="dark"] .murder-timeline-segment { border-color: #34445a; background: #141d2b; }
html[data-theme="dark"] .murder-timeline-segment.is-correct { border-color: #4eb98d; background: rgba(46,155,112,.16); }
html[data-theme="dark"] .murder-timeline-segment.is-incorrect { border-color: #d97880; background: rgba(180,63,76,.2); }
html[data-theme="dark"] .murder-timeline-correction-card { border-color: #6f9ee8; background: rgba(49,95,165,.18); }
html[data-theme="dark"] .murder-timeline-card-label { color: #ff9da5; }
html[data-theme="dark"] .murder-timeline-correction-card .murder-timeline-card-label { color: #9ec1ff; }
html[data-theme="dark"] .murder-timeline-segment-head { color: #edf2fa; }
html[data-theme="dark"] .murder-timeline-order-label { color: #b8c5d6; }
html[data-theme="dark"] .murder-timeline-order-label b { background: #4777c5; }
html[data-theme="dark"] .murder-timeline-answer-list li { border-bottom-color: rgba(140,165,205,.22); }
html[data-theme="dark"] .murder-timeline-answer-list time { color: #9ec1ff; }
html[data-theme="dark"] .murder-timeline-answer-list strong { color: #edf2fa; }
body[data-current-screen="murder-timeline"] .bottom-nav { display: none; }
body[data-current-screen="game-world"] .bottom-nav,
body[data-current-screen="omok"] .bottom-nav,
body[data-current-screen="othello"] .bottom-nav,
body[data-current-screen="gyul-hap"] .bottom-nav,
body[data-current-screen="kamisado"] .bottom-nav,
body[data-current-screen="janggi"] .bottom-nav,
body[data-current-screen="tichu"] .bottom-nav,
body[data-current-screen="lexio"] .bottom-nav,
body[data-current-screen="the-game"] .bottom-nav,
body[data-current-screen="the-mind"] .bottom-nav,
body[data-current-screen="decrypto"] .bottom-nav,
body[data-current-screen="just-one"] .bottom-nav,
body[data-current-screen="chat-rush"] .bottom-nav,
body[data-current-screen="sky-team"] .bottom-nav,
body[data-current-screen="dekalko"] .bottom-nav { display: none; }
body[data-current-screen="holdem"] .bottom-nav { display: none; }
body[data-current-screen="sutda"] .bottom-nav { display: none; }
body[data-current-screen="alcohol-calendar"] .bottom-nav { display: none; }
body[data-current-screen="dice-tray"] .page-shell {
  width: 100%; height: 100vh; height: 100dvh;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
body[data-current-screen="dice-tray"] #appView { height: 100%; display: block; }
#diceTrayScreen { height: 100%; grid-template-rows: auto minmax(180px, 1fr) auto auto; gap: 10px; }
#diceTrayScreen .subpage-heading { gap: clamp(7px, 2vw, 16px); }
#diceTrayTitle { font-size: clamp(1.125rem, 4vw, 1.5rem); }
#diceTrayCount { width: auto; min-height: 42px; margin-left: auto; padding: 7px; flex: 0 0 auto; }
#diceTrayScreen .dice-tray-surface {
  position: relative; display: block; width: 100%; height: 100%; min-height: 0;
  margin: 0; padding: clamp(9px, 2.6vw, 15px); border: 1px solid #65402a; border-radius: 26px;
  background: linear-gradient(145deg, #b68154, #734729 54%, #50301e);
  box-shadow: 0 12px 28px #35221135, inset 0 1px 2px #ffce9570, inset 0 -3px 4px #2c190c85;
  touch-action: manipulation;
}
#diceTrayScreen .dice-tray-surface[aria-disabled="true"] { cursor: default; }
#diceTrayScreen .dice-tray-surface:focus-visible { outline: 3px solid #6e9af5; outline-offset: 4px; }
.dice-tray-felt {
  --die-size: clamp(35px, 13vw, 88px);
  container-type: size;
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 16px; isolation: isolate;
  background: radial-gradient(ellipse at 50% 18%, #286e5c 0%, #135147 56%, #0e3b34 100%);
  box-shadow: inset 0 0 0 1px #182f25, inset 0 0 25px #071d16bb;
}
.dice-tray-felt::before {
  content: ""; position: absolute; inset: 9px; border: 1px solid #c2e9cc30; border-radius: 11px; pointer-events: none;
}
.dice-tray-shadow {
  position: absolute; left: 50%; top: 77.5%; width: var(--die-size); height: 16px; border-radius: 50%;
  background: #031d17; filter: blur(6px); transform: translate(-50%, -50%); pointer-events: none;
}
.dice-tray-die {
  --half-die: calc(var(--die-size) / 2);
  position: absolute; left: 50%; top: 45%; width: var(--die-size); height: var(--die-size);
  transform: translate(-50%, -50%); perspective: 510px; pointer-events: none;
}
@supports (width: 1cqh) {
  .dice-tray-shadow, .dice-tray-die { --die-size: clamp(30px, min(15cqw, 20cqh), 88px); }
}
.dice-tray-cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.dice-tray-face {
  position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); place-items: center;
  padding: 12%; border: 1px solid #c7af88; border-radius: 12%; backface-visibility: hidden;
  background: linear-gradient(145deg, #fffdf4, #e5d3ae);
  box-shadow: inset 0 2px 4px #fff9, inset 0 -3px 4px #a3834b40;
}
.dice-tray-face-1 { transform: translateZ(var(--half-die)); }
.dice-tray-face-2 { transform: rotateX(90deg) translateZ(var(--half-die)); }
.dice-tray-face-3 { transform: rotateY(90deg) translateZ(var(--half-die)); }
.dice-tray-face-4 { transform: rotateY(-90deg) translateZ(var(--half-die)); }
.dice-tray-face-5 { transform: rotateX(-90deg) translateZ(var(--half-die)); }
.dice-tray-face-6 { transform: rotateY(180deg) translateZ(var(--half-die)); }
.dice-tray-pip { width: 64%; aspect-ratio: 1; border-radius: 50%; background: #25382f; box-shadow: inset 0 1px 2px #051a14b0; }
.dice-tray-face-1 .dice-tray-pip { width: 76%; background: #9d4131; box-shadow: inset 0 1px 2px #621d12bb; }
.dice-tray-status { min-height: 1.8rem; margin: 0; color: var(--ink, #1b3557); text-align: center; font-weight: 800; overflow-wrap: anywhere; }
.dice-tray-surface[aria-disabled="true"] + .dice-tray-status { font-size: 1.125rem; }
html[data-theme="dark"] .dice-tray-status { color: #e8edf8; }
.dice-tray-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dice-tray-actions button { flex: 1 1 136px; width: auto; min-height: 48px; }
.balance-game-case { padding: 18px; border: 1px solid #dfe7f3; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(39,65,103,.06); }
.balance-game-case h3 { margin: 8px 0 10px; color: #13294b; font-size: 1.2rem; line-height: 1.45; }
.balance-game-case > p { margin: 0; color: #536981; line-height: 1.65; white-space: pre-line; }
.balance-game-choices { display: grid; gap: 12px; margin-top: 20px; }
.balance-game-choice { display: grid; gap: 8px; width: 100%; padding: 16px; border: 1px solid #d6e0ee; border-radius: 14px; background: #f7f9fc; color: #13294b; text-align: left; transition: border-color .16s ease, background .16s ease; }
.balance-game-choice:not(:disabled):hover, .balance-game-choice:not(:disabled):focus-visible { border-color: #315a9f; background: #edf4ff; outline: none; }
.balance-game-choice:disabled { cursor: default; }
.balance-game-choice strong { font-size: .95rem; line-height: 1.45; }
.balance-game-choice small { color: #728198; font-size: .78rem; font-weight: 800; }
.balance-game-choice-bar { height: 7px; overflow: hidden; border-radius: 99px; background: #e1e8f2; }
.balance-game-choice-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #315a9f; transition: width .35s ease; }
.balance-game-choice.is-selected { border-color: #315a9f; box-shadow: 0 0 0 2px rgba(49,90,159,.14); }
.omok-game-room { padding: 16px; border: 1px solid #dfe7f3; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(39,65,103,.06); }
.chat-rush-game-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.chat-rush-playground { position: relative; min-height: 280px; margin-top: 14px; overflow: hidden; border: 1px solid #dfe7f3; border-radius: 16px; background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.chat-rush-playground p { margin: 0; padding: 58px 16px; color: #64748b; text-align: center; }
.chat-rush-scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.chat-rush-score { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f1f5fb; color: #294a7b; font-weight: 700; }
.chat-rush-score strong { color: #1d4f98; font-size: 1.1rem; }
.chat-rush-falling-word { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); padding: 10px 18px; border: 2px solid #315fa5; border-radius: 999px; background: #fff; color: #173d79; font-size: 1.15rem; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 18px rgba(49,95,165,.18); will-change: top; }
.chat-rush-answer-form { position: sticky; bottom: 10px; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(39,65,103,.14); }
.chat-rush-answer-form input { min-width: 0; }
@media (max-width: 520px) { .chat-rush-scoreboard { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .chat-rush-game-actions { grid-template-columns: 1fr; } }
.sky-team-game-room { display: grid; gap: 14px; }
.sky-team-game-room:has(#skyTeamDicePanel:not(.hidden)) { padding-bottom: calc(var(--sky-team-dice-panel-height, 220px) + 16px); }
.sky-team-game-room.is-lost #skyTeamCockpit,
.sky-team-game-room.is-lost #skyTeamDicePanel,
.sky-team-game-room.is-lost #skyTeamTurnStatus { opacity: .48; filter: grayscale(.35); pointer-events: none; }
.sky-team-dice-panel.is-dimmed .sky-team-dice,
.sky-team-dice-panel.is-dimmed .sky-team-dice-actions { opacity: .6; filter: saturate(.65); }
.sky-team-dice-panel.is-reroll-waiting { background: #fff; }
.sky-team-dice-panel.is-reroll-waiting .sky-team-die:disabled:not(.is-used):not(.is-hidden-die),
.sky-team-dice-panel.is-reroll-waiting .sky-team-dice-actions > button:disabled { opacity: 1; cursor: not-allowed; }
.sky-team-my-role { font-size: .78em; }
.sky-team-my-role-pilot { color: #236fae; }
.sky-team-my-role-copilot { color: #c86b1d; }
.sky-team-game-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sky-team-scenario-control { display:grid; gap:7px; padding:12px; border:1px solid #bdd4e6; border-radius:14px; background:#f4f9fd; }
.sky-team-scenario-control label { color:#17364d; font-size:.82rem; font-weight:800; }
.sky-team-scenario-control select { width:100%; min-height:44px; padding:8px 12px; border:1px solid #b8d1df; border-radius:10px; background:#fff; color:#17364d; font-weight:700; }
.sky-team-scenario-control small { color:#567184; font-size:.75rem; line-height:1.45; }
.sky-team-start-error:empty { display:none; }
.sky-team-start-control { display:grid; gap:8px; min-width:0; }
.sky-team-start-control > button { width:100%; }
.sky-team-start-error { margin:0; grid-column:1 / -1; }
.sky-team-reality-result { display:grid; gap:6px; width:100%; margin-top:8px; }
.sky-team-reality-result small { line-height:1.5; }
.sky-team-module-fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.sky-team-module-fieldset legend { margin-bottom: 8px; color: #17364d; font-size: .82rem; font-weight: 800; }
.sky-team-module-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.sky-team-module-choices .sky-team-module-choice, #skyTeamModuleControls > .sky-team-module-choice { position: relative; display: flex; align-items: center; min-height: 44px; padding: 11px; border: 1px solid #b8d1df; border-radius: 10px; background: #fff; cursor: pointer; touch-action: manipulation; }
.sky-team-module-choice:has(input:checked) { outline: 2px solid #287fc2; outline-offset: -2px; }
.sky-team-module-choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.sky-team-module-choice > span { display: flex; align-items: center; gap: 9px; pointer-events: none; }
.sky-team-module-choice > span::before { content: ""; flex: 0 0 19px; width: 19px; height: 19px; box-sizing: border-box; border: 1px solid #a7b6c0; border-radius: 3px; background: #f5f7f9; }
.sky-team-module-choice input:checked + span::before { content: "✓"; display: grid; place-items: center; border-color: #287fc2; background: #287fc2; color: #fff; font-size: 15px; font-weight: 700; }
.sky-team-module-choice:has(input:focus-visible) { outline: 3px solid #287fc2; outline-offset: 2px; }
.sky-team-module-choice strong small { margin-left: 5px; color: #287fc2; }
.sky-team-module-choice:has(input:disabled) { cursor: default; }
.sky-team-module-choices .sky-team-module-choice.is-incompatible { opacity: .4; filter: grayscale(1); cursor: not-allowed; }
#skyTeamScorePreview { color: #15548c; }
#skyTeamSavedScorePreview { color: #15548c; }
#skyTeamSettingsModal { z-index: 1300; place-items: center; padding: 12px; box-sizing: border-box; }
#skyTeamSettingsModal .notice-content { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: min(100%, 560px); max-height: 90dvh; padding: 20px; box-sizing: border-box; border-radius: 20px; overflow: hidden; text-align: left; }
#skyTeamSettingsModal .modal-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; flex: 0 0 auto; }
#skyTeamSettingsModal .modal-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1.2rem; text-align: left; }
#skyTeamSettingsModal .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; max-width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 0; display: grid; place-items: center; line-height: 1; }
#skyTeamSettingsEditor { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#skyTeamModuleControls { display: grid; gap: 7px; }
#skyTeamSettingsModal .sky-team-module-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#skyTeamSettingsModal .sky-team-module-choice { min-width: 0; }
@media (max-width: 360px) { #skyTeamSettingsModal .sky-team-module-choices { grid-template-columns: minmax(0, 1fr); } }
#skyTeamSettingsModal .modal-actions { grid-template-columns: minmax(0, 1fr); margin: 0; flex: 0 0 auto; }
#skyTeamSettingsError { color: #b42318; text-align: left; }
#skyTeamSettingsError:empty, #skyTeamModuleSaveStatus:empty { display: none; }
html[data-theme="dark"] #skyTeamSavedScorePreview { color: #c6e3ff; }
html[data-theme="dark"] #skyTeamSettingsError { color: #ffb4ab; }
#skyTeamRealityHint strong { font-weight: 800; }
#skyTeamRealityHint br { display: block; content: ""; margin-top: 4px; }
.sky-team-result-score { font-size: 1.25rem; }
html[data-theme="dark"] .sky-team-module-fieldset legend, html[data-theme="dark"] #skyTeamScorePreview { color: #c6e3ff; }
html[data-theme="dark"] .sky-team-module-choices .sky-team-module-choice, html[data-theme="dark"] #skyTeamModuleControls > .sky-team-module-choice { color: #e7f2fb; background: #101a27; border-color: #40566e; }
.sky-team-altitude-tile.is-turbulence { border-color:#b8d1df; }
.sky-team-altitude-icons { display:flex; min-height:1.35rem; align-items:center; justify-content:center; gap:1px; line-height:1; }
.sky-team-altitude-icons .sky-team-weather-marker { color:#fff; font-size:clamp(9px,2.6vw,16px); font-style:normal; line-height:1; }
.sky-team-altitude-tile .sky-team-altitude-icons b { font-size:clamp(9px,2.5vw,18px); }
.sky-team-altitude-icons .sky-team-reroll-marker { display:block; width:clamp(15px,3.5vw,22px); height:clamp(15px,3.5vw,22px); object-fit:contain; filter:drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.sky-team-visibility-hint { margin:8px 0; color:#526983; font-size:.78rem; line-height:1.5; }
html[data-theme="dark"] .sky-team-dice-panel .sky-team-visibility-hint { color:#42566e; }
.sky-team-weather-confirm { width:100%; min-height:42px; margin:4px 0 10px; }
.sky-team-die.is-hidden-die { display:grid; place-items:center; border:2px dashed #91a9bc; background:#dce8ef; color:#526b80; opacity:.8; }
html[data-theme="dark"] .sky-team-scenario-control { border-color:#35485c; background:#172537; }
html[data-theme="dark"] .sky-team-scenario-control label, html[data-theme="dark"] .sky-team-scenario-control select { color:#e7f2fb; }
html[data-theme="dark"] .sky-team-scenario-control select { border-color:#40566e; background:#101a27; }
html[data-theme="dark"] #skyTeamRealityHint strong { color: #f4f8ff; }
html[data-theme="dark"] .sky-team-scenario-control small { color:#b5c9d9; }
.sky-team-cockpit { overflow: hidden; padding: 16px; border: 1px solid #bdd4e6; border-radius: 22px; background: linear-gradient(180deg, #e8f4fb 0%, #f8fbfe 42%, #dbe7ef 100%); box-shadow: inset 0 0 0 4px rgba(255,255,255,.55), 0 14px 32px rgba(22,57,83,.14); color: #17364d; }
.sky-team-passenger-count { position: absolute; z-index: 4; bottom: 5px; left: 50%; display: flex; align-items: center; justify-content: center; width: max-content; max-width: 48%; margin: 0; padding: 3px 7px; transform: translateX(-50%); border: 1px solid #c7d8e7; border-radius: 6px; background: #edf5fb; color: #47617a; font-size: .68rem; line-height: 1.2; white-space: nowrap; }
.sky-team-passenger-count strong { color: #17364d; font-size: inherit; white-space: nowrap; }
html[data-theme="dark"] .sky-team-passenger-count { border-color: #39516c; background: #1b2b3c; color: #b9cde0; }
html[data-theme="dark"] .sky-team-passenger-count strong { color: #edf5ff; }
.sky-team-cockpit > p { margin: 34px 0; color: #61798b; text-align: center; }
.sky-team-flight-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sky-team-flight-strip span { padding: 9px 8px; border-radius: 12px; background: #17364d; color: #d9efff; text-align: center; font-size: .78rem; }
.sky-team-flight-strip strong { display: block; color: #fff; font-size: 1rem; }
.sky-team-altitude-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; padding: 7px; border-radius: 14px; background: #8aa9bd; }
.sky-team-altitude-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 66px; padding: 6px 4px; border: 2px solid #b8d1df; border-radius: 9px; background: linear-gradient(100deg, #173b5e, #276ca0); color: #fff; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: opacity .35s, transform .35s, max-height .35s, padding .35s; }
.sky-team-altitude-tile span { font-size: .68rem; opacity: .8; }
.sky-team-altitude-tile strong { font-size: .9rem; letter-spacing: .02em; white-space: nowrap; }
.sky-team-altitude-tile b { font-size: 1.2rem; line-height: 1; }
.sky-team-altitude-tile.is-first-turn-pilot { background: linear-gradient(100deg, #1c5688, #2d7db7); }
.sky-team-altitude-tile.is-first-turn-copilot { background: linear-gradient(100deg, #a65419, #d47b2f); }
.sky-team-alarm-track { margin: -3px 0 10px; padding: 9px; border: 1px solid #d6a747; border-radius: 13px; background: linear-gradient(145deg,#fff8dc,#f2e4b9); color: #493719; }
.sky-team-alarm-track-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:7px; }
.sky-team-alarm-track-heading strong { font-size:.82rem; }
.sky-team-alarm-track-heading small { color:#765b2b; font-size:.66rem; text-align:right; }
.sky-team-alarm-cards { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; }
.sky-team-alarm-card { display:flex; min-width:0; min-height:76px; flex-direction:column; align-items:stretch; justify-content:center; gap:3px; padding:4px; border:1px solid #b5a16c; border-radius:8px; background:#fffdf5; color:#473914; text-align:center; }
.sky-team-alarm-card-faces { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; width:100%; max-width:119px; margin-inline:auto; }
.sky-team-alarm-face { position:relative; display:flex; box-sizing:border-box; min-width:0; width:100%; max-width:58px; aspect-ratio:1/1; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; padding:3px 1px; border:2px solid #c8c1aa; border-radius:8px; background:#f9f7ef; color:#374151; }
.sky-team-alarm-face > strong { max-width:100%; font-size:clamp(.44rem,1.75vw,.6rem); line-height:1.05; overflow-wrap:anywhere; }
.sky-team-alarm-face > em { font-size:clamp(.44rem,1.7vw,.58rem); font-style:normal; line-height:1.05; overflow-wrap:anywhere; }
.sky-team-alarm-face.is-blocked-pilot { border-color:#77c9f1; background:linear-gradient(145deg,#293e8a,#364eb7); color:#fff; }
.sky-team-alarm-face.is-blocked-copilot { border-color:#eeb163; background:linear-gradient(145deg,#813b1d,#d76822); color:#fff; }
.sky-team-alarm-face.is-blocked-both { border-color:#7189b4; background:linear-gradient(90deg,#293e8a 0 50%,#d76822 50% 100%); color:#fff; }
.sky-team-alarm-face.is-blocked > b { color:#fff; font-size:1.55rem; line-height:.8; text-shadow:0 1px 3px rgba(0,0,0,.6); }
.sky-team-alarm-face.is-pilot { border-color:#77c9f1; background:linear-gradient(145deg,#293e8a,#364eb7); color:#fff; }
.sky-team-alarm-face.is-copilot { border-color:#eeb163; background:linear-gradient(145deg,#813b1d,#d76822); color:#fff; }
.sky-team-alarm-face.is-both { border-color:#7189b4; background:linear-gradient(90deg,#293e8a 0 50%,#d76822 50% 100%); color:#fff; }
.sky-team-alarm-face.is-pilot > b,.sky-team-alarm-face.is-copilot > b,.sky-team-alarm-face.is-both > b { font-size:1.25rem; line-height:1; }
.sky-team-alarm-card > small { font-size:.55rem; }
button.sky-team-alarm-card { cursor:pointer; }
.sky-team-alarm-card.is-hidden-card { align-items:center; border-color:#536c7d; background:repeating-linear-gradient(135deg,#21455a,#21455a 5px,#2d5b73 5px,#2d5b73 10px); color:#fff; }
.sky-team-alarm-card.is-active { border:2px solid #d43c32; background:#fff0e8; box-shadow:0 0 0 2px #f6cfc1; }
.sky-team-alarm-card.is-solved { opacity:.45; border-color:#b5a16c; background:#fffdf5; color:#473914; }
.sky-team-alarm-card.is-last-placed { border-color:#dc2626; outline:4px solid #dc2626; outline-offset:0; }
.sky-team-approach-cell .sky-team-alarm-marker { position:absolute; z-index:1; top:50%; right:2px; left:auto; bottom:auto; display:grid; box-sizing:border-box; width:min(1.25rem, 55%); height:auto; min-height:0; aspect-ratio:1; place-items:center; overflow:hidden; transform:translateY(-50%); border-radius:5px; background:rgba(255,255,255,.8); font-size:min(.82rem, 3.5vw); font-style:normal; line-height:1; }
.sky-team-approach-cell .sky-team-alarm-marker.is-current { background:#ffedaa; box-shadow:0 0 0 2px #d89916; }
.sky-team-slot.is-unavailable:not(.is-essential-slot) { opacity:.42; filter:grayscale(.55); cursor:not-allowed; }
.sky-team-approach-cell.is-airport { background: #dcecf8; background-image: none; }
.sky-team-approach-cell.is-airport b { display: block; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); font-size: 1.35rem; }
.sky-team-altitude-tile.is-hidden { max-height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; transform: translateY(-6px); overflow: hidden; }
.sky-team-approach { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 8px; border-radius: 14px; background: #8eb8d2; }
.sky-team-approach-cell { position: relative; min-height: 62px; padding: 6px 2px; border-radius: 9px; background: rgba(255,255,255,.68); text-align: center; }
.sky-team-approach-cell span { display: block; color: #47677e; font-size: .67rem; }
.sky-team-approach-cell b { display: block; margin-top: 5px; color: #0f4c81; font-size: 1.55rem; transform: none; }
.sky-team-approach-cell { --sky-team-traffic-size: min(1.25rem, 40%); }
.sky-team-approach-cell i { position: absolute; right: 2px; bottom: 4px; width: var(--sky-team-traffic-size); height: auto; aspect-ratio: 1; background: url("./assets/game-icons/sky-team-airplane-white.svg?v=2") center / contain no-repeat; font-size: 0; font-style: normal; }
.sky-team-skin-preview { display:grid; place-items:center; gap:8px; width:100%; height:100%; min-height:130px; background:linear-gradient(145deg,#e8f3ff,#b8d7ff); }
.sky-team-skin-preview img { width:78%; max-width:190px; height:88px; object-fit:contain; }
.sky-team-approach-cell i:nth-of-type(2) { right: calc(2px + var(--sky-team-traffic-size)); }
.sky-team-approach-cell:has(i:nth-of-type(3)) { --sky-team-traffic-size: min(1.25rem, calc((100% - 4px) / 3)); }
.sky-team-approach-cell i:nth-of-type(3) { right: calc(2px + var(--sky-team-traffic-size) + var(--sky-team-traffic-size)); }
.sky-team-approach { padding-top: 14px; overflow: visible; }
.sky-team-turn-marker { position: absolute; z-index: 2; top: -12px; left: 50%; transform: translateX(-50%); display: block; width: calc(100% + 4px); max-width: 76px; height: 30px; padding: 0; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath d='M8 29 Q50 -7 92 29' fill='none' stroke='%23fff' stroke-width='18' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; filter: drop-shadow(0 2px 2px rgba(30,58,74,.25)); white-space: nowrap; font-style: normal; font-weight: 900; line-height: 1; pointer-events: none; }
.sky-team-approach-cell .sky-team-turn-marker > .sky-team-turn-symbol { position: absolute; display: block; width: 14px; padding: 0; text-align: center; transform: translate(-50%, -50%) rotate(var(--turn-symbol-angle, 0deg)); }
#skyTeamCockpit .sky-team-turn-marker > .sky-team-turn-symbol { font-size: .65rem; line-height: 1; }
.sky-team-turn-symbol:nth-child(1) { left: 10%; top: 72.5%; --turn-symbol-angle: -35deg; }
.sky-team-turn-symbol:nth-child(2) { left: 30%; top: 39%; --turn-symbol-angle: -18deg; }
.sky-team-turn-symbol:nth-child(3) { left: 50%; top: 27.5%; }
.sky-team-turn-symbol:nth-child(4) { left: 70%; top: 39%; --turn-symbol-angle: 18deg; }
.sky-team-turn-symbol:nth-child(5) { left: 90%; top: 72.5%; --turn-symbol-angle: 35deg; }
.sky-team-turn-symbol.is-hollow-arrow { color: #fff; text-shadow: -1px 0 #172b38, 1px 0 #172b38, 0 -1px #172b38, 0 1px #172b38; }
.sky-team-turn-symbol.is-filled-arrow { color: #172b38; }
.sky-team-turn-symbol.is-x { color: #d9343e; }
.sky-team-approach-cell.is-current { outline: 3px solid #f6b91a; background: #fff9d8; }
.sky-team-approach-cell.is-airport { background: #dcecf8; background-image: none; color: #173b5e; }
.sky-team-attitude { margin: 14px 0; padding: 12px; border-radius: 14px; background: #102f46; color: #fff; text-align: center; }
.sky-team-attitude > div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 9px; }
.sky-team-attitude span { padding: 8px 2px; border-radius: 8px; background: #35566d; color: #b9d0df; }
.sky-team-attitude span.is-active { background: #f6b91a; color: #17364d; font-size: 1.2rem; }
.sky-team-attitude span.is-danger { background: #8f2f35; color: #fff; }
.sky-team-instruments { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 8px; }
.sky-team-instruments section { padding: 12px; border: 1px solid #b9cedd; border-radius: 15px; background: rgba(255,255,255,.78); }
.sky-team-instruments section.is-turn-pilot { border: 4px solid #236fae; padding: 9px; }
.sky-team-instruments section.is-turn-copilot { border: 4px solid #c86b1d; padding: 9px; }
.sky-team-instruments.is-turn-pilot .sky-team-slot { border-color: #236fae; }
.sky-team-instruments.is-turn-copilot .sky-team-slot { border-color: #c86b1d; }
.sky-team-essential-panel { grid-column: 1 / -1; }
.sky-team-control-panel, .sky-team-focus-panel { grid-column: 1 / -1; }
.sky-team-control-panel { margin-top: 14px; }
.sky-team-essential-board { position: relative; display: grid; grid-template-columns: minmax(58px, .48fr) minmax(0, 1fr) minmax(58px, .48fr); grid-template-rows: minmax(78px, 1fr) minmax(78px, 1fr); gap: 8px; align-items: stretch; padding: 10px; border: 2px solid #7590a5; border-radius: 18px; background: radial-gradient(circle at center, #dfeaf0 0 35%, #b7cbd5 36% 38%, #d6e4ea 39% 100%); box-shadow: inset 0 0 0 5px rgba(255,255,255,.45), inset 0 0 22px rgba(38,76,99,.18); }
.sky-team-board-slot { width: clamp(56px, 18vw, 72px); min-width: 0; aspect-ratio: 1; align-self: center; justify-self: center; }
.sky-team-board-slot .sky-team-slot { width: 100%; height: 100%; min-height: 0; box-sizing: border-box; border-width: 2px; border-radius: 12px; }
.sky-team-slot.is-essential-slot { display: grid; place-items: center; padding: 7px; }
.sky-team-slot.is-essential-slot .sky-team-engine-icon, .sky-team-slot.is-essential-slot .sky-team-attitude-icon { position: static; width: 48px; height: 48px; transform: none; }
.sky-team-slot.is-essential-slot.is-copilot .sky-team-attitude-icon { transform: scaleX(-1); }
.sky-team-radio-icon { display: block; width: 48px; height: 48px; margin: auto; object-fit: contain; }
.sky-team-placed-die { display: grid !important; place-items: center; box-sizing: border-box; width: 46px; height: 46px; margin: 4px auto 0; border: 1px solid rgba(255,255,255,.85); border-radius: 5px; color: #fff; font-size: 1.35rem !important; font-weight: 900; line-height: 1; box-shadow: 0 1px 3px rgba(12,35,54,.3); }
.sky-team-placed-die.is-pilot-die { background: #287fc2; }
.sky-team-placed-die.is-copilot-die { background: #dc812f; }
.sky-team-placed-die.is-gunner-die { width: 36px; height: 36px; aspect-ratio: 1; margin: 0 auto; border-radius: 4px; background: #398157 !important; color: #fff; }
.sky-team-placed-die.is-last-placed { outline: 5px solid #dc2626; outline-offset: 1px; border-radius: 7px; }
.sky-team-placed-die.is-gunner-die.is-last-placed { border-radius: 4px; }
.sky-team-slot:not(.is-essential-slot) .sky-team-placed-die { width: 36px; height: 36px; margin: 4px auto 0; font-size: 1.1rem !important; }
.sky-team-board-slot.is-top-left { grid-column: 1; grid-row: 1; }
.sky-team-board-slot.is-top-right { grid-column: 3; grid-row: 1; }
.sky-team-board-slot.is-bottom-left { grid-column: 1; grid-row: 2; }
.sky-team-board-slot.is-bottom-right { grid-column: 3; grid-row: 2; }
.sky-team-attitude-dial, .sky-team-board-center { display: grid; place-items: center; align-content: center; gap: 3px; min-width: 0; border: 2px solid #718b9b; border-radius: 50%; background: linear-gradient(180deg, #4f98c8 0 50%, #b8874f 50% 100%); color: #fff; text-align: center; }
.sky-team-attitude-dial { position: relative; grid-column: 2; grid-row: 1 / span 2; width: min(100%, 250px); aspect-ratio: 1; align-self: center; justify-self: center; }
.sky-team-attitude-dial span { font-size: .65rem; font-weight: 800; }
.sky-team-attitude-dial strong { position: absolute; z-index: 2; top: 50%; left: 50%; display: block; width: 150px; height: 58px; transform: translate(-50%, -50%); color: transparent; font-size: 0; line-height: 1; }
.sky-team-attitude-dial strong > i { display: block; width: 100%; height: 100%; background: url("./assets/game-icons/white-airplane-piece-outline.png") center / 100% 100% no-repeat; font-style: normal; transform: rotate(var(--sky-team-attitude-angle, 0deg)); transform-origin: center center; }
#skyTeamCockpit[data-plane-skin="cobalt_plane"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-cobalt-3d.png?v=1"); background-size:100% 100%; background-repeat:no-repeat; }
#skyTeamCockpit[data-plane-skin="aurora_liner"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-aurora-3d.png?v=1"); background-size:100% 100%; background-repeat:no-repeat; }
#skyTeamCockpit[data-plane-skin="retro_prop"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-retro-3d.png?v=1"); background-size:100% 100%; background-repeat:no-repeat; }
#skyTeamCockpit[data-plane-skin="shadow_jet"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-shadow-3d.png?v=1"); background-size:100% 100%; background-repeat:no-repeat; }
#skyTeamCockpit[data-plane-skin="rescue_wing"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-rescue-3d.png?v=1"); background-size:100% 100%; background-repeat:no-repeat; }
#skyTeamCockpit[data-plane-skin="storm_fighter"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-storm-fighter-3d.png?v=1"); background-size:100% 100%; background-repeat:no-repeat; }
#skyTeamCockpit[data-plane-skin="flying_bear"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-flying-bear-3d.png?v=3"); background-size:100% 100%; background-repeat:no-repeat; }
#skyTeamCockpit[data-plane-skin="seagull"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-seagull-3d.png?v=1"); background-size:100% 100%; background-repeat:no-repeat; }
#skyTeamCockpit[data-plane-skin="pigeon"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-pigeon-3d.png?v=1"); background-size:100% 100%; background-repeat:no-repeat; }
#skyTeamCockpit[data-plane-skin="paper_plane"] .sky-team-attitude-dial strong > i { background-image:url("./assets/game-icons/sky-team-plane-paper-plane-3d.png?v=1"); background-size:100% 100%; background-repeat:no-repeat; }
.sky-team-attitude-dial small { color: #526d7d; font-size: .62rem; font-weight: 800; }
.sky-team-attitude-dial .sky-team-attitude-angle { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); color: #315a9f; font-size: .78rem; font-weight: 900; }
.sky-team-attitude-dial > span, .sky-team-attitude-dial > small { display: none; }
.sky-team-attitude-scale { position: absolute; z-index: 2; inset: 0; color: #d8eaff; pointer-events: none; }
.sky-team-attitude-heading-line { position: absolute; z-index: 1; top: 2%; left: 50%; width: 0; height: 48%; border-left: 2px dashed rgba(255,255,255,.92); filter: drop-shadow(0 0 2px rgba(19,48,70,.55)); transform-origin: 50% 100%; pointer-events: none; }
.sky-team-attitude-heading-line::before { content: ""; position: absolute; top: -1px; left: 50%; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid #fff; filter: drop-shadow(0 0 1px rgba(19,48,70,.8)); transform: translate(-50%, -100%); }
.sky-team-attitude-scale span { position: absolute; display: block; color: #fff; font-size: .72rem; font-weight: 900; line-height: 1; text-shadow: 0 1px 2px rgba(19,48,70,.7); }
.sky-team-attitude-scale .is-top { top: 6%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 1rem; text-shadow: none; }
.sky-team-attitude-scale .is-upper-left { top: 10%; left: 28%; transform: translate(-50%, -50%) rotate(-35deg); }
.sky-team-attitude-scale .is-left-upper { top: 28%; left: 10%; transform: translate(-50%, -50%) rotate(-55deg); }
.sky-team-attitude-scale .is-left { top: 50%; left: 5%; transform: translate(-50%, -50%); }
.sky-team-attitude-scale .is-upper-right { top: 10%; right: 28%; transform: translate(50%, -50%) rotate(35deg); }
.sky-team-attitude-scale .is-right-upper { top: 28%; right: 10%; transform: translate(50%, -50%) rotate(55deg); }
.sky-team-attitude-scale .is-right { top: 50%; right: 5%; transform: translate(50%, -50%); }
.sky-team-attitude-scale .is-left,
.sky-team-attitude-scale .is-right { color: #e5484d; font-size: 1.2rem; }
.sky-team-attitude-scale .is-left-upper,
.sky-team-attitude-scale .is-upper-left,
.sky-team-attitude-scale .is-upper-right,
.sky-team-attitude-scale .is-right-upper { color: #fff; font-size: .82rem; text-shadow: 0 1px 2px rgba(19,48,70,.85); }
html[data-theme="dark"] .sky-team-attitude-scale span { color: #fff; }
html[data-theme="dark"] .sky-team-attitude-heading-line { border-left-color: rgba(255,255,255,.92); filter: drop-shadow(0 0 2px rgba(19,48,70,.55)); }
html[data-theme="dark"] .sky-team-attitude-scale .is-left,
html[data-theme="dark"] .sky-team-attitude-scale .is-right { color: #ff777b; }
.sky-team-essential-panel > p { margin: 10px 0 0; }
.sky-team-status-gauges { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; margin-top: 10px; padding: 8px 10px; border: 1px solid #b9cedd; border-radius: 12px; background: #e8f1f6; }
.sky-team-speed-gauge, .sky-team-brake-gauge { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sky-team-speed-gauge > span, .sky-team-brake-gauge > span { flex: 0 0 52px; width: 52px; color: #315a9f; font-size: .78rem; font-weight: 900; text-align: center; white-space: nowrap; }
.sky-team-speed-wind { display:block; margin-top:3px; color:inherit; font-size:.75rem; line-height:1.2; font-weight:800; }
.sky-team-speed-track, .sky-team-brake-track { display: flex; align-items: stretch; flex: 1; min-width: 0; height: 35px; border-bottom: 3px solid #71899b; }
.sky-team-gauge-mark { position: relative; display: flex; align-items: flex-end; justify-content: center; flex: 1 1 0; min-width: 0; color: #536d80; }
.sky-team-gauge-mark b { position: relative; z-index: 1; bottom: 3px; padding: 0 2px; background: #e8f1f6; font-size: .75rem; font-weight: 900; line-height: 1; }
.sky-team-gauge-mark i { position: absolute; right: -2px; bottom: -3px; width: 4px; height: 18px; border-radius: 2px 2px 0 0; background: #8fa6b5; box-shadow: 0 0 0 1px rgba(255,255,255,.65); }
.sky-team-speed-track .sky-team-gauge-mark.is-safe { color: #207547; }
.sky-team-speed-track .sky-team-gauge-mark.is-safe i { background: #37a86a; }
.sky-team-speed-track .sky-team-gauge-mark.is-low i, .sky-team-speed-track .sky-team-gauge-mark.is-high i { right: auto; left: -3px; height: 25px; width: 6px; }
.sky-team-speed-track .sky-team-gauge-mark.is-low i { background: #2878d0; box-shadow: 0 0 0 1px rgba(24,83,150,.22); }
.sky-team-speed-track .sky-team-gauge-mark.is-high i { background: #e28a35; }
.sky-team-speed-track .sky-team-gauge-mark.is-high-end i { height: 25px; width: 6px; background: #e28a35; }
.sky-team-speed-track .sky-team-gauge-mark.is-low::after, .sky-team-speed-track .sky-team-gauge-mark.is-high::after { content: ""; position: absolute; right: -2px; bottom: -3px; width: 4px; height: 18px; border-radius: 2px 2px 0 0; background: #8fa6b5; box-shadow: 0 0 0 1px rgba(255,255,255,.65); }
.sky-team-speed-track .sky-team-gauge-mark.is-low::after { background: #37a86a; }
.sky-team-speed-track .sky-team-gauge-mark.is-current b { color: #fff; border-radius: 4px; background: #315a9f; box-shadow: 0 0 0 2px #fff; }
.sky-team-brake-track .sky-team-gauge-mark.is-used { color: #9b3737; }
.sky-team-brake-track .sky-team-gauge-mark.is-used i { background: #d65b55; }
.sky-team-brake-track .sky-team-gauge-mark.is-target b { color: #fff; border-radius: 4px; background: #b83232; }
.sky-team-brake-track .sky-team-gauge-mark.is-target i { right: auto; left: -3px; height: 25px; width: 6px; background: #b83232; }
.sky-team-brake-track .sky-team-gauge-mark.is-target-end i { height: 25px; width: 6px; background: #b83232; }
.sky-team-brake-track .sky-team-gauge-mark.is-start i { right: auto; left: -3px; height: 25px; width: 6px; background: #b83232; }
.sky-team-brake-track .sky-team-gauge-mark.is-target::after { content: ""; position: absolute; right: -2px; bottom: -3px; width: 4px; height: 18px; border-radius: 2px 2px 0 0; background: #8fa6b5; box-shadow: 0 0 0 1px rgba(255,255,255,.65); }
.sky-team-brake-track .sky-team-gauge-mark:nth-child(2):not(.is-target) > i,
.sky-team-brake-track .sky-team-gauge-mark:nth-child(2).is-target::after { display: none; }
.sky-team-brake-actions { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); gap: 3px; align-items: center; margin-top: 8px; }
.sky-team-brake-actions .sky-team-slot { min-height: 62px; }
.sky-team-slot-grid.sky-team-flap-actions { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); gap: 0; align-items: center; }
.sky-team-flap-actions .sky-team-slot { min-width: 0; padding-inline: 1px; }
.sky-team-flap-actions .sky-team-slot span { font-size: clamp(.54rem, 1.4vw, .63rem); white-space: nowrap; }
.sky-team-flap-actions .sky-team-progress-arrow { font-size: 1.05rem; font-weight: 900; }
.sky-team-progress-arrow { display: grid; place-items: center; min-width: 0; color: #657f93; font-size: 1.25rem; font-weight: 900; line-height: 1; pointer-events: none; }
.sky-team-brake-actions .sky-team-progress-arrow { color: #236fae; }
.sky-team-flap-actions .sky-team-progress-arrow { color: #c86b1d; }
html[data-theme="dark"] .sky-team-brake-actions .sky-team-progress-arrow { color: #78b8f0; }
html[data-theme="dark"] .sky-team-flap-actions .sky-team-progress-arrow { color: #f2a65f; }
.sky-team-focus-panel .sky-team-slot { background: linear-gradient(90deg, #e5f2ff 0 50%, #fff0df 50% 100%); color: #23485f; }
html[data-theme="dark"] .sky-team-status-gauges { border-color: #466783; background: #1d3550; }
html[data-theme="dark"] .sky-team-speed-gauge > span, html[data-theme="dark"] .sky-team-brake-gauge > span { color: #9fc4ff; }
html[data-theme="dark"] .sky-team-speed-track, html[data-theme="dark"] .sky-team-brake-track { border-color: #819bb0; }
html[data-theme="dark"] .sky-team-gauge-mark { color: #c6d9ee; }
html[data-theme="dark"] .sky-team-gauge-mark b { background: #1d3550; }
html[data-theme="dark"] .sky-team-gauge-mark i { background: #728da3; box-shadow: 0 0 0 1px rgba(13,30,45,.8); }
html[data-theme="dark"] .sky-team-speed-track .sky-team-gauge-mark.is-safe { color: #83dda1; }
html[data-theme="dark"] .sky-team-speed-track .sky-team-gauge-mark.is-safe i { background: #43ba74; }
html[data-theme="dark"] .sky-team-speed-track .sky-team-gauge-mark.is-low i { background: #64aaff; }
html[data-theme="dark"] .sky-team-speed-track .sky-team-gauge-mark.is-low::after, html[data-theme="dark"] .sky-team-speed-track .sky-team-gauge-mark.is-high::after { background: #728da3; box-shadow: 0 0 0 1px rgba(13,30,45,.8); }
html[data-theme="dark"] .sky-team-speed-track .sky-team-gauge-mark.is-low::after { background: #43ba74; }
html[data-theme="dark"] .sky-team-brake-track .sky-team-gauge-mark.is-target::after { background: #728da3; box-shadow: 0 0 0 1px rgba(13,30,45,.8); }
html[data-theme="dark"] .sky-team-speed-track .sky-team-gauge-mark.is-current b { background: #3978b4; }
html[data-theme="dark"] .sky-team-focus-panel .sky-team-slot { background: linear-gradient(90deg, #e5f2ff 0 50%, #fff0df 50% 100%); color: #23485f; }
html[data-theme="dark"] .sky-team-essential-board { border-color: #58738c; background: radial-gradient(circle at center, #344d63 0 22%, #526f85 23% 24%, #22384d 25% 100%); box-shadow: inset 0 0 0 5px rgba(255,255,255,.06), inset 0 0 22px rgba(0,0,0,.32); }
html[data-theme="dark"] .sky-team-attitude-dial { border-color: #7698b3; background: linear-gradient(180deg, #397ca9 0 50%, #8f673c 50% 100%); color: #fff; }
html[data-theme="dark"] .sky-team-attitude-dial strong { color: #fff; filter: none; }
html[data-theme="dark"] .sky-team-attitude-dial small { color: #b9cee2; }
html[data-theme="dark"] .sky-team-attitude-dial .sky-team-attitude-angle { color: #9fc4ff; }
@keyframes sky-team-turn-pulse-pilot { 0%, 100% { box-shadow: 0 0 0 0 rgba(35,111,174,.16); } 50% { box-shadow: 0 0 0 6px rgba(35,111,174,.28); } }
@keyframes sky-team-turn-pulse-copilot { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,107,29,.16); } 50% { box-shadow: 0 0 0 6px rgba(200,107,29,.28); } }
.sky-team-instruments section.is-turn-pilot { animation: sky-team-turn-pulse-pilot 3.2s ease-in-out infinite; }
.sky-team-instruments section.is-turn-copilot { animation: sky-team-turn-pulse-copilot 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sky-team-instruments section.is-turn-pilot, .sky-team-instruments section.is-turn-copilot { animation: none; } }
.sky-team-instruments h3 { margin: 0 0 9px; color: #17364d; font-size: .93rem; }
html[data-theme="dark"] .sky-team-instruments h3,
html[data-theme="dark"] .sky-team-instruments section.is-turn-pilot h3,
html[data-theme="dark"] .sky-team-instruments section.is-turn-copilot h3 { color: #111827; }
.sky-team-instruments p { margin: 10px 0 0; color: #405f76; font-size: .95rem; font-weight: 700; line-height: 1.35; }
.sky-team-slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sky-team-slot-grid.is-paired { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sky-team-slot-grid.is-control-paired { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sky-team-slot-grid.is-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sky-team-slot-grid.is-control-paired > :nth-child(1) { grid-column: 1; grid-row: 1; }
.sky-team-slot-grid.is-control-paired > :nth-child(3) { grid-column: 2; grid-row: 1; }
.sky-team-slot-grid.is-control-paired > :nth-child(5) { grid-column: 3; grid-row: 1; }
.sky-team-slot-grid.is-control-paired > :nth-child(2) { grid-column: 1; grid-row: 2; }
.sky-team-slot-grid.is-control-paired > :nth-child(4) { grid-column: 2; grid-row: 2; }
.sky-team-slot-grid.is-control-paired > :nth-child(6) { grid-column: 3; grid-row: 2; }
.sky-team-slot-grid.is-pilot-triple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sky-team-slot-grid.is-pilot-triple > [data-sky-team-slot="gear_3"] { grid-column: 1; grid-row: 2; }
.sky-team-slot { position: relative; min-height: 62px; padding: 7px 4px; border: 2px solid #8ba5b6; border-radius: 11px; background: #eef4f8; color: #29485e; }
.sky-team-slot span { display: block; font-size: .65rem; line-height: 1.15; }
.sky-team-slot strong { display: block; margin-top: 5px; font-size: 1.1rem; }
.sky-team-engine-icon { position: absolute; z-index: 1; top: 50%; left: -34px; width: 30px; height: 30px; object-fit: contain; transform: translateY(-50%); pointer-events: none; }
.sky-team-slot:has(.sky-team-engine-icon) { width: 100%; min-height: 72px; justify-self: stretch; padding-right: 2px; }
.sky-team-slot:has(.sky-team-engine-icon) { min-height: 84px; padding-left: 82px; }
.sky-team-slot:has(.sky-team-engine-icon) .sky-team-engine-icon { left: 8px; width: 68px; height: 68px; }
.sky-team-slot.is-copilot .sky-team-engine-icon { filter: sepia(1) saturate(7) hue-rotate(335deg) brightness(1.08); }
.sky-team-slot:has(.sky-team-attitude-icon) { min-height: 84px; padding-left: 82px; }
.sky-team-attitude-icon { position: absolute; left: 8px; top: 50%; width: 68px; height: 68px; object-fit: contain; transform: translateY(-50%); pointer-events: none; }
.sky-team-slot.is-copilot .sky-team-attitude-icon { filter: sepia(1) saturate(7) hue-rotate(335deg) brightness(1.08); transform: translateY(-50%) scaleX(-1); }
.sky-team-slot.is-essential-slot:has(.sky-team-engine-icon), .sky-team-slot.is-essential-slot:has(.sky-team-attitude-icon) { min-height: 0; padding: 7px; }
.sky-team-slot.is-essential-slot .sky-team-engine-icon, .sky-team-slot.is-essential-slot .sky-team-attitude-icon { position: static; left: auto; width: 48px; height: 48px; transform: none; }
.sky-team-slot.is-essential-slot.is-copilot .sky-team-attitude-icon { transform: scaleX(-1); }
.sky-team-slot.is-pilot { border-color: #3981c4; background: #e5f2ff; color: #15548c; }
.sky-team-slot.is-copilot { border-color: #e58a2e; background: #fff0df; color: #a65313; }
.sky-team-role { display: inline-block; margin-left: 4px; font-size: .82em; font-weight: 800; }
.sky-team-role-select { width: 96px; max-width: 96px; margin-left: 5px; padding: 3px 16px 3px 4px; border: 1px solid #a8bedc; border-radius: 7px; background: #fff; color: #315a9f; font: inherit; font-size: .74em; font-weight: 800; }
.sky-team-role-select:disabled { opacity: 1; cursor: default; }
.sky-team-meeting-panel { display:grid; gap:12px; padding:18px; margin:12px 0; border:1px solid #b7cdec; border-radius:16px; background:#edf4ff; color:#254d87; }
.sky-team-meeting-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.sky-team-meeting-heading time { font-variant-numeric:tabular-nums; font-weight:800; }
.sky-team-meeting-panel p { margin:0; font-size:.88rem; line-height:1.5; }
.sky-team-meeting-players { display:flex; flex-wrap:wrap; gap:6px; }
.sky-team-meeting-players span { padding:5px 9px; border-radius:10px; background:#fff; font-size:.8rem; }
.sky-team-meeting-players .is-complete { background:#d5efdf; color:#21603b; }
.sky-team-meeting-panel > button { width:100%; }
html[data-theme="dark"] .sky-team-meeting-panel { border-color:#425d80; background:#1e2d43; color:#d7e8ff; }
html[data-theme="dark"] .sky-team-meeting-players span { background:#34445d; }
html[data-theme="dark"] .sky-team-meeting-players .is-complete { background:#274d40; color:#bcebd0; }
#skyTeamPlayers .omok-player > b { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#skyTeamPlayers .omok-player > b:has([data-sky-team-three-role-seat]) { flex-wrap:wrap; }
#skyTeamPlayers [data-sky-team-three-role-seat] { width:100%; max-width:100%; min-width:0; margin-left:0; }
#skyTeamPlayers .sky-team-role { margin-left: auto; text-align: right; }
.sky-team-player-record { display: grid; gap: 2px; color: #60748f; font-size: .68rem; font-weight: 700; }
.sky-team-role-pilot, .sky-team-turn-status-pilot { color: #236fae; }
.sky-team-role-copilot, .sky-team-turn-status-copilot { color: #c86b1d; }
.sky-team-role-unknown, .sky-team-turn-status-unknown { color: inherit; }
.sky-team-round-transition { margin: 0; padding: 28px 16px; color: #315a9f; font-weight: 800; text-align: center; }
html[data-theme="dark"] .sky-team-round-transition { color: #9fc4ff; }
.sky-team-game-room > #skyTeamTurnStatus { margin: 0; min-height: 20px; padding: 10px 12px; border-radius: 12px; background: transparent; color: #315a9f; line-height: 1.45; }
html[data-theme="dark"] .sky-team-game-room > #skyTeamTurnStatus { background: transparent; color: #d7e8ff; }
html[data-theme="dark"] .sky-team-game-room > #skyTeamTurnStatus.sky-team-turn-status-pilot { color: #9fc4ff; }
html[data-theme="dark"] .sky-team-game-room > #skyTeamTurnStatus.sky-team-turn-status-copilot { color: #ffc27d; }
html[data-theme="dark"] .sky-team-game-room > #skyTeamTurnStatus.sky-team-turn-status-unknown { color: #d7e8ff; }
.sky-team-slot.is-shared { border-color: #6d7c88; }
.sky-team-slot.is-filled { opacity: .74; }
.sky-team-slot.is-unavailable, .sky-team-slot.is-role-blocked { opacity: .38; filter: grayscale(1); cursor: not-allowed; }
.sky-team-slot.is-role-blocked:not(.is-essential-slot) { opacity: .42; filter: grayscale(.55); }
.sky-team-slot.is-unavailable::after, .sky-team-slot .sky-team-slot-role-lock { position: absolute; inset: auto 2px 2px; font-size: .55rem; font-weight: 800; color: #7b3131; pointer-events: none; }
.sky-team-slot.is-unavailable::after { content: "사용 불가"; }
.sky-team-slot.is-complete { box-shadow: inset 0 0 0 3px #44b86a; }
.sky-team-equipment-toggle { position: absolute; z-index: 4; top: auto; right: auto; bottom: -26px; left: 50%; display: block; width: min(78%, 46px); height: 23px; margin: 0; overflow: hidden; transform: translateX(-50%); border: 1px solid #080c0e; border-radius: 6px; background: linear-gradient(90deg, #30383d 0 50%, #111719 50% 100%); box-shadow: inset 0 1px 2px rgba(0,0,0,.65); }
.sky-team-equipment-toggle i { position: absolute; top: 1px; left: calc(100% - 20px); width: 18px; height: 19px; border: 1px solid #9aa6a9; border-radius: 4px; background-color: #f2f5f4; background-image: radial-gradient(circle at 27% 28%, #34434a 1px, transparent 1.5px), radial-gradient(circle at 72% 72%, #34434a 1px, transparent 1.5px); box-shadow: 0 1px 2px rgba(0,0,0,.45); transition: left .16s ease; }
#skyTeamCockpit .sky-team-slot[data-sky-team-slot^="gear_"].is-complete,
#skyTeamCockpit .sky-team-slot[data-sky-team-slot^="flap_"].is-complete,
#skyTeamCockpit .sky-team-brake-actions .sky-team-slot.is-complete { box-shadow: none; }
#skyTeamCockpit .sky-team-slot[data-sky-team-slot^="gear_"], #skyTeamCockpit .sky-team-slot[data-sky-team-slot^="flap_"], #skyTeamCockpit .sky-team-brake-actions .sky-team-slot { margin-bottom: 28px; }
#skyTeamCockpit .sky-team-copilot-panel .sky-team-slot[data-sky-team-slot^="flap_"] { min-height: clamp(43px, 10vw, 50px); }
#skyTeamCockpit .sky-team-slot.is-complete .sky-team-equipment-toggle { background: #38b85f; }
#skyTeamCockpit .sky-team-slot.is-complete .sky-team-equipment-toggle i { left: 1px; }
#skyTeamCockpit .sky-team-brake-track .sky-team-gauge-mark.is-target b { color: #b83232; border-radius: 0; background: transparent; }
.sky-team-dice-panel { position: fixed; z-index: 20; right: max(12px, calc((100vw - 656px) / 2)); bottom: 0; left: max(12px, calc((100vw - 656px) / 2)); padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border: 1px solid #b9cedd; border-bottom: 0; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(23,54,77,.2); }
.sky-team-dice-heading { display: flex; align-items:center; justify-content: space-between; gap: 8px; margin-bottom: 9px; color: #17364d; }
.sky-team-dice-heading #skyTeamWindButton { flex:0 0 auto; width:auto; min-height:36px; margin:0; padding:7px 12px; font-size:.85rem; white-space:nowrap; }
.sky-team-dice-heading span { color: #61798b; font-size: .78rem; }
.sky-team-dice-heading strong .sky-team-my-role-pilot { color: #236fae; }
.sky-team-dice-heading strong .sky-team-my-role-copilot { color: #c86b1d; }
.sky-team-dice { display: flex; gap: 9px; }
.sky-team-dice-actions { display: grid; gap: 10px; margin-top: 10px; }
.sky-team-dice-actions > button { width: 100%; min-height: 38px; }
.sky-team-die { width: 52px; height: 52px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #15548c; font-size: 1.45rem; font-weight: 900; overflow: visible; }
.sky-team-die img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sky-team-die-face { display: grid; place-items: center; width: 100%; height: 100%; box-sizing: border-box; border: 2px solid rgba(255,255,255,.9); border-radius: 9px; color: #fff; font-size: 1.45rem; font-weight: 900; line-height: 1; box-shadow: 0 1px 3px rgba(13,37,57,.24); }
.sky-team-die-face.is-pilot-die { background: #287fc2; }
.sky-team-die-face.is-copilot-die { background: #dc812f; }
.sky-team-die.is-selected { outline: 4px solid #f6b91a; transform: translateY(-4px); }
.sky-team-die.is-used { opacity: .28; }
.sky-team-coffee-control { margin-top: 10px; }
.sky-team-coffee-control label { display: flex; align-items: center; justify-content: flex-start; gap: 12px; color: #47677e; font-size: .8rem; font-weight: 700; }
.sky-team-coffee-control select { width: 150px; }
@media (max-width: 620px) {
  .sky-team-dice-panel { box-sizing: border-box; max-height: min(45dvh, 320px); overflow-y: auto; overscroll-behavior: contain; }
  .sky-team-dice { flex-wrap: wrap; }
  .sky-team-dice-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  .sky-team-dice-actions > button { min-width: 0; }
  .sky-team-coffee-control { display: flex; align-items: center; min-width: 0; margin-top: 0; }
  .sky-team-coffee-control label { width: 100%; gap: 6px; }
  .sky-team-coffee-control select { width: auto; min-width: 0; flex: 1; }
}
.sky-team-result { display: grid; gap: 4px; margin-top: 14px; padding: 16px; border-radius: 14px; text-align: center; }
.sky-team-result.is-win { background: #dcfce7; color: #176238; }
.sky-team-result.is-loss { background: #fee2e2; color: #991b1b; }
@media (max-width: 620px) { .sky-team-game-actions, .sky-team-instruments { grid-template-columns: 1fr; } .sky-team-flight-strip { grid-template-columns: repeat(2, 1fr); } .sky-team-approach-cell { min-height: 54px; } .sky-team-approach-cell span { font-size: .56rem; } .sky-team-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sky-team-alarm-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } .sky-team-alarm-track-heading { align-items:flex-start; flex-direction:column; gap:2px; } .sky-team-alarm-track-heading small { text-align:left; } }
/* Sky Team: one continuous flight board, with the original interactive slots. */
#skyTeamCockpit { padding: 12px; border: 2px solid #8ba5b7; border-radius: 22px; background: linear-gradient(145deg, #dce8ef, #a9bfcd 48%, #d9e5eb); box-shadow: inset 0 0 0 3px #f6fbfd, inset 0 0 0 7px #7892a3, 0 14px 30px rgba(14, 41, 61, .2); }
#skyTeamCockpit .sky-team-flight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 9px; }
#skyTeamCockpit .sky-team-flight-strip span { padding: 6px 8px; border: 1px solid #7795a9; border-radius: 8px; background: linear-gradient(#203d56, #112a40); box-shadow: inset 0 1px rgba(255,255,255,.2); }
#skyTeamCockpit .sky-team-flight-strip strong { display: inline; margin-left: 5px; }
#skyTeamCockpit .sky-team-board-tracks { display: grid; gap: 7px; padding: 10px; border: 2px solid #56788e; border-radius: 15px; background: linear-gradient(160deg, #244961, #102e46); box-shadow: inset 0 1px 5px rgba(0,0,0,.4), 0 2px 0 #f0f5f8; }
#skyTeamCockpit .sky-team-track-section { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 7px; min-width: 0; }
#skyTeamCockpit .sky-team-track-section h3 { margin: 0; color: #e7f3f9; font-size: .73rem; letter-spacing: .03em; text-align: center; }
#skyTeamCockpit .sky-team-altitude-track { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 4px; border: 1px solid #6a93aa; border-radius: 8px; background: #08243b; }
#skyTeamCockpit .sky-team-altitude-tile { min-height: 48px; padding: 3px 1px; border-width: 1px; border-color: #5d98bb; border-radius: 5px; background: linear-gradient(#276590, #123c5e); }
#skyTeamCockpit .sky-team-altitude-tile.is-first-turn-pilot { background: linear-gradient(100deg, #1c5688, #2d7db7); }
#skyTeamCockpit .sky-team-altitude-tile.is-first-turn-copilot { background: linear-gradient(100deg, #a65419, #d47b2f); }
#skyTeamCockpit .sky-team-altitude-tile span { font-size: .55rem; }
#skyTeamCockpit .sky-team-altitude-tile strong { font-size: clamp(.55rem, 1.55vw, .75rem); }
#skyTeamCockpit .sky-team-altitude-tile.is-hidden { min-height: 0; padding: 0; border-width: 0; }
#skyTeamCockpit .sky-team-approach { gap: 3px; padding: 14px 4px 4px; border: 1px solid #6a93aa; border-radius: 8px; background: #08243b; }
#skyTeamCockpit .sky-team-approach-cell { min-height: 51px; border: 1px solid #8fb7cc; border-radius: 5px; background: #d9eaf1; }
#skyTeamCockpit .sky-team-approach-cell.is-current { background: #fff4be; }
#skyTeamCockpit .is-progress-track .sky-team-track-aircraft { display: grid; place-items: center; min-width: 0; align-self: stretch; color: #fff; font-size: clamp(1.05rem, 3vw, 1.8rem); line-height: 1; text-shadow: 0 1px 3px #071825; }
#skyTeamCockpit .is-progress-track .sky-team-altitude-icons:empty { display: none; }
/* Physical-board orientation: approach left, altitude right, runway at the top. */
#skyTeamCockpit .sky-team-board-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#skyTeamCockpit .sky-team-board-tracks .sky-team-track-section { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; gap: 6px; }
#skyTeamCockpit .sky-team-board-tracks .sky-team-track-section h3 { text-align: center; }
#skyTeamCockpit .sky-team-board-tracks .is-progress-track { height: clamp(350px, 80vw, 430px); box-sizing: border-box; padding: 8px 5px; margin: 0; }
#skyTeamCockpit .sky-team-board-tracks .sky-team-altitude-tile,
#skyTeamCockpit .sky-team-board-tracks .sky-team-approach-cell { min-height: 0; box-sizing: border-box; }
#skyTeamCockpit .sky-team-board-tracks .sky-team-altitude-tile > span { font-size: clamp(.65rem, 2vw, .8rem); }
#skyTeamCockpit .sky-team-board-tracks .sky-team-approach { gap: 9px; }
#skyTeamCockpit .sky-team-board-tracks .sky-team-approach-cell > span { font-size: clamp(.6rem, 1.8vw, .75rem); text-align: left; padding-left: 3px; }
#skyTeamCockpit .sky-team-board-tracks .sky-team-turn-marker { width: min(70px, 55%); top: -7px; }
#skyTeamCockpit .sky-team-approach-cell .sky-team-alarm-marker { top:auto; right:auto; bottom:4px; left:4px; width:min(1.25rem,calc((100% - 12px) / 4)); transform:none; }
#skyTeamCockpit .sky-team-approach-cell:has(.sky-team-alarm-marker) { --sky-team-traffic-size:min(1.25rem,calc((100% - 12px) / 4)); }
#skyTeamCockpit .sky-team-approach-cell > i { top:auto; bottom:4px; left:auto; }
#skyTeamCockpit .sky-team-board-tracks .sky-team-track-aircraft { justify-self: center; align-self: center; transform: rotate(-90deg); }
#skyTeamCockpit .sky-team-board-tracks.has-fuel-management { grid-template-columns: minmax(42px, .28fr) repeat(2, minmax(0, 1fr)); gap: 10px; }
#skyTeamCockpit .sky-team-fuel-body { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; height: clamp(350px, 80vw, 430px); }
#skyTeamCockpit .sky-team-fuel-control { display: grid; place-items: center; }
#skyTeamCockpit .sky-team-fuel-control .sky-team-slot { display: grid; place-items: center; width: min(100%, 46px); height: auto; min-height: 0; aspect-ratio: 1; padding: 3px; border-radius: 7px; background: linear-gradient(90deg, #304b99 50%, #b8682f 50%); border-color: #96bbc9; }
#skyTeamCockpit .sky-team-fuel-icon { color: #fff; font-size: 1.25rem; }
#skyTeamCockpit .sky-team-fuel-control .sky-team-placed-die { width: 100%; height: auto; min-width: 0; min-height: 0; aspect-ratio: 1; font-size: 1rem; }
#skyTeamCockpit .sky-team-fuel-gauge { display: grid; grid-template-rows: repeat(22, minmax(0, 1fr)); padding: 2px 4px; border: 1px solid #6a93aa; border-radius: 5px; background: #08243b; }
#skyTeamCockpit .sky-team-fuel-tick { position: relative; display: grid; place-items: center; border-bottom: 1px solid rgba(0,0,0,.2); color: #15292d; font-size: .6rem; font-weight: 800; line-height: 1; }
#skyTeamCockpit .sky-team-fuel-tick.is-high { background: #abd260; }
#skyTeamCockpit .sky-team-fuel-tick.is-medium { background: #f0c749; }
#skyTeamCockpit .sky-team-fuel-tick.is-low { background: #e58536; }
#skyTeamCockpit .sky-team-fuel-tick.is-empty { background: #142326; color: #ff5b51; }
#skyTeamCockpit .sky-team-fuel-tick.is-current { z-index: 1; outline: 2px solid #fff; box-shadow: 0 0 0 3px #314d60; }
#skyTeamCockpit .sky-team-fuel-tick.is-current::before { position: absolute; right: 100%; margin-right: 3px; content: "▶"; color: #fff; font-size: .55rem; }
#skyTeamCockpit .sky-team-alarm-track { margin: 9px 0; border-color: #9a6e27; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
#skyTeamCockpit .sky-team-instruments { grid-template-columns: minmax(0, .85fr) minmax(0, 2.2fr) minmax(0, .85fr); grid-template-areas: "control control control" "pilot essential copilot" "focus focus focus"; gap: 6px; padding: 7px; border: 3px solid #587a90; border-radius: 17px; background: linear-gradient(135deg, #365871, #15334c 65%, #24465e); box-shadow: inset 0 0 0 2px #a7c2cf, inset 0 0 15px rgba(0,0,0,.35); }
#skyTeamCockpit .sky-team-instruments > section { min-width: 0; margin: 0; padding: 8px; border: 1px solid #859eae; border-radius: 9px; background: linear-gradient(145deg, #dbe8ee, #b6cad5); box-shadow: inset 0 1px rgba(255,255,255,.8); animation: none; }
#skyTeamCockpit .sky-team-instruments > section.is-turn-pilot { border-color: #2679c1; box-shadow: inset 0 0 0 2px rgba(35,111,174,.45), 0 0 0 1px #2679c1; }
#skyTeamCockpit .sky-team-instruments > section.is-turn-copilot { border-color: #cf741f; box-shadow: inset 0 0 0 2px rgba(200,107,29,.45), 0 0 0 1px #cf741f; }
#skyTeamCockpit .sky-team-instruments h3 { margin: 0 0 6px; color: #15364e; font-size: .82rem; }
#skyTeamCockpit .sky-team-instruments h4 { margin: 7px 0 5px; color: #335a73; font-size: .67rem; }
#skyTeamCockpit .sky-team-control-panel { grid-area: control; }
#skyTeamCockpit .sky-team-essential-panel { grid-area: essential; }
#skyTeamCockpit .sky-team-pilot-panel { grid-area: pilot; }
#skyTeamCockpit .sky-team-copilot-panel { grid-area: copilot; }
#skyTeamCockpit .sky-team-focus-panel { grid-area: focus; }
#skyTeamCockpit .sky-team-essential-board { grid-template-columns: minmax(47px, .42fr) minmax(0, 1fr) minmax(47px, .42fr); grid-template-rows: repeat(2, minmax(64px, 1fr)); gap: 5px; padding: 6px; border-color: #68879c; border-radius: 12px; background: radial-gradient(circle, #d6e5eb 0 34%, #8eacbb 35% 37%, #d1e2e9 38%); }
#skyTeamCockpit .sky-team-board-slot { width: clamp(43px, 8vw, 62px); }
#skyTeamCockpit .sky-team-board-slot .sky-team-slot { padding: 3px; }
#skyTeamCockpit .sky-team-slot.is-essential-slot .sky-team-engine-icon, #skyTeamCockpit .sky-team-slot.is-essential-slot .sky-team-attitude-icon { width: min(100%, 46px); height: auto; aspect-ratio: 1; }
#skyTeamCockpit .sky-team-slot.is-essential-slot .sky-team-placed-die { width: min(100%, 46px); height: auto; aspect-ratio: 1; }
#skyTeamCockpit .sky-team-attitude-dial strong { width: min(100%, 150px); height: auto; aspect-ratio: 150 / 58; }
#skyTeamCockpit .sky-team-status-gauges { gap: 6px; padding: 6px 5px; border-color: #8eabbc; background: #e1edf2; }
#skyTeamCockpit .sky-team-speed-gauge, #skyTeamCockpit .sky-team-brake-gauge { gap: 2px; }
#skyTeamCockpit .sky-team-speed-gauge > span, #skyTeamCockpit .sky-team-brake-gauge > span { flex-basis: 39px; width: 39px; font-size: .65rem; }
#skyTeamCockpit .sky-team-gauge-mark b { padding-inline: 0; background: #e1edf2; font-size: .63rem; }
#skyTeamCockpit .sky-team-pilot-controls { display: grid; gap: 8px; }
#skyTeamCockpit .sky-team-pilot-control-group + .sky-team-pilot-control-group { padding-top: 7px; border-top: 1px solid #91aab9; }
#skyTeamCockpit .sky-team-slot-grid.is-pilot-triple { gap: 4px; }
#skyTeamCockpit .sky-team-brake-actions, #skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions { grid-template-columns: minmax(0, 1fr); gap: 3px; margin: 0; }
#skyTeamCockpit .sky-team-brake-actions .sky-team-slot, #skyTeamCockpit .sky-team-flap-actions .sky-team-slot { min-height: 50px; }
#skyTeamCockpit .sky-team-brake-actions .sky-team-progress-arrow, #skyTeamCockpit .sky-team-flap-actions .sky-team-progress-arrow { height: 12px; transform: rotate(90deg); }
#skyTeamCockpit .sky-team-slot { min-width: 0; }
#skyTeamCockpit .sky-team-flap-actions .sky-team-slot span { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  #skyTeamCockpit { padding: 9px; }
  #skyTeamCockpit .sky-team-instruments { grid-template-columns: minmax(0, 1fr); grid-template-areas: "control" "essential" "pilot" "copilot" "focus"; }
  #skyTeamCockpit .sky-team-track-section { grid-template-columns: 1fr; gap: 3px; }
  #skyTeamCockpit .sky-team-track-section h3 { text-align: left; }
  #skyTeamCockpit .sky-team-altitude-tile strong { font-size: .7rem; }
  #skyTeamCockpit .sky-team-board-slot { width: clamp(48px, 15vw, 72px); }
  #skyTeamCockpit .sky-team-slot-grid.is-pilot-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #skyTeamCockpit .sky-team-slot-grid.is-pilot-triple > [data-sky-team-slot="gear_3"] { grid-column: auto; grid-row: auto; }
  #skyTeamCockpit .sky-team-brake-actions { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); }
  #skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr); }
  #skyTeamCockpit .sky-team-brake-actions .sky-team-progress-arrow, #skyTeamCockpit .sky-team-flap-actions .sky-team-progress-arrow { height: auto; transform: none; }
  #skyTeamCockpit .sky-team-flap-actions .sky-team-slot span { white-space: nowrap; }
}
@media (max-width: 380px) {
  #skyTeamCockpit .sky-team-board-tracks { padding: 6px; }
  #skyTeamCockpit .sky-team-altitude-tile strong { font-size: .59rem; }
  #skyTeamCockpit .sky-team-approach-cell { padding-inline: 0; }
  #skyTeamCockpit .sky-team-approach-cell span { font-size: .49rem; }
  #skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions { grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 1fr); }
}
/* Portrait cockpit: arrange the live controls like the physical Sky Team board. */
#skyTeamCockpit { position: relative; width: min(100%, 560px); box-sizing: border-box; margin-inline: auto; padding: 7px; border: 5px solid #506b78; border-radius: 12px; background: linear-gradient(115deg, #a5bec8, #d5e3e6 15%, #8aa8b5 51%, #c6d9dd 83%, #718f9b); box-shadow: inset 0 0 0 2px #e4edef, inset 0 0 0 6px #718e9b, 0 14px 32px rgba(15,39,54,.25); }
#skyTeamCockpit::before { content: ""; position: absolute; inset: 3px; border-radius: 6px; background: radial-gradient(circle at 1.4% 2%, #324e5a 0 3px, #dbe7e8 4px 6px, transparent 7px), radial-gradient(circle at 98.6% 2%, #324e5a 0 3px, #dbe7e8 4px 6px, transparent 7px), radial-gradient(circle at 1.4% 98%, #324e5a 0 3px, #dbe7e8 4px 6px, transparent 7px), radial-gradient(circle at 98.6% 98%, #324e5a 0 3px, #dbe7e8 4px 6px, transparent 7px); pointer-events: none; }
#skyTeamCockpit > * { position: relative; }
#skyTeamCockpit .sky-team-alarm-track { margin: 6px 0; }
#skyTeamCockpit .sky-team-instruments { grid-template-columns: minmax(0, .88fr) minmax(0, 2.6fr) minmax(0, .88fr); grid-template-areas: "control control control" "pilot essential copilot" "focus focus focus"; gap: 3px; padding: 5px; border: 2px solid #607f8c; border-radius: 8px; background: linear-gradient(90deg, #7897a2, #b8cdd2 13%, #9db8c1 50%, #b8cdd2 87%, #7897a2); box-shadow: inset 0 0 0 2px #e1e9e9, inset 0 0 20px rgba(11,45,64,.32); }
#skyTeamCockpit .sky-team-instruments > section { min-width: 0; padding: 5px; border: 1px solid #6c8994; border-radius: 5px; background: linear-gradient(105deg, rgba(228,238,238,.5), rgba(129,159,171,.35)); box-shadow: inset 0 1px rgba(255,255,255,.55); }
#skyTeamCockpit .sky-team-instruments > section.is-turn-pilot { border-color: #2979bd; box-shadow: inset 0 0 0 1px #368cd0; }
#skyTeamCockpit .sky-team-instruments > section.is-turn-copilot { border-color: #c96c29; box-shadow: inset 0 0 0 1px #e28539; }
#skyTeamCockpit .sky-team-instruments h3 { margin: 0 0 5px; color: #17394b; font-size: .69rem; text-align: center; }
#skyTeamCockpit .sky-team-instruments h4 { margin: 0 0 5px; color: #274b60; font-size: .58rem; text-align: center; }
#skyTeamCockpit .sky-team-control-panel .sky-team-slot-grid { gap: 5px; }
#skyTeamCockpit .sky-team-control-panel .sky-team-slot { min-height: 42px; }
#skyTeamCockpit .sky-team-control-panel .sky-team-radio-icon { width: clamp(28px, 7vw, 40px); height: clamp(28px, 7vw, 40px); }
#skyTeamCockpit .sky-team-essential-panel { padding: 4px 2px; }
#skyTeamCockpit .sky-team-essential-board { position: relative; display: block; height: clamp(183px, 43vw, 268px); padding: 0; overflow: visible; border: 0; border-radius: 50%; background: transparent; box-shadow: none; }
#skyTeamCockpit .sky-team-essential-board::before { content: ""; position: absolute; top: 0; left: 50%; width: min(99%, 260px); aspect-ratio: 1; box-sizing: border-box; transform: translateX(-50%); border: clamp(12px, 2.7vw, 18px) solid #18232a; border-bottom-color: transparent; border-radius: 50%; box-shadow: 0 0 0 2px #d7e6e9, inset 0 0 0 2px #586c75; pointer-events: none; }
#skyTeamCockpit .sky-team-attitude-dial { position: absolute; top: 9%; left: 50%; width: min(79%, 220px); height: auto; aspect-ratio: 1; box-sizing: border-box; transform: translateX(-50%); border: 5px solid #303f46; background: linear-gradient(180deg, #19b9e6 0%, #61cbdd 48%, #c09262 50%, #97704b 100%); box-shadow: 0 0 0 3px #a4b8bc, inset 0 0 15px rgba(0,0,0,.32), 0 4px 8px rgba(15,40,53,.35); }
#skyTeamCockpit .sky-team-attitude-dial strong { width: 85%; }
#skyTeamCockpit .sky-team-attitude-scale { inset: -15%; }
#skyTeamCockpit .sky-team-board-slot { position: absolute; z-index: 3; width: clamp(35px, 10vw, 56px); aspect-ratio: 1; }
#skyTeamCockpit .sky-team-board-slot.is-top-left { top: 0; left: 0; }
#skyTeamCockpit .sky-team-board-slot.is-top-right { top: 0; right: 0; left: auto; }
#skyTeamCockpit .sky-team-board-slot.is-bottom-left { bottom: 12%; left: 0; }
#skyTeamCockpit .sky-team-board-slot.is-bottom-right { right: 0; bottom: 12%; left: auto; }
#skyTeamCockpit .sky-team-board-slot .sky-team-slot { border-width: 2px; border-radius: 7px; box-shadow: 0 2px 4px rgba(10,38,55,.3); }
#skyTeamCockpit .sky-team-passenger-count { bottom: 0; max-width: 76%; }
#skyTeamCockpit .sky-team-status-gauges { gap: 5px; margin-top: 4px; padding: 5px 2px; border: 0; border-radius: 0; background: transparent; }
#skyTeamCockpit .sky-team-speed-gauge > span, #skyTeamCockpit .sky-team-brake-gauge > span { flex-basis: 35px; width: 35px; font-size: .58rem; }
#skyTeamCockpit .sky-team-gauge-mark b { background: #e2edf0; font-size: .59rem; }
#skyTeamCockpit .sky-team-gauge-mark b { padding-inline: 0; background: transparent !important; font-size: .66rem; }
#skyTeamCockpit .sky-team-speed-track .sky-team-gauge-mark.is-current b { color: #315a9f; }
#skyTeamCockpit .sky-team-pilot-panel, #skyTeamCockpit .sky-team-copilot-panel { align-self: stretch; }
#skyTeamCockpit .sky-team-slot-grid.is-pilot-triple, #skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions { grid-template-columns: minmax(0, 1fr); gap: 2px; }
#skyTeamCockpit .sky-team-slot-grid.is-pilot-triple > [data-sky-team-slot="gear_3"] { grid-column: auto; grid-row: auto; }
#skyTeamCockpit .sky-team-landing-gear-plane { display: grid; place-items: center; min-height: clamp(60px, 17vw, 86px); margin-bottom: 8px; background: transparent; }
#skyTeamCockpit .sky-team-landing-gear-plane img { display: block; width: min(100%, 77px); height: auto; }
#skyTeamCockpit .sky-team-slot[data-sky-team-slot^="gear_"] > span:first-child, #skyTeamCockpit .sky-team-slot[data-sky-team-slot^="flap_"] > span:first-child { font-size: clamp(.74rem, 2.5vw, .95rem); font-weight: 900; white-space: nowrap; }
#skyTeamCockpit .sky-team-pilot-panel .sky-team-slot, #skyTeamCockpit .sky-team-copilot-panel .sky-team-slot { min-height: clamp(47px, 12vw, 62px); padding: 4px 1px; border-radius: 7px; }
#skyTeamCockpit .sky-team-pilot-panel .sky-team-slot span, #skyTeamCockpit .sky-team-copilot-panel .sky-team-slot span { font-size: clamp(.52rem, 1.7vw, .65rem); overflow-wrap: anywhere; }
#skyTeamCockpit .sky-team-flap-actions .sky-team-slot span { white-space: normal; }
#skyTeamCockpit .sky-team-flap-actions .sky-team-progress-arrow { height: 10px; color: #fff; font-size: 0; text-shadow: 0 1px 2px rgba(14,35,49,.3); transform: rotate(90deg); }
#skyTeamCockpit .sky-team-flap-actions .sky-team-progress-arrow::after { content: "▶"; font-size: .75rem; }
#skyTeamCockpit .sky-team-brake-actions { grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr); gap: 2px; margin-top: 5px; }
#skyTeamCockpit .sky-team-brake-actions .sky-team-slot { min-height: 47px; padding: 3px 0; }
#skyTeamCockpit .sky-team-brake-actions .sky-team-slot span { font-size: .58rem; }
#skyTeamCockpit .sky-team-brake-actions .sky-team-slot .sky-team-brake-target-number { display: block; font-size: 1.2rem; font-weight: 900; line-height: 1.1; }
#skyTeamCockpit .sky-team-brake-actions .sky-team-progress-arrow { height: auto; font-size: .8rem; transform: none; }
#skyTeamCockpit .sky-team-focus-panel { padding: 6px; }
#skyTeamCockpit .sky-team-intern-panel { grid-column: 1 / -1; padding: 8px; background: linear-gradient(120deg,#bbcbd2,#e0e6e7,#a8bcc4); border: 2px solid #768c98; border-radius: 9px; color: #263c4b; }
#skyTeamCockpit .sky-team-intern-panel h3 { display: flex; justify-content: space-between; margin: 0 0 8px; }
#skyTeamCockpit .sky-team-intern-panel p { margin: 7px 0 4px; font-size: 11px; line-height: 1.45; }
#skyTeamCockpit .sky-team-intern-panel > small { font-size: 10px; }
#skyTeamCockpit .sky-team-intern-track { display: grid; grid-template-columns: 64px minmax(0,1fr) 64px; gap: 7px; align-items: center; }
#skyTeamCockpit .sky-team-intern-tokens { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; }
#skyTeamCockpit .sky-team-intern-token { position: relative; display: grid; place-items: center; aspect-ratio: 3/4; min-width: 0; border: 3px solid #8ca43a; border-radius: 6px; background: #f1efd9; color: #44512b; font-size: clamp(16px,3vw,27px); font-weight: 900; }
#skyTeamCockpit .sky-team-intern-token:before { content: ""; position: absolute; width: 45%; height: 8px; top: -9px; border: 3px solid #8ca43a; border-top: 0; transform: skew(-12deg); }
#skyTeamCockpit .sky-team-intern-token.is-trained { border-style: dashed; opacity: .45; }
#skyTeamCockpit .sky-team-intern-token.is-trained:before { display: none; }
#skyTeamCockpit .sky-team-intern-entry { display: grid; gap: 3px; justify-items: center; align-content: center; min-width: 0; min-height: 69px; padding: 4px; border: 2px solid #fff9; border-radius: 8px; background: #2c5685; color: #fff; }
#skyTeamCockpit .sky-team-intern-entry.is-copilot { background: #b77529; }
#skyTeamCockpit .sky-team-intern-entry small { font-size: 9px; line-height: 1.2; }
#skyTeamCockpit .sky-team-intern-entry.is-selected { outline: 3px solid #e5d36c; outline-offset: 1px; }
#skyTeamCockpit .sky-team-placed-die.is-intern-token { background: #e9efcd; color: #1f2937 !important; border: 3px solid #83a137; }
#skyTeamCockpit button.sky-team-intern-token { min-height: 0; padding: 3px; border-color: #7c9096; background: #d3dddc; }
#skyTeamCockpit button.sky-team-intern-token:disabled { opacity: 1; filter: none; cursor: default; }
#skyTeamCockpit button.sky-team-intern-token:before { display: none; }
#skyTeamCockpit .sky-team-intern-token .sky-team-placed-die { display: grid; place-items: center; box-sizing: border-box; width: min(100%,36px); height: 38px; min-width: 0; border-radius: 7px; font-size: clamp(14px,3vw,25px); }
#skyTeamCockpit .sky-team-intern-token.is-selected { outline: 3px solid #e5b949; outline-offset: 1px; }
#skyTeamCockpit .sky-team-intern-token.is-trained.is-pilot { background: #d8e8f3; color: #2c5685; border-color: #2c5685; opacity: 1; }
#skyTeamCockpit .sky-team-intern-token.is-trained.is-copilot { background: #fae4c5; color: #985e1b; border-color: #b77529; opacity: 1; }
#skyTeamCockpit .sky-team-intern-token.is-unknown { opacity: .4; border-style: dashed; }
#skyTeamCockpit .sky-team-intern-token.is-unknown:before { display: none; }
@media(max-width:420px) { #skyTeamCockpit .sky-team-intern-track { grid-template-columns: 48px minmax(0,1fr) 48px; gap: 4px; } #skyTeamCockpit .sky-team-intern-tokens { gap: 3px; } #skyTeamCockpit .sky-team-intern-token { border-width: 2px; } }
#skyTeamCockpit .sky-team-focus-panel .sky-team-slot { min-height: 48px; }
#skyTeamCockpit .sky-team-focus-layout { display: grid; grid-template-columns: minmax(96px, 120px) minmax(0, 1fr); align-items: stretch; gap: 10px; }
#skyTeamCockpit .sky-team-coffee-reserve { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 29px); align-content: center; justify-items: stretch; gap: 4px; width: 100%; height: 100%; box-sizing: border-box; min-width: 0; color: #24485d; font-size: .58rem; font-weight: 800; }
#skyTeamCockpit .sky-team-coffee-reserve > strong { grid-column: 2; grid-row: 1; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: .58rem; white-space: nowrap; }
#skyTeamCockpit .sky-team-coffee-reserve > strong span { color: #526b77; font-size: .6rem; font-variant-numeric: tabular-nums; }
#skyTeamCockpit .sky-team-coffee-cups { grid-area: 1 / 1 / 3 / 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 29px); align-items: center; justify-items: center; gap: 4px; width: 100%; }
#skyTeamCockpit .sky-team-coffee-cup { display: grid; grid-template-rows: 18px 8px; align-content: center; place-items: center; width: 100%; height: 29px; box-sizing: border-box; border: 1px solid #8398a1; border-radius: 7px; color: #111820; background: rgba(255,255,255,.12); }
#skyTeamCockpit .sky-team-coffee-cup:nth-child(1) { grid-area: 1 / 1; }
#skyTeamCockpit .sky-team-coffee-cup:nth-child(2) { grid-area: 2 / 1; }
#skyTeamCockpit .sky-team-coffee-cup:nth-child(3) { grid-area: 2 / 2; }
#skyTeamCockpit .sky-team-coffee-cup.is-filled { grid-template-rows: 1fr; }
#skyTeamCockpit .sky-team-coffee-cup.is-filled { border-color: #101519; color: #fff; background: #101519; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
#skyTeamCockpit .sky-team-coffee-cup img { display: block; width: 18px; height: 18px; max-width: 100%; filter: brightness(0) saturate(100%); }
#skyTeamCockpit .sky-team-coffee-cup.is-filled img { filter: brightness(0) invert(1); }
#skyTeamCockpit .sky-team-coffee-cup small { display: block; color: #111820; font-size: .4rem; font-weight: 900; line-height: 1; white-space: nowrap; }
#skyTeamCockpit .sky-team-coffee-cup.is-filled small { display: none; }
#skyTeamCockpit .sky-team-focus-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: min(100%, 270px); justify-self: end; align-self: center; }
#skyTeamCockpit .sky-team-focus-actions .sky-team-slot { display: grid; place-items: center; box-sizing: border-box; height: 62px; min-height: 0; padding: 4px; }
#skyTeamCockpit .sky-team-focus-actions .sky-team-focus-cup-icon { display: block; width: 30px; height: 30px; margin: 0 auto; object-fit: contain; }
#skyTeamCockpit .sky-team-slot.is-filled { display: grid; place-items: center; }
#skyTeamCockpit .sky-team-slot.is-filled > .sky-team-placed-die { margin: 0; aspect-ratio: 1; }
#skyTeamCockpit .sky-team-slot.is-filled > span:not(.sky-team-placed-die):not(.sky-team-equipment-toggle) { display: none; }
#skyTeamCockpit .sky-team-essential-panel { display: flex; flex-direction: column; }
#skyTeamCockpit .sky-team-essential-board { flex-shrink: 0; }
#skyTeamCockpit .sky-team-status-gauges { display: contents; }
#skyTeamCockpit .sky-team-speed-gauge { flex-shrink: 0; margin-top: 8px; padding: 5px 2px; }
#skyTeamCockpit .sky-team-brake-gauge { flex-shrink: 0; margin-top: auto; padding: 12px 2px 5px; }
#skyTeamCockpit .sky-team-brake-actions { flex-shrink: 0; }
@media (max-width: 520px) {
  #skyTeamCockpit { padding: 5px; border-width: 3px; }
  #skyTeamCockpit .sky-team-instruments { grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr) minmax(0, .8fr); grid-template-areas: "control control control" "pilot essential copilot" "focus focus focus"; }
  #skyTeamCockpit .sky-team-instruments > section { padding: 3px; }
  #skyTeamCockpit .sky-team-essential-board { height: clamp(176px, 46vw, 216px); }
  #skyTeamCockpit .sky-team-board-slot { width: clamp(32px, 9vw, 44px); }
  #skyTeamCockpit .sky-team-attitude-dial { width: 76%; }
  #skyTeamCockpit .sky-team-speed-gauge > span, #skyTeamCockpit .sky-team-brake-gauge > span { flex-basis: 30px; width: 30px; }
  #skyTeamCockpit .sky-team-gauge-mark b { font-size: .57rem; }
  #skyTeamCockpit .sky-team-gauge-mark i { width: 3px; }
  #skyTeamCockpit .sky-team-slot:not(.is-essential-slot) .sky-team-placed-die { width: min(31px, 100%); height: auto; }
}
.sky-team-curved-gauge { display: none; }
@media (max-width: 760px) {
  #skyTeamCockpit .sky-team-speed-gauge, #skyTeamCockpit .sky-team-brake-gauge { flex-direction: column; align-items: stretch; gap: 0; }
  #skyTeamCockpit .sky-team-speed-gauge > span, #skyTeamCockpit .sky-team-brake-gauge > span { flex: 0 0 auto; width: auto; text-align: left; font-size: .68rem; }
  #skyTeamCockpit .sky-team-speed-wind { display: inline; margin: 0 0 0 5px; }
  #skyTeamCockpit .sky-team-speed-track, #skyTeamCockpit .sky-team-brake-track { display: block; flex: 0 0 auto; width: 100%; height: auto; border: 0; }
  #skyTeamCockpit .sky-team-speed-track > .sky-team-gauge-mark, #skyTeamCockpit .sky-team-brake-track > .sky-team-gauge-mark { display: none; }
  #skyTeamCockpit .sky-team-curved-gauge { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
  #skyTeamCockpit .sky-team-brake-gauge { padding-top: 10px; }
  #skyTeamCockpit .sky-team-speed-gauge > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
#skyTeamCockpit .sky-team-essential-board.is-reference-layout { width: 100%; height: auto; aspect-ratio: 1; flex: 0 0 auto; margin-bottom: 12px; border-radius: 0; }
#skyTeamCockpit .sky-team-essential-board.is-reference-layout::before { top: 12%; width: 66%; border-width: clamp(7px, 2vw, 13px); }
#skyTeamCockpit .is-reference-layout .sky-team-attitude-dial { top: 18%; width: 54%; border-width: 3px; }
#skyTeamCockpit .is-reference-layout .sky-team-attitude-dial strong { width: 94%; }
#skyTeamCockpit .is-reference-layout .sky-team-board-slot { width: 23%; }
#skyTeamCockpit .is-reference-layout .sky-team-board-slot .sky-team-slot { padding: 2px; }
#skyTeamCockpit .is-reference-layout .sky-team-board-slot .sky-team-placed-die { width: 100%; height: auto; min-width: 0; min-height: 0; aspect-ratio: 1; font-size: clamp(1.05rem, 5vw, 1.4rem) !important; }
#skyTeamCockpit .is-reference-layout .sky-team-board-slot.is-top-left { top: 6%; left: 0; }
#skyTeamCockpit .is-reference-layout .sky-team-board-slot.is-top-right { top: 6%; right: 0; }
#skyTeamCockpit .is-reference-layout .sky-team-board-slot.is-bottom-left { top: 93%; bottom: auto; left: 15%; }
#skyTeamCockpit .is-reference-layout .sky-team-board-slot.is-bottom-right { top: 93%; bottom: auto; right: 15%; }
#skyTeamCockpit .sky-team-engine-bridge { display: none; }
#skyTeamCockpit .is-reference-layout .sky-team-engine-bridge { position: absolute; z-index: 2; top: 93%; left: 50%; display: flex; width: 44%; flex-direction: column; align-items: center; transform: translateX(-50%); pointer-events: none; }
#skyTeamCockpit .is-reference-layout .sky-team-engine-connector { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: #f4fbfc; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(31,61,72,.45)); }
#skyTeamCockpit .is-reference-layout .sky-team-engine-connector-plus { stroke-width: 4; }
#skyTeamCockpit .is-reference-layout .sky-team-engine-aircraft { display: block; width: 52%; height: auto; margin-top: 4.5%; overflow: visible; color: #f4fbfc; filter: drop-shadow(0 1px 1px rgba(31,61,72,.45)); }
#skyTeamCockpit .sky-team-wind-strength { position: absolute; z-index: 4; top: 118%; left: 50%; transform: translate(-50%, -50%); padding: 3px 7px; border: 1px solid #d8e8eb; border-radius: 999px; background: #17394b; color: #fff; font-size: clamp(.55rem, 1.7vw, .68rem); font-weight: 800; line-height: 1.2; white-space: nowrap; box-shadow: 0 2px 5px rgba(15,40,53,.3); pointer-events: none; }
#skyTeamCockpit .is-reference-layout .sky-team-slot.is-pilot { background: linear-gradient(145deg, #293e8a, #364eb7); border-color: #77c9f1; }
#skyTeamCockpit .is-reference-layout .sky-team-slot.is-copilot { background: linear-gradient(145deg, #813b1d, #d76822); border-color: #eeb163; }
#skyTeamCockpit .is-reference-layout .sky-team-slot-role-lock { color: #fff; }
#skyTeamCockpit .is-reference-layout .sky-team-speed-gauge { position: absolute; z-index: 1; top: 40.333%; left: 0; display: block; width: 100%; margin: 0; padding: 0; }
#skyTeamCockpit .is-reference-layout .sky-team-speed-gauge > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#skyTeamCockpit .is-reference-layout .sky-team-speed-track { display: block; width: 100%; height: auto; border: 0; }
#skyTeamCockpit .is-reference-layout .sky-team-speed-track > .sky-team-gauge-mark { display: none; }
#skyTeamCockpit .is-reference-layout .sky-team-curved-gauge { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
#skyTeamCockpit .is-reference-layout .sky-team-passenger-count { top: 66%; bottom: auto; max-width: 68%; padding: 2px 4px; font-size: clamp(.48rem, 1.5vw, .65rem); }
#skyTeamCockpit .sky-team-brake-console { margin-top: auto; padding-top: 8px; min-width: 0; }
#skyTeamCockpit .sky-team-brake-console .sky-team-brake-gauge { display: block; margin: 0; padding: 0; }
#skyTeamCockpit .sky-team-brake-console .sky-team-brake-gauge > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
#skyTeamCockpit .sky-team-brake-console .sky-team-brake-track { display: block; width: 100%; height: auto; border: 0; }
#skyTeamCockpit .sky-team-brake-console .sky-team-gauge-mark { display: none; }
#skyTeamCockpit .sky-team-brake-console .sky-team-curved-gauge { display: block; width: 100%; height: auto; font-family: inherit; overflow: visible; }
#skyTeamCockpit .sky-team-brake-console .sky-team-brake-actions { width: 84%; margin: 4px auto 0; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr); gap: 2px; align-items: start; }
#skyTeamCockpit .sky-team-brake-console .sky-team-slot,
#skyTeamCockpit .sky-team-slot-grid.is-pilot-triple .sky-team-slot,
#skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions .sky-team-slot { display: grid; place-items: center; justify-self: center; box-sizing: border-box; width: min(100%, 52px); height: auto; min-height: 0; aspect-ratio: 1; padding: 3px; border-radius: 8px; border-color: #6487c5; background: linear-gradient(145deg, #263b84, #3e4fa6); box-shadow: inset 0 1px 5px rgba(255,255,255,.15), 0 2px 3px rgba(14,35,49,.25); }
#skyTeamCockpit .sky-team-brake-console .sky-team-slot .sky-team-brake-target-number { color: #72d8ff; font-size: clamp(.95rem, 3vw, 1.25rem); }
#skyTeamCockpit .sky-team-slot-grid.is-pilot-triple .sky-team-slot > span:first-child,
#skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions .sky-team-slot > span:first-child { color: #72d8ff; font-size: clamp(.8rem, 2.5vw, 1rem); font-weight: 900; line-height: 1.1; white-space: nowrap; }
#skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions .sky-team-slot { border-color: #eeb163; background: linear-gradient(145deg, #813b1d, #d76822); }
#skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions .sky-team-slot > span:first-child { color: #ffe2b8; }
#skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions .sky-team-slot.is-role-blocked { opacity: .7; filter: none; }
#skyTeamCockpit .sky-team-brake-console .sky-team-slot-role-lock { color: #fff; }
#skyTeamCockpit .sky-team-brake-console .sky-team-progress-arrow { align-self: center; margin-bottom: 28px; color: #fff; font-size: 0; text-shadow: 0 1px 2px rgba(14,35,49,.3); }
#skyTeamCockpit .sky-team-brake-console .sky-team-progress-arrow::after { content: "▶"; font-size: .75rem; }
#skyTeamCockpit .sky-team-slippery-brakes { padding: 0 5px; background: transparent; box-shadow: none; }
/* Engines and the aircraft bridge extend below the square attitude board.
   Reserve their proportional overflow before the two-row brake controls. */
#skyTeamCockpit .has-slippery-brakes .sky-team-essential-board.is-reference-layout { margin-bottom: calc(24% + 12px); }
#skyTeamCockpit .sky-team-slippery-brakes .sky-team-slot.is-unavailable::after,
#skyTeamCockpit .sky-team-slippery-brakes .sky-team-slot-role-lock { display: none; }
#skyTeamCockpit .sky-team-brake-console .sky-team-brake-actions.is-slippery-row { display: grid; width: 100%; margin: 4px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
#skyTeamCockpit .sky-team-slippery-cell { position: relative; display: grid; place-items: center; min-width: 0; }
#skyTeamCockpit .sky-team-slippery-direction { position: absolute; top: 50%; left: calc(100% + 2.5px); transform: translate(-50%, -50%); color: #fff; font-size: clamp(.45rem, 1.3vw, .7rem); line-height: 1; text-shadow: 0 1px 2px #416070; pointer-events: none; }
#skyTeamCockpit .sky-team-brake-console .is-slippery-row .sky-team-slot { width: min(100%, 52px); margin: 0; aspect-ratio: 1; }
#skyTeamCockpit .sky-team-brake-console .is-slippery-row .sky-team-slot.is-complete { opacity: .4; }
#skyTeamCockpit .sky-team-brake-console .is-shared-row .sky-team-slot { border-color: #96bbc9; background: linear-gradient(90deg, #304b99 50%, #b8682f 50%); }
#skyTeamCockpit .sky-team-slippery-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0; padding: 3px 0; border-radius: 3px; background: #1b282e; color: #fff; text-align: center; font-size: clamp(.65rem, 2vw, .9rem); font-weight: 800; }
#skyTeamCockpit .sky-team-slippery-track > i { position: absolute; z-index: 1; top: -3px; bottom: -3px; width: 7px; background: #d63235; transform: translateX(-50%); border-radius: 2px; }
#skyTeamCockpit .sky-team-slippery-stop { position: absolute; top: 0; bottom: 0; width: 2px; background: #d7e4e8; transform: translateX(-50%); pointer-events: none; }
#skyTeamCockpit .sky-team-focus-panel { position: relative; overflow: hidden; min-height: 83px; background: linear-gradient(125deg, #b6cbd3, #d4e1e5 48%, #9eb7c0); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), inset 0 0 12px rgba(24,55,69,.24); }
#skyTeamCockpit .sky-team-focus-panel::before { position: absolute; inset: 4px; border: 1px solid rgba(55,83,96,.45); border-radius: 5px; background: radial-gradient(circle at 5px 5px, #f8ffff 0 1px, #778d96 2px 3px, transparent 4px), radial-gradient(circle at calc(100% - 5px) 5px, #f8ffff 0 1px, #778d96 2px 3px, transparent 4px), radial-gradient(circle at 5px calc(100% - 5px), #f8ffff 0 1px, #778d96 2px 3px, transparent 4px), radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #f8ffff 0 1px, #778d96 2px 3px, transparent 4px); content: ""; pointer-events: none; }
#skyTeamCockpit .sky-team-focus-panel > h3 { position: relative; z-index: 1; margin-bottom: 2px; }
#skyTeamCockpit .sky-team-focus-layout { position: relative; z-index: 1; display: flex; min-height: 58px; align-items: center; justify-content: center; }
#skyTeamCockpit .sky-team-coffee-reserve { position: absolute; top: 50%; left: 0; width: 100px; height: 58px; grid-template-rows: repeat(2, 27px); gap: 3px; transform: translateY(-50%); }
#skyTeamCockpit .sky-team-coffee-cups { grid-template-rows: repeat(2, 27px); gap: 3px; }
#skyTeamCockpit .sky-team-coffee-cup { height: 27px; border-color: #899ba3; color: #111820; background: #cbd6db; box-shadow: inset 0 1px rgba(255,255,255,.38), 0 1px 2px rgba(21,39,47,.18); }
#skyTeamCockpit .sky-team-coffee-cup img { opacity: .6; }
#skyTeamCockpit .sky-team-coffee-cup.is-filled img { width: 24px; height: 24px; filter: brightness(0) invert(1); opacity: 1; }
#skyTeamCockpit .sky-team-coffee-cup small { display: block; color: #111820; }
#skyTeamCockpit .sky-team-coffee-cup.is-filled { border-color: #101519; color: #fff; background: #101519; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 1px 2px rgba(21,39,47,.28); }
#skyTeamCockpit .sky-team-coffee-cup.is-filled small { display: none; }
#skyTeamCockpit .sky-team-focus-actions { flex: 0 0 auto; width: min(250px, calc(100% - 220px)); justify-self: auto; gap: 8px; }
#skyTeamCockpit .sky-team-focus-actions .sky-team-slot { position: relative; justify-self: center; width: min(100%, 58px); height: auto; min-height: 0; aspect-ratio: 1; overflow: hidden; padding: 3px; border: 2px solid #45a8e6; border-radius: 7px; background: linear-gradient(90deg, #204293 0 50%, #d87121 50% 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 0 2px rgba(47,151,219,.22), 0 2px 4px rgba(25,47,59,.3); }
#skyTeamCockpit .sky-team-focus-actions .sky-team-slot::before { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; border: 2px solid rgba(174,227,255,.65); border-radius: 50%; background: radial-gradient(circle, rgba(255,200,92,.48), rgba(49,180,224,.38) 58%, transparent 65%); box-shadow: 0 0 9px rgba(49,180,224,.8); content: ""; transform: translate(-50%, -50%); pointer-events: none; }
#skyTeamCockpit .sky-team-focus-actions .sky-team-slot.is-filled::before { display: none; }
#skyTeamCockpit .sky-team-focus-actions .sky-team-focus-cup-icon { position: relative; z-index: 1; width: 27px; height: 27px; filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(12,41,60,.7)); }
#skyTeamCockpit .sky-team-control-panel .sky-team-slot { display: grid; place-items: center; justify-self: center; box-sizing: border-box; width: min(100%, 58px); height: auto; min-height: 0; aspect-ratio: 1; padding: 3px; border-width: 2px; border-radius: 8px; box-shadow: inset 0 1px 5px rgba(255,255,255,.15), 0 2px 3px rgba(14,35,49,.25); }
#skyTeamCockpit .sky-team-control-panel .sky-team-slot.is-pilot { border-color: #77c9f1; background: linear-gradient(145deg, #293e8a, #364eb7); }
#skyTeamCockpit .sky-team-control-panel .sky-team-slot.is-copilot { border-color: #eeb163; background: linear-gradient(145deg, #813b1d, #d76822); }
#skyTeamCockpit .sky-team-control-panel .sky-team-radio-icon { width: min(100%, 38px); height: min(100%, 38px); }
#skyTeamCockpit .sky-team-control-panel .sky-team-slot.is-role-blocked { opacity: .7; filter: none; }
#skyTeamCockpit .sky-team-control-panel .sky-team-slot-role-lock { color: #fff; }
#skyTeamCockpit .sky-team-instruments { grid-template-columns: minmax(46px, .65fr) minmax(0, 3fr) minmax(46px, .65fr); }
#skyTeamCockpit .sky-team-instruments > .sky-team-pilot-panel,
#skyTeamCockpit .sky-team-instruments > .sky-team-copilot-panel { padding: 3px 2px; }
#skyTeamCockpit .sky-team-pilot-panel h3, #skyTeamCockpit .sky-team-copilot-panel h3 { margin-bottom: 3px; font-size: .61rem; }
#skyTeamCockpit .sky-team-pilot-panel h4, #skyTeamCockpit .sky-team-copilot-panel h4 { margin-bottom: 3px; font-size: .52rem; }
#skyTeamCockpit .sky-team-landing-gear-plane { min-height: clamp(44px, 12vw, 62px); margin-bottom: 4px; }
#skyTeamCockpit .sky-team-landing-gear-plane img { width: min(100%, 54px); }
#skyTeamCockpit .sky-team-slot-grid.is-pilot-triple,
#skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions { gap: 1px; }
#skyTeamCockpit .sky-team-slot-grid.is-pilot-triple .sky-team-slot,
#skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions .sky-team-slot { width: min(100%, 42px); padding: 2px; border-width: 1px; border-radius: 6px; }
#skyTeamCockpit .sky-team-slot-grid.is-pilot-triple .sky-team-slot > span:first-child,
#skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions .sky-team-slot > span:first-child { font-size: clamp(.6rem, 1.8vw, .75rem); }
#skyTeamCockpit .sky-team-pilot-panel .sky-team-slot span,
#skyTeamCockpit .sky-team-copilot-panel .sky-team-slot span { font-size: clamp(.46rem, 1.4vw, .55rem); }
#skyTeamCockpit .sky-team-pilot-panel .sky-team-slot .sky-team-placed-die,
#skyTeamCockpit .sky-team-copilot-panel .sky-team-slot .sky-team-placed-die { width: min(100%, 28px); height: auto; margin: 0; font-size: .85rem !important; }
#skyTeamCockpit .sky-team-pilot-panel .sky-team-slot[data-sky-team-slot^="gear_"],
#skyTeamCockpit .sky-team-copilot-panel .sky-team-slot[data-sky-team-slot^="flap_"] { margin-bottom: 21px; }
#skyTeamCockpit .sky-team-pilot-panel .sky-team-equipment-toggle,
#skyTeamCockpit .sky-team-copilot-panel .sky-team-equipment-toggle { bottom: -20px; width: min(80%, 36px); height: 18px; }
#skyTeamCockpit .sky-team-pilot-panel .sky-team-equipment-toggle i,
#skyTeamCockpit .sky-team-copilot-panel .sky-team-equipment-toggle i { left: calc(100% - 16px); width: 14px; height: 14px; }
#skyTeamCockpit .sky-team-flap-actions .sky-team-progress-arrow { height: 7px; font-size: 0; }
@media (max-width: 620px) {
  #skyTeamCockpit .sky-team-focus-layout { display: grid; grid-template-columns: minmax(80px, 100px) minmax(0, 1fr); justify-items: stretch; gap: 6px; }
  #skyTeamCockpit .sky-team-coffee-reserve { position: static; width: 100%; transform: none; }
  #skyTeamCockpit .sky-team-coffee-cup img { width: min(18px, 50%); height: auto; aspect-ratio: 1; }
  #skyTeamCockpit .sky-team-coffee-cup.is-filled img { width: min(24px, 65%); height: auto; }
  #skyTeamCockpit .sky-team-focus-actions { width: min(100%, 220px); min-width: 0; justify-self: center; gap: 3px; }
  #skyTeamCockpit .sky-team-focus-actions .sky-team-focus-cup-icon { width: min(27px, 70%); height: auto; aspect-ratio: 1; }
}
@media (min-width: 621px) {
  #skyTeamCockpit { width: 100%; }
  #skyTeamCockpit .sky-team-instruments { grid-template-columns: minmax(88px, 1fr) minmax(0, 3fr) minmax(88px, 1fr); }
  #skyTeamCockpit .sky-team-instruments > .sky-team-pilot-panel,
  #skyTeamCockpit .sky-team-instruments > .sky-team-copilot-panel { padding: 6px; }
  #skyTeamCockpit .sky-team-pilot-panel h3,
  #skyTeamCockpit .sky-team-copilot-panel h3 { font-size: .75rem; }
  #skyTeamCockpit .sky-team-pilot-panel h4,
  #skyTeamCockpit .sky-team-copilot-panel h4 { font-size: .65rem; }
  #skyTeamCockpit .sky-team-landing-gear-plane img { width: min(100%, 66px); }
  #skyTeamCockpit .sky-team-pilot-panel .sky-team-slot span,
  #skyTeamCockpit .sky-team-copilot-panel .sky-team-slot span { font-size: .65rem; }
  #skyTeamCockpit { --sky-team-action-size: 64px; }
  #skyTeamCockpit :is(.sky-team-control-panel, .sky-team-brake-console, .sky-team-focus-actions, .sky-team-slot-grid.is-pilot-triple, .sky-team-slot-grid.sky-team-flap-actions, .sky-team-board-slot) .sky-team-slot {
    box-sizing: border-box;
    width: var(--sky-team-action-size);
    max-width: 100%;
    height: var(--sky-team-action-size);
    min-height: 0;
    aspect-ratio: 1;
    padding: 4px;
    border-width: 2px;
    border-radius: 8px;
  }
  #skyTeamCockpit .is-reference-layout .sky-team-board-slot { width: var(--sky-team-action-size); }
  #skyTeamCockpit :is(.sky-team-control-panel, .sky-team-brake-console, .sky-team-focus-actions, .sky-team-pilot-panel, .sky-team-copilot-panel, .sky-team-board-slot) .sky-team-slot .sky-team-placed-die {
    width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: 1;
    font-size: 1.4rem !important;
  }
  #skyTeamCockpit .sky-team-slot-grid.is-pilot-triple .sky-team-slot > span:first-child,
  #skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions .sky-team-slot > span:first-child { font-size: 1rem; }
  #skyTeamCockpit .sky-team-slot .sky-team-slot-role-lock { font-size: .65rem; }
  #skyTeamCockpit .sky-team-control-panel .sky-team-radio-icon { width: 44px; height: 44px; }
  #skyTeamCockpit .sky-team-slot.is-essential-slot :is(.sky-team-engine-icon, .sky-team-attitude-icon) { width: min(100%, 52px); }
  #skyTeamCockpit .sky-team-focus-actions .sky-team-focus-cup-icon { width: 34px; height: 34px; }
  #skyTeamCockpit .sky-team-landing-gear-plane { min-height: 90px; margin-bottom: 8px; }
  #skyTeamCockpit .sky-team-landing-gear-plane img { width: min(100%, 84px); }
  #skyTeamCockpit .sky-team-slot-grid.is-pilot-triple,
  #skyTeamCockpit .sky-team-slot-grid.sky-team-flap-actions { grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-content: start; align-items: start; gap: 8px; }
  #skyTeamCockpit .sky-team-pilot-panel .sky-team-slot[data-sky-team-slot^="gear_"],
  #skyTeamCockpit .sky-team-copilot-panel .sky-team-slot[data-sky-team-slot^="flap_"],
  #skyTeamCockpit .sky-team-brake-console .sky-team-slot { margin-bottom: 40px; }
  #skyTeamCockpit :is(.sky-team-pilot-panel, .sky-team-copilot-panel, .sky-team-brake-console) .sky-team-equipment-toggle { box-sizing: border-box; bottom: -32px; width: 52px; height: 26px; }
  #skyTeamCockpit :is(.sky-team-pilot-panel, .sky-team-copilot-panel, .sky-team-brake-console) .sky-team-equipment-toggle i { box-sizing: border-box; top: 1px; left: calc(100% - 24px); width: 22px; height: 22px; }
  #skyTeamCockpit .sky-team-slot.is-complete .sky-team-equipment-toggle i { left: 1px; }
  #skyTeamCockpit .sky-team-brake-console .sky-team-progress-arrow { margin-bottom: 40px; }
  #skyTeamCockpit .is-reference-layout .sky-team-board-slot.is-top-left { left: 8%; }
  #skyTeamCockpit .is-reference-layout .sky-team-board-slot.is-top-right { right: 8%; }
}
.omok-header-actions { display: flex; align-items: center; gap: 8px; }
.omok-header-actions .word-chain-close-button { flex: 0 0 44px; margin: 0; }
.omok-header-actions .title-badge-button { min-height: 36px; padding: 0 12px; font-size: .75rem; }
.omok-lobby-panel { display: grid; gap: 12px; }
.the-mind-daily-ranking { display: grid; gap: 8px; padding: 12px; border: 1px solid #d9e4f4; border-radius: 16px; background: linear-gradient(145deg, #fff, #f2f6fd); }
.decrypto-room { display: grid; gap: 14px; }
.decrypto-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.decrypto-team-card { display: grid; gap: 9px; padding: 13px; border: 1px solid #d4deed; border-radius: 16px; background: #f7faff; }
.decrypto-team-card.is-mine { border-color: #3f78c8; box-shadow: 0 0 0 3px rgba(63,120,200,.14); }
.decrypto-team-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.decrypto-team-card strong { color: #17365f; }
.decrypto-team-card small { color: #728198; font-size: .75rem; }
.decrypto-team-card p { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.decrypto-member-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; font-size: .76rem; font-weight: 800; line-height: 1.2; }
.decrypto-member-badge-a { background: #ffe5e5; color: #c43b45; }
.decrypto-member-badge-b { background: #e2edff; color: #2d65ad; }
.the-game-player.is-decrypto-team-a small { color: #d0444d; font-weight: 800; }
.the-game-player.is-decrypto-team-b small { color: #326dbb; font-weight: 800; }
.decrypto-team-stats { display: flex; align-items: center; gap: 12px; padding: 7px 9px; border-radius: 10px; background: #eef4ff; }
.decrypto-token-row { display: inline-flex; align-items: center; gap: 5px; color: #4e6583; font-size: .78rem; }
.decrypto-token-row b { color: #17365f; font-size: .76rem; }
.decrypto-token { width: 13px; height: 13px; display: inline-block; border: 1px solid #9aa9bd; border-radius: 3px; box-sizing: border-box; }
.decrypto-token-interception { background: #fff; }
.decrypto-token-error { background: #172235; border-color: #172235; }
.decrypto-team-card p { min-height: 1.2em; margin: 0; color: #62738c; font-size: .8rem; line-height: 1.4; }
.decrypto-team-card button { min-height: 36px; border: 0; border-radius: 10px; background: #315fa5; color: #fff; font-weight: 800; }
.decrypto-score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.decrypto-score span { padding: 10px; border-radius: 12px; background: #eef4ff; color: #4e6583; font-size: .78rem; text-align: center; }
.decrypto-score b { color: #17365f; }
.decrypto-play-area { display: grid; gap: 12px; }
.decrypto-keywords { padding: 12px; border-radius: 14px; background: #162844; color: #eaf2ff; }
.decrypto-keywords > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.decrypto-keywords span { display: grid; gap: 4px; padding: 8px 4px; border-radius: 9px; background: #27446e; text-align: center; font-size: .75rem; }
.decrypto-keywords span b { color: #8db6f4; font-size: .7rem; }
.decrypto-round-panel { display: grid; gap: 10px; padding: 14px; border: 1px solid #d4deed; border-radius: 16px; background: #fff; }
.decrypto-clue-form, .decrypto-guess-form { display: grid; gap: 10px; }
.decrypto-clue-form > div { display: grid; gap: 7px; }
.decrypto-clue-form input, .decrypto-guess-form input { width: 100%; }
.decrypto-clue-form button, .decrypto-guess-form button { min-height: 40px; border: 0; border-radius: 10px; background: #315fa5; color: #fff; font-weight: 800; }
.decrypto-clues { display: grid; gap: 7px; }
.decrypto-clues span { padding: 9px 10px; border-radius: 10px; background: #eef4ff; color: #27466f; font-weight: 700; }
.decrypto-clues small { color: #6c7d94; }
.decrypto-result { display: grid; gap: 6px; text-align: center; }
.decrypto-result span { color: #61738e; font-size: .8rem; }
.decrypto-team-chat { display: grid; gap: 8px; padding: 12px; border: 1px solid #d4deed; border-radius: 16px; background: #f7faff; }
.decrypto-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.decrypto-section-heading small { color: #71819a; font-size: .75rem; }
.decrypto-team-chat-messages { display: grid; gap: 6px; min-height: 58px; max-height: 190px; overflow: auto; }
.decrypto-team-chat-messages > div { display: grid; gap: 3px; padding: 7px 9px; border-radius: 9px; background: #fff; }
.decrypto-team-chat-messages span { color: #4f6583; font-size: .82rem; overflow-wrap: anywhere; }
.decrypto-round-history { display: grid; gap: 7px; }
.decrypto-round-history-title { color: #315a9f; font-size: .78rem; font-weight: 800; }
.decrypto-round-history-table-wrap { overflow-x: auto; border: 1px solid #d4deed; border-radius: 10px; background: #fff; }
.decrypto-round-history-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .72rem; }
.decrypto-round-history-table th, .decrypto-round-history-table td { padding: 7px 8px; border-bottom: 1px solid #e1e8f2; color: #526985; text-align: left; vertical-align: top; white-space: nowrap; }
.decrypto-round-history-table th { background: #eef4ff; color: #315a9f; font-weight: 800; }
.decrypto-round-history-table tbody tr:last-child td { border-bottom: 0; }
.decrypto-round-history-table td b { color: #17365f; }
.decrypto-team-chat-form input.is-disabled-hint::placeholder { color: #9ba8b9; opacity: .75; }
.decrypto-team-chat-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.decrypto-team-chat-form button { min-width: 52px; border: 0; border-radius: 9px; background: #315fa5; color: #fff; font-weight: 800; }
.decrypto-round-history-panel { display: grid; gap: 8px; padding: 12px; border: 1px solid #d4deed; border-radius: 16px; background: #f7faff; }
html[data-theme="dark"] .decrypto-team-card, html[data-theme="dark"] .decrypto-round-panel, html[data-theme="dark"] .decrypto-team-chat { border-color: #344967; background: #1a2a40; }
html[data-theme="dark"] .decrypto-team-card strong, html[data-theme="dark"] .decrypto-score b { color: #e7effb; }
html[data-theme="dark"] .decrypto-team-card p, html[data-theme="dark"] .decrypto-team-card small, html[data-theme="dark"] .decrypto-section-heading small { color: #aebdd0; }
html[data-theme="dark"] .decrypto-member-badge-a { background: rgba(206, 72, 82, .22); color: #ff9a9f; }
html[data-theme="dark"] .decrypto-member-badge-b { background: rgba(84, 157, 226, .22); color: #8fd0ff; }
html[data-theme="dark"] .the-game-player.is-decrypto-team-a small { color: #ff9a9f; }
html[data-theme="dark"] .the-game-player.is-decrypto-team-b small { color: #8fd0ff; }
html[data-theme="dark"] .decrypto-score span, html[data-theme="dark"] .decrypto-clues span { background: #203858; color: #d6e5fb; }
html[data-theme="dark"] .decrypto-team-stats { background: #203858; }
html[data-theme="dark"] .decrypto-token-row { color: #c5d3e4; }
html[data-theme="dark"] .decrypto-token-row b { color: #e7effb; }
html[data-theme="dark"] .decrypto-token-interception { background: #f8fbff; }
html[data-theme="dark"] .decrypto-team-chat-messages > div { background: #203047; }
html[data-theme="dark"] .decrypto-team-chat-messages span { color: #c5d3e4; }
html[data-theme="dark"] .decrypto-round-history-panel { border-color: #344967; background: #1a2a40; }
html[data-theme="dark"] .decrypto-round-history-title { color: #9fc2f7; }
html[data-theme="dark"] .decrypto-round-history-table-wrap { border-color: #344967; background: #1a2a40; }
html[data-theme="dark"] .decrypto-round-history-table th { background: #203858; color: #c7ddff; }
html[data-theme="dark"] .decrypto-round-history-table th, html[data-theme="dark"] .decrypto-round-history-table td { border-color: #344967; color: #c5d3e4; }
html[data-theme="dark"] .decrypto-round-history-table td b { color: #e7effb; }
@media (max-width: 560px) {
  .decrypto-teams, .decrypto-score { grid-template-columns: 1fr; }
  .decrypto-round-history-table-wrap { overflow: visible; }
  .decrypto-round-history-table { min-width: 0; display: block; }
  .decrypto-round-history-table thead { display: none; }
  .decrypto-round-history-table tbody, .decrypto-round-history-table tr { display: grid; gap: 0; }
  .decrypto-round-history-table tr { padding: 5px 0; border-bottom: 1px solid #e1e8f2; }
  .decrypto-round-history-table tbody tr:last-child { border-bottom: 0; }
  .decrypto-round-history-table td { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 6px 8px; border-bottom: 0; white-space: normal; overflow-wrap: anywhere; }
  .decrypto-round-history-table td::before { content: attr(data-label); color: #71819a; font-weight: 800; }
  html[data-theme="dark"] .decrypto-round-history-table tr { border-color: #344967; }
  html[data-theme="dark"] .decrypto-round-history-table td::before { color: #9fb1c9; }
}
.the-mind-daily-ranking-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.the-mind-daily-ranking-heading h3 { margin: 0; color: #17365f; font-size: .95rem; }
.the-mind-daily-ranking-heading > span { color: #687c96; font-size: .76rem; }
#theMindDailyRanking { display: grid; gap: 6px; }
.the-mind-daily-rank-row { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e1e9f5; border-radius: 11px; background: #fff; }
.the-mind-daily-rank-number { color: #315a9f; font-size: .86rem; text-align: center; }
.the-mind-daily-rank-row > div { display: grid; gap: 3px; min-width: 0; }
.the-mind-daily-rank-row b { color: #17365f; font-size: .83rem; }
.the-mind-daily-rank-row small { color: #60748f; font-size: .76rem; line-height: 1.4; overflow-wrap: anywhere; }
.the-game-daily-ranking { display: grid; gap: 8px; padding: 12px; border: 1px solid #d9e4f4; border-radius: 16px; background: linear-gradient(145deg, #fff, #f2f6fd); }
.the-game-daily-ranking-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.the-game-daily-ranking-heading h3 { margin: 0; color: #17365f; font-size: .95rem; }
.the-game-daily-ranking-heading > span { color: #687c96; font-size: .76rem; }
#theGameDailyRanking { display: grid; gap: 6px; }
.the-game-daily-rank-row { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e1e9f5; border-radius: 11px; background: #fff; }
.the-game-daily-rank-number { color: #315a9f; font-size: .86rem; text-align: center; }
.the-game-daily-rank-row > div { display: grid; gap: 3px; min-width: 0; }
.the-game-daily-rank-row b { color: #17365f; font-size: .83rem; }
.the-game-daily-rank-row small { color: #60748f; font-size: .76rem; line-height: 1.4; overflow-wrap: anywhere; }
html[data-theme="dark"] .the-game-daily-ranking { border-color: #344967; background: linear-gradient(145deg, #18263a, #142033); }
html[data-theme="dark"] .the-game-daily-ranking-heading h3, html[data-theme="dark"] .the-game-daily-rank-row b { color: #e7effb; }
html[data-theme="dark"] .the-game-daily-ranking-heading > span, html[data-theme="dark"] .the-game-daily-rank-row small { color: #b5c4d8; }
html[data-theme="dark"] .the-game-daily-rank-row { border-color: #344967; background: #1b2b41; }
html[data-theme="dark"] .the-mind-daily-ranking { border-color: #344967; background: linear-gradient(145deg, #18263a, #142033); }
html[data-theme="dark"] .the-mind-daily-ranking-heading h3, html[data-theme="dark"] .the-mind-daily-rank-row b { color: #e7effb; }
html[data-theme="dark"] .the-mind-daily-ranking-heading > span, html[data-theme="dark"] .the-mind-daily-rank-row small { color: #b5c4d8; }
html[data-theme="dark"] .the-mind-daily-rank-row { border-color: #344967; background: #1b2b41; }
.game-lobby-ranking { display: grid; gap: 8px; padding: 12px; border: 1px solid #dfe7f3; border-radius: 14px; background: linear-gradient(135deg, #f7faff, #eef4fc); }
.game-lobby-ranking-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #244f93; }
.game-lobby-ranking-heading strong { font-size: .92rem; }
.game-lobby-ranking-heading small { color: #687c96; font-size: .74rem; font-weight: 700; }
.game-lobby-ranking-list { display: grid; gap: 6px; }
.game-lobby-rank-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 34px; padding: 6px 8px; border-radius: 10px; background: #fff; color: #243b5d; }
.game-lobby-rank-number { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #dfeafb; color: #315a9f; font-size: .75rem; font-weight: 800; }
.game-lobby-rank-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.game-lobby-rank-row span:last-child { color: #687c96; font-size: .76rem; white-space: nowrap; }
.game-lobby-rank-row span:last-child b { color: #315a9f; }
.game-lobby-ranking-empty { margin: 0; color: #687c96; font-size: .78rem; }
.game-lobby-ranking-note { margin: 2px 0 0; color: #7a8da5; font-size: .7rem; }
.sky-team-lobby-ranking { display: grid; gap: 10px; margin-bottom: 16px; padding: 14px; border: 1px solid #dfe7f3; border-radius: 16px; background: linear-gradient(135deg, #f7faff, #eef4fc); }
.sky-team-tournament-entry { display: flex; justify-content: flex-end; }
.sky-team-tournament-entry button, .sky-team-tournament-admin-actions button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: #315fa9; color: #fff; font-weight: 800; }
.sky-team-tournament-panel { display: grid; gap: 12px; padding: 16px; border: 1px solid #c8d9f0; border-radius: 18px; background: linear-gradient(145deg,#f8fbff,#eaf2ff); }
.sky-team-tournament-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sky-team-tournament-heading h2 { margin: 3px 0 0; color: #173661; font-size: 1.15rem; }
.omok-tournament-prize { display: flex; align-items: baseline; gap: 6px; margin: 5px 0 0; color: #60799e; font-size: .75rem; }
.omok-tournament-prize strong { color: #a56d13; font-size: .88rem; font-variant-numeric: tabular-nums; }
.sky-team-tournament-heading > div { min-width: 0; }
.sky-team-tournament-heading > button { flex: 0 0 auto; min-height: 40px; padding: 0 12px; white-space: nowrap; }
.sky-team-tournament-heading .eyebrow { color: #426eaf; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.sky-team-tournament-join { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.sky-team-tournament-join > button { min-height: 40px; padding: 0 18px; }
.sky-team-tournament-join label { display: grid; gap: 5px; min-width: 130px; color: #29415f; font-size: .78rem; font-weight: 700; }
.sky-team-tournament-join select { min-height: 40px; padding: 0 10px; border: 1px solid #cbd9eb; border-radius: 10px; background: #fff; color: #173661; }
.sky-team-tournament-participants, .sky-team-tournament-teams { display: grid; gap: 8px; }
.sky-team-tournament-participants h4, .sky-team-tournament-teams h4 { margin: 0; color: #294b7b; font-size: .85rem; }
.sky-team-tournament-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.sky-team-tournament-chip { padding: 6px 10px; border: 1px solid #d5e1f0; border-radius: 999px; background: rgba(255,255,255,.85); color: #284365; font-size: .78rem; font-weight: 700; }
.sky-team-tournament-chip small { margin-left: 4px; color: #637895; }
.sky-team-tournament-chip.is-me { border-color: #4d7dc0; background: #e4efff; }
.sky-team-tournament-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #d5e1f0; border-radius: 12px; background: rgba(255,255,255,.78); }
.sky-team-tournament-team > div { display: grid; gap: 4px; min-width: 0; }
.sky-team-tournament-team strong { color: #1e3656; font-size: .84rem; }
.sky-team-tournament-team small { color: #667c98; font-size: .72rem; }
.sky-team-tournament-team button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; }
.sky-team-tournament-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sky-team-tournament-admin-actions button { flex: 0 0 auto; width: auto; }
.sky-team-tournament-admin-actions button:disabled, .sky-team-tournament-join button:disabled { opacity: .58; }
.sky-team-tournament-admin-actions .secondary-button { background: #e8eef9; color: #315a9f; }
.sky-team-tournament-settings-summary { margin: 0; color: #31527e; font-size: .84rem; font-weight: 700; }
.sky-team-tournament-settings-editor { display: grid; gap: 12px; padding: 14px; border: 1px solid #cddcf0; border-radius: 14px; background: rgba(255,255,255,.8); }
.sky-team-tournament-settings-editor > label { display: grid; gap: 6px; color: #29415f; font-size: .84rem; font-weight: 700; }
.sky-team-tournament-settings-editor select { min-height: 40px; padding: 0 10px; border: 1px solid #cbd9eb; border-radius: 10px; background: #fff; color: #173661; }
.sky-team-tournament-settings-editor fieldset { min-width: 0; margin: 0; padding: 10px; border: 1px solid #d5e1f0; border-radius: 10px; }
.sky-team-tournament-settings-editor legend { color: #294b7b; font-size: .84rem; font-weight: 800; }
.sky-team-tournament-module-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.sky-team-tournament-module-choices .sky-team-module-choice { position: relative; display: flex; align-items: center; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #d5e1f0; border-radius: 10px; background: #fff; color: #29415f; font-size: .78rem; cursor: pointer; }
.sky-team-tournament-module-choices .sky-team-module-choice > span { min-width: 0; overflow-wrap: anywhere; }
.sky-team-tournament-module-choices .sky-team-module-choice.is-incompatible { opacity: .5; cursor: not-allowed; }
@media (max-width: 360px) { .sky-team-tournament-module-choices { grid-template-columns: minmax(0,1fr); } }
.sky-team-tournament-settings-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sky-team-tournament-settings-actions button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 16px; white-space: nowrap; }
.sky-team-lobby-ranking-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #244f93; }
.sky-team-lobby-ranking-heading strong { font-size: .96rem; }
.sky-team-lobby-ranking-heading small { color: #687c96; font-size: .72rem; font-weight: 700; }
.sky-team-lobby-ranking-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sky-team-lobby-ranking-card { display: grid; gap: 7px; min-width: 0; padding: 10px; border: 1px solid #d8e3f2; border-radius: 12px; background: rgba(255,255,255,.72); }
.sky-team-lobby-ranking-card h3 { margin: 0; color: #315a9f; font-size: .82rem; }
.sky-team-lobby-ranking-card .game-lobby-rank-row { padding: 5px 6px; }
.sky-team-lobby-ranking-card .game-lobby-rank-row span:last-child { font-size: .68rem; }
html[data-theme="dark"] .game-lobby-ranking { border-color: #30435d; background: linear-gradient(135deg, #1b2a40, #172336); }
html[data-theme="dark"] .game-lobby-rank-row { background: #22324a; color: #e8f0fb; }
html[data-theme="dark"] .sky-team-lobby-ranking { border-color: #30435d; background: linear-gradient(135deg, #1b2a40, #172336); }
html[data-theme="dark"] .sky-team-tournament-panel { border-color: #354e70; background: linear-gradient(145deg,#1b2b41,#17263a); }
html[data-theme="dark"] .sky-team-tournament-heading h2, html[data-theme="dark"] .sky-team-tournament-team strong { color: #e3edff; }
html[data-theme="dark"] .omok-tournament-prize { color: #afc1d9; }
html[data-theme="dark"] .omok-tournament-prize strong { color: #f1c86e; }
html[data-theme="dark"] .sky-team-tournament-join label { color: #d3e0f4; }
html[data-theme="dark"] .sky-team-tournament-join select { border-color: #415a7a; background: #17263a; color: #e6efff; }
html[data-theme="dark"] .sky-team-tournament-chip { border-color: #405571; background: #233750; color: #dbe8fc; }
html[data-theme="dark"] .sky-team-tournament-chip small, html[data-theme="dark"] .sky-team-tournament-team small { color: #adbed6; }
html[data-theme="dark"] .sky-team-tournament-chip.is-me { border-color: #628bc2; background: #27456b; }
html[data-theme="dark"] .sky-team-tournament-team { border-color: #405571; background: rgba(35,55,80,.78); }
html[data-theme="dark"] .sky-team-tournament-team button[data-sky-team-tournament-room]:not(:disabled) { border-color:#6d91c5; background:#315b91; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.22); }
html[data-theme="dark"] .sky-team-tournament-settings-summary, html[data-theme="dark"] .sky-team-tournament-settings-editor > label, html[data-theme="dark"] .sky-team-tournament-settings-editor legend, html[data-theme="dark"] .sky-team-tournament-module-choices .sky-team-module-choice { color: #d3e0f4; }
html[data-theme="dark"] .sky-team-tournament-settings-editor { border-color: #405571; background: #203249; }
html[data-theme="dark"] .sky-team-tournament-settings-editor fieldset, html[data-theme="dark"] .sky-team-tournament-module-choices .sky-team-module-choice { border-color: #405571; }
html[data-theme="dark"] .sky-team-tournament-module-choices .sky-team-module-choice { background: #17263a; }
html[data-theme="dark"] .sky-team-tournament-settings-editor select { border-color: #415a7a; background: #17263a; color: #e6efff; }
html[data-theme="dark"] .sky-team-tournament-admin-actions .secondary-button { background: #25354d; color: #dce8ff; }
html[data-theme="dark"] .sky-team-lobby-ranking-heading, html[data-theme="dark"] .sky-team-lobby-ranking-card h3 { color: #b7d1fa; }
html[data-theme="dark"] .sky-team-lobby-ranking-heading small { color: #b4c1d5; }
html[data-theme="dark"] .sky-team-lobby-ranking-card { border-color: #384b68; background: rgba(34,50,74,.78); }
@media (max-width: 520px) { .sky-team-lobby-ranking-columns { grid-template-columns: 1fr; } }
.omok-lobby-list { display: grid; gap: 6px; }
.omok-lobby-card { display: grid; gap: 5px; padding: 10px 12px; border: 1px solid #dfe7f3; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(39,65,103,.05); }
.omok-lobby-card-header, .omok-lobby-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-lobby-room-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.holdem-lobby-entry { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.omok-lobby-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.omok-lobby-card-meta > small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omok-lobby-players { color: #243b5d !important; font-size: .88rem !important; font-weight: 700; letter-spacing: -.01em; }
.omok-lobby-card-meta .omok-lobby-card-actions { flex: 0 0 auto; margin-top: 0; }
.omok-lobby-state { font-weight: 700; }
.omok-lobby-state.is-my-turn { color: #2f8f58; }
.game-lobby-turn-time { margin-right: .35rem; color: #c65327; font-size: .9em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.omok-lobby-state.is-opponent-turn { color: #b57a1d; }
.omok-lobby-state.is-waiting { color: #6b7d95; }
.omok-lobby-card-header strong { color: #244f93; letter-spacing: .12em; }
.omok-lobby-card small { color: #687c96; font-size: .76rem; }
.omok-lobby-card-actions { gap: 6px; }
.omok-lobby-card-actions button { min-width: 72px; min-height: 36px; padding: 0 14px; font-size: .78rem; white-space: nowrap; }
.omok-invite-code { width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 12px; border: 1px solid #cbd9ee; border-radius: 13px; background: #f4f8ff; text-align: left; }
#janggiInviteCode { margin-bottom: 14px; }
.omok-chat-fab { position: fixed; right: 18px; bottom: 22px; z-index: 80; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #315fa8; color: #fff; font-size: 1.35rem; box-shadow: 0 8px 22px rgba(27,61,111,.3); }
.omok-chat-unread { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #e5484d; }
.omok-chat-panel { position: fixed; left: 50%; bottom: 0; z-index: 79; width: min(100%, 520px); height: min(62vh, 520px); height: min(62dvh, 520px); display: flex; flex-direction: column; overflow: hidden; transform: translate(-50%, 105%); transition: transform .24s ease; border: 1px solid #dbe5f2; border-bottom: 0; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(28,55,95,.18); }
.omok-chat-panel:not(.is-open) { display: none; visibility: hidden; pointer-events: none; transform: translate(-50%, calc(100% + 24px)); }
.omok-chat-panel:not(.is-open) .omok-chat-messages { overflow: hidden; }
.omok-chat-panel.is-open { display: flex; transform: translate(-50%, 0); }
.omok-chat-fab { z-index: 120; }
.omok-chat-panel { z-index: 119; }
.omok-chat-header { position: relative; z-index: 1; display:flex; align-items:center; justify-content:space-between; padding: 14px 16px; border-bottom: 1px solid #e3eaf4; color: #17365f; }
.omok-chat-header button { position: relative; z-index: 2; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #55708f; font-size: 1.5rem; cursor: pointer; pointer-events: auto; }
.omok-chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 14px 16px; }
.omok-chat-message { align-self: flex-start; max-width: 88%; padding: 8px 10px; border-radius: 10px; background: #f1f5fb; color: #233d61; }
.omok-chat-message.is-mine { align-self: flex-end; background: #315fa8; color: #fff; text-align: right; }
.omok-chat-message strong { display:block; margin-bottom: 2px; font-size: .72rem; color: #54729a; }
.omok-chat-message span { white-space: pre-wrap; word-break: break-word; font-size: .86rem; }
.omok-chat-message.is-mine strong { color: #d9e8ff; }
.omok-chat-form { display:flex; gap: 8px; padding: 12px; border-top: 1px solid #e3eaf4; }
.omok-chat-form input { flex:1; min-width:0; border:1px solid #cbd8e9; border-radius: 9px; padding: 10px; }
.omok-chat-form button { flex:0 0 auto; padding: 0 14px; border:0; border-radius: 9px; background:#315fa8; color:#fff; font-weight:700; }
.game-chat-fab { position: fixed; right: 18px; bottom: 22px; z-index: 1000; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #315fa8; color: #fff; font-size: 1.35rem; box-shadow: 0 8px 22px rgba(27,61,111,.3); cursor: pointer; }
.game-chat-unread { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: #e5484d; color: #fff; font-style: normal; font-size: .82rem; font-weight: 900; line-height: 1; box-shadow: 0 2px 8px rgba(155,24,40,.45); animation: game-chat-unread-pulse 1.25s ease-in-out infinite; }
.game-chat-unread::after { content: "!"; }
@keyframes game-chat-unread-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.game-chat-backdrop { position: fixed; inset: 0; z-index: 998; visibility: hidden; background: rgba(10, 22, 40, .48); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.game-chat-backdrop.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.game-chat-panel { position: fixed; left: 50%; bottom: 0; z-index: 999; width: min(100%, 520px); height: min(62vh, 520px); height: min(62dvh, 520px); display: flex; flex-direction: column; transform: translate(-50%, 105%); transition: transform .24s ease; border: 1px solid #dbe5f2; border-bottom: 0; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(28,55,95,.18); }
.game-chat-panel:not(.is-open) { visibility: hidden; pointer-events: none; transform: translate(-50%, calc(100% + 24px)); }
.game-chat-panel.is-open { transform: translate(-50%, 0); }
.game-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e3eaf4; color: #17365f; }
.game-chat-header button { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #55708f; font-size: 1.5rem; cursor: pointer; }
.game-chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 14px 16px; }
.game-chat-message { align-self: flex-start; max-width: 88%; padding: 8px 10px; border-radius: 10px; background: #f1f5fb; color: #233d61; }
.game-chat-message.is-mine { align-self: flex-end; background: #315fa8; color: #fff; text-align: right; }
.game-chat-message strong { display: block; margin-bottom: 2px; font-size: .72rem; color: #54729a; }
.game-chat-message span { white-space: pre-wrap; word-break: break-word; font-size: .86rem; }
.game-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e3eaf4; }
.game-chat-new-message { align-self: center; flex: 0 0 auto; margin: 0 12px 4px; padding: 5px 12px; border: 1px dashed #8da9d0; border-radius: 999px; background: #f4f8ff; color: #315fa8; font-size: .76rem; font-weight: 800; cursor: pointer; }
.game-chat-new-message.hidden { display: none; }
.game-chat-form input { flex: 1; min-width: 0; border: 1px solid #cbd8e9; border-radius: 9px; padding: 10px; }
.game-chat-form button { flex: 0 0 auto; padding: 0 14px; border: 0; border-radius: 9px; background: #315fa8; color: #fff; font-weight: 700; cursor: pointer; }
@media (max-width: 1023px) {
  .game-chat-panel[data-game-chat-panel="sky-team"].is-open {
    bottom: var(--sky-chat-bottom, 0px);
    max-height: var(--sky-chat-visible-height, 100dvh);
    transition: none;
  }
  .game-chat-panel[data-game-chat-panel="sky-team"] .game-chat-header,
  .game-chat-panel[data-game-chat-panel="sky-team"] .game-chat-form { flex-shrink: 0; }
  .game-chat-panel[data-game-chat-panel="sky-team"] .game-chat-messages { min-height: 0; overscroll-behavior: contain; }
  .game-chat-panel[data-game-chat-panel="sky-team"] .game-chat-form input { font-size: 16px; }
}
html[data-theme="dark"] .game-chat-panel { border-color: #2f3e53; background: #151e2c; box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
html[data-theme="dark"] .game-chat-header { border-color: #2f3e53; color: #edf3fc; }
html[data-theme="dark"] .game-chat-message { background: #202d40; color: #eaf1fb; }
html[data-theme="dark"] .game-chat-message.is-mine { background: #3e70b8; color: #fff; }
html[data-theme="dark"] .game-chat-message.is-mine strong { color: #e7f0ff; }
html[data-theme="dark"] .game-chat-message strong { color: #9ebce5; }
html[data-theme="dark"] .game-chat-form { border-color: #2f3e53; }
html[data-theme="dark"] .game-chat-new-message { border-color: #6385b4; background: #1b2738; color: #bcd4fa; }
html[data-theme="dark"] .game-chat-form input { border-color: #3a4d68; background: #1b2738; color: #edf3fc; }
/* 모든 게임방 채팅은 같은 말풍선 규칙을 사용합니다. */
.game-chat-message, .omok-chat-message { align-self: flex-start; width: fit-content; max-width: min(88%, 420px); padding: 9px 11px; border-radius: 12px; background: #f1f5fb; color: #233d61; text-align: left; overflow-wrap: anywhere; }
.game-chat-message.is-mine, .omok-chat-message.is-mine { align-self: flex-end; background: #315fa8; color: #fff; text-align: right; }
.game-chat-time { display: block; margin-bottom: 2px; color: #7890ad; font-size: .65rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.game-chat-message.is-mine .game-chat-time { color: #d2e2fb; }
.game-chat-message strong, .omok-chat-message strong { display: block; margin-bottom: 3px; color: #54729a; font-size: .72rem; font-weight: 800; }
.game-chat-message.is-mine strong, .omok-chat-message.is-mine strong { color: #d9e8ff; }
.game-chat-message span, .omok-chat-message span { display: block; white-space: pre-wrap; word-break: break-word; font-size: .86rem; line-height: 1.4; }
html[data-theme="dark"] .game-chat-message, html[data-theme="dark"] .omok-chat-message { background: #202d40; color: #eaf1fb; }
html[data-theme="dark"] .game-chat-message.is-mine, html[data-theme="dark"] .omok-chat-message.is-mine { background: #3e70b8; color: #fff; }
html[data-theme="dark"] .game-chat-message.is-mine strong, html[data-theme="dark"] .omok-chat-message.is-mine strong { color: #ffffff; }
html[data-theme="dark"] .game-chat-time { color: #a8bad3; }
html[data-theme="dark"] .game-chat-message.is-mine .game-chat-time { color: #d2e2fb; }
.omok-chat-panel { width: min(100%, 520px); height: min(62vh, 520px); height: min(62dvh, 520px); border: 1px solid #dbe5f2; border-bottom: 0; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(28,55,95,.18); }
.omok-chat-header { padding: 14px 16px; border-bottom: 1px solid #e3eaf4; color: #17365f; }
.omok-chat-messages { gap: 9px; padding: 14px 16px; }
.omok-chat-form { gap: 8px; padding: 12px; border-top: 1px solid #e3eaf4; }
.omok-chat-form input { flex: 1; min-width: 0; padding: 10px; border: 1px solid #cbd8e9; border-radius: 9px; }
.omok-chat-form button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: #315fa8; color: #fff; font-weight: 700; }
html[data-theme="dark"] .omok-chat-panel { border-color: #2f3e53; background: #151e2c; box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
html[data-theme="dark"] .omok-chat-header { border-color: #2f3e53; color: #edf3fc; }
html[data-theme="dark"] .omok-chat-form { border-color: #2f3e53; }
html[data-theme="dark"] .omok-chat-form input { border-color: #3a4d68; background: #1b2738; color: #edf3fc; }
body.game-chat-open {
  position: fixed;
  top: var(--game-chat-scroll-position, 0);
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.omok-chat-fab { z-index: 1000; }
.omok-chat-panel { z-index: 999; }
.omok-invite-code span, .omok-invite-code small { color: #60748f; font-size: .72rem; }
/* 넓은 화면의 공용 채팅은 우측 전체 높이 패널로 표시합니다. 모바일은 기존 하단 팝업 유지. */
@media (min-width: 1024px) {
  .game-chat-backdrop { display: none !important; }
  .game-chat-panel, .omok-chat-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: clamp(280px, 24vw, 340px);
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
    border: 0;
    border-left: 1px solid #dbe5f2;
    border-radius: 0;
    transform: translateX(105%);
    box-shadow: -10px 0 30px rgba(28,55,95,.18);
  }
  .game-chat-panel:not(.is-open), .omok-chat-panel:not(.is-open) { transform: translateX(105%); }
  .game-chat-panel.is-open, .omok-chat-panel.is-open { transform: translateX(0); }
  .game-chat-header, .omok-chat-header, .game-chat-form, .omok-chat-form { flex-shrink: 0; }
  .game-chat-messages, .omok-chat-messages { min-height: 0; overscroll-behavior: contain; }
  .game-chat-form, .omok-chat-form { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  html[data-theme="dark"] .game-chat-panel, html[data-theme="dark"] .omok-chat-panel { box-shadow: -10px 0 30px rgba(0,0,0,.4); }
}
.omok-invite-code span { text-align: left; white-space: nowrap; }
.omok-invite-code strong { color: #244f93; font-size: 1.15rem; letter-spacing: .16em; text-align: left; }
.omok-invite-code small { grid-column: 1 / -1; }
.omok-invite-status { min-height: 1.2em; color: #3565ad !important; font-weight: 700; }
.omok-players { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 8px; }
.omok-title-row { display: flex; align-items: center; gap: 8px; }
.omok-title-row h2 { margin: 0; }
.omok-rules-button { display: inline-grid; place-items: center; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 1px solid #c8d8ee; border-radius: 50%; background: #eef4fc; color: #315a9f; font-size: .95rem; font-weight: 900; line-height: 1; }
.omok-rules-button:hover, .omok-rules-button:focus-visible { background: #315a9f; color: #fff; }
.omok-rules-tooltip { max-width: 520px; max-height: min(82vh, 620px); overflow-y: auto; }
.omok-rules-tooltip h3 { margin: 14px 0 6px; color: #13294b; font-size: 1rem; }
.omok-rules-tooltip ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: #52647e; line-height: 1.55; }
#skyTeamRulesTooltip { place-items: center; padding: 12px; }
#skyTeamRulesTooltip .sky-team-rules-content { display: flex; flex-direction: column; gap: 12px; width: min(100%, 560px); max-height: min(650px, calc(100dvh - 24px)); overflow: hidden; border-radius: 20px; }
#skyTeamRulesTooltip .modal-header { flex: none; width: 100%; gap: 12px; margin: 0; }
#skyTeamRulesTooltip .modal-header h2 { min-width: 0; text-align: left; font-size: 1.15rem; }
#skyTeamRulesTooltip .modal-header .close-button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 0; line-height: 1; }
.sky-team-rules-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sky-team-rules-scroll:focus-visible { outline-offset: -2px; }
.sky-team-rules-table { width: 100%; table-layout: fixed; border-spacing: 0; text-align: left; font-size: .875rem; line-height: 1.5; }
.sky-team-rules-table th,.sky-team-rules-table td { padding: 9px 8px; border-bottom: 1px solid #d7e1eb; vertical-align: top; overflow-wrap: anywhere; }
.sky-team-rules-table th:first-child { width: clamp(74px, 25%, 118px); }
.sky-team-rules-table thead th { position: sticky; top: 0; background: #edf3fb; }
html[data-theme="dark"] .sky-team-rules-table th,html[data-theme="dark"] .sky-team-rules-table td { border-color: #40536a; }
html[data-theme="dark"] .sky-team-rules-table thead th { background: #29374a; }
.omok-player { display: grid; gap: 4px; padding: 10px; border: 1px solid #dfe7f3; border-radius: 12px; background: #f8fafd; }
.omok-player b { color: #667b98; font-size: .72rem; }.omok-player strong { color: #13294b; font-size: .85rem; }.omok-player.is-turn { border-color: #416cae; background: #edf4ff; }
.kamisado-player-indicator { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border: 1px solid #9aa8ba; border-radius: 50%; vertical-align: -1px; box-sizing: border-box; }
.kamisado-player-indicator.p1 { background: #fff; }
.kamisado-player-indicator.p2 { background: #151515; border-color: #151515; }
.omok-records.is-my-turn { color: #e5484d; font-weight: 800; animation: game-turn-alert 1s ease-in-out infinite; }.omok-records.is-opponent-turn { color: #7b8798; }
.omok-player-record { color: #60748f; font-size: .72rem; font-weight: 700; }
.game-turn-timeout { display: block; min-height: 1.1em; color: #c65327; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.game-turn-timeout.is-active { color: #d13b32; animation: game-turn-alert 1s ease-in-out infinite; }
html[data-theme="dark"] .game-turn-timeout { color: #ffad83; }
.omok-records { min-height: 20px; margin: 8px 0; color: #526983; font-size: .78rem; text-align: center; }
#othelloGameRoom > .omok-records { min-height: 0; margin: 0; }
#kamisadoGameRoom > .omok-records { min-height: 0; margin: 0; }
.omok-game-actions { display: flex; gap: 8px; min-height: 42px; margin: 12px 0; }.omok-game-actions button { flex: 1; min-height: 42px; }
.othello-turn-status { width: 100%; min-height: 20px; margin: 4px 0 8px; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; font-size: .8rem; font-weight: 800; }
.othello-game-actions { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 8px; min-height: 42px; }
.othello-game-actions > button { width: 100%; min-width: 0; }
/* 준비 버튼도 게임 시작 버튼과 동일한 기본 색상을 사용합니다. */
.othello-game-actions button[id$="Ready"], .janggi-players-card #janggiReadyButton { background: #315a9f; color: #fff; }
.othello-turn-status.is-my-turn { color: #e5484d; animation: game-turn-alert 1s ease-in-out infinite; }
.othello-turn-status.is-opponent-turn { color: #8a5a00; }
.othello-turn-status.is-neutral { color: #60748f; }
.othello-turn-status.is-error { color: #d93036; font-weight: 900; }
#kamisadoGameRoom > .othello-turn-status { margin-top: 0; margin-bottom: 4px; }
#kamisadoGameRoom > .kamisado-board { margin-top: 16px; }
.othello-player-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.othello-stone-count { flex: 0 0 auto; color: #315a9f; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.omok-board { display: grid; grid-template-columns: repeat(15, 1fr); aspect-ratio: 1; padding: 0; border: 8px solid #b98143; background-color: #ddb879; background-image: linear-gradient(to right, rgba(76,49,20,.62) 0 1px, transparent 1px), linear-gradient(to bottom, rgba(76,49,20,.62) 0 1px, transparent 1px); background-size: calc(100% / 15) calc(100% / 15); background-position: calc(100% / 30) calc(100% / 30); }
.omok-board-status { min-height: 1.35em; margin: 10px 0 6px; color: #d43d45; font-size: .82rem; font-weight: 800; line-height: 1.35; text-align: center; }
.omok-cell { position: relative; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }.omok-cell:disabled { opacity: 1; cursor: default; }.omok-cell.black::after, .omok-cell.white::after { content: ""; position: absolute; width: 74%; height: 74%; top: 13%; left: 13%; border-radius: 50%; }.omok-cell.black::after { background: #151515; box-shadow: inset 2px 2px 4px #555; }.omok-cell.white::after { background: #fff; box-shadow: inset -2px -2px 4px #aaa; }.omok-move-number { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: clamp(.56rem, 1.8vw, .82rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; }.omok-cell.white .omok-move-number { color: #111827; }.omok-cell.last-move::before { content: ""; position: absolute; z-index: 2; top: 7%; left: 7%; width: 86%; height: 86%; border: 2px solid #e14b3f; border-radius: 50%; box-sizing: border-box; }
html[data-theme="dark"] .balance-game-case { border-color: #2f3e53; background: #1a2230; box-shadow: none; }
html[data-theme="dark"] .omok-game-room { border-color: #2f3e53; background: #1a2230; box-shadow: none; } html[data-theme="dark"] .omok-player { border-color: #2f3e53; background: #141c29; } html[data-theme="dark"] .omok-player strong { color: #edf2fa; } html[data-theme="dark"] .omok-invite-code { border-color: #5275a5; background: #1e3554; } html[data-theme="dark"] .omok-invite-code span { color: #d7e6fb; } html[data-theme="dark"] .omok-invite-code strong { color: #ffffff; } html[data-theme="dark"] .omok-invite-code small { color: #c3d7f1; }
html[data-theme="dark"] .omok-lobby-card { border-color: #2f3e53; background: #1a2230; box-shadow: none; } html[data-theme="dark"] .omok-lobby-card-header strong { color: #a9c9fa; } html[data-theme="dark"] .omok-lobby-card small { color: #aebdd1; } html[data-theme="dark"] .omok-lobby-players { color: #f1f5fb !important; } html[data-theme="dark"] .omok-lobby-state.is-my-turn { color: #78d69b; } html[data-theme="dark"] .omok-lobby-state.is-opponent-turn { color: #f2c66d; } html[data-theme="dark"] .omok-lobby-state.is-waiting { color: #b4c2d5; } html[data-theme="dark"] .omok-chat-panel { border-color:#2f3e53; background:#151e2c; box-shadow:0 -10px 30px rgba(0,0,0,.4); } html[data-theme="dark"] .omok-chat-header { border-color:#2f3e53; color:#edf3fc; } html[data-theme="dark"] .omok-chat-message { background:#202d40; color:#eaf1fb; } html[data-theme="dark"] .omok-chat-message.is-mine { background:#3e70b8; color:#fff; } html[data-theme="dark"] .omok-chat-message strong { color:#9ebce5; } html[data-theme="dark"] .omok-chat-message.is-mine strong { color:#e7f0ff; } html[data-theme="dark"] .omok-chat-form { border-color:#2f3e53; } html[data-theme="dark"] .omok-chat-form input { border-color:#3a4d68; background:#1b2738; color:#edf3fc; }
html[data-theme="dark"] .omok-player-record { color: #aebdd1; }
html[data-theme="dark"] .sky-team-role-select { border-color: #526b8d; background: #1e2d43; color: #c9dcf7; }
html[data-theme="dark"] .sky-team-player-record { color: #aebdd1; }
html[data-theme="dark"] .omok-board-status { color: #ff858e; }
.omok-chat-fab { z-index: 1000; cursor: pointer; }
.omok-chat-fab { position: fixed !important; right: 18px !important; bottom: 22px !important; left: auto !important; top: auto !important; }
#omokChatFab { position: fixed !important; right: 18px !important; bottom: 22px !important; left: auto !important; top: auto !important; }
.omok-chat-panel { z-index: 999; }
#omokChatPanel:not(.is-open) { display: none; }
#omokChatPanel.is-open { display: flex; }
html[data-theme="dark"] .omok-rules-button { border-color: #49617f; background: #202e42; color: #c4dcff; }
html[data-theme="dark"] .omok-rules-button:hover, html[data-theme="dark"] .omok-rules-button:focus-visible { background: #527ab5; color: #fff; }
html[data-theme="dark"] .omok-rules-tooltip h3 { color: #edf2fa; }
html[data-theme="dark"] .omok-rules-tooltip ul { color: #c3cede; }
html[data-theme="dark"] .othello-turn-status.is-my-turn { color: #8de0b4; }
html[data-theme="dark"] .othello-turn-status.is-opponent-turn { color: #ffd479; }
html[data-theme="dark"] .othello-turn-status.is-neutral { color: #b5c4d8; }
html[data-theme="dark"] .othello-turn-status.is-error { color: #ff777d; }
html[data-theme="dark"] .othello-stone-count { color: #9cc4ff; }
html[data-theme="dark"] .othello-turn-status.is-my-turn, html[data-theme="dark"] .omok-records.is-my-turn { color: #ff7b80; } html[data-theme="dark"] .omok-records.is-opponent-turn { color: #ffd479; } html[data-theme="dark"] .omok-player.is-turn { border-color: #5b8fd4; background: #203452; }
html[data-theme="dark"] .omok-invite-status { color: #a9c9ff !important; }
html[data-theme="dark"] .balance-game-case h3 { color: #edf2fa; }
html[data-theme="dark"] .balance-game-case > p { color: #c2cede; }
html[data-theme="dark"] .balance-game-choice { border-color: #40516a; background: #141c29; color: #edf2fa; }
html[data-theme="dark"] .balance-game-choice:not(:disabled):hover, html[data-theme="dark"] .balance-game-choice:not(:disabled):focus-visible { border-color: #75a5f3; background: #253247; }
html[data-theme="dark"] .balance-game-choice small { color: #aebdd1; }
html[data-theme="dark"] .balance-game-choice-bar { background: #34445b; }
.mystery-game-case h3 { margin: 6px 0 10px; color: #13294b; font-size: 1.2rem; }
.mystery-game-case > p { margin: 0 0 18px; color: #536981; line-height: 1.65; white-space: pre-line; }
.mystery-game-character-stage { display: block; touch-action: pan-y; }
.mystery-game-characters { min-width: 0; display: grid; gap: 10px; }
.mystery-game-character { padding: 14px; border: 1px solid #dfe7f3; border-radius: 14px; background: #f7f9fc; color: #13294b; text-align: left; user-select: none; }
.mystery-game-character:not(.is-active) { display: none; }
.mystery-game-character.is-slide-next { animation: mystery-character-slide-next .24s ease-out both; }
.mystery-game-character.is-slide-prev { animation: mystery-character-slide-prev .24s ease-out both; }
@keyframes mystery-character-slide-next { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mystery-character-slide-prev { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .mystery-game-character.is-slide-next, .mystery-game-character.is-slide-prev { animation: none; }
}
.mystery-game-character-select { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.mystery-game-character-heading { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 10px; margin-bottom: 10px; }
.mystery-game-character-heading strong { min-width: 0; text-align: center; }
.mystery-game-accuse-button { width: 100%; min-height: 42px; margin-top: 12px; border: 1px solid #315a9f; border-radius: 10px; background: #315a9f; color: #fff; font-size: .88rem; font-weight: 800; }
.mystery-game-accuse-button:disabled { opacity: .55; }
.mystery-game-character strong { display: block; }
.mystery-game-character strong { font-size: 1rem; }
.mystery-game-character-line { display: block; margin-top: 8px; padding-top: 8px; color: #728198; font-size: .82rem; line-height: 1.5; text-align: left; }
.mystery-game-character-line + .mystery-game-character-line { border-top: 1px solid #e1e8f2; }
.mystery-game-character-line b { display: block; margin-bottom: 3px; }
.mystery-game-character-line > span { display: block; }
.mystery-game-character-line b { color: #315a9f; font-weight: 800; }
.mystery-game-questions { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e1e8f2; }
.mystery-game-question-button { width: 100%; padding: 8px 10px; border: 1px solid #d6e0ee; border-radius: 9px; background: #fff; color: #315a9f; font-size: .78rem; font-weight: 700; text-align: left; }
.mystery-game-question-answer { margin: 5px 10px 8px; color: #536981; font-size: .8rem; line-height: 1.55; white-space: pre-line; }
.mystery-game-character-side-button { width: 38px; height: 42px; border: 1px solid #d6e0ee; border-radius: 9px; background: #edf4ff; color: #315a9f; font-size: 1.35rem; line-height: 1; }
.mystery-game-result { margin-top: 16px; padding: 14px; border-radius: 14px; background: #edf4ff; color: #244f93; line-height: 1.6; }
.mystery-game-result.is-failed { background: #fff0ef; color: #b42318; border: 1px solid #f3b8b4; }
.mystery-game-result strong { display: block; margin-bottom: 4px; }
.mystery-game-result-explanation { margin: 0; white-space: pre-line; overflow-wrap: anywhere; word-break: keep-all; }
.mystery-game-share-button { min-height: 36px; padding: 0 13px; border: 1px solid #315a9f; border-radius: 9px; background: #315a9f; color: #fff; font-size: .78rem; font-weight: 800; }
.mystery-game-share-message { min-height: 18px; margin: 5px 0 8px; color: #187548; font-size: .74rem; font-weight: 700; }
.mystery-game-share-message:not(.is-success) { color: #b42318; }
.mystery-game-history { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e1e8f2; }
.mystery-game-history h4 { margin: 0 0 9px; color: #13294b; font-size: .95rem; }
.mystery-game-history-list { display: grid; gap: 6px; }
.mystery-game-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: #f7f9fc; color: #536981; font-size: .78rem; }
.mystery-game-history-row strong { overflow: hidden; color: #13294b; text-overflow: ellipsis; white-space: nowrap; }
.mystery-game-history-result { padding: 2px 7px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.mystery-game-history-result.correct { background: #d9f4e5; color: #187548; }
.mystery-game-history-result.failed { background: #fee4e2; color: #b42318; }
.mystery-game-history-row time { color: #8794a7; font-size: .7rem; }
.mystery-game-history-empty { margin: 0; color: #8794a7; font-size: .78rem; }
html[data-theme="dark"] .mystery-game-case { border-color: #2f3e53; background: #1a2230; box-shadow: none; }
html[data-theme="dark"] .mystery-game-case h3, html[data-theme="dark"] .mystery-game-character { color: #edf2fa; }
html[data-theme="dark"] .mystery-game-date { color: #aebdd1; }
html[data-theme="dark"] .mystery-game-character { border-color: #34445b; background: #141c29; }
html[data-theme="dark"] .mystery-game-questions { border-color: #34445b; }
html[data-theme="dark"] .mystery-game-question-button { border-color: #40516a; background: #253247; color: #b9d2ff; }
html[data-theme="dark"] .mystery-game-question-answer { color: #c2cede; }
html[data-theme="dark"] .mystery-game-accuse-button { border-color: #75a5f3; background: #3d67ae; color: #fff; }
html[data-theme="dark"] .mystery-game-character-side-button { border-color: #40516a; background: #253247; color: #b9d2ff; }
html[data-theme="dark"] .mystery-game-case > p, html[data-theme="dark"] .mystery-game-character-line { color: #c2cede; }
html[data-theme="dark"] .mystery-game-character-line + .mystery-game-character-line { border-color: #34445b; }
html[data-theme="dark"] .mystery-game-character-line b { color: #9fc2ff; }
html[data-theme="dark"] .mystery-game-result { background: #1e3554; color: #d7e5ff; }
html[data-theme="dark"] .mystery-game-result.is-failed { background: #47252a; color: #ffb8b5; border-color: #8e4246; }
html[data-theme="dark"] .mystery-game-share-button { border-color: #75a5f3; background: #3d67ae; }
html[data-theme="dark"] .mystery-game-history { border-color: #34445b; }
html[data-theme="dark"] .mystery-game-history h4, html[data-theme="dark"] .mystery-game-history-row strong { color: #edf2fa; }
html[data-theme="dark"] .mystery-game-history-row { background: #141c29; color: #b4c2d7; }
html[data-theme="dark"] .mystery-game-history-row time, html[data-theme="dark"] .mystery-game-history-empty { color: #9eafc5; }
html[data-theme="dark"] .mystery-game-timeline-button { border-color: #4a6d9f; background: #1e3554; color: #cfe0ff; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
html[data-theme="dark"] .mystery-game-timeline-backdrop { background: rgba(0, 0, 0, .58); }
html[data-theme="dark"] .mystery-game-timeline-layer { background: #141c29; color: #edf2fa; box-shadow: -10px 0 28px rgba(0,0,0,.42); }
html[data-theme="dark"] .mystery-game-timeline-header { color: #edf2fa; }
html[data-theme="dark"] .mystery-game-timeline-header button { color: #cfe0ff; }
html[data-theme="dark"] .mystery-game-timeline-item { border-color: #34445b; }
html[data-theme="dark"] .mystery-game-timeline-item time { color: #9fc2ff; }
html[data-theme="dark"] .mystery-game-timeline-item p, html[data-theme="dark"] .mystery-game-timeline-empty { color: #c2cede; }
.game-choice-content > p { margin-bottom: 18px; }
.game-choice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.game-choice-actions button { min-height: 48px; }

.daily-word-guess-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 10px; }
.daily-word-guess-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.daily-word-guess-mode-button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: #315fa5; color: #fff; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.daily-word-guess-mode-button:hover { background: #244b86; }
.daily-word-guess-input-panel { position: sticky; z-index: 12; top: 0; margin-top: -4px; padding-top: 4px; background: #f4f7fb; }
.daily-word-guess-header > div { text-align: center; }
.daily-word-guess-header > :last-child { justify-self: end; }
.daily-word-guess-header h2 { margin: 3px 0 0; font-size: 1.55rem; }
#dailyWordGuessScreen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}
#dailyWordGuessScreen .daily-word-guess-input-panel {
  position: relative !important;
  z-index: 20;
  align-self: start;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  padding-bottom: 6px;
  background: var(--page-bg, #f4f7fb);
}
#dailyWordGuessScreen.is-daily-word-loading .daily-word-guess-keyboard { visibility: hidden !important; pointer-events: none; }
#dailyWordGuessScreen .daily-word-guess-scroll {
  flex: 0 1 auto;
  align-self: flex-start;
  width: 100%;
  height: fit-content;
  min-height: 0;
  max-height: max(180px, calc(100dvh - 430px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 0 0;
}
/* 보들 화면은 내부 목록 자체가 스크롤되므로 페이지 셸 하단의
   공통 GNB 여백을 추가로 남기지 않습니다. */
.page-shell:has(#dailyWordGuessScreen:not(.hidden)) { padding-bottom: 0; }
.page-shell.is-daily-word-screen { padding-bottom: 0 !important; }
#publicGameView:has(#dailyWordGuessScreen:not(.hidden)) { min-height: 0; padding-bottom: 0; }
#publicGameView.is-daily-word-view { min-height: 0 !important; padding-bottom: 0 !important; }
#dailyWordGuessScreen { min-height: 0; }
/* 입력 패널 높이를 제외한 영역만 도전 목록 스크롤 영역으로 사용해
   목록 아래에 빈 세로 공간이 남지 않도록 합니다. */
#dailyWordGuessScreen .daily-word-guess-scroll { height: auto; max-height: 180px; flex: 0 0 auto; }
/* 보들 화면은 상단 입력 패널을 고정하고, 나의 도전부터 내부 스크롤합니다. */
#dailyWordGuessScreen { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
#dailyWordGuessScreen .daily-word-guess-input-panel { position: sticky !important; top: 0; z-index: 20; flex: 0 0 auto; align-self: stretch; width: 100%; padding-top: 4px; padding-bottom: 6px; background: var(--page-bg, #f4f7fb); }
#dailyWordGuessScreen .daily-word-guess-scroll { flex: 1 1 auto; width: 100%; min-height: calc(100dvh - 270px); max-height: none; overflow-y: auto; overflow-x: hidden; padding: 16px 2px 24px 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#dailyWordGuessScreen .daily-word-guess-attempts { min-height: 100%; box-sizing: border-box; }
#dailyWordGuessScreen .daily-word-guess-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#dailyWordGuessScreen .daily-word-guess-heading,
#dailyWordGuessScreen .daily-word-guess-guide { display: none; }
#dailyWordGuessScreen.daily-word-guess-loading { min-height: 280px; }
#dailyWordGuessScreen.daily-word-guess-loading > * { visibility: hidden; }
#appLoading.daily-route-loading { position: fixed; z-index: 100; inset: 0; min-height: 100dvh; display: grid; place-content: center; background: var(--page-bg, #f5f7fb); }
html[data-theme="dark"] #appLoading.daily-route-loading { background: #111927; color: #c8d5e8; }
.daily-word-guess-card, .daily-word-guess-form, .daily-word-guess-attempts, .daily-word-guess-history { margin-bottom: 10px; padding: 14px; border: 1px solid #dfe7f3; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(39, 65, 103, .06); }
.daily-word-guess-heading, .daily-word-guess-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daily-word-guess-card > .daily-word-guess-form { margin: 10px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.daily-word-guess-card > .daily-word-guess-form label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.daily-word-guess-card > .daily-word-guess-prompt { display: none; }
.daily-word-guess-heading div { min-width: 0; }
.daily-word-guess-heading span, .daily-word-guess-section-heading span { color: #75849a; font-size: .72rem; }
.daily-word-guess-heading strong { display: block; margin-top: 3px; color: #13294b; font-size: 1rem; }
.daily-word-guess-heading > span { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: #edf3ff; color: #315fa5; font-weight: 800; }
.daily-word-guess-prompt, .daily-word-guess-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
#dailyWordGuessScreen.is-challenge .daily-word-guess-prompt, #dailyWordGuessScreen.is-challenge .daily-word-guess-row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.daily-word-guess-prompt span, .daily-word-guess-tile { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #cad6e7; border-radius: 11px; background: #f4f7fb; color: #60728d; font-size: clamp(1rem, 5vw, 1.35rem); font-weight: 900; }
.daily-word-guess-tile.correct, .daily-word-guess-prompt span.correct { border-color: #2f9d65; background: #2f9d65; color: #fff; }
.daily-word-guess-tile.present { border-color: #d6a326; background: #e2b23b; color: #fff; }
.daily-word-guess-tile.absent { border-color: #8b97a8; background: #8b97a8; color: #fff; }
.daily-word-guess-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 13px 0 0; color: #74839a; font-size: .68rem; }
.daily-word-guess-guide i { width: 10px; height: 10px; margin-left: 4px; border-radius: 3px; }
.daily-word-guess-guide i.correct { background: #2f9d65; }
.daily-word-guess-guide i.present { background: #e2b23b; }
.daily-word-guess-guide i.absent { background: #8b97a8; }
.daily-word-guess-form label { display: block; margin-bottom: 9px; color: #13294b; font-weight: 800; }
.daily-word-guess-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; align-items: stretch; }
.daily-word-guess-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; min-width: 0; }
#dailyWordGuessScreen.is-challenge .daily-word-guess-inputs { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.daily-word-guess-form input, .daily-word-guess-form button { min-height: 52px; }
.daily-word-guess-input { width: 100%; min-width: 0; min-height: 0 !important; aspect-ratio: 1 / 1; height: auto; padding: 0 4px; text-align: center; font-size: 1.35rem; font-weight: 800; }
.daily-word-guess-input:focus { border-color: #315fa5; outline: 3px solid rgba(49, 95, 165, .24); outline-offset: 1px; background: #fff; }
.daily-word-guess-form .field-message { min-height: 20px; margin: 7px 0 0; }
.daily-word-guess-result-share { margin-top: 16px; }
.daily-word-guess-result-share button { width: 100%; min-height: 52px; border: 0; border-radius: 10px; background: #315fa5; color: #fff; font-size: 1rem; font-weight: 800; }
.daily-word-guess-result-message { margin: 10px 0 0; text-align: center; font-weight: 800; color: #315fa5; }
.daily-word-guess-result-message.is-error { color: #b42318; }
.daily-word-guess-result-share .field-message { min-height: 20px; margin: 7px 0 0; text-align: center; }
.daily-word-guess-result-share .field-message.is-success { color: #315fa5; }
.daily-word-guess-result-share .field-message.is-error { color: #b42318; }
.daily-word-guess-keyboard { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: none; width: min(100%, 680px); margin: 0 auto; gap: 7px; padding: 12px max(12px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right)); border: 1px solid #dfe7f3; border-bottom: 0; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -12px 32px rgba(20, 33, 61, .24); }
.daily-word-guess-keyboard.is-visible { display: grid; animation: dailyWordGuessKeyboardUp .16s ease-out; }
/* 자모 키보드는 본문 레이아웃을 밀어내지 않는 중앙 팝업으로 표시합니다. */
#dailyWordGuessScreen .daily-word-guess-keyboard { top: 50%; right: auto; bottom: auto; left: 50%; width: min(94vw, 520px); max-height: min(70dvh, 430px); overflow-y: auto; transform: translate(-50%, -50%); border: 1px solid #dfe7f3; border-radius: 20px; box-shadow: 0 18px 48px rgba(15, 23, 42, .3); }
#dailyWordGuessScreen .daily-word-guess-keyboard.is-visible { animation: dailyWordGuessKeyboardPopup .16s ease-out; }
@keyframes dailyWordGuessKeyboardPopup { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.daily-word-guess-keyboard-row { display: flex; justify-content: center; gap: 5px; }
.daily-word-guess-keyboard-row:nth-of-type(2) { width: 91%; margin: 0 auto; }
.daily-word-guess-keyboard-row:nth-of-type(3) { width: 96%; margin: 0 auto; }
.daily-word-guess-keyboard button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 3px; border: 1px solid #cad6e7; border-radius: 7px; background: #f1f5fb; color: #172c4c; font-size: 1rem; font-weight: 800; touch-action: manipulation; }
.daily-word-guess-keyboard button.wide { flex: 1.5 1 0; font-size: 1rem; }
.daily-word-guess-keyboard button.utility { flex: .85 1 0; font-size: 1.05rem; }
.daily-word-guess-keyboard button.utility.is-active { border-color: #315fa5; background: #dbe8ff; color: #315fa5; }
.daily-word-guess-keyboard button.is-absent { border-color: #9aa6b7; background: #9aa6b7; color: #fff; opacity: .7; }
.daily-word-guess-section-heading { margin-bottom: 12px; }
.daily-word-guess-section-heading h3 { margin: 0; font-size: 1rem; }
#dailyWordGuessAttempts { display: grid; gap: 8px; }
.daily-word-guess-empty { margin: 0; padding: 20px 10px; color: #7a899e; text-align: center; font-size: .78rem; }
#dailyWordGuessHistory { display: grid; gap: 8px; }
.daily-word-guess-player { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 12px; background: #f5f8fc; }
.daily-word-guess-player strong { color: #172c4c; font-size: .84rem; }
.daily-word-guess-player span { color: #738299; font-size: .72rem; }
.word-chain-records { margin: 10px 0; padding: 10px 12px; border: 1px solid #dfe7f3; border-radius: 12px; background: #fff; }
.word-chain-records h2 { margin: 0 0 7px; color: #13294b; font-size: .82rem; }
.word-chain-records-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.word-chain-player-card .word-chain-records-list { grid-column: 1 / -1; width: 100%; margin: 2px 0 0; }
.word-chain-top-guide { grid-column: 1 / -1; margin: -6px 0 0; color: #75849a; font-size: .68rem; line-height: 1.25; }
.word-chain-record-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 0; gap: 4px; min-height: 28px; padding: 4px 6px; border-radius: 999px; background: #edf3ff; color: #315fa5; }
.word-chain-record-badge b { font-size: .7rem; }
.word-chain-record-badge strong { min-width: 0; overflow: hidden; color: #172c4c; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.word-chain-player-card .word-chain-record-badge strong { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.word-chain-record-badge small { color: #738299; font-size: .65rem; }
.word-chain-record-badge.rank-1 { background: #fff4d6; }
.word-chain-record-badge.rank-2 { background: #eef2f7; }
.word-chain-record-badge.rank-3 { background: #f8eadf; }
.daily-word-guess-player .solved { color: #218654; font-weight: 800; }
.daily-word-guess-player .failed { color: #b54848; font-weight: 800; }

.public-game-view { min-height: calc(100dvh - max(32px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom))); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.word-chain-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 16px; }
.word-chain-header > div { min-width: 0; text-align: center; }
.word-chain-header > :first-child { justify-self: start; }
.word-chain-header > :last-child { justify-self: end; }
.word-chain-header.internal-mode .word-chain-share-button { visibility: hidden; pointer-events: none; }
.word-chain-header h1 { margin: 3px 0 0; font-size: 1.55rem; }
.word-chain-share-button { width: 92px; min-height: 38px; padding: 0 11px; border: 1px solid #bfd2f3; border-radius: 999px; background: #edf4ff; color: #315fa5; font-size: .78rem; font-weight: 800; }
.word-chain-refresh-loading { display: none; }
.public-game-view.is-refreshing .word-chain-refresh-loading { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; background: rgba(244,247,251,.96); color: #244f93; text-align: center; }
.public-game-view.is-refreshing .word-chain-refresh-loading strong { font-size: 1rem; }
.public-game-view.is-refreshing .word-chain-refresh-loading small { color: #728198; font-size: .82rem; }
html[data-theme="dark"] .public-game-view.is-refreshing .word-chain-refresh-loading { background: rgba(17,25,39,.97); color: #d7e6ff; }
html[data-theme="dark"] .public-game-view.is-refreshing .word-chain-refresh-loading small { color: #aebbd0; }
.word-chain-close-button { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: #e9eff8; color: #345985; font-size: 1.9rem; font-weight: 400; line-height: 1; }
.word-chain-player-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 10px; min-height: 50px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid #dfe7f3; border-radius: 14px; background: #fff; }
.word-chain-player-card span { color: #728198; font-size: .75rem; }
.word-chain-player-card strong { color: #244f93; font-size: .9rem; }
.word-chain-player-card small { grid-column: 1 / -1; color: #2c7a50; font-size: .7rem; }
@media (max-width: 480px) {
  .word-chain-record-badge { min-height: 30px; padding-inline: 5px; }
}
#gameRecordsScreen > .subpage-heading { justify-content: center; }
#gameRecordsScreen > .subpage-heading > .back-button { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); }
#gameRecordsScreen > .subpage-heading > .subpage-title-wrap { align-items: center; text-align: center; }
#gameRecordsScreen > .subpage-heading > #openGameRecordEntry { position: absolute; right: 4px; top: 50%; margin-left: 0; transform: translateY(-50%); }
.word-chain-form, .word-chain-board { padding: 18px; border: 1px solid #dfe7f3; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(39, 65, 103, .06); }
.word-chain-form { margin-bottom: 14px; }
.word-chain-input-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.word-chain-input-label { display: inline-flex; align-items: center; gap: 7px; }
.word-chain-forbidden-button { flex: 0 0 22px; width: 22px; height: 22px; min-width: 22px; min-height: 22px !important; max-width: 22px; max-height: 22px; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 50%; background: #315fa5; color: #fff; font-size: .78rem; font-weight: 900; line-height: 22px; text-align: center; cursor: pointer; }
.word-chain-forbidden-button:hover { background: #244c88; }
.word-chain-forbidden-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.word-chain-forbidden-list span { color: #64748b; font-size: .85rem; }
.word-chain-forbidden-list b { display: inline-flex; width: auto; min-width: 30px; height: 30px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; background: #edf4ff; color: #315fa5; font-size: .95rem; white-space: nowrap; word-break: keep-all; }
.word-chain-forbidden-form { display: flex; align-items: flex-end; width: 100%; gap: 8px; margin-top: 14px; }
.word-chain-forbidden-form label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; color: #13294b; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.word-chain-forbidden-form input { display: block; flex: 1; min-width: 0; width: 100%; margin-top: 0; padding: 10px; border: 1px solid #cdd8e8; border-radius: 10px; font-size: 1rem; text-align: center; }
.word-chain-forbidden-form button { width: auto !important; min-width: 58px; min-height: 42px; flex: 0 0 auto; padding: 0 16px; border: 0; border-radius: 10px; background: #315fa5; color: #fff; font-weight: 800; }
.word-chain-forbidden-modal-content .modal-header { position: relative; display: flex; justify-content: center; width: 100%; margin-bottom: 4px; }
.word-chain-forbidden-modal-content .modal-header h2 { white-space: nowrap; text-align: center; }
.word-chain-forbidden-modal-content .modal-header .close-button { position: absolute; right: 0; width: 36px; min-width: 36px; min-height: 36px; flex: 0 0 36px; }
.word-chain-form > label, .word-chain-input-heading label { display: block; margin: 0; color: #13294b; font-weight: 800; }
.word-chain-new-button { min-height: 34px; padding: 0 10px; border: 1px solid #bfd2f3; border-radius: 999px; background: #edf4ff; color: #315fa5; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.word-chain-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; }
.word-chain-input-row input, .word-chain-input-row button { min-height: 52px; }
.word-chain-input-row input { min-width: 0; }
.word-chain-input-row button { padding: 0 12px; }
.word-chain-guide { margin: 9px 0 0; color: #718198; font-size: .76rem; line-height: 1.5; }
.word-chain-form .field-message { min-height: 18px; margin: 5px 0 0; }
.word-chain-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.word-chain-board-heading h2 { margin: 0; font-size: 1rem; }
.word-chain-board-heading span { color: #6e7f97; font-size: .75rem; }
.word-chain-list { display: grid; gap: 8px; }
.word-chain-entry { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 13px; background: #f5f8fc; }
.word-chain-entry-order { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #e5eefc; color: #315fa5; font-size: .74rem; font-weight: 900; }
.word-chain-entry strong, .word-chain-entry small { display: block; }
.word-chain-entry strong { color: #112849; font-size: .98rem; }
.word-chain-entry small { margin-top: 3px; color: #728198; font-size: .7rem; }
.word-chain-entry time { color: #8290a4; font-size: .68rem; white-space: nowrap; }
.word-chain-empty { padding: 28px 12px; color: #77879d; font-size: .84rem; text-align: center; }
.word-chain-history { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.word-chain-history h3 { margin: 0 0 10px; color: #536981; font-size: .82rem; }
.word-chain-history-list { display: grid; gap: 12px; }
.word-chain-history-round { padding: 11px 12px; border: 1px solid #e5ebf4; border-radius: 12px; background: #f8fafd; }
.word-chain-history-round > strong { display: block; margin-bottom: 7px; color: #728198; font-size: .7rem; }
.word-chain-history-entry { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; color: #536981; font-size: .78rem; }
.word-chain-history-entry b { color: #315fa5; }
.word-chain-history-entry small { margin-left: auto; color: #8b98a9; font-size: .67rem; }
.daily-fortune-main-card { display: grid; gap: 16px; padding: 28px 22px; border: 1px solid #eddca8; border-radius: 18px; background: linear-gradient(145deg, #fffdf7, #fff4cf); box-shadow: 0 8px 22px rgba(120, 89, 17, .08); }
.fortune-card-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #fff0bd; font-size: 1.65rem; line-height: 1; }
.daily-fortune-greeting { margin: 0; color: #806528; font-size: 1rem; font-weight: 700; }
.daily-fortune-message { margin: 0; color: #352c18; font-size: 1.22rem; font-weight: 800; line-height: 1.65; word-break: keep-all; }
.daily-fortune-details { display: grid; gap: 12px; margin-top: 12px; }
.daily-fortune-details article { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 14px; padding: 17px; border: 1px solid #ede6d5; border-radius: 15px; background: #fff; box-shadow: 0 5px 14px rgba(34,55,90,.05); }
.daily-fortune-details article > div { display: grid; gap: 7px; }
.daily-fortune-details .fortune-card-icon { background: #e9f0fc; }
.daily-fortune-details .fortune-card-icon.palette { background: #f7eafa; }
.daily-fortune-details span:not(.fortune-card-icon) { color: #8b7440; font-size: .78rem; }
.daily-fortune-details strong { color: #3e3318; font-size: 1rem; }
.daily-fortune-share-button { min-height: 50px; margin-top: 16px; border: 1px solid #315a9f; background: #315a9f; color: #fff; font-size: .98rem; font-weight: 800; }
.daily-fortune-share-button span { margin-right: 5px; font-size: 1.1rem; }
.alcohol-calendar-card { padding: 16px 12px 12px; border: 1px solid #dbe5f2; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(39,65,103,.06); }
.alcohol-calendar-month-summary { flex: 0 0 auto; display: grid; gap: 6px; padding: 9px 12px; border: 1px solid #dbe5f2; border-radius: 14px; background: rgba(255,255,255,.9); }
.alcohol-calendar-month-summary h3 { margin: 0; color: #334766; font-size: .76rem; font-weight: 800; }
.alcohol-calendar-month-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.alcohol-calendar-month-stats > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 3px; }
.alcohol-calendar-month-stats span { overflow: hidden; color: #718096; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.alcohol-calendar-month-stats strong { color: #315a9f; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alcohol-calendar-monthbar { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 8px; margin-bottom: 12px; }
.alcohol-calendar-monthbar h3 { margin: 0; text-align: center; font-size: 1.1rem; }
.alcohol-calendar-monthbar button { width: 42px; min-height: 42px; border: 1px solid #dbe5f2; border-radius: 12px; background: #f2f6fc; color: #315a9f; font-size: 1.5rem; }
.alcohol-calendar-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 10px; }
.alcohol-calendar-actions > span { color: #718096; font-size: .76rem; }
.alcohol-calendar-actions > button { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1px solid #315a9f; border-radius: 11px; background: #315a9f; color: #fff; font-size: .84rem; font-weight: 800; }
.alcohol-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.alcohol-calendar-weekday { display: grid; min-height: 30px; place-items: center; color: #64748b; font-size: .78rem; font-weight: 800; }
.alcohol-calendar-weekday.is-sunday { color: #d04e5f; }
.alcohol-calendar-weekday.is-saturday { color: #3973c2; }
.alcohol-calendar-day { display: flex; min-width: 0; min-height: 70px; flex-direction: column; align-items: flex-start; gap: 4px; padding: 7px 5px; border: 1px solid transparent; border-radius: 12px; background: #f5f8fc; color: #1e2e47; text-align: left; }
.alcohol-calendar-cell { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; gap: 2px; padding: 3px; overflow: hidden; border: 1px solid transparent; border-radius: 12px; background: #f5f8fc; cursor: pointer; }
.alcohol-calendar-cell.is-today { border-color: #9db8e6; background: #edf4ff; }
.alcohol-calendar-cell > .alcohol-calendar-day { flex: 0 0 auto; width: 100%; min-height: 16px; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.alcohol-calendar-record-line { display: flex; flex: 0 0 auto; width: 100%; min-width: 0; min-height: 26px; height: auto; box-sizing: border-box; align-items: center; gap: 3px; overflow: hidden; padding: 4px; border: 0; border-radius: 5px; background: #fff0e2; color: #875a38; font-size: clamp(.48rem,1.35vw,.65rem); line-height: 1.2; text-align: left; white-space: nowrap; cursor: pointer; }
.alcohol-calendar-record-tone-0 { --alcohol-record-bg: #fff0e2; --alcohol-record-fg: #875a38; }
.alcohol-calendar-record-tone-1 { --alcohol-record-bg: #e8f1ff; --alcohol-record-fg: #315a9f; }
.alcohol-calendar-record-tone-2 { --alcohol-record-bg: #e7f5ed; --alcohol-record-fg: #28724c; }
.alcohol-calendar-record-tone-3 { --alcohol-record-bg: #f1eafa; --alcohol-record-fg: #684a91; }
.alcohol-calendar-record-tone-4 { --alcohol-record-bg: #fff4d9; --alcohol-record-fg: #805d11; }
.alcohol-calendar-record-tone-5 { --alcohol-record-bg: #fde9ed; --alcohol-record-fg: #a14359; }
.alcohol-calendar-record-line[class*="alcohol-calendar-record-tone-"] { background: var(--alcohol-record-bg); color: var(--alcohol-record-fg); }
.alcohol-calendar-record-line b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.alcohol-calendar-record-line > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.alcohol-calendar-more { flex: 0 0 auto; align-self: flex-end; padding: 0 2px; border: 0; background: transparent; color: #315a9f; font-size: .6rem; font-weight: 900; line-height: 1.2; }
.alcohol-calendar-details-popover { position: fixed; z-index: 1200; max-height: min(60dvh,360px); overflow: auto; padding: 12px; border: 1px solid #cbd8e9; border-radius: 15px; background: #fff; color: #1e2e47; box-shadow: 0 14px 40px rgba(15,31,55,.24); }
.alcohol-calendar-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.alcohol-calendar-details-heading > button { display: grid; flex: 0 0 40px; width: 40px; min-width: 40px; max-width: 40px; height: 40px; min-height: 40px; max-height: 40px; padding: 0; box-sizing: border-box; aspect-ratio: 1; place-items: center; border: 0; border-radius: 50%; background: #edf3fc; color: #315a9f; font-size: 1.2rem; line-height: 1; }
.alcohol-calendar-details-list { display: grid; gap: 8px; padding-top: 8px; }
.alcohol-calendar-details-list article { display: grid; gap: 3px; padding: 8px; border-radius: 10px; background: #f5f8fc; font-size: .76rem; }
.alcohol-calendar-details-list article[role="button"] { cursor: pointer; }
.alcohol-calendar-details-list article[role="button"]:focus-visible { outline: 2px solid #7195d0; outline-offset: 2px; }
.alcohol-calendar-details-list article[class*="alcohol-calendar-record-tone-"] { background: var(--alcohol-record-bg); color: var(--alcohol-record-fg); }
.alcohol-calendar-details-list article[class*="alcohol-calendar-record-tone-"] > span, .alcohol-calendar-details-list article[class*="alcohol-calendar-record-tone-"] > small { color: var(--alcohol-record-fg); }
.alcohol-calendar-details-list article > span, .alcohol-calendar-details-list article > small { color: #64748b; }
.alcohol-calendar-day.is-empty { background: transparent; }
.alcohol-calendar-day.is-today { border-color: #9db8e6; background: #edf4ff; }
.alcohol-calendar-day.has-entry { border-color: #e8cfb7; background: #fff6ed; }
.alcohol-calendar-day-number { flex: 0 0 auto; font-size: .82rem; font-weight: 800; line-height: 1.2; }
.alcohol-calendar-day small { display: -webkit-box; width: 100%; overflow: hidden; color: #875a38; font-size: .62rem; line-height: 1.3; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.alcohol-calendar-day .alcohol-calendar-drink-icons { position: relative; display: grid; flex: 0 0 auto; grid-template-columns: minmax(0,1fr); grid-auto-rows: 16px; gap: 1px 0; font-size: .72rem; line-height: 1; }
.alcohol-soju-emoji { display: inline-block; width: auto; height: 1.1em; flex: 0 0 auto; object-fit: contain; vertical-align: middle; }
.alcohol-calendar-drink-icons > span { display: grid; grid-column: 1; grid-template-columns: 14px minmax(0,1fr); align-items: center; gap: 3px; min-width: 0; white-space: nowrap; }
.alcohol-calendar-drink-icon { display: inline-flex; align-items: center; justify-content: flex-end; width: 14px; height: 16px; font-size: 14px; line-height: 1; }
.alcohol-calendar-drink-count { min-width: 0; overflow: hidden; font-weight: 700; font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
.alcohol-calendar-drink-icons .alcohol-soju-emoji { height: 16px; margin-inline: auto; }
.alcohol-calendar-drink-icons:has(> .alcohol-calendar-more) > span:not(.alcohol-calendar-more) { grid-template-columns: 12px minmax(0,1fr); gap: 2px; padding-right: 7px; }
.alcohol-calendar-drink-icons:has(> .alcohol-calendar-more) .alcohol-calendar-drink-icon { width: 12px; font-size: 12px; }
.alcohol-calendar-day .alcohol-calendar-more { position: absolute; right: 0; bottom: 2px; display: block; font-size: 9px; font-weight: 800; line-height: 1; }
.alcohol-calendar-snack-badge { display: block; flex: 0 0 auto; align-self: stretch; width: 100%; max-width: 100%; box-sizing: border-box; margin-top: auto; overflow: hidden; padding: 1px 5px; border: 1px solid #edd6bd; border-radius: 999px; background: #fffaf4; color: #875a38; font-size: .58rem; line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.alcohol-calendar-hint { margin: 0; color: #718096; font-size: .82rem; line-height: 1.5; }
#alcoholCalendarStatus:empty { display: none; }
#alcoholCalendarScreen { width: 100%; align-items: stretch; }
#alcoholCalendarScreen > .subpage-heading { width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 64px; padding: 4px 0; }
#alcoholCalendarScreen > .subpage-heading > div { flex: 1; min-width: 0; text-align: left; }
#alcoholCalendarScreen .back-button { flex: 0 0 40px; width: 40px; min-height: 40px; padding: 0; border-radius: 50%; background: transparent; color: #315a9f; }
#alcoholCalendarScreen .alcohol-calendar-card { width: 100%; min-width: 0; }
#alcoholCalendarEntryModal { place-items: center; padding: 16px; }
#alcoholCalendarEntryModal .alcohol-entry-content { display: flex; flex-direction: column; align-items: stretch; width: min(100%,560px); min-width: 0; max-height: calc(100dvh - 32px); gap: 0; padding: 0; overflow: hidden; border-radius: 20px; text-align: left; }
#alcoholCalendarEntryModal .modal-header { flex: 0 0 auto; width: 100%; align-items: center; gap: 12px; margin: 0; padding: 16px 20px; }
#alcoholCalendarEntryModal .modal-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; text-align: left; font-size: 1.2rem; }
#alcoholCalendarEntryModal .modal-header .close-button { display: grid; flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 0; place-items: center; line-height: 1; }
#alcoholCalendarEntryModal .alcohol-entry-body { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; min-width: 0; min-height: 0; gap: 16px; padding: 0 20px 18px; overflow-y: auto; overscroll-behavior: contain; }
#alcoholCalendarEntryModal .alcohol-entry-body > * { min-width: 0; max-width: 100%; }
#alcoholCalendarEntryModal .alcohol-entry-body input { min-width: 0; max-width: 100%; }
#alcoholCalendarEntryModal .alcohol-entry-date { margin: 0; text-align: left; color: #315a9f; font-weight: 800; }
#alcoholCalendarEntryModal label[for="alcoholCalendarRecordDate"] { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; max-width: 100%; }
/* iOS의 날짜 입력 기본 최소 너비 대신 부모 필드 너비를 사용합니다. */
#alcoholCalendarEntryModal #alcoholCalendarRecordDate { display: block; box-sizing: border-box; width: 0; min-width: 100%; max-width: 100%; inline-size: 0; min-inline-size: 100%; max-inline-size: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #d6e0ed; border-radius: 10px; background: #fff; color: #1e293b; font-size: 16px; -webkit-appearance: none; appearance: none; }
#alcoholCalendarEntryModal #alcoholCalendarRecordDate::-webkit-datetime-edit { min-width: 0; padding: 0; }
#alcoholCalendarEntryModal #alcoholCalendarRecordDate::-webkit-date-and-time-value { min-width: 0; text-align: left; }
#alcoholCalendarEntryModal .alcohol-participants-section { display: grid; gap: 8px; color: #334766; font-size: .84rem; }
#alcoholCalendarEntryModal .alcohol-participants-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#alcoholCalendarRecordModal .alcohol-record-participants-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#alcoholCalendarRecordModal .alcohol-record-registrant-count { flex: 0 0 auto; padding: 3px 8px; border: 1px solid #d7e3f4; border-radius: 999px; background: #edf4ff; color: #315a9f; font-size: .7rem; font-weight: 800; line-height: 1.35; }
#alcoholCalendarEntryModal .alcohol-private-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #536981; font-size: .78rem; font-weight: 700; cursor: pointer; }
#alcoholCalendarEntryModal .alcohol-private-toggle input { width: 18px; height: 18px; margin: 0; accent-color: #315a9f; }
#alcoholCalendarEntryModal .alcohol-participant-fields[hidden] { display: none !important; }
#alcoholCalendarEntryModal .alcohol-participant-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#alcoholCalendarEntryModal .alcohol-participant-fields label { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 6px; color: #718096; font-size: .72rem; }
#alcoholCalendarEntryModal .alcohol-participant-fields input { width: 100%; min-width: 0; min-height: 40px; padding: 7px 9px; border: 1px solid #d6e0ed; border-radius: 9px; background: #fff; color: #1e293b; font-size: .82rem; }
#alcoholCalendarEntryModal label { min-width: 0; display: grid; gap: 8px; color: #475569; font-size: .85rem; text-align: left; }
#alcoholCalendarEntryModal select { min-width: 0; width: 100%; min-height: 46px; padding: 8px 10px; border-radius: 10px; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control { display: grid; grid-template-columns: 44px minmax(0,1fr) auto 44px; align-items: center; width: 100%; min-width: 0; gap: 4px; padding: 3px; border: 1px solid #d6e0ed; border-radius: 12px; background: #fff; color: #1e293b; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control button { width: 44px; min-height: 44px; padding: 0; border-radius: 9px; background: #edf3fc; color: #315a9f; font-size: 1.3rem; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control input { width: 100%; min-width: 0; height: 44px; padding: 0 2px; border: 0; background: transparent; color: inherit; text-align: center; font-size: 1rem; font-weight: 800; appearance: textfield; -moz-appearance: textfield; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control input::-webkit-inner-spin-button, :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control span { color: #718096; font-size: .8rem; }
#alcoholCalendarEntryModal .alcohol-entry-body { gap: 10px; padding: 0 16px 14px; }
#alcoholCalendarEntryModal .alcohol-entry-date { font-size: .82rem; }
#alcoholCalendarEntryModal .alcohol-entry-overview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
#alcoholCalendarEntryModal .alcohol-entry-overview label { gap: 6px; font-size: .78rem; }
#alcoholCalendarEntryModal .alcohol-entry-overview > label > input { min-height: 46px; padding: 8px 10px; font-size: .85rem; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #334766; font-size: .85rem; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-section-title > button { display: grid; flex: 0 0 36px; width: 36px; min-width: 36px; max-width: 36px; height: 36px; min-height: 36px; max-height: 36px; padding: 0; place-items: center; box-sizing: border-box; aspect-ratio: 1; border: 1px solid #cbd9ed; border-radius: 50%; background: #edf4ff; color: #315a9f; font-size: 1.35rem; line-height: 1; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-picker { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid #dce5f1; border-radius: 14px; background: #f8fafd; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-picker button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 11px; border: 1px solid #d5e1f1; border-radius: 999px; background: #fff; color: #334766; font-size: .82rem; font-weight: 700; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-picker button span { font-size: 1.1rem; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-rows { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,max(9.5rem,calc((100% - 10px)/2))),1fr)); gap: 10px; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-row { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: 6px; min-width: 0; padding: 10px; border: 1px solid #dce5f1; border-radius: 16px; background: #f8fafd; transition: border-color .15s, background .15s; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-row.is-selected { border-color: #779fdc; background: #edf4ff; box-shadow: inset 0 0 0 1px #779fdc; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-card-heading { display: grid; grid-template-columns: auto minmax(0,1fr) 28px; align-items: center; gap: 7px; min-width: 0; min-height: 36px; color: #334766; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-card-heading strong { min-width: 0; font-size: .9rem; white-space: normal; overflow-wrap: anywhere; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-emoji { font-size: 1.55rem; line-height: 1; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-remove { display: grid; flex: 0 0 28px; width: 28px; height: 28px; margin-left: auto; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #718096; font-size: 1.25rem; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control { grid-template-columns: 32px minmax(0,1fr) auto 32px; gap: 2px; padding: 2px; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control button { width: 32px; min-height: 40px; font-size: 1.1rem; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control input { height: 40px; font-size: 1rem; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-row:not(.is-selected) .alcohol-number-control { opacity: .45; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control :disabled { opacity: 1; cursor: default; }
:is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-calories { margin: 0; color: #718096; font-size: .7rem; line-height: 1.3; text-align: right; }
#alcoholCalendarEntryModal .alcohol-entry-summary { display: grid; gap: 7px; padding: 12px; border-radius: 14px; background: #edf3fc; }
#alcoholCalendarEntryModal .alcohol-total-summary { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 8px; padding: 0; color: #315a9f; font-size: .82rem; }
#alcoholCalendarEntryModal .alcohol-total-summary strong { font-size: 1rem; }
#alcoholCalendarEntryModal .alcohol-total-summary small { color: #60799e; font-size: .75rem; font-weight: 700; }
#alcoholCalendarEntryModal .alcohol-calorie-total { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 8px; padding: 0; color: #536981; font-size: .75rem; }
#alcoholCalendarEntryModal .alcohol-calorie-total strong { color: #315a9f; font-size: .88rem; }
#alcoholCalendarEntryModal .alcohol-entry-summary strong { min-width: 0; max-width: 100%; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 360px) {
  #alcoholCalendarEntryModal .alcohol-entry-overview,
  :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-rows,
  #alcoholCalendarEntryModal .alcohol-participant-fields { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 360px) { :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-row { padding: 8px; } :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-card-heading { gap: 4px; } :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-card-heading strong { font-size: .8rem; } :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-emoji { font-size: 1.3rem; } }
#alcoholCalendarEntryModal .message { min-height: 0; margin: 0; color: #b42318; text-align: left; }
#alcoholCalendarEntryModal .message:empty { display: none; }
#alcoholCalendarEntryModal .alcohol-entry-actions { display: flex; flex: 0 0 auto; gap: 10px; width: 100%; padding: 14px 20px max(14px,env(safe-area-inset-bottom)); border-top: 1px solid #e4eaf3; }
#alcoholCalendarEntryModal .alcohol-entry-actions button { flex: 1; width: auto; min-width: 0; min-height: 48px; }
#alcoholCalendarRecordModal { place-items: center; padding: 16px; }
#alcoholCalendarRecordModal .alcohol-record-content { display: flex; width: min(100%,520px); max-height: calc(100dvh - 32px); flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-radius: 20px; text-align: left; }
#alcoholCalendarRecordModal .modal-header { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin: 0; padding: 16px 20px; }
#alcoholCalendarRecordModal .modal-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; text-align: left; }
#alcoholCalendarRecordModal .modal-header .close-button { display: grid; flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 0; place-items: center; line-height: 1; }
.alcohol-record-body { display: grid; gap: 10px; padding: 0 20px 18px; }
.alcohol-record-body section { display: grid; gap: 5px; padding: 12px; border: 1px solid #dbe5f2; border-radius: 12px; background: #f7f9fc; }
.alcohol-record-body section span { color: #718096; font-size: .78rem; }
.alcohol-record-body section strong { color: #263a58; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.alcohol-record-actions { display: flex; flex: 0 0 auto; gap: 10px; padding: 14px 20px max(14px,env(safe-area-inset-bottom)); border-top: 1px solid #e4eaf3; }
.alcohol-record-actions button { flex: 1 1 0; min-width: 0; min-height: 46px; }
.alcohol-record-privacy-badge { justify-self: start; padding: 5px 9px; border-radius: 999px; background: #edf3fc; color: #315a9f; font-size: .75rem; font-weight: 800; }
body[data-current-screen="alcohol-calendar"] { height: 100dvh; overflow: hidden; }
body[data-current-screen="alcohol-calendar"] .page-shell { display: flex; height: 100dvh; min-height: 0; flex-direction: column; padding: max(8px,env(safe-area-inset-top)) 0 max(8px,env(safe-area-inset-bottom)); overflow: hidden; }
body[data-current-screen="alcohol-calendar"] #appView { display: flex; flex: 1 1 auto; height: 100%; min-height: 0; flex-direction: column; gap: 0; overflow: hidden; }
#alcoholCalendarScreen:not(.hidden) { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 8px; overflow: hidden; }
#alcoholCalendarScreen > .subpage-heading { flex: 0 0 52px; min-height: 52px; }
#alcoholCalendarScreen .alcohol-calendar-month-summary { padding: 7px 10px; }
#alcoholCalendarScreen .alcohol-calendar-month-stats > div { flex-direction: column; align-items: flex-start; gap: 1px; }
#alcoholCalendarScreen .alcohol-calendar-month-stats span { font-size: .62rem; }
#alcoholCalendarScreen .alcohol-calendar-month-stats strong { font-size: .78rem; }
#alcoholCalendarScreen .alcohol-calendar-card { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 6px; padding: 10px; overflow: hidden; }
#alcoholCalendarScreen .alcohol-calendar-monthbar { flex: 0 0 auto; margin-bottom: 0; }
#alcoholCalendarScreen .alcohol-calendar-actions { min-height: 40px; }
#alcoholCalendarScreen .alcohol-calendar-grid { flex: 1 1 auto; min-height: 0; grid-auto-rows: minmax(0,1fr); }
#alcoholCalendarScreen .alcohol-calendar-weekday { min-height: 24px; }
#alcoholCalendarScreen .alcohol-calendar-day { min-height: 0; gap: 2px; padding: 3px; }
#alcoholCalendarScreen .alcohol-calendar-cell { gap: 2px; padding: 3px; }
#alcoholCalendarScreen .alcohol-calendar-cell > .alcohol-calendar-day { min-height: 16px; padding: 0; cursor: pointer; }
#alcoholCalendarScreen .alcohol-calendar-record-line { font-size: clamp(.43rem,1.25vw,.6rem); }
#alcoholCalendarScreen .alcohol-calendar-cell.has-entry { container: alcohol-day / size; }
@container alcohol-day (max-height: 76px) {
  .alcohol-calendar-day .alcohol-calendar-drink-icons { grid-auto-rows: 12px; row-gap: 0; font-size: .64rem; }
  .alcohol-calendar-drink-icon { height: 12px; font-size: 12px; }
  .alcohol-calendar-drink-icons .alcohol-soju-emoji { height: 12px; }
  .alcohol-calendar-snack-badge { padding: 0 2px; font-size: .52rem; }
}
@media (max-width: 440px) { #alcoholCalendarEntryModal { align-items: end; padding: 0; } #alcoholCalendarEntryModal .alcohol-entry-content { max-height: calc(100dvh - 16px); border-radius: 20px 20px 0 0; } #alcoholCalendarEntryModal .modal-header { padding: 12px 16px; } #alcoholCalendarEntryModal .alcohol-entry-body { padding: 0 16px 16px; gap: 14px; } #alcoholCalendarEntryModal .alcohol-entry-actions { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 520px) { #alcoholCalendarScreen .alcohol-calendar-record-line { min-height: 22px; padding: 3px; } }
@media (max-width: 640px) {
  body[data-current-screen="alcohol-calendar"] { height: auto; min-height: 100dvh; overflow-y: auto; }
  body[data-current-screen="alcohol-calendar"] .page-shell { height: auto; min-height: 100dvh; overflow: visible; }
  body[data-current-screen="alcohol-calendar"] #appView { flex: 0 0 auto; height: auto; overflow: visible; }
  #alcoholCalendarScreen:not(.hidden) { flex: 0 0 auto; gap: 6px; overflow: visible; }
  #alcoholCalendarScreen .alcohol-calendar-card { flex: 0 0 auto; gap: 4px; padding: 8px; }
  #alcoholCalendarScreen .alcohol-calendar-grid { --alcohol-calendar-weekday-height: 24px; --alcohol-calendar-row-height: clamp(84px, 20vw, 96px); flex: 0 0 auto; gap: 3px; }
  #alcoholCalendarScreen .alcohol-calendar-cell { gap: 1px; padding: 2px; border-radius: 9px; }
  #alcoholCalendarScreen .alcohol-calendar-actions { min-height: 36px; }
  #alcoholCalendarScreen .alcohol-calendar-actions > button { min-height: 36px; }
  #alcoholCalendarScreen .alcohol-calendar-monthbar { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  #alcoholCalendarScreen .alcohol-calendar-monthbar button { width: 36px; min-height: 36px; }
  #alcoholCalendarScreen .alcohol-calendar-record-line { min-height: 22px; padding: 2px; }
  #alcoholCalendarScreen .alcohol-calendar-more { min-height: 14px; line-height: 14px; }
}
.fortune-color.coral-pink { color: #e45e73; }.fortune-color.deep-blue { color: #174c9a; }.fortune-color.mint { color: #15967d; }.fortune-color.lavender { color: #8066b5; }.fortune-color.lemon-yellow { color: #c18b00; }.fortune-color.burgundy { color: #8f2336; }.fortune-color.sky-blue { color: #2085bd; }.fortune-color.olive-green { color: #63772d; }.fortune-color.cream-beige { color: #9d774d; }.fortune-color.orange { color: #e16a18; }
@media (max-width: 360px) { .alcohol-calendar-day { min-height: 62px; padding: 6px 3px; } .alcohol-calendar-day small { font-size: .56rem; } .alcohol-entry-content { padding: 16px 14px; } }
.member-visit-button { width: 100%; min-height: 46px; margin-top: 14px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .55); background: #fff; color: #315a9f; font-size: 1rem; }
.member-home-card, .member-account-card { border-radius: 15px; background: #fff; box-shadow: 0 6px 16px rgba(34,55,90,.06); }
.member-home-card { display: grid; gap: 8px; padding: 18px; color: #64748b; font-size: .84rem; }
.member-visit-count-title { display: grid; gap: 3px; }
.member-visit-count-title small { color: #94a3b8; font-size: .65rem; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.member-home-card strong { color: #14213d; font-size: 1.05rem; }
.member-account-card { padding: 20px; }
.member-account-card h2 { margin: 0 0 15px; font-size: 1rem; }
.member-account-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-account-heading h2 { margin: 0 0 15px; }
.member-edit-button { width: auto; min-height: 34px; margin: -4px 0 10px; padding: 0 12px; background: #eef3fb; color: #315a9f; font-size: .82rem; }
.member-account-card > div:not(.member-account-heading) { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #edf0f4; color: #64748b; font-size: .88rem; }
.member-account-card strong { color: #14213d; }
#memberHomeScreen { gap: 16px; }
#memberHomeScreen #memberHomeStatus:empty { display: none; }
#memberHomeScreen .member-account-card ~ .member-home-memories { margin-top: -8px; }
#memberHomeHeader { padding: 8px 4px 2px; }
#memberHomeHeader .member-home-theme-actions { margin-left: auto; align-self: flex-start; }
#memberHomeHeader .member-home-theme-actions .theme-toggle { min-height: 38px; padding: 0 12px; white-space: nowrap; }
#memberHomeHeader .member-home-theme-actions .member-notification-bell {
  position: relative; display: grid; place-items: center; flex: 0 0 40px; width: 40px; min-height: 38px; padding: 0;
}
.member-notification-dot {
  position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: #e5484d; color: #fff; border: 1px solid currentColor;
}
.member-notifications-list { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.member-notifications-refresh { display: grid; place-items: center; margin-left: auto; }
#memberNotificationsStatus:empty { display: none; }
body[data-current-screen="notifications"] .bottom-nav { display: none; }
body[data-current-screen="notifications"] .page-shell { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.member-notification-row {
  width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "category ." "time message"; gap: 4px 12px; align-items: center; padding: 10px 14px;
  background: #fff; color: #243957; text-align: left; border: 1px solid #d9e2f0;
}
.member-notification-row.is-unread { background: #eef5ff; border-color: #abc4ec; }
.member-notification-row time { grid-area: time; white-space: nowrap; font-size: .76rem; font-weight: 500; color: #52667f; }
.member-notification-category { grid-area: category; justify-self: start; font-size: .74rem; padding: 2px 8px; border-radius: 999px; background: #e3edfa; color: #315a9f; }
.member-notification-row strong { grid-area: message; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="dark"] .member-notification-row { background: #1e2b3f; color: #edf3fc; border-color: #3a4b65; }
html[data-theme="dark"] .member-notification-row.is-unread { background: #263d5d; border-color: #6385b4; }
html[data-theme="dark"] .member-notification-row time { color: #bdcde2; }
html[data-theme="dark"] .member-notification-category { background: #394f70; color: #e4efff; }
#memberHomeHeader h1 { margin: 7px 0 4px; font-size: clamp(1.45rem, 5vw, 1.8rem); letter-spacing: -.04em; }
#memberHomeScreen .member-welcome-card { display: block; padding: 22px; border: 1px solid rgba(49,90,159,.18); border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: 0 10px 28px rgba(39,65,103,.08); }
#memberHomeScreen .member-membership-heading { margin-bottom: 18px; }
#memberHomeScreen .member-welcome-card > div { min-width: 0; }
#memberHomeScreen .member-rating-badge, #memberHomeScreen .relationship-badge { min-height: 34px; padding: 6px 11px; }
#memberHomeScreen .member-welcome-body > .eyebrow { display: block; margin-bottom: 12px; }
#memberHomeScreen .member-welcome-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
#memberHomeScreen .member-welcome-card p { margin: 0; }
#memberHomeScreen .member-visit-button { margin-top: 18px; border-color: #315a9f; background: #315a9f; color: #fff; box-shadow: 0 8px 18px rgba(49,90,159,.2); }
#memberHomeScreen .member-home-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#memberHomeScreen .member-home-menu { position: relative; z-index: 5; min-width: 0; }
#memberHomeScreen .member-home-extra-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; display: grid; grid-template-rows: 0fr; width: calc((100% - 10px) / 2); margin-top: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px); transition: grid-template-rows .24s ease, opacity .18s ease, visibility .24s, transform .24s ease; }
#memberHomeScreen .member-home-extra-menu.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
#memberHomeScreen .member-home-extra-menu-content { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; min-height: 0; overflow: hidden; padding: 0; border: 0 solid transparent; border-radius: 18px; background: rgba(248,250,253,.97); box-shadow: 0 14px 32px rgba(25,42,70,.2); backdrop-filter: blur(12px); }
#memberHomeScreen .member-home-menu-toggle .member-menu-chevron { transition: transform .24s ease; }
#memberHomeScreen .member-home-menu-toggle[aria-expanded="true"] .member-menu-chevron { transform: rotate(180deg); }
#memberHomeScreen .member-home-extra-menu.is-open .member-home-extra-menu-content { padding: 8px; border-width: 1px; border-color: rgba(49,90,159,.16); }
#memberHomeScreen #toggleMemberHomeMenu { border-color: #d1d7e0; background: linear-gradient(105deg, #edf0f4, #f8f9fb); color: #445064; }
#memberHomeScreen #toggleMemberHomeMenu span:first-child { color: inherit; }
html[data-theme="dark"] #memberHomeScreen #toggleMemberHomeMenu { border-color: #4b5566; background: linear-gradient(105deg, #303641, #252c36); color: #e0e4eb; }
@media (prefers-reduced-motion: reduce) {
  #memberHomeScreen .member-home-extra-menu, #memberHomeScreen .member-menu-chevron { transition: none; }
}
#memberHomeScreen .daily-fortune-button, #memberHomeScreen .alcohol-calendar-button, #memberHomeScreen .game-world-button { width: 100%; min-width: 0; margin: 0; min-height: 58px; padding: 0 8px; border-radius: 16px; font-size: .82rem; }
#memberHomeScreen .member-home-extra-menu .daily-fortune-button, #memberHomeScreen .member-home-extra-menu .alcohol-calendar-button, #memberHomeScreen .member-home-extra-menu .game-world-button { min-height: 48px; border-radius: 13px; box-shadow: 0 4px 10px rgba(35,55,86,.08); }
html[data-theme="dark"] #memberHomeScreen .member-home-extra-menu-content { background: rgba(30,38,51,.97); box-shadow: 0 14px 32px rgba(0,0,0,.4); }
html[data-theme="dark"] #memberHomeScreen .member-home-extra-menu.is-open .member-home-extra-menu-content { border-color: rgba(155,177,211,.2); }
#memberHomeScreen .alcohol-calendar-button { display: flex; align-items: center; justify-content: space-between; gap: 7px; border: 1px solid #d6c3ae; background: linear-gradient(105deg, #fff3e9, #fffaf5); color: #80502c; font-weight: 800; }
#memberHomeScreen .alcohol-calendar-button span:first-child { font-size: 1.1rem; color: #bb7141; }
#memberHomeScreen .member-info-grid { gap: 14px; }
#memberHomeScreen .member-home-card, #memberHomeScreen .member-account-card { border: 1px solid rgba(49,90,159,.14); border-radius: 18px; box-shadow: 0 8px 22px rgba(39,65,103,.06); }
html[data-theme="light"] #memberHomeScreen { background: radial-gradient(circle at 100% 0, rgba(111,139,220,.1), transparent 38%), radial-gradient(circle at 0 100%, rgba(95,196,164,.08), transparent 40%); }
html[data-theme="light"] #memberHomeHeader { border-bottom: 1px solid rgba(49,90,159,.1); }
html[data-theme="light"] #memberHomeScreen .member-welcome-card { border-color: rgba(102,132,194,.24); background: rgba(255,255,255,.88); box-shadow: 0 12px 30px rgba(56,85,130,.1); backdrop-filter: blur(10px); }
html[data-theme="light"] #memberHomeScreen .member-welcome-card { color: #14213d; }
html[data-theme="light"] #memberHomeScreen .member-welcome-card .eyebrow { color: #315a9f; }
html[data-theme="light"] #memberHomeScreen .member-welcome-card h2 { color: #14213d; }
html[data-theme="light"] #memberHomeScreen .member-welcome-card p { color: #64748b; }
html[data-theme="light"] #memberHomeScreen .member-rating-badge { border-color: #cbdcf7; background: #eef4ff; color: #315a9f; }
html[data-theme="light"] #memberHomeScreen .member-rating-badge small, html[data-theme="light"] #memberHomeScreen .member-rating-badge .badge-chevron { color: #315a9f; }
html[data-theme="light"] #memberHomeScreen .daily-fortune-button { border-color: #ead7a0; background: linear-gradient(105deg, #fff8df, #fffdf5); color: #765a13; }
html[data-theme="light"] #memberHomeScreen .alcohol-calendar-button { border-color: #e7cdb7; background: linear-gradient(105deg, #fff1e5, #fffaf5); color: #80502c; }
html[data-theme="light"] #memberHomeScreen .game-world-button { border-color: #c4d6f3; background: linear-gradient(105deg, #eef4ff, #f9fbff); color: #244f93; }
html[data-theme="light"] #memberHomeScreen .member-home-card, html[data-theme="light"] #memberHomeScreen .member-account-card { border-color: rgba(102,132,194,.2); background: rgba(255,255,255,.9); }
.my-rating-card { display: grid; gap: 5px; padding: 20px; border-radius: 15px; background: linear-gradient(135deg, #fff6d8, #fff); box-shadow: 0 6px 16px rgba(34,55,90,.06); }
.my-rating-card > span, .my-rating-card p { color: #7c6540; font-size: .84rem; }
.my-rating-card strong { color: #9a6500; font-size: 2rem; line-height: 1.1; }
.my-rating-card strong small { color: #9a6500; font-size: .9rem; }
.my-rating-card p { margin: 0; }
.rating-members-list { min-height: 0; }
.rating-member-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #edf0f4; }
.rating-member-item:last-child { border-bottom: 0; }
.rating-member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating-member-name-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rating-member-name-row .relationship-badge { min-height: 24px; max-width: 118px; padding: 3px 8px; font-size: .68rem; }
.rating-average { display: grid; justify-items: end; gap: 3px; color: #9a6500; font-size: .76rem; }
.rating-average strong { font-size: 1.08rem; }
.rating-controls { display: grid; grid-template-columns: repeat(5, 24px) auto; align-items: center; gap: 3px; }
.rating-star { width: 24px; min-height: 32px; padding: 0; border-radius: 0; background: transparent; color: #cbd5e1; font-size: 1.35rem; line-height: 1; }
.rating-star.active { color: #f59e0b; }
.give-rating-button { width: auto; min-height: 34px; margin-left: 7px; padding: 0 10px; font-size: .78rem; }
.relationship-dating-fields { display: grid; gap: 10px; }
.relationship-field-label { font-size: .92rem; font-weight: 700; }
.relationship-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.relationship-type-option { display: block; cursor: pointer; }
.relationship-type-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.relationship-type-option span { display: grid; min-height: 46px; place-items: center; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #64748b; font-size: .9rem; font-weight: 700; }
.relationship-type-option input:checked + span { border-color: #315a9f; background: #eef3fb; color: #315a9f; }
.game-filter { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 8px; }
.game-filter label { font-size: .78rem; }
.game-filter select, .game-filter input { padding: 10px; }
.game-filter button { min-height: 42px; padding: 0 15px; }
.game-records-search-form { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) auto; }
.mummy-search-form { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto; }
.star-rating-input { display: flex; align-items: center; gap: 4px; min-height: 42px; }
.star-rating-input .rating-star { width: 36px; min-height: 36px; padding: 0; border: 0; background: transparent; color: #cbd5e1; font-size: 1.7rem; line-height: 1; }
.star-rating-input .rating-star.active { color: #e3a72f; }
.mummy-rating-button { flex: 0 0 92px; width: 92px; }
.mummy-title-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mummy-series-name { color: #64748b; font-size: .78rem; font-weight: 700; }
.games-list-with-index { position: relative; }
.games-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow-anchor: none; }
.game-consonant-index { position: fixed; z-index: 20; top: 50%; right: max(10px, env(safe-area-inset-right)); width: 34px; padding: 9px 3px; border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 5px 18px rgba(20,33,61,.18); opacity: 0; pointer-events: none; touch-action: none; transform: translateY(-50%) scale(.94); transition: opacity .18s ease, transform .18s ease; }
.game-consonant-index.is-visible { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }
.game-consonant-index.is-dragging { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }
.game-initial-preview { position: absolute; top: 50%; left: -54px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #c6d5ed; border-radius: 50%; background: #315a9f; color: #fff; font-size: 1.45rem; font-weight: 900; line-height: 1; opacity: 0; transform: translateY(-50%) scale(.8); transition: opacity .12s ease, transform .12s ease; }
.game-consonant-index.is-dragging .game-initial-preview { opacity: 1; transform: translateY(-50%) scale(1); }
.game-consonant-scroll { display: grid; gap: 1px; }
.game-consonant-scroll span { display: grid; place-items: center; width: 28px; min-height: 25px; color: #52647e; font-size: .68rem; font-weight: 800; line-height: 1; cursor: grab; touch-action: none; user-select: none; }
.game-consonant-scroll span:hover, .game-consonant-scroll span:focus-visible { color: #315a9f; outline: none; }
.game-consonant-scroll span.active { color: #315a9f; font-size: 1.15rem; font-weight: 900; }
.game-consonant-scroll span:active { cursor: grabbing; }
.game-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid #edf0f4; content-visibility: auto; contain-intrinsic-size: 0 76px; }
.games-list .game-item { content-visibility: visible; contain-intrinsic-size: 0 0; }
.game-item-editable .game-item-info { cursor: pointer; }
.game-item:last-child { border-bottom: 0; }
.game-item:has([data-board-game-select]:checked) { background: #f3f7ff; }
.game-item-info { display: grid; flex: 1 1 auto; gap: 4px; min-width: 0; }
.game-item-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.othello-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:linear-gradient(135deg,#315a9f,#1e3a68); color:#fff; font-size:1.7rem; box-shadow:inset 0 0 0 3px rgba(255,255,255,.22); }
.othello-board { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); grid-template-rows:repeat(8,minmax(0,1fr)); gap:2px; width:100%; max-width:520px; box-sizing:border-box; margin:18px auto 0; padding:6px; border-radius:10px; background:#356b43; box-shadow:0 8px 20px rgba(20,33,61,.18); overflow:hidden; }
.othello-cell { aspect-ratio:1; min-height:0; padding:0; border:0; border-radius:0; background:#4d9a58; cursor:pointer; display:grid; place-items:center; }
.othello-cell { box-shadow: inset 0 0 0 1px rgba(20,70,35,.38); }
.othello-cell.last-move { position: relative; z-index: 1; box-shadow: inset 0 0 0 3px #e14b3f, 0 0 0 1px #e14b3f; }
.othello-cell.last-move .othello-stone { outline: 2px solid #e14b3f; outline-offset: 2px; }
.othello-cell:disabled { opacity:1; cursor:default; }
.othello-stone { display:block; width:78%; aspect-ratio:1; border-radius:50%; background:#101820; box-shadow:inset -3px -4px 5px rgba(0,0,0,.35),2px 2px 3px rgba(0,0,0,.25); }
.othello-stone.white { background:#f8fafc; box-shadow:inset -3px -4px 5px rgba(0,0,0,.18),2px 2px 3px rgba(0,0,0,.2); }
@media (max-width:480px){ .othello-board{width:100%;gap:1px;padding:4px;} .othello-game-room .omok-game-actions{display:grid;grid-template-columns:1fr;gap:7px;} .othello-game-room .omok-players{gap:6px;} .othello-game-room{padding:12px;} }
html[data-theme="dark"] .othello-board { background:#1e5a35; box-shadow:none; }
html[data-theme="dark"] .othello-cell { background:#317d45; box-shadow:inset 0 0 0 1px rgba(190,240,200,.22); }
.game-favorite-toggle { flex: 0 0 42px; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #aab7c9; font-size: 1.65rem; line-height: 1; }
.game-favorite-toggle.active { background: transparent; color: #e3a72f; }
.game-favorite-toggle:disabled { opacity: .55; }
.game-category { color: #64748b; font-size: .8rem; }
.game-expansion-label { color: #9a5a00; font-size: .77rem; font-weight: 700; }
.game-expansion-check { display: flex; align-items: center; gap: 8px; min-height: 24px; color: #334155; font-size: .92rem; }
.game-expansion-check input { width: 18px; height: 18px; margin: 0; accent-color: #315a9f; }
.favorite-game-button { flex: 0 0 92px; width: 92px; min-height: 36px; padding: 0 8px; white-space: nowrap; background: #eef3fb; color: #315a9f; }
.favorite-game-button.active { background: #315a9f; color: #fff; }
.game-preference-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.game-preference-actions .favorite-game-button { flex-basis: 58px; width: 58px; }
.favorite-game-button.dislike { color: #a33a47; background: #fff0f1; }
.favorite-game-button.dislike.active { color: #fff; background: #b84755; }
.rulemaster-game-button { box-sizing: border-box; flex: 0 0 100px; width: 100px; min-width: 100px; padding: 0 8px; text-align: center; line-height: 1.2; font-size: .86rem; font-weight: 800; white-space: nowrap; }
.game-preference-badge { flex: 0 0 auto; border-radius: 999px; padding: 6px 9px; background: #e9f0fc; color: #315a9f; font-size: .76rem; font-weight: 700; }
.game-preference-badge.dislike { background: #fff0f1; color: #a33a47; }

/* Board-game directory cards: match the member-home glass/card language without
   changing list markup or interaction behavior. */
#gamesScreen .game-filter,
#rulemasterGamesScreen .game-filter,
#otherFavoriteGamesScreen .other-favorite-search {
  padding: 14px;
  border: 1px solid rgba(49,90,159,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 22px rgba(20,33,61,.06);
}
#gamesScreen .games-actions { gap: 8px; }
#gamesScreen .games-actions .secondary-button {
  border-radius: 999px;
  font-weight: 800;
}
#gamesScreen .games-list,
#rulemasterGamesScreen .games-list,
#otherFavoriteGamesScreen .games-list {
  display: grid;
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
}
#gamesScreen .game-item,
#rulemasterGamesScreen .game-item,
#otherFavoriteGamesScreen .game-item {
  min-height: 78px;
  box-sizing: border-box;
  border: 1px solid rgba(49,90,159,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 7px 18px rgba(20,33,61,.07);
  content-visibility: visible;
  contain-intrinsic-size: 0 0;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
#gamesScreen .game-item:last-child,
#rulemasterGamesScreen .game-item:last-child,
#otherFavoriteGamesScreen .game-item:last-child { border-bottom: 1px solid rgba(49,90,159,.14); }
#gamesScreen .game-item:hover,
#gamesScreen .game-item:focus-within,
#rulemasterGamesScreen .game-item:hover,
#rulemasterGamesScreen .game-item:focus-within,
#otherFavoriteGamesScreen .game-item:hover,
#otherFavoriteGamesScreen .game-item:focus-within {
  transform: translateY(-1px);
  border-color: rgba(49,90,159,.34);
  box-shadow: 0 10px 24px rgba(49,90,159,.13);
}
#gamesScreen .game-item:has([data-board-game-select]:checked) {
  border-color: rgba(49,90,159,.5);
  background: #f3f7ff;
}
#gamesScreen .game-item-info,
#rulemasterGamesScreen .game-item-info,
#otherFavoriteGamesScreen .game-item-info { gap: 5px; }
#gamesScreen .game-item-info strong,
#rulemasterGamesScreen .game-item-info strong,
#otherFavoriteGamesScreen .game-item-info strong { font-size: .98rem; letter-spacing: -.01em; }
#gamesScreen .game-category,
#rulemasterGamesScreen .game-category,
#otherFavoriteGamesScreen .game-category { font-size: .77rem; }
#gamesScreen .game-record-button,
#gamesScreen .favorite-game-button,
#rulemasterGamesScreen .rulemaster-game-button,
#otherFavoriteGamesScreen .favorite-game-button {
  border-radius: 999px;
  font-weight: 800;
  box-shadow: none;
}
#rulemasterGamesScreen .rulemaster-badges { gap: 5px; }
#rulemasterGamesScreen .rulemaster-label,
#rulemasterGamesScreen .rulemaster-nickname {
  border-radius: 999px;
  padding: 5px 8px;
}
.admins-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.admin-section { display: grid; gap: 10px; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
.admin-section-heading h3 { margin: 0; font-size: 1rem; }
.section-count, .admin-role { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #eef3fb; color: #315a9f; font-size: .75rem; font-weight: 800; }
.admin-role.super { background: #fff1cf; color: #9a6500; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #64748b; font-size: .84rem; }
.admin-toolbar select { width: auto; min-height: 36px; padding: 0 8px; font-size: .82rem; }
.role-change-button { width: auto; min-height: 36px; padding: 0 12px; }
.admin-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-bottom: 1px solid #edf0f4; }
.admin-item:has([data-admin-select]) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.admin-item:has(input:checked) { background: #f3f7ff; }
.admin-item:last-child { border-bottom: 0; }
.admin-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.admin-date { margin-top: 5px; color: #64748b; font-size: .8rem; line-height: 1.45; word-break: keep-all; }
.approve-button { width: auto; min-height: 38px; flex: 0 0 auto; padding: 0 13px; background: #2d8a58; }
.admin-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.reject-button { width: auto; min-height: 38px; padding: 0 13px; background: #f1e5e5; color: #b43b3b; }
.pricing-heading { align-items: flex-start; }
.pricing-heading h2 { margin: 4px 0; }
.pricing-heading p { margin: 0; color: #64748b; font-size: .9rem; }
.info-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 18px 0; padding: 5px; border-radius: 12px; background: #eef3fb; }
.info-tab { min-height: 40px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: #64748b; font-size: .82rem; font-weight: 800; cursor: pointer; }
.info-tab { min-width: 0; white-space: nowrap; }
.info-tab.active { background: #315a9f; color: #fff; box-shadow: 0 3px 8px rgba(49,90,159,.18); }
.info-tabs { cursor: grab; user-select: none; -webkit-user-select: none; }
.info-tabs.is-dragging { cursor: grabbing; }
.info-tabs-shell { position: relative; min-width: 0; }
.info-tabs-shell.has-more-right::after { content: ""; position: absolute; z-index: 3; top: 0; right: 0; width: 46px; height: 100%; border-radius: 0 16px 16px 0; background: linear-gradient(90deg, rgba(5,10,20,.08), rgba(5,10,20,.98) 86%); box-shadow: none; pointer-events: none; }
html[data-theme="light"] .info-tabs-shell.has-more-right::after { background: linear-gradient(90deg, rgba(238,243,251,0), rgba(238,243,251,.96) 86%); box-shadow: none; }
.member-info-panel { display: block; }
.memories-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.memories-heading .secondary-button { flex: 0 0 auto; min-height: 42px; padding: 0 14px; }
.memories-help { margin: -4px 0 14px; color: #64748b; font-size: .9rem; }
.agit-memories-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.agit-memories-empty { grid-column: 1 / -1; width: 100%; box-sizing: border-box; text-align: center; }
.agit-memory-card { overflow: hidden; border: 1px solid #d7dfeb; border-radius: 14px; background: #fff; }
.agit-memory-image-button { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.agit-memory-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #edf2f8; }
.agit-memory-body { display: grid; gap: 6px; padding: 12px; }
.agit-memory-author { color: #315a9f; font-size: .78rem; font-weight: 800; }
.agit-memory-memo { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-height: 2.9em; margin: 0; color: #263b59; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.agit-memory-toolbar, .agit-board-game-picker { display: grid; gap: 6px; }
.agit-memory-toolbar input { width: 100%; min-width: 0; }
.agit-memory-toolbar label, .agit-board-game-picker label { font-size: .85rem; font-weight: 700; }
.agit-board-game-field { position: relative; }
.agit-board-game-field input { width: 100%; padding-inline-end: 50px; }
#memoryBoardGameClear { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; font-size: 1.25rem; line-height: 1; }
.agit-board-game-options { display: grid; gap: 6px; max-height: min(240px, 35dvh); overflow: auto; overscroll-behavior: contain; }
.agit-board-game-options .history-status { min-height: 0; margin: 0; padding: 2px 0; }
.agit-board-game-options .history-status:empty { position: absolute; padding: 0; }
.agit-board-game-options ul { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.agit-board-game-options li button { display: flex; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; min-height: 36px; text-align: left; overflow-wrap: anywhere; }
.agit-board-game-favorite { flex-shrink: 0; color: #a66c00; }
html[data-theme="dark"] .agit-board-game-favorite { color: #ffd45a; }
.agit-memories-more { display: block; width: 100%; margin-top: 12px; }
.agit-memory-game-tag { justify-self: start; margin: 0; padding: 3px 8px; background: #edf4ff; color: #294c82; border-radius: 8px; font-size: .78rem; font-weight: 700; overflow-wrap: anywhere; }
.agit-memory-date { color: #8492a8; font-size: .75rem; }
.member-home-memories { position:relative; display: grid; gap: 12px; padding: 18px; }
.member-home-memories-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height:88px; }
.member-home-memories-actions { position:absolute; top:18px; right:18px; display:flex; flex-direction:column; align-items:flex-end; flex-shrink:0; gap:4px; }
.member-home-memories-actions button { width:auto; margin:0; }
.member-home-memories-add { min-height:36px; padding:7px 13px; border:1px solid #315a9f; border-radius:10px; background:#315a9f; color:#fff; font-size:.84rem; font-weight:800; white-space:nowrap; }
html[data-theme="dark"] .member-home-memories-add { border-color:#6d91c5; background:#315b91; color:#fff; }
.member-home-memories-heading .eyebrow { color: #315a9f; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.member-home-memories-heading h2 { margin: 3px 0 0; font-size: 1.05rem; }
.member-home-memories-all { display: inline-flex; align-items: center; gap: 4px; padding: 7px 0 7px 8px; border: 0; background: transparent; color: #315a9f; font-size: .84rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.member-home-memories-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.member-home-memory { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(49,90,159,.14); border-radius: 12px; background: #f3f6fb; }
.member-home-memory img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.member-home-memory-uploaded-at { position: absolute; top: 4px; left: 4px; max-width: calc(100% - 8px); padding: 3px 4px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; background: rgba(15,23,42,.76); color: #fff; font-size: clamp(.58rem,2vw,.68rem); font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.member-home-memory span { display: block; overflow: hidden; padding: 7px 8px; color: #64748b; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.agit-memory-comments { display: grid; gap: 9px; margin-top: 10px; padding-top: 11px; border-top: 1px solid #e7edf5; }
.agit-memory-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.agit-memory-comment-count { color: #536980; font-size: .8rem; font-weight: 700; }
.agit-memory-comments h4 { margin: 0; color: #263b59; font-size: .85rem; }
.agit-memory-comments h4 span { margin-left: 4px; color: #8492a8; font-weight: 600; }
.agit-memory-comment-list { display: grid; gap: 8px; }
.agit-memory-comment-thread, .agit-memory-replies { display: grid; min-width: 0; gap: 6px; }
.agit-memory-replies { margin-inline-start: 12px; padding-inline-start: 9px; border-inline-start: 2px solid #d6e2f2; }
.agit-memory-comment { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: baseline; padding: 8px 10px; border-radius: 9px; background: #f3f6fb; }
.agit-memory-comment strong { color: #315a9f; font-size: .76rem; }
.agit-memory-comment p { grid-column: 1/-1; margin: 0; color: #263b59; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.agit-memory-comment time { color: #8492a8; font-size: .69rem; }
.agit-memory-comment-actions { grid-column: 1/-1; justify-self: start; display: flex; gap: 8px; }
.agit-memory-comment-actions button { width: auto; min-height: 32px; margin: 0; padding: 0 5px; border: 0; background: transparent; color: #315a9f; font-size: .76rem; }
.agit-memory-comment-actions .agit-memory-delete-button { color: #a43434; }
.agit-memory-comment.is-deleted p { color: #536980; }
.agit-memory-comments-empty,.agit-memory-comments-status { margin: 0; color: #8492a8; font-size: .78rem; }
.agit-memory-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.agit-memory-comment-form input { min-width: 0; min-height: 39px; padding: 8px 10px; border: 1px solid #d7dfeb; border-radius: 9px; background: #fff; color: #263b59; }
.agit-memory-comment-form > button { min-height: 39px; padding: 0 13px; border-radius: 9px; background: #315a9f; color: #fff; white-space: nowrap; }
.agit-memory-reply-target { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 9px; background: #f3f6fb; color: #315a9f; font-size: .78rem; }
.agit-memory-reply-target span { min-width: 0; overflow-wrap: anywhere; }
.agit-memory-reply-target button { flex: none; width: auto; min-height: 32px; padding: 0 8px; font-size: inherit; }
.agit-memory-delete { justify-self: end; min-height: 32px; padding: 0 10px; font-size: .78rem; }
.memory-image-preview { overflow: hidden; max-height: 220px; border-radius: 10px; background: #edf2f8; }
.memory-image-preview img { display: block; width: 100%; max-height: 220px; object-fit: contain; }
.memory-character-count { display: block; margin-top: -12px; color: #8492a8; text-align: right; font-size: .75rem; }
html[data-theme="dark"] .memories-help { color: #aab8cb; }
html[data-theme="dark"] .agit-memory-card { border-color: #34445c; background: #1b2738; }
html[data-theme="dark"] .agit-memory-memo { color: #edf3fc; }
html[data-theme="dark"] .agit-memory-date { color: #9aaac0; }
html[data-theme="dark"] .memory-image-preview, html[data-theme="dark"] .agit-memory-image { background: #202d40; }
html[data-theme="dark"] .member-home-memories { border-color: rgba(195,192,255,.16); background: #1a2230; }
html[data-theme="dark"] .member-home-memory { border-color: #34445c; background: #202d40; }
html[data-theme="dark"] .member-home-memory span, html[data-theme="dark"] .agit-memory-comments-empty, html[data-theme="dark"] .agit-memory-comments-status { color: #aab8cb; }
html[data-theme="dark"] .member-home-memories-heading h2, html[data-theme="dark"] .agit-memory-comments h4 { color: #edf2fa; }
html[data-theme="dark"] .member-home-memories-all { color: #a9c8ff; }
html[data-theme="dark"] .agit-memory-comments { border-top-color: #34445c; }
html[data-theme="dark"] .agit-memory-comment { background: #202d40; }
html[data-theme="dark"] .agit-memory-replies { border-inline-start-color: #40516b; }
html[data-theme="dark"] .agit-memory-reply-target { background: #202d40; color: #b5d2ff; }
html[data-theme="dark"] .agit-memory-comment-actions .agit-memory-reply-button { color: #b5d2ff; }
html[data-theme="dark"] .agit-memory-comment-actions .agit-memory-delete-button { color: #ffb6b6; }
html[data-theme="dark"] .agit-memory-comment.is-deleted p { color: #aab8cb; }
html[data-theme="dark"] .agit-memory-comment strong { color: #b5d2ff; }
html[data-theme="dark"] .agit-memory-comment time { color: #aab8cb; }
html[data-theme="dark"] .agit-memory-comment p { color: #edf3fc; }
html[data-theme="dark"] .agit-memory-comment-form input { border-color: #40516b; background: #141d2b; color: #edf3fc; }
html[data-theme="dark"] .agit-memory-game-tag { background: #263851; color: #c8dcff; }
html[data-theme="dark"] .agit-memory-comment-count { color: #becde2; }
#agitMemoryDetailModal { place-items:center; padding:16px; box-sizing:border-box; }
#agitMemoryDetailModal .agit-memory-detail-content { width:min(100%,680px); max-height:min(90dvh,900px); overflow:hidden; border-radius:18px; box-shadow:0 16px 48px rgba(15,23,42,.3); }
#agitMemoryDetailModal .modal-header { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; padding:16px 18px; border-bottom:1px solid #e7edf5; }
#agitMemoryDetailModal .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; text-align:left; }
#agitMemoryDetailModal .modal-header .close-button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; display:grid; place-items:center; margin-left:auto; line-height:1; }
#agitMemoryDetailModal .agit-memory-detail-body { display:grid; gap:12px; max-height:calc(min(90dvh,900px) - 150px); overflow:auto; padding:16px 18px; }
.agit-memory-detail-image { display:block; width:100%; max-height:min(56dvh,580px); object-fit:contain; border-radius:12px; background:#edf2f8; }
.agit-memory-detail-meta { display:flex; align-items:baseline; justify-content:space-between; gap:12px; color:#8492a8; font-size:.82rem; }
.agit-memory-detail-meta strong { color:#315a9f; }
.agit-memory-detail-memo { margin:0; color:#263b59; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.agit-memory-edit-actions { display:flex; justify-content:flex-end; gap:8px; }
#agitMemoryDetailModal .game-modal-footer { justify-content:flex-end; gap:8px; padding:12px 18px; border-top:1px solid #e7edf5; }
html[data-theme="dark"] #agitMemoryDetailModal .modal-header, html[data-theme="dark"] #agitMemoryDetailModal .game-modal-footer { border-color:#34445c; background:#1a2230; }
html[data-theme="dark"] #agitMemoryDetailModal .agit-memory-detail-body { background:#1a2230; }
html[data-theme="dark"] .agit-memory-detail-image { background:#202d40; }
html[data-theme="dark"] .agit-memory-detail-memo { color:#edf3fc; }
html[data-theme="dark"] .agit-memory-detail-meta strong { color:#a9c8ff; }
@media(max-width:520px) { #agitMemoryDetailModal { padding:10px; } #agitMemoryDetailModal .agit-memory-detail-content { max-height:92dvh; } #agitMemoryDetailModal .agit-memory-detail-body { max-height:calc(92dvh - 140px); padding:12px; } #agitMemoryDetailModal .modal-header { padding:12px; } #agitMemoryDetailModal .game-modal-footer { padding:10px 12px; } }
.hours-card, .menu-board { padding: 20px; border: 1px solid #e1e8f3; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(34,55,90,.05); }
.hours-card h3 { margin: 0 0 18px; font-size: 1.08rem; }
.hours-list { display: grid; gap: 0; }
.hours-list > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid #edf0f4; }
.hours-list > div:first-child { padding-top: 0; }
.hours-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.hours-list strong { color: #315a9f; }
.hours-list span { color: #475569; }
.hours-closed-notice { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 18px 16px; border: 1px solid #dce7f5; border-radius: 16px; background: #f4f8ff; color: #14213d; text-align: left; }
.hours-closed-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: #e1ecff; font-size: 1.45rem; }
.hours-closed-notice h3 { margin: 0 0 5px; font-size: 1rem; }
.hours-closed-notice p { margin: 0; color: #64748b; font-size: .86rem; }
.agit-location-card { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 18px 16px; border: 1px solid #dce7f5; border-radius: 16px; background: #f8fbff; color: #14213d; text-align: left; }
.agit-location-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: #e1ecff; font-size: 1.45rem; }
.agit-location-content { min-width: 0; flex: 1; }
.agit-location-content > span { display: block; color: #315a9f; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.agit-location-content h3 { margin: 3px 0 4px; font-size: 1rem; }
.agit-location-content p { margin: 0; color: #64748b; font-size: .86rem; line-height: 1.45; word-break: keep-all; }
.agit-map-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; margin-top: 11px; padding: 0 11px; border-radius: 8px; background: #315a9f; color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; }
.admin-form-divider { margin-top: 5px; padding-top: 18px; border-top: 1px solid #e1e8f3; color: #315a9f; font-size: .9rem; font-weight: 800; }
.menu-board-heading { margin-bottom: 18px; }
.menu-board-heading h3 { margin: 4px 0 0; font-size: 1.25rem; }
.menu-columns { display: flex; flex-direction: column; gap: 28px; }
.menu-columns > div:nth-child(2) { order: -1; }
.menu-columns h4 { margin: 0 0 10px; color: #315a9f; font-size: 1.2rem; letter-spacing: .08em; }
.menu-columns h5 { margin: 16px 0 7px; padding-bottom: 5px; border-bottom: 2px solid #315a9f; color: #b4473d; font-size: .78rem; }
.menu-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; color: #334155; font-size: .78rem; line-height: 1.35; }
.menu-row span:last-child { flex: 0 0 auto; color: #475569; text-align: right; }
.menu-note { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #f1c7c1; color: #b4473d; font-size: .78rem; font-weight: 700; }
.admin-info-type { margin-bottom: 4px; }
.admin-info-panel { display: grid; gap: 16px; }
.admin-info-panel h3 { margin: 0; font-size: 1.08rem; }
.admin-tournament-prize-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-tournament-prize-section { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid #dce5f2; border-radius: 16px; background: #f7f9fc; }
.admin-tournament-prize-section h4 { margin: 0; color: #1e3d68; font-size: .98rem; }
html[data-theme="dark"] .admin-tournament-prize-section { border-color: #344863; background: #1a2b42; }
html[data-theme="dark"] .admin-tournament-prize-section h4 { color: #e4efff; }
@media (max-width: 620px) { .admin-tournament-prize-grid { grid-template-columns: 1fr; } }
.admin-content-form { display: grid; gap: 14px; }
.admin-content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.admin-game-availability-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.admin-game-availability-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid #d8e1ee; border-radius: 12px; background: #fff; }
.admin-game-availability-row > strong { min-width: 0; color: #14213d; font-size: .9rem; }
.admin-game-availability-toggle { flex: 0 0 64px; min-height: 36px; padding: 0 12px; border: 1px solid #aebbd0; border-radius: 999px; background: #e9eef6; color: #52627a; font-size: .82rem; font-weight: 800; }
.admin-game-availability-toggle.is-enabled { border-color: #315a9f; background: #315a9f; color: #fff; }
html[data-theme="dark"] .admin-game-availability-row { border-color: #33445e; background: #1a2230; }
html[data-theme="dark"] .admin-game-availability-row > strong { color: #e5edf8; }
html[data-theme="dark"] .admin-game-availability-toggle { border-color: #52627a; background: #2a3547; color: #cbd5e1; }
html[data-theme="dark"] .admin-game-availability-toggle.is-enabled { border-color: #4c77c2; background: #315a9f; color: #fff; }
#gameAvailabilityNoticeModal .notice-content { justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
#gameAvailabilityNoticeModal .modal-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#gameAvailabilityNoticeModal .modal-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; text-align: left; }
#gameAvailabilityNoticeModal .modal-header .close-button { display: grid; flex: 0 0 40px; place-items: center; width: 40px; min-width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 0; line-height: 1; }
#gameAvailabilityNoticeModal .notice-content > p { margin: 0; text-align: left; line-height: 1.55; }
#gameAvailabilityNoticeModal .notice-content > button { width: 100%; min-height: 44px; }
@media (max-width: 480px) { #gameAvailabilityNoticeModal .notice-content { padding: 18px 14px; } }

.admin-content-form label { display: grid; gap: 7px; color: #14213d; font-weight: 700; }
.admin-content-form textarea { min-height: 280px; resize: vertical; line-height: 1.6; }
.menu-editor-columns { display: flex; flex-direction: column; gap: 22px; }
.menu-editor-columns section { display: grid; gap: 10px; }
.menu-editor-columns h4 { margin: 0; color: #315a9f; }
.menu-add-button { min-height: 34px; padding: 0 10px; font-size: .78rem; }
.menu-editor-list { display: grid; gap: 8px; }
.menu-editor-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(84px, .65fr) auto auto; gap: 6px; align-items: center; }
.menu-editor-drink-row { grid-template-columns: 20px minmax(0, 1fr) minmax(70px, .55fr) minmax(70px, .55fr) auto auto; }
.menu-editor-row input { min-width: 0; min-height: 38px; padding: 0 9px; font-size: .82rem; }
.menu-remove-button { width: auto; min-height: 34px; padding: 0 8px; font-size: .74rem; }
.menu-drag-handle { color: #8794a7; cursor: grab; font-size: 1.1rem; text-align: center; }
.menu-editor-row.is-dragging { opacity: .45; }
.menu-recommend-button { min-height: 34px; padding: 0 8px; font-size: .72rem; white-space: nowrap; }
.menu-recommend-button.active { border-color: #e4ad2f; background: #fff4cf; color: #9a6a00; box-shadow: 0 0 0 2px rgba(228,173,47,.16); }
.menu-recommend-icon { display: inline-block; margin-left: 5px; padding: 2px 5px; border: 1px solid #e4ad2f; border-radius: 999px; background: #fff4cf; color: #9a6a00 !important; font-size: .62em; font-weight: 900; line-height: 1.1; white-space: nowrap; vertical-align: middle; }
.member-menu-dynamic { display: grid; gap: 16px; }
.member-menu-title { margin: 0 0 14px; }
.member-menu-title h3 { margin: 4px 0 0; font-size: 1.25rem; }
.member-info-title { margin: 0 0 14px; }
.member-info-title h3 { margin: 4px 0 0; font-size: 1.25rem; }
.member-info-panel[data-member-info-panel="menu"] .menu-board-heading { display: none; }
.member-info-panel[data-member-info-panel="menu"] .menu-note { display: none; }
.member-info-panel[data-member-info-panel="menu"] > .menu-board { display: none; }
.member-menu-group { overflow: hidden; border: 1px solid #dce5f2; border-radius: 16px; background: #fff; box-shadow: 0 5px 14px rgba(34,55,90,.05); }
.member-menu-group h4 { margin: 0; padding: 13px 16px; background: linear-gradient(135deg, #315a9f, #4773bb); color: #fff; font-size: 1.05rem; letter-spacing: .1em; }
.member-menu-group .menu-row { min-height: 44px; align-items: center; margin: 0; padding: 9px 16px; border-bottom: 1px solid #eef2f7; font-size: .88rem; }
.member-menu-group .menu-row:last-child { border-bottom: 0; }
.member-menu-group .menu-row span:first-child { color: #14213d; font-weight: 700; }
.member-menu-group .menu-row span:last-child { color: #315a9f; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.menu-price-line { display: block; }
.member-info-panel[data-member-info-panel="menu"] .menu-board > .menu-columns { display: none; }
.admin-price-grid .price-card { cursor: default; }
.admin-price-input { display: inline-block; width: 132px; padding: 2px 4px; border: 0; border-bottom: 1px solid #cbd5e1; border-radius: 0; color: #14213d; font-size: 1.45rem; font-weight: 800; line-height: 1.2; text-align: right; }
.admin-food-price { padding: 14px; border: 1px solid #e1e8f3; border-radius: 12px; background: #fff; }
.admin-visit-radius { display: grid; gap: 8px; color: #14213d; font-weight: 700; }
.admin-visit-radius input { margin: 0; }
.current-location-info { display: grid; gap: 7px; padding: 14px; border-radius: 10px; background: #f5f8fd; color: #64748b; font-size: .82rem; }
.current-location-info strong { color: #14213d; font-size: .95rem; line-height: 1.5; word-break: keep-all; }
.price-grid { display: grid; gap: 12px; }
.price-card { position: relative; display: grid; grid-template-columns: 94px 1fr; align-items: center; gap: 4px 14px; min-height: 104px; padding: 18px; border: 1px solid #e1e8f3; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(34, 55, 90, .05); }
.price-card .price-time { grid-row: 1 / span 2; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 13px; background: #eff4fd; color: #315a9f; font-size: .98rem; font-weight: 800; }
.price-card > strong { font-size: 1.6rem; letter-spacing: -.04em; }
.price-card > strong span { margin-left: 2px; font-size: .92rem; letter-spacing: 0; }
.price-card p { margin: 0; color: #718096; font-size: .82rem; }
.price-card.featured { border: 2px solid #315a9f; background: #f9fbff; }
.price-card.featured .price-time { background: #315a9f; color: #fff; }
.price-badge { position: absolute; top: -10px; right: 15px; padding: 4px 8px; border-radius: 999px; background: #f2a62a; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.notice-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; }
#memberPricingContent .price-grid + .notice-card { margin-top: 22px; }
#memberPricingContent .notice-card + .notice-card { margin-top: 12px; }
.notice-card-icon { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.3rem; }
.notice-card h3 { margin: 0 0 4px; font-size: .98rem; }
.notice-card p { margin: 0; color: #64748b; font-size: .84rem; line-height: 1.5; }
.beverage-notice { background: #f2f7ff; border: 1px solid #dceafd; }
.beverage-notice .notice-card-icon { background: #dceafd; }
.food-notice { background: #fff8ed; border: 1px solid #f8e5c5; }
.food-notice .notice-card-icon { background: #ffebc8; }
.header-actions { display: flex; gap: 8px; }
.title-badge-button { width: auto; min-height: 36px; padding: 0 11px; border: 0; border-radius: 999px; background: #315a9f; color: #fff; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.game-room-spectator-badge { background: #e8eef9; color: #315a9f; }
.game-room-spectators-content { width: min(100% - 28px, 360px); padding: 0; overflow: hidden; }
.game-room-spectators-content .modal-header { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 16px 18px; border-bottom: 1px solid #e5ebf4; }
.game-room-spectators-content .modal-header h2 { margin: 0; color: #17365f; font-size: 1.05rem; }
.game-room-spectators-content .close-button { width: 34px; min-width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: #55708f; font-size: 1.5rem; }
.game-room-spectators-list { display: grid; gap: 8px; max-height: min(50vh, 360px); overflow-y: auto; padding: 16px 18px 20px; }
.game-room-spectators-list p { margin: 0; padding: 10px 12px; border-radius: 9px; background: #f2f6fb; color: #284466; font-size: .9rem; font-weight: 700; }
html[data-theme="dark"] .game-room-spectator-badge { background: #263b5d; color: #d9e7ff; }
html[data-theme="dark"] .game-room-spectators-content .modal-header { border-color: #2f3e53; background: #151e2c; }
html[data-theme="dark"] .game-room-spectators-content .modal-header h2 { color: #edf3fc; }
html[data-theme="dark"] .game-room-spectators-list { background: #151e2c; }
html[data-theme="dark"] .game-room-spectators-list p { background: #202d40; color: #eaf1fb; }
.external-admin-login-button { min-height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: inherit; opacity: .025; font-size: .68rem; font-weight: 700; white-space: nowrap; transition: opacity .16s ease, border-color .16s ease; }
.external-admin-login-button:hover, .external-admin-login-button:focus-visible { opacity: 1; border-color: currentColor; outline: none; }
.room-status-map-card { overflow: hidden; border: 1px solid #dce5f2; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(34, 55, 90, .06); }
.room-status-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid #edf1f6; }
.room-status-map-heading h3 { margin: 4px 0 0; font-size: 1rem; }
.room-status-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 10px; color: #66758b; font-size: .65rem; font-weight: 800; }
.room-status-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.room-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b9c3d0; }
.room-legend-dot.general { background: #4d78bd; }
.room-legend-dot.group { background: #d95891; }
.room-status-map { position: relative; width: 100%; aspect-ratio: 441 / 713; overflow: hidden; background: #f4f7fb; }
.room-status-map::before { content: ""; position: absolute; z-index: 0; inset: .4%; border: 2px solid #cbd7e7; border-radius: 12px; background: linear-gradient(90deg, transparent 24.6%, #d3deec 24.6%, #d3deec 25.2%, transparent 25.2%, transparent 74.8%, #d3deec 74.8%, #d3deec 75.4%, transparent 75.4%); }
.room-status-map::after { content: "BOMIZA AGIT"; position: absolute; z-index: 0; top: 43%; left: 50%; color: #aebed2; font-size: 1rem; font-weight: 900; letter-spacing: .16em; white-space: nowrap; pointer-events: none; transform: translate(-50%, -50%); }
.room-status-zone { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 0; padding: 8px 5px; border: 2px solid rgba(145,158,177,.72); border-radius: 12px; background: rgba(255,255,255,.94); color: #14213d; text-align: center; box-shadow: 0 3px 10px rgba(48,71,103,.08); transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.room-status-zone.is-general { border-color: #5c84c6; background: rgba(232,241,255,.78); }
.room-status-zone.is-group { border-color: #d95891; background: rgba(255,234,244,.8); }
.room-status-zone:hover, .room-status-zone:focus-visible { border-color: #111827; background: rgba(255,255,255,.96); box-shadow: 0 4px 14px rgba(17,24,39,.42); transform: scale(1.015); outline: 0; }
.room-status-zone.is-selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 6px 18px rgba(255,255,255,.42); transform: scale(1.02); }
.room-zone-name { font-size: 1.12rem; font-weight: 900; }
.room-zone-meta { display: grid; justify-items: center; gap: 4px; color: #52667f; font-size: .75rem; font-weight: 700; line-height: 1.25; }
.room-zone-meta .room-status-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; background: #e8eef9; color: #315a9f; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.room-zone-meta .room-status-badge.group { background: #fbe7f0; color: #b62f75; }
.room-zone-meta .room-status-badge.empty { background: #edf1f6; color: #7a8798; }
.room-status-zone > * { position: relative; z-index: 1; }
.room-status-zone.has-occupants::before { content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: rgba(255,255,255,.86); pointer-events: none; animation: roomZoneSurfaceBlink 1.8s ease-in-out infinite; }
.room-elapsed.is-active { animation: roomElapsedBlink 1.8s ease-in-out infinite; font-weight: 900; }
@keyframes roomZoneSurfaceBlink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes roomElapsedBlink { 0%, 100% { opacity: 1; } 50% { opacity: .18; } }
.room-zone-hall { top: .4%; left: 25.2%; width: 49.6%; height: 15%; }
.room-zone-3 { top: .4%; right: .4%; width: 24.6%; height: 32.3%; }
.room-zone-2 { top: 33.2%; right: .4%; width: 24.6%; height: 32.3%; }
.room-zone-1 { top: 66%; right: .4%; width: 24.6%; height: 33.6%; }
.room-zone-5 { top: .4%; left: .4%; width: 24.6%; height: 48.7%; }
.room-zone-4-left { top: 49.5%; left: .4%; width: 24.6%; height: 31%; }
.room-status-counter { position: absolute; z-index: 1; bottom: .4%; left: .4%; display: grid; place-content: center; width: 53.2%; height: 11.4%; border: 2px solid rgba(71,85,105,.42); background: repeating-linear-gradient(135deg, #d8e0ea 0, #d8e0ea 8px, #f8fafc 8px, #f8fafc 16px); color: #475569; text-align: center; }
.room-status-counter span { font-size: 1.05rem; font-weight: 900; }
.room-status-counter small { font-size: .6rem; font-weight: 700; }
.room-group-count-fields { display: grid; gap: 14px; }
.room-status-current-summary { margin: -8px 0 0; color: #718096; font-size: .76rem; line-height: 1.45; }
.room-status-type-field { display: grid; gap: 7px; }
.room-status-type-label { color: #52667f; font-size: .8rem; font-weight: 800; }
.room-status-type-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px; border: 1px solid #d9e2ef; border-radius: 12px; background: #f2f6fb; }
.room-status-type-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: #718096; font-size: .84rem; font-weight: 800; }
.room-status-type-tabs button[aria-selected="true"] { background: #fff; color: #315a9f; box-shadow: 0 2px 8px rgba(49,90,159,.16); }
.room-status-history-panel { display: grid; gap: 8px; margin-top: -3px; padding: 10px 12px; border: 1px solid #e1e8f2; border-radius: 11px; background: #f8fafd; }
.room-status-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #52667f; font-size: .74rem; }
.room-status-history-heading span { color: #8a98aa; font-size: .66rem; }
.room-status-history-list { display: grid; gap: 6px; max-height: 150px; overflow-y: auto; }
.room-status-history-list p { margin: 0; color: #8a98aa; font-size: .72rem; }
.room-status-history-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #52667f; font-size: .7rem; }
.room-status-history-item strong { color: #14213d; font-size: .72rem; }
.room-status-history-item small { color: #8a98aa; font-size: .64rem; text-align: right; }
.room-count-stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; }
.room-count-stepper button { min-height: 48px; padding: 0; border: 1px solid #c9d8ee; border-radius: 12px; background: #eef4ff; color: #315a9f; font-size: 1.45rem; line-height: 1; }
.room-count-stepper button:active { background: #dbe8fb; transform: scale(.97); }
.room-count-stepper output { display: grid; place-items: center; min-height: 48px; border: 1px solid #d8e1ee; border-radius: 12px; background: #fff; color: #14213d; font-size: 1.1rem; font-weight: 900; }
.games-title-wrap { display: flex; align-items: center; gap: 8px; }
.record-mode-field { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.record-mode-field select { min-height: 36px; padding: 0 28px 0 10px; font-size: .8rem; }
.game-record-button { width: auto; min-height: 38px; padding: 0 14px; background: #315a9f; color: #fff; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.game-record-modal-content { max-width: 560px; }
#gameRecordEntryScreen, #gameRecordDetailScreen { min-width: 0; overflow-x: hidden; }
#gameRecordEntryScreen .game-record-entry-form,
#gameRecordEntryScreen .game-record-entry-form > label { min-width:0; width:100%; max-width:100%; }
#gameRecordPlayedOn { -webkit-appearance:none; appearance:none; display:block; width:0; inline-size:0; min-width:100% !important; max-width:100%; max-inline-size:100%; box-sizing:border-box; font-size:16px; min-height:48px; }
#gameRecordEntryScreen .game-record-entry-form > label { display:block; min-width:0; width:100%; }
#gameRecordPlayedOn::-webkit-date-and-time-value { min-width:0; max-width:100%; text-align:left; }
@media (max-width: 520px) {
  #gameRecordEntryScreen { box-sizing:border-box; width:100%; }
  #gameRecordEntryScreen .game-record-entry-form,
  #gameRecordDetailScreen .game-record-entry-form { width: 100%; min-width: 0; max-width: 100%; }
  #gameRecordEntryScreen #gameRecordPlayedOn { width:0; inline-size:0; min-width:100% !important; max-width:100%; padding-inline:10px; }
  #gameRecordPlayedOn::-webkit-datetime-edit,
  #gameRecordPlayedOn::-webkit-datetime-edit-fields-wrapper,
  #gameRecordPlayedOn::-webkit-date-and-time-value { min-width:0; max-width:100%; overflow:hidden; }
}
.game-record-entry-form { grid-template-columns:minmax(0,1fr); max-width: 560px; margin: 0 auto; }
.record-game-picker-button { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; padding: 10px 13px; border: 1px solid #cdd8e8; border-radius: 10px; background: #fff; color: #14213d; font: inherit; text-align: left; }
.record-game-picker-button span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-game-picker-button span:last-child { color: #315a9f; font-size: 1.4rem; line-height: 1; }
.game-record-picker-list { display: grid; height: min(52dvh, 460px); min-height: 240px; max-height: min(52dvh, 460px); align-content: start; grid-auto-rows: min-content; gap: 7px; overflow-y: auto; margin-top: 12px; }
.game-record-picker-option { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid #e0e8f5; border-radius: 10px; background: #f8faff; color: #14213d; font: inherit; font-weight: 700; text-align: left; }
.game-record-picker-option.is-favorite { border-color: #d9b66b; background: #fff8e5; }
.game-record-picker-option.is-favorite::before { content: "★"; color: #c68d17; }
.game-record-picker-option span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-record-picker-option small { color: #8d6819; font-size: .72rem; white-space: nowrap; }
html[data-theme="dark"] .record-game-picker-button { border-color: #3a4d68; background: #172235; color: #e7edf8; }
html[data-theme="dark"] .game-record-picker-option { border-color: #30415a; background: #172235; color: #e7edf8; }
html[data-theme="dark"] .game-record-picker-option.is-favorite { border-color: #8c6d2d; background: #332b18; }
#gameRecordGamePickerModal .modal-content { width: min(calc(100vw - 24px), 560px); max-width: calc(100vw - 24px); box-sizing: border-box; }
#gameRecordGamePickerModal .game-modal-body { min-width: 0; overflow-x: hidden; }
#gameRecordGamePickerModal .game-record-picker-list { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
#gameRecordGamePickerModal .game-record-picker-option { min-width: 0; max-width: 100%; box-sizing: border-box; }
#gameRecordGamePickerModal .game-record-picker-list > .empty-state { display: grid; min-height: 100%; place-items: center; margin: 0; color: var(--muted); }
.game-record-hall { margin: 16px 0; padding: 16px; border: 1px solid #e0e8f5; border-radius: 16px; background: #f7faff; }
.game-record-hall-heading h3 { margin: 3px 0 12px; font-size: 1.05rem; }
.trophy-icon { display: inline-block; margin-right: 4px; font-size: 1.05em; }
.game-record-hall-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid #e5ebf4; }
.game-record-hall-row:first-child { border-top: 0; }
.game-record-hall-row strong { color: #315a9f; }
.game-record-hall-row b { color: #14213d; }
.game-record-hall-empty { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.game-record-match { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 16px; border-bottom: 1px solid #edf0f4; }
.game-record-match:last-child { border-bottom: 0; }
.game-record-match-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.game-record-match-heading span { color: var(--muted); font-size: .86rem; }
.game-record-participants { display: grid; gap: 6px; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.game-record-memo { margin: 10px 0 0; padding: 9px 10px; border-radius: 8px; background: #f3f6fb; color: #52647d; font-size: .82rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-theme="dark"] .game-record-memo { background: #202d42; color: #c3d2e7; }
.game-record-memo-count { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; text-align: right; }
html[data-theme="dark"] .game-record-match { border-color: #2d394c; }
.game-record-players { display: grid; gap: 10px; margin-top: 10px; }
.game-record-success-field { display:grid; grid-template-columns:minmax(84px,auto) minmax(140px,1fr); align-items:center; gap:10px; margin-top:10px; color:var(--muted); font-size:.9rem; font-weight:750; }
.game-record-success-field select { width:100%; }
.game-record-player-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
.game-record-player-number { color: var(--muted); font-weight: 800; text-align: center; }
.record-member-field { position: relative; min-width: 0; }
.record-member-field input { width: 100%; min-width: 0; }
.record-winner-choice { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #315a9f; font-weight: 800; white-space: nowrap; }
.record-winner-choice input { width: 18px; height: 18px; margin: 0; accent-color: #315a9f; }
html[data-theme="dark"] .record-winner-choice { color: #e7edf8; }
.record-member-suggestions { position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; left: 0; display: grid; max-height: 180px; overflow-y: auto; padding: 4px; border: 1px solid #d8e1ef; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(20, 33, 61, .14); }
.record-member-suggestions button { padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #14213d; text-align: left; }
.record-member-suggestions button:hover, .record-member-suggestions button:focus-visible { background: #eef3fb; }
.record-rank-stepper { display: grid; grid-template-columns: 32px minmax(34px, 1fr) 32px; align-items: center; min-height: 44px; border: 1px solid #d8e1ef; border-radius: 9px; overflow: hidden; background: #fff; }
.record-rank-stepper button { height: 100%; border: 0; background: #eef3fb; color: #315a9f; font-size: 1.15rem; font-weight: 800; }
.record-rank-stepper output { color: #14213d; font-size: .84rem; font-weight: 800; text-align: center; }
.record-score-input { min-width: 0; }
.game-record-selectable { grid-template-columns: auto minmax(0, 1fr); }
.game-record-match[data-game-record-item] { cursor: pointer; }
.game-record-match[data-game-record-item]:focus-visible { outline: 2px solid #315a9f; outline-offset: -2px; }
.game-record-detail-card { max-width: 560px; margin: 0 auto; padding: 20px; border: 1px solid #d8e1ef; border-radius: 16px; background: #fff; }
.game-record-detail-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid #e4eaf3; }
.game-record-detail-heading strong { font-size: 1.2rem; }
.game-record-detail-heading span { color: var(--muted); font-size: .86rem; }
.game-record-detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.game-record-detail-meta div { padding: 11px 12px; border-radius: 10px; background: #f3f6fb; }
.game-record-detail-meta dt { color: var(--muted); font-size: .76rem; }
.game-record-detail-meta dd { margin: 4px 0 0; font-weight: 800; }
.game-record-detail-card h3 { margin: 18px 0 9px; font-size: .95rem; }
.game-record-detail-players { display: grid; gap: 8px; }
.game-record-detail-player { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; background: #f7f9fc; color: #52647d; }
.game-record-detail-player strong { color: #315a9f; }
.game-record-detail-memo { margin: 0; padding: 11px 12px; border-radius: 9px; background: #f3f6fb; color: #52647d; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.game-record-detail-actions { max-width: 560px; margin: 14px auto 0; }
.game-record-detail-form .modal-actions { width: 100%; grid-template-columns: minmax(0, 1fr); }
.game-record-detail-form .modal-actions button { width: 100%; flex: 1 1 100%; }
html[data-theme="dark"] .game-record-detail-card { border-color: #30415a; background: #172235; }
html[data-theme="dark"] .game-record-detail-heading { border-color: #30415a; }
html[data-theme="dark"] .game-record-detail-meta div, html[data-theme="dark"] .game-record-detail-player, html[data-theme="dark"] .game-record-detail-memo { background: #202d42; }
html[data-theme="dark"] .game-record-detail-player strong { color: #9fc4ff; }
.form-section-title { display: block; margin-bottom: 2px; }
html[data-theme="dark"] .game-record-player-number { color: #aebbd0; }
html[data-theme="dark"] .game-record-hall { border-color: #30415a; background: #172235; }
html[data-theme="dark"] .game-record-hall-row { border-color: #30415a; }
html[data-theme="dark"] .game-record-hall-row b { color: #e7edf8; }
html[data-theme="dark"] .record-member-suggestions, html[data-theme="dark"] .record-rank-stepper { border-color: #3a4b64; background: #182233; }
html[data-theme="dark"] .record-member-suggestions button, html[data-theme="dark"] .record-rank-stepper output { color: #e7edf8; }
@media (max-width: 520px) {
  .game-record-player-row { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
}
.rulemaster-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.rulemaster-badges span { padding: 3px 7px; border-radius: 999px; background: #eef3fb; color: #315a9f; font-size: .7rem; font-weight: 800; }
.rulemaster-badges .rulemaster-label { background: #315a9f; color: #fff; }
.rulemaster-badges .rulemaster-nickname { background: #f3f6fb; color: #475569; }
.secondary-button, .register-button { width: auto; min-height: 40px; padding: 0 14px; }
.secondary-button { background: #e8eef9; color: #315a9f; }
.register-button { background: #315a9f; }
.member-form { display: grid; gap: 16px; }
.nickname-history { min-height: 1.3em; margin: -8px 0 0; color: #64748b; font-size: .82rem; line-height: 1.5; word-break: break-word; }
.readonly-member-field { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; color: #64748b; font-size: .92rem; font-weight: 700; }
.readonly-member-field strong { color: #14213d; }
.form-divider { height: 1px; margin: 4px 0 0; background: #e2e8f0; }
.form-section-title { margin: 0 -0.1em -4px; color: #14213d; font-size: .97rem; font-weight: 800; }
.form-section-title span { color: #64748b; font-size: .82rem; font-weight: 600; }
.optional-label { color: #64748b; font-size: .78rem; font-weight: 500; }
.form-field { display: grid; gap: 6px; }
.field-message { min-height: 1.2em; margin: 0; color: #b42318; font-size: .82rem; line-height: 1.4; }
.join-request-content { display: flex; flex-direction: column; max-height: min(88vh, calc(100dvh - env(safe-area-inset-top) - 12px)); padding: 0; overflow: hidden; }
.join-request-content .modal-header { flex: 0 0 auto; margin: 0; padding: 20px 16px; border-bottom: 1px solid #edf0f4; background: #fff; }
.join-request-body { overflow-y: auto; padding: 20px 16px 24px; }
.join-request-body .help-text { margin: 0 0 20px; }
.join-request-body .member-form { gap: 18px; }
.join-request-body .form-field { gap: 7px; }
.join-request-body .field-message { min-height: 0; }
.join-request-body .field-message:empty { display: none; }
.join-request-body .password-help { margin: 0; }
.join-request-footer { flex: 0 0 auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #edf0f4; background: #fff; }
.join-request-footer button { width: 100%; }
.game-modal-content { display: flex; flex-direction: column; max-height: min(88vh, calc(100dvh - env(safe-area-inset-top) - 12px)); padding: 0; overflow: hidden; }
.game-modal-content .modal-header { flex: 0 0 auto; margin: 0; padding: 20px 16px; border-bottom: 1px solid #edf0f4; background: #fff; }
.game-modal-body { overflow-y: auto; padding: 20px 16px 24px; }
.game-modal-footer { flex: 0 0 auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #edf0f4; background: #fff; }
.game-modal-footer button { width: 100%; }
.address-postcode-content { display: flex; flex-direction: column; width: min(100%, 680px); height: 100dvh; max-height: none; padding: 0; overflow: hidden; border-radius: 0; }
.address-postcode-content .modal-header { flex: 0 0 auto; margin: 0; padding: max(20px, calc(env(safe-area-inset-top) + 12px)) 16px 16px; border-bottom: 1px solid #edf0f4; background: #fff; }
.address-postcode-body { flex: 1 1 auto; min-height: 0; }
.address-postcode-body > iframe { display: block; width: 100% !important; height: 100% !important; border: 0; }
.location-map-content { max-height: min(88vh, calc(100dvh - env(safe-area-inset-top) - 12px), 680px); }
.location-map-body { display: grid; gap: 12px; }
.location-map-body .help-text { margin: 0; }
.visit-map-wrap { position: relative; width: 100%; height: min(46vh, 360px); min-height: 260px; overflow: hidden; border: 1px solid #dbe5f2; border-radius: 12px; background: #edf2f7; }
.visit-map { width: 100%; height: 100%; background: #edf2f7; }
.visit-map-wrap.is-loading .visit-map, .visit-map-wrap.has-error .visit-map { visibility: hidden; }
.visit-map-loading { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 8px; padding: 24px; background: #f6f8fc; color: #475569; text-align: center; }
.visit-map-wrap.is-loading .visit-map-loading, .visit-map-wrap.has-error .visit-map-loading { display: grid; }
.visit-map-loading span { width: 28px; height: 28px; border: 3px solid #d5e0f2; border-top-color: #315a9f; border-radius: 50%; animation: visit-map-spin .8s linear infinite; }
.visit-map-wrap.has-error .visit-map-loading span { border-color: #f5cccc; border-top-color: #c63e3e; animation: none; }
.visit-map-loading strong { color: #14213d; font-size: .95rem; }
.visit-map-loading small { color: #718096; font-size: .8rem; line-height: 1.45; }
.location-map-body .help-text.is-error { color: #b42318; font-weight: 600; }
@keyframes visit-map-spin { to { transform: rotate(360deg); } }
.visit-map-legend { display: flex; align-items: center; gap: 7px; margin: 0; color: #64748b; font-size: .78rem; }
.visit-map-legend span { width: 12px; height: 12px; border: 2px solid #315a9f; border-radius: 50%; background: rgba(49,90,159,.2); }
.visit-qr-scan-panel { gap: 12px; }
.visit-qr-scan-panel .help-text { margin: 0; }
.visit-qr-reader { width: 100%; min-height: 260px; overflow: hidden; border: 1px solid #dbe5f2; border-radius: 12px; background: #0b111a; }
.visit-qr-reader video { object-fit: cover; }
.visit-qr-scan-panel > button { width: 100%; }
html[data-theme="dark"] .visit-qr-reader { border-color: #354860; }
.password-help { margin: -7px 0 0; color: #64748b; font-size: .79rem; line-height: 1.45; }
.message { min-height: 1.3em; margin: 0; color: #b42318; font-size: .9rem; white-space: pre-line; }
.result { margin-top: 16px; padding: 14px; border-radius: 10px; background: #edf7f0; color: #176b3a; line-height: 1.55; white-space: pre-line; }
.result.warning { background: #fff7e8; color: #9a5a00; }
.theme-toggle { width: 100%; min-height: 42px; border: 1px solid #d9e2f0; background: #fff; color: #52667f; font-size: .84rem; }
.hidden { display: none !important; }
body.modal-open { position: fixed; top: var(--modal-scroll-position, 0); width: 100%; overflow: hidden; overscroll-behavior: none; }
body.modal-open.omok-modal-open { position: static; top: auto; width: 100%; }
.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; width: min(100%, 680px); height: calc(76px + env(safe-area-inset-bottom)); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(255, 255, 255, .96); border-top: 1px solid #e2e8f0; box-shadow: 0 -4px 18px rgba(34, 55, 90, .08); }
.nav-item { height: 58px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 8px; background: transparent; color: #778396; font-size: .7rem; font-weight: 600; }
.bottom-nav [data-view="history"] { grid-column: 1; }
.bottom-nav [data-view="members"] { grid-column: 2; }
.bottom-nav [data-view="games"] { grid-column: 2; }
.bottom-nav [data-view="home"] { grid-column: 3; }
.bottom-nav [data-view="pricing"] { grid-column: 4; }
#adminsNav, #managerLogoutNav { grid-column: 5; grid-row: 1; }
.nav-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-item.active { color: #315a9f; font-weight: 800; }
.scroll-top-button { position: fixed; z-index: 11; right: max(16px, calc((100vw - 680px) / 2 + 16px)); bottom: calc(92px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 5px; width: auto; min-height: 38px; padding: 0 12px; border: 1px solid #d7e0ee; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 5px 14px rgba(34,55,90,.16); color: #315a9f; font-size: .76rem; }
.scroll-top-button.subpage { bottom: calc(20px + env(safe-area-inset-bottom)); }
.scroll-top-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.modal { position: fixed; z-index: 20; inset: 0; height: 100dvh; min-height: 100dvh; display: grid; place-items: end center; overscroll-behavior: contain; }
#omokRoomModal { z-index: 1000; pointer-events: auto; }
#omokRoomModal .modal-content, #omokRoomModal button { pointer-events: auto; touch-action: manipulation; }
#omokRoomModal .notice-content { gap: 14px; }
#omokRoomModal #joinOmokRoomForm { width: auto; justify-self: stretch; }
#omokRoomModal .modal-actions { gap: 10px; margin-top: 4px; }
#omokRoomModal .modal-actions > button { width: 100%; min-height: 48px; }
.modal-backdrop { position: absolute; z-index: 0; inset: 0; background: rgba(15, 23, 42, .5); }
.modal-content { position: relative; z-index: 1; width: min(100%, 680px); max-height: min(88vh, calc(100dvh - env(safe-area-inset-top) - 12px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -12px 40px rgba(15, 23, 42, .2); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-header h2, .notice-content h2 { margin: 0; }
.close-button { width: 36px; min-height: 36px; padding: 0; border-radius: 50%; background: #eef2f7; color: #475569; font-size: 1.7rem; font-weight: 400; }
.notice-content { display: grid; justify-items: center; gap: 12px; padding: 34px 16px; text-align: center; }
.notice-content p { margin: 0 0 8px; color: #64748b; }
.notice-content button { width: 100%; }
#roomJoinPasswordModal .notice-content { justify-items:stretch; gap:14px; padding:22px; text-align:left; }
#roomJoinPasswordModal .modal-header { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; margin:0; }
#roomJoinPasswordModal .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; text-align:left; }
#roomJoinPasswordModal .modal-header .close-button { display:grid; place-items:center; flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; margin:0 0 0 auto; padding:0; line-height:1; }
#roomJoinPasswordModal .notice-content > input { width:100%; min-width:0; box-sizing:border-box; }
#roomJoinPasswordModal .modal-actions { width:100%; grid-template-columns:minmax(0,1fr); }
#roomJoinPasswordModal .modal-actions > button { width:100%; flex:1 1 100%; }
#moneySkinDebtModal .notice-content { justify-items:stretch; gap:14px; padding:22px; text-align:left; }
#moneySkinDebtModal .modal-header { width:100%; margin:0; align-items:center; justify-content:space-between; gap:12px; }
#moneySkinDebtModal .modal-header h2 { flex:1 1 auto; min-width:0; text-align:left; }
#moneySkinDebtModal .modal-header .close-button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; display:grid; place-items:center; margin-left:auto; line-height:1; }
#forfeitConfirmModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
#forfeitConfirmModal .modal-header h2 { flex: 1 1 auto; min-width: 0; white-space: nowrap; text-align: left; }
#forfeitConfirmModal .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#skyTeamDieConfirmModal { z-index: 1300; }
#skyTeamDieConfirmModal .notice-content { justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
#skyTeamDieConfirmModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
#skyTeamDieConfirmModal .modal-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; text-align: left; }
#skyTeamDieConfirmModal .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#skyTeamNoLegalPassModal .notice-content { justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
#skyTeamNoLegalPassModal .modal-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
#skyTeamNoLegalPassModal .modal-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; text-align: left; }
#skyTeamNoLegalPassModal .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#skyTeamNoLegalPassModal .notice-content > p { margin: 0; text-align: left; line-height: 1.6; }
#skyTeamDieConfirmModal .modal-actions { grid-template-columns: minmax(0, 1fr); width: 100%; }
#skyTeamDieConfirmModal .modal-actions button { min-height: 46px; }
.sky-team-reroll-dialog { z-index: 1300; }
.sky-team-reroll-dialog .notice-content { justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
.sky-team-reroll-dialog .modal-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.sky-team-reroll-dialog .modal-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; text-align: left; }
.sky-team-reroll-dialog .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
.sky-team-reroll-dialog .modal-actions { width: 100%; }
.sky-team-reroll-dialog .modal-actions button { min-width: 0; min-height: 46px; }
#skyTeamRerollStartModal .modal-actions { grid-template-columns: minmax(0, 1fr); }
#skyTeamRerollModal .modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#skyTeamRerollModalDice { justify-content: center; flex-wrap: wrap; }
#skyTeamRerollModalDice button { flex: 0 0 auto; width: 52px; }
#skyTeamRerollModalStatus:empty { display: none; }
body.modal-open [data-game-chat-fab="sky-team"] { display: none !important; }
#noSpectatorModal .modal-actions { grid-template-columns: minmax(0, 1fr); width: 100%; }
#noSpectatorModal .modal-actions > button { width: 100%; min-width: 0; }
#externalGameGuestModal .modal-header { width: 100%; margin-bottom: 8px; justify-content: space-between; }
#externalGameGuestModal .modal-header h2 { flex: 1 1 auto; min-width: 0; white-space: nowrap; text-align: left; }
#externalGameGuestModal .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; line-height: 1; }
#externalAdminLoginModal .modal-header { width: 100%; margin-bottom: 8px; justify-content: space-between; }
#externalAdminLoginModal .modal-header h2 { flex: 1 1 auto; min-width: 0; white-space: nowrap; text-align: left; }
#externalAdminLoginModal .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; line-height: 1; }
#externalAdminLoginModal .member-form { width: 100%; max-width: 420px; }
#externalAdminLoginModal .modal-actions { width: 100%; max-width: 420px; }
#externalGameGuestModal .external-game-guest-guide { color: #71819a; font-size: .78rem; text-align: left; }
#externalGameGuestModal .modal-actions { grid-template-columns: minmax(0, 1fr); width: 100%; }
#externalGameGuestModal .modal-actions > button { width: 100%; min-width: 0; min-height: 46px; }
#externalGuestAdminRoomsModal .modal-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; }
#externalGuestAdminRoomsModal .modal-header h2 { flex: 1; min-width: 0; margin: 0; text-align: left; }
#externalGuestAdminRoomsModal .modal-header .close-button { flex: 0 0 40px; width: 40px; height: 40px; min-width: 40px; min-height: 40px; margin-left: auto; }
#externalGuestAdminRoomsModal .external-guest-admin-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; gap: 8px; align-items: center; }
#externalGuestAdminRoomsModal .external-guest-admin-toolbar button, #externalGuestAdminRoomsModal .omok-lobby-card button { width: auto; }
#externalGuestAdminRoomsModal .omok-lobby-list { width: 100%; max-height: min(55vh, 32rem); overflow-y: auto; }
.notice-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #e8eef9; color: #315a9f; font-size: 1.65rem; }
.delete-modal-content { display: grid; justify-items: center; gap: 13px; padding: 34px 16px; text-align: center; }
.delete-modal-content h2 { margin: 0; }
.delete-modal-content p { margin: 0; color: #64748b; line-height: 1.5; }
.delete-modal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fee8e8; color: #c63e3e; font-size: 1.35rem; font-weight: 800; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; margin-top: 9px; }
.modal-actions .secondary-button, .modal-actions .delete-button { width: 100%; min-height: 46px; }
#alcoholCalendarQuickModal { place-items:center; }
#alcoholCalendarQuickModal .alcohol-quick-content { display:flex; flex-direction:column; width:min(calc(100% - 24px),400px); gap:18px; padding:20px; border-radius:20px; text-align:left; }
#alcoholCalendarQuickModal .modal-header { width:100%; align-items:center; justify-content:space-between; gap:12px; margin:0; }
#alcoholCalendarQuickModal .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; text-align:left; font-size:1.2rem; }
#alcoholCalendarQuickModal .modal-header .close-button { display:grid; place-items:center; flex:0 0 40px; width:40px; min-width:40px; max-width:40px; height:40px; min-height:40px; margin-left:auto; padding:0; line-height:1; }
#alcoholCalendarQuickModal .alcohol-quick-body { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; width:100%; }
#alcoholCalendarQuickModal .alcohol-quick-body label { display:grid; min-width:0; gap:8px; margin:0; color:#516782; font-size:.9rem; font-weight:700; }
#alcoholCalendarQuickType { width:100%; min-width:0; height:56px; min-height:56px; margin:0; padding:0 12px; border:1px solid #ccd9eb; border-radius:12px; background:#fff; color:#183458; font:inherit; }
#alcoholCalendarQuickModal #alcoholCalendarQuickAdd { width:100%; height:76px; min-height:76px; padding:0; border:0; border-radius:12px; background:#315a9f; color:#fff; font-size:2.6rem; line-height:1; }
#alcoholCalendarQuickModal #alcoholCalendarQuickStatus { min-height:1.3em; margin:0; color:#526b8e; font-size:.84rem; line-height:1.5; }
#alcoholCalendarQuickModal .alcohol-quick-actions { width:100%; }
#alcoholCalendarQuickModal .alcohol-quick-actions button { width:100%; min-height:46px; margin:0; }
html[data-theme="dark"] #alcoholCalendarQuickModal .alcohol-quick-content { background:#172235; color:#e2e8f0; }
html[data-theme="dark"] #alcoholCalendarQuickModal .alcohol-quick-body label, html[data-theme="dark"] #alcoholCalendarQuickModal #alcoholCalendarQuickStatus { color:#b9cce7; }
html[data-theme="dark"] #alcoholCalendarQuickType { border-color:#43536a; background:#202c3e; color:#e2e8f0; }
html[data-theme="dark"] { color-scheme: dark; color: #edf2fa; background: #101520; }
html[data-theme="light"] { color-scheme: light; forced-color-adjust: none; }
html[data-theme="light"], html[data-theme="light"] body { background: #f4f7fb !important; color: #14213d !important; }
html[data-theme="dark"] body { background: #101520; }
html[data-theme="dark"] .auth-card, html[data-theme="dark"] .card, html[data-theme="dark"] .history-list, html[data-theme="dark"] .members-list, html[data-theme="dark"] .games-list, html[data-theme="dark"] .admins-list, html[data-theme="dark"] .member-home-card, html[data-theme="dark"] .member-account-card, html[data-theme="dark"] .price-card, html[data-theme="dark"] .modal-content, html[data-theme="dark"] .admin-food-price, html[data-theme="dark"] .current-location-info { color: #edf2fa; background: #1a2230; }
html[data-theme="dark"] .checkin-nickname-suggestions { border-color: #3a485d; background: #1a2230; box-shadow: 0 10px 22px rgba(0,0,0,.3); }
html[data-theme="dark"] .checkin-visit-at { color: #edf2fa; }
html[data-theme="dark"] .checkin-nickname-suggestions button { border-color: #2d394c; background: #1a2230; color: #edf2fa; }
html[data-theme="dark"] .checkin-nickname-suggestions button:hover, html[data-theme="dark"] .checkin-nickname-suggestions button:focus-visible { background: #25354d; color: #dce8ff; }
html[data-theme="dark"] .auth-card, html[data-theme="dark"] .card, html[data-theme="dark"] .member-home-card, html[data-theme="dark"] .member-account-card, html[data-theme="dark"] .price-card { box-shadow: 0 10px 28px rgba(0,0,0,.28); }
html[data-theme="dark"] .auth-card { border-color: #2f4059; background: linear-gradient(160deg, #1b2637 0%, #141d2b 100%); }
html[data-theme="dark"] .login-brand-panel { border-color: #5b4c40; background: #2b2522; box-shadow: 0 12px 28px rgba(0,0,0,.28); }
html[data-theme="dark"] .login-join-button { border-color: #405a80; background: #253755; color: #b9d2ff; }
html[data-theme="dark"] .auth-card h1 { color: #f3f7ff; }
html[data-theme="dark"] .auth-card .description, html[data-theme="dark"] .auth-card form label { color: #b6c4d8; }
html[data-theme="dark"] .auth-card form input, html[data-theme="dark"] .auth-card form select { border-color: #40516a; background: #111a29; color: #edf2fa; }
html[data-theme="dark"] .auth-card form .text-button { color: #aebdd1; }
html[data-theme="dark"] body:has(#loginView:not(.hidden)), html[data-theme="dark"] body:has(#loginView:not(.hidden)) .page-shell { background: #fdf2e0; color: #6d4c30; }
html[data-theme="dark"] body:has(#loginView:not(.hidden)) .auth-card { border-color: #eadfcf; background: #fdf2e0; box-shadow: 0 20px 55px rgba(109,76,48,.14); }
html[data-theme="dark"] body:has(#loginView:not(.hidden)) .auth-card form label { color: #6d4c30; }
html[data-theme="dark"] body:has(#loginView:not(.hidden)) .auth-card form input,
html[data-theme="dark"] body:has(#loginView:not(.hidden)) .auth-card form select { border-color: #e4cdb1; background: #fffdf8; color: #493326; }
html[data-theme="dark"] body:has(#loginView:not(.hidden)) .login-join-button { border-color: #d8b892; background: #fff1dc; color: #70482c; }
html[data-theme="dark"] body:has(#loginView:not(.hidden)) .auth-card form .text-button { color: #8d6e53; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea, html[data-theme="dark"] .relationship-type-option span { border-color: #3a485d; background: #131b28; color: #edf2fa; }
html[data-theme="dark"] .history-item, html[data-theme="dark"] .member-list-item, html[data-theme="dark"] .game-item, html[data-theme="dark"] .rating-member-item, html[data-theme="dark"] .admin-item, html[data-theme="dark"] .member-account-card > div:not(.member-account-heading) { border-color: #2d394c; }
html[data-theme="dark"] .unvisited-member-item { border-color: #2d394c; }
html[data-theme="dark"] .game-consonant-index { background: rgba(24,35,55,.94); box-shadow: 0 5px 18px rgba(0,0,0,.35); }
html[data-theme="dark"] .game-consonant-scroll span { color: #c3cede; }
html[data-theme="dark"] .game-consonant-scroll span:hover, html[data-theme="dark"] .game-consonant-scroll span:focus-visible, html[data-theme="dark"] .game-consonant-scroll span.active { color: #9ec1ff; }
html[data-theme="dark"] .game-initial-preview { border-color: #7ea4e5; background: #4b76c0; color: #fff; }
html[data-theme="dark"] .app-header p, html[data-theme="dark"] .description, html[data-theme="dark"] .help-text, html[data-theme="dark"] .history-member span, html[data-theme="dark"] .history-date, html[data-theme="dark"] .member-meta, html[data-theme="dark"] .game-category, html[data-theme="dark"] .admin-date, html[data-theme="dark"] .pricing-heading p, html[data-theme="dark"] .member-home-card, html[data-theme="dark"] .current-location-info { color: #aab8cb; }
html[data-theme="dark"] .info-tabs { background: #202d43; }
html[data-theme="dark"] .info-tab { color: #aab8cb; }
html[data-theme="dark"] .info-tab.active { color: #fff; }
@media (max-width: 520px) {
  .memories-heading { align-items: flex-start; flex-direction: column; }
  .memories-heading .secondary-button { width: 100%; }
  .agit-memory-toolbar { width: 100%; }
  .agit-memories-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .info-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    gap: 6px;
    overflow-x: scroll;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .info-tabs::-webkit-scrollbar { display: none; }
  .info-tab { flex: 1 1 112px; min-width: 112px; padding-inline: 12px; white-space: nowrap; }
}
html[data-theme="dark"] .hours-card, html[data-theme="dark"] .menu-board { border-color: #33445e; background: #182337; }
html[data-theme="dark"] .member-menu-group { border-color: #33445e; background: #182337; }
html[data-theme="dark"] .member-menu-group .menu-row { border-color: #2b3950; }
html[data-theme="dark"] .member-menu-group .menu-row span:first-child { color: #e7edf7; }
html[data-theme="dark"] .menu-recommend-button.active { border-color: #f0bd3d; background: #4b3d1b; color: #ffd76a; }
html[data-theme="dark"] .menu-recommend-icon { border-color: #f0bd3d; background: #4b3d1b; color: #ffd04f !important; }
html[data-theme="dark"] .admin-content-form label { color: #e7edf7; }
html[data-theme="dark"] .hours-list > div { border-color: #2b3950; }
html[data-theme="dark"] .hours-list span, html[data-theme="dark"] .menu-row, html[data-theme="dark"] .menu-row span:last-child { color: #c3cede; }
html[data-theme="dark"] .hours-closed-notice { border-color: #334a6b; background: #1c2b43; color: #edf3ff; }
html[data-theme="dark"] .hours-closed-icon { background: #2b4164; }
html[data-theme="dark"] .hours-closed-notice p { color: #aab8cb; }
html[data-theme="dark"] .agit-location-card { border-color: #334a6b; background: #1c2b43; color: #edf3ff; }
html[data-theme="dark"] .agit-location-icon { background: #2b4164; }
html[data-theme="dark"] .agit-location-content p { color: #aab8cb; }
html[data-theme="dark"] .admin-form-divider { border-color: #33445e; color: #9ec1ff; }
html[data-theme="dark"] .member-home-card strong, html[data-theme="dark"] .member-account-card strong, html[data-theme="dark"] .current-location-info strong, html[data-theme="dark"] .price-card > strong, html[data-theme="dark"] .app-header, html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3 { color: #f7f9fd; }
html[data-theme="dark"] #memberHomeScreen { background: radial-gradient(circle at 100% 0, rgba(79,70,229,.13), transparent 38%), radial-gradient(circle at 0 100%, rgba(0,165,114,.08), transparent 40%); }
html[data-theme="dark"] #memberHomeHeader { background: rgba(11,19,38,.55); border-bottom: 1px solid rgba(195,192,255,.12); }
html[data-theme="dark"] #memberHomeScreen .member-welcome-card { border-color: rgba(195,192,255,.2); background: rgba(30,41,59,.72); box-shadow: 0 8px 24px rgba(0,0,0,.24); backdrop-filter: blur(12px); }
html[data-theme="dark"] #memberHomeScreen .member-welcome-card h2 { color: #dae2fd; }
html[data-theme="dark"] #memberHomeScreen .member-welcome-card p { color: #c7c4d8; }
html[data-theme="dark"] #memberHomeScreen .member-visit-button { border-color: #c3c0ff; background: #dae2fd; color: #0b1326; box-shadow: 0 0 15px rgba(195,192,255,.16); }
html[data-theme="dark"] #memberHomeScreen .member-home-card, html[data-theme="dark"] #memberHomeScreen .member-account-card { border-color: rgba(195,192,255,.16); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
html[data-theme="dark"] .secondary-button, html[data-theme="dark"] .back-button, html[data-theme="dark"] .member-edit-button, html[data-theme="dark"] .favorite-filter-button, html[data-theme="dark"] .theme-toggle { border-color: #3a4b65; background: #25354d; color: #dce8ff; }
html[data-theme="dark"] .bottom-nav { border-color: #2d394c; background: rgba(20, 28, 41, .96); box-shadow: 0 -4px 18px rgba(0,0,0,.25); }
html[data-theme="dark"] .nav-item { color: #9baac0; }
html[data-theme="dark"] .nav-item.active, html[data-theme="dark"] .favorite-filter-button.active { background: #3d67ae; color: #fff; }
html[data-theme="dark"] .favorite-filter-button.dislike.active, html[data-theme="dark"] .favorite-game-button.dislike.active { background: #a94a58; color: #fff; }
html[data-theme="dark"] .favorite-game-button.dislike, html[data-theme="dark"] .game-preference-badge.dislike { background: #48252d; color: #ffc5cc; }
html[data-theme="dark"] .game-favorite-toggle { background: transparent; color: #7184a2; }
html[data-theme="dark"] .game-favorite-toggle.active { background: transparent; color: #f3c451; }
html[data-theme="dark"] .game-preference-badge { background: #243a60; color: #cfe0ff; }
html[data-theme="dark"] #gamesScreen .game-filter,
html[data-theme="dark"] #rulemasterGamesScreen .game-filter,
html[data-theme="dark"] #otherFavoriteGamesScreen .other-favorite-search {
  border-color: rgba(195,192,255,.16);
  background: rgba(30,41,59,.62);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] #gamesScreen .games-list,
html[data-theme="dark"] #rulemasterGamesScreen .games-list,
html[data-theme="dark"] #otherFavoriteGamesScreen .games-list { background: transparent; }
html[data-theme="dark"] #gamesScreen .game-item,
html[data-theme="dark"] #rulemasterGamesScreen .game-item,
html[data-theme="dark"] #otherFavoriteGamesScreen .game-item {
  border-color: rgba(195,192,255,.16);
  background: rgba(30,41,59,.72);
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] #gamesScreen .game-item:last-child,
html[data-theme="dark"] #rulemasterGamesScreen .game-item:last-child,
html[data-theme="dark"] #otherFavoriteGamesScreen .game-item:last-child { border-bottom-color: rgba(195,192,255,.16); }
html[data-theme="dark"] #gamesScreen .game-item:hover,
html[data-theme="dark"] #gamesScreen .game-item:focus-within,
html[data-theme="dark"] #rulemasterGamesScreen .game-item:hover,
html[data-theme="dark"] #rulemasterGamesScreen .game-item:focus-within,
html[data-theme="dark"] #otherFavoriteGamesScreen .game-item:hover,
html[data-theme="dark"] #otherFavoriteGamesScreen .game-item:focus-within {
  border-color: rgba(158,193,255,.55);
  box-shadow: 0 10px 26px rgba(20,33,61,.4);
}
html[data-theme="dark"] #gamesScreen .game-item:has([data-board-game-select]:checked) {
  border-color: rgba(158,193,255,.65);
  background: rgba(50,76,120,.62);
}
html[data-theme="light"] #gamesScreen,
html[data-theme="light"] #rulemasterGamesScreen,
html[data-theme="light"] #otherFavoriteGamesScreen {
  background: radial-gradient(circle at 100% 0, rgba(49,90,159,.06), transparent 38%), radial-gradient(circle at 0 100%, rgba(0,165,114,.045), transparent 40%);
}
html[data-theme="light"] #gamesScreen #gamesActions .secondary-button {
  min-height: 46px;
  border: 1px solid #b8cbed;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7faff 0%, #e8f0ff 100%);
  color: #234f91;
  box-shadow: 0 5px 14px rgba(49,90,159,.1);
  font-size: .9rem;
  font-weight: 800;
}
html[data-theme="light"] #gamesScreen #gamesActions .secondary-button:first-child {
  border-color: #315a9f;
  background: linear-gradient(135deg, #315a9f 0%, #4776c0 100%);
  color: #fff;
  box-shadow: 0 7px 16px rgba(49,90,159,.22);
}
html[data-theme="light"] #gamesScreen #gamesActions .secondary-button:hover,
html[data-theme="light"] #gamesScreen #gamesActions .secondary-button:focus-visible {
  border-color: #315a9f;
  box-shadow: 0 8px 18px rgba(49,90,159,.22);
  transform: translateY(-1px);
  outline: none;
}
html[data-theme="light"] #gamesScreen #gamesActions .secondary-button:first-child:hover,
html[data-theme="light"] #gamesScreen #gamesActions .secondary-button:first-child:focus-visible {
  background: linear-gradient(135deg, #284e8f 0%, #3d6caf 100%);
}

@media (max-width: 560px) {
  #gameRecordsScreen .game-records-search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #gameRecordsScreen .game-records-search-form > button { grid-column: 1 / -1; }
  #gamesScreen .game-filter,
  #rulemasterGamesScreen .game-filter,
  #otherFavoriteGamesScreen .other-favorite-search { padding: 11px; }
  #gamesScreen .game-item,
  #rulemasterGamesScreen .game-item,
  #otherFavoriteGamesScreen .game-item { padding: 13px 12px; border-radius: 16px; }
  #gamesScreen .game-record-button { min-width: 78px; padding: 0 9px; font-size: .76rem; }
  #rulemasterGamesScreen .rulemaster-game-button { min-width: 88px; width: 88px; font-size: .78rem; }
}
html[data-theme="dark"] .daily-fortune-button { border-color: #735d27; background: #3c321b; color: #ffe39a; }
html[data-theme="dark"] #memberHomeScreen .alcohol-calendar-button { border-color: #73513b; background: linear-gradient(105deg, #38291f, #2d2630); color: #ffd5b3; }
html[data-theme="dark"] #memberHomeScreen .alcohol-calendar-button span:first-child { color: #f0ae7b; }
html[data-theme="dark"] .game-world-button, html[data-theme="dark"] .word-chain-share-button { border-color: #375378; background: #1e3554; color: #cfe0ff; }
html[data-theme="dark"] .game-world-item, html[data-theme="dark"] .word-chain-player-card, html[data-theme="dark"] .word-chain-form, html[data-theme="dark"] .word-chain-board { border-color: #2f3e53; background: #1a2230; color: #edf2fa; box-shadow: none; }
html[data-theme="dark"] .daily-word-guess-card, html[data-theme="dark"] .daily-word-guess-form, html[data-theme="dark"] .daily-word-guess-attempts, html[data-theme="dark"] .daily-word-guess-history { border-color: #2f3e53; background: #1a2230; color: #edf2fa; box-shadow: none; }
html[data-theme="dark"] .daily-word-guess-input-panel { background: #101520; }
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-input-panel { background: #101520; }
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-input { border-color: #40516a; background: #1a2638; color: #ffffff; caret-color: #ffffff; }
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-input:focus { background: #22324a; color: #ffffff; }
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-header h2 { color: #edf2fa; }
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-guide { color: #aebbd0; }
html[data-theme="dark"] .daily-word-guess-heading strong, html[data-theme="dark"] .daily-word-guess-form label, html[data-theme="dark"] .daily-word-guess-section-heading h3, html[data-theme="dark"] .daily-word-guess-player strong { color: #edf2fa; }
html[data-theme="dark"] .daily-word-guess-heading > span { background: #243958; color: #d2e2ff; }
html[data-theme="dark"] .daily-word-guess-prompt span { border-color: #40516a; background: #151e2b; color: #9fb0c7; }
html[data-theme="dark"] .daily-word-guess-player { background: #121a26; }
html[data-theme="dark"] .daily-word-guess-keyboard button { border-color: #40516a; background: #253247; color: #edf2fa; }
html[data-theme="dark"] .daily-word-guess-keyboard button.is-absent { border-color: #677386; background: #677386; color: #e2e8f2; }
html[data-theme="dark"] .daily-word-guess-keyboard { border-color: #2f3e53; background: #1a2230; }
html[data-theme="dark"] .daily-word-guess-result-share .field-message.is-success { color: #9fc4ff; }
html[data-theme="dark"] .daily-word-guess-result-share .field-message.is-error { color: #ff9b9b; }
@keyframes dailyWordGuessKeyboardUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
html[data-theme="dark"] .word-chain-records { border-color: #2f3e53; background: #1a2230; }
html[data-theme="dark"] .word-chain-records h2, html[data-theme="dark"] .word-chain-record-badge b, html[data-theme="dark"] .word-chain-record-badge strong { color: #edf2fa; }
html[data-theme="dark"] .word-chain-record-badge small { color: #c4d2e5; }
html[data-theme="dark"] .word-chain-record-badge { background: #243958; }

/* Game-world screens share the same calm, layered card language as the member home. */
#wordChainScreen,
#dailyWordGuessScreen,
#turtleSoupScreen,
#murderTimelineScreen,
#balanceGameScreen,
#mysteryGameScreen,
#omokGameScreen,
#othelloGameScreen {
  position: relative;
}
#wordChainScreen > section,
#wordChainScreen > form,
#wordChainScreen > .word-chain-board,
#dailyWordGuessScreen .daily-word-guess-card,
#dailyWordGuessScreen .daily-word-guess-form,
#dailyWordGuessScreen .daily-word-guess-attempts,
#dailyWordGuessScreen .daily-word-guess-history,
#turtleSoupScreen .mystery-game-case,
#murderTimelineScreen .mystery-game-case,
#balanceGameScreen .balance-game-case,
#mysteryGameScreen .mystery-game-case,
#omokGameScreen .omok-lobby-panel,
#omokGameScreen .omok-game-room,
#othelloGameScreen .omok-lobby-panel,
#othelloGameScreen .omok-game-room {
  border: 1px solid rgba(49,90,159,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 26px rgba(20,33,61,.07);
}
#wordChainScreen .word-chain-form,
#dailyWordGuessScreen .daily-word-guess-form { padding: 16px; }
#dailyWordGuessScreen .daily-word-guess-card > .daily-word-guess-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#wordChainScreen .word-chain-board,
#dailyWordGuessScreen .daily-word-guess-attempts,
#dailyWordGuessScreen .daily-word-guess-history { padding: 18px; }
#turtleSoupScreen .mystery-game-case,
#murderTimelineScreen .mystery-game-case,
#balanceGameScreen .balance-game-case,
#mysteryGameScreen .mystery-game-case { padding: 18px; }
#wordChainScreen .word-chain-input-row { gap: 8px; }
#wordChainScreen .word-chain-input-row button,
#dailyWordGuessScreen #dailyWordGuessSubmit,
#turtleSoupScreen .turtle-soup-choice,
#balanceGameScreen .balance-game-choice,
#omokGameScreen .omok-game-actions button,
#othelloGameScreen .omok-game-actions button { border-radius: 14px; }
#dailyWordGuessScreen .daily-word-guess-heading,
#turtleSoupScreen .mystery-game-date,
#balanceGameScreen .mystery-game-date { color: #315a9f; font-weight: 800; }
#turtleSoupScreen .mystery-game-case h3,
#balanceGameScreen .balance-game-case h3,
#mysteryGameScreen .mystery-game-case h3 { letter-spacing: -.02em; }
#omokGameScreen .omok-lobby-list,
#othelloGameScreen .omok-lobby-list { gap: 10px; }
#omokGameScreen .omok-lobby-item,
#othelloGameScreen .omok-lobby-item { border-radius: 16px; box-shadow: 0 5px 14px rgba(20,33,61,.06); }
#omokGameScreen .omok-players,
#othelloGameScreen .omok-players { gap: 10px; }

html[data-theme="dark"] #wordChainScreen > section,
html[data-theme="dark"] #wordChainScreen > form,
html[data-theme="dark"] #wordChainScreen > .word-chain-board,
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-card,
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-form,
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-attempts,
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-history,
html[data-theme="dark"] #turtleSoupScreen .mystery-game-case,
html[data-theme="dark"] #murderTimelineScreen .mystery-game-case,
html[data-theme="dark"] #balanceGameScreen .balance-game-case,
html[data-theme="dark"] #mysteryGameScreen .mystery-game-case,
html[data-theme="dark"] #omokGameScreen .omok-lobby-panel,
html[data-theme="dark"] #omokGameScreen .omok-game-room,
html[data-theme="dark"] #othelloGameScreen .omok-lobby-panel,
html[data-theme="dark"] #othelloGameScreen .omok-game-room {
  border-color: rgba(195,192,255,.16);
  background: rgba(30,41,59,.72);
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] #dailyWordGuessScreen .daily-word-guess-heading,
html[data-theme="dark"] #turtleSoupScreen .mystery-game-date,
html[data-theme="dark"] #balanceGameScreen .mystery-game-date { color: #9ec1ff; }
html[data-theme="dark"] #turtleSoupScreen .turtle-soup-questions { background: #172338; border: 1px solid #2f4667; }
html[data-theme="dark"] #turtleSoupScreen .turtle-soup-questions h4 { color: #e5edfb; }
html[data-theme="dark"] #turtleSoupScreen .turtle-soup-question { background: #202f47; color: #b8c9e2; border-left-color: #6f9ddd; }
html[data-theme="dark"] #turtleSoupScreen .turtle-soup-question strong { color: #f0f5ff; }
html[data-theme="dark"] #turtleSoupScreen .turtle-soup-question em { color: #9fc2ff; }
html[data-theme="dark"] #turtleSoupScreen .turtle-soup-choices { border-top-color: #30445f; }
html[data-theme="dark"] #turtleSoupScreen .turtle-soup-choices h4 { color: #e5edfb; }
html[data-theme="dark"] #turtleSoupScreen .turtle-soup-choice { border-color: #385274; background: #202f47; color: #e5edfb; }
html[data-theme="dark"] #turtleSoupScreen .turtle-soup-choice:hover, html[data-theme="dark"] #turtleSoupScreen .turtle-soup-choice:focus-visible { border-color: #79a9ee; background: #2a4162; }

@media (max-width: 560px) {
  #turtleSoupScreen .mystery-game-case,
  #balanceGameScreen .balance-game-case,
  #mysteryGameScreen .mystery-game-case,
  #wordChainScreen .word-chain-form,
  #dailyWordGuessScreen .daily-word-guess-attempts,
  #dailyWordGuessScreen .daily-word-guess-history { padding: 14px; border-radius: 18px; }
}
html[data-theme="dark"] .word-chain-record-badge.rank-1 { background: #5b4a25; }
html[data-theme="dark"] .word-chain-record-badge.rank-2 { background: #313b49; }
html[data-theme="dark"] .word-chain-record-badge.rank-3 { background: #4a3529; }
html[data-theme="dark"] .game-world-item strong, html[data-theme="dark"] .word-chain-form > label, html[data-theme="dark"] .word-chain-input-heading label, html[data-theme="dark"] .word-chain-entry strong { color: #edf2fa; }
html[data-theme="dark"] .stop-challenge-menu-badge { border-color: #63313b; background: #3d2028; color: #ffadb3; }
html[data-theme="dark"] .stop-challenge-menu-badge.is-rank { border-color: #765d2a; background: #3e341e; color: #ffdc87; }
html[data-theme="dark"] .game-world-complete-badge { background: #214a3a; color: #8ee0b2; }
html[data-theme="dark"] .game-world-complete-badge.is-in-progress { background: #243958; color: #a9c8fa; }
html[data-theme="dark"] .game-world-item small, html[data-theme="dark"] .word-chain-guide, html[data-theme="dark"] .word-chain-entry small, html[data-theme="dark"] .word-chain-entry time { color: #9bacbf; }
html[data-theme="dark"] #gameWorldScreen { background: radial-gradient(circle at 100% 0, rgba(79,70,229,.13), transparent 36%), radial-gradient(circle at 0 100%, rgba(0,165,114,.08), transparent 38%); }

/* 보들 입력 영역은 입력칸과 버튼만 표시합니다. */
#dailyWordGuessScreen .daily-word-guess-card,
#dailyWordGuessScreen .daily-word-guess-card > .daily-word-guess-form,
#dailyWordGuessScreen .daily-word-guess-input-row {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#dailyWordGuessScreen { overflow: visible; }
#dailyWordGuessScreen .daily-word-guess-input-panel { position: sticky !important; top: 0 !important; z-index: 40; background: var(--page-bg, #f4f7fb); }
#dailyWordGuessScreen .daily-word-guess-scroll { flex: 0 0 auto; height: auto; min-height: 0; max-height: none; overflow: visible; padding-bottom: 230px; }
#dailyWordGuessScreen .daily-word-guess-attempts { min-height: 0; }
#dailyWordGuessScreen .daily-word-guess-card { padding-top: 153px; }
#dailyWordGuessScreen .daily-word-guess-card > .daily-word-guess-form {
  position: fixed;
  top: 96px;
  left: 50%;
  z-index: 45;
  width: min(calc(100% - 24px), 680px);
  box-sizing: border-box;
  transform: translateX(-50%);
}
#dailyWordGuessScreen { padding-top: 120px; }
#dailyWordGuessScreen .daily-word-guess-input-panel {
  position: fixed !important;
  top: 0 !important;
  left: 50%;
  z-index: 40;
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
  padding: 16px 12px 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 33, 61, .08);
  transform: translateX(-50%);
}
#dailyWordGuessScreen .daily-word-guess-card { padding-top: 0; }
#dailyWordGuessScreen .daily-word-guess-card > .daily-word-guess-form {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  transform: none;
}
html[data-theme="dark"] #gameWorldScreen .game-world-item { border-color: rgba(195,192,255,.2); background: rgba(30,41,59,.72); box-shadow: 0 8px 22px rgba(0,0,0,.2); backdrop-filter: blur(10px); }
html[data-theme="dark"] #gameWorldScreen .game-world-item:hover, html[data-theme="dark"] #gameWorldScreen .game-world-item:focus-visible { border-color: rgba(195,192,255,.52); box-shadow: 0 0 15px rgba(195,192,255,.1) inset, 0 10px 24px rgba(0,0,0,.28); }
html[data-theme="dark"] #gameWorldScreen .game-world-item-icon { border-color: rgba(195,192,255,.2); box-shadow: 0 8px 18px rgba(0,0,0,.28); }
html[data-theme="dark"] .word-chain-close-button { background: #25354d; color: #dce8ff; }
html[data-theme="dark"] .word-chain-entry { background: #121a26; }
html[data-theme="dark"] .word-chain-entry-order { background: #253b5b; color: #d8e6ff; }
html[data-theme="dark"] .game-choice-actions .secondary-button { border-color: #3a4b65; background: #25354d; color: #dce8ff; }
html[data-theme="dark"] .word-chain-new-button { border-color: #375378; background: #1e3554; color: #cfe0ff; }
html[data-theme="dark"] .word-chain-forbidden-button { background: #5f8fd6; color: #0f1a2b; }
html[data-theme="dark"] .word-chain-forbidden-list b { background: #243a5b; color: #d9e7ff; }
html[data-theme="dark"] .word-chain-forbidden-form label { color: #edf2fa; }
html[data-theme="dark"] .word-chain-forbidden-form input { border-color: #40516a; background: #121a28; color: #edf2fa; }
html[data-theme="dark"] .word-chain-history { border-color: #2f3e53; }
html[data-theme="dark"] .word-chain-history h3, html[data-theme="dark"] .word-chain-history-entry { color: #9bacbf; }
html[data-theme="dark"] .word-chain-history-round { border-color: #2f3e53; background: #121a26; }
html[data-theme="dark"] .achievement-summary-card, html[data-theme="dark"] .achievement-item { border-color: #33435b; background: #1a2230; color: #edf2fa; }
html[data-theme="dark"] .achievement-summary-copy em, html[data-theme="dark"] .achievement-item p { color: #aab8cb; }
html[data-theme="dark"] .member-achievement-badge { border-color: #9a7b2a; background: linear-gradient(135deg, #4a3c1b, #3b321e); color: #ffe9a3; }
html[data-theme="dark"] .achievement-badge-visits { border-color: #5279b1; background: #233b60; color: #cfe0ff; }
html[data-theme="dark"] .achievement-badge-strategy { border-color: #7565a8; background: #352d55; color: #ded5ff; }
html[data-theme="dark"] .achievement-badge-party { border-color: #a66172; background: #512b36; color: #ffd3dc; }
html[data-theme="dark"] .achievement-badge-favorite { border-color: #4e927d; background: #1f473c; color: #c6f2e2; }
html[data-theme="dark"] .achievement-badge-rulemaster { border-color: #9a7b2a; background: #4a3c1b; color: #ffe9a3; }
html[data-theme="dark"] .achievement-badge-played { border-color: #a86f3d; background: #4a3220; color: #ffdcb9; }
html[data-theme="dark"] .achievement-badge-rating_given { border-color: #4d91a4; background: #1e424d; color: #c9f1fb; }
html[data-theme="dark"] .achievement-badge-rating_received { border-color: #94629c; background: #432b48; color: #f0cef4; }
html[data-theme="dark"] .achievement-level-card { border-color: #33435b; background: #1a2230; }
html[data-theme="dark"] .achievement-stage-detail p { color: #aab8cb; }
html[data-theme="dark"] .achievement-stage-detail small { color: #8fb4f3; }
html[data-theme="dark"] .achievement-stepper::before { background: #33435b; }
html[data-theme="dark"] .achievement-stepper::after { background: #5d87d0; }
html[data-theme="dark"] .achievement-step { border-color: #8793a7; background: #1a2230; }
html[data-theme="dark"] .achievement-step.done { border-color: #5d87d0; background: #5d87d0; }
html[data-theme="dark"] .achievement-progress { background: #33435b; }
html[data-theme="dark"] .daily-fortune-main-card { border-color: #6d5928; background: linear-gradient(145deg, #292517, #3c321b); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
html[data-theme="dark"] .daily-fortune-greeting, html[data-theme="dark"] .daily-fortune-details span { color: #e4ce91; }
html[data-theme="dark"] .daily-fortune-message, html[data-theme="dark"] .daily-fortune-details strong { color: #fff7de; }
html[data-theme="dark"] .fortune-card-icon { background: #51421a; }
html[data-theme="dark"] .daily-fortune-details article { border-color: #384459; background: #1a2230; }
html[data-theme="dark"] .daily-fortune-details .fortune-card-icon { background: #243a60; }
html[data-theme="dark"] .daily-fortune-details .fortune-card-icon.palette { background: #432d4c; }
html[data-theme="dark"] .daily-fortune-share-button { border-color: #5d87d0; background: #3d67ae; }
html[data-theme="dark"] .alcohol-calendar-card { border-color: #35465e; background: rgba(24,34,50,.95); }
html[data-theme="dark"] .alcohol-calendar-month-summary { border-color: #43536a; background: #1b2637; }
html[data-theme="dark"] .alcohol-calendar-month-summary h3 { color: #e2e8f0; }
html[data-theme="dark"] .alcohol-calendar-month-stats span { color: #aebbd0; }
html[data-theme="dark"] .alcohol-calendar-month-stats strong { color: #b9d0f7; }
html[data-theme="dark"] .alcohol-calendar-record-line { border-color: #76563f; background: #362a24; color: #f0c6a5; }
html[data-theme="dark"] .alcohol-calendar-record-tone-0 { --alcohol-record-bg: #362a24; --alcohol-record-fg: #f0c6a5; }
html[data-theme="dark"] .alcohol-calendar-record-tone-1 { --alcohol-record-bg: #233b60; --alcohol-record-fg: #c7d9fa; }
html[data-theme="dark"] .alcohol-calendar-record-tone-2 { --alcohol-record-bg: #1f3b31; --alcohol-record-fg: #a7e0bf; }
html[data-theme="dark"] .alcohol-calendar-record-tone-3 { --alcohol-record-bg: #342a47; --alcohol-record-fg: #d3baf4; }
html[data-theme="dark"] .alcohol-calendar-record-tone-4 { --alcohol-record-bg: #45391f; --alcohol-record-fg: #f2d58d; }
html[data-theme="dark"] .alcohol-calendar-record-tone-5 { --alcohol-record-bg: #482a35; --alcohol-record-fg: #f3b5c4; }
html[data-theme="dark"] .alcohol-calendar-record-line.alcohol-calendar-record-tone-0 { background: #493525; color: #ffd7ad; }
html[data-theme="dark"] .alcohol-calendar-record-line.alcohol-calendar-record-tone-1 { background: #1d4565; color: #c9e8ff; }
html[data-theme="dark"] .alcohol-calendar-record-line.alcohol-calendar-record-tone-2 { background: #214b38; color: #baf2ce; }
html[data-theme="dark"] .alcohol-calendar-record-line.alcohol-calendar-record-tone-3 { background: #44305f; color: #e0ccff; }
html[data-theme="dark"] .alcohol-calendar-record-line.alcohol-calendar-record-tone-4 { background: #5a491f; color: #ffe69b; }
html[data-theme="dark"] .alcohol-calendar-record-line.alcohol-calendar-record-tone-5 { background: #5a3042; color: #ffd0df; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-0 { background: #493525; color: #ffd7ad; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-1 { background: #1d4565; color: #c9e8ff; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-2 { background: #214b38; color: #baf2ce; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-3 { background: #44305f; color: #e0ccff; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-4 { background: #5a491f; color: #ffe69b; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-5 { background: #5a3042; color: #ffd0df; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-0 > span, html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-0 > small { color: #ffd7ad; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-1 > span, html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-1 > small { color: #c9e8ff; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-2 > span, html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-2 > small { color: #baf2ce; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-3 > span, html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-3 > small { color: #e0ccff; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-4 > span, html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-4 > small { color: #ffe69b; }
html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-5 > span, html[data-theme="dark"] .alcohol-calendar-details-list article.alcohol-calendar-record-tone-5 > small { color: #ffd0df; }
html[data-theme="dark"] .alcohol-calendar-monthbar h3, html[data-theme="dark"] .alcohol-calendar-day { color: #e2e8f0; }
html[data-theme="dark"] #alcoholCalendarScreen .alcohol-calendar-cell { border-color: #35465e; background: #202c3e; }
html[data-theme="dark"] #alcoholCalendarScreen .alcohol-calendar-cell.is-today { border-color: #7195d0; background: #233b60; }
html[data-theme="dark"] #alcoholCalendarScreen .alcohol-calendar-cell > .alcohol-calendar-day { border-color: transparent; background: transparent; color: #e2e8f0; }
html[data-theme="dark"] .alcohol-calendar-details-popover { border-color: #43536a; background: #172235; color: #e2e8f0; }
html[data-theme="dark"] .alcohol-calendar-details-heading { border-color: #43536a; }
html[data-theme="dark"] .alcohol-calendar-details-list article { background: #202c3e; }
html[data-theme="dark"] .alcohol-calendar-details-list article > span, html[data-theme="dark"] .alcohol-calendar-details-list article > small, html[data-theme="dark"] .alcohol-calendar-actions > span { color: #aebbd0; }
html[data-theme="dark"] #alcoholCalendarEntryModal #alcoholCalendarRecordDate, html[data-theme="dark"] #alcoholCalendarEntryModal .alcohol-participant-fields input { border-color: #43536a; background: #172235; color: #e2e8f0; }
html[data-theme="dark"] #alcoholCalendarRecordModal .alcohol-record-registrant-count { border-color: #43536a; background: #243550; color: #c7dcff; }
html[data-theme="dark"] .alcohol-calendar-monthbar button, html[data-theme="dark"] .alcohol-calendar-day:not(.is-empty) { border-color: #35465e; background: #202c3e; }
html[data-theme="dark"] .alcohol-calendar-day.is-today { border-color: #7195d0; background: #233b60; }
html[data-theme="dark"] .alcohol-calendar-day.has-entry { border-color: #76563f; background: #362a24; }
html[data-theme="dark"] .alcohol-calendar-day small { color: #f0c6a5; }
html[data-theme="dark"] .alcohol-calendar-snack-badge { border-color: #76563f; background: #362a24; color: #f0c6a5; }
html[data-theme="dark"] #alcoholCalendarScreen .back-button { color: #b9d0f7; }
html[data-theme="dark"] #alcoholCalendarEntryModal label { color: #d5deec; }
html[data-theme="dark"] #alcoholCalendarEntryModal .alcohol-private-toggle { color: #c6d2e3; }
html[data-theme="dark"] .alcohol-record-privacy-badge { background: #2a3d5d; color: #c7d9fa; }
html[data-theme="dark"] #alcoholCalendarEntryModal .alcohol-entry-date { color: #b9d0f7; }
html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-row { border-color: #43536a; background: #202c3e; }
html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control, html[data-theme="dark"] #alcoholCalendarEntryModal select { border-color: #43536a; background: #1b2637; color: #e2e8f0; }
html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-number-control button, html[data-theme="dark"] #alcoholCalendarEntryModal .alcohol-total-summary { background: #2a3d5d; color: #d6e4ff; }
html[data-theme="dark"] #alcoholCalendarEntryModal .alcohol-total-summary small, html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-calories { color: #afc2df; }
html[data-theme="dark"] #alcoholCalendarEntryModal .alcohol-calorie-total { color: #c6d2e3; }
html[data-theme="dark"] #alcoholCalendarEntryModal .alcohol-calorie-total strong { color: #c7d9fa; }
html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-section-title > button { border-color: #43536a; background: #2a3d5d; color: #d6e4ff; }
html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-picker { border-color: #43536a; background: #202c3e; }
html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-picker button { border-color: #43536a; background: #1b2637; color: #d6e4ff; }
html[data-theme="dark"] #alcoholCalendarEntryModal .alcohol-entry-actions { border-color: #43536a; }
html[data-theme="dark"] #alcoholCalendarRecordModal .alcohol-record-content { border-color: #43536a; background: #172235; }
html[data-theme="dark"] #alcoholCalendarRecordModal .modal-header, html[data-theme="dark"] #alcoholCalendarRecordModal .alcohol-record-actions { border-color: #43536a; }
html[data-theme="dark"] .alcohol-record-body section { border-color: #43536a; background: #202c3e; }
html[data-theme="dark"] .alcohol-record-body section span { color: #aebbd0; }
html[data-theme="dark"] .alcohol-record-body section strong { color: #e2e8f0; }
html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-row.is-selected { border-color: #719bd6; background: #243e62; box-shadow: inset 0 0 0 1px #719bd6; }
html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-card-heading, html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-section-title { color: #d6e4ff; }
html[data-theme="dark"] :is(#alcoholCalendarEntryModal, #alcoholCalendarQuickModal) .alcohol-drink-remove { color: #afc2df; }
html[data-theme="dark"] #alcoholCalendarEntryModal .alcohol-entry-summary { background: #2a3d5d; }

html[data-theme="dark"] .fortune-color.coral-pink { color: #ff9bac; }html[data-theme="dark"] .fortune-color.deep-blue { color: #9bc8ff; }html[data-theme="dark"] .fortune-color.mint { color: #7ce6cc; }html[data-theme="dark"] .fortune-color.lavender { color: #d0b7ff; }html[data-theme="dark"] .fortune-color.lemon-yellow { color: #ffe07b; }html[data-theme="dark"] .fortune-color.burgundy { color: #ff9aaa; }html[data-theme="dark"] .fortune-color.sky-blue { color: #8dd5ff; }html[data-theme="dark"] .fortune-color.olive-green { color: #c1d57c; }html[data-theme="dark"] .fortune-color.cream-beige { color: #f0c99b; }html[data-theme="dark"] .fortune-color.orange { color: #ffba7e; }
html[data-theme="dark"] .price-card.featured { border-color: #6d96df; background: #1b2a43; }
html[data-theme="dark"] .price-card .price-time { background: #243a60; color: #cfe0ff; }
html[data-theme="dark"] .price-card.featured .price-time { background: #4b76c0; color: #fff; }
html[data-theme="dark"] .price-card p { color: #afbdd0; }
html[data-theme="dark"] .beverage-notice { border-color: #31517c; background: #192b45; }
html[data-theme="dark"] .beverage-notice .notice-card-icon { background: #29466f; }
html[data-theme="dark"] .food-notice { border-color: #745a31; background: #34291b; }
html[data-theme="dark"] .food-notice .notice-card-icon { background: #5a421f; }
html[data-theme="dark"] .notice-card h3, html[data-theme="dark"] .notice-card p, html[data-theme="dark"] .notice-card p strong { color: #f2f6fd; }
html[data-theme="dark"] .notice-card p { color: #c1ccdb; }
html[data-theme="dark"] .list-select span { border-color: #596b83; background: #172131; }
html[data-theme="dark"] .list-select input:checked + span { border-color: #6d96df; background: #6d96df; }
html[data-theme="dark"] .member-welcome-card { background: linear-gradient(135deg, #233d6d, #365a98); }
html[data-theme="dark"] .modal-backdrop { background: rgba(0, 0, 0, .68); }
html[data-theme="dark"] .modal-content { border: 1px solid #2d3b50; box-shadow: 0 -12px 40px rgba(0,0,0,.45); }
html[data-theme="dark"] .room-status-map-card { border-color: #33465f; background: #192331; }
html[data-theme="dark"] .room-status-current-summary { color: #b9c7d9; }
html[data-theme="dark"] .room-status-type-label { color: #c3d0e0; }
html[data-theme="dark"] .room-status-type-tabs { border-color: #3a4b65; background: #131b28; }
html[data-theme="dark"] .room-status-type-tabs button { color: #91a3b9; }
html[data-theme="dark"] .room-status-type-tabs button[aria-selected="true"] { background: #2a4168; color: #edf3ff; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
html[data-theme="dark"] .room-status-history-panel { border-color: #33465f; background: #151f2d; }
html[data-theme="dark"] .room-status-history-heading, html[data-theme="dark"] .room-status-history-item { color: #c3d0e0; }
html[data-theme="dark"] .room-status-history-heading span, html[data-theme="dark"] .room-status-history-list p, html[data-theme="dark"] .room-status-history-item small { color: #91a3b9; }
html[data-theme="dark"] .room-status-history-item strong { color: #edf3ff; }
html[data-theme="dark"] .room-status-map-heading { border-color: #2d3b50; }
html[data-theme="dark"] .room-status-legend { color: #b9c7d9; }
html[data-theme="dark"] .room-status-map { background: #141d2a; }
html[data-theme="dark"] .room-status-map::before { border-color: #40536c; background: linear-gradient(90deg, transparent 24.6%, #34465e 24.6%, #34465e 25.2%, transparent 25.2%, transparent 74.8%, #34465e 74.8%, #34465e 75.4%, transparent 75.4%); }
html[data-theme="dark"] .room-status-map::after { color: #3b4c63; }
html[data-theme="dark"] .room-status-zone { border-color: #5278b8; background: rgba(24,35,51,.9); color: #edf3ff; }
html[data-theme="dark"] .room-status-zone.has-occupants::before { background: rgba(0,0,0,.7); }
html[data-theme="dark"] .room-status-zone.is-general { border-color: #6d96df; background: rgba(37,61,99,.88); }
html[data-theme="dark"] .room-status-zone.is-group { border-color: #d66a9d; background: rgba(83,39,67,.88); }
html[data-theme="dark"] .room-status-zone:hover, html[data-theme="dark"] .room-status-zone:focus-visible { border-color: #fff; background: rgba(255,255,255,.14); box-shadow: 0 4px 14px rgba(255,255,255,.28); }
html[data-theme="dark"] .room-status-zone.is-selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 6px 18px rgba(255,255,255,.32); }
html[data-theme="dark"] .room-zone-meta { color: #bdcce0; }
html[data-theme="dark"] .room-zone-meta .room-status-badge { background: #29446f; color: #dce9ff; }
html[data-theme="dark"] .room-zone-meta .room-status-badge.group { background: #5c2948; color: #ffd0e4; }
html[data-theme="dark"] .room-zone-meta .room-status-badge.empty { background: #344154; color: #c5d0df; }
html[data-theme="dark"] .room-elapsed { color: #c2d1e5; }
html[data-theme="dark"] .room-status-counter { border-color: #596d86; background: repeating-linear-gradient(135deg, #3b4b61 0, #3b4b61 8px, #1e2a3a 8px, #1e2a3a 16px); color: #dce7f6; }
html[data-theme="dark"] .room-count-stepper button { border-color: #3d577b; background: #253c62; color: #dce9ff; }
html[data-theme="dark"] .room-count-stepper output { border-color: #3a4b65; background: #131b28; color: #edf2fa; }
html[data-theme="dark"] .join-request-content .modal-header, html[data-theme="dark"] .join-request-footer, html[data-theme="dark"] .game-modal-content .modal-header, html[data-theme="dark"] .game-modal-footer, html[data-theme="dark"] .address-postcode-content .modal-header { border-color: #2d394c; background: #1a2230; }
html[data-theme="dark"] .join-request-body, html[data-theme="dark"] .game-modal-body { background: #1a2230; }
html[data-theme="dark"] .close-button { background: #2a384d; color: #dce8ff; }
html[data-theme="dark"] .notice-content p, html[data-theme="dark"] .delete-modal-content p { color: #b7c4d6; }
html[data-theme="dark"] .notice-icon { background: #263d63; color: #bcd5ff; }
html[data-theme="dark"] .delete-modal-icon { background: #542b34; color: #ffb7bd; }
html[data-theme="dark"] .visit-map-wrap { border-color: #354860; background: #141d2a; }
html[data-theme="dark"] .visit-map, html[data-theme="dark"] .visit-map-loading { background: #141d2a; }
html[data-theme="dark"] .visit-map-loading { color: #c4d1e1; }
html[data-theme="dark"] .visit-map-loading strong { color: #f1f5fb; }
html[data-theme="dark"] .visit-map-loading small, html[data-theme="dark"] .visit-map-legend { color: #afbdd0; }
html[data-theme="dark"] .visit-map-loading span { border-color: #40536c; border-top-color: #78a0e8; }
html[data-theme="dark"] .relationship-type-option input:checked + span { border-color: #6d96df; background: #263d63; color: #dce8ff; }
html[data-theme="dark"] .game-modal-body label, html[data-theme="dark"] .game-expansion-check, html[data-theme="dark"] .relationship-field-label { color: #edf2fa; }
html[data-theme="dark"] .game-expansion-label, html[data-theme="dark"] .password-help, html[data-theme="dark"] .nickname-history { color: #b7c4d6; }
html[data-theme="dark"] .form-divider { background: #344154; }
html[data-theme="dark"] .form-section-title { color: #edf2fa; }
html[data-theme="dark"] .form-section-title span { color: #b7c4d6; }
html[data-theme="dark"] .game-expansion-check input { accent-color: #6d96df; }
/* Public 끝말잇기 화면도 동일한 카드 톤을 사용합니다. */
#publicGameView > section,
#publicGameView > form,
#publicGameView > .word-chain-board {
  border: 1px solid rgba(49,90,159,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 26px rgba(20,33,61,.07);
}
#publicGameView > form,
#publicGameView > .word-chain-board { padding: 18px; }
html[data-theme="dark"] #publicGameView > section,
html[data-theme="dark"] #publicGameView > form,
html[data-theme="dark"] #publicGameView > .word-chain-board {
  border-color: rgba(195,192,255,.16);
  background: rgba(30,41,59,.72);
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}
@media (max-width: 700px) { .mummy-search-form { grid-template-columns: 1fr 1fr; } .mummy-search-form button { grid-column: 1 / -1; } }
@media (max-width: 520px) { .page-shell { width: min(calc(100% - 24px), 680px); padding-top: max(20px, calc(env(safe-area-inset-top) + 12px)); } .auth-card, .card { padding: 20px; } .auth-card { grid-template-columns: 1fr; gap: 20px; } .login-brand-panel { height: 200px; } .login-form-panel { padding: 0; } .app-header { align-items: stretch; flex-direction: column; } .header-actions { display: grid; grid-template-columns: 1fr 1fr; } .secondary-button, .register-button { width: 100%; } .screen-actions .register-button { width: 100%; } .screen-heading { align-items: end; } .screen-heading.subpage-heading { align-items: center; } .screen-heading-actions { max-width: 55%; } .screen-heading-actions .title-badge-button { font-size: .7rem; padding: 0 8px; } .pricing-heading { align-items: flex-start; } .room-status-map-heading { align-items: flex-start; flex-direction: column; } .room-status-legend { justify-content: flex-start; } .room-zone-name { font-size: .95rem; } .room-zone-meta { font-size: .64rem; } .room-zone-meta .room-status-badge { font-size: .59rem; } }
@media (max-width: 480px) {
  .page-shell { width: 100%; padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
  .mystery-game-header { min-width: 0; }
  .mystery-game-header > div:first-child { min-width: 0; }
  .mystery-game-header h2 { overflow-wrap: anywhere; }
  .omok-header-actions { flex: 0 0 auto; }
  .omok-game-room { min-width: 0; padding: 12px; }
  .omok-board { width: 100%; max-width: 100%; border-width: 4px; }
  .omok-players { min-width: 0; }
  .omok-player { min-width: 0; overflow: hidden; }
}
@media (max-width: 680px) {
  .auth-card { margin-top: 5vh; }
}
html[data-theme="light"] #gameWorldScreen,
html[data-theme="dark"] #gameWorldScreen { background: transparent; }
/* 로그인은 카드 안에 가두지 않고 화면 전체를 사용하는 반응형 레이아웃입니다. */
body:has(#loginView:not(.hidden)),
body:has(#loginView:not(.hidden)) .page-shell {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #fdf2e0;
}
#loginView.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(360px, 480px);
  align-items: center;
  /* 넓은 화면에서는 브랜드 이미지와 로그인 폼을 한 덩어리처럼 붙입니다. */
  gap: clamp(8px, 1.5vw, 24px);
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(28px, 5vw, 72px) clamp(24px, 6vw, 88px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fdf2e0;
  box-shadow: none;
}
#loginView .login-brand-panel {
  position: relative;
  z-index: 0;
  align-self: stretch;
  justify-self: stretch;
  grid-column: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#loginView .login-brand-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}
#loginView .login-form-panel {
  z-index: 1;
  grid-column: 2;
  width: 100%;
  max-width: 480px;
  margin: 0;
  justify-self: stretch;
}
html[data-theme="dark"] body:has(#loginView:not(.hidden)),
html[data-theme="dark"] body:has(#loginView:not(.hidden)) .page-shell,
html[data-theme="dark"] #loginView.auth-card {
  background: #fdf2e0;
  color: #6d4c30;
  box-shadow: none;
}
html[data-theme="dark"] #loginView .login-brand-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}
body:has(#loginView:not(.hidden)) #loginView.auth-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 760px) {
  #loginView.auth-card {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding: max(4px, env(safe-area-inset-top)) max(20px, 6vw) 32px;
  }
  #loginView .login-brand-panel {
    position: relative;
    inset: auto;
    width: min(100%, 360px);
    height: clamp(220px, 64vw, 280px);
    max-width: none;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
  }
  #loginView .login-brand-panel img { object-fit: cover; object-position: center center; }
  #loginView .login-form-panel {
    grid-column: 1;
    max-width: 480px;
    margin: 0 auto;
    gap: 10px;
  }
  #loginView .login-form-panel form { gap: 10px; }
  #loginView .login-form-panel form label { gap: 5px; }
  #loginView .login-form-panel form input,
  #loginView .login-form-panel form select { min-height: 46px; padding-top: 9px; padding-bottom: 9px; }
  #loginView .login-form-panel form > button[type="submit"] { min-height: 48px; margin-top: -18px; }
}
/* 로그인 화면은 미리보기 이미지의 블루 포인트와 어울리는 전용 색상 팔레트를 사용합니다. */
#loginView.auth-card {
  color: #14213d;
  background: #fdf2e0;
}
#loginView .auth-card h1,
#loginView h1 { color: #14213d; }
#loginView .auth-card .description,
#loginView .description { color: #6b7c93; }
#loginView .auth-card form label,
#loginView form label { color: #334766; }
#loginView .auth-card form input,
#loginView .auth-card form select,
#loginView form input,
#loginView form select {
  border-color: #d6e1f1;
  background: rgba(255,255,255,.88);
  color: #14213d;
}
#loginView form input:focus,
#loginView form select:focus {
  border-color: #4776c0;
  outline: 3px solid rgba(71, 118, 192, .18);
}
#loginView .auth-card form > button[type="submit"],
#loginView form > button[type="submit"] {
  background: linear-gradient(135deg, #315a9f, #4776c0);
  box-shadow: 0 9px 18px rgba(49, 90, 159, .22);
}
#loginView .auth-card form > button[type="submit"]:hover,
#loginView form > button[type="submit"]:hover { background: linear-gradient(135deg, #284d8c, #3d69ad); }
#loginView .login-join-button {
  border-color: #cbdcf7;
  background: #edf4ff;
  color: #315a9f;
}
#loginView .auth-card form .text-button,
#loginView form .text-button { color: #71819a; }
#loginView #loginMessage { color: #b42318; }
/* 리코셰 로봇 퍼즐 */
.ricochet-game-card { display: grid; gap: 14px; padding: 16px; border: 1px solid #dfe7f3; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(39,65,103,.06); }
.ricochet-runtime-status { display: none; margin: 0; padding: 2px 4px; background: transparent; border: 0; text-align: center; }
.ricochet-runtime-status:not(:empty) { display: block; }
.meetup-poll-list { display: grid; gap: 14px; margin: 16px 0; }
.meetup-reset-button { width: auto; min-height: 36px; margin: 14px 0 -4px; padding: 0 12px; background: #eef3fb; color: #315a9f; font-size: .8rem; font-weight: 800; }
.meetup-poll-day { display: grid; gap: 10px; min-width: 0; border: 1.5px solid #c8d8ee; border-radius: 16px; padding: 14px; background: #fbfdff; box-shadow: 0 2px 8px rgba(45,78,120,.05); }
.meetup-poll-day legend { padding: 0 8px; font-weight: 800; color: #243b5a; background: #fff; border-radius: 8px; }
html[data-theme="dark"] .meetup-poll-day { border-color: #4c6483; background: #1d293a; box-shadow: none; }
html[data-theme="dark"] .meetup-poll-day legend { color: #dbe8fb; background: #1a2230; }
html[data-theme="dark"] .meetup-reset-button { border: 1px solid #40516a; background: #243653; color: #cfe0ff; }
.meetup-poll-day label { display: grid !important; grid-template-columns: minmax(0, 1fr) auto 24px !important; align-items: center !important; gap: 12px !important; width: 100% !important; box-sizing: border-box; padding: 10px 14px; border-radius: 10px; background: var(--surface-muted,#f5f8fc); cursor: pointer; }
.meetup-poll-day label.has-voters { background: #edf4ff; box-shadow: inset 3px 0 #6a91cf; }
.meetup-poll-day label.is-my-vote { background: #dbe9ff; box-shadow: inset 3px 0 #315a9f; }
.meetup-option-text { display: block !important; width: auto !important; min-width: 0 !important; writing-mode: horizontal-tb !important; white-space: nowrap !important; word-break: keep-all; overflow: hidden; text-overflow: ellipsis; }
.meetup-poll-day label small { grid-column: 2; color: #64748b; white-space: nowrap; }
.meetup-poll-day label input[type="radio"] { grid-column: 3; margin: 0; }
#meetupStatusScreen { width: min(100%, 720px); max-width: 720px; margin: 0 auto; padding: 8px clamp(12px, 4vw, 24px) 32px; box-sizing: border-box; overflow-x: hidden; }
#meetupStatusScreen .screen-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#meetupStatusScreen .screen-heading > .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; flex-wrap: nowrap; }
#meetupStatusScreen .screen-heading > .header-actions .secondary-button { white-space: nowrap; min-width: max-content; }
#meetupStatusScreen #closeMeetupStatus { width: 52px; height: 52px; min-width: 52px; min-height: 52px; padding: 0; aspect-ratio: 1 / 1; border-radius: 50%; display: inline-grid; place-items: center; line-height: 1; }
#meetupStatusScreen .screen-heading h2 { margin: 0; }
#meetupStatusScreen #meetupStatusMessage { margin: 6px 0 0; min-height: 1.2em; }
#meetupStatusScreen .meetup-poll-list, #meetupStatusScreen #meetupEditForm { width: 100%; box-sizing: border-box; background: var(--surface,#fff); border: 1px solid var(--border,#dfe7f3); border-radius: 18px; padding: clamp(12px, 3vw, 20px); }
html[data-theme="dark"] #meetupStatusScreen .meetup-poll-list, html[data-theme="dark"] #meetupStatusScreen #meetupEditForm { background: #1a2230; border-color: #3b4c66; }
html[data-theme="dark"] .meetup-poll-day label.has-voters { background: #243653; box-shadow: inset 3px 0 #6f9bde; }
html[data-theme="dark"] .meetup-poll-day label.is-my-vote { background: #2c4b77; box-shadow: inset 3px 0 #9bc0ff; }
@media (max-width: 520px) { #meetupStatusScreen .screen-heading { align-items: center; } #meetupStatusScreen .screen-heading > .header-actions { gap: 4px; } #meetupStatusScreen .screen-heading > .header-actions .secondary-button { padding: 8px 10px; font-size: .78rem; } #meetupStatusScreen .screen-heading > div:first-child { min-width: 0; } }
.meetup-edit-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; margin: 8px 0; }
.meetup-edit-options { display: grid; gap: 6px; }
.meetup-edit-option { display: flex; gap: 6px; }
.meetup-edit-option input { flex: 1; min-width: 0; }
.meetup-edit-option button, [data-meetup-option-add] { width: auto; padding: 6px 10px; }
@media (max-width: 640px) { .meetup-edit-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .meetup-poll-day { border-radius: 14px; padding: 12px 10px; } .meetup-poll-day legend { font-size: .95rem; } }
.ricochet-settings-panel { display: grid; gap: 5px; margin: 0 0 10px; padding: 12px 14px; border: 1px solid #dfe7f3; border-radius: 12px; background: #f7faff; color: #526983; }
.ricochet-settings-panel strong { color: #315a9f; font-size: .9rem; }
.ricochet-settings-panel span { font-size: .8rem; line-height: 1.5; }
.ricochet-settings-panel small { color: #315a9f; font-size: .76rem; font-weight: 700; }
.ricochet-share-puzzle { width: 100%; margin: 0 0 2px; }
.ricochet-share-status { min-height: 1.2em; margin: 0 0 10px; color: #315a9f; font-size: .78rem; font-weight: 700; text-align: center; }
html[data-theme="dark"] .ricochet-settings-panel { border-color: #3b4c66; background: #202d42; color: #b4c2d5; }
html[data-theme="dark"] .ricochet-settings-panel strong { color: #b7d1fa; } html[data-theme="dark"] .ricochet-settings-panel small { color: #b7d1fa; }
html[data-theme="dark"] .ricochet-share-status { color: #b7d1fa; }
.yahtzee-period-status { display: none; }
html:has(body[data-current-screen="yahtzee"]),
body[data-current-screen="yahtzee"] { height: 100%; overflow: hidden; }
body[data-current-screen="yahtzee"] .page-shell {
  height: 100dvh;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
}
body[data-current-screen="yahtzee"] #appView {
  height: 100%;
  min-height: 0;
  gap: 0;
  overflow: hidden;
}
#yahtzeeScreen { display: flex; flex-direction: column; height: 100dvh; min-height: 0; overflow: hidden; }
#yahtzeeScreen #yahtzeeSoloPanel { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; }
#yahtzeeSoloPanel > .yahtzee-card { position:relative; }
#yahtzeeSoloPanel > .yahtzee-scroll-area { overflow:visible; }
#yahtzeeDice .yahtzee-die { min-width:0; min-height:0; aspect-ratio:1; max-height:88px; padding:4px; }
.yahtzee-scroll-area { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 24px; }
.yahtzee-card { position: sticky; top: 0; z-index: 30; margin-top: 0; padding: 16px; border: 1px solid #dfe7f3; border-radius: 0 0 18px 18px; background: rgba(255,255,255,.97); box-shadow: 0 8px 20px rgba(39,65,103,.12); }
.yahtzee-score-card, .yahtzee-ranking-card { margin-top: 14px; padding: 16px; border: 1px solid #dfe7f3; border-radius: 18px; background: #fff; }
.yahtzee-dice { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.yahtzee-die { position: relative; min-height: 70px; border: 2px solid #c9d8ee; border-radius: 14px; background: #f7faff; color: #172b4d; font-size: 2rem; font-weight: 900; cursor: pointer; }
.yahtzee-die img, .yahtzee-die-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.yahtzee-die.is-held { border-color: #315fa5; background: #dceaff; box-shadow: 0 0 0 3px rgba(49,95,165,.14); transform: translateY(-3px); }
.yahtzee-die.is-rolling { animation: yahtzee-shake .42s ease-in-out infinite alternate; }
.yahtzee-die.is-rolling img { animation: yahtzee-die-roll .52s cubic-bezier(.35,.05,.65,.95) infinite; }
.yahtzee-die.is-rolling img, .yahtzee-die.is-rolling .yahtzee-die-art { visibility: hidden; }
.yahtzee-diceskin-label { margin:0 0 8px; color:#6b7d96; font-size:.72rem; text-align:center; }
.yahtzee-dice[data-dice-skin]:not([data-dice-skin=""]):not([data-dice-skin="default"]) .yahtzee-die { border-color:transparent; background:transparent; box-shadow:none; }
.yahtzee-dice[data-dice-skin]:not([data-dice-skin=""]):not([data-dice-skin="default"]) .yahtzee-die.is-held { border-color:transparent; background:transparent; box-shadow:0 0 0 3px rgba(49,95,165,.2); }
#yahtzeeDice .yahtzee-die.is-held { outline:3px solid #155bd1; outline-offset:2px; box-shadow:0 0 0 2px #fff,0 5px 10px #155bd140; }
html[data-theme="dark"] #yahtzeeDice .yahtzee-die.is-held { outline-color:#75caff; box-shadow:0 0 0 2px #15253c,0 5px 10px #0005; }
.yahtzee-die-art { filter:drop-shadow(0 1px 1px #0003); }
.yahtzee-dice[data-dice-skin="ruby_dice"] { --yahtzee-die-face:#cf4163; --yahtzee-die-shade:#941f3e; --yahtzee-die-edge:#5e1730; --yahtzee-die-pip:#fff1e5; }
.yahtzee-dice[data-dice-skin="sapphire_dice"] { --yahtzee-die-face:#3976d8; --yahtzee-die-shade:#204b96; --yahtzee-die-edge:#17315f; --yahtzee-die-pip:#f1f7ff; }
.yahtzee-dice[data-dice-skin="jade_dice"] { --yahtzee-die-face:#319d77; --yahtzee-die-shade:#1a6a4d; --yahtzee-die-edge:#124533; --yahtzee-die-pip:#effff2; }
.yahtzee-dice[data-dice-skin="amethyst_dice"] { --yahtzee-die-face:#9967d1; --yahtzee-die-shade:#693f9e; --yahtzee-die-edge:#43265f; --yahtzee-die-pip:#fff1ff; }
.yahtzee-dice[data-dice-skin="glacier_dice"] { --yahtzee-die-face:#c5eff7; --yahtzee-die-shade:#7cbaca; --yahtzee-die-edge:#316a7c; --yahtzee-die-pip:#204958; }
.yahtzee-dice[data-dice-skin="sunrise_dice"] { --yahtzee-die-face:#ffc766; --yahtzee-die-shade:#d88b30; --yahtzee-die-edge:#86501e; --yahtzee-die-pip:#75421d; }
.yahtzee-skin-preview { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:20px 8px; }
.yahtzee-preview-die { position:relative; display:grid; width:clamp(42px,10vw,62px); aspect-ratio:1; place-items:center; border:0; background:transparent; }
.yahtzee-preview-die img { display:block; width:100%; height:100%; object-fit:contain; }
.yahtzee-skin-preview b { display:none; }
.yahtzee-skin-preview.is-ruby-dice { --yahtzee-die-face:#cf4163; --yahtzee-die-shade:#941f3e; --yahtzee-die-edge:#5e1730; --yahtzee-die-pip:#fff1e5; }
.yahtzee-skin-preview.is-sapphire-dice { --yahtzee-die-face:#3976d8; --yahtzee-die-shade:#204b96; --yahtzee-die-edge:#17315f; --yahtzee-die-pip:#f1f7ff; }
.yahtzee-skin-preview.is-jade-dice { --yahtzee-die-face:#319d77; --yahtzee-die-shade:#1a6a4d; --yahtzee-die-edge:#124533; --yahtzee-die-pip:#effff2; }
.yahtzee-skin-preview.is-amethyst-dice { --yahtzee-die-face:#9967d1; --yahtzee-die-shade:#693f9e; --yahtzee-die-edge:#43265f; --yahtzee-die-pip:#fff1ff; }
.yahtzee-skin-preview.is-glacier-dice { --yahtzee-die-face:#c5eff7; --yahtzee-die-shade:#7cbaca; --yahtzee-die-edge:#316a7c; --yahtzee-die-pip:#204958; }
.yahtzee-skin-preview.is-sunrise-dice { --yahtzee-die-face:#ffc766; --yahtzee-die-shade:#d88b30; --yahtzee-die-edge:#86501e; --yahtzee-die-pip:#75421d; }
.yahtzee-dice[data-dice-skin="honeycomb_dice"], .yahtzee-skin-preview.is-honeycomb-dice { --yahtzee-die-face:#ffc860; --yahtzee-die-shade:#eb9225; --yahtzee-die-edge:#884219; --yahtzee-die-pip:#542811; }
.yahtzee-dice[data-dice-skin="cloud_dice"], .yahtzee-skin-preview.is-cloud-dice { --yahtzee-die-face:#eaf7ff; --yahtzee-die-shade:#b8d3f4; --yahtzee-die-edge:#7095c4; --yahtzee-die-pip:#265480; }
.yahtzee-dice[data-dice-skin="gear_dice"], .yahtzee-skin-preview.is-gear-dice { --yahtzee-die-face:#537284; --yahtzee-die-shade:#91adbd; --yahtzee-die-edge:#172936; --yahtzee-die-pip:#c9fff4; }
.yahtzee-dice[data-dice-skin="kintsugi_dice"], .yahtzee-skin-preview.is-kintsugi-dice { --yahtzee-die-face:#fff4d7; --yahtzee-die-shade:#e4bf71; --yahtzee-die-edge:#724e26; --yahtzee-die-pip:#3b302b; }
.yahtzee-dice[data-dice-skin="pixel_arcade_dice"], .yahtzee-skin-preview.is-pixel-arcade-dice { --yahtzee-die-face:#37265e; --yahtzee-die-shade:#6d429f; --yahtzee-die-edge:#211838; --yahtzee-die-pip:#a5fff3; }
.yahtzee-dice[data-dice-skin="oak_barrel_dice"], .yahtzee-skin-preview.is-oak-barrel-dice { --yahtzee-die-face:#9b5d36; --yahtzee-die-shade:#744125; --yahtzee-die-edge:#442a20; --yahtzee-die-pip:#fff0bb; }
.yahtzee-dice[data-dice-skin="pearl_shell_dice"], .yahtzee-skin-preview.is-pearl-shell-dice { --yahtzee-die-face:#ffe6ec; --yahtzee-die-shade:#d79ab2; --yahtzee-die-edge:#863957; --yahtzee-die-pip:#6f2349; }
.yahtzee-dice[data-dice-skin="star_orbit_dice"], .yahtzee-skin-preview.is-star-orbit-dice { --yahtzee-die-face:#173254; --yahtzee-die-shade:#304c82; --yahtzee-die-edge:#141c36; --yahtzee-die-pip:#fff0a6; }
.yahtzee-die-art.yahtzee-die-art-finished {
  filter: drop-shadow(0 2px 1px #12151b66) drop-shadow(0 4px 4px #12151b38);
}
.yahtzee-die-art-finished g {
  filter: drop-shadow(0 1px 1px #1115);
}
.yahtzee-die.is-rolling::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: #315fa5; font-size: 2rem; font-weight: 900; }
@keyframes yahtzee-shake { from { transform: rotate(-8deg) scale(.92); } to { transform: rotate(8deg) scale(1.06); } }
@keyframes yahtzee-die-roll { 0% { transform: rotate(0deg) scale(.86); } 25% { transform: rotate(95deg) scale(1.08); } 50% { transform: rotate(185deg) scale(.9); } 75% { transform: rotate(275deg) scale(1.08); } 100% { transform: rotate(360deg) scale(.86); } }
.yahtzee-roll-button { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 12px; background: #315fa5; color: #fff; font-weight: 800; cursor: pointer; }
.yahtzee-roll-button:disabled { opacity: .55; cursor: not-allowed; }
.yahtzee-reset-warning { margin: 8px 0 0; color: #c23b2d; font-size: .8rem; font-weight: 800; text-align: center; }
.yahtzee-complete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#yahtzeePurchaseModal { z-index: 40; }
#yahtzeeScreen.yahtzee-purchase-open .yahtzee-card { border-color: transparent; box-shadow: none; }
.yahtzee-complete-share button { width: 100%; min-height: 48px; margin-top: 0; border: 0; border-radius: 12px; background: #315fa5; color: #fff; font-weight: 800; cursor: pointer; }
.yahtzee-complete-share #yahtzeeAddChanceButton { border: 1px solid #315fa5; background: #fff; color: #315fa5; }
.yahtzee-complete-share button:disabled { opacity: .5; cursor: not-allowed; }
.yahtzee-complete-share p { margin: 8px 0 0; color: #315fa5; font-size: .82rem; font-weight: 700; text-align: center; }
#yahtzeePurchaseModal .notice-content { justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
#yahtzeePurchaseModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#yahtzeePurchaseModal .modal-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; text-align: left; }
#yahtzeePurchaseModal .modal-header .close-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#yahtzeePurchaseModal .notice-content > p { margin: 0; text-align: left; line-height: 1.6; }
.yahtzee-purchase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yahtzee-purchase-actions button { min-height: 46px; }
.yahtzee-purchase-error { color: #c23b2d !important; font-weight: 700; }
.yahtzee-score-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.yahtzee-score-heading h3, .yahtzee-score-columns h4 { margin: 0; color: #243b61; }
.yahtzee-score-heading span { color: #71809a; font-size: .78rem; }
.yahtzee-score-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.yahtzee-score-columns h4 { margin-bottom: 7px; font-size: .86rem; }
.yahtzee-score-list { display: grid; gap: 6px; }
.yahtzee-score-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 9px; background: #f5f8fd; color: #526983; font-size: .8rem; text-align: left; cursor: pointer; }
.yahtzee-score-row strong { color: #243b61; }
.yahtzee-score-row.is-yahtzee-joker strong::after { content: "조커"; display: inline-block; margin-left: 6px; padding: 2px 5px; border-radius: 999px; background: #fff0c2; color: #8a5a00; font-size: .66rem; vertical-align: 1px; }
.yahtzee-score-die { display: block; width: 34px; height: 34px; object-fit: contain; }
.yahtzee-score-row span { min-width: 48px; padding: 4px 7px; border: 1px solid #bfd2f3; border-radius: 7px; background: #fff; color: #315fa5; font-weight: 800; text-align: center; }
.yahtzee-score-row:hover:not(:disabled), .yahtzee-score-row:focus-visible { background: #eaf2ff; outline: 2px solid #8db5fa; outline-offset: 1px; }
.yahtzee-score-row:disabled { background: #dfe7f3; color: #71809a; cursor: default; }
@media (max-width: 520px) {
  .yahtzee-scroll-area { padding-right: 2px; padding-left: 2px; }
  .yahtzee-score-card, .yahtzee-ranking-card { margin-right: 0; margin-left: 0; }
}
.yahtzee-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 9px 8px; border-top: 1px solid #dfe7f3; color: #526983; font-size: .78rem; }
.yahtzee-summary-row strong { color: #243b61; }
.yahtzee-summary-row span { font-weight: 800; white-space: nowrap; }
.yahtzee-summary-row.is-total { margin-top: 12px; border-top: 2px solid #315fa5; color: #315fa5; }
.yahtzee-daily-best-card { margin-top: 14px; padding: 16px; border: 1px solid #dfe7f3; border-radius: 18px; background: #fff; }
.yahtzee-daily-best-card > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px; background: #f1f5fb; color: #243b61; }
.yahtzee-daily-best-card > div:last-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yahtzee-daily-best-card > div:last-child span { color: #315fa5; font-weight: 800; white-space: nowrap; }
.yahtzee-ranking-table { display: grid; overflow: hidden; border: 1px solid #dfe7f3; border-radius: 10px; }
.yahtzee-ranking-table-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 92px 72px; align-items: center; min-height: 38px; border-top: 1px solid #dfe7f3; color: #526983; font-size: .8rem; }
.yahtzee-ranking-table-row:first-child { border-top: 0; }
.yahtzee-ranking-table-row > * { min-width: 0; padding: 7px 8px; }
.yahtzee-ranking-table-head { background: #f1f5fb; color: #526983; font-size: .74rem; font-weight: 800; }
.yahtzee-ranking-table-row > :last-child { text-align: right; white-space: nowrap; }
html[data-theme="dark"] .yahtzee-card, html[data-theme="dark"] .yahtzee-score-card, html[data-theme="dark"] .yahtzee-ranking-card { border-color: #3b4c66; background: #1a2230; }
html[data-theme="dark"] .yahtzee-daily-best-card { border-color: #3b4c66; background: #1a2230; }
html[data-theme="dark"] .yahtzee-daily-best-card > div:last-child { background: #202d42; color: #e8f0fb; }
html[data-theme="dark"] .yahtzee-daily-best-card > div:last-child span { color: #b7d1fa; }
html[data-theme="dark"] .yahtzee-card { background: rgba(26,34,48,.97); }
html[data-theme="dark"] .yahtzee-die { border-color: #4c6383; background: #202d42; color: #f3f6ff; }
html[data-theme="dark"] .yahtzee-die.is-held { border-color: #8db5fa; background: #29466f; }
html[data-theme="dark"] .yahtzee-score-heading h3, html[data-theme="dark"] .yahtzee-score-columns h4, html[data-theme="dark"] .yahtzee-score-row strong { color: #e8f0fb; }
html[data-theme="dark"] .yahtzee-score-row { background: #202d42; color: #b4c2d5; }
html[data-theme="dark"] .yahtzee-score-row.is-yahtzee-joker strong::after { background: #59451d; color: #ffdc7b; }
html[data-theme="dark"] .yahtzee-die.is-rolling::after { color: #b7d1fa; }
html[data-theme="dark"] .yahtzee-score-row span { border-color: #4c6383; background: #2b3b54; color: #cfe0ff; }
html[data-theme="dark"] .yahtzee-score-row:hover:not(:disabled), html[data-theme="dark"] .yahtzee-score-row:focus-visible { background: #29466f; }
html[data-theme="dark"] .yahtzee-summary-row { border-color: #3b4c66; color: #b4c2d5; }
html[data-theme="dark"] .yahtzee-summary-row strong { color: #e8f0fb; }
html[data-theme="dark"] .yahtzee-ranking-table { border-color: #3b4c66; }
html[data-theme="dark"] .yahtzee-ranking-table-row { border-color: #3b4c66; color: #b4c2d5; }
html[data-theme="dark"] .yahtzee-ranking-table-head { background: #26364e; color: #d8e4f4; }
.yahtzee-ranking-nickname { min-width: 0; padding: 7px 8px; border: 0; background: transparent; color: #315fa5; font: inherit; font-weight: 800; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yahtzee-ranking-nickname:hover, .yahtzee-ranking-nickname:focus-visible { color: #173f82; outline: 2px solid #8db5fa; outline-offset: -2px; border-radius: 6px; }
#yahtzeeRankingDetailModal { z-index: 130; }
.yahtzee-detail-player { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #243b61; }
.yahtzee-detail-player span { color: #315fa5; font-weight: 800; }
.yahtzee-detail-score-list { display: grid; gap: 6px; }
.yahtzee-detail-score-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 7px 10px; border-radius: 9px; background: #f1f5fb; color: #526983; }
.yahtzee-detail-score-list strong { color: #315fa5; white-space: nowrap; }
.yahtzee-detail-score-row { align-items: center; }
.yahtzee-detail-score-label { display: flex; min-width: 104px; flex-direction: column; align-items: flex-start; gap: 3px; }
.yahtzee-detail-score-label small { color: #7386a0; font-size: .72rem; white-space: nowrap; }
.yahtzee-detail-dice { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: flex-end; gap: 3px; }
.yahtzee-detail-die { width: 27px; height: 27px; object-fit: contain; }
.yahtzee-detail-empty { color: #8c9bb0; font-size: .72rem; white-space: nowrap; }
html[data-theme="dark"] .yahtzee-ranking-nickname { color: #b7d1fa; }
html[data-theme="dark"] .yahtzee-ranking-nickname:hover, html[data-theme="dark"] .yahtzee-ranking-nickname:focus-visible { color: #fff; }
html[data-theme="dark"] .yahtzee-detail-player { color: #e8f0fb; }
html[data-theme="dark"] .yahtzee-detail-player span, html[data-theme="dark"] .yahtzee-detail-score-list strong { color: #b7d1fa; }
html[data-theme="dark"] .yahtzee-detail-score-list > div { background: #202d42; color: #b4c2d5; }
html[data-theme="dark"] .yahtzee-detail-score-label small, html[data-theme="dark"] .yahtzee-detail-empty { color: #91a5c0; }
.yahtzee-card { padding-bottom: 8px; }
.yahtzee-card .history-status { margin: 4px 0 0; }
.yahtzee-ranking-card { margin-top: 14px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.yahtzee-ranking-card .yahtzee-score-heading { padding: 0 16px; }
.yahtzee-ranking-card .yahtzee-ranking-table { width: 100%; }
html[data-theme="dark"] .yahtzee-ranking-card { border: 0; background: transparent; box-shadow: none; }
@media (max-width: 520px) { .yahtzee-score-columns { grid-template-columns: 1fr; } .yahtzee-die { min-height: 58px; font-size: 1.6rem; } .yahtzee-scroll-area { padding-right: 16px; padding-left: 16px; } .yahtzee-card { margin-right: -16px; margin-left: -16px; padding-right: 0; padding-left: 0; border-radius: 0; } .yahtzee-dice, .yahtzee-roll-button { width: calc(100% - 32px); margin-right: 16px; margin-left: 16px; } .yahtzee-card .history-status { padding-right: 16px; padding-left: 16px; } }
@media (max-width: 520px) { .yahtzee-scroll-area { padding-right: 2px; padding-left: 2px; } .yahtzee-ranking-card .yahtzee-score-heading { padding-right: 12px; padding-left: 12px; } }
@media (max-width: 480px) { #yahtzeeScreen .yahtzee-card { width: calc(100% + 24px); margin-right: -12px; margin-left: -12px; } }
@media (max-width: 480px) {
  body[data-current-screen="yahtzee"] .page-shell { padding-right: 12px; padding-left: 12px; }
  #yahtzeeScreen .yahtzee-card { width: 100%; margin-right: 0; margin-left: 0; }
  #yahtzeeScreen .yahtzee-scroll-area { padding-right: 0; padding-left: 0; }
}
.ricochet-game-heading { display: flex; justify-content: space-between; align-items: center; color: #315a9f; font-weight: 800; }
.ricochet-board { position: relative; display: grid; grid-template-columns: repeat(16, 1fr); aspect-ratio: 1; overflow: hidden; border: 4px solid #36558a; border-radius: 8px; background: #d9e6f4; }
.ricochet-board.is-syncing { pointer-events: none; }
.ricochet-board.is-syncing .ricochet-cell { visibility: hidden; }
.ricochet-board.is-syncing::before { content: attr(data-sync-message); position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem; background: #17263d; }
.ricochet-board.is-syncing::after { content: "↻"; position: absolute; top: 50%; left: 50%; z-index: 21; margin-top: -1.8rem; margin-left: -.65rem; color: #fff; font-size: 1.4rem; animation: ricochet-sync-spin .8s linear infinite; }
@keyframes ricochet-sync-spin { to { transform: rotate(360deg); } }
.ricochet-bid-error { min-height: 1.2em; margin: 6px 0 0; color: #c43838; font-size: .82rem; font-weight: 700; }
.ricochet-move-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.ricochet-move-modal:not(.hidden) { pointer-events: none; }
.ricochet-move-modal-card { position: relative; width: min(100% - 24px, 420px); margin: 0 12px 16px; padding: 18px 16px 16px; border: 1px solid #c9d8ee; border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 12px 36px rgba(20,40,70,.24); pointer-events: auto; }
.ricochet-move-modal-card::before { content: "로봇을 선택한 뒤 방향을 누르면 벽이나 가장자리까지 미끄러집니다."; display: block; width: calc(100% - 58px); margin: 0 58px 14px 0; color: #70819a; font-size: .78rem; line-height: 1.45; }
.ricochet-move-modal-card .ricochet-controls { margin: 0 auto; }
.ricochet-modal-reset { position: absolute; top: 10px; right: 10px; z-index: 1; border: 0; border-radius: 10px; padding: 7px 10px; background: #e8eef8; color: #315d9f; font-weight: 700; cursor: pointer; }
html[data-theme="dark"] .ricochet-move-modal-card { border-color: #3b4c66; background: #1a2230; }
html[data-theme="dark"] .ricochet-modal-reset { background: #2b3b54; color: #d7e6ff; } html[data-theme="dark"] .ricochet-move-modal-card::before { color: #b4c2d5; }
.ricochet-cell { position: relative; min-width: 0; min-height: 0; padding: 0; border: 1px solid rgba(54,85,138,.24); border-radius: 0; background: #f5f9ff; }
.ricochet-cell.is-wall { background: #1a2b48; box-shadow: inset 0 0 0 2px #0d1a30, inset 0 0 0 4px #48658f; }
.ricochet-cell.is-wall::before { content: ""; position: absolute; inset: 20%; border: 1px solid rgba(224,237,255,.55); border-radius: 3px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.1) 0 2px, transparent 2px 5px); }
.ricochet-cell.has-wall-top, .ricochet-cell.has-wall-bottom, .ricochet-cell.has-wall-left, .ricochet-cell.has-wall-right { border: 1px solid rgba(54,85,138,.24); }
.ricochet-cell.has-wall-top { box-shadow: inset 0 7px 0 #182b4a, inset 0 9px 0 rgba(255,255,255,.28); }
.ricochet-cell.has-wall-bottom { box-shadow: inset 0 -7px 0 #182b4a, inset 0 -9px 0 rgba(255,255,255,.28); }
.ricochet-cell.has-wall-left { box-shadow: inset 7px 0 0 #182b4a, inset 9px 0 0 rgba(255,255,255,.28); }
.ricochet-cell.has-wall-right { box-shadow: inset -7px 0 0 #182b4a, inset -9px 0 0 rgba(255,255,255,.28); }
.ricochet-cell.has-wall-top.has-wall-left { box-shadow: inset 0 7px 0 #182b4a, inset 0 9px 0 rgba(255,255,255,.28), inset 7px 0 0 #182b4a, inset 9px 0 0 rgba(255,255,255,.28); }
.ricochet-cell.has-wall-top.has-wall-right { box-shadow: inset 0 7px 0 #182b4a, inset 0 9px 0 rgba(255,255,255,.28), inset -7px 0 0 #182b4a, inset -9px 0 0 rgba(255,255,255,.28); }
.ricochet-cell.has-wall-bottom.has-wall-left { box-shadow: inset 0 -7px 0 #182b4a, inset 0 -9px 0 rgba(255,255,255,.28), inset 7px 0 0 #182b4a, inset 9px 0 0 rgba(255,255,255,.28); }
.ricochet-cell.has-wall-bottom.has-wall-right { box-shadow: inset 0 -7px 0 #182b4a, inset 0 -9px 0 rgba(255,255,255,.28), inset -7px 0 0 #182b4a, inset -9px 0 0 rgba(255,255,255,.28); }
.ricochet-cell.is-target { --ricochet-target-color: #e24b4b; position: relative; z-index: 2; background: #fff7f7; box-shadow: inset 0 0 0 5px var(--ricochet-target-color), inset 0 0 0 8px #fff, 0 0 0 2px rgba(25,45,76,.9); outline: 2px solid #fff; outline-offset: -10px; }
.ricochet-cell.is-target::before { content: ""; position: absolute; inset: 20%; z-index: 3; border: 3px dashed var(--ricochet-target-color); border-radius: 7px; background: color-mix(in srgb, var(--ricochet-target-color) 12%, transparent); box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.ricochet-cell.is-target.target-blue { --ricochet-target-color: #2f73c9; background: #f3f8ff; }
.ricochet-cell.is-target.target-green { --ricochet-target-color: #29945f; background: #f2fbf6; }
.ricochet-cell.is-target.target-yellow { --ricochet-target-color: #d69b18; background: #fffbed; }
.ricochet-cell.is-target.has-wall-top { box-shadow: inset 0 7px 0 #182b4a, inset 0 9px 0 rgba(255,255,255,.28), inset 0 0 0 5px var(--ricochet-target-color), inset 0 0 0 8px #fff, 0 0 0 2px rgba(25,45,76,.9); }
.ricochet-cell.is-target.has-wall-bottom { box-shadow: inset 0 -7px 0 #182b4a, inset 0 -9px 0 rgba(255,255,255,.28), inset 0 0 0 5px var(--ricochet-target-color), inset 0 0 0 8px #fff, 0 0 0 2px rgba(25,45,76,.9); }
.ricochet-cell.is-target.has-wall-left { box-shadow: inset 7px 0 0 #182b4a, inset 9px 0 0 rgba(255,255,255,.28), inset 0 0 0 5px var(--ricochet-target-color), inset 0 0 0 8px #fff, 0 0 0 2px rgba(25,45,76,.9); }
.ricochet-cell.is-target.has-wall-right { box-shadow: inset -7px 0 0 #182b4a, inset -9px 0 0 rgba(255,255,255,.28), inset 0 0 0 5px var(--ricochet-target-color), inset 0 0 0 8px #fff, 0 0 0 2px rgba(25,45,76,.9); }
.ricochet-cell::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; transform: scale(0); transition: transform .16s ease; }
.ricochet-cell.robot-red::after { background: #e34f4f; transform: scale(1); }.ricochet-cell.robot-blue::after { background: #3c75c5; transform: scale(1); }.ricochet-cell.robot-green::after { background: #38a26a; transform: scale(1); }.ricochet-cell.robot-yellow::after { background: #e3b13c; transform: scale(1); }
.ricochet-cell.ricochet-path { z-index: 1; }
.ricochet-cell.ricochet-path-red { box-shadow: inset 0 0 0 3px rgba(227,79,79,.8); }
.ricochet-cell.ricochet-path-blue { box-shadow: inset 0 0 0 3px rgba(60,117,197,.8); }
.ricochet-cell.ricochet-path-green { box-shadow: inset 0 0 0 3px rgba(56,162,106,.8); }
.ricochet-cell.ricochet-path-yellow { box-shadow: inset 0 0 0 3px rgba(227,177,60,.85); }
.ricochet-cell.is-selected { outline: 3px solid #172e58; outline-offset: -3px; z-index: 1; }
.ricochet-controls { display: grid; justify-items: center; gap: 6px; }.ricochet-controls > div { display: flex; gap: 6px; }.ricochet-controls button { width: 44px; min-height: 40px; padding: 0; border: 1px solid #c2d3eb; border-radius: 10px; background: #edf4ff; color: #315fa5; font-size: 1.2rem; font-weight: 800; }.ricochet-help { margin: 0; color: #70819a; font-size: .78rem; text-align: center; }
html[data-theme="dark"] .ricochet-game-card { border-color: #2f3e53; background: #1a2230; box-shadow: none; } html[data-theme="dark"] .ricochet-game-heading { color: #b7d1fa; } html[data-theme="dark"] .ricochet-cell { border-color: rgba(210,225,247,.2); background: #213148; } html[data-theme="dark"] .ricochet-cell.is-target { background: #4a2c36; } html[data-theme="dark"] .ricochet-cell.is-selected { outline-color: #e8f0ff; } html[data-theme="dark"] .ricochet-help { color: #b4c2d5; }
/* 리코셰 로봇 공용 경매 영역 */
.ricochet-bid-panel { display: grid; gap: 8px; padding-top: 4px; }
.ricochet-bid-status { margin: 0; color: #526983; font-size: .8rem; text-align: center; }
.ricochet-bid-panel form { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 8px; }
.ricochet-bid-panel form > div { min-width: 0; }
.ricochet-bid-panel label { display: grid; gap: 4px; color: #315a9f; font-size: .75rem; }
.ricochet-bid-label { display: block; margin-bottom: 5px; color: #315a9f; font-size: .75rem; font-weight: 800; }
.ricochet-bid-stepper { display: grid; grid-template-columns: 42px minmax(70px, 1fr) 42px; gap: 5px; }
.ricochet-bid-stepper button { height: 54px; min-height: 54px; box-sizing: border-box; padding: 0; border: 1px solid #c2d3eb; border-radius: 9px; background: #edf4ff; color: #315fa5; font-size: 1.45rem; line-height: 1; }
.ricochet-bid-stepper input { min-width: 0; height: 54px; min-height: 54px; box-sizing: border-box; padding: 6px; text-align: center; }
.ricochet-bid-panel input { width: 100%; height: 54px; min-height: 54px; box-sizing: border-box; padding: 8px; }
.ricochet-bid-panel form button { height: 54px; min-height: 54px; box-sizing: border-box; padding: 0 16px; }
.ricochet-bid-panel form > button { width: 100%; height: 54px !important; min-height: 54px !important; align-self: stretch; margin-top: 0; line-height: 1; }
.ricochet-game-card > .ricochet-help { display: none; }
.ricochet-bid-list { display: flex; min-height: 44px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.ricochet-bid-list span { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 14px; border: 1px solid #c2d5ef; border-radius: 999px; background: #edf4ff; color: #315a9f; font-size: .9rem; font-weight: 800; line-height: 1.2; }
.ricochet-history-panel { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid #dfe7f3; border-radius: 14px; background: #fff; }.ricochet-history-panel h3 { margin: 0; color: #17365f; font-size: .85rem; }.ricochet-history-panel > div { display: flex; flex-wrap: wrap; gap: 6px; }.ricochet-history-panel span { padding: 4px 8px; border-radius: 999px; background: #f1f5fb; color: #526983; font-size: .72rem; font-weight: 700; }
html[data-theme="dark"] .ricochet-history-panel { border-color: #2f3e53; background: #1a2230; } html[data-theme="dark"] .ricochet-history-panel h3 { color: #edf3fc; } html[data-theme="dark"] .ricochet-history-panel span { background: #202d40; color: #c3d7f1; }
.ricochet-bid-status.is-win, #ricochetRobotsStatus.is-win { color: #218654; font-weight: 800; }
.ricochet-bid-status.is-fail, #ricochetRobotsStatus.is-fail { color: #d14c55; font-weight: 800; }
#ricochetMoveTimer.is-move-phase { color: #e5484d; font-size: 1.18rem; font-weight: 900; animation: ricochet-move-alert 1s ease-in-out infinite; }
@keyframes ricochet-move-alert { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.06); } }
#ricochetRestart { display: block; width: min(100%, 260px); margin: 10px auto 0; }
html[data-theme="dark"] .ricochet-bid-status { color: #b4c2d5; } html[data-theme="dark"] .ricochet-bid-list span { background: #203452; color: #c3d9fb; }
@media (max-width: 380px) { .ricochet-bid-panel form { grid-template-columns: minmax(0, 1fr); } .ricochet-bid-panel form button { width: 100%; padding: 0 10px; font-size: .82rem; } }
html[data-theme="dark"] .ricochet-bid-label { color: #c3d9fb; } html[data-theme="dark"] .ricochet-bid-stepper button { border-color: #3d5575; background: #202d40; color: #c3d9fb; } html[data-theme="dark"] .ricochet-bid-stepper input { border-color: #3d5575; background: #1b2738; color: #edf3fc; }
html[data-theme="dark"] .ricochet-cell.has-wall-top, html[data-theme="dark"] .ricochet-cell.has-wall-bottom, html[data-theme="dark"] .ricochet-cell.has-wall-left, html[data-theme="dark"] .ricochet-cell.has-wall-right { border-color: rgba(210,225,247,.2); }
html[data-theme="dark"] .ricochet-cell.has-wall-top, html[data-theme="dark"] .ricochet-cell.has-wall-bottom, html[data-theme="dark"] .ricochet-cell.has-wall-left, html[data-theme="dark"] .ricochet-cell.has-wall-right, html[data-theme="dark"] .ricochet-cell.has-wall-top.has-wall-left, html[data-theme="dark"] .ricochet-cell.has-wall-top.has-wall-right, html[data-theme="dark"] .ricochet-cell.has-wall-bottom.has-wall-left, html[data-theme="dark"] .ricochet-cell.has-wall-bottom.has-wall-right { --ricochet-wall-color: #8fb5e8; }
html[data-theme="dark"] .ricochet-cell.has-wall-top { box-shadow: inset 0 5px 0 #8fb5e8; } html[data-theme="dark"] .ricochet-cell.has-wall-bottom { box-shadow: inset 0 -5px 0 #8fb5e8; } html[data-theme="dark"] .ricochet-cell.has-wall-left { box-shadow: inset 5px 0 0 #8fb5e8; } html[data-theme="dark"] .ricochet-cell.has-wall-right { box-shadow: inset -5px 0 0 #8fb5e8; } html[data-theme="dark"] .ricochet-cell.has-wall-top.has-wall-left { box-shadow: inset 0 5px 0 #8fb5e8, inset 5px 0 0 #8fb5e8; } html[data-theme="dark"] .ricochet-cell.has-wall-top.has-wall-right { box-shadow: inset 0 5px 0 #8fb5e8, inset -5px 0 0 #8fb5e8; } html[data-theme="dark"] .ricochet-cell.has-wall-bottom.has-wall-left { box-shadow: inset 0 -5px 0 #8fb5e8, inset 5px 0 0 #8fb5e8; } html[data-theme="dark"] .ricochet-cell.has-wall-bottom.has-wall-right { box-shadow: inset 0 -5px 0 #8fb5e8, inset -5px 0 0 #8fb5e8; }
.ricochet-move-controls { display: grid; gap: 8px; }
.ricochet-board-toolbar { display:flex; justify-content:flex-end; min-width:0; }
.ricochet-board-toolbar:has(#ricochetReset.hidden) { display:none; }
.ricochet-board-toolbar #ricochetReset { width:auto; min-height:40px; padding:8px 16px; white-space:nowrap; }

/* 리코셰 로봇 공용 협동방 */
.ricochet-coop-panel { display: grid; gap: 8px; padding: 12px; border: 1px solid #d9e5f5; border-radius: 12px; background: #f7faff; }
.ricochet-coop-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #17365f; font-size: .85rem; }
.ricochet-coop-heading > span { color: #315fa5; font-weight: 800; }
.ricochet-coop-players, .ricochet-coop-moves { display: flex; flex-wrap: wrap; gap: 6px; }
.ricochet-coop-players span { padding: 5px 9px; border-radius: 999px; background: #e7f0ff; color: #315fa5; font-size: .76rem; font-weight: 800; }
.ricochet-coop-players span.is-me { background: #315fa5; color: #fff; }
.ricochet-completion-star { font-size: 1.15em; line-height: 1; -webkit-text-stroke: 0.6px #f4f7fb; paint-order: stroke fill; }
.ricochet-completion-star.is-blue { color: #1666d6; }
.ricochet-completion-star.is-red { color: #d32134; }
.ricochet-completion-star.is-black { color: #101114; }
.ricochet-coop-moves { min-height: 20px; color: #61738c; font-size: .72rem; }
.ricochet-coop-moves span + span::before { content: "·"; margin-right: 6px; color: #9aa9bd; }
.ricochet-coop-help { display: block !important; margin: 0; color: #526983; font-size: .78rem; text-align: center; }
#ricochetMoveControls { justify-items: center; }
#ricochetMoveControls .ricochet-controls { width: min(100%, 260px); }
#ricochetMoveControls.is-disabled { opacity: .48; pointer-events: none; }
html[data-theme="dark"] .ricochet-coop-panel { border-color: #344862; background: #182639; }
html[data-theme="dark"] .ricochet-coop-heading { color: #edf3fc; }
html[data-theme="dark"] .ricochet-coop-players span { background: #243c5d; color: #cfe0fb; }
html[data-theme="dark"] .ricochet-coop-players span.is-me { background: #4a78bd; color: #fff; }
html[data-theme="dark"] .ricochet-coop-moves, html[data-theme="dark"] .ricochet-coop-help { color: #b4c2d5; }

/* Room creation options: match the full-height form modal used by account screens. */
#roomCreateOptionsModal { z-index: 40; align-items: stretch; justify-items: center; }
#roomCreateOptionsModal .modal-content {
  display: flex;
  flex-direction: column;
  width: min(100%, 660px);
  height: 100dvh;
  max-height: none;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 0 16px calc(88px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #14213d;
  box-shadow: none;
  text-align: left;
}
#roomCreateOptionsModal .modal-header {
  flex: 0 0 auto;
  min-height: 80px;
  box-sizing: border-box;
  margin: 0 -16px;
  padding: max(16px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid #d8e1ed;
}
#roomCreateOptionsModal .modal-header h2 { font-size: 1.35rem; font-weight: 800; }
#roomCreateOptionsModal .modal-header .close-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0;
  background: #eaf1fa;
  color: #315a9f;
  font-size: 1.65rem;
  line-height: 1;
}
#roomCreateOptionsModal .room-option-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  box-sizing: border-box;
  padding: 14px 0;
  border-bottom: 1px solid #d8e1ed;
  color: #243654;
  font-weight: 800;
}
#roomCreateOptionsModal .room-option-check input { width: 20px; height: 20px; margin: 0; accent-color: #3b67ad; }
#roomCreateOptionsModal #roomCreatePasswordWrap { padding: 14px 0; border-bottom: 1px solid #d8e1ed; }
#roomCreateOptionsModal #roomCreatePasswordWrap label {
  display: grid;
  gap: 8px;
  color: #243654;
  font-weight: 800;
}
#roomCreateOptionsModal input:not([type="checkbox"]) {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid #c6d4e6;
  border-radius: 9px;
  background: #f7f9fc;
  color: #14213d;
  font-size: 1rem;
}
#roomCreateOptionsModal .message { min-height: 24px; margin: 12px 0; color: #c63e3e; text-align: left; }
#roomCreateOptionsModal .modal-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: min(100%, 660px);
  box-sizing: border-box;
  transform: translateX(-50%);
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #d8e1ed;
  background: #fff;
}
#roomCreateOptionsModal .modal-actions button { min-height: 48px; border-radius: 9px; font-weight: 800; }
#roomCreateOptionsModal .modal-actions .secondary-button { order: 1; background: #e8eef7; color: #315a9f; }
#roomCreateOptionsModal .modal-actions #confirmRoomCreate { order: 2; background: #3968b0; color: #fff; }
html[data-theme="dark"] #roomCreateOptionsModal .modal-content,
html[data-theme="dark"] #roomCreateOptionsModal .modal-actions { background: #1a2230; color: #edf2fa; }
html[data-theme="dark"] #roomCreateOptionsModal .modal-header,
html[data-theme="dark"] #roomCreateOptionsModal .room-option-check,
html[data-theme="dark"] #roomCreateOptionsModal #roomCreatePasswordWrap,
html[data-theme="dark"] #roomCreateOptionsModal .modal-actions { border-color: #34445c; }
html[data-theme="dark"] #roomCreateOptionsModal .room-option-check,
html[data-theme="dark"] #roomCreateOptionsModal #roomCreatePasswordWrap label { color: #edf2fa; }
html[data-theme="dark"] #roomCreateOptionsModal .modal-header .close-button { background: #263b59; color: #eaf2ff; }
html[data-theme="dark"] #roomCreateOptionsModal input:not([type="checkbox"]) { border-color: #405572; background: #121c2b; color: #f1f5fb; }
html[data-theme="dark"] #roomCreateOptionsModal .modal-actions .secondary-button { background: #263b59; color: #dce8ff; }

/* Room creation opens as a compact bottom sheet, like the other in-app dialogs. */
#roomCreateOptionsModal { align-items: flex-end; }
#roomCreateOptionsModal .modal-content {
  width: min(100%, 660px);
  height: auto;
  max-height: min(88vh, calc(100dvh - env(safe-area-inset-top) - 12px));
  padding: 0 16px 16px;
  border: 1px solid #d8e1ed;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, .2);
}
#roomCreateOptionsModal .modal-header {
  min-height: 68px;
  margin: 0 -16px 12px;
  padding: 12px 16px;
}
#roomCreateOptionsModal .modal-actions {
  position: static;
  width: auto;
  transform: none;
  margin: 12px -16px -16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #d8e1ed;
}
html[data-theme="dark"] #roomCreateOptionsModal .modal-content { border-color: #2d3b50; box-shadow: 0 -12px 40px rgba(0,0,0,.45); }
#ricochetBoard .ricochet-cell.is-target { --target-color: #e34f4f; z-index: 2; background: var(--target-color); outline: 3px solid #ff8b8b; outline-offset: -3px; box-shadow: inset 0 0 0 5px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.target-blue { --target-color: #3c75c5; background: var(--target-color); outline-color: #8db8ff; box-shadow: inset 0 0 0 5px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.target-green { --target-color: #38a26a; background: var(--target-color); outline-color: #8ce3ae; box-shadow: inset 0 0 0 5px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.target-yellow { --target-color: #e3b13c; background: var(--target-color); outline-color: #ffe28a; box-shadow: inset 0 0 0 5px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-top { box-shadow: inset 0 5px 0 #8fb5e8, inset 0 0 0 5px #e34f4f; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom { box-shadow: inset 0 -5px 0 #8fb5e8, inset 0 0 0 5px #e34f4f; }
#ricochetBoard .ricochet-cell.is-target.has-wall-left { box-shadow: inset 5px 0 0 #8fb5e8, inset 0 0 0 5px #e34f4f; }
#ricochetBoard .ricochet-cell.is-target.has-wall-right { box-shadow: inset -5px 0 0 #8fb5e8, inset 0 0 0 5px #e34f4f; }
#ricochetBoard .ricochet-cell.is-target.target-blue.has-wall-top { box-shadow: inset 0 5px 0 #8fb5e8, inset 0 0 0 5px #3c75c5; }
#ricochetBoard .ricochet-cell.is-target.target-blue.has-wall-bottom { box-shadow: inset 0 -5px 0 #8fb5e8, inset 0 0 0 5px #3c75c5; }
#ricochetBoard .ricochet-cell.is-target.target-blue.has-wall-left { box-shadow: inset 5px 0 0 #8fb5e8, inset 0 0 0 5px #3c75c5; }
#ricochetBoard .ricochet-cell.is-target.target-blue.has-wall-right { box-shadow: inset -5px 0 0 #8fb5e8, inset 0 0 0 5px #3c75c5; }
#ricochetBoard .ricochet-cell.is-target.target-green.has-wall-top { box-shadow: inset 0 5px 0 #8fb5e8, inset 0 0 0 5px #38a26a; }
#ricochetBoard .ricochet-cell.is-target.target-green.has-wall-bottom { box-shadow: inset 0 -5px 0 #8fb5e8, inset 0 0 0 5px #38a26a; }
#ricochetBoard .ricochet-cell.is-target.target-green.has-wall-left { box-shadow: inset 5px 0 0 #8fb5e8, inset 0 0 0 5px #38a26a; }
#ricochetBoard .ricochet-cell.is-target.target-green.has-wall-right { box-shadow: inset -5px 0 0 #8fb5e8, inset 0 0 0 5px #38a26a; }
#ricochetBoard .ricochet-cell.is-target.target-yellow.has-wall-top { box-shadow: inset 0 5px 0 #8fb5e8, inset 0 0 0 5px #e3b13c; }
#ricochetBoard .ricochet-cell.is-target.target-yellow.has-wall-bottom { box-shadow: inset 0 -5px 0 #8fb5e8, inset 0 0 0 5px #e3b13c; }
#ricochetBoard .ricochet-cell.is-target.target-yellow.has-wall-left { box-shadow: inset 5px 0 0 #8fb5e8, inset 0 0 0 5px #e3b13c; }
#ricochetBoard .ricochet-cell.is-target.target-yellow.has-wall-right { box-shadow: inset -5px 0 0 #8fb5e8, inset 0 0 0 5px #e3b13c; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top,
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom,
#ricochetBoard .ricochet-cell.is-target.has-wall-left,
#ricochetBoard .ricochet-cell.is-target.has-wall-right { border-width: 1px; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-left { box-shadow: inset 0 5px 0 #8fb5e8, inset 5px 0 0 #8fb5e8, inset 0 0 0 5px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-right { box-shadow: inset 0 5px 0 #8fb5e8, inset -5px 0 0 #8fb5e8, inset 0 0 0 5px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-left { box-shadow: inset 0 -5px 0 #8fb5e8, inset 5px 0 0 #8fb5e8, inset 0 0 0 5px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-right { box-shadow: inset 0 -5px 0 #8fb5e8, inset -5px 0 0 #8fb5e8, inset 0 0 0 5px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-top { box-shadow: inset 0 8px 0 #8fb5e8, inset 0 0 0 3px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom { box-shadow: inset 0 -8px 0 #8fb5e8, inset 0 0 0 3px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-left { box-shadow: inset 8px 0 0 #8fb5e8, inset 0 0 0 3px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-right { box-shadow: inset -8px 0 0 #8fb5e8, inset 0 0 0 3px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-left { box-shadow: inset 0 8px 0 #8fb5e8, inset 8px 0 0 #8fb5e8, inset 0 0 0 3px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-right { box-shadow: inset 0 8px 0 #8fb5e8, inset -8px 0 0 #8fb5e8, inset 0 0 0 3px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-left { box-shadow: inset 0 -8px 0 #8fb5e8, inset 8px 0 0 #8fb5e8, inset 0 0 0 3px var(--target-color); }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-right { box-shadow: inset 0 -8px 0 #8fb5e8, inset -8px 0 0 #8fb5e8, inset 0 0 0 3px var(--target-color); }
#omokGameScreen .omok-lobby-panel,
#othelloGameScreen .omok-lobby-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
#ricochetBoard .ricochet-cell.has-wall-top { box-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom { box-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-left { box-shadow: inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-right { box-shadow: inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-left { box-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3), inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-right { box-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3), inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-left { box-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3), inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-right { box-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3), inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.is-target { --target-color: #e34f4f; background: #fff7f7 !important; outline: 3px solid #fff !important; outline-offset: -10px; box-shadow: inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#ricochetBoard .ricochet-cell.is-target.target-blue { --target-color: #2f73c9; background: #f3f8ff !important; }
#ricochetBoard .ricochet-cell.is-target.target-green { --target-color: #29945f; background: #f2fbf6 !important; }
#ricochetBoard .ricochet-cell.is-target.target-yellow { --target-color: #d69b18; background: #fffbed !important; }
#ricochetBoard .ricochet-cell.is-target::before { content: ""; position: absolute; inset: 20%; z-index: 3; display: block; border: 3px dashed var(--target-color); border-radius: 7px; background: transparent; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top { box-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3), inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom { box-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3), inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-left { box-shadow: inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3), inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-right { box-shadow: inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3), inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-left { box-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3), inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3), inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-right { box-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3), inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3), inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-left { box-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3), inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3), inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-right { box-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3), inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3), inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#omokLobbyList,
#othelloLobbyList { border: 0; outline: 0; background: transparent; box-shadow: none; }
html[data-theme="dark"] #omokGameScreen .omok-lobby-panel,
html[data-theme="dark"] #othelloGameScreen .omok-lobby-panel,
html[data-theme="dark"] #omokLobbyList,
html[data-theme="dark"] #othelloLobbyList {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.room-visibility-badges { display: inline-flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; }
.room-visibility-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 999px; font-size: .67rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.room-visibility-badge.is-private { background: #fff0d2; color: #9a6510; }
.room-visibility-badge.is-no-spectators { background: #ffe2e5; color: #b53546; }
.omok-lobby-card-actions .danger-button { border-color: #e7aab2; background: #fff0f2; color: #b53546; }
html[data-theme="dark"] .room-visibility-badge.is-private { background: #5a4524; color: #ffd889; }
html[data-theme="dark"] .room-visibility-badge.is-no-spectators { background: #5a2935; color: #ffb8c1; }
html[data-theme="dark"] .omok-lobby-card-actions .danger-button { border-color: #75404a; background: #482731; color: #ffb8c1; }

/* 최종 리코셰 보드 가시성 규칙: 뒤쪽의 기존 테마 규칙보다 우선합니다. */
#ricochetBoard .ricochet-cell.has-wall-top { box-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom { box-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-left { box-shadow: inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-right { box-shadow: inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-left { box-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3), inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-right { box-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3), inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-left { box-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3), inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-right { box-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3), inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3) !important; }
#ricochetBoard .ricochet-cell.is-target { --target-color: #e34f4f; --target-wall-shadow: none; background: #fff7f7 !important; outline: 3px solid #fff !important; outline-offset: -10px; box-shadow: var(--target-wall-shadow), inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #192d4c !important; }
#ricochetBoard .ricochet-cell.is-target.target-blue { --target-color: #2f73c9; background: #f3f8ff !important; }
#ricochetBoard .ricochet-cell.is-target.target-green { --target-color: #29945f; background: #f2fbf6 !important; }
#ricochetBoard .ricochet-cell.is-target.target-yellow { --target-color: #d69b18; background: #fffbed !important; }
#ricochetBoard .ricochet-cell.is-target::before { content: ""; position: absolute; inset: 20%; z-index: 3; display: block; border: 3px dashed var(--target-color); border-radius: 7px; background: transparent; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top { --target-wall-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3); }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom { --target-wall-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3); }
#ricochetBoard .ricochet-cell.is-target.has-wall-left { --target-wall-shadow: inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3); }
#ricochetBoard .ricochet-cell.is-target.has-wall-right { --target-wall-shadow: inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3); }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-left { --target-wall-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3), inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3); }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-right { --target-wall-shadow: inset 0 8px 0 #182b4a, inset 0 10px 0 rgba(255,255,255,.3), inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3); }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-left { --target-wall-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3), inset 8px 0 0 #182b4a, inset 10px 0 0 rgba(255,255,255,.3); }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-right { --target-wall-shadow: inset 0 -8px 0 #182b4a, inset 0 -10px 0 rgba(255,255,255,.3), inset -8px 0 0 #182b4a, inset -10px 0 0 rgba(255,255,255,.3); }

/* 예시 보드처럼 따뜻한 격자판·굵은 벽·원형 목표/로봇으로 구성합니다. */
#ricochetBoard { border: 4px solid #080808; border-radius: 0; background: #d8c8a7; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
#ricochetBoard .ricochet-cell { border: 1px solid rgba(104,89,62,.38); background: #dfd0ae; }
#ricochetBoard .ricochet-cell::before { content: ""; position: absolute; inset: 15%; z-index: 1; display: block; border: 2px solid rgba(255,250,232,.75); border-radius: 2px; background: #eee5cd; box-shadow: 0 0 0 1px rgba(164,145,105,.35); pointer-events: none; }
#ricochetBoard .ricochet-cell.has-wall-top { box-shadow: inset 0 8px 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom { box-shadow: inset 0 -8px 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-left { box-shadow: inset 8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-right { box-shadow: inset -8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-left { box-shadow: inset 0 8px 0 #050505, inset 8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-right { box-shadow: inset 0 8px 0 #050505, inset -8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-left { box-shadow: inset 0 -8px 0 #050505, inset 8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-right { box-shadow: inset 0 -8px 0 #050505, inset -8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.is-target { --target-color: #ef2020; background: #dfd0ae !important; outline: 0 !important; box-shadow: var(--target-wall-shadow), inset 0 0 0 1px rgba(104,89,62,.38) !important; }
#ricochetBoard .ricochet-cell.is-target.target-blue { --target-color: #3479c9; background: #dfd0ae !important; }
#ricochetBoard .ricochet-cell.is-target.target-green { --target-color: #15933a; background: #dfd0ae !important; }
#ricochetBoard .ricochet-cell.is-target.target-yellow { --target-color: #f0d400; background: #dfd0ae !important; }
#ricochetBoard .ricochet-cell.is-target::before { content: ""; position: absolute; inset: 18%; z-index: 3; display: block; border: 2px solid #080808; border-radius: 50%; background: var(--target-color); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #080808; pointer-events: none; }
#ricochetBoard .ricochet-cell.robot-red::after, #ricochetBoard .ricochet-cell.robot-blue::after, #ricochetBoard .ricochet-cell.robot-green::after, #ricochetBoard .ricochet-cell.robot-yellow::after { z-index: 4; border: 2px solid #080808; box-shadow: 0 0 0 2px #fff; }
#ricochetBoard .ricochet-cell.robot-red::after { background: #ef2020; }
#ricochetBoard .ricochet-cell.robot-blue::after { background: #3479c9; }
#ricochetBoard .ricochet-cell.robot-green::after { background: #15933a; }
#ricochetBoard .ricochet-cell.robot-yellow::after { background: #f0d400; }

/* 내벽은 ㄱ자 연결을 유지하되, 각 면은 평평한 직선 스트립으로 표시합니다. */
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-left { box-shadow: inset 0 8px 0 #050505, inset 8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-right { box-shadow: inset 0 8px 0 #050505, inset -8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-left { box-shadow: inset 0 -8px 0 #050505, inset 8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-right { box-shadow: inset 0 -8px 0 #050505, inset -8px 0 0 #050505 !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-left { box-shadow: inset 0 8px 0 #050505, inset 8px 0 0 #050505, inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #080808 !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-right { box-shadow: inset 0 8px 0 #050505, inset -8px 0 0 #050505, inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #080808 !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-left { box-shadow: inset 0 -8px 0 #050505, inset 8px 0 0 #050505, inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #080808 !important; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-right { box-shadow: inset 0 -8px 0 #050505, inset -8px 0 0 #050505, inset 0 0 0 5px var(--target-color), inset 0 0 0 8px #fff, 0 0 0 2px #080808 !important; }

/* 벽은 칸 안쪽이 아니라 칸 경계선 중앙에 걸쳐 보이게 합니다. */
#ricochetBoard .ricochet-cell.has-wall-top, #ricochetBoard .ricochet-cell.has-wall-bottom, #ricochetBoard .ricochet-cell.has-wall-left, #ricochetBoard .ricochet-cell.has-wall-right { box-shadow: none !important; }
#ricochetBoard .ricochet-cell::before { content: ""; position: absolute; inset: 15%; z-index: 1; display: block; border: 2px solid rgba(255,250,232,.75); border-radius: 2px; background: #eee5cd; box-shadow: 0 0 0 1px rgba(164,145,105,.35); pointer-events: none; }
#ricochetBoard .ricochet-cell.has-wall-top::before { inset: -4px -1px auto; height: 8px; border: 0; border-radius: 0; background: #050505; box-shadow: none; }
#ricochetBoard .ricochet-cell.has-wall-bottom::before { inset: auto -1px -4px; height: 8px; border: 0; border-radius: 0; background: #050505; box-shadow: none; }
#ricochetBoard .ricochet-cell.has-wall-left::before { inset: -1px auto -1px -4px; width: 8px; border: 0; border-radius: 0; background: #050505; box-shadow: none; }
#ricochetBoard .ricochet-cell.has-wall-right::before { inset: -1px -4px -1px auto; width: 8px; border: 0; border-radius: 0; background: #050505; box-shadow: none; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-left::before { inset: 0; width: auto; height: auto; background: linear-gradient(#050505 0 0) top/100% 8px no-repeat, linear-gradient(#050505 0 0) left/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-right::before { inset: 0; width: auto; height: auto; background: linear-gradient(#050505 0 0) top/100% 8px no-repeat, linear-gradient(#050505 0 0) right/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-left::before { inset: 0; width: auto; height: auto; background: linear-gradient(#050505 0 0) bottom/100% 8px no-repeat, linear-gradient(#050505 0 0) left/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-right::before { inset: 0; width: auto; height: auto; background: linear-gradient(#050505 0 0) bottom/100% 8px no-repeat, linear-gradient(#050505 0 0) right/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target::before { inset: 18%; z-index: 3; width: auto; height: auto; border: 2px solid #080808; border-radius: 50%; background: var(--target-color); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #080808; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top::before, #ricochetBoard .ricochet-cell.is-target.has-wall-bottom::before, #ricochetBoard .ricochet-cell.is-target.has-wall-left::before, #ricochetBoard .ricochet-cell.is-target.has-wall-right::before { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(#050505 0 0) top/100% 8px no-repeat, linear-gradient(#050505 0 0) bottom/100% 8px no-repeat, linear-gradient(#050505 0 0) left/8px 100% no-repeat, linear-gradient(#050505 0 0) right/8px 100% no-repeat; box-shadow: none; }
#ricochetBoard .ricochet-cell.is-target::after { content: ""; position: absolute; inset: 18%; z-index: 4; display: block; border: 2px solid #080808; border-radius: 50%; background: var(--target-color); box-shadow: 0 0 0 2px #fff; pointer-events: none; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top::before { background: linear-gradient(#050505 0 0) top/100% 8px no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom::before { background: linear-gradient(#050505 0 0) bottom/100% 8px no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-left::before { background: linear-gradient(#050505 0 0) left/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-right::before { background: linear-gradient(#050505 0 0) right/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-left::before { background: linear-gradient(#050505 0 0) top/100% 8px no-repeat, linear-gradient(#050505 0 0) left/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-right::before { background: linear-gradient(#050505 0 0) top/100% 8px no-repeat, linear-gradient(#050505 0 0) right/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-left::before { background: linear-gradient(#050505 0 0) bottom/100% 8px no-repeat, linear-gradient(#050505 0 0) left/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-right::before { background: linear-gradient(#050505 0 0) bottom/100% 8px no-repeat, linear-gradient(#050505 0 0) right/8px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target:not(.has-wall-top):not(.has-wall-bottom):not(.has-wall-left):not(.has-wall-right)::before { display: none; }

/* 벽은 오버레이가 아니라 칸의 맞닿는 면 자체에 그려 외벽과 빈틈없이 연결합니다. */
#ricochetBoard .ricochet-cell.has-wall-top::before, #ricochetBoard .ricochet-cell.has-wall-bottom::before, #ricochetBoard .ricochet-cell.has-wall-left::before, #ricochetBoard .ricochet-cell.has-wall-right::before { display: none !important; }
#ricochetBoard .ricochet-cell.has-wall-top { border-top: 4px solid #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom { border-bottom: 4px solid #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-left { border-left: 4px solid #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-right { border-right: 4px solid #050505 !important; }

/* 벽을 얇은 경계선으로 정리하고 모든 칸의 바닥 패턴을 채웁니다. */
#ricochetBoard .ricochet-cell { border: 1px solid rgba(104,89,62,.28) !important; background: linear-gradient(#eee5cd 0 0) center / 70% 70% no-repeat, #dfd0ae !important; }
#ricochetBoard .ricochet-cell.has-wall-top, #ricochetBoard .ricochet-cell.has-wall-bottom, #ricochetBoard .ricochet-cell.has-wall-left, #ricochetBoard .ricochet-cell.has-wall-right { border-color: transparent !important; }
#ricochetBoard .ricochet-cell.has-wall-top::before { inset: -2px -1px auto; height: 5px; border: 0; background: #050505; }
#ricochetBoard .ricochet-cell.has-wall-bottom::before { inset: auto -1px -2px; height: 5px; border: 0; background: #050505; }
#ricochetBoard .ricochet-cell.has-wall-left::before { inset: -1px auto -1px -2px; width: 5px; border: 0; background: #050505; }
#ricochetBoard .ricochet-cell.has-wall-right::before { inset: -1px -2px -1px auto; width: 5px; border: 0; background: #050505; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-left::before { inset: 0; width: auto; height: auto; background: linear-gradient(#050505 0 0) top/100% 5px no-repeat, linear-gradient(#050505 0 0) left/5px 100% no-repeat; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-right::before { inset: 0; width: auto; height: auto; background: linear-gradient(#050505 0 0) top/100% 5px no-repeat, linear-gradient(#050505 0 0) right/5px 100% no-repeat; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-left::before { inset: 0; width: auto; height: auto; background: linear-gradient(#050505 0 0) bottom/100% 5px no-repeat, linear-gradient(#050505 0 0) left/5px 100% no-repeat; }
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-right::before { inset: 0; width: auto; height: auto; background: linear-gradient(#050505 0 0) bottom/100% 5px no-repeat, linear-gradient(#050505 0 0) right/5px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top::before { background: linear-gradient(#050505 0 0) top/100% 5px no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom::before { background: linear-gradient(#050505 0 0) bottom/100% 5px no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-left::before { background: linear-gradient(#050505 0 0) left/5px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-right::before { background: linear-gradient(#050505 0 0) right/5px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-left::before { background: linear-gradient(#050505 0 0) top/100% 5px no-repeat, linear-gradient(#050505 0 0) left/5px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-right::before { background: linear-gradient(#050505 0 0) top/100% 5px no-repeat, linear-gradient(#050505 0 0) right/5px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-left::before { background: linear-gradient(#050505 0 0) bottom/100% 5px no-repeat, linear-gradient(#050505 0 0) left/5px 100% no-repeat; }
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-right::before { background: linear-gradient(#050505 0 0) bottom/100% 5px no-repeat, linear-gradient(#050505 0 0) right/5px 100% no-repeat; }

/* 16 x 16 격자의 열과 행을 동일하게 나눠 모든 칸을 정사각형으로 유지합니다. */
#ricochetBoard { grid-template-columns: repeat(16, minmax(0, 1fr)); grid-template-rows: repeat(16, minmax(0, 1fr)); }
#ricochetBoard .ricochet-cell { width: 100%; height: 100%; aspect-ratio: 1 / 1; }

/* 외벽 셀도 내부 바닥 패턴을 유지해 가장자리 칸이 잘려 보이지 않게 합니다. */
#ricochetBoard .ricochet-cell.has-wall-top::before,
#ricochetBoard .ricochet-cell.has-wall-bottom::before,
#ricochetBoard .ricochet-cell.has-wall-left::before,
#ricochetBoard .ricochet-cell.has-wall-right::before {
  content: "" !important;
  inset: 15% !important;
  z-index: 1 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  border: 2px solid rgba(255,250,232,.75) !important;
  border-radius: 2px !important;
  background: #eee5cd !important;
  box-shadow: 0 0 0 1px rgba(164,145,105,.35) !important;
}
#ricochetBoard .ricochet-cell.is-target::after { transform: scale(1) !important; }
#ricochetBoard .ricochet-cell.is-target::after { content: "★" !important; display: grid !important; place-items: center; color: #fff; font-size: clamp(9px, 2.2vw, 15px); font-weight: 900; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
#ricochetBoard .ricochet-cell.is-target::after,
#ricochetBoard .ricochet-cell.robot-red::after,
#ricochetBoard .ricochet-cell.robot-blue::after,
#ricochetBoard .ricochet-cell.robot-green::after,
#ricochetBoard .ricochet-cell.robot-yellow::after { inset: 10% !important; }

/* 최종 보정: 벽은 셀 안의 오버레이가 아니라 맞닿는 면의 얇은 검은 선입니다. */
#ricochetBoard .ricochet-cell.has-wall-top, #ricochetBoard .ricochet-cell.has-wall-bottom, #ricochetBoard .ricochet-cell.has-wall-left, #ricochetBoard .ricochet-cell.has-wall-right { box-shadow: none !important; }
#ricochetBoard .ricochet-cell.has-wall-top { border-top: 4px solid #050505 !important; border-top-color: #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-bottom { border-bottom: 4px solid #050505 !important; border-bottom-color: #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-left { border-left: 4px solid #050505 !important; border-left-color: #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-right { border-right: 4px solid #050505 !important; border-right-color: #050505 !important; }
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-left,
#ricochetBoard .ricochet-cell.has-wall-top.has-wall-right,
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-left,
#ricochetBoard .ricochet-cell.has-wall-bottom.has-wall-right,
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-left,
#ricochetBoard .ricochet-cell.is-target.has-wall-top.has-wall-right,
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-left,
#ricochetBoard .ricochet-cell.is-target.has-wall-bottom.has-wall-right { box-shadow: none !important; }

/* 보드 외곽은 서버 이동 경계와 동일하게 모든 모서리에서 항상 보입니다. */
#ricochetBoard .ricochet-cell:nth-child(-n + 16) { border-top: 4px solid #050505 !important; }
#ricochetBoard .ricochet-cell:nth-child(16n + 1) { border-left: 4px solid #050505 !important; }
#ricochetBoard .ricochet-cell:nth-child(16n) { border-right: 4px solid #050505 !important; }
#ricochetBoard .ricochet-cell:nth-child(n + 241) { border-bottom: 4px solid #050505 !important; }
#ricochetBoard .ricochet-cell.is-dead-zone { background: #101010 !important; opacity: 1; cursor: not-allowed; }
#ricochetBoard .ricochet-cell.is-dead-zone::before, #ricochetBoard .ricochet-cell.is-dead-zone::after { display: none !important; }
#ricochetBoard .ricochet-target-marker { position: absolute; inset: 18%; z-index: 6; display: grid; place-items: center; border: 2px solid #080808; border-radius: 50%; background: var(--target-color, #ef2020); color: #fff; font-size: clamp(9px, 2.2vw, 15px); font-weight: 900; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.65); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #080808; pointer-events: none; }
#ricochetBoard .ricochet-cell.is-target::after { content: none !important; display: none !important; }
#ricochetBoard .ricochet-diagonal { position: absolute; inset: 5%; z-index: 3; width: 90%; height: 90%; overflow: visible; pointer-events: none; }
#ricochetBoard .ricochet-diagonal line { fill: none; stroke-linecap: round; }
#ricochetBoard .ricochet-diagonal-outline { stroke: #080808; stroke-width: 6; }
#ricochetBoard .ricochet-diagonal-color { stroke-width: 3.5; }
#ricochetBoard .ricochet-diagonal.is-red .ricochet-diagonal-color { stroke: #ef2020; }
#ricochetBoard .ricochet-diagonal.is-blue .ricochet-diagonal-color { stroke: #3479c9; }
#ricochetBoard .ricochet-diagonal.is-green .ricochet-diagonal-color { stroke: #15933a; }
#ricochetBoard .ricochet-diagonal.is-yellow .ricochet-diagonal-color { stroke: #f0d400; }

/* 티츄: 4인 팀 카드게임 */
.tichu-game-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff8df, #ffe6a8);
  color: #b43d32;
  font-size: 2rem;
  box-shadow: inset 0 0 0 1px rgba(180,61,50,.14);
}

.the-game-icon { background: linear-gradient(145deg, #f7f3ea, #d9dde3); }
.the-game-icon img { width: 100%; height: 100%; object-fit: cover; transform: none; filter: none; }
.the-mind-icon { background: linear-gradient(145deg, #fff8e6, #dedbff); }
.the-mind-icon img { width: 100%; height: 100%; object-fit: cover; transform: none; filter: none; }
#theGameTurnStatus.is-my-turn { color: #ef4444; animation: the-game-my-turn-alert .9s ease-in-out infinite; }
@keyframes the-game-my-turn-alert { 0%, 100% { opacity: 1; text-shadow: 0 0 0 rgba(239,68,68,0); } 50% { opacity: .42; text-shadow: 0 0 9px rgba(239,68,68,.5); } }
@media (prefers-reduced-motion: reduce) { #theGameTurnStatus.is-my-turn { animation: none; } }
.the-game-room { display: grid; gap: 14px; padding-bottom: 24px; }
.the-game-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.cooperative-player-count-control { display: grid; grid-template-columns: auto minmax(92px, 120px); align-items: center; gap: 6px 10px; margin: 10px 0; padding: 10px 12px; border: 1px solid #d8e1ef; border-radius: 14px; background: #f5f8fc; color: #324b70; }
.cooperative-player-count-control label { font-weight: 700; }
.cooperative-player-count-control select { min-height: 36px; padding: 5px 9px; border: 1px solid #b9c9df; border-radius: 9px; background: #fff; color: #1e3557; font: inherit; font-weight: 700; }
.cooperative-player-count-control select:disabled { opacity: .72; }
.cooperative-player-count-control small { grid-column: 1 / -1; color: #6d819e; font-size: .76rem; }
html[data-theme="dark"] .cooperative-player-count-control { border-color: #3b5578; background: #1a2a40; color: #e7effb; }
html[data-theme="dark"] .cooperative-player-count-control select { border-color: #496486; background: #111c2d; color: #edf3fc; }
html[data-theme="dark"] .cooperative-player-count-control small { color: #9fb3cf; }
.the-game-player { display: grid; gap: 3px; min-width: 0; padding: 11px; border: 1px solid #d8e1ef; border-radius: 14px; background: #f5f8fd; }
.the-game-player b { color: var(--primary); font-size: .74rem; }
.the-game-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.the-game-player small { color: #6b7c93; }
.the-game-player.is-turn { border-color: #e6a521; box-shadow: 0 0 0 2px rgba(230,165,33,.18); }
.the-game-summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #172a48; color: #fff; font-size: .86rem; }
.the-game-summary strong { color: #bcd6ff; }
.the-game-piles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid #d8e1ef; border-radius: 18px; background: #eef3fa; }
.the-game-pile { display: grid; gap: 6px; justify-items: center; min-width: 0; padding: 0; border: 0; background: transparent; color: #172a48; }
.the-game-pile .the-game-pile-player-badge { max-width: 100%; padding: 3px 8px; overflow: hidden; border: 1px solid #d5b95e; border-radius: 999px; background: #fff6d8; color: #765611; font-size: clamp(.58rem, 2.1vw, .7rem); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.the-game-pile .the-game-pile-hold-badge { max-width: 100%; padding: 3px 8px; overflow: hidden; border: 1px solid #a8b8d1; border-radius: 999px; background: #e7eef9; color: #324b70; font-size: clamp(.58rem, 2.1vw, .7rem); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.the-game-pile .the-game-pile-hold-badge { max-width: 100%; padding: 3px 8px; overflow: hidden; border: 1px solid #a8b8d1; border-radius: 999px; background: #e7eef9; color: #324b70; font-size: clamp(.58rem, 2.1vw, .7rem); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.the-game-pile-card { appearance: none; display: grid; justify-items: center; align-content: start; gap: 6px; width: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; color: inherit; }
.the-game-pile.has-hold .the-game-pile-card img { outline: 2px solid #f59e0b; outline-offset: -2px; border-radius: 12px; filter: drop-shadow(0 0 4px rgba(245,158,11,.34)) drop-shadow(0 4px 5px rgba(15,23,42,.18)); }
.the-game-pile-card img { display: block; width: 100%; max-width: 112px; aspect-ratio: 5 / 7; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(15,23,42,.18)); transition: transform .15s ease, filter .15s ease; }
.the-game-pile small { font-size: clamp(.62rem, 2.4vw, .76rem); font-weight: 800; }
.the-game-pile-values { appearance: none; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 0; padding: 2px 4px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; font-size: clamp(.62rem, 2.4vw, .76rem); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: pointer; }
.the-game-pile-values b { color: #6b7c93; }
.the-game-pile-card:not(:disabled):hover img, .the-game-pile-card:not(:disabled):focus-visible img { transform: translateY(-4px); filter: drop-shadow(0 8px 8px rgba(49,90,159,.3)); }
.the-game-pile-card:disabled { opacity: .52; cursor: default; }
.the-game-pile-values:focus-visible { outline: 2px solid #2f80ed; outline-offset: 2px; }
.the-game-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
#theMindShuriken.is-consented { border-color: #244b83; background: #315a9f; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 2px 8px rgba(31,73,132,.24); }
#theMindShuriken.is-consented:hover:not(:disabled) { background: #244b83; }
.the-game-hand-panel { display: grid; gap: 10px; padding: 14px; border: 1px solid #d8e1ef; border-radius: 18px; background: #fff; }
.the-game-hand-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.the-game-hand-heading span { color: #6b7c93; font-size: .8rem; text-align: right; }
.the-game-hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(64px, 17vw, 94px), 1fr)); align-items: start; gap: 10px; min-height: 156px; padding: 8px 4px 12px; }
.the-game-card { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; }
.the-game-card img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(15,23,42,.22)); transition: transform .15s ease, filter .15s ease; }
.the-game-card.is-selected img { transform: translateY(-12px); filter: drop-shadow(0 8px 8px rgba(49,90,159,.42)); }
.the-game-card:disabled { cursor: default; opacity: .7; }
.the-mind-hand .the-game-card.is-dimmed img { opacity: .42; filter: grayscale(1) drop-shadow(0 2px 3px rgba(15,23,42,.16)); }
[data-theme="dark"] .the-game-player, [data-theme="dark"] .the-game-hand-panel { border-color: #344967; background: #172438; }
[data-theme="dark"] .the-game-piles { border-color: #344967; background: #142033; }
[data-theme="dark"] .the-game-pile { color: #e6edf7; }
[data-theme="dark"] #theMindShuriken.is-consented { border-color: #4c7fc2; background: #244b7b; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 10px rgba(0,0,0,.3); }
[data-theme="dark"] #theMindShuriken.is-consented:hover:not(:disabled) { background: #2d5c94; }
@media (max-width: 430px) {
  .the-game-piles { gap: 4px; padding: 10px 6px; }
  .the-game-players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tichu-game-room { display: grid; gap: 14px; padding-bottom: 220px; }
.tichu-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tichu-player { display: grid; gap: 4px; min-height: 88px; padding: 12px; border: 1px solid #d8e1ef; border-radius: 14px; background: #f5f8fd; }
.tichu-player b { color: var(--primary); font-size: .75rem; }
.tichu-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tichu-player small { color: #6b7c93; line-height: 1.4; }
.tichu-player .tichu-turn-countdown { display: inline-flex; width: fit-content; max-width: 100%; padding: 3px 7px; border: 1px solid #efc46d; border-radius: 999px; background: #fff5dc; color: #92520b; font-size: .68rem; font-variant-numeric: tabular-nums; font-weight: 900; line-height: 1.2; }
.tichu-player-card-count { color: var(--primary); font-weight: 800; }
.tichu-player.is-turn { border-color: #f0a629; box-shadow: 0 0 0 2px rgba(240,166,41,.18); }
.tichu-forfeit-row { display: flex; justify-content: flex-end; min-width: 0; }
.tichu-forfeit-row > button { min-width: 104px; min-height: 34px; padding: 6px 12px; }
.tichu-score { padding: 12px 14px; border-radius: 14px; background: #172a48; color: #fff; text-align: center; font-weight: 800; }
.tichu-game-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tichu-game-actions > button:only-child { grid-column: 1 / -1; }
.tichu-game-actions > #tichuRematch { grid-column: 1 / -1; }
.tichu-table { padding: 14px; border: 1px solid #d8e1ef; border-radius: 18px; background: #fff; }
.tichu-hand-panel { position: fixed; z-index: 25; right: max(8px, env(safe-area-inset-right)); bottom: env(safe-area-inset-bottom); left: max(8px, env(safe-area-inset-left)); width: min(calc(100% - 16px), 664px); margin: 0 auto; padding: 0; border: 0; background: transparent; box-shadow: none; pointer-events: none; }
.tichu-hand-panel > .tichu-game-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); grid-auto-rows: minmax(34px, auto); align-items: stretch; gap: 4px; width: 100%; min-height: 50px; max-width: 100%; box-sizing: border-box; margin: 0 0 6px; padding: 4px; border: 1px solid #d8e1ef; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 4px 14px rgba(27,49,78,.14); pointer-events: auto; }
.tichu-hand-panel > .tichu-game-actions > button { width: 100%; min-width: 0; min-height: 34px; padding: 4px 6px; font-size: .72rem; line-height: 1.15; }
.tichu-hand-panel > .tichu-game-actions > .tichu-action-waiting { grid-column: 1 / -1; display: grid; min-height: 40px; place-items: center; padding: 4px 8px; color: #50627c; font-size: .78rem; font-weight: 700; text-align: center; }
html[data-theme="dark"] .tichu-hand-panel > .tichu-game-actions > .tichu-action-waiting { color: #d2def0; }
.tichu-hand-action { position: absolute; right: 0; bottom: 230px; z-index: 35; pointer-events: auto; margin: 0; }
.tichu-hand-panel .tichu-hand-action + .tichu-hand-action { margin-left: 0; right: 0; bottom: 230px; }
.tichu-hand-panel:has(.tichu-card.is-selected, .tichu-card.is-received) .tichu-hand-action,
.tichu-hand-panel:has(.tichu-card.is-selected, .tichu-card.is-received) .tichu-hand-action + .tichu-hand-action { bottom: 230px; }
.tichu-hand-panel:not(.is-expanded) { height: 128px; overflow: visible; }
.tichu-hand-panel.is-expanded { height: auto; overflow: visible; }
.tichu-hand-panel.is-expanded .tichu-hand { height: clamp(150px, 30vw, 190px); min-height: clamp(150px, 30vw, 190px); max-height: clamp(150px, 30vw, 190px); overflow: visible; align-items: flex-end; }
.tichu-hand-panel:not(.is-expanded) .tichu-hand-heading { position: absolute; right: 0; bottom: 112px; z-index: 30; }
.tichu-hand-panel:not(.is-expanded) .tichu-hand { position: absolute; right: 0; bottom: 0; left: 0; height: 96px; min-height: 96px; max-height: 96px; }
.tichu-hand-panel.is-expanded .tichu-hand-heading, .tichu-hand-panel.is-expanded .tichu-hand { position: static; }
.tichu-hand-panel.is-expanded .tichu-hand-heading { position: relative; z-index: 30; margin: 0 0 6px auto; transform: translateY(-54px); }
.tichu-trick { display: flex; flex-wrap: wrap; min-height: 92px; align-items: center; justify-content: center; gap: 0; overflow-x: auto; padding: 10px 2px 2px; }
.tichu-trick > p { margin: 0; color: #6b7c93; font-size: .86rem; }
.tichu-table { position: relative; }
.tichu-table { min-height: 300px; padding: 54px 14px 28px; overflow: visible; }
.tichu-table #tichuTurnStatus { margin: 0 0 12px; }
.tichu-table .tichu-trick { min-height: 170px; align-content: center; }
.tichu-trick[data-owner-seat="2"] { justify-content: flex-end; padding-right: 4px; }
.tichu-trick[data-owner-seat="4"] { justify-content: flex-start; padding-left: 4px; }
.tichu-trick[data-owner-seat="1"], .tichu-trick[data-owner-seat="3"] { justify-content: center; }
.tichu-trick { position: relative; }
.tichu-demo-played-row { position: absolute; display: flex; flex-direction: column; align-items: center; width: min(48%, 220px); margin: 0; }
.tichu-demo-played-row.seat-1 { top: 4px; left: 50%; transform: translateX(-50%); }
.tichu-demo-played-row.seat-2 { top: 50%; right: 0; transform: translateY(-50%); }
.tichu-demo-played-row.seat-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.tichu-demo-played-row.seat-4 { top: 50%; left: 0; transform: translateY(-50%); }
.tichu-table { min-height: 480px; padding-bottom: 54px; }
.tichu-table .tichu-trick { min-height: 340px; overflow: visible; }
.tichu-demo-played-row.seat-1 { top: 0; }
.tichu-demo-played-row.seat-1 > strong { display: none; }
.tichu-demo-played-row > strong { display: none; }
.tichu-hand-panel { z-index: 80; }
.tichu-hand-action { position: fixed; right: max(8px, env(safe-area-inset-right)); bottom: 215px; z-index: 100; }
.tichu-demo-played-row > div .tichu-card { margin-left: calc(clamp(72px, 14vw, 110px) * -.55); }
.tichu-demo-played-row > div .tichu-card:first-child { margin-left: 0; }
.tichu-demo-played-row.seat-2, .tichu-demo-played-row.seat-4 { top: 58%; }
.tichu-demo-played-row.seat-2 > div, .tichu-demo-played-row.seat-4 > div { margin-top: 8px; }
.tichu-demo-played-row.seat-3 { bottom: -48px; }
.tichu-demo-played-row.seat-3 > div { margin-top: 4px; }
.tichu-score-history { padding: 14px; border: 1px solid #d8e1ef; border-radius: 16px; background: #fff; }
.tichu-score-history h3 { margin: 0 0 10px; color: #17365f; font-size: 1rem; }
.tichu-score-history-table-wrap { overflow-x: auto; }
.tichu-score-history table { width: 100%; min-width: 360px; border-collapse: collapse; font-size: .8rem; }
.tichu-score-history th, .tichu-score-history td { padding: 8px 6px; border-bottom: 1px solid #e5ebf4; text-align: center; white-space: nowrap; }
.tichu-score-history th { color: #315a9f; background: #f5f8fd; font-weight: 800; }
.tichu-round-result-modal { z-index: 80; place-items: center; padding: 16px; box-sizing: border-box; }
.tichu-round-result-content { display: grid; gap: 14px; width: min(100%, 560px); max-height: min(88vh, calc(100dvh - 32px)); padding: 22px; border-radius: 20px; }
.tichu-round-result-content .modal-header { margin: 0; }
.tichu-round-result-content .tichu-score-history { max-height: min(48vh, 420px); padding: 12px; overflow: auto; }
.tichu-round-result-content .tichu-score-history table { min-width: 0; }
.tichu-round-result-message { margin: 0; color: #405575; text-align: center; line-height: 1.5; white-space: pre-line; }
.tichu-round-result-error { margin: 0; color: #b42332; text-align: center; font-size: .84rem; font-weight: 800; }
.tichu-round-result-content > button { width: 100%; min-height: 48px; }
html[data-theme="dark"] .tichu-round-result-message { color: #d2def0; }
html[data-theme="dark"] .tichu-round-result-error { color: #ff9da6; }
.tichu-seat-names .seat-1, .tichu-seat-names .seat-3, .tichu-demo-played-row.seat-1 > strong, .tichu-demo-played-row.seat-3 > strong { color: #c43d4b; }
.tichu-seat-names .seat-2, .tichu-seat-names .seat-4, .tichu-demo-played-row.seat-2 > strong, .tichu-demo-played-row.seat-4 > strong { color: #2f67b1; }
.tichu-seat-names span { font-size: 1.6rem; }
.tichu-demo-played-row > strong { font-size: 1.6rem; }
.tichu-seat-names span.team-a, .tichu-demo-played-row.team-a > strong { color: #c43d4b; }
.tichu-seat-names span.team-b, .tichu-demo-played-row.team-b > strong { color: #2f67b1; }
.tichu-turn-status-panel { width: 100%; box-sizing: border-box; margin: 0; padding: 12px 16px; border: 1px solid #d8e1ef; border-radius: 14px; background: #fff; text-align: center; }
.tichu-turn-status-panel { font-size: 1.15rem; font-weight: 900; white-space: pre-line; }
.tichu-game-error { min-height: 1.35em; margin: 6px 0 12px; color: #b42318; font-size: .88rem; font-weight: 800; line-height: 1.45; text-align: center; }
.tichu-turn-status-panel.is-my-turn { border-color: #e5a41f; background: #fff8e6; color: #a76400; animation: tichu-my-turn-pulse 1.15s ease-in-out infinite; }
@keyframes tichu-my-turn-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229,164,31,0); } 50% { opacity: .62; box-shadow: 0 0 0 5px rgba(229,164,31,.16); } }
.tichu-turn-team { margin-left: 8px; font-size: .95rem; font-weight: 900; }
.tichu-turn-team.team-a { color: #c43d4b; }
.tichu-turn-team.team-b { color: #2f67b1; }
.tichu-demo-played-row > strong { color: #315a9f; font-size: .78rem; }
.tichu-demo-played-row > .tichu-played-combo-badge { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; margin: 0 0 4px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 2px 6px rgba(0,0,0,.18); color: #174b40; font-size: .68rem; font-weight: 900; line-height: 1.1; text-align: center; white-space: nowrap; }
.tichu-demo-played-row > div, .tichu-current-trick { display: flex; justify-content: center; width: 100%; }
.tichu-seat-names span { position: absolute; z-index: 2; color: #315a9f; font-size: 1.6rem; font-weight: 800; white-space: nowrap; }
.tichu-seat-names span { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.05; }
.tichu-seat-names span small { color: inherit; font-size: .72rem; font-weight: 700; }
.tichu-seat-names span .tichu-declaration-badge { max-width: 100%; padding: 2px 6px; overflow: visible; border: 1px solid #e0a62b; border-radius: 999px; background: #fff3cc; color: #7a4b00; font-size: clamp(.56rem, 2.2vw, .7rem); font-weight: 900; line-height: 1.1; white-space: nowrap; }
.tichu-seat-names span .tichu-declaration-badge.is-small { border-color: #7c9fe0; background: #e8f0ff; color: #244f99; }
.tichu-seat-names .seat-1 { top: 8px; left: 50%; transform: translateX(-50%); }
.tichu-seat-names .seat-2 { top: 50%; right: 10px; transform: translateY(-50%); }
.tichu-seat-names .seat-3 { bottom: 8px; left: 50%; transform: translateX(-50%); }
.tichu-seat-names .seat-4 { top: 50%; left: 10px; transform: translateY(-50%); }
.tichu-trick-owner { display: block; flex: 0 0 100%; width: 100%; margin-top: 4px; color: #172a48; font-size: .78rem; font-weight: 800; text-align: center; }
.tichu-hand-heading { display: flex; align-items: center; justify-content: space-between; width: max-content; min-height: 30px; margin: 0 0 2px auto; padding: 4px 10px; border: 0; border-radius: 999px; background: #172a48; color: #fff; text-align: left; pointer-events: auto; }
.tichu-hand-heading:hover { background: #f2f6fc; }
.tichu-hand-heading span { color: #6b7c93; font-size: .8rem; }
.tichu-hand-heading small { margin-left: auto; color: #315a9f; font-size: 1rem; transition: transform .2s ease; }
.tichu-hand-panel.is-expanded .tichu-hand-heading small { transform: rotate(180deg); }
.tichu-hand { --tichu-card-width: min(90px, calc((100% + 84px) / 8)); display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; width: 100%; min-height: 84px; max-height: 84px; gap: 0; overflow: visible; padding: 8px 4px 2px; pointer-events: auto; }
.tichu-hand-empty-message { display: grid; flex: 0 0 100%; width: 100%; min-width: 0; max-width: 100%; min-height: 64px; box-sizing: border-box; margin: 0; place-items: center; padding: 8px 12px; border: 1px solid #d8e1ef; border-radius: 12px; background: rgba(255,255,255,.94); color: #315a9f; font-size: .86rem; font-weight: 800; text-align: center; }
html[data-theme="dark"] .tichu-hand-empty-message { border-color: #3b4e69; background: #172337; color: #dce9fb; }
.tichu-hand-panel.is-expanded .tichu-hand { flex-wrap: wrap; gap: 0; height: auto; min-height: 0; max-height: min(70vh, 520px); overflow-y: auto; padding-bottom: 8px; }
.tichu-hand-panel:not(.is-expanded) .tichu-hand { align-items: flex-start; height: calc(var(--tichu-card-width) * .71); min-height: calc(var(--tichu-card-width) * .71); max-height: calc(var(--tichu-card-width) * .71); overflow: hidden; }
.tichu-hand-panel.is-expanded .tichu-card { margin-left: 0; margin-right: -12px; }
.tichu-hand-panel.is-expanded .tichu-card:first-child { margin-left: 0; }
.tichu-card { box-sizing: border-box; position: relative; flex: 0 0 var(--tichu-card-width); width: var(--tichu-card-width); height: auto; aspect-ratio: 56 / 80; min-height: 0; margin-left: 0; margin-right: -12px; padding: 0; overflow: hidden; border: 2px solid #c8b36b; border-radius: 8px; background: #fffdf5; color: #24334c; box-shadow: 0 5px 12px rgba(16,29,50,.24); font-size: .62rem; font-weight: 900; line-height: 1.1; transition: transform .15s ease, border-color .15s ease; }
.tichu-hand .tichu-card:nth-child(8n) { margin-right: 0; }
.tichu-hand-panel:not(.is-expanded) .tichu-card { height: calc(var(--tichu-card-width) * 1.42) !important; }
.tichu-card:first-child { margin-left: 0; }
.tichu-card img { display: block; width: 100%; height: 100%; min-width: 100%; min-height: 100%; object-fit: fill; }
.tichu-card > span, .tichu-card > i { display: none; }
.tichu-card.is-image-fallback > span { display: block; }
.tichu-card.is-image-fallback > i { display: block; }
.tichu-card[data-tichu-suit="dog"] img { object-fit: cover; object-position: center; }
.tichu-card i { position: absolute; top: 31px; bottom: auto; left: 4px; z-index: 1; color: #b43d32; font-size: 1.8rem; font-style: normal; line-height: 1; text-shadow: 0 1px 0 rgba(255,255,255,.9); }
.tichu-card[data-tichu-suit="sword"] i, .tichu-card[data-tichu-suit="star"] i { color: #111827; }
.tichu-card[data-tichu-suit="jade"] i, .tichu-card[data-tichu-suit="pagoda"] i { color: #d12f3f; }
.tichu-card span { position: absolute; top: 3px; left: 4px; right: 2px; color: #172a48; text-align: left; text-shadow: 0 1px 0 rgba(255,255,255,.85); white-space: nowrap; font-size: 1.55rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.tichu-card.is-table span { font-size: 3.1rem; }
.tichu-card.is-table i { font-size: 3.6rem; }
.tichu-card.is-selected { border-color: #2677e8; transform: translateY(-24px); box-shadow: 0 7px 16px rgba(38,119,232,.32); z-index: auto; }
.tichu-card.is-received { border-color: #2677e8; transform: translateY(-24px); box-shadow: 0 7px 16px rgba(38,119,232,.32); }
.tichu-card.is-received { overflow: visible; }
.tichu-exchange-target { display: block !important; position: absolute; top: -25px; left: 4px; right: auto; z-index: 20; overflow: visible; color: #315a9f; font-size: .72rem; font-weight: 900; text-align: left; white-space: nowrap; }
.tichu-exchange-target.team-a { color: #c43d4b; }
.tichu-exchange-target.team-b { color: #2f67b1; }
.tichu-exchange-target.received { color: #6b4ca3; }
.tichu-exchange-target.received.team-a { color: #c43d4b; }
.tichu-exchange-target.received.team-b { color: #2f67b1; }
.tichu-hand-panel:not(.is-expanded) .tichu-card:not(.is-selected):not(.is-received) { clip-path: inset(0 0 50% 0); }
.tichu-card.is-selected { z-index: auto; overflow: visible; }
.tichu-hand .tichu-card { z-index: 1; }
.tichu-hand .tichu-card:nth-child(2) { z-index: 2; }
.tichu-hand .tichu-card:nth-child(3) { z-index: 3; }
.tichu-hand .tichu-card:nth-child(4) { z-index: 4; }
.tichu-hand .tichu-card:nth-child(5) { z-index: 5; }
.tichu-hand .tichu-card:nth-child(6) { z-index: 6; }
.tichu-hand .tichu-card:nth-child(7) { z-index: 7; }
.tichu-hand .tichu-card:nth-child(8) { z-index: 8; }
.tichu-hand .tichu-card:nth-child(9) { z-index: 9; }
.tichu-hand .tichu-card:nth-child(10) { z-index: 10; }
.tichu-hand .tichu-card:nth-child(11) { z-index: 11; }
.tichu-hand .tichu-card:nth-child(12) { z-index: 12; }
.tichu-hand .tichu-card:nth-child(13) { z-index: 13; }
.tichu-hand .tichu-card:nth-child(14) { z-index: 14; }
.tichu-card.is-table { display: block; flex: 0 0 clamp(72px, 14vw, 110px); width: clamp(72px, 14vw, 110px); height: calc(clamp(72px, 14vw, 110px) * 1.42); margin-left: calc(clamp(72px, 14vw, 110px) * -.55); }
.tichu-card.is-table:first-child { margin-left: 0; }
.tichu-card.is-table span { font-size: clamp(1.35rem, 3.2vw, 2.2rem); }
.tichu-card.is-table i { top: 30px; left: 4px; font-size: clamp(1.1rem, 2.8vw, 1.7rem); }
.tichu-card { height: auto; aspect-ratio: 1 / 1.42; }
.tichu-hand-panel:not(.is-expanded) .tichu-card { height: auto !important; aspect-ratio: 1 / 1.42; }
.tichu-card.is-table { height: auto; aspect-ratio: 1 / 1.42; }
.tichu-combo-label { flex: 0 0 100%; width: 100%; color: #315a9f; font-size: .82rem; font-weight: 900; text-align: center; }
#tichuTurnStatus .tichu-combo-label { display: block; margin-top: 6px; }
html[data-theme="dark"] .tichu-player, html[data-theme="dark"] .tichu-table { border-color: #33445e; background: #152135; }
html[data-theme="dark"] .tichu-hand-heading { color: #f3f6ff; }
html[data-theme="dark"] .tichu-hand-heading:hover { background: #1d2c43; }
html[data-theme="dark"] .tichu-player small, html[data-theme="dark"] .tichu-trick > p, html[data-theme="dark"] .tichu-hand-heading span { color: #aebbd0; }
html[data-theme="dark"] .tichu-player .tichu-turn-countdown { border-color: #a97928; background: #3d321d; color: #ffd479; }
html[data-theme="dark"] .tichu-turn-status-panel.is-my-turn { border-color: #e5a41f; background: #4b3a1a; color: #ffd479; }
html[data-theme="dark"] .tichu-score-history { border-color: #33445e; background: #152135; color: #f3f6ff; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
html[data-theme="dark"] .tichu-score-history h3 { color: #e7efff; }
html[data-theme="dark"] .tichu-score-history th { color: #d7e6ff; background: #203454; }
html[data-theme="dark"] .tichu-score-history th, html[data-theme="dark"] .tichu-score-history td { border-bottom-color: #33445e; }
@media (max-width: 420px) {
  .tichu-player { min-height: 82px; padding: 10px; }
  .tichu-hand { --tichu-card-width: calc((100% - 8px) / 4.5); }
}
.tichu-hand-panel:not(.is-expanded) .tichu-hand { position: absolute; right: 0; bottom: 0; left: 0; height: 120px; min-height: 120px; max-height: 120px; overflow: hidden; align-items: flex-start; }
.tichu-hand-panel:not(.is-expanded) .tichu-hand { overflow: visible; }
.tichu-hand-panel:not(.is-expanded) .tichu-card:not(.is-selected):not(.is-received) { clip-path: inset(0 0 50% 0); }
#tichuRulesModal { z-index: 40; }
#tichuRulesModal .notice-content { justify-items: stretch; text-align: left; }
#tichuRulesModal .modal-header { width: 100%; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
#tichuRulesModal .modal-header h2 { flex: 0 1 auto; min-width: 0; text-align: left; }
#tichuRulesModal .modal-header .close-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; aspect-ratio: 1 / 1; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#tichuRulesModal .help-text { width: 100%; text-align: left; }
#theGameRulesModal { z-index: 40; place-items: end center; box-sizing: border-box; padding: 0; }
#theGameRulesModal .modal-content { width: min(100%, 680px); max-width: 680px; max-height: min(82dvh, 600px); box-sizing: border-box; padding: 22px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(15, 23, 42, .28); }
#theGameRulesModal .notice-content { justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
#theGameRulesModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#theGameRulesModal .modal-header h2 { min-width: 0; text-align: left; }
#theGameRulesModal .modal-header .close-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#theGameRulesModal .help-text { width: 100%; margin: 0; color: #526983; font-size: .92rem; line-height: 1.7; text-align: left; }
html[data-theme="dark"] #theGameRulesModal .help-text { color: #c0cde0; }
#theMindRulesModal { z-index: 40; place-items: end center; box-sizing: border-box; padding: 0; }
#theMindRulesModal .modal-content { width: min(100%, 680px); max-width: 680px; max-height: min(82dvh, 600px); box-sizing: border-box; padding: 22px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(15,23,42,.28); }
#theMindRulesModal .notice-content { justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
#theMindRulesModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#theMindRulesModal .modal-header h2 { min-width: 0; text-align: left; }
#theMindRulesModal .modal-header .close-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#theMindRulesModal .help-text { width: 100%; margin: 0; color: #526983; font-size: .92rem; line-height: 1.7; text-align: left; }
html[data-theme="dark"] #theMindRulesModal .help-text { color: #c0cde0; }
#decryptoRulesModal { z-index: 40; place-items: end center; box-sizing: border-box; padding: 0; }
#decryptoRulesModal .modal-content { width: min(100%, 680px); max-width: 680px; max-height: min(82dvh, 600px); box-sizing: border-box; padding: 22px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(15, 23, 42, .28); }
#decryptoRulesModal .notice-content { justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
#decryptoRulesModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#decryptoRulesModal .modal-header h2 { min-width: 0; text-align: left; }
#decryptoRulesModal .modal-header .close-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#decryptoRulesModal .help-text { width: 100%; margin: 0; color: #526983; font-size: .92rem; line-height: 1.7; text-align: left; }
html[data-theme="dark"] #decryptoRulesModal .help-text { color: #c0cde0; }
#justOneRulesModal { z-index: 40; place-items: end center; box-sizing: border-box; padding: 0; }
#justOneRulesModal .modal-content { width: min(100%, 680px); max-width: 680px; max-height: min(82dvh, 600px); box-sizing: border-box; padding: 22px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(15, 23, 42, .28); }
#justOneRulesModal .notice-content { justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
#justOneRulesModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#justOneRulesModal .modal-header h2 { min-width: 0; text-align: left; }
#justOneRulesModal .modal-header .close-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#justOneRulesModal .help-text { width: 100%; margin: 0; color: #526983; font-size: .92rem; line-height: 1.7; text-align: left; }
html[data-theme="dark"] #justOneRulesModal .help-text { color: #c0cde0; }
.the-mind-room { display: grid; gap: 14px; padding-bottom: 24px; }
#theMindPlayers .the-game-player small { height:1.4em; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#theMindGameRoom>.the-game-actions { height:56px; grid-template-columns:repeat(2,minmax(0,1fr)); }
#theMindGameRoom>.the-game-actions button { min-width:0; padding:8px; font-size:.8rem; }
#theMindTurnStatus { box-sizing:content-box; height:4.2em; min-height:4.2em; line-height:1.4; overflow:auto; }
#theMindHandGuide { height:2.8em; line-height:1.4; overflow:auto; display:grid; align-content:center; }
.the-mind-card-placeholder { display:block; width:100%; aspect-ratio:5/7; visibility:hidden; }
#theMindMoveLog { height:180px; overflow-y:auto; align-content:start; overflow-anchor:none; }
.the-mind-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.the-mind-summary span { display: grid; gap: 3px; padding: 11px 8px; border-radius: 12px; background: #172a48; color: #c7d5e9; font-size: .72rem; text-align: center; }
.the-mind-summary strong { color: #fff; font-size: .94rem; }
.the-mind-table { display: grid; justify-items: center; gap: 9px; padding: 16px; border: 1px solid #d8e1ef; border-radius: 18px; background: #eef3fa; }
.the-mind-table > span { color: #60738e; font-size: .76rem; font-weight: 800; }
.the-mind-played-card { display: grid; place-items: center; width: min(132px,36vw); aspect-ratio: 5 / 7; border: 1px dashed #9eb2d0; border-radius: 14px; background: #fff; color: #71839c; }
.the-mind-played-card img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(15,23,42,.2)); }
.the-mind-hand .the-game-card:not(:disabled):first-child img { filter: drop-shadow(0 0 7px rgba(49,90,159,.58)); }
.the-mind-log-card { display: grid; gap: 10px; padding: 14px; border: 1px solid #d8e1ef; border-radius: 18px; background: #fff; }
.the-mind-move-log { display: grid; gap: 6px; }
.the-mind-move-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #eef3fa; color: #506581; font-size: .78rem; }
.the-mind-move-item strong { overflow: hidden; color: #17365f; text-overflow: ellipsis; white-space: nowrap; }
.the-mind-move-item.is-mistake { background: #fff0f1; color: #b63848; }
.the-mind-move-item.is-shuriken { background: #fff8df; color: #856311; }
html[data-theme="dark"] .the-mind-table, html[data-theme="dark"] .the-mind-log-card { border-color: #344967; background: #142033; }
html[data-theme="dark"] .the-mind-played-card { border-color: #405777; background: #101a29; color: #9fb0c8; }
html[data-theme="dark"] .the-mind-move-item { background: #1d2b40; color: #c0cde0; }
html[data-theme="dark"] .the-mind-move-item strong { color: #edf3fc; }
html[data-theme="dark"] .the-mind-move-item.is-mistake { background: #3a2029; color: #ffb8c1; }
html[data-theme="dark"] .the-mind-move-item.is-shuriken { background: #3b321d; color: #f5d981; }
#theGamePileHistoryModal { z-index: 60; place-items: end center; box-sizing: border-box; padding: 0; }
#theGamePileHistoryModal .the-game-pile-history-modal { width: min(100%, 680px); max-width: 680px; max-height: min(82dvh, 600px); overflow-y: auto; box-sizing: border-box; padding: 22px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(15, 23, 42, .28); }
#theGamePileHistoryModal .notice-content { display: grid; justify-items: stretch; gap: 14px; padding: 22px; text-align: left; }
#theGamePileHistoryModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#theGamePileHistoryModal .modal-header h2 { min-width: 0; text-align: left; }
#theGamePileHistoryModal .modal-header .close-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
.the-game-pile-history-table-wrap { width: 100%; overflow-x: auto; }
.the-game-pile-history-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.the-game-pile-history-table th, .the-game-pile-history-table td { padding: 11px 9px; border-bottom: 1px solid #d8e1ef; }
.the-game-pile-history-table th { color: var(--primary); font-size: .86rem; }
.the-game-pile-history-table td:not(:first-child), .the-game-pile-history-table th:not(:first-child) { text-align: right; }
.the-game-pile-history-empty { padding: 24px 8px !important; color: #71839c; text-align: center !important; }
html[data-theme="dark"] .the-game-pile-history-table th, html[data-theme="dark"] .the-game-pile-history-table td { border-color: #344660; }
.tichu-hand-panel:not(.is-expanded) { height: 198px; }
.tichu-hand-panel:not(.is-expanded) .tichu-hand { height: 190px; min-height: 190px; max-height: 190px; overflow: visible; align-items: flex-end; }
.tichu-hand-panel:not(.is-expanded) .tichu-card:not(.is-selected):not(.is-received) { clip-path: none; }
#tichuPlay.tichu-hand-action, #tichuExchange.tichu-hand-action { right: max(8px, env(safe-area-inset-right)); bottom: 215px; }
#tichuPass.tichu-hand-action { right: max(8px, env(safe-area-inset-right)); bottom: 270px; }

@media (max-width: 600px) {
  #tichuGameScreen, .tichu-game-room { width: 100%; min-width: 0; max-width: 100%; }
  .tichu-game-room > *, .tichu-players, .tichu-score, .tichu-game-actions, .tichu-table, .tichu-score-history { min-width: 0; max-width: 100%; }
  .tichu-game-room { gap: 10px; padding-bottom: 210px; }
  .tichu-game-actions { min-width: 0; gap: 6px; }
  .tichu-game-actions > button { min-width: 0; padding-inline: 8px; font-size: .78rem; line-height: 1.25; overflow-wrap: anywhere; }
  .tichu-table { min-height: 480px; padding: 42px 8px 54px; overflow: hidden; }
  .tichu-table .tichu-trick { min-height: 380px; padding-inline: 0; overflow: hidden; }
  .tichu-demo-played-row { width: min(43%, 150px); max-width: 43%; }
  .tichu-demo-played-row.seat-1 { top: 0; }
  .tichu-demo-played-row.seat-2 { right: 2px; }
  .tichu-demo-played-row.seat-3 { bottom: -48px; }
  .tichu-demo-played-row.seat-4 { left: 2px; }
  .tichu-demo-played-row > div .tichu-card { flex-basis: clamp(56px, 16vw, 88px); width: clamp(56px, 16vw, 88px); margin-left: calc(clamp(56px, 16vw, 88px) * -.55); }
  .tichu-demo-played-row > div .tichu-card:first-child { margin-left: 0; }
  .tichu-card.is-table span { font-size: clamp(1.1rem, 4vw, 1.8rem); }
  .tichu-card.is-table i { top: 24px; left: 3px; font-size: clamp(.95rem, 3.4vw, 1.4rem); }
  .tichu-seat-names span { max-width: 28%; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
  .tichu-seat-names .seat-2 { right: 4px; }
  .tichu-seat-names .seat-4 { left: 4px; }
}

/* Tichu mobile table refresh: keep the full table and an unstacked five-card hand in normal flow. */
#tichuGameScreen {
  --tichu-app-blue: #18395d;
  --tichu-table-green: #176653;
  --tichu-table-green-dark: #0d483d;
  --tichu-card-gap: 6px;
}
#tichuGameScreen .mystery-game-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-block: 8px;
  background: transparent;
  backdrop-filter: none;
}
.tichu-game-room {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0 0 calc(18px + env(safe-area-inset-bottom));
}
.tichu-game-error:empty { display: none; }
#tichuInviteCode {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 4px 8px;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 16px;
  text-align: left;
}
#tichuInviteCode > span { grid-column: 1; }
#tichuInviteCode > strong { grid-column: 2; font-size: 1.12rem; letter-spacing: .12em; }
#tichuInviteCode > small:first-of-type { grid-column: 3; justify-self: end; }
#tichuInviteCode #tichuGameStatus { grid-column: 1 / -1; min-height: 0; }
.tichu-score {
  padding: 9px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #b63c4c 0 49.5%, #2765aa 50.5% 100%);
  box-shadow: 0 6px 16px rgba(22, 44, 73, .15);
  font-size: .9rem;
}
.tichu-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.tichu-player {
  gap: 2px;
  min-width: 0;
  min-height: 70px;
  padding: 8px 10px;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(27, 49, 78, .06);
}
.tichu-player b { font-size: .68rem; }
.tichu-player strong { font-size: .88rem; }
.tichu-player small {
  overflow: hidden;
  font-size: .68rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tichu-game-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.tichu-game-actions > button {
  min-width: 0;
  min-height: 40px;
  padding: 7px 8px;
  font-size: .76rem;
  line-height: 1.25;
}
#tichuGrand:not(.hidden) { border: 1px solid #2459b3; background: linear-gradient(135deg, #4b8bea, #2459b3); color: #fff; font-weight: 900; box-shadow: 0 2px 7px rgba(36, 89, 179, .28); }
#tichuGrand:not(.hidden):hover { background: linear-gradient(135deg, #68a1f4, #306aca); }
#tichuGrand:not(.hidden):focus-visible { outline: 3px solid rgba(63, 126, 220, .42); outline-offset: 2px; }
.tichu-turn-status-panel {
  position: relative;
  z-index: 2;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.3;
}
.tichu-table {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / .93;
  padding: 42px 38px;
  overflow: hidden;
  border: 4px solid #d5b47b;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.12) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, #1c785f, var(--tichu-table-green-dark) 76%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.14), 0 10px 24px rgba(17, 54, 48, .2);
}
.tichu-table::after {
  content: "";
  position: absolute;
  inset: 29% 24%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  pointer-events: none;
}
.tichu-table .tichu-trick {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 100%;
  padding: 0;
  overflow: visible;
}
.tichu-trick > p {
  position: absolute;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: 70%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.8);
  text-align: center;
}
.tichu-seat-names span {
  z-index: 4;
  max-width: 34%;
  padding: 3px 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 7px rgba(0,0,0,.15);
  font-size: clamp(.66rem, 2.8vw, .82rem);
  text-overflow: ellipsis;
}
.tichu-seat-names .seat-1 { top: 7px; }
.tichu-seat-names .seat-2 { right: 5px; }
.tichu-seat-names .seat-3 { bottom: 7px; }
.tichu-seat-names .seat-4 { left: 5px; }
.tichu-demo-played-row {
  position: absolute;
  display: grid;
  place-items: center;
  width: min(54%, 210px);
  max-width: none;
  margin: 0;
}
.tichu-demo-played-row.seat-1 { top: 7%; left: 50%; transform: translateX(-50%); }
.tichu-demo-played-row.seat-2 { top: 50%; right: -4%; transform: translateY(-50%); }
.tichu-demo-played-row.seat-3 { bottom: 7%; left: 50%; transform: translateX(-50%); }
.tichu-demo-played-row.seat-4 { top: 50%; left: -4%; transform: translateY(-50%); }
.tichu-demo-played-row > strong { display: none; }
.tichu-demo-played-row > div,
.tichu-current-trick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  width: 100%;
}
.tichu-demo-played-row > div .tichu-card,
.tichu-card.is-table {
  flex: 0 0 clamp(34px, 9vw, 50px);
  width: clamp(34px, 9vw, 50px);
  margin: 0;
  border-width: 1px;
  border-radius: 5px;
  box-shadow: 0 3px 7px rgba(0,0,0,.22);
}
.tichu-hand-panel,
.tichu-hand-panel:not(.is-expanded),
.tichu-hand-panel.is-expanded {
  position: relative;
  inset: auto;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 10px;
  overflow: visible;
  border: 1px solid #d8e1ef;
  border-radius: 18px;
  background: #f6f9fd;
  box-shadow: 0 8px 20px rgba(27, 49, 78, .1);
  pointer-events: auto;
}
.tichu-hand-heading,
.tichu-hand-panel:not(.is-expanded) .tichu-hand-heading,
.tichu-hand-panel.is-expanded .tichu-hand-heading {
  position: static;
  grid-column: 1 / -1;
  display: flex !important;
  width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 4px 2px;
  transform: none;
  border-radius: 0;
  background: transparent;
  color: var(--tichu-app-blue);
  pointer-events: none;
}
.tichu-hand-heading span { margin-left: auto; color: #526780; }
.tichu-hand-heading small { display: none; }
.tichu-hand-action,
.tichu-hand-panel .tichu-hand-action + .tichu-hand-action,
#tichuPlay.tichu-hand-action,
#tichuExchange.tichu-hand-action,
#tichuPass.tichu-hand-action {
  position: static;
  inset: auto;
  z-index: auto;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  pointer-events: auto;
}
.tichu-hand,
.tichu-hand-panel:not(.is-expanded) .tichu-hand,
.tichu-hand-panel.is-expanded .tichu-hand {
  --tichu-card-width: auto;
  position: static;
  grid-column: 1 / -1;
  display: grid;
  /* Keep the hand compact: eight cards per row, with a small visual overlap. */
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: start;
  column-gap: 0;
  row-gap: 6px;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: visible;
}
.tichu-hand .tichu-card,
.tichu-hand-panel:not(.is-expanded) .tichu-card,
.tichu-hand-panel.is-expanded .tichu-card {
  box-sizing: border-box;
  width: calc(100% + 6px);
  min-width: 0;
  height: auto !important;
  margin: 0 0 0 -3px;
  clip-path: none !important;
  aspect-ratio: 1 / 1.42;
  border-width: 1px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(16,29,50,.18);
}
.tichu-hand .tichu-card:nth-child(8n + 1) { margin-left: 0; }
.tichu-hand .tichu-card.is-selected,
.tichu-hand .tichu-card.is-received {
  z-index: 2;
  transform: translateY(-4px);
  border-width: 2px;
  box-shadow: 0 5px 12px rgba(38,119,232,.32);
}
.tichu-exchange-target {
  top: 3px;
  right: 2px;
  left: 2px;
  padding: 2px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255,255,255,.92);
  font-size: clamp(.52rem, 2vw, .66rem);
  text-align: center;
  text-overflow: ellipsis;
}
.tichu-exchange-recipients {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 6px 0 2px;
  color: #526780;
  font-size: .72rem;
  text-align: center;
}
.tichu-exchange-recipients > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.tichu-exchange-recipient { min-width: 0; padding: 6px 4px; border: 1px solid #7ba4d8; border-radius: 8px; background: #edf4ff; color: #24589a; font-size: .74rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tichu-exchange-recipient.team-a { border-color: #d47a86; background: #fff0f2; color: #a33143; }
.tichu-exchange-recipient.team-b { border-color: #6c9bd5; background: #edf4ff; color: #24589a; }
.tichu-exchange-recipient:disabled { border-color: #c7ced8; background: #e5e9ef; color: #8993a1; cursor: not-allowed; opacity: .78; }
.tichu-hand .tichu-card.is-selected { transform: translateY(-12px); z-index: 30; }
.tichu-score-history {
  padding: 10px 12px;
  border-radius: 14px;
}
.tichu-score-history h3 { margin-bottom: 6px; font-size: .86rem; }
.tichu-score-history table { min-width: 0; font-size: .72rem; }
.tichu-score-history th,
.tichu-score-history td { padding: 6px 4px; }
html[data-theme="dark"] .tichu-hand-panel {
  border-color: #33445e;
  background: #152135;
}
html[data-theme="dark"] .tichu-hand-heading { color: #eef4ff; }
html[data-theme="dark"] #tichuHandToggleLabel { color: #f1f5ff !important; }
html[data-theme="dark"] #tichuHandToggle #tichuSelectionCount { color: #c8d7ed !important; }
html[data-theme="dark"] .tichu-seat-names span { border-color: rgba(34,49,72,.3); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.32); }
@media (min-width: 620px) {
  .tichu-game-room { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: start; }
  #tichuInviteCode, .tichu-score, .tichu-game-actions, .tichu-turn-status-panel, .tichu-table { grid-column: 1; }
  .tichu-players, .tichu-hand-panel, .tichu-score-history { grid-column: 2; }
  #tichuInviteCode { grid-row: 1; }
  .tichu-score { grid-row: 2; }
  .tichu-turn-status-panel { grid-row: 3; }
  .tichu-table { grid-row: 4 / span 4; }
  .tichu-players { grid-row: 1 / span 2; }
  .tichu-game-actions { grid-row: 3; }
  .tichu-hand-panel { grid-row: 4; }
  .tichu-score-history { grid-row: 5; }
}
@media (max-width: 380px) {
  .tichu-table { padding: 38px 30px; border-radius: 22px; }
  .tichu-player { min-height: 64px; padding: 7px 8px; }
  .tichu-hand-panel { padding: 8px; }
  .tichu-hand { gap: 4px; }
}

@media (max-width: 619px) {
  /* On mobile the hand should be immediately followed by score history. */
  #tichuGameRoom .tichu-hand-panel { order: 1; }
  #tichuGameRoom .tichu-score-history { order: 2; }
}

/* Wide Tichu rooms: room controls and records first, then a landscape table,
   with turn/hand status directly below the play area. */
@media (min-width: 700px) {
  #tichuGameRoom {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    column-gap: 14px;
    row-gap: 12px;
  }
  #tichuGameRoom > #tichuInviteCode,
  #tichuGameRoom > .tichu-score,
  #tichuGameRoom > #tichuForfeitRow {
    grid-column: 1 / 8;
    width: 100%;
    margin: 0;
  }
  #tichuGameRoom > #tichuInviteCode { grid-row: 1; }
  #tichuGameRoom > .tichu-score { grid-row: 2; }
  #tichuGameRoom > #tichuForfeitRow { grid-row: 4; }
  #tichuGameRoom > .tichu-game-actions {
    grid-column: 1 / 8;
    grid-row: 3;
    width: 100%;
    margin: 0;
  }
  #tichuGameRoom > .tichu-players {
    grid-column: 8 / 13;
    grid-row: 1 / span 3;
    width: 100%;
    align-self: stretch;
  }
  #tichuGameRoom > .tichu-score-history {
    grid-column: 1 / -1;
    grid-row: 8;
    width: 100%;
    align-self: stretch;
  }
  #tichuGameRoom > .tichu-turn-status-panel {
    grid-column: 1 / -1;
    grid-row: 6;
    width: 100%;
  }
  #tichuGameRoom > .tichu-table {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    aspect-ratio: 1.7 / 1;
    min-height: 360px;
    max-height: min(68vw, 720px);
  }
  #tichuGameRoom > .tichu-hand-panel {
    grid-column: 1 / -1;
    grid-row: 7;
    width: 100%;
  }
}

.tichu-received-modal { z-index: 82; place-items: center; box-sizing: border-box; padding: 16px; }
.tichu-received-modal-content { display: grid; gap: 14px; width: min(100%, 440px); max-height: min(88vh, calc(100dvh - 32px)); padding: 22px; border-radius: 20px; text-align: center; }
.tichu-received-modal-content h2 { margin: 0; color: #17365f; font-size: 1.25rem; }
.tichu-received-modal-content > p { margin: 0; color: #52647e; font-weight: 700; line-height: 1.45; }
.tichu-received-modal-content > button { width: 100%; min-height: 48px; }
.tichu-received-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.tichu-received-card-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 6px;
  border: 2px solid #73849a;
  border-radius: 11px;
  background: #fff;
}
.tichu-received-card-item.team-a {
  border-color: #cf4a5c;
  background: #fff2f4;
}
.tichu-received-card-item.team-b {
  border-color: #3979bd;
  background: #eff6ff;
}
.tichu-received-card-item .tichu-card.is-received-preview {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 1 / 1.42;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(16,29,50,.2);
}
.tichu-received-card-item small {
  overflow: hidden;
  color: #55667d;
  font-size: clamp(.55rem, 2vw, .68rem);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tichu-received-card-item.team-a small { color: #b32f45; }
.tichu-received-card-item.team-b small { color: #2262a7; }
html[data-theme="dark"] .tichu-received-modal-content h2 { color: #f2f6ff; }
html[data-theme="dark"] .tichu-received-modal-content > p { color: #c2cee0; }
html[data-theme="dark"] .tichu-received-card-item { background: #202e43; }
html[data-theme="dark"] .tichu-received-card-item.team-a { background: #43232d; }
html[data-theme="dark"] .tichu-received-card-item.team-b { background: #1c3555; }
@media (max-width: 380px) {
  .tichu-received-modal-content { padding: 16px; }
  .tichu-received-card-list { gap: 5px; }
  .tichu-received-card-item { padding: 4px; }
}

/* 티츄: 내 카드 영역 안의 진행 안내·특수 카드 선택 UI */
.tichu-hand-message,
.tichu-hand-panel .tichu-game-error,
.tichu-play-options {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}
.tichu-hand-message {
  padding: 8px 10px;
  border: 1px solid #c8d9ef;
  background: #edf5ff;
  color: #315a9f;
  text-align: center;
  white-space: pre-line;
}
.tichu-hand-message[data-tone="waiting"] { background: #fff7e7; border-color: #f0cc81; color: #89601b; }
.tichu-hand-message[data-tone="turn"] { border-color: #e89aa0; background: #fff0f1; color: #c52232; animation: tichu-turn-flash 1s ease-in-out infinite; }
.tichu-wish-rank { display: inline-block; margin-inline: 2px; color: #b31427; font-size: 1.4em; font-weight: 1000; line-height: .9; vertical-align: -1px; }
.tichu-seat-names span { overflow: visible; white-space: normal; }
.tichu-demo-played-row.tichu-pass-row { z-index: 3; pointer-events: none; }
.tichu-pass-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 5px 12px; border: 2px solid rgba(255,255,255,.92); border-radius: 999px; background: #fff0f1; box-shadow: 0 3px 9px rgba(0,0,0,.24); color: #c32635; font-size: .9rem; font-weight: 900; line-height: 1.1; }
html[data-theme="dark"] .tichu-pass-badge { border-color: #ffd4d8; background: #54232c; color: #ffb0b7; }
@keyframes tichu-turn-flash { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .tichu-hand-message[data-tone="turn"] { animation: none; } }
.tichu-hand-panel .tichu-game-error:empty { display: none; }
.tichu-hand-panel .tichu-game-error:not(:empty) {
  display: block;
  padding: 8px 10px;
  border: 1px solid #efacb1;
  background: #fff1f2;
}
.tichu-play-options {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #8bb2df;
  background: #edf6ff;
  color: #18395d;
}
.tichu-play-options > span { color: #526780; font-size: .72rem; font-weight: 700; }
.tichu-play-option-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.tichu-play-option-grid.tichu-dragon-recipient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tichu-play-option-grid button,
.tichu-option-cancel {
  min-height: 34px;
  padding: 4px;
  border: 1px solid #8fb3df;
  border-radius: 8px;
  background: #fff;
  color: #24548c;
  font-size: .75rem;
  font-weight: 900;
}
.tichu-play-option-grid button:hover { border-color: #2167b4; background: #dcecff; }
.tichu-play-option-grid .is-neutral,
.tichu-option-cancel { color: #56677e; }
.tichu-option-cancel { justify-self: end; min-width: 64px; }
html[data-theme="dark"] .tichu-hand-message { border-color: #466c99; background: #1d3553; color: #d7e8ff; }
html[data-theme="dark"] .tichu-hand-panel > .tichu-game-actions { border-color: #3b4e69; background: #172337; box-shadow: 0 4px 14px rgba(0,0,0,.32); }
html[data-theme="dark"] .tichu-hand-panel > .tichu-game-actions > button.secondary-button:not(#tichuGrand) { border-color: #405570; background: #263851; color: #dce9fb; }
html[data-theme="dark"] .tichu-hand-panel > .tichu-game-actions > button.secondary-button:not(#tichuGrand):hover { background: #304867; }
html[data-theme="dark"] .tichu-hand-panel .tichu-game-error:not(:empty) { background: #44232b; color: #ffdce0; }
html[data-theme="dark"] .tichu-play-options { border-color: #476f9f; background: #1a304b; color: #e4efff; }
html[data-theme="dark"] .tichu-play-options > span { color: #b5c8df; }
html[data-theme="dark"] .tichu-play-option-grid button,
html[data-theme="dark"] .tichu-option-cancel { border-color: #4e739f; background: #223d5e; color: #e4efff; }

/* 게임세상 목록: 시안의 추천 영역, 검색 도구와 반응형 카드 그리드 */
#gameWorldScreen .help-text { margin: 0; }
#gameWorldScreen .game-world-feature {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 150px; margin: 0; padding: 23px clamp(19px,4vw,32px); overflow: hidden;
  border: 1px solid #cfdef4; border-radius: 24px;
  background: radial-gradient(circle at 88% 15%,rgba(139,175,232,.35),transparent 31%),linear-gradient(115deg,#e7f0ff,#f5f8ff 68%,#e9f1ff);
  box-shadow: 0 12px 30px rgba(62,94,145,.09);
}
#gameWorldScreen .game-world-feature::after { content: none; }
#gameWorldScreen .game-world-feature > div { position: relative; z-index: 1; }
#gameWorldScreen .game-world-feature-tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #3866a9; background: #fff; font-size: 10px; font-weight: 850; }
#gameWorldScreen .game-world-feature h3 { margin: 8px 0 4px; color: #18243a; font-size: 20px; letter-spacing: -.04em; }
#gameWorldScreen .game-world-feature p { margin: 0; color: #71829b; font-size: 12px; }
#gameWorldScreen .game-world-feature button { position: relative; z-index: 1; flex: 0 0 auto; padding: 12px 15px; border: 0; border-radius: 13px; color: #fff; background: #3563a7; box-shadow: 0 5px 12px rgba(53,99,167,.2); font-size: 12px; font-weight: 850; }
#gameWorldScreen .game-world-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 -10px; }
#gameWorldScreen .game-world-search { width: min(340px,100%); min-width: 0; min-height: 42px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #dce4ef; border-radius: 13px; background: #fff; color: #8d9bb0; }
#gameWorldScreen .game-world-search > span { font-size: 20px; line-height: 1; }
#gameWorldScreen .game-world-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #24344e; background: transparent; font: inherit; font-size: 12px; }
#gameWorldScreen .game-world-view-toggle { height: 42px; box-sizing: border-box; display: flex; align-items: center; padding: 3px; border: 1px solid #dce4ef; border-radius: 12px; background: #fff; }
#gameWorldScreen .game-world-view-toggle button { flex: 0 0 34px; width: 34px; height: 34px; min-height: 34px; box-sizing: border-box; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #8998ad; background: transparent; font-size: 16px; line-height: 1; }
#gameWorldScreen .game-world-view-toggle button.is-active { color: #345e9e; background: #eaf1fc; }
#gameWorldScreen .game-world-tabs { display: flex; flex-wrap: nowrap; justify-content: flex-start; width: 100%; margin: 0; padding: 2px 1px 10px; overflow-x: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; scrollbar-width: none; }
#gameWorldScreen .game-world-tabs::-webkit-scrollbar { display: none; }
#gameWorldScreen .game-world-tab { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #dce4ef; border-radius: 999px; color: #697991; background: rgba(255,255,255,.82); font-size: 11px; white-space: nowrap; }
#gameWorldScreen .game-world-tab span { color: #93a2b7; font-size: 10px; }
#gameWorldScreen .game-world-tab:hover { border-color: #a9c1e6; color: #355f9e; background: #fff; }
#gameWorldScreen .game-world-tab.is-active { border-color: #355f9e; color: #fff; background: #355f9e; box-shadow: 0 5px 12px rgba(53,95,158,.2); }
#gameWorldScreen .game-world-tab.is-active span { color: #dce8fa; }
#gameWorldScreen .game-world-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -5px 2px -10px; }
#gameWorldScreen .game-world-results-heading h3 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
#gameWorldScreen .game-world-results-heading > span { color: #8291a7; font-size: 10px; }
#gameWorldScreen .game-world-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 0; }
#gameWorldScreen .game-world-item { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 1px solid #dfe6f0; border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: 0 7px 20px rgba(29,51,82,.055); transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
#gameWorldScreen .game-world-item:hover,#gameWorldScreen .game-world-item:focus-visible { transform: translateY(-3px); border-color: #b8cce8; outline: 0; box-shadow: 0 13px 26px rgba(29,51,82,.11); }
#gameWorldScreen .game-world-item-icon { position: relative; width: 100%; height: 116px; flex: 0 0 116px; display: grid; place-items: center; border: 0; border-radius: 0; background: linear-gradient(145deg,#eef3fa,#e5ecf6); box-shadow: none; }
#gameWorldScreen .game-world-item-icon img { width: 94px; height: 94px; border-radius: 19px; object-fit: cover; box-shadow: 0 8px 18px rgba(34,49,72,.16); }
#gameWorldScreen .game-world-item > span:nth-child(2) { width: 100%; min-height: 86px; padding: 12px 13px 13px; text-align: left; }
#gameWorldScreen .game-world-item strong { margin-bottom: 6px; font-size: 13px; }
#gameWorldScreen .game-world-item small { min-height: 30px; font-size: 10px; line-height: 1.5; }
#gameWorldScreen .game-world-item-chevron { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #345e9e; background: rgba(255,255,255,.88); font-size: 20px; }
#gameWorldScreen .game-world-item-status { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: flex; gap: 4px; }
#gameWorldScreen .stop-challenge-menu-badge { max-width: 100%; padding: 4px 6px; font-size: 9px; }
#gameWorldScreen .stop-challenge-world-item .game-world-item-status { inset: 0; display: block; pointer-events: none; }
#gameWorldScreen .stop-challenge-world-item .game-world-item-status .game-world-item-chevron { top: 9px; right: 9px; }
#gameWorldScreen .stop-challenge-world-item .stop-challenge-menu-badge { position: absolute; right: 10px; bottom: 10px; }
#gameWorldScreen .stop-challenge-world-item .stop-challenge-menu-badge.is-rank:not(.hidden) { bottom: 38px; }
#gameWorldScreen .game-world-complete-badge { top: auto; right: 10px; bottom: 10px; margin: 0; transform: none; }
#gameWorldScreen .game-world-empty { grid-column: 1/-1; margin: 0; padding: 36px 15px; border: 1px dashed #cbd6e5; border-radius: 16px; color: #8190a5; text-align: center; font-size: 12px; }
#gameWorldScreen .game-world-list.is-list-view { grid-template-columns: 1fr; }
#gameWorldScreen .game-world-list.is-list-view .game-world-item { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; min-height: 76px; padding: 0; }
#gameWorldScreen .game-world-list.is-list-view .game-world-item-icon { width: 76px; height: 76px; flex-basis: 76px; }
#gameWorldScreen .game-world-list.is-list-view .game-world-item-icon img { width: 58px; height: 58px; border-radius: 14px; }
#gameWorldScreen .game-world-list.is-list-view .game-world-item > span:nth-child(2) { min-height: 0; padding: 10px 13px; }
#gameWorldScreen .game-world-list.is-list-view .game-world-item small { min-height: 0; }
#gameWorldScreen .game-world-list.is-list-view .game-world-item-chevron { position: static; background: transparent; }
html[data-theme="dark"] #gameWorldScreen .game-world-feature { border-color: #3b526f; background: radial-gradient(circle at 88% 15%,rgba(101,137,198,.22),transparent 31%),linear-gradient(115deg,#1b2b42,#182538 68%,#1c2c45); }
html[data-theme="dark"] #gameWorldScreen .game-world-feature h3 { color: #f1f5fb; }
html[data-theme="dark"] #gameWorldScreen .game-world-feature p { color: #a6b6cd; }
html[data-theme="dark"] #gameWorldScreen .game-world-feature-tag { color: #c3d8fa; background: #273b58; }
html[data-theme="dark"] #gameWorldScreen .game-world-search,html[data-theme="dark"] #gameWorldScreen .game-world-view-toggle { border-color: #354258; background: #1c2737; color: #bac8db; }
html[data-theme="dark"] #gameWorldScreen .game-world-search input { color: #e9eff8; }
html[data-theme="dark"] #gameWorldScreen .game-world-tab:not(.is-active) { border-color: #354258; color: #bac8db; background: #1c2737; }
html[data-theme="dark"] #gameWorldScreen .game-world-tab span { color: #8ea0b9; }
html[data-theme="dark"] #gameWorldScreen .game-world-results-heading h3 { color: #eff4fc; }
html[data-theme="dark"] #gameWorldScreen .game-world-results-heading > span { color: #9caec5; }
html[data-theme="dark"] #gameWorldScreen .game-world-item { border-color: #334155; background: #1a2433; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
html[data-theme="dark"] #gameWorldScreen .game-world-favorite-button { border: 0; background: transparent; color: #9aabc2; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
html[data-theme="dark"] #gameWorldScreen .game-world-favorite-button.is-favorite { background: transparent; color: #f3c451; }
html[data-theme="dark"] #gameWorldScreen .game-world-item-icon { background: linear-gradient(140deg,#26354a,#202c3e); }
html[data-theme="dark"] #gameWorldScreen .game-world-item-chevron { color: #c5d8f4; background: rgba(28,39,55,.92); }
html[data-theme="dark"] #gameWorldScreen .game-world-empty { border-color: #394960; color: #aab8ca; }
body[data-current-screen="nanta-gym"] .bottom-nav { display: none !important; }
#nantaGymScreen { width: min(100%, 980px); margin: 0 auto; }
#nantaGymScreen .nanta-header { align-items: center; }
#nantaGymScreen .nanta-header h2 { margin: 4px 0; }
#nantaGymScreen .nanta-header p { display: flex; align-items: center; gap: 7px; margin: 5px 0 0; color: #6b7b91; font-size: 12px; }
#nantaGymScreen .nanta-header p strong { color: #315a9f; }
.nanta-gym-layout { display: grid; gap: 12px; min-width: 0; }
.nanta-court-shell { overflow: hidden; padding: 10px; border: 1px solid #d6e3e8; border-radius: 22px; background: linear-gradient(145deg,#f6fbf8,#e9f2f1); box-shadow: 0 12px 28px rgba(23,55,72,.1); }
#nantaCourt { display: block; width: 100%; aspect-ratio: 1.42; max-height: min(60vh,620px); border-radius: 15px; touch-action: none; }
.nanta-court-help { padding: 8px 4px 1px; color: #72849a; text-align: center; font-size: 11px; }
.nanta-controls-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #dce5ef; border-radius: 17px; background: #fff; }
.nanta-dpad { flex: 0 0 auto; display: grid; grid-template: repeat(2,42px)/repeat(3,42px); gap: 4px; }
.nanta-dpad button { width: 42px; min-height: 42px; padding: 0; border: 1px solid #d7e2ef; border-radius: 12px; background: #edf3fb; color: #345f9e; font-size: 19px; font-weight: 800; touch-action: none; user-select: none; }
.nanta-dpad button[data-nanta-move="up"] { grid-area: 1/2; }
.nanta-dpad button[data-nanta-move="left"] { grid-area: 2/1; }
.nanta-dpad button[data-nanta-move="down"] { grid-area: 2/2; }
.nanta-dpad button[data-nanta-move="right"] { grid-area: 2/3; }
.nanta-action-buttons { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.nanta-action-buttons button { min-height: 40px; padding: 8px 12px; border-radius: 12px; font-size: 12px; }
.nanta-action-buttons button[aria-pressed="true"] { border-color: #2c986e; background: #e0f4e9; color: #16724f; }
.nanta-chat-panel { overflow: hidden; border: 1px solid #dce5ef; border-radius: 17px; background: #fff; }
.nanta-chat-heading { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border-bottom: 1px solid #e8edf4; color: #243851; }
.nanta-chat-heading span { color: #8291a5; font-size: 11px; }
.nanta-chat-messages { display: flex; min-height: 56px; max-height: 150px; flex-direction: column; gap: 5px; overflow: auto; padding: 9px 13px; }
.nanta-chat-empty { margin: auto; color: #98a5b7; font-size: 12px; }
.nanta-chat-message { display: flex; align-items: baseline; gap: 8px; margin: 0; color: #485a72; font-size: 12px; overflow-wrap: anywhere; }
.nanta-chat-message strong { flex: 0 0 auto; color: var(--nanta-player-color,#4776c0); }
.nanta-chat-form { display: flex; gap: 8px; padding: 9px; border-top: 1px solid #e8edf4; }
.nanta-chat-form input { min-width: 0; min-height: 40px; flex: 1 1 auto; padding: 8px 11px; border: 1px solid #d7e1ee; border-radius: 11px; font-size: 16px; }
.nanta-chat-form button { flex: 0 0 auto; min-width: 62px; padding: 8px 12px; border-radius: 11px; background: #315f9f; color: #fff; }
#nantaGymStatus { margin: 0; }
html[data-theme="dark"] .nanta-court-shell { border-color: #334a5c; background: linear-gradient(145deg,#1b2936,#182431); }
html[data-theme="dark"] .nanta-controls-row, html[data-theme="dark"] .nanta-chat-panel { border-color: #344357; background: #1b2635; }
html[data-theme="dark"] .nanta-dpad button { border-color: #35465d; background: #26364b; color: #c3d8f5; }
html[data-theme="dark"] .nanta-chat-heading { border-bottom-color: #354357; color: #e8eef7; }
html[data-theme="dark"] .nanta-chat-message { color: #c1cddd; }
html[data-theme="dark"] .nanta-chat-form { border-top-color: #354357; }
html[data-theme="dark"] .nanta-chat-form input { border-color: #39495e; background: #141e2c; color: #f0f4fa; }
html[data-theme="dark"] #nantaGymScreen .nanta-header p { color: #a8b7ca; }
@media (max-width: 620px) {
  #nantaGymScreen { gap: 11px; }
  #nantaCourt { aspect-ratio: .92; max-height: 56dvh; }
  .nanta-court-shell { padding: 7px; border-radius: 17px; }
  .nanta-controls-row { align-items: center; gap: 9px; padding: 9px; }
  .nanta-dpad { grid-template: repeat(2,38px)/repeat(3,38px); }
  .nanta-dpad button { width: 38px; min-height: 38px; border-radius: 10px; }
  .nanta-action-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nanta-action-buttons button { min-width: 0; min-height: 38px; padding: 7px 6px; font-size: 11px; }
}
@media (min-width: 850px) { #gameWorldScreen .game-world-item-icon { height: 136px; flex-basis: 136px; } #gameWorldScreen .game-world-item-icon img { width: 104px; height: 104px; } }
@media (max-width: 850px) { #gameWorldScreen .game-world-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) {
  #gameWorldScreen .game-world-feature { min-height: 134px; padding: 18px; }
  #gameWorldScreen .game-world-feature h3 { font-size: 17px; }
  #gameWorldScreen .game-world-feature p { max-width: 205px; font-size: 10px; }
  #gameWorldScreen .game-world-feature button { padding: 10px; font-size: 10px; }
  #gameWorldScreen .game-world-list { gap: 10px; }
  #gameWorldScreen .game-world-item-icon { height: 105px; flex-basis: 105px; }
  #gameWorldScreen .game-world-item-icon img { width: 82px; height: 82px; border-radius: 16px; }
  #gameWorldScreen .game-world-item > span:nth-child(2) { padding: 10px 11px 11px; }
}
@media (max-width: 370px) { #gameWorldScreen .game-world-list { gap: 8px; } #gameWorldScreen .game-world-item-icon { height: 92px; flex-basis: 92px; } #gameWorldScreen .game-world-item-icon img { width: 72px; height: 72px; } }
@media (max-width: 420px) {
  .tichu-play-option-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

#gameWorldScreen .game-world-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: -6px 0 2px;
  padding: 6px;
  border: 1px solid #d5e0ef;
  border-radius: 16px;
  background: #edf3fb;
  box-shadow: 0 5px 16px rgba(31, 56, 91, .08);
}
#gameWorldScreen .game-world-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #415975;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
#gameWorldScreen .game-world-tab:hover { background: #e1eafa; color: #234e88; }
#gameWorldScreen .game-world-tab.is-active {
  border-color: #2b63ad;
  background: linear-gradient(135deg, #4b8bea, #2459a8);
  box-shadow: 0 4px 10px rgba(36, 89, 168, .22);
  color: #fff;
}
#gameWorldScreen .game-world-tab:focus-visible { outline: 3px solid rgba(63, 126, 220, .38); outline-offset: 2px; }
#gameWorldScreen .game-world-tabs { cursor: grab; user-select: none; -webkit-user-select: none; }
#gameWorldScreen .game-world-tabs.is-dragging { cursor: grabbing; }
#gameWorldScreen .game-world-item[hidden] { display: none !important; }
html[data-theme="dark"] #gameWorldScreen .game-world-tabs {
  border-color: #344861;
  background: #172337;
  box-shadow: 0 7px 20px rgba(0,0,0,.22);
}
html[data-theme="dark"] #gameWorldScreen .game-world-tab { color: #c5d3e6; }
html[data-theme="dark"] #gameWorldScreen .game-world-tab:hover { background: #243851; color: #edf4ff; }
html[data-theme="dark"] #gameWorldScreen .game-world-tab.is-active {
  border-color: #6a9ce2;
  background: linear-gradient(135deg, #3979cb, #24549b);
  color: #fff;
}
@media (max-width: 700px) {
  #gameWorldScreen .game-world-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    gap: 6px;
    overflow-x: scroll;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #gameWorldScreen .game-world-tabs::-webkit-scrollbar { display: none; }
  #gameWorldScreen .game-world-tab { flex: 0 0 auto; padding-inline: 12px; white-space: nowrap; }
}

#tichuHandToggle #tichuSelectionCount { margin-left: auto; white-space: nowrap; }

/* 게임세상 시안의 유광 그라데이션과 캡슐형 분류 탭 */
#gameWorldScreen .game-world-toolbar { padding: 8px; border: 1px solid #dce6f4; border-radius: 17px; background: linear-gradient(115deg,#edf3fc,#f8faff 54%,#eaf1fb); box-shadow: 0 5px 16px rgba(31,56,91,.06); }
#gameWorldScreen .game-world-search { background: linear-gradient(135deg,#fff,#f5f8fd); }
#gameWorldScreen .game-world-view-toggle { background: linear-gradient(135deg,#f7faff,#eaf1fb); }
#gameWorldScreen .game-world-view-toggle button.is-active { background: linear-gradient(135deg,#f5f8ff,#dce8fa); box-shadow: inset 0 1px 3px rgba(38,77,137,.12); }
#gameWorldScreen .game-world-tabs { gap: 8px; padding: 3px 1px 10px; }
#gameWorldScreen .game-world-tab { min-height: 38px; border: 1px solid #dce4ef; border-radius: 999px; color: #697991; background: linear-gradient(135deg,rgba(255,255,255,.98),rgba(239,244,251,.92)); font-size: 11px; }
#gameWorldScreen .game-world-tab:hover { border-color: #a9c1e6; color: #355f9e; background: linear-gradient(135deg,#fff,#eaf2ff); }
#gameWorldScreen .game-world-tab.is-active { border-color: #355f9e; color: #fff; background: linear-gradient(135deg,#4d79bd,#315a9f 60%,#294e8b); box-shadow: 0 5px 12px rgba(53,95,158,.22); }
#gameWorldScreen .game-world-tab span { color: #93a2b7; }
#gameWorldScreen .game-world-tab.is-active span { color: #dce8fa; }
#gameWorldScreen .game-world-item { background: linear-gradient(145deg,#fff 0%,#f8faff 57%,#edf3fb 100%); }
#gameWorldScreen .game-world-item-wrap:nth-child(6n + 1) .game-world-item-icon { background: linear-gradient(145deg,#e7f5ed,#f3faf6 70%,#e2f0e9); }
#gameWorldScreen .game-world-item-wrap:nth-child(6n + 2) .game-world-item-icon { background: linear-gradient(145deg,#efeafb,#f7f4fd 70%,#e8e1f6); }
#gameWorldScreen .game-world-item-wrap:nth-child(6n + 3) .game-world-item-icon { background: linear-gradient(145deg,#e8effa,#f4f7fc 70%,#e2eaf6); }
#gameWorldScreen .game-world-item-wrap:nth-child(6n + 4) .game-world-item-icon { background: linear-gradient(145deg,#e5f2f3,#f2f9f8 70%,#deeeee); }
#gameWorldScreen .game-world-item-wrap:nth-child(6n + 5) .game-world-item-icon { background: linear-gradient(145deg,#fff2df,#fff9ef 70%,#f8ead2); }
#gameWorldScreen .game-world-item-wrap:nth-child(6n) .game-world-item-icon { background: linear-gradient(145deg,#f6eddf,#fcf8ef 70%,#f1e6d3); }
html[data-theme="dark"] #gameWorldScreen .game-world-toolbar { border-color: #354258; background: linear-gradient(115deg,#1c293c,#202d41 54%,#192638); }
html[data-theme="dark"] #gameWorldScreen .game-world-search { background: linear-gradient(135deg,#202d40,#182436); }
html[data-theme="dark"] #gameWorldScreen .game-world-view-toggle { background: linear-gradient(135deg,#202d40,#182436); }
html[data-theme="dark"] #gameWorldScreen .game-world-view-toggle button.is-active { color: #e4efff; background: linear-gradient(135deg,#344b6c,#263b58); }
html[data-theme="dark"] #gameWorldScreen .game-world-tab:not(.is-active) { border-color: #354258; color: #bac8db; background: linear-gradient(135deg,#243248,#1a2638 75%,#202d40); }
html[data-theme="dark"] #gameWorldScreen .game-world-tab:hover:not(.is-active) { background: linear-gradient(135deg,#304562,#22354e); }
html[data-theme="dark"] #gameWorldScreen .game-world-tab.is-active { border-color: #6c95cf; background: linear-gradient(135deg,#4f83c8,#315f9f 60%,#294e83); }
/* 게임 종류 탭은 바깥 컨테이너 장식 없이 버튼들만 보이게 유지합니다. */
#gameWorldScreen .game-world-tabs,
html[data-theme="dark"] #gameWorldScreen .game-world-tabs { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html[data-theme="dark"] #gameWorldScreen .game-world-item { background: linear-gradient(145deg,#202d40 0%,#192536 65%,#1d2a3d 100%); }
html[data-theme="dark"] #gameWorldScreen .game-world-item-wrap:nth-child(6n + 1) .game-world-item-icon { background: linear-gradient(145deg,#24483e,#1b302d); }
html[data-theme="dark"] #gameWorldScreen .game-world-item-wrap:nth-child(6n + 2) .game-world-item-icon { background: linear-gradient(145deg,#40385b,#2d2943); }
html[data-theme="dark"] #gameWorldScreen .game-world-item-wrap:nth-child(6n + 3) .game-world-item-icon { background: linear-gradient(145deg,#2c405c,#202f46); }
html[data-theme="dark"] #gameWorldScreen .game-world-item-wrap:nth-child(6n + 4) .game-world-item-icon { background: linear-gradient(145deg,#24434d,#1c3239); }
html[data-theme="dark"] #gameWorldScreen .game-world-item-wrap:nth-child(6n + 5) .game-world-item-icon { background: linear-gradient(145deg,#54452e,#392f24); }
html[data-theme="dark"] #gameWorldScreen .game-world-item-wrap:nth-child(6n) .game-world-item-icon { background: linear-gradient(145deg,#4a3b2c,#332b23); }
#tichuSpecialCardsOpen { color: #147a42 !important; background: #e5f7ec; border-color: #76c795 !important; }
#tichuSpecialCardsKnown { color: #b42332 !important; background: #fff0f1; border-color: #e79aa2 !important; }
html[data-theme="dark"] #tichuSpecialCardsOpen { color: #8ce0aa !important; background: #173c2b; border-color: #397e56 !important; }
html[data-theme="dark"] #tichuSpecialCardsKnown { color: #ff9da6 !important; background: #45252d; border-color: #95515a !important; }
/* 렉시오 방은 기존 대결방의 공통 폭·간격·좌석·상태·조작 배치를 따릅니다. */
#lexioGameScreen { min-height: 0; }
.lexio-game-icon { overflow: hidden; background: #101b45; }
.lexio-game-room { display: grid; gap: 10px; width: 100%; min-width: 0; max-width: 100%; padding: 0 0 calc(18px + env(safe-area-inset-bottom)); }
.lexio-game-room > * { min-width: 0; max-width: 100%; }
.lexio-players { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.lexio-player { gap: 2px; min-width: 0; min-height: 70px; padding: 8px 10px; border-radius: 13px; box-shadow: 0 3px 10px rgba(27,49,78,.06); }
.lexio-player b { color: var(--primary); font-size: .68rem; }
.lexio-player strong { min-width: 0; overflow: hidden; color: #182a43; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.lexio-player small { overflow: visible; color: #6b7c93; font-size: .68rem; line-height: 1.3; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.lexio-player .game-turn-timeout { color: #d13b32; font-size: .76rem; font-weight: 800; }
.lexio-player .game-turn-timeout.is-active { color: #d13b32; animation: game-turn-alert 1s ease-in-out infinite; }
html[data-theme="dark"] .lexio-player .game-turn-timeout { color: #ff7770; }
@media (prefers-reduced-motion: reduce) { .lexio-player .game-turn-timeout.is-active { animation: none; } }
.lexio-player.is-turn { border-color: #f0a629; background: #fff8e6; box-shadow: 0 0 0 2px rgba(240,166,41,.18); }
.lexio-player.is-me { background: #edf4ff; }
.lexio-records { min-height: 0; margin: 0; }
.lexio-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-height: 40px; margin: 0; }
.lexio-actions > button { min-width: 0; min-height: 40px; padding: 7px 8px; font-size: .76rem; line-height: 1.25; overflow-wrap: anywhere; }
.lexio-actions > button:only-child { grid-column: 1 / -1; }
.lexio-forfeit-row { display: flex; justify-content: flex-end; min-height: 0; }
.lexio-forfeit-row > button:not(.hidden) { min-width: min(100%, 180px); min-height: 40px; }
.lexio-hand-actions { padding: 8px; border: 1px solid #d8e1ef; border-radius: 14px; background: #f5f8fc; box-shadow: 0 4px 12px rgba(27,49,78,.07); }
.lexio-hand-actions > span { grid-column: 1 / -1; display: grid; place-items: center; min-height: 40px; color: #60748f; font-size: .82rem; font-weight: 700; text-align: center; }
html[data-theme="dark"] .lexio-hand-actions { border-color: #344861; background: #121e2f; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
html[data-theme="dark"] .lexio-hand-actions > span { color: #aebdd0; }
.lexio-game-error { width: 100%; box-sizing: border-box; margin: -2px 0 0; padding: 10px 12px; border: 1px solid #e39a9a; border-radius: 12px; background: #fff1f1; color: #b42318; font-size: .82rem; font-weight: 700; line-height: 1.45; white-space: pre-line; }
.lexio-turn-status-panel { position: relative; z-index: 2; width: 100%; box-sizing: border-box; min-height: 46px; margin: 0; padding: 9px 12px; border: 1px solid #d8e1ef; border-radius: 14px; background: #fff; font-size: .92rem; line-height: 1.3; }
.lexio-turn-status-panel.is-my-turn { border-color: #e5a41f; background: #fff8e6; color: #a76400; animation: tichu-my-turn-pulse 1.15s ease-in-out infinite; }
.lexio-turn-status-panel.is-neutral { color: #60748f; }
.lexio-match-rounds-control { display: grid; grid-template-columns: auto minmax(120px, 180px); align-items: center; gap: 6px 12px; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d8e1ef; border-radius: 14px; background: #fff; color: #273a54; }
.lexio-match-rounds-control > label { font-size: .86rem; font-weight: 800; }
.lexio-match-rounds-control > select { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid #c8d5e6; border-radius: 9px; background: #f5f8fc; color: #203957; font: inherit; font-weight: 700; }
.lexio-match-rounds-control > select:disabled { opacity: .78; }
.lexio-match-rounds-control > small { grid-column: 1 / -1; color: #6b7c93; font-size: .75rem; line-height: 1.35; }
.lexio-turn-order { display: grid; grid-template-columns: repeat(var(--lexio-turn-count, 4), minmax(0, 1fr)); gap: 6px; width: 100%; margin: 0; }
.lexio-turn-order > span { display: block; min-width: 0; min-height: 52px; overflow: hidden; padding: 5px 3px; border: 2px solid #d5b47b; border-radius: 10px; background: #e7f2ee; color: #145747; font-size: clamp(.67rem, 2vw, .88rem); font-weight: 800; line-height: 18px; text-align: center; }
.lexio-turn-order strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lexio-turn-order small { display: block; font-size: .68rem; line-height: 17px; }
.lexio-turn-order > span.is-current { border-color: #e7a91d; background: #ffe393; color: #543300; box-shadow: 0 0 0 2px rgba(231,169,29,.22); }
html[data-theme="dark"] .lexio-turn-order > span { background: #193e37; color: #e1f4ec; }
html[data-theme="dark"] .lexio-turn-order > span.is-current { background: #9e6d17; color: #fff7d6; }
.lexio-table { position: relative; display: grid; place-items: center; align-content: center; gap: .7rem; width: 100%; min-height: 230px; aspect-ratio: 2 / 1; padding: 20px 24px; overflow: hidden; border: 4px solid #d5b47b; border-radius: 26px; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.12) 0 2px, transparent 3px), radial-gradient(circle at 50% 50%, #1c785f, #0d483d 76%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.14), 0 10px 24px rgba(17,54,48,.2); color: #fff; }
.lexio-table::after { content: ""; position: absolute; inset: 29% 24%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; pointer-events: none; }
.lexio-table > span { position: relative; z-index: 1; color: #d9eee7; font-size: .78rem; }
.lexio-table > small { position: relative; z-index: 1; min-height: 1.2rem; color: #ffe091; font-weight: 800; }
.lexio-trick { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; width: 100%; min-height: 120px; }
.lexio-trick .lexio-tile + .lexio-tile { margin-left: -2.2rem; }
.lexio-trick p { color: rgba(255,255,255,.8); text-align: center; }
.lexio-hand-panel { min-width: 0; padding: 0 12px 12px; border: 1px solid #d8e1ef; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(27,49,78,.08); }
.lexio-hand-panel.is-my-turn { border-color: #1677ff; animation: lexio-hand-turn-pulse 1.25s ease-in-out infinite; }
@keyframes lexio-hand-turn-pulse { 0%, 100% { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,.08), 0 4px 14px rgba(27,49,78,.08); } 50% { border-color: #69a9ff; box-shadow: 0 0 0 4px rgba(22,119,255,.3), 0 4px 18px rgba(22,119,255,.16); } }
@media (prefers-reduced-motion: reduce) { .lexio-hand-panel.is-my-turn { animation: none; box-shadow: 0 0 0 2px rgba(22,119,255,.22); } }
.lexio-hand-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; margin: 0 -12px; padding: 8px 12px; border-bottom: 1px solid #e5ebf3; color: #273a54; }
.lexio-hand-heading span { color: #6b7787; font-size: .78rem; text-align: right; }
.lexio-hand { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); justify-content: space-between; align-items: end; justify-items: center; gap: 10px 8px; width: 100%; max-width: 100%; min-width: 0; min-height: 0; margin: 0 auto; padding: .8rem .4rem 1rem; overflow: visible; }
.lexio-hand > p { grid-column: 1 / -1; width: 100%; margin: 0; padding: 12px; color: #60748f; text-align: center; }
.lexio-tile { position: relative; display: inline-grid; flex: 0 0 84px; width: 84px; aspect-ratio: 3/4; padding: 0; border: 0; border-radius: 9px; background: transparent; transition: transform .15s ease, filter .15s ease; }
.lexio-hand .lexio-tile { flex: initial; width: 100%; max-width: 112px; min-width: 0; }
button.lexio-tile { cursor: pointer; }
.lexio-tile img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(19,34,52,.22)); }
.lexio-tile.is-selected { z-index: 3; transform: translateY(-8px); outline: 4px solid #1677ff; outline-offset: 2px; border-radius: 10px; background: rgba(22,119,255,.16); filter: drop-shadow(0 0 8px rgba(22,119,255,.9)); }
.lexio-tile:focus-visible { outline: 4px solid #005bd4; outline-offset: 3px; }
html[data-theme="dark"] .lexio-player { border-color: #344861; background: #172337; color: #aebdd0; }
html[data-theme="dark"] .lexio-player strong { color: #edf4ff; }
html[data-theme="dark"] .lexio-player.is-me { background: #1d324a; }
html[data-theme="dark"] .lexio-player.is-turn { border-color: #e5a41f; background: #4b3a1a; }
html[data-theme="dark"] .lexio-records { color: #b5c4d8; }
html[data-theme="dark"] .lexio-turn-status-panel { border-color: #344967; background: #172438; }
html[data-theme="dark"] .lexio-turn-status-panel.is-my-turn { border-color: #e5a41f; background: #4b3a1a; color: #ffd479; }
html[data-theme="dark"] .lexio-match-rounds-control { border-color: #344861; background: #121e2f; color: #edf4ff; }
html[data-theme="dark"] .lexio-match-rounds-control > select { border-color: #405875; background: #1b2a40; color: #edf4ff; }
html[data-theme="dark"] .lexio-match-rounds-control > small { color: #aebdd0; }
html[data-theme="dark"] .lexio-hand-panel { border-color: #344861; background: #121e2f; }
html[data-theme="dark"] .lexio-hand-panel.is-my-turn { border-color: #69a9ff; }
html[data-theme="dark"] .lexio-hand-heading { color: #edf4ff; }
html[data-theme="dark"] .lexio-hand-heading span { color: #aebdd0; }
html[data-theme="dark"] .lexio-hand-heading { border-bottom-color: #344861; }
html[data-theme="dark"] .lexio-game-error { border-color: #a85d65; background: #3b2028; color: #ffb5bb; }
#lexioRulesModal { z-index: 40; box-sizing: border-box; padding: 0; place-items: end center; }
#lexioRulesModal .modal-content { display: flex; flex-direction: column; width: min(100%, 680px); max-width: 680px; height: min(90dvh, 920px); max-height: calc(100dvh - env(safe-area-inset-top) - 12px); box-sizing: border-box; overflow: hidden; padding: 18px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(15,23,42,.28); }
#lexioRulesModal .notice-content { display: flex; flex-direction: column; justify-items: stretch; gap: clamp(8px, 2vh, 14px); padding: clamp(10px, 3vw, 22px); text-align: left; }
#lexioRulesModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#lexioRulesModal .modal-header h2 { min-width: 0; text-align: left; }
#lexioRulesModal .modal-header .close-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#lexioRulesModal .lexio-rules-image { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; width: 100%; min-height: 0; margin: 0; }
#lexioRulesModal .lexio-rules-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 14px; }
#lexioRulesModal .help-text { width: 100%; margin: 0; color: #526983; font-size: .92rem; line-height: 1.7; text-align: left; }
body.lexio-rules-open [data-game-chat-fab="lexio"], body.lexio-rules-open #lexioChatFab { display: none !important; }
html[data-theme="dark"] #lexioRulesModal .help-text { color: #c0cde0; }
@media (max-width: 640px) {
  .lexio-game-room { gap: 10px; }
  .lexio-players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lexio-player { min-height: 66px; padding: 7px 8px; }
  .lexio-table { padding: 18px 14px; }
  .lexio-trick .lexio-tile { flex-basis: 70px; width: 70px; }
  .lexio-trick .lexio-tile + .lexio-tile { margin-left: -1.9rem; }
}
/* 데칼코: 다른 대결방과 같은 로비 카드·초대 코드·좌석·상태 배치. */
#dekalkoGameScreen { display: grid; gap: 12px; width: 100%; min-width: 0; }
#dekalkoGameScreen > * { min-width: 0; }
#dekalkoGameScreen .dekalko-lobby-panel { display: grid; gap: 10px; padding: 0; border: 0; background: transparent; box-shadow: none; }
#dekalkoGameScreen input, #dekalkoGameScreen select { box-sizing: border-box; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #c8d5e8; border-radius: 10px; background: #f5f8fc; color: #203957; font: inherit; }
#dekalkoGameScreen .dekalko-actions button, #dekalkoGameScreen #dekalkoGuessTools button, #dekalkoGameScreen #dekalkoNextRound { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 10px; background: #315a9f; color: #fff; font: inherit; font-weight: 800; }
#dekalkoGameScreen .dekalko-actions button.secondary-button, #dekalkoGameScreen #dekalkoGuessTools button.secondary-button { border: 1px solid #d8e1ef; background: #eaf0fa; color: #315a9f; }
#dekalkoGameScreen .dekalko-refresh-button { justify-self: center; min-height: 36px; padding: 6px 14px; font-size: .78rem; }
#dekalkoGameScreen .dekalko-actions button:disabled { opacity: .55; }
#dekalkoGameScreen .dekalko-room { display: grid; gap: 12px; width: 100%; min-width: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
#dekalkoGameScreen #dekalkoCopyInvite { cursor: pointer; }
#dekalkoGameScreen #dekalkoCopyInvite strong { letter-spacing: .12em; }
#dekalkoGameScreen .dekalko-seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
#dekalkoGameScreen .dekalko-seat { display: grid; gap: 3px; min-width: 0; min-height: 70px; padding: 8px 10px; border: 1px solid #d8e1ef; border-radius: 13px; background: #fff; box-shadow: 0 3px 10px rgba(27,49,78,.06); }
#dekalkoGameScreen .dekalko-seat.is-me { border-color: #79a4ec; background: #edf4ff; }
#dekalkoGameScreen .dekalko-seat small { color: #315a9f; font-size: .68rem; font-weight: 800; }
#dekalkoGameScreen .dekalko-seat strong { overflow: hidden; color: #182a43; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
#dekalkoGameScreen .dekalko-seat span { color: #6b7c93; font-size: .72rem; }
#dekalkoGameScreen .dekalko-seat.is-ready span { color: #21804b; font-weight: 800; }
#dekalkoGameScreen .dekalko-seat.is-finished span { color: #21804b; font-weight: 800; }
#dekalkoGameScreen .dekalko-room-status { display: grid; place-items: center; min-height: 46px; margin: 0; padding: 9px 12px; text-align: center; }
#dekalkoGameScreen .dekalko-actions { display: grid; gap: 8px; }
#dekalkoGameScreen .dekalko-waiting-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#dekalkoGameScreen .dekalko-actions button { min-width: 0; }
#dekalkoGameScreen .dekalko-waiting-actions button:only-child { grid-column: 1 / -1; }
#dekalkoGameScreen .dekalko-play-panel { display: grid; gap: 10px; min-width: 0; }
#dekalkoGameScreen .dekalko-round-status { margin: 0; color: #315a9f; font-size: .82rem; font-weight: 800; }
#dekalkoGameScreen .dekalko-prompt { margin: 0; padding: 11px 12px; border: 1px solid #d8e1ef; border-radius: 12px; background: #f4f8ff; color: #29466c; font-size: .86rem; font-weight: 700; line-height: 1.45; }
#dekalkoGameScreen .dekalko-guess-loading { display: grid; align-content: center; justify-items: center; gap: 12px; min-height: min(58dvh, 440px); padding: 24px; border: 1px solid #d8e1ef; border-radius: 16px; background: #fff; text-align: center; }
#dekalkoGameScreen .dekalko-guess-loading strong { color: #17365f; font-size: 1.15rem; }
#dekalkoGameScreen .dekalko-guess-loading p { margin: 0; color: #536b8c; font-size: .9rem; }
#dekalkoGameScreen .dekalko-guess-loading-spinner { width: 40px; height: 40px; border: 4px solid #d8e7fb; border-top-color: #315a9f; border-radius: 50%; animation: dekalko-loading-spin .9s linear infinite; }
#dekalkoGameScreen.is-guess-loading #dekalkoResult, #dekalkoGameScreen.is-guess-loading .dekalko-score-panel { display: none; }
@keyframes dekalko-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #dekalkoGameScreen .dekalko-guess-loading-spinner { animation: none; } }
#dekalkoGameScreen .dekalko-workspace { min-width: 0; }
#dekalkoGameScreen .dekalko-canvas-wrap { display: grid; justify-items: center; gap: 8px; min-width: 0; padding: 12px; border: 1px solid #d8e1ef; border-radius: 16px; background: #fff; }
#dekalkoGameScreen .dekalko-canvas-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; max-width: 720px; }
#dekalkoGameScreen .dekalko-canvas-heading span { color: #273a54; font-size: .84rem; font-weight: 800; white-space: nowrap; }
#dekalkoGameScreen .dekalko-canvas-heading button { min-height: 34px; font-size: .8rem; }
#dekalkoGameScreen .dekalko-drawing-stage { position: relative; width: min(100%, 720px); aspect-ratio: 1; overflow: hidden; border: 1px solid #d8deea; border-radius: 12px; background: #fff; }
#dekalkoGameScreen .dekalko-source { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
#dekalkoGameScreen .dekalko-source img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: .5; mix-blend-mode: multiply; }
#dekalkoGameScreen .dekalko-source.is-reveal { background: #fff; }
#dekalkoGameScreen .dekalko-source.is-reveal img { opacity: 1; mix-blend-mode: normal; }
#dekalkoCanvas { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; background: #fff; }
#dekalkoGameScreen.is-drawing #dekalkoCanvas { background: rgba(255,255,255,.5); }
#dekalkoGameScreen .dekalko-image-status { position: absolute; z-index: 3; top: 12px; left: 50%; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 7px 10px; border-radius: 8px; background: rgba(28,48,74,.82); color: #fff; font-size: .78rem; font-weight: 700; text-align: center; pointer-events: none; }
#dekalkoGameScreen .dekalko-draw-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#dekalkoGameScreen #dekalkoGuessTools { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; width: min(100%, 720px); min-width: 0; }
#dekalkoGameScreen .dekalko-guess-list { display: grid; gap: 8px; padding: 12px; border: 1px solid #d8e1ef; border-radius: 14px; background: #fff; }
#dekalkoGameScreen .dekalko-guess-list h3 { margin: 0; color: #17365f; font-size: .9rem; }
#dekalkoGameScreen .dekalko-guess-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px; border: 1px solid #d8e1ef; border-radius: 10px; }
#dekalkoGameScreen .dekalko-guess-item small { color: #6b7c93; font-size: .76rem; }
#dekalkoGameScreen .dekalko-guess-item p { grid-column: 1; margin: 0; overflow-wrap: anywhere; font-weight: 700; }
#dekalkoGameScreen .dekalko-guess-item button { grid-column: 2; grid-row: 1 / 3; }
#dekalkoGameScreen .dekalko-no-winner { width: 100%; }
#dekalkoGameScreen #dekalkoResult { display: grid; gap: 6px; }
#dekalkoGameScreen #dekalkoResult > div { padding: 9px 12px; border-radius: 10px; background: #edf4ff; color: #29466c; font-size: .82rem; }
#dekalkoGameScreen .dekalko-score-panel { padding: 12px; border: 1px solid #d8e1ef; border-radius: 14px; background: #fff; }
#dekalkoGameScreen .dekalko-score-panel h3 { margin: 0 0 8px; color: #17365f; font-size: .9rem; }
#dekalkoGameScreen .dekalko-score-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 8px; padding: 8px 4px; border-bottom: 1px solid #d8e1ef; font-size: .82rem; }
#dekalkoGameScreen .dekalko-score-row > :nth-child(n+2) { text-align: center; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-seat, html[data-theme="dark"] #dekalkoGameScreen .dekalko-canvas-wrap, html[data-theme="dark"] #dekalkoGameScreen .dekalko-score-panel, html[data-theme="dark"] #dekalkoGameScreen .dekalko-guess-list, html[data-theme="dark"] #dekalkoGameScreen .dekalko-guess-loading { border-color: #344861; background: #172337; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-guess-loading strong { color: #edf4ff; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-guess-loading p { color: #b5c4d8; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-guess-item { border-color: #344861; color: #edf4ff; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-guess-item small { color: #b5c4d8; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-seat.is-me { background: #1d324a; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-seat strong, html[data-theme="dark"] #dekalkoGameScreen .dekalko-canvas-heading span, html[data-theme="dark"] #dekalkoGameScreen .dekalko-score-panel h3 { color: #edf4ff; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-seat span { color: #b5c4d8; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-seat.is-ready span { color: #78d69b; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-seat.is-finished span { color: #78d69b; }
html[data-theme="dark"] #dekalkoGameScreen input, html[data-theme="dark"] #dekalkoGameScreen select { border-color: #405875; background: #1b2a40; color: #edf4ff; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-prompt, html[data-theme="dark"] #dekalkoGameScreen #dekalkoResult > div { border-color: #344967; background: #1d2b40; color: #d5e4f8; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-score-row { border-color: #344861; color: #edf4ff; }
html[data-theme="dark"] #dekalkoGameScreen .dekalko-actions button.secondary-button, html[data-theme="dark"] #dekalkoGameScreen #dekalkoGuessTools button.secondary-button { border-color: #405875; background: #233650; color: #dbe9ff; }
@media (min-width: 760px) { #dekalkoGameScreen .dekalko-seats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  #dekalkoGameScreen.is-guess-loading #dekalkoCopyInvite, #dekalkoGameScreen.is-guess-loading #dekalkoSeats { display: none; }
  #dekalkoGameScreen.is-guess-loading .dekalko-guess-loading { min-height: min(58dvh, 440px); }
  #dekalkoGameScreen.is-drawing { gap: 8px; }
  #dekalkoGameScreen.is-drawing #dekalkoCopyInvite { display: none; }
  #dekalkoGameScreen.is-drawing .dekalko-seat { min-height: 0; padding: 5px 7px; }
  #dekalkoGameScreen.is-drawing .dekalko-room, #dekalkoGameScreen.is-drawing .dekalko-play-panel { gap: 6px; }
  #dekalkoGameScreen.is-drawing .dekalko-room-status { min-height: 0; padding: 4px 6px; font-size: .78rem; }
  #dekalkoGameScreen.is-drawing .dekalko-round-status, #dekalkoGameScreen.is-drawing .dekalko-canvas-heading { display: none; }
  #dekalkoGameScreen.is-drawing .dekalko-prompt { padding: 7px 9px; font-size: .78rem; line-height: 1.3; }
  #dekalkoGameScreen.is-drawing .dekalko-canvas-wrap { gap: 4px; padding: 6px; }
  #dekalkoGameScreen.is-drawing .dekalko-drawing-stage { width: min(100%, max(120px, calc(100dvh - 285px))); }
}
@media (max-width: 540px) { #dekalkoGameScreen #dekalkoGuessTools { grid-template-columns: repeat(2, minmax(0, 1fr)); } #dekalkoGameScreen #dekalkoGuessInput { grid-column: 1 / -1; } }
#dekalkoRulesModal { z-index: 40; box-sizing: border-box; padding: 0; place-items: end center; }
#dekalkoRulesModal .modal-content { width: min(100%, 680px); max-width: 680px; max-height: min(82dvh, 600px); box-sizing: border-box; padding: 22px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(15,23,42,.28); }
#dekalkoRulesModal .notice-content { justify-items: stretch; gap: 14px; text-align: left; }
#dekalkoRulesModal .modal-header { width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#dekalkoRulesModal .modal-header h2 { min-width: 0; text-align: left; }
#dekalkoRulesModal .modal-header .close-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; margin-left: auto; line-height: 1; }
#dekalkoRulesModal .help-text { width: 100%; margin: 0; color: #526983; font-size: .92rem; line-height: 1.7; text-align: left; }
html[data-theme="dark"] #dekalkoRulesModal .help-text { color: #c0cde0; }
#dekalkoGuessModal { z-index:1100; box-sizing:border-box; padding:12px; overflow:hidden; inset:0 0 auto; height:100svh; min-height:0; place-items:center; }
#dekalkoGuessModal .dekalko-guess-modal-content { display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; gap:10px; width:min(100%,560px); height:min(720px,calc(100svh - 24px)); max-height:none; min-height:0; box-sizing:border-box; overflow:hidden; padding:14px; border-radius:16px; }
#dekalkoGuessModal .modal-header { margin:0; min-width:0; gap:8px; }
#dekalkoGuessModal .modal-header h2 { margin:0; min-width:0; font-size:1rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dekalko-guess-picture { min-height:0; min-width:0; display:grid; place-items:center; overflow:hidden; container-type:size; }
#dekalkoGuessCanvas { display:block; width:min(100cqw,100cqh); height:min(100cqw,100cqh); background:#fff; border:1px solid #d3ddec; border-radius:10px; box-sizing:border-box; }
#dekalkoGuessModal #dekalkoGuessTools { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#dekalkoGuessModal #dekalkoGuessInput { grid-column:1/-1; width:100%; min-width:0; box-sizing:border-box; height:40px; }
#dekalkoGuessModal #dekalkoGuessTools button { min-height:36px; padding:6px; }
#dekalkoGuessModalError { margin:0; color:#c93838; font-size:.75rem; line-height:1.3; overflow:hidden; max-height:2.6em; }
#dekalkoGuessModalError:empty { display:none; }
html[data-theme="dark"] #dekalkoGuessModal input { background:#1b2a40; color:#edf4ff; border-color:#405875; }

.just-one-game-icon img { object-fit: cover; }
.just-one-room { max-width: 920px; }
.just-one-round-meta, .just-one-card-panel, .just-one-clue-panel, .just-one-guess-panel, .just-one-round-result, .just-one-history { margin-top: 14px; padding: 16px; border: 1px solid #d5dfef; border-radius: 18px; background: rgba(255,255,255,.7); }
.just-one-round-meta { display: flex; justify-content: space-between; gap: 12px; color: #315c9e; }
.just-one-word-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.just-one-word { min-height: 100px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 10px; border: 1px solid #d7c9b1; border-radius: 15px; background: #fffaf0; text-align: center; }
.just-one-word b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #315fa8; color: white; }
.just-one-word strong { font-size: 1.05rem; color: #3b2d24; }
.just-one-word small { color: #856f5c; }
.just-one-word.is-selected { outline: 3px solid #4676c9; }
.just-one-form { display: grid; gap: 10px; margin-top: 10px; }
.just-one-form input { min-height: 46px; padding: 10px 14px; border: 1px solid #cdd9eb; border-radius: 12px; background: #fff; font: inherit; }
.just-one-form button { min-height: 44px; border: 0; border-radius: 12px; background: #3567b1; color: #fff; font-weight: 800; cursor: pointer; }
.just-one-number-buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.just-one-clue-list > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.just-one-clue-list span { padding: 8px 12px; border-radius: 999px; background: #e7eefb; color: #234b89; font-weight: 700; }
.just-one-review-list { display: grid; gap: 8px; }
.just-one-review-clue { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd8ea; border-radius: 12px; background: #fff; color: #244a82; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.just-one-review-clue small { color: #6580a7; font-size: .76rem; }
.just-one-review-clue.is-excluded { opacity: .48; background: #d8e0eb; text-decoration: line-through; }
.just-one-vote-panel { display: grid; gap: 10px; margin-top: 10px; }
.just-one-vote-panel > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.just-one-vote-panel button { min-height: 44px; border: 0; border-radius: 12px; background: #3567b1; color: #fff; font-weight: 800; cursor: pointer; }
.just-one-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.just-one-result { display: grid; gap: 5px; background: #edf5ff; }
.just-one-result strong { color: #245aa7; font-size: 1.15rem; }
.just-one-history-title { font-weight: 800; color: #315c9e; }
.just-one-history-list { display: grid; gap: 6px; margin-top: 10px; }
.just-one-history-list div { display: grid; grid-template-columns: 50px 1fr 60px 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid #e6ecf5; }
.just-one-muted { margin: 0; color: #6d7e98; }
html[data-theme="dark"] .just-one-round-meta, html[data-theme="dark"] .just-one-card-panel, html[data-theme="dark"] .just-one-clue-panel, html[data-theme="dark"] .just-one-guess-panel, html[data-theme="dark"] .just-one-round-result, html[data-theme="dark"] .just-one-history { border-color: #385071; background: #17253a; }
html[data-theme="dark"] .just-one-word { background: #2a2830; border-color: #725f49; }
html[data-theme="dark"] .just-one-word strong { color: #fff1d6; }
html[data-theme="dark"] .just-one-word small, html[data-theme="dark"] .just-one-muted { color: #afbdd2; }
html[data-theme="dark"] .just-one-form input { border-color: #405778; background: #101b2b; color: #edf3ff; }
html[data-theme="dark"] .just-one-clue-list span { background: #253f67; color: #c8dcff; }
html[data-theme="dark"] .just-one-review-clue { border-color: #405778; background: #101b2b; color: #d7e6ff; }
html[data-theme="dark"] .just-one-review-clue small { color: #9fb6d8; }
html[data-theme="dark"] .just-one-review-clue.is-excluded { background: #334256; }
@media (max-width: 640px) {
  .just-one-word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .just-one-word-grid .just-one-word:last-child { grid-column: 1 / -1; }
  .just-one-round-meta { flex-direction: column; }
  .just-one-history-list div { grid-template-columns: 42px 1fr 48px; }
  .just-one-history-list div span:last-child { grid-column: 2 / -1; }
}
/* Avalon social-deduction room */
#avalonRulesModal{z-index:40;place-items:end center;box-sizing:border-box;padding:0}
#avalonRulesModal .modal-content{width:min(100%,680px);max-width:680px;max-height:min(82dvh,600px);box-sizing:border-box;padding:22px;border-radius:20px 20px 0 0;box-shadow:0 -12px 40px rgba(15,23,42,.28)}
#avalonRulesModal .notice-content{justify-items:stretch;gap:14px;padding:22px;text-align:left}
#avalonRulesModal .modal-header{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;margin:0}
#avalonRulesModal .modal-header h2{min-width:0;margin:0;text-align:left}
#avalonRulesModal .modal-header .close-button{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;display:grid;place-items:center;margin-left:auto;line-height:1}
#avalonRulesModal .help-text{width:100%;margin:0;color:#526983;font-size:.92rem;line-height:1.7;text-align:left}
html[data-theme="dark"] #avalonRulesModal .help-text{color:#c0cde0}
#avalonGameRoom{--avalon-chat-height:260px;padding-bottom:calc(var(--avalon-chat-height) + 24px + env(safe-area-inset-bottom))}
.avalon-board{display:grid;gap:12px;padding:14px;border:1px solid #d4deed;border-radius:16px;background:#f7faff}
.avalon-leader-notice{margin:0;padding:12px 14px;border:1px solid #b8cbea;border-radius:12px;background:#eaf2ff;color:#214b86;font-weight:800;line-height:1.5;text-align:center}
#avalonMissionTrack,#avalonPhasePanel,#avalonMyRole{display:grid;gap:9px;padding:12px;border:1px solid #d4deed;border-radius:13px;background:#fff;color:#17365f}
#avalonMissionTrack{gap:8px}
.avalon-mission-board-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.avalon-mission-board-head>span{color:#71819a;font-size:.78rem;font-weight:700}
.avalon-quest-board-image{position:relative;container-type:inline-size;width:100%;aspect-ratio:16/9;overflow:hidden;border:1px solid #c7b38e;border-radius:11px;background:#21374e}
.avalon-quest-board-image>.avalon-quest-board-bg,.avalon-quest-board-image>.avalon-quest-board-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.avalon-quest-board-image>.avalon-quest-board-bg{z-index:0}
.avalon-quest-board-image>.avalon-quest-board-art{z-index:1}
.avalon-quest-board-numbers{position:absolute;z-index:1;inset:0;pointer-events:none}
.avalon-quest-board-numbers>span{position:absolute;top:51.8%;display:grid;place-items:center;width:17%;height:29%;transform:translate(-50%,-50%);border:2px solid rgba(244,230,200,.9);border-radius:50%;background:rgba(36,27,22,.68);color:#fff7e7;text-align:center;text-shadow:0 2px 3px #2c211b;box-shadow:0 2px 6px rgba(0,0,0,.45)}
.avalon-quest-board-numbers>span.is-success{border-color:#a7ebbb;background:#21804a;color:#fff}
.avalon-quest-board-numbers>span.is-fail{border-color:#ffc3c6;background:#b83443;color:#fff}
.avalon-quest-board-numbers strong{display:block;font-size:clamp(1.25rem,5.7vw,2.3rem);font-weight:900;line-height:1}
.avalon-quest-board-numbers small{position:absolute;top:8%;font-size:clamp(.58rem,2.6vw,.9rem);font-weight:900;line-height:1.1;white-space:nowrap}
.avalon-quest-board-numbers em{position:absolute;bottom:8%;font-size:clamp(.38rem,1.45vw,.62rem);font-style:normal;font-weight:800;line-height:1.1;white-space:nowrap}
.avalon-quest-markers{position:absolute;z-index:2;inset:0;pointer-events:none}
.avalon-quest-marker{position:absolute;top:45%;display:grid;width:clamp(20px,6vw,28px);aspect-ratio:1;place-items:center;transform:translate(-50%,-50%);border:2px solid rgba(255,255,255,.85);border-radius:50%;background:#60758e;color:#fff;font-size:.72rem;font-weight:900;text-shadow:0 1px 2px #132238;box-shadow:0 1px 5px rgba(0,0,0,.35)}
.avalon-quest-marker.is-current{outline:3px solid #ffd447;background:#315fa5}
.avalon-quest-marker.is-success{background:#21804a}
.avalon-quest-marker.is-fail{background:#c33b46}
#avalonMissionTrack>small,#avalonMyRole>small{color:#71819a}
#avalonMyRole>div{display:grid;justify-items:center;gap:10px;font-weight:800;text-align:center}
#avalonMyRole img{display:block;width:min(100%,380px);height:auto;max-height:70dvh;aspect-ratio:2/3;object-fit:contain}
#avalonTeamForm{display:grid;gap:10px}
#avalonTeamForm>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
#avalonTeamForm .avalon-team-choice{position:relative;display:grid;min-height:44px;place-items:center;padding:8px;border:1px solid #c6d6ef;border-radius:10px;background:#eef4ff;color:#244c82;font-weight:800;text-align:center;cursor:pointer;overflow-wrap:anywhere;transition:background .15s ease,color .15s ease,border-color .15s ease}
#avalonTeamForm .avalon-team-choice input{position:absolute;width:1px;height:1px;opacity:0}
#avalonTeamForm .avalon-team-choice:has(input:checked){border-color:#214f95;background:#315fa5;color:#fff}
#avalonTeamForm .avalon-team-choice:has(input:focus-visible){outline:3px solid #78aaff;outline-offset:2px}
#avalonTeamForm button,.avalon-action-row button{min-height:40px;padding:8px 12px;border:0;border-radius:10px;background:#315fa5;color:#fff;font-weight:800}
.avalon-action-row{display:flex;flex-wrap:wrap;gap:8px}
.avalon-result{text-align:center}
.is-avalon-leader{outline:2px solid #e0a52e}
.avalon-leader-badge{margin-left:3px;color:#a86d08;font-size:.82rem;font-style:normal;font-weight:900}
.avalon-chat-panel{position:fixed;z-index:12;right:0;bottom:0;left:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;width:min(100%,680px);height:calc(var(--avalon-chat-height) + env(safe-area-inset-bottom));max-height:calc(100dvh - env(safe-area-inset-top) - 16px);margin:0 auto;padding:12px max(12px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border:1px solid #d4deed;border-bottom:0;border-radius:16px 16px 0 0;background:#fff;color:#17365f;box-shadow:0 -8px 24px rgba(23,54,77,.18)}
.avalon-chat-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.avalon-chat-heading small{color:#71819a;font-size:.76rem}
.avalon-chat-messages{display:flex;flex-direction:column;gap:8px;min-height:0;overflow-y:auto;padding:2px}
.avalon-chat-message{align-self:flex-start;width:fit-content;max-width:92%;padding:8px 10px;border-radius:10px;background:#f1f5fb;color:#233d61;overflow-wrap:anywhere}
.avalon-chat-message.is-mine{align-self:flex-end;background:#315fa8;color:#fff;text-align:right}
.avalon-chat-message strong{display:block;margin-bottom:3px;color:#54729a;font-size:.74rem}
.avalon-chat-message.is-mine strong{color:#d9e8ff}
.avalon-chat-message span{display:block;white-space:pre-wrap;word-break:break-word;font-size:.86rem;line-height:1.4}
.avalon-chat-evil-label{color:#d13b45;font-style:normal;font-weight:900}
.avalon-chat-message.is-mine .avalon-chat-evil-label{color:#ffd2d5}
.avalon-chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.avalon-chat-form input{min-width:0;border:1px solid #cbd8e9;border-radius:9px;padding:10px}
.avalon-chat-form button{min-width:52px;padding:0 14px;border:0;border-radius:9px;background:#315fa8;color:#fff;font-weight:700}
html[data-theme="dark"] .avalon-board,html[data-theme="dark"] #avalonMissionTrack,html[data-theme="dark"] #avalonPhasePanel,html[data-theme="dark"] #avalonMyRole{border-color:#344967;background:#1a2a40;color:#e7effb}
html[data-theme="dark"] .avalon-chat-panel{border-color:#344967;background:#1a2a40;color:#e7effb}
html[data-theme="dark"] .avalon-chat-message{background:#202d40;color:#eaf1fb}
html[data-theme="dark"] .avalon-chat-message.is-mine{background:#3e70b8;color:#fff}
html[data-theme="dark"] .avalon-chat-message strong{color:#9ebce5}
html[data-theme="dark"] .avalon-chat-message.is-mine strong{color:#fff}
html[data-theme="dark"] .avalon-chat-form input{border-color:#3a4d68;background:#1b2738;color:#edf3ff}
html[data-theme="dark"] .avalon-leader-notice{border-color:#416a9c;background:#203858;color:#dceaff}
html[data-theme="dark"] #avalonTeamForm .avalon-team-choice{border-color:#3b5478;background:#203858;color:#d6e5fb}
html[data-theme="dark"] #avalonTeamForm .avalon-team-choice:has(input:checked){border-color:#83b2f2;background:#315fa5;color:#fff}
.avalon-quest-marker.is-current{width:clamp(18px,8cqw,72px);overflow:visible;border:0;background:transparent;box-shadow:none;outline:0}
.avalon-quest-marker[hidden]{display:none}
.avalon-quest-marker.is-current img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.55))}
.avalon-vote-token-layer{position:absolute;z-index:3;inset:0;pointer-events:none}
.avalon-vote-token-layer>img{position:absolute;top:81.2%;width:clamp(18px,6.5cqw,60px);aspect-ratio:1;object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 2px 3px rgba(0,0,0,.62))}
.avalon-vote-track{position:absolute;z-index:2;inset:0;pointer-events:none;color:#fff7e7;text-shadow:0 2px 3px #2c211b}
.avalon-vote-track::before{content:"";position:absolute;left:25%;right:25%;top:81.2%;height:4px;transform:translateY(-50%);border-radius:999px;background:rgba(244,230,200,.9);box-shadow:0 1px 2px rgba(44,33,27,.7)}
.avalon-vote-track-label{position:absolute;left:2.5%;top:81.2%;transform:translateY(-50%);font-size:clamp(.42rem,1.55vw,.7rem);font-weight:900;line-height:1.1;white-space:nowrap}
.avalon-vote-track-points{position:absolute;inset:0}
.avalon-vote-track-point{position:absolute;top:81.2%;display:grid;place-items:center;width:clamp(18px,6.5cqw,60px);aspect-ratio:1;transform:translate(-50%,-50%);border:2px solid rgba(244,230,200,.9);border-radius:50%;background:rgba(36,27,22,.68);font-size:clamp(.48rem,1.8vw,.78rem);font-weight:900;line-height:1;box-shadow:0 2px 5px rgba(44,33,27,.5)}
.avalon-result-card{display:grid;justify-items:center;gap:7px;margin:4px 0 0}
.avalon-result-card>figcaption{color:#17365f;font-size:.9rem;font-weight:900}
.avalon-result-card-art{position:relative;display:block;width:min(100%,210px);aspect-ratio:2/3;overflow:hidden;border-radius:10px;background:#263447;box-shadow:0 5px 14px rgba(20,35,55,.2)}
.avalon-result-card-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.mafia-night-screen{position:fixed!important;z-index:20;inset:0;display:flex;flex-direction:column;width:100%;height:100dvh;max-width:none!important;margin:0!important;padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(14px,env(safe-area-inset-left))!important;overflow:auto;background:#111b28;color:#edf4ff}
.mafia-night-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}
.mafia-night-header h2{margin:3px 0;font-size:1.35rem}.mafia-night-header>div:last-child{display:flex;align-items:center;gap:8px}
.mafia-night-room{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:14px;min-height:0;flex:1}
.mafia-village-scene{position:relative;display:flex;min-height:320px;flex-direction:column;justify-content:space-between;overflow:hidden;padding:24px;border:1px solid #48617c;border-radius:20px;background:radial-gradient(ellipse at 50% 15%,#526c91 0,#263d59 38%,#142337 78%,#101823 100%)}
.mafia-scene-sky{display:grid;justify-items:center;gap:5px;text-align:center;text-shadow:0 2px 8px #08101b}.mafia-scene-sky>span{font-size:2rem}.mafia-scene-sky strong{font-size:1.5rem}.mafia-scene-sky small{color:#c2d3e8}
.mafia-houses{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;align-items:end}
.mafia-house{position:relative;display:grid;justify-items:center;gap:6px;min-height:106px;padding:12px 8px 10px;border:1px solid #6c7e93;border-radius:12px;background:linear-gradient(145deg,#926d4c,#60452f 60%,#392b25);color:#fff;text-align:center;box-shadow:inset 0 -8px 0 rgba(25,18,16,.3)}
.mafia-house::before{position:absolute;top:-13px;left:18%;width:64%;height:27px;transform:rotate(45deg);border:1px solid #b28d63;border-radius:3px;background:#78583c;content:""}.mafia-house>*{position:relative;z-index:1}.mafia-house small{color:#efcb8d}.mafia-house.is-dead{filter:grayscale(1);opacity:.48}.mafia-house.is-me{outline:2px solid #8bc6ff}.mafia-house.is-owner::after{content:"방장";position:absolute;top:4px;right:5px;color:#ffe08a;font-size:.65rem;font-weight:900}
.mafia-meeting-scene{display:flex;flex-direction:column;gap:10px;min-height:300px;padding:18px;border:1px solid #756343;border-radius:20px;background:radial-gradient(ellipse at 50% 0,#58442e,#30271f 55%,#211e1c);color:#fff3dc}.mafia-meeting-scene h3{margin:0;font-size:1.25rem}.mafia-meeting-scene p{margin:0;color:#dbc8aa}
.mafia-role-panel,.mafia-action-panel{display:grid;gap:8px;padding:12px;border:1px solid #897352;border-radius:12px;background:rgba(20,19,18,.48)}.mafia-role-panel label{display:flex;justify-content:space-between;gap:10px}.mafia-action-panel button,.mafia-room-controls button{min-height:42px;border:0;border-radius:10px;background:#b8894e;color:#17130f;font-weight:900}.mafia-action-panel select{min-height:42px;padding:8px;border:1px solid #806844;border-radius:9px;background:#242321;color:#fff}
.mafia-room-controls{display:flex;gap:8px}.mafia-room-controls>*{flex:1}.mafia-room-controls .secondary-button{background:#3d4652;color:#fff}
.mafia-public-chat,.mafia-secret-chat{display:grid;grid-column:1/-1;grid-template-rows:auto minmax(90px,1fr) auto;gap:8px;min-height:170px;padding:12px;border:1px solid #3e5269;border-radius:14px;background:#172537}.mafia-secret-chat{border-color:#86414b;background:#301f28}.mafia-public-chat>div,.mafia-secret-chat>div{max-height:190px;overflow:auto}.mafia-public-chat form,.mafia-secret-chat form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.mafia-public-chat input,.mafia-secret-chat input{min-width:0;padding:10px;border:1px solid #51647a;border-radius:8px;background:#101a27;color:#fff}.mafia-public-chat button,.mafia-secret-chat button{border:0;border-radius:8px;background:#426fa9;color:#fff;font-weight:800}
html[data-theme="light"] .mafia-night-screen{background:#e9eef5;color:#1b2d43}.mafia-night-screen .history-status{color:inherit}
@media(max-width:760px){.mafia-night-room{grid-template-columns:minmax(0,1fr);align-content:start;overflow:auto}.mafia-village-scene{min-height:36dvh;padding:18px}.mafia-houses{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mafia-house{min-height:85px;font-size:.84rem}.mafia-meeting-scene{min-height:260px}.mafia-public-chat,.mafia-secret-chat{grid-column:1;min-height:160px}}
.mafia-night-room[data-phase="day"] .mafia-village-scene,.mafia-night-room[data-phase="waiting"] .mafia-village-scene{background:linear-gradient(#83bfdc 0%,#cce9ed 48%,#738e58 49%,#3d603e 100%);border-color:#6992a3}
.mafia-night-room[data-phase="day"] .mafia-scene-sky,.mafia-night-room[data-phase="waiting"] .mafia-scene-sky{color:#182f42;text-shadow:none}
.mafia-night-room[data-phase="day"] .mafia-scene-sky small,.mafia-night-room[data-phase="waiting"] .mafia-scene-sky small{color:#24455a}
.mafia-night-room[data-phase="day"] .mafia-meeting-scene{background:radial-gradient(ellipse at top,#6b583c,#3f3529);border-color:#aa9168}
.mafia-role-panel fieldset{min-width:0;max-height:240px;overflow:auto;border:1px solid #897352;border-radius:8px}
.mafia-role-panel input[type="checkbox"]{width:20px;height:20px;flex:none}
.mafia-role-panel label{align-items:flex-start;padding:6px 0}.mafia-role-panel label small{display:block;margin-top:3px;color:#d1c6b3;font-size:.75rem;line-height:1.4}
.mafia-role-panel p,.mafia-action-panel p{overflow-wrap:anywhere}
.mafia-action-panel button:disabled,.mafia-room-controls button:disabled{opacity:.5;cursor:not-allowed}
.mafia-public-chat>div,.mafia-secret-chat>div{display:flex;flex-direction:column;gap:8px}
.mafia-chat-bubble{align-self:flex-start;display:grid;gap:4px;max-width:85%;margin:0;padding:9px 12px;border-radius:12px;background:#263c55;overflow-wrap:anywhere;white-space:pre-wrap}
.mafia-chat-bubble strong{color:#b5d3fa;font-size:.8rem}.mafia-chat-bubble span{color:#fff}
.mafia-chat-bubble.is-mine{align-self:flex-end;background:#365d8e}.mafia-chat-bubble.is-mine strong{color:#fff}
.mafia-feedback{padding:8px;border-left:3px solid #dab475;background:#211e1c}
#mafiaRoleConfigModal{place-items:center;padding:16px;box-sizing:border-box;z-index:1100}
#mafiaRoleConfigModal .notice-content{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:min(100%,640px);max-height:86dvh;box-sizing:border-box;overflow:hidden;padding:20px;border-radius:20px;text-align:left;color:#17365f}
#mafiaRoleConfigModal .modal-header{width:100%;flex:none;gap:12px;margin:0;justify-content:space-between;align-items:center}
#mafiaRoleConfigModal .modal-header h2{flex:1;min-width:0;text-align:left;font-size:1.2rem}
#mafiaRoleConfigModal .modal-header .close-button{flex:0 0 40px;width:40px;min-width:40px;height:40px;min-height:40px;margin-left:auto;display:grid;place-items:center;line-height:1}
#mafiaRoleConfigBody{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px;border-color:#d5dfee;background:#f5f8fd;color:#17365f}
#mafiaRoleConfigBody>strong{color:inherit;font-size:.88rem}
#mafiaRoleConfigBody fieldset{max-height:none;border-color:#cbd8e9}
#mafiaRoleConfigBody label{cursor:pointer;text-align:left}
#mafiaRoleConfigBody label small{color:#64748b}
#mafiaRoleConfigBody input[type="checkbox"]{accent-color:#315a9f}
#mafiaRoleConfigModal .modal-actions{flex:none;grid-template-columns:1fr;margin:0}
#mafiaRoleConfigError{flex:none;color:#bd3048}
html[data-theme="dark"] #mafiaRoleConfigModal .notice-content{background:#172537;color:#edf4ff}
html[data-theme="dark"] #mafiaRoleConfigBody{background:#101c2b;border-color:#3e5269;color:#edf4ff}
html[data-theme="dark"] #mafiaRoleConfigBody label small{color:#b9c9df}
#mafiaRolePanel #mafiaOpenRoleConfig{min-height:42px;border-radius:10px;background:#b8894e;color:#17130f;font-weight:800}
.mafia-night-room{min-width:0}.mafia-night-room>*{min-width:0}.mafia-house strong{max-width:100%;overflow-wrap:anywhere}
.mafia-night-screen{gap:8px;background:radial-gradient(ellipse at 18% 5%,#263b5b 0,#111a2a 43%,#0b1220 100%);color:#f3f5ff}
.mafia-night-header{max-width:1240px;width:100%;box-sizing:border-box;margin:0 auto;padding:12px 4px}
.mafia-night-header .eyebrow{color:#b4c8ed;font-size:.68rem;letter-spacing:.14em}
.mafia-night-header h2{font-size:clamp(1.2rem,2vw,1.7rem);letter-spacing:.01em}
.mafia-night-room{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);grid-template-rows:minmax(330px,1fr) auto;gap:14px;width:100%;max-width:1240px;margin:0 auto 14px;overflow:auto}
.mafia-village-scene{min-height:360px;padding:20px;border:1px solid #6279a0;border-radius:22px;background:radial-gradient(ellipse at 70% 10%,#657da5 0,#354965 39%,#202e42 75%,#172234 100%);box-shadow:inset 0 1px #ffffff14,0 18px 50px #050b1640}
.mafia-village-scene::after{position:absolute;inset:auto 0 0;height:27%;background:linear-gradient(180deg,#253c3a00,#192f31c9 70%,#14262b);content:"";pointer-events:none}
.mafia-scene-sky{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;text-shadow:none}
.mafia-scene-sky>span:first-child{display:grid;place-items:center;width:52px;height:52px;flex:none;border:1px solid #ffffff26;border-radius:16px;background:#101a2c78;font-size:1.8rem}
.mafia-scene-sky>div{display:grid;flex:1;gap:2px}.mafia-scene-kicker,.mafia-meeting-heading small{color:#b9c9e2;font-size:.62rem;font-weight:900;letter-spacing:.16em}
.mafia-scene-sky strong{font-size:1.3rem}.mafia-scene-sky small:last-child{color:#d1dbeb;font-size:.76rem}
.mafia-village-count{padding:7px 10px;border:1px solid #ffffff20;border-radius:999px;background:#0d172477;color:#e8edf8;font-size:.7rem;font-weight:800;white-space:nowrap}
.mafia-houses{position:relative;z-index:1;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:12px;align-items:end;padding:12px 2px 2px}
.mafia-house{appearance:none;display:grid;align-content:end;justify-items:center;gap:6px;min-width:0;min-height:143px;padding:11px 8px 10px;border:1px solid #d0a36a;border-radius:14px;background:linear-gradient(160deg,#825e43 0,#593e32 62%,#332a2a 100%);color:#fff;text-align:center;font:inherit;cursor:pointer;box-shadow:inset 0 1px #ffffff24,inset 0 -8px 0 #0003,0 8px 18px #07111d50;transition:transform .16s ease,border-color .16s ease,filter .16s ease,box-shadow .16s ease}
.mafia-house::before{position:absolute;top:8px;left:50%;width:66%;height:36px;transform:translateX(-50%);clip-path:polygon(50% 0,100% 100%,0 100%);border:0;border-radius:0;background:linear-gradient(145deg,#c79760,#755137);content:""}
.mafia-house-number{position:absolute;top:12px;left:0;right:0;color:#f4d8a7;font-size:.55rem;font-weight:900;letter-spacing:.12em}
.mafia-house-art{display:grid;place-items:center;width:43px;height:43px;margin-top:25px;border:1px solid #ffe2ae66;border-radius:13px;background:linear-gradient(145deg,#f4d092,#c39051);color:#49301e;font-size:1.6rem;line-height:1}
.mafia-house strong{position:relative;z-index:1;width:100%;overflow:hidden;color:#fff8eb;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.mafia-house small{color:#f3d59d;font-size:.65rem;font-weight:800}
.mafia-house:hover{transform:translateY(-4px);filter:brightness(1.1)}
.mafia-house:focus-visible{outline:3px solid #97c9ff;outline-offset:3px}
.mafia-house.is-selected{transform:translateY(-5px);border-color:#fff1a8;background:linear-gradient(160deg,#a87545,#68442b 62%,#3c3028);box-shadow:0 0 0 2px #ffd66e,0 0 24px #ffd66e59,inset 0 1px #ffffff42}
.mafia-house.is-me{outline:2px solid #8bc6ff;outline-offset:2px}
.mafia-house.is-me.is-selected{outline:2px solid #8bc6ff;box-shadow:0 0 0 4px #ffd66e,0 0 24px #ffd66e59}
.mafia-house.is-dead{filter:grayscale(.85);opacity:.55}.mafia-house.is-owner::after{top:5px;right:5px;padding:3px 5px;border-radius:6px;background:#211a15aa;color:#ffe08a;font-size:.55rem}
.mafia-meeting-scene{min-height:360px;padding:18px;border:1px solid #b28c54;border-radius:22px;background:radial-gradient(ellipse at 50% 0,#55432f,#342b25 54%,#201e20);box-shadow:inset 0 1px #ffffff17,0 18px 50px #050b1640}
.mafia-meeting-heading{display:flex;align-items:center;gap:12px;padding-bottom:10px;border-bottom:1px solid #f4d9a322}
.mafia-meeting-heading>span{display:grid;place-items:center;width:46px;height:46px;border:1px solid #f2d79c50;border-radius:14px;background:#f2d79c16;font-size:1.45rem}
.mafia-meeting-heading>div{display:grid;gap:2px}.mafia-meeting-scene h3{font-size:1.12rem}.mafia-phase-status{min-height:1.4em}
.mafia-role-panel,.mafia-action-panel{border-color:#b89b7040;border-radius:14px;background:#17171665}
.mafia-role-panel>strong,.mafia-action-panel>strong{color:#ffe0a1}
.mafia-action-panel button,.mafia-room-controls button{border:1px solid #ffdf9d44;border-radius:11px;background:linear-gradient(180deg,#f0c471,#c58f43);color:#281d12;box-shadow:0 4px 12px #0908073a}
.mafia-action-panel button:hover,.mafia-room-controls button:hover{filter:brightness(1.08)}
.mafia-room-controls .secondary-button{border-color:#ffffff20;background:#444858;color:#f4f5fb}
.mafia-public-chat,.mafia-secret-chat{padding:14px;border-radius:16px;background:linear-gradient(140deg,#18263b,#121d2f);box-shadow:inset 0 1px #ffffff10}
.mafia-public-chat>strong,.mafia-secret-chat>strong{color:#dce8fb}
.mafia-public-chat input,.mafia-secret-chat input{border-color:#ffffff1f;border-radius:10px;background:#0e1725}
.mafia-public-chat button,.mafia-secret-chat button{padding:0 14px;background:#466ba3}
@media(max-width:760px){.mafia-night-screen{gap:4px;padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important}.mafia-night-header{padding:8px 2px}.mafia-night-room{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:10px;margin-bottom:10px}.mafia-village-scene{min-height:310px;padding:14px}.mafia-scene-sky>span:first-child{width:42px;height:42px}.mafia-scene-sky strong{font-size:1.12rem}.mafia-houses{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding-top:8px}.mafia-house{min-height:124px;padding:8px 5px}.mafia-house-art{width:36px;height:36px;margin-top:24px}.mafia-house strong{font-size:.72rem}.mafia-meeting-scene{min-height:0;padding:14px}.mafia-public-chat,.mafia-secret-chat{grid-column:1;min-height:160px}}
@media(max-width:760px){.mafia-night-room{grid-template-rows:repeat(3,max-content);grid-auto-rows:max-content;align-content:start}.mafia-meeting-scene{min-height:min-content}}
.mafia-village-scene{min-height:240px;justify-content:flex-start;gap:16px}
.mafia-houses{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:start}
.mafia-house{min-height:86px;gap:3px;padding:7px 4px 6px;border-radius:10px}
.mafia-house::before{top:6px;height:23px}
.mafia-house-number{top:8px;font-size:.45rem;letter-spacing:.04em}
.mafia-house-art{width:25px;height:25px;margin-top:18px;border-radius:8px;font-size:1.1rem}
.mafia-house strong{font-size:.68rem}.mafia-house small{font-size:.58rem}
.mafia-house.is-owner::after{top:2px;right:2px;padding:1px 2px;font-size:.45rem}
.mafia-public-chat,.mafia-secret-chat{color:#e8effb}
#mafiaPublicMessages>small,#mafiaSecretMessages>small{color:#b8c9e2}
.mafia-public-chat input,.mafia-secret-chat input{color:#f4f7ff}
.mafia-public-chat input::placeholder,.mafia-secret-chat input::placeholder{color:#a8bad3;opacity:1}
@media(max-width:760px){.mafia-village-scene{min-height:0;gap:12px;padding:12px}.mafia-houses{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding-top:4px}.mafia-house{min-height:82px}.mafia-scene-sky .mafia-village-count{font-size:.75rem}}
.mafia-title-row{display:flex;align-items:center;gap:8px}
.mafia-title-row>.omok-rules-button{flex:0 0 28px}
#mafiaRoleConfigBody fieldset{margin:0;padding:10px;overflow:visible}
.mafia-role-toggle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mafia-test-seat-picker{display:grid;gap:6px;color:inherit;font-weight:800}
.mafia-test-controls{display:grid;gap:8px;padding:10px;border:1px dashed #76a6d0;border-radius:12px;background:#18314a;color:#edf6ff}
.mafia-public-chat,.mafia-secret-chat{min-height:260px;grid-template-rows:auto minmax(170px,1fr) auto}
.mafia-public-chat>div,.mafia-secret-chat>div{max-height:280px}
@media(max-width:760px){.mafia-public-chat,.mafia-secret-chat{min-height:280px}.mafia-public-chat>div,.mafia-secret-chat>div{max-height:300px}}
.mafia-secret-chat{border-color:#9a4653;background:linear-gradient(145deg,#4a202b,#351923 72%,#28151d);box-shadow:inset 0 1px #ffdce01a,0 8px 24px #1b080d35}
.mafia-secret-chat>strong{color:#ffe1e4}
.mafia-secret-chat .mafia-chat-bubble{border:1px solid #8d4652;background:#5b2935;color:#fff0f1}
.mafia-secret-chat .mafia-chat-bubble strong{color:#ffc3ca}
.mafia-secret-chat .mafia-chat-bubble.is-mine{background:#803744;border-color:#b45d69}
.mafia-secret-chat input{border-color:#81434d;background:#26151c;color:#fff1f2}
.mafia-secret-chat input::placeholder{color:#d9aeb4}
.mafia-secret-chat button{background:#a34452;color:#fff}
html[data-theme="dark"] .mafia-secret-chat{border-color:#8c3d4b;background:linear-gradient(145deg,#3d1923,#2a141c)}
.mafia-test-seat-picker select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #c4d3e6;border-radius:10px;background:#fff;color:#17365f;font:inherit}
.mafia-house.is-test{border-style:dashed;border-color:#3785c8}
.mafia-house.is-test .mafia-house-number::after{content:" · TEST";color:#e7f5ff}
#mafiaTestAdvance{min-height:42px;border:1px solid #7aa8d2;border-radius:10px;background:#264f77;color:#fff;font-weight:800}
html[data-theme="dark"] .mafia-test-seat-picker select{border-color:#49617f;background:#202e42;color:#edf4ff}
#mafiaRoleConfigBody .mafia-role-toggle{min-width:0;min-height:44px;padding:8px 4px;border:1px solid #a7bad6;border-radius:10px;background:#fff;color:#23436d;font-size:.85rem;font-weight:700;box-shadow:none;overflow-wrap:anywhere}
#mafiaRoleConfigBody .mafia-role-toggle[aria-pressed="true"]{border-color:#315a9f;background:#315a9f;color:#fff;box-shadow:inset 0 0 0 1px #fff6}
#mafiaRoleConfigBody .mafia-role-toggle:focus-visible{outline:3px solid #cc963c;outline-offset:2px}
#mafiaRoleSelectionCount{color:inherit}
#mafiaNightRules{place-items:center;padding:16px;box-sizing:border-box;z-index:1100}
#mafiaNightRules .notice-content{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:min(100%,640px);max-height:86dvh;overflow:hidden;padding:20px;box-sizing:border-box;text-align:left;color:#17365f}
#mafiaNightRules .modal-header{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;flex:none;margin:0}
#mafiaNightRules .modal-header h2{flex:1;min-width:0;text-align:left;font-size:1.15rem}
#mafiaNightRules .modal-header .close-button{display:grid;place-items:center;flex:0 0 40px;width:40px;min-width:40px;height:40px;min-height:40px;margin-left:auto;line-height:1}
.mafia-rules-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;line-height:1.6}
#mafiaRoleHelpBody h3{margin:18px 0 8px;font-size:1rem}
#mafiaRoleHelpBody dl{margin:0}#mafiaRoleHelpBody dt{font-weight:800}#mafiaRoleHelpBody dd{margin:4px 0 14px;overflow-wrap:anywhere}
html[data-theme="dark"] #mafiaNightRules .notice-content{background:#172537;color:#edf4ff}
html[data-theme="dark"] #mafiaRoleConfigBody .mafia-role-toggle{background:#20334b;color:#edf4ff;border-color:#597697}
html[data-theme="dark"] #mafiaRoleConfigBody .mafia-role-toggle[aria-pressed="true"]{background:#426fa9;border-color:#a6ccff}
@media(max-width:380px){.mafia-role-toggle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.avalon-result-card-art>.avalon-result-card-overlay{z-index:1;object-fit:fill}
.avalon-mission-choices{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.avalon-mission-choice{display:grid;justify-items:center;gap:8px;flex:1 1 125px;max-width:200px;min-width:0;padding:10px;border:2px solid #cbd8e9;border-radius:13px;background:#f3f7fd;color:#17365f;font-weight:900;cursor:pointer}
.avalon-mission-choice .avalon-result-card-art{width:100%;max-width:175px}
.avalon-mission-choice:focus-visible{outline:3px solid #78aaff;outline-offset:2px}
.avalon-mission-choice:disabled{opacity:.55;cursor:wait}
.avalon-result-modal-content{width:min(100%,500px);gap:16px;padding:22px 18px calc(22px + env(safe-area-inset-bottom))}
#avalonMissionResultCard{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%}
#avalonMissionResultCard .avalon-result-card-art{flex:0 0 calc((100% - 16px)/3);width:calc((100% - 16px)/3);max-width:120px}
#avalonMissionResultClose{min-height:46px;border:0;border-radius:10px;background:#315fa5;color:#fff;font-weight:900}
.avalon-vote-result-content{width:min(100%,440px);justify-items:stretch;gap:14px;padding:22px 18px calc(22px + env(safe-area-inset-bottom))}
#avalonVoteResultSummary{color:#315fa5;text-align:center}
#avalonVoteResultSummary.is-rejected{color:#b83443}
.avalon-vote-result-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.avalon-vote-result-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:8px;border:1px solid #d4deed;border-radius:10px;background:#f4f7fc;text-align:left}
.avalon-vote-result-list img{flex:none;width:38px;height:38px;object-fit:contain}
.avalon-vote-result-list span{min-width:0;overflow-wrap:anywhere;font-weight:800}
.avalon-vote-result-list strong{flex:none;padding:3px 7px;border-radius:7px;background:#dff3e7;color:#21804a;font-size:.78rem}
.avalon-vote-result-list .is-rejected strong{background:#fbe6e8;color:#b83443}
#avalonVoteResultClose{min-height:46px;border:0;border-radius:10px;background:#315fa5;color:#fff;font-weight:900}
.avalon-vote-choice-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px}
.avalon-vote-choice{display:grid;justify-items:center;gap:5px;min-height:110px;padding:10px;border:2px solid #cbd8e9;border-radius:13px;background:#f5f8fd;color:#17365f;font-weight:900;cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.avalon-vote-choice:hover,.avalon-vote-choice:focus-visible{transform:translateY(-2px);border-color:#315fa5;box-shadow:0 0 0 3px rgba(49,95,165,.18);outline:0}
.avalon-vote-choice img{width:74px;height:74px;object-fit:contain}
.avalon-vote-choice.is-approve span{color:#245e9f}
.avalon-vote-choice.is-reject span{color:#bd3543}
.avalon-vote-choice:disabled{opacity:.55;cursor:wait}
html[data-theme="dark"] .avalon-vote-result-list>div{border-color:#344967;background:#1a2a40;color:#e7effb}
html[data-theme="dark"] #avalonVoteResultSummary{color:#a8c8fa}
html[data-theme="dark"] #avalonVoteResultSummary.is-rejected{color:#ffadb4}
html[data-theme="dark"] .avalon-vote-choice{border-color:#405575;background:#1e314b;color:#eaf2ff}
html[data-theme="dark"] .avalon-mission-choice{border-color:#405575;background:#1e314b;color:#eaf2ff}
html[data-theme="dark"] .avalon-result-card>figcaption{color:#e7effb}
.avalon-role-config-hint{color:#71819a;font-size:.78rem;font-weight:700}
.avalon-role-config-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.avalon-role-config-group{display:grid;gap:7px;padding:10px;border-radius:12px;background:#edf3fb}.avalon-role-config-group strong{font-size:.86rem}.avalon-role-config-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.82rem}.avalon-role-toggle-list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}.avalon-role-toggle{min-width:30px;min-height:30px;padding:3px 7px;border:1px solid #c7d4e6;border-radius:8px;background:#fff;color:#51627b;font-size:.78rem;font-weight:850;cursor:pointer}.avalon-role-toggle[aria-pressed="true"]{border-color:#315fa5;background:#315fa5;color:#fff;box-shadow:0 2px 6px #315fa533}html[data-theme="dark"] .avalon-role-toggle{border-color:#49617f;background:#17263b;color:#dce8f8}html[data-theme="dark"] .avalon-role-toggle[aria-pressed="true"]{border-color:#5f91df;background:#315fa5;color:#fff}
#avalonSaveRoleConfig{justify-self:start;min-height:38px;padding:8px 14px;border:0;border-radius:10px;background:#315fa5;color:#fff;font-weight:800}
.avalon-role-config-save-status{margin:0;color:#21804a;font-size:.8rem;font-weight:800}
html[data-theme="dark"] .avalon-role-config-group{background:#223652}html[data-theme="dark"] .avalon-role-config-hint{color:#9fb0c9}
.avalon-role-config-open{min-height:38px;padding:8px 14px;border:1px solid #c7d4e6;border-radius:10px;background:#f7faff;color:#315fa5;font-weight:800}
#avalonRoleConfigModal{z-index:1100;place-items:center;padding:16px;box-sizing:border-box}
#avalonRoleConfigModal .avalon-role-config-modal-content{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:min(100%,640px);max-width:640px;max-height:86dvh;box-sizing:border-box;overflow:hidden;padding:20px;padding-bottom:max(20px,env(safe-area-inset-bottom) + 16px);border-radius:20px;text-align:left;box-shadow:0 18px 60px rgba(15,23,42,.3)}
#avalonRoleConfigModal .modal-header{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;margin:0}
#avalonRoleConfigModal .modal-header h2{flex:1 1 auto;min-width:0;margin:0;text-align:left}
#avalonRoleConfigModal .modal-header .close-button{flex:0 0 40px;width:40px;min-width:40px;height:40px;min-height:40px;display:grid;place-items:center;margin-left:auto;line-height:1}
#avalonRoleConfigModal .avalon-role-config-intro{margin:0;color:#64748b;text-align:left}
#avalonRoleConfigModal .avalon-role-config-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1 1 auto;gap:12px;min-height:0;max-height:none;overflow:auto;padding:2px}
#avalonRoleConfigModal .avalon-role-config-group{grid-template-columns:minmax(0,1fr);align-content:start;gap:9px;padding:12px;border:1px solid #d8e3f1;border-radius:14px;background:#f5f8fd}
#avalonRoleConfigModal .avalon-role-config-group[data-avalon-role-team="good"]{border-color:#c9dcf4;background:linear-gradient(145deg,#f1f7ff,#eaf2fc)}
#avalonRoleConfigModal .avalon-role-config-group[data-avalon-role-team="evil"]{border-color:#efd1d1;background:linear-gradient(145deg,#fff6f5,#f9eeee)}
#avalonRoleConfigModal .avalon-role-config-group>strong{padding-bottom:7px;border-bottom:1px solid #d6e0ed;font-size:.92rem}
#avalonRoleConfigModal .avalon-role-config-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;min-height:36px;padding:6px 0;border-bottom:1px solid #dce5ef;font-size:.8rem}
#avalonRoleConfigModal .avalon-role-config-row:last-child{border-bottom:0}
#avalonRoleConfigModal .avalon-role-toggle-list{flex:0 0 auto;gap:3px;max-width:100%;}
#avalonRoleConfigModal .avalon-role-toggle{width:auto;flex:0 0 30px;min-width:30px;min-height:30px;padding:2px}
#avalonRoleConfigModal .avalon-role-config-actions{flex:0 0 auto;grid-template-columns:minmax(0,1fr);width:100%;gap:8px;margin:0}
#avalonRoleConfigModal .avalon-role-config-actions #avalonSaveRoleConfig{width:100%;min-height:46px;justify-self:stretch;border-radius:10px;font-weight:800}
#avalonRoleConfigModal .avalon-role-config-save-status{text-align:left}
html[data-theme="dark"] .avalon-role-config-open{border-color:#49617f;background:#1a2a40;color:#a9c8ff}
html[data-theme="dark"] #avalonRoleConfigModal .avalon-role-config-intro{color:#b8c6db}
html[data-theme="dark"] #avalonRoleConfigModal .avalon-role-config-group{border-color:#344967;background:#1a2a40}
html[data-theme="dark"] #avalonRoleConfigModal .avalon-role-config-group[data-avalon-role-team="good"]{border-color:#3b587a;background:linear-gradient(145deg,#1d314b,#1a2a40)}
html[data-theme="dark"] #avalonRoleConfigModal .avalon-role-config-group[data-avalon-role-team="evil"]{border-color:#69434c;background:linear-gradient(145deg,#35252f,#2b2029)}
html[data-theme="dark"] #avalonRoleConfigModal .avalon-role-config-group>strong,html[data-theme="dark"] #avalonRoleConfigModal .avalon-role-config-row{border-color:#3a4d66}
@media(max-width:560px){#avalonRoleConfigModal{padding:12px}#avalonRoleConfigModal .avalon-role-config-modal-content{width:100%;max-height:90dvh;padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom) + 12px)}#avalonRoleConfigModal .avalon-role-config-fields{grid-template-columns:1fr}#avalonRoleConfigModal .avalon-role-config-row{grid-template-columns:minmax(0,1fr) auto;gap:6px}#avalonRoleConfigModal .avalon-role-toggle-list{max-width:none;justify-content:flex-end}#avalonRoleConfigModal .avalon-role-toggle{flex-basis:28px;min-width:28px;min-height:28px}}
@media(max-width:480px){#avalonTeamForm>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 머니게임 · 텍사스 홀덤 */
.holdem-world-item .holdem-game-icon { display:grid; place-items:center; overflow:hidden; background:linear-gradient(145deg,#234a3b,#10291f); color:#f5f7f9; font-size:2rem; font-weight:900; }
.holdem-world-item .holdem-game-icon img { width:100%; height:100%; display:block; object-fit:cover; border-radius:inherit; }
.holdem-wallet-badge { display:inline-flex; align-items:center; min-height:38px; padding:0 12px; border:1px solid #d0a848; border-radius:999px; background:#fff8df; color:#71520d; font-family:inherit; font-size:.82rem; font-weight:700; white-space:nowrap; cursor:pointer; }
.holdem-wallet-badge:disabled { opacity:1; cursor:default; }
.holdem-wallet-badge:hover { border-color:#b58a25; box-shadow:0 2px 8px #73570f20; }
.coin-wallet-history-content { display:flex; box-sizing:border-box; width:min(560px,calc(100vw - 28px)); max-height:min(82dvh,720px); flex-direction:column; align-items:stretch; gap:12px; overflow:hidden; padding:20px; text-align:left; }
.coin-wallet-history-content .modal-header { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; margin:0; text-align:left; }
.coin-wallet-history-content .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; text-align:left; }
.coin-wallet-history-content .modal-header .close-button { display:grid; flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; margin-left:auto; padding:0; place-items:center; line-height:1; }
.coin-wallet-history-note { width:100%; min-width:0; margin:0; color:var(--text-muted,#60738d); font-size:.86rem; line-height:1.5; text-align:left; }
.coin-wallet-history-list { display:grid; box-sizing:border-box; width:100%; min-width:0; gap:8px; max-height:min(58dvh,520px); overflow:auto; overscroll-behavior:contain; padding:2px 4px 2px 0; text-align:left; }
.coin-wallet-history-list > .history-status { margin:16px 0; text-align:center; }
.coin-wallet-history-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px 12px; padding:12px 14px; border:1px solid #dce5f1; border-radius:12px; background:var(--surface-soft,#f5f8fc); }
.coin-wallet-history-main { display:grid; min-width:0; gap:4px; }
.coin-wallet-history-main strong { overflow:hidden; color:var(--text-strong,#20324d); font-size:.9rem; text-overflow:ellipsis; white-space:nowrap; }
.coin-wallet-history-main time,.coin-wallet-history-row small { color:var(--text-muted,#71829c); font-size:.74rem; }
.coin-wallet-history-amount { grid-column:2; grid-row:1; font-size:.96rem; white-space:nowrap; }
.coin-wallet-history-amount.is-credit { color:#218453; }
.coin-wallet-history-amount.is-debit { color:#c34c4c; }
.coin-wallet-history-row small { grid-column:1 / -1; }
html[data-theme="dark"] .coin-wallet-history-row { border-color:#3a4a62; background:#202b3b; }
html[data-theme="dark"] .coin-wallet-history-main strong { color:#eef4ff; }
@media(max-width:480px){.coin-wallet-history-content{width:calc(100vw - 20px);max-height:88dvh;padding:16px;gap:10px}.coin-wallet-history-note{font-size:.8rem}.coin-wallet-history-row{gap:4px 8px;padding:10px}.coin-wallet-history-amount{font-size:.88rem}}
.holdem-wallet-badge.is-recharge { background:#315da3; border-color:#315da3; color:#fff; font-weight:800; cursor:pointer; }
.holdem-wallet-actions { display:inline-flex; align-items:center; gap:6px; }
.holdem-recharge-button { min-height:38px; padding:0 12px; border:1px solid #315da3; border-radius:999px; background:#315da3; color:#fff; font-size:.82rem; font-weight:800; white-space:nowrap; cursor:pointer; }
.holdem-recharge-button:disabled { opacity:.55; cursor:wait; }
.holdem-debt-repay { min-height:38px; padding:0 12px; border:1px solid #b65b54; border-radius:999px; background:#fff0ed; color:#963d36; font-size:.82rem; font-weight:800; white-space:nowrap; }
.holdem-debt-repay:disabled { opacity:.48; cursor:not-allowed; }
.game-chat-form [data-game-chat-input="holdem"]:disabled { opacity:1; color:var(--text-muted,#60738d); cursor:not-allowed; }
@media (max-width:560px) {
  #holdemGameScreen .omok-header-actions { flex-wrap:wrap; justify-content:flex-end; gap:5px; }
  #holdemGameScreen .holdem-wallet-badge, #holdemGameScreen .holdem-debt-repay, #holdemGameScreen .holdem-recharge-button { min-height:34px; padding:0 8px; font-size:.72rem; }
  #holdemGameScreen .omok-header-actions .title-badge-button { min-height:34px; padding:0 9px; }
}
.holdem-seat-records { display:grid; flex-basis:100%; justify-items:center; gap:2px; line-height:1.2; }
.holdem-bankruptcy-count { color:#ffd789; font-size:.56rem; font-weight:700; white-space:nowrap; }
.holdem-rebuy-remaining { color:#d3edff; font-size:.55rem; font-weight:700; white-space:nowrap; }
.holdem-seat .holdem-kick-button { display:inline-block; width:auto; min-height:0; padding:2px 5px; margin-left:4px; border:1px solid #dce5f4; border-radius:5px; background:#f5f8ff; color:#254979; font-size:.55rem; line-height:1.3; vertical-align:middle; }
.holdem-seat .holdem-reserve-button { width:auto; min-height:30px; padding:5px 10px; border:1px solid #bed5ff; border-radius:7px; background:#eef5ff; color:#163e79; font-size:.7rem; font-weight:800; }
.holdem-bankroll-info { margin:8px 0 14px; color:#315da3; font-size:.8rem; font-weight:700; }
#holdemBlindNotice { z-index: 1300; place-items: center; padding: 12px; box-sizing: border-box; }
#holdemBlindNotice .modal-content { width: min(100%, 400px); border-radius: 20px; }
#holdemBlindNotice .modal-header { width: 100%; margin: 0; gap: 12px; text-align: left; }
#holdemBlindNotice .modal-header h2 { font-size: 1.1rem; }
#holdemBlindNotice .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; }
#holdemRaiseError { display: block; margin-top: 4px; color: #ffb6aa; }
#holdemRaiseError.hidden { display: none; }
#holdemGameScreen[data-holdem-theme="excel"] #holdemRaiseError { color: #9a2119; }
.holdem-rebuy-actions { display:flex; justify-content:center; gap:10px; }
.holdem-rebuy-actions button { flex:1; }
.holdem-rebuy-settings { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 10px; color:#17365f; }
.holdem-rebuy-settings select { width:min(160px,50%); min-width:0; }
html[data-theme="dark"] .holdem-rebuy-settings { color:#e7effb; }
.holdem-feedback-modal { place-items:end center; padding:0 12px max(0px, env(safe-area-inset-bottom)); box-sizing:border-box; }
#holdemKickModal { z-index:2200; }
.holdem-feedback-content { width:min(520px, calc(100vw - 24px)); max-width:100%; max-height:min(82dvh, calc(100dvh - env(safe-area-inset-top) - 12px)); box-sizing:border-box; justify-items:stretch; gap:14px; padding:clamp(20px, 5vw, 28px) clamp(16px, 5vw, 26px); overflow-wrap:anywhere; }
.holdem-feedback-content h2 { max-width:100%; text-align:center; line-height:1.3; }
.holdem-feedback-content p { width:100%; margin:0; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
.holdem-feedback-content .holdem-error:empty { display:none; }
.holdem-feedback-actions { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); width:100%; gap:10px; }
.holdem-feedback-actions button { width:100%; min-width:0; min-height:46px; padding:8px 6px; white-space:nowrap; font-size:clamp(.78rem, 3.5vw, .95rem); }
.holdem-feedback-actions button:only-child { grid-column:1 / -1; }
@media(max-width:360px) { .holdem-feedback-actions { grid-template-columns:minmax(0, 1fr); } }
html[data-theme="dark"] .holdem-bankroll-info { color:#a9c8f6; }
.holdem-intro { margin:0 0 14px; padding:12px 14px; border-radius:12px; background:var(--card-bg,#f1f5fb); color:var(--text-muted,#60738d); line-height:1.5; }
.holdem-coin-ranking { min-width:0; margin-bottom:16px; padding:14px; border:1px solid #dbe4f1; border-radius:14px; background:#fff; }
.holdem-coin-ranking-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; }
.holdem-coin-ranking-heading h3 { margin:0; color:#17365f; font-size:1rem; }
.holdem-coin-ranking-heading > span { color:#8a691f; font-size:.72rem; font-weight:900; }
.holdem-coin-ranking-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.holdem-coin-ranking-row { display:grid; grid-template-columns:26px minmax(0,1fr) max-content; align-items:center; gap:8px; min-width:0; padding:9px 10px; border-radius:10px; background:#f1f5fb; }
.holdem-coin-ranking-position { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:#e5eaf2; color:#54647a; font-size:.8rem; font-weight:900; }
.holdem-coin-ranking-row:first-child .holdem-coin-ranking-position { background:#ffedb3; color:#806018; }
.holdem-coin-ranking-row:nth-child(2) .holdem-coin-ranking-position { background:#dde6f0; color:#485b73; }
.holdem-coin-ranking-row:nth-child(3) .holdem-coin-ranking-position { background:#f3ddcd; color:#85532e; }
.holdem-coin-ranking-row strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#17365f; font-size:.88rem; }
.holdem-coin-ranking-balance { color:#315a9f; font-size:clamp(.7rem,2.7vw,.85rem); font-weight:800; white-space:nowrap; font-variant-numeric:tabular-nums; }
.holdem-coin-ranking > .history-status { margin:0; text-align:center; }
.game-world-coin-ranking { margin:12px 0 16px; padding:10px 12px; border-radius:12px; }
.game-world-coin-ranking .holdem-coin-ranking-heading { margin-bottom:6px; }
.game-world-coin-ranking .holdem-coin-ranking-heading h3 { font-size:.82rem; }
.game-world-coin-ranking .holdem-coin-ranking-heading > span { font-size:.62rem; }
.game-world-coin-ranking .holdem-coin-ranking-list { gap:4px; }
.game-world-coin-ranking .holdem-coin-ranking-row { grid-template-columns:20px minmax(0,1fr); gap:6px; padding:5px 7px; border-radius:7px; }
.game-world-coin-ranking .holdem-coin-ranking-position { width:20px; height:20px; font-size:.66rem; }
.game-world-coin-ranking .holdem-coin-ranking-row strong, .game-world-coin-ranking .holdem-coin-ranking-balance, .game-world-coin-ranking > .history-status { font-size:.74rem; }
html[data-theme="dark"] .holdem-coin-ranking { border-color:#33455f; background:#192536; }
html[data-theme="dark"] .holdem-coin-ranking-row { background:#22324a; }
html[data-theme="dark"] .holdem-coin-ranking-heading h3, html[data-theme="dark"] .holdem-coin-ranking-row strong { color:#e7effb; }
html[data-theme="dark"] .holdem-coin-ranking-heading > span { color:#ffe08a; }
html[data-theme="dark"] .holdem-coin-ranking-balance { color:#afcfff; }
.holdem-room { padding-bottom:200px; }
.holdem-attendance { margin-top:16px; padding:14px; border:1px solid #d5e1f2; border-radius:14px; background:#fff; }
#holdemGameScreen,.holdem-attendance { overflow-anchor:none; }
.holdem-attendance h3 { margin:0 0 10px; font-size:.95rem; color:#17365f; }
.holdem-attendance ul { list-style:none; margin:0; padding:0; max-height:520px; overflow-y:auto; overscroll-behavior:contain; }
.holdem-attendance li { box-sizing:border-box; display:flex; align-items:center; gap:8px; height:52px; padding:9px 0; border-bottom:1px solid #edf0f4; font-size:.8rem; }
.holdem-attendance li:last-child { border-bottom:0; }
.holdem-attendance li>span:nth-child(2) { flex:1; min-width:0; }
.holdem-attendance li strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.holdem-attendance small { display:block; color:#64748b; font-size:.7rem; }
.holdem-attendance time { flex-shrink:0; color:#64748b; font-size:.65rem; }
.holdem-attendance-event { padding:3px 7px; border-radius:6px; font-size:.7rem; font-weight:800; }
.holdem-attendance-event.is-joined { color:#126347; background:#e3f4eb; }
.holdem-attendance-event.is-left { color:#9c3636; background:#fceaea; }
.holdem-attendance .holdem-attendance-empty { color:#64748b; }
html[data-theme="dark"] .holdem-attendance { background:#151e2c; border-color:#2f3e53; color:#edf3fc; }
html[data-theme="dark"] .holdem-attendance h3 { color:#edf3fc; }
html[data-theme="dark"] .holdem-attendance li { border-color:#2f3e53; }
html[data-theme="dark"] .holdem-attendance small, html[data-theme="dark"] .holdem-attendance time, html[data-theme="dark"] .holdem-attendance .holdem-attendance-empty { color:#b7c4d6; }
.holdem-table-wrap { display:grid; gap:10px; padding:12px 0; }
.holdem-roundbar { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.holdem-roundbar>div { display:grid; gap:3px; padding:10px 13px; border:1px solid #26394c; border-radius:12px; background:linear-gradient(115deg,#172638,#111d2a); }
.holdem-roundbar span { color:#9aabc0; font-size:.68rem; }
.holdem-roundbar strong { color:#f5f7fb; font-size:.9rem; }
.holdem-table { position:relative; min-height:clamp(510px,65vh,690px); overflow:visible; border:9px solid #433728; border-radius:50% / 45%; background:radial-gradient(ellipse at 50% 42%,#168365 0,#0e7053 42%,#09543f 76%,#064332 100%); box-shadow:inset 0 0 0 2px #b38b4e,inset 0 0 0 10px #174d3e,inset 0 24px 70px #d0ffe018,0 16px 42px #0005; }
.holdem-table:before { position:absolute; z-index:0; inset:10px; border:1px solid #d5c08a55; border-radius:inherit; content:""; pointer-events:none; }
.holdem-center { position:absolute; z-index:8; top:50%; left:50%; display:grid; justify-items:center; gap:8px; width:100%; transform:translate(-50%,-50%); color:#fff; text-shadow:0 1px 4px #10291f; pointer-events:none; }
.holdem-pot { position:relative; display:grid; justify-items:center; gap:2px; }
.holdem-pot>strong { padding:4px 8px; border:0; border-radius:0; background:transparent; font-size:.9rem; }
.holdem-winner { margin:4px 0 0; max-width:240px; color:#ffe08a; font-size:1rem; font-weight:900; text-align:center; overflow-wrap:anywhere; text-shadow:0 2px 4px #001a17; }
.holdem-round-summary { display:grid; justify-items:center; gap:6px; margin:4px 0 0; max-width:240px; }
.holdem-round-summary .holdem-winner { margin:0; }
.holdem-round-summary>button { min-height:42px; padding:9px 22px; border-radius:10px; font-weight:800; pointer-events:auto; }
.holdem-seat>small.holdem-seat-heading { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:3px; white-space:normal; overflow:visible; }
.holdem-seat-heading .holdem-action-status { flex-shrink:0; font-size:.9em; }
.holdem-flying-chip .holdem-payout-stack { width:54px; min-height:42px; }
.holdem-pot-stack { position:relative; display:flex; justify-content:center; align-items:flex-end; min-width:1px; min-height:0; margin:0 0 2px; background:transparent; box-shadow:none; }
.holdem-pot-stack:not(:empty) { min-width:54px; min-height:18px; }
.holdem-pot-stack-chip { position:absolute; left:calc(50% - 17px + var(--chip-x)); bottom:var(--chip-y); width:23px; height:9px; border:2px dashed #f5e9ce; border-radius:50%; box-shadow:0 2px 3px #001a13a8; }
.holdem-pot-stack-chip.is-red { background:linear-gradient(#e87373,#a52d38); }
.holdem-pot-stack-chip.is-blue { background:linear-gradient(#74a8ef,#24529b); }
.holdem-pot-stack-chip.is-gold { background:linear-gradient(#f2cf68,#b27b20); }
.holdem-community { display:flex; justify-content:center; gap:clamp(4px,1vw,9px); min-height:clamp(54px,9vw,92px); }
.holdem-burn-cards { display:flex; align-items:center; margin-right:3px; padding-right:5px; border-right:1px solid #ffffff40; }
.holdem-burn-cards .holdem-card-back + .holdem-card-back { margin-left:-14px; }
.holdem-card { display:block; width:clamp(43px,6.7vw,76px); height:auto; max-height:96px; aspect-ratio:5/7; object-fit:contain; border-radius:7px; filter:drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.holdem-seats { position:absolute; z-index:4; inset:0; pointer-events:none; }
.holdem-seat { position:absolute; display:grid; justify-items:center; align-content:center; gap:3px; width:min(30%,158px); min-width:0; min-height:88px; padding:7px; transform:translate(-50%,-50%); border:1px solid rgba(226,237,244,.3); border-radius:12px; background:rgba(7,29,24,.9); color:#f4f7fb; text-align:center; box-shadow:0 4px 13px rgba(0,0,0,.3); pointer-events:auto; }
.holdem-seat-anchor { position:absolute; z-index:4; display:grid; grid-template-rows:22px auto 22px; justify-items:stretch; align-items:stretch; gap:0; width:min(30%,158px); min-width:0; transform:translate(-50%,-50%); pointer-events:none; }
.holdem-seat-anchor > .holdem-seat { position:relative; inset:auto; left:auto; top:auto; width:100%; transform:none; pointer-events:auto; }
.holdem-seat-action-slot,.holdem-seat-timer-slot { display:flex; align-items:center; justify-content:center; width:100%; min-width:0; pointer-events:none; }
.holdem-seat.seat-1{left:50%;top:87%}.holdem-seat.seat-2{left:15%;top:70%}.holdem-seat.seat-3{left:15%;top:30%}.holdem-seat.seat-4{left:50%;top:13%}.holdem-seat.seat-5{left:85%;top:30%}.holdem-seat.seat-6{left:85%;top:70%}
#holdemSeats .holdem-seat-anchor > .holdem-seat { left:auto; top:auto; transform:none; }
.holdem-seat.is-active { border-color:#ffcc56; outline:2px solid #ffcc56; box-shadow:0 0 0 5px #ffcc5627,0 4px 13px #0005; }.holdem-seat.is-folded { opacity:.48; }
.holdem-seat-top { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:4px; }.holdem-seat-top strong { overflow:hidden; max-width:100%; color:#fff; text-overflow:ellipsis; white-space:nowrap; font-size:.76rem; }
.holdem-blind-badge { padding:2px 5px; border-radius:5px; background:#4a76c3; color:white; font-size:.62rem; font-style:normal; font-weight:900; }.holdem-blind-badge.is-big { background:#cf7433; }.holdem-blind-badge.is-dealer { background:#e2b744; color:#182334; }
.holdem-seat>small { display:block; max-width:100%; margin-top:1px; overflow:hidden; color:#d9e2e8; font-size:.66rem; text-overflow:ellipsis; white-space:nowrap; }.holdem-seat-bet { color:#ffdc80!important; white-space:normal!important; line-height:1.3; }.holdem-bet-line { display:block; }
#holdemSeats .holdem-seat-timer-slot > small.game-turn-timeout { min-width:max-content; margin:0; padding:2px 7px; border:1px solid #e36a63; border-radius:6px; background:#a52e2e; color:#fff; font-size:.64rem; font-weight:900; text-align:center; animation:none; }
#holdemSeats .holdem-seat-timer-slot > .holdem-seat-result-hand { display:block; box-sizing:border-box; width:100%; max-width:100%; margin:2px 0 0; padding:4px 6px; border:1px solid #e6bd52; border-radius:7px; background:#fff0b5; color:#382600; box-shadow:0 2px 5px #0005; font-size:.64rem; font-weight:900; line-height:1.3; text-align:center; overflow-wrap:anywhere; }
.holdem-action-status { display:flex; align-items:center; justify-content:center; width:100%; min-height:24px; box-sizing:border-box; padding:3px 8px; border:1px solid currentColor; border-radius:7px; background:rgba(255,255,255,.1); color:#c8d6e7; font-size:.72rem; font-weight:900; line-height:1.2; }
.holdem-action-status.is-fold { border-color:#c64b58; background:#9e2f3c; color:#fff; }.holdem-action-status.is-call { border-color:#40a878; background:#176744; color:#fff; }.holdem-action-status.is-half,.holdem-action-status.is-bet,.holdem-action-status.is-raise { border-color:#e0b83f; background:#d8aa2e; color:#302406; }.holdem-action-status.is-allin { border-color:#e18443; background:#b94b18; color:#fff; }.holdem-action-status.is-check { border-color:#6ea1e2; background:#315f9c; color:#fff; }
.holdem-seat-cards { display:flex; justify-content:center; gap:3px; min-height:31px; margin-top:2px; }.holdem-card.is-small-card { width:23px; max-height:32px; border-radius:3px; }.holdem-card-back { display:grid; place-items:center; width:20px; height:29px; border:1px solid #d7e7f7; border-radius:4px; background:repeating-linear-gradient(135deg,#264b73 0 4px,#315f8c 4px 8px); color:#e5f2ff; font-size:.65rem; box-shadow:0 2px 5px #001b17aa; }
.holdem-seat.is-folded .holdem-seat-cards { display:none; }
.holdem-seat-hand-label { display:block; margin:3px 0; max-width:100%; color:#f4cf78; font-size:.65rem; font-weight:800; line-height:1.3; text-align:center; overflow-wrap:anywhere; }
.holdem-seat-emote { position:absolute; z-index:4; top:50%; left:50%; width:44px; height:44px; transform:translate(-50%,-50%); pointer-events:none; filter:drop-shadow(0 3px 5px #0006); }
.holdem-emote-tools { position:relative; margin-left:auto; align-self:flex-start; }
#holdemEmoteToggle { display:flex; align-items:center; justify-content:center; gap:4px; min-height:44px; padding:6px 8px; border:1px solid #46617d; border-radius:10px; background:#29445e; color:#fff; font-size:.7rem; cursor:pointer; }
#holdemEmoteToggle>span:first-child { font-size:1.4rem; }
#holdemEmoteToggle:disabled { opacity:.45; cursor:default; }
.holdem-emote-picker { position:absolute; right:0; bottom:calc(100% + 8px); z-index:12; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; width:min(290px,calc(100vw - 32px)); padding:10px; border:1px solid #46617d; border-radius:14px; background:#172438; box-shadow:0 5px 18px #0006; }
.holdem-emote-picker button { display:grid; place-items:center; min-width:0; min-height:44px; padding:3px; border:1px solid transparent; border-radius:8px; background:#29445e; cursor:pointer; }
.holdem-emote-picker button:focus-visible,.holdem-emote-picker button:hover { border-color:#f4cf78; }
.holdem-emote-picker img { width:38px; height:38px; }
.holdem-emote-picker.hidden { display:none; }
.holdem-folding-card { position:fixed; z-index:6; margin:0; pointer-events:none; transform-style:preserve-3d; }
.holdem-folded-cards { position:absolute; z-index:5; inset:0; overflow:visible; pointer-events:none; }
.holdem-folded-marker { position:absolute; margin:0; pointer-events:none; box-shadow:0 3px 8px #001b17aa; }
.holdem-room-actions { display:flex; gap:10px; }.holdem-room-actions>button { flex:1; min-height:44px; }
.holdem-error { min-height:1.4em; color:#c53d48; }
body[data-current-screen="holdem"] .game-chat-fab { right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); }
.holdem-action-dock { position:fixed; z-index:850; inset:auto 0 0; display:grid; gap:9px; padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); border-top:1px solid #26394c; background:rgba(11,20,32,.96); color:#f5f7fb; backdrop-filter:blur(14px); box-shadow:0 -8px 24px rgba(0,0,0,.28); }
.holdem-own-hand { display:flex; align-items:center; gap:10px; min-height:65px; }.holdem-own-hand>strong { flex:0 0 auto; font-size:.86rem; }.holdem-own-cards { display:grid; justify-items:start; gap:2px; }.holdem-my-cards { display:flex; gap:7px; }.holdem-own-hand .holdem-card { width:42px; max-height:59px; }.holdem-hand-label { min-height:1em; color:#f4cf78; font-size:.72rem; font-weight:800; }
.holdem-bet-row { display:grid; gap:7px; }.holdem-action-buttons { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }.holdem-raise-panel { display:grid; grid-template-columns:minmax(100px,1fr) auto auto; gap:7px; align-items:end; }.holdem-raise-panel label { min-width:0; color:#b7c6db; font-size:.68rem; }.holdem-raise-input-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:5px; align-items:center; margin-top:4px; }.holdem-raise-panel input { display:block; width:100%; min-width:0; height:42px; margin-top:0; padding:5px 8px; border:1px solid #3a4d68; border-radius:9px; background:#172438; color:#edf3fc; }.holdem-raise-panel small { grid-column:1/-1; grid-row:2; color:#b7c6db; }.holdem-raise-panel button,.holdem-action-buttons button { min-width:0; min-height:42px; padding:4px 6px; border:1px solid #344b65; border-radius:9px; background:#1b2c40; color:white; font-size:.74rem; font-weight:800; }.holdem-raise-input-row button { min-width:42px; padding:4px 8px; border-color:#46617d; background:#29445e; white-space:nowrap; touch-action:manipulation; }.holdem-action-buttons button[data-holdem-action="raise"],.holdem-action-buttons button[data-holdem-action="allin"],.holdem-raise-panel button[data-holdem-confirm-raise] { border-color:#c29a4e; background:linear-gradient(180deg,#e4be69,#bf8e38); color:#17202a; }.holdem-bet-row button:disabled { opacity:.45; }
html[data-theme="dark"] .holdem-wallet-badge { border-color:#886d32; background:#382f1b; color:#ffe49b; }
html[data-theme="dark"] .holdem-recharge-button { border-color:#527ab7; background:#315da3; color:#fff; }
html[data-theme="dark"] .holdem-debt-repay { border-color:#96514b; background:#382422; color:#ffc6be; }
html[data-theme="dark"] .holdem-intro { background:#1b2738; color:#afc0d7; }
@media(min-width:760px){.holdem-action-dock{left:50%;right:auto;width:min(100%,900px);transform:translateX(-50%);border:1px solid #26394c;border-bottom:0;border-radius:16px 16px 0 0}.holdem-room{padding-bottom:190px}}
@media(max-width:700px){.holdem-room{padding-bottom:205px}.holdem-table{min-height:clamp(510px,72vh,640px);border-width:7px;border-radius:48% / 42%}.holdem-seat{width:min(31%,124px);min-height:78px;padding:6px 4px}.holdem-seat-top strong{font-size:.7rem}.holdem-seat>small{font-size:.61rem}.holdem-center{top:50%;left:50%;transform:translate(-50%,-50%);gap:8px}.holdem-card{width:clamp(39px,10vw,58px);max-height:76px;border-radius:5px}.holdem-roundbar{gap:5px}.holdem-roundbar>div{padding:8px 6px}.holdem-roundbar span{font-size:.58rem}.holdem-roundbar strong{font-size:.69rem}.holdem-action-buttons{gap:5px}.holdem-action-buttons button,.holdem-raise-panel button{min-height:39px;font-size:.68rem}.holdem-raise-panel input{height:39px}.holdem-own-hand{min-height:54px}.holdem-own-hand .holdem-card{width:35px}}
@media(max-width:420px){.holdem-table{min-height:535px}.holdem-seat{width:min(32%,106px);min-height:73px;padding:5px 3px}.holdem-seat.seat-2,.holdem-seat.seat-3{left:16%}.holdem-seat.seat-5,.holdem-seat.seat-6{left:84%}.holdem-seat.seat-1{top:87%}.holdem-seat.seat-2,.holdem-seat.seat-6{top:70%}.holdem-seat.seat-3,.holdem-seat.seat-5{top:30%}.holdem-seat.seat-4{top:13%}.holdem-seat-top strong{font-size:.65rem}.holdem-seat>small{font-size:.56rem}.holdem-seat-cards{min-height:27px}.holdem-card.is-small-card{width:19px;max-height:27px}.holdem-card-back{width:17px;height:25px}.holdem-center{top:50%;left:50%;transform:translate(-50%,-50%)}.holdem-community{gap:3px}.holdem-card{width:clamp(34px,9vw,43px)}.holdem-roundbar{gap:4px}.holdem-roundbar>div{padding:7px 4px}.holdem-roundbar strong{font-size:.63rem}.holdem-pot>strong{padding:6px 9px;font-size:.78rem}.holdem-action-dock{gap:7px;padding-left:8px;padding-right:8px}.holdem-action-buttons{gap:4px}.holdem-action-buttons button{padding-inline:1px;font-size:.62rem}}
body[data-current-screen="holdem"].holdem-action-dock-open .game-chat-fab { position:fixed; right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); z-index:1000; }
body[data-current-screen="holdem"].holdem-action-dock-open .holdem-action-dock { padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
.holdem-local-actor-wrap { display:grid; flex:1 1 130px; gap:3px; min-width:0; color:#b7c6db; font-size:.68rem; }
.sutda-game-icon,.money-skin-store-icon { overflow:hidden; }
.sutda-game-icon img,.money-skin-store-icon img { display:block; width:100%; height:100%; object-fit:cover; }
.sutda-game-icon { border-radius:50%; background:#07503d; }
.sutda-table-wrap { display:grid; gap:10px; padding:12px 0; }
.sutda-table { position:relative; min-height:clamp(510px,65vh,690px); overflow:visible; border:9px solid #433728; border-radius:50% / 45%; background:radial-gradient(ellipse at 50% 42%,#168365 0,#0e7053 42%,#09543f 76%,#064332 100%); box-shadow:inset 0 0 0 2px #b38b4e,inset 0 0 0 10px #174d3e,inset 0 24px 70px #d0ffe018,0 16px 42px #0005; }
.sutda-seats { position:absolute; inset:0; z-index:1; }
.sutda-seat { position:absolute; display:grid; justify-items:center; align-content:center; gap:3px; width:min(30%,158px); min-width:0; min-height:95px; padding:7px; transform:translate(-50%,-50%); border:1px solid #ffffff45; border-radius:12px; background:#072c24dc; color:#edf7ef; text-align:center; box-shadow:0 4px 13px #0004; }
.sutda-seat.seat-1 { left:50%; top:87%; }
.sutda-seat.seat-2 { left:15%; top:70%; }
.sutda-seat.seat-3 { left:15%; top:30%; }
.sutda-seat.seat-4 { left:50%; top:13%; }
.sutda-seat.seat-5 { left:85%; top:30%; }
.sutda-seat.seat-6 { left:85%; top:70%; }
.sutda-seat.is-active { outline:2px solid #ffcf62; border-color:#ffcf62; box-shadow:0 0 0 4px #ffcf562b,0 4px 13px #0005; }
.sutda-seat.is-folded { opacity:.55; }
.sutda-seat>small { max-width:100%; overflow:hidden; color:#d8e8df; font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.sutda-seat>strong { max-width:100%; overflow:hidden; color:#fff; text-overflow:ellipsis; white-space:nowrap; }
.sutda-seat>em { color:#ffe08a; font-size:.72rem; font-style:normal; font-weight:800; }
.sutda-seat-cards,.sutda-my-hand>div { display:flex; justify-content:center; gap:4px; }
.sutda-card { display:block; width:clamp(64px,15vw,116px); max-height:162px; aspect-ratio:5/7; object-fit:contain; border-radius:6px; filter:drop-shadow(0 3px 6px #0005); }
.sutda-card.is-small { width:clamp(21px,5vw,34px); max-height:48px; border-radius:3px; }
.sutda-center { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; justify-items:center; gap:9px; width:36%; min-width:0; padding:10px 6px; border-radius:16px; background:#063d30ad; color:#fff; text-align:center; text-shadow:0 1px 4px #10291f; overflow-wrap:anywhere; }
.sutda-seat.is-empty { opacity:.45; }
.sutda-seat.is-winner { border-color:#ffe08a; box-shadow:0 0 0 2px #ffe08a88; }
.sutda-center>strong { font-size:clamp(.9rem,2.3vw,1.15rem); }
.sutda-reveal { color:#ffe08a; font-weight:900; }
.sutda-my-hand { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; min-height:75px; padding:12px; border:1px solid #26394c; border-radius:12px; background:#111d2a; color:#f5f7fb; }
.sutda-my-hand>span { color:#ffe08a; font-weight:800; }
.sutda-card-flip { display:block; flex:none; width:clamp(64px,15vw,116px); padding:0; border:0; background:transparent; color:#dcecff; cursor:pointer; touch-action:none; }
.sutda-card-reveal-stack { position:relative; display:block; flex:none; width:clamp(64px,15vw,116px); max-height:162px; aspect-ratio:5/7; perspective:700px; }
.sutda-card-reveal-stack>.sutda-card,.sutda-card-reveal-stack>.sutda-card-back-pattern { position:absolute; inset:0; box-sizing:border-box; width:100%; height:100%; max-height:none; }
.sutda-card-reveal-stack>.sutda-card { object-fit:fill; }
.sutda-card-reveal-stack>.sutda-card-back-pattern { transition:transform .42s cubic-bezier(.2,.75,.25,1),opacity .3s ease; }
.sutda-card-flip.is-dragging .sutda-card-reveal-stack>.sutda-card-back-pattern { transform:translateY(var(--sutda-drag-y,0)); transition:none; }
.sutda-card-flip.is-revealed .sutda-card-back-pattern { transform:translateY(-102%); opacity:.12; }
.sutda-card-flip.is-revealed .sutda-card-reveal-stack>.sutda-card { filter:drop-shadow(0 3px 6px #0005); }
#sutdaCardPopup { z-index:1600; }
.sutda-card-popup-content { width:min(440px,calc(100vw - 32px)); max-height:calc(100svh - 32px); overflow:hidden; }
.sutda-card-popup-cards { display:flex; justify-content:center; align-items:center; gap:20px; padding:32px 0 16px; }
.sutda-card-popup-cards>.sutda-card,.sutda-card-popup-cards>.sutda-card-flip,.sutda-card-popup-cards .sutda-card-reveal-stack { width:min(32vw,140px,30svh); max-height:none; aspect-ratio:5/7; }
.sutda-card-popup-cards>.sutda-card { height:auto; object-fit:fill; }
.sutda-card-popup-content>p { text-align:center; font-size:.85rem; }
.sutda-card-back-pattern { display:block; flex:none; width:clamp(64px,15vw,116px); max-height:162px; aspect-ratio:5/7; border:1px solid #f5a2a2; border-radius:6px; background:#a70e18 url("./assets/sutda-card-back.png") center/100% 100% no-repeat; box-shadow:0 3px 6px #0005; }
.sutda-card-back-pattern.is-small { width:clamp(21px,5vw,34px); border-radius:3px; }
.sutda-title-group { min-width:0; }
.sutda-title-group>.eyebrow { display:block; font-size:.62rem; }
.sutda-title-group>h2 { display:inline-block; margin:4px 8px 0 0; vertical-align:middle; }
.sutda-title-group>.omok-rules-button { vertical-align:middle; }
#sutdaGameScreen .mystery-game-header { flex-wrap:wrap; gap:12px; }
#sutdaGameScreen .omok-header-actions { flex-wrap:wrap; justify-content:flex-end; }
.sutda-room>.holdem-room-actions { display:flex; flex-wrap:wrap; }
.sutda-room>.holdem-room-actions>button { flex:1 1 135px; }
.sutda-room>.holdem-error:empty { display:none; }
.sutda-room .holdem-room-actions:not(:has(button:not(.hidden))) { display:none; }
.sutda-local-panel { min-width:0; }
#sutdaLocalRoomControls { gap:6px; padding:10px; }
#sutdaLocalRoomControls>strong { font-size:.72rem; }
#sutdaLocalRoomControls>p { font-size:.78rem; }
#sutdaLocalRoomControls>button { min-height:36px; padding:6px 12px; }
.sutda-action-dock .sutda-my-hand { min-height:58px; padding:0; border:0; background:transparent; justify-content:flex-start; }
.sutda-action-dock .sutda-my-hand .sutda-card,.sutda-action-dock .sutda-my-hand .sutda-card-back-pattern:not(.is-small),.sutda-action-dock .sutda-my-hand .sutda-card-reveal-stack { width:50px; max-height:70px; }
.sutda-action-dock .sutda-my-hand .sutda-card-flip { width:50px; flex:0 0 50px; }
.sutda-action-dock .holdem-action-buttons { grid-template-columns:repeat(4,minmax(0,1fr)); }
.sutda-action-dock button:disabled { opacity:.4; }
.sutda-my-hand>.sutda-own-card-group { display:grid; justify-items:center; gap:4px; }
.sutda-own-card-row { display:flex; align-items:center; gap:10px; }
.sutda-hand-name { min-height:1em; color:#ffe08a; font-size:.78rem; font-weight:800; }
.sutda-action-badge { padding:2px 7px; border:1px solid #d3e9ef77; border-radius:12px; background:#153f35; color:#ffe08a; font-size:.65rem; font-weight:800; }
#sutdaDockStatus { color:#d0deee; font-size:.74rem; }
.sutda-flow-modal { z-index:1200; }
#moneyAllinConfirmModal { z-index:2100; }
.sutda-flow-modal .modal-content { width:min(100%,680px); max-width:680px; max-height:min(82dvh,600px); box-sizing:border-box; padding:22px; border-radius:20px 20px 0 0; box-shadow:0 -12px 40px rgba(15,23,42,.28); }
.sutda-flow-modal .notice-content { justify-items:stretch; gap:14px; padding:22px; text-align:left; }
.sutda-flow-modal .modal-header { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; margin:0; }
.sutda-flow-modal .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; text-align:left; }
.sutda-flow-modal .modal-header .close-button { flex:0 0 44px; width:44px; min-width:44px; height:44px; min-height:44px; display:grid; place-items:center; margin-left:auto; border-radius:50%; line-height:1; }
.sutda-flow-modal .notice-content>p { margin:0; text-align:left; line-height:1.55; }
.sutda-flow-modal .notice-content>button { width:100%; min-height:44px; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) .sutda-flow-modal { z-index:2000; }
body:has(#sutdaResultModal:not(.hidden)) #sutdaGameScreen { z-index:900; }
body:has(#sutdaResultModal:not(.hidden)) #sutdaActionDock { display:none !important; }
.sutda-flow-modal .modal-header h2 { color:#17365f; }
.sutda-flow-modal .notice-content>p,
.sutda-flow-modal .sutda-result-player { color:#243b5a; }
.sutda-flow-modal .sutda-result-player.is-winner { color:#4e380b; }
.sutda-rules-image-modal { place-items:center; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.sutda-rules-image-content { position:relative; z-index:1; display:grid; place-items:center; width:100vw; height:100dvh; max-width:100vw; max-height:100dvh; overflow:hidden; background:#000; }
.sutda-rules-image-content>img { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
.sutda-rules-image-content>.close-button { position:absolute; z-index:2; top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); width:42px; min-width:42px; height:42px; min-height:42px; border:0; border-radius:50%; background:#ffffffdf; color:#17365f; font-size:1.8rem; line-height:1; }
html[data-theme="dark"] .sutda-rules-image-content>.close-button { background:#1a2230e8; color:#edf2fa; }
#sutdaResultPlayers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.sutda-result-player { display:grid; gap:8px; padding:12px; border:1px solid #cad8e9; border-radius:12px; min-width:0; }
.sutda-result-player>div { display:flex; gap:6px; }
.sutda-result-player small { overflow-wrap:anywhere; }
.sutda-result-player.is-winner { border-color:#c09b3c; background:#fff5d8; color:#4e380b; }
html[data-theme="dark"] .sutda-result-player { border-color:#3a4a61; }
html[data-theme="dark"] .sutda-result-player.is-winner { background:#352e1e; color:#ffe08a; }
body[data-current-screen="sutda"].sutda-dock-open .game-chat-fab { bottom:calc(210px + env(safe-area-inset-bottom)); }
body[data-current-screen="sutda"] .sutda-room { padding-bottom:250px; }
.sutda-room { padding-bottom:210px; }
.sutda-local-panel { display:grid; gap:10px; margin:12px 0; padding:14px; border:1px dashed #4f80c5; border-radius:14px; background:#eaf2ff; color:#183b66; }
.sutda-local-panel>p { margin:0; font-size:.9rem; }
.sutda-local-add-row { display:flex; flex-wrap:wrap; gap:8px; }
.sutda-local-add-row input { flex:1 1 180px; min-width:0; padding:10px 12px; border:1px solid #b9cae4; border-radius:10px; }
.sutda-local-add-row button,.sutda-local-panel>button { padding:9px 13px; border:0; border-radius:9px; background:#315b9b; color:#fff; font-weight:750; }
.sutda-local-roster { display:flex; flex-wrap:wrap; gap:7px; }
.sutda-local-roster>span { padding:5px 9px; border-radius:999px; background:#fff; font-size:.85rem; }
.sutda-local-roster button { margin-left:5px; border:0; background:transparent; color:#a33; font-size:1rem; }
.sutda-local-panel button:disabled { opacity:.5; }
html[data-theme="dark"] .sutda-local-panel { background:#13243a; color:#d8e8ff; border-color:#42638e; }
html[data-theme="dark"] .sutda-local-add-row input,html[data-theme="dark"] .sutda-local-roster>span { background:#0e1b2b; color:#f1f5fb; border-color:#40536b; }
body[data-current-screen="sutda"] .game-chat-fab { right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); }
html[data-theme="dark"] .sutda-seat { background:#071d1bdc; }
@media(max-width:700px){.sutda-table{min-height:clamp(560px,76vh,690px);border-width:7px;border-radius:48% / 42%}.sutda-seat{width:min(31%,124px);min-height:88px;padding:6px 4px}.sutda-seat>strong{font-size:.78rem}.sutda-seat>small{font-size:.6rem}.sutda-center{padding:8px 4px}.sutda-center>strong{font-size:.8rem}.sutda-reveal{font-size:.72rem}.sutda-card,.sutda-card-back-pattern:not(.is-small){width:clamp(58px,18vw,84px)}.sutda-card-reveal-stack,.sutda-card-flip{width:clamp(58px,18vw,84px)}.sutda-room{padding-bottom:190px}.sutda-action-dock .holdem-action-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:420px){.sutda-seat{width:min(32%,106px);padding:5px 3px}.sutda-seat.seat-2,.sutda-seat.seat-3{left:16%}.sutda-seat.seat-5,.sutda-seat.seat-6{left:84%}.sutda-seat>small{font-size:.56rem}.sutda-seat>strong{font-size:.7rem}}
@media(max-width:420px){.sutda-card-back-pattern.is-small{width:17px}}

/* 맞고 테이블 */
html:has(#matgoGameScreen:not(.hidden) #matgoRoom:not(.hidden)),
body:has(#matgoGameScreen:not(.hidden) #matgoRoom:not(.hidden)){overflow:hidden;scrollbar-gutter:auto;}
body:has(#matgoGameScreen:not(.hidden) #matgoRoom:not(.hidden)) .app-header,
body:has(#matgoGameScreen:not(.hidden) #matgoRoom:not(.hidden)) .bottom-nav{display:none;}
#matgoGameScreen:has(#matgoRoom:not(.hidden)){
  position:fixed;inset:0;z-index:35;display:grid;grid-template-rows:44px minmax(0,1fr);gap:0;
  width:100%;max-width:none;height:100dvh;min-height:0;padding:env(safe-area-inset-top) 8px env(safe-area-inset-bottom);
  box-sizing:border-box;overflow:hidden;background:#10291f;
  --matgo-hand-width:clamp(23px,min(7.8vw,6.2dvh),52px);
  --matgo-capture-width:clamp(17px,min(5vw,4.1dvh),34px);
  --matgo-field-width:clamp(25px,min(8vw,5.6dvh),54px);
}
#matgoGameScreen:has(#matgoRoom:not(.hidden))>.mystery-game-header{margin:0;padding:0 4px;gap:6px;min-height:0;}
#matgoGameScreen:has(#matgoRoom:not(.hidden)) .eyebrow,
#matgoGameScreen:has(#matgoRoom:not(.hidden)) #matgoCreateRoom{display:none;}
#matgoGameScreen:has(#matgoRoom:not(.hidden)) h2{font-size:1.1rem;margin:0;color:#fff;}
#matgoGameScreen:has(#matgoRoom:not(.hidden)) .omok-header-actions{gap:8px;}
#matgoGameScreen:has(#matgoRoom:not(.hidden)) .holdem-wallet-badge{padding:4px 8px;font-size:.72rem;}
#matgoGameScreen:has(#matgoRoom:not(.hidden)) #matgoLocalTest{padding:4px 6px;min-height:28px;font-size:.65rem;white-space:nowrap;}
#matgoGameScreen:has(#matgoRoom:not(.hidden)) .word-chain-close-button{width:32px;height:32px;font-size:1.5rem;}
#matgoRoom{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:4px;min-height:0;width:100%;max-width:900px;justify-self:center;margin:0;padding:0 0 5px;border:0;background:transparent;box-shadow:none;}
.matgo-room-bar{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;}
#matgoInvite{display:flex;align-items:center;gap:5px;width:auto;min-height:24px;padding:3px 7px;margin:0;border-radius:7px;font-size:.65rem;}
#matgoInvite strong{font-size:.78rem;letter-spacing:1px;}
#matgoInviteStatus:empty{display:none;}
.matgo-stock{font-size:.68rem;color:#dbe9d5;white-space:nowrap;}
#matgoTurnStatus{min-height:0;margin:0;padding:4px 6px;border-radius:7px;font-size:.73rem;line-height:1.25;color:#dcebd5;}
.matgo-table{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:2px;min-height:0;padding:6px;border:1px solid #567052;border-radius:16px;background:radial-gradient(ellipse at center,#315d3e,#153b29 80%);color:#fff;position:relative;}
.matgo-player{display:grid;gap:2px;min-width:0;}
.matgo-seat{display:flex;align-items:center;justify-content:center;gap:7px;min-height:24px;padding:2px 6px;border-radius:8px;background:#071d1770;font-size:.72rem;}
.matgo-seat strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:35%;}
.matgo-seat>span:not(.matgo-seat-avatar){white-space:nowrap;color:#f3dd9f;}
.matgo-seat small{font-size:.63rem;color:#cce1d0;}
.matgo-seat.is-active{outline:1px solid #f4d37c;background:#5a4b2380;}
.matgo-seat-avatar{display:grid;place-items:center;width:23px;height:23px;border:1px solid #d7ba73;border-radius:50%;background:#234c3a;font-size:.6rem;flex-shrink:0;}
.matgo-opponent-hand,.matgo-my-hand{display:flex;justify-content:center;align-items:center;gap:3px;min-width:0;min-height:calc(var(--matgo-hand-width)*1.4);}
#matgoOpponentHand .sutda-card-back-pattern.is-small{width:calc(var(--matgo-hand-width)*.72);max-height:none;border-radius:3px;}
.matgo-card{display:block;box-sizing:border-box;width:var(--matgo-hand-width);aspect-ratio:5/7;object-fit:fill;border:1px solid #dfd0aa;border-radius:4px;background:#f7f1df;box-shadow:none;flex-shrink:0;}
.matgo-my-hand{container-type:inline-size;--matgo-my-hand-width:calc(var(--matgo-hand-width)*1.5);min-height:calc(var(--matgo-my-hand-width)*1.4);}
.matgo-hand-fan{display:flex;justify-content:center;align-items:center;width:100%;gap:3px;}
.matgo-my-hand .matgo-card{width:var(--matgo-my-hand-width);cursor:pointer;transition:transform .16s ease,filter .16s ease;}
.matgo-hand-fan>.matgo-card:not(:first-child){margin-left:min(0px,calc((100cqw - var(--hand-count)*var(--matgo-my-hand-width) - (var(--hand-count) - 1)*3px)/max(1,(var(--hand-count) - 1))));}
.matgo-my-hand:not(.is-disabled) .matgo-card:hover{transform:translateY(-3px);filter:brightness(1.08);}
.matgo-my-hand.is-disabled .matgo-card{opacity:.78;}
.matgo-captured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.7fr);gap:4px;}
.matgo-capture-group{min-width:0;padding:3px 4px;border:0;border-radius:0;background:transparent;}
.matgo-capture-group>span{display:none;}
.matgo-capture-cards{display:grid;grid-template-columns:repeat(var(--pile-count),minmax(0,1fr));align-items:center;padding-right:calc(var(--matgo-capture-width) - 4px);min-height:calc(var(--matgo-capture-width)*1.4);margin-top:0;}
.matgo-capture-cards .matgo-card{width:var(--matgo-capture-width);border-radius:2px;}
#matgoMyCaptured{--matgo-capture-width:clamp(30px,min(13vw,9dvh),58px);}
.matgo-capture-cards>small{display:none;}
.matgo-field-zone{position:relative;display:grid;grid-template-rows:minmax(0,1fr);min-height:0;padding:0;border:0;border-radius:0;background:transparent;}
.matgo-field-label{display:none;}
.matgo-field{position:relative;min-height:0;container-type:size;}
.matgo-field-area,.matgo-deck{--matgo-field-width:clamp(12px,min(8vw,5.6dvh,13cqh),54px);}
.matgo-field-area{--matgo-pile-fan-x:clamp(7px,calc(var(--matgo-field-width)*.22),11px);--matgo-pile-fan-y:clamp(6px,calc(var(--matgo-field-width)*.20),10px);--matgo-field-width:min(calc(clamp(12px,min(8vw,5.6dvh,13cqh),54px)*1.4),calc((100cqh - 54px)/4.2),calc((100cqw - 128px)/3));--matgo-pile-height:calc(var(--matgo-field-width)*1.4 + 8px + var(--matgo-pile-fan-y)*3);position:absolute;left:clamp(calc((var(--matgo-field-width) + 26px + var(--matgo-pile-fan-x)*3)*.5),var(--clock-x),calc(100% - (var(--matgo-field-width) + 26px + var(--matgo-pile-fan-x)*3)*.5));top:clamp(calc(var(--matgo-pile-height)*.5),var(--clock-y),calc(100% - (var(--matgo-pile-height)*.5)));width:calc(var(--matgo-field-width) + 26px + var(--matgo-pile-fan-x)*3);height:var(--matgo-pile-height);transform:translate(-50%,-50%);}
.matgo-field-area[data-clock="1"]{--clock-x:72%;--clock-y:16%;}
.matgo-field-area[data-clock="3"]{--clock-x:88%;--clock-y:50%;}
.matgo-field-area[data-clock="5"]{--clock-x:72%;--clock-y:84%;}
.matgo-field-area[data-clock="7"]{--clock-x:28%;--clock-y:84%;}
.matgo-field-area[data-clock="9"]{--clock-x:12%;--clock-y:50%;}
.matgo-field-area[data-clock="11"]{--clock-x:28%;--clock-y:16%;}
.matgo-field-area>:nth-child(2){position:absolute;left:14px;top:4px;}
.matgo-field-slot-empty{display:none;}
.matgo-field-area[data-pile-count="1"]>.matgo-field-pile{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);}
.matgo-field-area[data-pile-count="1"]>:nth-child(2){left:50%;top:50%;transform:translate(-50%,-50%);}
.matgo-field-pile{position:relative;width:calc(var(--matgo-field-width) + var(--matgo-pile-fan-x)*3);height:calc(var(--matgo-pile-height) - 4px);}
.matgo-field-pile>div{position:absolute;left:calc(var(--pile-index)*var(--matgo-pile-fan-x));top:calc(var(--pile-index)*var(--matgo-pile-fan-y));}
.matgo-field .matgo-card{width:var(--matgo-field-width);}
.matgo-field-empty{grid-area:1/1/3/4;align-self:center;text-align:center;font-size:.7rem;color:#b1c8b5;}
.matgo-deck{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:5px;pointer-events:none;}
.matgo-deck-stack{position:relative;width:var(--matgo-field-width);height:calc(var(--matgo-field-width)*1.4);border:1px dashed #d7ba7355;border-radius:4px;box-sizing:border-box;}
.matgo-deck-layer{position:absolute;inset:0;transform:translate(calc(var(--stock-index)*.25px),calc(var(--stock-index)*-.35px));}
#matgoField .matgo-deck .sutda-card-back-pattern.is-small{width:100%;height:100%;max-height:none;aspect-ratio:5/7;border-radius:3px;box-sizing:border-box;box-shadow:0 1px 2px #0005;}
.matgo-deck>small{font-size:.62rem;white-space:nowrap;color:#f3dd9f;}
.matgo-match-choices{position:fixed;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);z-index:100;display:flex;width:min(90vw,360px);min-height:112px;box-sizing:border-box;justify-content:center;align-content:center;align-items:center;flex-wrap:wrap;gap:8px;padding:14px;border:1px solid #e4c57c;border-radius:14px;background:#10291ff5;color:#f5f1e4;text-align:center;box-shadow:0 18px 55px #000b;}
.matgo-match-choices>span{flex-basis:100%;font-size:.72rem;font-weight:700;}
.matgo-match-choices>button{display:grid;justify-items:center;gap:3px;min-width:65px;padding:4px;border:1px solid #ffffff35;border-radius:8px;background:#ffffff12;color:inherit;cursor:pointer;}
.matgo-match-choices>button:hover{background:#ffffff24;}
.matgo-match-choices>button:disabled{opacity:.55;cursor:wait;}
.matgo-match-choices .matgo-card{width:var(--matgo-field-width);}
.matgo-match-choices small{font-size:.6rem;}
#matgoRoom.is-animating .matgo-card.is-moving-source{opacity:.12;}
#matgoRoom.is-animating .matgo-my-hand{pointer-events:none;}
.matgo-motion-card{position:fixed;z-index:1250;pointer-events:none;box-sizing:border-box;transition:left .38s cubic-bezier(.2,.72,.22,1),top .38s cubic-bezier(.2,.72,.22,1),width .38s ease,height .38s ease;filter:none;}
.matgo-motion-front,.matgo-motion-back{position:absolute;inset:0;display:block;width:100%;height:100%;box-sizing:border-box;border:1px solid #dfd0aa;border-radius:4px;backface-visibility:hidden;-webkit-backface-visibility:hidden;}
.matgo-motion-front{object-fit:fill;background:#f7f1df;}
.matgo-motion-front.is-already-face-up{border:0;border-radius:0;}
.matgo-motion-flipper{position:absolute;inset:0;transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transition:transform .52s cubic-bezier(.2,.72,.22,1);}
.matgo-motion-back{display:grid;place-items:stretch;overflow:hidden;background:#f7f1df;}
.matgo-motion-back .sutda-card-back-pattern{width:100%;height:100%;max-height:none;aspect-ratio:5/7;border-radius:3px;}
.matgo-motion-front:not(.is-already-face-up){transform:rotateY(180deg);}
.matgo-motion-card.is-revealed .matgo-motion-flipper{transform:rotateY(180deg);}
.matgo-score{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
#matgoActions{display:flex;gap:6px;margin:0;padding:0;}
#matgoActions:not(:has(button:not(.hidden))){display:none;}
#matgoActions button{flex:1;min-height:32px;margin:0;padding:5px 8px;font-size:.75rem;}
#matgoError{margin:0;font-size:.68rem;line-height:1.2;}
#matgoError:empty{display:none;}
@media(max-height:650px){
  #matgoGameScreen:has(#matgoRoom:not(.hidden)){grid-template-rows:38px minmax(0,1fr);--matgo-hand-width:clamp(22px,min(7.8vw,5.5dvh),40px);--matgo-capture-width:clamp(15px,3.5dvh,25px);--matgo-field-width:clamp(22px,4.7dvh,38px);}
  .matgo-table{gap:2px;padding:4px;}.matgo-player{gap:2px;}.matgo-seat{min-height:20px;}.matgo-seat-avatar{width:20px;height:20px;}
}
@media(max-height:440px) and (min-width:600px){
  .matgo-table{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;column-gap:10px;}
  .matgo-player-opponent{grid-column:1/-1;grid-template-columns:1fr 1fr;align-items:center;}.matgo-player-opponent .matgo-captured{grid-column:1/-1;}
  .matgo-field-zone{grid-column:1/-1;}.matgo-player-me{grid-column:1/-1;grid-template-columns:1fr 1fr;align-items:center;}.matgo-player-me .matgo-captured{grid-column:1/-1;}.matgo-player-me .matgo-my-hand{grid-column:2;grid-row:2;}
  .matgo-deck{--matgo-field-width:clamp(8px,11cqh,14px);}.matgo-field-area{--matgo-pile-fan-x:clamp(5px,calc(var(--matgo-field-width)*.22),7px);--matgo-pile-fan-y:clamp(4px,calc(var(--matgo-field-width)*.20),6px);--matgo-field-width:min(calc(clamp(8px,11cqh,14px)*1.4),calc((100cqh - 46px)/4.2));--matgo-pile-height:calc(var(--matgo-field-width)*1.4 + 8px + var(--matgo-pile-fan-y)*3);width:calc(var(--matgo-field-width) + 26px + var(--matgo-pile-fan-x)*3);height:var(--matgo-pile-height);}
  #matgoActions,#matgoError{grid-column:1/-1;}
}
.holdem-local-actor-wrap select { width:100%; min-width:0; min-height:38px; padding:5px 25px 5px 8px; border:1px solid #3a4d68; border-radius:9px; background:#172438; color:#edf3fc; font-size:.75rem; }
@media(max-width:420px){.holdem-local-actor-wrap{flex-basis:112px;font-size:.62rem}.holdem-local-actor-wrap select{font-size:.68rem;min-height:35px}}
.holdem-seat.is-gueje-theme,.sutda-seat.is-gueje-theme { border:1px solid #d2ad66; border-radius:12px; background:linear-gradient(155deg,#07533f 0%,#063b31 48%,#032b27 100%); box-shadow:inset 0 1px 0 #fff1c74a,inset 0 0 0 2px #193c2c,0 0 0 2px #4d351d,0 0 13px #41e9b147,0 6px 15px #00130fcc; }
.holdem-seat.is-gueje-theme::before,.sutda-seat.is-gueje-theme::before { position:absolute; inset:4px; border:1px solid #e1c27b9c; border-radius:8px; content:""; pointer-events:none; }

/* 섯다 게임방도 티츄·홀덤처럼 화면 전체를 사용하고 조작까지 한 화면에 배치합니다. */
html:has(#sutdaGameScreen:not(.hidden) #sutdaRoom:not(.hidden)) { scrollbar-gutter:auto; overflow:hidden; }
body:has(#sutdaGameScreen:not(.hidden) #sutdaRoom:not(.hidden)) { overflow:hidden; }
body:has(#sutdaGameScreen:not(.hidden) #sutdaRoom:not(.hidden)) .bottom-nav,
body:has(#sutdaGameScreen:not(.hidden) #sutdaRoom:not(.hidden)) .app-header { display:none; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) {
  position:fixed; inset:0; z-index:35; display:grid; grid-template-columns:minmax(0,1fr);
  grid-template-rows:46px minmax(0,1fr) auto; gap:0; width:100%; max-width:none; height:100dvh; min-height:0;
  padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom); overflow:hidden; color:#fff9e5;
  background:radial-gradient(ellipse at 50% 42%,#17624d,#092f26 90%);
}
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) > .mystery-game-header { grid-row:1; position:relative; top:auto; min-height:0; margin:0; padding:4px 10px; gap:5px; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) .mystery-game-header .eyebrow { display:none; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaTitle { margin:0; color:#fff9e5; font-size:1.05rem; }
#sutdaGameScreen .sutda-title-group > #sutdaRulesButton { margin-left:8px; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) .omok-header-actions { flex:1; flex-wrap:nowrap; justify-content:flex-end; gap:4px; min-width:0; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) .holdem-wallet-actions { flex-wrap:nowrap; gap:3px; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) .holdem-wallet-badge,
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) .holdem-recharge-button,
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaCreateRoom { min-height:27px; padding:3px 6px; font-size:.58rem; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #closeSutda { flex:0 0 32px; width:32px; min-width:32px; max-width:32px; height:32px; min-height:32px; padding:0; border-radius:50%; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaLobby { display:none; }
#sutdaRoom { grid-row:2; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto; align-items:stretch; gap:0; min-height:0; margin:0; padding:0; overflow:hidden; }
#sutdaRoom .sutda-room-toolbar { display:flex; align-items:center; gap:8px; min-height:29px; padding:0 10px 3px; }
#sutdaRoom #sutdaInvite { display:inline-flex; flex:0 0 auto; align-items:center; gap:4px; width:auto; min-height:25px; margin:0; padding:2px 6px; border:1px solid #d5deeb; background:#f8fafc; color:#243b5a; box-shadow:0 2px 6px #0004; }
#sutdaRoom #sutdaInvite > span { color:#52647d; font-size:.58rem; }
#sutdaRoom #sutdaInvite > strong { color:#153e78; font-size:.68rem; font-weight:900; text-shadow:none; }
#sutdaRoom #sutdaInvite > small { display:none; }
#sutdaRoom #sutdaRebuySettings { margin:0; padding:0; gap:3px; color:#e8f7df; font-size:.58rem; }
#sutdaRoom #sutdaRebuyLimit { width:auto; min-height:23px; padding:2px; font-size:.62rem; }
#sutdaRoom .sutda-table-wrap { grid-row:2; grid-template-rows:auto minmax(0,1fr) auto; gap:3px; min-height:0; padding:0; overflow:hidden; }
#sutdaRoom .holdem-roundbar { grid-row:1; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; margin:0; padding:0 8px; }
#sutdaRoom .holdem-roundbar > div { min-height:0; padding:3px 2px; border:0; border-radius:5px; background:#0002; }
#sutdaRoom .holdem-roundbar span { font-size:.48rem; }
#sutdaRoom .holdem-roundbar strong { font-size:.58rem; }
#sutdaRoom #sutdaTable { grid-row:2; width:100%; height:100%; min-height:0; border-width:6px; border-radius:34px; overflow:hidden; }
#sutdaRoom .sutda-seat { width:clamp(70px,18vw,130px); min-height:0; padding:4px 3px; gap:2px; border-radius:9px; }
#sutdaRoom .sutda-seat > small { font-size:.55rem; }
#sutdaRoom .sutda-seat > strong { font-size:.66rem; }
#sutdaRoom .sutda-seat > em { font-size:.58rem; }
#sutdaRoom #sutdaSeats .sutda-seat[data-player-theme] { background-position:center; background-size:cover; background-repeat:no-repeat; }
@supports (width:1cqw) {
  #sutdaRoom #sutdaSeats { container:sutda-seats / inline-size; }
  #sutdaRoom #sutdaSeats .sutda-seat { width:clamp(70px,18cqw,130px); }
}
#sutdaRoom .sutda-card.is-small,
#sutdaRoom .sutda-card-back-pattern.is-small { width:clamp(18px,4.5vw,28px); }
#sutdaRoom .sutda-center { width:38%; gap:4px; padding:6px 4px; }
#sutdaRoom .sutda-center:has(.sutda-round-summary:not(.hidden)) { z-index:2; }
#sutdaRoom .sutda-round-summary { width:100%; max-width:100%; margin-top:4px; }
#sutdaRoom .sutda-round-summary > button { width:100%; min-width:0; min-height:42px; box-sizing:border-box; padding:8px 10px; font-size:clamp(.72rem,2.5vw,.9rem); white-space:normal; }
#sutdaRoom .sutda-center > strong { font-size:clamp(.72rem,2vw,1rem); }
#sutdaRoom .sutda-reveal { font-size:.7rem; }
#sutdaRoom #sutdaMyHand { grid-row:3; min-height:0; flex-wrap:nowrap; gap:6px; margin:0 8px; padding:3px 6px; border-radius:8px; }
#sutdaRoom #sutdaMyHand > span { font-size:.65rem; }
#sutdaRoom #sutdaMyHand .sutda-card,
#sutdaRoom #sutdaMyHand .sutda-card-back-pattern:not(.is-small),
#sutdaRoom #sutdaMyHand .sutda-card-flip,
#sutdaRoom #sutdaMyHand .sutda-card-reveal-stack { width:clamp(36px,8dvh,58px); max-height:82px; }
#sutdaRoom .sutda-table-footer { grid-row:3; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:3px 8px; padding:2px 10px 4px; }
#sutdaRoom #sutdaTurnStatus { grid-column:1 / -1; min-height:0; margin:0; padding:2px 4px; border:0; background:transparent; color:#e4f1db; font-size:.6rem; }
#sutdaRoom #sutdaError { grid-column:1 / -1; min-height:0; margin:0; font-size:.62rem; }
#sutdaRoom #sutdaError:empty { display:none; }
#sutdaRoom .holdem-room-actions { grid-column:1 / -1; justify-content:center; gap:4px; margin:0; }
#sutdaRoom .holdem-room-actions > button { flex:0 1 auto; min-height:27px; padding:3px 7px; font-size:.6rem; }
#sutdaRoom #sutdaLocalRoomControls { grid-row:2; z-index:4; align-self:start; margin:4px 8px; padding:6px; gap:4px; font-size:.65rem; }
#sutdaRoom #sutdaLocalRoomControls > p { font-size:.65rem; }
#sutdaRoom #sutdaLocalRoomControls > button { min-height:28px; padding:4px 8px; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) > #sutdaActionDock { grid-row:3; position:relative; inset:auto; z-index:5; display:grid; gap:4px; width:100%; padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); border:0; border-top:1px solid #ffffff2b; border-radius:0; background:#091b18ed; box-shadow:0 -4px 14px #0003; backdrop-filter:blur(10px); }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaActionDock .holdem-action-buttons { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaActionDock .holdem-action-buttons button { min-height:32px; padding:4px; font-size:.66rem; }
#sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaRaisePanel { gap:4px; padding:5px 8px; }
body[data-current-screen="sutda"].sutda-dock-open .game-chat-fab { right:10px; bottom:calc(10px + env(safe-area-inset-bottom)); }
@media (max-height:560px) {
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) { grid-template-rows:38px minmax(0,1fr) auto; }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) > .mystery-game-header { padding-block:2px; }
  #sutdaRoom .sutda-room-toolbar { min-height:25px; padding-bottom:1px; }
  #sutdaRoom .sutda-table-footer { padding-block:0 2px; }
  #sutdaRoom .sutda-seat { padding:2px; }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) > #sutdaActionDock { padding-top:3px; padding-bottom:calc(3px + env(safe-area-inset-bottom)); }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaActionDock .holdem-action-buttons button { min-height:27px; }
}
@media (max-width:700px) {
  #sutdaRoom .holdem-room-actions { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:8px; width:100% !important; padding:6px 0 8px; }
  #sutdaRoom .holdem-room-actions > button,
  #sutdaRoom #sutdaStart { display:block; grid-column:1 / -1; width:100% !important; min-width:0; min-height:44px; box-sizing:border-box; padding:6px 8px; border-radius:10px; font-size:.88rem; line-height:1.15; white-space:normal; }
  #sutdaRoom .holdem-room-actions > button { display:block; grid-column:1 / -1; width:100% !important; min-width:0; min-height:44px; box-sizing:border-box; padding:6px 8px; border-radius:10px; font-size:.88rem; line-height:1.15; white-space:normal; }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) > #sutdaActionDock { gap:6px; padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaActionDock .holdem-action-buttons { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaActionDock .holdem-action-buttons button { min-width:0; min-height:42px; padding:7px 8px; border-radius:10px; font-size:.78rem; line-height:1.15; touch-action:manipulation; }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaRaisePanel { grid-template-columns:minmax(0,1fr) auto; gap:6px; padding:7px 8px; }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaRaisePanel label { grid-column:1 / -1; font-size:.68rem; }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaRaisePanel input { height:40px; }
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)) #sutdaRaisePanel button { min-width:40px; min-height:40px; padding:6px 9px; font-size:.72rem; touch-action:manipulation; }
}
.holdem-seat.is-gueje-theme .holdem-seat-top strong,.sutda-seat.is-gueje-theme>strong { color:#f7f0d9; text-shadow:0 1px 3px #001c16; }
.holdem-seat.is-gueje-theme>small:not(.game-turn-timeout),.sutda-seat.is-gueje-theme>small { color:#e4eadc; }
.sutda-seat.is-gueje-theme>small:first-child { position:absolute; top:-9px; left:50%; z-index:2; max-width:85%; padding:1px 9px; transform:translateX(-50%); border:1px solid #d5ae5e; border-radius:7px; background:linear-gradient(#174d3b,#082f28); box-shadow:0 2px 5px #00140e; color:#fff0c3; font-weight:800; }
.holdem-seat.is-gueje-theme>small:first-child { padding:1px 6px; border:1px solid #caa95f; border-radius:7px; background:linear-gradient(#164b39,#092f28); color:#fff0c3; font-weight:800; }
.holdem-seat.is-gueje-theme .holdem-seat-records { gap:3px; }
.holdem-seat.is-gueje-theme .holdem-bankruptcy-count,.holdem-seat.is-gueje-theme .holdem-rebuy-remaining { padding:1px 5px; border:1px solid #c8aa6428; border-radius:999px; background:#071c17a8; }
.holdem-seat.is-gueje-theme .holdem-rebuy-remaining::before,.sutda-seat.is-gueje-theme>small:nth-of-type(3)::before { content:"↻ "; color:#d5b65f; font-weight:900; }
.holdem-seat.is-gueje-theme>small:nth-of-type(2)::before,.sutda-seat.is-gueje-theme>small:nth-of-type(2)::before { content:"◉ "; color:#f0cd72; font-size:.8em; }
.holdem-seat.is-gueje-theme>small.holdem-seat-bet,.sutda-seat.is-gueje-theme>small:last-of-type { padding:2px 8px; border:1px solid #58c89a9c; border-radius:999px; background:linear-gradient(#0d6a50,#074634); color:#d5ffe9!important; font-weight:800; }
.holdem-seat.is-gueje-theme.is-active,.sutda-seat.is-gueje-theme.is-active { border-color:#b9f4c8; outline:2px solid #68e5ad; box-shadow:inset 0 1px 0 #fff4cd70,inset 0 0 0 2px #244530,0 0 0 3px #7bf0b37a,0 0 19px #54ffc1b0,0 6px 16px #00130fcc; }
.holdem-seat.is-gueje-theme.is-folded,.sutda-seat.is-gueje-theme.is-folded { filter:saturate(.58); }
.sutda-seat.is-gueje-theme.is-winner { border-color:#ffe08a; box-shadow:inset 0 1px 0 #fff4c2,inset 0 0 0 2px #59431e,0 0 0 2px #ffe08a,0 0 19px #ffcf5b9c,0 6px 15px #001b18a6; }
@media(max-width:420px){.holdem-seat.is-gueje-theme,.sutda-seat.is-gueje-theme{border-radius:10px;box-shadow:inset 0 1px 0 #fff1c740,inset 0 0 0 2px #193c2c,0 0 0 1px #4d351d,0 0 9px #41e9b13d,0 4px 10px #00130fcc}.holdem-seat.is-gueje-theme::before,.sutda-seat.is-gueje-theme::before{inset:3px;border-radius:7px}.sutda-seat.is-gueje-theme>small:first-child{top:-8px;padding:0 6px}.holdem-seat.is-gueje-theme>small:first-child{padding:0 4px}.holdem-seat.is-gueje-theme.is-active,.sutda-seat.is-gueje-theme.is-active{box-shadow:inset 0 1px 0 #fff4cd70,inset 0 0 0 2px #244530,0 0 0 2px #7bf0b37a,0 0 13px #54ffc18a,0 4px 10px #00130fcc}}
.money-player-theme-control { display:flex; align-items:center; flex-wrap:wrap; gap:7px; width:max-content; max-width:100%; margin:0 0 10px; padding:6px 9px; border:1px solid #d7e2ef; border-radius:10px; background:var(--surface,#fff); color:var(--text,#17365f); font-size:.75rem; }
.money-player-theme-control>span { font-weight:800; }
.money-player-theme-control select { min-width:155px; min-height:32px; padding:4px 24px 4px 8px; border:1px solid #bdcde0; border-radius:7px; background:var(--surface,#fff); color:var(--text,#17365f); }
.money-player-theme-control small { flex-basis:100%; color:var(--text-muted,#60738d); font-size:.68rem; }
html[data-theme="dark"] .money-player-theme-control { border-color:#40536b; background:#172438; color:#edf3fc; }
html[data-theme="dark"] .money-player-theme-control select { border-color:#40536b; background:#0e1b2b; color:#edf3fc; }
.money-skin-store-world-item .money-skin-store-icon { display:grid; place-items:center; border-radius:50%; background:#07503d; }
#moneySkinStoreScreen { padding-bottom:32px; }
.money-skin-store-intro { display:flex; align-items:center; gap:14px; margin:14px 0 18px; padding:17px; border:1px solid #e5d4a9; border-radius:18px; background:linear-gradient(120deg,#fff9e9,#f7f0df 58%,#eef7f4); color:#25364b; box-shadow:0 8px 24px #2037540b; }
.money-skin-store-sparkle { display:grid; flex:0 0 48px; width:48px; height:48px; place-items:center; border-radius:15px; background:linear-gradient(145deg,#fff0ba,#d2aa57); color:#64460f; font-size:1.8rem; box-shadow:inset 0 1px #fff9d7,0 4px 12px #98743830; }
.money-skin-store-intro strong { display:block; font-size:1rem; }
.money-skin-store-intro p { margin:5px 0 0; color:#65748a; font-size:.82rem; line-height:1.5; }
.money-skin-store-status { min-height:0; margin:0; color:#315fa6; font-size:.84rem; font-weight:700; }
.money-skin-store-status:empty { display:none; }
.money-skin-store-categories { display:flex; gap:8px; overflow-x:auto; margin:0 0 2px; padding:2px 1px 3px; scrollbar-width:none; -ms-overflow-style:none; cursor:grab; }
.money-skin-store-categories::-webkit-scrollbar { display:none; }
.money-skin-store-categories.is-dragging, .money-skin-store-categories.is-dragging button { cursor:grabbing; user-select:none; }
.money-skin-store-category { flex:0 0 auto; min-height:38px; padding:8px 16px; border:1px solid #d8e2ef; border-radius:999px; background:#fff; color:#526782; font:inherit; font-size:.82rem; font-weight:750; cursor:pointer; }
.money-skin-store-category.is-active { border-color:#315fa6; background:linear-gradient(145deg,#3c70bc,#285697); color:#fff; box-shadow:0 4px 12px #315fa633; }
.money-skin-store-owned-filter { display:flex; align-items:center; gap:8px; width:max-content; max-width:100%; margin:-3px 0 2px 2px; color:#596b83; font-size:.82rem; font-weight:700; cursor:pointer; }
.money-skin-store-owned-filter input { width:17px; height:17px; margin:0; accent-color:#315fa6; }
.money-skin-store-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr)); gap:14px; }
.money-skin-store-group { display:contents; }
.money-skin-store-group-title { grid-column:1/-1; margin:4px 0 -4px; color:#25436a; font-size:1rem; }
html[data-theme="dark"] .money-skin-store-category:not(.is-active) { border-color:#394a61; background:#172438; color:#c2cee0; }
html[data-theme="dark"] .money-skin-store-owned-filter { color:#c2cee0; }
html[data-theme="dark"] .money-skin-store-group-title { color:#e7eef9; }
.money-skin-store-empty { grid-column:1/-1; display:grid; justify-items:center; gap:8px; padding:48px 18px; border:1px dashed #cdd9e8; border-radius:18px; background:linear-gradient(145deg,#fff,#f5f8fc); color:#25436a; text-align:center; }
.money-skin-store-empty>span { display:grid; width:54px; height:54px; place-items:center; border-radius:50%; background:#f5ecd5; color:#ad853c; font-size:1.8rem; }
.money-skin-store-empty strong { font-size:1.05rem; }
.money-skin-store-empty p { max-width:340px; margin:0; color:#6a7c94; line-height:1.55; }
.money-skin-card { overflow:hidden; border:1px solid #d7e1ed; border-radius:18px; background:var(--surface,#fff); box-shadow:0 8px 24px #18375a10; }
.money-skin-card-preview { position:relative; display:grid; min-height:168px; place-items:center; overflow:hidden; background:radial-gradient(ellipse at 50% 110%,#236d55 0,#0c4939 56%,#06342c 100%); }
.money-skin-card-preview::before { position:absolute; inset:-50% -25% auto; height:180%; border:1px solid #d6b86755; border-radius:50%; content:""; }
.money-skin-card-preview.is-basic { background:radial-gradient(ellipse at 50% 110%,#456184 0,#273d5b 58%,#182a43 100%); }
.money-skin-preview-seat { position:relative; z-index:1; display:grid; min-width:168px; gap:5px; justify-items:center; padding:13px 22px; border:1px solid #dfc57e; border-radius:14px; background:linear-gradient(150deg,#07533f,#063b31 52%,#032b27); box-shadow:inset 0 1px 0 #fff3c866,inset 0 0 0 2px #244332,0 0 0 2px #67491c,0 8px 19px #00140e80; color:#fff4d3; }
.money-skin-card-preview.is-basic .money-skin-preview-seat { border-color:#aebed4; background:linear-gradient(150deg,#f7faff,#e7edf6); box-shadow:inset 0 1px #fff,0 8px 19px #00140e55; color:#233b5b; }
.money-skin-preview-seat small { font-size:.68rem; font-weight:800; }
.money-skin-preview-seat strong { font-size:1rem; }
.money-skin-preview-seat em { font-size:.68rem; font-style:normal; opacity:.88; }
.money-skin-preview-seat b { padding:3px 12px; border:1px solid #6dcba8; border-radius:999px; background:linear-gradient(#0d6a50,#074634); color:#d5ffe9; font-size:.7rem; }
.money-skin-preview-seat b,.holdem-seat .holdem-seat-bet,.sutda-seat>small:last-of-type { display:block; box-sizing:border-box; width:100%; max-width:100%; padding:3px 5px; text-align:center; line-height:1.25; }
.money-skin-card-preview.is-player-nameplate-preview .money-skin-preview-seat { justify-items:start; padding-left:16px; text-align:left; }
.money-skin-card-preview.is-player-nameplate-preview .money-skin-preview-seat > :is(small,strong,em,b) { width:100%; text-align:left; }
.money-skin-card-preview.is-basic .money-skin-preview-seat b { border-color:#cad5e4; background:#e6edf7; color:#466080; }
.money-skin-preview-glow { position:absolute; right:19%; top:17%; color:#ffdf88; font-size:1.4rem; text-shadow:0 0 15px #ffe4a9; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_aurora_nameplate"],.money-skin-card-preview.is-holdem-aurora .money-skin-preview-seat){border:2px solid #69e5cb;background-color:#17464c;background-image:linear-gradient(115deg,#17464caa,#17464c55),url("./assets/nameplate-backgrounds/aurora.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-aurora{background-image:linear-gradient(145deg,#17464c,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_aurora_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-aurora .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_terracotta_nameplate"],.money-skin-card-preview.is-holdem-terracotta .money-skin-preview-seat){border:2px solid #ffb078;background-color:#612f32;background-image:linear-gradient(115deg,#612f32aa,#612f3255),url("./assets/nameplate-backgrounds/terracotta.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-terracotta{background-image:linear-gradient(145deg,#612f32,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_terracotta_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-terracotta .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_nebula_nameplate"],.money-skin-card-preview.is-holdem-nebula .money-skin-preview-seat){border:2px solid #d8a8ff;background-color:#322353;background-image:linear-gradient(115deg,#322353aa,#32235355),url("./assets/nameplate-backgrounds/nebula.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-nebula{background-image:linear-gradient(145deg,#322353,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_nebula_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-nebula .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_sakura_nameplate"],.money-skin-card-preview.is-holdem-sakura .money-skin-preview-seat){border:2px solid #ffb9cc;background-color:#54283f;background-image:linear-gradient(115deg,#54283faa,#54283f55),url("./assets/nameplate-backgrounds/sakura.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-sakura{background-image:linear-gradient(145deg,#54283f,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_sakura_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-sakura .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_obsidian_nameplate"],.money-skin-card-preview.is-holdem-obsidian .money-skin-preview-seat){border:2px solid #becdea;background-color:#161c27;background-image:linear-gradient(115deg,#161c27aa,#161c2755),url("./assets/nameplate-backgrounds/obsidian.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-obsidian{background-image:linear-gradient(145deg,#161c27,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_obsidian_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-obsidian .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_tide_nameplate"],.money-skin-card-preview.is-holdem-tide .money-skin-preview-seat){border:2px solid #72e5ee;background-color:#103b58;background-image:linear-gradient(115deg,#103b58aa,#103b5855),url("./assets/nameplate-backgrounds/tide.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-tide{background-image:linear-gradient(145deg,#103b58,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_tide_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-tide .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_cyber_nameplate"],.money-skin-card-preview.is-holdem-cyber .money-skin-preview-seat){border:2px solid #48ffdb;background-color:#16243b;background-image:linear-gradient(115deg,#16243baa,#16243b55),url("./assets/nameplate-backgrounds/cyber.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-cyber{background-image:linear-gradient(145deg,#16243b,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_cyber_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-cyber .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_forest_nameplate"],.money-skin-card-preview.is-holdem-forest .money-skin-preview-seat){border:2px solid #b4db89;background-color:#183d32;background-image:linear-gradient(115deg,#183d32aa,#183d3255),url("./assets/nameplate-backgrounds/forest.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-forest{background-image:linear-gradient(145deg,#183d32,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_forest_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-forest .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_desert_nameplate"],.money-skin-card-preview.is-holdem-desert .money-skin-preview-seat){border:2px solid #ffd28b;background-color:#573844;background-image:linear-gradient(115deg,#573844aa,#57384455),url("./assets/nameplate-backgrounds/desert.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-desert{background-image:linear-gradient(145deg,#573844,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_desert_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-desert .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_mosaic_nameplate"],.money-skin-card-preview.is-holdem-mosaic .money-skin-preview-seat){border:2px solid #f0cc82;background-color:#273954;background-image:linear-gradient(115deg,#273954aa,#27395455),url("./assets/nameplate-backgrounds/mosaic.svg");background-position:center;background-size:cover;color:#fff4e8;box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007}
.money-skin-card-preview.is-holdem-mosaic{background-image:linear-gradient(145deg,#273954,#101722)}
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_mosaic_nameplate"] .holdem-seat-top strong,.money-skin-card-preview.is-holdem-mosaic .money-skin-preview-seat strong{color:#fff4e8;text-shadow:0 1px 3px #000c}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_aurora_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-aurora .money-skin-preview-seat b){border:1px solid #9af0d7;background:linear-gradient(145deg,#25675f,#25675fdd);color:#effff8!important;box-shadow:inset 0 1px #ffffff35}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_terracotta_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-terracotta .money-skin-preview-seat b){border:1px solid #ffd0a2;background:linear-gradient(145deg,#8a493d,#8a493ddd);color:#fff4e8!important;box-shadow:inset 0 1px #ffffff35}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_nebula_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-nebula .money-skin-preview-seat b){border:1px solid #d9b9ff;background:linear-gradient(145deg,#4e3977,#4e3977dd);color:#f8efff!important;box-shadow:inset 0 1px #ffffff35}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_sakura_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-sakura .money-skin-preview-seat b){border:1px solid #ffc0d0;background:linear-gradient(145deg,#813f59,#813f59dd);color:#fff0f4!important;box-shadow:inset 0 1px #ffffff35}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_obsidian_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-obsidian .money-skin-preview-seat b){border:1px solid #d4e0f5;background:linear-gradient(145deg,#333c4e,#333c4edd);color:#f5f8ff!important;box-shadow:inset 0 1px #ffffff35}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_tide_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-tide .money-skin-preview-seat b){border:1px solid #8af2f0;background:linear-gradient(145deg,#17536e,#17536edd);color:#e8ffff!important;box-shadow:inset 0 1px #ffffff35}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_cyber_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-cyber .money-skin-preview-seat b){border:1px solid #70ffe0;background:linear-gradient(145deg,#174d4a,#174d4add);color:#e7fff9!important;box-shadow:inset 0 1px #ffffff35}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_forest_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-forest .money-skin-preview-seat b){border:1px solid #c4e99b;background:linear-gradient(145deg,#31583e,#31583edd);color:#f4ffe8!important;box-shadow:inset 0 1px #ffffff35}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_desert_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-desert .money-skin-preview-seat b){border:1px solid #ffdba0;background:linear-gradient(145deg,#765044,#765044dd);color:#fff6e5!important;box-shadow:inset 0 1px #ffffff35}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_mosaic_nameplate"] .holdem-seat-bet,.money-skin-card-preview.is-holdem-mosaic .money-skin-preview-seat b){border:1px solid #ffe09a;background:linear-gradient(145deg,#4d5265,#4d5265dd);color:#fff8e7!important;box-shadow:inset 0 1px #ffffff35}
.money-skin-card-preview.is-royal-gold { background:radial-gradient(ellipse at 50% 110%,#57422b 0,#182739 55%,#080f1b 100%); }
.holdem-seat[data-player-theme="royal_gold_nameplate"],.money-skin-card-preview.is-royal-gold .money-skin-preview-seat {
  border:1px solid #d9b66b; border-radius:12px;
  background:radial-gradient(ellipse at 50% 0,#38425766,transparent 65%),linear-gradient(145deg,#1f2d43,#111a2b 60%,#090f1b);
  color:#fff0cf; box-shadow:inset 0 1px #fff0bd66,inset 0 0 0 3px #ad843a22,0 0 0 1px #674b24,0 6px 14px #0007;
}
.holdem-seat[data-player-theme="royal_gold_nameplate"]::before { position:absolute; inset:4px; border:1px solid #e7c47755; border-radius:8px; content:""; pointer-events:none; }
.holdem-seat[data-player-theme="royal_gold_nameplate"] .holdem-seat-top strong { color:#ffe3a0; text-shadow:0 1px 3px #0008; }
.holdem-seat[data-player-theme="royal_gold_nameplate"]>small:not(.game-turn-timeout) { color:#eadfca; }
.holdem-seat[data-player-theme="royal_gold_nameplate"] .holdem-seat-records { color:#d2c2a1; }
.holdem-seat[data-player-theme="royal_gold_nameplate"] .holdem-bankruptcy-count,.holdem-seat[data-player-theme="royal_gold_nameplate"] .holdem-rebuy-remaining { color:#eadfca; }
.sutda-seat[data-player-theme="royal_gold_nameplate"]>small { color:#eadfca; }
.sutda-seat[data-player-theme="royal_gold_nameplate"]>strong { color:#ffe3a0; text-shadow:0 1px 3px #0008; }
.sutda-seat[data-player-theme="royal_gold_nameplate"]>em { color:#ffe7b1; }
.holdem-seat[data-player-theme="royal_gold_nameplate"] .holdem-seat-bet,.sutda-seat[data-player-theme="royal_gold_nameplate"]>small:last-of-type,.money-skin-card-preview.is-royal-gold .money-skin-preview-seat b { border:1px solid #a9803b; border-radius:999px; background:linear-gradient(#584323,#362915); color:#ffe7b1!important; }
.holdem-seat[data-player-theme="royal_gold_nameplate"] .holdem-seat-hand-label { color:#ffe3a0; }
.holdem-seat[data-player-theme="royal_gold_nameplate"].is-active { border-color:#ffe9a4; outline:2px solid #ffe094; box-shadow:inset 0 1px #fff5d9,0 0 0 3px #b88b3a55,0 0 18px #ffd17699,0 6px 14px #0007; }
.holdem-seat[data-player-theme="royal_gold_nameplate"].is-folded { filter:saturate(.45); }
@property --money-skin-border-angle { syntax:"<angle>"; inherits:false; initial-value:0deg; }
@keyframes money-skin-dashed-border-rotate { to { --money-skin-border-angle:1turn; } }
.holdem-seat[data-player-theme="royal_gold_nameplate"],.sutda-seat[data-player-theme="royal_gold_nameplate"],.money-skin-card-preview.is-royal-gold { --money-skin-border-color:#ffe6a0; }
.holdem-seat[data-player-theme="ocean_sapphire_nameplate"],.sutda-seat[data-player-theme="ocean_sapphire_nameplate"],.money-skin-card-preview.is-ocean-sapphire { --money-skin-border-color:#64d8e8; }
.holdem-seat[data-player-theme="jade_bamboo_nameplate"],.sutda-seat[data-player-theme="jade_bamboo_nameplate"],.money-skin-card-preview.is-jade-bamboo { --money-skin-border-color:#91d6a7; }
.holdem-seat[data-player-theme="moonlight_amethyst_nameplate"],.sutda-seat[data-player-theme="moonlight_amethyst_nameplate"],.money-skin-card-preview.is-moonlight-amethyst { --money-skin-border-color:#c2a2f0; }
.holdem-seat[data-player-theme="glacial_crystal_nameplate"],.sutda-seat[data-player-theme="glacial_crystal_nameplate"],.money-skin-card-preview.is-glacial-crystal { --money-skin-border-color:#bceeff; }
.holdem-seat[data-player-theme="crimson_ruby_nameplate"],.sutda-seat[data-player-theme="crimson_ruby_nameplate"],.money-skin-card-preview.is-crimson-ruby { --money-skin-border-color:#f18a9b; }
:is(.holdem-seat,.sutda-seat)[data-player-theme="royal_gold_nameplate"]::after,:is(.holdem-seat,.sutda-seat)[data-player-theme="ocean_sapphire_nameplate"]::after,:is(.holdem-seat,.sutda-seat)[data-player-theme="jade_bamboo_nameplate"]::after,:is(.holdem-seat,.sutda-seat)[data-player-theme="moonlight_amethyst_nameplate"]::after,:is(.holdem-seat,.sutda-seat)[data-player-theme="glacial_crystal_nameplate"]::after,:is(.holdem-seat,.sutda-seat)[data-player-theme="crimson_ruby_nameplate"]::after,.money-skin-card-preview:is(.is-royal-gold,.is-ocean-sapphire,.is-jade-bamboo,.is-moonlight-amethyst,.is-glacial-crystal,.is-crimson-ruby) .money-skin-preview-seat::after { position:absolute; z-index:2; inset:-3px; padding:3px; border-radius:inherit; background:var(--money-skin-border-color); content:""; pointer-events:none; -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite:exclude; animation:none; }
@media (prefers-reduced-motion:reduce) { :is(.holdem-seat,.sutda-seat)[data-player-theme$="_nameplate"]::after,.money-skin-card-preview:is(.is-royal-gold,.is-ocean-sapphire,.is-jade-bamboo,.is-moonlight-amethyst,.is-glacial-crystal,.is-crimson-ruby) .money-skin-preview-seat::after,.yahtzee-die::after,.yahtzee-preview-die::after { animation:none!important; } }
.money-skin-card-preview.is-ocean-sapphire { background:radial-gradient(ellipse at 50% 110%,#16778a 0,#123d5e 55%,#071b35 100%); }
.holdem-seat[data-player-theme="ocean_sapphire_nameplate"],.sutda-seat[data-player-theme="ocean_sapphire_nameplate"],.money-skin-card-preview.is-ocean-sapphire .money-skin-preview-seat { border:1px solid #64d8e8; border-radius:12px; background:radial-gradient(ellipse at 50% 0,#5ad8f333,transparent 68%),linear-gradient(145deg,#123c60,#0a2947 60%,#06192f); color:#e0fbff; box-shadow:inset 0 1px #d7fcff55,inset 0 0 0 3px #48cde022,0 0 0 1px #176578,0 6px 14px #0007; }
.holdem-seat[data-player-theme="ocean_sapphire_nameplate"] .holdem-seat-top strong { color:#a8f5ff; }
.sutda-seat[data-player-theme="ocean_sapphire_nameplate"]>strong { color:#a8f5ff; }
.holdem-seat[data-player-theme="ocean_sapphire_nameplate"]>small:not(.game-turn-timeout),.holdem-seat[data-player-theme="ocean_sapphire_nameplate"] .holdem-bankruptcy-count,.holdem-seat[data-player-theme="ocean_sapphire_nameplate"] .holdem-rebuy-remaining,.holdem-seat[data-player-theme="ocean_sapphire_nameplate"] .holdem-seat-hand-label,.sutda-seat[data-player-theme="ocean_sapphire_nameplate"]>small,.sutda-seat[data-player-theme="ocean_sapphire_nameplate"]>em { color:#bfeaf2!important; }
.holdem-seat[data-player-theme="ocean_sapphire_nameplate"] .holdem-seat-bet,.sutda-seat[data-player-theme="ocean_sapphire_nameplate"]>small:last-of-type,.money-skin-card-preview.is-ocean-sapphire .money-skin-preview-seat b { border:1px solid #3aaabb; border-radius:999px; background:linear-gradient(#155c73,#103c59); color:#c9fbff!important; }
.holdem-seat[data-player-theme="ocean_sapphire_nameplate"].is-active,.sutda-seat[data-player-theme="ocean_sapphire_nameplate"].is-active { outline:2px solid #70e7f4; box-shadow:0 0 0 3px #38b8ce44,0 0 18px #5be4f288,0 6px 14px #0007; }
.money-skin-card-preview.is-jade-bamboo { background:radial-gradient(ellipse at 50% 110%,#338461 0,#145441 55%,#082e2c 100%); }
.holdem-seat[data-player-theme="jade_bamboo_nameplate"],.sutda-seat[data-player-theme="jade_bamboo_nameplate"],.money-skin-card-preview.is-jade-bamboo .money-skin-preview-seat { border:1px solid #91d6a7; border-radius:12px; background:radial-gradient(ellipse at 50% 0,#b8f2c522,transparent 68%),linear-gradient(145deg,#174e3e,#0e392f 60%,#082822); color:#e5f8df; box-shadow:inset 0 1px #f0ffe655,inset 0 0 0 3px #6ec58e22,0 0 0 1px #376c49,0 6px 14px #0007; }
.holdem-seat[data-player-theme="jade_bamboo_nameplate"] .holdem-seat-top strong { color:#b9f0b9; }
.sutda-seat[data-player-theme="jade_bamboo_nameplate"]>strong { color:#b9f0b9; }
.holdem-seat[data-player-theme="jade_bamboo_nameplate"]>small:not(.game-turn-timeout),.holdem-seat[data-player-theme="jade_bamboo_nameplate"] .holdem-bankruptcy-count,.holdem-seat[data-player-theme="jade_bamboo_nameplate"] .holdem-rebuy-remaining,.holdem-seat[data-player-theme="jade_bamboo_nameplate"] .holdem-seat-hand-label,.sutda-seat[data-player-theme="jade_bamboo_nameplate"]>small,.sutda-seat[data-player-theme="jade_bamboo_nameplate"]>em { color:#cde8cf!important; }
.holdem-seat[data-player-theme="jade_bamboo_nameplate"] .holdem-seat-bet,.sutda-seat[data-player-theme="jade_bamboo_nameplate"]>small:last-of-type,.money-skin-card-preview.is-jade-bamboo .money-skin-preview-seat b { border:1px solid #65aa76; border-radius:999px; background:linear-gradient(#286548,#194b3b); color:#e0f8d8!important; }
.holdem-seat[data-player-theme="jade_bamboo_nameplate"].is-active,.sutda-seat[data-player-theme="jade_bamboo_nameplate"].is-active { outline:2px solid #a8e7a0; box-shadow:0 0 0 3px #57b97744,0 0 18px #87e09c88,0 6px 14px #0007; }
.money-skin-card-preview.is-moonlight-amethyst { background:radial-gradient(ellipse at 50% 110%,#7552a8 0,#3d2b68 55%,#17152f 100%); }
.holdem-seat[data-player-theme="moonlight_amethyst_nameplate"],.sutda-seat[data-player-theme="moonlight_amethyst_nameplate"],.money-skin-card-preview.is-moonlight-amethyst .money-skin-preview-seat { border:1px solid #c2a2f0; border-radius:12px; background:radial-gradient(ellipse at 50% 0,#d8bbff33,transparent 68%),linear-gradient(145deg,#3a2b60,#282044 60%,#19162e); color:#f1e8ff; box-shadow:inset 0 1px #fff3ff66,inset 0 0 0 3px #b792e522,0 0 0 1px #65518c,0 6px 14px #0007; }
.holdem-seat[data-player-theme="moonlight_amethyst_nameplate"] .holdem-seat-top strong { color:#e1c9ff; }
.sutda-seat[data-player-theme="moonlight_amethyst_nameplate"]>strong { color:#e1c9ff; }
.holdem-seat[data-player-theme="moonlight_amethyst_nameplate"] .holdem-seat-bet,.sutda-seat[data-player-theme="moonlight_amethyst_nameplate"]>small:last-of-type,.money-skin-card-preview.is-moonlight-amethyst .money-skin-preview-seat b { border:1px solid #9472c4; border-radius:999px; background:linear-gradient(#59417e,#3c2e5d); color:#f0ddff; }
.holdem-seat[data-player-theme="moonlight_amethyst_nameplate"].is-active,.sutda-seat[data-player-theme="moonlight_amethyst_nameplate"].is-active { outline:2px solid #d3b3ff; box-shadow:0 0 0 3px #a779df44,0 0 18px #c49aff88,0 6px 14px #0007; }
.money-skin-card-preview.is-glacial-crystal { background:radial-gradient(ellipse at 50% 110%,#6db8d5 0,#366c91 55%,#122d50 100%); }
.holdem-seat[data-player-theme="glacial_crystal_nameplate"],.sutda-seat[data-player-theme="glacial_crystal_nameplate"],.money-skin-card-preview.is-glacial-crystal .money-skin-preview-seat { border:1px solid #bceeff; border-radius:12px; background:radial-gradient(ellipse at 50% 0,#e5fbff55,transparent 68%),linear-gradient(145deg,#d8f3fb,#b7dce9 60%,#83b6ce); color:#173850; box-shadow:inset 0 1px #fff,inset 0 0 0 3px #82bfd322,0 0 0 1px #6a9fb9,0 6px 14px #0006; }
.holdem-seat[data-player-theme="glacial_crystal_nameplate"] .holdem-seat-top strong { color:#173850; text-shadow:0 1px 1px #fff9; }
.sutda-seat[data-player-theme="glacial_crystal_nameplate"]>strong { color:#173850; text-shadow:0 1px 1px #fff9; }
.holdem-seat[data-player-theme="glacial_crystal_nameplate"]>small:not(.game-turn-timeout),.holdem-seat[data-player-theme="glacial_crystal_nameplate"] .holdem-bankruptcy-count,.holdem-seat[data-player-theme="glacial_crystal_nameplate"] .holdem-rebuy-remaining,.holdem-seat[data-player-theme="glacial_crystal_nameplate"] .holdem-seat-hand-label,.sutda-seat[data-player-theme="glacial_crystal_nameplate"]>small,.sutda-seat[data-player-theme="glacial_crystal_nameplate"]>em { color:#365b70!important; }
.holdem-seat[data-player-theme="glacial_crystal_nameplate"] .holdem-seat-bet,.sutda-seat[data-player-theme="glacial_crystal_nameplate"]>small:last-of-type,.money-skin-card-preview.is-glacial-crystal .money-skin-preview-seat b { border:1px solid #7fb3c8; border-radius:999px; background:linear-gradient(#eafaff,#cceaf4); color:#244b61!important; }
.holdem-seat[data-player-theme="glacial_crystal_nameplate"].is-active,.sutda-seat[data-player-theme="glacial_crystal_nameplate"].is-active { outline:2px solid #d5f7ff; box-shadow:0 0 0 3px #8bd4ed55,0 0 18px #d6f8ff99,0 6px 14px #0007; }
.money-skin-card-preview.is-crimson-ruby { background:radial-gradient(ellipse at 50% 110%,#a7354b 0,#64243d 55%,#29172d 100%); }
.holdem-seat[data-player-theme="crimson_ruby_nameplate"],.sutda-seat[data-player-theme="crimson_ruby_nameplate"],.money-skin-card-preview.is-crimson-ruby .money-skin-preview-seat { border:1px solid #f18a9b; border-radius:12px; background:radial-gradient(ellipse at 50% 0,#ffb0bd33,transparent 68%),linear-gradient(145deg,#63283e,#421e36 60%,#29172d); color:#ffe8eb; box-shadow:inset 0 1px #ffe5e966,inset 0 0 0 3px #ed748522,0 0 0 1px #8a354c,0 6px 14px #0007; }
.holdem-seat[data-player-theme="crimson_ruby_nameplate"] .holdem-seat-top strong { color:#ffb1bd; }
.sutda-seat[data-player-theme="crimson_ruby_nameplate"]>strong { color:#ffb1bd; }
.holdem-seat[data-player-theme="crimson_ruby_nameplate"]>small:not(.game-turn-timeout),.holdem-seat[data-player-theme="crimson_ruby_nameplate"] .holdem-bankruptcy-count,.holdem-seat[data-player-theme="crimson_ruby_nameplate"] .holdem-rebuy-remaining,.holdem-seat[data-player-theme="crimson_ruby_nameplate"] .holdem-seat-hand-label,.sutda-seat[data-player-theme="crimson_ruby_nameplate"]>small,.sutda-seat[data-player-theme="crimson_ruby_nameplate"]>em { color:#f6ccd3!important; }
.holdem-seat[data-player-theme="crimson_ruby_nameplate"] .holdem-seat-bet,.sutda-seat[data-player-theme="crimson_ruby_nameplate"]>small:last-of-type,.money-skin-card-preview.is-crimson-ruby .money-skin-preview-seat b { border:1px solid #c05268; border-radius:999px; background:linear-gradient(#823448,#5e293b); color:#ffe2e6!important; }
.holdem-seat[data-player-theme="crimson_ruby_nameplate"].is-active,.sutda-seat[data-player-theme="crimson_ruby_nameplate"].is-active { outline:2px solid #ff9baa; box-shadow:0 0 0 3px #db526544,0 0 18px #ff718588,0 6px 14px #0007; }
.money-skin-preview-seat b,.holdem-seat .holdem-seat-bet,.sutda-seat>small:last-of-type { border-radius:5px!important; }
.money-skin-card-content { padding:15px; color:var(--text,#193452); }
.money-skin-card-heading,.money-skin-card-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.money-skin-card-heading>div>small { color:#71839a; font-size:.72rem; font-weight:700; }
.money-skin-card-heading h3 { margin:3px 0 0; font-size:1.02rem; }
.money-skin-state { padding:4px 9px; border:1px solid #e7d5a6; border-radius:999px; background:#fff8e7; color:#806324; font-size:.7rem; font-weight:800; white-space:nowrap; }
.money-skin-state.is-owned { border-color:#bfdece; background:#edf8f1; color:#2a754f; }
.money-skin-state.is-unowned { border-color:#d7dce4; background:#f0f2f5; color:#687386; }
html[data-theme="dark"] .money-skin-state.is-unowned { border-color:#4b5667; background:#2a3442; color:#c0cad8; }
.money-skin-card-content>p { min-height:2.8em; margin:11px 0 15px; color:#667991; font-size:.81rem; line-height:1.5; }
.money-skin-card-footer { padding-top:12px; border-top:1px solid #edf1f6; }
.money-skin-card-footer>strong { color:#8b6823; font-size:1.03rem; }
.money-skin-card-footer>strong small { color:#9b8a65; font-size:.72rem; }
.money-skin-card-footer button,.money-skin-store-empty button { min-height:38px; padding:7px 15px; border:1px solid #315fa6; border-radius:10px; background:linear-gradient(145deg,#3c70bc,#285697); color:#fff; font-weight:800; }
.money-skin-card-footer .secondary-button { width:auto; flex:0 0 auto; }
.money-skin-card-footer button:disabled { border-color:#d6dfeb; background:#edf1f7; color:#8090a5; }
html[data-theme="dark"] .money-skin-store-intro { border-color:#665738; background:linear-gradient(120deg,#2e2c26,#262f36 70%,#19352e); color:#f1f4fa; }
html[data-theme="dark"] .money-skin-store-intro p,html[data-theme="dark"] .money-skin-card-content>p { color:#aebbd0; }
html[data-theme="dark"] .money-skin-store-empty,html[data-theme="dark"] .money-skin-card { border-color:#394a61; background:#172438; color:#eef3fb; }
html[data-theme="dark"] .money-skin-store-empty p { color:#aebbd0; }
html[data-theme="dark"] .money-skin-card-content { color:#eef3fb; }
html[data-theme="dark"] .money-skin-card-footer { border-color:#304157; }
@media(max-width:480px){.money-skin-store-intro{align-items:flex-start;padding:14px}.money-skin-store-sparkle{flex-basis:40px;width:40px;height:40px}.money-skin-card-preview{min-height:150px}}
.holdem-flying-chip { position:fixed; z-index:1205; display:grid; justify-items:center; gap:1px; width:58px; height:42px; pointer-events:none; filter:drop-shadow(0 3px 4px #001a17aa); }
.holdem-flying-chip-stack { position:relative; display:block; width:29px; height:23px; }
.holdem-flying-chip-stack i { position:absolute; left:2px; top:3px; width:21px; height:21px; border:2px dashed #fff7; border-radius:50%; background:linear-gradient(145deg,#f3d06f,#b87825); box-shadow:0 1px 3px #081e1b99; }
.holdem-flying-chip-stack i:nth-child(2) { left:7px; top:0; background:linear-gradient(145deg,#6d9ee0,#285796); }
.holdem-flying-chip-stack i:nth-child(3) { left:12px; top:4px; background:linear-gradient(145deg,#f58a70,#b63e3e); }
.holdem-flying-chip small { max-width:58px; padding:1px 4px; overflow:hidden; border-radius:6px; background:#0b2a21e8; color:#ffe08a; font-size:9px; font-weight:900; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.holdem-leave-reservation { width:100%; min-height:40px; padding:7px 10px; border:1px solid #c87967; border-radius:9px; background:#492d35; color:#ffe4dd; font-size:.78rem; font-weight:800; }
.holdem-leave-reservation:hover:not(:disabled) { background:#633746; }
.holdem-leave-reservation:disabled { opacity:.55; }
.sutda-center { gap:5px; }
.sutda-money-stack { position:relative; width:76px; height:42px; margin:-3px 0 -1px; transition:opacity .28s ease,transform .28s ease; }
.sutda-money-stack.is-clearing { opacity:0; transform:translateY(-8px) scale(.85); }
.sutda-money-bundle { position:absolute; left:calc(50% - 18px + var(--bill-x)); bottom:var(--bill-y); z-index:var(--bill-index,1); width:36px; height:19px; transform:rotate(var(--bill-rotate)); border:1px solid #f3df9a; border-radius:3px; background:linear-gradient(145deg,#bce0a7 0%,#5caa72 42%,#25714e 100%); box-shadow:0 2px 3px #001b16a8,inset 0 0 0 1px #eaffc355; }
.sutda-money-bundle::before { position:absolute; inset:3px 10px; border:1px solid #eff6bd99; border-radius:50%; content:""; }
.sutda-money-bundle::after { position:absolute; top:3px; left:4px; width:5px; height:11px; border-left:1px solid #eff6bd99; border-right:1px solid #eff6bd99; content:""; }
.sutda-flying-money { position:fixed; z-index:1205; display:grid; justify-items:center; gap:2px; width:68px; height:49px; pointer-events:none; filter:drop-shadow(0 3px 4px #001a17aa); }
.sutda-flying-bundle { position:relative; display:block; width:42px; height:30px; }
.sutda-flying-bundle i { position:absolute; left:3px; top:8px; width:36px; height:18px; transform:rotate(-10deg); border:1px solid #f3df9a; border-radius:3px; background:linear-gradient(145deg,#bce0a7,#39865c); box-shadow:0 1px 3px #081e1b99,inset 0 0 0 1px #eaffc355; }
.sutda-flying-bundle i::after { position:absolute; inset:3px 11px; border:1px solid #eff6bd99; border-radius:50%; content:""; }
.sutda-flying-bundle i:nth-child(2) { left:0; top:4px; transform:rotate(8deg); background:linear-gradient(145deg,#e6e1a3,#73984b); }
.sutda-flying-bundle i:nth-child(3) { left:5px; top:0; transform:rotate(-4deg); background:linear-gradient(145deg,#c0e0a5,#418b61); }
.sutda-flying-money small { max-width:68px; padding:1px 4px; overflow:hidden; border-radius:6px; background:#0b2a21e8; color:#ffe08a; font-size:9px; font-weight:900; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:700px){.sutda-money-stack{transform:scale(.9);margin:-5px 0 -3px}.sutda-center{gap:4px}}
.sutda-money-stack { width:142px; height:60px; margin:-7px 0 -4px; }
.sutda-pile-bundle { position:absolute; left:calc(50% + var(--bill-x)); bottom:0; display:grid; place-items:center; width:58px; height:var(--stack-height); transform:translateX(-50%); border:1px solid #f6e5a3; border-radius:4px; box-shadow:0 3px 5px #001b16b8,inset 0 0 0 1px #fff7; color:#fffbe7; text-shadow:0 1px 2px #14271d; font-size:8px; font-weight:900; }
.sutda-pile-bundle::before { position:absolute; inset:4px; border:1px solid #fff8; border-radius:2px; content:""; }
.sutda-pile-bundle::after { position:absolute; inset:7px 20px; border:1px solid #fff9; border-radius:50%; content:""; }
.sutda-pile-bundle.is-10000 { background:repeating-linear-gradient(0deg,#26764f 0 3px,#65aa6d 3px 4px); }
.sutda-pile-bundle.is-1000 { background:repeating-linear-gradient(0deg,#315a9b 0 3px,#6c8fc4 3px 4px); }
.sutda-pile-bundle.is-100 { background:repeating-linear-gradient(0deg,#a24642 0 3px,#d27862 3px 4px); }
.sutda-pile-bundle>b,.sutda-pile-bundle>small { position:relative; z-index:1; padding:0 2px; border-radius:3px; background:#14261bc7; line-height:1.15; }
.sutda-pile-bundle>b { margin-top:auto; }
.sutda-pile-bundle>small { position:absolute; top:1px; right:2px; font-size:7px; }
.sutda-flying-money { width:142px; height:72px; }
.sutda-flying-bundle { display:flex; align-items:flex-end; justify-content:center; gap:3px; width:132px; height:40px; }
.sutda-note { position:relative; display:grid; place-items:center; width:42px; height:27px; transform:rotate(var(--note-rotation,0deg)); border:1px solid #f6e5a3; border-radius:3px; box-shadow:0 2px 4px #001b16b8,inset 0 0 0 1px #fff7; color:#fffbe7; text-shadow:0 1px 2px #14271d; font-size:7px; font-weight:900; }
.sutda-note::before { position:absolute; inset:3px; border:1px solid #fff9; border-radius:2px; content:""; }
.sutda-note::after { position:absolute; inset:6px 14px; border:1px solid #fff9; border-radius:50%; content:""; }
.sutda-note.is-10000 { background:linear-gradient(145deg,#26764f,#65aa6d); }
.sutda-note.is-1000 { background:linear-gradient(145deg,#315a9b,#6c8fc4); }
.sutda-note.is-100 { background:linear-gradient(145deg,#a24642,#d27862); }
.sutda-note>b,.sutda-note>small { position:relative; z-index:1; padding:0 2px; border-radius:3px; background:#14261bc7; line-height:1.1; }
.sutda-note>small { position:absolute; top:0; right:0; font-size:6px; }
@media(max-width:700px){.sutda-money-stack{transform:scale(.82);margin:-8px 0 -8px}.sutda-flying-money{transform-origin:center}}

/* Kanban: compact, touch-first factory board for a fixed four-player room. */
.kanban-intro { margin:0 0 14px; color:var(--muted,#60718c); font-size:14px; line-height:1.55; }
.kanban-room { display:grid; gap:12px; padding-bottom:24px; }
.kanban-dashboard { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.kanban-dashboard>div { display:grid; gap:5px; padding:11px; border:1px solid #24384e; border-radius:12px; background:#132235; color:#fff; }
.kanban-dashboard span { color:#a9c1dc; font-size:11px; }
.kanban-dashboard strong { font-size:14px; }
.kanban-factory-board { padding:12px; border:1px solid #cbd9e8; border-radius:18px; background:linear-gradient(145deg,#f8fbff,#e8f0f8); box-shadow:0 8px 24px #17385a12; }
.kanban-board-heading,.kanban-work-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:10px; }
.kanban-board-heading small,.kanban-work-heading span { color:#61748d; font-size:11px; }
.kanban-departments { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; }
.kanban-department-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(78px,.82fr) minmax(0,1fr); align-items:stretch; gap:7px; }
.kanban-department-action { display:grid; align-content:center; justify-items:center; gap:4px; min-width:0; min-height:64px; padding:6px 4px; border:1px solid #b9cde3; border-radius:12px; background:#fff; color:#17436f; text-align:center; cursor:pointer; }
.kanban-department-action small { color:#70839b; font-size:10px; font-weight:700; }
.kanban-department-action strong { font-size:11px; line-height:1.25; word-break:keep-all; }
.kanban-department-action:disabled { opacity:.42; cursor:default; }
.kanban-department { min-height:72px; padding:9px 5px; border:1px solid #bfd0e2; border-radius:12px; background:#fff; color:#17304a; text-align:center; cursor:pointer; }
.kanban-department strong,.kanban-department small { display:block; }
.kanban-department strong { font-size:13px; }
.kanban-department small { margin-top:4px; color:#698099; font-size:10px; line-height:1.25; }
.kanban-department.is-selected { border-color:#2460a8; background:#e8f1ff; box-shadow:inset 0 0 0 1px #2460a8; }
.kanban-department.is-occupied { background:#f2f5f8; }
.kanban-department-occupants { display:flex; justify-content:center; gap:3px; margin-top:5px; }
.kanban-department-occupants i { width:8px; height:8px; border-radius:50%; background:#3979bd; }
.kanban-production { margin-top:10px; padding:9px; border-radius:12px; background:#163c36; color:#fff; }
.kanban-production>span { font-size:11px; font-weight:800; }
.kanban-line { display:flex; gap:6px; min-height:42px; align-items:center; overflow:auto; }
.kanban-car { min-width:42px; padding:6px; border-radius:8px; background:#d9eaff; color:#174a77; text-align:center; font-size:10px; font-weight:800; }
.kanban-car.is-complete { background:#ffe6a6; color:#6a4300; }
.kanban-players { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.kanban-player-card { padding:10px; border:1px solid #d0ddeb; border-radius:13px; background:#fff; }
.kanban-player-card.is-turn { border-color:#2460a8; box-shadow:0 0 0 2px #2460a826; }
.kanban-player-card strong { display:flex; justify-content:space-between; gap:6px; font-size:13px; }
.kanban-player-card small { display:block; margin-top:5px; color:#61748d; font-size:10px; }
.kanban-work-panel { padding:12px; border:1px solid #d0ddeb; border-radius:14px; background:#fff; }
.kanban-action-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.kanban-action-choices button { min-height:42px; padding:8px; border:1px solid #bed0e4; border-radius:10px; background:#eef4fb; color:#153d68; font-size:12px; font-weight:800; }
.kanban-action-choices button:disabled { opacity:.45; }
.kanban-room-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.kanban-room-actions button { min-width:0; min-height:44px; padding:8px; }
.kanban-local-panel { display:grid; gap:9px; margin:12px 0; padding:14px; border:1px dashed #4f80c5; border-radius:14px; background:#eaf2ff; color:#183b66; }
.kanban-local-panel p { margin:0; color:#536c8a; font-size:13px; line-height:1.45; }
.kanban-local-roster { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.kanban-local-roster span { padding:8px 10px; border:1px solid #cfdbeb; border-radius:9px; background:#fff; font-size:13px; font-weight:700; }
.kanban-local-panel>button { min-height:42px; border:0; border-radius:10px; background:#315b9b; color:#fff; font-weight:800; }
html[data-theme="dark"] .kanban-local-panel { border-color:#42638e; background:#13243a; color:#d8e8ff; }
html[data-theme="dark"] .kanban-local-panel p { color:#a9bdd5; }
html[data-theme="dark"] .kanban-local-roster span { border-color:#40536b; background:#0e1b2b; color:#f1f5fb; }
@media(max-width:420px) { .kanban-dashboard { gap:5px; } .kanban-dashboard>div { padding:9px 7px; } .kanban-dashboard strong { font-size:12px; } .kanban-department { min-height:67px; padding:8px 3px; } .kanban-room-actions { grid-template-columns:1fr 1fr; } }

/* 구슬떨어져유 머니게임 */
#gameWorldScreen .marble-drop-game-icon { background:transparent; }
#marbleDropScreen { padding-bottom:28px; }
.marble-drop-bet-card { display:grid; gap:13px; margin:0 0 14px; padding:16px; border:1px solid #d8e2f0; border-radius:18px; background:linear-gradient(145deg,#fff,#f2f6fc); box-shadow:0 10px 28px rgba(32,55,87,.08); }
.marble-drop-bet-heading,.marble-drop-choice-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.marble-drop-bet-heading strong,.marble-drop-choice-heading strong { color:#1e2d43; font-size:15px; }
.marble-drop-bet-heading span,.marble-drop-choice-heading span { color:#7889a1; font-size:12px; text-align:right; }
.marble-drop-bet-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; }
.marble-drop-bet-row label { color:#71819a; font-size:13px; font-weight:800; }
.marble-drop-bet-row input { width:100%; min-width:0; height:44px; padding:0 12px; border:1px solid #cbd7e7; border-radius:11px; background:#fff; color:#1f2d42; font:inherit; font-weight:800; }
.marble-drop-bet-row button { min-height:42px; padding:0 13px; border:1px solid #c4d2e5; border-radius:10px; background:#eaf1fb; color:#315b93; font-weight:800; }
.marble-drop-choices { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.marble-drop-choices button { min-height:40px; border:1px solid #d2ddec; border-radius:10px; background:linear-gradient(145deg,#f7f9fc,#e9eff7); color:#43536a; font-weight:900; }
.marble-drop-choices button.is-selected { border-color:#e2ad44; background:linear-gradient(145deg,#f9d777,#e6ad38); color:#47340c; box-shadow:0 5px 12px rgba(190,135,27,.22); }
.marble-drop-start { min-height:48px; border:1px solid #6596dc; border-radius:13px; background:linear-gradient(120deg,#4f88de,#315ea6); color:#fff; font-size:15px; font-weight:900; box-shadow:0 7px 16px rgba(44,93,163,.2); }
.marble-drop-start:disabled { opacity:.48; box-shadow:none; }
.marble-drop-status { min-height:18px; margin:0; color:#7889a1; font-size:12px; text-align:center; }
.marble-drop-board-card { overflow:hidden; border:1px solid #354966; border-radius:18px; background:#111d30; box-shadow:0 12px 30px rgba(10,20,35,.2); }
.marble-drop-board-card iframe { display:block; width:100%; height:clamp(300px,64dvh,580px); border:0; background:#0b1526; }
.marble-drop-result-modal { position:fixed; z-index:2200; inset:0; display:grid; place-items:center; padding:20px; }
.marble-drop-result-modal.hidden { display:none; }
.marble-drop-modal-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(5,12,22,.74); backdrop-filter:blur(5px); }
.marble-drop-result-dialog { position:relative; width:min(100%,360px); padding:27px 22px 20px; border:1px solid #cfdbea; border-radius:22px; background:linear-gradient(145deg,#fff,#f0f5fc); box-shadow:0 22px 70px rgba(0,0,0,.35); color:#243249; text-align:center; }
.marble-drop-result-close { position:absolute; top:10px; right:12px; width:32px; height:32px; border:0; border-radius:50%; background:#e7edf5; color:#5d6d82; font-size:22px; }
.marble-drop-result-dialog h3 { margin:9px 0; font-size:23px; }
.marble-drop-result-dialog p { margin:0 0 18px; color:#62738b; line-height:1.55; }
.marble-drop-result-confirm { width:100%; min-height:44px; border:0; border-radius:12px; background:#315f9f; color:#fff; font-weight:900; }
.sky-team-wind-content { width:min(440px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); box-sizing:border-box; padding:16px; gap:8px; text-align:left; }
#skyTeamWindModal .modal-header { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; margin:0; }
#skyTeamWindModal .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; text-align:left; }
#skyTeamWindModal .modal-header .close-button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; margin:0; padding:0; }
.sky-team-wind-dial { display:block; width:min(100%,340px,calc(100dvh - 200px)); height:auto; margin:8px auto; }
.sky-team-wind-sector { fill:#1b282e; stroke:#91abb7; stroke-width:1.4; }
.sky-team-wind-sector.is-current { fill:#287fc2; stroke:#c5ebff; stroke-width:2.5; }
.sky-team-wind-label { fill:#fff; font-size:16px; font-weight:900; font-family:inherit; }
.sky-team-wind-landing { margin:10px 0 0; padding:10px 12px; border:1px solid #8eacb9; border-radius:9px; background:#e9f0f4; color:#26465b; font-size:13px; text-align:left; }
.sky-team-landing-heading,.sky-team-wind-landing li { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sky-team-wind-landing ol { padding:0; margin:6px 0 0; list-style:none; }
.sky-team-wind-landing li { padding:6px 0; border-top:1px solid #8eacb960; }
.sky-team-wind-landing li > span:first-child { display:grid; gap:2px; min-width:0; }
.sky-team-wind-landing li small { font-size:11px; line-height:1.35; }
.sky-team-landing-status { flex:none; padding:3px 7px; border-radius:7px; background:#d5e1e8; color:#334d62; font-size:11px; font-weight:800; white-space:nowrap; }
.sky-team-landing-status.is-complete { background:#cce9d9; color:#175436; }
html[data-theme="dark"] .sky-team-wind-landing { background:#1d3041; border-color:#58788c; color:#f2f6ff; }
html[data-theme="dark"] .sky-team-landing-status { background:#3b5267; color:#e2edf6; }
html[data-theme="dark"] .sky-team-landing-status.is-complete { background:#1a513d; color:#d1f4dc; }
#skyTeamCockpit .sky-team-wind-panel { grid-column:1 / -1; min-width:0; padding:8px; border:2px solid #768c98; border-radius:9px; background:linear-gradient(120deg,#bbcbd2,#e0e6e7,#a8bcc4); color:#263c4b; }
#skyTeamCockpit .sky-team-wind-panel h3 { margin:0 0 8px; }
#skyTeamCockpit .sky-team-wind-panel .sky-team-wind-dial { width:min(100%,280px); }
.horse-racing-game-icon { display:grid; place-items:center; font-size:28px; }
#horseRaceBetConfirmModal .modal-header { width:100%; justify-content:space-between; gap:12px; margin:0 0 8px; }
#horseRaceBetConfirmModal .modal-header h2 { flex:1 1 auto; min-width:0; text-align:left; }
#horseRaceBetConfirmModal .modal-header .close-button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; display:grid; place-items:center; margin-left:auto; line-height:1; }
#horseRaceReplayModal { z-index:1400; }
#horseRaceStatsModal { z-index:1450; }
#horseRaceStatsModal.modal { place-items:center; }
#horseRaceStatsModal .horse-race-stats-content { display:grid; justify-items:stretch; align-content:start; gap:8px; width:min(500px,calc(100vw - 16px)); max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px); box-sizing:border-box; margin:auto; padding:12px; border-radius:18px; text-align:left; }
#horseRaceStatsModal .modal-header h2 { font-size:18px; line-height:1.25; }
#horseRaceStatsBody { display:grid; width:100%; min-width:0; gap:8px; }
#horseRaceStatsBody p { margin:0; }
.horse-race-stats-overview { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2px 6px; min-width:0; }
.horse-race-stats-overview .horse-race-radar { grid-column:1 / -1; }
.horse-race-stats-overview .horse-race-stats-caption { text-align:left; font-size:10px; line-height:1.3; }
#horseRaceStatsModal .modal-header { width:100%; align-items:center; justify-content:space-between; gap:12px; margin:0; }
#horseRaceStatsModal .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; text-align:left; }
#horseRaceStatsModal .modal-header .close-button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; display:grid; place-items:center; margin-left:auto; line-height:1; }
.horse-race-stats-caption,.horse-race-stats-race { margin:0; color:#71819a; font-size:11px; text-align:center; }
.horse-race-radar { display:block; width:min(100%,260px,32dvh); height:auto; margin:0 auto; overflow:visible; }
.horse-race-radar-grid { fill:none; stroke:#d9e3f0; stroke-width:1; }
.horse-race-radar-axis { stroke:#e5ebf3; stroke-width:1; }
.horse-race-radar-value { fill:rgba(49,95,159,.22); stroke:#315f9f; stroke-width:2.5; stroke-linejoin:round; }
.horse-race-radar-dot { fill:#d6a43d; stroke:#fff; stroke-width:1.5; }
.horse-race-radar text { fill:#53647c; font-size:18px; font-weight:800; }
.horse-race-radar tspan { font-size:14px; }
.horse-race-stats-condition { display:flex; align-items:center; justify-content:center; gap:5px; margin:0; padding:4px 7px; border-radius:8px; background:var(--panel-soft,#edf3fa); color:var(--text,#33445c); font-size:11px; line-height:1.3; }
.horse-race-stats-condition .horse-racing-condition-icon { font-size:16px; line-height:1; }
.horse-race-stats-list { display:grid; gap:7px; }
.horse-race-ability-grades { display:grid; gap:8px; margin:0; }
.horse-race-ability-grades > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border-radius:10px; background:#edf3fa; }
.horse-race-ability-grades dt { color:#33445c; font-weight:700; }
.horse-race-ability-grades dd { margin:0; color:#315f9f; font-weight:850; }
#horseRaceChoices [data-horse-choice] { -webkit-touch-callout:none; user-select:none; }
.horse-race-stat-row { display:grid; grid-template-columns:62px minmax(45px,1fr) 28px minmax(108px,1.15fr); align-items:center; gap:8px; min-width:0; font-size:12px; }
.horse-race-stat-row > span { color:#33445c; font-weight:850; }
.horse-race-stat-row > b { color:#315f9f; text-align:right; font-variant-numeric:tabular-nums; }
.horse-race-stat-row > small { color:#71819a; font-size:10px; line-height:1.25; }
.horse-race-stat-meter { height:7px; overflow:hidden; border-radius:99px; background:#e9eef5; }
.horse-race-stat-meter i { display:block; width:var(--stat-value); height:100%; border-radius:inherit; background:linear-gradient(90deg,#75a7e8,#315f9f); }
.horse-race-stat-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; gap:6px; min-width:0; }
.horse-race-stat-details > h3,.horse-race-stat-details-caption { grid-column:1 / -1; }
.horse-race-stat-details > h3 { margin:0; color:var(--text,#26364d); font-size:13px; }
.horse-race-stat-details-caption { margin:0; color:#71819a; font-size:10px; line-height:1.3; }
.horse-race-stat-detail { display:grid; align-content:start; gap:4px; min-width:0; padding:7px 8px; border:1px solid #e3eaf3; border-radius:9px; background:#f8fafd; }
.horse-race-stat-detail-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.horse-race-stat-detail-heading strong { color:#33445c; font-size:12px; line-height:1.2; }
.horse-race-stat-detail-heading b { color:#315f9f; font-size:11px; line-height:1.2; }
.horse-race-stat-detail-meter { height:5px; overflow:hidden; border-radius:99px; background:#e9eef5; }
.horse-race-stat-detail-meter i { display:block; width:var(--stat-value); height:100%; border-radius:inherit; background:linear-gradient(90deg,#75a7e8,#315f9f); }
.horse-race-stat-detail > p { margin:0; color:#71819a; font-size:11px; line-height:1.35; overflow-wrap:anywhere; }
#horseRaceChoices button[aria-disabled="true"] { opacity:.62; }
#horseRaceChoices button { touch-action:manipulation; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
#horseRaceReplayModal.modal { place-items:center; }
#horseRaceReplayModal .horse-race-replay-content { justify-items:stretch; gap:12px; width:min(760px,calc(100vw - 28px)); max-height:min(88vh,calc(100dvh - 28px)); margin:auto; padding:22px; border-radius:18px; text-align:left; }
#horseRaceReplayModal .modal-header { width:100%; align-items:center; justify-content:space-between; gap:12px; margin:0; }
#horseRaceReplayModal .modal-header h2 { flex:1 1 auto; min-width:0; text-align:left; }
#horseRaceReplayModal .modal-header .close-button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; display:grid; place-items:center; margin-left:auto; line-height:1; }
#horseRaceReplayTrack .horse-racing-visual { min-height:300px; }
#horseRaceReplayTrack .horse-racing-lane { min-height:30px; }
#horseRaceReplayTrack .horse-racing-lane-track { height:25px; }
#horseRaceReplayTrack .horse-racing-lane.is-racing .horse-racing-runner { animation:horse-racing-gallop var(--race-gallop-duration,.28s) steps(2,end) infinite; }
.horse-racing-previous-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; }
.horse-racing-previous-heading strong { flex:1 1 auto; min-width:0; width:auto; }
.horse-racing-previous-heading button { flex:0 0 auto; width:auto; min-height:34px; padding:6px 10px; border:1px solid #315f9f; border-radius:9px; background:#315f9f; color:#fff; font-size:12px; font-weight:850; }
.horse-racing-previous-heading button:disabled { opacity:.5; }
@media(max-width:480px) { #horseRaceReplayModal .horse-race-replay-content { width:calc(100vw - 20px); padding:16px 12px; } #horseRaceReplayTrack .horse-racing-visual { min-height:260px; } #horseRaceReplayTrack .horse-racing-lane { min-height:26px; } #horseRaceStatsModal .horse-race-stats-content { width:calc(100vw - 20px); padding:16px 12px; } .horse-race-stat-row { grid-template-columns:56px minmax(35px,1fr) 25px; gap:6px; } .horse-race-stat-row > small { grid-column:2 / 4; margin-top:-4px; } }
@media(max-width:480px) { #horseRaceStatsModal .horse-race-stats-content { width:calc(100vw - 16px); padding:10px; } }
@media(max-width:360px) { #horseRaceStatsBody { gap:6px; } .horse-race-stat-details { gap:5px; } .horse-race-stat-detail { padding:5px 6px; gap:3px; } .horse-race-stat-detail > p { font-size:10.5px; line-height:1.25; } }
@media(max-height:600px) { #horseRaceStatsModal .horse-race-stats-content { gap:4px; padding:8px; } #horseRaceStatsBody { gap:5px; } .horse-race-stat-details { gap:4px; } .horse-race-stat-detail { gap:3px; padding:5px 6px; } .horse-race-stat-detail > p { font-size:10.5px; line-height:1.25; } }
@media(min-width:680px) and (max-height:560px) { #horseRaceStatsModal .horse-race-stats-content { width:min(850px,calc(100vw - 24px)); } #horseRaceStatsBody { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); align-items:center; gap:14px; } .horse-race-stats-overview { align-content:center; } .horse-race-radar { width:min(100%,210px,52dvh); } }
#horseRacingScreen { display:grid; gap:14px; padding-bottom:28px; }
.horse-racing-card { display:grid; gap:12px; padding:16px; border:1px solid #d8e2f0; border-radius:18px; background:linear-gradient(145deg,#fff,#f2f6fc); box-shadow:0 10px 28px rgba(32,55,87,.08); }
.horse-racing-local-demo { border-color:#c6a15b; background:linear-gradient(145deg,#f5fbf6,#e7f1e9); }
.horse-racing-local-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.horse-racing-local-actions button { min-height:44px; padding:8px 10px; border:1px solid #b99148; border-radius:10px; background:#154b38; color:#fff7df; font:inherit; font-size:13px; font-weight:850; }
.horse-racing-local-actions button:last-child { border-color:#cbd5e1; background:#edf2f7; color:#40536c; }
.horse-racing-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#1e2d43; }
.horse-racing-heading strong { font-size:16px; }
.horse-racing-heading span,.horse-racing-note { color:#7889a1; font-size:12px; }
.horse-racing-note { margin:0; text-align:center; }
.horse-racing-pool { margin:0; padding:9px 12px; border:1px solid #d9e5f2; border-radius:10px; background:#edf4fc; color:#315b93; font-size:13px; font-weight:900; text-align:center; }
.horse-racing-track { position:relative; overflow:hidden; padding:0; border:1px solid #235442; border-radius:16px; background:#153d31; box-shadow:inset 0 0 0 4px rgba(246,255,236,.08),0 9px 20px rgba(24,58,44,.18); }
.horse-racing-track.is-prestart .horse-racing-visual { opacity:.2; }
.horse-racing-prestart-overlay { position:absolute; inset:0; z-index:8; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:18px; background:rgba(8,34,27,.32); color:#fff; text-align:center; text-shadow:0 2px 6px rgba(0,0,0,.7); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); }
.horse-racing-prestart-overlay strong { font-size:clamp(17px,4vw,23px); font-weight:950; }
.horse-racing-prestart-overlay span { font-size:clamp(12px,3vw,15px); font-weight:750; }
.horse-racing-prestart-overlay b { margin-top:2px; color:#ffe08a; font-size:clamp(18px,4.5vw,25px); font-variant-numeric:tabular-nums; font-weight:950; }
.horse-racing-animal-icon { display:inline-block; transform:scaleX(-1); }
.horse-racing-visual { overflow:hidden; padding:10px; border:4px solid #c99850; border-radius:13px; background:radial-gradient(ellipse at 52% 50%,#39966a 0,#19734f 56%,#11533d 100%); }
.horse-racing-track[data-weather="clear"] { --horse-track-center:#4b965b; --horse-track-middle:#28764b; --horse-track-edge:#174f37; --horse-track-border:#d2ac65; }
.horse-racing-track[data-weather="cloudy"] { --horse-track-center:#507d74; --horse-track-middle:#345f58; --horse-track-edge:#213f3d; --horse-track-border:#aa9e7d; }
.horse-racing-track[data-weather="rain"] { --horse-track-center:#2d6265; --horse-track-middle:#1b484d; --horse-track-edge:#112f36; --horse-track-border:#829b99; }
.horse-racing-track[data-surface="damp"] { --horse-track-sheen:repeating-linear-gradient(125deg,#d0e8f310 0 2px,transparent 2px 28px); }
.horse-racing-track[data-surface="muddy"] { --horse-track-center:#76654b; --horse-track-middle:#554d39; --horse-track-edge:#343c2b; --horse-track-border:#a8956e; --horse-track-sheen:repeating-linear-gradient(165deg,#c4b58a0a 0 3px,transparent 3px 20px); }
.horse-racing-track[data-weather] .horse-racing-visual { border-color:var(--horse-track-border,#c99850); background:var(--horse-track-sheen,linear-gradient(transparent,transparent)),radial-gradient(ellipse at 52% 50%,var(--horse-track-center,#39966a) 0,var(--horse-track-middle,#19734f) 56%,var(--horse-track-edge,#11533d) 100%); }
.horse-racing-track-header,.horse-racing-track-footer { display:flex; align-items:center; justify-content:space-between; padding:2px 3px 8px; color:#e9f3d3; font-size:9px; font-weight:900; letter-spacing:.12em; }
.horse-racing-track-header span { display:flex; align-items:center; gap:6px; color:#b9e2c4; }
.horse-racing-track-header span i { width:7px; height:7px; border-radius:50%; background:#86e1a0; box-shadow:0 0 8px #86e1a0; }
.horse-racing-track-header strong { color:#fff0bc; font-size:10px; letter-spacing:.04em; }
.horse-racing-lanes { --race-edge-inset:22px; position:relative; overflow:hidden; min-width:0; padding:4px 0; border:1px solid rgba(220,255,218,.3); border-radius:10px; background:linear-gradient(90deg,rgba(8,67,48,.5),rgba(12,90,56,.16) 52%,rgba(7,59,43,.38)); box-shadow:inset 0 0 24px rgba(4,39,30,.18); }
.horse-racing-lanes::before { position:absolute; inset:0; content:""; pointer-events:none; opacity:.22; background:repeating-linear-gradient(120deg,transparent 0 24px,rgba(222,255,206,.12) 25px 27px,transparent 28px 47px); }
.horse-racing-lane { position:relative; z-index:1; display:block; min-width:0; min-height:30px; padding:2px 0; border-bottom:1px solid rgba(237,255,230,.2); }
.horse-racing-lane:nth-child(even) { background:rgba(224,255,221,.055); }
.horse-racing-lane:last-of-type { border-bottom:0; }
.horse-racing-lane-number { display:grid; width:17px; height:17px; place-items:center; border:1px solid rgba(255,255,255,.4); border-radius:50%; background:rgba(18,43,37,.45); color:#e8f2d8; font-size:8px; font-weight:900; }
.horse-racing-animal-name { overflow:hidden; color:#e5f1d9; font-size:10px; font-weight:800; white-space:nowrap; text-shadow:0 1px 2px rgba(0,0,0,.35); }
.horse-racing-lane-track { position:relative; display:block; width:calc(100% - var(--race-edge-inset) - var(--race-edge-inset)); margin-left:var(--race-edge-inset); height:25px; border-bottom:1px dashed rgba(221,255,215,.25); }
.horse-racing-runner { position:absolute; top:50%; left:var(--race-progress,0%); z-index:2; display:grid; place-items:center; width:32px; height:26px; font-size:22px; font-style:normal; line-height:1; filter:drop-shadow(0 2px 2px rgba(0,0,0,.45)); transform:translate(-50%,-50%); }
.horse-racing-choices .horse-racing-condition-icon { position:absolute; top:3px; right:3px; z-index:2; display:grid; width:clamp(18px,1.8vw,25px); height:clamp(18px,1.8vw,25px); place-items:center; border:0; border-radius:0; background:transparent; box-shadow:none; font-size:clamp(15px,1.5vw,21px) !important; line-height:1; pointer-events:none; }
.horse-racing-place { position:absolute; top:50%; left:var(--race-progress,0%); z-index:3; display:none; padding:2px 4px; border:1px solid rgba(255,255,255,.72); border-radius:999px; background:rgba(14,45,34,.88); color:#fff3c2; font-size:8px; font-weight:1000; line-height:1; white-space:nowrap; transform:translate(-50%,-190%); }
.horse-racing-lane.is-finished .horse-racing-place { display:block; }
.horse-racing-animal-icon { display:inline-block; transform:scaleX(calc(-1 * var(--race-direction,1))); }
.horse-racing-missile { position:absolute; top:50%; left:var(--missile-progress,0%); z-index:3; display:none; font-size:16px; line-height:1; transform:translate(-50%,-50%) scaleX(var(--race-direction,1)); filter:drop-shadow(0 0 5px rgba(255,184,82,.8)); }
.horse-racing-booster-effect { position:absolute; top:50%; left:calc(var(--race-progress,0%) + var(--race-booster-offset,-30px)); z-index:1; display:none; width:24px; height:8px; border-radius:50%; background:linear-gradient(var(--race-booster-angle,90deg),transparent,rgba(71,224,255,.35),#8af3ff,#fff); filter:drop-shadow(0 0 5px #35ddff); transform:translateY(-50%); transform-origin:var(--race-booster-origin,right center); }
.horse-racing-lane.has-booster .horse-racing-booster-effect { display:block; animation:horse-racing-booster-trail .24s ease-in-out infinite alternate; }
.horse-racing-lane.has-missile .horse-racing-missile { display:block; animation:horse-racing-missile-hit 1s linear both; }
.horse-racing-lane.is-racing .horse-racing-runner { animation:horse-racing-gallop var(--race-gallop-duration,.28s) steps(2,end) infinite; }
.horse-racing-lane.is-hit .horse-racing-runner { animation:horse-racing-hit .38s ease-out 2; transition:left .24s ease-out; }
.horse-racing-lane.is-racing .horse-racing-dust { position:absolute; top:50%; left:calc(var(--race-progress,0%) + var(--race-dust-offset,-17px)); width:15px; height:5px; border-radius:50%; background:rgba(238,220,156,.65); filter:blur(2px); animation:horse-racing-dust .32s ease-out infinite; }
.horse-racing-finish { position:absolute; top:0; right:calc(var(--race-edge-inset) - 7.5px); bottom:0; z-index:0; display:flex; align-items:flex-start; justify-content:center; width:15px; pointer-events:none; border-right:3px solid #fff2c7; border-left:3px solid #fff2c7; background:repeating-conic-gradient(#f6f3dd 0 25%,#233b32 0 50%) 50% / 8px 8px; }
.horse-racing-lanes.is-reversed { --race-direction:-1; --race-booster-offset:6px; --race-booster-angle:-90deg; --race-booster-origin:left center; --race-dust-offset:2px; --race-missile-entry:150%; }
.horse-racing-lanes.is-reversed .horse-racing-finish { right:auto; left:calc(var(--race-edge-inset) - 7.5px); }
.horse-racing-lanes.is-reversed .horse-racing-finish span { right:auto; left:-7px; }
.horse-racing-finish span { position:absolute; top:-1px; right:-7px; padding:2px 3px; border-radius:3px; background:#fff2c7; color:#543c1e; font-size:6px; font-weight:1000; writing-mode:vertical-rl; }
.horse-racing-track-footer { padding:7px 3px 0; color:#cce7be; font-size:8px; }
.horse-racing-track-footer .horse-racing-running-message { width:100%; text-align:center; font-size:12px; letter-spacing:0; }
.horse-racing-lane.is-winner { background:linear-gradient(90deg,rgba(255,220,119,.06),rgba(255,220,119,.28)); }
.horse-racing-lane.has-arrived .horse-racing-runner::after { content:"🏁"; position:absolute; right:100%; top:0; font-size:12px; }
.horse-racing-lane.is-winner .horse-racing-runner::after { content:"🏆"; }
.horse-racing-lane.is-winner .horse-racing-animal-name { color:#fff0ad; }
.horse-racing-lane.is-winner .horse-racing-lane-number { background:#c99638; color:#34230d; }
.horse-racing-environment { margin:8px 0; padding:9px 12px; border:1px solid #d5e2e9; border-radius:10px; background:#eef5f4; color:#315b55; font-size:12px; font-weight:750; line-height:1.6; overflow-wrap:anywhere; }
.horse-racing-events { margin:8px 0; color:#4d6383; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.horse-racing-factor-badge { position:absolute; left:50%; bottom:calc(100% - 3px); transform:translateX(-50%); padding:2px 4px; border-radius:4px; background:#133e33; color:#fff5cf; font-size:8px; line-height:1.2; font-style:normal; white-space:nowrap; }
.horse-racing-lane.has-surge .horse-racing-animal-icon { filter:drop-shadow(0 0 5px #ffe37f); }
.horse-racing-lane.has-stumble .horse-racing-animal-icon { transform:scaleX(calc(-1 * var(--race-direction,1))) rotate(-12deg); }
.horse-racing-lane.is-leader-retreat .horse-racing-animal-icon { transform:scaleX(calc(-1 * var(--race-direction,1))) rotate(180deg); }
.horse-racing-lane.is-leader-retreat .horse-racing-booster-effect,.horse-racing-lane.is-leader-retreat .horse-racing-dust { display:none; }
.horse-racing-lane.has-fatigue .horse-racing-factor-badge { background:#5b4936; }
html[data-theme="dark"] .horse-racing-environment { border-color:#37574e; background:#193830; color:#c7e4d9; }
html[data-theme="dark"] .horse-racing-events { color:#b5c6df; }
@keyframes horse-racing-gallop { 0% { transform:translate(-50%,-55%) rotate(-4deg); } 100% { transform:translate(-50%,-45%) rotate(4deg); } }
@keyframes horse-racing-dust { 0% { opacity:.7; transform:scaleX(calc(.55 * var(--race-direction,1))); } 100% { opacity:0; transform:scaleX(calc(1.4 * var(--race-direction,1))) translateX(-4px); } }
@keyframes horse-racing-missile-hit { 0% { opacity:0; transform:translate(var(--race-missile-entry,-250%),-50%) scaleX(var(--race-direction,1)) rotate(-12deg) scale(.7); } 12% { opacity:1; } 88% { opacity:1; } 100% { opacity:0; transform:translate(-50%,-50%) scaleX(var(--race-direction,1)) rotate(5deg) scale(1); } }
@keyframes horse-racing-hit { 0%,100% { filter:drop-shadow(0 2px 2px rgba(0,0,0,.45)); } 45% { filter:drop-shadow(0 0 10px #ffdf70) brightness(1.8); transform:translate(-50%,-50%) rotate(-16deg); } }
@keyframes horse-racing-booster-trail { from { opacity:.45; transform:translateY(-50%) scaleX(.65); } to { opacity:1; transform:translateY(-50%) scaleX(1.2); } }
.horse-racing-result { min-height:20px; margin:0; color:#315b93; font-weight:800; line-height:1.5; overflow-wrap:anywhere; text-align:center; }
.horse-racing-choices { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.horse-racing-bet-types { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; margin:12px 0 7px; }
.horse-racing-bet-types button { min-height:38px; padding:5px 3px; border:1px solid #d2ddec; border-radius:10px; background:#f7f9fc; color:#43536a; font-size:clamp(10px,2.6vw,13px); font-weight:800; }
.horse-racing-bet-types button.is-selected { border-color:#d6a43d; background:#fff2cc; color:#614716; }
.horse-racing-bet-types button:disabled { opacity:.62; }
.horse-racing-bet-instruction { margin:4px 0 9px; color:#73839a; font-size:12px; text-align:center; }
.horse-racing-choices button { position:relative; display:grid; gap:3px; min-height:57px; place-content:center; border:1px solid #d2ddec; border-radius:11px; background:#f7f9fc; color:#43536a; font-size:20px; touch-action:manipulation; user-select:none; -webkit-touch-callout:none; }
.horse-racing-choices button > span { font-size:10px; font-weight:800; }
.horse-racing-choice-rank { position:absolute; top:3px; left:4px; display:grid; width:19px; height:19px; place-items:center; border:1px solid #e3c878; border-radius:50%; background:#f3e7c8; color:#765a20; font-size:10px; font-weight:800; }
.horse-racing-choice-rank:empty { display:none; }
.horse-racing-choices button.is-selected { border-color:#d6a43d; background:#fff2cc; }
.horse-racing-choices button:disabled { opacity:.62; }
.horse-racing-payout-preview { margin:8px 0 2px; color:#315fa8; font-size:12px; font-weight:800; text-align:center; }
.horse-racing-amount-label { color:#71819a; font-size:12px; font-weight:800; }
.horse-racing-bet-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; }
.horse-racing-bet-row.is-bankruptcy { grid-template-columns:minmax(0,1fr); }
.horse-racing-bet-row input { min-width:0; height:43px; padding:0 11px; border:1px solid #cbd7e7; border-radius:10px; background:#fff; color:#1f2d42; font:inherit; }
.horse-racing-bet-row button { min-height:43px; padding:0 13px; border:1px solid #c4d2e5; border-radius:10px; background:#eaf1fb; color:#315b93; font-weight:800; }
.horse-racing-bet-row button:last-child { border-color:#315f9f; background:#315f9f; color:white; }
.horse-racing-bet-row button:disabled { opacity:.48; }
.horse-racing-my-bets { display:flex; flex-wrap:wrap; gap:7px; color:#56677e; font-size:12px; }
.horse-racing-my-bets strong { width:100%; color:#26364c; }
.horse-racing-my-bets span { padding:5px 8px; border-radius:8px; background:#eaf1fb; }
.horse-racing-history { display:grid; grid-template-columns:1fr; gap:8px; width:100%; margin-top:4px; }
.horse-racing-history > strong { color:#26364c; }
.horse-racing-history-item { display:grid; gap:5px; padding:9px 10px; border:1px solid #d8e3f0; border-radius:10px; background:#f8fbff; }
.horse-racing-history-item > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px; color:#26364c; }
.horse-racing-history-item .horse-racing-history-heading { align-items:center; }
.horse-racing-replay-button { min-height:30px; padding:4px 10px; border:1px solid #315b93; border-radius:8px; background:#315b93; color:#fff; font-size:12px; font-weight:800; white-space:nowrap; }
.horse-racing-replay-button:hover { background:#234776; }
.horse-racing-history-item p { margin:0; color:#56677e; font-size:12px; line-height:1.5; }
.horse-racing-history-item small { color:#718096; }
.horse-racing-history-item .horse-racing-winner-nicknames { color:#247a53; font-weight:700; overflow-wrap:anywhere; }
html[data-theme="dark"] .horse-racing-card { border-color:#3b4d67; background:linear-gradient(145deg,#1c293c,#152235); color:#ecf3ff; }
html[data-theme="dark"] .horse-racing-local-demo { border-color:#9f7a3c; background:linear-gradient(145deg,#263d32,#1c302a); }
html[data-theme="dark"] .horse-racing-local-actions button:last-child { border-color:#40536d; background:#263750; color:#d8e6f8; }
html[data-theme="dark"] .horse-racing-heading,html[data-theme="dark"] .horse-racing-my-bets strong,html[data-theme="dark"] .horse-racing-history-item > div { color:#e5efff; }
html[data-theme="dark"] .horse-racing-heading span,html[data-theme="dark"] .horse-racing-note { color:#a1b2ca; }
html[data-theme="dark"] .horse-racing-pool { border-color:#40536d; background:#22334b; color:#c8dcfb; }
html[data-theme="dark"] .horse-racing-track { border-color:#265b46; background:#153d31; }
html[data-theme="dark"] .horse-racing-prestart-overlay { background:rgba(4,17,14,.42); }
html[data-theme="dark"] .horse-racing-visual { border-color:#bd8b45; background:radial-gradient(ellipse at 52% 50%,#26734f 0,#155b40 56%,#103e31 100%); }
html[data-theme="dark"] .horse-racing-animal-name { color:#e2eed7; }
html[data-theme="dark"] .horse-racing-choices button { border-color:#40536d; background:#263750; color:#d8e6f8; }
html[data-theme="dark"] .horse-racing-choices button.is-selected { border-color:#d5a33f; background:#66491c; }
html[data-theme="dark"] .horse-racing-choice-rank { border-color:#806a35; background:#4a3d23; color:#f5d985; }
html[data-theme="dark"] .horse-racing-bet-types button { border-color:#40536d; background:#263750; color:#d8e6f8; }
html[data-theme="dark"] .horse-racing-bet-types button.is-selected { border-color:#d5a33f; background:#66491c; color:#fff1c2; }
html[data-theme="dark"] .horse-racing-bet-row input { border-color:#40536d; background:#101b2b; color:#edf4ff; }
html[data-theme="dark"] .horse-racing-bet-row button { border-color:#40536d; background:#22334b; color:#c8dcfb; }
html[data-theme="dark"] .horse-racing-bet-row button:last-child { border-color:#507fbe; background:#315f9f; color:#fff; }
html[data-theme="dark"] .horse-racing-my-bets span { background:#22334b; color:#d8e6f8; }
html[data-theme="dark"] .horse-racing-history-item { border-color:#34445d; background:#172438; }
html[data-theme="dark"] .horse-racing-replay-button { border-color:#537ab4; background:#345d96; color:#fff; }
html[data-theme="dark"] .horse-racing-history-item p,html[data-theme="dark"] .horse-racing-history-item small { color:#a9bad2; }
html[data-theme="dark"] .horse-racing-history-item .horse-racing-winner-nicknames { color:#71d6a2; }
html[data-theme="dark"] .horse-race-stats-caption,html[data-theme="dark"] .horse-race-stats-race,html[data-theme="dark"] .horse-race-stat-row > small { color:#a9bad2; }
html[data-theme="dark"] .horse-race-radar-grid { stroke:#43536a; }
html[data-theme="dark"] .horse-race-radar-axis { stroke:#34445b; }
html[data-theme="dark"] .horse-race-radar text,html[data-theme="dark"] .horse-race-stat-row > span { fill:#d8e6f8; color:#d8e6f8; }
html[data-theme="dark"] .horse-race-radar-value { fill:rgba(89,145,219,.28); stroke:#75a7e8; }
html[data-theme="dark"] .horse-race-stat-meter { background:#2a3a51; }
html[data-theme="dark"] .horse-race-stat-details > h3,html[data-theme="dark"] .horse-race-stat-detail-heading strong { color:#d8e6f8; }
html[data-theme="dark"] .horse-race-stat-details-caption,html[data-theme="dark"] .horse-race-stat-detail > p { color:#a9bad2; }
html[data-theme="dark"] .horse-race-stat-detail { border-color:#34445d; background:#172438; }
html[data-theme="dark"] .horse-race-stat-detail-heading b { color:#90b9f0; }
html[data-theme="dark"] .horse-race-stat-detail-meter { background:#2a3a51; }
html[data-theme="dark"] .marble-drop-bet-card,html[data-theme="dark"] .marble-drop-result-dialog { border-color:#3b4d67; background:linear-gradient(145deg,#1c293c,#152235); color:#ecf3ff; }
html[data-theme="dark"] .marble-drop-bet-heading strong,html[data-theme="dark"] .marble-drop-choice-heading strong { color:#e5efff; }
html[data-theme="dark"] .marble-drop-bet-heading span,html[data-theme="dark"] .marble-drop-choice-heading span,html[data-theme="dark"] .marble-drop-status,html[data-theme="dark"] .marble-drop-result-dialog p { color:#a1b2ca; }
html[data-theme="dark"] .marble-drop-bet-row input { border-color:#40536d; background:#101b2b; color:#edf4ff; }
html[data-theme="dark"] .marble-drop-bet-row button { border-color:#40536d; background:#22334b; color:#c8dcfb; }
html[data-theme="dark"] .marble-drop-choices button { border-color:#40536d; background:linear-gradient(145deg,#263750,#1b2a40); color:#d8e6f8; }
html[data-theme="dark"] .marble-drop-choices button.is-selected { border-color:#d5a33f; background:linear-gradient(145deg,#8c662b,#66491c); color:#fff1c5; }
html[data-theme="dark"] .marble-drop-result-close { background:#2b3a50; color:#d6e2f3; }
@media(max-width:420px) { .marble-drop-bet-card { gap:11px; margin-bottom:10px; padding:13px 11px; border-radius:15px; } .marble-drop-bet-heading { align-items:flex-start; flex-direction:column; gap:3px; } .marble-drop-bet-heading span { text-align:left; } .marble-drop-choices { gap:5px; } .marble-drop-choices button { min-height:37px; } .horse-racing-card { padding:12px 10px; border-radius:15px; } .horse-racing-visual { padding:7px 5px; border-width:3px; } .horse-racing-track-header { font-size:8px; } .horse-racing-track-header strong { font-size:9px; } .horse-racing-lanes { padding-right:18px; } .horse-racing-lane { min-height:26px; padding:1px 2px; } .horse-racing-lane-track { height:23px; } .horse-racing-runner { font-size:20px; } .horse-racing-choices { gap:5px; } .horse-racing-choices button { min-height:52px; } .horse-racing-bet-row { grid-template-columns:minmax(0,1fr) auto; } .horse-racing-bet-row button:last-child { grid-column:1 / -1; } .horse-racing-local-actions { grid-template-columns:1fr; } }

/* Keep runner travel and the finish stripe on the same coordinate system. */
@media(max-width:420px) {
  .horse-racing-lanes { --race-edge-inset:20px; padding-right:0; }
  .horse-racing-lane { padding-left:0; padding-right:0; }
  .horse-racing-runner { width:30px; height:24px; }
}

#gameWorldScreen .game-world-intro-row { display:flex; align-items:center; gap:9px; }
#gameWorldScreen .game-world-intro-row .help-text { flex:1 1 auto; min-width:0; }
.game-world-reward-info-button { flex:0 0 26px; width:26px; min-width:26px; height:26px; min-height:26px; display:grid; place-items:center; padding:0; border:1px solid #b8c9e1; border-radius:50%; background:#eaf1fb; color:#315f9f; font-size:15px; font-weight:900; line-height:1; }
.game-world-reward-info-button:hover,.game-world-reward-info-button:focus-visible { border-color:#315f9f; background:#dce9fb; outline:2px solid rgba(49,95,159,.18); outline-offset:2px; }
#gameWorldRewardInfoModal .game-world-reward-info-content { width:min(100%,680px); max-width:680px; max-height:min(84dvh,680px); box-sizing:border-box; justify-items:stretch; gap:12px; padding:22px; border-radius:20px 20px 0 0; text-align:left; }
#gameWorldRewardInfoModal .modal-header { width:100%; align-items:center; justify-content:space-between; gap:12px; margin:0 0 10px; }
#gameWorldRewardInfoModal .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; text-align:left; font-size:1.25rem; }
#gameWorldRewardInfoModal .modal-header .close-button { flex:0 0 44px; width:44px; min-width:44px; max-width:44px; height:44px; min-height:44px; max-height:44px; display:grid; place-items:center; margin-left:auto; padding:0; border-radius:50%; line-height:1; }
#gameWorldRewardInfoModal .game-world-reward-info-content > .help-text { margin:0 0 14px; color:#71829b; line-height:1.5; }
.game-world-reward-table-wrap { max-height:min(54dvh,460px); overflow:auto; border:1px solid #dce5f1; border-radius:14px; }
.game-world-reward-table { width:100%; border-collapse:collapse; color:#243249; font-size:.88rem; }
.game-world-reward-table th,.game-world-reward-table td { padding:10px 12px; border-bottom:1px solid #e8edf5; text-align:left; vertical-align:middle; }
.game-world-reward-table thead th { position:sticky; top:0; z-index:1; background:#edf3fc; color:#315f9f; font-size:.82rem; font-weight:850; }
.game-world-reward-table tbody th { min-width:128px; font-weight:800; }
.game-world-reward-table td:last-child { color:#315f9f; font-weight:850; white-space:nowrap; }
.game-world-reward-table tbody tr:last-child th,.game-world-reward-table tbody tr:last-child td { border-bottom:0; }
.game-world-reward-info-note { margin:12px 0 0; color:#71829b; font-size:.82rem; line-height:1.5; }
.game-world-reward-daily-status { margin:0 0 2px; padding:10px 12px; border-radius:11px; background:#edf4ff; color:#315f9f; font-size:.9rem; font-weight:850; line-height:1.45; }
html[data-theme="dark"] .game-world-reward-info-button { border-color:#435777; background:#243550; color:#cfe0ff; }
html[data-theme="dark"] .game-world-reward-info-button:hover,html[data-theme="dark"] .game-world-reward-info-button:focus-visible { border-color:#91b6f2; background:#2b4264; }
html[data-theme="dark"] .game-world-reward-table-wrap { border-color:#34445c; }
html[data-theme="dark"] .game-world-reward-table { color:#e4ecf8; }
html[data-theme="dark"] .game-world-reward-table th,html[data-theme="dark"] .game-world-reward-table td { border-color:#2d3b50; }
html[data-theme="dark"] .game-world-reward-table thead th { background:#24334a; color:#bcd4fa; }
html[data-theme="dark"] .game-world-reward-table td:last-child { color:#bcd4fa; }
html[data-theme="dark"] #gameWorldRewardInfoModal .game-world-reward-info-content > .help-text,html[data-theme="dark"] .game-world-reward-info-note { color:#a1b2ca; }
html[data-theme="dark"] .game-world-reward-daily-status { background:#243550; color:#cfe0ff; }
@media(max-width:480px) { #gameWorldRewardInfoModal .game-world-reward-info-content { padding:18px 14px calc(18px + env(safe-area-inset-bottom)); } #gameWorldRewardInfoModal .modal-header h2 { font-size:1.12rem; } #gameWorldRewardInfoModal .modal-header .close-button { flex-basis:40px; width:40px; min-width:40px; max-width:40px; height:40px; min-height:40px; max-height:40px; } .game-world-reward-table { font-size:.8rem; } .game-world-reward-table th,.game-world-reward-table td { padding:9px 8px; } .game-world-reward-table tbody th { min-width:106px; } }

/* 티츄 방: 전체 화면을 게임판으로 사용하고 내 조작은 하단에 둡니다. */
html:has(#tichuGameScreen:not(.hidden) #tichuGameRoom:not(.hidden)) { scrollbar-gutter: auto; overflow: hidden; }
body:has(#tichuGameScreen:not(.hidden) #tichuGameRoom:not(.hidden)) { overflow: hidden; }
body:has(#tichuGameScreen:not(.hidden) #tichuGameRoom:not(.hidden)) .bottom-nav,
body:has(#tichuGameScreen:not(.hidden) #tichuGameRoom:not(.hidden)) .app-header { display: none; }
#tichuGameScreen:has(#tichuGameRoom:not(.hidden)) {
  position: fixed; inset: 0; z-index: 35; display: grid;
  grid-template-rows: 46px minmax(0, 1fr); gap: 0; width: 100%; max-width: none;
  height: 100dvh; min-height: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  overflow: hidden; color: #fff9e5; background: radial-gradient(ellipse at 50% 42%, #52652c, #293709 90%);
}
#tichuGameScreen:has(#tichuGameRoom:not(.hidden)) .mystery-game-header { position: relative; top: auto; margin: 0; padding: 4px 12px; min-height: 0; color: inherit; }
#tichuGameScreen:has(#tichuGameRoom:not(.hidden)) .mystery-game-header .eyebrow { display: none; }
#tichuGameScreen:has(#tichuGameRoom:not(.hidden)) .mystery-game-header h2 { color: inherit; font-size: 1.1rem; margin: 0; }
#tichuGameScreen:has(#tichuGameRoom:not(.hidden)) .word-chain-close-button { flex: 0 0 34px; width: 34px; min-width: 34px; max-width: 34px; height: 34px; min-height: 34px; max-height: 34px; padding: 0; border-radius: 50%; }
#tichuGameRoom { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; align-items: stretch; gap: 0; min-height: 0; padding: 0; overflow: hidden; }
/* Keep the legacy seat markup from overlapping the title before room layout initializes. */
#tichuGameRoom:not(:has(.tichu-room-toolbar)) { visibility: hidden; }
#tichuGameRoom > * { grid-column: 1; grid-row: auto; }
#tichuGameRoom .tichu-room-toolbar { position: relative; z-index: 8; display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 4px; }
#tichuGameRoom #tichuInviteCode { display: inline-flex; flex: 0 0 auto; gap: 4px; width: auto; min-height: 28px; padding: 3px 6px; border: 0; background: rgba(0,0,0,.16); color: #f7efd0; }
#tichuGameRoom #tichuInviteCode > span { font-size: .6rem; }
#tichuGameRoom #tichuInviteCode > strong { font-size: .72rem; letter-spacing: .06em; }
#tichuGameRoom #tichuInviteCode > small { display: none; }
#tichuGameRoom #tichuInviteCode { border: 1px solid #d5deeb; background: #f8fafc; color: #243b5a; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
#tichuGameRoom #tichuInviteCode > span { color: #52647d; }
#tichuGameRoom #tichuInviteCode > strong { color: #153e78; text-shadow: none; font-weight: 900; }
#tichuGameRoom #tichuInviteCode #tichuGameStatus:not(:empty) { position: absolute; top: 100%; left: 10px; display: block; max-width: calc(100% - 20px); padding: 6px; background: #fff7dc; color: #54481b; font-size: .7rem; }
#tichuGameRoom .tichu-score { flex: 1; margin: 0; padding: 4px 0; background: transparent; border: 0; box-shadow: none; font-size: clamp(.6rem,2.3vw,.8rem); white-space: nowrap; }
#tichuGameRoom .tichu-forfeit-row > button { min-width: 0; width: auto; min-height: 28px; padding: 3px 6px; font-size: .62rem; }
#tichuGameRoom .tichu-history-menu > summary { padding: 4px; color: #eee9cf; font-size: .62rem; white-space: nowrap; cursor: pointer; }
#tichuGameRoom .tichu-history-menu[open] #tichuScoreHistory { position: absolute; top: 100%; right: 8px; z-index: 10; width: min(320px,calc(100vw - 16px)); max-height: 45dvh; overflow: auto; background: #fff; color: #172a48; box-shadow: 0 8px 24px #0005; }
#tichuGameRoom .tichu-table { grid-row: 2; position: relative; min-height: 0; height: 100%; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; }
#tichuGameRoom .tichu-table::after { display: none; }
#tichuGameRoom #tichuPlayers { position: absolute; inset: 0; display: block; pointer-events: none; }
#tichuGameRoom .tichu-player { position: absolute; z-index: 5; display: grid; justify-items: center; gap: 1px; width: clamp(76px,19vw,112px); min-height: 0; padding: 4px; border: 1px solid transparent; border-radius: 12px; background: transparent; box-shadow: none; text-align: center; color: #fff7df; }
#tichuGameRoom .tichu-player.is-self { display: none; }
#tichuGameRoom .tichu-player.seat-1 { top: 2px; left: 50%; transform: translateX(-50%); }
#tichuGameRoom .tichu-player.seat-2 { top: 48%; right: 6px; transform: translateY(-50%); }
#tichuGameRoom .tichu-player.seat-3 { bottom: 3px; left: 50%; transform: translateX(-50%); }
#tichuGameRoom .tichu-player.seat-4 { top: 48%; left: 6px; transform: translateY(-50%); }
#tichuGameRoom .tichu-player.is-turn { border-color: #ffe082; background: #ffffff10; box-shadow: 0 0 14px #ffda6230; }
#tichuGameRoom .tichu-player-avatar { width: clamp(30px,6dvh,44px); height: clamp(30px,6dvh,44px); }
#tichuGameRoom .tichu-player-avatar svg { display: block; width: 100%; height: 100%; }
#tichuGameRoom .tichu-player b { color: #d5dfbb; font-size: .55rem; }
#tichuGameRoom .tichu-player strong { max-width: 100%; padding: 2px 7px; border-radius: 12px; background: #fffbed; color: #374815; font-size: .72rem; }
#tichuGameRoom .tichu-player small { max-width: 100%; color: #f6efd6; font-size: .6rem; white-space: normal; }
#tichuGameRoom .tichu-player-card-fan { position: relative; width: min(100%, calc(16px + (var(--back-count, 1) - 1) * 4px)); height: 25px; margin-top: 3px; }
#tichuGameRoom .tichu-player-card-fan:empty { display: none; }
#tichuGameRoom .tichu-player-card-fan i { position: absolute; top: 0; left: calc((100% - 16px) * var(--back-index) / max(1, var(--back-count, 1) - 1)); display: block; box-sizing: border-box; width: 16px; height: 23px; border: 1px solid #eee9db; border-radius: 2px; background: repeating-linear-gradient(45deg,#283628 0 3px,#68735e 3px 4px); box-shadow: -1px 1px 2px #0004; }
#tichuGameRoom .tichu-table #tichuTrick { position: absolute; inset: 0; width: auto; min-height: 0; padding: 0; }
#tichuGameRoom .tichu-latest-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 5px; width: min(70%, 600px); }
#tichuGameRoom .tichu-player > strong { position: relative; overflow: visible; }
#tichuGameRoom .tichu-player > strong > .tichu-pass-badge { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); z-index: 2; width: max-content; min-width: 0; padding: 3px 8px; color: #c32635; background: #fff0f1; font-size: .65rem; white-space: nowrap; }
#tichuGameRoom #tichuExchangeRecipients > div { grid-auto-flow: dense; }
#tichuGameRoom .tichu-latest-play > strong { color: #fff7df; font-size: .8rem; }
#tichuGameRoom .tichu-latest-play > .tichu-played-combo-badge { padding: 3px 9px; border-radius: 999px; background: #fffbed; color: #374815; font-size: .72rem; font-weight: 900; }
#tichuGameRoom .tichu-latest-play > div { display: grid; grid-template-columns: repeat(var(--played-card-count), minmax(0, 1fr)); gap: 3px; width: min(100%, calc(var(--played-card-count) * clamp(34px, 10vw, 64px))); }
#tichuGameRoom .tichu-latest-play .tichu-card.is-table { width: 100%; min-width: 0; margin: 0; border-radius: 7px; }
#tichuGameRoom .tichu-demo-played-row { width: min(80%,320px); }
#tichuGameRoom .tichu-demo-played-row.seat-1 { top: 0; }
#tichuGameRoom .tichu-demo-played-row.seat-2 { right: -12px; top: 44%; }
#tichuGameRoom .tichu-demo-played-row.seat-4 { left: -12px; top: 44%; }
#tichuGameRoom .tichu-demo-played-row.seat-3 { bottom: 4px; }
#tichuGameRoom .tichu-demo-played-row > div { flex-wrap: nowrap; }
#tichuGameRoom .tichu-card.is-table { flex-basis: clamp(27px,6vw,45px); width: clamp(27px,6vw,45px); margin: 0 0 0 -12px; }
#tichuGameRoom .tichu-card.is-table:first-child { margin-left: 0; }
#tichuGameRoom .tichu-trick > p { font-size: .7rem; color: #e9efda99; }
#tichuGameRoom #tichuHandPanel { container-type: inline-size; container-name: tichu-hand-panel; grid-row: 3; position: relative; inset: auto; display: flex; flex-direction: column; gap: 7px; box-sizing: border-box; width: min(100%,1100px); height: auto; min-height: 0; max-height: 65dvh; margin: 0 auto; padding: 10px 10px max(8px,env(safe-area-inset-bottom)); border: 1px solid #ffffff26; border-bottom: 0; border-radius: 16px 16px 0 0; background: #172d25; box-shadow: 0 -5px 18px #0003; overflow: auto; overscroll-behavior: contain; }
#tichuGameRoom #tichuHandMessage { order: 0; padding: 4px 6px; border: 0; background: transparent; color: #f5f1dc; font-size: .68rem; line-height: 1.3; }
#tichuGameRoom #tichuGameError { order: 1; }
#tichuGameRoom #tichuPlayOptions { order: 1; flex: 0 0 auto; padding: 8px; }
#tichuGameRoom #tichuHandToggle { order: 1; flex: 0 0 auto; min-height: 24px; padding: 0; color: #f5f1dc; font-size: .8rem; }
#tichuGameRoom #tichuHandToggleLabel { color: #f5f1dc !important; font-size: .85rem; }
#tichuGameRoom #tichuHandToggle #tichuSelectionCount { color: #c8ddd1 !important; font-size: .75rem; }
#tichuGameRoom #tichuHandControls { order: 4; position: sticky; bottom: -1px; z-index: 40; flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; background: #172d25; box-shadow: 0 -6px 8px #172d25; }
#tichuGameRoom #tichuHandPanel .tichu-game-actions { order: 2; position: static; flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 0; margin: 0; padding: 7px 0 2px; border: 0; border-top: 1px solid #ffffff26; background: #172d25; box-shadow: 0 -6px 8px #172d25; }
#tichuGameRoom #tichuHandPanel .tichu-game-actions > button { flex: 1 1 130px; box-sizing: border-box; width: auto; min-width: 0; min-height: 44px; padding: 9px 8px; border-radius: 9px; font-size: .85rem; font-weight: 800; }
#tichuGameRoom #tichuHandPanel .tichu-game-actions > #tichuPlay { flex: 2 1 110px; border: 1px solid #81d8ab; background: #b0f2c9; color: #102e20; }
#tichuGameRoom #tichuHandPanel .tichu-game-actions > #tichuClearSelection { flex: 1 1 88px; border: 1px solid #78958a; background: #263f35; color: #f0f8f3; }
#tichuGameRoom #tichuHandPanel .tichu-game-actions > #tichuPass { flex: 1 1 60px; border: 1px solid #78958a; background: #263f35; color: #f0f8f3; }
#tichuGameRoom #tichuHandPanel .tichu-game-actions > #tichuSmall { flex-basis: 100%; }
#tichuGameRoom #tichuHandPanel .tichu-game-actions > button:disabled { opacity: .5; }
#tichuGameRoom #tichuSelectionInfo { order: 0; flex: 0 0 auto; display: grid; gap: 3px; padding: 8px 10px; border: 1px solid #648878; border-radius: 9px; background: #213d31; color: #f4fbf6; }
#tichuGameRoom #tichuSelectionInfo strong { font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
#tichuGameRoom #tichuSelectionInfo small { color: #c7dacf; font-size: .7rem; line-height: 1.4; }
#tichuGameRoom #tichuSelectionInfo[data-tone="invalid"] { border-color: #e4a788; background: #4b3226; }
#tichuGameRoom #tichuSelectionInfo[data-tone="bomb"] { border-color: #e5c66b; background: #433c24; }
#tichuGameRoom #tichuActionWaiting { min-height: 22px; padding: 0; color: #f4eed2; font-size: .65rem; }
#tichuGameRoom #tichuExchangeRecipients { order: 3; flex: 0 0 auto; gap: 4px; padding: 0; }
#tichuGameRoom #tichuExchangeRecipients > span { display: none; }
#tichuGameRoom .tichu-exchange-recipient { min-height: 44px; padding: 6px; font-size: .75rem; }
#tichuGameRoom #tichuHand { order: 2; flex: 0 0 auto; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); justify-items: center; gap: 8px 5px; width: 100%; max-width: 680px; height: auto; min-height: 0; max-height: none; margin: 0 auto; padding: 5px 0 2px; overflow: visible; }
#tichuGameRoom #tichuHand .tichu-card { width: 100%; max-width: 80px; height: auto !important; aspect-ratio: 1 / 1.42; margin: 0; clip-path: none; overflow: hidden; border: 2px solid #d9d4be; box-shadow: 0 2px 4px #0005; }
#tichuGameRoom #tichuHand .tichu-card.is-selected { transform: translateY(-4px); border-color: #65b4ff; outline: 2px solid #65b4ff; outline-offset: 1px; box-shadow: 0 4px 9px #0008; }
#tichuGameRoom #tichuHand .tichu-card:focus-visible { outline: 3px solid #fff1a6; outline-offset: 2px; }
#tichuGameRoom #tichuHand .tichu-hand-empty-message { grid-column: 1 / -1; min-height: 38px; background: transparent; color: #f5f1dc; border: 0; }
body:has(#tichuGameScreen:not(.hidden) #tichuGameRoom:not(.hidden)) .game-chat-fab[data-game-chat-fab="tichu"] { top: calc(85px + env(safe-area-inset-top)); right: 10px; bottom: auto; width: 36px; height: 36px; min-height: 36px; font-size: 1rem; }
@media (min-width:700px) { #tichuGameRoom .tichu-player { width: 128px; } #tichuGameRoom .tichu-player strong { font-size: .85rem; } }
@container tichu-hand-panel (max-width:337px) { #tichuGameRoom #tichuHand { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@container tichu-hand-panel (min-width:900px) { #tichuGameRoom #tichuHand { grid-template-columns: repeat(14,minmax(0,1fr)); max-width: none; } }
@media (max-height:540px) { @container tichu-hand-panel (min-width:700px) { #tichuGameRoom #tichuHand { grid-template-columns: repeat(14,minmax(0,1fr)); max-width: none; } } }
@media (max-height:540px) { #tichuGameRoom .tichu-player-avatar { width: 24px; height: 24px; }  #tichuGameRoom .tichu-latest-play > div { max-width: calc(var(--played-card-count) * 42px); } #tichuGameRoom #tichuHandMessage { font-size: .6rem; } }
@media (max-height:540px) {
  #tichuGameRoom #tichuHandPanel { gap: 4px; padding-top: 6px; }
  #tichuGameRoom #tichuHandToggle { min-height: 22px; }
  #tichuGameRoom #tichuHandMessage { padding: 2px 4px; }
  #tichuGameRoom #tichuHandControls { gap: 4px; padding-top: 4px; }
  #tichuGameRoom #tichuSelectionInfo { padding: 6px 8px; }
  #tichuGameRoom #tichuSelectionInfo small { display: none; }
  #tichuGameRoom #tichuHandPanel .tichu-game-actions { padding-top: 4px; }
  #tichuGameRoom #tichuHandPanel .tichu-game-actions > #tichuSmall { flex: 1 1 160px; }
}

/* Hold'em room: full-screen felt, with a separate bottom hand/action row. */
html:has(#holdemGameScreen:not(.hidden) #holdemRoom:not(.hidden)) { scrollbar-gutter: auto; overflow: hidden; }
body:has(#holdemGameScreen:not(.hidden) #holdemRoom:not(.hidden)) { overflow: hidden; }
body:has(#holdemGameScreen:not(.hidden) #holdemRoom:not(.hidden)) .app-header,
body:has(#holdemGameScreen:not(.hidden) #holdemRoom:not(.hidden)) .bottom-nav { display: none; }
body[data-current-screen="holdem"] .modal { z-index: 2300; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) { position: fixed; inset: 0; z-index: 35; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 0; width: 100%; max-width: none; height: 100dvh; min-height: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); overflow: hidden; color: #fff9e5; background: radial-gradient(ellipse at 50% 42%,#168365,#064332 95%); }
#holdemGameScreen.is-halloween:has(#holdemRoom:not(.hidden)) { isolation: isolate; color: #fff1df; background: radial-gradient(ellipse at 50% 44%,#48234f 0,#25162f 57%,#100d18 100%); }
#holdemGameScreen.is-halloween:has(#holdemRoom:not(.hidden))::before { position: absolute; z-index: 0; inset: 0; content: ""; pointer-events: none; background: radial-gradient(ellipse at 0% 0%,#f28c2840,transparent 32%),radial-gradient(ellipse at 100% 0%,#813bb52e,transparent 30%),radial-gradient(ellipse at 100% 100%,#f28c2826,transparent 30%),radial-gradient(ellipse at 0% 100%,#813bb522,transparent 30%); }
#holdemGameScreen.is-halloween:has(#holdemRoom:not(.hidden))::after { position: absolute; z-index: 0; top: calc(48px + env(safe-area-inset-top)); right: 12px; content: "🦇"; opacity: .38; font-size: clamp(18px,5vw,28px); filter: drop-shadow(0 0 8px #f28c2866); pointer-events: none; }
#holdemGameScreen.is-halloween:has(#holdemRoom:not(.hidden)) > .mystery-game-header,
#holdemGameScreen.is-halloween:has(#holdemRoom:not(.hidden)) > #holdemRoom { position: relative; z-index: 1; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-roundbar > div { border: 1px solid #d9904955; background: #1c1229cc; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-roundbar span { color: #d7bfdf; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-roundbar strong { color: #ffd39a; }
#holdemGameScreen.is-halloween #holdemRoom #holdemTable { border: 1px solid #e48b3ca8; border-radius: 30px; background: radial-gradient(ellipse at 50% 45%,#49244e88,#21142caa 78%); box-shadow: inset 0 0 0 5px #1b102c88,inset 0 0 48px #10091888,0 0 22px #e77d2626; }
#holdemGameScreen.is-halloween #holdemRoom #holdemTable::before { display: block; inset: 7px; border: 1px solid #dba05255; border-radius: 25px; content: ""; pointer-events: none; }
#holdemGameScreen.is-halloween #holdemRoom #holdemTable::after { display: block; position: absolute; z-index: 0; inset: 0; content: ""; background: url("./assets/holdem-halloween-mark.svg") center 56% / clamp(130px,35vw,240px) auto no-repeat; opacity: .12; pointer-events: none; }
/* Equipped nameplates keep their own artwork, border and colors during the event. */
#holdemGameScreen.is-halloween #holdemRoom .holdem-seat:is(:not([data-player-theme]),[data-player-theme="default"],[data-player-theme=""]):not([data-shared-player-nameplate]) { border-color: #d99555a8; background: linear-gradient(145deg,#32203dea,#1a1225ed); box-shadow: 0 4px 16px #10091780,0 0 12px #d7792917; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-seat:is(:not([data-player-theme]),[data-player-theme="default"],[data-player-theme=""]):not([data-shared-player-nameplate]).is-active { border-color: #ffd37c; box-shadow: 0 0 0 2px #ee9b3c55,0 0 18px #f5a34355; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-seat:is(:not([data-player-theme]),[data-player-theme="default"],[data-player-theme=""]):not([data-shared-player-nameplate]) .holdem-seat-balance { color: #f2dfc6; }
#holdemGameScreen.is-halloween #holdemRoom .game-ready-badge.is-ready { background: #9f4d20 !important; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-action-status.is-call { border-color: #a583c8; background: #58366f; color: #fff2ff; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-action-status.is-check { border-color: #c3a5e6; background: #49305e; color: #fff2ff; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-card-back { border-color: #e5ba8b; background: repeating-linear-gradient(135deg,#392148 0 4px,#5e3565 4px 8px); color: #ffc689; box-shadow: 0 2px 5px #100917aa; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-pot > strong { color: #ffd6a0; text-shadow: 0 2px 10px #ff8c3333; }
#holdemGameScreen.is-halloween #holdemRoom #holdemInvite { border-color: #ba865e; background: #26192f; color: #ffe0b9; }
#holdemGameScreen.is-halloween #holdemRoom #holdemInvite > span { color: #d7bfdf; }
#holdemGameScreen.is-halloween #holdemRoom #holdemInvite > strong { color: #ffd39a; }
#holdemGameScreen.is-halloween #holdemRoom :is(.holdem-sound-setting,#holdemRebuySettings,#holdemTurnStatus) { color: #e8cfea; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-sound-setting input { accent-color: #f49a48; }
#holdemGameScreen.is-halloween #holdemRoom #holdemRebuyLimit { border-color: #8c659d; background: #291b35; color: #ffe4c5; }
#holdemGameScreen.is-halloween:has(#holdemRoom:not(.hidden)) :is(.holdem-wallet-badge,.holdem-recharge-button,.holdem-debt-repay,#closeHoldem) { border-color: #a87653; background: #2b1b34; color: #ffdeb4; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-room-actions > button { border-color: #ba7e45; background: linear-gradient(#c76c2a,#9c471d); color: #fff4e7; }
#holdemGameScreen.is-halloween #holdemRoom .holdem-room-actions > button.secondary-button { border-color: #9566a5; background: #3b254b; color: #f7dfff; }
body.is-holdem-halloween #holdemActionDock,
#holdemGameScreen.is-halloween:has(#holdemRoom:not(.hidden)) #holdemActionDock { border-color: #8a562e; background: linear-gradient(180deg,#26182ff5,#130f1dfa); box-shadow: inset 0 1px #cf854a66; }
body.is-holdem-halloween #holdemActionDock :is(.holdem-my-player-info,.holdem-raise-panel label,.holdem-raise-panel small) { color: #e5cde9; }
body.is-holdem-halloween #holdemActionDock :is(.holdem-action-buttons button,.holdem-raise-panel button,#holdemEmoteToggle) { border-color: #8d5d9b; background: #3b254c; color: #fff0df; }
body.is-holdem-halloween #holdemActionDock :is(button[data-holdem-action="raise"],button[data-holdem-action="allin"],button[data-holdem-confirm-raise]) { border-color: #ffc282; background: linear-gradient(#eb9a46,#c86524); color: #291323; }
body.is-holdem-halloween #holdemActionDock button[data-holdem-action="fold"] { border-color: #a7607c; background: #582e48; }
body.is-holdem-halloween #holdemActionDock .holdem-raise-panel input { border-color: #91629f; background: #22152e; color: #fff0df; }
body.is-holdem-halloween #holdemActionDock .holdem-emote-picker { border-color: #91629f; background: #22152e; }
body.is-holdem-halloween #holdemActionDock .holdem-emote-picker button { background: #3b254c; }

#holdemGameScreen:has(#holdemRoom:not(.hidden)) > .mystery-game-header { position: relative; margin: 0; padding: 5px 10px; min-height: 44px; gap: 5px; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .eyebrow { display: none; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) #holdemTitle { margin: 0; font-size: 1.1rem; color: var(--holdem-room-title-color, #fff9e5); white-space: nowrap; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .omok-header-actions { flex: 1; justify-content: flex-end; gap: 4px; min-width: 0; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) #closeHoldem { flex: 0 0 34px; width: 34px; min-width: 34px; max-width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 50%; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-wallet-badge,
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-recharge-button,
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-debt-repay { min-height: 27px; padding: 3px 6px; font-size: .6rem; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-intro { display: none; }
#holdemRoom { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 0; min-height: 0; margin: 0; padding: 0; overflow: hidden; }
#holdemRoom:not(:has(.holdem-room-toolbar)) { visibility: hidden; }
#holdemRoom .holdem-room-toolbar { position: relative; z-index: 12; display: flex; justify-content: space-between; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px 3px; }
#holdemRoom .holdem-invite-stack { display:grid; justify-items:start; align-content:start; gap:4px; }
#holdemRoom .holdem-invite-stack .holdem-leave-reservation { width:auto; min-height:24px; padding:3px 8px; font-size:.62rem; }
#holdemRoom .holdem-sound-setting { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: #e8f7df; font-size: .65rem; white-space: nowrap; cursor: pointer; }
#holdemRoom .holdem-sound-setting input { width: 15px; height: 15px; margin: 0; padding: 0; accent-color: #70b667; }
#holdemRoom #holdemInvite { display: flex; gap: 4px; align-items: center; width: auto; min-height: 26px; margin: 0; padding: 3px 6px; border: 0; background: #0002; color: #e8f7df; }
#holdemRoom #holdemInvite > span { font-size: .6rem; }
#holdemRoom #holdemInvite > strong { font-size: .72rem; }
#holdemRoom #holdemInvite > small { display: none; }
#holdemRoom #holdemInvite { border: 1px solid #d5deeb; background: #f8fafc; color: #243b5a; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
#holdemRoom #holdemInvite > span { color: #52647d; }
#holdemRoom #holdemInvite > strong { color: #153e78; text-shadow: none; font-weight: 900; }
#holdemRoom #holdemStatus:not(:empty) { display: block; position: absolute; top: 100%; left: 10px; padding: 5px; background: #fff7dc; color: #53431c; }
#holdemRoom #holdemRebuySettings { margin: 0; padding: 0; gap: 3px; font-size: .6rem; color: #e8f7df; }
#holdemRoom #holdemRebuyLimit { width: auto; min-height: 24px; padding: 2px; font-size: .65rem; }
#holdemRoom .holdem-history-menu > summary { font-size: .65rem; cursor: pointer; white-space: nowrap; }
#holdemRoom .holdem-history-menu[open] .holdem-room-information { position: absolute; right: 8px; top: 100%; width: min(430px,calc(100vw - 16px)); max-height: 60dvh; overflow: auto; padding: 10px; border-radius: 12px; background: #fff; color: #17365f; box-shadow: 0 8px 24px #0005; }
#holdemRoom .holdem-attendance { margin: 0; padding: 8px; }
#holdemRoom .holdem-table-wrap { display: grid; grid-template-rows: auto minmax(0,1fr); gap: 0; min-height: 0; }
#holdemRoom .holdem-roundbar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin: 0; padding: 0 10px; }
#holdemRoom .holdem-roundbar > div { min-height: 0; padding: 4px 2px; border: 0; background: #0002; border-radius: 6px; }
#holdemRoom .holdem-roundbar span { font-size: .5rem; }
#holdemRoom .holdem-roundbar strong { font-size: .6rem; }
#holdemRoom #holdemEntryNote { margin: 4px 10px 0; color: inherit; font-size: .65rem; font-weight: 700; }
#holdemRoom #holdemTable { height: 100%; min-height: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; }
#holdemRoom #holdemTable::before, #holdemRoom #holdemTable::after { display: none; }
#holdemRoom .holdem-seat { width: clamp(76px,24vw,142px); min-height: 0; padding: 4px; gap: 1px; }
#holdemRoom #holdemSeats[data-my-seat]:not([data-my-seat="0"]) > .holdem-seat-anchor:first-child > .holdem-seat { visibility: visible; pointer-events: auto; }
#holdemRoom .holdem-seat-heading { margin: 0; font-size: .5rem; white-space: normal; }
#holdemRoom .holdem-action-status { min-height: 19px; padding: 2px 5px; font-size: .58rem; }
#holdemRoom .holdem-seat-anchor { --holdem-seat-height: 100px; width: clamp(70px,22vw,120px); grid-template-rows: 22px var(--holdem-seat-height) minmax(22px,auto); }
#holdemRoom .holdem-seat-anchor > .holdem-seat { box-sizing: border-box; width: 100%; height: var(--holdem-seat-height); grid-template-rows: 14px 12px 25px 28px; align-content: center; gap: 2px; padding: 5px 4px; overflow: visible; }
#holdemRoom #holdemSeats .holdem-seat-balance { margin: 0; width: 100%; min-width: 0; font-size: .55rem; line-height: 12px; color: #e4edf7; }
#holdemRoom #holdemSeats .holdem-seat-bet { box-sizing: border-box; display: grid; align-content: center; gap: 0; min-height: 28px; margin: 0; padding: 1px 3px; font-size: .55rem; line-height: 12px; overflow: hidden; }
#holdemRoom #holdemSeats .holdem-seat-bet .holdem-bet-line { display: block; min-width: 0; font-size: inherit; line-height: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#holdemRoom #holdemSeats .holdem-seat.is-folded .holdem-seat-cards { display: flex; visibility: hidden; }
#holdemRoom .holdem-seat.is-occupied { cursor: pointer; }
#holdemRoom .holdem-seat.is-occupied:focus-visible { outline: 2px solid #fff2b0; outline-offset: 3px; }
#holdemSeatDetailModal { place-items: center; padding: 16px; box-sizing: border-box; z-index: 2300; }
#holdemSeatDetailModal .notice-content { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: min(100%,420px); max-height: 85dvh; box-sizing: border-box; border-radius: 20px; padding: 20px; text-align: left; }
#holdemSeatDetailModal .modal-header { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; margin: 0; flex: none; }
#holdemSeatDetailModal .modal-header h2 { flex: 1; min-width: 0; text-align: left; overflow-wrap: anywhere; font-size: 1.15rem; }
#holdemSeatDetailModal .modal-header .close-button { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; margin-left: auto; display: grid; place-items: center; line-height: 1; }
#holdemSeatDetailBody { min-height: 0; overflow-y: auto; }
.holdem-seat-detail-list { margin: 0; font-size: .9rem; }
.holdem-seat-detail-list > div { display: grid; grid-template-columns: minmax(100px,1fr) minmax(0,1.3fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #d9e2ed; }
.holdem-seat-detail-list dt { opacity: .75; }
.holdem-seat-detail-list dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
#holdemRoom #holdemSeats .holdem-seat-anchor > small.game-turn-timeout { font-size:.55rem; }
#holdemRoom #holdemSeats .holdem-seat-anchor > .holdem-seat-timer-slot > .holdem-seat-result-hand { font-size:.55rem; }
#holdemRoom .holdem-seat-records { display: grid; }
#holdemRoom .holdem-bankruptcy-count { display: none; }
#holdemRoom .holdem-seat-top { gap: 2px; flex-wrap: nowrap; width: 100%; min-width: 0; }
#holdemRoom .holdem-seat-top strong { min-width: 0; font-size: .7rem; }
#holdemRoom .holdem-seat > small { font-size: .55rem; }
#holdemRoom .holdem-seat-bet { margin: 0; padding: 0; font-size: .6rem; }
#holdemRoom .holdem-seat-cards { min-height: 25px; margin-top: 0; }
#holdemRoom .holdem-card.is-small-card { width: 19px; max-height: 27px; }
#holdemRoom .holdem-card-back { width: 17px; height: 25px; }
#holdemRoom .holdem-center { width: auto; max-width: 80%; gap: 6px; }
#holdemRoom .holdem-community { min-height: 0; gap: 3px; }
#holdemRoom .holdem-community .holdem-card { width: clamp(29px,8vw,55px); max-height: 77px; }
#holdemRoom .holdem-pot > strong { padding: 0; font-size: .8rem; background: transparent; }
#holdemRoom .holdem-table-footer { display: grid; gap: 3px; padding: 3px 10px; }
#holdemRoom #holdemTurnStatus { margin: 0; padding: 3px; min-height: 0; border: 0; background: transparent; color: #e4f1db; font-size: .62rem; }
#holdemRoom #holdemError { margin: 0; min-height: 0; font-size: .65rem; color: #ffb7b7; }
#holdemRoom #holdemError:empty { display: none; }
#holdemRoom .holdem-room-actions { justify-content: center; gap: 5px; }
#holdemRoom .holdem-room-actions > button { flex: 0 1 auto; min-height: 30px; padding: 4px 8px; font-size: .65rem; }
#holdemRoom #holdemLocalTestToggle { width: auto !important; min-height: 25px; margin: 0 auto !important; padding: 3px 8px; font-size: .6rem; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-local-actor-wrap { min-width: 0; max-width: 140px; font-size: .55rem; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) #holdemLocalActingPlayer { min-height: 28px; height: 28px; padding: 3px; font-size: .6rem; }
#holdemPlayerInformation { margin-bottom: 10px; font-size: .7rem; line-height: 1.5; }
.holdem-player-info-table-wrap { width: 100%; overflow-x: auto; }
.holdem-player-info-table { width: 100%; border-collapse: collapse; text-align: left; }
.holdem-player-info-table th, .holdem-player-info-table td { padding: 7px 6px; border-bottom: 1px solid #e2eaf4; white-space: nowrap; }
.holdem-player-info-table thead th { color: #60738e; font-size: .66rem; font-weight: 800; }
.holdem-player-info-table tbody th { color: #17365f; font-weight: 800; }
.holdem-player-info-table tbody td { color: #315a9f; text-align: center; }
html[data-theme="dark"] .holdem-player-info-table th, html[data-theme="dark"] .holdem-player-info-table td { border-color: #34465e; }
html[data-theme="dark"] .holdem-player-info-table thead th { color: #9aadc6; }
html[data-theme="dark"] .holdem-player-info-table tbody th { color: #e2ebf7; }
html[data-theme="dark"] .holdem-player-info-table tbody td { color: #a9c8f6; }
#holdemGameScreen[data-local-test="true"] #holdemRechargeButton,
#holdemGameScreen[data-local-test="true"] #holdemDebtRepay,
#holdemGameScreen[data-local-test="true"] .holdem-emote-tools { display: none; }
#holdemGameScreen[data-local-test="true"] .holdem-own-hand { display: grid; grid-template-columns: minmax(60px,95px) minmax(0,1fr); }
#holdemGameScreen[data-local-test="true"] .holdem-own-hand > strong { font-size: .6rem; white-space: normal; }
#holdemGameScreen[data-local-test="true"] .holdem-local-actor-wrap { display: grid; grid-template-columns: auto minmax(0,1fr); grid-column: 1 / -1; align-items: center; gap: 6px; width: 100%; max-width: none; }
#holdemGameScreen[data-local-test="true"] #holdemTurnStatus { max-height: 2.8em; overflow: auto; }
#holdemMyTurnTimer:empty { display: none; }
@media (max-height:560px) {
  #holdemGameScreen[data-local-test="true"] .holdem-own-cards { grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 2px 6px; }
  #holdemGameScreen[data-local-test="true"] #holdemMyCards { grid-column: 1; grid-row: 1 / 3; }
  #holdemGameScreen[data-local-test="true"] #holdemHandLabel,
  #holdemGameScreen[data-local-test="true"] #holdemMyPlayerInfo { grid-column: 2; font-size: .5rem; }
  #holdemGameScreen[data-local-test="true"] #holdemTurnStatus { max-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #holdemGameScreen[data-local-test="true"] .holdem-seat { gap: 0; padding: 2px; line-height: 1.1; }
  #holdemGameScreen[data-local-test="true"] .holdem-seat-top strong { font-size: .55rem; }
  #holdemGameScreen[data-local-test="true"] .holdem-seat-cards .holdem-card { width: 13px; max-height: 18px; }
  #holdemGameScreen[data-local-test="true"] .holdem-seat-bet { font-size: .45rem; }
  #holdemGameScreen[data-local-test="true"] .holdem-seat.seat-2,
  #holdemGameScreen[data-local-test="true"] .holdem-seat.seat-6 { top: 72% !important; }
  #holdemGameScreen[data-local-test="true"] .holdem-seat.seat-3,
  #holdemGameScreen[data-local-test="true"] .holdem-seat.seat-5 { top: 28% !important; }
  #holdemGameScreen[data-local-test="true"]:has(#holdemRaisePanel:not(.hidden)) .holdem-table-footer { display: none; }
}
#holdemGameScreen:has(#holdemRoom:not(.hidden)) #holdemActionDock { position: relative; z-index: 10; inset: auto; transform: none; width: 100%; max-width: 900px; margin: 0 auto; border: 0; border-radius: 0; padding: 6px 10px; gap: 5px; background: #031e1866; box-shadow: none; backdrop-filter: none; overflow: visible; }
#holdemActionDock .holdem-my-player-info { font-size: .6rem; color: #e5eecf; }
#holdemMyTurnTimer.is-active { padding: 2px 5px; border-radius: 4px; background: #a52e2e; color: #fff; font-size: .6rem; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-own-hand { min-height: 0; gap: 7px; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-own-hand > strong { font-size: .7rem; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-own-hand .holdem-card { width: 33px; max-height: 46px; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) #holdemEmoteToggle { min-height: 30px; padding: 3px 5px; font-size: .6rem; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-action-buttons button { min-height: 34px; font-size: .64rem; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-raise-panel { gap: 4px; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-raise-panel input { height: 32px; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-raise-panel button { min-height: 32px; }
body:has(#holdemGameScreen:not(.hidden) #holdemRoom:not(.hidden)) .game-chat-fab[data-game-chat-fab="holdem"] { top: calc(108px + env(safe-area-inset-top)); right: 8px; bottom: auto; width: 34px; height: 34px; min-height: 34px; font-size: 1rem; }
@media (max-height:560px) { #holdemRoom .holdem-seat { padding: 2px; } #holdemRoom .holdem-bet-line { display: inline; } #holdemRoom .holdem-seat-cards .holdem-card-back { width: 13px; height: 18px; } #holdemGameScreen:has(#holdemRoom:not(.hidden)) .holdem-own-hand .holdem-card { width: 27px; max-height: 38px; } }
@media (max-width:700px) { #holdemGameScreen:has(#holdemRaisePanel:not(.hidden)) .holdem-seat { padding: 2px; gap: 0; line-height: 1.1; } #holdemGameScreen:has(#holdemRaisePanel:not(.hidden)) .holdem-bet-line { display: inline; font-size: .45rem; } #holdemGameScreen:has(#holdemRaisePanel:not(.hidden)) .holdem-seat-cards .holdem-card-back { width: 13px; height: 18px; } #holdemGameScreen:has(#holdemRaisePanel:not(.hidden)) .holdem-seat-cards .holdem-card { width: 13px; max-height: 18px; } }
@media (max-width:700px) {
  #holdemRoom .holdem-table-footer .holdem-room-actions { display:flex; flex-wrap:nowrap; justify-content:stretch; width:100%; gap:5px; }
  #holdemRoom .holdem-table-footer .holdem-room-actions > button { flex:1 1 0; width:0; min-width:0; padding-inline:4px; white-space:normal; overflow-wrap:anywhere; }
  #holdemRoom .holdem-table-footer .holdem-room-actions > #holdemStart { flex:2 1 0; }
}
@media (max-width:520px) { #memberHomeHeader { align-items:flex-start; flex-direction:row; gap:10px; } #memberHomeHeader>div:first-child { min-width:0; } #memberHomeHeader .member-home-theme-actions { display:flex; flex:0 0 auto; margin-left:auto; } #memberHomeHeader .member-home-theme-actions .theme-toggle { width:auto; } }

/* PC에서는 기존 중앙 콘텐츠 폭을 유지하고 고정 채팅창 공간을 확보합니다. */
@media (min-width:1024px) {
  body { --game-pc-chat-space:0px; }
  body:has(.game-chat-panel.is-open, .omok-chat-panel.is-open) { --game-pc-chat-space:clamp(280px,24vw,340px); }
  #holdemGameScreen:has(#holdemRoom:not(.hidden)),
  #sutdaGameScreen:has(#sutdaRoom:not(.hidden)),
  #tichuGameScreen:has(#tichuGameRoom:not(.hidden)) {
    left:0; right:var(--game-pc-chat-space); width:min(680px,calc(100% - var(--game-pc-chat-space) - 32px));
    max-width:680px; margin-inline:auto;
  }
  body:has(#sutdaGameScreen:not(.hidden) #sutdaRoom:not(.hidden)) > #sutdaActionDock {
    left:0; right:var(--game-pc-chat-space); width:min(680px,calc(100% - var(--game-pc-chat-space) - 32px));
    max-width:680px; margin-inline:auto; transform:none;
  }
}


/* 티츄 선언 배지는 충분히 강조하고, 낸 카드는 플레이어 영역 위에 표시합니다. */
#tichuGameRoom .tichu-player .tichu-declaration-badge,
#tichuGameRoom .tichu-seat-names .tichu-declaration-badge { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 22px; padding: 4px 10px; border: 1px solid #f4c34f; border-radius: 999px; background: #ffe29a; box-shadow: 0 2px 7px #0007; color: #493000; font-size: clamp(.72rem, 2.9vw, .9rem); font-weight: 950; line-height: 1.1; text-shadow: none; white-space: nowrap; }
#tichuGameRoom .tichu-player .tichu-declaration-badge.is-small,
#tichuGameRoom .tichu-seat-names .tichu-declaration-badge.is-small { border-color: #8ab8ff; background: #cfe3ff; color: #103d83; }
#tichuGameRoom .tichu-table #tichuTrick { z-index: 6; }

/* Las Vegas Royale */
.las-vegas-royale-game-icon img { object-fit: cover; }
.las-vegas-room { display: grid; gap: 12px; }
.las-vegas-round-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #d7e2f1; border-radius: 14px; background: #f6f9ff; color: #294a77; }
.las-vegas-round-status strong { color: #17365f; }
.las-vegas-casinos, .las-vegas-dice-panel { padding: 14px; border: 1px solid #dbe4f0; border-radius: 16px; background: var(--surface, #fff); }
.las-vegas-board-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: #243b61; }
.las-vegas-board-heading small { color: #71809a; }
.las-vegas-casino-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.las-vegas-casino { display: grid; grid-template-columns: minmax(100px,.65fr) minmax(0,1.6fr) minmax(105px,auto); align-items: center; gap: 10px; min-width: 0; padding: 9px 11px; border: 1px solid #d6b25c; border-radius: 14px; background: #fff; color: #402d0d; }
.las-vegas-casino header { display: grid; gap: 3px; min-width: 0; }
.las-vegas-casino header strong { font-size: 1rem; }
.las-vegas-casino header span { font-size: .74rem; font-weight: 800; }
.las-vegas-casino-dice { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; align-items: center; }
.las-vegas-casino-dice > span { display: grid; justify-items: center; font-size: 1.25rem; color: #243b61; }
.las-vegas-casino-dice small { font-size: .62rem; color: #53647a; }
.las-vegas-tile { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; box-sizing: border-box; padding: 8px 10px; border: 1px solid #ddc98f; border-radius: 11px; background: linear-gradient(110deg,#fbf3dc,#fffefa 72%); color: #53647a; text-align: left; }
.las-vegas-tile-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border: 1px solid #d6bd7b; border-radius: 9px; background: #f4e7be; color: #72531b; box-shadow: inset 0 1px 0 #fff9; }
.lvr-tile-icon-svg { display: block; width: 38px; height: 38px; }
.las-vegas-tile-copy { display: grid; min-width: 0; gap: 2px; }
.las-vegas-tile-copy:not(:has(.lvr-tile-progress,.lvr-fifty-board)) { align-self: center; }
.las-vegas-tile-copy:has(.lvr-fifty-board) { flex: 1; }
.lvr-fifty-board { display: grid; gap: 5px; margin-top: 4px; }
.lvr-fifty-predict { display: flex; align-items: center; gap: 9px; line-height: 1; }
.lvr-fifty-black-dice { color: #172b4d; font-size: 25px; letter-spacing: 2px; }
.lvr-fifty-up, .lvr-fifty-down { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 22px; font-weight: 900; }
.lvr-fifty-up { background: #e1f2e9; color: #24784e; }
.lvr-fifty-down { background: #fae6e9; color: #ac3e55; }
.lvr-fifty-track { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 3px; }
.lvr-fifty-track > span { display: flex; justify-content: center; align-items: center; gap: 1px; min-height: 29px; border: 1px solid #c7d5e7; border-radius: 5px; background: #fff; color: #263d68; font-size: 11px; font-weight: 800; }
.lvr-fifty-track > .is-start { background: #315fa5; color: #fff; }
.lvr-fifty-track svg { width: 14px; height: 14px; fill: #fff0bd; stroke: #956d18; stroke-width: 2; }
.las-vegas-tile-copy strong { color: #263d68; font-size: .75rem; font-weight: 850; }
.las-vegas-tile-copy small { display: -webkit-box; overflow: hidden; color: #53647a; font-size: .68rem; line-height: 1.35; }
.las-vegas-tile[class*="lvr-tile-a"] .las-vegas-tile-icon { border-color: #d6bd7b; background: #f4e7be; color: #72531b; }
.las-vegas-tile[class*="lvr-tile-b"] .las-vegas-tile-icon { border-color: #9fb8d9; background: #e9f1fb; color: #315f9f; }
.las-vegas-tile[class*="lvr-tile-c"] .las-vegas-tile-icon { border-color: #a9cfb6; background: #e9f5ec; color: #28784c; }
.las-vegas-tile[class*="lvr-tile-d"] .las-vegas-tile-icon { border-color: #e3b89e; background: #fff0e6; color: #a6562c; }
.las-vegas-tile[class*="lvr-tile-e"] .las-vegas-tile-icon { border-color: #b4b9c4; background: #eff1f4; color: #515d6c; }
.las-vegas-tile[class*="lvr-tile-f"] .las-vegas-tile-icon { border-color: #c3aed7; background: #f2ecf8; color: #714f94; }
.las-vegas-tile[class*="lvr-tile-g"] .las-vegas-tile-icon { border-color: #d5c48e; background: #f7f1dc; color: #80681e; }
.las-vegas-tile[class*="lvr-tile-h"] .las-vegas-tile-icon { border-color: #9fcbd1; background: #e9f6f7; color: #247c88; }
.las-vegas-casino header { grid-column: 1; grid-row: 1; }
.las-vegas-casino-dice { grid-column: 2; grid-row: 1; }
.las-vegas-casino > button { grid-column: 3; grid-row: 1; }
.las-vegas-dice-tray.yahtzee-dice { grid-template-columns: repeat(8,minmax(0,1fr)); gap: 8px; min-height: 0; padding: 12px; border: 1px solid #dfe7f3; border-radius: 14px; background: #f7faff; }
.las-vegas-dice-tray > .help-text { grid-column: 1 / -1; width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }
.las-vegas-dice-tray .lvr-shared-die { width: 100%; min-width: 0; aspect-ratio: 1; min-height: 0; padding: 5px; border-radius: 12px; }
.las-vegas-dice-tray .lvr-shared-die.is-empty { color: #9aa9bd; font-size: 1.6rem; cursor: default; }
.lvr-face-choices { display: flex; flex-wrap: wrap; gap: 7px; min-height: 0; margin-top: 9px; }
.lvr-face-choice { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 4px 8px; border: 1px solid #c9d8ee; border-radius: 10px; background: #fff; color: #243b61; font-weight: 800; cursor: pointer; }
.lvr-face-choice img { width: 26px; height: 26px; object-fit: contain; }
.lvr-face-choice small { color: #71809a; }
.lvr-face-choice.is-selected { border-color: #315fa5; background: #dceaff; box-shadow: 0 0 0 2px #315fa526; }
.lvr-face-choice:disabled { opacity: .5; cursor: not-allowed; }
.las-vegas-casino button, .las-vegas-actions button { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: #315f9f; color: white; font-weight: 800; cursor: pointer; }
.las-vegas-casino button:disabled, .las-vegas-actions button:disabled { opacity: .45; cursor: not-allowed; }
.las-vegas-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 620px) { .las-vegas-dice-tray.yahtzee-dice { grid-template-columns: repeat(4,minmax(0,1fr)); } }
.las-vegas-rules-body { max-height: min(70vh,680px); overflow: auto; line-height: 1.65; }
.las-vegas-rules-body h3 { margin: 18px 0 8px; color: #243b61; }
.las-vegas-tile-rules { display: grid; gap: 7px; padding-left: 24px; }
.lvr-tile-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.lvr-tile-card { min-width: 0; padding: 10px; border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; color: #344663; }
.lvr-tile-card > strong { display: block; margin-top: 8px; color: #183b67; }
.lvr-tile-card p { margin: 4px 0 0; font-size: .84rem; line-height: 1.5; }
.lvr-tile-art { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 6px 10px; border: 2px solid #bd9950; border-radius: 9px; background: linear-gradient(135deg,#e4c578,#fff3cf 52%,#c99d4e); color: #513b12; }
.lvr-tile-art span { font-size: .82rem; font-weight: 950; letter-spacing: .08em; }
.lvr-tile-art i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: #fff; font-size: 1.15rem; font-style: normal; box-shadow: 0 1px 4px #392a1729; }
.lvr-tile-art-b { border-color: #5379ad; background: linear-gradient(135deg,#5d82b6,#eaf3ff 52%,#5279ad); color: #193a65; }
.lvr-tile-art-c { border-color: #528667; background: linear-gradient(135deg,#5d9b78,#e8f8ee 52%,#4c8b68); color: #17492e; }
.lvr-tile-art-d { border-color: #9b6442; background: linear-gradient(135deg,#bd7950,#fff0e3 52%,#995c39); color: #633519; }
.lvr-tile-art-e { border-color: #747b8a; background: linear-gradient(135deg,#9298a5,#f0f1f4 52%,#767d8b); color: #303743; }
.lvr-tile-art-f { border-color: #755699; background: linear-gradient(135deg,#9270b6,#f4eefe 52%,#755699); color: #422b62; }
.lvr-tile-art-g { border-color: #9b8350; background: linear-gradient(135deg,#d0b56c,#fff9df 52%,#9b8350); color: #5f4b1d; }
.lvr-tile-art-h { border-color: #398c9b; background: linear-gradient(135deg,#60b4c1,#e7fbff 52%,#398c9b); color: #15515a; }
@media (max-width: 620px) { .lvr-tile-catalog { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 620px) { .las-vegas-casino { grid-template-columns: minmax(74px,.5fr) minmax(0,1fr) minmax(82px,auto); gap: 7px; padding: 8px; } .las-vegas-casino header strong { font-size: .88rem; } .las-vegas-casino header span { font-size: .67rem; } .las-vegas-casino button { min-height: 36px; padding: 6px 8px; font-size: .72rem; } .las-vegas-round-status { align-items: flex-start; flex-direction: column; } .las-vegas-board-heading { align-items: flex-start; flex-direction: column; } }
@media (max-width: 380px) { .las-vegas-casino { grid-template-columns: 66px minmax(0,1fr) 74px; gap: 5px; padding: 7px 6px; } .las-vegas-casino header span { font-size: .62rem; } .las-vegas-casino button { padding: 5px 4px; font-size: .65rem; } }

/* Royale v2: one selection meaning, readable effects, persistent placement hint. */
#lasVegasRoyaleScreen { width: 100%; max-width: 100%; margin: 0; box-sizing: border-box; }
.las-vegas-casino.is-selected { outline: 2px solid #315fa5; outline-offset: 1px; }
.las-vegas-casino.is-closed { background: #f2f4f7; }
.las-vegas-casino > button[data-lvr-place] { min-height: 44px; grid-column: 3; grid-row: 1; }
.las-vegas-casino > button.las-vegas-tile { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: flex-start; width: 100%; min-width: 0; text-align: left; color: #53647a; background: #f6f8fc; border: 1px solid #dce4ef; padding: 12px; cursor: pointer; }
.las-vegas-casino > button.las-vegas-tile:hover { background: #edf2fa; border-color: #afc3e0; }
.las-vegas-casino > button.las-vegas-tile:focus-visible { outline: 2px solid #315fa5; outline-offset: 2px; }
.las-vegas-tile-copy small { display: block; overflow: visible; font-size: .76rem; line-height: 1.5; font-weight: 400; }
.las-vegas-tile-copy strong { font-size: .85rem; }
.lvr-tile-progress { display: block; margin-top: 4px; color: #315fa5; font-size: .72rem; font-weight: 700; overflow-wrap: anywhere; }
.las-vegas-casino-dice { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.lvr-pile { display: flex; align-items: center; }
.lvr-pile strong { font-size: .75rem; color: #263d68; }
.lvr-pile small { font-size: .68rem; }
.lvr-mini-dice { display: flex; flex-wrap: wrap; gap: 3px; }
.lvr-mini-dice img { width: 25px; height: 25px; flex: 0 0 25px; }
.lvr-mini-dice img.is-biggy { width: 25px; height: 25px; outline: 2px solid #c69b38; border-radius: 5px; }
.lvr-player-1 { --lvr-color: #315fa5; }
.lvr-player-0 { --lvr-color: #8b95a5; }
.lvr-player-2 { --lvr-color: #b94d62; }
.lvr-player-3 { --lvr-color: #25836b; }
.lvr-player-4 { --lvr-color: #8252ae; }
.lvr-player-5 { --lvr-color: #bd711b; }
#lasVegasRoyalePlayers .omok-player { border-left: 4px solid var(--lvr-color); }
.las-vegas-dice-tray .lvr-shared-die { position: relative; border: 0; background: transparent; box-shadow: none; }
.las-vegas-dice-tray .lvr-shared-die.is-held { border: 0; background: transparent; box-shadow: none; }
.las-vegas-dice-tray .lvr-shared-die.is-held img { filter: drop-shadow(0 3px 3px #172b4d40); }
.las-vegas-dice-tray .lvr-shared-die:focus-visible { outline: none; }
.las-vegas-dice-tray .lvr-shared-die:focus-visible img { outline: 2px dashed var(--lvr-color,#7a8495); outline-offset: 3px; border-radius: 16%; }
.lvr-shared-die > small { position: absolute; bottom: -3px; left: 0; right: 0; border-radius: 4px; font-size: 10px; background: #fff3c3; color: #71551a; }
.lvr-turn-badge { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 48px; margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; background: var(--lvr-color,#53647a); color: #fff; font-size: 1rem; font-weight: 800; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.lvr-selection { position: sticky; top: 8px; z-index: 5; padding: 11px 14px; background: #e9f1ff; border: 1px solid #abc5ea; border-radius: 12px; color: #264f8b; font-weight: 700; box-shadow: 0 3px 12px #12304b12; }
.lvr-event-panel, .lvr-results { background: #fff; padding: 14px; border: 1px solid #d2def0; border-radius: 14px; }
.lvr-event-panel summary, .lvr-results summary, .las-vegas-rules-body summary { cursor: pointer; color: #315fa5; font-weight: 700; }
.lvr-event-panel li, .lvr-results li { margin: 7px 0; font-size: .85rem; line-height: 1.5; }
.lvr-results h3 { margin-top: 0; }
.lvr-final-ranking li { display: grid; gap: 4px; padding: 9px; background: #f5f8ff; border-radius: 8px; }
#lasVegasRoyaleEffectModal.is-round-result { place-items: center; padding: 16px; box-sizing: border-box; }
#lasVegasRoyaleEffectModal.is-round-result .modal-content { width: min(100%,480px); box-sizing: border-box; border-radius: 20px; }
.lvr-round-earnings { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.lvr-round-earnings li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px; background: #f5f8fc; border-left: 4px solid var(--lvr-color,#7a8495); border-radius: 9px; }
.lvr-round-earnings strong { min-width: 0; overflow-wrap: anywhere; color: #263d68; }
.lvr-round-earnings span { flex-shrink: 0; font-weight: 800; color: var(--lvr-color,#53647a); }
.lvr-round-result-confirm { width: 100%; margin-top: 8px; }
.lvr-lucky-participants { display: grid; gap: 8px; margin-bottom: 12px; }
.lvr-lucky-participants p { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px; border: 1px solid #dce4ef; border-radius: 10px; background: #f5f8fc; }
.lvr-lucky-participants span { color: #53647a; font-size: .8rem; }
.lvr-lucky-participants strong { color: #263d68; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.lvr-block-count { display: grid; gap: 8px; color: #263d68; font-weight: 700; }
.lvr-block-count select { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #c7d5e7; border-radius: 10px; background: #fff; color: #263d68; font: inherit; }
.lvr-block-casinos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.lvr-block-casinos button { min-width: 0; min-height: 44px; padding: 10px 4px; }
.lvr-block-skip { width: 100%; margin-top: 12px; }
/* Keep the shared dice controls visible without covering the last casino/history. */
body[data-current-screen="las-vegas-royale"] #lasVegasRoyaleRoom { padding-bottom: calc(var(--lvr-dock-height, 340px) + 24px); }
body[data-current-screen="las-vegas-royale"] #lasVegasRoyaleRoom > .las-vegas-dice-panel { position: fixed; z-index: 12; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%,680px); box-sizing: border-box; max-height: 48dvh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; border-bottom: 0; background: #fff; box-shadow: 0 -6px 24px #172b4d24; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel .las-vegas-board-heading { flex-direction: column; align-items: flex-start; gap: 3px; margin-bottom: 6px; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel .las-vegas-board-heading small { font-size: .72rem; line-height: 1.35; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel .lvr-turn-badge { min-height: 34px; padding: 6px 12px; margin-bottom: 6px; font-size: .88rem; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel .las-vegas-dice-tray { grid-template-columns: repeat(8,minmax(0,1fr)); gap: 3px; padding: 5px; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel .lvr-shared-die { padding: 3px; max-height: 58px; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel .lvr-face-choices { gap: 4px; margin-top: 6px; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel .lvr-face-choice { min-height: 34px; padding: 4px 6px; font-size: .75rem; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel .las-vegas-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 6px; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel .las-vegas-actions button { min-height: 40px; padding: 6px; font-size: .78rem; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel > p { margin: 6px 0 0; font-size: .7rem; }
#lasVegasRoyaleRoom > .las-vegas-dice-panel > p:empty { display: none; }
.lvr-effect-content .modal-header, #lasVegasRoyaleRulesModal .modal-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.lvr-effect-content .modal-header h2, #lasVegasRoyaleRulesModal .modal-header h2 { flex: 1; min-width: 0; margin: 0; text-align: left; }
.lvr-effect-content .modal-header .close-button, #lasVegasRoyaleRulesModal .modal-header .close-button { width: 40px; height: 40px; min-width: 40px; flex: 0 0 40px; padding: 0; }
.lvr-effect-content .las-vegas-rules-body { text-align: left; }
#lasVegasRoyaleRulesModal .las-vegas-rules-body { text-align: left; }
.lvr-effect-content, #lasVegasRoyaleRulesModal .notice-content { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; overflow: hidden; }
.lvr-effect-content .modal-header, #lasVegasRoyaleRulesModal .modal-header { flex: 0 0 auto; }
.lvr-effect-content .las-vegas-rules-body, #lasVegasRoyaleRulesModal .las-vegas-rules-body { flex: 1 1 auto; min-height: 0; max-height: none; width: 100%; margin: 0; overflow-y: auto; overscroll-behavior: contain; }
.lvr-effect-options { display: grid; gap: 8px; }
.lvr-effect-options button { min-height: 44px; text-align: left; white-space: normal; }
.lvr-effect-art { width: 80px; color: #85651d; }
.lvr-tile-art .lvr-tile-icon-svg { width: 56px; height: 56px; }
.las-vegas-actions > button { min-height: 44px; }
.lvr-face-choice { min-height: 44px; }
.las-vegas-rules-body ol { padding-left: 22px; }
.las-vegas-rules-body li { margin-bottom: 9px; }
@media (max-width: 620px) {
  .las-vegas-casino { grid-template-columns: minmax(75px,.6fr) minmax(0,1fr) 82px; }
  .las-vegas-dice-panel { padding: 12px; }
  .las-vegas-dice-tray.yahtzee-dice { padding: 10px; gap: 7px; }
  .las-vegas-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .las-vegas-actions > button { width: 100%; font-size: .8rem; padding: 8px; }
  .las-vegas-actions > #lasVegasRoyaleLocalExit { background: #e8eef8; color: #315fa5; }
}
@media (max-width: 380px) {
  .las-vegas-casino { grid-template-columns: minmax(65px,.6fr) minmax(0,1fr) 74px; }
  .las-vegas-tile-copy small { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; }
}

/* Character-inspired Hold'em seat backgrounds */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_shinchan_nameplate"],.money-skin-card-preview.is-holdem-shinchan .money-skin-preview-seat) { border:2px solid #f3b561; background-color:#401d1b; background-image:linear-gradient(115deg,#321815aa,#32181555),url("./assets/holdem-seat-themes/shinchan-inspired-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff8ed; box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-shinchan { background:linear-gradient(145deg,#702c28,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_doraemon_nameplate"],.money-skin-card-preview.is-holdem-doraemon .money-skin-preview-seat) { border:2px solid #73c8ff; background-color:#102b63; background-image:linear-gradient(115deg,#081c49aa,#081c4955),url("./assets/holdem-seat-themes/doraemon-inspired-right.png?v=20261029a"); background-position:center; background-size:cover; color:#f4f9ff; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-doraemon { background:linear-gradient(145deg,#1c4b91,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_taekwondo_robot_nameplate"],.money-skin-card-preview.is-holdem-taekwondo-robot .money-skin-preview-seat) { border:2px solid #e3bd6e; background-color:#172b48; background-image:linear-gradient(115deg,#101d36bb,#101d3655),url("./assets/holdem-seat-themes/taekwondo-robot-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff8e9; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-taekwondo-robot { background:linear-gradient(145deg,#304c70,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_black_rubber_shoes_nameplate"],.money-skin-card-preview.is-holdem-black-rubber-shoes .money-skin-preview-seat) { border:2px solid #c9a976; background-color:#30251b; background-image:linear-gradient(115deg,#21180faa,#21180f66),url("./assets/holdem-seat-themes/black-rubber-shoes-inspired-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff8e9; box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-black-rubber-shoes { background:linear-gradient(145deg,#51402f,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_shinchan_nameplate"],:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_doraemon_nameplate"],:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_taekwondo_robot_nameplate"],:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_black_rubber_shoes_nameplate"]) .holdem-seat-top strong { color:#fff; text-shadow:0 1px 3px #000; }
@media (max-width:591px) {
  :is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_shinchan_nameplate"],:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_doraemon_nameplate"],:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_taekwondo_robot_nameplate"],:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_black_rubber_shoes_nameplate"]) { background-size:100% 100%; }
}
.money-skin-card:is(.is-holdem-shinchan,.is-holdem-doraemon,.is-holdem-taekwondo-robot,.is-holdem-black-rubber-shoes) .money-skin-preview-seat { background-size:cover; }
.money-skin-card:is(.is-holdem-shinchan,.is-holdem-doraemon,.is-holdem-taekwondo-robot,.is-holdem-black-rubber-shoes) .money-skin-preview-seat small { font-family:"Trebuchet MS","Malgun Gothic",sans-serif; font-size:.68rem; font-weight:900; text-shadow:0 1px 3px #000; }
.money-skin-card:is(.is-holdem-shinchan,.is-holdem-doraemon,.is-holdem-taekwondo-robot,.is-holdem-black-rubber-shoes) .money-skin-preview-seat strong { font-family:"Trebuchet MS","Malgun Gothic",sans-serif; font-size:1rem; font-weight:900; text-shadow:0 1px 4px #000; }
.money-skin-card:is(.is-holdem-shinchan,.is-holdem-doraemon,.is-holdem-taekwondo-robot,.is-holdem-black-rubber-shoes) .money-skin-preview-seat em { font-size:.68rem; font-weight:800; text-shadow:0 1px 3px #000; }
.money-skin-card:is(.is-holdem-shinchan,.is-holdem-doraemon,.is-holdem-taekwondo-robot,.is-holdem-black-rubber-shoes) .money-skin-preview-seat b { padding:3px 12px; font-size:.7rem; font-weight:900; box-shadow:0 1px 4px #0006; }
.money-skin-card.is-holdem-shinchan .money-skin-preview-seat b { border-color:#ffd07a; background:linear-gradient(145deg,#c85232,#8d2b26); color:#fff3d6; }
.money-skin-card.is-holdem-doraemon .money-skin-preview-seat b { border-color:#8ee7ff; background:linear-gradient(145deg,#187fc0,#14518f); color:#effbff; }
.money-skin-card.is-holdem-taekwondo-robot .money-skin-preview-seat b { border-color:#f0ce7f; background:linear-gradient(145deg,#bd3d32,#842a31); color:#fff4db; }
.money-skin-card.is-holdem-taekwondo-robot .money-skin-preview-seat b.is-ready { border-color:#f0ce7f; background:linear-gradient(145deg,#315579,#1c3452); color:#fff4db; }
.money-skin-card.is-holdem-black-rubber-shoes .money-skin-preview-seat b { border-color:#e5c78e; background:linear-gradient(145deg,#78603a,#493622); color:#fff4dc; }

/* Original character-inspired Hold'em nameplate skins */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_iron_sentinel_nameplate"],.money-skin-card-preview.is-holdem-iron-sentinel .money-skin-preview-seat) { border:2px solid #e8ae63; background-color:#351d20; background-image:linear-gradient(115deg,#301820bb,#141a28aa),url("./assets/holdem-seat-themes/iron-sentinel.jpg?v=20261013b"); background-position:center; background-size:cover; color:#fff4df; box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-iron-sentinel { background:linear-gradient(145deg,#733b31,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_saw_hunter_nameplate"],.money-skin-card-preview.is-holdem-saw-hunter .money-skin-preview-seat) { border:2px solid #bd665b; background-color:#28202a; background-image:linear-gradient(115deg,#281c24bb,#151a28aa),url("./assets/holdem-seat-themes/saw-hunter-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff0e8; box-shadow:inset 0 1px #ffffff44,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-saw-hunter { background:linear-gradient(145deg,#57343b,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_cloud_creature_nameplate"],.money-skin-card-preview.is-holdem-cloud-creature .money-skin-preview-seat) { border:2px solid #f2c1d2; background-color:#34283b; background-image:linear-gradient(115deg,#30243dbb,#151a28aa),url("./assets/holdem-seat-themes/cloud-creature-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff5f7; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-cloud-creature { background:linear-gradient(145deg,#65485c,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_ribbon_kitten_nameplate"],.money-skin-card-preview.is-holdem-ribbon-kitten .money-skin-preview-seat) { border:2px solid #f3a9ba; background-color:#352332; background-image:linear-gradient(115deg,#321f2ebb,#151a28aa),url("./assets/holdem-seat-themes/ribbon-kitten-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff3f5; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-ribbon-kitten { background:linear-gradient(145deg,#684051,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_blue_robot_nameplate"],.money-skin-card-preview.is-holdem-blue-robot .money-skin-preview-seat) { border:2px solid #76d8ff; background-color:#172a49; background-image:linear-gradient(115deg,#142749bb,#111b32aa),url("./assets/holdem-seat-themes/blue-robot-right.png?v=20261029a"); background-position:center; background-size:cover; color:#effaff; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-blue-robot { background:linear-gradient(145deg,#28517e,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_spark_glider_nameplate"],.money-skin-card-preview.is-holdem-spark-glider .money-skin-preview-seat) { border:2px solid #e8d47a; background-color:#29353b; background-image:linear-gradient(115deg,#302d22bb,#13202aaa),url("./assets/holdem-seat-themes/spark-glider.jpg?v=20261013b"); background-position:center; background-size:cover; color:#fff8df; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-spark-glider { background:linear-gradient(145deg,#667047,#101722); }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_orange_dino_nameplate"],.money-skin-card-preview.is-holdem-orange-dino .money-skin-preview-seat) { border:2px solid #efb26f; background-color:#29302d; background-image:linear-gradient(115deg,#312720bb,#13202aaa),url("./assets/holdem-seat-themes/orange-dino-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff4e6; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-orange-dino { background:linear-gradient(145deg,#714b36,#101722); }
.money-skin-card.is-holdem-iron-sentinel .money-skin-preview-seat b { border-color:#f1c47d; background:linear-gradient(145deg,#a74c35,#60302d); color:#fff4df; }
.money-skin-card.is-holdem-saw-hunter .money-skin-preview-seat b { border-color:#dfa397; background:linear-gradient(145deg,#63383d,#392a35); color:#fff0e8; }
.money-skin-card.is-holdem-cloud-creature .money-skin-preview-seat b { border-color:#f4cedd; background:linear-gradient(145deg,#80556e,#50364f); color:#fff5f7; }
.money-skin-card.is-holdem-ribbon-kitten .money-skin-preview-seat b { border-color:#ffd1d8; background:linear-gradient(145deg,#9b4d67,#63364d); color:#fff3f5; }
.money-skin-card.is-holdem-blue-robot .money-skin-preview-seat b { border-color:#9ce8ff; background:linear-gradient(145deg,#247bb4,#194874); color:#effaff; }
.money-skin-card.is-holdem-spark-glider .money-skin-preview-seat b { border-color:#f5e9a8; background:linear-gradient(145deg,#7d783d,#4c583b); color:#fff8df; }
.money-skin-card.is-holdem-orange-dino .money-skin-preview-seat b { border-color:#f6d09a; background:linear-gradient(145deg,#a75b32,#66412e); color:#fff4e6; }

/* Guruguru North Old Man Hold'em nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_guru_guru_north_old_man_nameplate"],.money-skin-card-preview.is-holdem-guru-guru-north-old-man .money-skin-preview-seat) { border:2px solid #e9c875; background-color:#55442c; background-image:linear-gradient(115deg,#3c321bbb,#34271955),url("./assets/holdem-seat-themes/guru-guru-north-old-man-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff8e9; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-guru-guru-north-old-man { background:linear-gradient(145deg,#80633b,#101722); }
.money-skin-card.is-holdem-guru-guru-north-old-man .money-skin-preview-seat b { border-color:#f2daa0; background:linear-gradient(145deg,#58743d,#344c31); color:#fff8e9; }

/* Pikachu Hold'em nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_pikachu_nameplate"],.money-skin-card-preview.is-holdem-pikachu .money-skin-preview-seat) { border:2px solid #f2c75c; background-color:#61451f; background-image:linear-gradient(0deg,#0c152b99,#0c152b40),linear-gradient(115deg,#42301388,#17202d99),url("./assets/holdem-seat-themes/pikachu.png?v=20261014a"); background-position:center; background-size:cover; color:#fff8e6; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-pikachu { background:linear-gradient(145deg,#9a752e,#101722); }
.money-skin-card.is-holdem-pikachu .money-skin-preview-seat b { border-color:#ffdc74; background:linear-gradient(145deg,#9c6828,#70411f); color:#fff8e6; }

/* Rilakkuma and Pokute shared player nameplates */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_rilakkuma_nameplate"],.money-skin-card-preview.is-holdem-rilakkuma .money-skin-preview-seat) { border:2px solid #f5c76a; background-color:#6c4327; background-image:linear-gradient(115deg,#3d2414aa,#3d241455),url("./assets/holdem-seat-themes/rilakkuma-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff8e8; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-rilakkuma { background:linear-gradient(145deg,#a86b32,#101722); }
.money-skin-card.is-holdem-rilakkuma .money-skin-preview-seat b { border-color:#ffdc8a; background:linear-gradient(145deg,#a66a2d,#6f421f); color:#fff8e8; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_pokute_nameplate"],.money-skin-card-preview.is-holdem-pokute .money-skin-preview-seat) { border:2px solid #ffb4c2; background-color:#713748; background-image:linear-gradient(115deg,#492238aa,#49223855),url("./assets/holdem-seat-themes/pokute-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff7f8; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-pokute { background:linear-gradient(145deg,#a7546e,#101722); }
.money-skin-card.is-holdem-pokute .money-skin-preview-seat b { border-color:#ffd0d9; background:linear-gradient(145deg,#a85470,#71384e); color:#fff7f8; }
[data-shared-player-nameplate="holdem_rilakkuma_nameplate"] { border-color:#f5c76a; --shared-nameplate-color:#6c4327; }
[data-shared-player-nameplate="holdem_pokute_nameplate"] { border-color:#ffb4c2; --shared-nameplate-color:#713748; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_rilakkuma_nameplate"],:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_pokute_nameplate"]) .holdem-seat-top strong { color:#fff; text-shadow:0 1px 3px #000; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_rilakkuma_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #ffdc8a; background:linear-gradient(145deg,#a66a2d,#6f421f); color:#fff8e8!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_pokute_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #ffd0d9; background:linear-gradient(145deg,#a85470,#71384e); color:#fff7f8!important; }

/* Hamo shared player nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_hamo_nameplate"],.money-skin-card-preview.is-holdem-hamo .money-skin-preview-seat) { border:2px solid #9dd6ff; background-color:#12386b; background-image:linear-gradient(100deg,#071a36a8 0%,#071a3655 50%,#071a3610 100%),url("./assets/holdem-seat-themes/hamo-moonwake.png?v=20261029c"); background-position:right center; background-size:cover; color:#f2f8ff; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-hamo { background:linear-gradient(145deg,#285a9a,#101722); }
.money-skin-card.is-holdem-hamo .money-skin-preview-seat b { border-color:#b6e1ff; background:linear-gradient(145deg,#2d73b4,#194777); color:#f2f8ff; }
[data-shared-player-nameplate="holdem_hamo_nameplate"] { border-color:#9dd6ff; --shared-nameplate-color:#12386b; --shared-nameplate-image:linear-gradient(100deg,#071a36a8 0%,#071a3655 50%,#071a3610 100%),url("./assets/holdem-seat-themes/hamo-moonwake.png?v=20261029c")!important; background-position:right center!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_hamo_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #b6e1ff; background:linear-gradient(145deg,#2d73b4,#194777); color:#f2f8ff!important; }

/* Elizabeth-inspired comedic player nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_elizabeth_nameplate"],.money-skin-card-preview.is-holdem-elizabeth .money-skin-preview-seat) { border:2px solid #ffc96b; background-color:#e56a24; background-image:linear-gradient(115deg,#7c3215aa,#7c321555),url("./assets/holdem-seat-themes/elizabeth-right.png?v=20261029a"); background-position:center; background-size:cover; color:#fff9e9; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-elizabeth { background:linear-gradient(145deg,#e47d35,#101722); }
.money-skin-card.is-holdem-elizabeth .money-skin-preview-seat b { border-color:#ffe09c; background:linear-gradient(145deg,#c65b24,#813619); color:#fff9e9; }
[data-shared-player-nameplate="holdem_elizabeth_nameplate"] { border-color:#ffc96b; --shared-nameplate-color:#e56a24; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_elizabeth_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #ffe09c; background:linear-gradient(145deg,#c65b24,#813619); color:#fff9e9!important; }

/* Moonlit Orange Tabby shared player nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_moonlit_orange_tabby_nameplate"],.money-skin-card-preview.is-holdem-moonlit-orange-tabby .money-skin-preview-seat) { border:2px solid #9ccae7; background-color:#0b2140; background-image:linear-gradient(100deg,#081b38ad 0%,#081b3855 55%,#081b3810 100%),url("./assets/holdem-seat-themes/moonlit-orange-tabby.png?v=20261016a"); background-position:center; background-size:cover; color:#f1f9ff; box-shadow:inset 0 1px #ffffff66,0 6px 14px #0008; }
.money-skin-card-preview.is-holdem-moonlit-orange-tabby { background:linear-gradient(145deg,#204f7f,#101722); }
.money-skin-card.is-holdem-moonlit-orange-tabby .money-skin-preview-seat b { border-color:#b9daf2; background:linear-gradient(145deg,#2a638f,#173b69); color:#f1f9ff; }
[data-shared-player-nameplate="holdem_moonlit_orange_tabby_nameplate"] { border-color:#9ccae7; --shared-nameplate-color:#0b2140; }
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_moonlit_orange_tabby_nameplate"] .holdem-seat-bet.is-ready { border:1px solid #b9daf2; background:linear-gradient(145deg,#2a638f,#173b69); color:#f1f9ff!important; }

/* Sunny Pomeranian shared player nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_sunny_pomeranian_nameplate"],.money-skin-card-preview.is-holdem-sunny-pomeranian .money-skin-preview-seat) { border:2px solid #f4ca81; background-color:#392322; background-image:linear-gradient(100deg,#28162291 0%,#28162244 55%,#28162212 100%),url("./assets/holdem-seat-themes/sunny-pomeranian.png?v=20261016a"); background-position:center; background-size:cover; color:#fff7e8; box-shadow:inset 0 1px #ffffff66,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-sunny-pomeranian { background:linear-gradient(145deg,#ab7145,#2e1c2a); }
.money-skin-card.is-holdem-sunny-pomeranian .money-skin-preview-seat b { border-color:#ffe0a2; background:linear-gradient(145deg,#a96b37,#65402a); color:#fff9eb; }
[data-shared-player-nameplate="holdem_sunny_pomeranian_nameplate"] { border-color:#f4ca81; --shared-nameplate-color:#392322; }
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_sunny_pomeranian_nameplate"] .holdem-seat-bet.is-ready { border:1px solid #ffe0a2; background:linear-gradient(145deg,#a96b37,#65402a); color:#fff9eb!important; }

/* Black and tan Pomeranian shared player nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_black_tan_pomeranian_nameplate"],.money-skin-card-preview.is-holdem-black-tan-pomeranian .money-skin-preview-seat) { border:2px solid #e8d3aa; background-color:#302820; background-image:linear-gradient(100deg,#17151499 0%,#17151444 55%,#17151412 100%),url("./assets/holdem-seat-themes/black-tan-pomeranian.png?v=20261017c"); background-position:center; background-size:cover; color:#fff8ea; box-shadow:inset 0 1px #ffffff66,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-black-tan-pomeranian { background:linear-gradient(145deg,#8c7256,#25232a); }
.money-skin-card.is-holdem-black-tan-pomeranian .money-skin-preview-seat b { border-color:#f1dfbb; background:linear-gradient(145deg,#534333,#2c2520); color:#fff8ea; }
[data-shared-player-nameplate="holdem_black_tan_pomeranian_nameplate"] { border-color:#e8d3aa; --shared-nameplate-color:#302820; --shared-nameplate-image:linear-gradient(100deg,#17151499 0%,#17151444 55%,#17151412 100%),url("./assets/holdem-seat-themes/black-tan-pomeranian.png?v=20261017c")!important; }
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_black_tan_pomeranian_nameplate"] .holdem-seat-bet.is-ready { border:1px solid #f1dfbb; background:linear-gradient(145deg,#534333,#2c2520); color:#fff8ea!important; }

/* Craft Hans chicken shared player nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_craft_hans_chicken_nameplate"],.money-skin-card-preview.is-holdem-craft-hans-chicken .money-skin-preview-seat) { border:2px solid #e4bd78; background-color:#382416; background-image:linear-gradient(115deg,#1b120baa,#1b120b44),url("./assets/holdem-seat-themes/craft-hans-chicken.png?v=20261015b"); background-position:center; background-size:cover; color:#fff4df; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-craft-hans-chicken { background:linear-gradient(145deg,#70451f,#101722); }
.money-skin-card.is-holdem-craft-hans-chicken .money-skin-preview-seat b { border-color:#f0d69e; background:linear-gradient(145deg,#80572d,#49301c); color:#fff4df; }
[data-shared-player-nameplate="holdem_craft_hans_chicken_nameplate"] { border-color:#e4bd78; --shared-nameplate-color:#382416; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_craft_hans_chicken_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #f0d69e; background:linear-gradient(145deg,#80572d,#49301c); color:#fff4df!important; }

/* Always Watching Him shared player nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_always_watching_him_nameplate"],.money-skin-card-preview.is-always-watching-him .money-skin-preview-seat) { border:2px solid #e9bd54; background-color:#102b63; background-image:linear-gradient(115deg,#071a36aa,#071a3644),url("./assets/holdem-seat-themes/always-watching-him.png?v=20261014b"); background-position:center; background-size:100% 100%; color:#fff8e6; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-always-watching-him { background:linear-gradient(145deg,#1d4380,#101722); }
.money-skin-card.is-always-watching-him .money-skin-preview-seat b { border-color:#e9bd54; background:linear-gradient(145deg,#b27b1c,#704b17); color:#fff8e6; }

/* Size every equipped skin from the actual table, retaining the image aspect ratio. */
#holdemRoom #holdemSeats .holdem-seat[data-player-theme] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@supports (width: 1cqw) {
  #holdemRoom #holdemSeats { container: holdem-seats / size; }
  #holdemRoom .holdem-seat-anchor { width: clamp(70px,22cqw,148px); }
}
@container holdem-seats (min-width: 640px) and (min-height: 420px) {
  #holdemRoom .holdem-seat-anchor { --holdem-seat-height: 116px; }
  #holdemRoom .holdem-seat-anchor > .holdem-seat {
    grid-template-rows: 16px 14px 30px 30px;
    padding: 6px;
    border-radius: 14px;
  }
  #holdemRoom #holdemSeats .holdem-seat-top strong { font-size: .82rem; }
  #holdemRoom #holdemSeats .holdem-seat-balance { font-size: .65rem; line-height: 14px; }
  #holdemRoom #holdemSeats .holdem-seat-bet { font-size: .65rem; min-height: 30px; }
  #holdemRoom #holdemSeats .holdem-seat-bet .holdem-bet-line { line-height: 13px; }
  #holdemRoom #holdemSeats .holdem-seat-cards { min-height: 30px; }
  #holdemRoom #holdemSeats .holdem-card.is-small-card { width: 22px; max-height: 30px; }
  #holdemRoom #holdemSeats .holdem-card-back { width: 21px; height: 30px; }
}

/* Empty seats have a centered title/action, rather than the player's four rows. */
#holdemRoom #holdemSeats .holdem-seat.is-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 6px;
}
#holdemRoom #holdemSeats .holdem-seat.is-empty > :is(.holdem-seat-balance,.holdem-seat-cards,.holdem-seat-bet) { display: none; }
#holdemRoom #holdemSeats .holdem-seat.is-empty .holdem-seat-top { flex: 0 0 auto; justify-content: center; }
#holdemRoom #holdemSeats .holdem-seat.is-empty .holdem-reserve-button {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 6px 8px;
  font-size: .65rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* Left-aligned content preview for occupied Hold'em nameplates. */
#holdemRoom #holdemSeats .holdem-seat[data-player-theme]:not(.is-empty) {
  justify-items: start;
  padding-left: 12px;
  padding-right: 5px;
  text-align: left;
}
#holdemRoom #holdemSeats .holdem-seat[data-player-theme]:not(.is-empty) .holdem-seat-top,
#holdemRoom #holdemSeats .holdem-seat[data-player-theme]:not(.is-empty) .holdem-seat-balance,
#holdemRoom #holdemSeats .holdem-seat[data-player-theme]:not(.is-empty) .holdem-seat-cards,
#holdemRoom #holdemSeats .holdem-seat[data-player-theme]:not(.is-empty) .holdem-seat-bet {
  width: 100%;
  text-align: left;
}
#holdemRoom #holdemSeats .holdem-seat[data-player-theme]:not(.is-empty) .holdem-seat-top,
#holdemRoom #holdemSeats .holdem-seat[data-player-theme]:not(.is-empty) .holdem-seat-cards {
  justify-content: flex-start;
}
#holdemRoom #holdemSeats .holdem-seat[data-player-theme]:not(.is-empty) .holdem-seat-hand-label {
  text-align: left;
}
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_shinchan_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #ffd07a; background:linear-gradient(145deg,#c85232,#8d2b26); color:#fff3d6!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_doraemon_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #8ee7ff; background:linear-gradient(145deg,#187fc0,#14518f); color:#effbff!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_taekwondo_robot_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #f0ce7f; background:linear-gradient(145deg,#315579,#1c3452); color:#fff4db!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_black_rubber_shoes_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #e5c78e; background:linear-gradient(145deg,#78603a,#493622); color:#fff4dc!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_saw_hunter_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #dfa397; background:linear-gradient(145deg,#63383d,#392a35); color:#fff0e8!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_cloud_creature_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #f4cedd; background:linear-gradient(145deg,#80556e,#50364f); color:#fff5f7!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_ribbon_kitten_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #ffd1d8; background:linear-gradient(145deg,#9b4d67,#63364d); color:#fff3f5!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_blue_robot_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #9ce8ff; background:linear-gradient(145deg,#247bb4,#194874); color:#effaff!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_orange_dino_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #f6d09a; background:linear-gradient(145deg,#a75b32,#66412e); color:#fff4e6!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_guru_guru_north_old_man_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #f2daa0; background:linear-gradient(145deg,#58743d,#344c31); color:#fff8e9!important; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_pikachu_nameplate"] .holdem-seat-bet.is-ready) { border:1px solid #ffdc74; background:linear-gradient(145deg,#9c6828,#70411f); color:#fff8e6!important; }
:is(.holdem-seat[data-player-theme^="holdem_"]) .holdem-seat-bet.is-ready {
  box-sizing: border-box;
  padding: 2px 5px;
  border-radius: 5px;
  font-weight: 800;
  box-shadow: inset 0 1px #ffffff35;
}
/* Lavender White Pomeranian shared player nameplate */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_lavender_white_pomeranian_nameplate"],.money-skin-card-preview.is-holdem-lavender-white-pomeranian .money-skin-preview-seat) { border:2px solid #e3c6fa; background-color:#352442; background-image:linear-gradient(100deg,#271333aa,#27133322),url("./assets/holdem-seat-themes/lavender-white-pomeranian.png?v=20261016a"); background-position:center; background-size:cover; color:#fff7ff; box-shadow:inset 0 1px #ffffff66,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-lavender-white-pomeranian { background:linear-gradient(145deg,#8a5b9f,#2c203e); }
.money-skin-card.is-holdem-lavender-white-pomeranian .money-skin-preview-seat b,
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_lavender_white_pomeranian_nameplate"] .holdem-seat-bet.is-ready { border:1px solid #e9cafa; background:linear-gradient(145deg,#81518e,#523568); color:#fff7ff!important; }
[data-shared-player-nameplate="holdem_lavender_white_pomeranian_nameplate"] { border-color:#e3c6fa; --shared-nameplate-color:#352442; --shared-nameplate-image:linear-gradient(100deg,#271333aa,#27133322),url("./assets/holdem-seat-themes/lavender-white-pomeranian.png?v=20261016a")!important; }

/* Sunlit cat duo: shared player nameplate and store preview. */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_sunlit_cat_duo_nameplate"],.money-skin-card-preview.is-holdem-sunlit-cat-duo .money-skin-preview-seat) {
  border: 2px solid #e5bd82;
  background-color: #35291f;
  background-image: linear-gradient(100deg,#241b1255,#241b121a 55%,#241b1200),url("./assets/holdem-seat-themes/sunlit-cat-duo.webp?v=20261028a");
  background-position: right center !important;
  background-size: cover;
  color: #fff4df;
  box-shadow: inset 0 1px #fff0cd66,0 6px 14px #1e130c66;
}
.money-skin-card-preview.is-holdem-sunlit-cat-duo { background: linear-gradient(145deg,#d7ae72,#62442d); }
.money-skin-card.is-holdem-sunlit-cat-duo .money-skin-preview-seat b,
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_sunlit_cat_duo_nameplate"] .holdem-seat-bet.is-ready { border: 1px solid #e9c98e; background: linear-gradient(145deg,#805833,#50351f); color: #fff7e8 !important; }
[data-shared-player-nameplate="holdem_sunlit_cat_duo_nameplate"] {
  border-color: #e5bd82;
  --shared-nameplate-color: #35291f !important;
  --shared-nameplate-image: linear-gradient(100deg,#241b1255,#241b121a 55%,#241b1200),url("./assets/holdem-seat-themes/sunlit-cat-duo.webp?v=20261028a") !important;
  background-position: right center !important;
}

/* Shared skins cover the existing player card without changing its layout. */
[data-shared-player-nameplate] {
  --shared-nameplate-image: linear-gradient(135deg, #26364f 0%, #17263b 100%);
  --shared-nameplate-color: #17263b;
  background-image: var(--shared-nameplate-image) !important;
  background-color: var(--shared-nameplate-color) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  color: #fff6df !important;
  text-shadow: 0 1px 3px #000c;
}
[data-shared-player-nameplate] > :is(b, strong, small, span),
[data-shared-player-nameplate] > :is(b, strong, small) > span,
[data-shared-player-nameplate] .othello-player-name-row > strong {
  color: #fff6df !important;
  text-shadow: 0 1px 3px #000c;
}
[data-shared-player-nameplate="holdem_aurora_nameplate"] { border-color:#69e5cb; --shared-nameplate-color:#17464c; --shared-nameplate-image:linear-gradient(115deg,#17464caa,#17464c55),url("./assets/nameplate-backgrounds/aurora.svg"); }
[data-shared-player-nameplate="holdem_terracotta_nameplate"] { border-color:#ffb078; --shared-nameplate-color:#612f32; --shared-nameplate-image:linear-gradient(115deg,#612f32aa,#612f3255),url("./assets/nameplate-backgrounds/terracotta.svg"); }
[data-shared-player-nameplate="holdem_nebula_nameplate"] { border-color:#d8a8ff; --shared-nameplate-color:#322353; --shared-nameplate-image:linear-gradient(115deg,#322353aa,#32235355),url("./assets/nameplate-backgrounds/nebula.svg"); }
[data-shared-player-nameplate="holdem_sakura_nameplate"] { border-color:#ffb9cc; --shared-nameplate-color:#54283f; --shared-nameplate-image:linear-gradient(115deg,#54283faa,#54283f55),url("./assets/nameplate-backgrounds/sakura.svg"); }
[data-shared-player-nameplate="holdem_obsidian_nameplate"] { border-color:#becdea; --shared-nameplate-color:#161c27; --shared-nameplate-image:linear-gradient(115deg,#161c27aa,#161c2755),url("./assets/nameplate-backgrounds/obsidian.svg"); }
[data-shared-player-nameplate="holdem_tide_nameplate"] { border-color:#72e5ee; --shared-nameplate-color:#103b58; --shared-nameplate-image:linear-gradient(115deg,#103b58aa,#103b5855),url("./assets/nameplate-backgrounds/tide.svg"); }
[data-shared-player-nameplate="holdem_cyber_nameplate"] { border-color:#48ffdb; --shared-nameplate-color:#16243b; --shared-nameplate-image:linear-gradient(115deg,#16243baa,#16243b55),url("./assets/nameplate-backgrounds/cyber.svg"); }
[data-shared-player-nameplate="holdem_forest_nameplate"] { border-color:#b4db89; --shared-nameplate-color:#183d32; --shared-nameplate-image:linear-gradient(115deg,#183d32aa,#183d3255),url("./assets/nameplate-backgrounds/forest.svg"); }
[data-shared-player-nameplate="holdem_desert_nameplate"] { border-color:#ffd28b; --shared-nameplate-color:#573844; --shared-nameplate-image:linear-gradient(115deg,#573844aa,#57384455),url("./assets/nameplate-backgrounds/desert.svg"); }
[data-shared-player-nameplate="holdem_mosaic_nameplate"] { border-color:#f0cc82; --shared-nameplate-color:#273954; --shared-nameplate-image:linear-gradient(115deg,#273954aa,#27395455),url("./assets/nameplate-backgrounds/mosaic.svg"); }
[data-shared-player-nameplate="royal_gold_nameplate"] { border-color:#e9c96f; --shared-nameplate-image:linear-gradient(135deg,#6b4d17,#30220d 55%,#92712b); }
[data-shared-player-nameplate="ocean_sapphire_nameplate"] { border-color:#69c9e9; --shared-nameplate-image:linear-gradient(135deg,#185478,#102d4a 55%,#26718d); }
[data-shared-player-nameplate="jade_bamboo_nameplate"] { border-color:#76d6a4; --shared-nameplate-image:linear-gradient(135deg,#17654c,#0c352d 55%,#38805a); }
[data-shared-player-nameplate="moonlight_amethyst_nameplate"] { border-color:#c49afb; --shared-nameplate-image:linear-gradient(135deg,#574078,#2a2149 55%,#805e9c); }
[data-shared-player-nameplate="glacial_crystal_nameplate"] { border-color:#b9ecff; --shared-nameplate-image:linear-gradient(135deg,#3f809c,#244866 55%,#73b9d4); }
[data-shared-player-nameplate="crimson_ruby_nameplate"] { border-color:#ff9c9c; --shared-nameplate-image:linear-gradient(135deg,#8e293e,#401e32 55%,#bc4854); }

/* Keep both readiness states legible, including over equipped nameplate artwork. */
[data-room-readiness="waiting"] { opacity: 1; transition: opacity .18s ease; }
[data-room-readiness="ready"] { opacity: 1; transition: opacity .18s ease; }
body .game-ready-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto !important;
  max-width: 100%;
  padding: 3px 8px !important;
  border: 1px solid #ffffff55 !important;
  border-radius: 6px !important;
  background: #616975 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-shadow: none !important;
  white-space: nowrap;
  vertical-align: middle;
  box-shadow: 0 1px 3px #0003 !important;
}
body .game-ready-badge.is-ready { background: #15803d !important; }

/* Retro comic character shared player nameplate. */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_retro_worried_character_nameplate"],.money-skin-card-preview.is-holdem-retro-worried-character .money-skin-preview-seat) { border:2px solid #f0d7a3; background-color:#102b3e; background-image:linear-gradient(100deg,#06162599,#06162522),url("./assets/holdem-seat-themes/handdrawn-worried-character-retro-comic.png?v=20261018a"); background-position:right center!important; background-size:cover; color:#fff8e7; box-shadow:inset 0 1px #ffffff55,0 6px 14px #0007; }
.money-skin-card-preview.is-holdem-retro-worried-character { background:linear-gradient(145deg,#236077,#102030); }
.money-skin-card.is-holdem-retro-worried-character .money-skin-preview-seat b,
:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_retro_worried_character_nameplate"] .holdem-seat-bet.is-ready { border:1px solid #ffb49c; background:linear-gradient(145deg,#a74e40,#63342f); color:#fff8e7!important; }
[data-shared-player-nameplate="holdem_retro_worried_character_nameplate"] { border-color:#f0d7a3; --shared-nameplate-color:#102b3e; --shared-nameplate-image:linear-gradient(100deg,#06162599,#06162522),url("./assets/holdem-seat-themes/handdrawn-worried-character-retro-comic.png?v=20261018a")!important; background-position:right center!important; }

/* Align illustrated character and animal nameplate art to the right. */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_shinchan_nameplate"],.money-skin-card-preview.is-holdem-shinchan .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_doraemon_nameplate"],.money-skin-card-preview.is-holdem-doraemon .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_taekwondo_robot_nameplate"],.money-skin-card-preview.is-holdem-taekwondo-robot .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_black_rubber_shoes_nameplate"],.money-skin-card-preview.is-holdem-black-rubber-shoes .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_iron_sentinel_nameplate"],.money-skin-card-preview.is-holdem-iron-sentinel .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_saw_hunter_nameplate"],.money-skin-card-preview.is-holdem-saw-hunter .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_cloud_creature_nameplate"],.money-skin-card-preview.is-holdem-cloud-creature .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_ribbon_kitten_nameplate"],.money-skin-card-preview.is-holdem-ribbon-kitten .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_blue_robot_nameplate"],.money-skin-card-preview.is-holdem-blue-robot .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_spark_glider_nameplate"],.money-skin-card-preview.is-holdem-spark-glider .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_orange_dino_nameplate"],.money-skin-card-preview.is-holdem-orange-dino .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_guru_guru_north_old_man_nameplate"],.money-skin-card-preview.is-holdem-guru-guru-north-old-man .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_pikachu_nameplate"],.money-skin-card-preview.is-holdem-pikachu .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_rilakkuma_nameplate"],.money-skin-card-preview.is-holdem-rilakkuma .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_pokute_nameplate"],.money-skin-card-preview.is-holdem-pokute .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_hamo_nameplate"],.money-skin-card-preview.is-holdem-hamo .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_elizabeth_nameplate"],.money-skin-card-preview.is-holdem-elizabeth .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_moonlit_orange_tabby_nameplate"],.money-skin-card-preview.is-holdem-moonlit-orange-tabby .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_sunny_pomeranian_nameplate"],.money-skin-card-preview.is-holdem-sunny-pomeranian .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_black_tan_pomeranian_nameplate"],.money-skin-card-preview.is-holdem-black-tan-pomeranian .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_craft_hans_chicken_nameplate"],.money-skin-card-preview.is-holdem-craft-hans-chicken .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_always_watching_him_nameplate"],.money-skin-card-preview.is-always-watching-him .money-skin-preview-seat),
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_lavender_white_pomeranian_nameplate"],.money-skin-card-preview.is-holdem-lavender-white-pomeranian .money-skin-preview-seat) {
  background-position: right center !important;
}
[data-shared-player-nameplate="holdem_shinchan_nameplate"],
[data-shared-player-nameplate="holdem_doraemon_nameplate"],
[data-shared-player-nameplate="holdem_taekwondo_robot_nameplate"],
[data-shared-player-nameplate="holdem_black_rubber_shoes_nameplate"],
[data-shared-player-nameplate="holdem_iron_sentinel_nameplate"],
[data-shared-player-nameplate="holdem_saw_hunter_nameplate"],
[data-shared-player-nameplate="holdem_cloud_creature_nameplate"],
[data-shared-player-nameplate="holdem_ribbon_kitten_nameplate"],
[data-shared-player-nameplate="holdem_blue_robot_nameplate"],
[data-shared-player-nameplate="holdem_spark_glider_nameplate"],
[data-shared-player-nameplate="holdem_orange_dino_nameplate"],
[data-shared-player-nameplate="holdem_guru_guru_north_old_man_nameplate"],
[data-shared-player-nameplate="holdem_pikachu_nameplate"],
[data-shared-player-nameplate="holdem_rilakkuma_nameplate"],
[data-shared-player-nameplate="holdem_pokute_nameplate"],
[data-shared-player-nameplate="holdem_hamo_nameplate"],
[data-shared-player-nameplate="holdem_elizabeth_nameplate"],
[data-shared-player-nameplate="holdem_moonlit_orange_tabby_nameplate"],
[data-shared-player-nameplate="holdem_sunny_pomeranian_nameplate"],
[data-shared-player-nameplate="holdem_black_tan_pomeranian_nameplate"],
[data-shared-player-nameplate="holdem_craft_hans_chicken_nameplate"],
[data-shared-player-nameplate="holdem_always_watching_him_nameplate"],
[data-shared-player-nameplate="holdem_lavender_white_pomeranian_nameplate"] {
  background-position: right center !important;
}
/* Preserve the original Pikachu art in a larger right-side window. */
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_pikachu_nameplate"],.money-skin-card-preview.is-holdem-pikachu .money-skin-preview-seat,[data-shared-player-nameplate="holdem_pikachu_nameplate"]) {
  isolation:isolate;
  background-image:url("./assets/holdem-seat-themes/pikachu.png?v=20261029-layout")!important;
  background-color:#c78b36!important;
  background-size:350% auto!important; background-position:left center!important; background-repeat:no-repeat!important;
}
[data-shared-player-nameplate="holdem_pikachu_nameplate"]:not(.holdem-seat):not(.sutda-seat) { position:relative; }
:is(:is(.holdem-seat,.sutda-seat)[data-player-theme="holdem_pikachu_nameplate"],.money-skin-card-preview.is-holdem-pikachu .money-skin-preview-seat,[data-shared-player-nameplate="holdem_pikachu_nameplate"])::before {
  content:""; position:absolute; z-index:-1; inset:0 0 0 42%; border:0; border-radius:inherit; pointer-events:none;
  background-image:url("./assets/holdem-seat-themes/pikachu.png?v=20261029-layout");
  background-size:auto 108%; background-position:53% center; background-repeat:no-repeat;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 20%); mask-image:linear-gradient(90deg,transparent,#000 20%);
}
.money-skin-card-preview.is-holdem-pikachu { background:linear-gradient(135deg,#a96b27,#edbd62); }
#coffeeRushScreen { --coffee-ink: #33251a; --coffee-cream: #f6ecda; --coffee-green: #547044; --coffee-caramel: #a46a35; }
#coffeeRushEndTurnModal .coffee-rush-confirm-content .modal-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#coffeeRushEndTurnModal .coffee-rush-confirm-content .modal-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; text-align: left; }
#coffeeRushEndTurnModal .coffee-rush-confirm-content .modal-header .close-button { display: grid; flex: 0 0 40px; place-items: center; width: 40px; min-width: 40px; max-width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 0; line-height: 1; }
#coffeeRushScreen .coffee-rush-intro { margin: 0; padding: 14px 16px; border: 1px solid #dfd1bb; border-radius: 16px; color: #614a37; background: linear-gradient(130deg,#fffaf0,#efe3cf); line-height: 1.55; }
#coffeeRushScreen .coffee-rush-room { display: grid; gap: 12px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
#coffeeRushScreen .coffee-rush-status-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; color: #fffaf1; background: #4e3828; }
#coffeeRushScreen .coffee-rush-status-row span { color: #e7d8c5; text-align: right; }
#coffeeRushScreen .coffee-rush-personal, #coffeeRushScreen .coffee-rush-ingredients { min-width: 0; padding: 14px; border: 1px solid #dfd1bb; border-radius: 18px; background: linear-gradient(145deg,#fffaf1,#f0e3ce); box-shadow: 0 8px 20px rgba(66,43,23,.08); }
#coffeeRushScreen .coffee-rush-panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--coffee-ink); }
#coffeeRushScreen .coffee-rush-panel-title small { color: #806d57; }
#coffeeRushScreen .coffee-rush-action-slots { display: grid; grid-template-columns: 1fr; gap: 9px; padding: 12px; border: 1px solid #d7c3a6; border-radius: 16px; background: repeating-linear-gradient(135deg,#e9d8bf 0 16px,#e4d1b6 16px 32px); }
#coffeeRushScreen .coffee-rush-action-slot { position: relative; min-height: 76px; display: grid; grid-template-columns: 34px 48px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #76583d; border-radius: 16px; color: #f9f0e4; background: linear-gradient(145deg,#57402f,#35271e); box-shadow: 0 4px 0 #291e17, 0 6px 12px rgba(55,35,19,.16); }
#coffeeRushScreen .coffee-rush-action-slot.is-complete { border-color: #91a678; background: linear-gradient(145deg,#69834f,#3f5a38); }
#coffeeRushScreen .coffee-rush-action-slot.is-current { outline: 3px solid #d4a449; outline-offset: 1px; }
#coffeeRushScreen .coffee-rush-step-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff5df; background: #547044; font-weight: 900; }
#coffeeRushScreen .coffee-rush-step-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(0,0,0,.16); font-size: 1.5rem; }
#coffeeRushScreen .coffee-rush-step-copy { display: grid; gap: 4px; min-width: 0; }
#coffeeRushScreen .coffee-rush-step-copy strong { font-size: .94rem; }
#coffeeRushScreen .coffee-rush-step-copy small { color: #e9d5b8; font-size: .72rem; }
#coffeeRushScreen .coffee-rush-step-reward { min-width: 44px; padding: 7px 8px; border: 1px solid #c5a879; border-radius: 9px; color: #fff1d5; background: rgba(0,0,0,.18); text-align: center; font-size: .75rem; font-weight: 850; }
#coffeeRushScreen .coffee-rush-order, #coffeeRushScreen .coffee-rush-inventory { display: grid; gap: 6px; margin-top: 11px; padding: 10px 12px; border-radius: 12px; color: #624b34; background: #e7d8bf; }
#coffeeRushScreen .coffee-rush-order strong { color: #33251a; }
#coffeeRushScreen .coffee-rush-inventory > div { display: flex; flex-wrap: wrap; gap: 6px; }
#coffeeRushScreen .coffee-rush-ingredient-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
#coffeeRushScreen .coffee-rush-ingredient { aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 3px; border: 2px solid #d4c5ae; border-radius: 14px; color: #38291d; background: #fffdf8; box-shadow: inset 0 0 0 3px rgba(255,255,255,.75); font-size: clamp(1.4rem,7vw,2.2rem); }
#coffeeRushScreen .coffee-rush-ingredient small { font-size: .64rem; font-weight: 800; }
#coffeeRushScreen .coffee-rush-ingredient:disabled { opacity: .4; filter: grayscale(.65); }
#coffeeRushScreen .coffee-rush-ingredient[data-ingredient="coffee"] { border-color: #866046; }
#coffeeRushScreen .coffee-rush-ingredient[data-ingredient="milk"] { border-color: #d9be83; }
#coffeeRushScreen .coffee-rush-ingredient[data-ingredient="ice"] { border-color: #91b8d3; }
#coffeeRushScreen .coffee-rush-ingredient[data-ingredient="syrup"] { border-color: #b77b79; }
#coffeeRushScreen .coffee-rush-ingredient[data-ingredient="cream"] { border-color: #d8a57b; }
#coffeeRushScreen .coffee-rush-players { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#coffeeRushScreen .coffee-rush-player { display: grid; gap: 4px; padding: 11px; border: 1px solid #ded4c5; border-radius: 13px; color: #4a3a2b; background: #fffaf3; }
#coffeeRushScreen .coffee-rush-player.is-turn { border-color: #6a8951; box-shadow: 0 0 0 2px rgba(106,137,81,.17); }
#coffeeRushScreen .coffee-rush-player small { color: #7d6d59; }
#coffeeRushScreen .coffee-rush-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#coffeeRushScreen .coffee-rush-actions > button { min-height: 44px; }
html[data-theme="dark"] #coffeeRushScreen .coffee-rush-intro, html[data-theme="dark"] #coffeeRushScreen .coffee-rush-personal, html[data-theme="dark"] #coffeeRushScreen .coffee-rush-ingredients { border-color: #4c4338; color: #eee0c9; background: linear-gradient(145deg,#302a23,#24201c); }
html[data-theme="dark"] #coffeeRushScreen .coffee-rush-panel-title, html[data-theme="dark"] #coffeeRushScreen .coffee-rush-order strong { color: #f3e7d4; }
html[data-theme="dark"] #coffeeRushScreen .coffee-rush-order, html[data-theme="dark"] #coffeeRushScreen .coffee-rush-inventory, html[data-theme="dark"] #coffeeRushScreen .coffee-rush-player { color: #eadbc3; background: #3a3026; }
html[data-theme="dark"] #coffeeRushScreen .coffee-rush-ingredient { color: #31261d; background: #fffdf8; }
@media (min-width: 760px) { #coffeeRushScreen .coffee-rush-room { grid-template-columns: minmax(0,1fr) minmax(320px,.9fr); align-items: start; } #coffeeRushScreen .coffee-rush-room > .omok-invite-code, #coffeeRushScreen .coffee-rush-room > .cooperative-player-count-control, #coffeeRushScreen .coffee-rush-status-row, #coffeeRushScreen .coffee-rush-players, #coffeeRushScreen .coffee-rush-actions, #coffeeRushScreen .coffee-rush-local-controls, #coffeeRushScreen .coffee-rush-game-status { grid-column: 1/-1; } #coffeeRushScreen .coffee-rush-personal { grid-column: 1; grid-row: auto; } #coffeeRushScreen .coffee-rush-ingredients { grid-column: 2; grid-row: auto; } }
@media (max-width: 759px) { #coffeeRushScreen .coffee-rush-room { grid-template-columns: minmax(112px,.42fr) minmax(0,1fr); align-items: start; } #coffeeRushScreen .coffee-rush-room > .omok-invite-code, #coffeeRushScreen .coffee-rush-room > .cooperative-player-count-control, #coffeeRushScreen .coffee-rush-status-row, #coffeeRushScreen .coffee-rush-players, #coffeeRushScreen .coffee-rush-actions, #coffeeRushScreen .coffee-rush-local-controls, #coffeeRushScreen .coffee-rush-game-status { grid-column: 1/-1; } #coffeeRushScreen .coffee-rush-action-slots { grid-template-columns: 1fr; gap: 8px; padding: 8px; } #coffeeRushScreen .coffee-rush-action-slot { min-height: 62px; grid-template-columns: 26px 34px minmax(0,1fr) auto; gap: 6px; padding: 7px; } #coffeeRushScreen .coffee-rush-step-number { width: 24px; height: 24px; font-size: .8rem; } #coffeeRushScreen .coffee-rush-step-icon { width: 32px; height: 36px; font-size: 1.15rem; } #coffeeRushScreen .coffee-rush-step-copy strong { font-size: .79rem; } #coffeeRushScreen .coffee-rush-step-copy small { font-size: .61rem; } #coffeeRushScreen .coffee-rush-step-reward { min-width: 36px; padding: 5px 4px; font-size: .64rem; } #coffeeRushScreen .coffee-rush-panel-title { display: grid; gap: 3px; } #coffeeRushScreen .coffee-rush-ingredients { padding: 10px; } #coffeeRushScreen .coffee-rush-ingredient-grid { gap: 5px; } #coffeeRushScreen .coffee-rush-ingredient { border-radius: 10px; font-size: clamp(1.1rem,8vw,1.8rem); } #coffeeRushScreen .coffee-rush-ingredient small { font-size: .56rem; } #coffeeRushScreen .coffee-rush-personal { padding: 10px; } }

/* Standalone Sky Team tournament page */
.sky-team-tournament-reward { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-width: 0; padding: 16px 18px; border: 1px solid #e6c777; border-radius: 16px; background: linear-gradient(120deg, #fff6d9, #fffdf5); color: #7a5212; }
.sky-team-tournament-reward > span { font-size: .88rem; font-weight: 800; }
.sky-team-tournament-reward > strong { font-size: clamp(1rem, 4vw, 1.3rem); font-weight: 800; white-space: nowrap; }
.sky-team-tournament-reward > small { grid-column: 1 / -1; color: #8a703e; font-size: .76rem; }
#skyTeamTournamentScreen .sky-team-tournament-invite, #omokTournamentScreen .sky-team-tournament-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
#skyTeamTournamentScreen .sky-team-tournament-invite > button, #omokTournamentScreen .sky-team-tournament-invite > button { width: auto; min-height: 34px; padding: 0 12px; border: 1px solid #b9cde9; background: #fff; color: #315a9f; font-size: .78rem; }
#skyTeamTournamentScreen .sky-team-tournament-invite > span, #omokTournamentScreen .sky-team-tournament-invite > span { color: #42628c; font-size: .73rem; line-height: 1.4; }
#skyTeamTournamentScreen .sky-team-tournament-invite > span:empty, #omokTournamentScreen .sky-team-tournament-invite > span:empty { display: none; }
html[data-theme="dark"] .sky-team-tournament-reward { border-color: #786138; background: linear-gradient(120deg, #352e20, #27271f); color: #f4d58c; }
html[data-theme="dark"] .sky-team-tournament-reward > small { color: #cfbe97; }
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-invite > button, html[data-theme="dark"] #omokTournamentScreen .sky-team-tournament-invite > button { border-color: #536e94; background: #243d5c; color: #dfecff; }
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-invite > span, html[data-theme="dark"] #omokTournamentScreen .sky-team-tournament-invite > span { color: #bed3f0; }
#skyTeamTournamentScreen .sky-team-tournament-panel {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}
#omokTournamentScreen .omok-tournament-panel { gap: 14px; padding: 0; border: 0; background: transparent; }
#omokTournamentScreen .sky-team-tournament-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 24px; border: 1px solid #c8d9f0; border-radius: 18px; background: linear-gradient(130deg,#e4efff,#f7faff); }
#omokTournamentScreen .sky-team-tournament-heading h2 { margin: 6px 0 0; font-size: clamp(1.3rem,4vw,1.65rem); }
#omokTournamentScreen .sky-team-tournament-heading > button { width: auto; min-width: 0; padding: 0 14px; }
#omokTournamentScreen #omokTournamentStatus { margin: 0; padding: 14px 16px; border: 1px solid #dce7f5; border-left: 4px solid #4d80c4; border-radius: 12px; background: #fff; color: #28476f; text-align: left; line-height: 1.55; }
#omokTournamentScreen .sky-team-tournament-participants,
#omokTournamentScreen .sky-team-tournament-teams { min-width: 0; padding: 18px; border: 1px solid #dce7f5; border-radius: 16px; background: #fff; }
#omokTournamentScreen .sky-team-tournament-team { padding: 12px 14px; }
#omokTournamentScreen .sky-team-tournament-team small { display: block; margin-top: 4px; }
#omokTournamentScreen .sky-team-tournament-admin-actions { justify-content: flex-start; }
#omokTournamentScreen .sky-team-tournament-admin-actions > button,
#omokTournamentScreen .sky-team-tournament-join > button { width: auto; min-width: 110px; }
#omokTournamentScreen .omok-tournament-round + .omok-tournament-round { margin-top: 18px; padding-top: 14px; border-top: 1px solid #dce7f5; }
#omokTournamentScreen .omok-tournament-round h4 { margin: 0 0 10px; color: #315a90; }
html[data-theme="dark"] #omokTournamentScreen .sky-team-tournament-heading { border-color: #354e70; background: linear-gradient(130deg,#223c5c,#192b43); }
html[data-theme="dark"] #omokTournamentScreen #omokTournamentStatus,
html[data-theme="dark"] #omokTournamentScreen .sky-team-tournament-participants,
html[data-theme="dark"] #omokTournamentScreen .sky-team-tournament-teams { border-color: #354e70; background: #1b2b41; color: #dae8fb; }
html[data-theme="dark"] #omokTournamentScreen .omok-tournament-round + .omok-tournament-round { border-color: #354e70; }
@media (max-width: 520px) {
  #omokTournamentScreen .sky-team-tournament-heading { gap: 8px; padding: 18px 16px; }
  #omokTournamentScreen .sky-team-tournament-heading > button { min-height: 38px; padding: 0 10px; font-size: .74rem; }
  #omokTournamentScreen .sky-team-tournament-participants,
  #omokTournamentScreen .sky-team-tournament-teams { padding: 15px; }
  #omokTournamentScreen .sky-team-tournament-team { flex-wrap: wrap; }
  #omokTournamentScreen .sky-team-tournament-team button { width: 100%; }
}
#skyTeamTournamentScreen .sky-team-tournament-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid #c8d9f0;
  border-radius: 18px;
  background: linear-gradient(130deg, #e4efff, #f7faff);
}
#skyTeamTournamentScreen .sky-team-tournament-heading > div { min-width: 0; }
#skyTeamTournamentScreen .sky-team-tournament-heading .eyebrow { display: block; line-height: 1.3; }
#skyTeamTournamentScreen .sky-team-tournament-heading h2 { margin: 6px 0 0; font-size: clamp(1.3rem, 4vw, 1.65rem); line-height: 1.3; word-break: keep-all; }
#skyTeamTournamentScreen .sky-team-tournament-heading > button { width: auto; min-width: 0; padding: 0 14px; font-size: .82rem; }
#skyTeamTournamentScreen #skyTeamTournamentStatus {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dce7f5;
  border-left: 4px solid #4d80c4;
  border-radius: 12px;
  background: #fff;
  color: #28476f;
  text-align: left;
  line-height: 1.55;
}
#skyTeamTournamentScreen .sky-team-tournament-settings-summary {
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: #eaf1fb;
  color: #315a90;
  line-height: 1.45;
}
#skyTeamTournamentScreen .sky-team-tournament-join,
#skyTeamTournamentScreen .sky-team-tournament-participants,
#skyTeamTournamentScreen .sky-team-tournament-teams,
#skyTeamTournamentScreen .sky-team-tournament-settings-editor {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: #fff;
}
#skyTeamTournamentScreen .sky-team-tournament-teams:empty { display: none; }
#skyTeamTournamentScreen .sky-team-tournament-join { align-items: end; }
#skyTeamTournamentScreen .sky-team-tournament-join > button { width: auto; min-width: 104px; }
#skyTeamTournamentScreen .sky-team-tournament-join label { flex: 1 1 140px; font-size: .85rem; }
#skyTeamTournamentScreen .sky-team-tournament-participants h4,
#skyTeamTournamentScreen .sky-team-tournament-teams h4 { font-size: .96rem; }
#skyTeamTournamentScreen .sky-team-tournament-chip { padding: 8px 12px; font-size: .84rem; }
#skyTeamTournamentScreen .sky-team-tournament-team { padding: 12px 14px; }
#skyTeamTournamentScreen .sky-team-tournament-team strong { font-size: .9rem; line-height: 1.4; }
#skyTeamTournamentScreen .sky-team-tournament-team small { font-size: .78rem; line-height: 1.4; }
#skyTeamTournamentScreen .sky-team-tournament-admin-actions { justify-content: flex-start; }
#skyTeamTournamentScreen .sky-team-tournament-admin-actions:not(:has(> button:not(.hidden))) { display: none; }
#skyTeamTournamentScreen .sky-team-tournament-admin-actions > button { width: auto; min-height: 44px; }
#skyTeamTournamentScreen .sky-team-tournament-settings-editor { gap: 14px; }
#skyTeamTournamentScreen .sky-team-tournament-settings-editor > label { font-size: .88rem; }
#skyTeamTournamentScreen .sky-team-tournament-settings-editor fieldset { padding: 12px; }
#skyTeamTournamentScreen .sky-team-tournament-module-choices .sky-team-module-choice { min-height: 48px; font-size: .83rem; }
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-heading { border-color: #354e70; background: linear-gradient(130deg, #223c5c, #192b43); }
html[data-theme="dark"] #skyTeamTournamentScreen #skyTeamTournamentStatus,
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-join,
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-participants,
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-teams,
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-settings-editor { border-color: #354e70; background: #1b2b41; }
html[data-theme="dark"] #skyTeamTournamentScreen #skyTeamTournamentStatus { border-left-color: #78a5e4; color: #dae8fb; }
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-settings-summary { background: #263d59; color: #d7e7fc; }
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-participants h4,
html[data-theme="dark"] #skyTeamTournamentScreen .sky-team-tournament-teams h4 { color: #d7e7fc; }
@media (max-width: 520px) {
  #skyTeamTournamentScreen .sky-team-tournament-heading { gap: 8px; padding: 18px 16px; }
  #skyTeamTournamentScreen .sky-team-tournament-heading > button { width: auto; min-height: 38px; padding: 0 10px; font-size: .74rem; }
  #skyTeamTournamentScreen .sky-team-tournament-heading h2 { font-size: 1.3rem; }
  #skyTeamTournamentScreen .sky-team-tournament-join,
  #skyTeamTournamentScreen .sky-team-tournament-participants,
  #skyTeamTournamentScreen .sky-team-tournament-teams,
  #skyTeamTournamentScreen .sky-team-tournament-settings-editor { padding: 15px; }
  #skyTeamTournamentScreen .sky-team-tournament-admin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #skyTeamTournamentScreen .sky-team-tournament-admin-actions > button { width: 100%; min-width: 0; padding: 0 8px; font-size: .82rem; }
  #skyTeamTournamentScreen #skyTeamTournamentSettle:not(.hidden):last-child { grid-column: 1 / -1; }
  #skyTeamTournamentScreen .sky-team-tournament-team { flex-wrap: wrap; }
  #skyTeamTournamentScreen .sky-team-tournament-team button { width: 100%; }
}

/* Keep the corner ornament throughout the game-world section and its game routes. */
body.is-holdem-halloween:is(
  [data-current-screen="game-world"],[data-current-screen="money-store"],
  [data-current-screen="word-chain"],[data-current-screen="word-guess"],
  [data-current-screen="mystery-game"],[data-current-screen="turtle-soup"],
  [data-current-screen="murder-timeline"],[data-current-screen="avalon"],
  [data-current-screen="mafia-night"],[data-current-screen="balance-game"],
  [data-current-screen="tichu"],[data-current-screen="dekalko"],
  [data-current-screen="las-vegas-royale"],[data-current-screen="lexio"],
  [data-current-screen="the-game"],[data-current-screen="the-mind"],
  [data-current-screen="decrypto"],[data-current-screen="just-one"],
  [data-current-screen="omok"],[data-current-screen="baduk"],
  [data-current-screen="othello"],[data-current-screen="chat-rush"],
  [data-current-screen="sky-team"],[data-current-screen="ricochet-robots"],
  [data-current-screen="stop-challenge"],[data-current-screen="yahtzee"],
  [data-current-screen="kamisado"],[data-current-screen="coffee-rush"],
  [data-current-screen="janggi"],[data-current-screen="chess"],
  [data-current-screen="holdem"],[data-current-screen="sutda"],
  [data-current-screen="matgo"],[data-current-screen="marble-drop"],
  [data-current-screen="horse-racing"],[data-current-screen="kanban"],
  [data-current-screen="omok-tournament"],[data-current-screen="sky-team-tournament"],
  [data-current-screen="quiz-quiz"]
)::after {
  content: "";
  position: fixed;
  z-index: 1001;
  top: 0;
  right: 0;
  width: clamp(105px,25vw,170px);
  aspect-ratio: 1;
  background: url("./assets/halloween-corner.svg") top right / contain no-repeat;
  filter: drop-shadow(0 2px 4px #20102733);
  pointer-events: none;
}
/* Money game: Quiz Quiz */
#quizQuizScreen { padding-bottom: 24px; }
.page-shell:has(#quizQuizScreen:not(.hidden)) { width:min(calc(100% - 40px),1040px); }
#quizQuizScreen > .mystery-game-header .omok-header-actions { gap: 8px; }
#quizQuizWallet { max-width: 190px; padding-inline: 12px; white-space: nowrap; }
.quiz-quiz-intro { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; padding: 16px; border: 1px solid #dce6f5; border-radius: 20px; background: linear-gradient(135deg,#eef5ff,#fff 75%); }
.quiz-quiz-intro img { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 18px; object-fit: cover; }
.quiz-quiz-intro strong { color: #19365f; font-size: 1rem; }
.quiz-quiz-intro p { margin: 5px 0 0; color: #74849d; font-size: .82rem; line-height: 1.5; }
.quiz-quiz-create { max-width: 760px; margin: 0 auto 22px; padding: 20px; border: 1px solid #dbe5f4; border-radius: 20px; background: #fff; box-shadow: 0 10px 25px rgba(25,53,94,.08); }
.quiz-quiz-create h3 { margin: 0 0 16px; color: #17345f; font-size: 1.15rem; }
.quiz-quiz-create > label, .quiz-quiz-answer-editor > label, .quiz-quiz-settings-row > label { display: grid; gap: 7px; margin: 12px 0; color: #516782; font-size: .82rem; font-weight: 750; }
.quiz-quiz-create input, .quiz-quiz-create select { width: 100%; min-height: 44px; box-sizing: border-box; padding: 9px 12px; border: 1px solid #d4dfed; border-radius: 12px; background: #fff; color: #172a45; font: inherit; }
.quiz-quiz-answer-editor { margin: 14px 0; padding: 14px; border: 1px solid #e0e8f4; border-radius: 15px; background: #f7f9fd; }
.quiz-quiz-answer-editor > span, .quiz-quiz-option-editor > span { display: block; margin-bottom: 10px; color: #516782; font-size: .82rem; font-weight: 800; }
.quiz-quiz-choice-row, .quiz-quiz-answer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.quiz-quiz-choice-row button, .quiz-quiz-answer-grid button { min-height: 48px; border: 1px solid #d7e2f1; border-radius: 13px; background: #fff; color: #244873; font: inherit; font-weight: 800; cursor: pointer; }
.quiz-quiz-choice-row button.is-selected, .quiz-quiz-answer-grid button:focus-visible { border-color: #3562a5; outline: 2px solid #3562a533; background: #edf4ff; }
.quiz-quiz-option-editor { margin: 14px 0; }
.quiz-quiz-option-editor label { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 8px; margin: 8px 0; color: #3562a5; font-weight: 800; }
.quiz-quiz-option-editor input { color: #172a45; font-weight: 500; }
.quiz-quiz-option-editor > button { min-height: 38px; margin-top: 5px; }
.quiz-quiz-settings-row { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 12px; }
.quiz-quiz-form-actions { display: flex; gap: 10px; margin-top: 14px; }
.quiz-quiz-form-actions button { flex: 1; min-height: 46px; }
.quiz-quiz-status { min-height: 1.2em; margin: 10px 0; color: #526b8e; font-size: .88rem; line-height: 1.5; }
.quiz-quiz-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.quiz-quiz-list-card { min-width: 0; padding: 16px; border: 1px solid #dce5f1; border-radius: 18px; background: #fff; box-shadow: 0 7px 20px rgba(29,51,82,.055); }
.quiz-quiz-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6c7f9c; font-size: .76rem; font-weight: 750; }
.quiz-quiz-list-top strong { color: #b27613; white-space: nowrap; }
.quiz-quiz-list-card h3 { overflow-wrap: anywhere; margin: 12px 0 7px; color: #172a45; font-size: 1rem; }
.quiz-quiz-list-card p { margin: 0 0 12px; color: #7a8ba3; font-size: .78rem; }
.quiz-quiz-list-card > button, #quizQuizSubmitCreate { min-height: 42px; padding: 8px 15px; border: 0; border-radius: 12px; background: #3561a2; color: #fff; font: inherit; font-weight: 800; }
.quiz-quiz-list-card > button:disabled { background: #e8edf5; color: #8795a9; }
.quiz-quiz-room { width:100%; max-width:none; margin:0; }
.quiz-quiz-question-card { margin: 16px 0; padding: 22px; border: 1px solid #dce5f1; border-radius: 20px; background: #fff; box-shadow: 0 9px 24px rgba(29,51,82,.07); }
.quiz-quiz-question-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #3561a2; font-size: .82rem; font-weight: 800; }
.quiz-quiz-question-card h3 { margin: 17px 0 8px; color: #172a45; font-size: clamp(1.2rem,4vw,1.65rem); overflow-wrap: anywhere; }
.quiz-quiz-question-card > p:not(.quiz-quiz-status) { color: #7a8ba3; font-size: .82rem; }
.quiz-quiz-answer-grid { margin: 18px 0; }
.quiz-quiz-answer-grid:not(.is-rps) { grid-template-columns: 1fr; }
.quiz-quiz-answer-grid button { padding: 10px 14px; text-align: left; }
.quiz-quiz-answer-grid button span { margin-right: 8px; font-size: 1.3rem; }
.quiz-quiz-answer-grid button:disabled { opacity: .62; cursor: default; }
.quiz-quiz-answer-grid button.is-selected { border-color: #3562a5; outline: 2px solid #3562a533; background: #edf4ff; opacity: 1; }
.quiz-quiz-answer-grid button { overflow-wrap: anywhere; }
.quiz-quiz-result-choice { min-width:0; }
.quiz-quiz-result-choice > button { width:100%; }
.quiz-quiz-answer-grid button .quiz-quiz-result-count { display:block; margin:5px 0 0; color:#6c7f9c; font-size:.75rem; font-weight:500; }
.quiz-quiz-option-respondents { display:flex; flex-wrap:wrap; gap:6px; margin:5px 0 0; padding:10px; border:1px solid #d7e2f1; border-radius:10px; background:var(--surface,#f3f7fc); font-size:.85rem; }
.quiz-quiz-option-respondents > span { padding:3px 7px; border-radius:6px; background:#3562a518; }
.quiz-quiz-winners { margin-top: 18px; color: #2d6848; }
.quiz-quiz-winners > strong { display: block; margin-bottom: 7px; }
.quiz-quiz-winners > div { display: flex; flex-wrap: wrap; gap: 7px; }
.quiz-quiz-winners span { padding: 7px 10px; border-radius: 999px; background: #eaf7ef; font-size: .82rem; font-weight: 750; }
#quizQuizBackToList { width: 100%; min-height: 44px; }
#quizQuizAnswerConfirmModal > .notice-content { display:flex; flex-direction:column; align-items:stretch; width:min(100%,540px); max-height:85dvh; overflow:auto; margin:0; padding:22px 22px max(22px,env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; text-align:left; }
#quizQuizAnswerConfirmModal .modal-header { width:100%; gap:12px; margin:0 0 12px; }
#quizQuizAnswerConfirmModal .modal-header h2 { flex:1; min-width:0; text-align:left; font-size:1.1rem; }
#quizQuizAnswerConfirmModal .modal-header .close-button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; padding:0; }
#quizQuizAnswerConfirmChoice { display:block; padding:16px; border-radius:12px; background:#edf4ff; color:#315a9f; overflow-wrap:anywhere; }
html[data-theme="dark"] #quizQuizAnswerConfirmChoice { background:#243550; color:#c7dcff; }
#quizQuizCreateModal { box-sizing:border-box; place-items:center; padding:16px; }
#quizQuizCreateForm.quiz-quiz-create-modal-content { display:flex; box-sizing:border-box; width:min(560px,calc(100vw - 28px)); max-width:560px; max-height:min(90dvh,760px); flex-direction:column; align-items:stretch; justify-items:stretch; gap:12px; overflow:auto; margin:0; padding:20px; border-radius:20px; text-align:left; }
#quizQuizCreateForm .modal-header { display:flex; width:100%; flex:0 0 auto; align-items:center; justify-content:space-between; gap:12px; margin:0 0 4px; }
#quizQuizCreateForm .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; text-align:left; font-size:1.2rem; }
#quizQuizCreateForm .modal-header .close-button { display:grid; flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; margin-left:auto; padding:0; place-items:center; line-height:1; }
#quizQuizCreateForm > label { width:100%; margin:0; }
#quizQuizCreateForm :is(input,select,textarea) { font-size:max(16px,1rem); }
#quizQuizCreateForm .quiz-quiz-answer-editor { width:100%; box-sizing:border-box; margin:0; }
#quizQuizCreateForm .quiz-quiz-settings-row { width:100%; }
#quizQuizCreateForm .quiz-quiz-form-actions { width:100%; margin-top:0; }
#quizQuizCreateForm .quiz-quiz-form-actions > button { width:auto; }
html[data-theme="dark"] #quizQuizCreateForm.quiz-quiz-create-modal-content { border-color:#34445d; background:#192334; color:#edf3fc; }
html[data-theme="dark"] .quiz-quiz-intro, html[data-theme="dark"] .quiz-quiz-create, html[data-theme="dark"] .quiz-quiz-list-card, html[data-theme="dark"] .quiz-quiz-question-card { border-color: #34445d; background: #192334; }
html[data-theme="dark"] .quiz-quiz-intro strong, html[data-theme="dark"] .quiz-quiz-create h3, html[data-theme="dark"] .quiz-quiz-list-card h3, html[data-theme="dark"] .quiz-quiz-question-card h3 { color: #edf3fc; }
html[data-theme="dark"] .quiz-quiz-create input, html[data-theme="dark"] .quiz-quiz-create select, html[data-theme="dark"] .quiz-quiz-choice-row button, html[data-theme="dark"] .quiz-quiz-answer-grid button { border-color: #3c4e69; background: #202d41; color: #edf3fc; }
html[data-theme="dark"] .quiz-quiz-answer-editor { border-color: #34445d; background: #202d41; }
html[data-theme="dark"] .quiz-quiz-choice-row button.is-selected { border-color: #79aaf0; background: #2c4364; }
html[data-theme="dark"] .quiz-quiz-answer-grid button.is-selected { border-color: #79aaf0; background: #2c4364; }
@media (max-width: 600px) {
  .page-shell:has(#quizQuizScreen:not(.hidden)) { width:min(calc(100% - 24px),680px); }
  #quizQuizScreen > .mystery-game-header { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 4px; }
  #quizQuizScreen > .mystery-game-header .eyebrow { display: none; }
  #quizQuizScreen > .mystery-game-header h2 { margin: 0; font-size: clamp(1rem,4vw,1.25rem); line-height: 1.25; white-space: nowrap; }
  #quizQuizScreen > .mystery-game-header .omok-header-actions { display: grid; grid-template-columns: minmax(0,1fr) auto 36px; align-items: center; gap: 4px; min-width: 0; }
  #quizQuizWallet { display: block; justify-self: end; width: max-content; min-width: 0; max-width: 100%; min-height: 38px; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
  #quizQuizCreateToggle { min-width: 0; min-height: 36px; padding: 0 6px; font-size: .7rem; white-space: nowrap; }
  #quizQuizScreen .word-chain-close-button { width: 36px; height: 36px; min-height: 36px; }
  .quiz-quiz-intro { gap: 10px; padding: 12px; }
  .quiz-quiz-intro img { width: 50px; height: 50px; flex-basis: 50px; border-radius: 14px; }
  .quiz-quiz-intro strong { font-size: .88rem; }
  .quiz-quiz-intro p { font-size: .73rem; }
  #quizQuizCreateForm.quiz-quiz-create-modal-content { width:calc(100vw - 20px); max-height:calc(100dvh - 24px); padding:16px; }
  #quizQuizCreateForm .quiz-quiz-settings-row { grid-template-columns:1fr; gap:4px; }
  .quiz-quiz-choice-row { gap: 6px; }
  .quiz-quiz-choice-row button { min-height: 44px; padding: 5px 2px; font-size: .82rem; }
  .quiz-quiz-list { grid-template-columns: 1fr; }
  .quiz-quiz-question-card { padding: 17px; }
}
@media (max-width: 480px) {
  .page-shell:has(#quizQuizScreen:not(.hidden)) { width:100%; padding-right:max(12px,env(safe-area-inset-right)); padding-left:max(12px,env(safe-area-inset-left)); }
}
@media (max-width: 360px) {
  #quizQuizWallet { padding-inline: 6px; font-size: .66rem; }
}

/* Store previews show original artwork without the in-game readability tint. */
.money-skin-card-preview.is-holdem-aurora .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/aurora.svg")!important; }
.money-skin-card-preview.is-holdem-terracotta .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/terracotta.svg")!important; }
.money-skin-card-preview.is-holdem-nebula .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/nebula.svg")!important; }
.money-skin-card-preview.is-holdem-sakura .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/sakura.svg")!important; }
.money-skin-card-preview.is-holdem-obsidian .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/obsidian.svg")!important; }
.money-skin-card-preview.is-holdem-tide .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/tide.svg")!important; }
.money-skin-card-preview.is-holdem-cyber .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/cyber.svg")!important; }
.money-skin-card-preview.is-holdem-forest .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/forest.svg")!important; }
.money-skin-card-preview.is-holdem-desert .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/desert.svg")!important; }
.money-skin-card-preview.is-holdem-mosaic .money-skin-preview-seat { background-image:url("./assets/nameplate-backgrounds/mosaic.svg")!important; }
.money-skin-card-preview.is-holdem-shinchan .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/shinchan-inspired-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-doraemon .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/doraemon-inspired-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-taekwondo-robot .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/taekwondo-robot-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-black-rubber-shoes .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/black-rubber-shoes-inspired-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-iron-sentinel .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/iron-sentinel.jpg?v=20261013b")!important; }
.money-skin-card-preview.is-holdem-saw-hunter .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/saw-hunter-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-cloud-creature .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/cloud-creature-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-ribbon-kitten .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/ribbon-kitten-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-blue-robot .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/blue-robot-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-spark-glider .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/spark-glider.jpg?v=20261013b")!important; }
.money-skin-card-preview.is-holdem-orange-dino .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/orange-dino-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-guru-guru-north-old-man .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/guru-guru-north-old-man-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-rilakkuma .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/rilakkuma-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-pokute .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/pokute-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-hamo .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/hamo-moonwake.png?v=20261029c")!important; }
.money-skin-card-preview.is-holdem-elizabeth .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/elizabeth-right.png?v=20261029a")!important; }
.money-skin-card-preview.is-holdem-moonlit-orange-tabby .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/moonlit-orange-tabby.png?v=20261016a")!important; }
.money-skin-card-preview.is-holdem-sunny-pomeranian .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/sunny-pomeranian.png?v=20261016a")!important; }
.money-skin-card-preview.is-holdem-black-tan-pomeranian .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/black-tan-pomeranian.png?v=20261017c")!important; }
.money-skin-card-preview.is-holdem-craft-hans-chicken .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/craft-hans-chicken.png?v=20261015b")!important; }
.money-skin-card-preview.is-always-watching-him .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/always-watching-him.png?v=20261014b")!important; }
.money-skin-card-preview.is-holdem-lavender-white-pomeranian .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/lavender-white-pomeranian.png?v=20261016a")!important; }
.money-skin-card-preview.is-holdem-sunlit-cat-duo .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/sunlit-cat-duo.webp?v=20261028a")!important; }
.money-skin-card-preview.is-holdem-retro-worried-character .money-skin-preview-seat { background-image:url("./assets/holdem-seat-themes/handdrawn-worried-character-retro-comic.png?v=20261018a")!important; }
.money-skin-card-preview .money-skin-preview-seat > :is(small,strong,em) { text-shadow:0 1px 3px #000c,0 0 1px #000; }

:is([data-player-theme="holdem_molly_flower_studio_nameplate"], [data-shared-player-nameplate="holdem_molly_flower_studio_nameplate"], .money-skin-card-preview.is-molly-flower-studio .money-skin-preview-seat) {
  --shared-nameplate-color: #fff5d9;
  --shared-nameplate-image: linear-gradient(90deg, #fff8e5 0%, #fff8e5e8 34%, #fff8e538 64%, transparent 79%), url("./assets/holdem-seat-themes/molly-flower-studio.jpg") !important;
  border-color: #bea04f;
  background-color: var(--shared-nameplate-color) !important;
  background-image: var(--shared-nameplate-image) !important;
  background-position: right center !important;
  background-size: cover !important;
  color: #26352a !important;
  text-shadow: 0 1px 3px #fff8e5;
}
.money-skin-card-preview.is-molly-flower-studio { background: linear-gradient(140deg, #f6e4a4, #8eaa84); }
:is([data-player-theme="holdem_molly_flower_studio_nameplate"], [data-shared-player-nameplate="holdem_molly_flower_studio_nameplate"], .money-skin-card-preview.is-molly-flower-studio .money-skin-preview-seat)
  :is(strong, small, em, .holdem-seat-balance, .holdem-seat-hand-label, .coffee-rush-player-marker-label) {
  color: #26352a !important;
  text-shadow: 0 1px 3px #fff8e5, 0 0 1px #fff8e5;
}
.money-skin-card-preview.is-molly-flower-studio .money-skin-preview-seat b,
[data-player-theme="holdem_molly_flower_studio_nameplate"] .holdem-seat-bet.is-ready {
  border-color: #899f6e;
  background: #e9eed2;
  color: #34442f !important;
  text-shadow: none;
}

#alcoholCalendarQuickModal .alcohol-quick-content { max-height:calc(100dvh - 24px); overflow-y:auto; }
#alcoholCalendarQuickModal .alcohol-quick-snack { display:grid; gap:8px; width:100%; text-align:left; }
#alcoholCalendarQuickModal .alcohol-quick-snack > div { display:flex; gap:8px; align-items:center; }
#alcoholCalendarQuickSnack { flex:1; width:0; min-width:0; height:48px; margin:0; padding:0 12px; border:1px solid #ccd9eb; border-radius:12px; background:#fff; color:#183458; font:inherit; }
#alcoholCalendarQuickModal #alcoholCalendarQuickSnackUpdate { flex:0 0 auto; width:auto; min-height:48px; margin:0; padding:0 12px; white-space:nowrap; }
html[data-theme="dark"] #alcoholCalendarQuickSnack { border-color:#43536a; background:#202c3e; color:#e2e8f0; }

#alcoholCalendarQuickModal .alcohol-quick-type-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; }
#alcoholCalendarQuickModal .alcohol-quick-type-heading > span:first-child { flex:0 0 auto; }
#alcoholCalendarQuickCount { flex:1 1 auto; min-width:0; font-size:.85rem; text-align:right; white-space:normal; overflow-wrap:anywhere; }

#alcoholCalendarQuickModal .modal-header #alcoholCalendarQuickMove { flex:0 0 auto; width:auto; min-width:0; height:32px; min-height:32px; margin:0; padding:0 8px; border-radius:8px; font-size:.75rem; line-height:1; white-space:nowrap; }
#alcoholCalendarQuickModal .alcohol-quick-actions:has(#alcoholCalendarQuickRegister.hidden) { display:none; }
@media (max-width:360px) { #alcoholCalendarQuickModal .modal-header h2 { font-size:1rem; } }

#alcoholCalendarQuickDraft { display:grid; gap:12px; width:100%; }
#alcoholCalendarQuickModal .alcohol-drink-rows { grid-template-columns:minmax(0,1fr); }
#alcoholCalendarQuickModal .alcohol-drink-remove { min-height:28px; max-width:28px; }

#alcoholCalendarQuickModal .alcohol-quick-type-field { display:grid; gap:8px; min-width:0; color:#516782; font-size:.9rem; font-weight:700; }
#alcoholCalendarQuickModal .alcohol-quick-select { display:grid; gap:6px; min-width:0; }
#alcoholCalendarQuickModal #alcoholCalendarQuickTypeButton { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:56px; margin:0; padding:10px 12px; border:1px solid #ccd9eb; border-radius:12px; background:#fff; color:#183458; font:inherit; text-align:left; }
#alcoholCalendarQuickTypeValue { display:flex; align-items:center; gap:10px; min-width:0; }
#alcoholCalendarQuickTypeValue .alcohol-soju-emoji, #alcoholCalendarQuickTypeOptions .alcohol-soju-emoji { height:28px; width:auto; max-width:28px; object-fit:contain; }
#alcoholCalendarQuickModal #alcoholCalendarQuickTypeOptions { display:grid; gap:2px; padding:4px; border:1px solid #ccd9eb; border-radius:12px; background:#fff; max-height:210px; overflow-y:auto; }
#alcoholCalendarQuickModal #alcoholCalendarQuickTypeOptions > button { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; margin:0; padding:6px 10px; border-radius:8px; background:transparent; color:#183458; font:inherit; text-align:left; }
#alcoholCalendarQuickModal #alcoholCalendarQuickTypeOptions > button[aria-selected="true"], #alcoholCalendarQuickModal #alcoholCalendarQuickTypeOptions > button:hover { background:#edf4ff; }
#alcoholCalendarQuickModal .alcohol-quick-option-icon { display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; font-size:1.3rem; }
html[data-theme="dark"] #alcoholCalendarQuickModal .alcohol-quick-type-field { color:#b9cce7; }
html[data-theme="dark"] #alcoholCalendarQuickModal #alcoholCalendarQuickTypeButton, html[data-theme="dark"] #alcoholCalendarQuickModal #alcoholCalendarQuickTypeOptions { background:#202c3e; color:#e2e8f0; border-color:#43536a; }
html[data-theme="dark"] #alcoholCalendarQuickModal #alcoholCalendarQuickTypeOptions > button { color:#e2e8f0; }
html[data-theme="dark"] #alcoholCalendarQuickModal #alcoholCalendarQuickTypeOptions > button[aria-selected="true"], html[data-theme="dark"] #alcoholCalendarQuickModal #alcoholCalendarQuickTypeOptions > button:hover { background:#2a3d5d; }
/* Three-player bomber gunner board. */
.sky-team-gunner-panel { grid-column:1/-1; padding:12px; border:2px solid #527b8b; border-radius:8px; background:#b9d0d5; color:#173c50; }
.sky-team-gunner-panel h3 { display:flex; justify-content:space-between; gap:12px; margin:0 0 10px; }
.sky-team-gunner-panel h3 small { font-size:.8em; }
.sky-team-gunner-layout { display:grid; grid-template-columns:var(--sky-team-action-size,42px) minmax(0,1fr); gap:clamp(8px,2vw,20px); align-items:center; margin-top:12px; }
.sky-team-gunner-radar { min-width:0; width:min(100%,380px); aspect-ratio:1; margin:0 auto; }
.sky-team-gunner-dial { display:block; width:100%; height:auto; overflow:visible; }
.sky-team-gunner-dial text { font-family:Arial,sans-serif; text-anchor:middle; dominant-baseline:central; }
.sky-team-gunner-number { fill:#075373; font-size:38px; font-weight:800; }
.sky-team-gunner-number.is-light { fill:#c4dced; }
.sky-team-gunner-pair { fill:#c6dfee; font-size:21px; font-weight:700; }
.sky-team-gunner-pair.is-blue { fill:#347daf; }
.sky-team-gunner-fighter text { fill:#102d42; stroke:#e8f5ff; stroke-width:2px; paint-order:stroke; font-size:23px; font-weight:700; }
.sky-team-gunner-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; justify-items:center; }
#skyTeamCockpit .sky-team-gunner-actions .sky-team-gunner-action { width:100%; }
#skyTeamCockpit .sky-team-gunner-action { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; box-sizing:border-box; width:min(100%,42px); height:auto; min-width:0; aspect-ratio:1; min-height:0; margin:0; padding:2px; border:1px solid #245d3b; border-radius:6px; background:#398157; color:#fff; }
#skyTeamCockpit .sky-team-gunner-action-label { font-size:clamp(.6rem,1.8vw,.76rem); font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
#skyTeamCockpit .sky-team-gunner-action small { font-size:clamp(.55rem,1.5vw,.68rem); line-height:1.2; }
#skyTeamCockpit .sky-team-gunner-action .sky-team-gunner-empty-die { margin:0; font-size:1.1rem; line-height:1; }
#skyTeamCockpit .sky-team-gunner-action .sky-team-placed-die.is-gunner-die { box-sizing:border-box; width:min(100%,36px); height:auto; min-width:0; min-height:0; aspect-ratio:1 / 1; margin:0; padding:0; background:#235f3c; color:#fff; flex:none; line-height:1; }
#skyTeamCockpit .sky-team-gunner-action:disabled { opacity:.5; cursor:default; }
#skyTeamCockpit .sky-team-gunner-action.is-filled { opacity:.74; }
/* Bomber escape controls. */
.sky-team-escape-roles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0; }
.sky-team-escape-role { display:flex; flex-direction:column; align-items:center; gap:8px; padding:10px 4px; border:1px solid #7094a4; border-radius:8px; background:#d7e5e8; min-width:0; }
.sky-team-escape-role strong,.sky-team-escape-role span { font-size:clamp(11px,2.8vw,15px); text-align:center; }
.sky-team-escape-role button { flex:none; width:44px; height:44px; min-height:44px; padding:0; font-size:22px; border:2px solid #4b7883; border-radius:8px; background:#387359; color:#fff; }
.sky-team-escape-role button:disabled { opacity:.45; }
.sky-team-gunner-panel>small { display:block; margin-top:8px; }
#skyTeamCockpit .sky-team-gunner-panel { grid-column:1/-1; padding:12px; background:#b9d0d5; color:#173c50; }
#skyTeamCockpit .sky-team-gunner-panel h3 { display:flex; justify-content:space-between; gap:12px; margin:0 0 10px; font-size:.95rem; text-align:left; }
#skyTeamCockpit .sky-team-gunner-panel p { margin:8px 0; font-size:.8rem; line-height:1.4; color:#173c50; }
#skyTeamDicePanel.is-gunner .sky-team-die-face { background:#3f7952; }

/* Sky Team RP tiers */
.sky-team-tier-badge{display:inline-flex;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;min-width:34px;height:22px;padding:1px 2px;border:1px solid #111;border-radius:4px;background:#fff;color:#111;white-space:nowrap;vertical-align:middle;flex-shrink:0}
.sky-team-tier-badge>img{display:block;width:20px;height:18px;object-fit:contain;flex-shrink:0}
.sky-team-tier-badge.is-god{min-width:28px;height:24px;padding:0;border-color:#a66b13;background:#fff}
.sky-team-tier-badge.is-god>img{width:25px;height:22px;object-fit:contain}
.sky-team-tier-badge>b{color:#111;font-size:10px;font-weight:800;line-height:1}
.sky-team-tier-badge[role="button"]{cursor:pointer}
.sky-team-tier-badge:focus-visible{outline:2px solid #315a9f;outline-offset:2px}
#skyTeamTierInfoModal{place-items:center;z-index:2500}
#skyTeamTierInfoModal .sky-team-tier-info-content{width:min(calc(100% - 28px),400px);max-height:calc(100dvh - 32px);box-sizing:border-box;border-radius:20px;padding:20px;justify-items:stretch;text-align:left;gap:12px}
.sky-team-tier-info-content .modal-header{width:100%;gap:12px;margin:0;justify-content:space-between}
.sky-team-tier-info-content .modal-header h2{flex:1;min-width:0;text-align:left;font-size:1.15rem}
.sky-team-tier-info-content .modal-header .close-button{width:40px;height:40px;min-width:40px;flex:0 0 40px;padding:0}
.sky-team-tier-info-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;margin:0 0 12px;padding:12px;border:1px solid #cbd5e1;border-radius:10px}
.sky-team-tier-info-summary small{grid-column:1/-1;font-size:.76rem}
.sky-team-tier-info-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:5px}
.sky-team-tier-info-list li{display:grid;grid-template-columns:15px 34px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px 8px;border:1px solid transparent;border-radius:8px}
.sky-team-tier-info-list li.is-selected{border-color:currentColor}
.sky-team-tier-info-list img{width:34px;height:28px;object-fit:contain;background:#fff;border-radius:4px}
.sky-team-tier-info-list strong{font-size:.84rem}.sky-team-tier-info-list li>span:last-child{font-size:.74rem;white-space:nowrap}
.sky-team-tier-info-order{font-size:.72rem;text-align:center}.sky-team-tier-info-content .help-text{font-size:.76rem;margin:0}
.sky-team-lobby-ranking-card .sky-team-player-identity,#skyTeamPlayers .sky-team-player-identity{display:flex;align-items:center;gap:5px;min-width:0;overflow:visible;white-space:nowrap}
.sky-team-nickname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sky-team-tier-rp{font-size:.72rem;white-space:nowrap}.sky-team-player-record>span{display:flex;align-items:center;flex-wrap:wrap;gap:3px}
.sky-team-tier-result{display:grid;gap:8px;padding:12px;border-radius:12px;background:var(--surface,#edf3ff)}.sky-team-tier-result>strong{font-size:1.3rem}.sky-team-tier-result>div{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.sky-team-my-tier{display:grid;gap:8px;padding:12px}.sky-team-my-tier>span{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.sky-team-tier-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}#adminSkyTeamTierFields fieldset{min-width:0;margin:12px 0;border:1px solid #ccd7e7;border-radius:12px;padding:12px}
#skyTeamScorePreview,#skyTeamSavedScorePreview{white-space:normal;line-height:1.6}.sky-team-lobby-ranking-card .game-lobby-rank-row>span:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
#skyTeamSavedScorePreview{display:grid;gap:8px;font-size:.82rem}
.sky-team-rp-preview-player{display:grid;gap:2px;line-height:1.5}
.sky-team-rp-preview-player>b{font-size:.76rem;overflow-wrap:anywhere}
.sky-team-lobby-tiers{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.sky-team-lobby-tiers>span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
#skyTeamTierResultModal{place-items:center;z-index:2400}
#skyTeamTierResultModal .sky-team-tier-result-content{width:min(calc(100% - 28px),400px);max-height:calc(100dvh - 32px);box-sizing:border-box;border-radius:20px;padding:20px;justify-items:stretch;text-align:left;gap:12px}
.sky-team-tier-result-content .modal-header{width:100%;gap:12px;margin:0;justify-content:space-between}
.sky-team-tier-result-content .modal-header h2{flex:1;min-width:0;text-align:left;font-size:1.2rem}
.sky-team-tier-result-content .modal-header .close-button{width:40px;height:40px;min-width:40px;flex:0 0 40px;padding:0}
#skyTeamTierResultPanel{display:grid;justify-items:center;gap:9px;text-align:center;width:100%}
.sky-team-tier-result-hero{display:inline-flex;align-items:center;justify-content:center;gap:4px;background:#fff;border:1px solid #111;border-radius:8px;min-width:100px;padding:5px;color:#111}
.sky-team-tier-result-hero img{object-fit:contain;width:76px;height:64px}.sky-team-tier-result-hero b{font-size:20px;color:#111}
#skyTeamTierResultDelta{font-size:1.6rem;color:#315a9f}#skyTeamTierResultPanel[data-direction="down"] #skyTeamTierResultDelta{color:#b84545}
.sky-team-tier-gauge{width:100%;height:12px;overflow:hidden;border-radius:999px;background:#e2e8f0}
.sky-team-tier-gauge>span{display:block;width:100%;height:100%;background:#315a9f;transform-origin:left center;transform:scaleX(0);will-change:transform}
#skyTeamTierResultPanel[data-direction="down"] .sky-team-tier-gauge>span{background:#b84545}
#skyTeamTierResultRange{font-size:.74rem;line-height:1.5}#skyTeamTierResultChange{font-size:.84rem;margin:0}
#skyTeamTierResultPromotion{font-size:.9rem}#skyTeamTierResultExcluded:empty,#skyTeamTierResultMessage:empty{display:none}

/* Shared stone overlay: preserve stone size and last-move/dead markers. */
.board-stone-skin-mark { position:absolute; left:50%; top:50%; width:45%; height:45%; transform:translate(-50%,-50%); object-fit:contain; pointer-events:none; z-index:2; }
.omok-cell > .board-stone-skin-mark { width:34%; height:34%; z-index:1; }
.baduk-stone-skin-preview { position:relative; display:flex; align-items:center; justify-content:center; gap:22px; padding:25px 24px 48px; }
.baduk-stone-preview { position:relative; display:block; width:76px; height:76px; border-radius:50%; box-shadow:0 5px 12px #0004; }
.baduk-stone-preview.is-black { background:radial-gradient(circle at 32% 25%,#606773,#08090d 70%); }
.baduk-stone-preview.is-white { background:radial-gradient(circle at 32% 25%,#fff,#dfe2e8 80%); border:1px solid #9ba1a9; }
.baduk-stone-preview img { position:absolute; inset:27.5%; width:45%; height:45%; }
.baduk-stone-skin-preview b { position:absolute; bottom:12px; color:#fff4d8; font-size:.85rem; }
#badukGameScreen .baduk-point.is-last .baduk-stone::after { z-index:3; }

/* Character pieces replace the circular backing; board hit areas stay unchanged. */
#omokBoard .omok-cell:has(> .is-character-piece)::after { display:none; }
#omokBoard .omok-cell > .is-character-piece { width:86%; height:86%; }
#badukGameScreen .baduk-stone:has(> .is-character-piece) { background:none; border:0; box-shadow:none; }
#badukGameScreen .baduk-stone > .is-character-piece { width:105%; height:105%; }
.baduk-stone-preview.is-character-piece { background:none; border:0; box-shadow:none; }
.baduk-stone-preview.is-character-piece img { inset:0; width:100%; height:100%; }
#omokBoard .omok-cell:has(> .is-character-piece) .omok-move-number { padding:1px 3px; border-radius:4px; background:#152137db; color:white; }

.christmas-tree-entry-button { margin-bottom:20px; border-color:#d9c9a3; background:linear-gradient(105deg,#fffaf0,#f2f7f2); color:#28553b; box-shadow:0 5px 16px #263d2510; }
.christmas-tree-heading { align-items:center; }
.christmas-tree-search { display:flex; align-items:center; justify-content:flex-end; gap:7px; min-width:0; margin-left:auto; }
.christmas-tree-search input { width:min(32vw,190px); min-width:100px; height:42px; padding:0 11px; border:1px solid #d6dfeb; border-radius:12px; background:var(--surface,#fff); color:var(--text,#18243a); }
.christmas-tree-search button,.christmas-tree-ranking-button,.christmas-tree-owner-tools button,.christmas-tree-guestbook-heading button,#christmasTreeGuestbookForm button { min-height:42px; padding:0 15px; border:0; border-radius:12px; background:#315a9f; color:#fff; font-weight:800; }
.christmas-tree-ranking-button { flex:none; white-space:nowrap; }
#christmasTreeRankingModal { place-items:center; }
.christmas-tree-ranking-content { display:flex; flex-direction:column; width:min(calc(100% - 24px), 440px); overflow:hidden; border-radius:20px; }
.christmas-tree-ranking-content .modal-header { width:100%; gap:12px; margin:0 0 12px; }
.christmas-tree-ranking-content .modal-header h2 { text-align:left; }
.christmas-tree-ranking-content .modal-header .close-button { display:grid; place-items:center; flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; padding:0; line-height:1; }
.christmas-tree-ranking-content .history-status { color:inherit; margin:0; }
.christmas-tree-ranking-list { min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:0; padding:2px; list-style:none; }
.christmas-tree-ranking-list li { display:grid; grid-template-columns:minmax(2.75em, auto) minmax(0, 1fr) auto; align-items:center; gap:8px; padding:4px; border-top:1px solid; border-color:var(--border, #d6dfeb); }
.christmas-tree-ranking-nickname { justify-self:start; max-width:100%; min-height:44px; padding:0 3px; background:transparent; color:inherit; text-align:left; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.christmas-tree-ranking-list li span:last-child { white-space:nowrap; font-variant-numeric:tabular-nums; }
.christmas-tree-content { width:min(100%,760px); margin:8px auto 28px; }
.christmas-tree-owner-label { margin:12px 0; text-align:center; color:#315a9f; font-weight:800; }
.christmas-tree-toolbar { display:flex; align-items:center; justify-content:center; gap:10px; margin:12px auto; }
.christmas-tree-toolbar .christmas-tree-owner-label { margin:0; }
.christmas-tree-my-tree { min-height:36px; padding:0 12px; border:1px solid #bfd2f3; border-radius:999px; background:#edf4ff; color:#315a9f; font-size:.82rem; font-weight:800; white-space:nowrap; }
.christmas-tree-lock-notice { width:min(100%,430px); box-sizing:border-box; margin:0 auto 12px; padding:10px 14px; border:1px solid #d5e1f2; border-radius:12px; background:#edf3fc; color:#506b91; font-size:.9rem; line-height:1.4; text-align:center; }
.christmas-tree-change-style { min-height:36px; padding:0 12px; border:1px solid #bfd2f3; border-radius:999px; background:#edf4ff; color:#315a9f; font-size:.82rem; font-weight:800; }
.christmas-tree-scene { position:relative; width:min(100%,430px); min-height:380px; margin:0 auto 16px; overflow:hidden; isolation:isolate; border:1px solid #d8e2dc; border-radius:24px; background:radial-gradient(ellipse at 50% 48%,#eef8f0,#d9e9de 68%,#c9d9d0); box-shadow:0 15px 36px #253c2a1b; }
.christmas-tree-glow { position:absolute; inset:12% 14% 12%; border-radius:50%; background:#fff9df70; filter:blur(26px); }
.christmas-tree-svg { position:absolute; inset:2% 7% 2%; width:86%; height:96%; overflow:visible; }
.christmas-tree-model { transform-origin:150px 180px; }
.christmas-tree-star { fill:url(#treeStarGradient); stroke:#9d651e; stroke-width:2; stroke-linejoin:round; filter:drop-shadow(0 2px 2px #70420c80); }
.christmas-tree-base { fill:url(#treeTrunkGradient); stroke:#4b2b19; stroke-width:2; }
.christmas-tree-trunk-side { fill:#382318; opacity:.86; }
.christmas-tree-tier { fill:url(#treeNeedleGradient); stroke:#0d422a; stroke-width:3; stroke-linejoin:round; }
.christmas-tree-tier-light { fill:url(#treeNeedleLight); stroke:#b1dc8c; stroke-width:1.3; stroke-linejoin:round; opacity:.94; }
.christmas-tree-tier-shade { fill:url(#treeNeedleShade); stroke:#082d20; stroke-width:1.5; stroke-linejoin:round; }
.christmas-tree-ground { fill:#304c38; stroke:#fdf5df; stroke-width:3; }
.christmas-tree-scene[data-tree-style="snow"] { background:radial-gradient(ellipse at 50% 42%,#f4fbff,#d6e6ef 70%,#c2d5df); }
.christmas-tree-scene[data-tree-style="snow"] .christmas-tree-tier { fill:#537c89; stroke:#355c68; }
.christmas-tree-scene[data-tree-style="snow"] .christmas-tree-tier-light { fill:#b7e0e3; stroke:#e9ffff; }
.christmas-tree-scene[data-tree-style="snow"] .christmas-tree-tier-shade { fill:#294f62; stroke:#203f51; }
.christmas-tree-scene[data-tree-style="berry"] { background:radial-gradient(ellipse at 50% 42%,#fff6f2,#f2deda 70%,#e5cbc7); }
.christmas-tree-scene[data-tree-style="berry"] .christmas-tree-tier { fill:#8a3543; stroke:#642631; }
.christmas-tree-scene[data-tree-style="berry"] .christmas-tree-tier-light { fill:#d67e72; stroke:#f0b7a1; }
.christmas-tree-scene[data-tree-style="berry"] .christmas-tree-tier-shade { fill:#542431; stroke:#3c1b28; }
.christmas-tree-scene[data-tree-style="snow"] { background:radial-gradient(ellipse at 50% 12%,#fbfeff,#dbeaf3 72%,#cedfe8); }
.christmas-tree-layers[data-tree-style="snow"] .christmas-tree-layer-image { filter:saturate(.68) hue-rotate(142deg) brightness(1.12); }
.christmas-tree-scene[data-tree-style="berry"] { background:radial-gradient(ellipse at 50% 12%,#fff8f2,#f6e4dc 72%,#efd7d2); }
.christmas-tree-layers[data-tree-style="berry"] .christmas-tree-layer-image { filter:saturate(.88) hue-rotate(190deg) brightness(.94); }
.christmas-tree-scene[data-tree-style="frost"] { background:radial-gradient(ellipse at 50% 12%,#f7fcff,#dceaf4 66%,#c8d9e7); }
[data-tree-style="halloween"] {
  --tree-theme-glow:#8f50ba;
  --tree-theme-sky:#35214e;
  --tree-theme-ground:#171422;
  --tree-theme-details:radial-gradient(ellipse at 86% 82%,#b260643d,transparent 38%);
}
[data-tree-style="skull"] {
  --tree-theme-glow:#9faeac;
  --tree-theme-sky:#3b464c;
  --tree-theme-ground:#171a20;
  --tree-theme-details:radial-gradient(ellipse at 50% 95%,#d4dfd657,transparent 55%), radial-gradient(ellipse at 18% 54%,#e2f2ea36,transparent 43%);
}
[data-tree-style="inferno"] {
  --tree-theme-glow:#a73b1f;
  --tree-theme-sky:#3b151a;
  --tree-theme-ground:#1e1013;
  --tree-theme-details:radial-gradient(ellipse at 45% 105%,#e3441ea8,transparent 45%), radial-gradient(ellipse at 3% 76%,#fe611862,transparent 31%);
}
[data-tree-style="biker"] {
  --tree-theme-glow:#39969d;
  --tree-theme-sky:#253c49;
  --tree-theme-ground:#171b23;
  --tree-theme-details:radial-gradient(ellipse at 50% 98%,#b2864866,transparent 50%);
}
:is(.christmas-tree-scene.is-growing-tree,.christmas-tree-style-preview):is([data-tree-style="halloween"],[data-tree-style="skull"],[data-tree-style="inferno"],[data-tree-style="biker"]) {
  background:var(--tree-theme-details),radial-gradient(ellipse at 50% 28%,var(--tree-theme-glow),transparent 66%),linear-gradient(var(--tree-theme-sky),var(--tree-theme-ground));
}
.christmas-tree-emblem { position:absolute; inset:0; }
.christmas-tree-emblem::before,.christmas-tree-emblem::after { content:""; position:absolute; }
[data-tree-style="halloween"] .christmas-tree-emblem::before {
  inset:23% 1% 7%; border-radius:44% 44% 39% 39%;
  background:radial-gradient(ellipse at 45% 14%,#ffd263,transparent 50%),linear-gradient(90deg,#a83d20,#f78324 17%,#c34c1b 28%,#f98a29 39%,#fca438 61%,#bc481b 73%,#f78724 82%,#a13917);
  box-shadow:inset 0 -2px 3px #952e2166,0 0 3px #fda43a88;
}
[data-tree-style="halloween"] .christmas-tree-emblem::after {
  inset:7% 12% 18%; background:linear-gradient(#728e44 0 31%,#452328 32% 62%,#642b25 70%);
  clip-path:polygon(45% 0,61% 0,57% 31%,45% 31%,45% 0,8% 47%,33% 66%,8% 66%,8% 47%,45% 0,92% 47%,92% 66%,67% 66%,92% 47%,45% 0,16% 76%,38% 82%,43% 78%,58% 78%,63% 82%,84% 76%,70% 95%,50% 100%,30% 95%,16% 76%,45% 0);
}
[data-tree-style="skull"] .christmas-tree-emblem::before {
  inset:9% 9% 22%; border-radius:47% 47% 40% 40%;
  background:radial-gradient(ellipse at 29% 57%,#1d242a 0 13%,transparent 15%),radial-gradient(ellipse at 71% 57%,#1d242a 0 13%,transparent 15%),radial-gradient(ellipse at 50% 73%,#1d242a 0 7%,transparent 9%),radial-gradient(ellipse at 44% 13%,#fffdf0,#c8c0ae 64%,#777c7a);
}
[data-tree-style="skull"] .christmas-tree-emblem::after {
  inset:72% 27% 6%; border-radius:0 0 20% 20%;
  background:repeating-linear-gradient(90deg,#e4dac4 0 19%,#817d73 20% 24%,#e4dac4 25%); box-shadow:inset 0 -2px 3px #64685b6b;
}
[data-tree-style="inferno"] .christmas-tree-emblem { filter:drop-shadow(0 0 2px #ec602b); }
[data-tree-style="inferno"] .christmas-tree-emblem::before {
  inset:0 3% 2%; background:linear-gradient(#fff59e,#fca02f 38%,#ed4e27 75%,#a5211c);
  clip-path:polygon(52% 0,65% 22%,66% 42%,79% 34%,91% 60%,91% 78%,79% 93%,55% 100%,25% 94%,9% 75%,12% 51%,27% 29%,30% 54%,46% 35%);
}
[data-tree-style="inferno"] .christmas-tree-emblem::after {
  inset:34% 20% 6%; background:linear-gradient(#fffbe4,#ffe37f 50%,#ffae39);
  clip-path:polygon(62% 0,70% 32%,88% 54%,82% 84%,56% 100%,29% 92%,11% 68%,30% 42%,35% 62%);
}
[data-tree-style="biker"] .christmas-tree-emblem::before {
  inset:11% 2% 6%; background:linear-gradient(155deg,#e9f6f6,#648995 31%,#213341 42%,#46636e 53%,#c4e0e2 70%,#3d5561);
  clip-path:polygon(0 25%,19% 25%,29% 5%,71% 5%,81% 25%,100% 25%,92% 53%,74% 64%,65% 87%,50% 100%,35% 87%,26% 64%,8% 53%);
}
[data-tree-style="biker"] .christmas-tree-emblem::after {
  inset:21% 30% 17%; background:linear-gradient(#fff6c1,#e9b04d 72%,#d78134);
  clip-path:polygon(50% 0,100% 0,62% 40%,91% 40%,24% 100%,42% 53%,11% 53%);
}
.christmas-tree-theme { position:absolute; inset:0; pointer-events:none; mask:var(--tree-foliage) center / 100% 100% no-repeat; opacity:.85; }
.christmas-tree-theme-mark { position:absolute; aspect-ratio:1; transform:translate(-50%,-50%); filter:drop-shadow(0 1px 1px #06050bc9); }
.christmas-tree-theme-mark::before,.christmas-tree-theme-mark::after,.christmas-tree-theme-mark > i { position:absolute; }
.christmas-tree-theme-mark.is-bat { transform:translate(-50%,-50%) rotate(-13deg); }
.christmas-tree-theme-mark.is-bat:nth-child(even) { transform:translate(-50%,-50%) rotate(15deg) scaleX(-1); }
.christmas-tree-theme-mark.is-bat::before {
  content:""; inset:14% 0; background:linear-gradient(#9c7fc7,#4c335f 46%,#20142e);
  clip-path:polygon(0 5%,14% 21%,28% 22%,40% 45%,45% 23%,49% 34%,54% 34%,58% 23%,62% 45%,73% 22%,86% 21%,100% 5%,94% 59%,86% 51%,76% 55%,70% 73%,62% 64%,57% 79%,51% 96%,45% 79%,40% 64%,31% 73%,24% 55%,14% 51%,6% 59%);
}
.christmas-tree-theme-mark.is-bat::after { content:""; inset:48% 42% 39%; background:radial-gradient(circle at 24% 50%,#ffd785 0 19%,transparent 25%),radial-gradient(circle at 76% 50%,#ffd785 0 19%,transparent 25%); }
.christmas-tree-theme-mark.is-bone::before,.christmas-tree-theme-mark.is-bone::after {
  content:""; inset:36% 0; border-radius:35%;
  background:radial-gradient(ellipse at 11% 25%,#fff6e3 0 11%,transparent 13%),radial-gradient(ellipse at 89% 25%,#fff6e3 0 11%,transparent 13%),radial-gradient(ellipse at 11% 75%,#d8c6a8 0 11%,transparent 13%),radial-gradient(ellipse at 89% 75%,#d8c6a8 0 11%,transparent 13%),linear-gradient(#fff3d8,#a99071) center / 80% 40% no-repeat;
  transform:rotate(38deg);
}
.christmas-tree-theme-mark.is-bone::after { transform:rotate(-38deg); }
.christmas-tree-theme-mark.is-blood::before {
  content:""; inset:12% 3% 2%; background:linear-gradient(132deg,#ffc38c 3%,#cf2c3a 32%,#931325 55%,#470913 90%);
  clip-path:polygon(0 23%,13% 9%,30% 18%,40% 4%,56% 13%,73% 6%,87% 16%,100% 9%,91% 36%,79% 35%,75% 65%,70% 78%,64% 64%,62% 41%,51% 42%,46% 86%,42% 98%,35% 86%,34% 47%,24% 46%,21% 70%,15% 78%,10% 70%,10% 45%);
}
.christmas-tree-theme-mark.is-motorcycle::before {
  content:""; inset:16% 0 8%;
  background:radial-gradient(circle at 19% 73%,#e3eeee 0 7%,#546575 8% 10%,#131920 11% 16%,#9fb4be 17% 19%,transparent 20%),radial-gradient(circle at 81% 73%,#e3eeee 0 7%,#546575 8% 10%,#131920 11% 16%,#9fb4be 17% 19%,transparent 20%);
}
.christmas-tree-theme-mark.is-motorcycle::after {
  content:""; inset:24% 11% 15%;
  background:linear-gradient(#fff0ba 0 20%,#e87a49 21% 47%,#a53327 48% 57%,#dce9e9 58% 70%,#354b56 72%);
  clip-path:polygon(0 31%,25% 39%,44% 28%,62% 24%,80% 43%,85% 20%,100% 15%,100% 28%,91% 30%,86% 49%,100% 80%,94% 86%,74% 60%,58% 94%,31% 94%,19% 77%,0 84%,0 74%,15% 62%,32% 70%,47% 65%,35% 52%,4% 50%);
}
.christmas-tree-theme-mark.is-chain::before,.christmas-tree-theme-mark.is-chain::after,.christmas-tree-theme-mark.is-chain > i {
  content:""; width:43%; height:31%; border:2px solid #b6ced2; border-radius:36%;
  left:7%; top:50%; transform:rotate(-34deg); box-shadow:inset 0 0 0 1px #445660;
}
.christmas-tree-theme-mark.is-chain > i { left:29%; top:38%; border-color:#e6f0ef; }
.christmas-tree-theme-mark.is-chain::after { left:51%; top:26%; }
.christmas-tree-style-choices { display:grid; grid-template-columns:minmax(0,1fr); justify-items:stretch; align-self:stretch; box-sizing:border-box; width:100%; min-width:0; gap:10px; margin:14px 0 0; }
.christmas-tree-style-option { display:grid; grid-template-columns:72px minmax(0,1fr) auto; align-items:center; gap:12px; box-sizing:border-box; width:100%; min-width:0; min-height:90px; padding:8px 12px; border:1px solid #d5dfeb; border-radius:15px; background:var(--surface,#fff); color:var(--text,#18243a); text-align:left; }
.christmas-tree-style-option.is-active { border-color:#315a9f; background:#edf4ff; box-shadow:inset 0 0 0 1px #315a9f; }
.christmas-tree-style-option:disabled { opacity:1; }
.christmas-tree-style-option > span:nth-child(2) { display:grid; gap:4px; min-width:0; }
.christmas-tree-style-option small { color:#708198; }
.christmas-tree-style-option > b { color:#315a9f; font-size:.72rem; white-space:nowrap; }
.christmas-tree-style-preview { position:relative; display:grid; place-items:center; box-sizing:border-box; width:72px; height:74px; overflow:hidden; border-radius:12px; background:linear-gradient(#f3f8f3,#dbe9dd); }
.christmas-tree-style-preview.is-snow,.christmas-tree-style-preview.is-frost { background:linear-gradient(#f2fbff,#d6e8f4); }
.christmas-tree-style-preview.is-berry { background:linear-gradient(#fff4ee,#f1d6d0); }
.christmas-tree-style-preview img { width:100%; height:100%; object-fit:contain; }
.christmas-tree-preview-canopy { position:relative; height:100%; max-width:100%; aspect-ratio:640 / 767; }
.christmas-tree-style-preview .christmas-tree-theme-mark.is-chain::before,.christmas-tree-style-preview .christmas-tree-theme-mark.is-chain::after,.christmas-tree-style-preview .christmas-tree-theme-mark.is-chain > i { border-width:1px; box-shadow:none; }
.christmas-tree-style-preview.is-snow img { filter:saturate(.68) hue-rotate(142deg) brightness(1.12); }
.christmas-tree-style-preview.is-berry img { filter:saturate(.88) hue-rotate(190deg) brightness(.94); }
.christmas-tree-style-cost { font-weight:700; }
#christmasTreeStyleModal { align-items:end; justify-items:center; padding:0; }
#christmasTreeStyleModal > .notice-content { display:flex; flex-direction:column; align-items:stretch; box-sizing:border-box; width:min(100%,540px); max-height:90dvh; overflow:auto; margin:0; border-radius:24px 24px 0 0; padding:22px 18px max(22px,env(safe-area-inset-bottom)); text-align:left; }
#christmasTreeStyleModal .modal-header { display:flex; width:100%; justify-content:space-between; align-items:center; gap:12px; margin-bottom:0; padding-bottom:12px; border-bottom:1px solid #e2e8f0; }
#christmasTreeStyleModal .modal-header h2 { text-align:left; font-size:1.1rem; }
#christmasTreeStyleModal .modal-header .close-button { flex:0 0 40px; width:40px; height:40px; padding:0; }
@media (max-width:360px) {
  #christmasTreeStyleModal > .notice-content { padding-right:14px; padding-left:14px; }
  .christmas-tree-style-option { grid-template-columns:60px minmax(0,1fr) auto; gap:8px; padding:8px; }
  .christmas-tree-style-preview { width:60px; height:68px; }
  .christmas-tree-style-option > b { font-size:.65rem; }
}
.christmas-tree-decorations { position:absolute; inset:0; }
.christmas-tree-ornament { position:absolute; left:var(--ornament-x); top:var(--ornament-y); display:grid; place-items:center; width:25px; height:25px; transform:translate(-50%,-50%); border:2px solid #fff9e5; border-radius:50%; background:radial-gradient(circle at 32% 28%,#fff8,#0000 55%),#c7473e; color:#fff8de; font-size:15px; line-height:1; filter:drop-shadow(0 3px 3px #13281965); }
.christmas-tree-ornament.is-gold,.christmas-tree-ornament.is-star { background:#dfa928; color:#fff5bc; }
.christmas-tree-ornament.is-blue { background:#4389bd; }
.christmas-tree-ornament.is-candy { border-radius:8px; background:#fff5df; color:#c53b42; }
.christmas-tree-ornament.is-bell { border-radius:9px 9px 13px 13px; background:#d5aa45; color:#fff7cf; }
.christmas-tree-owner-tools { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; margin:0 auto 22px; }
.christmas-tree-owner-tools button:disabled { opacity:.45; }
.christmas-tree-guestbook { margin:18px 0 28px; padding:18px; border:1px solid #d8e2e9; border-radius:18px; background:var(--surface,#fff); box-shadow:0 8px 25px #1a2c4110; }
.christmas-tree-guestbook-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.christmas-tree-guestbook-heading h3 { margin:3px 0 0; }
.christmas-tree-guestbook-heading button { flex-shrink:0; }
.christmas-tree-guestbook > .help-text { margin:12px 0; }
.christmas-tree-guestbook-list { display:grid; gap:9px; }
.christmas-tree-guestbook-locked,.christmas-tree-note { margin:0; padding:13px 14px; border-radius:13px; background:#f4f7fa; color:#53647a; }
.christmas-tree-note p { margin:0 0 8px; color:#26374d; white-space:pre-wrap; overflow-wrap:anywhere; }
.christmas-tree-note small { color:#76869a; }
#christmasTreeGuestbookForm { display:grid; gap:10px; }
#christmasTreeGuestbookForm textarea { width:100%; min-height:112px; resize:vertical; padding:12px; border:1px solid #d4deeb; border-radius:12px; background:var(--surface,#fff); color:var(--text,#18243a); }
#christmasTreeGuestbookForm small { color:#73839a; line-height:1.5; }
#christmasTreeGuestbookForm button { width:100%; }
@media(max-width:560px) {
  .christmas-tree-heading { display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:8px; align-items:center; }
  .christmas-tree-ranking-button { grid-column:3; grid-row:1; }
  .christmas-tree-heading > div { min-width:0; }
  .christmas-tree-heading h2 { font-size:1.25rem; }
  .christmas-tree-search { grid-column:1/-1; width:100%; justify-content:stretch; }
  .christmas-tree-search input { width:auto; flex:1; min-width:0; }
  .christmas-tree-scene { min-height:350px; border-radius:20px; }
  .christmas-tree-owner-tools { display:grid; grid-template-columns:1fr 1fr; }
  .christmas-tree-owner-tools button:first-child { grid-column:1/-1; }
  .christmas-tree-guestbook { padding:15px; }
}

/* Christmas guestbook ornaments */
.christmas-tree-scene { aspect-ratio:1; min-height:0; background:#fff; }
.christmas-tree-scene .christmas-tree-glow { display:none; }
.christmas-tree-art { display:block; width:100%; height:100%; object-fit:contain; }
.christmas-tree-decorations { pointer-events:none; }
.christmas-tree-ornament { width:32px; height:32px; padding:0; border:0; background:none!important; font-size:26px; filter:drop-shadow(0 2px 2px #162d3477); }
.christmas-tree-ornament img { display:block; width:100%; height:100%; object-fit:contain; }
button.christmas-tree-ornament { pointer-events:auto; cursor:pointer; outline:2px dashed #fff8; outline-offset:2px; }
.christmas-tree-owner-tools button:disabled { opacity:.6; cursor:default; }
.christmas-tree-share { width:100%; min-height:48px; border-radius:14px; border:1px solid #bfd2f3; background:#edf4ff; color:#244f93; font-weight:800; margin-bottom:20px; }
.christmas-tree-copy-status { margin:-10px 0 20px; text-align:center; }
#christmasTreeGuestbookModal { align-items:end; justify-items:center; padding:0; }
#christmasTreeGuestbookModal > .notice-content { display:flex; flex-direction:column; width:min(100%,540px); max-height:90dvh; overflow:hidden; margin:0; border-radius:24px 24px 0 0; padding:22px 22px max(22px,env(safe-area-inset-bottom)); text-align:left; }
#christmasTreeGuestbookModal .modal-header { display:flex; flex:0 0 auto; width:100%; justify-content:space-between; align-items:center; gap:12px; margin-bottom:0; padding-bottom:12px; border-bottom:1px solid #e2e8f0; }
#christmasTreeGuestbookModal .modal-header h2 { text-align:left; font-size:1.1rem; }
#christmasTreeGuestbookModal .modal-header .close-button { flex:0 0 40px; width:40px; height:40px; padding:0; }
.christmas-ornament-picker { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; border:0; padding:0; margin:4px 0 12px; }
.christmas-ornament-picker legend { font-weight:700; margin-bottom:10px; }
.christmas-ornament-picker label { position:relative; display:grid; justify-items:center; gap:4px; padding:10px 5px; border:1px solid #d6dfeb; border-radius:12px; cursor:pointer; }
.christmas-ornament-picker label:has(input:checked) { border-color:#315a9f; background:#edf4ff; box-shadow:inset 0 0 0 1px #315a9f; }
.christmas-ornament-picker input { position:absolute; opacity:0; width:1px; height:1px; }
.christmas-ornament-picker label:focus-within { outline:2px solid #315a9f; }
.christmas-ornament-picker span { font-size:28px; }
@media(max-width:560px) { .christmas-tree-scene { min-height:0; } }

#christmasTreeNoteModal { align-items:end; justify-items:center; padding:0; }
#christmasTreeNoteModal > .notice-content { width:min(100%,540px); max-height:85dvh; overflow:auto; margin:0; border-radius:24px 24px 0 0; padding:22px 22px max(22px,env(safe-area-inset-bottom)); text-align:left; }
#christmasTreeNoteModal .modal-header { display:flex; width:100%; justify-content:space-between; align-items:center; gap:12px; }
#christmasTreeNoteModal .modal-header h2 { text-align:left; font-size:1.1rem; }
#christmasTreeNoteModal .close-button { flex:0 0 40px; width:40px; height:40px; padding:0; }
.christmas-tree-note-icon { display:grid; place-items:center; margin:16px 0; }
.christmas-tree-note-icon img { display:block; width:64px; height:64px; object-fit:contain; }
#christmasTreeNoteBody { margin:0 0 12px; padding:16px; border:1px solid #eadfc8; border-radius:14px; background:linear-gradient(145deg,#fffaf0,#f7faff); color:#26374d; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
#christmasTreeNoteAuthor { display:flex; align-items:center; gap:9px; margin:0; padding:10px 12px; border-radius:10px; background:#eef3f8; color:#536b86; font-size:.88rem; }
#christmasTreeNoteAuthor::before { content:"작성자"; padding-right:9px; border-right:1px solid #cbd6e2; color:#315a9f; font-size:.78rem; font-weight:800; }
#christmasTreeNoteAuthor:empty { display:none; }
#christmasTreeNoteDelete { width:100%; margin-top:16px; }
button.christmas-tree-ornament { outline:0; }
button.christmas-tree-ornament:focus-visible { outline:2px solid #315a9f; }

.christmas-tree-entry-panel { margin:18px 0; padding:18px; border:1px solid #d8e2e9; border-radius:18px; background:var(--surface,#fff); }
.christmas-tree-entry-panel h3 { margin:0 0 16px; }
#christmasTreeGuestbookForm .christmas-tree-style-select { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid #bfd2f3; background:#edf4ff; color:#244f93; text-align:left; }
.christmas-tree-style-select > img:first-child { flex:0 0 32px; width:32px; height:32px; object-fit:contain; }
.christmas-tree-style-select span:last-child { margin-left:auto; font-size:.85rem; }
.christmas-tree-written { margin:0; padding:16px; border-radius:12px; background:#edf4ff; color:#315a9f; text-align:center; font-weight:700; }

body[data-current-screen="christmas-tree"] .bottom-nav { display:none; }

#christmasTreeGuestbookModal .christmas-ornament-picker { width:100%; min-width:0; box-sizing:border-box; justify-self:stretch; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0 0; }
#christmasTreeGuestbookModal .christmas-ornament-picker label { min-width:0; min-height:94px; align-content:center; padding:14px 6px; text-align:center; }
#christmasTreeGuestbookModal .christmas-ornament-picker small { overflow-wrap:anywhere; }
@media(max-width:320px) { #christmasTreeGuestbookModal .christmas-ornament-picker { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } }

.christmas-tree-scene.is-growing-tree { aspect-ratio:auto; min-height:0; background:radial-gradient(ellipse at 50% 12%,#fffdf2,#f7eedb); }
.christmas-tree-vector { display:block; width:100%; height:100%; overflow:visible; }
.is-growing-tree .christmas-tree-ornament { width:10%; height:auto; min-width:0; min-height:0; aspect-ratio:1; font-size:29px; }

.christmas-tree-layers { position:absolute; inset:0; pointer-events:none; isolation:isolate; }
.christmas-tree-layer-image { position:absolute; display:block; height:auto; max-width:none; user-select:none; }
.christmas-tree-layer-shadow { position:absolute; bottom:15px; left:23%; width:54%; height:14px; border-radius:50%; background:#9c815b38; filter:blur(5px); }

.christmas-ornament-store { flex:1 1 auto; width:100%; min-width:0; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.christmas-ornament-store h3 { margin:20px 0 12px; font-size:.95rem; }
.christmas-ornament-balance { padding:12px; border-radius:12px; background:#fff7df; color:#805d15!important; font-weight:800; }
.christmas-ornament-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.christmas-store-ornament { display:flex; flex-direction:column; min-width:0; border:1px solid #d6dfeb; border-radius:13px; overflow:hidden; }
.christmas-store-ornament.is-selected { border-color:#315a9f; box-shadow:inset 0 0 0 1px #315a9f; background:#edf4ff; }
#christmasTreeGuestbookModal .christmas-store-select { display:grid; flex:1; align-content:center; justify-items:center; gap:6px; width:100%; min-height:112px; margin:0; padding:12px 5px; border:0; border-radius:0; background:transparent; color:var(--text,#17314f); }
.christmas-store-select > span { display:grid; width:58px; height:58px; place-items:center; }
.christmas-store-select img { display:block; width:100%; height:100%; object-fit:contain; }
.christmas-store-select strong { font-size:.78rem; overflow-wrap:anywhere; }
.christmas-store-select small { font-size:.73rem; color:#627a97; }
#christmasTreeGuestbookModal .christmas-store-buy { width:100%; min-height:48px; margin:0; padding:7px 4px; border:0; border-top:1px solid #d6dfeb; border-radius:0; background:#edf4ff; color:#244f93; font-size:.72rem; line-height:1.5; }
.christmas-store-select:disabled,.christmas-store-buy:disabled { opacity:.48; cursor:default; }
#memberHomeScreen .christmas-tree-entry-button,
html[data-theme="light"] #memberHomeScreen .christmas-tree-entry-button { border-color:#add3b8; background:linear-gradient(105deg,#e6f4e9,#f3faf3); color:#24633d; box-shadow:0 5px 16px #285c3310; }
#memberHomeScreen .christmas-tree-entry-button span:first-child { color:inherit; }
html[data-theme="dark"] #memberHomeScreen .christmas-tree-entry-button { border-color:#437c51; background:linear-gradient(105deg,#203d2b,#294d35); color:#d3f2d7; }
#memberHomeScreen .christmas-tree-entry-button:focus-visible { outline:2px solid #4a9863; outline-offset:3px; }

/* Christmas text and surfaces must use the same theme, including picker states. */
html[data-theme="dark"] .christmas-tree-entry-panel,
html[data-theme="dark"] .christmas-tree-guestbook,
html[data-theme="dark"] .christmas-tree-style-option { background:#1a2230; border-color:#40516a; color:#edf3fc; }
html[data-theme="dark"] #christmasTreeEntryTitle,
html[data-theme="dark"] .christmas-tree-guestbook-heading h3,
html[data-theme="dark"] #christmasTreeGuestbookForm > label,
html[data-theme="dark"] .christmas-ornament-store h3 { color:#edf3fc; }
html[data-theme="dark"] .christmas-tree-owner-label,
html[data-theme="dark"] .christmas-tree-style-option > b { color:#b7d1fa; }
html[data-theme="dark"] #christmasTreeGuestbookForm small,
html[data-theme="dark"] .christmas-tree-style-option small,
html[data-theme="dark"] .christmas-tree-note small,
html[data-theme="dark"] .christmas-store-select small { color:#b8c7dc; }
html[data-theme="dark"] .christmas-tree-search input,
html[data-theme="dark"] #christmasTreeGuestbookInput { background:#131b28; border-color:#40516a; color:#edf3fc; }
html[data-theme="dark"] .christmas-tree-search input::placeholder,
html[data-theme="dark"] #christmasTreeGuestbookInput::placeholder { color:#aabbd0; opacity:1; }
html[data-theme="dark"] .christmas-tree-my-tree,
html[data-theme="dark"] .christmas-tree-change-style,
html[data-theme="dark"] .christmas-tree-lock-notice,
html[data-theme="dark"] .christmas-tree-share,
html[data-theme="dark"] .christmas-tree-written,
html[data-theme="dark"] #christmasTreeGuestbookForm .christmas-tree-style-select,
html[data-theme="dark"] #christmasTreeGuestbookModal .christmas-store-buy { background:#243d5c; border-color:#536e94; color:#dfecff; }
html[data-theme="dark"] .christmas-tree-note,
html[data-theme="dark"] .christmas-tree-guestbook-locked,
html[data-theme="dark"] #christmasTreeNoteAuthor { background:#243247; color:#c4d4e8; }
html[data-theme="dark"] .christmas-tree-note p { color:#edf3fc; }
html[data-theme="dark"] #christmasTreeNoteAuthor::before { color:#b7d1fa; border-color:#536e94; }
html[data-theme="dark"] .christmas-store-ornament { background:#1a2230; border-color:#40516a; }
html[data-theme="dark"] #christmasTreeGuestbookModal .christmas-store-select { color:#edf3fc; }
html[data-theme="dark"] .christmas-store-ornament.is-selected,
html[data-theme="dark"] .christmas-tree-style-option.is-active,
html[data-theme="dark"] .christmas-ornament-picker label:has(input:checked) { background:#243d5c; border-color:#91baff; color:#edf3fc; box-shadow:inset 0 0 0 1px #91baff; }
@media(max-width:320px) { .christmas-ornament-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Bomber action numbers and persistent bomb switches. */
#skyTeamCockpit .sky-team-gunner-action .sky-team-placed-die.is-gunner-die { width:auto; height:auto; min-height:0; aspect-ratio:auto; border:0; border-radius:0; background:transparent !important; box-shadow:none; outline:none; font-size:1.35rem !important; }
#skyTeamCockpit .sky-team-gunner-action.is-bomb-action { position:relative; margin-bottom:24px; }
#skyTeamCockpit .sky-team-gunner-action.is-complete:disabled { opacity:.5; cursor:not-allowed; }
#skyTeamCockpit .sky-team-gunner-action .sky-team-equipment-toggle { bottom:-22px; width:min(90%,36px); height:18px; }
#skyTeamCockpit .sky-team-gunner-action .sky-team-equipment-toggle i { width:14px; height:14px; left:calc(100% - 16px); }
#skyTeamCockpit .sky-team-gunner-action.is-complete .sky-team-equipment-toggle i { left:1px; }

#skyTeamCockpit .sky-team-bomb-action-cell { width:100%; min-width:0; display:flex; flex-direction:column; gap:3px; align-items:center; }
#skyTeamCockpit .sky-team-bomb-action-label { display:block; width:100%; color:#173c50; font-size:clamp(9px,1.8vw,11px); font-weight:700; line-height:1.3; text-align:center; word-break:keep-all; }
#skyTeamCockpit .sky-team-bomb-requirement { display:block; font-size:clamp(15px,3vw,22px); font-weight:800; white-space:nowrap; line-height:1; }

.sky-team-realtime-countdown { display:inline-block; margin-left:4px; padding:2px 6px; border-radius:6px; background:#e8f0ff; color:#244d8c; font-size:12px; font-weight:800; white-space:nowrap; }
.sky-team-realtime-countdown.is-urgent { color:#ba2424; background:#fff0ed; }
.sky-team-approach-cell { container-type:inline-size; }
.sky-team-approach-cell .sky-team-rush-cubes { display:block; position:absolute; top:3px; left:2px; right:auto; z-index:2; max-width:calc(100% - 4px); text-align:left; font-size:min(12px,24cqw); line-height:1.2; font-style:normal; letter-spacing:0; }
.sky-team-approach-cell .sky-team-traffic-stack { position:absolute; bottom:4px; left:auto; right:2px; z-index:1; width:calc(100% - 4px); max-height:calc(100% - 8px); display:flex; flex-direction:column; flex-wrap:wrap-reverse; align-content:flex-start; align-items:flex-end; gap:1px; pointer-events:none; }
.sky-team-approach-cell .sky-team-traffic-stack i { position:static; flex:0 0 auto; width:min(20px,42cqw); height:min(20px,42cqw); aspect-ratio:1; filter:drop-shadow(0 1px 1px rgba(15,40,60,.85)); }
.sky-team-approach-cell .sky-team-turn-marker { z-index:5; }
#skyTeamCockpit .sky-team-approach-cell .sky-team-alarm-marker { top:auto; right:auto; bottom:4px; left:2px; width:min(20px,23cqw); font-size:min(13px,20cqw); transform:none; }
/* 큐브와 경보의 좌측 공간을 분리하고 좁은 칸에서는 큐브를 두 줄로 표시합니다. */
.sky-team-approach-cell .sky-team-rush-cubes { display:flex; gap:1px; }
.sky-team-approach-cell .sky-team-rush-cubes > span { display:block; color:inherit; font:inherit; line-height:1; }
.sky-team-approach-cell:has(.sky-team-alarm-marker) .sky-team-rush-cubes { top:20px; width:45%; max-width:24px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; font-size:min(10px,20cqw); line-height:1; }
#skyTeamCockpit .sky-team-approach-cell:has(.sky-team-rush-cubes) .sky-team-alarm-marker { bottom:4px; width:min(16px,22cqw); font-size:min(12px,20cqw); }
/* 접근 트랙: 좌측 경보 / 중앙 하단 교통 큐브 / 우측 항공기 */
#skyTeamCockpit .sky-team-approach-cell .sky-team-alarm-marker,
#skyTeamCockpit .sky-team-approach-cell:has(.sky-team-rush-cubes) .sky-team-alarm-marker { top:50%; bottom:auto; left:2px; right:auto; width:min(18px,25cqw); font-size:min(13px,22cqw); transform:translateY(-50%); }
.sky-team-approach-cell .sky-team-rush-cubes,
.sky-team-approach-cell:has(.sky-team-alarm-marker) .sky-team-rush-cubes { top:auto; bottom:3px; left:50%; right:auto; width:auto; max-width:40%; display:flex; flex-direction:column; align-items:center; gap:1px; transform:translateX(-50%); font-size:min(11px,23cqw); line-height:1; }
.sky-team-approach-cell .sky-team-traffic-stack { top:50%; bottom:auto; right:2px; left:auto; width:23%; max-height:calc(100% - 8px); transform:translateY(-50%); }
.sky-team-approach-cell .sky-team-traffic-stack i { width:min(15px,23cqw); height:min(15px,23cqw); }

.sky-team-ranking-title-button { display:inline; width:auto; min-height:0; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; text-align:left; box-shadow:none; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
#skyTeamFullRankingModal { place-items:center; padding:12px; box-sizing:border-box; }
#skyTeamFullRankingModal .modal-content { width:min(100%,640px); box-sizing:border-box; border-radius:20px; padding:20px; justify-items:stretch; text-align:left; overflow:hidden; display:flex; flex-direction:column; }
#skyTeamFullRankingModal .modal-header { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; flex:none; }
#skyTeamFullRankingModal h2 { flex:1; min-width:0; font-size:clamp(18px,4.5vw,24px); text-align:left; }
#skyTeamFullRankingModal .close-button { width:40px; height:40px; min-width:40px; min-height:40px; flex:0 0 40px; padding:0; }
#skyTeamFullRankingDescription { font-size:.85rem; flex:none; }
#skyTeamFullRankingBody { min-height:0; overflow-y:auto; width:100%; }
.sky-team-full-ranking-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:clamp(11px,2.8vw,14px); }
.sky-team-full-ranking-table th,.sky-team-full-ranking-table td { padding:10px 4px; border-bottom:1px solid var(--border,#dfe7f3); text-align:left; overflow-wrap:anywhere; }
.sky-team-full-ranking-table th:first-child { width:10%; }
.sky-team-full-ranking-table th:nth-child(3) { width:19%; }
.sky-team-full-ranking-table th:last-child { width:23%; }
.sky-team-full-ranking-table td:nth-child(2) { white-space:nowrap; }
.sky-team-full-ranking-table td:nth-child(2)>strong { display:inline-block; max-width:calc(100% - 38px); overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.sky-team-full-ranking-table td:nth-child(2)>span { display:inline-flex; margin:0 0 0 4px; vertical-align:middle; }

.sky-team-tier-placement { display:inline-block; padding:3px 6px; border:1px solid var(--border,#cbd5e1); border-radius:8px; font-size:.75rem; color:var(--muted,#64748b); white-space:nowrap; cursor:pointer; }
.sky-team-previous-tiers { width:100%; margin-top:16px; border-top:1px solid var(--border,#dfe7f3); padding-top:12px; text-align:left; }
.sky-team-previous-tiers h3 { margin:0 0 10px; }
.sky-team-previous-tiers>div { display:flex; justify-content:space-between; gap:12px; padding:8px 0; flex-wrap:wrap; }

.daily-word-guess-load-state { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px; margin-bottom:10px; border:1px solid var(--border,#dfe7f3); border-radius:12px; background:var(--surface,#fff); }
.daily-word-guess-load-state p { flex:1 1 180px; min-width:0; margin:0; font-size:.85rem; overflow-wrap:anywhere; }
html[data-theme="dark"] #dailyWordGuessLoadState { background:#1a2230; border-color:#2f3e53; }
html[data-theme="dark"] #dailyWordGuessLoadStatus { color:#edf2fa; }
#dailyWordGuessRetry { width:auto; min-height:36px; padding:6px 12px; font-size:.8rem; }
#dailyWordGuessScreen.is-challenge .daily-word-guess-header { grid-template-columns:minmax(0,1fr) auto; }
#dailyWordGuessScreen.is-challenge .daily-word-guess-header>span { display:none; }
#dailyWordGuessScreen.is-challenge .daily-word-guess-header h2 { font-size:clamp(18px,4.6vw,24px); }
#dailyWordGuessScreen.is-challenge .daily-word-guess-inputs { gap:clamp(3px,1.4vw,7px); }
#dailyWordGuessScreen.is-challenge .daily-word-guess-input { font-size:clamp(16px,4vw,22px); padding:0 1px; }

body:has(#dailyWordGuessKeyboard.is-visible) #dailyWordGuessScreen.is-challenge .daily-word-guess-scroll { padding-bottom:calc(210px + env(safe-area-inset-bottom)); }

/* Online Nanta: full-screen 2.5D gym game layout */
body[data-current-screen="nanta-gym"] { overflow:hidden; background:#0b1722; }
body[data-current-screen="nanta-gym"] .page-shell { display:flex; width:100%; max-width:none; height:100dvh; min-height:0; padding:0; margin:0; }
body[data-current-screen="nanta-gym"] #appView { display:flex; width:100%; min-height:0; flex:1 1 auto; }
body[data-current-screen="nanta-gym"] #nantaGymScreen { display:grid; grid-template-rows:auto minmax(0,1fr); gap:14px; width:100%; max-width:none; min-height:0; height:100%; box-sizing:border-box; padding:clamp(12px,2vw,24px); margin:0; overflow:hidden; color:#edf7f7; background:radial-gradient(ellipse at 44% 45%,#203c4c 0,#101f2c 58%,#0b1722 100%); }
body[data-current-screen="nanta-gym"] #nantaGymScreen.hidden { display:none !important; }
body[data-current-screen="nanta-gym"] .nanta-header { display:flex; justify-content:space-between; gap:14px; min-width:0; align-items:center; padding:0 2px; }
body[data-current-screen="nanta-gym"] .nanta-brand { display:flex; align-items:center; gap:12px; min-width:0; }
body[data-current-screen="nanta-gym"] .nanta-live-dot { width:12px; height:12px; flex:none; border-radius:50%; background:#52efb3; box-shadow:0 0 0 5px #52efb31c,0 0 20px #52efb399; }
body[data-current-screen="nanta-gym"] .nanta-brand .eyebrow { color:#9bb8c6; letter-spacing:.16em; font-size:10px; }
body[data-current-screen="nanta-gym"] .nanta-header h2 { color:#f4fbff; font-size:clamp(20px,3vw,30px); }
body[data-current-screen="nanta-gym"] .nanta-top-status { display:flex; align-items:center; gap:10px; color:#bed0d8; font-size:12px; }
body[data-current-screen="nanta-gym"] .nanta-top-status b { padding:7px 10px; border:1px solid #ffffff20; border-radius:999px; background:#ffffff0d; color:#dfffee; white-space:nowrap; }
body[data-current-screen="nanta-gym"] #nantaConnectionStatus { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body[data-current-screen="nanta-gym"] #closeNantaGym { width:42px; height:42px; min-width:42px; min-height:42px; padding:0; border:1px solid #ffffff25; border-radius:50%; background:#ffffff12; color:#e9f6fb; font-size:28px; }
body[data-current-screen="nanta-gym"] .nanta-gym-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(270px,320px); gap:14px; min-height:0; }
body[data-current-screen="nanta-gym"] .nanta-stage { position:relative; min-width:0; min-height:0; overflow:hidden; border:1px solid #a9d7d733; border-radius:22px; background:#223b4a; box-shadow:0 24px 70px #0006,inset 0 1px #ffffff22; }
body[data-current-screen="nanta-gym"] #nantaCourt { display:block; width:100%; height:100%; max-height:none; aspect-ratio:auto; border-radius:inherit; touch-action:none; }
body[data-current-screen="nanta-gym"] .nanta-stage-caption { position:absolute; right:14px; bottom:12px; left:14px; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 12px; border:1px solid #ffffff20; border-radius:12px; background:#07121bbd; color:#d1e1e8; font-size:11px; backdrop-filter:blur(10px); pointer-events:none; }
body[data-current-screen="nanta-gym"] .nanta-stage-badge { color:#73f1be; font-weight:900; white-space:nowrap; }
body[data-current-screen="nanta-gym"] .nanta-side-panel { display:grid; grid-template-rows:minmax(110px,.8fr) auto minmax(130px,1fr); gap:10px; min-width:0; min-height:0; overflow:hidden; }
body[data-current-screen="nanta-gym"] .nanta-roster-panel, body[data-current-screen="nanta-gym"] .nanta-play-panel, body[data-current-screen="nanta-gym"] .nanta-chat-panel { min-width:0; overflow:hidden; border:1px solid #d4ebf21b; border-radius:17px; background:linear-gradient(145deg,#ffffff12,#ffffff08); box-shadow:inset 0 1px #ffffff0d; }
body[data-current-screen="nanta-gym"] .nanta-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 13px; border-bottom:1px solid #ffffff13; color:#edf7fa; font-size:13px; }
body[data-current-screen="nanta-gym"] .nanta-panel-heading span { color:#9db3bd; font-size:11px; }
body[data-current-screen="nanta-gym"] .nanta-online-list { display:flex; flex-direction:column; gap:2px; max-height:calc(100% - 43px); overflow:auto; padding:6px 9px 9px; }
body[data-current-screen="nanta-gym"] .nanta-online-list>p { margin:auto; padding:12px 4px; color:#9db3bd; text-align:center; font-size:12px; }
body[data-current-screen="nanta-gym"] .nanta-online-player { display:flex; align-items:center; gap:8px; min-height:32px; padding:4px 5px; color:#dce9ed; font-size:12px; }
body[data-current-screen="nanta-gym"] .nanta-avatar-dot { width:10px; height:10px; flex:none; border-radius:50%; background:var(--nanta-player-color); box-shadow:0 0 10px color-mix(in srgb,var(--nanta-player-color),transparent 35%); }
body[data-current-screen="nanta-gym"] .nanta-online-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body[data-current-screen="nanta-gym"] .nanta-online-name small { color:#8da6b1; }
body[data-current-screen="nanta-gym"] .nanta-online-state { margin-left:auto; color:#8ea9b2; font-size:10px; white-space:nowrap; }
body[data-current-screen="nanta-gym"] .nanta-play-panel { padding-bottom:10px; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; justify-content:stretch; padding:10px 11px 2px; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons button { min-width:0; min-height:38px; padding:7px 6px; border:1px solid #ffffff20; border-radius:11px; background:#ffffff10; color:#dceaf0; font-size:11px; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons #nantaSwing { background:linear-gradient(135deg,#21b785,#168b78); color:white; font-weight:800; box-shadow:0 5px 16px #10b98135; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons button[aria-pressed="true"] { border-color:#60e5b6; background:#31c99730; color:#91f4ce; }
body[data-current-screen="nanta-gym"] .nanta-dpad { display:grid; grid-template:repeat(2,34px)/repeat(3,34px); justify-content:center; gap:3px; margin:8px auto 0; }
body[data-current-screen="nanta-gym"] .nanta-dpad button { width:34px; min-height:34px; padding:0; border:1px solid #ffffff20; border-radius:9px; background:#d8edf21a; color:#e5f4f8; font-size:16px; touch-action:none; user-select:none; }
body[data-current-screen="nanta-gym"] .nanta-dpad button[data-nanta-move="up"] { grid-area:1/2; }
body[data-current-screen="nanta-gym"] .nanta-dpad button[data-nanta-move="left"] { grid-area:2/1; }
body[data-current-screen="nanta-gym"] .nanta-dpad button[data-nanta-move="down"] { grid-area:2/2; }
body[data-current-screen="nanta-gym"] .nanta-dpad button[data-nanta-move="right"] { grid-area:2/3; }
body[data-current-screen="nanta-gym"] .nanta-chat-panel { display:flex; flex-direction:column; }
body[data-current-screen="nanta-gym"] .nanta-chat-messages { flex:1; min-height:50px; max-height:none; color:#d4e3e8; }
body[data-current-screen="nanta-gym"] .nanta-chat-message { color:#d2e1e7; }
body[data-current-screen="nanta-gym"] .nanta-chat-form { flex:none; border-color:#ffffff13; }
body[data-current-screen="nanta-gym"] .nanta-chat-form input { min-height:38px; border-color:#ffffff20; background:#06131c70; color:#eef8fa; font-size:16px; }
body[data-current-screen="nanta-gym"] .nanta-chat-form input::placeholder { color:#8fa7b0; }
body[data-current-screen="nanta-gym"] .nanta-chat-form button { min-height:38px; border-radius:10px; background:#168b78; color:#fff; }
body[data-current-screen="nanta-gym"] #nantaGymStatus { color:#a8c0c9; font-size:11px; }
@media (max-width:760px) {
  body[data-current-screen="nanta-gym"] .page-shell { height:100dvh; }
  body[data-current-screen="nanta-gym"] #nantaGymScreen { gap:9px; padding:calc(8px + env(safe-area-inset-top)) 9px calc(8px + env(safe-area-inset-bottom)); }
  body[data-current-screen="nanta-gym"] .nanta-header { gap:6px; }
  body[data-current-screen="nanta-gym"] .nanta-brand { gap:8px; }
  body[data-current-screen="nanta-gym"] .nanta-brand .eyebrow { font-size:8px; }
  body[data-current-screen="nanta-gym"] .nanta-header h2 { margin:2px 0; font-size:18px; }
  body[data-current-screen="nanta-gym"] .nanta-top-status { gap:6px; font-size:10px; }
  body[data-current-screen="nanta-gym"] #nantaConnectionStatus { max-width:112px; }
  body[data-current-screen="nanta-gym"] #closeNantaGym { width:38px; height:38px; min-width:38px; min-height:38px; font-size:24px; }
  body[data-current-screen="nanta-gym"] .nanta-gym-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(250px,44dvh) minmax(0,1fr); gap:8px; }
  body[data-current-screen="nanta-gym"] .nanta-stage { border-radius:15px; }
  body[data-current-screen="nanta-gym"] .nanta-stage-caption { right:7px; bottom:7px; left:7px; padding:6px 8px; font-size:9px; }
  body[data-current-screen="nanta-gym"] .nanta-side-panel { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:minmax(88px,.75fr) minmax(0,1fr); gap:7px; }
  body[data-current-screen="nanta-gym"] .nanta-roster-panel { grid-column:1; grid-row:1; }
  body[data-current-screen="nanta-gym"] .nanta-play-panel { grid-column:2; grid-row:1 / span 2; }
  body[data-current-screen="nanta-gym"] .nanta-chat-panel { grid-column:1; grid-row:2; }
  body[data-current-screen="nanta-gym"] .nanta-panel-heading { padding:8px 9px; font-size:11px; }
  body[data-current-screen="nanta-gym"] .nanta-panel-heading span { font-size:9px; }
  body[data-current-screen="nanta-gym"] .nanta-online-list { max-height:calc(100% - 34px); padding:4px 6px; }
  body[data-current-screen="nanta-gym"] .nanta-online-player { min-height:24px; gap:5px; font-size:10px; }
  body[data-current-screen="nanta-gym"] .nanta-online-state { font-size:8px; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons { grid-template-columns:1fr; gap:5px; padding:7px 7px 0; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons button { min-height:32px; font-size:10px; }
  body[data-current-screen="nanta-gym"] .nanta-dpad { grid-template:repeat(2,38px)/repeat(3,38px); margin-top:6px; }
  body[data-current-screen="nanta-gym"] .nanta-dpad button { width:38px; min-height:38px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-messages { padding:5px 7px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-form { gap:4px; padding:5px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-form input { min-height:34px; padding:5px 7px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-form button { min-width:46px; min-height:34px; padding:5px; font-size:10px; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons #nantaSwing { grid-column:1 / -1; }
  body[data-current-screen="nanta-gym"] .nanta-dpad { grid-template:repeat(2,30px)/repeat(3,30px); margin-top:5px; }
  body[data-current-screen="nanta-gym"] .nanta-dpad button { width:30px; min-height:30px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-form label.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
}
@media (max-width:380px) {
  body[data-current-screen="nanta-gym"] .nanta-gym-layout { grid-template-rows:minmax(225px,40dvh) minmax(0,1fr); }
  body[data-current-screen="nanta-gym"] .nanta-side-panel { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  body[data-current-screen="nanta-gym"] .nanta-online-name { font-size:9px; }
}
@media (max-width:760px) {
  body[data-current-screen="nanta-gym"] .page-shell,
  body[data-current-screen="nanta-gym"] #appView { position:relative; width:100%; height:100dvh; min-height:0; overflow:hidden; }
  body[data-current-screen="nanta-gym"] #nantaGymScreen { position:relative; display:block; width:100%; height:100%; padding:0; overflow:hidden; }
  body[data-current-screen="nanta-gym"] .nanta-header { position:absolute; z-index:5; top:calc(7px + env(safe-area-inset-top)); right:9px; left:9px; min-height:42px; padding:5px 7px; border:1px solid #ffffff24; border-radius:14px; background:#091923b8; backdrop-filter:blur(12px); }
  body[data-current-screen="nanta-gym"] .nanta-live-dot { width:9px; height:9px; }
  body[data-current-screen="nanta-gym"] .nanta-brand .eyebrow { display:none; }
  body[data-current-screen="nanta-gym"] .nanta-header h2 { margin:0; font-size:16px; }
  body[data-current-screen="nanta-gym"] .nanta-top-status { margin-left:auto; }
  body[data-current-screen="nanta-gym"] #nantaConnectionStatus { max-width:104px; font-size:9px; }
  body[data-current-screen="nanta-gym"] #nantaConnectionStatus[data-connected="true"] { max-width:0; opacity:0; }
  body[data-current-screen="nanta-gym"] .nanta-top-status b { padding:5px 7px; font-size:9px; }
  body[data-current-screen="nanta-gym"] #closeNantaGym { width:34px; height:34px; min-width:34px; min-height:34px; }
  body[data-current-screen="nanta-gym"] .nanta-gym-layout { position:absolute; inset:0; display:block; }
  body[data-current-screen="nanta-gym"] .nanta-stage { position:absolute; inset:0; border:0; border-radius:0; }
  body[data-current-screen="nanta-gym"] #nantaCourt { width:100%; height:100%; border-radius:0; }
  body[data-current-screen="nanta-gym"] .nanta-stage-caption { display:none; }
  body[data-current-screen="nanta-gym"] .nanta-side-panel { display:contents; }
  body[data-current-screen="nanta-gym"] .nanta-roster-panel { position:absolute; z-index:4; top:calc(60px + env(safe-area-inset-top)); right:9px; width:min(36vw,148px); max-height:112px; border-radius:12px; background:#0a1a23b8; backdrop-filter:blur(8px); }
  body[data-current-screen="nanta-gym"] .nanta-roster-panel .nanta-panel-heading { padding:6px 8px; font-size:9px; }
  body[data-current-screen="nanta-gym"] .nanta-online-list { max-height:70px; padding:3px 6px; }
  body[data-current-screen="nanta-gym"] .nanta-online-player { min-height:20px; font-size:9px; }
  body[data-current-screen="nanta-gym"] .nanta-online-state { display:none; }
  body[data-current-screen="nanta-gym"] .nanta-play-panel { display:contents; }
  body[data-current-screen="nanta-gym"] .nanta-play-panel > .nanta-panel-heading { display:none; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons { position:absolute; z-index:6; right:12px; bottom:calc(16px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(2,minmax(62px,1fr)); width:min(37vw,158px); gap:6px; padding:0; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons button { min-height:40px; padding:6px 4px; border:1px solid #ffffff48; border-radius:13px; background:#102431d9; color:#effbfc; box-shadow:0 5px 14px #0004; font-size:10px; backdrop-filter:blur(8px); }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons #nantaSwing { grid-column:1 / -1; min-height:48px; background:linear-gradient(135deg,#19b883ee,#087a69ee); font-size:13px; }
  body[data-current-screen="nanta-gym"] .nanta-dpad { position:absolute; z-index:6; bottom:calc(18px + env(safe-area-inset-bottom)); left:14px; display:grid; grid-template:repeat(3,44px)/repeat(3,44px); gap:3px; margin:0; padding:5px; border:1px solid #ffffff30; border-radius:50%; background:#0b1e2aca; box-shadow:0 7px 22px #0005; backdrop-filter:blur(8px); }
  body[data-current-screen="nanta-gym"] .nanta-dpad button { width:44px; min-height:44px; border:1px solid #ffffff38; border-radius:50%; background:#d8edf22b; color:#fff; font-size:20px; box-shadow:0 2px 7px #0003; }
  body[data-current-screen="nanta-gym"] .nanta-dpad button[data-nanta-move="up"] { grid-area:1/2; }
  body[data-current-screen="nanta-gym"] .nanta-dpad button[data-nanta-move="left"] { grid-area:2/1; }
  body[data-current-screen="nanta-gym"] .nanta-dpad button[data-nanta-move="down"] { grid-area:3/2; }
  body[data-current-screen="nanta-gym"] .nanta-dpad button[data-nanta-move="right"] { grid-area:2/3; }
  body[data-current-screen="nanta-gym"] .nanta-chat-panel { position:absolute; z-index:4; top:calc(60px + env(safe-area-inset-top)); left:9px; display:flex; width:min(42vw,174px); max-height:112px; border-radius:12px; background:#091923b8; backdrop-filter:blur(8px); }
  body[data-current-screen="nanta-gym"] .nanta-chat-panel .nanta-panel-heading { padding:6px 8px; font-size:9px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-panel .nanta-panel-heading span { font-size:8px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-messages { min-height:18px; max-height:44px; padding:4px 7px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-empty,
  body[data-current-screen="nanta-gym"] .nanta-chat-message { font-size:9px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-form { gap:3px; padding:4px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-form input { min-height:28px; padding:3px 6px; border-radius:8px; font-size:14px; }
  body[data-current-screen="nanta-gym"] .nanta-chat-form button { min-width:34px; min-height:28px; padding:3px; border-radius:8px; font-size:9px; }
}
@media (max-width:390px) {
  body[data-current-screen="nanta-gym"] .nanta-dpad { left:8px; grid-template:repeat(3,40px)/repeat(3,40px); }
  body[data-current-screen="nanta-gym"] .nanta-dpad button { width:40px; min-height:40px; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons { right:8px; grid-template-columns:repeat(2,minmax(56px,1fr)); width:38vw; }
}

/* Nanta sports-club visual finish. */
body[data-current-screen="nanta-gym"] .nanta-header { border-bottom:1px solid #b5ece927; }
body[data-current-screen="nanta-gym"] .nanta-brand h2 { letter-spacing:-.04em; font-weight:900; }
body[data-current-screen="nanta-gym"] .nanta-stage { box-shadow:0 18px 50px #02121d66,0 0 0 1px #b3efe322; }
body[data-current-screen="nanta-gym"] .nanta-panel-heading strong { letter-spacing:-.02em; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons button { transition:background .15s,transform .12s,box-shadow .15s; font-weight:800; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons button:active,
body[data-current-screen="nanta-gym"] .nanta-dpad button:active { transform:scale(.94); background:#3c8d99; box-shadow:inset 0 2px 8px #00182666; }
body[data-current-screen="nanta-gym"] #nantaSwing { border-color:#b5fff091; background:linear-gradient(145deg,#48dfb7,#18a9a0); color:#062f3a; box-shadow:0 6px 0 #086b70,0 10px 22px #00252c60,inset 0 1px #fff9; }
body[data-current-screen="nanta-gym"] #nantaSwing::before { content:"↗"; display:inline-block; padding-right:6px; font-size:20px; vertical-align:middle; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons button[aria-pressed="true"] { border-color:#a2ffdf; background:#1c716f; color:#d7fff1; }
body[data-current-screen="nanta-gym"] .nanta-online-player.is-self { border-radius:8px; background:#88e9d410; }
body[data-current-screen="nanta-gym"] .nanta-utility-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; grid-column:1 / -1; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons #nantaSwing { width:108px; height:108px; min-height:108px; border-radius:50%; justify-self:center; grid-column:1 / -1; padding:0; font-size:24px; letter-spacing:.06em; }
body[data-current-screen="nanta-gym"] #nantaSwing::before { display:none; }
body[data-current-screen="nanta-gym"] .nanta-chat-form label.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media(max-width:760px) {
  body[data-current-screen="nanta-gym"] .nanta-header { border:1px solid #d0fff32e; background:linear-gradient(120deg,#102c40ed,#123b49db); box-shadow:0 6px 20px #03182538,inset 0 1px #ffffff17; }
  body[data-current-screen="nanta-gym"] .nanta-roster-panel,
  body[data-current-screen="nanta-gym"] .nanta-chat-panel { border-color:#d9fff126; background:#122f43d9; box-shadow:0 6px 18px #051b2c20,inset 0 1px #ffffff12; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons { gap:8px; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons button { border-radius:15px; background:linear-gradient(145deg,#29485ce8,#132e43ed); border-color:#c4e9f149; box-shadow:0 4px 0 #081e30b8,0 6px 14px #001b3040,inset 0 1px #ffffff20; }
  body[data-current-screen="nanta-gym"] .nanta-dpad { background:radial-gradient(circle,#56798c9c,#163449d9 70%); border:2px solid #c8f2ef66; box-shadow:0 7px 0 #102a3c80,0 10px 25px #00172755,inset 0 1px 12px #d4f6f024; }
  body[data-current-screen="nanta-gym"] .nanta-dpad::before { content:""; position:absolute; width:26px; height:26px; border-radius:50%; left:50%; top:50%; transform:translate(-50%,-50%); background:#b4e5e126; border:1px solid #e5fffa33; }
  body[data-current-screen="nanta-gym"] .nanta-dpad button { background:linear-gradient(145deg,#60828fbc,#284a60d9); border-color:#d7f6f479; box-shadow:0 3px 0 #102b3cb8,inset 0 1px #e9fffb40; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons { display:contents; }
  body[data-current-screen="nanta-gym"] .nanta-utility-buttons { position:absolute; z-index:6; top:calc(62px + env(safe-area-inset-top)); left:10px; right:10px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
  body[data-current-screen="nanta-gym"] .nanta-utility-buttons button { min-height:30px; padding:4px; border-radius:10px; font-size:9px; white-space:nowrap; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons #nantaSwing { position:absolute; z-index:6; right:20px; bottom:calc(28px + env(safe-area-inset-bottom)); width:112px; height:112px; min-height:112px; border-radius:50%; font-size:26px; border:3px solid #baffee; box-shadow:0 7px 0 #08747b,0 12px 28px #001f3d77,inset 0 3px #e4fffca3; }
  body[data-current-screen="nanta-gym"] .nanta-chat-panel,
  body[data-current-screen="nanta-gym"] .nanta-roster-panel { top:calc(102px + env(safe-area-inset-top)); }
}
body[data-current-screen="nanta-gym"] .nanta-dpad { opacity:.38; transition:opacity .18s ease; }
body[data-current-screen="nanta-gym"] .nanta-dpad:active,
body[data-current-screen="nanta-gym"] .nanta-dpad:focus-within { opacity:.9; }
body[data-current-screen="nanta-gym"] .nanta-lobby { position:absolute; z-index:20; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:20px; color:#173d63; background:radial-gradient(ellipse at 50% 18%,#ecfbff,#86b4d6 52%,#426592); text-align:center; }
body[data-current-screen="nanta-gym"] .nanta-lobby.hidden { display:none !important; }
body[data-current-screen="nanta-gym"] .nanta-lobby-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; }
body[data-current-screen="nanta-gym"] .nanta-lobby-actions input { width:170px; min-height:44px; padding:8px 12px; border:2px solid #6e9fc6; border-radius:7px; background:#fff; color:#173d63; font-size:16px; text-align:center; text-transform:uppercase; }
body[data-current-screen="nanta-gym"] .nanta-lobby-actions button,
body[data-current-screen="nanta-gym"] #nantaCreateRoom { min-height:44px; padding:9px 16px; border:2px solid #e6f6ff; border-radius:7px; background:linear-gradient(#76b8ed,#19508d); color:#fff; font-weight:850; text-shadow:0 1px #17406f; box-shadow:0 3px 0 #173f70,inset 0 1px #fff8; }
body[data-current-screen="nanta-gym"] #nantaCreateModal { z-index:30; }
body[data-current-screen="nanta-gym"] #nantaCreateModal.hidden { display:none !important; }
body[data-current-screen="nanta-gym"] #nantaCreateModal .modal-content { width:min(92vw,420px); }
body[data-current-screen="nanta-gym"] #nantaCreateModal .modal-header { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; }
body[data-current-screen="nanta-gym"] #nantaCreateModal .modal-header h2 { flex:1; min-width:0; margin:0; text-align:left; overflow-wrap:normal; word-break:keep-all; }
body[data-current-screen="nanta-gym"] #nantaCreateModal .close-button { width:40px; height:40px; min-width:40px; min-height:40px; flex:0 0 40px; padding:0; }
body[data-current-screen="nanta-gym"] .nanta-mode-options { display:grid; gap:10px; margin:14px 0; }
body[data-current-screen="nanta-gym"] .nanta-mode-options label { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid #cbd8e6; border-radius:12px; background:#f4f8fd; text-align:left; }
body[data-current-screen="nanta-gym"] #nantaGymScreen.is-playing #nantaLobby { display:none; }

/* Browser Flash game inspired chrome and HUD framing for Nanta. */
body[data-current-screen="nanta-gym"] #nantaGymScreen {
  background:radial-gradient(ellipse at 50% 15%,#e3fbff 0,#79a8d3 42%,#35568b 100%);
}
body[data-current-screen="nanta-gym"] .nanta-header {
  padding:9px 13px;
  border:2px solid #d8f2ff;
  border-radius:13px 13px 5px 5px;
  background:linear-gradient(180deg,#529bdd 0%,#2567ae 48%,#17457f 50%,#2b6eb1 100%);
  box-shadow:0 3px 0 #153867, inset 0 1px #fff9;
}
body[data-current-screen="nanta-gym"] .nanta-brand .eyebrow { color:#d9f3ff; text-shadow:0 1px #173f73; }
body[data-current-screen="nanta-gym"] .nanta-header h2 { color:#fff; text-shadow:0 2px 0 #153867,1px 2px #153867; }
body[data-current-screen="nanta-gym"] .nanta-top-status { color:#e6f6ff; }
body[data-current-screen="nanta-gym"] .nanta-top-status b { border:1px solid #c7eaff; background:linear-gradient(#eaffff,#a3d7f2); color:#16416e; box-shadow:0 2px 0 #174575; }
body[data-current-screen="nanta-gym"] #closeNantaGym { border:2px solid #e8f8ff; background:linear-gradient(#fff,#c8e7f7); color:#23527e; box-shadow:0 2px 0 #153d69; }
body[data-current-screen="nanta-gym"] .nanta-stage { border:5px solid #e5f5ff; border-radius:8px; background:#193d65; box-shadow:0 0 0 2px #27649c,0 6px 0 #17375e,0 14px 32px #0b2c5570; }
body[data-current-screen="nanta-gym"] .nanta-stage-caption { border:1px solid #c5eaff; border-radius:5px; background:linear-gradient(180deg,#12385cdd,#071d36ee); box-shadow:0 2px 0 #06152b; }
body[data-current-screen="nanta-gym"] .nanta-side-panel { gap:9px; }
body[data-current-screen="nanta-gym"] .nanta-roster-panel,
body[data-current-screen="nanta-gym"] .nanta-play-panel,
body[data-current-screen="nanta-gym"] .nanta-chat-panel { border:2px solid #e5f5ff; border-radius:7px; background:linear-gradient(145deg,#f5fbff,#cfe4f3); box-shadow:0 3px 0 #2a5683,inset 0 1px #fff; }
body[data-current-screen="nanta-gym"] .nanta-panel-heading { border-bottom:1px solid #9abbd3; color:#183d65; text-shadow:0 1px #fff; }
body[data-current-screen="nanta-gym"] .nanta-panel-heading span { color:#416a8b; }
body[data-current-screen="nanta-gym"] .nanta-online-player,
body[data-current-screen="nanta-gym"] .nanta-chat-message { color:#233f5a; }
body[data-current-screen="nanta-gym"] .nanta-chat-form { border-color:#aac8dd; }
body[data-current-screen="nanta-gym"] .nanta-chat-form input { border:1px solid #8eb1ce; border-radius:4px; background:#fff; color:#1d3e5d; box-shadow:inset 0 1px 3px #15385a24; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons button { border:1px solid #d9f0ff; border-radius:5px; background:linear-gradient(#76b8ed 0%,#377fc2 48%,#2868a9 50%,#19508d 100%); color:#fff; text-shadow:0 1px #17406f; box-shadow:0 3px 0 #173f70,inset 0 1px #fff9; }
body[data-current-screen="nanta-gym"] .nanta-action-buttons #nantaSwing { background:linear-gradient(#a5ee78 0%,#64c94d 48%,#3fa738 50%,#267b2d 100%); color:#fff; text-shadow:0 2px #216328; }
@media(max-width:760px) {
  body[data-current-screen="nanta-gym"] .nanta-header { background:linear-gradient(180deg,#529bdd 0%,#2567ae 48%,#17457f 50%,#2b6eb1 100%); }
  body[data-current-screen="nanta-gym"] .nanta-roster-panel,
  body[data-current-screen="nanta-gym"] .nanta-chat-panel { background:linear-gradient(145deg,#f5fbfff2,#cfe4f3f2); }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons button { border-color:#d9f0ff; border-radius:6px; background:linear-gradient(#76b8ed,#19508d); color:#fff; text-shadow:0 1px #17406f; box-shadow:0 3px 0 #173f70,inset 0 1px #fff9; }
  body[data-current-screen="nanta-gym"] .nanta-action-buttons #nantaSwing { background:linear-gradient(#a5ee78 0%,#64c94d 48%,#3fa738 50%,#267b2d 100%); }
  body[data-current-screen="nanta-gym"] .nanta-dpad { background:radial-gradient(circle,#a8d8f7,#3676b7); border:3px solid #effaff; box-shadow:0 4px 0 #174575,0 8px 18px #09244977,inset 0 1px #fff; }
  body[data-current-screen="nanta-gym"] .nanta-dpad button { border:1px solid #e5f5ff; border-radius:6px; background:linear-gradient(#83c3f0,#2566a9); box-shadow:0 3px 0 #174575,inset 0 1px #fff; }
}

/* Drag joystick: independent of the former directional-button styles. */
body[data-current-screen="nanta-gym"] .nanta-joystick { position:relative; flex:0 0 auto; width:120px; height:120px; margin:10px auto 0; border:3px solid #d5f0ffb3; border-radius:50%; background:radial-gradient(circle,#3a6d9bcc,#143657e6); box-shadow:0 5px 0 #102b48a6,inset 0 1px 12px #d4f6f040; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent; cursor:grab; opacity:.82; box-sizing:border-box; }
body[data-current-screen="nanta-gym"] .nanta-joystick.is-dragging { cursor:grabbing; opacity:1; border-color:#eaffff; }
body[data-current-screen="nanta-gym"] .nanta-joystick-ring { position:absolute; inset:17%; border:1px dashed #d4f0ff73; border-radius:50%; pointer-events:none; }
body[data-current-screen="nanta-gym"] .nanta-joystick-knob { position:absolute; width:43%; height:43%; left:50%; top:50%; border:2px solid #effbff; border-radius:50%; background:radial-gradient(circle at 35% 25%,#d5f3ff,#73b7e8 48%,#2868a1); box-shadow:0 4px 9px #03172b88,inset 0 2px 3px #ffffff9c; transform:translate(calc(-50% + var(--stick-x,0px)),calc(-50% + var(--stick-y,0px))); pointer-events:none; }
@media (max-width:760px) {
  body[data-current-screen="nanta-gym"] .nanta-joystick { position:absolute; z-index:6; left:max(14px,env(safe-area-inset-left)); bottom:calc(18px + env(safe-area-inset-bottom)); width:132px; height:132px; margin:0; }
}
@media (max-width:390px) {
  body[data-current-screen="nanta-gym"] .nanta-joystick { left:max(8px,env(safe-area-inset-left)); width:118px; height:118px; }
}

/* Match duel-room navigation outside the full-screen Nanta court. */
body[data-current-screen="nanta-gym"]:has(#nantaGymScreen:not(.is-playing)) { overflow:auto; background:var(--bg,#f5f7fb); }
body[data-current-screen="nanta-gym"]:has(#nantaGymScreen:not(.is-playing)) .page-shell { display:block; width:100%; max-width:760px; height:auto; min-height:100dvh; padding:16px; margin:auto; overflow:visible; }
body[data-current-screen="nanta-gym"]:has(#nantaGymScreen:not(.is-playing)) #appView { display:block; height:auto; overflow:visible; }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) { position:relative; display:block; height:auto; min-height:0; padding:0; overflow:visible; background:none; color:var(--text,#173452); }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) .nanta-gym-layout { display:none; }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) .nanta-header { position:static; display:flex; justify-content:space-between; gap:12px; margin-bottom:24px; padding:12px 0; border:0; border-radius:0; background:none; box-shadow:none; backdrop-filter:none; }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) .nanta-live-dot { display:none; }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) .nanta-brand .eyebrow { display:block; font-size:10px; color:var(--muted,#5276a5); text-shadow:none; }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) .nanta-header h2 { color:inherit; font-size:24px; text-shadow:none; }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) #nantaConnectionStatus,
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) #nantaPlayerCount,
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) #nantaInviteCode,
body[data-current-screen="nanta-gym"] #nantaGymScreen.is-playing #nantaOpenCreate { display:none; }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) #nantaOpenCreate { display:block; min-width:72px; min-height:36px; padding:8px 12px; border:0; border-radius:999px; background:#315d9e; color:#fff; font-size:12px; }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) #closeNantaGym { width:40px; height:40px; min-width:40px; min-height:40px; border:0; border-radius:50%; background:#e7eef8; color:#315d9e; box-shadow:none; }
body[data-current-screen="nanta-gym"] #nantaLobby { display:block; }
body[data-current-screen="nanta-gym"] #nantaLobbyStatus:empty { display:none; }
body[data-current-screen="nanta-gym"] #nantaInviteCode { width:auto; min-height:30px; padding:5px 8px; font-size:11px; }
body[data-current-screen="nanta-gym"] #nantaGymScreen.is-spectating .nanta-action-buttons,
body[data-current-screen="nanta-gym"] #nantaGymScreen.is-spectating .nanta-joystick { display:none; }

@media (max-width:380px) {
  body[data-current-screen="nanta-gym"] #nantaGymScreen.is-playing .nanta-header {
    min-height:44px;
    height:44px;
    box-sizing:border-box;
    flex-wrap:nowrap;
    overflow:hidden;
  }
  body[data-current-screen="nanta-gym"] #nantaGymScreen.is-playing .nanta-brand {
    flex:0 0 auto;
    white-space:nowrap;
  }
  body[data-current-screen="nanta-gym"] #nantaGymScreen.is-playing .nanta-header h2 {
    white-space:nowrap;
    word-break:keep-all;
  }
  body[data-current-screen="nanta-gym"] #nantaGymScreen.is-playing .nanta-top-status {
    flex:0 0 auto;
    min-width:0;
    flex-wrap:nowrap;
    gap:4px;
    white-space:nowrap;
  }
  body[data-current-screen="nanta-gym"] #nantaGymScreen.is-playing #nantaConnectionStatus { display:none; }
  body[data-current-screen="nanta-gym"] #nantaGymScreen.is-playing #nantaInviteCode {
    display:block;
    width:62px;
    min-width:0;
    max-width:62px;
    overflow:hidden;
    padding:4px 5px;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:8px;
  }
  body[data-current-screen="nanta-gym"] #nantaGymScreen.is-playing #nantaPlayerCount { padding:4px 5px; }
}

html[data-theme="dark"] body[data-current-screen="nanta-gym"]:has(#nantaGymScreen:not(.is-playing)) { background:#10151f; }
html[data-theme="dark"] body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) { color:#e6edf7; }

/* Simplify the Nanta play HUD and use the shared floating chat treatment. */
body[data-current-screen="nanta-gym"] #nantaGymScreen .nanta-roster-panel { display:none !important; }
body[data-current-screen="nanta-gym"] #nantaGymScreen .nanta-side-panel { grid-template-rows:auto minmax(130px,1fr) auto; }
body[data-current-screen="nanta-gym"] #nantaGymScreen .nanta-utility-buttons { grid-template-columns:repeat(3,minmax(0,1fr)); }
body[data-current-screen="nanta-gym"] #nantaChatPanel {
  top:auto;
  right:auto;
  bottom:0;
  left:50%;
  width:min(100%,520px);
  max-height:none;
  height:min(62vh,520px);
  height:min(62dvh,520px);
  z-index:999;
  overflow:hidden;
  border:1px solid #dbe5f2;
  border-bottom:0;
  border-radius:18px 18px 0 0;
  background:#fff;
  box-shadow:0 -10px 30px rgba(28,55,95,.18);
  transform:translate(-50%,calc(100% + 24px));
  transition:transform .24s ease;
}
body[data-current-screen="nanta-gym"] #nantaChatPanel:not(.is-open) { visibility:hidden; pointer-events:none; }
body[data-current-screen="nanta-gym"] #nantaChatPanel.is-open { visibility:visible; pointer-events:auto; transform:translate(-50%,0); }
body[data-current-screen="nanta-gym"] #nantaChatPanel .game-chat-header { flex:none; }
body[data-current-screen="nanta-gym"] #nantaChatMessages { min-height:0; max-height:none; }
body[data-current-screen="nanta-gym"] #nantaChatMessages .nanta-chat-message { align-self:flex-start; max-width:88%; padding:8px 10px; border-radius:10px; background:#f1f5fb; color:#233d61; }
body[data-current-screen="nanta-gym"] #nantaChatMessages .nanta-chat-message strong { display:block; margin-bottom:2px; }
body[data-current-screen="nanta-gym"] #nantaChatForm { flex:none; }
body[data-current-screen="nanta-gym"] #nantaChatFab { right:18px; bottom:22px; z-index:1000; }
body[data-current-screen="nanta-gym"] #nantaChatBackdrop { z-index:998; }
body[data-current-screen="nanta-gym"] #nantaGymScreen:not(.is-playing) #nantaChatFab { display:none; }
html[data-theme="dark"] body[data-current-screen="nanta-gym"] #nantaChatPanel { border-color:#2f3e53; background:#151e2c; box-shadow:0 -10px 30px rgba(0,0,0,.4); }
html[data-theme="dark"] body[data-current-screen="nanta-gym"] #nantaChatMessages .nanta-chat-message { background:#202d40; color:#eaf1fb; }
@media (max-width:760px) {
  body[data-current-screen="nanta-gym"] #nantaGymScreen .nanta-roster-panel { display:none !important; }
  body[data-current-screen="nanta-gym"] #nantaGymScreen .nanta-chat-panel { position:fixed; top:auto; right:auto; bottom:0; left:50%; width:min(100%,520px); max-height:none; }
  body[data-current-screen="nanta-gym"] #nantaGymScreen .nanta-utility-buttons { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body[data-current-screen="nanta-gym"] #nantaChatFab { right:16px; bottom:calc(150px + env(safe-area-inset-bottom)); }
}
html:has(body.carom-open), body.carom-open { overflow:hidden; scrollbar-gutter:auto; }
.carom-screen { position:fixed; inset:0; z-index:90; box-sizing:border-box; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; padding:18px max(12px,calc((100vw - 1000px)/2)) max(22px,env(safe-area-inset-bottom)); background:#101e25; color:#e5f2ef; }
.carom-heading { display:flex; justify-content:space-between; align-items:center; }.carom-heading h2 { color:#fff; margin:6px 0 18px; }.carom-heading small { color:#90c9b8; }.carom-heading button { flex:0 0 40px; width:40px;height:40px;border-radius:50%;padding:0;background:#29434a;color:#fff;font-size:28px; }
#caromCanvas { display:block; width:100%; height:auto; touch-action:none; border-radius:16px; margin:12px 0;box-shadow:0 10px 30px #0005; }
.carom-controls {display:grid;grid-template-columns:1fr 1fr;gap:12px;}.carom-controls label{min-width:0;color:#c7ddd7;}.carom-controls input{padding:0;accent-color:#e2c684;}.carom-controls button{min-height:46px;}#caromShoot{background:#d8b65c;color:#202b2d;font-weight:900;}#caromLobby form{display:flex;align-items:end;gap:10px;margin:16px 0;}#caromLobby label{flex:1;min-width:0;}#caromLobby button{width:auto;}#caromRooms{display:grid;gap:10px;}#caromRooms article{background:#20383b;color:#e5f2ef;}#caromError{color:#ffd1a7;overflow-wrap:anywhere;}.carom-open .bottom-nav{display:none!important;}.carom-screen details{margin-top:16px;line-height:1.6;}.carom-screen summary{cursor:pointer;}
#caromPlay { max-width:600px; margin-inline:auto; }
#caromCanvas { width:100%; max-width:480px; margin-inline:auto; aspect-ratio:6 / 11; cursor:crosshair; }
/* Match the shared duel lobby; keep the felt palette inside the game room. */
.carom-screen:not(.is-playing) { padding:24px max(12px,calc((100vw - 656px)/2)) max(24px,env(safe-area-inset-bottom)); background:#f4f7fb; color:#14213d; }
.carom-screen:not(.is-playing) details { display:none; }
.carom-screen:not(.is-playing) #caromError { color:#b42318; }
.carom-screen #caromRooms { gap:6px; }
.carom-screen:not(.is-playing) #caromRooms article { background:#fff; color:#14213d; }
html[data-theme="dark"] .carom-screen:not(.is-playing) { background:#11151f; color:#edf2fa; }
html[data-theme="dark"] .carom-screen:not(.is-playing) #caromRooms article { background:#1a2230; color:#edf2fa; }
html[data-theme="dark"] .carom-screen:not(.is-playing) #caromError { color:#ffb4ab; }
.carom-screen.is-playing > .mystery-game-header h2 { color:#fff; }
.carom-screen.is-playing > .mystery-game-header .eyebrow { color:#90c9b8; }
#caromPractice { min-height:42px; margin:0 0 16px; }
#caromPlayers.omok-players { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#caromPlayers .omok-player { min-width:0; overflow-wrap:anywhere; }
#caromPlay .omok-invite-code:disabled { opacity:1; cursor:default; }
.carom-screen.is-playing #caromPlayers .omok-player { background:#141c29; border-color:#2f3e53; }
.carom-screen.is-playing #caromPlayers .omok-player strong { color:#edf2fa; }
.carom-screen.is-playing #caromPlayers .omok-player b { color:#aebdd1; }
.carom-screen.is-playing #caromPlayers .omok-player-record { color:#aebdd1; }
.carom-screen.is-playing #caromPlayers .omok-player.is-turn { border-color:#5b8fd4; background:#203452; }
/* Hold the cue ball to adjust the contact point without firing. */
.carom-spin-panel { position:fixed; z-index:120; transform:translateX(-50%); width:180px; padding:12px; border-radius:18px; background:#142335f2; color:#fff; text-align:center; pointer-events:none; box-shadow:0 8px 30px #0006; user-select:none; }
.carom-spin-panel > span { display:block; font-weight:700; margin-bottom:8px; }
.carom-spin-panel small { display:block; font-size:11px; line-height:1.5; margin-top:8px; color:#e3eaf4; }
.carom-spin-ball { position:relative; margin:auto; width:140px; height:140px; border-radius:50%; background:radial-gradient(circle at 32% 28%,#fff,#f4f0df 55%,#a4a9ae); }
.carom-spin-ball::before,.carom-spin-ball::after { content:''; position:absolute; background:#50678055; }
.carom-spin-ball::before { width:1px; height:100%; left:50%; }
.carom-spin-ball::after { height:1px; width:100%; top:50%; }
.carom-spin-ball i { position:absolute; left:calc(50% - 7px); top:calc(50% - 7px); width:14px; height:14px; border-radius:50%; background:#e73f53; border:2px solid #fff; box-shadow:0 1px 5px #0007; z-index:1; }
/* Billiards room creation follows the common dialog layout. */
#billiardsCreateModal { z-index:140; }
#billiardsCreateModal .notice-content { display:flex; flex-direction:column; align-items:stretch; gap:16px; text-align:left; width:min(480px,calc(100% - 24px)); max-height:85dvh; overflow-y:auto; }
#billiardsCreateModal .modal-header { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin:0; }
#billiardsCreateModal .modal-header h2 { flex:1; min-width:0; margin:0; text-align:left; }
#billiardsCreateModal .modal-header .close-button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; padding:0; margin:0 0 0 auto; }
#billiardsCreateModal .billiards-kind-label { display:grid; gap:8px; min-width:0; }
#billiardsCreateModal select { width:100%; min-width:0; font-size:16px; }
#billiardsCreateModal p { margin:0; line-height:1.6; }
#billiardsCreateModal .modal-actions { display:grid; grid-template-columns:minmax(0,1fr); margin:0; }
#billiardsCreateModal { z-index:110; }
#billiardsCreateModal .modal-header { display:flex; width:100%; justify-content:space-between; align-items:center; gap:12px; }
#billiardsCreateModal .modal-header h2 { flex:1 1 auto; min-width:0; text-align:left; }
/* Only the felt captures aiming gestures; rails use native page scrolling. */
.billiards-table { position:relative; width:100%; max-width:480px; margin:12px auto; touch-action:pan-y; }
#caromCanvas { touch-action:pan-y; cursor:default; }
.billiards-table #caromCanvas { margin:0; }
.billiards-table-input { position:absolute; top:4.54545455%; bottom:4.54545455%; left:8.33333333%; right:8.33333333%; touch-action:none; cursor:crosshair; user-select:none; -webkit-user-select:none; }
.billiards-cancel-shot { position:fixed; z-index:105; right:max(16px,env(safe-area-inset-right)); bottom:calc(20px + env(safe-area-inset-bottom)); width:auto; min-width:128px; min-height:56px; padding:14px 18px; border:2px solid #f89b9b; border-radius:16px; color:#fff; background:#8e2938; box-shadow:0 6px 22px #0006; font-size:16px; font-weight:800; touch-action:none; user-select:none; -webkit-user-select:none; }
.billiards-cancel-shot.is-target { background:#dc354f; border-color:#fff; box-shadow:0 0 0 5px #ff708055,0 6px 22px #0006; }
.carom-controls.has-restart #billiardsRestart { grid-column:1 / -1; }
/* Holdem presentation: stable cards/plates with compositor-only motion. */
#holdemRoom .holdem-seat { transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,opacity .18s ease; }
#holdemRoom .holdem-ux-deck { position:absolute; left:50%; top:36%; width:21px; height:29px; transform:translate(-50%,-50%) rotate(-9deg); pointer-events:none; border:1px solid #f6e3b6aa; border-radius:4px; background:repeating-linear-gradient(45deg,#254f6c 0 3px,#17384d 3px 6px); box-shadow:2px 2px 0 #d9d4bd,4px 4px 0 #1e3b4f,0 4px 7px #0004; opacity:.8; }
#holdemRoom .holdem-seat.holdem-ux-winner { border-color:#ffe395; box-shadow:0 0 0 2px #eec87888,0 0 20px #f8c95a55; }
#holdemMyCards.holdem-ux-winner .holdem-card { outline:2px solid #ffe395; outline-offset:2px; filter:drop-shadow(0 0 5px #eec87888); }
#holdemActionDock button { transition:background-color .12s ease,box-shadow .12s ease,opacity .12s ease; }
#holdemActionDock button:enabled:active { box-shadow:inset 0 2px 6px #0005; }
#holdemActionDock .is-submitting-action { position:relative; box-shadow:inset 0 0 0 2px #ffe099; }
#holdemActionDock .is-submitting-action::after { content:''; display:inline-block; width:8px; height:8px; margin-left:4px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; vertical-align:middle; animation:holdem-action-pending .65s linear infinite; }
@keyframes holdem-action-pending { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { #holdemRoom .holdem-seat,#holdemActionDock button { transition:none; } #holdemActionDock .is-submitting-action::after { animation:none; } }
/* Lobby: room controls first, wallet information on its own second row. */
#holdemGameScreen:not(:has(#holdemRoom:not(.hidden))) > .mystery-game-header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; }
#holdemGameScreen:not(:has(#holdemRoom:not(.hidden))) > .mystery-game-header > div:first-child { min-width:0; }
#holdemGameScreen:not(:has(#holdemRoom:not(.hidden))) > .mystery-game-header .omok-header-actions { display:grid; grid-template-columns:auto 44px; align-items:center; justify-items:end; gap:6px; min-width:0; }
#holdemGameScreen:not(:has(#holdemRoom:not(.hidden))) #holdemCreateRoom { grid-column:1; grid-row:1; white-space:nowrap; }
#holdemGameScreen:not(:has(#holdemRoom:not(.hidden))) #closeHoldem { grid-column:2; grid-row:1; width:44px; height:44px; }
#holdemGameScreen:not(:has(#holdemRoom:not(.hidden))) .holdem-wallet-actions { grid-column:1 / -1; grid-row:2; justify-content:flex-end; flex-wrap:wrap; max-width:100%; }
#holdemGameScreen:not(:has(#holdemRoom:not(.hidden))) #holdemDebtRepay { grid-column:1 / -1; grid-row:3; }
#holdemDisplayTheme {
  width: auto;
  min-height: 30px;
  padding: 4px 5px;
  border-color: #a8bfb3;
  background: #f5fbf7;
  color: #164b37;
  font-size: .72rem;
  font-weight: 700;
}
#holdemGameScreen:not(:has(> #holdemRoom:not(.hidden))) #holdemDisplayTheme { display: none; }
/* Spread the table seats; the own plate may extend into the lower HUD. */
#holdemRoom #holdemTable { overflow:visible; top:24px; }
#holdemRoom #holdemSeats[data-my-seat]:not([data-my-seat="0"]) > .holdem-seat-anchor:first-child { top:100% !important; z-index:5; }
#holdemGameScreen:has(#holdemActionDock.hidden) #holdemRoom #holdemTable { top:0; }
#holdemGameScreen:has(#holdemActionDock.hidden) #holdemRoom #holdemSeats[data-my-seat]:not([data-my-seat="0"]) > .holdem-seat-anchor:first-child {
  top:calc(100% - var(--holdem-seat-height) / 2 - 4px) !important;
}
#holdemRoom .holdem-table-footer { position:relative; z-index:6; }
#holdemGameScreen:has(#holdemRoom:not(.hidden)) #holdemActionDock { z-index:10; }
/* Layered casino chips; their count is decorative, while the pot label is exact. */
.holdem-pot-stack:not(:empty) { width:118px; min-width:118px; height:48px; min-height:48px; margin-bottom:3px; }
.holdem-pot-stack-chip { --chip-color:#c7424f; --chip-dark:#702333; left:calc(50% - 14px + var(--chip-x)); bottom:var(--chip-y); width:28px; height:12px; border:1px solid #f8e6bd; border-radius:50%; background:repeating-conic-gradient(from 12deg,#fff0d4 0deg 17deg,var(--chip-color) 17deg 57deg,#fff0d4 57deg 72deg,var(--chip-color) 72deg 120deg); box-shadow:0 3px 0 var(--chip-dark),0 4px 0 #151c29,1px 6px 5px #001b16a0,inset 0 1px 1px #fff9; transform:rotate(var(--chip-rotate,0deg)); }
.holdem-pot-stack-chip::before { content:''; position:absolute; inset:2px 5px; border:1px solid #f8e6bdaa; border-radius:50%; background:var(--chip-color); box-shadow:inset 0 1px 2px #0005; }
.holdem-pot-stack-chip b { position:absolute; z-index:1; inset:0; display:grid; place-items:center; color:#fff5d8; font-size:7px; font-style:normal; font-weight:800; line-height:10px; text-shadow:0 1px 1px #0008; }
.holdem-pot-stack-chip.is-blue { --chip-color:#3c82c3; --chip-dark:#173c70; }
.holdem-pot-stack-chip.is-red { --chip-color:#c7424f; --chip-dark:#702333; }
.holdem-pot-stack-chip.is-gold { --chip-color:#d3a63e; --chip-dark:#80601f; }
.holdem-pot-stack-chip.is-green { --chip-color:#339c7c; --chip-dark:#185845; }
.holdem-pot-stack-chip.is-purple { --chip-color:#9560b3; --chip-dark:#533466; }
.holdem-flying-chip .holdem-payout-stack { transform:scale(.72); transform-origin:center; margin-left:-30px; }
.holdem-flying-chip-stack i { border:2px dashed #fff1c8; box-shadow:0 2px 0 #17334e,0 4px 3px #00150f99,inset 0 0 0 3px #ffffff33; }
.holdem-pot-stack .holdem-pot-stack-chip { background:repeating-conic-gradient(from 12deg,#fff0d4 0deg 17deg,var(--chip-color) 17deg 57deg,#fff0d4 57deg 72deg,var(--chip-color) 72deg 120deg); }

#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) {
  --sheet-paper: #f7fcf8;
  --sheet-cell: #e7f3eb;
  --sheet-line: #a4bdad;
  --sheet-ink: #213e33;
  --sheet-accent: #126042;
  --holdem-room-title-color: var(--sheet-ink);
  background: linear-gradient(to right, #b6cec1 1px, transparent 1px) 0 0 / clamp(24px, 6vw, 58px) 100%,
    linear-gradient(to bottom, #c7dad0 1px, transparent 1px) 0 0 / 100% 22px, var(--sheet-paper);
  color: var(--sheet-ink);
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) > .mystery-game-header {
  background: transparent;
  border-bottom: 1px solid var(--sheet-line);
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemRoom { background: transparent; }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemTable {
  background: transparent;
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) .holdem-roundbar { gap: 0; }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) .holdem-roundbar > div {
  border: 1px solid var(--sheet-line);
  border-radius: 0;
  background: var(--sheet-cell);
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) :is(#holdemTitle, .holdem-roundbar span, .holdem-roundbar strong, .holdem-center, #holdemTurnStatus, #holdemRebuySettings, .holdem-sound-setting, .holdem-history-menu > summary) {
  color: var(--sheet-ink);
  text-shadow: none;
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemError { color: #9e2430; }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemRoom .holdem-seat {
  border: 1px solid #789587;
  border-radius: 0;
  background: #f6fbf7;
  box-shadow: none;
  color: var(--sheet-ink);
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemRoom .holdem-seat-top {
  justify-content: flex-start;
  padding-inline: 3px;
  border-bottom: 1px solid var(--sheet-line);
  background: var(--sheet-cell);
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemRoom .holdem-seat.is-active {
  outline: 2px solid #157145;
  outline-offset: 0;
  box-shadow: 0 0 0 3px #b1d8c1;
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemRoom .holdem-seat:focus-visible { outline: 2px solid #165c9f; outline-offset: 3px; }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemRoom .holdem-seat :is(.holdem-seat-top strong, .holdem-seat-balance, .holdem-seat-bet, .holdem-seat-hand-label) {
  color: var(--sheet-ink) !important;
  text-shadow: none;
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemRoom .holdem-seat-bet.is-ready {
  border: 1px solid var(--sheet-line);
  border-radius: 0;
  background: var(--sheet-cell);
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) .holdem-card {
  content: var(--holdem-sheet-card, normal);
  border-radius: 0;
  filter: drop-shadow(1px 2px 1px #234d3933);
}
.holdem-sheet-pot-label { display: none; }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) .holdem-default-pot-label { display: none; }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) .holdem-sheet-pot-label { display: inline; }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemPotStack,
body:has(#holdemGameScreen[data-holdem-theme="excel"]:not(.hidden) > #holdemRoom:not(.hidden)) > .holdem-flying-chip { display: none; }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) .holdem-card-back,
body:has(#holdemGameScreen[data-holdem-theme="excel"]:not(.hidden) > #holdemRoom:not(.hidden)) > .holdem-folding-card {
  border-color: #477b63;
  border-radius: 0;
  background: linear-gradient(#28694f, #28694f) top / 100% 17% no-repeat,
    linear-gradient(#a7cfb8, #a7cfb8) left / 21% 100% no-repeat,
    linear-gradient(#1a6c48, #1a6c48) center 58% / 29% 21% no-repeat,
    linear-gradient(to right, #8db5a0 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(to bottom, #8db5a0 1px, transparent 1px) 0 0 / 100% 17%, #f0f9f2;
  font-size: 0;
  box-shadow: none;
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemRoom .holdem-pot > strong {
  padding: 2px 6px;
  border: 1px solid var(--sheet-line);
  background: var(--sheet-paper);
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemActionDock {
  border-top: 1px solid var(--sheet-line);
  background: transparent;
  color: var(--sheet-ink);
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemActionDock :is(.holdem-my-player-info, label, small) { color: var(--sheet-ink); }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) .holdem-own-hand > strong {
  color: var(--sheet-accent);
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemMyCards:empty { display: none; }
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemActionDock :is(.holdem-action-buttons button, .holdem-raise-panel button, #holdemEmoteToggle) {
  border: 1px solid #6d9783;
  border-radius: 2px;
  background: #f7fcf8;
  color: #174d39;
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemActionDock :is([data-holdem-action="raise"], [data-holdem-action="allin"], [data-holdem-confirm-raise]) {
  background: var(--sheet-accent);
  color: #fff;
}
#holdemGameScreen[data-holdem-theme="excel"]:has(> #holdemRoom:not(.hidden)) #holdemRaiseAmount { border-radius: 2px; background: #fff; color: var(--sheet-ink); }
/* Keep the amount just above public cards, with decorative chips behind. */
#holdemRoom .holdem-center > .holdem-pot { position:relative; z-index:1; min-height:48px; }
#holdemRoom .holdem-pot > strong { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); z-index:1; line-height:16px; white-space:nowrap; text-shadow:0 1px 3px #03291f,0 0 5px #03291f; }
#holdemRoom .holdem-pot > #holdemPotStack { grid-row:1; position:relative; z-index:0; }
#holdemRoom .holdem-center > .holdem-community { position:relative; z-index:2; margin-top:-18px; }
#holdemRoom .holdem-center > .holdem-community:empty { margin-top:0; }
/* Cue-only dragging leaves the felt available for native touch scrolling. */
.billiards-table { overflow:hidden; border-radius:16px; }
.billiards-table-input { pointer-events:none; touch-action:pan-y; cursor:default; }
.billiards-table-input.is-placing { pointer-events:auto; cursor:crosshair; }
.billiards-cue-input { position:absolute; width:47.9166667%; height:30px; touch-action:none; cursor:grab; user-select:none; -webkit-user-select:none; }
.billiards-cue-input:active { cursor:grabbing; }
.billiards-ball-input { position:absolute; width:32px; height:32px; border-radius:50%; transform:translate(-50%,-50%); touch-action:none; cursor:crosshair; user-select:none; -webkit-user-select:none; }
/* 동시 진행 온라인 야찌 */
body.yahtzee-online-open .bottom-nav { display:none !important; }
#yahtzeeOnlineModal .notice-content { display:flex; flex-direction:column; align-items:stretch; gap:12px; width:min(100%,560px); max-height:90dvh; box-sizing:border-box; overflow:auto; padding:20px; border-radius:20px; text-align:left; }
#yahtzeeOnlineModal .modal-header { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:12px; width:100%; margin:0; }
#yahtzeeOnlineModal .modal-header h2 { flex:1 1 auto; min-width:0; margin:0; font-size:1.2rem; text-align:left; }
#yahtzeeOnlineModal .modal-header .close-button { display:grid; flex:0 0 40px; place-items:center; width:40px; min-width:40px; max-width:40px; height:40px; min-height:40px; margin-left:auto; padding:0; line-height:1; }
#yahtzeeOnlinePanel { width:100%; min-width:0; padding-bottom:24px; }
body.yahtzee-online-open .game-chat-fab { z-index:1200; }
body.yahtzee-online-open .game-chat-panel { z-index:1199; }
.yo-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0; flex-wrap:wrap; }
.yo-join { display:flex; gap:8px; margin:16px 0; }.yo-join input { min-width:0; flex:1; text-transform:uppercase; }
#yoPlayers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:16px 0; }
#yoPlayers .omok-player { min-width:0; cursor:pointer; }#yoPlayers strong { overflow-wrap:anywhere; }
#yoPlayers .yo-selected { outline:2px solid #315fa5; outline-offset:1px; }
#yoClock { font-weight:800; color:#315fa5; font-variant-numeric:tabular-nums; }
#yoDice { margin:20px 0; }#yoDice .yahtzee-die { min-width:0; width:100%; }
#yoDice .yahtzee-die.is-held { outline:3px solid #155bd1; outline-offset:2px; box-shadow:0 0 0 2px #fff; }
#yoRoll { width:100%; }#yoWaiting { min-height:24px; color:#315fa5; font-weight:700; }
.yo-score-table { padding:16px; border:1px solid #d3e0f3; border-radius:16px; background:#fff; margin:16px 0; }
.yo-score-table h3 { margin:0 0 12px; }.yo-score-row { display:grid; grid-template-columns:minmax(0,1fr) 44px 68px; align-items:center; gap:8px; min-height:44px; padding:6px 0; border-bottom:1px solid #e8eef6; }.yo-score-row button { padding:7px 10px; }
.yo-results { padding:14px; background:#edf4ff; border:1px solid #c7d8f2; border-radius:14px; }.yo-results p { margin:6px 0; }
.yo-modal-body { width:100%; text-align:left; padding:12px 0; display:grid; gap:14px; }.yo-modal-body label { display:grid; gap:6px; }.yo-modal-body input,.yo-modal-body select { width:100%; min-width:0; box-sizing:border-box; }.yo-modal-body .yo-checkbox { display:flex; gap:8px; align-items:center; }.yo-checkbox input { width:auto; }
.yo-chat-messages { max-height:38vh; overflow:auto; padding:12px; background:#f4f7fb; border-radius:12px; text-align:left; overflow-wrap:anywhere; }
@media(min-width:700px){#yoPlayers{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:360px){#yahtzeeScreen>.mystery-game-header{gap:6px;}#yahtzeeScreen .omok-header-actions{gap:5px;}#openYahtzeeOnline{padding:8px 10px;font-size:13px;}.yo-score-table{padding:10px;}}
#yoRoom .yo-toolbar button { min-height:40px; }
#yoDice .yahtzee-die-art { width:100%; height:100%; }
#ricochetOnlinePanel { display:grid; gap:14px; width:100%; min-width:0; padding-bottom:24px; }
#ricochetOnlinePanel .ricochet-online-lobby, #ricochetOnlinePanel #roRoom { padding:16px; border:1px solid #dfe7f3; border-radius:18px; background:#fff; }
#ricochetOnlinePanel h3 { margin:0; }
#ricochetOnlinePanel #roPlayers { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; }
#ricochetOnlinePanel #roClaimPanel { margin:12px 0; padding:12px; border:1px solid #dfe7f3; border-radius:14px; }
#ricochetOnlinePanel #roClaimForm { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }
#ricochetOnlinePanel #roClaimForm label { display:grid; gap:5px; }
#ricochetOnlinePanel #roClaimInput { width:130px; min-height:42px; }
#roBoardHost :is(.ricochet-bid-panel, .ricochet-coop-panel, .ricochet-board-toolbar, .ricochet-modal-reset, #ricochetRoundTimer, #ricochetMoveTimer) { display:none !important; }
#roBoardHost .ricochet-move-modal-card::before { width:auto; margin-right:0; }
#ricochetOnlinePanel #roBoardHost .ricochet-move-modal { z-index:20; }
.ricochet-online-board-host { min-width:0; }
#ricochetOnlineModal .notice-content { display:flex; flex-direction:column; align-items:stretch; gap:12px; text-align:left; }
#ricochetOnlineModal .modal-header { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; }
#ricochetOnlineModal .modal-header h2 { flex:1; min-width:0; margin:0; text-align:left; }
#ricochetOnlineModal .modal-header .close-button { flex:0 0 40px; width:40px; height:40px; padding:0; }
html[data-theme="dark"] #ricochetOnlinePanel .ricochet-online-lobby, html[data-theme="dark"] #ricochetOnlinePanel #roRoom, html[data-theme="dark"] #ricochetOnlinePanel #roClaimPanel { border-color:#34445b; background:#1a2230; }

/* Point Omok room controls */
.omok-point-panel { display:grid; gap:6px; padding:12px; border:1px solid #cbd8e8; border-radius:12px; background:#edf4ff; color:#14213d; }
.omok-point-panel p { margin:0; font-size:.86rem; overflow-wrap:anywhere; }
.omok-point-panel :is(input,button) { min-height:44px; }
.omok-point-panel button { padding-inline:12px; }
html[data-theme="dark"] .omok-point-panel { background:#1a2433; border-color:#43536a; color:#edf2fa; }
#omokPointModal .modal-content { align-items:start; width:min(100%,420px); padding:16px; }
#omokPointModal .modal-header { width:100%; gap:12px; margin:0; }
#omokPointModal .modal-header h2 { flex:1; min-width:0; text-align:left; }
#omokPointModal .modal-header .close-button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; margin-left:auto; padding:0; }
#omokPointModal p { margin:0; overflow-wrap:anywhere; }
#omokPointCurrentBid { font-size:1.16rem; font-weight:800; color:inherit; }
#omokPointBidForm { display:grid; width:100%; gap:6px; text-align:left; }
#omokPointBidForm input { min-width:0; }
#omokPointModalError:empty { display:none; }
