:root{color-scheme:light;--dark:#18181d;--muted:#777780;--stroke:#e5e3e5;--white:#fff;--violet:#8061fa}*{box-sizing:border-box}html,body{margin:0;height:100%;width:100%;overflow:hidden;overscroll-behavior:none;background:#f2f0ec;color:#202026;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Pretendard","Apple SD Gothic Neo",system-ui,sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #afa3ff}button:disabled{cursor:wait;opacity:.6}#scene{position:fixed;inset:0;touch-action:none}#scene canvas{display:block;width:100%;height:100%}#loading{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);padding:13px 20px;background:#fff;border-radius:16px;color:#666;box-shadow:0 6px 30px #0001}.hidden{display:none!important}#hud{position:fixed;inset:0;pointer-events:none}#hud>*{pointer-events:auto}.topbar{position:absolute;z-index:4;left:16px;top:16px;right:16px;display:flex;justify-content:space-between;align-items:center;gap:10px}.logo{display:flex;align-items:center;gap:10px;padding:9px 13px;background:#fffffff0;box-shadow:0 6px 30px #1212181c;border:1px solid #eeebed;border-radius:16px;width:max-content}.logoMark{background:#202027;color:white;display:grid;place-items:center;border-radius:10px;width:31px;height:31px;font-weight:900;letter-spacing:-1.5px;font-size:16px}.logo strong{display:block;font-size:13px;letter-spacing:.5px;line-height:1.2}.logo small{display:block;font-size:9px;color:#86818b;letter-spacing:.9px;margin-top:3px}.topActions{display:flex;gap:7px;align-items:center}.tinyChip{border-radius:12px;background:#fffefef0;border:1px solid #eae5eb;padding:9px 11px;color:#57545f;box-shadow:0 5px 20px #0001;font-size:11px;font-weight:700;white-space:nowrap}.worldCaption{position:absolute;top:87px;left:20px;font-size:11px;color:#76727a}.worldCaption span{color:#b9b2c3}.nameLabel,.bubble{position:absolute;left:50%;top:44%;transform:translate(-50%,-100%);pointer-events:none;z-index:3;white-space:nowrap;box-shadow:0 3px 16px #18111a11}.nameLabel{font-size:12px;font-weight:800;background:#ffffffd9;border-radius:13px;padding:4px 10px}.bubble{max-width:230px;min-width:60px;white-space:pre-wrap;word-break:break-word;text-align:center;background:#fff;border:2px solid #ddd2ff;border-radius:17px;padding:9px 12px;font-size:13px}.bubble:after{content:"";position:absolute;width:9px;height:9px;background:#fff;border-right:2px solid #ddd2ff;border-bottom:2px solid #ddd2ff;bottom:-6px;left:calc(50% - 5px);transform:rotate(45deg)}.bottomBar{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:16px;display:flex;align-items:center;gap:10px}.pill{border:1px solid #e9e6e9;background:#fffefef5;border-radius:15px;padding:12px 16px;font-weight:800;color:#454150;box-shadow:0 7px 24px #0001}.pill span{color:var(--violet)}.help{border-radius:12px;padding:9px 12px;background:#ffffffbb;font-size:11px;color:#89848c}.chatPanel{position:absolute;z-index:5;top:80px;right:16px;bottom:16px;width:325px;border:1px solid #ede9eb;background:#fffefef4;box-shadow:0 12px 36px #27202719;border-radius:24px;display:flex;flex-direction:column;overflow:hidden;backdrop-filter:blur(13px)}.panelTop{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px;border-bottom:1px solid #ece9ec}.panelTop strong{display:block;font-size:15px}.panelTop small{display:block;font-size:10px;color:#89848e;margin-top:3px}.chatLog{flex:1;min-height:0;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}.systemMsg{padding:10px;border-radius:13px;background:#f5f3f7;color:#96909c;font-size:11px;line-height:1.65;text-align:center}.chatLine{max-width:96%;align-self:flex-start;background:#f2f0f4;padding:9px 12px;border-radius:15px 15px 15px 5px;word-break:break-word}.chatLine.mine{align-self:flex-end;background:#ede7ff;border-radius:15px 15px 5px 15px}.chatLine small{display:block;color:#7c7685;font-size:10px;font-weight:800;margin-bottom:3px}.chatForm{border-top:1px solid #eeeaf0;padding:11px;display:flex;gap:7px}.chatForm input{border:0;border-radius:12px;min-width:0;flex:1;background:#f4f2f5;padding:11px;font-size:13px}.chatForm button{border:0;background:#292530;border-radius:12px;padding:10px 14px;color:#fff;font-weight:800}.mobileOnly{display:none}.motionPanel{position:absolute;left:16px;bottom:84px;z-index:6;background:#fffefef6;border:1px solid #ece8ee;box-shadow:0 12px 36px #27202722;width:343px;max-width:calc(100vw - 32px);border-radius:24px;overflow:hidden}.motionList{padding:13px;max-height:min(49vh,360px);overflow:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.motionList button{min-height:51px;background:#f8f6f8;border:1px solid #eeeaf0;border-radius:13px;font-size:11px;color:#484150;font-weight:750}.motionList button.on{background:#eae3ff;border-color:#a99ae9;color:#4f2fbd}.motionList button[data-empty="true"]{border-style:dashed}.motionFoot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;border-top:1px solid #eeeaf0;font-size:10px;color:#88818c}.motionFoot button{padding:8px 10px;border:0;border-radius:9px;background:#222129;color:#fff;font-weight:800}.iconBtn{border:0;background:#f0eef1;border-radius:10px;width:33px;height:33px}.toast{position:absolute;left:50%;top:84px;transform:translateX(-50%);border-radius:12px;background:#25212be8;color:#fff;padding:10px 14px;z-index:7;opacity:0;transition:opacity .2s;font-size:11px;pointer-events:none;max-width:85vw;text-align:center}.toast.show{opacity:1}.mobileMove{display:none}.selectScreen{position:fixed;inset:0;z-index:20;background:linear-gradient(145deg,#faf7f3,#eee9f5);overflow-y:auto;overscroll-behavior:contain}.selectWrap{max-width:820px;margin:auto;padding:26px 18px 24px;min-height:100%;display:flex;flex-direction:column}.selectHeading{display:flex;justify-content:space-between;align-items:center;gap:10px}.logo.light{box-shadow:none;background:transparent;border:0;padding:0}.verTag{font-size:10px;border:1px solid #d9d4dc;color:#9b94a0;border-radius:99px;padding:7px 11px;font-weight:700}.selectIntro{margin:28px 0 20px}.selectIntro h1{font-size:clamp(29px,4vw,42px);line-height:1.15;margin:0 0 12px;letter-spacing:-1.7px}.selectIntro em{font-style:normal;color:#8b6bf1}.selectIntro p{color:#837e89;max-width:480px;font-size:13px;margin:0}.selectGrid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;isolation:isolate}.avatarCard{height:clamp(128px,18vw,184px);position:relative;border-radius:17px;background:linear-gradient(135deg,#fffefd,#f4f0ff);border:2px solid #e9e4eb;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:0 3px 10px;z-index:2;transition:border-color .16s,transform .16s;touch-action:manipulation}.avatarCard[data-selected="true"]{border-color:#9173f5;background:linear-gradient(135deg,#f7f2ff,#eae1ff);transform:translateY(-2px);box-shadow:0 5px 15px #926bf326}.avatarCard strong{font-size:12px;line-height:1.2;text-shadow:0 1px 5px white;z-index:3}.avatarCard small{font-size:10px;color:#aca5b0;z-index:3}.avatarCard .avatarLoading{position:absolute;top:43%;font-size:10px;color:#a7a2aa}.avatarCard .avatarLoading.error{color:#bb3f51}.avatarCard.ready .avatarLoading{display:none}#previewCanvas{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}#previewCanvas canvas{width:100%;height:100%;display:block;pointer-events:none}.selectFoot{margin-top:19px;display:flex;align-items:center;gap:10px}.selectFoot label{font-size:12px;color:#76707e;font-weight:800}.selectFoot input{border:1px solid #dfd9e2;border-radius:12px;background:white;padding:12px;min-width:0;width:210px;flex:1}.selectFoot button{border:0;border-radius:12px;background:#27232d;color:#fff;font-weight:850;padding:13px 25px}.selectDisclaimer{font-size:10px;color:#a09aa4;margin:13px 0 0}.selectGrid .avatarCard{background-color:transparent}.selectGrid .avatarCard[data-selected="true"]{background:transparent}
@media(max-width:720px){.selectWrap{padding:16px 12px 25px}.selectIntro{margin:21px 0 17px}.selectIntro h1{font-size:29px}.selectIntro p{font-size:12px}.selectGrid{gap:7px}.avatarCard{height:clamp(128px,24vh,179px);border-radius:13px}.selectFoot{gap:7px;flex-wrap:wrap}.selectFoot label{width:100%}.selectFoot input{width:50%}.selectFoot button{flex:1;padding:12px}.verTag{font-size:8px}.topbar{top:9px;left:9px;right:9px}.logo{padding:8px 10px}.logo small{font-size:8px}.tinyChip{font-size:10px;padding:9px}.worldCaption{top:74px;left:14px;right:14px;max-width:250px;font-size:10px}.chatPanel{top:auto;bottom:0;right:0;left:0;width:auto;height:min(70dvh,520px);border-radius:23px 23px 0 0;display:none}.chatPanel.open{display:flex}.mobileOnly{display:inline-flex;align-items:center;justify-content:center}.bottomBar{left:auto;right:12px;bottom:calc(18px + env(safe-area-inset-bottom));flex-direction:column;gap:7px}.help{display:none}.pill{min-width:80px;padding:13px 17px}.mobileMove{display:flex;position:absolute;z-index:2;left:21px;bottom:calc(22px + env(safe-area-inset-bottom));align-items:center;gap:8px;flex-direction:column;color:#a09ba5;font-size:10px;pointer-events:auto}#joystick{width:102px;height:102px;touch-action:none;background:#ffffff80;border:2px solid #ffffffd9;border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 20px #0001}#joyNub{width:48px;height:48px;border-radius:50%;background:#ffffffed;border:1px solid #e7e1ec;box-shadow:0 3px 13px #0002;will-change:transform}.motionPanel{bottom:calc(94px + env(safe-area-inset-bottom));left:9px;width:min(340px,calc(100vw - 18px))}.nameLabel{font-size:11px}}
@media(max-width:350px){.avatarCard{height:125px}.selectIntro{margin:16px 0 13px}.selectDisclaimer{display:none}.selectFoot{margin-top:12px}.logo strong{font-size:11px}}
#previewCanvas{z-index:1}.avatarCard{z-index:2}.avatarCard strong,.avatarCard small{position:relative;z-index:2}.avatarCard .avatarLoading{z-index:2}.peerLabel{background:#eee9ffcf}
.selectGrid .avatarCard,.selectGrid .avatarCard[data-selected="true"]{background:transparent!important}

/* WindyChat v0.2: imported original Miner joystick images, separate safe-area controls. */
@media(max-width:720px),(pointer:coarse){
 .mobileMove{display:flex;position:absolute;z-index:8;left:max(12px,env(safe-area-inset-left));bottom:calc(64px + env(safe-area-inset-bottom));align-items:center;gap:10px;flex-direction:row;color:#a09ba5;pointer-events:none}
 #joystick{pointer-events:auto;position:relative;width:80px;height:80px;display:block;border:0;border-radius:50%;background:transparent url('./assets/joystick-base.webp') center/contain no-repeat;box-shadow:none;touch-action:none;isolation:isolate}
 #joyNub{pointer-events:none;position:absolute;width:41.6%;height:41.6%;left:50%;top:50%;transform:translate(-50%,-50%);border:0;border-radius:50%;background:transparent url('./assets/joystick-knob.webp') center/contain no-repeat;box-shadow:none;will-change:transform}
 #runToggle{pointer-events:auto;touch-action:manipulation;border:1px solid #e6e2e8;background:#fffffff0;color:#292530;border-radius:14px;min-width:64px;min-height:48px;padding:10px 12px;font:700 12px system-ui;box-shadow:0 3px 12px #0002}
 #runToggle[aria-pressed="true"]{background:#18181d;color:#fff}
}
@media(pointer:coarse) and (min-width:721px){
 .mobileMove{bottom:calc(56px + env(safe-area-inset-bottom))}
}

/* iOS / Android browser gesture protection — only while inside the 3D world.
   Keep chat message scrolling and form controls enabled. */
html.windychat-playing,
html.windychat-playing body {
 position:fixed;
 width:100%;
 height:100%;
 height:100dvh;
 max-width:100vw;
 overflow:hidden;
 overscroll-behavior:none;
 touch-action:none;
 -webkit-overflow-scrolling:auto;
}
html.windychat-playing #scene,
html.windychat-playing #scene canvas,
html.windychat-playing #hud,
html.windychat-playing .mobileMove,
html.windychat-playing #joystick,
html.windychat-playing #joyNub {
 touch-action:none;
 overscroll-behavior:none;
 -webkit-user-select:none;
 user-select:none;
 -webkit-touch-callout:none;
}
html.windychat-playing .chatLog,
html.windychat-playing .motionList {
 touch-action:pan-y;
 overscroll-behavior:contain;
 -webkit-overflow-scrolling:touch;
}

/* Fall -> central respawn: soft dark fade, luminous sky-blue ring. */
#respawnFx{position:fixed;inset:0;z-index:90;pointer-events:none;opacity:0;display:grid;place-items:center;transition:opacity .25s ease;background:rgba(16,35,56,0)}
#respawnFx.falling{opacity:1;animation:fallShade 1.5s ease-in forwards}
#respawnFx.spawn{opacity:1;background:rgba(145,217,255,.12);animation:spawnFade 1.05s ease-out forwards}
#respawnFx .respawnText{position:absolute;top:40%;color:white;font-weight:900;font-size:clamp(24px,6vw,42px);text-shadow:0 3px 18px #478eb4;opacity:0}
#respawnFx.spawn .respawnText{animation:spawnText 1.05s ease-out forwards}
#respawnFx .respawnRing{width:75px;height:75px;border:5px solid #d9f8ff;border-radius:50%;box-shadow:0 0 30px #91d9ff;opacity:0}
#respawnFx.spawn .respawnRing{animation:spawnRing 1.05s ease-out forwards}
@keyframes fallShade{0%,40%{background:rgba(16,35,56,0)}85%,100%{background:rgba(16,35,56,.85)}}
@keyframes spawnFade{0%{background:rgba(145,217,255,.6)}100%{background:rgba(145,217,255,0);opacity:0}}
@keyframes spawnText{0%{opacity:0;transform:translateY(15px) scale(.8)}25%,65%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-20px)}}
@keyframes spawnRing{0%{opacity:.95;transform:scale(.2)}100%{opacity:0;transform:scale(5)}}

/* Minimal in-world HUD: occupancy and avatar switch only. */
#hud .topbar{justify-content:flex-end}

/* Small build controls, deliberately separate from avatar movement. */
.buildTools{position:absolute;left:16px;top:18px;z-index:6;display:flex;gap:7px;align-items:flex-start}
.buildTools button{width:42px;height:42px;border:1px solid #e8e5e6;border-radius:13px;background:#fffffff0;color:#303039;font-size:23px;box-shadow:0 4px 16px #0002;touch-action:manipulation}
#landDirections{display:grid;grid-template-columns:repeat(2,42px);gap:5px;padding:5px;background:#ffffffdc;border-radius:14px}

/* Fixed screen-space mock ad: independent of 3D camera orbit. */
.adDemo{position:absolute;z-index:8;top:max(8px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);height:44px;width:min(460px,calc(100vw - 260px));min-width:200px;border-radius:11px;background:#d7f25a;color:#26320c;display:flex;align-items:center;justify-content:center;gap:10px;padding:5px 12px;box-shadow:0 5px 16px #0002;white-space:nowrap;pointer-events:none}
.adDemo strong{font-size:16px;letter-spacing:-.5px}.adDemoCopy{font-size:11px;font-weight:700}.adDemoTag{font-size:9px;background:#fff9;padding:3px 5px;border-radius:4px}
@media(max-width:720px){.adDemo{top:max(7px,env(safe-area-inset-top));height:34px;width:calc(100vw - 24px);min-width:0;border-radius:8px;gap:7px}.adDemo strong{font-size:13px}.adDemoCopy{font-size:10px}.adDemoTag{font-size:8px}.topbar{top:calc(max(7px,env(safe-area-inset-top)) + 42px)}.buildTools{top:calc(max(7px,env(safe-area-inset-top)) + 42px)}}
@media(min-width:721px) and (max-width:1020px){.adDemoCopy{display:none}}

/* Respawn title and avatar label must never overlap. */
#respawnFx.falling~#hud .nameLabel,#respawnFx.spawn~#hud .nameLabel{visibility:hidden}
#respawnFx .respawnText{top:31%;z-index:2}

/* Double-height fixed ad banner (PC 88px, mobile 68px). */
.adDemo{height:88px}
@media(max-width:720px){.adDemo{height:68px}.topbar,.buildTools{top:calc(max(7px,env(safe-area-inset-top)) + 76px)}}

/* Separate right-side action stack from left joystick. */
.mobileActions{display:none}
@media(max-width:720px),(pointer:coarse){
 .mobileMove{left:clamp(38px,8vw,64px)!important;bottom:calc(36px + env(safe-area-inset-bottom))!important}
 .mobileActions{position:absolute;z-index:6;right:12px;bottom:calc(160px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px;pointer-events:auto}
 .mobileActions button{width:80px;min-height:46px;border:1px solid #e9e6e9;background:#fffefef5;border-radius:15px;padding:10px;font-weight:800;color:#454150;box-shadow:0 7px 24px #0001;touch-action:manipulation}
 .mobileActions #runToggle[aria-pressed=true]{background:#34303a;color:white}
 .mobileActions #dashBtn:disabled{opacity:.55}
 .bottomBar{right:12px;bottom:calc(44px + env(safe-area-inset-bottom));gap:8px}
 .bottomBar .pill{width:80px;min-width:80px;min-height:46px;padding:10px}
}

/* Terrain edit mode controls: camera switches to tilted overhead view. */
#landTool[aria-pressed=true]{background:#30343b;color:white}
#landDirections.hidden{display:none!important}
#landDirections:not(.hidden){display:grid;grid-template-columns:repeat(2,42px)}

/* Terrain edit: slide gameplay controls off the bottom, keep terrain tools visible. */
.mobileMove,.mobileActions,.bottomBar{transition:transform .22s ease,opacity .18s ease;will-change:transform,opacity}
#hud.terrain-editing .mobileMove,#hud.terrain-editing .mobileActions,#hud.terrain-editing .bottomBar{transform:translateY(calc(100% + 240px));opacity:0;pointer-events:none!important}
#hud.terrain-editing .mobileMove *,#hud.terrain-editing .mobileActions *,#hud.terrain-editing .bottomBar *{pointer-events:none!important}

.landHint{position:absolute;z-index:8;left:50%;top:48%;transform:translate(-50%,-50%);font-size:13px;font-weight:600;letter-spacing:.01em;color:#fff;text-shadow:0 1px 5px #0009;pointer-events:none;white-space:nowrap}
.landHint.hidden{display:none!important}

/* Land editing instruction: high, dark rounded pill away from avatar labels. */
#hud .landHint:not(.hidden){position:absolute;z-index:12;left:50%;top:clamp(110px,18vh,175px);transform:translateX(-50%);width:max-content;max-width:calc(100vw - 40px);padding:11px 19px;border-radius:999px;background:rgba(35,37,43,.90);border:1px solid rgba(255,255,255,.16);box-shadow:0 6px 20px rgba(0,0,0,.2);color:#fff;text-align:center;font-size:13px;font-weight:700;text-shadow:none;pointer-events:none;white-space:normal}
@media(max-width:720px),(pointer:coarse){#hud .landHint:not(.hidden){top:clamp(100px,16vh,145px);font-size:12px;padding:10px 15px}}

/* World-projected terrain expansion arrows, independent of the build toolbar. */
#hud #landDirections:not(.hidden){position:fixed!important;inset:0!important;display:block!important;width:0!important;height:0!important;overflow:visible!important;pointer-events:none!important;z-index:11!important;transform:none!important;background:none!important;border:0!important;padding:0!important}
#hud #landDirections:not(.hidden) button{position:fixed!important;width:48px!important;height:48px!important;border-radius:50%!important;background:rgba(255,255,255,.96)!important;color:#252b2e!important;border:2px solid rgba(255,255,255,1)!important;box-shadow:0 4px 16px #0004!important;display:flex;align-items:center;justify-content:center;font-size:23px;pointer-events:auto!important;cursor:pointer}

/* Chat is opt-in on desktop as on mobile. */
@media(min-width:721px) and (pointer:fine){.chatPanel{display:none}.chatPanel.open{display:flex}}

/* Minimal floating expansion arrows: no circular button background. */
#landDirections{position:static;background:transparent;border:0;box-shadow:none;padding:0;display:block;pointer-events:none}
#landDirections.hidden{display:none}
#landDirections [data-dir]{position:fixed;z-index:9;width:56px;height:56px;display:flex;align-items:center;justify-content:center;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff;font-size:42px;font-weight:400;line-height:1;text-shadow:0 2px 5px #0008;pointer-events:auto;touch-action:manipulation;padding:0}
#landDirections [data-dir]:hover{background:transparent;color:#fff;text-shadow:0 2px 8px #000a}


/* OneQYou: swatch-matched pink welcome screen and single animated avatar. */
.selectScreen{background:#ff81c1;color:#341c33}
.selectWrap{max-width:760px;min-height:100dvh;min-height:100svh;padding:22px 20px 24px;align-items:center;justify-content:space-between;gap:4px}
.selectHeading{width:100%;min-height:18px}
.verTag{padding:0;background:none;border:0;color:#73385f;font-size:10px;letter-spacing:.06em;font-weight:600}
.selectIntro{text-align:center;margin:4px 0 0;width:100%}
.selectIntro h1{font-size:clamp(25px,4.2vw,39px);letter-spacing:-1.2px;line-height:1.23;margin:0 0 9px;font-weight:900;color:#3b2035;overflow-wrap:anywhere}
.selectIntro p{margin:0 auto;color:#704365;font-size:clamp(12px,1.5vw,14px);font-weight:600}
.selectGrid{display:block;position:relative;width:min(100%,450px);height:clamp(235px,47dvh,455px);min-height:0;overflow:visible;isolation:isolate;flex:1 1 auto;max-height:455px}
#selectGrid .avatarCard{width:min(100%,350px);height:100%;max-height:455px;position:absolute;left:50%;transform:translateX(-50%);top:0;margin:0;border:0;box-shadow:none;z-index:2;border-radius:0;background:transparent!important;pointer-events:none}
#selectGrid .avatarCard:nth-of-type(n+2){display:none!important}
#selectGrid .avatarCard strong,#selectGrid .avatarCard small,#selectGrid .avatarCard .avatarLoading{display:none!important}
#previewCanvas{inset:0;z-index:1;pointer-events:none}
.selectFoot{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:min(100%,330px);margin-top:0}
.selectFoot label{font-size:14px;color:#45223d;font-weight:900}
.selectFoot input{width:100%;flex:none;min-height:48px;background:#fffefa;border:0;border-radius:15px;color:#2d2730;font-size:15px;text-align:center;box-shadow:0 5px 16px #81335b23}
.selectFoot input::placeholder{color:#90838b}
.selectFoot button{width:100%;min-height:50px;border-radius:15px;background:#30222d;color:white;font-size:16px;box-shadow:0 5px 15px #6d34522b}
.selectLanguage{display:flex;justify-content:center;align-items:center;gap:8px;margin:6px auto 0;font-size:11px;color:#633554}
.selectLanguage select{font:inherit;max-width:190px;padding:5px 20px 5px 7px;color:#633554;border:1px solid #ae628c4d;background:#fff4;border-radius:9px;min-height:30px}
#changeAvatar{display:none!important}
@media(max-width:720px){
 .selectWrap{padding:calc(12px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom));gap:6px}
 .selectIntro{margin:5px 0 0}
 .selectIntro h1{font-size:clamp(24px,6.7vw,32px)}
 .selectGrid{height:clamp(235px,43dvh,390px);max-height:390px}
 .selectFoot{gap:7px;flex-wrap:nowrap}
 .selectFoot label{width:auto}
 .selectFoot input{width:100%}
 .selectFoot button{width:100%;flex:none}
 .selectLanguage{margin-top:4px}
}
@media(max-height:590px){
 .selectWrap{justify-content:flex-start}
 .selectGrid{flex:0 1 auto;height:220px}
}
html[dir="rtl"] .selectIntro,html[dir="rtl"] .selectFoot{text-align:center}


/* OneQYou 5-second silent animated welcome: use supplied video, not a second 3D preview. */
#selectGrid .oneqHeroFallback,#selectGrid .oneqWelcomeVideo{
 position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;
 pointer-events:none;mask-image:radial-gradient(ellipse 75% 70% at center,#000 62%,transparent 99%);
 -webkit-mask-image:radial-gradient(ellipse 75% 70% at center,#000 62%,transparent 99%);
}
#selectGrid .oneqHeroFallback{z-index:0}
#selectGrid .oneqWelcomeVideo{z-index:1;background:transparent}
#selectGrid #previewCanvas{display:none!important}
#selectGrid .avatarCard{visibility:hidden!important}
@media(prefers-reduced-motion:reduce){#selectGrid .oneqWelcomeVideo{display:none}#selectGrid .oneqHeroFallback{display:block}}


/* OneQYou landing: full-bleed video on desktop, centred contain on mobile.
   Match the actual video left-side pink sampled near #FD70BF. */
.selectScreen{background:#f536a9;overflow-y:auto;overscroll-behavior:contain}
.oneqVideoStage{position:absolute;z-index:0;top:0;left:0;right:0;height:100svh;min-height:0;background:#f536a9;overflow:hidden;pointer-events:none}
.oneqVideoStage::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(253,112,191,.46),transparent 25%,transparent 68%,rgba(253,112,191,.43));pointer-events:none}
.oneqVideoFallback,.oneqVideoStage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
.oneqVideoFallback{opacity:.95}
.oneqVideoStage video{z-index:1}
.oneqVideoStage::after{z-index:2}
.selectWrap{position:relative;z-index:2;max-width:none;width:100%;min-height:100svh;min-height:100dvh;margin:0;padding:calc(22px + env(safe-area-inset-top,0px)) clamp(16px,5vw,75px) calc(22px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;background:transparent}
.selectHeading{align-self:stretch;width:100%;flex:none}
.selectIntro{flex:none;margin:clamp(5px,3vh,28px) auto 0;text-align:center;max-width:min(92%,740px)}
.selectIntro h1{font-size:clamp(27px,4vw,48px);color:#3d1d36;letter-spacing:-.025em;text-shadow:0 2px 16px #ffabd3ad;line-height:1.2;font-weight:900}
.selectIntro p{color:#602745;text-shadow:0 1px 8px #ffc3e3;font-weight:650}
.selectFoot{flex:none;margin:auto auto 0;padding:0;width:min(350px,100%);gap:8px}
.selectFoot label{color:#431c36;text-shadow:0 1px 8px #ffd3e6;font-weight:850}
.selectFoot input{background:#fffc;border:1px solid #fff8;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.selectFoot button{background:#33202e;color:white}
.selectLanguage{flex:none;margin:5px auto 0;padding-bottom:0;color:#562a47}
.selectLanguage select{background:#fff9;border-color:#ffffff8c;color:#55314a}
.oneqStory{position:relative;z-index:2;margin:0;background:#fffafd;color:#332a35;padding:clamp(44px,7vw,78px) 18px 48px;text-align:center}
.oneqStoryHead{max-width:660px;margin:0 auto 38px}
.oneqStoryEyebrow{display:inline-block;font-size:11px;letter-spacing:.17em;font-weight:900;color:#d34789}
.oneqStory h2{font-size:clamp(25px,4vw,37px);margin:12px 0;color:#35233a;letter-spacing:-.035em}
.oneqStoryHead p{font-size:clamp(14px,2vw,17px);line-height:1.8;color:#756271;margin:0 auto;max-width:560px}
.oneqStory h3{font-size:20px;margin:0 0 8px;letter-spacing:-.02em}
.oneqGoodsNotice{margin:0 auto 22px;color:#968797;font-size:13px}
.oneqGoods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:850px;gap:16px;margin:0 auto 20px}
.oneqGoodsCard{min-width:0;border-radius:20px;background:#fff;border:1px solid #f0e5ee;box-shadow:0 8px 25px #813b6820;overflow:hidden;padding-bottom:16px}
.oneqGoodsCard strong{font-size:13px;display:block;margin:9px 8px 0}
.oneqMerchImage{position:relative;height:clamp(120px,17vw,205px);display:grid;place-items:center;background:linear-gradient(145deg,#f7eaf2,#e9e2ed);overflow:hidden}
.oneqTee{position:relative;clip-path:polygon(28% 7%,40% 1%,60% 1%,72% 7%,98% 23%,83% 51%,72% 45%,72% 98%,28% 98%,28% 45%,17% 51%,2% 23%);width:58%;height:82%;background:#fff;box-shadow:0 7px 12px #5446}
.oneqTee img{position:absolute;left:30%;top:25%;width:40%;height:54%;object-fit:contain}
.oneqMug{position:relative;border-radius:4px 4px 20px 20px;background:#fff;width:39%;height:64%;display:grid;place-items:center;box-shadow:inset 0 0 14px #b4a7b044,0 8px 12px #5542;transform:rotate(-4deg)}
.oneqMug:after{content:"";position:absolute;left:98%;top:17%;width:38%;height:49%;border:clamp(7px,1vw,12px) solid #fff;border-left:0;border-radius:0 50% 50% 0}
.oneqMug img{max-width:72%;max-height:74%;object-fit:contain}
.oneqSticker{border-radius:50%;width:64%;aspect-ratio:1;background:white;display:grid;place-items:center;border:8px solid white;box-shadow:0 12px 20px #5543;transform:rotate(8deg)}
.oneqSticker img{max-width:100%;max-height:100%;object-fit:contain}
.oneqStory small{color:#a79aa5;font-size:11px}
@media(max-width:720px){
 .oneqVideoStage{height:100svh;height:100dvh}
 .oneqVideoFallback,.oneqVideoStage video{object-fit:contain;object-position:center center}
 .oneqVideoStage::after{background:linear-gradient(to bottom,rgba(253,112,191,.22),transparent 24%,transparent 73%,rgba(253,112,191,.18))}
 .selectWrap{padding:calc(12px + env(safe-area-inset-top,0px)) 16px calc(16px + env(safe-area-inset-bottom,0px));min-height:100svh;justify-content:space-between}
 .selectIntro{margin:14px auto 0}
 .selectIntro h1{font-size:clamp(24px,6.3vw,32px)}
 .selectIntro p{font-size:12px}
 .selectFoot{width:min(100%,350px);margin:auto auto 0;gap:6px}
 .selectFoot input{width:100%;min-height:45px}
 .selectFoot button{min-height:47px}
 .oneqGoods{gap:9px}
 .oneqGoodsCard{border-radius:13px;padding-bottom:9px}
 .oneqGoodsCard strong{font-size:11px}
 .oneqMerchImage{height:clamp(94px,28vw,144px)}
 .oneqStory{padding:40px 14px 40px}
}
@media(max-width:360px){
 .selectIntro{margin:7px auto 0}
 .selectIntro h1{font-size:23px}
 .selectFoot label{font-size:12px}
 .selectFoot input,.selectFoot button{min-height:42px}
 .oneqGoodsCard strong{font-size:10px}
}


/* OneQYou warm-pink welcome, graphic hero and simple casual action buttons. */
/* OneQYou fonts are loaded as links in index.html for reliability. */
:root{--oneq-pink:#f536a9}
.selectScreen,.oneqVideoStage{background:var(--oneq-pink)!important}
.oneqVideoStage{background-image:none!important}
.oneqVideoStage:after{display:none}
.oneqVideoStage video,.oneqVideoFallback{display:none!important}
.selectWrap{min-height:100svh;max-width:960px;margin:0 auto;position:relative;z-index:2;justify-content:flex-start;gap:8px}
.selectHeading{flex:none}
.selectIntro{margin:clamp(9px,3vh,24px) auto 0}
.selectIntro h1{font-family:'Jua','Arial Rounded MT Bold',system-ui,sans-serif;font-size:clamp(29px,4.2vw,48px);font-weight:400;line-height:1.15;letter-spacing:0;color:#3b2334;text-shadow:none}
.selectIntro p{font-family:'Jua','Arial Rounded MT Bold',system-ui,sans-serif;font-size:clamp(18px,2vw,25px);font-weight:400;color:#612844;text-shadow:none}
.oneqWelcomeHero{display:block;width:auto;max-width:min(82%,440px);height:auto;max-height:clamp(165px,44svh,460px);object-fit:contain;filter:drop-shadow(0 12px 15px #8d32602a);margin:clamp(3px,1.6vh,16px) auto auto;pointer-events:none}
.selectFoot{width:min(100%,410px);margin:0 auto;gap:8px;flex:none}
.selectFoot label{font-family:'Jua',system-ui,sans-serif;font-size:17px;font-weight:400}
.selectFoot input{width:100%;max-width:100%;text-align:center;background:#fff;border:1px solid #fff;border-radius:16px;font-size:16px}
.oneqRoomButtons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.oneqRoomButtons button{min-width:0;min-height:56px;padding:10px;font-family:'Jua','Arial Rounded MT Bold',system-ui,sans-serif;font-size:clamp(17px,2.5vw,21px);font-weight:400;border-radius:18px;white-space:normal;line-height:1.2;transition:transform .14s}
.oneqRoomButtons button:active,.oneqChoiceActions button:active{transform:scale(.97)}
.oneqRoomButtons button.oneqPlayButton{background:#fff;color:#ae3774;box-shadow:0 5px 0 #cc5395,0 9px 18px #68233b2a}
.oneqRoomButtons button.oneqCreateButton{background:#422b3b;color:#fff;box-shadow:0 5px 0 #261720,0 9px 18px #68233b2a}
.oneqRoomButtons button:disabled{opacity:.65}
.oneqRoomChoice{border-radius:19px;background:#fffef6f0;box-shadow:0 9px 26px #88365c38;padding:15px;color:#44283a;display:flex;flex-direction:column;gap:9px}
.oneqRoomChoice.hidden{display:none}
.oneqRoomChoice>strong{font-family:'Jua',system-ui,sans-serif;font-size:19px;font-weight:400}
.oneqRoomChoice>label{display:flex;align-items:center;gap:8px;font-family:inherit;font-size:13px;color:#493448;font-weight:600;cursor:pointer}
.oneqRoomChoice input[type=radio]{width:18px;height:18px;flex:none;accent-color:#cb458d;box-shadow:none}
.oneqChoiceActions{display:flex;gap:8px}
.oneqChoiceActions button{font-family:'Jua',system-ui,sans-serif;font-size:16px;flex:1;padding:10px 8px;border:0;border-radius:12px;min-height:42px}
#cancelRoom{color:#60425a;background:#eee1eb}
#confirmRoom{color:#fff;background:#422b3b}
.oneqEntryNotice{min-height:15px;font-size:12px;line-height:1.35;text-align:center;color:#633753;margin:0;font-weight:650}
.selectLanguage{margin:2px auto 4px}
#hud #inviteRoom{display:inline-block!important;background:#fff6ffef;color:#662649}
#hud #inviteRoom.hidden{display:none!important}
.oneqStory h2,.oneqStory h3,.oneqGoodsCard strong{font-family:'Jua','Arial Rounded MT Bold',system-ui,sans-serif;font-weight:400}
.oneqGoodsNotice{font-family:'Jua','Arial Rounded MT Bold',system-ui,sans-serif;color:#865871;font-size:18px}
.oneqGoodsCard{box-shadow:none;border:1px solid #f2e3ed;padding:22px 8px 15px;background:#fff;border-radius:20px}
.oneqGoodsCard strong{font-size:16px}
.oneqMerchIcon{display:grid;place-items:center;background:#fff2fa;color:#bd5b94;width:96px;height:96px;border-radius:27px;margin:0 auto 9px}
.oneqMerchIcon svg{width:56px;height:56px}
@media(max-width:720px){
 .selectWrap{min-height:100svh;padding:calc(9px + env(safe-area-inset-top,0px)) 15px calc(12px + env(safe-area-inset-bottom,0px));gap:5px}
 .selectIntro{margin:9px auto 0}
 .selectIntro h1{font-size:clamp(25px,6vw,34px)}
 .selectIntro p{font-size:clamp(16px,4.2vw,21px)}
 .oneqWelcomeHero{max-height:clamp(145px,40svh,330px);max-width:80%;margin:5px auto auto}
 .selectFoot{gap:6px}
 .oneqRoomButtons button{min-height:50px;font-size:18px}
 .oneqMerchIcon{width:72px;height:72px;border-radius:20px}
 .oneqMerchIcon svg{width:42px;height:42px}
 .oneqGoodsCard{padding:15px 5px 10px}
 .oneqGoodsCard strong{font-size:13px}
}
@media(max-height:660px){
 .selectIntro{margin:3px auto 0}
 .oneqWelcomeHero{max-height:28svh}
 .selectFoot input{min-height:38px}
 .oneqRoomButtons button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.oneqRoomButtons button{transition:none}}


/* 3x hero scale: cropped intentionally to keep both room buttons in view.
   Original first-screen hero maxed at 440px wide; enlarged art reaches 1320px. */
.selectScreen{background:#f536a9!important;font-family:'Jua','Fredoka',system-ui,sans-serif}
.selectWrap{min-height:100svh;min-height:100dvh;overflow:hidden}
.oneqHeroStage{position:relative;flex:1 1 auto;min-height:clamp(210px,41svh,580px);width:100%;overflow:hidden;isolation:isolate;margin:0 auto;pointer-events:none}
.oneqHeroStage .oneqWelcomeHero{position:absolute;display:block;left:50%;top:0;transform:translate(-50%,-22%);width:min(1320px,140vw);min-width:0;max-width:none;max-height:none;height:auto;margin:0;object-fit:unset;filter:drop-shadow(0 12px 24px #8d32602a)}
.selectIntro h1{font-family:'Jua','Fredoka',system-ui,sans-serif;font-weight:400;letter-spacing:0;line-height:1.15}
.selectIntro p{font-family:'Jua','Fredoka',system-ui,sans-serif}
.selectFoot label,.oneqRoomButtons button,.oneqRoomChoice>strong,.oneqChoiceActions button{font-family:'Jua','Fredoka',system-ui,sans-serif}
.selectFoot input{font-family:'Fredoka','Jua',system-ui,sans-serif}
.selectLanguage,.oneqStory{font-family:'Jua','Fredoka',system-ui,sans-serif}
@media(max-width:720px){
 .selectWrap{overflow:hidden}
 .oneqHeroStage{min-height:clamp(200px,42svh,410px);width:calc(100% + 30px);margin-left:-15px;margin-right:-15px}
 .oneqHeroStage .oneqWelcomeHero{width:240vw;max-width:none;max-height:none;transform:translate(-50%,-25%)}
 .selectIntro h1{font-size:clamp(27px,7vw,38px)}
 .selectIntro p{font-size:clamp(18px,4.8vw,24px)}
}
@media(max-height:650px) and (max-width:720px){
 .oneqHeroStage{min-height:195px}
 .oneqHeroStage .oneqWelcomeHero{width:215vw;transform:translate(-50%,-26%)}
}


/* OneQYou refined layout: show Windy head-to-toe, soft pink fade and overlay controls. */
.selectScreen{background:#f536a9!important;color:#fffafc!important}
.selectWrap{
  box-sizing:border-box;max-width:1000px;min-height:100svh;min-height:100dvh;
  overflow:visible!important;gap:0!important;display:flex;flex-direction:column;align-items:center;
  padding:clamp(9px,2vh,22px) 16px clamp(15px,2vh,24px);
}
.selectHeading{width:100%;flex:0 0 auto}
.selectHeading .verTag{color:#fffdfd;font-size:11px}
.selectIntro{position:relative;z-index:4;flex:0 0 auto;margin:clamp(9px,2.5vh,25px) auto 0!important;max-width:90%}
.selectIntro h1,.selectIntro p{color:#fff!important;text-shadow:0 2px 9px #a62d6c80!important}
.oneqHeroStage{
  position:relative!important;z-index:1;display:flex!important;align-items:center;justify-content:center;
  width:100%!important;min-height:0!important;height:min(64svh,670px)!important;
  flex:1 1 auto!important;overflow:hidden!important;margin:0 auto!important;
}
.oneqHeroStage .oneqWelcomeHero{
  position:relative!important;top:auto!important;left:auto!important;
  transform:none!important;width:auto!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  object-position:center center!important;margin:0 auto!important;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 72%,#000c 80%,#0005 91%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 72%,#000c 80%,#0005 91%,transparent 100%);
  filter:none!important;
}
.selectFoot{
  position:relative;z-index:5;width:min(390px,100%)!important;
  margin:clamp(-115px,-11svh,-64px) auto 0!important;flex:0 0 auto;
  gap:9px!important;padding:8px 10px 0!important;background:transparent!important;
}
.selectFoot label{color:#fff!important;text-shadow:0 2px 7px #a22a6888;font-size:18px!important}
.selectFoot input{background:#fffefef5;border:2px solid #fff!important;color:#593044!important;font-size:17px!important}
.oneqEntryNotice{color:#fff!important;text-shadow:0 2px 6px #9e2d6780}
.selectLanguage{z-index:5;position:relative;flex:0 0 auto;margin:8px auto 0!important;color:#fff!important}
.selectLanguage select{background:#fff5!important;border:1px solid #fffc!important;color:#fff!important}
.selectLanguage select option{color:#442238}
.oneqStory{
  background:#f536a9!important;color:#fff!important;
  border-top:1px solid #ffffff50;padding-top:clamp(45px,6vw,75px)!important;
}
.oneqStoryEyebrow,.oneqStory h2,.oneqStory h3,.oneqStoryHead p,.oneqGoodsNotice,.oneqStory small{
  color:#fff!important;text-shadow:0 1px 7px #ac327249;
}
.oneqGoodsCard{background:#ffffff17!important;border:1px solid #ffffff8c!important;color:#fff!important;box-shadow:none!important}
.oneqGoodsCard strong{color:#fff!important}
.oneqMerchIcon{background:#ffffff24!important;color:#fff!important}
@media(max-width:720px){
 .selectWrap{min-height:100svh;min-height:100dvh;padding:calc(9px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px));}
 .selectIntro{max-width:100%;margin-top:7px!important}
 .selectIntro h1{font-size:clamp(24px,6.4vw,34px)!important}
 .selectIntro p{font-size:clamp(17px,4.6vw,22px)!important}
 .oneqHeroStage{min-height:0!important;height:min(59svh,540px)!important;width:100%!important;flex:1 1 auto!important}
 .oneqHeroStage .oneqWelcomeHero{width:auto!important;height:100%!important;max-width:100%!important;transform:none!important}
 .selectFoot{width:min(365px,100%)!important;margin-top:clamp(-120px,-13svh,-70px)!important;padding:0 5px!important;gap:6px!important}
 .selectFoot input{min-height:45px}
 .oneqRoomButtons button{min-height:52px}
}
@media(max-height:610px){
 .selectIntro{margin-top:2px!important}
 .oneqHeroStage{height:46svh!important}
 .selectFoot{margin-top:-60px!important}
 .selectFoot label{font-size:15px!important}
 .selectFoot input{min-height:38px}
 .oneqRoomButtons button{min-height:43px}
}


/* Dev-only avatar inspection panel: visually separate from production controls. */
.devAvatarPanel{position:absolute;z-index:10;top:72px;right:12px;width:min(320px,calc(100vw - 24px));background:#fffafdf7;border:1px solid #ebc2d9;border-radius:20px;box-shadow:0 12px 35px #60234430;pointer-events:auto;overflow:hidden;color:#452b3b}
.devAvatarList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}
.devAvatarList button{border:1px solid #f4c5dd;border-radius:12px;background:#fff0f8;color:#6b2950;min-height:44px;padding:7px 5px;font:15px 'Jua',system-ui,sans-serif;cursor:pointer}
.devAvatarList button:active{transform:scale(.97)}
.oneqRoomButtons.oneqInviteButtons{grid-template-columns:1fr}
@media(max-width:720px){.devAvatarPanel{top:calc(50px + env(safe-area-inset-top));right:8px}.devAvatarList button{min-height:48px}}

/* Ghost nickname hint: visible but never entered as the actual input text. */
.selectFoot #nickname::placeholder{color:#9e9aa4!important;opacity:.74!important;font-weight:400}


/* OneQYou chat-first mobile: 3D on top, persistent messenger below. */
@media (max-width:720px), (pointer:coarse) and (max-width:1024px){
 html.windychat-playing.oneq-chat-mode,html.windychat-playing.oneq-chat-mode body{overflow:hidden!important;overscroll-behavior:none}
 html.windychat-playing.oneq-chat-mode #scene{
  top:0!important;bottom:auto!important;left:0!important;right:0!important;
  height:calc(var(--oneq-view-height,100dvh) * .35)!important;
  overflow:hidden!important;background:#ffb3d9!important;
 }
 html.windychat-playing.oneq-chat-mode #scene canvas{width:100%!important;height:100%!important}
 html.windychat-playing.oneq-chat-mode #hud{
  top:0!important;bottom:auto!important;height:var(--oneq-view-height,100dvh)!important;
  overflow:hidden!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatPanel{
  display:flex!important;position:absolute!important;z-index:15!important;
  top:35%!important;bottom:0!important;left:0!important;right:0!important;
  width:100%!important;height:auto!important;max-height:none!important;
  border:0!important;border-top:1px solid #efc3d9!important;
  border-radius:18px 18px 0 0!important;
  background:#fff9fc!important;box-shadow:0 -5px 24px #52223f18!important;
  transform:none!important;backdrop-filter:none!important;
  pointer-events:auto!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatPanel:not(.open){display:flex!important}
 html.windychat-playing.oneq-chat-mode #hud .panelTop{padding:10px 16px!important;min-height:48px!important;flex:none!important;border-bottom:1px solid #f4e6ef}
 html.windychat-playing.oneq-chat-mode #hud .panelTop strong{font:19px 'Jua',system-ui,sans-serif;color:#60344d}
 html.windychat-playing.oneq-chat-mode #hud .panelTop small{font-size:11px}
 html.windychat-playing.oneq-chat-mode #hud #closeChat{display:grid!important;place-items:center}
 html.windychat-playing.oneq-chat-mode #hud .chatLog{flex:1 1 auto!important;min-height:0!important;padding:13px 14px!important;gap:11px!important;overscroll-behavior:contain}
 html.windychat-playing.oneq-chat-mode #hud .chatLine{max-width:85%;padding:10px 12px;font-size:14px;line-height:1.45}
 html.windychat-playing.oneq-chat-mode #hud .chatLine.mine{background:#ffe3f1}
 html.windychat-playing.oneq-chat-mode #hud .chatForm{
  flex:0 0 auto!important;position:relative!important;
  padding:10px 12px calc(11px + env(safe-area-inset-bottom,0px))!important;
  background:#fff9fc!important;gap:9px;align-items:center;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatForm input{
  min-width:0!important;min-height:46px!important;font-size:16px!important;
  border-radius:22px!important;background:#fff!important;
  border:1px solid #f3d9e7!important;padding:12px 16px!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatForm button{
  min-width:54px!important;min-height:46px!important;background:#f36bac!important;
  border-radius:22px!important;font-family:'Jua',system-ui,sans-serif;font-size:16px!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .bottomBar{
  z-index:10!important;top:calc(35% - 52px)!important;bottom:auto!important;
  left:auto!important;right:10px!important;flex-direction:row!important;
 }
 html.windychat-playing.oneq-chat-mode #hud #chatMobile{display:none!important}
 html.windychat-playing.oneq-chat-mode #hud .mobileMove{
  z-index:8!important;left:12px!important;top:calc(35% - 87px)!important;
  bottom:auto!important;transform:none!important;flex-direction:row!important;
 }
 html.windychat-playing.oneq-chat-mode #hud #joystick{width:66px!important;height:66px!important}
 html.windychat-playing.oneq-chat-mode #hud #joyNub{width:33px!important;height:33px!important}
 html.windychat-playing.oneq-chat-mode #hud .mobileActions{
  z-index:9!important;right:10px!important;top:calc(35% - 110px)!important;
  bottom:auto!important;gap:5px!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .mobileActions button{min-height:37px!important;width:63px!important;font-size:11px!important;padding:6px!important}
 html.windychat-playing.oneq-chat-mode #hud .topbar{z-index:11;top:calc(8px + env(safe-area-inset-top,0px));right:9px;left:9px}
 html.windychat-playing.oneq-chat-mode #hud .topActions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
 html.windychat-playing.oneq-chat-mode #hud .tinyChip{padding:7px 9px;font-size:10px;background:#fffc!important}
 html.windychat-playing.oneq-chat-mode #hud .adDemo{display:none!important}
 html.windychat-playing.oneq-chat-mode #hud .buildTools{top:calc(8px + env(safe-area-inset-top,0px))!important;left:8px!important;z-index:11}
 html.windychat-playing.oneq-chat-mode #hud .motionPanel{z-index:18;bottom:65%;max-height:35%;overflow:auto}
 html.windychat-playing.oneq-chat-mode #hud .devAvatarPanel{z-index:18;max-height:32%;overflow:auto}
 html.windychat-playing.oneq-chat-mode #hud .toast{top:13%;z-index:19}
}


/* OneQYou desktop: a dedicated 3D stage and a permanently docked chat sidebar. */
@media (min-width:1025px) and (pointer:fine){
 html.windychat-playing.oneq-chat-mode{--oneq-desktop-chat:clamp(350px,30vw,470px)}
 html.windychat-playing.oneq-chat-mode #scene{
  left:0!important;top:0!important;bottom:0!important;
  right:var(--oneq-desktop-chat)!important;
  width:calc(100vw - var(--oneq-desktop-chat))!important;
  overflow:hidden!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatPanel,
 html.windychat-playing.oneq-chat-mode #hud .chatPanel:not(.open){
  display:flex!important;position:absolute!important;z-index:8!important;
  top:0!important;bottom:0!important;right:0!important;left:auto!important;
  width:var(--oneq-desktop-chat)!important;height:100dvh!important;
  max-height:none!important;border:0!important;
  border-left:1px solid #f1d1e2!important;border-radius:0!important;
  background:#fffafd!important;box-shadow:-9px 0 35px #5a194221!important;
  backdrop-filter:none!important;pointer-events:auto!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatPanel .panelTop{
  min-height:90px;padding:24px 24px 18px;border-bottom:1px solid #f1e0ec;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatPanel .panelTop strong{
  font:25px 'Jua',system-ui,sans-serif;color:#63314d;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatPanel .panelTop small{
  font-size:12px;color:#a87c94;margin-top:5px;
 }
 html.windychat-playing.oneq-chat-mode #hud #closeChat{display:grid!important;place-items:center}
 html.windychat-playing.oneq-chat-mode #hud .chatLog{
  padding:24px 20px!important;gap:16px!important;min-height:0!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatLine{
  max-width:85%;padding:13px 16px;border-radius:19px 19px 19px 6px;
  font-size:15px;line-height:1.5;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatLine.mine{
  background:#ffe0f0;border-radius:19px 19px 6px 19px;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatForm{
  padding:14px 17px 21px!important;gap:10px;background:#fffafd;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatForm input{
  background:#fff!important;border:1px solid #f1d9e7!important;
  font-size:15px!important;border-radius:17px!important;padding:14px 16px!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .chatForm button{
  background:#ee69ac!important;border-radius:16px!important;
  min-height:47px;font:17px 'Jua',system-ui,sans-serif;
 }
 html.windychat-playing.oneq-chat-mode #hud .topbar{
  left:16px!important;right:calc(var(--oneq-desktop-chat) + 16px)!important;
  top:16px!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .adDemo{
  right:calc(var(--oneq-desktop-chat) + 16px)!important;
 }
 html.windychat-playing.oneq-chat-mode #hud .bottomBar{
  left:16px!important;right:auto!important;bottom:18px!important;
 }
 html.windychat-playing.oneq-chat-mode #hud #chatMobile{display:none!important}
 html.windychat-playing.oneq-chat-mode #hud .motionPanel{right:auto;left:16px;max-width:calc(100vw - var(--oneq-desktop-chat) - 32px)}
 html.windychat-playing.oneq-chat-mode #hud .toast{left:calc((100vw - var(--oneq-desktop-chat)) / 2)}
 html.windychat-playing.oneq-chat-mode #hud .devAvatarPanel{
  right:calc(var(--oneq-desktop-chat) + 16px);
 }
}
@media (min-width:721px) and (max-width:1024px) and (pointer:fine){
 html.windychat-playing.oneq-chat-mode{--oneq-desktop-chat:330px}
 html.windychat-playing.oneq-chat-mode #scene{right:var(--oneq-desktop-chat)!important;width:calc(100vw - var(--oneq-desktop-chat))!important}
 html.windychat-playing.oneq-chat-mode #hud .chatPanel{display:flex!important;right:0!important;top:0!important;bottom:0!important;width:var(--oneq-desktop-chat)!important;height:100dvh!important;border-radius:0!important;border:0!important;border-left:1px solid #f1d1e2!important}
 html.windychat-playing.oneq-chat-mode #hud #closeChat,html.windychat-playing.oneq-chat-mode #hud #chatMobile{display:none!important}
 html.windychat-playing.oneq-chat-mode #hud .topbar{right:calc(var(--oneq-desktop-chat) + 12px)!important}
 html.windychat-playing.oneq-chat-mode #hud .adDemo{right:calc(var(--oneq-desktop-chat) + 12px)!important}
}


/* Game is full screen until Chat is explicitly tapped. */
html.windychat-playing:not(.oneq-chat-mode) #scene{inset:0!important;width:100%!important;height:100%!important}
html.windychat-playing:not(.oneq-chat-mode) #hud .chatPanel{display:none!important}
html.windychat-playing.oneq-chat-mode #hud #closeChat{display:grid!important;place-items:center;cursor:pointer}
@media(max-width:720px),(pointer:coarse) and (max-width:1024px){
 html.windychat-playing:not(.oneq-chat-mode) #hud #chatMobile{display:inline-flex!important}
 html.windychat-playing.oneq-chat-mode #hud .chatPanel{top:35%!important}
}
@media(min-width:721px) and (pointer:fine){
 html.windychat-playing:not(.oneq-chat-mode) #hud #chatMobile{display:inline-flex!important}
}


/* OneQYou v1.0 welcome: soft animated beauty/gift motif, responsive hero and header. */
.selectScreen::before{
 content:"";position:absolute;z-index:1;top:0;left:0;right:0;height:100svh;
 background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22360%22%20height%3D%22300%22%20viewBox%3D%220%200%20360%20300%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%223.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cg%20transform%3D%22translate(27%2027)%20rotate(-14%2020%2020)%22%3E%3Crect%20x%3D%2212%22%20y%3D%2224%22%20width%3D%2220%22%20height%3D%2227%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M15%2024v-9l7-9%207%209v9M12%2038h20%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(135%2012)%20rotate(10%2028%2028)%22%3E%3Crect%20x%3D%227%22%20y%3D%2227%22%20width%3D%2247%22%20height%3D%2237%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M31%2027V13M17%2013h28v14H17zM23%2013V5h16v8%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(268%2034)%22%3E%3Cpath%20d%3D%22M9%2018c0-17%2021-19%2027-5%208-16%2031-9%2025%2011-3%2012-25%2026-25%2026S11%2031%209%2018Z%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(85%20119)%20rotate(13%2030%2020)%22%3E%3Crect%20x%3D%2213%22%20y%3D%2222%22%20width%3D%2245%22%20height%3D%2237%22%20rx%3D%224%22%2F%3E%3Cpath%20d%3D%22M35%2022V59M10%2022h51v-10H10zM35%2012C7%209%2020-10%2035%2012c16-22%2029-3%200%200%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(213%20134)%22%3E%3Cpath%20d%3D%22M7%2031c10-25%2043-25%2054%200-15%2017-40%2017-54%200ZM20%2024h1M48%2024h1M25%2043q11%207%2023-2%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(14%20225)%20rotate(8%2024%2024)%22%3E%3Cpath%20d%3D%22M14%2018c7-16%2017-7%2021-2%207-16%2027-6%2012%208l-12%2010-12-10C10%2042%204%2023%2014%2018Z%22%2F%3E%3Cpath%20d%3D%22M35%2034v17%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(133%20229)%20rotate(-9%2028%2025)%22%3E%3Cpath%20d%3D%22M17%2020h28v32H17zM12%2020h38v-9H12zM31%2020v32M31%2011C11%201%2014%2031%2031%2011c18-20%2021%202%200%200%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(267%20207)%20rotate(13%2022%2028)%22%3E%3Cpath%20d%3D%22M13%207h26v12H13zM11%2019h30v37H11zM17%207V1h18v6M20%2036h12%22%2F%3E%3C%2Fg%3E%0A%3C%2Fsvg%3E");background-size:360px 300px;background-repeat:repeat;
 opacity:.18;pointer-events:none;animation:oneqPatternDrift 85s linear infinite;
}
@keyframes oneqPatternDrift{from{background-position:0 0}to{background-position:360px 300px}}
@media(prefers-reduced-motion:reduce){.selectScreen::before{animation:none}}
.selectScreen .selectWrap{isolation:isolate}
.selectScreen .selectHeading{justify-content:flex-end!important;gap:16px;position:relative;z-index:8}
.selectScreen .selectHeading .verTag{font:600 16px 'Fredoka',system-ui,sans-serif!important;color:white!important;white-space:nowrap}
.selectScreen .selectHeading .selectLanguage{margin:0!important;display:flex;align-items:center;gap:7px;color:white!important;font-size:15px!important;z-index:auto}
.selectScreen .selectHeading .selectLanguage label{white-space:nowrap;font-size:15px}
.selectScreen .selectHeading .selectLanguage select{min-height:39px!important;padding:6px 25px 6px 10px;font-size:15px!important;border-radius:12px}
.selectScreen .selectIntro{position:absolute!important;top:clamp(205px,43svh,445px);left:12px;right:12px;width:auto!important;max-width:none!important;margin:0!important;text-align:center;z-index:5}
.selectScreen .selectIntro h1,.selectScreen .selectIntro p{font:400 clamp(25px,3vw,38px)/1.18 'Jua',system-ui,sans-serif!important;color:white!important;letter-spacing:0!important;margin:0 0 8px!important}
.selectScreen .oneqHeroStage{height:min(69svh,720px)!important}
.selectScreen .oneqHeroStage .oneqWelcomeHero{height:120%!important;max-height:none!important;max-width:120%!important}
@media(max-width:720px){
 .selectScreen .selectHeading{gap:10px}
 .selectScreen .selectHeading .verTag{font-size:13px!important}
 .selectScreen .selectHeading .selectLanguage{gap:4px;font-size:13px!important}
 .selectScreen .selectHeading .selectLanguage label{font-size:13px}
 .selectScreen .selectHeading .selectLanguage select{font-size:13px!important;min-height:35px!important;padding:5px 18px 5px 6px;max-width:125px}
 .selectScreen .selectIntro{top:clamp(175px,42svh,350px)}
 .selectScreen .selectIntro h1,.selectScreen .selectIntro p{font-size:clamp(21px,5.2vw,29px)!important}
 .selectScreen .oneqHeroStage{height:min(62svh,570px)!important}
 .selectScreen .oneqHeroStage .oneqWelcomeHero{height:116%!important}
}
@media(max-height:610px){.selectScreen .selectIntro{top:39svh}.selectScreen .oneqHeroStage{height:57svh!important}}

/* V1.0 follow-up: keep Windy's ribbon fully visible and center two lines. */
.selectScreen .oneqHeroStage{overflow:visible!important;height:min(65svh,680px)!important;align-items:flex-start!important}
.selectScreen .oneqHeroStage .oneqWelcomeHero{
 height:100%!important;width:auto!important;max-height:100%!important;max-width:100%!important;
 object-fit:contain!important;object-position:center top!important;transform:none!important;
}
.selectScreen .selectIntro{top:clamp(230px,47svh,480px)!important;text-align:center!important;z-index:5}
.selectScreen .selectIntro h1,.selectScreen .selectIntro p{display:block;text-align:center!important;white-space:normal}
@media(max-width:720px){
 .selectScreen .oneqHeroStage{height:min(59svh,540px)!important}
 .selectScreen .selectIntro{top:clamp(195px,45svh,380px)!important}
}
@media(max-height:610px){
 .selectScreen .oneqHeroStage{height:52svh!important}
 .selectScreen .selectIntro{top:42svh!important}
}

/* v1.0.2: reserve clear space above the ribbon below the version/language controls. */
.selectScreen .selectHeading{
 position:absolute!important;top:calc(12px + env(safe-area-inset-top,0px));right:clamp(12px,3vw,36px);
 width:auto!important;min-height:42px;z-index:12!important;
}
.selectScreen .oneqHeroStage{
 box-sizing:border-box!important;padding-top:clamp(58px,9svh,92px)!important;
 height:min(69svh,720px)!important;overflow:visible!important;
}
.selectScreen .oneqHeroStage .oneqWelcomeHero{
 height:100%!important;max-height:100%!important;width:auto!important;
 max-width:100%!important;object-fit:contain!important;object-position:center top!important;
}
@media(max-width:720px){
 .selectScreen .selectHeading{top:calc(9px + env(safe-area-inset-top,0px));right:12px}
 .selectScreen .oneqHeroStage{padding-top:clamp(52px,8svh,76px)!important;height:min(63svh,590px)!important}
}
@media(max-height:610px){
 .selectScreen .oneqHeroStage{padding-top:48px!important;height:57svh!important}
}


/* V1.0.3: force two lines on desktop and add lively beauty-pattern motion. */
.selectScreen .selectIntro{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important}
.selectScreen .selectIntro h1,.selectScreen .selectIntro p{
 display:block!important;flex:none!important;width:100%!important;
 margin:0!important;clear:both!important;text-align:center!important;
}
.selectScreen::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22420%22%20height%3D%22340%22%20viewBox%3D%220%200%20420%20340%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cg%20transform%3D%22translate(20%2018)%20rotate(-12%2020%2022)%22%3E%3Cpath%20d%3D%22M14%2025h24v35H14zM19%2025v-12l7-10%208%2010v12M14%2042h24%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(132%2014)%22%3E%3Crect%20x%3D%2210%22%20y%3D%2220%22%20width%3D%2243%22%20height%3D%2246%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M20%2020V9h22v11M18%2045h27M31%209V2%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(274%2031)%22%3E%3Cpath%20d%3D%22M7%2019c0-15%2019-20%2029-5%209-15%2029-10%2029%205%200%2015-29%2034-29%2034S7%2034%207%2019Z%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(345%20108)%20rotate(12%2020%2020)%22%3E%3Cpath%20d%3D%22M9%2010h34v39H9zM15%2010V2h22v8M20%2021h12M20%2030h12%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(56%20114)%20rotate(8%2023%2022)%22%3E%3Cpath%20d%3D%22M10%2017h45v40H10zM6%2017h53V6H6zM32%2017v40M32%206c-19-19-27%203%200%200%2018-19%2027%202%200%200%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(192%20111)%20rotate(-11%2030%2034)%22%3E%3Cpath%20d%3D%22M13%2013h34l7%2013-7%2034H13L6%2026zM13%2013l17%2014%2017-14M18%2035h24M18%2044h24%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(291%20211)%20rotate(14%2024%2023)%22%3E%3Cpath%20d%3D%22M20%2010h25v9H20zM25%2019h15v38H25zM19%2057h27M24%2031h17%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(79%20245)%20rotate(-9%2026%2028)%22%3E%3Cpath%20d%3D%22M25%2012L11%2058M25%2012l11%203M11%2058l-7%208M25%2012l7-7M18%2019l16%206%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(179%20245)%20rotate(12%2025%2025)%22%3E%3Cpath%20d%3D%22M11%2013h40v44H11zM11%2026h40M19%2013V4h24v9M19%2037h24%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(367%20257)%22%3E%3Cpath%20d%3D%22M7%2012q10-11%2019%200M40%2012q10-11%2019%200M20%2033q14%2013%2028-1%22%2F%3E%3C%2Fg%3E%0A%3C%2Fsvg%3E")!important;background-size:420px 340px!important;animation:oneqPatternFast 28s linear infinite!important;}
@keyframes oneqPatternFast{from{background-position:0 0}to{background-position:420px 340px}}
@media(prefers-reduced-motion:reduce){.selectScreen::before{animation:none!important}}


/* Mobile chat keyboard: preserve the live 3D view and show the two newest messages. */
@media(max-width:720px),(pointer:coarse) and (max-width:1024px){
 html.windychat-playing.oneq-chat-mode #scene{
   top:var(--oneq-visual-top,0px)!important;
   height:calc(var(--oneq-view-height,100dvh) * .35)!important;
 }
 html.windychat-playing.oneq-chat-mode #hud{
   top:var(--oneq-visual-top,0px)!important;
   height:var(--oneq-view-height,100dvh)!important;
 }
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #scene{
   height:calc(var(--oneq-view-height,100dvh) * .50)!important;
 }
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .chatPanel,
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .chatPanel:not(.open){
   top:50%!important;bottom:0!important;display:flex!important;
 }
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .panelTop{display:none!important}
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .chatLog{
   flex:1 1 auto!important;min-height:0!important;overflow:auto!important;
   padding:6px 12px!important;gap:5px!important;justify-content:flex-end;
 }
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .chatLog .chatLine{
   display:none!important;padding:5px 9px!important;font-size:12px!important;
   line-height:1.3!important;
 }
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .chatLog .chatLine:nth-last-child(-n+2){
   display:block!important;
 }
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .chatLog .systemMsg{display:none!important}
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .chatForm{
   padding:5px 9px calc(5px + env(safe-area-inset-bottom,0px))!important;
 }
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .chatForm input,
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .chatForm button{
   min-height:39px!important;
 }
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .bottomBar,
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .mobileMove,
 html.windychat-playing.oneq-chat-mode.oneq-keyboard-open #hud .mobileActions{
   display:none!important;
 }
}

/* Three clear entry choices, with channel creation explicitly marked as upcoming. */
.selectScreen .oneqRoomButtons{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;width:100%}
.selectScreen .oneqEntryOption{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:6px}
.selectScreen .oneqEntryOption button{width:100%;min-height:56px}
.selectScreen .oneqEntryOption small{font:12px/1.35 'Jua',system-ui,sans-serif;color:#fff;text-shadow:0 1px 5px #9c326b;text-align:center}
.selectScreen .oneqChannelButton{background:#fff0f8;color:#ac3175;border:2px solid #fff;border-radius:18px;font:19px 'Jua',system-ui,sans-serif}
.selectScreen .oneqChannelInfo{padding:14px;border:1px solid #fff8;background:#fffafc;color:#743456;border-radius:17px;text-align:center}
.selectScreen .oneqChannelInfo strong{font-size:19px}
.selectScreen .oneqChannelInfo p{margin:7px 0 12px}
.selectScreen .oneqChannelInfo button{border:none;border-radius:12px;background:#e65aa2;color:white;padding:9px 24px}
.selectScreen .oneqRoomButtons.oneqInviteButtons{grid-template-columns:1fr!important}
.selectScreen .oneqRoomButtons.oneqInviteButtons .oneqEntryOption:not(:first-child){display:none!important}
@media(max-width:720px){.selectScreen .oneqRoomButtons{grid-template-columns:1fr!important;gap:7px!important}
 .selectScreen .oneqEntryOption{gap:2px}
 .selectScreen .oneqEntryOption button{min-height:42px!important}
 .selectScreen .oneqEntryOption small{font-size:11px}
}

/* Equal-sized entry buttons, including two-line titles. */
.selectScreen .oneqRoomButtons{align-items:stretch!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.selectScreen .oneqEntryOption{min-width:0!important;display:flex!important;flex-direction:column!important}
.selectScreen .oneqEntryOption button,
.selectScreen .oneqEntryOption .oneqPlayButton,
.selectScreen .oneqEntryOption .oneqCreateButton,
.selectScreen .oneqEntryOption .oneqChannelButton{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;
 justify-content:center!important;width:100%!important;height:68px!important;min-height:68px!important;
 max-height:68px!important;margin:0!important;padding:8px 12px!important;
 font:400 19px/1.25 'Jua',system-ui,sans-serif!important;
 white-space:normal!important;overflow-wrap:keep-all!important;
 word-break:keep-all!important;text-align:center!important;border-radius:18px!important;
}
.selectScreen .oneqEntryOption small{display:block!important;min-height:36px!important;font-size:12px!important;line-height:1.35!important}
@media(max-width:720px){
 .selectScreen .oneqRoomButtons{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 .selectScreen .oneqEntryOption button,
 .selectScreen .oneqEntryOption .oneqPlayButton,
 .selectScreen .oneqEntryOption .oneqCreateButton,
 .selectScreen .oneqEntryOption .oneqChannelButton{
  height:66px!important;min-height:66px!important;max-height:66px!important;
  padding:7px 5px!important;font-size:clamp(13px,3.65vw,17px)!important;line-height:1.2!important;
 }
 .selectScreen .oneqEntryOption small{font-size:10px!important;min-height:41px!important}
}

/* OneQYou lifestyle: clean uniform pink vector pictograms. */
.oneqGoodsCard{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:19px 9px 17px!important;gap:5px!important;box-shadow:none!important}
.oneqMerchIcon{width:82px!important;height:82px!important;border-radius:24px!important;margin:0 auto 6px!important;background:#fff0f7!important;color:#e65a9c!important}
.oneqMerchIcon svg{width:49px!important;height:49px!important;stroke:currentColor!important}
.oneqGoodsCard strong{font:400 20px/1.25 'Jua',system-ui,sans-serif!important;color:#803d66!important;margin:0!important;text-align:center!important}
.oneqGoodsCategory{font:400 12px/1.3 'Jua',system-ui,sans-serif!important;color:#ad7e99!important;text-align:center!important}
@media(max-width:720px){.oneqGoodsCard{padding:13px 4px!important;gap:3px!important}.oneqMerchIcon{width:62px!important;height:62px!important;border-radius:18px!important}.oneqMerchIcon svg{width:39px!important;height:39px!important}.oneqGoodsCard strong{font-size:16px!important}.oneqGoodsCategory{font-size:10px!important}}

/* Keep the channel information sentences on separate lines. */
.selectScreen .oneqChannelInfo p{white-space:pre-line!important}

/* Random chat is for chatting, not editing shared terrain. */
html.windychat-playing.oneq-room-readonly #landTool,
html.windychat-playing.oneq-room-readonly #objectTool,
html.windychat-playing.oneq-room-readonly #landDirections,
html.windychat-playing.oneq-room-readonly #landHint,
html.windychat-playing.oneq-room-readonly .buildTools{display:none!important}

.selectScreen .oneqEntryOption small{white-space:pre-line!important;word-break:keep-all!important}


/* Entry selection: text-first, fully clickable cards that work across languages.
   Titles may use up to three lines; descriptions use their own two-line area. */
.selectScreen .oneqRoomButtons:not(.oneqInviteButtons){
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;gap:clamp(6px,1.5vw,12px)!important;
}
.selectScreen .oneqEntryOption{
  box-sizing:border-box!important;min-width:0!important;min-height:126px!important;
  padding:13px 8px 11px!important;display:flex!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:center!important;gap:7px!important;
  border:1px solid rgba(255,255,255,.77)!important;border-radius:18px!important;
  background:rgba(255,255,255,.15)!important;
  box-shadow:0 3px 10px rgba(112,32,75,.08)!important;
  cursor:pointer!important;transition:background .15s ease,transform .15s ease;
}
.selectScreen .oneqEntryOption:hover,.selectScreen .oneqEntryOption:focus-within{
  background:rgba(255,255,255,.25)!important;
}
.selectScreen .oneqEntryOption:active{transform:scale(.985)}
.selectScreen .oneqEntryOption button,
.selectScreen .oneqEntryOption .oneqPlayButton,
.selectScreen .oneqEntryOption .oneqCreateButton,
.selectScreen .oneqEntryOption .oneqChannelButton{
  all:unset!important;box-sizing:border-box!important;display:-webkit-box!important;
  width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;
  max-height:none!important;padding:0!important;margin:0!important;
  font:400 clamp(14px,1.8vw,21px)/1.22 'Jua',system-ui,sans-serif!important;
  text-align:center!important;color:#fff!important;text-shadow:0 1px 5px rgba(126,24,74,.6)!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
  -webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;
  overflow:hidden!important;cursor:pointer!important;
}
.selectScreen .oneqEntryOption button:focus-visible{
 outline:2px solid #fff!important;outline-offset:3px!important;border-radius:4px!important;
}
.selectScreen .oneqEntryOption button:disabled{opacity:.65!important;cursor:progress!important}
.selectScreen .oneqEntryOption small{
  display:-webkit-box!important;min-width:0!important;height:auto!important;
  min-height:2.7em!important;max-height:2.7em!important;
  margin:0!important;padding:0!important;
  font:400 clamp(10px,1vw,12px)/1.35 'Jua',system-ui,sans-serif!important;
  color:#fff!important;text-align:center!important;
  text-shadow:0 1px 5px rgba(126,24,74,.55)!important;
  white-space:pre-line!important;overflow-wrap:anywhere!important;word-break:normal!important;
  -webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;
}
@media(max-width:720px){
 .selectScreen .oneqEntryOption{
   min-height:119px!important;padding:11px 5px 9px!important;gap:6px!important;
 }
 .selectScreen .oneqEntryOption button,
 .selectScreen .oneqEntryOption .oneqPlayButton,
 .selectScreen .oneqEntryOption .oneqCreateButton,
 .selectScreen .oneqEntryOption .oneqChannelButton{
   font-size:clamp(12px,3.5vw,17px)!important;line-height:1.18!important;
 }
 .selectScreen .oneqEntryOption small{font-size:clamp(9px,2.6vw,11px)!important}
}

/* Keep the Korean channel action in two centered lines on all viewport widths. */
.selectScreen #createChannel{white-space:pre-line!important;text-align:center!important;line-height:1.18!important;}

/* Lightweight overhead names: soft grey text, no speech-bubble-like container. */
#hud .nameLabel,#hud .nameLabel.peerLabel{background:transparent!important;border:0!important;box-shadow:none!important;color:#85858d!important;font-size:11px!important;font-weight:600!important;line-height:1.2!important;letter-spacing:.01em!important;padding:0 2px!important;border-radius:0!important;text-shadow:0 1px 2px #fff9!important;transition:opacity .22s ease!important;pointer-events:none!important;}

/* Room privacy choice: clean dark text with no white glow or lettering shadow. */
.selectScreen #oneqRoomChoice>strong,.selectScreen #oneqRoomChoice>label,.selectScreen #oneqRoomChoice>label span{color:#3d2c38!important;text-shadow:none!important;-webkit-text-stroke:0!important;filter:none!important;}

/* The entire banner is a rounded image viewport (not an unrounded contained image). */
#hud .adDemo{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;overflow:hidden!important;border-radius:14px!important;clip-path:inset(0 round 14px);isolation:isolate;pointer-events:none!important}
#hud .adDemo img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;border-radius:inherit!important}
@media(max-width:720px){#hud .adDemo{border-radius:11px!important;clip-path:inset(0 round 11px)}}


/* Compact toy-like icon controls shared by desktop and touch, without text labels. */
#hud .roomPresence{display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:auto}
#hud .roomPresence button{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:9px!important;border-radius:50%!important;background:#fffefef2!important;color:#5f4659!important;box-shadow:0 3px 12px #0002!important;border:1px solid #efdeeb!important}
#hud .roomPresence button.hidden{display:none!important}
#hud .roomPresence svg,#hud #chatMobile svg,#hud #runToggle svg{width:24px!important;height:24px!important;display:block!important;flex:none!important}
#hud .roomPresence .roomCountText{font:600 12px/1.1 system-ui,sans-serif;color:#665e65;text-shadow:0 1px 2px #fff9;font-variant-numeric:tabular-nums;white-space:nowrap}
#hud #leaveRoom{margin-top:4px;color:#766773!important}
#hud #chatMobile,#hud #runToggle{display:grid!important;place-items:center!important;width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;padding:12px!important;border-radius:50%!important;border:1px solid #efdce8!important;background:#fffefef2!important;color:#5f4659!important;box-shadow:0 4px 14px #0002!important;touch-action:manipulation}
#hud #runToggle[aria-pressed="true"]{background:#e84f9d!important;color:#fff!important;border-color:#e84f9d!important}
#hud #chatMobile.hidden,#hud #runToggle.hidden{display:none!important}
@media(max-width:720px),(pointer:coarse){
 #hud .mobileActions #runToggle{width:54px!important;height:54px!important;min-height:54px!important;padding:12px!important}
 #hud .bottomBar #chatMobile{width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important;padding:12px!important}
 html.windychat-playing.oneq-chat-mode #hud .mobileActions #runToggle{width:46px!important;height:46px!important;min-height:46px!important;padding:10px!important}
 html.windychat-playing.oneq-chat-mode #hud .mobileActions #runToggle svg{width:22px!important;height:22px!important}
}
#hud .roomEventNotice{pointer-events:none;position:absolute;z-index:15;top:clamp(62px,11vh,114px);left:50%;transform:translate(-50%,-9px);padding:9px 16px;border-radius:18px;background:#fffdfde8;color:#6f5a69;font-size:13px;font-weight:600;box-shadow:0 4px 18px #0001;opacity:0;transition:opacity .25s ease,transform .25s ease;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}
#hud .roomEventNotice.show{opacity:1;transform:translate(-50%,0)}
.oneqInstallNotice{display:flex;align-items:center;gap:8px;background:#fff9;border:1px solid #efdae6;border-radius:15px;padding:9px 12px;margin:0 0 12px;color:#563347;box-shadow:0 4px 14px #0001;font-size:12px;line-height:1.4}
.oneqInstallNotice span{flex:1;min-width:0}
.oneqInstallNotice button{border:0;border-radius:10px;background:#f5dbe8;color:#713e59;padding:8px 10px;white-space:nowrap;font:600 12px system-ui,sans-serif;cursor:pointer}
.oneqInstallNotice #oneqInstallClose{background:transparent;font-size:22px;padding:2px 5px;color:#85707d}
@media(max-width:480px){.oneqInstallNotice{font-size:11px;gap:5px;padding:7px 9px}.oneqInstallNotice button{font-size:11px;padding:7px}}

/* Modal room creation: keep the welcome page fixed instead of growing vertically. */
body #oneqRoomModal{position:fixed!important;inset:0!important;z-index:200!important;display:flex;align-items:safe center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));background:rgba(31,18,30,.45);backdrop-filter:blur(5px);overflow-y:auto}
body #oneqRoomModal.hidden{display:none!important}
body #oneqRoomModal .oneqRoomModalCard{position:relative;width:min(440px,100%);max-height:min(calc(100dvh - 32px),680px);overflow-y:auto;overscroll-behavior:contain;border-radius:24px;padding:25px 22px 22px;background:#fffdfd;box-shadow:0 24px 70px #39243c55;color:#302831;text-align:left}
body #oneqRoomModal .oneqRoomModalCard h2{margin:0 42px 5px 0;font-size:23px;line-height:1.25;color:#302831;text-shadow:none}
body #oneqRoomModal .oneqRoomModalCard>p{font-size:13px;color:#756c75;margin:0 0 16px;text-shadow:none}
body #oneqRoomModal .oneqRoomModalClose{position:absolute;right:15px;top:14px;border:0;background:#f5edf1;color:#665866;border-radius:50%;width:36px;height:36px;font-size:25px;line-height:1}
body #oneqRoomModal #oneqRoomChoice{border-radius:16px;padding:14px;background:#faf5f8;box-shadow:none!important;border:1px solid #eee0ea;display:flex;gap:8px}
body #oneqRoomModal #oneqRoomChoice>strong{font-size:15px;color:#372b35;text-shadow:none}
body #oneqRoomModal #oneqRoomChoice>label{display:flex;align-items:center;gap:7px;font-size:13px;color:#453a44;text-shadow:none}
body #oneqRoomModal .oneqRoomHelp{font-size:11px!important;color:#7d727c!important;margin:4px 0 0!important;line-height:1.5}
body #oneqRoomModal .oneqMemberChoice{display:flex;flex-direction:column;gap:7px;margin-top:12px;border:1px solid #eedce7;padding:14px;border-radius:16px}
body #oneqRoomModal .oneqMemberChoice strong{font-size:16px;color:#403140}
body #oneqRoomModal .oneqMemberChoice small{font-size:12px;color:#736573;line-height:1.55}
body #oneqRoomModal .oneqMemberChoice button{border:0;border-radius:12px;padding:11px;background:#f0e8ee;color:#7a6977;font-weight:700}
@media(max-width:480px){body #oneqRoomModal .oneqRoomModalCard{padding:21px 17px}body #oneqRoomModal .oneqRoomModalCard h2{font-size:21px}}

/* Room entry failure: separate compact dialog; the create-room modal stays underneath. */
body #oneqRoomErrorDialog{position:fixed;inset:0;z-index:250;display:flex;align-items:safe center;justify-content:center;padding:16px;background:rgba(27,18,29,.55);backdrop-filter:blur(5px)}
body #oneqRoomErrorDialog.hidden{display:none!important}
body #oneqRoomErrorDialog .oneqRoomErrorCard{width:min(370px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;background:#fff;border-radius:22px;padding:25px 22px;color:#352937;box-shadow:0 20px 60px #24152855;text-align:center}
body #oneqRoomErrorDialog h2{font-size:20px;line-height:1.35;margin:0 0 10px;color:#332a36}
body #oneqRoomErrorDialog p{font-size:13px;line-height:1.55;color:#716775;margin:0 0 20px}
body #oneqRoomErrorDialog .oneqRoomErrorActions{display:flex;gap:9px}
body #oneqRoomErrorDialog button{flex:1;min-height:42px;border:0;border-radius:12px;font-weight:700;background:#f3e9f0;color:#554056}
body #oneqRoomErrorDialog #oneqRoomErrorRetry{background:#e74b9e;color:white}

/* Installation guide occupies its own row BELOW language/version controls.
   Keep it out of the welcome hero's absolute positioning on narrow screens. */
.selectScreen .oneqInstallNotice{
 position:relative!important;z-index:9!important;
 order:0;flex:0 0 auto;align-self:center;
 width:min(560px,100%)!important;max-width:100%;
 margin:10px auto 0!important;
 box-sizing:border-box;
}
.selectScreen .selectHeading{flex:0 0 auto;z-index:10!important}
@media(max-width:720px){
 .selectScreen .oneqInstallNotice{
  margin:12px auto 0!important;
  width:calc(100% - 4px)!important;
  min-height:46px;
  padding:8px 10px;
 }
 .selectScreen .oneqInstallNotice span{font-size:11px;line-height:1.35}
 .selectScreen .oneqInstallNotice button{flex:none}
}

/* Welcome header and install tip occupy independent, non-overlapping lanes. */
.selectScreen .oneqInstallNotice:not(.hidden){
 position:relative!important;
 align-self:flex-start!important;
 width:min(510px,calc(100% - 390px))!important;
 max-width:calc(100% - 390px)!important;
 margin:10px 0 0!important;
 min-height:52px;
 z-index:9!important;
}
.selectScreen .selectHeading{position:absolute!important;top:calc(12px + env(safe-area-inset-top,0px))!important;right:clamp(12px,3vw,36px)!important;z-index:12!important}
@media(max-width:850px){
 .selectScreen .oneqInstallNotice:not(.hidden){
  align-self:center!important;width:calc(100% - 8px)!important;max-width:calc(100% - 8px)!important;
  margin:65px auto 0!important;min-height:44px;
 }
 .selectScreen .oneqInstallNotice span{font-size:11px}
}

/* Member nickname and handle controls inside the standalone dialog. */
body #oneqRoomModal .oneqProfileSetup,
body #oneqRoomModal .oneqNicknameEdit{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-top:1px solid #eee4ea}
body #oneqRoomModal .oneqProfileSetup.hidden,
body #oneqRoomModal .oneqNicknameEdit.hidden{display:none!important}
body #oneqRoomModal .oneqProfileSetup label,
body #oneqRoomModal .oneqNicknameEdit label{font-weight:700;color:#403140}
body #oneqRoomModal .oneqProfileRow{display:flex;gap:6px;align-items:center;min-width:0}
body #oneqRoomModal .oneqProfileRow input{flex:1;min-width:0;padding:10px;border:1px solid #e5d3df;border-radius:10px;background:white;color:#352735}
body #oneqRoomModal .oneqProfileRow button{flex:none;padding:10px 9px;border:0;border-radius:10px;background:#573d54;color:white}
body #oneqRoomModal .oneqProfileRow button:disabled{opacity:.4}
body #oneqRoomModal .oneqProfileSaved{font-size:12px;word-break:break-all;color:#55424e}
body #oneqRoomModal #oneqMyRoomEnter{background:#e64b9e;color:white}
@media(max-width:440px){body #oneqRoomModal .oneqProfileRow button{font-size:11px;padding:9px 7px}}

/* Member room button two-line label once the permanent room exists. */
.selectScreen #createRoom{white-space:pre-line!important;text-align:center!important;line-height:1.16!important}

/* First-time personal room: show only the one-time member identity setup.
   Temporary chat creation remains available to guests through its own flow. */
.oneqRoomModal.oneq-personal-setup .oneqRoomChoice{display:none!important}
.oneqRoomModal.oneq-personal-setup .oneqMemberChoice>strong,
.oneqRoomModal.oneq-personal-setup .oneqMemberChoice>small:first-of-type,
.oneqRoomModal.oneq-personal-setup #oneqGoogleLogin,
.oneqRoomModal.oneq-personal-setup #oneqGoogleLogout{display:none!important}
.oneqRoomModal.oneq-personal-setup .oneqMemberChoice{border:0!important;padding:0!important;background:transparent!important}
.oneqRoomModal.oneq-personal-setup #oneqMemberStatus{margin:0 0 10px}

/* Personal room save affordance and dedicated leave dialog. */
#oneqRoomSaveControls{display:flex;align-items:center;gap:7px;padding:3px 5px;border-radius:12px;background:#fffefef0;color:#403643;border:1px solid #eee3eb;max-width:min(47vw,270px)}
#oneqRoomSaveControls.hidden{display:none!important}
#oneqRoomSaveStatus{font-size:11px;max-width:145px;line-height:1.25;overflow-wrap:anywhere}
#oneqRoomSaveStatus[data-state="error"]{color:#b2234b}
#oneqRoomSaveControls button{border:0;border-radius:9px;background:#53354d;color:white;font-size:12px;padding:7px 10px;font-weight:700;white-space:nowrap}
#oneqRoomSaveControls button:disabled{opacity:.5}
.oneqLeaveDialog{position:fixed;inset:0;z-index:10020;display:flex;align-items:center;justify-content:center;background:#0008;padding:18px}
.oneqLeaveDialog.hidden{display:none!important}
.oneqLeaveCard{width:min(390px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;border-radius:19px;background:#fff;color:#29232b;padding:24px;box-shadow:0 20px 80px #0003}
.oneqLeaveCard h2{font-size:19px;margin:0 0 12px}
.oneqLeaveCard p{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 18px}
.oneqLeaveActions{display:flex;gap:9px}
.oneqLeaveActions button{flex:1;min-width:0;border:0;border-radius:12px;padding:12px 9px;font-weight:700;background:#efe9ef;color:#352836}
.oneqLeaveActions #oneqLeaveConfirm{background:#58364e;color:white}
@media(max-width:720px){#oneqRoomSaveControls{max-width:45vw;padding:2px 4px}#oneqRoomSaveStatus{font-size:10px;max-width:80px}#oneqRoomSaveControls button{padding:6px 7px;font-size:11px}}

/* Mobile welcome: one-screen portrait layout. Keep the character large, place
   the tagline high enough to leave the nickname and all three buttons visible. */
@media(max-width:720px){
 .selectScreen{overflow-y:auto!important;-webkit-overflow-scrolling:touch}
 .selectScreen .selectWrap{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:flex-start!important;gap:0!important;
  height:100svh!important;height:100dvh!important;min-height:0!important;
  overflow:visible!important;
  padding:calc(9px + env(safe-area-inset-top,0px)) 12px calc(9px + env(safe-area-inset-bottom,0px))!important;
 }
 .selectScreen .oneqHeroStage{
  position:relative!important;order:1!important;flex:1 1 auto!important;
  width:100%!important;min-height:175px!important;
  height:auto!important;max-height:none!important;
  padding-top:12px!important;margin:0 auto!important;
  overflow:hidden!important;align-items:center!important;justify-content:center!important;
 }
 .selectScreen .oneqHeroStage .oneqWelcomeHero{
  display:block!important;width:auto!important;height:100%!important;max-height:100%!important;
  max-width:100%!important;object-fit:contain!important;object-position:center center!important;
  transform:none!important;margin:0 auto!important;
 }
 .selectScreen .selectIntro{
  order:2!important;position:relative!important;top:auto!important;left:auto!important;right:auto!important;
  z-index:5!important;flex:none!important;width:100%!important;max-width:100%!important;
  padding:0 6px!important;margin:0 auto 8px!important;transform:none!important;
 }
 .selectScreen .selectIntro h1{font-size:clamp(24px,6.2vw,32px)!important;line-height:1.12!important}
 .selectScreen .selectIntro p{font-size:clamp(16px,4.3vw,21px)!important;line-height:1.12!important}
 .selectScreen .selectFoot{
  order:3!important;position:relative!important;flex:none!important;
  width:min(365px,100%)!important;margin:0 auto!important;
  padding:0 5px!important;transform:none!important;gap:5px!important;
 }
 .selectScreen .selectFoot label{font-size:15px!important;line-height:1.2!important}
 .selectScreen .selectFoot input{min-height:42px!important;height:42px!important}
 .selectScreen .oneqRoomButtons button{min-height:66px!important}
 .selectScreen .oneqEntryOption small{font-size:10px!important;line-height:1.1!important}
 .selectScreen .selectFoot .oneqRoomButtons{margin-bottom:0!important}
}
@media(max-width:720px) and (max-height:690px){
 .selectScreen .selectWrap{height:auto!important;min-height:100svh!important;min-height:100dvh!important}
 .selectScreen .oneqHeroStage{flex:none!important;height:clamp(205px,39svh,310px)!important;min-height:205px!important}
 .selectScreen .oneqRoomButtons button{min-height:56px!important}
}

/* Keep Windy's full hair and bow visible in the compact mobile welcome stage.
   Top anchoring prevents the art from being vertically cropped as Safari changes viewport height. */
@media(max-width:720px){
 .selectScreen .oneqHeroStage{
  align-items:flex-start!important;
  justify-content:center!important;
  padding-top:clamp(10px,2svh,20px)!important;
 }
 .selectScreen .oneqHeroStage .oneqWelcomeHero{
  position:relative!important;
  inset:auto!important;
  align-self:flex-start!important;
  flex-shrink:1!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center top!important;
  transform:none!important;
 }
}

/* Invitation landing is a separate, simple flow: nickname -> join.
   Leave the ordinary three-button welcome layout untouched. */
.selectScreen.oneq-invite-entry .oneqRoomButtons{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%!important}
.selectScreen.oneq-invite-entry .oneqRoomButtons .oneqEntryOption:not(:first-child){display:none!important}
.selectScreen.oneq-invite-entry .oneqRoomButtons .oneqEntryOption:first-child{display:block!important;width:100%!important;max-width:none!important;flex:1 1 auto!important}
.selectScreen.oneq-invite-entry #enterWorld{display:block!important;width:100%!important;min-height:54px!important;white-space:normal!important;font-size:20px!important}
.selectScreen.oneq-invite-entry .oneqEntryOption small{display:none!important}
.selectScreen.oneq-invite-entry .oneqInstallNotice{display:none!important}
.selectScreen.oneq-invite-entry .selectFoot{margin-bottom:clamp(10px,2svh,22px)!important}
.selectScreen.oneq-invite-entry .oneqEntryNotice{min-height:1.4em!important}

/* Mobile character must always be fully visible from ribbon to toes.
   Fit the complete image inside the existing stage; do not scale outside its bounds. */
@media(max-width:720px){
 .selectScreen .oneqHeroStage{overflow:visible!important}
 .selectScreen .oneqHeroStage .oneqWelcomeHero{
  transform:none!important;
  transform-origin:center top!important;
  width:auto!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center center!important;
  -webkit-mask-image:none!important;mask-image:none!important;
 }
}

/* ORIGINAL dense beauty-pattern artwork, not the added eight icons.
 Two differently sized tiled layers move quickly in separate directions. */
.selectScreen::before{
 background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22420%22%20height%3D%22340%22%20viewBox%3D%220%200%20420%20340%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cg%20transform%3D%22translate(20%2018)%20rotate(-12%2020%2022)%22%3E%3Cpath%20d%3D%22M14%2025h24v35H14zM19%2025v-12l7-10%208%2010v12M14%2042h24%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(132%2014)%22%3E%3Crect%20x%3D%2210%22%20y%3D%2220%22%20width%3D%2243%22%20height%3D%2246%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M20%2020V9h22v11M18%2045h27M31%209V2%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(274%2031)%22%3E%3Cpath%20d%3D%22M7%2019c0-15%2019-20%2029-5%209-15%2029-10%2029%205%200%2015-29%2034-29%2034S7%2034%207%2019Z%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(345%20108)%20rotate(12%2020%2020)%22%3E%3Cpath%20d%3D%22M9%2010h34v39H9zM15%2010V2h22v8M20%2021h12M20%2030h12%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(56%20114)%20rotate(8%2023%2022)%22%3E%3Cpath%20d%3D%22M10%2017h45v40H10zM6%2017h53V6H6zM32%2017v40M32%206c-19-19-27%203%200%200%2018-19%2027%202%200%200%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(192%20111)%20rotate(-11%2030%2034)%22%3E%3Cpath%20d%3D%22M13%2013h34l7%2013-7%2034H13L6%2026zM13%2013l17%2014%2017-14M18%2035h24M18%2044h24%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(291%20211)%20rotate(14%2024%2023)%22%3E%3Cpath%20d%3D%22M20%2010h25v9H20zM25%2019h15v38H25zM19%2057h27M24%2031h17%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(79%20245)%20rotate(-9%2026%2028)%22%3E%3Cpath%20d%3D%22M25%2012L11%2058M25%2012l11%203M11%2058l-7%208M25%2012l7-7M18%2019l16%206%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(179%20245)%20rotate(12%2025%2025)%22%3E%3Cpath%20d%3D%22M11%2013h40v44H11zM11%2026h40M19%2013V4h24v9M19%2037h24%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(367%20257)%22%3E%3Cpath%20d%3D%22M7%2012q10-11%2019%200M40%2012q10-11%2019%200M20%2033q14%2013%2028-1%22%2F%3E%3C%2Fg%3E%0A%3C%2Fsvg%3E")!important;
 background-repeat:repeat!important;background-size:420px 340px!important;
 opacity:.18!important;animation:oneqPatternRushA 3.2s linear infinite!important;
}
.selectScreen::after{
 content:"";position:absolute;z-index:1;top:0;left:0;right:0;height:100svh;
 pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22420%22%20height%3D%22340%22%20viewBox%3D%220%200%20420%20340%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Cg%20transform%3D%22translate(20%2018)%20rotate(-12%2020%2022)%22%3E%3Cpath%20d%3D%22M14%2025h24v35H14zM19%2025v-12l7-10%208%2010v12M14%2042h24%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(132%2014)%22%3E%3Crect%20x%3D%2210%22%20y%3D%2220%22%20width%3D%2243%22%20height%3D%2246%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M20%2020V9h22v11M18%2045h27M31%209V2%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(274%2031)%22%3E%3Cpath%20d%3D%22M7%2019c0-15%2019-20%2029-5%209-15%2029-10%2029%205%200%2015-29%2034-29%2034S7%2034%207%2019Z%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(345%20108)%20rotate(12%2020%2020)%22%3E%3Cpath%20d%3D%22M9%2010h34v39H9zM15%2010V2h22v8M20%2021h12M20%2030h12%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(56%20114)%20rotate(8%2023%2022)%22%3E%3Cpath%20d%3D%22M10%2017h45v40H10zM6%2017h53V6H6zM32%2017v40M32%206c-19-19-27%203%200%200%2018-19%2027%202%200%200%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(192%20111)%20rotate(-11%2030%2034)%22%3E%3Cpath%20d%3D%22M13%2013h34l7%2013-7%2034H13L6%2026zM13%2013l17%2014%2017-14M18%2035h24M18%2044h24%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(291%20211)%20rotate(14%2024%2023)%22%3E%3Cpath%20d%3D%22M20%2010h25v9H20zM25%2019h15v38H25zM19%2057h27M24%2031h17%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(79%20245)%20rotate(-9%2026%2028)%22%3E%3Cpath%20d%3D%22M25%2012L11%2058M25%2012l11%203M11%2058l-7%208M25%2012l7-7M18%2019l16%206%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(179%20245)%20rotate(12%2025%2025)%22%3E%3Cpath%20d%3D%22M11%2013h40v44H11zM11%2026h40M19%2013V4h24v9M19%2037h24%22%2F%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(367%20257)%22%3E%3Cpath%20d%3D%22M7%2012q10-11%2019%200M40%2012q10-11%2019%200M20%2033q14%2013%2028-1%22%2F%3E%3C%2Fg%3E%0A%3C%2Fsvg%3E");
 background-repeat:repeat;background-size:350px 285px;opacity:.13;
 animation:oneqPatternRushB 2.4s linear infinite;
}
@keyframes oneqPatternRushA{
 from{background-position:0 0}
 to{background-position:420px 340px}
}
@keyframes oneqPatternRushB{
 from{background-position:0 0}
 to{background-position:-350px 285px}
}
@media(prefers-reduced-motion:reduce){
 .selectScreen::before,.selectScreen::after{animation:none!important}
}

/* Desktop-only hero adjustment: 20% smaller than the previous 1.5x scale
   and raised 55px. Keep original text, field and buttons fixed. */
@media(min-width:721px){
 .selectScreen .oneqHeroStage{overflow:visible!important}
 .selectScreen .oneqHeroStage .oneqWelcomeHero{
  transform:translateY(-55px) scale(1.2)!important;
  transform-origin:center top!important;
  object-position:center top!important;
 }
}

/* The quick-join card title must be centered both vertically and horizontally.
   Restrict the override to the first entry button; other cards remain unchanged. */
.selectScreen:not(.oneq-invite-entry) #enterWorld{
 display:flex!important;align-items:center!important;justify-content:center!important;
 -webkit-box-orient:initial!important;-webkit-line-clamp:unset!important;
 text-align:center!important;width:100%!important;min-height:44px!important;
 padding:0 2px!important;white-space:normal!important;
}
/* Immediate feedback while the 3D bundle and matchmaking load. */
.oneqMeetingOverlay{
 position:fixed;inset:0;z-index:10150;
 display:flex;align-items:center;justify-content:center;
 padding:24px;background:rgba(37,10,31,.62);backdrop-filter:blur(7px);
}
.oneqMeetingOverlay.hidden{display:none!important}
.oneqMeetingCard{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;
 width:min(420px,100%);padding:33px 20px 28px;
 border-radius:24px;background:#fff9fd;color:#5c254a;text-align:center;
 box-shadow:0 16px 64px #3d073954;
}
.oneqMeetingCard strong{font:400 clamp(20px,4.8vw,26px)/1.3 'Jua',system-ui,sans-serif;word-break:keep-all}
.oneqMeetingCard p{font:500 14px/1.5 system-ui,sans-serif;margin:0;color:#8b6480;word-break:keep-all}
.oneqMeetingSpinner{
 width:56px;height:56px;border:5px solid #f6cee4;border-top-color:#e93997;
 border-radius:50%;animation:oneqMeetingSpin .7s linear infinite;
}
.oneqMeetingDots{display:inline-block;min-width:1.2em;animation:oneqMeetingPulse .75s ease-in-out infinite alternate}
@keyframes oneqMeetingSpin{to{transform:rotate(360deg)}}
@keyframes oneqMeetingPulse{from{opacity:.25}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.oneqMeetingSpinner,.oneqMeetingDots{animation-duration:2.5s}}

/* Invitation guests enter in one tap with an automatic temporary nickname. */
.selectScreen.oneq-invite-entry .selectFoot>label[for="nickname"],
.selectScreen.oneq-invite-entry #nickname{display:none!important}

/* Invite-copy / action toast: reserve the full ad-banner height above it.
   Avoid the banner overlap on both desktop and mobile Safari/PWA. */
html.windychat-playing:not(.oneq-chat-mode) #hud .toast{
 top:calc(max(8px, env(safe-area-inset-top, 0px)) + 88px + 14px)!important;
 z-index:16!important;
 max-width:min(85vw,420px);
 line-height:1.4;
}
@media(max-width:720px){
 html.windychat-playing:not(.oneq-chat-mode) #hud .toast{
  top:calc(max(7px, env(safe-area-inset-top, 0px)) + 68px + 14px)!important;
  max-width:calc(100vw - 32px);
 }
}
