/* V4: original arcade quest UI. Only lobby / profile / draft presentation. */
.bso-guest:has(#guest-lobby:not([hidden])){background:radial-gradient(ellipse at 50% 20%,#4970a0 0%,#22384d 38%,#101e35 75%);color:#fff7dc;min-height:100dvh}
.bso-guest:has(#guest-lobby:not([hidden])) header{position:sticky;top:0;z-index:20;min-height:46px;box-shadow:0 4px 0 #060a11,0 6px 0 #a77e3c;background:linear-gradient(#3f4a5b,#151e2d 54%,#080d17);border-bottom:1px solid #f2d68b;gap:7px;padding:7px 8px max(7px,env(safe-area-inset-bottom))}
.bso-guest:has(#guest-lobby:not([hidden])) header strong{font-size:clamp(10px,3vw,14px);font-weight:1000;letter-spacing:.04em;text-shadow:0 2px #000}
.bso-guest:has(#guest-lobby:not([hidden])) header button{background:linear-gradient(#b1bfcd,#586b85 48%,#25364a 51%,#15202c);box-shadow:0 2px 0 #000;border:1px solid #d7e0eb;color:white;font-weight:800;font-size:12px;padding:6px 9px}
#guest-status{font-size:10px;text-align:right;white-space:normal;overflow-wrap:anywhere}
.bso-guest:has(#guest-lobby:not([hidden])) main{justify-content:flex-start;padding:10px 7px max(12px,env(safe-area-inset-bottom));background:repeating-linear-gradient(135deg,#fff0 0 25px,#98c6ff09 25px 27px)}
#guest-lobby{max-width:480px;width:100%;padding:0;margin:7px auto;border:2px solid #c3ad75;border-radius:9px;background:linear-gradient(180deg,#253b58,#101e2b 56%,#253345);box-shadow:0 0 0 2px #0a101b,0 4px 14px #0009;overflow:hidden}
.lobby-topline{height:25px;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(#7d6845,#342b21);border-bottom:1px solid #d4b16a;padding:0 9px;font-size:10px;font-weight:1000;letter-spacing:.12em;color:#fff3c3;text-shadow:0 1px #251702}
.lobby-tag{color:#a9e4ff;letter-spacing:.05em}
#guest-lobby .mobile-hero{height:clamp(144px,22dvh,192px);background:radial-gradient(ellipse at 50% 30%,#f9e5a4,#b2742e 20%,#2465a4 55%,#142c4a 82%);isolation:isolate;border-bottom:3px solid #cda34a;overflow:hidden}
.hero-rays{position:absolute;inset:-50%;background:repeating-conic-gradient(from 12deg,#fff0 0deg 13deg,#fff6 13deg 16deg,#fff0 16deg 27deg);opacity:.36;transform:scale(1.1);pointer-events:none}
.hero-art{position:absolute;inset:0;display:flex;justify-content:center;align-items:flex-start;gap:0;pointer-events:none;overflow:hidden}
.hero-art img{width:37%;height:100%;max-width:174px;object-fit:contain;filter:drop-shadow(0 2px 5px #000) drop-shadow(0 0 12px #ffe88b55);transform:translate(16%,0) rotate(-10deg);opacity:.92}
.hero-art img:nth-child(2){z-index:1;width:45%;max-width:200px;transform:scale(1.15);opacity:1}
.hero-art img:nth-child(3){transform:translate(-16%,0) rotate(10deg)}
.hero-copy{position:absolute;inset:auto 0 0;z-index:2;padding:21px 4px 5px;background:linear-gradient(transparent,#080f20ed 62%,#080f20);text-shadow:0 2px 1px #000,0 0 6px #06080a}
#guest-lobby .hero-copy small{font-size:10px;font-weight:900;color:#bce6ff;letter-spacing:.16em;line-height:1.1}
#guest-lobby .hero-copy h2{font-size:clamp(26px,8vw,39px);font-weight:1000;letter-spacing:.07em;font-style:italic;margin:0;line-height:1.2;color:#fff1b0;-webkit-text-stroke:.4px #a87937;text-shadow:0 2px #9c4e12,0 4px #321a04,0 0 10px #ffc449aa}
#guest-lobby .hero-copy p{margin:2px 0 0;color:#e0edff;font-size:12px;font-weight:800;line-height:1.3}
.lobby-profile,#room-setup,#room-wait{padding:0 10px}.lobby-profile{padding-top:9px}
.section-ribbon{display:flex;align-items:center;justify-content:space-between;min-height:26px;margin:0 -2px 7px;padding:3px 10px;color:#fff3ca;font-weight:1000;font-size:13px;background:linear-gradient(#7f8ca3,#33465c 49%,#253249 51%,#17283e);border:1px solid #d6c08b;border-left:4px solid #f2c45f;box-shadow:0 2px 3px #0007;text-shadow:0 1px #000;letter-spacing:.04em}
.section-ribbon span{font-size:9px;color:#bbd0e6;letter-spacing:.12em}
.profile-edit{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;align-items:center;margin-bottom:10px}
#guest-lobby #guest-name{min-height:46px;border:1px solid #c5b48e;background:linear-gradient(#0a1422,#21364a);border-radius:5px;padding:8px;font-weight:800}
#guest-lobby #bsp-guest-profile{margin:0;min-height:46px;padding:3px 7px;width:100%;max-width:none;background:linear-gradient(#e1eef7,#8aabc4 48%,#51769b 50%,#253f66);border:1px solid #e4efff;border-radius:6px;box-shadow:0 3px 0 #08131d;color:white;text-shadow:0 1px #172a47;font-size:12px;overflow:hidden}
#bsp-guest-profile .bsp-avatar{width:38px;height:38px;border-radius:6px;border:1px solid #fff3bc;background:#203d5f}#bsp-guest-profile span{min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis}
.lobby-setting{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:5px;align-items:center;min-height:43px;margin:4px 0;border-bottom:1px solid #7891ae44;padding-bottom:4px}
#guest-lobby .lobby-setting label{margin:0;color:#fff1ce;font-weight:800;font-size:13px;padding-left:4px}
#guest-lobby select{font-weight:800;min-height:39px;border:1px solid #a5b4c6;border-radius:5px;background:linear-gradient(#20344a,#132033);padding:6px 8px;color:#fff;font-size:14px}#guest-lobby select:disabled{opacity:.8;color:#e5eeff}
#guest-lobby .bso-row{margin:11px 0 8px}
#guest-lobby .lobby-action{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:62px;overflow:hidden;padding:5px 25px;border:2px solid #ffeab1;border-radius:10px;background:linear-gradient(#fff0b0 0%,#ffce58 26%,#e99819 48%,#ad5509 51%,#d88413 78%,#ffbd40 100%);box-shadow:inset 0 0 0 2px #8f4b15,0 4px 0 #57360e,0 6px 8px #0008;color:#fff9d8;font-weight:1000;text-shadow:0 2px #713803,1px 0 #713803,-1px 0 #713803;letter-spacing:.08em}
#guest-lobby .lobby-action:before,#guest-lobby .lobby-action:after{content:'◆';position:absolute;top:50%;transform:translateY(-50%);color:#fff8c9;font-size:17px;text-shadow:0 1px #623d11}#guest-lobby .lobby-action:before{left:12px}#guest-lobby .lobby-action:after{right:12px}
#guest-lobby .lobby-action span{font-size:21px;line-height:1.1}#guest-lobby .lobby-action small{font-size:9px;color:#ffefc1;letter-spacing:.2em;line-height:1.5}#guest-lobby .lobby-action.bso-secondary{background:linear-gradient(#dcfaff,#65c6f9 32%,#168bce 48%,#14539b 51%,#3279c5 90%);border-color:#d6faff;box-shadow:inset 0 0 0 2px #225b9b,0 4px 0 #143458,0 6px 8px #0008;color:white;text-shadow:0 2px #10365d}#guest-lobby .lobby-action:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #332416}#guest-lobby .lobby-action:disabled{filter:grayscale(.75);opacity:.52}
#guest-lobby #guest-code{background:#080f1e;border:2px solid #9bcce8;border-radius:6px;font-size:23px;letter-spacing:.19em;text-align:center;font-weight:1000;text-transform:uppercase;min-height:49px}
#guest-lobby #guest-error{margin:10px 10px 5px;text-align:center;font-weight:700;min-height:0;line-height:1.4}#guest-lobby #guest-error:empty{display:none}
.lobby-help{margin:10px 10px 8px;font-size:11px;color:#c2d1e4;border-top:1px solid #a6b9d644;padding-top:5px}.lobby-help summary{cursor:pointer;text-align:center;color:#bfd1e9}.lobby-help small{display:block;font-size:11px;line-height:1.5;margin-top:5px}
#guest-lobby:has(#room-wait:not([hidden])) .mobile-hero{height:100px}#guest-lobby:has(#room-wait:not([hidden])) .lobby-profile{display:none}#room-wait{padding-top:10px}.room-number-label{text-align:center;font-size:12px;font-weight:800;color:#d8e3f4}#room-code{font-size:30px;border:2px solid #d8b875;background:linear-gradient(#101725,#27364b);box-shadow:inset 0 0 10px #0008;color:#fff5bb;letter-spacing:.13em;padding:7px}.share-row #room-share{width:100%;background:linear-gradient(#d1f4ff,#589ed1 48%,#22568f 50%,#3679b1);border:1px solid #c7f1ff;color:white;text-shadow:0 1px #123154;box-shadow:0 3px 0 #102f53;min-height:38px}
#guest-roster{grid-template-columns:1fr 1fr;gap:6px;margin:5px 0 10px}#guest-roster .bsp-person{min-height:65px;border:1px solid #a8bbd2;border-left:3px solid #78d9ff;padding:5px;gap:6px;background:linear-gradient(#425d7b,#13243c);border-radius:6px;font-size:12px;font-weight:800;color:#fff;box-shadow:0 2px 0 #0a1321}#guest-roster .bsp-avatar{width:42px;height:42px;border-radius:6px;border:1px solid #f8db92}
#bsp-modal .bso-card{background:linear-gradient(#304765,#111d30);border:2px solid #e1c27c;box-shadow:0 0 0 3px #0c172a;padding:14px}#bsp-modal .bso-card h2{font-style:italic;text-align:center;font-weight:1000;text-shadow:0 2px #784919}#bsp-modal .bsp-choice{border-color:#9aafc6;background:linear-gradient(#405d7f,#14253b);border-radius:6px}#bsp-modal .bsp-choice.selected{background:linear-gradient(#89652c,#3d2712);border-color:#ffe1a0}#bsp-modal .bsp-choice .bsp-avatar{border-radius:6px}#bsp-modal .bsp-save{background:linear-gradient(#fff0ad,#e6a02b 50%,#9f550d 51%,#d49024);color:#fff4cf;text-shadow:0 1px #663400;box-shadow:0 3px #4b2d0d}
@media(max-height:650px){#guest-lobby .mobile-hero{height:128px}.lobby-profile{padding-top:6px}.profile-edit{margin-bottom:6px}#guest-lobby .lobby-action{min-height:53px}}
