/* Original manager artwork. Only the entry screen owns these animations. */
.entry-scene{position:fixed;inset:0;z-index:0;overflow:hidden;background:#061322;pointer-events:none}
.entry-scene::before{content:'';position:absolute;inset:-2%;background:url('/wcm-manager-entry.webp') center 47%/cover no-repeat;animation:entry-breathe 18s ease-in-out infinite alternate;transform-origin:62% 45%}
.entry-scene::after{content:'';position:absolute;inset:0;background:linear-gradient(#07152622 0%,transparent 40%,#04101cc9 75%,#04101c 100%)}
.entry-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 47%;opacity:0;pointer-events:none}.entry-video-playing .entry-video{opacity:1}.entry-video-playing::before{animation:none}
.entry-title{position:absolute;z-index:1;left:24px;right:24px;top:max(7vh,env(safe-area-inset-top));text-align:center;color:#f4f6ef;font:800 18px/1.3 system-ui;letter-spacing:.16em;text-shadow:0 3px 25px #0008}
.entry-title b{display:block;font-size:clamp(52px,17vw,86px);letter-spacing:-.055em;line-height:1.1;color:#f3e4b4}
.entry-title small{display:block;margin-top:11px;font-size:10px;letter-spacing:.3em;color:#b2cdc9}
.entry-flow{position:absolute;z-index:1;left:4%;top:39%;width:29%;height:32%;opacity:.42;filter:drop-shadow(0 0 7px #73e8c5)}
.entry-flow path{fill:none;stroke:#bbf4de;stroke-width:1;stroke-dasharray:3 12;animation:entry-flow 9s linear infinite}
body.wcm-entry{display:flow-root;min-height:100svh;background:#061322}
body.wcm-entry #boot-status{position:fixed;z-index:2;bottom:10vh;left:20px;right:20px;text-align:center;color:#d7e8e6}
html body.wcm-entry #session{position:relative;z-index:2;max-width:380px;width:calc(100% - 32px);margin:max(44svh,190px) auto 22px;padding:20px 22px;border:1px solid #91b4bd45;border-radius:22px;background:linear-gradient(150deg,#122b3eef,#071724f5);box-shadow:0 16px 45px #0005;color:#edf5f6}
html body.wcm-entry #session::before{display:none}
html body.wcm-entry #session h1{font:700 20px/1.2 system-ui;letter-spacing:0;margin:0 0 5px}
html body.wcm-entry #session p{font-size:12px;margin:5px 0 12px;color:#b3c7d0}
html body.wcm-entry #session input,html body.wcm-entry #session select{height:46px;font-size:16px;border:1px solid #536c7c;border-radius:11px;background:#091b2b;color:#f3f8fb;margin:9px 0;padding:10px 12px}
html body.wcm-entry #session button[type=submit]{min-height:48px;border:1px solid #f2df9d;border-radius:12px;background:linear-gradient(110deg,#f1dfa7,#cbb571);color:#152431;font-size:16px;font-weight:800;margin:13px 0}
html body.wcm-entry #session .android-install{background:transparent;border:0;margin:4px 0;color:#b1e6d5;font-size:12px;padding:5px}
html body.wcm-entry #session .android-install-note{font-size:10px;text-align:center;display:block;color:#a5bac4}
.entry-progress{height:4px;background:#27414f;border-radius:4px;overflow:hidden;margin:17px 0 9px}
.entry-progress i{display:block;height:100%;background:#a8ddca;transition:width .16s ease}
.entry-loading{display:flex;align-items:center;justify-content:space-between;gap:10px;font:12px system-ui;color:#bfd3d6}
.entry-loading output{font-variant-numeric:tabular-nums;color:#e5ddb9}
dialog.editing-sheet{top:var(--wcm-visible-top,0px)!important;bottom:auto!important;margin-top:12px!important;max-height:calc(var(--wcm-visible-height,100dvh) - 24px)!important;overflow:auto;scroll-padding:14px;overscroll-behavior:contain}
dialog :is(input,select,textarea){scroll-margin-block:24px}
dialog input[inputmode=numeric]{font-size:16px;min-height:46px;touch-action:manipulation}
@media(min-width:700px){.entry-scene::before{background-size:auto 130%;background-position:70% 45%}.entry-scene::after{background:linear-gradient(90deg,#04101c 8%,#04101cbb 43%,transparent 76%,#04101c88)}.entry-title{left:7%;right:auto;top:16%;width:360px}.entry-title b{font-size:84px}html body.wcm-entry #session{margin:38vh auto 30px 7%;width:360px}.entry-flow{left:49%;top:41%;width:12%;height:33%}}
@media(max-height:600px){html body.wcm-entry #session{margin:12px auto;width:min(380px,calc(100% - 24px))}.entry-title{display:none}.entry-scene::after{background:#04101c77}}
@media(prefers-reduced-motion:reduce){.entry-scene::before,.entry-flow path{animation:none}.entry-progress i{transition:none}}
@media(min-width:700px){.entry-video{object-fit:contain;object-position:70% 45%;transform:scale(1.3)}}
@keyframes entry-breathe{to{transform:scale(1.045) translateY(-.5%)}}
@keyframes entry-flow{to{stroke-dashoffset:-120}}

/* Vector matchboard and restrained light: no added download or minimum wait. */
.entry-title{top:max(3svh,env(safe-area-inset-top));font-size:19px;line-height:1.12;letter-spacing:.12em}
.entry-title .entry-emblem{display:block;width:112px;height:112px;margin:0 auto 12px;filter:drop-shadow(0 8px 18px #0008)}
.entry-title>span{display:block;color:#f8efd7;text-shadow:0 2px 14px #020b11}
.entry-title small{font-size:8px;letter-spacing:.28em;margin-top:10px;color:#d6d5b8}
.entry-lights{position:absolute;z-index:1;inset:0;opacity:.5;pointer-events:none;overflow:hidden}
.entry-lights:before{content:'';position:absolute;left:-20%;top:0;width:40%;height:100%;background:linear-gradient(90deg,transparent,#f2d49a14,transparent);transform:skewX(-22deg);animation:entry-light-pass 14s ease-in-out infinite}
.entry-playbook{position:absolute;z-index:1;width:clamp(96px,26vw,156px);height:auto;left:5%;top:27svh;opacity:.7;transform:rotate(8deg);animation:entry-board-float 10s ease-in-out infinite;pointer-events:none}
.entry-route{animation:entry-flow 12s linear infinite}
.entry-tactical-ball{animation:entry-pass 7s ease-in-out infinite}
.entry-stat-bars{animation:entry-stat-glow 4s ease-in-out infinite}
html body.wcm-entry #session{margin-top:max(43svh,235px);border-color:#d8c68e55;background:linear-gradient(140deg,#18303fee,#0a1c2af5);box-shadow:0 18px 55px #0006,inset 0 1px #fff2d214}
html body.wcm-entry #session .entry-progress{height:5px;background:#35484b}
.entry-progress i{background:linear-gradient(90deg,#9acbbd,#e9d39b);box-shadow:0 0 10px #dfc67b44}
.entry-paused *,.entry-paused:before,.entry-paused *:before{animation-play-state:paused!important}
@keyframes entry-light-pass{0%,20%{transform:translateX(-50%) skewX(-22deg)}70%,100%{transform:translateX(370%) skewX(-22deg)}}
@keyframes entry-board-float{50%{transform:translateY(-6px) rotate(6deg)}}
@keyframes entry-pass{0%,12%,100%{transform:translate(0,0);opacity:0}16%,30%{transform:translate(0,0);opacity:1}45%,56%{transform:translate(47px,-42px);opacity:1}72%,90%{transform:translate(96px,-87px);opacity:1}96%{transform:translate(96px,-87px);opacity:0}}
@keyframes entry-stat-glow{50%{opacity:.5}}
@media(min-width:700px){.entry-title{top:6%;left:7%;width:360px;font-size:25px}.entry-title .entry-emblem{width:142px;height:142px}.entry-playbook{left:auto;right:7%;top:36%;width:180px}html body.wcm-entry #session{margin-top:41vh}}
@media(max-height:600px){html body.wcm-entry #session{margin:12px auto}.entry-playbook{right:4%;top:10%;opacity:.35}}
@media(prefers-reduced-motion:reduce){.entry-lights:before,.entry-playbook,.entry-route,.entry-tactical-ball,.entry-stat-bars{animation:none}.entry-tactical-ball{display:none}}


.entry-construction{position:absolute;left:-3%;top:9svh;width:min(64%,520px);height:auto;pointer-events:none;opacity:.55;filter:drop-shadow(0 2px 9px #0008)}
.entry-crane-load{transform-origin:265px 38px;animation:entry-hoist 12s ease-in-out infinite alternate}
@keyframes entry-hoist{from{transform:rotate(-2deg) translateY(0)}to{transform:rotate(2deg) translateY(-14px)}}
.entry-title{top:5svh}.entry-title>span{font-size:22px;letter-spacing:.12em}
@media(prefers-reduced-motion:reduce){.entry-crane-load{animation:none}}

/* Legal choices remain readable and reachable on a phone, without field sizing. */
html body.wcm-entry #session.entry-legal{margin-top:max(125px,20svh);box-sizing:border-box}
html body.wcm-entry #session.entry-legal h1{max-width:none}
html body.wcm-entry #session #legal-entry label{display:flex;align-items:center;gap:12px;min-height:48px;margin:10px 0;line-height:1.4;font-size:14px;cursor:pointer}
html body.wcm-entry #session #legal-entry input[type=checkbox]{display:block;flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:0;padding:0;accent-color:#e5cf91}
html body.wcm-entry #session #legal-entry span{min-width:0}
html body.wcm-entry #session.entry-legal a{color:#c8e6ff}
#entry-access-required{position:fixed;z-index:100000;left:50%;top:max(16px,env(safe-area-inset-top));transform:translateX(-50%);width:min(440px,calc(100% - 32px));box-sizing:border-box;padding:18px;border:1px solid #d9c891;border-radius:16px;background:#122737;color:#f2f7fa;box-shadow:0 12px 38px #0008;font:15px/1.5 system-ui}
#entry-access-required p{margin:0 0 12px}
#entry-access-required button{width:100%;min-height:46px;border:0;border-radius:10px;background:#e5cf91;color:#162635;font:700 15px system-ui;cursor:pointer}
@media(max-height:600px){html body.wcm-entry #session.entry-legal{margin-top:12px}}

