@font-face{font-family:ZCOOL KuaiLe;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/zcool-kuaile-chinese-simplified-400-normal-BKaOBC6q.woff2) format("woff2"),url(/assets/zcool-kuaile-chinese-simplified-400-normal-DF5oRnqi.woff) format("woff")}:root{color-scheme:dark;--bg: #14170f;--ink: #1b241c;--paper: #f4efe4;--muted: #c8c2b4;--left: #1d6d66;--sand: #e4c48a;--accent: #e25b32;--pass: #176b3e;--fail: #8d4514;--line: #243028;font-family:Avenir Next,Segoe UI,PingFang SC,Noto Sans SC,sans-serif;line-height:1.5}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 8% 0%,rgba(226,91,50,.22),transparent 26%),radial-gradient(circle at 100% 8%,rgba(29,109,102,.28),transparent 32%),var(--bg);color:#f6f3ec}h1,h2,p{margin-top:0}h1,h2{font-family:Iowan Old Style,Palatino,Songti SC,serif;font-weight:600;letter-spacing:-.03em;line-height:1.1}button,input,a{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,.board :focus-visible{outline:3px solid var(--accent);outline-offset:3px}.play,.crash{width:min(1080px,calc(100% - 32px));margin:0 auto;padding:32px 0 64px}.lobby{position:relative;height:100dvh;overflow:hidden}.hall{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;background:url(/lobby-bg.png) center / cover no-repeat,#9ec8e6}.hall:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#fff8ec14;backdrop-filter:blur(5px) saturate(1.05);-webkit-backdrop-filter:blur(5px) saturate(1.05)}.lobby-ui{position:relative;z-index:1;display:flex;height:100%;min-height:0;flex-direction:column;justify-content:flex-start;width:min(1080px,calc(100% - 32px));margin:0 auto;padding:max(16px,env(safe-area-inset-top)) 0 0}.lobby .hero{text-align:center}.lobby .hero h1{margin-bottom:0;color:#2a2418;font-family:ZCOOL KuaiLe,YouYuan,PingFang SC,cursive;font-weight:400;letter-spacing:.06em;text-shadow:0 2px 0 rgba(255,248,230,.85),0 10px 24px rgba(255,248,230,.45)}.reel{display:flex;flex:1 1 auto;flex-direction:column;justify-content:flex-end;align-items:center;width:100%;min-height:0;margin-top:auto;padding-bottom:max(16px,env(safe-area-inset-bottom));container-type:size}.reel-stage{position:relative;width:min(100cqw,calc((100cqh - 58px) * 16 / 9));aspect-ratio:16 / 9;height:auto;max-height:calc(100cqh - 58px);overflow:hidden;border-radius:28px;box-shadow:0 24px 60px #281e0a47;touch-action:pan-y;cursor:grab}.reel-track{display:flex;height:100%;transition:transform .45s ease}.reel-stage:active{cursor:grabbing}.slide{position:relative;display:flex;flex:0 0 auto;height:100%;color:#fff;background:#8fd0ef center / cover no-repeat;-webkit-user-select:none;user-select:none}.slide-geometry{background-image:url(/geometry-slice-bg.png?v=2)}.slide-factris{background-image:url(/factris-bg.png)}.slide-path{background:linear-gradient(180deg,#1c4f66,#7eb8c9 58%,#e7c48a)}.slide-surf{background:linear-gradient(180deg,#7ec8f0,#ffe7b0 62%,#49b6e8 62%)}.slide-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.route{fill:none;stroke:#fff6d8;stroke-width:8;stroke-linecap:round}.slide-path circle{fill:#fff6d8}.wave{stroke:none}.wave-a{fill:#ffffff8c}.wave-b{fill:#1f8fbe}.slide-title{position:absolute;z-index:2;top:22px;left:22px;max-width:min(420px,72%);pointer-events:none}.slide-title h2{margin:0;color:#fffaf2;font-family:ZCOOL KuaiLe,YouYuan,PingFang SC,cursive;font-size:clamp(1.8rem,4.2vw,2.7rem);font-weight:400;letter-spacing:.04em;text-shadow:0 2px 0 rgba(20,16,10,.28),0 10px 22px rgba(20,16,10,.35)}.slide-title p{margin:6px 0 0;color:#fff8ecf0;text-shadow:0 2px 10px rgba(20,16,10,.45)}.start-button{position:absolute;z-index:2;top:50%;left:50%;width:96px;height:96px;transform:translate(-50%,-50%);filter:drop-shadow(0 10px 18px rgba(20,16,10,.28))}.start-button svg{display:block;width:100%;height:100%}.start-button circle{fill:#fff8ecf5}.start-button path{fill:#e25b32}.slide[aria-hidden=true] .demo-piece,.slide[aria-hidden=true] .demo-half-l,.slide[aria-hidden=true] .demo-half-r,.slide[aria-hidden=true] .demo-knife,.slide[aria-hidden=true] .demo-streak,.slide[aria-hidden=true] .factris-demo-wide,.slide[aria-hidden=true] .factris-demo-tall,.slide[aria-hidden=true] .factris-demo-side,.slide[aria-hidden=true] .factris-demo-ghost,.slide[aria-hidden=true] .factris-demo-flash{animation-play-state:paused}.slice-demo{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.demo-piece{transform-box:fill-box;transform-origin:center;animation:demo-arc 4.6s linear infinite}.demo-a{--x: 163px;--drift: 160px}.demo-b{--x: 470px;--drift: -150px;animation-delay:-1.6s}.demo-c{--x: 48px;--drift: 140px;animation-delay:-3.1s}.demo-half{transform-box:fill-box;transform-origin:center}.demo-half-l{clip-path:inset(0 50% 0 0)}.demo-half-r{clip-path:inset(0 0 0 50%)}.demo-a .demo-half-l{animation:split-a-l 4.6s linear infinite}.demo-a .demo-half-r{animation:split-a-r 4.6s linear infinite}.demo-knife{transform-box:fill-box;transform-origin:0 0;animation:demo-cut 4.6s linear infinite}.demo-streak{fill:none;stroke:#fff;stroke-width:7;stroke-linecap:round;stroke-dasharray:203;stroke-dashoffset:203;opacity:0;filter:drop-shadow(0 0 6px rgba(255,255,255,.8));animation:demo-draw 4.6s linear infinite}@keyframes demo-arc{0%{transform:translate(var(--x),450px) rotate(-16deg);opacity:0}8%{opacity:1}15%{transform:translate(calc(var(--x) + var(--drift) * .15),257px) rotate(-8deg)}30%{transform:translate(calc(var(--x) + var(--drift) * .3),132px) rotate(0)}46%{transform:translate(calc(var(--x) + var(--drift) * .46),74px) rotate(8deg)}62%{transform:translate(calc(var(--x) + var(--drift) * .62),94px) rotate(16deg)}78%{transform:translate(calc(var(--x) + var(--drift) * .78),190px) rotate(24deg)}92%{transform:translate(calc(var(--x) + var(--drift) * .92),339px) rotate(30deg);opacity:1}to{transform:translate(calc(var(--x) + var(--drift)),460px) rotate(36deg);opacity:0}}@keyframes split-a-l{0%,46%{transform:none}58%,to{transform:translate(-30px,12px) rotate(-20deg)}}@keyframes split-a-r{0%,46%{transform:none}58%,to{transform:translate(30px,16px) rotate(24deg)}}@keyframes demo-cut{0%,36%{transform:translate(150px,160px) rotate(-70deg);opacity:0}40%{transform:translate(160px,140px) rotate(-70deg);opacity:1}52%{transform:translate(314px,8px) rotate(-70deg);opacity:1}58%,to{transform:translate(340px,-16px) rotate(-70deg);opacity:0}}@keyframes demo-draw{0%,40%{stroke-dashoffset:203;opacity:0}42%{opacity:.95}52%{stroke-dashoffset:0;opacity:.95}60%,to{stroke-dashoffset:0;opacity:0}}.factris-demo{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.factris-demo-well{fill:#060e2447;stroke:#bad6ff73;stroke-width:2}.factris-demo-wide,.factris-demo-tall,.factris-demo-ghost,.factris-demo-flash{transform-box:fill-box}.factris-demo-wide{animation:factris-wide 2.8s linear infinite}.factris-demo-tall{animation:factris-tall 2.8s linear infinite}.factris-demo-side{animation:factris-side 2.8s linear infinite}.factris-demo-ghost-tall{animation:factris-ghost-tall 2.8s linear infinite}.factris-demo-ghost-wide{animation:factris-ghost-wide 2.8s linear infinite}.factris-demo-flash{fill:#fff8ecd1;animation:factris-flash 2.8s linear infinite}.factris-demo text{font-family:Avenir Next,Segoe UI,PingFang SC,sans-serif;font-weight:700}@keyframes factris-tall{0%{transform:translate(406px,-56px);opacity:0}8%{opacity:1}34%{transform:translate(406px,40px);opacity:1}46%{transform:translate(406px,52px);opacity:0}to{transform:translate(406px,52px);opacity:0}}@keyframes factris-wide{0%,36%{transform:translate(406px,57px);opacity:0}48%{transform:translate(406px,86px);opacity:1}66%{transform:translate(406px,198px);opacity:1}76%{opacity:1}86%,to{transform:translate(406px,206px);opacity:0}}@keyframes factris-ghost-tall{0%,8%{opacity:0}16%,40%{opacity:.34}50%,to{opacity:0}}@keyframes factris-ghost-wide{0%,40%{opacity:0}50%,64%{opacity:.34}74%,to{opacity:0}}@keyframes factris-side{0%,76%{opacity:1}76.2%,96%{opacity:0}96.2%,to{opacity:1}}@keyframes factris-flash{0%,74%{opacity:0}76%{opacity:.9}84%,to{opacity:0}}.reel-nav{display:flex;flex:0 0 46px;width:100%;height:46px;align-items:center;justify-content:center;gap:14px;margin-top:12px;padding:0 70px}.reel-nav>button{width:40px;height:40px;border:0;border-radius:50%;background:#201c16b8;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}.reel-dots{display:flex;gap:8px}.reel-dot{width:10px;height:10px;padding:0;border:0;border-radius:50%;background:#2a241847;cursor:pointer}.reel-dot[aria-current=true]{background:#2a2418;transform:scale(1.25)}.lobby .card{border-color:#fff8e673;background:#201c16e6;color:#f6f3ec;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.lobby .card p{color:#f6f3ecd1}.lobby .card-play{background:linear-gradient(180deg,#e25b3261,#201c169e)}.eyebrow{margin-bottom:8px;color:#f0b59a;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase}.hero h1,.crash h1{font-size:clamp(3rem,8vw,5.4rem);margin-bottom:12px}.lede{max-width:36rem;color:var(--muted);font-size:1.15rem}.catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:36px}.card{display:flex;min-height:240px;flex-direction:column;gap:10px;padding:22px;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:#ffffff0a;color:inherit;text-decoration:none}.card h2{font-size:2rem;margin-bottom:0}.card p{color:var(--muted)}.card-play{background:linear-gradient(180deg,#e25b3229,#ffffff0a)}.card-soon{opacity:.72}.tag{align-self:flex-start;padding:4px 8px;border-radius:999px;background:#ffffff14;color:#f3d7cc;font-size:.78rem}.cta{margin-top:auto;color:#fff;font-weight:700}.play-screen{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;background:#071833 url(/geometry-slice-bg.png?v=2) center / cover no-repeat}.hud{position:absolute;z-index:2;top:0;right:0;left:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:max(12px,env(safe-area-inset-top)) 16px 0;pointer-events:none}.hud-cluster{display:flex;align-items:center;gap:10px}.hud-cluster:last-child{justify-self:end}.hud-score,.hud-lives{display:grid;justify-items:center;min-width:76px;padding:6px 12px 8px;border-radius:18px;background:#fff8ecc7;color:#1b241c;line-height:1}.hud-score span,.hud-lives span.sr-only{font-size:.72rem;letter-spacing:.08em}.hud-score strong{font-size:1.7rem;font-variant-numeric:tabular-nums}.hud-lives .life-pips{margin:4px 0 0}.icon-button{display:grid;width:46px;height:46px;place-items:center;padding:0;border:0;border-radius:50%;background:#1b18129e;color:#fff;text-decoration:none;pointer-events:auto;cursor:pointer}.glyph{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.fullscreen-toggle{position:fixed;z-index:6;right:16px;bottom:max(16px,env(safe-area-inset-bottom))}.hud-target{display:flex;align-items:center;gap:10px;padding:6px 16px 6px 6px;border-radius:999px;background:#fff8ece6;color:#1b241c;pointer-events:none}.hud-target p{margin:0;line-height:1.15}.hud-target strong{display:block;font-size:1rem}.hud-target span{color:#6a5348;font-variant-numeric:tabular-nums}.hud-target .shape-icon{width:42px;height:42px;background:#f4efe4;border-radius:50%}.hud-target.is-switching{animation:target-pulse .55s ease-in-out 3;box-shadow:0 0 0 4px #ffe08a,0 10px 28px #00000047}.target-callout{position:absolute;z-index:3;top:38%;left:50%;display:flex;align-items:center;gap:14px;margin:0;padding:16px 22px 16px 14px;border-radius:28px;background:#fff8ecf5;color:#1b241c;font-size:1.8rem;font-weight:800;pointer-events:none;box-shadow:0 16px 40px #00000052;transform:translate(-50%,-50%);animation:target-callout-in .35s ease-out}.target-callout .shape-icon{width:64px;height:64px;background:#f4efe4;border-radius:50%}.combo-banner{position:absolute;z-index:2;top:calc(max(12px,env(safe-area-inset-top)) + 72px);left:50%;margin:0;color:#fffaf6;text-shadow:0 2px 0 #e25b32;font-size:1.6rem;font-weight:700;pointer-events:none;transform:translate(-50%);animation:combo-in .35s ease-out}.sheet-backdrop{position:absolute;z-index:4;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:#14100a75}.sheet{width:min(380px,100%);padding:18px;border-radius:24px;background:#1c2118;color:#f6f3ec;box-shadow:0 24px 70px #00000059}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet-head h2{margin:0;font-size:1.8rem}.sheet-meta{margin:8px 0 16px;color:var(--muted)}.sheet-row{display:flex;width:100%;min-height:48px;align-items:center;gap:12px;padding:0 12px;border:0;border-radius:14px;background:#ffffff0f;color:inherit;cursor:pointer}.sheet.result{margin-top:0;color:#3d312c;text-align:center;box-shadow:0 28px 70px #24548c47}.sheet.result.pass{background:linear-gradient(180deg,#fff,#d9f6ea)}.sheet.result.fail{background:linear-gradient(180deg,#fff,#ffe3ea)}.sheet.result h2{margin-bottom:8px}.sheet.result.pass h2{color:#14845c}.sheet.result.fail h2{color:#e23b5d}.sheet.result p{color:#6d584e}.star-row{display:flex;justify-content:center;gap:8px;margin:0 0 8px}.star{width:28px;height:28px;fill:#5a3c322e}.star.on{fill:#f2b43a}.mode-picker{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:grid;align-content:center;justify-items:center;gap:14px;padding:24px}.mode-picker h2{margin:0 0 8px;color:#fffaf2;font-family:ZCOOL KuaiLe,YouYuan,cursive;font-size:2.6rem;font-weight:400;letter-spacing:.06em}.mode-menu{display:grid;gap:12px;width:min(340px,100%)}.mode-card{display:flex;width:100%;min-height:58px;align-items:center;justify-content:center;padding:0 18px;border:0;border-radius:999px;background:#fff8ecf0;color:#1b241c;font-family:ZCOOL KuaiLe,YouYuan,PingFang SC,cursive;font-size:1.45rem;font-weight:400;letter-spacing:.08em;text-decoration:none;cursor:pointer}.mode-back{background:transparent;color:#fffaf2;box-shadow:inset 0 0 0 2px #fff8ecc7}.hud-time{font-variant-numeric:tabular-nums}.sheet.result .button-ghost{color:#6a5348;box-shadow:inset 0 0 0 1.5px #5a3c3247}.result-backdrop{background:#56a8d647;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.result-mark{width:84px;height:84px;margin:0 auto 8px}.result-mark circle{stroke:none}.result-mark.pass circle:first-child{fill:#7ddec0}.result-mark.fail circle:first-child{fill:#ffb3c4}.result-eye{fill:#3a2a24}.result-mouth{fill:none;stroke:#3a2a24;stroke-width:3;stroke-linecap:round}.sheet-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.sheet-actions .button{flex:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.play-bar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.play-bar p{margin:0;color:var(--muted)}.text-link{color:#f6f3ec}.stage{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:22px;align-items:start}.board{width:100%;height:auto;background:var(--paper);border-radius:28px;touch-action:none;box-shadow:0 24px 70px #00000047}.play-screen .field-frame{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:0;overflow:hidden;box-shadow:none}.play-screen .slash-field{width:100%;height:100%;border-radius:0;background:transparent;box-shadow:none}.sound-toggle{min-height:36px;padding:0 12px;font-size:.88rem}.canvas-frame{fill:transparent;stroke:#24302859;stroke-width:.008}.grid line{stroke:#24302814;stroke-width:.004}.piece-right{fill:var(--sand)}.piece-left{fill:var(--left)}.shape{fill:none;stroke:var(--ink);stroke-width:.012}.cut{stroke:var(--ink);stroke-width:.012;stroke-linecap:round}.arrow{fill:var(--accent)}.handle-hit{fill:transparent;pointer-events:all;cursor:grab}.handle{fill:#fff;stroke:var(--ink);stroke-width:.01;pointer-events:none}.handle-end{fill:var(--ink);stroke:#fff}.handle-label{fill:var(--ink);font-weight:700}.side-label{fill:#fff;font-weight:700}.slash-field{cursor:url(/knife-cursor.svg) 5 6,crosshair}.pit{fill:url(#pit-light)}.arena-grid line{stroke:#30201214;stroke-width:.003}.vignette{fill:url(#pit-vignette);pointer-events:none}.shape{stroke:#fff;stroke-width:.007}.shape-triangle{fill:#ff8b6a}.shape-square{fill:#ffd15c}.shape-circle{fill:#ff6d8a}.shape-diamond{fill:#7fd4ff}.shape-pentagon{fill:#c9a6ff}.shape-hexagon{fill:#7ee0a8}.shape-glow{fill:#fff4d2;opacity:.55;animation:glow-pulse 1.15s ease-in-out infinite}.shape-face{pointer-events:none}.eye-white,.pupil,.eye-glint,.cheek,.mouth-open{stroke:none}.eye-white{fill:#fff}.pupil{fill:#3a2a24}.eye-glint{fill:#fff}.cheek{fill:#ff8fa8;opacity:.7}.mouth{fill:none;stroke:#3a2a24;stroke-width:.16;stroke-linecap:round}.mouth-open{fill:#3a2a24}.blade-metal{fill:#f7fbff;stroke:#9aafc4;stroke-width:.0025;stroke-linejoin:round;opacity:.94}.blade-edge{fill:none;stroke:#fff;stroke-width:.007;stroke-linecap:round;stroke-linejoin:round}.debris{stroke:#fff;stroke-width:.006}.debris-triangle{fill:#ff8b6a}.debris-square{fill:#ffd15c}.debris-circle{fill:#ff6d8a}.debris-diamond{fill:#7fd4ff}.debris-pentagon{fill:#c9a6ff}.debris-hexagon{fill:#7ee0a8}.spark{stroke:none}.spark-hit{fill:#ffe08a}.spark-wrong{fill:#ff6b4a}.flash{pointer-events:none}.floater{font-weight:700;fill:#1b241c;stroke:#fff8ee;stroke-width:.008;paint-order:stroke}.floater-wrong{fill:#8d1f12}.floater-miss{fill:#8a4b12}.target-row{grid-template-columns:auto 1fr;align-items:center}.shape-icon{width:54px;height:54px;background:#f4efe4;border-radius:12px}.meters{display:flex;flex-wrap:wrap;gap:14px 22px;margin:0}.meters p{margin:0}.meters strong{font-size:1.6rem;font-variant-numeric:tabular-nums}.panel.hurt .meters strong{color:#ffb4a2}.life-pips{display:inline-flex;gap:4px;margin:2px 0 0;vertical-align:4px}.heart{width:22px;height:22px;fill:#e25b3238}.heart.on{fill:#ff3b6b;filter:drop-shadow(0 0 6px rgba(255,59,107,.55))}.combo-pop{color:#ffd27a;font-size:1.25rem;font-weight:700;animation:combo-in .35s ease-out}.panel{padding:8px 4px 0}.panel h1{font-size:clamp(2.2rem,4vw,3.4rem);margin-bottom:8px}.goal{font-size:1.2rem}.rule,.fine{color:var(--muted)}.fine{font-size:.88rem}.target{display:grid;gap:2px;margin:18px 0;padding:14px 16px;border-radius:16px;background:#ffffff0d}.target strong{font-size:1.8rem;font-variant-numeric:tabular-nums}.target span{display:block;color:var(--muted)}.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field{display:grid;gap:6px;color:var(--muted);font-size:.9rem}.field input{width:100%;min-height:44px;padding:8px 10px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:#0003;color:#fff}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:0 16px;border:0;border-radius:999px;background:var(--accent);color:#fff;text-decoration:none;cursor:pointer}.button-ghost{background:transparent;box-shadow:inset 0 0 0 1px #ffffff47}.alert,.result{margin-top:16px;padding:14px 16px;border-radius:16px}.alert{background:#e25b3229}.result h2{margin-bottom:8px;font-size:1.8rem}.result p{margin-bottom:8px}.result.pass{background:linear-gradient(180deg,#fff,#d9f6ea)}.result.fail{background:linear-gradient(180deg,#fff,#ffe3ea)}.result-flash{animation:result-in .4s ease-out}@keyframes glow-pulse{50%{opacity:.12}}@keyframes target-callout-in{0%{transform:translate(-50%,-50%) scale(.72);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}@keyframes target-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.08)}}@keyframes combo-in{0%{transform:scale(1.28)}to{transform:scale(1)}}@keyframes result-in{0%{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}@media (hover: none),(pointer: coarse){.hall:after{background:#fff8ec29;backdrop-filter:none;-webkit-backdrop-filter:none}.shape-glow{animation:none;opacity:.35}}@media (prefers-reduced-motion: reduce){.shape-glow,.combo-pop,.result-flash,.demo-piece,.demo-half-l,.demo-half-r,.demo-knife,.demo-streak,.factris-demo-wide,.factris-demo-tall,.factris-demo-side,.factris-demo-ghost,.factris-demo-flash,.reel-track{animation:none;transition:none}.factris-demo-wide{transform:translate(406px,198px);opacity:1}.factris-demo-tall,.factris-demo-ghost,.factris-demo-flash{opacity:0}.factris-demo-side{opacity:1}.demo-a{opacity:1;transform:translate(220px,110px)}.demo-b{opacity:1;transform:translate(400px,150px)}.demo-c{opacity:1;transform:translate(90px,180px)}.demo-knife,.demo-streak{opacity:0}}@media (max-width: 700px){.hud{grid-template-columns:1fr auto;grid-template-areas:"left right" "target target"}.hud-cluster:first-child{grid-area:left}.hud-cluster:last-child{grid-area:right}.hud-target{grid-area:target;justify-self:center}.combo-banner{top:calc(max(12px,env(safe-area-inset-top)) + 128px)}}.factris{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#06122c url(/factris-bg.png) center / cover no-repeat;color:#f7f1e7;-webkit-user-select:none;user-select:none}.factris h1,.factris h2{margin:0;font-family:ZCOOL KuaiLe,YouYuan,PingFang SC,cursive;font-weight:400;letter-spacing:.04em}.factris-menu{align-items:center;justify-content:center;gap:14px;text-align:center;padding:24px}.factris-menu h1{font-size:clamp(2.4rem,7vw,4rem)}.factris-menu p{margin:0 0 8px;color:#f7f1e7db}.factris-top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;min-height:64px;padding:max(10px,env(safe-area-inset-top)) 14px 6px}.factris-formula{margin:0;justify-self:center;min-width:6.4em;font-family:Avenir Next,Segoe UI,PingFang SC,sans-serif;font-size:clamp(1.2rem,2.8vw,1.85rem);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.02em;line-height:1;text-align:center;white-space:nowrap}.factris-brand,.factris-actions{display:flex;align-items:center;gap:8px;min-width:0}.factris-actions{justify-content:flex-end}.factris-top .icon-button{font-family:ZCOOL KuaiLe,YouYuan,cursive;font-size:1.15rem}.factris-scores{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:end;min-width:0}.factris-layout{--pad: 86px;position:relative;flex:1;min-height:0;width:100%;display:grid;place-items:center;padding:4px 12px 12px;container-type:size}.factris-stack{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:fit-content;max-width:100%;max-height:100%}.factris-help{margin:0;color:#f7f1e7db;font-size:.92rem;text-align:left}.factris-help h2{margin-bottom:8px;font-size:1.35rem}.factris-help p{margin:0 0 8px}.factris-help ul{margin:0;padding-left:1.1em}.factris-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.factris-play{display:grid;grid-template-columns:auto 68px;align-items:start;justify-content:center;gap:10px;max-height:100%}.factris-board{--cell: min(28px, calc((100dvh - 230px)/20) , calc((100vw - 120px) / 12));position:relative;width:calc(var(--cell) * 12);height:calc(var(--cell) * 20);border-radius:16px;background-color:#121924;background-image:linear-gradient(rgba(247,241,231,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(247,241,231,.05) 1px,transparent 1px);background-size:var(--cell) var(--cell);box-shadow:0 18px 50px #00000052,inset 0 0 0 2px #f7f1e733;outline:none;touch-action:none}@supports (width: 1cqh){.factris-board{--cell: min(34px, calc((100cqh - var(--pad)) / 20), calc((100cqw - 86px) / 12))}}.factris-cell,.factris-piece,.factris-ghost{position:absolute;box-sizing:border-box;border-radius:6px}.factris-cell{box-shadow:inset 0 0 0 1px #ffffff3d}.factris-piece,.factris-ghost{box-shadow:inset 0 0 0 2px #ffffff8c}.factris-piece.is-live{cursor:pointer;touch-action:manipulation}.factris-ghost{opacity:.28;pointer-events:none}.factris-splits{position:absolute;top:0;right:0;bottom:0;left:0;display:grid}.factris-splits i{box-shadow:inset 0 0 0 1px #ffffff47}.factris-piece strong{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#241910;font-family:Avenir Next,Segoe UI,PingFang SC,sans-serif;font-size:calc(var(--cell) * .62);font-weight:700;line-height:1;pointer-events:none}.factris-piece[data-thin="1"] strong{font-size:calc(var(--cell) * .42)}.factris-clear{position:absolute;left:0;width:100%;height:var(--cell);background:#fff8ecb8;animation:factris-clear .28s ease;pointer-events:none}.factris-cell.is-clearing{animation:factris-clear .28s ease}.factris-piece.is-shaking{animation:factris-shake .18s linear}.factris-stat{display:grid;gap:0;min-width:0;padding:0;background:none}.factris-stat span{color:#f7f1e7ad;font-size:.72rem;letter-spacing:.08em}.factris-stat strong{font-family:Avenir Next,Segoe UI,PingFang SC,sans-serif;font-size:1.35rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.1}.factris-upcoming{display:grid;align-content:start;gap:6px;min-width:0}.factris-upcoming-label{margin:2px 0 0;color:#f7f1e7ad;font-size:.75rem;letter-spacing:.14em;line-height:1;text-align:center}.factris-queue{display:grid;align-content:start;gap:8px;margin:0;padding:0;list-style:none}.factris-queue li{font-family:Avenir Next,Segoe UI,PingFang SC,sans-serif;font-size:1.35rem;font-weight:700;line-height:1;text-align:center}.factris-queue li:first-child{font-size:1.7rem}.factris-pad{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:0}.factris-cluster{display:flex;gap:8px}.factris-pad button{min-width:72px;min-height:64px;padding:0 16px;border:0;border-radius:18px;background:#fff8ecf0;color:#1b241c;font-family:ZCOOL KuaiLe,YouYuan,cursive;font-size:1.35rem;cursor:pointer;touch-action:manipulation}.factris-pad button[aria-disabled=true]{opacity:.45}.factris-overlay{position:fixed;z-index:7;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;background:#0c101875}.factris-card{width:min(360px,100%);display:grid;gap:10px;padding:22px 20px;border-radius:24px;background:#1b2330f5;box-shadow:0 24px 60px #00000059;text-align:center}.factris-card h2{font-size:1.8rem}.factris-card p,.factris-card li{color:#f7f1e7db}.factris-card ol{margin:0 0 8px;padding-left:1.2em;text-align:left}.factris-card .mode-menu{width:100%}.factris-step{margin:0;letter-spacing:.12em}@keyframes factris-clear{0%{filter:brightness(1.8)}to{filter:brightness(1)}}@keyframes factris-shake{0%,to{transform:translate(0)}30%{transform:translate(-5px)}70%{transform:translate(5px)}}@media (max-width: 860px){.factris-formula{font-size:1.2rem;min-width:5.6em}.factris-stat strong{font-size:1.15rem}.factris-pad button{min-width:64px;min-height:56px}}@media (max-height: 760px){.factris-layout{--pad: 70px}.factris-pad button{min-width:56px;min-height:48px;font-size:1.15rem}.factris-top{min-height:52px}}@media (max-height: 480px){.factris-layout{--pad: 56px;padding-top:2px;padding-bottom:6px}.factris-top{min-height:44px;padding-top:4px;padding-bottom:2px}.factris-formula{font-size:1.05rem}.factris-stat strong{font-size:1rem}.factris-pad button{min-width:46px;min-height:40px;font-size:1rem;border-radius:14px}.factris-queue li{font-size:1.05rem}.factris-queue li:first-child{font-size:1.25rem}}@media (max-width: 640px){.factris-scores{gap:2px 10px}.factris-formula{font-size:1.05rem;min-width:5.2em}.factris-layout{padding-bottom:max(72px,env(safe-area-inset-bottom))}.factris-pad button{min-width:52px;padding:0 8px}}@media (prefers-reduced-motion: reduce){.factris-clear,.factris-cell.is-clearing,.factris-piece.is-shaking{animation:none}}@media (max-width: 860px){.catalog,.stage,.fields{grid-template-columns:1fr}.play,.crash,.lobby-ui{width:min(100% - 24px,720px)}.lobby .catalog{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(220px,72%);overflow-x:auto;padding-bottom:6px}.card{min-height:0}}
