/* Original Amor arcade art direction. Motion follows the measured swap/impact/fall phases. */
:root{--font:'Nunito',ui-rounded,system-ui,sans-serif;--arcade-gold:#ffda76;--arcade-ink:#19394b}
h1,h2,h3,.brand,.big-button,.machine-crown,.arcade-caption,.goal-token b,.arcade-stage-label b{font-family:'Fredoka',var(--font);font-weight:600;letter-spacing:0}
.toy-sprite{display:inline-block;object-fit:contain;vertical-align:middle;user-select:none;pointer-events:none}
body[data-view=welcome],body[data-view=puzzle]{background:#153b49 url('../assets/arcade/backdrop.webp') center center/cover fixed;color:#fff9e9}
body[data-view=welcome]::before,body[data-view=puzzle]::before{content:'';position:fixed;inset:0;background:linear-gradient(180deg,#0d233742,#0d34481a 50%,#09273492);pointer-events:none;z-index:-1}
body[data-view=welcome] .topbar,body[data-view=puzzle] .topbar{border-color:#fff4c52b;background:linear-gradient(180deg,#12394bbf,#14394b75);max-width:none;padding-inline:max(24px,calc((100vw - 1380px)/2));color:#fff7df;backdrop-filter:blur(12px)}
body[data-view=welcome] .brand b,body[data-view=puzzle] .brand b{color:#ffdd7f}.brand{font-size:24px}.brand img{filter:drop-shadow(0 0 8px #ffd77566)}
body[data-view=welcome] .nav-button,body[data-view=puzzle] .nav-button{color:#fcf6e7}body[data-view=welcome] .nav-button:hover,body[data-view=puzzle] .nav-button.active,body[data-view=puzzle] .nav-button:hover{background:#ffffff1c;color:#fff0ba;box-shadow:inset 0 0 0 1px #fff3bf36}
body[data-view=welcome] .icon-button,body[data-view=puzzle] .icon-button{color:#fff5d5;background:#132d4580;border-color:#f6d28445;box-shadow:inset 0 2px 2px #ffffff14}
.icon-button[aria-pressed=true]{box-shadow:0 0 14px #ffd97477!important;border-color:#ffe186!important}.music-button span{font-size:25px;line-height:1}
body[data-view=welcome] .collection-count small,body[data-view=puzzle] .collection-count small{color:#eee0bd}body[data-view=welcome] .site-footer,body[data-view=puzzle] .site-footer{color:#fff0d1c4}
body[data-view=welcome] main{padding-top:24px}body[data-view=puzzle] main{padding-top:23px;max-width:1440px;min-height:calc(100svh - 145px)}
body[data-view=puzzle] button:focus-visible,body[data-view=welcome] button:focus-visible{outline-color:#fff5bd}
.festival-tag{display:inline-flex;align-items:center;gap:7px;color:#ffdf92;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.13em}
.arcade-welcome{position:relative;isolation:isolate;border-radius:40px;min-height:590px;overflow:hidden;background:linear-gradient(90deg,#092f49ed,#113a506b 48%,#194b5500 70%);border:1px solid #ffe5a944;box-shadow:0 22px 60px #051e3759,inset 0 0 45px #061d3d2e}
.welcome-festival{position:absolute;inset:0;background:url('../assets/arcade/backdrop.webp') center/cover;z-index:-2}.welcome-festival::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#102d48f7 0%,#12394bcb 30%,transparent 67%);z-index:-1}
.festival-copy{position:relative;width:45%;padding:47px 0 36px 43px}.festival-copy h1{font-size:clamp(68px,7.5vw,106px);line-height:.89;margin:22px 0 20px;letter-spacing:-.03em;text-shadow:0 4px 0 #153648,0 6px 25px #062b3c}.festival-copy h1 em{color:#ffdd81;text-shadow:0 4px 0 #a96a35,0 0 30px #ffb84b55}.festival-copy p{color:#fff4e2;font-size:20px;font-weight:700;line-height:1.45}
.festival-copy .welcome-actions{margin:25px 0 28px;gap:12px}.festival-copy .big-button{min-width:0;font-size:18px;border-radius:21px;padding:13px 22px}.big-button.pink{background:linear-gradient(#ff9ac0 0%,#f35995 48%,#dc327b);border:2px solid #ffc3d8;box-shadow:0 6px 0 #922052,0 9px 20px #731e5b4d,inset 0 2px 2px #fff9;--tint:#ee4a91;text-shadow:0 2px 1px #b62362}.big-button.pink:hover{box-shadow:0 8px 0 #922052,0 14px 25px #ec67a35c,inset 0 2px 2px #fff9}.big-button.mint{background:linear-gradient(#ceffda,#7ce2c5 55%,#4dc8b1);border:2px solid #daffdd;box-shadow:0 6px 0 #218b83,0 10px 20px #092b3933,inset 0 2px 2px #fff9;color:#134f53;--tint:#6ddac1}
.festival-copy .mode-select{display:grid;grid-template-columns:1fr 1fr;gap:9px}.festival-copy .mode-select legend{color:#e7e4e2;font-size:11px;margin-bottom:9px}.festival-copy .mode-card{padding:10px 8px;color:#fff9e7;background:#14394bd9;border-color:#ffdf9347;gap:7px}.festival-copy .mode-card.chosen{border-color:#ffe293;background:#37576bdd;box-shadow:0 0 15px #ffe07d26}.festival-copy .mode-card b{font-size:11px}.festival-copy .mode-card small{font-size:9px;color:#f1e4d9}.festival-copy .mode-card>svg:last-child{color:#ffe7a2}.festival-copy .welcome-note{color:#ffedcb;font-size:11px}
.hero-amor,.hero-lina,.hero-pony,.hero-bear,.hero-ball{position:absolute;filter:drop-shadow(0 14px 10px #072c3f59);transform-origin:bottom center}.hero-lina{height:72%;width:auto;left:64%;bottom:7%;z-index:1}.hero-amor{width:22%;left:48%;bottom:7%;z-index:3}.hero-pony{width:23%;right:0;bottom:5%;z-index:4}.hero-pony img{width:100%;height:auto}.hero-bear{width:13%;right:19%;bottom:4%;z-index:4}.hero-bear img{width:100%;height:auto}.hero-ball{width:9%;left:46%;bottom:2%;z-index:4}.hero-ball img{width:100%;height:auto}.festival-halo{position:absolute;width:50%;height:75%;left:49%;bottom:0;background:radial-gradient(ellipse,#fff3a344,#f5ae740a 60%,transparent 70%);filter:blur(20px)}
.theme-preview{margin-top:19px}.theme-chip{background:#173d50e8;color:#fff6e4;border-color:#f6dc8a5c;box-shadow:0 4px 0 #082a3c,inset 0 1px 2px #fff2}.theme-chip .toy-sprite{width:48px;height:48px;filter:drop-shadow(0 3px 2px #08263b66)}
.festival-fireflies i{position:absolute;width:5px;height:5px;border-radius:50%;background:#fff6ac;box-shadow:0 0 13px 4px #ffce6377;left:53%;top:24%;animation:firefly 5s ease-in-out infinite}.festival-fireflies i:nth-child(2){left:78%;top:37%;animation-delay:-2s}.festival-fireflies i:nth-child(3){left:61%;top:62%;animation-delay:-4s}.festival-fireflies i:nth-child(4){left:91%;top:16%;animation-delay:-1s}
.arcade-layout{display:grid;grid-template-columns:minmax(170px,235px) minmax(320px,490px) minmax(150px,215px);gap:28px;max-width:1080px;align-items:center;margin:0 auto}
.arcade-story{align-self:center;position:relative}.arcade-story .back-button{color:#fff0d3;margin-bottom:25px;background:#102d428f;display:inline-flex;padding:0 13px;border:1px solid #e7ce8844;border-radius:16px;font-size:12px}.arcade-story h1{font-size:38px;line-height:1.05;color:#fff5ce;text-shadow:0 3px 0 #24414a;margin:11px 0 13px}.arcade-story>p{color:#fff2d8;line-height:1.6;font-size:14px;max-width:210px;text-shadow:0 1px 2px #08273a}
.arcade-amor{position:relative;margin:15px -24px 0 -14px;transform-origin:50% 92%;filter:drop-shadow(0 12px 8px #052f484f)}.arcade-amor img{width:100%}.amor-cheer{position:absolute;right:2%;top:3%;transform:rotate(6deg);font-family:'Fredoka',var(--font);font-size:18px;color:#2f4960;background:#fff8d7;padding:8px 15px;border:2px solid #ffdb79;border-radius:18px;z-index:1;box-shadow:0 3px 10px #092d4038}.amor-cheer::after{content:'';position:absolute;bottom:-8px;left:20px;width:13px;height:13px;background:#fff8d7;transform:rotate(45deg);border-right:2px solid #ffdb79;border-bottom:2px solid #ffdb79}.arcade-amor.cheering{animation:amor-cheer .6s cubic-bezier(.22,.8,.3,1)}
.arcade-stage-label{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;color:#fff2d5}.arcade-stage-label b{background:linear-gradient(#ffe999,#ffb957);color:#704328;border:2px solid #fff1b9;box-shadow:0 3px 0 #976333;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:22px}.arcade-stage-label span{font-size:11px;color:#f3d4b3}
.arcade-machine{position:relative;isolation:isolate;width:100%;padding:14px 18px 17px;background:linear-gradient(145deg,#70477d,#3d3968 45%,#354e72);border:3px solid #fbd67c;border-radius:34px;box-shadow:0 7px 0 #7e5b49,0 12px 0 #153c4e,0 25px 45px #082b4d99,inset 0 2px 3px #ffecba80,inset 0 -5px 12px #1c244ca1}
.arcade-machine::before{content:'';position:absolute;inset:5px;border:1px solid #ffd78160;border-radius:27px;pointer-events:none;z-index:-1}.machine-crown{display:flex;align-items:center;justify-content:center;gap:12px;color:#ffe496;height:29px;margin-bottom:11px;font-size:16px;text-shadow:0 2px #755746;letter-spacing:.12em}.machine-crown span{height:1px;flex:1;background:linear-gradient(90deg,transparent,#f6d989)}.machine-crown span:last-child{rotate:180deg}.machine-crown svg{filter:drop-shadow(0 0 6px #ffdd825e);width:19px}.machine-crown b{font-weight:500}
.arcade-mission{background:linear-gradient(110deg,#f8efd8,#fff9e7);color:#234455;border-radius:19px;padding:10px 14px 12px;border:1px solid #fffac5;box-shadow:0 3px 0 #21234555,inset 0 2px 3px #fff}.goals-heading{display:flex;justify-content:space-between;align-items:center;font-size:9px;font-weight:900;letter-spacing:.14em;color:#726273;margin-bottom:3px}.goals-heading #move-count{letter-spacing:0;font-size:11px;color:#624571}.goals{display:flex;align-items:center;justify-content:space-around;gap:12px;min-height:51px}.goal-token{display:flex;align-items:center;gap:9px;position:relative;transform-origin:center}.goal-token>.toy-sprite,.goal-token>svg{width:48px;height:48px;filter:drop-shadow(0 3px 2px #84673e2e)}.goal-token>span{display:flex;flex-direction:column}.goal-token b{font-size:26px;line-height:1}.goal-token small{font-size:10px;color:#7c6972;margin-top:3px}.goal-token i{display:none;width:24px;height:24px;background:#3cbd99;color:#fff;border-radius:50%;place-items:center;margin-left:3px}.goal-token.complete i{display:grid}.goal-token.complete b{color:#278775}.arcade-goal-track{height:5px;margin-top:7px;background:#d7cfcc;box-shadow:inset 0 1px 2px #5d4b6d33;border-radius:10px;overflow:hidden}.arcade-goal-track span{display:block;height:100%;background:linear-gradient(90deg,#5cdbcf,#bfffae);border-radius:10px;transition:width .22s}
.arcade-machine .board-instruction{color:#f3e9ef;font-size:11px;line-height:1.4;text-align:center;margin:12px 0 9px;min-height:16px}.arcade-board-rim{position:relative;border-radius:23px;padding:10px;background:linear-gradient(145deg,#ffeab7,#d7a95d 33%,#f9de99 70%,#fff2c1);box-shadow:0 4px 0 #996a50,inset 0 2px 2px #fff5c9,0 0 20px #ffc26922}.arcade-board{position:relative;aspect-ratio:1;border-radius:15px;background:linear-gradient(135deg,#16364c,#102b40);box-shadow:inset 0 3px 8px #061d32ba;border:2px solid #775874;isolation:isolate;touch-action:none;overflow:visible}
.arcade-slots,.arcade-pieces{position:absolute;inset:4px}.arcade-slots i,.arcade-tile{position:absolute;left:calc(var(--col)*100%/var(--size));top:calc(var(--row)*100%/var(--size));width:calc(100%/var(--size));height:calc(100%/var(--size));}.arcade-slots i{border:2px solid #17364d;box-shadow:inset 0 2px 2px #062137;border-radius:17%;background:#29485b}.arcade-tile{min-height:0;padding:3px;outline-offset:-4px!important;border-radius:18%;background:transparent;touch-action:none;transform-origin:center;z-index:1;transition:filter .12s;will-change:auto;}
.arcade-tile::before{content:'';position:absolute;inset:4%;border:1px solid #ffffff81;border-radius:20%;background:linear-gradient(145deg,#defbfd,#b0e5ea);box-shadow:0 3px 0 #466f87,inset 0 2px 2px #fff9,inset 0 -3px 5px #6485a32b;z-index:-1}.arcade-tile.type-doll::before{background:linear-gradient(145deg,#f4deff,#d5b3ee)}.arcade-tile.type-bear::before{background:linear-gradient(145deg,#fff2b9,#f0cf80)}.arcade-tile.type-bow::before{background:linear-gradient(145deg,#ffdce5,#f6a7c4)}.arcade-tile.type-ball::before{background:linear-gradient(145deg,#deeeff,#a7c8ee)}.arcade-tile .tile-toy{display:block;width:100%;height:100%;position:relative;z-index:2;pointer-events:none;filter:drop-shadow(0 3px 1px #34476f33)}.arcade-tile .toy-sprite{width:100%;height:100%;object-fit:contain;padding:1px}.arcade-tile:hover{filter:brightness(1.08);z-index:3}.arcade-tile:active .tile-toy{transform:scale(.91)}.tile-shine{position:absolute;inset:6%;border-radius:18%;box-shadow:inset 1px 2px 1px #fff9;pointer-events:none}.arcade-tile.selected::after,.arcade-tile.hinted::after{content:'';position:absolute;inset:0;border-radius:20%;border:3px solid #fff8b3;box-shadow:0 0 14px #ffe576,inset 0 0 9px #fff6a2;z-index:4;pointer-events:none}.arcade-tile.hinted{animation:hint-breathe 1.8s ease-in-out infinite}.arcade-tile:focus-visible{outline:3px solid #fffef1;z-index:6}
.arcade-tile.blanket{background:repeating-linear-gradient(45deg,#ca83c4 0 6px,#ffb7cb 6px 12px);box-shadow:inset 0 0 0 2px #ffdcf5}.arcade-tile.blanket::before{inset:10%;border-style:dashed}.arcade-tile.blanket-2::before{box-shadow:0 3px 0 #85659d,0 5px 0 #fff6d1,inset 0 2px 2px #fff8}
.power-mark{display:none;position:absolute;right:0;bottom:-1px;z-index:4;width:29%;aspect-ratio:1;border-radius:50%;background:linear-gradient(#fffabe,#ffd36b);border:1px solid #fffae1;box-shadow:0 0 8px #fff2a6;color:#7d4b72;align-items:center;justify-content:center}.power-mark svg{width:80%;height:80%}.power .power-mark{display:flex}.power::before{border:2px solid #fff7a7;box-shadow:0 0 10px #ffe77c90,inset 0 0 13px #fff4aa!important}.power-row .tile-toy::after{content:'';position:absolute;top:46%;left:-2%;right:-2%;height:8%;background:#fff8a6;box-shadow:0 0 10px #ffbc5e;border-radius:10px}.power-burst .tile-toy::before{content:'✦';position:absolute;left:-7%;top:-10%;font-size:28px;color:#fffec3;text-shadow:0 0 9px #ffb56f}.power-rainbow::before{background:conic-gradient(#ffd076,#ff9bd8,#ad91ed,#81e9e5,#bdffb6,#ffd076)!important;box-shadow:0 0 15px #c6e4ff!important}.power-rainbow .tile-toy{filter:drop-shadow(0 0 6px #fff9)}
.arcade-particles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:12}.power-ring{position:absolute;width:72%;aspect-ratio:1;border:7px solid #fff4a9;border-radius:50%;box-shadow:0 0 25px #ffdf8d,inset 0 0 22px #ffc6e3;pointer-events:none;z-index:10}.power-ring.rainbow{width:140%;border-color:#b8ffed;box-shadow:0 0 27px #d5a9ff,inset 0 0 30px #ffadbe}.power-ring.little{width:25%;border-width:3px}.power-beam{position:absolute;height:9%;margin-top:-4.5%;left:-5%;right:-5%;background:linear-gradient(transparent,#fff1a5 35%,#fff 50%,#ffe7a8 65%,transparent);box-shadow:0 0 25px #ffc391;z-index:11;pointer-events:none}.arcade-caption{position:absolute;top:44%;left:50%;width:120%;text-align:center;font-size:clamp(23px,3vw,39px);color:#fff8b0;text-shadow:0 3px #a4478b,0 5px 0 #462a68,0 0 20px #fe90bf;-webkit-text-stroke:1px #a34a8f;z-index:18;pointer-events:none;opacity:0;line-height:1;transform:translate(-50%,-50%)}.goal-flight{position:fixed;width:42px;height:42px;pointer-events:none;z-index:250;filter:drop-shadow(0 0 10px #ffeaa5)}.goal-flight img,.goal-flight svg{width:100%;height:100%}
.arcade-machine .puzzle-feedback{color:#fff0d8;justify-content:center;text-align:center;min-height:43px;font-size:11px;line-height:1.3;padding:11px 3px 6px}.arcade-machine .board-tools{display:flex;gap:9px}.arcade-machine .tool-button{background:linear-gradient(#747297,#4b527c);color:#fff8da;border:1px solid #c4b1ba;box-shadow:0 3px 0 #262d52,inset 0 1px 2px #e5d3cc66;min-height:45px;border-radius:14px;font-weight:800;flex:1;font-size:12px;display:flex;align-items:center;justify-content:center;gap:7px}.arcade-machine .tool-button:hover{filter:brightness(1.13)}.arcade-machine .tool-button:active{translate:0 2px}.arcade-machine .tool-button svg{width:20px}
.arcade-prize{text-align:center;padding:15px 0;align-self:center}.arcade-prize>.festival-tag{font-size:10px;letter-spacing:.08em;justify-content:center}.prize-pedestal{position:relative;isolation:isolate;margin:25px -10px 17px;aspect-ratio:1;display:grid;place-items:center;filter:drop-shadow(0 9px 10px #072b3f7d)}.prize-pedestal>.toy-sprite,.prize-pedestal>svg{width:86%;height:86%;z-index:1;animation:prize-float 4s ease-in-out infinite}.prize-pedestal::after{content:'';position:absolute;left:8%;right:8%;bottom:4%;height:21%;border-radius:50%;background:linear-gradient(#ffe89c,#d99a5f);border:2px solid #ffedab;box-shadow:0 7px 0 #936649,0 11px 0 #284a5f;z-index:0}.prize-aura{position:absolute;inset:-5%;border-radius:50%;background:radial-gradient(#fff4b55c,#f9b1cb18 55%,transparent 70%);z-index:-1}.prize-star{position:absolute;color:#fff5b2;text-shadow:0 0 15px #ffd36c;font-size:35px;z-index:3;animation:star-orbit 4s ease-in-out infinite}.prize-star.one{top:5%;right:0}.prize-star.two{left:4%;bottom:20%;font-size:24px;animation-delay:-2s}.arcade-prize h2{font-size:24px;color:#fff3cb;text-shadow:0 2px #25404c}.arcade-prize p{font-size:12px;color:#fff0d3;margin:9px 5px 20px}.arcade-progress{display:flex;flex-direction:column;gap:3px;padding:12px;background:#0d33488c;border:1px solid #e3ce8847;border-radius:20px;max-width:160px;margin:0 auto 17px}.arcade-progress b{font-size:27px;line-height:1;color:#ffe18e}.arcade-progress span{font-size:10px;color:#ffe8c3}.arcade-prize .small-button{margin:auto;color:#34546b;font-size:11px;background:#fff1c9;border-color:#ffe6a6;border-radius:16px;box-shadow:0 3px 0 #bc9664}
.reward-dialog{position:relative;isolation:isolate}.reward-reveal .reward-art{height:185px;position:relative;z-index:2}.reward-art>.toy-sprite{height:180px;width:180px;filter:drop-shadow(0 9px 7px #b7787838);animation:reward-pop .65s cubic-bezier(.16,1.35,.4,1)}.reward-rays{background:repeating-conic-gradient(#fff0a580 0deg 12deg,transparent 12deg 30deg);width:300px;height:300px;position:absolute;left:50%;top:-20px;margin-left:-150px;border-radius:50%;mask-image:radial-gradient(black,transparent 70%);animation:reward-rays 15s linear infinite;z-index:0}.reward-reveal h3{position:relative;z-index:3}.collection-item>.toy-sprite{height:56px;width:56px}.level-button>.toy-sprite{width:36px;height:36px}.prize-orbit>.toy-sprite{width:90%;height:90%}
@keyframes firefly{0%,100%{transform:translate(0,0);opacity:.4}50%{transform:translate(12px,-18px);opacity:1}}@keyframes hint-breathe{0%,100%{filter:brightness(1)}50%{filter:brightness(1.16)}}@keyframes prize-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-9px) rotate(3deg)}}@keyframes star-orbit{0%,100%{transform:scale(.8) rotate(0);opacity:.6}50%{transform:scale(1.15) rotate(20deg);opacity:1}}@keyframes amor-cheer{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-17px) rotate(-5deg)}65%{transform:translateY(-4px) rotate(3deg)}}@keyframes reward-pop{0%{transform:translateY(24px) scale(.35);opacity:0}65%{transform:translateY(-9px) scale(1.12);opacity:1}100%{transform:none}}@keyframes reward-rays{to{transform:rotate(360deg)}}
@media(min-width:1500px){.arcade-layout{grid-template-columns:250px 520px 230px;max-width:1180px;gap:45px}.arcade-story h1{font-size:43px}}
@media(max-width:1050px){.arcade-layout{grid-template-columns:180px minmax(320px,460px);max-width:690px;gap:24px}.arcade-prize{display:none}.arcade-story h1{font-size:32px}.arcade-story>p{font-size:12px}.arcade-welcome{min-height:550px}.festival-copy{width:51%;padding:34px 0 30px 28px}.festival-copy h1{font-size:84px}.festival-copy .big-button{font-size:14px;padding:12px 14px}.festival-copy .mode-card>svg:first-of-type{display:none}.hero-lina{left:66%;height:65%;bottom:9%}.hero-pony{width:24%}.hero-amor{left:47%;width:24%}.festival-copy p{font-size:17px}.arcade-prize h2{font-size:21px}}
@media(max-width:700px){body[data-view=welcome] .topbar,body[data-view=puzzle] .topbar{padding:10px 15px;gap:5px}.brand{font-size:19px}.brand img{width:34px;height:34px}.main-nav{gap:3px;margin-left:auto}.nav-button{width:40px;padding:8px}.nav-button span{display:none}.header-tools{gap:4px}.header-tools .icon-button{width:36px;height:38px;min-height:38px;border-radius:12px}.header-tools .icon-button svg{width:20px}.header-tools .collection-count{display:none}body[data-view=puzzle] main{padding:12px 14px 8px}.arcade-layout{display:block;max-width:470px}.arcade-story{display:grid;grid-template-columns:1fr 75px;padding:0 4px 11px;min-height:100px}.arcade-story .back-button{display:none}.arcade-story>.festival-tag{font-size:9px;grid-column:1;align-self:end}.arcade-story h1{font-size:28px;grid-column:1;margin:5px 0 0}.arcade-story>p{display:none}.arcade-amor{position:absolute;right:-4px;top:-14px;width:88px;margin:0;z-index:2}.amor-cheer{display:none}.arcade-stage-label{position:absolute;right:93px;top:5px;font-size:10px;gap:5px}.arcade-stage-label b{height:30px;width:30px;font-size:18px}.arcade-stage-label span{display:none}.arcade-machine{padding:10px 13px 14px;border-radius:27px}.machine-crown{height:24px;font-size:14px;margin-bottom:8px;gap:10px}.machine-crown svg{width:16px}.arcade-mission{padding:8px 12px 10px;border-radius:16px}.goals{min-height:46px}.goal-token>.toy-sprite,.goal-token>svg{width:42px;height:42px}.goal-token b{font-size:23px}.goals-heading{font-size:8px}.goal-token small{font-size:9px}.arcade-machine .board-instruction{font-size:10px;margin:10px 0 8px}.arcade-board-rim{padding:8px;border-radius:20px}.arcade-board{border-radius:13px}.arcade-slots,.arcade-pieces{inset:3px}.arcade-tile{padding:2px}.arcade-tile .toy-sprite{padding:0}.arcade-machine .puzzle-feedback{font-size:10px;min-height:40px;padding:10px 2px 6px}.arcade-machine .tool-button{font-size:11px;gap:5px;min-height:44px;border-radius:12px}.arcade-machine .board-tools{gap:7px}.arcade-caption{font-size:27px}.arcade-machine .tool-button svg{width:18px}body[data-view=puzzle] .site-footer{margin-top:12px;font-size:9px;padding-bottom:13px}.arcade-story .festival-tag{padding-top:12px}
body[data-view=welcome] main{padding:12px 14px 6px}.arcade-welcome{min-height:790px;border-radius:29px;display:flex;align-items:flex-end;background:transparent}.welcome-festival{background-position:65% 0;background-size:auto 58%;background-repeat:no-repeat;background-color:#133c50}.welcome-festival::after{background:linear-gradient(180deg,transparent 25%,#143a4b00 36%,#12384ded 48%,#12384d 60%)}.festival-copy{padding:0 20px 24px;width:100%;text-align:center}.festival-copy h1{font-size:67px;line-height:.91;margin:12px 0 14px}.festival-copy h1 br{display:none}.festival-copy h1 em{margin-left:8px}.festival-copy>.festival-tag{font-size:10px}.festival-copy p{font-size:15px;line-height:1.35}.festival-copy p br{display:none}.festival-copy .welcome-actions{flex-direction:column;gap:13px;margin:21px 0 24px}.festival-copy .big-button{width:100%;max-width:none;min-height:54px;font-size:18px;flex:none}.festival-copy .big-button.mint{min-height:45px;font-size:14px}.festival-copy .mode-card b{font-size:11px}.festival-copy .mode-card small{font-size:9px}.festival-copy .mode-card{padding:10px 7px}.festival-copy .welcome-note{font-size:10px;margin-top:18px}.hero-lina{height:37%;width:auto;left:47%;bottom:auto;top:2%}.hero-amor{width:40%;left:9%;bottom:auto;top:18%}.hero-pony{width:37%;right:-1%;bottom:auto;top:20%}.hero-bear{width:20%;right:30%;bottom:auto;top:29%}.hero-ball{width:16%;left:7%;top:31%;bottom:auto}.festival-halo{left:0;top:8%;height:32%;width:100%}.festival-fireflies{display:none}.theme-preview{gap:10px;margin-top:14px;grid-template-columns:1fr 1fr}.theme-chip{font-size:11px;padding:10px 12px;gap:8px;border-radius:18px}.theme-chip .toy-sprite{width:35px;height:35px}.theme-chip>svg:last-child{width:16px}.reward-reveal .reward-art{height:170px}.reward-art>.toy-sprite{width:165px;height:165px}}
@media(max-width:370px){body[data-view=puzzle] main{padding:9px 9px 5px}.arcade-machine{padding:9px 10px 13px}.arcade-story h1{font-size:25px}.arcade-story{min-height:90px}.arcade-stage-label{right:85px;font-size:9px}.arcade-amor{width:78px}.arcade-machine .board-instruction{font-size:9px}.festival-copy h1{font-size:59px}.header-tools{gap:2px}.header-tools .icon-button{width:32px}.brand{font-size:16px}.brand img{width:29px}.main-nav .nav-button{width:33px}.festival-copy .mode-card b{font-size:10px}}
@media(prefers-reduced-motion:reduce){.festival-fireflies i,.prize-pedestal>.toy-sprite,.prize-pedestal>svg,.prize-star,.arcade-tile.hinted,.arcade-amor.cheering,.reward-art>.toy-sprite,.reward-rays{animation:none!important}.arcade-goal-track span{transition:none}}
.reduce-motion .festival-fireflies i,.reduce-motion .prize-pedestal>.toy-sprite,.reduce-motion .prize-pedestal>svg,.reduce-motion .prize-star,.reduce-motion .arcade-tile.hinted,.reduce-motion .arcade-amor.cheering,.reduce-motion .reward-art>.toy-sprite,.reduce-motion .reward-rays{animation:none!important}.reduce-motion .arcade-goal-track span{transition:none}
/* Keep every control visible at common laptop heights; board tiles remain at least 44px. */
@media(min-width:701px) and (max-height:850px){
 body[data-view=puzzle] main{padding-top:15px;min-height:0}.arcade-layout{grid-template-columns:minmax(160px,210px) minmax(320px,calc(100svh - 350px)) minmax(145px,195px);gap:26px;max-width:1060px;justify-content:center}.arcade-machine{padding:9px 13px 13px;border-radius:28px}.machine-crown{height:20px;margin-bottom:6px;font-size:13px}.machine-crown svg{width:16px}.arcade-mission{padding:7px 11px 9px;border-radius:16px}.goals{min-height:40px}.goal-token>.toy-sprite,.goal-token>svg{width:40px;height:40px}.goal-token b{font-size:23px}.goal-token small{font-size:9px}.goals-heading{font-size:8px}.arcade-goal-track{margin-top:5px}.arcade-machine .board-instruction{font-size:10px;margin:9px 0 7px;min-height:14px}.arcade-board-rim{padding:8px;border-radius:19px}.arcade-machine .puzzle-feedback{min-height:36px;padding:9px 1px 5px;font-size:10px}.arcade-machine .tool-button{min-height:44px;font-size:11px}.arcade-machine .tool-button svg{width:18px}.arcade-story h1{font-size:34px}.arcade-story .back-button{margin-bottom:18px}.arcade-amor{max-width:230px}.arcade-prize h2{font-size:22px}body[data-view=puzzle] .site-footer{margin-top:16px;padding-top:5px;padding-bottom:10px}.arcade-prize .prize-pedestal{margin-top:19px}.arcade-story>p{font-size:12px}
}
@media(min-width:701px) and (max-width:1050px) and (max-height:850px){.arcade-layout{grid-template-columns:170px minmax(320px,calc(100svh - 350px));max-width:650px}}
.big-button.pink{background:linear-gradient(#c24680,#bb3d76 55%,#af2b68);text-shadow:0 1px 1px #74214d;border-color:#ffb6d1}.big-button.pink:hover{filter:none}
body[data-view=puzzle] dialog button:focus-visible,body[data-view=welcome] dialog button:focus-visible{outline-color:#663487}
@media(max-width:700px){.arcade-story{min-height:82px;padding-bottom:9px}.arcade-story h1{font-size:26px}.arcade-amor{top:-11px;width:78px}.arcade-stage-label{right:85px}.arcade-story>.festival-tag{padding-top:5px}}

.arcade-board.power-charging::after{content:'';position:absolute;inset:0;border-radius:13px;background:#10233b65;z-index:6;pointer-events:none}.arcade-tile.active-power{z-index:9}.power-link{position:absolute;height:3px;transform-origin:left center;background:linear-gradient(90deg,#fff9bf,#e8a5ff88,#a5fff366);box-shadow:0 0 8px #ffeabb;z-index:8;pointer-events:none}.rim-lights{position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:0 0 18px #ffd98335}.rim-lights::before,.rim-lights::after{content:'';position:absolute;left:14px;right:14px;height:5px;background:radial-gradient(circle,#fff8c1 0 2px,transparent 2.5px) 0 0/26px 5px;filter:drop-shadow(0 0 3px #ffe891)}.rim-lights::before{top:1px}.rim-lights::after{bottom:1px}

.arcade-machine .puzzle-feedback>span{color:#fff1d7}.arcade-machine .puzzle-feedback{font-weight:700}.arcade-story>p,.arcade-prize p{text-shadow:0 1px 3px #0b2b3b,0 0 10px #0b2b3b99}

.arcade-pieces{overflow:hidden;border-radius:12px}body[data-view=puzzle] .site-footer{display:none}
@media(max-width:700px){body[data-view=puzzle] .topbar,body[data-view=welcome] .topbar{padding:10px 12px;gap:4px}.brand{font-size:17px;gap:6px;flex:0 0 auto}.brand img{width:30px;height:30px}.brand span{white-space:nowrap}.main-nav{gap:2px}.main-nav .nav-button{width:33px;min-height:40px;padding:6px}.header-tools{gap:3px}.header-tools .icon-button{width:32px;min-height:40px;height:40px}.header-tools .icon-button svg{width:19px}.music-button span{font-size:23px}}
@media(max-width:360px){body[data-view=puzzle] .topbar,body[data-view=welcome] .topbar{padding:9px 10px;gap:3px}.brand{font-size:15px;gap:5px}.brand img{width:28px;height:28px}.main-nav .nav-button{width:29px}.header-tools .icon-button{width:29px}.header-tools{gap:1px}}

.arcade-play{position:relative;overflow:hidden}.arcade-play::before{content:'';position:absolute;inset:-30% auto -30% -45%;width:35%;transform:skewX(-18deg);background:linear-gradient(90deg,transparent,#fff7,transparent);pointer-events:none;animation:cta-sheen 4.5s .6s 2;opacity:0}@keyframes cta-sheen{0%,65%{translate:0;opacity:0}70%{opacity:.65}100%{translate:480%;opacity:0}}.reduce-motion .arcade-play::before{animation:none}@media(prefers-reduced-motion:reduce){.arcade-play::before{animation:none}}

@media(min-width:701px){.hero-amor{width:18%;left:50%}}@media(max-width:700px){.hero-amor{width:32%;left:12%;top:21%}}
.reward-reveal .reward-rays{transform:none;margin-left:-150px;top:-20px}

.power .power-mark{display:none}.power-row .tile-toy::after,.power-burst .tile-toy::before{display:none}.arcade-tile .power-sprite{padding:1%;filter:drop-shadow(0 1px 3px #ffd68c77)}

.power-beam.vertical{top:-5%;bottom:-5%;height:110%;right:auto;width:9%;margin-top:0;margin-left:-4.5%;background:linear-gradient(90deg,transparent,#fff1a5 35%,#fff 50%,#ffe7a8 65%,transparent)}.power-beam.wide{height:calc(300%/var(--size));margin-top:calc(-150%/var(--size));opacity:.8}.power-beam.vertical.wide{width:calc(300%/var(--size));margin-left:calc(-150%/var(--size));height:110%;margin-top:0}
@media(max-width:360px){body[data-view=puzzle] main{padding-inline:2px}.arcade-machine{padding-inline:7px}.arcade-story{padding-inline:8px}}
.arcade-caption{width:100%}
@media(max-width:360px){.arcade-amor{right:0}}
body[data-view=welcome],body[data-view=puzzle]{min-height:100svh}
