/* 1.22: an open, sculpted landscape. Text and companion share one horizon. */
.ref-hero{height:780px;min-height:780px;background:radial-gradient(ellipse at 77% 35%,#41617055,transparent 49%),linear-gradient(140deg,#0c202b,#183748 70%,#234651);padding-bottom:0;isolation:isolate}
.ref-hero:after{display:block;content:'';position:absolute;inset:0;background:linear-gradient(90deg,#091e2990,transparent 71%);z-index:1;pointer-events:none}
.ref-hero-copy{padding-top:155px;max-width:570px;position:relative;z-index:2}.ref-hero-copy h1{font-size:86px;line-height:1;letter-spacing:-3px;color:#f0eee4}.ref-hero-copy>p{max-width:425px;font-size:17px;color:#c3d2d4}
.hero-original-stage{width:360px;height:360px;right:12%;bottom:62px;z-index:3;transform:none!important}.hero-original-stage:before{display:block;content:'';position:absolute;inset:auto 15% 0;height:11%;border:0;border-radius:50%;background:radial-gradient(ellipse,#06121d77,transparent 68%);transform:none}
.ref-speech{display:none!important}
.companion-landscape{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none}.landscape-canvas,.landscape-fallback{position:absolute;inset:0;width:100%;height:100%}.landscape-canvas{opacity:0;mask-image:linear-gradient(transparent 18%,#000 38%)}.landscape-ready .landscape-canvas{opacity:1}.landscape-ready .landscape-fallback{opacity:0}.landscape-atmosphere{position:absolute;inset:0;background:radial-gradient(ellipse at 76% 65%,#afc2bc15,transparent 43%),linear-gradient(transparent 74%,#071c2744);pointer-events:none}
/* Keep the Home example small. */
.ref-preview-app{grid-template-columns:minmax(230px,.72fr) minmax(0,1.28fr);height:440px}.ref-preview-stage{display:grid;place-items:center;padding:32px 20px;background:linear-gradient(150deg,#293e33,#1b2c25);min-width:0}.ref-preview-stage .preview-mascot{width:250px;height:250px;min-height:0;max-width:100%;transform:none}.preview-caption{position:absolute;bottom:28px;left:20px;right:20px;text-align:center;font-size:12px;color:#b9c5ad}.ref-preview-stage:after{bottom:67px;left:28%;right:28%}
/* A square figure fits inside both dimensions, including short laptop windows. */
.companion-panel{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(220px,1fr) auto;gap:12px;padding:22px;min-height:0}
.companion-card{grid-column:1/-1;grid-row:1;min-height:0;border-radius:24px;background:radial-gradient(ellipse at 50% 44%,#74866a24,transparent 62%),linear-gradient(150deg,#293e33,#1b2d25);border:1px solid #a4b49a26;overflow:hidden}
.companion-stage-clip{position:absolute;inset:18px;display:grid;place-items:center;container-type:size;overflow:visible}
.companion-stage-clip .chat-mascot{width:285px;height:285px;max-width:100%;max-height:100%;transform:none!important}
@supports(width:1cqw){.companion-stage-clip .chat-mascot{width:min(100cqw,100cqh,390px);height:min(100cqw,100cqh,390px);aspect-ratio:1;max-width:none;max-height:none}}
.companion-info-card{grid-row:2;padding:14px;min-width:0}.companion-info-card .companion-row{font-size:11px}.companion-info-card .companion-row strong{font-size:11px;overflow-wrap:anywhere;text-align:right}.companion-card-foot{gap:7px}.companion-info-card h4{margin-bottom:10px}
.daily-allowance{display:flex;align-items:baseline;gap:8px;margin-bottom:12px}.daily-allowance>strong{font-size:34px;line-height:1;color:var(--cream,#efe8d8);font-weight:600;font-variant-numeric:tabular-nums}.daily-allowance>span{font-size:11px;color:var(--muted);line-height:1.5}.daily-allowance b{font-weight:400}.daily-conversations .quota-meter{margin:0 0 11px;height:4px;border-radius:3px;overflow:hidden;background:#ffffff10}.daily-conversations .quota-meter>span{display:block;height:100%;background:#e2b97c;width:100%}.daily-conversations .companion-card-foot{font-size:10px}.daily-error{font-size:11px;color:#f0b7a8;margin:6px 0 0}.daily-error:empty{display:none}.chat-welcome .welcome-mascot{display:none}
/* One centered actor on every feature stage. */
.activity-detail-stage,.settings-peek{position:relative;display:grid;place-items:center;overflow:hidden;isolation:isolate;padding:14px}.activity-detail-stage{height:270px;min-height:270px}.activity-detail-stage>.detail-mascot{position:relative!important;inset:auto!important;width:230px;height:230px;margin:0!important;transform:none!important}.settings-peek{height:224px;min-height:224px}.settings-peek>.settings-mascot{position:relative!important;inset:auto!important;width:190px;height:190px;margin:0!important;transform:none!important}.memory-page .title-actions{align-items:center;gap:20px}.memory-page .feature-buddy{width:132px;height:132px}
@media(max-width:1100px) and (min-width:701px){.ref-hero-copy h1{font-size:75px}.ref-hero-copy>p{max-width:365px}.hero-original-stage{width:330px;height:330px;right:6%;bottom:72px}.companion-panel{padding:15px;gap:10px}.companion-info-card{padding:10px}.companion-info-card h4{font-size:9px}.companion-card-foot{flex-wrap:wrap}.ref-preview-stage .preview-mascot{width:222px;height:222px}}
@media(max-width:850px) and (min-width:701px){.ref-hero-copy h1{font-size:66px}.ref-hero-copy>p{max-width:330px}.hero-original-stage{right:1%;width:295px;height:295px}.companion-info-card .companion-row{display:block}.companion-info-card .companion-row>strong{display:block;text-align:left}.daily-allowance{display:block}.daily-allowance>span{display:block;margin-top:5px}}
@media(max-height:690px) and (min-width:701px){.companion-panel{padding:14px;gap:10px;grid-template-rows:minmax(180px,1fr) auto}.companion-info-card{padding:10px}.companion-info-card h4{margin-bottom:6px}.daily-allowance{margin-bottom:8px}.daily-allowance>strong{font-size:28px}}
@media(max-width:700px){
 .ref-hero{height:auto;min-height:0;padding-bottom:350px}.ref-hero>.ref-wrap{padding-bottom:26px}.ref-hero-copy{padding-top:108px}.ref-hero-copy h1{font-size:58px;line-height:1;letter-spacing:-1.9px}.ref-hero-copy>p{font-size:16px;max-width:360px}.hero-original-stage{width:270px;height:270px;right:calc(50% - 135px);bottom:32px}.landscape-canvas{mask-image:linear-gradient(transparent 25%,#000 63%)}
 .ref-preview-app{grid-template-columns:1fr;height:auto}.ref-preview-stage{display:grid;height:240px;padding:0}.ref-preview-stage .preview-mascot{height:190px;width:190px;min-height:0}.preview-caption{bottom:13px;font-size:11px}.ref-preview-stage:after{bottom:35px}
 .chat-view{grid-template-rows:clamp(170px,27dvh,210px) minmax(0,1fr)}.companion-panel{display:block;padding:0;height:clamp(170px,27dvh,210px);min-height:0}.companion-card{height:100%;min-height:0;border-radius:0;border-width:0 0 1px}.companion-stage-clip{inset:10px}.companion-stage-clip .chat-mascot{width:180px;height:180px;max-width:100%;max-height:100%}.companion-info-card{display:none}
 @supports(width:1cqw){.companion-stage-clip .chat-mascot{width:min(100cqw,100cqh,190px);height:min(100cqw,100cqh,190px);max-width:none;max-height:none}}
 .settings-peek{height:180px;min-height:180px}.settings-peek>.settings-mascot{width:155px;height:155px}.activity-detail-stage{height:240px;min-height:240px}.activity-detail-stage>.detail-mascot{width:205px;height:205px}
}
@media(max-width:370px){.ref-hero-copy h1{font-size:52px}.ref-hero-copy>p{font-size:15px}.ref-hero .ref-ctas{gap:8px}.ref-cta{padding:10px 13px;font-size:13px}}
