*{box-sizing:border-box}[hidden]{display:none!important}body.duel-portal{min-height:100svh;color:#edf4f1;background:#030605;font-family:system-ui,sans-serif}.duel-portal .jammin-header{position:relative;z-index:4;max-width:none;padding:22px 4vw;display:flex;align-items:center;justify-content:space-between}.duel-portal .jammin-brand{font-size:25px;font-weight:500;gap:13px}.duel-portal .brand-orb{width:48px;height:48px}.duel-portal .room-nav{display:flex;align-items:center;gap:20px}.duel-portal #battle-count{font-size:14px;color:#c9d5cf;text-decoration:none}.portal-stage{position:relative;z-index:2;max-width:980px;width:calc(100% - 40px);margin:clamp(60px,12vh,125px) auto 40px;text-align:center}.portal-screen{position:relative;animation:portal-appear .55s ease both}.portal-screen h1{font-size:clamp(30px,4.5vw,54px);font-weight:450;letter-spacing:-.045em;margin:0 0 40px;line-height:1.12;text-wrap:balance;outline:none}.portal-screen p{color:#a7b7af;line-height:1.6}.duel-portal .welcome-choices{max-width:850px;margin:0 auto;gap:20px}.duel-portal .welcome-choices button{aspect-ratio:1/1.05;padding-bottom:14px}.duel-portal .welcome-choices strong{font-size:23px}.portal-screen button,.portal-screen a{font:inherit}.portal-screen button{cursor:pointer}.portal-screen button:disabled{opacity:.55;cursor:wait}.portal-screen button:focus-visible,.portal-screen a:focus-visible,.portal-screen input:focus-visible{outline:2px solid #ccfbe4;outline-offset:5px}.portal-actions{display:grid;gap:16px;max-width:410px;margin:0 auto 28px;position:relative}.portal-actions button,.invite-field,.compact-form input{border:1px solid #ffffff30;background:#11271e50;backdrop-filter:blur(18px);color:#ecf7f0;border-radius:38px;min-height:62px}.portal-actions button{display:flex;align-items:center;justify-content:space-between;padding:16px 30px;font-size:20px;transition:background .25s,border-color .25s}.portal-actions button:hover{background:#26453680;border-color:#ccebd17a}.quiet{display:block;min-height:44px;width:fit-content;margin:18px auto;padding:10px 16px;color:#b0c2b8;background:none;border:0;text-decoration:none;font-size:14px!important}.quiet:hover{color:#fff}.choice-orb{pointer-events:none;position:absolute;left:50%;top:47%;width:600px;max-width:100vw;aspect-ratio:1;transform:translate(-50%,-50%);background:url('/lobby-cards/welcome-together.png') center/contain no-repeat;opacity:.43;mask-image:radial-gradient(ellipse,#000 38%,transparent 73%);animation:portal-breathe 8s ease-in-out infinite}.primary{display:block;background:linear-gradient(110deg,#d5f4df,#c3ecd7);color:#12261d;min-height:54px;border:1px solid #e9fff0;border-radius:99px;min-width:280px;max-width:100%;margin:26px auto 16px;padding:14px 32px;font-size:18px!important;box-shadow:0 0 35px #b9ffcf18;text-decoration:none;transition:filter .2s}.primary:hover{filter:brightness(1.08)}.compact-form{max-width:410px;margin:auto}.compact-form label{display:block;text-align:left;margin:12px 16px 8px;font-size:14px;color:#bacac0}.compact-form input{width:100%;padding:15px 24px;font:inherit;min-height:56px}.compact-form .primary{width:100%}.player-forms{display:flex;justify-content:center;gap:clamp(20px,6vw,70px);margin:0 auto 20px}.participant{position:relative;display:grid;place-items:center;width:210px;max-width:42vw;aspect-ratio:1;background:url('/lobby-cards/welcome-solo.png') center/contain no-repeat}.participant:nth-child(2){background-image:url('/lobby-cards/welcome-together.png')}.participant .avatar{display:grid;place-items:center;border:1px solid #dfffee60;background:#04130fa0;border-radius:50%;width:70px;height:70px;font-size:26px}.participant .person-name{position:absolute;bottom:0;font-size:18px}.participant small{position:absolute;bottom:-24px;color:#a8caba;font-size:12px}.participant.empty{opacity:.5}.invite-field{display:flex;align-items:center;max-width:600px;margin:20px auto;padding:7px;gap:6px}.invite-field input{width:100%;min-width:0;padding:10px 16px;border:0;background:none;font:inherit;color:#bacbbf;font-size:13px}.invite-field button{white-space:nowrap;border:0;background:#d7efdf;color:#16261c;border-radius:28px;min-height:46px;padding:10px 20px;font-size:14px}details{font-size:13px;color:#bacbbf}summary{cursor:pointer}#visible-code{overflow-wrap:anywhere}#portal-error{color:#ffc6b1;font-size:14px;max-width:500px;margin:24px auto;line-height:1.6}#connection-status{color:#c9d7ce;font-size:13px;min-height:20px}.world-portals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,3vw,35px)}.world-portal{border:0;background:none;color:#f0f8f3;padding:0;display:grid;gap:22px;font-size:22px!important}.world-portal .world-window{position:relative;aspect-ratio:1;border-radius:50%;overflow:hidden;border:1px solid #d6ffee60;box-shadow:0 0 32px #afefcd1a;transition:transform .6s,border-color .3s}.world-window img{width:100%;height:100%;object-fit:cover;transition:transform 1s}.world-window:after{content:'';position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 34px 8px #050c09a0;pointer-events:none}.world-portal:hover .world-window{transform:translateY(-6px);border-color:#e2ffef}.world-portal:hover img{transform:scale(1.07)}#world-backdrop{position:fixed;inset:0;background-position:center;background-size:cover;opacity:0;transition:opacity 1.3s ease,transform 2s ease;transform:scale(1.035);pointer-events:none;z-index:-1}#world-backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(#020603a0,#02060335 40%,#02060360),radial-gradient(ellipse at 50% 38%,#0005,transparent 80%)}body[data-step=preview] #world-backdrop{opacity:.65}body[data-step=ready] #world-backdrop{opacity:1;transform:scale(1)}.world-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:680px;margin:55px auto;align-items:start}.world-rules p{color:#e6eee8;font-size:17px;margin:0;padding:16px 12px;line-height:1.5;text-shadow:0 2px 12px #000}.world-rules p:before{content:'✧';display:block;color:#e5d3a8;font-size:28px;margin-bottom:16px}#world-consent{min-height:30px;font-size:15px;color:#d7eee0}.consent-people{display:flex;justify-content:center;gap:20px;flex-wrap:wrap}#room-people{display:flex;gap:20px;font-size:13px;color:#d3e5da}.mini-person{display:flex;align-items:center;gap:8px}.mini-person span:first-child{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d0f2de18;border:1px solid #e0ffe044}.duel-portal[data-step=room] .portal-stage{margin-top:8vh}.duel-portal[data-step=ready] .portal-stage,.duel-portal[data-step=preview] .portal-stage{margin-top:12vh}@keyframes portal-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes portal-breathe{50%{opacity:.57;transform:translate(-50%,-50%) scale(1.025)}}@media(max-width:650px){.duel-portal .jammin-header{padding:15px 18px;flex-wrap:wrap;gap:14px}.duel-portal .jammin-brand{font-size:20px;gap:8px}.duel-portal .room-nav{gap:12px}.duel-portal #battle-count{font-size:12px}.duel-portal .brand-orb{width:36px;height:36px}.portal-stage{width:calc(100% - 30px);margin-top:11vh}.portal-screen h1{margin-bottom:28px}.duel-portal .welcome-choices{gap:4px}.duel-portal .welcome-choices button{aspect-ratio:1/1.45;padding-bottom:12px}.duel-portal .welcome-choices strong{font-size:17px}.portal-actions button{font-size:18px;min-height:60px}.player-forms{margin-bottom:32px}.participant .avatar{width:56px;height:56px}.participant .person-name{font-size:16px}.invite-field{border-radius:22px;flex-direction:column;align-items:stretch;padding:10px}.invite-field button{width:100%}.world-portals{gap:10px}.world-portal{font-size:15px!important;gap:14px}.world-rules{gap:6px;margin:32px auto}.world-rules p{font-size:13px;padding:12px 4px}.world-rules p:before{font-size:23px}.primary{min-width:0;width:min(100%,360px);font-size:17px!important}#room-people{order:3;width:100%;justify-content:center}.duel-portal[data-step=preview] .portal-stage,.duel-portal[data-step=ready] .portal-stage{margin-top:8vh}}@media(prefers-reduced-motion:reduce){.portal-screen,.choice-orb{animation:none}#world-backdrop,.world-window img,.world-portal .world-window{transition:none}.world-portal:hover .world-window{transform:none}}
.duel-portal #battle-count{background:transparent;border:0;cursor:pointer;min-height:44px;padding:8px;font:inherit;font-size:14px}.duel-portal .quiet{background:transparent}.duel-portal #portal-history{width:min(520px,calc(100% - 32px));max-height:75svh;overflow:auto;border:1px solid #b6dbcb30;border-radius:24px;background:#091410;color:#e8f6ed;padding:24px}.duel-portal #portal-history::backdrop{background:#0009;backdrop-filter:blur(8px)}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-heading h2{font-size:22px;font-weight:500}.history-heading button{background:none;color:inherit;border:0;min-width:44px;min-height:44px;font-size:25px}#portal-history-list a{display:block;padding:16px;border-bottom:1px solid #fff1;color:#d1efdf}#history-status{font-size:14px;color:#acbdb3}
.duel-portal .portal-screen .primary{border-radius:99px!important;font-weight:500}.duel-portal .portal-screen .quiet,.duel-portal .world-portal,.duel-portal .welcome-choices button{background:transparent!important;box-shadow:none!important}.duel-portal #world-backdrop{filter:brightness(1.22)}.duel-portal .world-portal .world-window{box-shadow:0 0 40px #adeace20,inset 0 0 20px #0009}.duel-portal .portal-screen h1{font-weight:450!important}.duel-portal .portal-actions button{border-radius:99px!important}.duel-portal .choice-orb{opacity:.52}.duel-portal #room-people{min-width:0}.duel-portal .mini-person{max-width:150px}.duel-portal .mini-person span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duel-portal .person-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Universe choice: one shared scene, with three entrances and real consents. */
.duel-journey{display:flex;align-items:flex-start;justify-content:space-between;list-style:none;max-width:950px;margin:0 auto 40px;padding:0;color:#73817f;font-size:12px;letter-spacing:.02em}
.duel-journey li{position:relative;flex:1;padding-top:20px}
.duel-journey li:before{content:'';position:absolute;top:4px;left:50%;width:6px;height:6px;border-radius:50%;background:#66716f;box-shadow:0 0 0 4px #8aa19b08;z-index:1}
.duel-journey li:not(:last-child):after{content:'';position:absolute;top:7px;left:50%;width:100%;height:1px;background:#83958b28}
.duel-journey .current{color:#f6ead5}
.duel-journey .current:before{background:#f5d5a3;box-shadow:0 0 13px #edc69388}
.duel-journey .passed{color:#a4b3ad}
.duel-journey .passed:before{background:#aec8b9}
.duel-portal[data-step=worlds]{background:#080e13}
.duel-portal[data-step=worlds]:before{width:130vw;height:100vh;top:55%;background:radial-gradient(ellipse,#5a839321,transparent 65%);animation:none;opacity:.8}
.duel-portal[data-step=worlds]:after{display:none}
.duel-portal[data-step=worlds] .jammin-header{padding-top:14px;padding-bottom:10px}
.duel-portal[data-step=worlds] #room-people{display:none}
.duel-portal[data-step=worlds] .portal-stage{width:min(1280px,calc(100% - 64px));max-width:none;margin:10px auto 28px}
.duel-portal[data-step=worlds] .duel-journey{margin-bottom:30px}
.universe-heading{display:grid;grid-template-columns:minmax(100px,1fr) minmax(280px,2fr) minmax(100px,1fr);align-items:center;gap:20px;position:relative;z-index:2;max-width:1140px;margin:0 auto}
.universe-heading.hotseat{display:block}
.duel-portal .profile-icon{width:44px;height:44px;min-width:44px;min-height:44px}
.duel-portal #worlds-screen h1{font-family:Georgia,'Times New Roman',serif;font-weight:400!important;font-size:clamp(30px,3.8vw,49px);letter-spacing:-.035em;margin:0 0 8px;line-height:1.1}
.universe-title>p{margin:0;font-size:15px;letter-spacing:.015em;color:#aeb9be}
.universe-player{display:flex;align-items:center;gap:14px;text-align:left;min-width:0}
.universe-player:last-child{justify-self:end;flex-direction:row-reverse;text-align:right}
.universe-avatar,.universe-vote{display:grid;place-items:center;flex:none;border-radius:50%;color:#d5ebe4;font-family:Georgia,serif;font-size:24px;width:60px;height:60px;background:radial-gradient(circle at 35% 28%,#8f9d7955,transparent 48%),linear-gradient(145deg,#577b7540,#111c24 65%);border:1px solid #a4d3cd99;box-shadow:inset 0 0 15px #97dfbf13,0 0 0 4px #7db8a510}
.universe-player:last-child .universe-avatar{background:radial-gradient(circle at 35% 28%,#917ca966,transparent 48%),linear-gradient(145deg,#56548270,#111823 65%);border-color:#bab2e099;box-shadow:inset 0 0 15px #aca9f913,0 0 0 4px #9c94d410}
.universe-player-copy{display:grid;gap:7px;min-width:0}
.universe-player strong{font-size:14px;font-weight:500;max-width:170px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.universe-player small{font-size:12px;color:#a9b6b5;white-space:nowrap}
.universe-player small:before{content:'';display:inline-block;width:5px;height:5px;background:#65736e;border-radius:50%;margin-right:7px;vertical-align:2px}
.universe-player.accepted small{color:#bcdec9}
.universe-player.accepted small:before{background:#9bf0b9;box-shadow:0 0 8px #8be2b955}
.universe-player.empty{opacity:.5}
#worlds-screen .world-portals{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;aspect-ratio:2.05;max-width:min(1220px,max(680px,calc((100svh - 300px)*2.05)));margin:12px auto 0}
.universe-scene{position:absolute;inset:-6% 0 0;width:100%;height:106%;object-fit:fill;pointer-events:none;z-index:-1;mask-image:linear-gradient(transparent,#000 10%,#000 79%,transparent 99%),linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);mask-composite:intersect;filter:saturate(.95)}
#worlds-screen .world-portal{position:relative;display:block;min-width:0;height:100%;padding:0;border:0;border-radius:0;color:#f1ebe0;cursor:pointer;outline-offset:5px}
#worlds-screen .world-portal:disabled{cursor:default;opacity:1}
.portal-hit-frame{position:absolute;inset:5% 6% 18%;border:1px solid transparent;border-radius:18px;transition:border-color .3s,box-shadow .3s,background .3s}
.world-portal:hover .portal-hit-frame{border-color:#e4d3a849;background:linear-gradient(#eec99703,#eec9970b)}
.world-portal.selected .portal-hit-frame{border-color:#efc491;box-shadow:0 0 0 1px #dabc8830,0 0 20px #efc28833,inset 0 0 20px #dfb57717;background:linear-gradient(#eec99700,#eec99708)}
.universe-label{position:absolute;bottom:2%;left:0;width:100%;display:grid;gap:10px;text-align:center;text-shadow:0 2px 16px #03070e,0 0 4px #03070e}
.universe-label strong{font:400 clamp(20px,2.4vw,30px)/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.015em}
.universe-label small{font:400 12px/1.4 system-ui,sans-serif;color:#a9b0b0;letter-spacing:.015em}
.universe-votes{position:absolute;bottom:4%;left:0;right:0;display:flex;justify-content:center;gap:8px}
.universe-vote{width:38px;height:38px;font-size:17px;border-color:#acb4bca0;box-shadow:0 0 0 3px #03121888;color:#c7d0d1;background:linear-gradient(135deg,#557578,#121f29)}
.universe-vote:nth-child(2){background:linear-gradient(135deg,#7776a2,#171727)}
.universe-vote.accepted{border-color:#bffad9;box-shadow:0 0 0 3px #092a2388,0 0 16px #8de5ba44;color:#e4ffef}
.universe-decision{max-width:920px;margin:22px auto 0;padding:22px 24px 8px;border-top:1px solid #d5b98324;background:radial-gradient(ellipse at top,#b3a3830b,transparent 80%)}
.universe-rule-heading{display:flex;justify-content:center;align-items:center;gap:22px;flex-wrap:wrap}
#universe-selected-name{font:400 20px Georgia,serif;color:#eddbc1}
#universe-consent{font-size:12px;color:#99b3a6}
#universe-rules{display:flex;justify-content:center;gap:16px 34px;list-style:none;padding:0;margin:18px 0 0;color:#c2ccc8;font-size:13px;line-height:1.5}
#universe-rules li:before{content:'✦';color:#c5a778;font-size:10px;margin-right:8px}
.duel-portal #worlds-screen .primary{background:linear-gradient(115deg,#eed8ad,#d7b888);color:#231f17;border-color:#f6dfb4;box-shadow:0 0 25px #e1bb8c16;margin-top:22px;min-height:50px;min-width:265px;font-size:16px!important}
#worlds-screen #worlds-back{margin:14px auto;font-size:12px!important;color:#93a4a7}
@media(max-width:800px){
 .duel-portal[data-step=worlds] .portal-stage{width:calc(100% - 28px);margin-top:8px}
 .duel-portal[data-step=worlds] .duel-journey{margin-bottom:25px;font-size:10px}
 .universe-heading{grid-template-columns:1fr 2.4fr 1fr;gap:8px}
 .duel-portal #worlds-screen h1{font-size:30px}
 .universe-title>p{font-size:12px}
 .universe-player{gap:7px;flex-direction:column;text-align:center}
 .universe-player:last-child{flex-direction:column;text-align:center;justify-self:center}
 .universe-avatar{width:42px;height:42px;font-size:18px}
 .universe-player-copy{gap:4px}
 .universe-player strong{font-size:11px;max-width:78px}
 .universe-player small{font-size:10px}
 #worlds-screen .world-portals{aspect-ratio:1.5;margin-top:16px}
 .universe-scene{inset:-4% 0 0;width:100%;height:104%}
 .portal-hit-frame{border-radius:11px;inset:6% 3% 20%}
 .universe-label strong{font-size:20px}
 .universe-label small{font-size:10px;min-height:28px;padding:0 8px;line-height:1.4}
 .universe-label{gap:6px;bottom:0}
 .universe-vote{width:27px;height:27px;font-size:13px}
 .universe-votes{gap:4px}
 #universe-rules{flex-wrap:wrap;gap:8px 22px}
 .universe-decision{padding:17px 8px 4px;margin-top:20px}
}
@media(max-width:480px){
 .duel-portal[data-step=worlds] .jammin-header{padding-top:12px;padding-bottom:10px;min-height:60px;gap:8px}
 .duel-portal[data-step=worlds] .jammin-brand{padding-left:0;gap:0}
 .duel-portal[data-step=worlds] #battle-count{font-size:11px;padding:4px}
 .duel-portal[data-step=worlds] .room-nav{gap:7px}
 .duel-portal[data-step=worlds] .duel-journey{font-size:9px;margin-bottom:24px}
 .duel-journey li{padding-top:17px}
 .universe-heading{grid-template-columns:45px minmax(0,1fr) 45px;gap:8px}
 .duel-portal #worlds-screen h1{font-size:clamp(19px,6vw,25px)}
 .universe-title>p{font-size:11px;line-height:1.5;max-width:200px;margin:auto}
 .universe-avatar{width:35px;height:35px;font-size:16px}
 .universe-player small{font-size:9px}
 .universe-player small:before{margin-right:4px;vertical-align:1px;width:4px;height:4px}
 .universe-label strong{font-size:17px}
 .universe-label small{font-size:9px;min-height:26px;padding:0 3px}
 .portal-hit-frame{inset:6% 2% 21%;border-radius:8px}
 .universe-vote{width:23px;height:23px;font-size:11px}
 .universe-votes{gap:3px;bottom:4%}
 .universe-rule-heading{gap:9px}
 #universe-selected-name{font-size:17px}
 #universe-consent{font-size:11px}
 #universe-rules{display:grid;gap:7px;text-align:left;width:fit-content;margin:15px auto 0;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.portal-hit-frame{transition:none}}
