:root{color-scheme:dark;--bg:#090b24;--text:#fff;--muted:#a2add4;--cyan:#42e6ff;--pink:#ff4dba;--green:#62f4bb}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#080b21;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"PingFang HK","Microsoft JhengHei",sans-serif}body{overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}#app{min-height:100dvh;display:flex;flex-direction:column;align-items:center;position:relative;isolation:isolate;background:radial-gradient(ellipse at 45% 10%,#232260 0%,transparent 40%),linear-gradient(#090c28,#080b20)}.ambient{position:fixed;z-index:-1;width:45vw;height:45vw;filter:blur(110px);opacity:.18;pointer-events:none}.a1{background:#d526ae;top:0;left:-12%}.a2{background:#0087d4;bottom:-15%;right:-10%}.topbar{width:min(1100px,100%);padding:17px clamp(14px,3vw,28px);display:flex;justify-content:space-between;align-items:center;gap:14px}.brand{display:flex;align-items:center;gap:11px}.brandmark{width:42px;height:42px;display:grid;place-items:center;background:linear-gradient(145deg,#29e5ff,#773aff);box-shadow:0 0 18px #21d5ff80;border-radius:13px;font-size:23px;font-weight:1000;font-style:italic}.brandmark span,.brandtext b span{color:#8df6fa}.brandtext{display:grid;gap:1px}.brandtext b{letter-spacing:.07em;font-size:16px}.brandtext small{font-size:9px;color:#9aa9e4;letter-spacing:.1em}.topactions{display:flex;gap:8px}.roundbtn{height:36px;width:36px;border:1px solid #5862a888;color:white;background:#171c42;border-radius:13px;font-size:19px}.roundbtn.off{opacity:.45}#frame{width:min(1050px,100%);padding:0 12px;flex:1;display:flex;align-items:stretch;justify-content:center}#gameArea{width:100%;height:clamp(490px,calc(100dvh - 130px),760px);position:relative;overflow:hidden;touch-action:none;overscroll-behavior:contain;border:1px solid #4e539f90;border-radius:24px;background:radial-gradient(ellipse at 50% 65%,#1b295b,transparent 58%),radial-gradient(ellipse at 40% -20%,#5833a6a0,transparent 48%),linear-gradient(140deg,#101239,#090d26 60%,#14143d);box-shadow:0 25px 80px #0008,0 0 40px #4729d230;user-select:none}#game{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.hud{position:absolute;left:18px;right:18px;top:15px;display:flex;justify-content:space-between;z-index:2;pointer-events:none}.hudblock{display:flex;flex-direction:column;min-width:82px}.hudblock span{font-size:10px;letter-spacing:.16em;color:#adb9e5;font-weight:800}.hudblock strong{font-size:clamp(26px,4.5vw,38px);font-weight:1000;font-variant-numeric:tabular-nums;text-shadow:0 0 20px #ff4dba60}.hudmiddle{text-align:center}.hudmiddle strong{color:#ffdf73}.alignright{text-align:right}.powerPanel{position:absolute;bottom:18px;left:18px;right:18px;display:flex;justify-content:space-between;pointer-events:none;z-index:2;font-size:11px;letter-spacing:.08em;font-weight:800;color:#9eaddb}#powerLabel{color:#7de8fb}.overlay{position:absolute;inset:0;display:none;justify-content:center;align-items:center;z-index:5;background:#080d2cbd;backdrop-filter:blur(11px);overflow-y:auto;padding:16px}.overlay.visible{display:flex}.heroContent{text-align:center;max-width:430px;width:100%;margin:auto}.eyebrow{font-size:10px;color:#8ce9ff;font-weight:900;letter-spacing:.21em}.hero-icon{position:relative;width:clamp(125px,21vh,190px);height:clamp(125px,21vh,190px);margin:10px auto -3px;filter:drop-shadow(0 0 23px #ad43e477)}.hero-icon img{height:100%;width:100%;object-fit:contain}.orbit{position:absolute;border:1px solid #64dff766;transform:rotate(-28deg);border-radius:50%;pointer-events:none}.orbit-one{inset:12px -25px}.orbit-two{inset:-10px 12px;transform:rotate(58deg);opacity:.4}h1{font-size:clamp(56px,9vw,93px);line-height:.83;margin:3px 0 0;letter-spacing:-.065em;font-weight:1000;font-style:italic;text-shadow:0 6px 0 #37195e}h1 em{font-style:inherit;color:#ff6ca3;text-shadow:0 0 32px #ff46b999,0 6px 0 #53245b}.cnname{font-size:clamp(18px,3vw,25px);letter-spacing:.42em;margin-top:18px;font-weight:900}.heroContent p{font-size:14px;line-height:1.8;color:#e1e7ff;margin:15px 0}.pink{color:#ff74cf;font-weight:900}.green{color:#67fbbf;font-weight:900}.primary,.secondary,.tertiary{border:none;display:block;margin:11px auto;width:min(100%,330px);border-radius:14px;font-weight:900}.primary{min-height:51px;color:#150a29;background:linear-gradient(100deg,#38e7ff,#a36eff 55%,#ff61be);box-shadow:0 9px 27px #a43aff5c;font-size:17px}.primary span{float:right;margin-right:15px;font-size:28px;line-height:20px}.secondary{min-height:44px;color:#fff;background:#352f70;border:1px solid #7775bf}.tertiary{background:transparent;color:#b8c5f5;padding:7px}.countOverlay{background:#05092258;backdrop-filter:none}#countText{font-weight:1000;font-size:clamp(96px,19vw,190px);color:#fff;text-shadow:0 0 40px #e159ff,0 8px #6f278e}.modal{margin:auto;position:relative;width:min(440px,100%);border:1px solid #7167c8;background:linear-gradient(155deg,#292555,#101431);border-radius:22px;padding:28px 20px;box-shadow:0 25px 70px #0009;text-align:center;max-height:100%;overflow-y:auto}.modal h2{margin:8px 0 17px;font-size:27px}.close{position:absolute;right:12px;top:12px;border:0;background:#444277;border-radius:9px;color:white;width:33px;height:33px}.instruction{display:flex;gap:12px;text-align:left;margin:15px 0;align-items:flex-start}.instructionEmoji{width:44px;height:44px;border-radius:13px;background:#39326d;display:grid;place-items:center;font-size:23px;flex-shrink:0}.instruction b{display:block;margin-bottom:4px}.instruction p{font-size:12px;line-height:1.55;margin:0;color:#b9c1e4}.resultScore{font-weight:1000;font-size:clamp(60px,11vw,85px);color:#ffdc76;font-variant-numeric:tabular-nums;text-shadow:0 0 28px #ffc55e77}.resultUnit{font-size:10px;letter-spacing:.2em;color:#b8adce}.resultStats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0}.resultStats div{border:1px solid #615c9c;border-radius:12px;padding:10px 3px;background:#ffffff0a}.resultStats span{display:block;color:#b9c2e2;font-size:11px}.resultStats strong{font-size:24px}.tipBox{background:#131f48;border:1px solid #399aaf88;color:#d9f7fc;padding:12px;border-radius:12px;text-align:left;font-size:12px;line-height:1.65}.submitline{display:flex;gap:8px;margin-top:12px}.submitline input{flex:1;min-width:0;background:#0b1234;color:white;border:1px solid #5c6cb0;border-radius:11px;padding:10px 12px}.submitline .secondary{margin:0;width:90px}.fineprint{color:#a8b2dd;font-size:11px;line-height:1.5}.tabs{display:flex;gap:7px;margin:12px 0}.tabs button{flex:1;border:1px solid #4e528c;background:#20234a;color:#bbbde4;padding:10px;border-radius:10px}.tabs button.on{background:#504ab0;color:white}.rankList{min-height:190px;max-height:290px;overflow-y:auto;text-align:left}.rankrow{display:flex;align-items:center;gap:14px;padding:12px 9px;border-bottom:1px solid #ffffff16}.rankrow .rank{color:#ffc867;font-weight:900;width:24px}.rankrow .n{flex:1;font-weight:700}.rankrow .s{font-weight:900}.rankempty{padding:50px 10px;text-align:center;color:#b5bfe0}footer{width:min(1050px,100%);display:flex;justify-content:space-between;padding:12px 22px 18px;color:#6e77a6;letter-spacing:.06em;font-size:10px}body.game-running .hud,body.game-running .powerPanel{display:flex}body:not(.game-running) .hud,body:not(.game-running) .powerPanel{display:none}@media(max-width:600px){.topbar{padding:12px}.brandtext b{font-size:13px}.brandtext small{font-size:8px}.brandmark{height:36px;width:36px;font-size:19px}#frame{padding:0 6px}#gameArea{height:calc(100dvh - 107px);min-height:460px;border-radius:17px}.heroContent p{margin:10px 0}.cnname{margin-top:12px}.hero-icon{margin:2px auto -2px}.hud{left:12px;right:12px}.modal{padding:22px 15px}footer{padding:10px 12px;font-size:8px}}@media(max-height:640px) and (orientation:landscape){#gameArea{height:calc(100dvh - 84px);min-height:270px}.topbar{padding:7px 16px}.hero-icon{height:75px;width:75px}.heroContent p{display:none}.cnname{font-size:14px;margin-top:6px}h1{font-size:48px}.heroContent .primary{min-height:38px;margin:5px auto}.heroContent .tertiary{margin:0 auto}.modal{padding:16px}.instruction{margin:6px 0}footer{padding:4px 20px}}
/* Arcade dimensional treatment */
.brandlogo{width:62px;height:62px;object-fit:contain;border-radius:12px;box-shadow:0 4px 18px #5bd9ff45}.topbar{padding-top:10px;padding-bottom:10px}.brandtext small{color:#aadeff}#gameArea{border:3px solid #d8b66b;background:#0a1332;box-shadow:0 0 0 3px #373783,0 16px 0 #111735,0 30px 55px #020619cc,0 0 48px #25c8f95c,inset 0 0 30px #3bcaf955}.hudblock{padding:8px 15px;border-radius:16px;background:linear-gradient(150deg,#394a85db,#131b3ce8);border:1px solid #9ceaff88;box-shadow:0 5px 0 #0a102c,0 9px 18px #020819a8;min-width:100px}.hudblock strong{text-shadow:0 3px 0 #242469,0 0 17px #54e8ff88}.hudmiddle{border-color:#f6d676aa}.powerPanel span{padding:7px 10px;border:1px solid #80e4f866;background:#0b194bd9;border-radius:9px}.overlay{background:#07112eaa}.heroContent{padding:12px 24px 20px;border-radius:26px;background:linear-gradient(150deg,#182c5ad9,#151040e6);border:2px solid #7deaff9c;box-shadow:inset 0 1px #fff8,0 8px 0 #12163d,0 20px 40px #0009,0 0 55px #40d8ff55}.hero-icon{filter:drop-shadow(0 13px 3px #0009) drop-shadow(0 0 24px #ffe07088)}h1{font-size:clamp(45px,7vw,73px);letter-spacing:-.055em;line-height:1;margin:0;text-shadow:0 5px 0 #154182,0 8px 0 #121743,0 12px 18px #0009}h1 em{color:#ffce4b;text-shadow:0 4px 0 #c2561a,0 7px 0 #593129,0 0 23px #ffa93688}.cnname{color:#fff1b5;text-shadow:0 3px #a54541,0 0 12px #ffb92a;font-size:clamp(22px,3vw,30px);letter-spacing:.22em;margin-top:8px}.primary{color:#3a1b12;background:linear-gradient(#fff199,#ffbd36 55%,#ff8f19);border:2px solid #fff5be;box-shadow:0 6px 0 #b65314,0 10px 22px #f9a22c88}.primary:active{transform:translateY(4px);box-shadow:0 2px 0 #b65314}.roundbtn{border-color:#a5d7ff;background:linear-gradient(#4978b2,#14275e);box-shadow:0 3px 0 #0b1234}.modal{border:2px solid #f8d381;background:linear-gradient(145deg,#2f4f84,#171846 65%,#2c1642);box-shadow:0 8px 0 #141337,0 24px 55px #000b,inset 0 1px #fff9}.heroContent .eyebrow{color:#ffdb7f}@media(max-width:600px){.brandlogo{width:43px;height:43px}.topbar{padding:7px 10px}.hudblock{min-width:64px;padding:5px 8px}.hudblock strong{font-size:25px}.hudblock span{font-size:8px}.heroContent{padding:10px 15px 16px}.hero-icon{width:clamp(100px,17vh,150px);height:clamp(100px,17vh,150px)}h1{font-size:46px}#gameArea{height:calc(100dvh - 93px)}}
#timeVal.tick{animation:time-pulse .5s ease-out;color:#ffcd67;text-shadow:0 0 18px #ff4d4d,0 3px 0 #862c3e}@keyframes time-pulse{0%{transform:scale(1.65);color:#fff}100%{transform:scale(1)}}.resultScore{animation:result-pop .7s cubic-bezier(.2,1.5,.5,1)}@keyframes result-pop{0%{transform:scale(.65);opacity:.1}100%{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){#timeVal.tick,.resultScore{animation:none}}
/* Main-screen typography and concise rules */
.hero-title{font-family:"PingFang HK","Microsoft JhengHei","Noto Sans CJK TC",system-ui,sans-serif;font-style:normal;white-space:nowrap;letter-spacing:.08em;font-size:clamp(31px,5vw,52px);line-height:1.25;color:#fff1a2;margin:3px 0 0;text-shadow:0 2px 0 #e2952d,0 5px 0 #a94a1a,0 8px 0 #522743,0 11px 20px #0009,0 0 20px #ffc25388}.hero-english{font-family:system-ui,-apple-system,sans-serif;font-style:italic;font-size:clamp(18px,2.7vw,27px);letter-spacing:.03em;font-weight:900;color:#eaf7ff;line-height:1.1;margin:4px 0 10px}.hero-english em{font-style:inherit;color:#ffc84b}.hero-rules{text-align:left;display:grid;gap:5px;width:min(100%,315px);margin:10px auto 14px;color:#eff6ff;font-weight:700;font-size:clamp(12px,1.5vw,14px)}.hero-rules div{display:flex;align-items:center;gap:10px}.hero-rules b{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:8px;color:#ffe99c;background:#234379;border:1px solid #84d7ff88;font-size:10px}.hero-icon img{object-fit:contain}.heroContent{max-width:460px}.hero-icon{width:clamp(110px,19vh,172px);height:clamp(110px,19vh,172px)}@media(max-width:600px){.hero-title{font-size:clamp(29px,8vw,42px);letter-spacing:.05em}.hero-english{font-size:19px}.hero-rules{font-size:12px;margin:7px auto 9px;gap:3px}.hero-rules b{height:21px;flex-basis:21px}.hero-icon{width:clamp(88px,15vh,125px);height:clamp(88px,15vh,125px)}}@media(max-height:640px) and (orientation:landscape){.hero-icon{height:58px;width:58px}.hero-title{font-size:27px}.hero-english{font-size:15px;margin:0}.hero-rules{grid-template-columns:repeat(3,1fr);gap:4px;max-width:600px;width:100%;font-size:10px;margin:5px auto}.hero-rules div{gap:3px}.hero-rules b{height:19px;flex-basis:19px}.heroContent{max-width:620px;padding:6px 15px}.heroContent .primary{min-height:34px}}
/* Refined title and lower instruction panel */
.hero-title{font-family:"PingFang HK","Microsoft JhengHei","Noto Sans CJK TC",system-ui,sans-serif;font-weight:900;letter-spacing:.1em;color:#fff2af;text-shadow:0 2px 0 #c78733,0 4px 9px #000a,0 0 20px #ffbd524c;line-height:1.2}.hero-english{letter-spacing:.11em;color:#d6f3ff;font-weight:800}.hero-english em{color:#ffd371}.hero-rules{width:min(100%,340px);margin:14px auto 0;padding:11px 14px;border:1px solid #77dfff55;border-radius:14px;background:linear-gradient(145deg,#1b386cba,#101a40d9);box-shadow:inset 0 1px #ffffff21,0 8px 18px #02061855;gap:7px}.hero-rules div{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.35;color:#e5f5ff;font-weight:650}.hero-rules b{flex:0 0 25px;height:25px;border-radius:50%;color:#ffdc86;background:#273b69;border:1px solid #efc66799;box-shadow:inset 0 1px #fff4}.heroContent .tertiary{margin:6px auto}.hero-icon{width:clamp(95px,17vh,145px);height:clamp(95px,17vh,145px)}.heroContent{padding-top:10px;padding-bottom:14px}@media(max-width:600px){.hero-rules{margin-top:7px;padding:8px 10px;gap:4px}.hero-rules div{font-size:11px}.hero-rules b{height:21px;flex-basis:21px}.hero-icon{width:clamp(82px,13vh,110px);height:clamp(82px,13vh,110px)}.hero-title{font-size:clamp(29px,7.6vw,40px)}}@media(max-height:640px) and (orientation:landscape){.hero-rules{margin-top:4px;padding:4px 7px}.hero-rules div{font-size:10px}.hero-icon{height:52px;width:52px}.heroContent{padding:5px 12px}.heroContent .primary{margin:4px auto}.heroContent .tertiary{padding:2px;margin:0 auto}}
/* Expand the play area across wide screens without stretching targets. */
@media(min-width:601px){.topbar,#frame,footer{width:100%;max-width:none}#frame{padding-left:clamp(10px,1vw,20px);padding-right:clamp(10px,1vw,20px)}.topbar,footer{padding-left:clamp(20px,2vw,38px);padding-right:clamp(20px,2vw,38px)}}
