.room-lobby{padding:26px}.room-lobby h2{margin-bottom:7px}.room-intro{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 16px}.room-seat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:22px}.room-seat{padding:16px;border:1px solid #d9d6c6;border-radius:12px;background:#f8f5ed;min-width:0}.room-seat.is-you{border-color:#b39b59;box-shadow:0 0 0 1px #c6ab6733}.room-seat-heading{display:flex;gap:12px;align-items:center}.room-seat-heading img{width:62px;height:87px;object-fit:contain;border-radius:5px;box-shadow:0 4px 10px #46301420}.room-seat-heading h3{font-size:20px;line-height:1.2;margin-bottom:8px}.room-seat-kind{display:inline-flex;border-radius:20px;padding:4px 8px;font-size:10px;letter-spacing:.3px}.room-seat-kind.human{background:#e5eadf;color:#245343}.room-seat-kind.ai{background:#ede5d3;color:#715326}.room-seat-kind.empty{background:#eae8e1;color:#777568}.room-occupant{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:16px;min-height:26px;font-size:13px}.room-occupant strong{overflow-wrap:anywhere}.room-you{font-size:10px;color:#49634c;background:#e5eadf;border-radius:4px;padding:3px 5px}.room-host-crown{width:19px;height:19px;fill:#c5a14e;stroke:#856527;stroke-width:1.3;flex-shrink:0}.room-seat-help{font-size:11px;color:#7d8074}.room-ready-state{font-size:11px;margin-top:12px;color:#8a8270}.room-ready-state.ready{color:#306748}.room-seat-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.room-seat-actions button{font-size:11px;padding:8px 10px;min-height:36px}.room-seat-actions .room-take-seat{flex-basis:100%;background:transparent}.room-seat-tip{font-size:12px;line-height:1.5;color:var(--muted);margin:16px 0}.room-start-area{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-top:1px solid var(--line);padding-top:18px}.room-start-area>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.room-ready-count{font-size:12px;color:var(--muted)}.room-start-control{max-width:50%;text-align:right}.room-start-reason{font-size:12px;line-height:1.6;color:#76694e;margin-top:8px}.room-start-control button:disabled{opacity:.6}.room-lobby-footer{display:flex;justify-content:space-between;margin-top:20px}.room-ai-badge{background:#f0dbad33;border:1px solid #d9c18370;color:#f3dcac}.result-ai-seats{font-size:12px;margin:9px 0;color:#6c654f}
@media(max-width:1100px){.room-seat-grid{gap:9px}.room-seat{padding:12px}.room-seat-heading{gap:8px}.room-seat-heading img{width:44px;height:62px}.room-seat-heading h3{font-size:17px}}
@media(max-width:600px){.room-seat-grid{grid-template-columns:1fr}.room-lobby{padding:18px}.room-start-area{flex-direction:column}.room-start-control{max-width:100%;text-align:left}}
@media(orientation:landscape) and (max-height:500px){.room-seat-actions button,.room-lobby-footer button,.room-start-area button{min-height:44px}.room-seat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.room-invitation{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:start;border:1px solid var(--line);border-radius:12px;padding:18px;background:#faf7ef}
.room-code-block{padding:2px 14px 0 0;min-width:200px}.room-code-block>span{display:block;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:1.8px;margin-bottom:8px}.room-code{display:block;font-family:var(--sans);font-size:36px;line-height:1.2;letter-spacing:5px;color:var(--green);font-weight:700;font-variant-numeric:tabular-nums;user-select:all}.room-invite-details{min-width:0}.room-invite-details .invite-actions{margin-bottom:0}.room-invite-details .notice{font-size:11px;line-height:1.5;margin:10px 0 0;padding:9px 12px}.room-join-seat{width:100%;margin-top:14px;min-height:44px}.room-join-notice{margin-bottom:0}
@media(max-width:1000px){.room-invitation{gap:14px;padding:14px}.room-code-block{min-width:170px;padding-right:0}.room-code{font-size:30px;letter-spacing:4px}}
@media(max-width:600px){.room-invitation{grid-template-columns:1fr}.room-code{font-size:32px}}

/* Session navigation: keep exits visible and consistent. */
.room-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px}.room-title-row h2{margin-bottom:0}.room-exit{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;white-space:nowrap}.room-exit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.future-balance-space{display:inline-block;width:36px}.result-room-seats{margin-top:18px}.closed-room{margin:60px auto;max-width:600px;text-align:center}.rematch-controls{flex-wrap:wrap}.room-title-row{margin-bottom:12px}

.surrender-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--green);background:var(--paper);border-color:var(--line)}.surrender-button svg{width:18px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.session-dialog{max-width:500px}.session-dialog h2{font-size:27px;line-height:1.35}.room-pause{border:1px solid #c9a24a;display:flex;flex-wrap:wrap;gap:24px}.takeover-notice{border-left:3px solid #9b8243}.room-pause p{margin:6px 0}.session-vote-overlay{z-index:100}

.gift-session-actions{display:flex;justify-content:flex-end;gap:8px;margin-bottom:18px}

button.surrender-button:hover:not(:disabled){background:#f8e7e4;color:#9c3e49;border-color:#dfb9b7}
button.surrender-button:disabled{color:#738079;background:#f4f3ed;border-color:#deded1;opacity:.4}
.swap-request-overlay{z-index:100}.room-swap-notice{margin:14px 0}.room-ask-swap{margin-top:9px}
