/* The scene is the lobby, not a background behind a form card. */
:root {
  --lodge-cream: #f4ecd9;
  --lodge-muted: #cabead;
  --lodge-brass: #d4bb90;
  --lodge-rule: #c5b49055;
  --ridge-mark: url('/ridge.svg');
}
.site-header {
  min-height: 62px; padding-block: 7px; padding-top: max(7px, env(safe-area-inset-top));
  padding-inline: clamp(14px, 4.4vw, 76px); gap: 12px;
  background: linear-gradient(to bottom, #15150fc9, #17191418);
}
.brand { min-height: 44px; min-width: 44px; gap: 8px; color: var(--lodge-cream); }
.brand-seal { width: 34px; height: 34px; color: var(--lodge-brass); border-radius: 0; background: none; }
.brand-ko { font: 600 clamp(18px, 2vw, 23px)/1 var(--serif); letter-spacing: -.055em; }
body[data-screen="lobby"] .brand-type { display: none; }
.header-tools { gap: clamp(5px, 1.5vw, 22px); }
#guide-slot { display: inline-flex; }
.header-tools :is(.hu-guide-button, #admin-open, #invite) {
  min-height: 44px; padding: 6px 5px; border: 0; border-radius: 2px; background: transparent; box-shadow: none;
  font: 550 13px/1.3 var(--sans); letter-spacing: -.025em; color: var(--lodge-cream); text-shadow: 0 1px 4px #14120e;
}
.header-tools :is(.hu-guide-button, #admin-open, #invite):hover { color: white; background: #3332287d; box-shadow: none; }
.header-tools svg { color: var(--lodge-brass); height: 16px; width: 16px; }
#connection { font-weight: 450; font-size: 12px; color: #e1c4a4; }
#connection::before { display: none; }
body[data-screen="lobby"]::after {
  background: linear-gradient(90deg,#151813ed 0%,#161812d9 22%,#181a14a1 35%,#18181123 59%,transparent 78%),linear-gradient(0deg,#1918107a,transparent 40%);
}
.lobby { width: min(100%, 1580px); align-content: center; justify-items: start; padding: clamp(24px, 8vh, 100px) clamp(32px, 9.5vw, 160px) clamp(50px, 10vh, 120px); }
.lobby-card {
  width: min(100%, 365px); min-width: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
.lobby-card::before, .lobby-card::after, .lobby-card > .eyebrow { display: none; }
.lobby-card :is(h1,h2) { color: var(--lodge-cream); font: 600 clamp(45px, 4.6vw, 76px)/1.16 var(--serif); letter-spacing: -.075em; text-shadow: 0 2px 12px #1418117d; }
.lobby-card .lead { margin: 11px 0 0; color: #ded5c3; font-size: 15px; line-height: 1.6; letter-spacing: -.03em; }
.lobby form { display: grid; margin: 32px 0 0; gap: 16px; }
.lobby-card form .field + .field { margin: 0; }
.lobby .field { gap: 6px; font-weight: 550; color: #e9dec7; }
.lobby input:not([type="checkbox"]):not([type="radio"]) {
  height: 44px; padding: 8px 11px; border: 0; border-bottom: 1px solid #c9b69a93; border-radius: 0;
  background: #181b16a6; color: #fff6e2; box-shadow: none; font-weight: 430;
}
.lobby input:not([type="checkbox"]):not([type="radio"]):focus-visible { outline: 2px solid #e1c79e; outline-offset: 2px; border-color: #f3dfbd; box-shadow: none; }
.lobby input::placeholder { color: #beb6a7; opacity: 1; }
.lobby .pass-note { margin: -9px 0 0; color: var(--lodge-muted); font-size: 12px; line-height: 1.5; }
.lobby-actions { margin-top: 6px; }
.lobby-actions .btn { min-height: 46px; border-radius: 3px; }
.lobby-actions .btn.primary { justify-content: space-between; padding: 11px 16px; background: #ded2b8; box-shadow: none; color: #28281d; border: 1px solid #e5d8bd; font-weight: 680; }
.lobby-actions .btn.primary:not(:disabled):not([aria-disabled="true"]):hover { background: #efe2c8; border-color: #f5e9cf; box-shadow: none; }
.lobby-actions .btn [aria-hidden="true"] { font: 400 18px/1 var(--serif); }
.lobby-card .hint { margin-top: 15px; padding: 0; border: 0; color: #c2b8a4; font-weight: 400; }
/* A single warm sheet for host settings, with rules rather than inset cards. */
.room-admin { color-scheme: light; color: #33342a; background: #ede6d7; border: 1px solid #c9bca1; border-radius: 5px; width: min(450px,calc(100% - 24px)); padding: clamp(17px,3vw,28px); box-shadow: 0 12px 38px #0d100c70; }
.room-admin::backdrop { background: #111610ad; }
.room-admin .ra-head small { display: none; }
.room-admin .ra-head h2 { margin: 0; font: 650 26px/1.3 var(--serif); letter-spacing: -.055em; }
.room-admin .ra-head { min-height: 44px; }
.room-admin .ra-intro { margin: 8px 0 17px; }
.room-admin section { border-color: #9a8b6f63; padding-block: 13px 0; margin-top: 14px; }
.room-admin p, .room-admin small { color: #595a4b; line-height: 1.6; }
.room-admin small { font-size: 12px; letter-spacing: 0; }
.room-admin .ra-line { gap: 8px; }
.room-admin input { min-height: 44px; color: #2c3329; background: #f9f4e8; font-size: 16px; border: 1px solid #9c957e; border-radius: 3px; }
.room-admin button { min-height: 44px; background: #e0d7c3; color: #3d4032; border-color: #a19781; border-radius: 3px; white-space: nowrap; }
.room-admin button:not(:disabled):hover { background: #d7c9ac; }
.room-admin .ra-close { border-color: transparent; background: none; }
.room-admin .ra-player + .ra-player { border-top: 1px solid #bfb49d64; }
.room-admin .ra-kick { color: #813e36; border-color: #bd9d8b; background: transparent; }
.room-admin .ra-msg:not(:empty) { color: #674324; }
.room-admin :focus-visible { outline: 2px solid #785d36; outline-offset: 2px; }
html:has(.room-admin[open]) { overflow: hidden; }
@media (max-width: 650px) {
  .site-header { min-height: 52px; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); padding-block: 2px; padding-top: max(2px, env(safe-area-inset-top)); gap: 4px; }
  .brand { gap: 4px; }
  .brand-seal { width: 27px; height: 27px; }
  .header-tools { gap: 4px; }
  .header-tools :is(.hu-guide-button,#admin-open,#invite) { font-size: 12px; gap: 4px; }
  .header-tools #connection:not([hidden]) { position: absolute; inset: calc(100% + 2px) 14px auto auto; background: #20251ded; padding: 2px 6px; }
  body[data-screen="lobby"] { --scene-height: clamp(260px,46svh,470px); background-color: #1b201a; }
  body[data-screen="lobby"]::before { position: absolute; height: var(--scene-height); background-position: 76% 50%; }
  body[data-screen="lobby"]::after { position: absolute; height: calc(var(--scene-height) + 1px); background: linear-gradient(to bottom,#15191118 0%,transparent 39%,#1b201a59 66%,#1b201a 100%); }
  .lobby { align-content: start; justify-items: center; padding: clamp(124px,21svh,220px) max(24px,env(safe-area-inset-left)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-right)); }
  .lobby-card { width: min(100%,410px); justify-self: center; }
  .lobby-card :is(h1,h2) { font-size: clamp(41px,10vw,58px); }
  .lobby-card .lead { margin-top: 9px; font-size: 14px; }
  .lobby form { margin-top: 23px; gap: 13px; }
  .lobby .pass-note { margin-top: -6px; }
  .lobby-card .hint { margin-top: 13px; }
}
@media(max-width:345px) {
  .header-tools #invite svg { display: none; }
  .header-tools :is(.hu-guide-button,#admin-open,#invite) { padding-inline: 3px; }
}
@media(min-width:651px) and (max-height:580px) {
  .site-header { min-height: 48px; padding-block: 1px; }
  .lobby { padding-block: 14px 25px; }
  .lobby form { margin-top: 16px; gap: 10px; }
}
