@font-face{font-family:GameComic;font-style:normal;font-weight:400;font-display:swap;src:url('fonts/video-comic-v1.woff') format('woff')}
:root{color-scheme:light;--blue:#467bc6;--ink:#284f75;--line:#8ac1e8;--gold:#ffd34b;--surface:#e4f6ff;--sans:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;--game-height:100svh}
*{box-sizing:border-box}html{min-width:280px;-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--blue)}body{margin:0;color:white;font-family:var(--sans);background:var(--blue) url('art/video-stars-v1.webp') center/768px auto;overscroll-behavior-y:contain;touch-action:manipulation;-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}
button,a,input{touch-action:manipulation}button{font:inherit;color:var(--ink);border:2px solid #7aabd1;border-radius:12px;min-height:44px;padding:9px 16px;background:#dff4ff;box-shadow:0 3px 0 #28558c40;cursor:pointer;transition:transform .12s,filter .12s}button:active{transform:translateY(2px);box-shadow:none}button:hover{filter:brightness(1.05)}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffe386;outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}.ui-icon{width:24px;height:24px;vertical-align:middle}.icon-button{border:0;background:transparent;box-shadow:none;padding:8px;width:46px;height:46px}.icon-button img{width:30px;height:30px;filter:brightness(0) invert(1);drop-shadow:0 2px 1px #163b65}
main{width:min(100%,540px);min-height:var(--game-height);margin:auto;padding:12px 0 max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column}.home-header{display:flex;gap:14px;align-items:center;padding:0 16px;height:58px;flex:none}.coin{display:flex;align-items:center;gap:6px;border-radius:20px;padding:2px 14px 2px 2px;background:#c8eafa;color:#365b76;border:2px solid #2d609c;height:30px;min-width:94px;font-size:14px}.coin img{width:32px;height:32px;filter:sepia(1) saturate(5)}.station-link{margin-left:auto;font-size:12px;color:#e1f2ff;padding:10px 0}
#home{flex:1;display:flex;flex-direction:column;min-height:0}.home-topline{text-align:center;padding:4px 0 0;flex:none}.home-topline h1{font-size:30px;line-height:1.3;letter-spacing:3px;-webkit-text-stroke:1px #285487;paint-order:stroke fill;text-shadow:0 3px #285487}.home-topline span{display:block;font-size:12px;margin-top:3px;color:#d9efff;letter-spacing:3px}.hero{position:relative;flex:1;display:grid;place-items:center;min-height:310px;margin:10px 0 4px}.album-wrap{position:relative;width:min(86vw,360px);aspect-ratio:3/4}.album-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2;pointer-events:none}.album-window{position:absolute;left:19%;top:22%;width:50%;height:56%;overflow:hidden;z-index:3;background:#bd9c7e}.album-window canvas{width:100%;height:100%;object-fit:cover;display:block}.album-puzzle{position:absolute;inset:0;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(6,1fr)}.album-puzzle img{width:100%;height:100%;object-fit:fill;filter:drop-shadow(0 1px #75543c66)}.album-tabs{position:absolute;left:18%;top:10%;width:52%;display:flex;z-index:4}.album-tabs button{flex:1;border:0;border-radius:22px;padding:3px 6px;min-height:26px;box-shadow:none;background:transparent;font-size:12px}.album-tabs .selected{background:#347bed;color:white;box-shadow:0 2px #1a56a7}.album-title{position:absolute;left:18%;top:81%;width:52%;text-align:center;z-index:4;color:#254969;font-size:15px;white-space:nowrap}.album-progress{position:absolute;left:18%;top:87%;width:52%;text-align:center;color:#36678e;font-size:10px;z-index:4}
.start-wrap{position:relative;align-self:center;margin:4px 0 18px;width:min(70vw,300px);flex:none}.start-button{width:100%;min-height:64px;background:#ffd049;border:2px solid #e7ad27;box-shadow:inset 0 3px #ffe994,0 4px #c48b16;color:white;font-size:27px;font-weight:800;letter-spacing:1px;text-shadow:0 2px #9d7428;-webkit-text-stroke:.6px #a27b31;paint-order:stroke fill;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px}.start-button img{width:34px;height:34px}.win-streak{position:absolute;right:8px;top:-19px;font-size:12px;padding:4px 12px;background:#2d70b8;border:2px solid #c4efff;border-radius:8px;z-index:2}.home-actions{display:flex;justify-content:center;gap:10px;padding:0 15px;margin-bottom:14px}.mode{flex:1;padding:8px 3px;min-height:56px;background:#3a74bd;border-color:#82b7e7;color:white;border-radius:12px;box-shadow:0 3px #2c5a99}.mode b{font-size:13px;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.mode span,.mode>b>.ui-icon+span,.mode>.ui-icon{display:none}.mode .ui-icon{filter:brightness(0) invert(1);width:22px;height:22px}.footer{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:8px 16px;color:#e1ecff;font-size:10px;flex:none}.footer button{border:0;padding:0 4px;min-height:36px;background:transparent;box-shadow:none;color:white;font-size:11px}
body:has(#game:not([hidden])) .home-header{display:none}#game{flex:1;display:flex;flex-direction:column;min-height:0}.battle-heading{height:58px;display:grid;grid-template-columns:56px 1fr 56px;align-items:center;text-align:center;flex:none;padding:0 8px;margin-top:34px}.battle-heading>div{min-width:0}.battle-heading h2{font-size:23px;font-weight:800;letter-spacing:1px;text-shadow:0 2px #255684;-webkit-text-stroke:.5px #244e76;paint-order:stroke fill}.battle-heading #levelMeta{display:block;font-size:10px;color:#e7f0ff;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stats{display:flex;align-items:center;justify-content:center;gap:28px;height:34px;flex:none;font-size:14px}.hearts,.timer{display:inline-flex;align-items:center;gap:7px;padding:2px 12px 2px 4px;background:#2c5c97;border:1px solid #2f609a;border-radius:18px;min-width:86px;justify-content:center;line-height:23px}.hearts .ui-icon{width:28px;height:28px;filter:invert(36%) sepia(89%) saturate(2000%) hue-rotate(335deg) brightness(110%)}.timer .ui-icon{width:24px;height:24px;filter:sepia(1) saturate(6) brightness(1.4)}.urgent{color:#ffe789;animation:blink 1s infinite}.combo{display:none}.difference-dots{display:flex;justify-content:center;gap:7px;min-height:35px;align-items:center;margin:0 0 32px;flex:none}.difference-dot{width:25px;height:25px;border-radius:50%;background:#c3e7f9;border:2px solid #375c8e;color:#6386a0;font-size:17px;line-height:20px;font-weight:800;text-align:center;text-shadow:0 1px white;box-shadow:0 1px 2px #18386b6b}.difference-dot.found{background:#83df40;border-color:#43952c;box-shadow:inset 0 2px #c2ff92,0 2px #306727}.difference-dot img{width:17px;height:17px;filter:brightness(0) invert(1)}
.boards{width:100%;position:relative;flex:none;display:flex;flex-direction:column;background:white;gap:3px;overflow:hidden;isolation:isolate;border-top:2px solid #e5efff;border-bottom:2px solid #e5efff;touch-action:none;user-select:none;-webkit-user-select:none}.board{position:relative;width:100%;aspect-ratio:8/5;overflow:hidden;background:#dae9f1;flex:none}.board canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.lock{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);padding:7px 18px;border-radius:20px;background:#153766dc;color:white;font-size:12px;z-index:5;white-space:nowrap;pointer-events:none}.paused-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#265487f5;color:white;z-index:6}.paused-cover b{font-size:30px}.combo-feedback{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);font-size:26px;font-weight:900;color:#fff481;text-shadow:2px 2px #a55e1d,-1px -1px #a55e1d;z-index:4;pointer-events:none;white-space:nowrap;animation:pop-feedback .7s both}.game-bottom{position:relative;display:flex;align-items:center;justify-content:center;gap:30px;min-height:100px;flex:none;padding:8px 20px 0}.hint-action{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;width:66px;height:76px;padding:4px;background:#4ab9ea;border-color:#256ba5;border-radius:12px;box-shadow:inset 0 2px #b6e9ff,0 3px #225b8a;color:white;font-size:13px;font-weight:700;text-shadow:0 2px #346184}.hint-action>img{width:46px;height:48px;object-fit:contain}.hint-action b{position:absolute;top:-7px;right:-7px;background:#e3663e;border:1px solid #963d30;color:#fff3c2;border-radius:50%;width:21px;height:21px;text-align:center;font-size:12px;line-height:19px;text-shadow:none}.zoom-action{position:absolute;right:26px;top:20px;width:44px;height:44px;min-height:44px;padding:8px;background:#5fc0e7;border:2px solid #3180b7;border-radius:7px;box-shadow:inset 0 2px #c8f3ff,0 2px #2e6698}.zoom-action img{width:26px;height:26px;filter:brightness(0) invert(1)}.quiet-button{color:#e5f4ff;background:transparent;border:0;box-shadow:none;font-size:12px;padding:8px}.game-bottom #restartBtn{position:absolute;left:18px;top:22px}.game-bottom #resetZoom{position:absolute;right:25px;top:65px;min-height:28px;padding:0;font-size:11px}.caption{text-align:center;font-size:10px;line-height:1.6;color:#e0edff;min-height:20px;flex:none}.battle-footer{margin-top:auto;display:flex;justify-content:space-between;padding:4px 14px;flex:none}.battle-footer button{background:transparent;border:0;color:#e4f1ff;box-shadow:none;font-size:11px;min-height:34px;padding:4px 8px}
.modal{margin:auto;border:3px solid #a5d8f3;border-radius:22px;background:#e1f3ff;color:#315579;padding:24px;width:min(92vw,440px);max-height:calc(100svh - 32px);overflow:auto;text-align:center;box-shadow:0 8px #254a7c99}.modal::backdrop{background:#112d5db8}.modal h2{font-size:25px;line-height:1.5}.modal p{font-size:13px;line-height:1.9;white-space:pre-line;margin:12px 0 20px}.modal .big-symbol{font-size:28px;color:#bd8d18;font-weight:800;min-height:30px}.primary{background:#ffd34b;color:#705b23;border-color:#ddb02e;font-weight:800;box-shadow:inset 0 2px #fff19b,0 3px #c5961f}.actions{display:flex;flex-direction:column;gap:12px}.actions button{width:100%;font-size:16px}.result-modal h2{color:#b37a13}.picker-head{display:flex;justify-content:space-between;text-align:left;align-items:flex-start;gap:10px}.picker-head h2{font-size:24px}.picker-head p{font-size:11px;margin:5px 0 18px}.picker-head>button{padding:5px 10px;font-size:12px;min-height:36px}.level-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.level{padding:9px 3px;min-height:72px}.level strong{display:block;font-size:20px}.level span{display:block;font-size:9px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.level em{font-size:9px;font-style:normal;color:#5c7c95;display:block;margin-top:3px}.level.current{background:#ffd34b;border-color:#d5a726}.picker-nav{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:10px;font-size:12px}.picker-nav button{font-size:12px;padding:7px 12px}.settings #sliders{display:grid;gap:18px;margin-bottom:20px}.settings #sliders label{display:grid;grid-template-columns:70px 1fr 42px;align-items:center;gap:10px;font-size:12px;text-align:left}.settings input[type=range]{width:100%;accent-color:#2e8ece}.mute{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;margin:20px 0}.settings>.primary{width:100%}.settings input[type=checkbox]{width:20px;height:20px;accent-color:#2e8ece}.loading{position:fixed;inset:0;background:#467bc6f5;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.loading b{font-size:34px}.loading span{font-size:13px}.loading progress{width:210px;height:12px;accent-color:#ffd34b}#toast{position:fixed;left:50%;bottom:max(35px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:90vw;width:max-content;background:#16365aee;color:white;border-radius:25px;font-size:13px;padding:12px 20px;text-align:center;z-index:90;pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.section-head{display:flex;align-items:center;justify-content:space-between;margin:20px 16px}.daily-list{display:grid;gap:15px;padding:18px}.daily-list button{min-height:80px;text-align:left;font-size:15px;line-height:1.8}.notice,#dailyDate{font-size:12px;line-height:1.8;padding:0 18px}.notice{margin:15px 0}
.rank-dialog{width:min(94vw,600px);text-align:left}.rank-own{display:grid;gap:10px;padding:18px 0;margin:10px 0 15px;border-top:1px solid #93c3e4;border-bottom:1px solid #93c3e4}.rank-own strong{font-size:27px}.rank-own span,.rank-own small{font-size:11px}.rank-own progress{width:100%;height:10px;accent-color:#e6ad21}.rank-dialog #rankStart{width:100%;margin-bottom:10px}.rank-login{display:block;padding:14px;background:#ffd34b;color:#705b23;border-radius:10px;text-align:center;font-weight:700}.rank-dialog #rankNotice{min-height:18px;font-size:12px;margin:10px 0}.rank-rules{font-size:12px;line-height:1.9}.rank-rules p{font-size:11px;margin:10px 0}.rank-list-head{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px}.rank-list-head button{min-height:34px;font-size:11px;padding:4px 12px}.rank-columns,.rank-list li{display:grid;grid-template-columns:32px minmax(0,1fr) 50px 45px;gap:7px;align-items:center;padding:12px 3px;border-bottom:1px solid #bddbec;font-size:12px}.rank-columns{font-size:11px;color:#65869f}.rank-list{padding:0;margin:0;list-style:none}.rank-list li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-list li span:last-child{font-weight:800;color:#b6811a;text-align:right}.rank-list li.rank-empty{display:block;text-align:center;padding:26px 0}.rank-dialog #rankCasual{width:100%;background:transparent}.game-sponsors{flex:none!important;margin:4px 12px!important}.game-sponsors .sponsor-link{border:1px solid #a9d2f35c!important;border-radius:7px!important;background:#366cb660!important;color:#e0efff!important;box-shadow:none!important;min-height:34px!important;padding:5px 8px!important}.game-sponsors .sponsor-name{color:#d4eaff!important;font-size:10px!important;font-weight:400!important}.game-sponsors .sponsor-domain{color:#b4d5f5!important;font-size:9px!important}.game-sponsors .sponsor-badge{color:#c7e0f8!important;background:transparent!important;font-size:8px!important}.game-sponsors .sponsor-arrow{width:12px!important;height:12px!important;filter:brightness(0) invert(1)}.game-sponsors.sponsors-bottom{margin-top:7px!important}.game-sponsors.sponsors-top .sponsor-link{min-height:25px!important;padding:3px 8px!important}.game-sponsors.sponsors-top .sponsor-domain{display:none!important}body:has(#game:not([hidden])) .game-sponsors.sponsors-bottom .sponsor-domain{display:none!important}body:has(#game:not([hidden])) .game-sponsors.sponsors-bottom .sponsor-link{min-height:28px!important}
@keyframes shake{0%,100%{transform:translateX(0)}25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)}}.shake{animation:shake .25s}.revived{animation:revive .5s}@keyframes revive{50%{transform:scale(1.25)}}@keyframes pop-feedback{0%{opacity:0;transform:translate(-50%,-20%) scale(.7)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-100%) scale(1)}}@keyframes blink{50%{opacity:.5}}
@media(min-width:701px){main{max-width:600px;box-shadow:0 0 100px #1c469b35}.hero{max-height:500px}.home-topline h1{font-size:35px}.battle-heading{margin-top:12px}.difference-dots{margin-bottom:16px}.album-wrap{width:360px}}
@media(max-height:760px){.home-topline{display:none}.hero{min-height:250px;margin:0}.album-wrap{width:min(74vw,300px)}.start-wrap{margin-bottom:14px}.start-button{min-height:55px;font-size:24px}.home-actions{margin-bottom:5px}.battle-heading{margin-top:2px;height:48px}.difference-dots{margin-bottom:10px;min-height:29px}.game-bottom{min-height:88px}.battle-footer{padding-top:0}.game-sponsors.sponsors-bottom{margin-top:3px!important}}
@media(max-width:350px){.difference-dots{gap:4px}.difference-dot{width:23px;height:23px;font-size:15px;line-height:19px}.mode b{font-size:11px}.home-actions{gap:6px}.mode .ui-icon{width:19px;height:19px}.album-title{font-size:13px}.stats{gap:15px}}
@media(orientation:landscape) and (max-height:600px){main{max-width:none;width:100%;padding:5px 12px}.home-header{height:42px}.hero{min-height:160px}.album-wrap{width:180px}.home-topline{display:none}.start-wrap{position:absolute;left:65%;top:40%;width:25vw}.home-actions{position:absolute;left:60%;top:65%;width:35vw}.hero{width:60%;align-items:start}.footer{padding-top:0}.battle-heading{margin:0;height:40px}.battle-heading h2{font-size:19px}.battle-heading #levelMeta{display:none}.stats{position:absolute;top:13px;left:65px;gap:10px;height:24px}.hearts,.timer{min-width:65px;font-size:11px;line-height:19px;padding:1px 7px}.hearts .ui-icon{width:20px;height:20px}.timer .ui-icon{width:18px;height:18px}.difference-dots{height:28px;min-height:28px;margin-bottom:3px}.difference-dot{width:21px;height:21px;line-height:17px;font-size:14px}.difference-dot img{width:14px;height:14px}.boards{display:grid;grid-template-columns:1fr 1fr;gap:3px;border:2px solid white;margin:auto}.board{aspect-ratio:8/5}.game-bottom{position:fixed;right:15px;top:95px;width:56px;min-height:160px;padding:0;display:flex;flex-direction:column;justify-content:flex-start;gap:18px;z-index:8}.hint-action{width:48px;height:60px;font-size:10px}.hint-action>img{width:34px;height:34px}.game-bottom #restartBtn{position:static;font-size:0;order:3;padding:6px}.zoom-action{position:static;width:44px;height:40px;order:2}.game-bottom #resetZoom{position:static;order:4}.caption{margin:2px;font-size:9px}.battle-footer{position:absolute;right:12px;bottom:3px;font-size:9px}.battle-footer button{min-height:26px;font-size:9px}#game .game-sponsors{margin:2px auto!important;width:min(75vw,700px)}#game .game-sponsors.sponsors-bottom{width:min(65vw,650px)}.station-link{padding:4px}.home-header .coin{height:25px}.footer{position:relative;margin-top:auto}}
body{background-blend-mode:normal}.album-window{left:15.4%;top:24.2%;width:54.1%;height:51.6%}.album-tabs{left:13.7%;top:11.4%;width:58%}.album-tabs button{background:transparent!important;box-shadow:none!important}.album-tabs .selected{color:white}.album-title{left:15%;top:79%;width:55%}.album-progress{left:15%;top:82.5%;width:55%}.battle-heading{margin-top:10px}.difference-dots{margin-bottom:20px}.battle-footer{min-height:24px;max-height:28px;padding:0 14px}.battle-footer button{min-height:28px;padding:2px 8px}.timer .ui-icon,.coin img{filter:invert(83%) sepia(96%) saturate(1173%) hue-rotate(337deg) brightness(110%)}.caption{min-height:17px;font-size:9px}.game-bottom{min-height:86px}.puzzle-piece{background-image:url('art/video-puzzle-v2.webp');background-size:300% 300%;background-repeat:no-repeat;display:block;width:100%;height:100%}
@media(max-height:760px){.battle-heading{margin-top:0}.difference-dots{margin-bottom:8px}.game-bottom{min-height:86px}}
@media(max-width:430px) and (orientation:portrait){main{padding-top:10px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.battle-heading{height:50px;margin-top:6px}.stats{height:30px}.difference-dots{min-height:31px;margin-bottom:16px}.battle-footer{display:none}.game-bottom{min-height:80px}}
.home-topline h1,.battle-heading h2,.start-button,.result-modal h2,.win-streak{font-family:GameComic,var(--sans);font-weight:400}
body{-webkit-user-select:none;user-select:none}img{-webkit-user-drag:none}input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}
@media(orientation:portrait),(min-height:601px){#home{position:relative}.hero{min-height:0}.album-wrap{width:min(80vw,340px,calc((var(--game-height) - 290px)*.75))}.home-actions{position:absolute;left:0;right:0;top:64%;height:0;display:block;margin:0;padding:0;z-index:5}.home-actions .mode{position:absolute;width:56px;height:60px;min-height:44px;border:0;background:transparent;box-shadow:none;padding:2px;color:#fff;filter:drop-shadow(0 2px 1px #284b81)}.home-actions .mode b{display:flex;flex-direction:column;gap:3px;font-size:10px}.home-actions .mode .ui-icon{width:29px;height:29px;filter:brightness(0) invert(1)}#dailyBtn{left:6px;top:0}#endlessBtn{left:6px;top:65px}#rankEntry{right:6px;top:40px}.start-wrap{width:min(62vw,275px)}.difference-dots{gap:clamp(3px,1.12vw,5px)}.difference-dot{width:clamp(18px,4.9vw,22px);height:clamp(18px,4.9vw,22px);font-size:clamp(14px,3.8vw,17px);line-height:clamp(14px,4vw,18px)}.difference-dot img{width:14px;height:14px}}
@media(orientation:landscape) and (max-height:600px){.battle-heading{margin-top:0}.difference-dots{margin-bottom:3px}.game-bottom{min-height:160px}}
.album-puzzle{grid-template-rows:repeat(5,1fr)}.puzzle-piece{background-size:500% 500%}.album-title{font-size:14px;line-height:18px;top:79.5%}.album-progress{top:86%;line-height:12px}
.result-modal[data-outcome="win"]{background:transparent;border:0;box-shadow:none;color:white;width:min(92vw,380px);padding:12px}.result-modal[data-outcome="win"][open]{display:flex;flex-direction:column;gap:8px}.result-modal[data-outcome="win"] h2{order:1;color:#ffdf77;font-size:34px;text-shadow:0 3px #996021,0 0 12px #ffd9768c}.result-modal[data-outcome="win"] .big-symbol{order:2;font-size:14px;line-height:24px;color:#fff8da;min-height:24px}.result-preview{order:3}.result-preview>img{display:block;width:100%;aspect-ratio:8/5;object-fit:contain;border:3px solid #f7e8c2;background:#fff7e0}.result-album{display:flex;align-items:center;gap:10px;padding:9px;background:#274c74bd;border-radius:0 0 8px 8px}.result-album progress{width:100%;height:13px;accent-color:#77d344}.result-album span{font-size:12px;white-space:nowrap;color:#ffeaae}.result-modal[data-outcome="win"]>p{order:4;font-size:13px;color:#fff3be;line-height:1.8;margin:8px 0}.result-modal[data-outcome="win"] .actions{order:5;width:100%;gap:9px}.result-modal[data-outcome="win"] .actions button{font-size:13px;min-height:42px;background:#d7eafa}.result-modal[data-outcome="win"] .actions .primary{background:#7ad63f;border-color:#53a027;box-shadow:inset 0 2px #b7f085,0 3px #3d7c22;color:white;font-size:18px;text-shadow:0 1px #3f7522}.win-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:6}.win-confetti img{position:absolute;width:15px;height:15px;filter:invert(83%) sepia(96%) saturate(1173%) hue-rotate(337deg) brightness(110%);animation:confetti-fall 2.4s ease-out both}@keyframes confetti-fall{0%{opacity:0;transform:translateY(-20px) rotate(0)}20%{opacity:1}100%{opacity:0;transform:translateY(350px) rotate(240deg)}}
@media(max-height:650px){.result-modal[data-outcome="win"] h2{font-size:26px}.result-preview>img{max-height:150px}.result-modal[data-outcome="win"]>p{margin:2px 0;font-size:11px}.result-modal[data-outcome="win"] .actions{gap:6px}}
.result-modal[data-outcome="win"] h2{font-size:42px}.result-modal[data-outcome="win"] .big-symbol{font-size:16px}.result-modal[data-outcome="win"] .actions{display:grid;grid-template-columns:1fr 1fr}.result-modal[data-outcome="win"] .actions .primary{grid-column:1/-1;justify-self:center;width:60%;min-width:180px;min-height:52px}.result-modal[data-outcome="win"] .actions button:not(.primary){color:#e7f0fb;background:transparent;border:0;box-shadow:none;min-height:36px;font-size:12px;padding:5px 6px}
.home-header{gap:8px}#accountBtn{margin-left:auto;display:grid;place-items:center}.home-header .station-link{margin-left:0;min-height:44px;display:grid;place-items:center}.settings-account{display:block;min-height:44px;line-height:44px;font-size:12px;margin-top:8px}
body{position:relative;isolation:isolate;background-size:512px auto}body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:#467bc6;opacity:.45}.result-modal::backdrop{background:#0a1425d6}.icon-button img{filter:brightness(0) invert(1) drop-shadow(0 2px 1px #163b65)}
@media(orientation:landscape) and (max-height:600px){main{padding-bottom:max(5px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.hero{min-height:0}.album-wrap{width:min(180px,max(96px,calc((var(--game-height) - 180px - env(safe-area-inset-bottom,0px))*.75)))}.game-bottom{right:max(15px,env(safe-area-inset-right))}.battle-footer{right:max(12px,env(safe-area-inset-right));bottom:max(3px,env(safe-area-inset-bottom))}}
@media(max-height:650px){.result-modal[data-outcome="win"] h2{font-size:28px}.result-modal[data-outcome="win"] .actions .primary{min-height:44px}}
@media(orientation:portrait),(min-height:601px){.album-wrap{width:min(85vw,380px,calc((var(--game-height) - 290px)*.75));transform:translateX(8%)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Mobile review: modes, ads and ranking have independent layout space. */
#homeLeaderboard,#battleLeaderboard{min-height:44px;min-width:64px;font:inherit;color:inherit}
#rankEntry b{white-space:nowrap}
#home>.footer button,#home>.footer a{min-height:44px;display:grid;place-items:center}
#home>.footer #homeLeaderboard{padding:4px 8px}
#game>.battle-footer{display:flex;min-height:44px;max-height:none;padding:0 12px;align-items:center;gap:4px}
#game>.battle-footer button{min-height:44px;padding:4px 8px;font-size:11px}
@media(orientation:portrait){
 body:has(#home:not([hidden])) main{height:var(--game-height);min-height:0}
 #home:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:28px minmax(120px,1fr) 56px 52px 44px 44px;gap:4px;min-height:0}
 #home>.home-topline{display:none}
 #home>.sponsors-top{grid-row:1;margin:0 12px!important;align-self:center}
 #home>.hero{grid-row:2;height:100%;width:100%;min-height:0;margin:0;container-type:size}
 #home .album-wrap{width:min(76vw,330px,75cqh)}
 #home>.start-wrap{grid-row:3;align-self:center;justify-self:center;width:min(70vw,275px);margin:0}
 #home .start-button{font-size:20px;min-height:52px;white-space:nowrap;gap:6px;padding:8px 10px}
 #home .start-button img{width:28px;height:28px}
 #home>.home-actions{grid-row:4;position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;height:52px;padding:0 12px;margin:0}
 #home .home-actions .mode{position:static;width:100%;height:52px;min-height:44px;padding:3px;border:1px solid #92c8ef;border-radius:10px;background:#3b75bc;box-shadow:none;filter:none}
 #home .home-actions .mode b{font-size:10px;gap:2px}
 #home .home-actions .ui-icon{width:23px;height:23px}
 #home>.sponsors-bottom{grid-row:5;margin:0 12px!important;align-self:center}
 #home>.footer{grid-row:6;min-height:44px;height:44px;padding:0 12px;margin:0}
}
@media(orientation:portrait) and (min-height:761px){
 #home:not([hidden]){grid-template-rows:48px 28px minmax(120px,1fr) 64px 56px 44px 44px}
 #home>.home-topline{display:block;grid-row:1}
 #home>.sponsors-top{grid-row:2}#home>.hero{grid-row:3}#home>.start-wrap{grid-row:4}
 #home>.home-actions{grid-row:5;height:56px}#home .home-actions .mode{height:56px}
 #home>.sponsors-bottom{grid-row:6}#home>.footer{grid-row:7}
 #home .start-button{min-height:58px;font-size:24px}
}
@media(orientation:landscape) and (max-height:600px){
 body[data-game-landscape="find-ball"][data-view="home"] #home:not([hidden]){grid-template-rows:28px minmax(0,1fr) 56px 44px 44px}
 body[data-game-landscape="find-ball"][data-view="home"] #home>.footer{height:44px;min-height:44px}
 body[data-game-landscape="find-ball"][data-view="game"] #game:not([hidden]){grid-template-rows:40px 28px 26px minmax(0,1fr) 44px 44px}
 body[data-game-landscape="find-ball"][data-view="game"] #game>.battle-footer{height:44px;min-height:44px;max-height:none;width:100%;justify-content:space-between}
 body[data-game-landscape="find-ball"][data-view="game"] #game>#boards{width:min(calc(100% - 100px),calc((var(--game-height) - 206px) * 3.2))!important}
}
