[hidden]{display:none!important}
:root{font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:#33324f;background:#faf5ff;line-height:1.48}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 70% 48% at 12% -9%,#ffddca 0,transparent 70%),radial-gradient(ellipse 50% 50% at 92% 18%,#dbd3fa 0,transparent 80%),#faf5ff}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}.header{max-width:1120px;margin:0 auto;padding:22px 25px;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;font-weight:900;letter-spacing:.8px;font-size:24px;color:#504582;display:flex;gap:10px;align-items:center}.logo{background:#675ca0;color:#fff;padding:6px 11px;border-radius:16px;font-size:23px}.brand-small{font-size:10px;letter-spacing:2px;color:#8a80a7;padding:6px;border:1px solid #d8d3e8;border-radius:8px}.shell{max-width:1040px;margin:0 auto;padding:10px 24px 55px}.hero{text-align:center;padding:38px 0 36px}.hero h1{font-size:clamp(2.6rem,6vw,4.8rem);letter-spacing:-2.5px;line-height:1.12;margin:10px 0 16px;color:#4b417e}.hero h1 em{color:#e78a9e;font-style:normal}.hero p{font-size:18px;color:#77718f}.eyebrow{text-transform:uppercase;letter-spacing:2.2px;font-size:11px;font-weight:800;color:#8a7fba}.columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel{border-radius:24px;background:#fffdfd;border:1px solid #e8e2f1;box-shadow:0 8px 30px #54478f0b;padding:28px;margin-bottom:22px}.panel-head{display:flex;gap:12px;align-items:center;margin-bottom:8px}.panel h2{font-size:22px;line-height:1.2;margin:0;color:#504582}.bubble{font-weight:900;color:#6458a4;background:#e9e4ff;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.bubble.pink{background:#ffe4ec;color:#da7994}.bubble.mint{background:#d7f6e9;color:#459b7a}.quiet{color:#827c96;font-size:14px}.notice{min-height:0;text-align:center;color:#5d508e;margin-bottom:14px}.notice:not(:empty){padding:12px;border:1px solid #e1d9f6;background:#f0ecfb;border-radius:16px}.setup{text-align:center}label{display:grid;gap:7px;color:#625a7d;font-size:13px;font-weight:700;margin-top:13px}input[type=email],input[type=password],input[type=text],input:not([type]){padding:12px 13px;width:100%;outline:none;border:1px solid #d6cfe7;border-radius:11px;background:white;color:#403b5f;font-size:15px;min-width:0}input:focus{border-color:#7869b0;box-shadow:0 0 0 3px #887bc52e}.checkbox{display:flex;align-items:flex-start;font-weight:500;gap:8px}.checkbox input{margin-top:4px}.button{border:0;border-radius:12px;background:#6c5aab;color:white;font-weight:800;padding:12px 20px;margin-top:15px;box-shadow:0 3px 0 #51448a;font-size:14px}.button:hover{filter:brightness(1.05)}.button.secondary{background:#f1edfc;color:#5d5193;box-shadow:0 3px 0 #d8d0ef}.button.small{padding:8px 11px;margin:0}.actions{display:flex;gap:10px}.room-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.room-top .button{margin:0}.room-top h2{font-size:28px;margin:4px 0}.invite-box{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:13px 17px;background:#f6f0ff;border-radius:14px;margin:15px 0;font-size:12px}.invite-box code{color:#6650a3;font-size:13px;overflow-wrap:anywhere;font-weight:800}.invite-box>span{flex:1;min-width:180px}#playfield{position:relative;overflow:hidden;width:100%;height:320px;border-radius:22px;background:radial-gradient(circle at 52% 50%,#f8d4be 0 24%,#eec4bd 24.5% 31%,transparent 31.5%),linear-gradient(125deg,#e8cff8,#bfe6d4);border:5px solid #eee5fa;outline:0}#playfield:focus{border-color:#b5a5de}.path{position:absolute;left:0;width:100%;height:34px;background:#fbe0bd;top:44%;transform:rotate(24deg);opacity:.7}.path.two{transform:rotate(-24deg)}.decoration{position:absolute;color:#fff;font-size:46px;filter:drop-shadow(2px 4px 0 #a8b7a5)}.deco1{top:8%;left:12%}.deco2{bottom:3%;right:8%}.deco3{top:6%;right:28%}.avatar{z-index:2;position:absolute;transform:translate(-50%,-50%);text-align:center;left:35%;top:50%;filter:drop-shadow(0 7px 3px #574a7445);transition:left 80ms linear,top 80ms linear;white-space:nowrap}.avatar span{font-size:52px;display:block}.avatar small{font-size:12px;font-weight:900;color:#47416d;background:white;border-radius:9px;padding:2px 6px}.avatar.remote span{font-size:51px}.centered{text-align:center}.mobile-keys{text-align:center}.mobile-keys button{background:#ede7fa;border:0;border-radius:12px;font-size:22px;padding:10px 18px;margin:3px;color:#5d508e;touch-action:manipulation}.unity-notice{margin-top:12px;background:#f4f1ff}.unity-notice h2{margin:5px 0}.unity-notice p{color:#716a83}footer{text-align:center;color:#88809b;font-size:12px;padding:16px}@media(max-width:720px){.columns{grid-template-columns:1fr}.panel{padding:20px}.room-top{display:block}.room-top button{margin-top:12px}.brand{font-size:19px}.brand-small{font-size:9px}.hero{padding-top:19px}.hero h1{letter-spacing:-1px}#playfield{height:270px}}

/* Full viewport game shell after sign-in. Browser fullscreen remains an explicit user action. */
.header-actions{display:flex;align-items:center;gap:9px}
.header-actions .button{margin-top:0}
body.in-game{overflow:hidden;height:100dvh;background:#c5dbe3;overscroll-behavior:none}
body.in-game .header{position:fixed;top:0;left:0;right:0;z-index:40;max-width:none;padding:12px 18px;background:linear-gradient(#2d285bdb,#2d285b4d,transparent);pointer-events:none}
body.in-game .header a,body.in-game .header button{pointer-events:auto}
body.in-game .header .brand{color:#fff;text-shadow:0 2px 5px #453d6a}
body.in-game .header .brand-small{color:#fff;background:#ffffff28;border-color:#ffffff65}
body.in-game .header .logo{background:#6b56ae}
body.in-game .header .button.secondary{background:#ffffffdd;color:#504582;box-shadow:none;padding:8px 14px}
body.in-game .shell{max-width:none;padding:0;margin:0}
body.in-game .hero,body.in-game .unity-notice,body.in-game footer,body.in-game .setup{display:none!important}
body.in-game #room{position:fixed;inset:0;z-index:1;margin:0;padding:0;width:100%;height:100dvh;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:linear-gradient(120deg,#d3e6e7,#ddc9ef)}
body.in-game #playfield{position:absolute;inset:0;width:100%;height:100%!important;border:0;border-radius:0;outline:none;background:
  radial-gradient(ellipse 32% 40% at 52% 50%,#f6dbba 0 67%,#e6a8a9 68% 78%,transparent 79%),
  radial-gradient(ellipse 38% 55% at 6% 15%,#dfc7f1 0 60%,transparent 62%),
  radial-gradient(ellipse 37% 45% at 90% 85%,#a9dccc 0 70%,transparent 72%),
  linear-gradient(135deg,#b4cde5,#d8b6e4 45%,#b5e8cd)}
body.in-game #playfield .path{height:clamp(65px,14vh,145px);top:43%;background:#f6d1ac;opacity:.68}
body.in-game #playfield .decoration{font-size:clamp(30px,5vw,75px)}
body.in-game #playfield .avatar span{font-size:clamp(55px,7vw,90px)}
body.in-game #playfield .avatar small{font-size:14px}
body.in-game .room-top{position:absolute;left:20px;top:86px;z-index:5;background:#fffdf0e9;border:1px solid #ffffffb8;box-shadow:0 5px 22px #48406b19;border-radius:17px;padding:12px 18px;align-items:center;max-width:calc(100% - 40px)}
body.in-game .room-top h2{font-size:21px;margin:1px 0}
body.in-game .room-top .quiet{font-size:12px;margin:3px 0}
body.in-game .room-top .button{padding:8px 12px;font-size:12px;margin:0}
.demo-tag{display:inline-block;vertical-align:middle;border-radius:7px;padding:3px 6px;margin-left:6px;background:#e9e3fd;color:#6450a5;font-size:11px;font-weight:800}
body.in-game .invite-box{position:absolute;bottom:22px;left:20px;z-index:5;margin:0;max-width:660px;background:#fffdf5eb;box-shadow:0 6px 20px #50438324;font-size:12px}
body.in-game .invite-box code{font-size:12px}
body.in-game .stage-note{position:absolute;top:88px;right:20px;z-index:4;margin:0;padding:9px 13px;background:#fffdf4db;border-radius:12px;max-width:290px;font-size:12px;line-height:1.35}
body.in-game #playersOnline{position:absolute;left:20px;bottom:98px;z-index:5;background:#fff9eddd;padding:6px 12px;border-radius:10px;font-size:13px;margin:0}
body.in-game .mobile-keys{position:absolute;right:20px;bottom:25px;z-index:5}
body.in-game .mobile-keys button{background:#fffef4d9;color:#5e5196;box-shadow:0 3px 9px #5c48852a}
body.in-game #status:not(:empty){position:fixed;bottom:120px;left:50%;transform:translateX(-50%);z-index:50;width:max-content;max-width:min(90vw,560px);padding:10px 16px;background:#fffdf4;box-shadow:0 5px 18px #56487f37;margin:0;font-size:13px;text-align:center}
body.in-game #lobby{position:fixed;inset:0;z-index:15;display:grid;place-items:center;padding:110px 18px 20px;background:#30295678;overflow-y:auto}
body.in-game #lobby>.columns{width:min(870px,100%);display:grid;grid-template-columns:1.15fr .85fr;align-items:start;gap:16px}
body.in-game #lobby .panel{border:1px solid #ffffffa6;background:#fffdfbf5;box-shadow:0 15px 45px #2d265a44;border-radius:22px;padding:22px;margin-bottom:0}
body.in-game #lobby .panel h2{font-size:21px}
body.in-game #lobby label{margin-top:10px}
body.in-game #lobby .button{margin-top:10px}
body.in-game #lobby p{margin:8px 0}
body.in-game .room-idle .avatar{opacity:.55}
body.in-game .room-idle .stage-note{display:none}
body.in-game .room-idle .room-top{opacity:.9}
body.in-game .room-idle #playersOnline{display:none}
body.in-game .room-idle .mobile-keys{display:none}
@media(max-width:720px){
  body.in-game .header{padding:8px 10px}
  body.in-game .header .brand{font-size:16px}
  body.in-game .header .brand-small{display:none}
  body.in-game .header-actions .button{font-size:12px;padding:7px 9px}
  body.in-game #lobby{align-items:start;padding-top:85px}
  body.in-game #lobby>.columns{grid-template-columns:1fr;gap:10px}
  body.in-game #lobby .panel{padding:16px}
  body.in-game .room-top{top:64px;left:10px;padding:7px 10px}
  body.in-game .room-top h2{font-size:16px}
  body.in-game .room-top .eyebrow{font-size:9px}
  body.in-game .room-top .quiet{font-size:11px}
  body.in-game .stage-note{top:auto;bottom:152px;right:10px;max-width:50vw;font-size:10px}
  body.in-game .invite-box{left:10px;right:10px;bottom:8px;max-width:none;padding:9px 11px}
  body.in-game #playersOnline{bottom:175px;left:10px;font-size:11px}
  body.in-game .mobile-keys{right:8px;bottom:115px}
  body.in-game .mobile-keys button{padding:8px 13px}
  body.in-game #status:not(:empty){bottom:185px}
}
@media(max-height:600px){
  body.in-game #lobby{padding-top:68px}
  body.in-game .room-top{top:62px}
  body.in-game .stage-note{display:none}
}


/* When a versioned Unity WebGL export is deployed, it takes the entire stage.
   The 2D visual remains a network diagnostic fallback, not a 3D player. */
body.in-game.unity-loaded #unityStage {
  position:absolute;inset:0;display:block;z-index:2;width:100%;height:100%;
  background:#1e1b36
}
body.in-game.unity-loaded #unityFrame {
  position:absolute;inset:0;border:0;display:block;width:100%;height:100%;
  background:#1e1b36
}
body.in-game.unity-loaded #playfield,
body.in-game.unity-loaded .mobile-keys {display:none!important}
body.in-game.unity-loaded .stage-note {
  z-index:4;top:76px;right:12px;bottom:auto;
  background:#fffdf4e6
}
body.in-game.unity-loaded .room-top,
body.in-game.unity-loaded #roomInvite,
body.in-game.unity-loaded #playersOnline {z-index:5}
