/* A tiny collection of proper game worlds. All artwork and models render locally. */
.orbit-object:before{display:none}
.game-art .art-halo,.game-art .game-satellite{display:none}
.game-art{height:258px;isolation:isolate;overflow:visible}
.game-art:after{content:'';position:absolute;width:65%;height:25px;left:18%;bottom:25px;border-radius:50%;background:#31435d25;filter:blur(14px);z-index:-1;transition:transform .6s}
.game-object{width:224px;height:224px;top:15px;transform:rotate(-5deg);filter:drop-shadow(0 13px 14px #30475d25);border-radius:24px}
.game-card:nth-child(even) .game-object{transform:rotate(5deg)}
.game-card:hover .game-object,.game-card:focus-within .game-object{transform:translateY(-10px) rotate(1deg) scale(1.07)}
.game-card:hover .game-art:after{transform:scale(.8)}
.card-topline{z-index:2}
.game-intro>.intro-object{width:205px;height:205px;filter:drop-shadow(0 16px 15px #4b695d25)}
.game-intro .game-instructions{font-size:11px;line-height:1.8;text-align:left;border:1px solid #fff9;box-shadow:inset 0 1px 0 #fff}
.game-dialog{width:min(970px,calc(100% - 24px));padding:25px 28px 18px;border:1px solid #fff;border-radius:30px;background:linear-gradient(130deg,#f1f7f0,#e5edf0);box-shadow:0 40px 120px #122f3f60,inset 0 1px 0 #fff;max-height:calc(100dvh - 32px)}
.game-dialog::backdrop{background:#1736448c;backdrop-filter:blur(14px)}
.game-dialog .modal-close{background:#ffffff90;border:1px solid #fff;top:20px;right:20px;width:30px;height:30px;color:#526a62;z-index:6}
.game-hud{padding:0 40px 18px 0;align-items:center}
.game-hud>div{gap:12px}
.hud-game-icon{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 4px 4px #35546020)}
.game-hud .hud-title{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.hud-eyebrow{font-size:8px;letter-spacing:.12em;font-weight:800;color:#7e9286}
.game-hud h2{font-size:25px;letter-spacing:-.045em}
.game-hud .hud-time{font-size:9px;letter-spacing:.05em;color:#698777}
.game-hud .hud-score-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.hud-score-wrap>small{font-size:8px;font-weight:700;letter-spacing:.12em;color:#7d9286}
.hud-score{font-size:31px;line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums;color:#294d3d}
.hud-score>small{font-size:9px;font-weight:600;color:#7d9286}
.game-toolbar{padding:0 1px 12px;min-height:43px}
.game-toolbar>div{gap:7px}
.game-toolbar .button{font-size:10px;padding:9px 13px;border:1px solid #ffffff90;box-shadow:0 3px 8px #31513a08}
.game-hearts{font-size:21px;letter-spacing:4px;color:#c56e91;text-shadow:0 2px 3px #dca2b035}
.game-hearts:not(:empty){min-height:25px}
.game-stage{aspect-ratio:1.85;max-height:520px;border-radius:21px;border:1px solid #fff;box-shadow:0 10px 25px #233e5120,inset 0 0 0 1px #fff2;background:#c9dfdf}
.game-canvas{user-select:none}
.game-session-strip{display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:.06em;font-weight:700;color:#859587;padding:16px 3px 11px;gap:8px}
.game-session-strip>span:first-child{display:flex;align-items:center;gap:5px}
.game-session-strip b{font-variant-numeric:tabular-nums;font-weight:800;color:#547965}
.game-session-strip i{width:5px;height:5px;border-radius:50%;background:#81ac72;display:inline-block}
.game-help{border-top:1px solid #adc1b333;padding-top:11px}
.game-help summary{font-size:10px;list-style:none;color:#5f796a;cursor:pointer;display:flex;justify-content:space-between;padding:0 3px}
.game-help summary::-webkit-details-marker{display:none}
.game-help[open] summary span{transform:rotate(45deg)}
.game-help .game-controls{text-align:left;font-size:10px;line-height:1.8;padding:12px 3px 0;color:#708277}
.pause-overlay{background:#102e4680;backdrop-filter:blur(15px);color:#fff}
.pause-overlay>div{padding:26px;min-width:255px;border-radius:25px;background:#ffffff17;border:1px solid #ffffff45;box-shadow:0 25px 70px #102c4c30}
.pause-overlay>div>span{color:#ffe7a7;font-size:36px}
.pause-overlay h3{font-size:32px;margin:8px 0 10px}
.pause-overlay p{color:#e1eee8;font-size:11px;margin-bottom:20px}
.pause-overlay .button{background:#f1f7e7;color:#34503d}
.game-stage[data-game=match]{background:radial-gradient(ellipse at 50% 40%,#689e79,#275e58 70%,#245355);display:flex;flex-direction:column;padding:15px}
.memory-caption{display:grid;grid-template-columns:1fr auto;align-items:center;color:#effae3;width:min(550px,100%);margin:0 auto 12px;gap:3px}
.memory-caption>span{font-size:7px;letter-spacing:.13em;grid-column:1;font-weight:800;color:#cce9c6}
.memory-caption strong{font-size:21px;grid-column:1;letter-spacing:-.04em}
.memory-caption small{grid-column:2;grid-row:1/3;font-size:10px;padding:9px 13px;border:1px solid #d3ebc84d;border-radius:99px;background:#ffffff10}
.game-grid-board{position:static;transform:none;aspect-ratio:auto;flex:1;min-height:0;height:auto;max-width:550px;width:100%;padding:0;gap:9px;grid-template-rows:repeat(4,minmax(0,1fr));perspective:1000px}
.memory-card{position:relative;aspect-ratio:auto;min-width:0;min-height:0;border-radius:12px;overflow:hidden;border:1px solid #f0f9dd75;background:linear-gradient(135deg,#b5dba2,#5d9b7c);box-shadow:0 4px 0 #174d4560,0 6px 12px #183d4525;transition:transform .35s,background .35s,box-shadow .35s}
.memory-card:before{content:'';position:absolute;inset:6px;border:1px solid #efffd24a;border-radius:8px}
.memory-card .card-back{font-size:27px;color:#e6f8d8;display:block;text-shadow:0 3px 4px #39664a30;transition:opacity .15s}
.memory-card .card-face{position:absolute;width:82%;height:92%;object-fit:contain;left:9%;top:4%;opacity:0;transition:opacity .15s;pointer-events:none;transform:rotateY(180deg)}
.memory-card.flipped{background:linear-gradient(135deg,#ffffe9,#d4eac9);transform:rotateY(180deg)}
.memory-card.flipped .card-back,.memory-card.matched .card-back{opacity:0}
.memory-card.flipped .card-face,.memory-card.matched .card-face{opacity:1}
.memory-card.matched{opacity:1;background:linear-gradient(135deg,#e8fcb5,#a4d68b);border-color:#d3ffa0;box-shadow:0 0 18px #d8ff9c30;transform:rotateY(180deg) scale(.95)}
.memory-card:hover:not(.flipped):not(.matched){transform:translateY(-3px);box-shadow:0 7px 0 #174d4560,0 10px 15px #183d4525}
.game-stage[data-game=routine]{background:radial-gradient(ellipse at 50% 0,#fff4dd,#edc6b3 80%,#dca4ad)}
.routine-board{padding:23px 26px 20px;gap:12px;background:linear-gradient(0deg,#fff3 0 29%,transparent 29%)}
.routine-prompt>span{font-size:8px;font-weight:800;letter-spacing:.16em;color:#9a796a}
.routine-prompt strong{font-size:28px;line-height:1.2;color:#664e4e;margin:6px 0}
.routine-prompt small{font-size:10px;color:#9b7c73}
.routine-board>.helper{font-size:10px;color:#8d7469;line-height:1.5}
.routine-chain{display:flex;align-items:center;gap:17px}
.routine-chain>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:#a88b7d;border:1px solid #b5958035;background:#fff6;font-size:9px;position:relative}
.routine-chain>span:after{content:'';position:absolute;width:14px;height:1px;background:#b7988530;left:26px}
.routine-chain>span:last-child:after{display:none}
.routine-chain>span.done{background:#729d79;color:#fff;border-color:#729d79;box-shadow:0 3px 6px #7f886b25}
.routine-options{grid-template-columns:repeat(4,1fr);grid-template-rows:minmax(0,1fr);gap:12px;flex:1;min-height:0;max-height:195px}
.routine-option{min-width:0;min-height:0;padding:8px 7px 12px;border-radius:18px;background:linear-gradient(145deg,#fff9,#fff3);box-shadow:0 5px 10px #9d747015,inset 0 1px 0 #fff;border:1px solid #fff9;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}
.routine-option .product-plinth{display:block;width:100%;height:125px;min-height:0;flex:1;position:relative}
.routine-option .product-plinth:after{content:'';position:absolute;bottom:5px;left:20%;width:60%;height:8px;background:#9c70803a;filter:blur(5px);border-radius:50%}
.product-plinth>img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 4px #9f718225);transition:transform .25s}
.routine-option strong{font-size:11px;font-weight:700;color:#71584f}
.routine-option small{font-size:6px;letter-spacing:.08em;color:#a58b7c}
.routine-option:hover .product-plinth>img{transform:translateY(-5px) rotate(-4deg)}
.routine-option.correct{background:#d7ebc9;transform:translateY(-5px)}
.routine-option.wrong{background:#efbac0}
.result-game-icon{width:140px;height:140px;object-fit:contain;display:block;margin:0 auto 22px;filter:drop-shadow(0 15px 13px #345c4d25)}
.result-eyebrow{font-size:8px;letter-spacing:.12em;color:#78947f;font-weight:800;display:block;margin-bottom:14px}
.game-result{max-width:600px;margin:auto;padding:25px 10px}
.game-result h2{font-size:35px;line-height:1.16;margin-bottom:12px}
.game-result>p{font-size:12px;color:#7e8f7a}
.result-score{font-size:72px;color:#3e674c;letter-spacing:-.065em;line-height:1.1;margin:25px 0 16px}
.result-score small{font-size:9px;letter-spacing:.15em;display:block;margin-top:7px}
.result-coins{border:1px solid #d2dfbd;background:#e6efd9;border-radius:99px;width:fit-content;margin:0 auto 27px;padding:11px 18px;font-size:11px}
@media(max-width:1100px){.game-art{height:225px}.game-object{width:192px;height:192px;top:15px}.game-dialog{width:min(900px,calc(100% - 24px))}}
@media(max-width:650px){
 .game-art{height:171px}.game-object{width:143px;height:143px;top:17px}.game-card .game-art:after{bottom:13px;height:15px}.card-topline{top:10px}
 .game-dialog{padding:15px 12px 13px;border-radius:24px;width:calc(100% - 16px);max-height:calc(100dvh - 20px)}
 .game-dialog .modal-close{right:13px;top:15px;width:27px;height:27px}
 .game-hud{padding:0 32px 14px 0;gap:7px}.game-hud>div{gap:8px}.hud-game-icon{width:43px;height:43px}.hud-eyebrow{font-size:5px;letter-spacing:.08em}.game-hud h2{font-size:18px}.game-hud .hud-time{font-size:7px}.game-hud .hud-title{gap:3px}.hud-score-wrap>small{font-size:6px}.hud-score{font-size:23px}.hud-score>small{font-size:7px}
 .game-toolbar{min-height:38px;padding:0 1px 10px}.game-toolbar .button{font-size:8px;padding:8px 9px}.game-toolbar>div{gap:5px}.game-hearts{font-size:17px;letter-spacing:2px}
 .game-stage{aspect-ratio:.85;border-radius:16px;max-height:510px}.game-session-strip{font-size:6px;padding:13px 2px 11px}.pause-hint{display:none}.game-help summary{font-size:9px}.game-help .game-controls{font-size:9px}
 .game-intro{padding:6px 10px 8px}.game-intro>.intro-object{width:157px;height:157px;margin-bottom:18px}.game-intro .modal-title{font-size:28px}.game-intro .game-instructions{font-size:10px;padding:12px 14px}.game-intro .page-actions .button{font-size:10px;padding:12px 17px}
 .game-stage[data-game=match]{padding:13px}.memory-caption{margin-bottom:13px}.memory-caption strong{font-size:20px}.memory-caption>span{font-size:6px}.memory-caption small{font-size:8px;padding:8px 10px}.game-grid-board{gap:8px}.memory-card{border-radius:11px}.memory-card .card-face{width:92%;left:4%}
 .game-stage[data-game=routine]{aspect-ratio:.74;max-height:500px}.routine-board{padding:14px 16px;gap:8px;justify-content:flex-start}.routine-prompt strong{font-size:26px}.routine-prompt>span{font-size:7px}.routine-prompt small{font-size:9px}.routine-board>.helper{font-size:8px}.routine-chain{gap:16px}.routine-chain>span{width:20px;height:20px;font-size:8px}.routine-chain>span:after{left:23px;width:10px}.routine-options{grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;max-height:none;width:100%;flex:1;min-height:0}.routine-option{min-height:0;padding:3px 5px 7px;border-radius:13px}.routine-option .product-plinth{height:50px;min-height:0;flex:1}.routine-option strong{font-size:9px}.routine-option small{font-size:5px}.routine-option .product-plinth:after{height:5px;bottom:1px}
 .result-game-icon{width:110px;height:110px}.game-result{padding:20px 5px}.game-result h2{font-size:28px}.game-result>p{font-size:11px}.result-score{font-size:60px}.game-result .page-actions{flex-wrap:wrap}.game-result .page-actions .button{font-size:10px}.result-eyebrow{font-size:6px}
}
@media(max-width:380px){.game-object{width:130px;height:130px;top:20px}.game-art{height:158px}.hud-eyebrow{display:none}.game-hud h2{font-size:16px}.hud-game-icon{width:38px;height:38px}}
@media(max-height:720px) and (min-width:651px){.game-dialog{max-height:calc(100dvh - 12px);padding-top:15px}.game-hud{padding-bottom:10px}.game-stage{aspect-ratio:2.25}.game-dialog .modal-close{top:15px}.routine-board{padding:14px 22px;gap:8px}.routine-options{max-height:155px}.routine-option .product-plinth{height:90px}.memory-caption{margin-bottom:8px}.memory-caption strong{font-size:17px}.game-grid-board{gap:6px}}
@media(prefers-reduced-motion:reduce){.game-object,.product-plinth>img,.memory-card{transition:none!important}.game-damage{animation:none!important}}
