:root{font-family:Trebuchet MS,system-ui,sans-serif;color:#fff8ff;background:#0b0b2f;font-synthesis:none}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{overscroll-behavior:none}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #72f2ff;outline-offset:4px}.hidden{display:none!important}.app-shell{position:relative;width:100%;max-width:560px;min-height:100dvh;margin:0 auto;overflow:hidden;background:radial-gradient(circle at 50% -12%,#6d2b99 0,transparent 38%),radial-gradient(circle at -18% 65%,#19298e 0,transparent 40%),radial-gradient(circle at 112% 69%,#6c2d8a 0,transparent 41%),linear-gradient(180deg,#0e1037,#171345 56%,#111237);box-shadow:0 0 70px #060223}.app-shell:before,.app-shell:after{content:"";position:absolute;bottom:-35px;width:190px;height:220px;opacity:.55;pointer-events:none;background:conic-gradient(from 10deg,transparent 0 12%,#4c40d7 13% 18%,transparent 19% 30%,#d854ef 31% 37%,transparent 38% 46%,#43acfa 47% 53%,transparent 54%);filter:blur(2px)}.app-shell:before{left:-105px;transform:rotate(-12deg)}.app-shell:after{right:-105px;transform:scaleX(-1) rotate(-12deg)}.starfield{position:absolute;inset:0;pointer-events:none;opacity:.75;background-image:radial-gradient(circle,#ff78eb 1px,transparent 1.5px),radial-gradient(circle,#69d5ff 1px,transparent 1.5px),radial-gradient(circle,#fff0a5 1px,transparent 1.5px);background-size:92px 137px,131px 161px,167px 209px;background-position:14px 32px,80px 94px,52px 143px;-webkit-mask-image:linear-gradient(#000,#0007);mask-image:linear-gradient(#000,#0007)}.screen{position:relative;z-index:1;width:100%;min-height:100dvh;padding:max(14px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom))}.glass{background:linear-gradient(145deg,#2b195eeb,#181744ef 62%,#1b1747ed);border:2px solid #aa61ff;box-shadow:inset 0 1px 13px #ee9cff44,0 0 16px #9f4bfa7d,0 10px 30px #0905217a}.topline{display:flex;align-items:center;justify-content:flex-end;height:54px}.top-actions{display:flex;gap:7px}.top-actions .icon-button{width:42px;height:42px;font-size:21px}.storage-warning{color:#ffe38b!important;font-weight:800}.personal-record strong{color:#ffdf75}.test-label{margin-right:auto;font-size:10px;letter-spacing:.15em;font-weight:900;color:#d2c6f1}.icon-button{width:48px;height:48px;color:#fff;border:2px solid #bc79ff;border-radius:16px;background:linear-gradient(140deg,#6f30b7,#31166f);font-size:26px;font-weight:900;box-shadow:inset 0 2px 7px #fff7,0 0 17px #ba61ff99}.brand{position:relative;text-align:center;margin:10px 0 18px;line-height:.87;filter:drop-shadow(0 8px 4px #5e1367)}.brand-star{position:absolute;top:-13px;left:52%;color:#ffe777;font-size:31px;text-shadow:0 0 15px #ffad2c;transform:rotate(12deg)}.brand-fortune{font-size:clamp(53px,13vw,82px);font-weight:900;font-style:italic;letter-spacing:-.065em;color:#ffb21b;-webkit-text-stroke:2px #a83337;text-shadow:0 3px 0 #ffe978,0 7px 0 #922086,0 0 18px #ffa321}.brand-match{margin-left:80px;font-size:clamp(49px,12vw,75px);font-weight:900;font-style:italic;color:#fff8ff;-webkit-text-stroke:1px #8d53ff;text-shadow:0 5px 0 #8226bd,0 0 19px #e54fff}.home-stat{width:min(86%,390px);min-height:77px;margin:0 auto 20px;padding:10px 18px;border-radius:25px;display:flex;align-items:center;gap:17px}.home-stat .trophy{font-size:42px;filter:drop-shadow(0 0 6px #ffc022)}.home-stat strong{display:block;font-size:29px;line-height:1.1;color:#ffc938;text-shadow:0 0 13px #f9a529}.resume-summary{margin:-9px auto 12px;text-align:center;color:#dcf6ff;font-size:13px;font-weight:900;text-shadow:0 0 9px #63d9ff}.eyebrow{display:block;font-size:10px;font-weight:900;letter-spacing:.13em;color:#e5d9ff}.home-board{height:min(34vh,330px);min-height:225px;max-height:330px;border-radius:36px;padding:18px 20px;display:flex;flex-direction:column;justify-content:space-around;overflow:hidden}.mini-row{display:flex;align-items:center;justify-content:space-around;height:37px;border-radius:20px;background:linear-gradient(90deg,#6253e211,#263bb326,#994eee11)}.mini-row.reverse{transform:translate(6px)}.mini-tile{display:inline-grid;place-items:center;width:30px;height:30px;font-size:30px;font-weight:900;filter:drop-shadow(0 0 6px currentColor)}.color-0{color:#cd60ff}.color-1{color:#47d5ff}.color-2{color:#42ea8c}.color-3{color:#ffcf44}.color-4{color:#f550bf}.color-5{color:#2cc2ff}.play-button,.gold-button{color:#fff;border:3px solid #fff0a6;background:linear-gradient(180deg,#fff361,#ffba00 27%,#ff8300 70%,#d9580b);box-shadow:inset 0 3px 7px #fffbd0d6,inset 0 -8px 12px #dd550a,0 0 21px #ffc52b,0 7px 25px #be37ee7a;font-weight:900;font-style:italic;text-shadow:0 2px 1px #b04c23,0 0 8px #fff}.play-button{display:flex;align-items:center;justify-content:center;gap:clamp(8px,2.5vw,18px);width:min(100%,400px);min-height:76px;margin:16px auto 12px;border-radius:50px;font-size:clamp(25px,8vw,39px);white-space:nowrap}.play-button:active,.gold-button:active{transform:translateY(2px) scale(.99)}.play-triangle{flex:0 0 auto;font-size:.87em;color:#fff;-webkit-text-stroke:2px #d67b15}#play-label{white-space:nowrap}.home-actions{margin:0 auto;max-width:440px}.home-hint{display:flex;flex-direction:column;gap:3px;padding:12px 18px;border-radius:22px;text-align:center;font-size:14px;line-height:1.25}.home-hint strong{color:#ffdb79;font-size:18px}.game-screen{display:flex;flex-direction:column;gap:10px}.game-screen.hidden{display:flex!important;position:absolute;inset:0;visibility:hidden;pointer-events:none}.game-header{display:flex;align-items:center;justify-content:space-between;min-height:62px}.game-controls{display:flex;align-items:center;gap:9px}.tiny-brand{font-size:31px;font-weight:900;font-style:italic;line-height:.77;letter-spacing:-.05em;text-shadow:0 3px 0 #962072,0 0 13px #c948ea}.tiny-brand span{display:block;color:#ffc02d;-webkit-text-stroke:1px #a53b29}.tiny-brand strong{margin-left:31px;color:#fff}.score-panel{display:flex;justify-content:space-between;align-items:center;min-height:79px;padding:8px 18px;border-radius:25px}.score-panel strong{display:block;font-size:clamp(29px,8vw,43px);line-height:1;color:#ffc62b;text-shadow:0 0 14px #ffb42c}.score-side{min-width:85px;padding-left:15px;border-left:2px solid #a25ad6;text-align:center}.score-side strong{color:#fff0fd;font-size:26px}.status-line{min-height:25px;text-align:center;font-size:15px;font-weight:800;color:#ffe89b;text-shadow:0 0 9px #e96ff6}.board-frame{position:relative;width:100%;aspect-ratio:480 / 600;max-height:min(67vh,680px);border:3px solid #bd7aff;border-radius:35px;overflow:hidden;background:radial-gradient(circle at 50% 40%,#212260 0,#10143d 70%,#160c42);box-shadow:inset 0 0 30px #8b3ee288,0 0 24px #a85cfcad,0 0 3px 2px #ffe0ff;touch-action:none}.board-glow{position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#7835ce44,transparent 17% 83%,#7835ce44)}#board-canvas{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}#board-canvas canvas{display:block;touch-action:none}.game-bottom{display:flex;flex-direction:column;gap:4px;padding-bottom:8px;text-align:center}.rule-hint{color:#eadbff;font-size:13px;font-weight:800}.performance{color:#a9a0d3;font-size:11px}.pause-overlay{position:fixed;z-index:10;top:50%;left:50%;width:min(100vw,560px);height:100dvh;transform:translate(-50%,-50%);display:grid;place-items:center;padding:26px;background:#0a0826cc;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.pause-card{width:min(100%,350px);border-radius:32px;padding:25px;text-align:center}#settings-overlay .pause-card{max-height:calc(100dvh - 36px);overflow:auto}.pause-card h2{margin:0;font-size:38px;text-shadow:0 0 13px #d96cff}.pause-card p{color:#e8d7fb}.pause-symbol{color:#ffda79;font-size:48px;font-weight:900}.gold-button{width:100%;min-height:57px;border-radius:30px;font-size:26px}.quiet-button{margin-top:10px;color:#fff;background:#3e247d;border:2px solid #bc80ff;border-radius:26px;min-height:51px;width:100%;font-size:21px;font-weight:900}.power-card{width:min(100%,430px);max-height:calc(100dvh - 36px);overflow:auto;border-radius:30px;padding:18px;text-align:center}.power-card h2{margin:0;color:#ffe785;font-size:29px;text-shadow:0 0 15px #ee73ff}.power-card p{margin:6px 0 16px;color:#e6d8fa;font-size:13px}.shop-wallet{display:flex;justify-content:space-around;gap:8px;margin:0 0 14px;padding:9px 6px;border:1px solid #b78aff;border-radius:16px;background:#241759;color:#e5d6ff;font-size:11px;font-weight:800}.shop-wallet span{display:flex;flex-direction:column}.shop-wallet strong{color:#ffd860;font-size:19px}.power-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.power-slot{display:flex;flex-direction:column;gap:5px;min-width:0}.power-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-height:90px;padding:5px;border:2px solid #b66dff;border-radius:18px;color:#fff;background:linear-gradient(145deg,#48228a,#171849);font-size:12px;font-weight:900;box-shadow:inset 0 0 13px #a943f866,0 0 9px #9148e675}.power-item strong{color:#ffdb75;font-size:17px}.power-item:disabled{opacity:.46;cursor:default}.power-icon{color:#ffe37e;font-size:28px;line-height:1;text-shadow:0 0 10px #fc9af0}.use-label{color:#7de9ff;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.buy-button{min-height:37px;border:2px solid #ffe9a4;border-radius:15px;color:#fff;background:linear-gradient(#ffc439,#e87517);font-size:13px;font-weight:900;text-shadow:0 1px 2px #7c2d10}.buy-button:disabled{opacity:.42;filter:grayscale(.7);cursor:default}.shop-message{min-height:22px;color:#ffe8a4;font-size:12px;font-weight:800}.test-penalty-button{width:100%;margin-top:13px;min-height:44px;border:2px solid #ffb4da;border-radius:16px;color:#fff;background:#7a255d;font-size:14px;font-weight:900}.test-penalty-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.test-penalty-grid .test-penalty-button{min-height:50px;padding:4px}.power-card .test-note{margin:7px 0 0;font-size:12px}.landscape-warning{display:none}@media(max-height:700px){.home-board{height:32vh;min-height:225px}.brand{margin:4px 0 12px}.play-button{min-height:67px;margin:14px auto;font-size:clamp(24px,8vw,35px)}.game-screen{gap:6px}.board-frame{max-height:61vh}}@media(orientation:landscape)and (max-height:580px){.landscape-warning{position:absolute;z-index:40;inset:0;display:grid;place-items:center;padding:30px;text-align:center;font-size:28px;font-weight:900;color:#fff;background:#120c3ded}.screen{pointer-events:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
