/* The habitat is a film stage. The data and owner controls retain their existing behavior. */
:root{--bg:#090e13;--panel:#111820;--line:#ffffff12;--text:#f6efe5;--muted:#8b969e;--accent:#ffaf71;--glow:255,155,85;font-family:Inter,Arial,Helvetica,sans-serif}
body{background:radial-gradient(ellipse at 76% 20%,#18202855,transparent 37%),var(--bg);font-size:15px}
.wrap{max-width:1320px;padding:0 52px}
.site-header{height:88px;max-width:none;padding:0 max(4vw,24px);gap:30px;background:#090e13ed;border-color:#ffffff0c;position:relative;z-index:12}
.brand{font-size:21px;letter-spacing:-.8px;font-weight:750;white-space:nowrap}
.brand-icon{font-size:31px;margin-right:10px}.brand-period{color:#ffac71}
nav{gap:30px}nav a{font-size:12px}nav a.active:after{bottom:20px;height:1px}
.header-actions{display:flex;align-items:center;gap:10px;min-width:0}
.header-contract{background:#ffffff04;border:1px solid #ffffff18;border-radius:7px;height:38px;padding:0 12px;gap:10px;width:auto;max-width:235px;min-width:0}
.header-contract:disabled{opacity:.75}.header-contract code{max-width:140px;font-size:11px}.contract-label{font-size:9px;letter-spacing:1.2px;padding-right:8px;border-right:1px solid #ffffff20}.contract-hint{font-size:10px;white-space:nowrap}.header-contract svg{width:14px;height:14px}
.social-link{height:38px;min-width:38px;border-color:#ffffff18;border-radius:7px;padding:0 11px;background:#ffffff04}.social-link svg{width:14px;height:14px}.social-link>span{display:none}
.header-actions .chart-link{border:0;color:#c5a78b;font-size:11px;padding:8px;white-space:nowrap}.chart-link[aria-disabled=true]{display:none}
.habitat{max-width:1440px;padding:0 50px;scroll-margin-top:20px;position:relative}
.hero-layout{min-height:650px;display:grid;grid-template-columns:36% 64%;align-items:center;position:relative}
.hero-copy{padding:20px 0 75px;position:relative;z-index:4;pointer-events:none}
.hero-copy>*{pointer-events:auto}.eyebrow{font-family:Arial,Helvetica,sans-serif;font-size:10px;letter-spacing:2.1px;font-weight:600}.hero-copy .eyebrow{display:flex;align-items:center;gap:9px;color:#bc9877}.signal{width:5px;height:5px}
.hero-copy h1{font-size:clamp(44px,4.5vw,65px);font-weight:500;line-height:1.05;letter-spacing:-3px;margin:27px 0 22px;white-space:nowrap}
.hero-copy h1 em,.section-top h2 em,.how-intro h2 em{font-family:Georgia,'Times New Roman',serif;font-weight:400;color:#ffc08c;font-style:italic}
.hero-lead{font-size:14px;line-height:1.85;color:#94a0a8;max-width:305px;margin:0}
.hero-actions{display:flex;align-items:center;gap:20px;margin-top:30px}.hero-primary{display:flex;align-items:center;gap:22px;background:linear-gradient(125deg,#f4b681,#d79057);color:#21150c;padding:15px 21px;border-radius:5px;font-size:12px;font-weight:700;box-shadow:0 8px 28px #df8e3f13}.hero-link{font-size:11px;color:#d7c8b9;border-bottom:1px solid #b9936c55;padding-bottom:3px}
.hero-promise{margin-top:34px;display:flex;gap:12px;align-items:center;color:#78868e;font-size:10px;line-height:1.7}.hero-promise>span:first-child{font-size:25px;color:#c5a183}.hero-promise strong{color:#afbac0;font-weight:400}
.hero-showcase{min-width:0;position:relative;align-self:center;margin-left:-32px;margin-right:-25px}
.scene{height:auto;aspect-ratio:8/5;min-height:420px;width:100%;overflow:visible;background:none;border:0}
.scene.cinema-ready{height:auto}.scene:before{display:none}.scene-side,.scene-coordinate{display:none}
.cinema-poster,.cinema-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;z-index:2;mask-image:radial-gradient(ellipse 66% 64% at 50% 53%,#000 54%,transparent 98%)}
.cinema-video{opacity:0;transition:opacity .3s}.cinema-video.is-playing{opacity:1}
.cinema-ready #character,.cinema-ready .ground-shadow,.cinema-ready .orbit,.cinema-ready .signature-effects,.cinema-ready .ambient-glow,.cinema-ready .embers,.cinema-ready .habitat-atmosphere,.cinema-ready .habitat-3d{visibility:hidden;pointer-events:none}
.scene.cinema-ready .mega-charge-flames{background-image:none;animation:none}
.cinema-ready .evolution-flash{z-index:3}.cinema-ready .stage-arrow{z-index:5}
.stage-arrow{width:33px;height:33px;font-size:24px;border-color:#ffffff1b;background:#0c151bcc;color:#c4a88b;top:52%;backdrop-filter:blur(8px)}.previous{left:6%}.next{right:3%}.stage-arrow:disabled{opacity:.18}
.motion-controls{bottom:5px;right:20px;z-index:7;display:flex;gap:5px}.replay-move,.motion-controls .motion-toggle{color:#9ba7af;font-size:10px;padding:8px 10px;background:#0e161ccc;border:1px solid #ffffff0e;border-radius:5px}
.motion-controls .motion-toggle{position:static}.replay-move span{font-size:14px}.stage-heading{text-align:left;padding:0 35px 0 62px;min-height:122px;position:relative;margin-top:-4px}
.stage-index{justify-content:flex-start;font-size:9px;letter-spacing:1.2px}.form-tag{font-family:Arial,Helvetica,sans-serif;border:0;background:none;color:#caab8d;font-size:8px;padding:0;margin-left:12px;letter-spacing:1.4px}.form-tag.preview{border:0;background:none;color:#b99add}
.stage-heading h2{font-size:28px;font-weight:500;letter-spacing:-1px;line-height:1.1;margin:11px 0 7px}.stage-heading p{font-size:11px;color:#87969f}.stage-dots{position:absolute;right:37px;top:30px;margin:0;gap:5px}.stage-dots button{width:17px}.stage-dots button:after{height:2px;background:#394149}.stage-dots button[aria-pressed=true]:after{background:#ffc08c;box-shadow:none}
.return-live{position:static;transform:none;font-size:9px;margin-top:12px;border-color:#ffffff1c;border-radius:4px;padding:5px 9px;background:#111a22;color:#cdbba9}
.market-panel{border:1px solid #ffffff12;border-radius:8px;background:linear-gradient(110deg,#151d23c9,#10191f8a);max-width:none;padding:28px 34px 20px;margin:5px 0 0}
.market-metrics{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:26px}.market-metrics>div{min-width:0}.market-metrics>div+div{border-left:1px solid #ffffff12;padding-left:30px}.market-metrics .eyebrow{font-size:9px;letter-spacing:1.6px;color:#85949d}.metric-value>span:first-child{font-size:30px;font-weight:400}.peak-metric strong{font-size:27px;font-weight:400;color:#d9e1e5}.next-metric{text-align:left}.next-metric .eyebrow{justify-content:flex-start}.next-metric strong{font-size:16px}.next-metric strong span{font-size:12px;color:#c3a383;margin-left:8px}.progress-track{height:3px;background:#26313a;margin-top:25px}.progress-track>span{background:linear-gradient(90deg,#855630,#ffc188);box-shadow:0 0 12px #ecad6530}.progress-caption{font-size:10px;margin-top:10px;color:#88959f}.habitat-bottom{font-size:9px;color:#70808a;margin:15px 2px 0}.habitat-bottom svg{color:#b6987b}.feed-message{font-size:11px;text-align:left;color:#a3907f;border:0;background:none;padding:0}
.evolution{margin-top:85px}.section-top{margin-bottom:28px;align-items:flex-end}.section-top h2{font-size:33px;font-weight:400;letter-spacing:-1.25px;margin-top:14px}.section-top p{font-size:11px;line-height:1.8;color:#7c8c96}.section-top h2 span{color:inherit}.evolution-grid{gap:12px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
.evo-card{background:linear-gradient(155deg,#141e26,#0b1218);border:1px solid #ffffff0b;padding:16px 12px 18px;border-radius:7px;text-align:left;overflow:hidden;transition:border-color .2s,transform .2s}.evo-card:hover{transform:translateY(-4px);border-color:#e3ac7155}.evo-card.selected{border-color:#e8b78799;background:linear-gradient(155deg,#241f1b,#13181d)}.evo-card.locked{opacity:1}.card-number{font-size:9px;letter-spacing:1px;color:#778993}.card-lock{color:#bd9b79}.card-art{height:112px;margin:5px -20px 7px}.card-art img{width:100%;height:100%;max-width:none;object-fit:contain;filter:none;opacity:1;mask-image:radial-gradient(ellipse at 50% 50%,#000 35%,transparent 75%)}.evo-card h3{font-size:12px;margin:0 0 8px;font-weight:500;color:#dce3e7}.card-threshold{font-size:9px;color:#9d8c7c;letter-spacing:.4px}.evolution-foot{display:flex;justify-content:space-between;font-size:10px;color:#697d8b;margin-top:18px}.evolution-foot span:first-child:before{content:'✧';color:#cba077;margin-right:9px}
.how-section{margin-top:88px;margin-bottom:80px;border-top:1px solid #ffffff0d;padding-top:60px;gap:100px;grid-template-columns:1fr 1fr}.how-intro h2{font-size:38px;font-weight:400;letter-spacing:-1.3px;line-height:1.18;margin:18px 0}.how-intro p{font-size:12px;line-height:1.9;color:#8596a1;max-width:310px}.try-button{font-size:11px;padding:11px 0;color:#e4b68d;border:0;border-bottom:1px solid #8f66454d;border-radius:0;background:none;margin-top:17px}.rules article{border-color:#ffffff0d;gap:23px;padding:22px 0}.rules article:first-child{padding-top:8px}.rule-number{color:#bb8b61;font-size:11px}.rules h3{font-size:14px;font-weight:500;color:#d5dfe6}.rules p{font-size:11px;color:#7f919e;line-height:1.9;max-width:350px}
footer{border-top:1px solid #ffffff10}.footer-top{padding:32px 0 22px}.footer-bottom{font-size:8px;color:#657783;border:0;padding:0 0 30px;gap:16px}.footer-bottom a:hover{color:#dfbc98}.footer-top .brand{font-size:21px}.contract{border-color:#ffffff15;background:#ffffff03}.awaiting-token{font-size:10px}.owner-admin{white-space:nowrap}
dialog{background:#101a23;border:1px solid #ffffff26;color:#e4ecf0;border-radius:12px;box-shadow:0 30px 150px #000b}dialog::backdrop{background:#020609bd;backdrop-filter:blur(10px)}dialog h2{font-family:Georgia,serif;font-size:34px;font-weight:400;letter-spacing:-.8px}dialog p{color:#91a3ae}.sim-input{background:#0b1219;border-color:#ffffff18}.sim-input input{color:#f2d0ae}.primary-button{background:#efb782;color:#24180d}.secondary-button{background:#1c2a35}.toast{background:#182632;border-color:#b8936b66;color:#f0d2b4}
@media(min-width:1500px){.hero-layout{min-height:710px}.scene{min-height:460px}.hero-copy h1{font-size:69px}.hero-lead{font-size:15px}.hero-showcase{margin-left:-20px;margin-right:-60px}}
@media(max-width:1100px){.site-header{gap:22px;padding:0 30px}nav{gap:20px}.header-contract{max-width:195px}.header-actions .chart-link{display:none}.wrap{padding-left:32px;padding-right:32px}.habitat{padding-left:32px;padding-right:32px}.hero-layout{grid-template-columns:40% 60%;min-height:585px}.hero-copy h1{font-size:48px}.hero-actions{gap:15px}.hero-primary{padding:13px 16px;gap:12px}.hero-link{font-size:10px}.hero-showcase{margin-left:-45px}.scene{min-height:380px}.stage-heading{padding-left:55px}.stage-dots{right:30px;top:72px}.section-top h2{font-size:29px}.card-art{height:95px}.evo-card h3{font-size:11px}.how-section{gap:60px}}
@media(max-width:780px){.site-header{height:auto;min-height:112px;display:grid;grid-template-columns:1fr auto;gap:15px 12px;padding:18px 24px}.site-header .brand{font-size:21px}.site-header nav{display:none}.header-actions{display:contents}.header-contract{grid-column:1;grid-row:2;max-width:none;width:100%;justify-content:flex-start}.header-contract svg{margin-left:auto}.social-link{grid-column:2;grid-row:2;width:38px}.hero-layout{display:flex;flex-direction:column;min-height:0;align-items:stretch}.habitat{padding:0 20px}.hero-copy{padding:40px 6px 0}.hero-copy h1{font-size:52px;letter-spacing:-2.4px;margin:22px 0 18px;white-space:normal}.hero-lead{font-size:13px;max-width:340px}.hero-actions{margin-top:23px;gap:25px}.hero-promise{display:none}.hero-showcase{margin:12px -20px 18px}.scene{min-height:0;aspect-ratio:8/5}.stage-heading{padding:0 30px;min-height:105px;margin-top:2px}.stage-heading h2{font-size:25px}.stage-dots{right:31px;top:34px}.motion-controls{bottom:2px;right:27px;gap:4px}.motion-controls .motion-toggle,.replay-move{font-size:9px;padding:6px 8px}.stage-arrow{top:44%;width:30px;height:30px}.previous{left:5%}.next{right:5%}.market-panel{padding:22px 22px 17px;border-radius:7px}.market-metrics{grid-template-columns:1fr 1fr;gap:20px}.market-metrics>div+div{padding-left:18px}.market-metrics>div:last-child{grid-column:1/-1;border-left:0;border-top:1px solid #ffffff12;padding:17px 0 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.next-metric strong{font-size:13px}.next-metric strong span{font-size:10px}.market-metrics .eyebrow{font-size:8px;letter-spacing:1.1px}.metric-value>span:first-child,.peak-metric strong{font-size:25px}.progress-track{margin-top:19px}.progress-caption{font-size:9px}.habitat-bottom{font-size:8px;gap:10px}.wrap{padding-left:26px;padding-right:26px}.evolution{margin-top:59px}.section-top{margin-bottom:23px}.section-top h2{font-size:29px;line-height:1.2}.section-top h2 em{display:block}.section-top p{display:none}.evolution-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.evo-card{padding:13px 10px}.card-art{height:100px;margin-left:-17px;margin-right:-17px}.evo-card h3{font-size:10px;min-height:24px;line-height:1.3}.card-threshold{font-size:8px}.evolution-foot{font-size:8px}.evolution-foot span:last-child{display:none}.how-section{margin:60px auto;padding-top:35px;display:block}.how-intro h2{font-size:35px}.how-intro p{max-width:100%}.rules{margin-top:33px}.rules article{padding:19px 0}.footer-top{flex-wrap:wrap;gap:18px}.footer-bottom{flex-direction:column;align-items:flex-start;gap:10px}.scene .cinema-poster,.scene .cinema-video{mask-image:radial-gradient(ellipse 67% 66% at 50% 51%,#000 57%,transparent 100%)}}
@media(prefers-reduced-motion:reduce){.cinema-video,.evo-card{transition:none}.evo-card:hover{transform:none}}
/* Keep long Mega-form names clear of the form selector. */
.evolution{padding-top:0}.return-live{margin:12px 0 0}.card-art img{max-height:none}.evo-card:first-child .card-art img{height:100%}.evo-card[data-stage="5"] .card-art img{scale:1}
.evo-card.locked .card-art{opacity:1;filter:none}
@media(min-width:781px) and (max-width:1100px){.stage-dots{top:0}}
@media(max-width:780px){.stage-dots{position:static;justify-content:flex-start;margin:10px 0 0;gap:6px}.stage-dots button{width:28px;padding:12px 0}.stage-dots button:after{top:11px}.stage-heading{min-height:130px}.stage-arrow{width:40px;height:40px}}
@media(max-width:780px){.site-header .social-link{grid-row:2}}

.sound-toggle,.sound-settings summary{color:#9ba7af;font-size:10px;padding:8px 10px;background:#0e161ce8;border:1px solid #ffffff18;border-radius:5px;white-space:nowrap}
.sound-toggle[aria-pressed=true]{color:#f2c297;border-color:#e5b28155}.sound-settings{position:static}.sound-settings summary{cursor:pointer;list-style:none;min-width:32px;text-align:center}.sound-settings summary::-webkit-details-marker{display:none}
.volume-popover{position:absolute;right:0;bottom:calc(100% + 10px);width:192px;padding:15px;background:#101b24;border:1px solid #ffffff24;border-radius:9px;box-shadow:0 8px 30px #0008}.volume-popover label{display:flex;justify-content:space-between;font-size:11px;color:#d8e1e6}.volume-popover input{width:100%;margin:13px 0 0;accent-color:#efb782}.volume-popover output{color:#efb782}
@media(max-width:780px){.motion-controls{right:24px;gap:4px}.sound-toggle,.sound-settings summary{font-size:9px;padding:6px 8px}.sound-settings summary{min-width:28px}.volume-popover{right:0}}

/* Keep the authored wingspan clear; fade the actual image edges even in a tall mobile scene. */
.scene[data-form="charizard"] .cinema-poster,.scene[data-form="charizard"] .cinema-video{height:auto;aspect-ratio:8/5;top:50%;bottom:auto;transform:translateY(-50%);mask-image:linear-gradient(to right,transparent,#000 16%,#000 85%,transparent),linear-gradient(to bottom,transparent,#000 10%,#000 83%,transparent);mask-composite:intersect;-webkit-mask-composite:source-in}

/* Preserve the standing Charmander and its tail within the cinematic frame. */
.scene[data-form="charmander"] :is(.cinema-poster,.cinema-video){height:auto;aspect-ratio:8/5;top:50%;bottom:auto;transform:translateY(-50%);mask-image:linear-gradient(to right,transparent,#000 8%,#000 94%,transparent),linear-gradient(to bottom,transparent,#000 6%,#000 90%,transparent);mask-composite:intersect;-webkit-mask-composite:source-in}

/* Preserve the replacement models' hands, wings and feet at every viewport size. */
.scene:is([data-form="charmeleon"],[data-form="charizard-megax"]) :is(.cinema-poster,.cinema-video){height:auto;aspect-ratio:8/5;top:50%;bottom:auto;transform:translateY(-50%);mask-image:linear-gradient(to right,transparent,#000 8%,#000 94%,transparent),linear-gradient(to bottom,transparent,#000 6%,#000 94%,transparent);mask-composite:intersect;-webkit-mask-composite:source-in}
