/* Atelier release: stronger physical depth, quieter hierarchy, larger jewel faces. */
html{overscroll-behavior:none}body{overflow-x:hidden;background:radial-gradient(ellipse at 50% 12%,#326e60 0,#123f37 52%,#071f20 100%)}
.game{height:100svh;min-height:560px;max-height:1000px;width:min(100%,500px);gap:10px;padding: max(12px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));perspective:none}
.game>header{flex-shrink:0}.level-row{flex-shrink:0;min-height:52px}.brand{font-size:17px;letter-spacing:1.4px}.brand small{font-size:6px}.balance{min-width:77px;height:37px}.target{height:52px;min-width:104px}.target img{width:43px;height:43px}.progress-row{min-height:5px}.progress-track{height:5px}
.board{transform:none!important;isolation:auto;z-index:1;flex:1;max-height:610px;min-height:245px;border-radius:23px;padding:16px 12px 18px;gap:8px;margin-bottom:12px;background:linear-gradient(135deg,#efcf91,#b2864e);border:0;box-shadow:0 6px 0 #b98847,0 14px 0 #67472c,0 22px 25px #001914aa}
.tray-canvas{position:absolute;z-index:0;pointer-events:none;filter:drop-shadow(0 14px 11px #00171788)}
.native-tray .board{background:none;box-shadow:none}.native-tray .board:before,.native-tray .slot:before,.native-tray .slot:after{display:none}.native-tray .slot{background:transparent!important;border:0;box-shadow:none!important;opacity:1}
.slot{border-radius:10px}.slot.locked .lock-content{opacity:.5}.slot.locked .lock-content>span{color:#b5c3a4;font-size:8px;letter-spacing:.3px}.slot.add-slot .lock-content{opacity:1}.lock-content>img{width:23px;height:26px}.lock-content small{color:#ffe6a6}.slot.selected{outline:2px solid #ffe6a0;outline-offset:-3px}.slot.valid{outline:1px solid #b6eebc;outline-offset:-3px}.slot.hinted{outline:2px solid #ffe49a;outline-offset:-3px}
.slot .gem{width:96%;left:2%;height:44%}.slot:has(.gem):after{display:block!important;position:absolute;inset:0;background:radial-gradient(ellipse at 50% var(--shadow-y,60%),#001a19b0 0,transparent 48%);pointer-events:none;z-index:-1;box-shadow:none}
.slot .run-count{font-size:9px;bottom:4px;z-index:2}.slot.selected .run-count{opacity:1}.tool .square{padding:8px}.toolbar{flex-shrink:0;padding-top:3px;min-height:48px;gap:4px}.tool{min-height:44px}.tool .square{width:min(11vw,47px);height:min(11vw,47px)}
.deal-row{min-height:60px;flex-shrink:0}.deal-row .primary{min-width:230px;height:60px}.game>footer{top:calc(max(12px,env(safe-area-inset-top)) + 62px);right:15px}.game>footer button{width:32px;height:32px}
.sheet{padding:20px;background:linear-gradient(135deg,#faf0d7,#e6d5b1);border-radius:26px;max-height:calc(100svh - 45px)}.sheet h1{font-size:25px}.sheet .primary{min-height:48px}.sheet .buy{min-height:44px}.sheet .inline-link{min-height:40px}.sheet .legal-links{display:flex;justify-content:center;gap:13px;flex-wrap:wrap;margin-top:15px}.sheet .legal-links button{font-size:11px;background:none;color:#456653;text-decoration:underline;min-height:35px}.ad-offer{display:flex;align-items:center;gap:10px;background:#d8e3cc;border:1px solid #bbc7a8;padding:12px;border-radius:16px;margin-top:15px}.ad-offer img{width:43px;height:43px;object-fit:contain}.ad-offer>div{flex:1}.ad-offer strong{font-size:14px}.ad-offer small{display:block;font-size:10px;margin-top:4px;color:#58735b}.ad-offer button{min-height:44px;background:#245b49;border-radius:12px;padding:10px 15px;font-size:12px}.purchase-status{font-size:11px;color:#536a56;text-align:center;padding:10px}.shop-row.pack{border:1px solid #ccba8c;border-radius:16px;background:linear-gradient(130deg,#fffae6,#e9d7ad);margin-bottom:8px;padding:10px}.shop-row.pack>img{width:62px;height:60px}.shop-row.pack strong{font-size:15px}.shop-row.pack .buy{padding:12px;min-width:76px;justify-content:center}.privacy-copy{font-size:12px;line-height:1.65}.version{font-size:9px;text-align:center;opacity:.6;margin-top:15px}
#launch{position:fixed;inset:0;z-index:100;background:radial-gradient(ellipse at 50% 35%,#1d6655,#082d29 60%,#031e1e);display:flex;align-items:center;justify-content:center;padding:25px;transition:opacity .35s,transform .35s}#launch.leaving{opacity:0;transform:scale(1.04);pointer-events:none}.launch-inner{width:min(100%,380px);text-align:center}.launch-art{display:block;width:100%;max-height:46svh;object-fit:contain;border-radius:25%;mask-image:radial-gradient(ellipse,#000 48%,transparent 73%);margin:0 auto -12px;filter:drop-shadow(0 15px 20px #001b19)}.launch-title{color:#f6dc98;font:bold clamp(31px,8vw,42px) Georgia;letter-spacing:3px;margin:0;text-shadow:0 4px 7px #0008}.launch-subtitle{font-size:10px;letter-spacing:5px;color:#cdbb85;margin:9px 0 32px}.load-track{height:5px;background:#032420;border:1px solid #6f845c;border-radius:5px;max-width:210px;margin:0 auto;overflow:hidden}.load-track span{display:block;height:100%;background:linear-gradient(90deg,#ac8c48,#ffe4a0);width:0;transition:width .2s}#load-status{font-size:11px;color:#c4c7a7;margin-top:14px}#launch-play{margin:0 auto;min-width:240px;height:65px}#launch-play[hidden]{display:none}.launch-caption{margin-top:28px;font-size:9px;letter-spacing:2px;color:#a0b59b}
@media(max-height:730px){.game{gap:7px;min-height:540px}.level-row{min-height:46px}.game>header{height:36px}.target{height:47px}.board{gap:6px;padding:13px 10px 16px;min-height:235px;margin-bottom:10px}.deal-row,.deal-row .primary{height:52px;min-height:52px}.toolbar{min-height:44px}.game>footer{top:calc(max(12px,env(safe-area-inset-top)) + 52px)}.launch-art{max-height:42svh}.launch-subtitle{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){#launch{transition:none}.launch-art{animation:none}}
/* Physical scene: DOM controls are projected from the same perspective camera. */
.world-canvas{position:absolute;z-index:1;pointer-events:none;display:block}
.world-3d .board{display:block;position:relative;padding:0!important;background:none!important;box-shadow:none!important;border:0;isolation:auto;margin-bottom:0;z-index:2;touch-action:none;overflow:visible}
.world-3d .board:before,.world-3d .board:after,.world-3d .slot:before,.world-3d .slot:after{display:none!important}
.world-3d .slot{position:absolute!important;min-width:0;min-height:0;margin:0;padding:0;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;overflow:visible;transform:none!important}
.world-3d .slot .gem{visibility:hidden!important}.world-3d .slot .run-count{bottom:6%;background:#062c23c9;padding:3px 7px;border-radius:20px;color:#ffe9ae;font-size:9px;pointer-events:none}
.world-3d .slot .lock-content{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:4px;pointer-events:none}.world-3d .slot .lock-content img{filter:drop-shadow(0 3px 2px #001c18)}
.world-3d .slot:focus-visible{background:#ffdb7033!important}.world-3d .slot.hinted{background:#ffdb7033!important}

/* Close framing: the tray owns the available space, including tall phones. */
.world-3d .game{padding-left:7px;padding-right:7px}
.world-3d .game>header,.world-3d .level-row,.world-3d .progress-row,.world-3d .toolbar{margin-left:7px;margin-right:7px}
.world-3d .board{max-height:none;aspect-ratio:auto}
.jewel-light-canvas{position:absolute;z-index:3;pointer-events:none;display:block}
