:root{--deep:#201052;--purple:#5123ad;--violet:#a657f7;--cyan:#2bcef4;--yellow:#ffcc2f;--pink:#ff4799;--ink:#211149;--white:#fff;--shadow:0 19px 50px #160c50a6}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;}html{background:#100837}body{font-family:"Trebuchet MS",system-ui,-apple-system,"Segoe UI",sans-serif;color:#fff;background:radial-gradient(ellipse at 60% 0%,#5525b8 0%,#24135b 54%,#110a38 100%);-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}a{color:inherit;text-decoration:none}.hidden{display:none!important}.site-wrap{max-width:1450px;padding:15px clamp(10px,2.3vw,30px) 15px;margin:auto}.site-header{height:65px;display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:flex;align-items:center;gap:8px;font-weight:1000;font-size:24px;letter-spacing:-1px;text-shadow:0 3px 0 #1b0e4b}.brand-mark{font-size:30px;filter:drop-shadow(0 3px 5px #050323)}.brand-accent{color:var(--yellow)}.version{font:800 10px system-ui,sans-serif;letter-spacing:1px;color:#cab5ff;background:#ffffff17;border:1px solid #ffffff2a;border-radius:30px;padding:6px 9px;margin-left:10px}.header-right{display:flex;align-items:center;gap:8px}.header-chip{color:#e5d9ff;background:#ffffff10;border:1px solid #ffffff23;border-radius:30px;padding:8px 14px;font-weight:900;font-size:11px;letter-spacing:1.1px}.pulse-dot{display:inline-block;width:7px;height:7px;background:#36f5d3;border-radius:50%;box-shadow:0 0 10px #4afff2;margin-right:5px}.header-icon{border:1px solid #ffffff4c;color:white;width:36px;height:36px;border-radius:50%;background:#7e42e95e;font-weight:900;font-size:21px}.game-layout{border:1px solid #ad81ff8a;border-radius:24px;box-shadow:var(--shadow),0 0 0 5px #ffffff09;overflow:hidden;background:#231158}.game-viewport{height:clamp(490px,56vw,720px);position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(#342076,#33c2ed)}#world{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none}.screen{position:absolute;inset:0;z-index:5;overflow:hidden}.screen-menu{background:radial-gradient(ellipse at 79% 48%,transparent 5%,#25105620 45%,#220b5dd0 99%),linear-gradient(110deg,#261050dd,#27125830);display:flex;align-items:center;padding:clamp(22px,6vw,80px)}.menu-copy{position:relative;z-index:3;max-width:700px}.eyebrow{font-size:clamp(10px,1.3vw,14px);font-weight:1000;letter-spacing:2px;color:#fff4ae;text-shadow:0 2px 6px #120643}.menu-copy h1{font-size:clamp(64px,10vw,142px);line-height:.9;letter-spacing:-7px;margin:16px 0 5px;font-weight:1000;font-style:italic;color:#ffd83b;text-shadow:0 5px 0 #ff8d20,0 10px 0 #63219c,4px 14px 15px #08003bd1;-webkit-text-stroke:3px #432093}.menu-copy h1 span{color:#ffef66}.tagline{font-weight:1000;font-size:clamp(21px,2.6vw,37px);letter-spacing:-1px;color:#fff;filter:drop-shadow(0 3px 3px #150536)}.tagline strong{color:var(--cyan)}.menu-copy p{line-height:1.7;font-weight:800;color:#f9f2ff;font-size:clamp(12px,1.4vw,17px);margin:14px 0 14px;text-shadow:0 2px 4px #170830}.main-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:15px}.art-button{background:none;border:none;padding:0;width:clamp(130px,18vw,210px);transition:transform .2s ease,filter .2s ease;filter:drop-shadow(0 8px 9px #120a5290)}.art-button:hover{transform:translateY(-5px) rotate(-2deg);filter:drop-shadow(0 10px 15px #0008)}.art-button:active{transform:scale(.94)}.art-button img{width:100%;height:auto;display:block}.big-button{width:clamp(165px,22vw,270px)}.secondary-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}.outline-button{border:1px solid #eee3ff75;border-radius:16px;background:#3e2285a8;color:#fff;font-weight:950;font-size:11px;letter-spacing:.4px;padding:12px 14px;box-shadow:inset 0 1px #ffffff42;transition:transform .15s,background .15s}.outline-button:hover{background:#7d3edb;transform:translateY(-2px)}.menu-caption{font-weight:650;color:#e2d6fe;font-size:10px;display:block;margin-top:16px}.hero-art{position:absolute;z-index:2;right:clamp(1%,5vw,9%);bottom:-27px;height:92%;max-width:48%;object-fit:contain;filter:drop-shadow(0 0 38px #ffcf4d55) drop-shadow(0 17px 30px #180444);animation:heroFloat 3s ease-in-out infinite}.menu-spark{position:absolute;color:#fff4aa;text-shadow:0 0 20px yellow;animation:heroFloat 2s infinite;z-index:1}.menu-spark-a{font-size:62px;left:68%;top:13%}.menu-spark-b{font-size:40px;right:8%;top:14%;animation-delay:1s}.menu-ground{position:absolute;height:90px;bottom:-44px;left:0;right:0;background:#15cdf67d;filter:blur(25px);transform:rotate(-2deg)}@keyframes heroFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-13px)}}.modal-screen{display:flex;align-items:center;justify-content:center;padding:22px;background:#0f0a38b8;backdrop-filter:blur(11px);overflow-y:auto}.glass-panel{width:min(100%,820px);border:2px solid #eadfff6c;border-radius:25px;padding:clamp(18px,3.3vw,35px);background:linear-gradient(145deg,#6124bfe6,#291265f5);box-shadow:0 20px 40px #09032ea3,inset 0 1px 0 #ffffff57;animation:popIn .24s cubic-bezier(.2,1.3,.4,1)}@keyframes popIn{from{transform:scale(.93) translateY(15px);opacity:.25}to{transform:scale(1);opacity:1}}.glass-panel h2{font-size:clamp(28px,4vw,47px);letter-spacing:-1.8px;margin:9px 0 17px;line-height:1.05;text-shadow:0 4px 0 #190a55}.glass-panel p{line-height:1.5;font-size:14px;color:#eee2ff}.panel-topline{display:flex;justify-content:space-between;align-items:center}.close-mini{width:39px;height:39px;border-radius:50%;border:2px solid #ffffff77;background:#ffffff18;color:white;font-size:27px;font-weight:800}.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mode-card{display:flex;flex-direction:column;text-align:left;align-items:start;min-height:155px;padding:18px;background:linear-gradient(145deg,#ffffff29,#37146ce3);color:white;border:1.5px solid #ffffff6b;border-radius:21px;box-shadow:inset 0 1px #fff6;transition:transform .18s,background .18s}.mode-card:hover{background:linear-gradient(145deg,#a96aff65,#37146ce3);transform:translateY(-4px)}.mode-icon{color:var(--yellow);font-size:32px;margin-bottom:8px;text-shadow:0 4px 5px #300b7e}.mode-card b{font-weight:1000;font-size:17px}.mode-card small{font-size:12px;line-height:1.35;color:#e9dfff;margin-top:5px}.mode-card span{color:#ffda6d;font-weight:1000;margin-top:auto;padding-top:12px;font-size:12px}.info-glass{max-width:670px}.instructions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.instructions>div{background:#210d5f92;border:1px solid #ffffff30;padding:12px 13px;border-radius:13px;display:flex;flex-direction:column;gap:4px}.instructions b{color:#ffe271;font-size:14px}.instructions span{font-size:12px;color:#e9deff}.text-cta{padding:14px 24px;border-radius:17px;border:2px solid #ffed82;background:linear-gradient(#ffe65c,#f99e13);color:#371266;font-weight:1000;box-shadow:0 5px 0 #b05b13,0 11px 20px #10032469;transition:transform .14s}.text-cta:hover{transform:translateY(-2px)}.text-cta:active{transform:translateY(3px);box-shadow:0 2px 0 #b05b13}.info-glass .text-cta{margin-top:10px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #ffffff29;font-weight:800}.toggle-button{border:1px solid #d4fcff;background:linear-gradient(130deg,#1ac9ef,#8961e5);padding:10px 18px;border-radius:40px;color:white;font-weight:950}.footnote{font-size:11px!important;color:#dcc8ff!important}.scores-list{display:grid;gap:11px}.score-row{display:flex;justify-content:space-between;background:#1709567d;border:1px solid #ffffff3e;padding:12px 16px;border-radius:12px;font-weight:800}.score-row strong{color:#ffe467}.hud{position:absolute;inset:0;z-index:3;pointer-events:none}.hud-stats{position:absolute;top:17px;left:17px;display:flex;gap:8px;flex-wrap:wrap;padding-right:68px}.hud-chip{display:flex;align-items:center;gap:4px;padding:7px 11px;border-radius:40px;border:1.5px solid #ffffff8e;background:#24105ec9;box-shadow:0 4px 10px #1107387a;min-height:40px;font-size:16px}.hud-chip img{width:24px;height:24px;object-fit:contain}.hud-emoji{color:#ff4c8b}.hud-chip.combo{color:#ffe46c}.pause-control{pointer-events:auto;position:absolute;right:17px;top:17px;width:49px;height:49px;border:2px solid #ffffffcc;background:linear-gradient(140deg,#7435de,#432090);color:white;border-radius:17px;font-size:23px;font-weight:1000;box-shadow:0 5px 12px #1f0a488a}.command-display{position:absolute;top:78px;left:50%;transform:translateX(-50%);min-width:min(84%,370px);max-width:85%;background:linear-gradient(180deg,#5627b9e8,#231055e8);border:2px solid #ffffffc9;border-radius:21px;box-shadow:0 7px 25px #211155a8,0 0 24px #ffe62c3a;text-align:center;padding:9px 17px 10px}.command-eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:950;color:#edddff}.command-display strong{font-size:clamp(20px,3vw,36px);color:#ffea53;letter-spacing:-.5px;display:block;text-shadow:0 3px 0 #5f2589}.command-display.is-fake strong{color:#ff8a9d}.command-progress{height:6px;background:#140b48;border:1px solid #ffffff49;border-radius:20px;overflow:hidden;margin-top:6px}.command-progress>div{height:100%;width:100%;background:linear-gradient(90deg,#4defff,#ffdc41);transition:width .09s linear}.hud-bottom{position:absolute;bottom:15px;left:15px;right:15px;display:flex;gap:9px;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1px;font-weight:1000;text-shadow:0 2px 4px #12082d}.hud-bottom span{background:#180b4bad;border:1px solid #ffffff54;border-radius:20px;padding:8px 12px}.toast{position:absolute;z-index:8;left:50%;top:29%;transform:translate(-50%,-20px) scale(.91);padding:11px 20px;color:white;border:2px solid #ffffffb9;background:#44129fe8;border-radius:40px;text-shadow:0 1px 2px #1e094d;box-shadow:0 9px 20px #1b074c;font-weight:1000;font-size:clamp(16px,3vw,30px);text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0) scale(1)}.pause-glass{max-width:500px;text-align:center}.pause-glass h2{color:#ffe85d;font-size:45px}.result-glass{max-width:590px;text-align:center;display:flex;flex-direction:column;align-items:center}.result-glass h2{color:#ffdf43;font-size:clamp(27px,4.2vw,52px);margin-bottom:0}.result-glass>img{height:clamp(120px,21vh,195px);max-width:52%;object-fit:contain;filter:drop-shadow(0 8px 12px #14073c)}.result-metrics{display:flex;gap:7px;width:100%}.result-metrics>div{flex:1;border:1px solid #ffffff5b;border-radius:13px;background:#18084684;padding:8px}.result-metrics small{font-weight:950;letter-spacing:1.2px;color:#eee1ff}.result-metrics strong{display:block;font-size:clamp(18px,3vw,28px);color:#ffe866}.result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:9px}.exam-glass{max-width:550px;text-align:center}.exam-glass #examPrompt{font-size:clamp(33px,5vw,56px);font-weight:1000;color:#ffe85d}.answer-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:15px 0}.answer-option{padding:15px 10px;border-radius:16px;border:2px solid #ffffffc9;color:white;background:linear-gradient(145deg,#a357ff,#5923b8);font-size:23px;font-weight:1000;box-shadow:0 5px 0 #2b126b}.answer-option:hover{background:#e958c8}.exam-glass>small{color:#e1ccff}.controls-area{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:8px 18px;background:linear-gradient(90deg,#2b155e,#482097);border-top:2px solid #ab78ec62}.controls-message{display:flex;flex-direction:column;gap:2px;min-width:200px}.controls-message b{color:#ffdd58;font-weight:1000;font-size:13px;letter-spacing:1.4px}.controls-message small{color:#e0d1fa}.controls-grid{display:flex;gap:10px;align-items:center;justify-content:center}.arrow-control{background:none;border:0;padding:0;width:76px;height:76px;filter:drop-shadow(0 7px 6px #130b48);transition:transform .1s}.arrow-control:hover{transform:translateY(-2px)}.arrow-control:active,.arrow-control.pressed{transform:translateY(4px) scale(.92)}.arrow-control img{display:block;width:100%;height:100%;object-fit:contain}.control-tip{font-size:11px;color:#c5eaff;font-weight:950;text-align:right;max-width:230px}.app-footer{display:flex;justify-content:space-between;gap:12px;color:#bda9e8;text-transform:uppercase;letter-spacing:1px;font-size:10px;padding:16px 7px 0;font-weight:800}@media(max-width:920px){.hero-art{right:-4%;height:81%;opacity:.94}.menu-copy{max-width:65%}.controls-message,.control-tip{display:none}.controls-area{justify-content:center}.screen-menu{padding:24px}.menu-copy h1{font-size:clamp(64px,12vw,110px)}}@media(max-width:600px){.site-wrap{padding:7px}.site-header{height:55px}.brand{font-size:20px}.version{display:none}.header-chip{display:none}.game-layout{border-radius:17px}.game-viewport{height:clamp(520px,73svh,690px)}.screen-menu{align-items:flex-start;padding:29px 20px}.menu-copy{max-width:100%}.menu-copy h1{font-size:clamp(65px,20vw,110px);letter-spacing:-5px;margin:13px 0}.menu-copy .tagline{font-size:clamp(17px,5vw,26px)}.menu-copy p{font-size:12px;margin:9px 0}.main-actions{gap:4px}.art-button{width:140px}.big-button{width:170px}.hero-art{height:52%;max-width:75%;right:0;bottom:-3%;opacity:1;filter:drop-shadow(0 12px 14px #190a58)}.secondary-actions{gap:5px}.secondary-actions .outline-button{font-size:10px;padding:8px 9px}.menu-caption{display:none}.menu-spark-a{left:75%;top:43%}.menu-spark-b{right:10%;top:54%}.hud-stats{top:7px;left:7px;gap:3px;padding-right:49px}.hud-chip{font-size:12px;padding:4px 6px;min-height:31px}.hud-chip img{width:17px;height:17px}.pause-control{width:36px;height:36px;top:7px;right:7px;border-radius:12px}.command-display{top:54px;min-width:min(90%,290px);padding:6px 9px}.command-display strong{font-size:20px}.command-eyebrow{font-size:8px}.hud-bottom{bottom:5px;left:5px;right:5px;gap:4px;font-size:8px}.hud-bottom span{padding:5px 7px}.controls-grid{gap:3px;width:100%;justify-content:space-evenly}.arrow-control{width:min(22%,85px);height:auto;aspect-ratio:1}.controls-area{padding:8px 5px}.modal-screen{padding:11px}.glass-panel{padding:18px}.mode-grid{gap:8px}.mode-card{min-height:142px;padding:12px}.mode-card b{font-size:12px}.mode-card small{font-size:10px}.mode-icon{font-size:27px}.info-glass .instructions{grid-template-columns:1fr 1fr}.instructions>div{padding:8px}.instructions b{font-size:12px}.instructions span{font-size:10px}.glass-panel p{font-size:12px}.glass-panel h2{font-size:31px}.result-glass>img{height:165px}.result-actions .outline-button{font-size:10px;padding:10px}.app-footer{font-size:8px}.app-footer span:last-child{display:none}}@media(max-height:600px) and (min-width:670px){.game-viewport{height:calc(100svh - 174px);min-height:310px}.menu-copy h1{font-size:70px}.hero-art{height:90%}.glass-panel{padding:15px}.result-glass>img{height:100px}.mode-card{min-height:120px}.glass-panel h2{margin:6px 0;font-size:28px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001s!important;transition-duration:.001s!important;scroll-behavior:auto!important}}
