@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--bg:#0d141e;--panel:#151f2c;--panel2:#1d2938;--border:#2b3745;--text:#f5f3ef;--muted:#9daaba;--peach:#ffbf92;--peach2:#ffdabd;--mint:#b1d9cf;--ink:#25303b;--radius:22px;font-family:'DM Sans',sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--peach);outline-offset:5px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3,.wordmark{font-family:Manrope,sans-serif}button{border:0;background:none}.eyebrow{font-size:.75rem;letter-spacing:.16em;font-weight:700;text-transform:uppercase;color:var(--muted)}.muted{color:var(--muted)}.wordmark{font-size:2rem;letter-spacing:-.08em;font-weight:800;display:inline-flex;align-items:baseline}.wordmark span{color:var(--peach)}.wordmark.small{font-size:1.65rem}.pill{padding:7px 11px;border:1px solid var(--border);border-radius:100px;color:var(--muted);font-size:.75rem;letter-spacing:.06em}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:14px 22px;border-radius:15px;font-weight:700;font-size:1rem;transition:transform .18s,background .18s}.primary{background:var(--peach);color:#282a2d}.primary:hover{background:var(--peach2);transform:translateY(-2px)}.secondary{border:1px solid var(--border);background:#ffffff05}.secondary:hover{background:#ffffff0b}.full{width:100%}.round-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--border);border-radius:50%;background:#172230aa}.text-link{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--peach)}.fine{font-size:.8125rem;line-height:1.65;color:var(--muted)}.stack{display:grid;gap:12px}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-label h2{font-size:1.15rem;letter-spacing:-.035em}.section-label span{font-size:.8125rem;color:var(--muted)}
/* The screen directory deliberately follows the reference's hierarchy. */
.directory{max-width:820px;margin:auto;padding:44px 28px 60px}.directory-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:28px;margin-bottom:36px;border-bottom:1px solid var(--border)}.directory-hero{display:block;overflow:hidden;border-radius:24px;border:1px solid var(--border);background:var(--panel);transition:border-color .2s,transform .2s}.directory-hero:hover{border-color:#ffbf9270;transform:translateY(-3px)}.hero-art{height:276px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 78% 80%,#554842 0,transparent 51%),linear-gradient(120deg,#1a2937,#182432)}.hero-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#17232f,transparent 64%);pointer-events:none}.hero-pet{position:absolute;width:365px;height:365px;object-fit:contain;right:0;bottom:-42px;z-index:1;filter:drop-shadow(0 18px 23px #0004)}.hero-stat{position:absolute;left:34px;top:48px;z-index:2}.hero-stat strong{font:800 4.7rem/.98 Manrope,sans-serif;letter-spacing:-.075em;color:var(--peach)}.hero-stat strong small{font-size:2rem;margin-left:4px;letter-spacing:-.03em}.hero-stat .eyebrow{display:flex;gap:8px;align-items:center;margin-top:16px;color:#d6c6b6;letter-spacing:.12em}.hero-stat .eyebrow svg{width:17px;height:17px}.hero-caption{padding:28px 32px 30px}.hero-caption h1{font-size:1.9rem;font-weight:700;letter-spacing:-.055em;margin-bottom:10px}.hero-caption p{font-size:1rem;color:var(--muted);line-height:1.65}.hero-open{display:flex;justify-content:space-between;align-items:center;margin-top:25px;font-weight:700;color:var(--peach)}.journey-label{margin:38px 0 18px;display:flex;align-items:center;justify-content:space-between}.journey-label span:last-child{font-size:.8125rem;color:#718196}.journey-list{display:grid;gap:12px}.journey-row{border:1px solid var(--border);background:var(--panel);border-radius:15px;overflow:hidden}.journey-main{display:flex;align-items:center;gap:24px;min-height:101px;padding:23px 24px;transition:background .2s}.journey-main:hover{background:#fff04d04}.journey-number{font-size:.875rem;color:var(--peach);font-variant-numeric:tabular-nums;flex:none}.journey-copy{flex:1}.journey-copy h2{font-size:1.18rem;letter-spacing:-.035em;font-weight:700;margin-bottom:6px}.journey-copy p{font-size:.9375rem;line-height:1.5;color:var(--muted)}.journey-main>svg{color:var(--peach);width:19px;height:19px}.device-links{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 22px 22px}.device-links a{border:1px solid var(--border);border-radius:10px;display:flex;justify-content:center;align-items:center;gap:8px;padding:13px 7px;font-size:.875rem;color:#d8dce3}.device-links a:hover{border-color:var(--peach);color:var(--peach)}.device-links svg{width:15px;height:15px}.directory-foot{display:flex;justify-content:space-between;gap:16px;margin-top:32px;font-size:.75rem;color:#738194}
/* Shared preview frame and actual mobile screens. */
.preview-toolbar{height:68px;max-width:1000px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.preview-toolbar a{display:inline-flex;align-items:center;gap:8px;font-size:.875rem;color:var(--muted)}.preview-toolbar a:hover{color:var(--peach)}.preview-toolbar .screen-name{font-size:.8125rem;color:var(--muted)}.preview-layout{display:flex;justify-content:center;align-items:flex-start;gap:48px;padding:16px 24px 50px}.phone{width:414px;max-width:100%;min-height:812px;position:relative;overflow:hidden;background:#121d2a;border:1px solid #35414f;border-radius:36px;box-shadow:0 28px 100px #0004}.demo-strip{text-align:center;font-size:.75rem;padding:8px 10px;background:#26313d;color:#c5cbd2;letter-spacing:.035em}.mobile-head{display:flex;align-items:center;justify-content:space-between;padding:20px 25px 14px}.mobile-head .step{font-size:.75rem;color:var(--muted);letter-spacing:.08em}.screen-content{padding:20px 26px 30px}.screen-content h1{font-size:2.15rem;line-height:1.14;letter-spacing:-.055em;font-weight:700}.lead{font-size:1rem;line-height:1.65;color:var(--muted);margin-top:15px}.bottom-copy{text-align:center;margin-top:18px}.back{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.875rem}.onboard-footer{padding:20px 26px 28px;margin-top:auto}.onboard{min-height:754px;display:flex;flex-direction:column}.onboard .screen-content{padding-bottom:0}.landing-visual{height:320px;position:relative;background:radial-gradient(ellipse at center,#5a494344,transparent 65%)}.landing-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 20px 30px #0003);animation:breathe 5s ease-in-out infinite}.landing-title{text-align:center;padding:0 25px}.landing-title h1{font:700 2.25rem/1.17 Manrope,sans-serif;letter-spacing:-.065em}.landing-title p{line-height:1.6;color:var(--muted);margin:16px 0 0}.landing-title em{font-style:normal;color:var(--peach)}.qr-panel{width:225px;padding-top:140px}.qr-panel h2{font-size:1.35rem;line-height:1.35;letter-spacing:-.04em}.qr-panel p{font-size:.9375rem;line-height:1.7;color:var(--muted);margin-top:13px}.qr-panel img{width:136px;height:136px;border-radius:12px;background:white;padding:9px;margin-top:22px}.tag-row{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.tag{font-size:.8125rem;background:#ffffff08;border:1px solid var(--border);padding:8px 11px;border-radius:30px;color:#b8c4d1}.welcome-pet{width:180px;height:180px;object-fit:contain;display:block;margin:5px auto 13px}.login-buttons{display:grid;gap:12px;margin-top:29px}.login-buttons button{min-height:58px}.google{background:#f8f6f1;color:#25292e}.google-mark{font-weight:800;font-size:1.3rem;font-family:Arial,sans-serif}.login-note{display:flex;align-items:flex-start;gap:12px;border-top:1px solid var(--border);padding-top:22px;margin-top:28px;color:var(--muted);font-size:.875rem;line-height:1.6}.login-note svg{color:var(--mint);margin-top:2px;width:18px;height:18px}.steps{display:grid;gap:18px;margin:30px 0}.install-step{display:flex;gap:15px;align-items:flex-start}.install-step .number{width:32px;height:32px;background:#ffbf9215;color:var(--peach);border-radius:50%;display:grid;place-items:center;flex:none;font-size:.875rem}.install-step strong{display:block;margin:3px 0 5px;font-size:1rem}.install-step p{font-size:.9rem;line-height:1.65;color:var(--muted)}.device-choice{display:flex;border:1px solid var(--border);border-radius:12px;padding:4px;gap:4px;margin-top:23px}.device-choice a{flex:1;text-align:center;font-size:.8125rem;padding:11px 6px;border-radius:8px;color:var(--muted)}.device-choice a.active{background:var(--panel2);color:var(--peach)}.install-tile{width:94px;height:94px;border-radius:24px;margin:25px auto;background:linear-gradient(145deg,#384151,#755d52);display:grid;place-items:center;box-shadow:0 14px 30px #0003;overflow:hidden}.install-tile img{width:106px;height:106px;object-fit:contain}.pets-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.pet-choice{border:1px solid var(--border);border-radius:20px;text-align:left;background:var(--panel);padding:6px 12px 15px;position:relative;overflow:hidden}.pet-choice.selected{border:2px solid var(--peach);padding:5px 11px 14px;background:#ffbf9209}.pet-choice img{width:100%;height:153px;object-fit:contain;display:block;transition:transform .2s}.pet-choice:hover img{transform:translateY(-4px)}.pet-choice strong{display:block;font:700 1.05rem Manrope,sans-serif}.pet-choice span{font-size:.8125rem;color:var(--muted);display:block;margin-top:6px}.pet-choice .selected-mark{position:absolute;top:10px;right:10px;color:var(--peach)}.selected-mark svg{width:17px;height:17px}.field-label{font-size:.875rem;color:#c7cfd8;display:block;margin:20px 0 10px}.text-input{width:100%;height:55px;padding:0 16px;border:1px solid var(--border);border-radius:13px;color:var(--text);background:#0f1823;font-size:1rem}.helper{display:flex;align-items:center;gap:8px;margin-top:13px;color:var(--muted);font-size:.8125rem}.helper svg{width:16px;height:16px}.starter-card{position:relative;margin:24px 0;background:linear-gradient(140deg,#394246,#27323c 70%);border:1px solid #6d665a;border-radius:23px;padding:28px;overflow:hidden}.starter-card .big-money{font:800 3.6rem/1.2 Manrope,sans-serif;letter-spacing:-.075em;color:var(--peach2);margin-top:12px}.starter-card img{position:absolute;right:-28px;bottom:-25px;width:178px;height:178px;object-fit:contain;opacity:.9}.starter-card .eyebrow{color:#d6c7b9}.starter-card .fine{max-width:155px;margin-top:10px;color:#c4c8c7}.plain-rows{display:grid;gap:19px;margin-top:24px}.plain-row{display:flex;align-items:flex-start;gap:12px}.plain-row>svg{color:var(--mint);width:19px;height:19px;margin-top:2px}.plain-row strong{font-size:.9375rem;display:block;margin-bottom:5px}.plain-row p{font-size:.875rem;line-height:1.55;color:var(--muted)}
/* Pet stage and game navigation. */
.game{min-height:752px;display:flex;flex-direction:column}.game-header{padding:20px 23px 8px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2}.pet-name{font-size:1.45rem;letter-spacing:-.04em}.pet-status{font-size:.8125rem;margin-top:5px;color:var(--muted)}.game-header .avatar{width:41px;height:41px;background:#273648;overflow:hidden;border-radius:50%;padding:0;border:1px solid #596271}.avatar img{width:100%;height:100%;object-fit:cover;transform:scale(1.15)}.pet-stage{position:relative;height:393px;overflow:hidden;background:#162333;isolation:isolate}.habitat-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 62%;z-index:-2;opacity:.78}.pet-stage:after{content:'';position:absolute;inset:0;background:linear-gradient(#121d2a 0%,transparent 23%,transparent 70%,#121d2a 100%);z-index:-1;pointer-events:none}.status-badges{display:flex;justify-content:center;gap:9px;padding:14px 20px;position:relative;z-index:1;pointer-events:none}.status-badge{display:flex;gap:7px;align-items:center;font-size:.8125rem;background:#12202fcc;backdrop-filter:blur(12px);border:1px solid #ffffff15;border-radius:30px;padding:8px 12px;color:#dde3e7}.status-badge:first-child{color:var(--peach2)}.status-badge svg{width:15px;height:15px}.stage-tip{position:absolute;bottom:5px;left:0;right:0;text-align:center;font-size:.8125rem;color:#c2c8cf;pointer-events:none}.pet-bubble{position:absolute;top:100px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:17px;background:#ffe2c8;color:#333c45;font-size:.875rem;font-weight:600;white-space:nowrap;z-index:3;animation:bubble-in .3s ease both}.care-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding:16px 29px 22px}.care-action{display:flex;align-items:center;flex-direction:column;gap:9px;font-size:.875rem}.care-action .action-icon{width:60px;height:60px;border-radius:20px;display:grid;place-items:center;border:1px solid #ffffff10;background:#223141;transition:background .2s,transform .2s}.care-action:first-child .action-icon{background:#3c3534;color:var(--peach)}.care-action:nth-child(2) .action-icon{background:#253d42;color:var(--mint)}.care-action:nth-child(3) .action-icon{background:#333549;color:#d1c5ea}.care-action:hover .action-icon{transform:translateY(-4px);filter:brightness(1.18)}.care-action .action-icon svg{width:26px;height:26px}.harvest-card{display:flex;align-items:center;gap:12px;margin:0 23px 25px;padding:16px;background:#ffffff04;border:1px solid var(--border);border-radius:17px}.harvest-icon{width:41px;height:41px;display:grid;place-items:center;border-radius:13px;background:#ffbf9210;color:var(--peach)}.harvest-card .label{font-size:.8125rem;color:var(--muted);margin-bottom:4px}.harvest-card strong{font-size:1rem;font-weight:600}.harvest-card strong small{font-size:.8125rem;font-weight:400;color:var(--muted);margin-left:4px}.harvest-card>svg{width:19px;height:19px;color:var(--peach);margin-left:auto}.tab-bar{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #ffffff0c;padding:13px 10px 20px;margin-top:auto;background:#15212e}.tab-bar a{display:flex;align-items:center;flex-direction:column;gap:6px;color:#8392a4;font-size:.75rem;font-weight:500;min-height:44px}.tab-bar a.active{color:var(--peach)}.tab-bar svg{width:22px;height:22px}.care-tutorial .pet-stage{height:305px;margin-top:10px}.care-tutorial .stage-pet{height:255px}.care-tutorial .care-actions{padding-bottom:0}.lesson-progress{display:flex;justify-content:center;gap:16px;margin:15px 0 0;color:var(--muted);font-size:.8125rem}.lesson-progress span{display:flex;align-items:center;gap:5px}.lesson-progress svg{width:15px;height:15px}.lesson-progress .done{color:var(--mint)}
.game-subhead{padding:27px 24px 20px}.game-subhead h1{font-size:1.85rem;letter-spacing:-.06em}.game-subhead p{font-size:.9375rem;color:var(--muted);margin-top:9px;line-height:1.5}.sub-content{padding:0 23px 28px}.habitat-preview{height:192px;border-radius:20px;overflow:hidden;position:relative;margin-bottom:25px}.habitat-preview>img:first-child{width:100%;height:100%;object-fit:cover;object-position:50% 65%;opacity:.78}.habitat-preview .mini-pet{position:absolute;width:130px;height:145px;object-fit:contain;left:40%;bottom:0}.habitat-preview .room-label{position:absolute;top:14px;left:15px;background:#15212eba;backdrop-filter:blur(5px);padding:7px 10px;border-radius:20px;font-size:.8125rem}.upgrade-row{display:flex;align-items:center;gap:14px;padding:17px 15px;border:1px solid var(--border);border-radius:17px;background:var(--panel);width:100%;text-align:left}.upgrade-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:13px;background:#ffbf9210;color:var(--peach);flex:none}.upgrade-copy{flex:1}.upgrade-copy strong{font-size:.9375rem;display:block;margin-bottom:6px}.upgrade-copy span{font-size:.8125rem;line-height:1.5;color:var(--muted);display:block}.upgrade-row>svg{width:17px;color:var(--muted)}.filter-pills{display:flex;gap:8px;overflow:auto;padding-bottom:18px;scrollbar-width:none}.filter-pills button{border:1px solid var(--border);padding:9px 15px;border-radius:50px;font-size:.875rem;white-space:nowrap;color:var(--muted)}.filter-pills button.active{background:var(--peach);color:var(--ink);border-color:var(--peach)}.collection-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.collectible{border:1px solid var(--border);border-radius:19px;padding:14px;background:var(--panel);text-align:left;position:relative}.collectible img{width:100%;height:137px;object-fit:contain;display:block}.collectible .collectible-icon{height:137px;display:grid;place-items:center;color:var(--peach)}.collectible-icon svg{width:56px;height:56px;stroke-width:1.1}.collectible .tag{display:inline-block;font-size:.75rem;padding:5px 8px;margin-bottom:8px}.collectible strong{display:block;font-size:.9375rem}.collectible p{color:var(--muted);font-size:.8125rem;line-height:1.4;margin-top:5px}.collection-empty{padding:32px 15px;line-height:1.6;color:var(--muted);text-align:center}.reserve-summary{padding:24px;border:1px solid #58616b;background:linear-gradient(130deg,#333e48,#202e3b);border-radius:23px;margin:0 23px 19px}.reserve-summary .label{color:#b3bdc7;font-size:.875rem}.reserve-summary .balance{font:700 2.85rem/1.3 Manrope,sans-serif;letter-spacing:-.065em;margin-top:5px;color:var(--peach2)}.reserve-summary .fine{margin-top:5px}.reserve-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:0 23px 26px}.reserve-actions button{border:1px solid var(--border);border-radius:14px;background:var(--panel2);display:flex;align-items:center;flex-direction:column;gap:8px;padding:15px 5px;font-size:.8125rem}.reserve-actions button svg{color:var(--peach);width:20px;height:20px}.money-row{display:flex;align-items:center;justify-content:space-between;gap:13px;border-bottom:1px solid var(--border);padding:17px 0;font-size:.9375rem}.money-row:last-child{border-bottom:0}.money-row small{display:block;margin-top:6px;color:var(--muted);font-size:.8125rem}.money-row>strong{white-space:nowrap}.money-row .sponsor-money{color:var(--muted)}.explain-card{margin-top:24px;border:1px solid var(--border);border-radius:15px;padding:17px;display:flex;gap:11px;font-size:.8125rem;color:var(--muted);line-height:1.65}.explain-card svg{color:var(--mint);width:18px;height:18px;margin-top:2px}.profile-pet{display:block;width:190px;height:180px;object-fit:contain;margin:10px auto 0}.profile-title{text-align:center}.profile-title h1{font-size:2rem;letter-spacing:-.06em}.profile-title p{color:var(--muted);font-size:.9375rem;margin-top:8px}.bond-card{padding:21px;margin-top:25px;border:1px solid var(--border);border-radius:19px;background:var(--panel)}.bond-label{display:flex;justify-content:space-between;align-items:center;font-size:.875rem}.bond-label span{color:var(--peach)}.progress-track{height:6px;border-radius:8px;background:#33404d;margin:15px 0 11px;overflow:hidden}.progress-track span{display:block;width:28%;height:100%;background:var(--peach);border-radius:8px}.memory{display:flex;align-items:center;gap:12px;padding:14px 0;font-size:.9375rem}.memory svg{color:var(--peach);width:20px;height:20px}.memory small{display:block;color:var(--muted);font-size:.8125rem;margin-top:5px}
/* Prototype sheets */
.sheet-backdrop{position:absolute;inset:0;z-index:20;background:#070e19aa;display:flex;align-items:flex-end;backdrop-filter:blur(6px)}.sheet{width:100%;max-height:90%;overflow:auto;background:#1c2938;border:1px solid #445061;border-bottom:0;border-radius:28px 28px 0 0;padding:14px 24px 28px;box-shadow:0 -18px 80px #0004;animation:sheet-in .25s ease}.sheet-handle{width:40px;height:4px;border-radius:6px;background:#506073;margin:0 auto 17px}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.sheet-head h2{font-size:1.4rem;letter-spacing:-.045em}.sheet-close{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#ffffff07;color:var(--muted)}.sheet .lead{margin:0 0 20px}.sheet .primary{margin-top:22px}.food-card{display:flex;align-items:center;gap:14px;border:1px solid var(--border);border-radius:16px;padding:17px;width:100%;background:#243344;text-align:left;margin-top:12px}.food-card .upgrade-copy strong{font-size:1rem}.food-card .cost{color:var(--mint);font-size:.875rem}.sheet-message{padding:20px;border-radius:17px;background:#a9d7cb09;border:1px solid #a9d7cb25;margin:16px 0;color:var(--mint);line-height:1.7}.sheet-money{font:700 2.8rem/1.2 Manrope,sans-serif;color:var(--peach);letter-spacing:-.055em;margin:10px 0 22px}.preview-notice{font-size:.8125rem;color:var(--muted);line-height:1.65;border-top:1px solid var(--border);padding-top:15px;margin-top:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);background:#ffe0c4;color:#26303b;box-shadow:0 12px 30px #0004;max-width:calc(100vw - 36px);padding:13px 20px;border-radius:15px;font-size:.9375rem;z-index:100;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.012)}}@keyframes love{0%,100%{transform:rotate(0) scale(1)}35%{transform:rotate(-4deg) scale(1.055)}70%{transform:rotate(3deg) scale(1.035)}}@keyframes play{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-35px) rotate(-8deg)}70%{transform:translateY(-12px) rotate(7deg)}}@keyframes eat{0%,100%{transform:rotate(0)}25%,65%{transform:translateY(8px) rotate(5deg)}45%,85%{transform:translateY(3px) rotate(-3deg)}}@keyframes bubble-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}@keyframes sheet-in{from{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}

/* The hit area stays still while the artwork follows a stroke inside it. */
.stage-pet{position:absolute;width:76%;height:310px;left:12%;bottom:13px;padding:0;display:block;background:none;border:0;border-radius:40%;user-select:none;touch-action:none;cursor:grab;-webkit-tap-highlight-color:transparent}
.stage-pet:focus-visible{outline:2px solid var(--peach);outline-offset:3px;background:#ffbf9205}
.stage-pet.is-touching{cursor:grabbing}
.pet-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 14px 17px #0005);transform-origin:50% 90%;animation:companion-breathe 4.8s ease-in-out infinite;translate:var(--pet-x,0px) var(--pet-y,0px);rotate:var(--pet-tilt,0deg);transition:translate .45s cubic-bezier(.2,.8,.2,1),rotate .45s cubic-bezier(.2,.8,.2,1)}
.is-stroking .pet-art{animation:companion-nuzzle 1.2s ease-in-out infinite;transition:translate .12s ease-out,rotate .12s ease-out}
.stage-pet.loved .pet-art{animation:love .8s ease-in-out}
.stage-pet.tapped .pet-art{animation:companion-hello .8s ease-in-out}
.stage-pet.playing .pet-art{animation:play .85s ease-in-out}
.stage-pet.eating .pet-art{animation:eat .85s ease-in-out}
.pet-effects{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden}
.touch-heart{position:absolute;display:block;width:22px;height:22px;color:#ffcbad;filter:drop-shadow(0 2px 6px #a8544540);animation:touch-heart-rise 1.05s ease-out both}
.touch-heart svg{width:100%;height:100%;fill:currentColor;stroke-width:1.1}
.stage-tip{font-size:.75rem;letter-spacing:.01em;z-index:4}
.pet-bubble{pointer-events:none;top:70px;box-shadow:0 4px 20px #0002}
@keyframes companion-breathe{0%,100%{transform:translateY(0) rotate(-.35deg) scale(1)}50%{transform:translateY(-3px) rotate(.35deg) scale(1.012,1.018)}}
@keyframes companion-nuzzle{0%,100%{transform:translateY(2px) scale(1.025,.99)}50%{transform:translateY(0) scale(1.015,1.01)}}
@keyframes companion-hello{0%,100%{transform:translateY(0) rotate(0) scale(1)}25%{transform:translateY(2px) scale(1.025,.98)}55%{transform:translateY(-9px) rotate(-3deg) scale(.99,1.025)}80%{transform:translateY(-2px) rotate(2deg) scale(1.015,.99)}}
@keyframes touch-heart-rise{0%{opacity:0;transform:translate(-50%,-20%) scale(.45)}18%{opacity:.95;transform:translate(-50%,-55%) scale(1)}100%{opacity:0;transform:translate(calc(-50% + var(--heart-drift)), -85px) scale(.65)}}
@media(prefers-reduced-motion:reduce){.pet-art{translate:none!important;rotate:none!important;transform:none!important}.touch-heart{display:none}.stage-pet.is-stroking{background:#ffbf920a}}

@media(min-width:1100px){.preview-layout{padding-top:20px}.phone{min-height:812px}.directory{padding-top:50px}}@media(max-width:760px){.qr-panel{display:none}.preview-toolbar{height:54px;padding:0 18px}.preview-toolbar .screen-name{font-size:.75rem}.preview-layout{padding:0 0 30px}.phone{border-radius:26px}.directory{padding:27px 20px 42px}.directory-head{margin-bottom:24px;padding-bottom:22px}.wordmark{font-size:1.8rem}.hero-art{height:235px}.hero-pet{width:300px;height:300px;right:-22px;bottom:-30px}.hero-stat{left:25px;top:42px}.hero-stat strong{font-size:3.9rem}.hero-stat strong small{font-size:1.65rem}.hero-caption{padding:25px}.hero-caption h1{font-size:1.65rem}.journey-main{gap:18px;padding:21px 20px}.journey-copy h2{font-size:1.1rem}.journey-copy p{font-size:.875rem}.device-links{padding:0 17px 18px;gap:7px}.device-links a{font-size:.75rem;padding:12px 3px;gap:3px}.device-links svg{width:12px}.directory-foot{flex-direction:column;gap:8px}.hero-stat .eyebrow{font-size:.6875rem}.journey-label{margin-top:31px}}
@media(max-width:480px){.preview-layout{padding:0}.phone{width:100%;border:0;border-radius:0;box-shadow:none;min-height:calc(100svh - 54px)}.onboard,.game{min-height:calc(100svh - 86px)}.onboard-footer{padding-bottom:calc(24px + env(safe-area-inset-bottom))}.tab-bar{padding-bottom:calc(13px + env(safe-area-inset-bottom))}.pet-stage{height:clamp(290px,43svh,393px)}.stage-pet{height:calc(100% - 55px);bottom:17px}.game-header{padding-top:17px}.care-actions{padding-top:12px;padding-bottom:19px}.harvest-card{margin-bottom:20px}.landing-visual{height:clamp(250px,38svh,330px)}.sheet-backdrop{position:fixed;top:54px}.game-subhead{padding-top:23px}.hero-art{height:220px}.hero-pet{width:270px;height:270px;right:-38px;bottom:-22px}.hero-stat{left:22px}.hero-stat strong{font-size:3.5rem}.hero-caption h1{font-size:1.45rem}.directory{padding-left:16px;padding-right:16px}.journey-main{padding:20px 16px;gap:15px}.hero-caption{padding:22px}.screen-content h1{font-size:2rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Full 3D scene; the illustrated pet remains available while loading or without WebGL. */
.stage-pet.has-3d{width:100%;height:100%;left:0;bottom:0;border-radius:0}
.has-3d .pet-art{display:none}
.pet-canvas{display:block;width:100%;height:100%;pointer-events:none}
.pet-turn{position:absolute;bottom:31px;right:17px;z-index:5;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffe2c82c;background:#12202fbb;color:var(--peach2);font-size:1.45rem;line-height:1;backdrop-filter:blur(8px)}
.pet-turn[hidden]{display:none}
.pet-turn:hover{background:#314252}
