:root{font-family:Arial,Helvetica,sans-serif;color:#12355d;background:#e9f6ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-weight:700;cursor:pointer;border:1px solid #c1dced;background:#fff;color:#164d80;border-radius:14px;min-height:48px;padding:12px 18px;touch-action:manipulation}button:hover{background:#eaf6ff}button:focus-visible,a:focus-visible{outline:3px solid #ffab20;outline-offset:3px}a{color:inherit;text-decoration:none}button.primary{background:#ffc943;color:#173c63;border-color:#e5ac23;box-shadow:0 5px 0 #df9d20}button.primary:hover{background:#ffd76f}[hidden]{display:none!important}#app{height:100dvh;display:grid;grid-template-rows:76px 1fr 34px;background:radial-gradient(ellipse at 85% 70%,#ffdec1 0,transparent 45%),radial-gradient(ellipse at 10% 35%,#c3e7ff 0,transparent 45%),#eff8ff}.masthead{display:flex;align-items:center;justify-content:space-between;padding:0 4vw;gap:16px}.masthead a{font-size:13px;font-weight:700;min-height:44px;display:flex;align-items:center}.masthead>span{font-size:11px;font-weight:800;letter-spacing:3px}.masthead b{margin:0 14px;color:#74a5ce}.masthead button{background:transparent;border-color:#b7d7ed;min-height:44px}#arena{position:relative;min-height:0;margin:auto;width:min(1100px,100%);height:100%;isolation:isolate}#board{height:100%;width:auto;aspect-ratio:9/16;margin:auto;overflow:hidden;background:#e1eff8;border-radius:26px;border:6px solid #fff;box-shadow:0 20px 70px #3d79932b;padding:58px 0 100px}iframe{width:100%;height:100%;border:0;display:block}#toolbar{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:calc((100dvh - 110px)*.5625 - 24px);display:flex;align-items:center;justify-content:space-between;gap:5px}#toolbar button{font-size:12px;padding:8px;min-height:42px;border:0;background:transparent}#score{font-weight:800;font-size:14px;white-space:nowrap}#controls{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);text-align:center;width:min(290px,80%)}#hint{font-size:11px;margin:0 0 8px;color:#3e6586}#flip{touch-action:none;user-select:none;background:#137cdb;border:0;color:#fff;min-height:60px;width:100%;box-shadow:0 5px 0 #0857a8;letter-spacing:1px}#flip span{display:block;font-size:10px;font-weight:400;letter-spacing:.5px;margin-top:4px}#flip.charging{background:#f7c945;color:#163b63;box-shadow:0 3px 0 #dba51e;transform:translateY(2px)}#panel{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:14px;background:#e9f6ffe8;border-radius:28px;overflow:auto;touch-action:pan-y}.card{flex-shrink:0;width:min(760px,100%);background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 24px 65px #226aa326;border:1px solid #fff}.card.menu{display:grid;grid-template-columns:1.08fr 1fr}.card img{width:100%;height:100%;object-fit:cover;object-position:62% center;min-height:350px}.card-body{padding:35px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#2d82b9}h1{font-size:44px;letter-spacing:-2px;line-height:1.05;margin:14px 0 12px}h2{font-size:32px;letter-spacing:-1px;margin:12px 0}p{font-size:14px;line-height:1.6;color:#52718c}.actions{display:grid;gap:10px;margin-top:24px}.actions .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.actions .primary{font-size:17px;min-height:55px}.portal-link{display:block;text-align:center;font-size:12px;padding:14px;min-height:44px}.fine{font-size:11px;color:#6e869d}.card.compact{max-width:440px}.card.loading{max-width:560px}.loading img{min-height:0;height:200px}.loading .card-body{padding:24px}.loading h1{font-size:32px}progress{width:100%;accent-color:#1688df;height:8px}.help-list{padding:0;list-style:none}.help-list li{font-size:13px;line-height:1.55;padding:10px 0;border-bottom:1px solid #e4eef5;color:#54718a}.help-list strong{color:#174d7b;display:block}.result-score{font-size:56px;color:#147ad0;font-weight:800;letter-spacing:-2px;margin:15px 0}.result-score small{display:block;font-size:12px;letter-spacing:1px;color:#628199}footer{text-align:center;font-size:9px;font-weight:700;letter-spacing:2.5px;color:#7391a8;padding:14px 0 0}@media(max-width:600px){#app{grid-template-rows:52px 1fr}.masthead{padding:0 12px}.masthead>span,footer{display:none}.masthead button{min-height:44px;font-size:12px;padding:8px 12px}#arena{width:100%}#board{width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;padding:55px 0 112px}#toolbar{width:calc(100% - 22px);top:5px}#toolbar button{font-size:13px;min-height:46px}#controls{bottom:max(20px,env(safe-area-inset-bottom));width:min(310px,85%)}#panel{border-radius:0;padding:14px;align-items:safe center}.card.menu{display:block;max-width:410px}.card img{height:180px;min-height:0;object-position:center}.card-body{padding:24px}h1{font-size:36px;margin:10px 0}.actions{margin-top:17px;gap:10px}.eyebrow{font-size:9px}.card.compact .card-body{padding:24px}.masthead{padding-top:env(safe-area-inset-top)}}@media(max-height:650px){.masthead{height:48px}#app{grid-template-rows:48px 1fr}footer{display:none}#board{padding:50px 0 80px}#toolbar{width:max(240px,calc((100dvh - 48px)*.5625 - 24px))}#controls{bottom:10px;width:230px}#hint{display:none}#flip{min-height:56px}.card img{height:130px;min-height:0}.card-body{padding:18px}h1{font-size:30px}.card.menu{max-width:640px}.actions{margin-top:14px;gap:8px}#panel{align-items:safe center}.card.compact{max-width:560px}.help-list li{padding:6px 0}}@media(max-height:500px) and (min-width:601px){#board{aspect-ratio:auto;width:340px}#toolbar{width:310px}.card.menu img{height:100%;min-height:270px}.card.compact .card-body{padding:20px}.help-list{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.help-list li{font-size:12px}}
/* Keep the engine portrait in landscape; move controls alongside it. */
@media(max-height:500px) and (min-width:601px){
 #board{width:calc((100dvh - 64px)*.5625);height:calc(100% - 12px);padding:0;margin-left:calc(50% - 210px);border-radius:20px}
 #toolbar{left:calc(50% + 110px);top:38px;width:230px;flex-wrap:wrap;justify-content:center}
 #toolbar #score{order:-1;width:100%;text-align:center;margin-bottom:10px;font-size:18px}
 #toolbar button{min-height:48px;font-size:13px}
 #controls{left:calc(50% + 110px);bottom:65px;width:230px}#hint{display:block;font-size:11px}
}
@media(min-width:601px) and (min-height:501px){.card.menu>img{object-position:right center}.card.menu .card-body{padding:28px}.card.menu h1{font-size:40px}}

/* Menu hierarchy and live aiming feedback. */
#panel:focus{outline:none}
#panel{background:linear-gradient(125deg,#edf8ffe8,#e9f4f9e8);align-items:safe center}
.card.menu{width:min(860px,100%);max-width:860px;grid-template-columns:1fr 1.12fr;border-radius:28px}
.menu-art{position:relative;overflow:hidden;min-height:470px;background:#a3d6f1}
.menu-art img{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;object-position:right center}
.art-caption{position:absolute;bottom:24px;left:20px;right:20px;color:#fff;text-shadow:0 1px 8px #164b7c;font-size:9px;font-weight:800;letter-spacing:1.8px}
.card.menu .card-body{padding:32px}
.card.menu h1{font-size:44px;letter-spacing:-2px;line-height:1.08;margin:12px 0}
.card.menu h1>span{color:#eab430}
.menu .intro{font-size:14px;line-height:1.55;margin:0 0 20px}
.player-stats{display:flex;gap:28px;padding:16px 0;border-top:1px solid #e7eff4;border-bottom:1px solid #e7eff4}
.player-stats>span{font-size:9px;letter-spacing:1px;color:#587895;font-weight:700}
.player-stats b{display:block;font-size:23px;letter-spacing:-.7px;color:#164d7e;margin-bottom:5px}
.menu .actions{margin-top:22px;gap:13px}
.play-cta{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:16px 20px}
.play-cta>span{font-size:20px;letter-spacing:-.4px}
.play-cta small{display:block;font-size:10px;font-weight:400;letter-spacing:0;margin-top:5px;color:#4a503b}
.play-cta>b{font-size:30px;font-weight:400}
.mode-options button{text-align:left;font-size:13px;padding:14px 12px;border-color:#dce9f3;background:#f5faff;border-radius:12px}
.mode-options small{display:block;font-size:10px;line-height:1.5;font-weight:400;margin-top:5px;color:#5c7a94}
.utility-options button{font-size:12px;background:transparent;border:0;padding:10px 6px;min-height:44px}
.utility-options button:hover{background:#f2f7fc}
.quick-controls{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e7eff4;padding-top:19px;color:#7292aa;font-size:9px}
.quick-controls b{color:#355d80;letter-spacing:1px;margin-left:5px}.quick-controls i{font-style:normal;color:#a9c2d4}
.input-note{text-align:center;font-size:11px;margin:14px 0 0;color:#6a8298}kbd{font:inherit;border:1px solid #cfdfeb;border-radius:4px;padding:2px 5px;background:#f7fafc}
#readout{text-align:center;display:flex;flex-direction:column;gap:5px}#wallet{font-size:10px;color:#578099;font-weight:600}#toolbar button{min-height:44px}
#board{padding-bottom:130px}
#controls{bottom:19px}
.aim-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:5px;min-height:14px}
.aim-label #hint{margin:0;text-align:left;font-size:10px;display:block}
#power-label{font-size:9px;font-weight:800;letter-spacing:1px;color:#547c9f;white-space:nowrap}
#power{height:6px;background:#cbdfea;border-radius:10px;overflow:hidden;margin-bottom:12px}
#power-fill{display:block;width:100%;height:100%;transform:scaleX(0);transform-origin:left;background:linear-gradient(90deg,#168ada,#ffcc45);border-radius:10px}
#flip{transition:background .15s,box-shadow .15s,transform .15s;min-height:60px}
#flip b{font-size:14px;letter-spacing:1px}
#flip.airborne{background:#e3edf4;color:#4d7291;box-shadow:0 4px 0 #c7dbe9;cursor:default}
.result-stats{display:flex;justify-content:space-between;background:#f0f7fc;border-radius:12px;padding:15px;font-size:12px;color:#557490}.result-stats b{color:#154a7a;margin-left:5px}
button:active:not([aria-disabled="true"]){transform:translateY(1px)}
@media(max-width:600px){
 .card.menu{max-width:410px;display:block;border-radius:22px}
 .menu-art{min-height:0;height:170px}.menu-art img{object-position:center}.art-caption{display:none}
 .card.menu .card-body{padding:23px}.card.menu h1{font-size:34px;margin:9px 0}
 .menu .intro{font-size:13px;margin-bottom:15px}.player-stats{padding:12px 0;gap:36px}.player-stats b{font-size:21px}
 .menu .actions{margin-top:17px;gap:10px}.play-cta{padding:13px 16px}.play-cta>span{font-size:18px}
 .mode-options button{font-size:12px;padding:12px 10px}.mode-options small{font-size:10px}
 .quick-controls{padding-top:13px}.input-note{margin-top:12px}
 #board{padding-bottom:140px}#controls{bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(max-width:600px) and (max-height:700px){
 .menu-art{height:110px}.card.menu .card-body{padding:18px}.card.menu h1{font-size:29px}
 .menu .intro{font-size:12px;margin-bottom:10px}.player-stats{padding:9px 0}.player-stats b{font-size:18px}
 .menu .actions{margin-top:12px;gap:8px}.play-cta small{display:none}.mode-options small{font-size:9px}
 .quick-controls{display:none}.input-note{margin-top:7px}#board{padding-bottom:120px}
}
@media(min-width:601px) and (max-height:650px){
 .card.menu{max-width:760px}.menu-art{min-height:400px}.card.menu .card-body{padding:22px}.card.menu h1{font-size:34px}
 .menu .intro{margin-bottom:12px}.player-stats{padding:10px 0}.menu .actions{margin-top:14px;gap:9px}.quick-controls,.input-note{display:none}
}
@media(max-height:500px) and (min-width:601px){
 #board{padding:0}#toolbar #readout{order:-1;width:100%}#toolbar #score{margin:0}#controls{bottom:45px}
 .card.menu .menu-art img{min-height:0}.menu-art{min-height:390px}
}
@media(prefers-reduced-motion:reduce){#flip,button{transition:none}}
@media(min-width:601px) and (min-height:501px) and (max-height:850px){
 .card.menu .card-body{padding:26px}.card.menu h1{font-size:40px}.menu .intro{margin-bottom:14px}
 .player-stats{padding:10px 0}.menu .actions{margin-top:16px;gap:10px}.play-cta{padding:12px 18px}
 .mode-options button{padding:12px}.quick-controls{padding-top:14px}.input-note{margin-top:10px}
}
@media(max-width:600px) and (max-height:700px){.menu-art{height:96px}.play-cta{padding:10px 14px}.play-cta>b{font-size:24px}.input-note{font-size:10px}}

/* Shop uses the room palette and original bottle artwork. */
.card.shop{width:min(740px,100%);border-radius:26px;background:#fffdf8}
.shop-hero{padding:18px 28px 23px;background:linear-gradient(90deg,#e4f4ff 12%,#e4f4fff2 48%,#e4f4ff20),url('../assets/images/sunny-room-v1.png') right 23%/cover;}
.shop-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.shop-topline button{background:#ffffffa8;border-color:#d5e6ee;min-height:44px;padding:9px 14px;font-size:12px}
.shop-wallet{background:#fff7d9;border:1px solid #f1d67c;border-radius:20px;padding:10px 17px;font-size:15px;font-weight:800;color:#745312}
.shop-heading h1{font-size:36px;margin:9px 0;letter-spacing:-1.5px}.shop-heading h1 span{color:#df9d20}
.shop-heading p{font-size:12px;margin:0;color:#456980}.shop-heading .eyebrow{font-size:9px}
.shop-body{padding:21px 28px 23px}.shop-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.shop-section-heading h2{font-size:16px;letter-spacing:-.25px;margin:0}.shop-section-heading>span{font-size:10px;color:#638397}
.bottle-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.bottle-choice{position:relative;display:flex;flex-direction:column;align-items:center;padding:0 4px 12px;background:linear-gradient(#edf7fe,#fff);border:1px solid #d5e6f1;border-radius:16px;min-width:0;overflow:hidden}
.bottle-choice.selected{background:linear-gradient(#fff0bc,#fffaf0);border:2px solid #e9b941;box-shadow:0 3px 0 #efd486;padding-bottom:11px}
.bottle-choice strong{font-size:12px;margin-top:-10px}.bottle-choice small{font-size:10px;margin-top:8px;color:#547591}
.bottle-preview{flex:none;display:block;width:150px;height:130px;background-image:url('../images/bottle-sheet0.png');background-repeat:no-repeat;background-size:1024px 1024px;filter:hue-rotate(290deg) saturate(1.18);pointer-events:none}
.bottle-choice:disabled{cursor:default;color:#315779;opacity:1}.bottle-choice:disabled small{color:#607c8b}.bottle-choice:disabled:hover{background:linear-gradient(#edf7fe,#fff)}
.shop-upgrades{display:grid;gap:8px}.shop-upgrade{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;border:1px solid #e1e9ee;background:#fff;border-radius:13px;padding:10px 12px}
.upgrade-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e9f4fd;color:#367ec0;font-size:25px}.upgrade-icon.mono{background:#eff0ed;color:#6f7880}
.shop-upgrade h3{font-size:12px;margin:0 0 4px}.shop-upgrade p{font-size:10px;margin:0;line-height:1.4}
.shop-upgrade button{font-size:11px;min-height:44px;min-width:78px;padding:9px 12px;background:#ecf5fd;border-color:#cee3f1;border-radius:11px;white-space:nowrap}
.shop-upgrade button[aria-pressed="true"]{background:#e5f3e7;border-color:#afd5b6;color:#326d3e}.shop-upgrade button:disabled{background:#f5f7f8;color:#637b8d;cursor:default;border-color:#e3e9ed}
.shop-note{font-size:10px;text-align:center;margin:15px 0 12px;line-height:1.5}.shop-play{display:block;width:100%;font-size:13px;min-height:46px}
@media(max-width:600px){
 .card.shop{max-width:420px;border-radius:20px}.shop-hero{padding:14px 18px 20px}.shop-heading h1{font-size:30px}
 .shop-body{padding:18px}.shop-section-heading>span{font-size:9px}.shop-section-heading h2{font-size:14px}
 .bottle-grid{gap:7px;margin-bottom:20px}.bottle-choice strong{font-size:10px}.bottle-choice small{font-size:9px}
 .bottle-preview{margin-top:-7px;margin-bottom:-5px}.shop-upgrade{grid-template-columns:32px 1fr auto;gap:8px;padding:9px}
 .upgrade-icon{width:32px;height:36px;font-size:21px}.shop-upgrade h3{font-size:11px}.shop-upgrade p{font-size:9px}
 .shop-upgrade button{min-width:64px;font-size:10px;padding:8px}.shop-hero .eyebrow{letter-spacing:1.5px}
}

/* Original atlas frames; no resampling or replacement bottle designs. */
.bottle-frame-0{background-position:-604.5px -792.5px}
.bottle-frame-1{background-position:-453.5px -792.5px}
.bottle-frame-2{background-position:-302.5px -792.5px}
.bottle-frame-3{background-position:-151.5px -792.5px}
.bottle-frame-4{background-position:-0.5px -792.5px}
.bottle-frame-5{background-position:-768.5px -792.5px}
.bottle-frame-6{background-position:-604.5px -536.5px}
.bottle-frame-7{background-position:-453.5px -536.5px}
.bottle-frame-8{background-position:-302.5px -536.5px}
.bottle-frame-9{background-position:-151.5px -536.5px}
.bottle-frame-10{background-position:-0.5px -536.5px}
.bottle-frame-11{background-position:-768.5px -536.5px}
.bottle-frame-12{background-position:-604.5px -326.5px}
.bottle-frame-13{background-position:-453.5px -326.5px}
.bottle-frame-14{background-position:-302.5px -326.5px}
.bottle-frame-15{background-position:-151.5px -326.5px}
.bottle-frame-16{background-position:-0.5px -326.5px}
.bottle-frame-17{background-position:-768.5px -280.5px}
.bottle-frame-18{background-position:-604.5px -175.5px}
.bottle-frame-19{background-position:-453.5px -175.5px}
.bottle-frame-20{background-position:-302.5px -175.5px}
.bottle-frame-21{background-position:-151.5px -175.5px}
.bottle-frame-22{background-position:-0.5px -175.5px}
.bottle-frame-23{background-position:-768.5px -24.5px}
.bottle-frame-24{background-position:-604.5px -24.5px}
.bottle-frame-25{background-position:-453.5px -24.5px}
.bottle-frame-26{background-position:-302.5px -24.5px}
.bottle-frame-27{background-position:-151.5px -24.5px}
.bottle-frame-28{background-position:-0.5px -24.5px}
.bottle-frame-29{background-position:-604.5px -792.5px}
@media(min-width:601px){
 .card.shop{width:min(820px,100%)}.shop-hero{padding:14px 24px 16px}.shop-topline{margin-bottom:6px}.shop-heading h1{font-size:32px}
 .shop-body{display:grid;grid-template-columns:1fr 1.08fr;gap:0 24px;padding:20px 24px}
 .shop-collection,.shop-extras{min-width:0}.shop-collection .shop-section-heading>span{display:none}
 .bottle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
 .bottle-preview{height:108px;margin-top:-6px}.bottle-choice{padding-bottom:9px}.bottle-choice.selected{padding-bottom:8px}
 .bottle-choice small{margin-top:5px}.shop-upgrade{grid-template-columns:36px 1fr auto;gap:9px;min-height:78px;padding:10px}
 .upgrade-icon{width:36px;height:38px}.shop-upgrade button{min-width:68px;padding:8px}.shop-footer{grid-column:1/-1}
 .shop-note{margin-top:12px;margin-bottom:8px}.shop-play{min-height:44px}
}

@media(min-width:601px){
 .shop-hero{padding:12px 24px}.shop-hero .eyebrow{display:none}.shop-topline{margin-bottom:0}
 .shop-heading h1{font-size:28px;margin:6px 0}.shop-heading p{font-size:11px}
 .bottle-choice strong{margin-top:-4px}.bottle-preview{height:102px}
}
