body.new-classic-game:has(.private-room-lobby, .room-entry-panel){overflow:auto}
body.new-classic-game:has(.private-room-lobby, .room-entry-panel) #shell{height:auto;min-height:100dvh;padding:clamp(20px,4vw,52px) 20px}
body.new-classic-game:has(.private-room-lobby, .room-entry-panel) #app{height:auto}
.private-room-lobby,.room-entry-panel{width:min(1040px,100%);margin:auto;color:#efece1}
.private-room-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px}
.private-room-header h1,.room-entry-panel h1{font:500 clamp(30px,4vw,48px)/1.12 Georgia,serif;margin:12px 0}
.private-room-lobby .muted,.room-entry-panel .muted{color:#aab8ac;line-height:1.6}
.private-room-lobby .eyebrow,.room-entry-panel .eyebrow{color:#e8b961;letter-spacing:.16em;font-size:11px;font-weight:800}
.private-room-facts{display:flex;flex-wrap:wrap;gap:30px;padding:18px 24px;margin-bottom:24px;background:#122b21;border:1px solid #385045;border-radius:16px}
.private-room-facts>div{display:grid;gap:6px;flex:1;min-width:110px}.private-room-facts span{font-size:12px;color:#aab8ac}.private-room-facts strong{font-size:16px}
.private-room-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px}
.private-room-seating,.private-room-invitation{min-width:0;padding:26px;background:#10271e;border:1px solid #385045;border-radius:20px}
.private-room-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.private-room-lobby h2{font:500 24px/1.2 Georgia,serif;margin:0}.private-room-count{color:#aab8ac;font-size:12px}
.private-room-seats{display:grid;gap:12px;list-style:none;padding:0;margin:0}
.private-room-seat{display:flex;align-items:center;gap:14px;padding:16px 14px;border:1px solid #385045;border-radius:14px;background:#173328}
.private-room-seat.empty{border-style:dashed;background:transparent}
.private-room-avatar{position:relative;display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:#dcb367;color:#17251c;font-weight:800;overflow:hidden}
.private-room-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.private-room-seat.empty .private-room-avatar{background:#253c30;color:#b5c0b7;font-size:26px;font-weight:400}
.private-room-seat-copy{display:grid;gap:5px;min-width:0;flex:1}.private-room-seat-copy strong{overflow-wrap:anywhere;font-size:14px}.private-room-seat-copy span{font-size:12px;color:#aab8ac}
.private-room-team{font-size:10px;color:#cfb77f;white-space:nowrap}
.private-room-invitation h2{margin-top:12px}.private-room-code{padding:20px 10px;margin:24px 0;text-align:center;font:700 clamp(25px,4vw,36px)/1 monospace;letter-spacing:.18em;border:1px dashed #a3864e;border-radius:14px;color:#f5d590;background:#203429}
.private-room-invitation .table-lobby-actions{display:grid;gap:10px}.private-room-invitation .table-lobby-actions .button{width:100%;text-align:center;margin:0}
.private-room-invitation .table-lobby-feedback{min-height:18px;color:#e8b961;font-size:12px}
.private-room-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 12px;padding:22px 26px;border:1px solid #385045;border-radius:16px;background:#122b21}
.private-room-footer p{font-size:13px;margin:6px 0 0}.private-room-footer button:disabled{opacity:.45;cursor:default}
.room-entry-panel{max-width:560px;padding:32px;border:1px solid #385045;border-radius:22px;background:#122b21;margin:40px auto}
.room-entry-panel form{display:grid;gap:14px;margin:24px 0}.room-entry-panel label{font-size:14px}.room-entry-panel input{width:100%;min-height:54px;padding:12px 16px;border:1px solid #8e794a;border-radius:10px;background:#0e2119;color:#f5d590;font:700 24px monospace;letter-spacing:.12em;text-transform:uppercase}
.room-entry-feedback{color:#f3c58a;line-height:1.5;overflow-wrap:anywhere}.room-entry-panel>.button{margin-top:12px}
@media(max-width:700px){body.new-classic-game:has(.private-room-lobby,.room-entry-panel) #shell{padding:24px 14px}.private-room-layout{grid-template-columns:1fr;gap:16px}.private-room-header{gap:12px;margin-bottom:22px}.private-room-header>.button{padding:10px;font-size:12px}.private-room-facts{padding:16px;gap:16px}.private-room-facts>div{min-width:75px}.private-room-facts strong{font-size:13px}.private-room-seating,.private-room-invitation{padding:20px 16px}.private-room-seat{gap:10px;padding:14px 10px}.private-room-team{font-size:9px}.private-room-footer{align-items:stretch;flex-direction:column;padding:20px 16px}.private-room-footer .button{width:100%;text-align:center}.room-entry-panel{padding:24px 20px;margin:20px auto}}
@media(prefers-reduced-motion:reduce){.private-room-lobby *{animation:none!important;transition:none!important}}
.room-mobile-copy{display:none}
/* Use the product lobby's typography, felt surfaces and gold controls. */
body.new-classic-game:has(.private-room-lobby){
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  background:radial-gradient(ellipse at 6% 12%,#245740 0,transparent 38rem),radial-gradient(ellipse at 94% 0,#b4863218 0,transparent 32rem),#091812;
}
.private-room-lobby{color:#f7f0df}
.private-room-header h1,.private-room-lobby h2{color:#fff0cf;letter-spacing:-.025em}
.private-room-header h1::before{content:"♠";display:inline-block;margin-right:.3em;color:#efc76f;font-size:.8em}
.private-room-lobby .muted,.private-room-count,.private-room-seat-copy span{color:#b8c4b8}
.private-room-lobby .eyebrow{color:#e7c273}
.private-room-seating,.private-room-invitation{
  position:relative;isolation:isolate;border-color:#eace9042;
  background:linear-gradient(145deg,#214633f5,#0d2a1ff7);
  box-shadow:0 18px 40px #0004,inset 0 1px #fff8dc12;
}
.private-room-seating::before,.private-room-invitation::before{content:"";position:absolute;top:0;left:18px;right:18px;height:2px;background:linear-gradient(90deg,transparent,#efc76f,transparent);pointer-events:none}
.private-room-facts,.private-room-footer{border-color:#cbd7c828;background:linear-gradient(145deg,#1b3d2d,#10291f);box-shadow:0 9px 22px #0002}
.private-room-facts strong,.private-room-seat-copy strong{color:#fff0cf}
.private-room-seat{border-color:#cbd7c828;background:#ffffff08}
.private-room-seat.empty{border-color:#d2ddcf2e;background:#071d154d}
.private-room-avatar{color:#251b09;background:linear-gradient(155deg,#ffda7a,#eab647);box-shadow:inset 0 1px #fff7d166}
.private-room-seat.empty .private-room-avatar{background:#d2ddcf12;color:#a8baaa;box-shadow:none}
.private-room-team{color:#e7c273}
.private-room-code{border-color:#e9bd6766;background:#071d15;color:#f2ce7f;box-shadow:inset 0 1px #fff8dc0a}
.private-room-lobby .button{font-family:inherit;border-radius:10px;box-shadow:0 1px 0 #ffffff0d inset,0 3px 8px #00000030;transition:background-color .15s ease,border-color .15s ease,filter .15s ease}
.private-room-lobby .button.primary{border-color:#f4d98c;color:#251b09;background:linear-gradient(155deg,#ffda7a,#eab647);box-shadow:inset 0 1px #fff7d166,0 6px 16px #0003}
.private-room-lobby .button.secondary{border-color:#d7dfd234;color:#eff2e2;background:#ffffff08}
.private-room-lobby .button.ghost{border-color:#d7dfd224;color:#c6d2c7;background:#071d1559;box-shadow:none}
.private-room-lobby .button:hover:not(:disabled){border-color:#e9bd678c;filter:brightness(1.08)}
.private-room-lobby .button:focus-visible{outline:2px solid #f4d98c;outline-offset:2px}
.private-room-lobby .button:disabled{opacity:.45;filter:none;box-shadow:none}
@media(max-width:700px){
  body.new-classic-game:has(.private-room-lobby) #shell{height:auto;min-height:100dvh;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
  .private-room-lobby{display:grid;gap:8px}
  .private-room-lobby .room-desktop-copy{display:none}.private-room-lobby .room-mobile-copy{display:inline}
  .private-room-header{gap:8px;margin:0;align-items:center}
  .private-room-header .eyebrow{display:none}
  .private-room-header h1{font-size:24px;margin:0;line-height:1.15}
  .private-room-header p{font-size:11px;line-height:1.3;margin:4px 0 0}
  .private-room-header>.button{min-height:44px;padding:10px 12px}
  .private-room-facts{margin:0;padding:10px 12px;gap:8px;border-radius:12px}
  .private-room-facts>div{min-width:0;gap:3px}.private-room-facts span{font-size:10px}.private-room-facts strong{font-size:12px}
  .private-room-layout{gap:8px}
  .private-room-seating,.private-room-invitation{padding:12px;border-radius:14px}
  .private-room-section-head{margin-bottom:8px;gap:6px}.private-room-lobby h2{font-size:18px}.private-room-count{font-size:10px}
  .private-room-seats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .private-room-seat{display:grid;grid-template-columns:26px minmax(0,1fr);gap:3px 7px;padding:8px;border-radius:10px}
  .private-room-avatar{width:26px;height:26px;grid-row:span 2;font-size:11px}
  .private-room-seat.empty .private-room-avatar{font-size:20px}
  .private-room-seat-copy{gap:2px}.private-room-seat-copy strong{font-size:11px;line-height:1.2}.private-room-seat-copy span{font-size:9px;line-height:1.2}
  .private-room-team{grid-column:2;font-size:9px;line-height:1.1}
  .private-room-invitation{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px}
  .private-room-invitation>.eyebrow{display:none}.private-room-invitation h2{margin:0;font-size:17px}
  .private-room-invitation>.muted{grid-column:1/-1;grid-row:2;font-size:10px;line-height:1.2;margin:0}
  .private-room-code{grid-column:2;grid-row:1;padding:8px;margin:0;font-size:20px;letter-spacing:.12em;border-radius:8px}
  .private-room-invitation .table-lobby-actions{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .private-room-invitation .table-lobby-actions .button{display:grid;place-items:center;min-height:44px;padding:7px 6px;font-size:11px;line-height:1.2}
  .private-room-invitation .table-lobby-feedback{grid-column:1/-1;font-size:10px;min-height:0}.private-room-invitation .table-lobby-feedback:empty{display:none}
  .private-room-footer{flex-direction:row;align-items:center;gap:8px;margin:0;padding:10px 12px;border-radius:12px}
  .private-room-footer strong{font-size:12px}.private-room-footer p{font-size:10px;line-height:1.25;margin:3px 0 0}
  .private-room-footer .button{flex:0 0 128px;width:128px;min-height:44px;padding:8px;font-size:11px}
  .private-room-lobby>.button{justify-self:center;min-height:44px;padding:8px 12px;margin:0;font-size:11px}
}
@media(max-width:700px) and (max-height:680px){
  .private-room-lobby{gap:6px}.private-room-header h1{font-size:21px}
  .private-room-facts{padding:7px 10px}.private-room-layout{gap:6px}
  .private-room-seating,.private-room-invitation{padding:8px 10px}
  .private-room-section-head{margin-bottom:6px}.private-room-seat{padding:6px;gap:2px 5px}
  .private-room-footer{padding:7px 10px}
}
