/* Critter Party — lobby and character presentation, Nov 2026.
   Strictly visual: no interference with room creation, multiplayer state or board coordinates. */
body:has(#joinbox:not(.hidden)){min-height:100vh;background:radial-gradient(circle at 50% 20%,#315a8a 0%,#15294e 42%,#081229 100%);background-attachment:fixed}
body:has(#joinbox:not(.hidden)) header{background:#07142a90;border-bottom:1px solid #d0e5ff21;backdrop-filter:blur(14px);padding:18px clamp(15px,3vw,46px)}
body:has(#joinbox:not(.hidden)) header h1{font-size:clamp(22px,2.5vw,36px);color:#fff0bd;text-shadow:0 3px 0 #835b44,0 9px 24px #0009}
body:has(#joinbox:not(.hidden)) header .tag{font-size:10px;letter-spacing:.17em;color:#b1e8dc}
#joinbox:not(.hidden){position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:clamp(12px,2.4vw,30px);align-items:center;max-width:1050px!important;min-height:405px;margin:clamp(44px,8vh,100px) auto 30px!important;padding:clamp(24px,4vw,48px)!important;background:linear-gradient(140deg,#234e6ff2,#25345ff2 53%,#342b63f5);border:2px solid #ffdca49c;border-radius:30px;box-shadow:0 12px 0 #0a173080,0 34px 85px #030816af,inset 0 1px 0 #ffffff5c;overflow:visible}
#joinbox:not(.hidden):before{content:'';position:absolute;inset:9px;border:1px solid #ffefca30;border-radius:23px;pointer-events:none}
#joinbox .ccc-create-section,#joinbox .ccc-join-section{z-index:2;position:relative;min-width:0}
#joinbox .ccc-create-section{text-align:center;padding:30px 5px}
#joinbox .ccc-create-section:before{content:'🎲  🪙  🏆';display:block;margin-bottom:17px;font-size:clamp(25px,3vw,40px);filter:drop-shadow(0 4px 9px #0007)}
#joinbox .ccc-lobby-eyebrow{color:#a9eddd;font-weight:900;letter-spacing:.2em;font-size:clamp(10px,1vw,13px);margin-bottom:12px}
#joinbox h2{font-size:clamp(23px,2.5vw,34px);line-height:1.15;color:#fff3cb;letter-spacing:-.035em;text-shadow:0 3px 10px #07102aa8;margin:0 0 24px}
#joinbox #createRoomBtn{display:block;width:100%;min-height:72px;border:2px solid #fff4c2;border-radius:18px;background:linear-gradient(180deg,#ffeaa5,#ffba58 76%,#e69841);color:#273254;font-size:clamp(15px,1.6vw,21px);font-weight:1000;box-shadow:0 7px 0 #96613c,0 14px 28px #040b2080;cursor:pointer;transition:transform .15s,box-shadow .15s}
#joinbox #createRoomBtn:hover{transform:translateY(-3px);box-shadow:0 10px 0 #96613c,0 19px 30px #040b2080}
#joinbox #createRoomBtn:active{transform:translateY(5px);box-shadow:0 2px 0 #96613c}
#joinbox .ccc-lobby-divider{height:100%;min-height:200px;display:flex;align-items:center;justify-content:center;position:relative;color:#fff3c4;font-weight:950}
#joinbox .ccc-lobby-divider:before{content:'';height:100%;width:1px;background:linear-gradient(transparent,#ffe0ab90,transparent);position:absolute}
#joinbox .ccc-lobby-divider span{z-index:1;padding:11px 7px;border:1px solid #ffe0ab8a;background:#2b3a65;border-radius:99px;font-size:11px}
#joinbox .ccc-join-section{padding:12px 6px}
#joinbox .ccc-join-section label{display:block;color:#d5e9fa;font-weight:800;margin:11px 0 6px}
#joinbox .ccc-join-section input{width:100%;min-height:48px;border:1px solid #9cb8de80;border-radius:12px;background:#0a1936e6;color:white;padding:10px 14px;font-size:16px}
#joinbox .ccc-join-section input:focus-visible{outline:3px solid #7eefd6;outline-offset:2px}
#joinbox .ccc-lobby-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
#joinbox .ccc-lobby-actions button{flex:1 1 150px;min-height:49px;border-radius:12px;font-weight:900}
#joinbox .ccc-lobby-art{position:absolute;z-index:0;display:flex;gap:6px;pointer-events:none;bottom:-74px;filter:drop-shadow(0 13px 12px #06142eaa)}
#joinbox .ccc-lobby-left{left:4%;}.ccc-lobby-right{right:4%}
#joinbox .ccc-lobby-art img{width:clamp(75px,10vw,132px);height:clamp(90px,12vw,145px);object-fit:contain;transform-origin:50% 90%;animation:cccWelcomeSway 3.8s ease-in-out infinite}
#joinbox .ccc-lobby-art img:nth-child(2){animation-delay:-1.7s}
#joinbox .ccc-lobby-right img:nth-child(1){animation-delay:-.9s}
@keyframes cccWelcomeSway{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-10px) rotate(3deg)}}
body:has(#joinbox:not(.hidden)) #roomBadge{background:#152c4e;border-color:#82a4b5;color:#d6f9ed}
/* Distinct, clearly visible animal personality in the victory portrait. */
.partyWinner:not(.hidden) .victoryAvatar.cccCelebrate{animation-duration:3.4s!important;animation-timing-function:cubic-bezier(.3,.1,.25,1)!important;animation-fill-mode:both!important}
.partyWinner[data-celebration="fox"] .victoryAvatar.cccCelebrate{animation-name:cccFoxBig!important}
.partyWinner[data-celebration="dragon"] .victoryAvatar.cccCelebrate{animation-name:cccDragonBig!important}
.partyWinner[data-celebration="koala"] .victoryAvatar.cccCelebrate{animation-name:cccKoalaBig!important}
.partyWinner[data-celebration="bunny"] .victoryAvatar.cccCelebrate{animation-name:cccBunnyBig!important}
.partyWinner[data-celebration="panda"] .victoryAvatar.cccCelebrate{animation-name:cccPandaBig!important}
.partyWinner[data-celebration="bear"] .victoryAvatar.cccCelebrate{animation-name:cccBearBig!important}
.partyWinner[data-celebration="capybara"] .victoryAvatar.cccCelebrate{animation-name:cccCapybaraBig!important}
@keyframes cccFoxBig{0%,100%{transform:rotate(0) scale(1)}20%{transform:translateY(-25px) rotate(-17deg) scale(1.17)}40%{transform:translateY(0) rotate(18deg) scale(1.12)}60%{transform:translateY(-19px) rotate(-12deg) scale(1.18)}80%{transform:rotate(12deg) scale(1.09)}}
@keyframes cccDragonBig{0%,100%{transform:scale(1) rotate(0)}22%{transform:translateY(-30px) scale(1.28) rotate(-10deg)}45%{transform:translateY(-15px) scale(1.33) rotate(11deg)}70%{transform:translateY(-23px) scale(1.22) rotate(-9deg)}}
@keyframes cccKoalaBig{0%,100%{transform:rotate(0) scale(1)}25%{transform:translateY(-7px) rotate(-17deg) scale(1.12)}50%{transform:translateY(-12px) rotate(18deg) scale(1.16)}75%{transform:rotate(-12deg) scale(1.1)}}
@keyframes cccBunnyBig{0%,100%{transform:translateY(0) scale(1)}20%,58%{transform:translateY(-37px) rotate(-7deg) scale(1.17)}39%,77%{transform:translateY(0) rotate(8deg) scale(1.05)}}
@keyframes cccPandaBig{0%,100%{transform:rotate(0) scale(1)}22%{transform:rotate(-22deg) scale(1.15)}44%{transform:rotate(19deg) scale(1.2)}66%{transform:rotate(-17deg) scale(1.18)}}
@keyframes cccBearBig{0%,100%{transform:scale(1) rotate(0)}24%{transform:translateY(-18px) scale(1.27)}48%{transform:rotate(-12deg) scale(1.25)}72%{transform:rotate(13deg) scale(1.23)}}
@keyframes cccCapybaraBig{0%,100%{transform:translateY(0) rotate(0)}20%{transform:translateY(-12px) rotate(-9deg) scale(1.08)}40%{transform:translateY(-18px) rotate(8deg) scale(1.1)}60%{transform:translateY(-12px) rotate(-8deg) scale(1.09)}80%{transform:translateY(-6px) rotate(7deg)}}
@media(max-width:800px){#joinbox:not(.hidden){grid-template-columns:1fr;max-width:560px!important;gap:0;margin:24px auto 100px!important;padding:24px!important}#joinbox .ccc-create-section{padding:14px 2px 22px}#joinbox .ccc-lobby-divider{height:42px;min-height:42px}#joinbox .ccc-lobby-divider:before{height:1px;width:100%}#joinbox .ccc-join-section{padding:16px 0 12px}#joinbox .ccc-lobby-art{bottom:-78px}#joinbox .ccc-lobby-art img{width:75px;height:95px}#joinbox h2{margin-bottom:14px}}
@media(max-width:500px){#joinbox:not(.hidden){max-width:calc(100% - 24px)!important;margin-top:14px!important;padding:20px!important}#joinbox .ccc-lobby-art img{width:60px;height:78px}#joinbox .ccc-lobby-art{bottom:-61px}#joinbox .ccc-lobby-left{left:0}#joinbox .ccc-lobby-right{right:0}#joinbox .ccc-join-section input{font-size:16px}}
@media(prefers-reduced-motion:reduce){#joinbox .ccc-lobby-art img,.partyWinner .victoryAvatar.cccCelebrate{animation:none!important}#joinbox #createRoomBtn{transition:none!important}}

/* Prevent the guide CTA escaping the welcome card at all viewport sizes. */
#joinbox:not(.hidden) #cccJoinHelp{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:min(100%,440px)!important;max-width:100%!important;min-width:0!important;
  margin:20px auto 0!important;padding:12px 16px!important;
  box-sizing:border-box!important;min-height:54px!important;height:auto!important;
  font-size:clamp(12px,1.2vw,17px)!important;line-height:1.3!important;
  text-align:center!important;white-space:normal!important;
  overflow-wrap:break-word!important;word-break:normal!important;
  font-weight:900!important;letter-spacing:0!important;
}
#joinbox:not(.hidden){min-width:0}
@media(max-width:600px){#joinbox:not(.hidden) #cccJoinHelp{font-size:13px!important;padding:11px 10px!important}}

/* Eight-critter welcome showcase: keep all live character artwork beside the room actions. */
#joinbox:not(.hidden){max-width:760px!important;margin-top:clamp(40px,7vh,80px)!important}
#joinbox .ccc-lobby-art{position:absolute;top:50%;bottom:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;width:clamp(170px,18vw,240px);transform:translateY(-50%);filter:none;z-index:1}
#joinbox .ccc-lobby-left{left:calc(-1 * clamp(185px,20vw,265px));right:auto}
#joinbox .ccc-lobby-right{right:calc(-1 * clamp(185px,20vw,265px));left:auto}
#joinbox .ccc-lobby-art img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border:2px solid #f4d390;border-radius:22px;background:linear-gradient(140deg,#f8e8b9,#9ad5cf);box-shadow:0 9px 22px #040b226b;animation:cccWelcomeSway 4.3s ease-in-out infinite}
#joinbox .ccc-lobby-art img:nth-child(2){animation-delay:-.8s}
#joinbox .ccc-lobby-art img:nth-child(3){animation-delay:-1.6s}
#joinbox .ccc-lobby-art img:nth-child(4){animation-delay:-2.4s}
#joinbox .ccc-lobby-eyebrow{letter-spacing:.13em}
@media(max-width:1250px){
 #joinbox:not(.hidden){max-width:640px!important}
 #joinbox .ccc-lobby-art{width:clamp(128px,15vw,185px);gap:7px}
 #joinbox .ccc-lobby-left{left:calc(-1 * clamp(139px,16vw,196px))}
 #joinbox .ccc-lobby-right{right:calc(-1 * clamp(139px,16vw,196px))}
}
@media(max-width:920px){
 #joinbox:not(.hidden){max-width:min(560px,calc(100% - 26px))!important;margin:20px auto 25px!important;grid-template-columns:1fr}
 #joinbox .ccc-lobby-art{position:relative;top:auto;left:auto;right:auto;bottom:auto;transform:none;display:flex;flex-wrap:nowrap;width:100%;gap:5px;justify-content:center}
 #joinbox .ccc-lobby-left{grid-row:1;margin-bottom:5px}
 #joinbox .ccc-lobby-right{grid-row:5;margin-top:12px}
 #joinbox .ccc-lobby-art img{width:calc((100% - 15px)/4);max-width:95px;border-radius:13px}
}
@media(max-width:500px){
 #joinbox:not(.hidden){padding:16px!important}
 #joinbox .ccc-lobby-art{bottom:auto}
 #joinbox .ccc-lobby-art img{height:auto;width:calc((100% - 15px)/4)}
 #joinbox .ccc-create-section{padding:9px 0 12px}
 #joinbox .ccc-join-section{padding:8px 0}
}
@media(prefers-reduced-motion:reduce){#joinbox .ccc-lobby-art img{animation:none}}

/* 2026-11-03 FIX: Portraits must remain fully below header, never form tall vertical stacks. */
@media(min-width:921px){
 #joinbox:not(.hidden){margin-top:clamp(95px,12vh,130px)!important;min-height:425px!important}
 #joinbox:not(.hidden) .ccc-lobby-art{
   position:absolute!important;top:50%!important;bottom:auto!important;
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
   grid-template-rows:repeat(2,auto)!important;
   width:clamp(150px,16vw,220px)!important;height:auto!important;
   gap:10px!important;align-content:center!important;
   transform:translateY(-50%)!important;
 }
 #joinbox:not(.hidden) .ccc-lobby-left{left:calc(-1 * clamp(165px,17vw,235px))!important;right:auto!important}
 #joinbox:not(.hidden) .ccc-lobby-right{right:calc(-1 * clamp(165px,17vw,235px))!important;left:auto!important}
 #joinbox:not(.hidden) .ccc-lobby-art img{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:110px!important;aspect-ratio:1!important;object-fit:contain!important}
}
@media(min-width:921px) and (max-width:1120px){
 #joinbox:not(.hidden){max-width:560px!important}
 #joinbox:not(.hidden) .ccc-lobby-art{width:145px!important;gap:6px!important}
 #joinbox:not(.hidden) .ccc-lobby-left{left:-158px!important}
 #joinbox:not(.hidden) .ccc-lobby-right{right:-158px!important}
}
@media(max-width:920px){
 #joinbox:not(.hidden) .ccc-lobby-art{position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important;display:flex!important;flex-direction:row!important;justify-content:center!important;gap:6px!important;width:100%!important;height:auto!important}
 #joinbox:not(.hidden) .ccc-lobby-art img{display:block!important;width:min(22%,90px)!important;max-width:90px!important;min-width:0!important;height:auto!important;aspect-ratio:1!important}
}

/* Never expose the obsolete physical board in the host view. */
#ccc3dStatus{display:none}
body.tv #boardWrap:not(.three-ready) #board{visibility:hidden!important}
body.tv #boardWrap:not(.three-ready) #ccc3dStatus{display:flex;position:absolute;inset:0;z-index:1;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:radial-gradient(ellipse at center,#315b8d,#152447 80%);color:#fff1ba;text-align:center;padding:20px}
#ccc3dStatus strong{font-size:clamp(18px,2vw,30px)}
#ccc3dStatus small{font-size:clamp(12px,1.2vw,18px);color:#d4e8fa}
#boardWrap.three-ready #ccc3dStatus{display:none!important}

/* Premium 2026 welcome redesign. Real HTML inputs and buttons remain interactive. */
body:has(#joinbox:not(.hidden)){
 background:radial-gradient(ellipse at 50% 47%,#254d90 0%,#132858 45%,#070e2a 100%) fixed;
}
body:has(#joinbox:not(.hidden))::before{content:"";position:fixed;inset:70px 0 0;z-index:-1;pointer-events:none;background:
 radial-gradient(circle at 13% 29%,#fff0b5 0 2px,transparent 4px),
 radial-gradient(circle at 80% 23%,#ffe59a 0 3px,transparent 6px),
 radial-gradient(circle at 58% 11%,#ffdc7d 0 2px,transparent 5px),
 radial-gradient(circle at 90% 65%,#ffe3a0 0 2px,transparent 5px),
 radial-gradient(ellipse at 50% 90%,#d69a393a,transparent 59%);
}
body:has(#joinbox:not(.hidden)) header{background:linear-gradient(90deg,#07152de8,#152452d9,#07152de8)!important;border-bottom:1px solid #d7b5775c!important}
body:has(#joinbox:not(.hidden)) header h1{font-size:clamp(29px,3.15vw,54px)!important;line-height:1.1!important;color:#ffe9a9!important;text-shadow:0 3px 0 #875a34,0 5px 0 #452745,0 10px 25px #000a!important}
#joinbox:not(.hidden){max-width:830px!important;min-height:475px!important;margin:clamp(60px,9vh,110px) auto 65px!important;padding:clamp(18px,2.4vw,33px)!important;
 background:linear-gradient(140deg,#172b59fa,#192e63f8 54%,#152652fb)!important;
 border:2px solid #f5c86f!important;border-radius:38px!important;
 box-shadow:0 7px 0 #ad702c,0 15px 0 #0b1a3d,0 28px 85px #020916d9,inset 0 0 0 8px #8fb9ec17,inset 0 1px 20px #98bdff31!important;
 grid-template-columns:minmax(0,1fr) 35px minmax(0,1fr)!important;gap:14px!important
}
#joinbox:not(.hidden)::before{content:"✦";position:absolute;top:-65px;left:50%;transform:translateX(-50%);width:102px;height:102px;display:grid;place-items:center;font-size:57px;color:#fff3b8;border:5px solid #ffde84;background:radial-gradient(circle at 30% 20%,#ffe99b,#edac3d 48%,#8c4e11);border-radius:50%;box-shadow:0 0 35px #ffe175a0,0 8px 0 #73491d,0 0 0 8px #ffd66d22;text-shadow:0 3px #975c26;pointer-events:none}
#joinbox .ccc-create-section,#joinbox .ccc-join-section{position:relative;border:2px solid #719bd1b3!important;border-radius:30px!important;padding:clamp(16px,2.2vw,28px)!important;min-height:340px;display:flex;flex-direction:column;justify-content:center;box-shadow:inset 0 1px 22px #5ca8ef22,0 14px 27px #05112966!important;background:linear-gradient(150deg,#254981b0,#101d4dd9)!important}
#joinbox .ccc-create-section{text-align:center;align-items:center}
#joinbox .ccc-create-section h2,#joinbox .ccc-join-section h2{font-size:clamp(22px,2vw,33px)!important;color:#fff0bb!important;text-shadow:0 3px 1px #172043,0 5px 14px #03091899}
#joinbox .ccc-lobby-eyebrow{font-size:12px!important;color:#b7fff0!important;margin-bottom:15px!important}
#joinbox #createRoomBtn{width:100%!important;max-width:320px;min-height:82px!important;font-size:clamp(17px,2vw,24px)!important;border-radius:20px!important;background:linear-gradient(#fff2ae,#ffcb54 54%,#ee9828)!important;border:2px solid #fff0b3!important;color:#09183f!important;box-shadow:0 7px 0 #8e541b,0 12px 28px #0007,0 0 22px #e9ae3640!important}
#joinbox .ccc-join-section input{border:2px solid #a2d9e8!important;border-radius:15px!important;background:#091c42!important;box-shadow:inset 0 2px 8px #0006!important}
#joinbox .ccc-lobby-actions button{border-radius:17px!important;min-height:70px!important;box-shadow:0 6px 0 #9c632b,0 9px 22px #0006!important}
#joinbox .ccc-lobby-actions button.secondary{background:linear-gradient(#3199a9,#14536f)!important;box-shadow:0 6px 0 #0c3549,0 9px 22px #0006!important}
#joinbox .ccc-lobby-divider span{border:2px solid #ffe29c;background:#213b77;box-shadow:0 0 15px #e8b5588c}
@media(min-width:921px){
 #joinbox:not(.hidden) .ccc-lobby-art{width:clamp(172px,17vw,235px)!important;gap:12px!important}
 #joinbox:not(.hidden) .ccc-lobby-left{left:calc(-1 * clamp(185px,19vw,260px))!important}
 #joinbox:not(.hidden) .ccc-lobby-right{right:calc(-1 * clamp(185px,19vw,260px))!important}
 #joinbox:not(.hidden) .ccc-lobby-art img{max-height:145px!important;border-radius:50% 50% 26% 26%!important;border:3px solid #ffdb88!important;filter:drop-shadow(0 14px 12px #020b28aa)!important;box-shadow:0 0 25px #ffd57943,0 9px 18px #0008!important}
}
@media(max-width:920px){
 #joinbox:not(.hidden){max-width:min(620px,calc(100% - 30px))!important;margin:65px auto 32px!important;grid-template-columns:1fr!important}
 #joinbox .ccc-create-section,#joinbox .ccc-join-section{min-height:0}
 #joinbox .ccc-lobby-art{z-index:2}
 #joinbox:not(.hidden)::before{width:66px;height:66px;top:-41px;font-size:38px}
}
@media(max-width:500px){
 #joinbox:not(.hidden){padding:14px!important}
 #joinbox .ccc-create-section,#joinbox .ccc-join-section{padding:18px!important}
 #joinbox #createRoomBtn{min-height:62px!important}
 #joinbox .ccc-lobby-actions button{min-height:60px!important}
}

/* Final welcome refinement: no split headings, balanced stage, larger critters. */
@media(min-width:921px){
 #joinbox:not(.hidden){width:min(820px,calc(100vw - 430px))!important;max-width:820px!important;min-height:470px!important;margin-top:clamp(82px,11vh,126px)!important}
 #joinbox .ccc-create-section,#joinbox .ccc-join-section{min-width:0!important;padding:22px 17px!important}
 #joinbox .ccc-create-section h2{font-size:clamp(20px,1.7vw,28px)!important;white-space:nowrap!important;letter-spacing:-.035em!important}
 #joinbox #createRoomBtn{font-size:clamp(16px,1.4vw,21px)!important;line-height:1.14!important;padding:15px 12px!important;min-height:78px!important}
 #joinbox .ccc-lobby-art img{background:radial-gradient(ellipse at 32% 25%,#fff6d9,#97c5d4 74%)!important;border-radius:28px!important;transform-origin:50% 88%;box-shadow:0 15px 29px #030b2699,0 0 22px #ffdf7844!important}
 #joinbox .ccc-lobby-art img:nth-child(2){transform:rotate(-5deg)}
 #joinbox .ccc-lobby-art img:nth-child(3){transform:rotate(5deg)}
 #joinbox .ccc-lobby-left{transform:translateY(-50%) rotate(-3deg)!important}
 #joinbox .ccc-lobby-right{transform:translateY(-50%) rotate(3deg)!important}
}
@media(min-width:921px) and (max-width:1250px){
 #joinbox:not(.hidden){width: min(630px,calc(100vw - 320px))!important;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr)!important;gap:9px!important}
 #joinbox .ccc-create-section,#joinbox .ccc-join-section{padding:17px 12px!important}
 #joinbox .ccc-create-section h2{font-size:20px!important}
 #joinbox #createRoomBtn{font-size:16px!important}
}
@media(max-width:920px){
 #joinbox .ccc-create-section h2{white-space:normal!important}
 #joinbox:not(.hidden){margin-top:58px!important}
}
@media(max-width:500px){
 #joinbox .ccc-lobby-art img{max-height:78px!important}
 #joinbox .ccc-create-section h2{font-size:24px!important}
 #joinbox #createRoomBtn{font-size:19px!important;line-height:1.2!important}
}

/* Cinematic welcome v4: layered stage lighting, large lively critter cast,
   real accessible room inputs and buttons remain in front of decoration. */
body:has(#joinbox:not(.hidden)){
 background:
 radial-gradient(ellipse 52% 48% at 50% 38%,#3157a2a6,transparent 85%),
 radial-gradient(ellipse 95% 42% at 50% 100%,#bf83324a,transparent 75%),
 linear-gradient(155deg,#07142f,#152a54 52%,#090d25)!important;
}
#joinbox:not(.hidden){overflow:visible!important}
#joinbox:not(.hidden)::after{
 content:"";position:absolute;left:-8%;right:-8%;bottom:-46px;height:72px;
 border:5px solid #f3c56b;border-radius:50%;pointer-events:none;z-index:-1;
 background:radial-gradient(ellipse at 50% 18%,#3c5cab,#091838 66%);
 box-shadow:0 0 32px #e4af54b0,inset 0 0 18px #caaa6e7a,0 17px 25px #0008;
}
#joinbox:not(.hidden) .ccc-create-section,#joinbox:not(.hidden) .ccc-join-section{
 border-color:#a6c8f1!important;box-shadow:inset 0 2px 0 #d6edff32,0 14px 36px #020a2b8c,0 0 22px #487bd62e!important
}
#joinbox:not(.hidden) .ccc-lobby-art{pointer-events:none}
#joinbox:not(.hidden) .ccc-lobby-art img{
 object-fit:contain!important;box-shadow:0 9px 18px #020928a8,0 0 20px #ffd46b37!important;
 animation:cccWelcomeSway 4.3s ease-in-out infinite!important
}
#joinbox:not(.hidden) .ccc-lobby-art img:nth-child(2){animation-delay:-.8s!important}
#joinbox:not(.hidden) .ccc-lobby-art img:nth-child(3){animation-delay:-1.6s!important}
#joinbox:not(.hidden) .ccc-lobby-art img:nth-child(4){animation-delay:-2.4s!important}
#joinbox:not(.hidden) #createRoomBtn:hover{filter:brightness(1.08);transform:translateY(-2px)}
#joinbox:not(.hidden) .ccc-join-section input:focus-visible{outline:3px solid #f8d47d!important;outline-offset:2px}
@media(max-width:920px){
 body:has(#joinbox:not(.hidden))>header{padding:12px 15px!important;gap:8px!important;align-items:center!important}
 body:has(#joinbox:not(.hidden))>header h1{font-size:clamp(25px,7.5vw,42px)!important;line-height:1.04!important;max-width:100%;overflow-wrap:normal!important}
 body:has(#joinbox:not(.hidden))>header .tag{font-size:clamp(8px,2.3vw,11px)!important;letter-spacing:.08em!important}
 #joinbox:not(.hidden){margin:52px auto 60px!important}
 #joinbox:not(.hidden) .ccc-create-section{padding:16px!important}
 #joinbox:not(.hidden) .ccc-lobby-art img{border-radius:26px!important}
 #joinbox:not(.hidden)::after{height:38px;bottom:-26px}
}
@media(max-width:500px){
 body:has(#joinbox:not(.hidden))>header{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:flex-start!important;flex-wrap:wrap!important}
 body:has(#joinbox:not(.hidden))>header h1{font-size:clamp(24px,7vw,32px)!important;max-width:calc(100vw - 30px)!important}
 #joinbox:not(.hidden) .ccc-create-section h2{font-size:clamp(19px,5.6vw,24px)!important;white-space:nowrap!important}
 #joinbox:not(.hidden) #createRoomBtn{font-size:clamp(16px,4.3vw,19px)!important;min-height:64px!important}
 #joinbox:not(.hidden) .ccc-join-section{padding:14px!important}
 #joinbox:not(.hidden) .ccc-join-section input{height:48px!important}
 #joinbox:not(.hidden) .ccc-lobby-actions button{min-height:60px!important;font-size:clamp(11px,3.3vw,15px)!important;padding:8px!important}
}
@media(prefers-reduced-motion:reduce){
 #joinbox:not(.hidden) .ccc-lobby-art img{animation:none!important}
}

/* Remove the oversized floating gold medallion; it covered character faces on phones. */
#joinbox:not(.hidden)::before{content:none!important;display:none!important}
@media(max-width:920px){#joinbox:not(.hidden){margin-top:22px!important}}

/* Compact mobile welcome. The join form remains usable; host dashboard is hidden until room opens. */
@media(max-width:700px){
 body:has(#joinbox:not(.hidden))>header{padding:10px 12px!important;gap:5px!important}
 body:has(#joinbox:not(.hidden))>header h1{font-size:clamp(24px,7vw,35px)!important;line-height:1.04!important}
 body:has(#joinbox:not(.hidden))>header .tag{font-size:clamp(8px,2vw,10px)!important;letter-spacing:.045em!important}
 #joinbox:not(.hidden){max-width:calc(100% - 22px)!important;margin:12px auto 32px!important;padding:12px!important;gap:5px!important}
 #joinbox:not(.hidden) .ccc-lobby-art{margin:0!important;gap:5px!important}
 #joinbox:not(.hidden) .ccc-lobby-art img{width:calc((100% - 15px)/4)!important;max-width:73px!important;max-height:73px!important;border-radius:16px!important}
 #joinbox:not(.hidden) .ccc-create-section,#joinbox:not(.hidden) .ccc-join-section{min-height:0!important;padding:14px 12px!important;border-radius:21px!important}
 #joinbox:not(.hidden) .ccc-lobby-eyebrow{display:none!important}
 #joinbox:not(.hidden) .ccc-create-section h2,#joinbox:not(.hidden) .ccc-join-section h2{font-size:clamp(19px,5.5vw,25px)!important;margin:0 0 11px!important}
 #joinbox:not(.hidden) #createRoomBtn{min-height:55px!important;font-size:clamp(15px,4.1vw,19px)!important;padding:10px 8px!important;line-height:1.12!important}
 #joinbox:not(.hidden) .ccc-lobby-divider{height:26px!important;min-height:26px!important;margin:0!important}
 #joinbox:not(.hidden) .ccc-lobby-actions{gap:8px!important;margin-top:10px!important}
 #joinbox:not(.hidden) .ccc-lobby-actions button{min-height:52px!important;font-size:clamp(11px,3vw,14px)!important}
 #joinbox:not(.hidden) .ccc-join-section label{margin:7px 0 3px!important}
 #joinbox:not(.hidden) .ccc-join-section input{height:46px!important;font-size:16px!important}
 #joinbox:not(.hidden)::after{display:none!important}
 body:has(#joinbox:not(.hidden)) #control{display:none!important}
}

/* Phone welcome: Joining takes priority. Use evenly spaced portrait strips. */
@media(max-width:700px){
 body:has(#joinbox:not(.hidden)) #joinbox:not(.hidden){
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:calc(100% - 20px)!important;max-width:480px!important;
  min-height:0!important;gap:8px!important;
  margin:10px auto 22px!important;padding:11px!important;
  border-radius:23px!important;overflow:hidden!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-lobby-left{order:0!important}
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-join-section{
  order:1!important;display:flex!important;flex-direction:column!important;
  min-height:0!important;padding:15px 13px!important;
  border:2px solid #f6d782!important;
  border-radius:18px!important;
  background:linear-gradient(140deg,#284f85,#162a56)!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-lobby-right{order:2!important}
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-create-section{
  order:3!important;min-height:0!important;padding:9px 12px!important;
  border-radius:14px!important;
  background:#173059ba!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-lobby-divider{display:none!important}
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-create-section:before{display:none!important}
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-create-section h2{
  font-size:16px!important;margin:0 0 7px!important;line-height:1.1!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox #createRoomBtn{
  width:100%!important;min-height:42px!important;padding:7px!important;
  font-size:14px!important;border-radius:12px!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-join-section h2{
  font-size:clamp(24px,6.5vw,31px)!important;
  margin:0 0 10px!important;line-height:1.12!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-join-section label{
  margin:7px 0 4px!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-join-section input{
  min-height:51px!important;height:51px!important;
  font-size:16px!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-lobby-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;margin:12px 0 0!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-lobby-actions button{
  min-width:0!important;min-height:52px!important;
  padding:8px 5px!important;font-size:clamp(11px,3vw,14px)!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-lobby-art,
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-lobby-left,
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-lobby-right{
  position:relative!important;inset:auto!important;transform:none!important;
  display:flex!important;flex-direction:row!important;
  align-items:center!important;justify-content:space-between!important;
  gap:clamp(3px,1vw,7px)!important;
  width:100%!important;height:auto!important;
  margin:0!important;padding:0!important;
  filter:none!important;min-width:0!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox .ccc-lobby-art img{
  display:block!important;flex:1 1 0!important;width:0!important;min-width:0!important;
  max-width:70px!important;height:auto!important;max-height:60px!important;
  aspect-ratio:1 / 1!important;object-fit:contain!important;
  border-radius:12px!important;margin:0!important;
 }
 body:has(#joinbox:not(.hidden)) #joinbox::after{display:none!important}
 body:has(#joinbox:not(.hidden)) #app,
 body:has(#joinbox:not(.hidden)) #control{display:none!important}
}


/* Final homepage polish: keep the twelve critters and genuine room controls. */
body:has(#joinbox:not(.hidden)) #joinbox:not(.hidden)::after{
 content:none!important;display:none!important;
}
/* Instead of a decorative floating oval, the central card casts its own glow. */
body:has(#joinbox:not(.hidden)) #joinbox:not(.hidden){
 box-shadow:0 7px 0 #95632a,0 22px 60px #010a24be,0 38px 95px #0b20447d,
   0 0 40px #eacb5730,inset 0 0 0 8px #8fb9ec17,inset 0 1px 20px #98bdff31!important;
}
#joinbox .ccc-create-section{justify-content:center!important}
#joinbox .ccc-create-helper{
 width:100%;max-width:320px;margin:clamp(13px,2vh,22px) auto 0;
 color:#d8ebfc;font-size:clamp(12px,1.1vw,16px);font-weight:650;
 line-height:1.35;text-align:center;
}
/* Two equal primary joining choices; TV viewing has its own full-width row. */
#joinbox .ccc-lobby-actions{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 column-gap:10px!important;row-gap:12px!important;
 align-items:stretch!important;
}
#joinbox .ccc-lobby-actions button{
 width:100%!important;min-width:0!important;
 margin:0!important;box-sizing:border-box!important;
}
#joinbox .ccc-lobby-actions .ccc-rejoin-player{
 background:linear-gradient(#245a70,#16354f)!important;
 border:2px solid #7395ac!important;
 color:#e4f4f7!important;
 box-shadow:0 5px 0 #10273d,0 8px 16px #0005!important;
 font-size:clamp(12px,1.05vw,16px)!important;
}
#joinbox .ccc-lobby-actions .ccc-watch-on-tv{
 grid-column:1/-1!important;
 background:linear-gradient(#287c91,#14526e)!important;
 border:2px solid #80d7df!important;
 min-height:54px!important;
 box-shadow:0 5px 0 #0c3549,0 9px 19px #0006!important;
}
#joinbox .ccc-lobby-actions #joinFeedback{
 grid-column:1/-1!important;
 margin:0!important;
}
#joinbox .ccc-lobby-actions .ccc-watch-hint{
 grid-column:1/-1!important;
 color:#c9dfef;font-size:clamp(11px,1vw,14px);
 text-align:center;margin:-5px 0 0;line-height:1.35;
}
@media(max-width:700px){
 #joinbox .ccc-create-helper{font-size:12px;margin:8px auto 0}
 #joinbox .ccc-lobby-actions{gap:8px!important}
 #joinbox .ccc-lobby-actions .ccc-watch-on-tv{
  grid-column:1/-1!important;min-height:48px!important;
 }
 #joinbox .ccc-lobby-actions .ccc-watch-hint{font-size:11px;margin:-3px 0 0}
 #joinbox .ccc-lobby-actions .ccc-rejoin-player{font-size:12px!important}
}
