/* Founder reward showcase v4.
   Design Read: preserve the fantasy MMORPG identity, foreground free rewards.
   DESIGN_VARIANCE 7 / MOTION_INTENSITY 7 / VISUAL_DENSITY 4.
   Existing game art is preserved. Native CSS, no new dependencies.
   Gold milestones mean confirmed reservations, never stock or a sales target. */
.founder-treasury.treasury-edition {
  --treasury-paper:#f5efdf; --treasury-gold:#e6c171; --treasury-muted:#c3ccdd;
  --treasury-line:#e6c17135; background:#080f28; border:0; isolation:isolate;
}
.founder-treasury.treasury-edition::before {
  inset:0; opacity:1; filter:none;
  background:linear-gradient(0deg,#070e25,#080f2820 25%,#080f2800 72%,#080f28),
    linear-gradient(90deg,#07122bbd,#0a163cbf 38%,#080f28eb 65%,#080f28f5),
    url('assets/founder-harbor-v1.webp') 25% 52% / cover no-repeat;
}
.founder-treasury.treasury-edition::after { display:none; }
.treasury-edition .treasury-atmosphere { opacity:.7; mask-image:none; background:radial-gradient(ellipse at 25% 48%,#3756a852,transparent 49%); }
.treasury-edition .treasury-frame {
  display:grid; grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
  width:min(1136px,calc(100% - 80px)); max-width:1136px; min-height:650px;
  margin-inline:auto; padding:66px 0 62px; gap:26px 66px; align-items:center;
}
.treasury-edition .treasury-relic { grid-column:1; grid-row:1/4; min-height:466px; margin:0; transform:none; align-self:center; }
.treasury-edition .treasury-relic::before { width:270px; top:54px; border-color:#b6c5e526; background:radial-gradient(circle,#5269a721,transparent 68%); box-shadow:none; }
.treasury-edition .treasury-relic::after { width:194px; top:92px; border-color:#e0bf7552; box-shadow:inset 0 0 30px #dfbc6412; }
.treasury-edition .treasury-relic > img { position:absolute; width:176px; height:176px; top:105px; filter:drop-shadow(0 18px 8px #02071299) drop-shadow(0 0 25px #b59d4b55); animation:treasury-gem-float 6s ease-in-out infinite; }
.treasury-edition .treasury-light { width:88%; top:16px; background:radial-gradient(circle,#8dabb02b,#25778708 44%,transparent 68%); }
.treasury-edition .treasury-orbit-one { top:145px; width:90%; height:24%; border-color:#eee1be36; }
.treasury-edition .treasury-orbit-two { top:92px; width:68%; height:43%; border-color:#d9b46728; }
.treasury-edition .treasury-plinth { bottom:30px; width:92%; height:40px; background:radial-gradient(ellipse,#d3b57344,#b78d3114 40%,transparent 70%); }
.treasury-edition .treasury-scene-signature { position:absolute; bottom:0; width:100%; text-align:center; color:#bdc7da; font:400 12px/1.5 Outfit,sans-serif; letter-spacing:.035em; }
.treasury-edition .treasury-loot { position:absolute; bottom:36px; width:332px; height:164px; display:flex; align-items:flex-end; justify-content:center; z-index:4; pointer-events:none; }
.treasury-edition .treasury-loot-piece { position:relative; width:108px; height:116px; }
.treasury-edition .treasury-loot-piece > img { position:absolute; left:-32px; top:-10px; width:128px; height:128px; max-width:none; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(0 12px 5px #01081cb3); }
.treasury-edition .treasury-loot-hero { height:150px; }
.treasury-edition .treasury-loot-hero::before { content:''; position:absolute; inset:0 -40px -10px; background:radial-gradient(ellipse,#e3b04c3d,transparent 65%); animation:treasury-gem-breathe 5s ease-in-out infinite; }
.treasury-edition .treasury-loot-hero > img { width:160px; height:160px; left:-51px; top:-12px; filter:drop-shadow(0 10px 6px #020919c0) drop-shadow(0 0 14px #ebc26938); }
.treasury-edition .treasury-loot-hero > .treasury-loot-coin { width:36px; height:36px; left:37px; top:5px; animation:treasury-reward-float 5s ease-in-out infinite; }
.treasury-edition .treasury-copy { grid-column:2; min-width:0; max-width:none; text-align:left; align-self:end; }
.treasury-edition .treasury-kicker { justify-content:flex-start; margin:0 0 16px; gap:10px; font:600 10px/1.5 Outfit,sans-serif; letter-spacing:.15em; }
.treasury-edition .treasury-kicker-mark { width:23px; height:27px; background:none; clip-path:none; box-shadow:none; }
.treasury-edition .treasury-kicker-mark img { width:23px; height:27px; object-fit:contain; }
.treasury-edition .treasury-copy h2 { margin:0; max-width:none; font:500 clamp(30px,3vw,43px)/1.18 Cinzel,Georgia,serif; letter-spacing:-.045em; text-wrap:balance; text-shadow:0 3px 22px #070b2090; }
.treasury-edition .treasury-copy h2 em { color:#f0ce88; font-style:normal; text-shadow:none; }
.treasury-edition .treasury-invitation {
  grid-column:2; align-self:start; display:block; min-height:0; max-width:486px;
  padding:24px 26px 4px; margin:0; text-align:left; border:1px solid #b2c5e12e;
  border-top-color:#e8d4a25c; border-radius:6px;
  background:linear-gradient(124deg,#2c416360,#142340b3 58%,#0b172dcc);
  box-shadow:inset 0 1px 0 #e4edff15,inset 0 0 0 4px #8ca2c204,0 18px 36px #03091925;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); overflow:visible;
}
.treasury-edition .treasury-invitation::before { display:block; content:''; position:absolute; inset:0 25% auto 0; height:1px; border:0; background:linear-gradient(90deg,transparent,#f4dab1a1,transparent); pointer-events:none; }
.treasury-edition .treasury-invitation::after { display:none; }
.treasury-edition .treasury-benefit { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.treasury-edition .treasury-benefit-art { display:grid; place-items:center; flex:0 0 40px; height:48px; background:radial-gradient(ellipse,#e6aa3435,transparent 70%); }
.treasury-edition .treasury-benefit-art img { width:38px; height:38px; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(0 3px 4px #070d21aa); }
.treasury-edition .treasury-benefit strong { display:block; color:#fff0d2; font:500 23px/1.25 Outfit,sans-serif; letter-spacing:-.025em; }
.treasury-edition .treasury-benefit div > span { display:block; margin-top:6px; color:#cbd4e6; font:400 14px/1.5 Outfit,sans-serif; }
body .treasury-edition .treasury-cta { display:inline-flex; align-items:center; justify-content:center; gap:16px; width:min(100%,302px); min-width:0; min-height:52px; max-width:none; padding:12px 19px; font:600 15px/1.3 Outfit,sans-serif; cursor:pointer; position:relative; isolation:isolate; grid-column:auto; grid-row:auto; }
.treasury-edition .treasury-arrow { font-size:22px; line-height:1; transition:transform .2s ease; }
.treasury-edition .treasury-cta:hover .treasury-arrow { transform:translateX(4px); }
.treasury-edition .treasury-cta::before { content:''; position:absolute; inset:-4px; border:1px solid #e9bf6350; opacity:0; box-shadow:0 0 22px #e9b04729; animation:treasury-cta-call 6s ease-in-out infinite; pointer-events:none; }
.treasury-edition .treasury-cta:focus-visible { outline:2px solid #ffdfa0; outline-offset:6px; }
body .treasury-edition .treasury-cta:active { transform:translateY(1px) scale(.985); }
.treasury-edition .treasury-invitation > small { display:block; margin-top:12px; max-width:none; text-align:left; font:400 12px/1.6 Outfit,sans-serif; }
.treasury-edition .treasury-invitation > small strong { color:#ecdbb8; font-weight:500; }
.treasury-edition .treasury-invitation > small > span { display:block; color:#c3cde0; }
.treasury-edition .treasury-details { margin-top:14px; border-top:1px solid #b9c8e021; }
.treasury-edition .treasury-details summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:6px 0; color:#c2cde1; font:400 12px/1.5 Outfit,sans-serif; cursor:pointer; list-style:none; }
.treasury-edition .treasury-details summary::-webkit-details-marker { display:none; }
.treasury-edition .treasury-details summary::after { content:'+'; color:#e1c794; font-size:21px; font-weight:300; }
.treasury-edition .treasury-details[open] summary::after { content:'−'; }
.treasury-edition .treasury-details summary:hover { color:#f7e6bf; }
.treasury-edition .treasury-details summary:focus-visible { outline:2px solid #e0bb70; outline-offset:3px; }
.treasury-edition .treasury-details p { max-width:none; margin:6px 0 14px; color:#cbd4e6; font:400 13px/1.7 Outfit,sans-serif; text-wrap:pretty; }
.treasury-edition .treasury-community { grid-column:2; max-width:486px; min-width:0; padding-top:0; }
.treasury-edition .treasury-community-title { margin:0 0 8px; color:#c2cde0; font:400 12px/1.5 Outfit,sans-serif; }
.treasury-edition .treasury-proof { display:flex; align-items:center; gap:16px; margin:0; color:#bfcbdf; font:400 12px/1.5 Outfit,sans-serif; }
.treasury-edition .treasury-proof > strong { color:#f0ce89; font:500 47px/1.15 Cinzel,Georgia,serif; font-variant-numeric:lining-nums tabular-nums; letter-spacing:-.06em; white-space:nowrap; min-width:3.15ch; text-shadow:0 3px 22px #d5a94c21; }
.treasury-edition .treasury-proof b { color:#efe4cd; font-weight:500; }
.treasury-edition .treasury-status { display:block; max-width:none; margin:10px 0 0; color:#9daec9; font:400 10px/1.5 Outfit,sans-serif; letter-spacing:0; }
.treasury-edition .treasury-status::before { display:none; }
/* A rolling milestone window, not a finite pool. Fill derives only from the API. */
.treasury-edition .treasury-milestones { position:relative; margin-top:20px; padding-top:0; --milestone-progress:0; --burst-position:50%; }
.treasury-edition .treasury-energy { position:relative; height:12px; margin:0 8%; pointer-events:none; isolation:isolate; }
.treasury-edition .treasury-energy-bed { position:absolute; inset:3px 0; background:#040b1d; border-block:1px solid #b393583d; box-shadow:inset 0 1px 2px #030713,0 1px 0 #d0a75d12; }
.treasury-edition .treasury-energy-flow { position:absolute; inset:4px 0; transform:scaleX(var(--milestone-progress)); transform-origin:left; background:linear-gradient(90deg,#997038,#e5bd6e 40%,#fff1ba); box-shadow:0 0 12px #dda03140; }
.treasury-edition .treasury-energy-current { position:absolute; inset:0; overflow:hidden; transform:scaleX(var(--milestone-progress)); transform-origin:left; }
.treasury-edition .treasury-energy-current::before { content:''; position:absolute; top:2px; left:-25%; width:25%; height:8px; background:radial-gradient(ellipse,#fff3c4,#f8c56755 30%,transparent 70%); animation:treasury-energy-travel 5s ease-in-out infinite; }
.treasury-edition .treasury-milestone-list { position:relative; display:flex; justify-content:space-between; list-style:none; padding:0; margin:-12px 0 0; }
.treasury-edition .treasury-milestone-list li { width:16%; display:flex; flex-direction:column; align-items:center; position:relative; color:#a6b5cf; min-height:63px; }
.treasury-edition .treasury-pin { display:block; width:12px; height:12px; margin:0 0 9px; transform:rotate(45deg); border:1px solid #af91623f; background:#12203b; box-shadow:0 0 0 4px #0a1535; }
.treasury-edition .treasury-milestone-list b { font:500 12px/1.4 Outfit,sans-serif; white-space:nowrap; }
.treasury-edition .treasury-milestone-list small { font:400 10px/1.4 Outfit,sans-serif; margin-top:1px; white-space:nowrap; }
.treasury-edition [data-achieved="true"] .treasury-pin { background:#e5bf72; border-color:#ffdf9a; box-shadow:0 0 0 4px #0e1a33,0 0 13px #e6ad4445; }
.treasury-edition [data-achieved="true"] b { color:#ebcf96; }
.treasury-edition [data-next="true"] .treasury-pin { border-color:#d5b26e; box-shadow:0 0 0 4px #0e1a33,inset 0 0 0 2px #12203b; }
.treasury-edition [data-next="true"] b { color:#e1d1b1; }
.treasury-edition .treasury-milestone-note { color:#aebdd5; font:400 11px/1.5 Outfit,sans-serif; margin:2px 0 0; }
.treasury-edition .treasury-achievement-burst { position:absolute; top:6px; left:var(--burst-position); width:0; height:0; pointer-events:none; z-index:3; }
.treasury-edition .treasury-achievement-burst > span { position:absolute; width:24px; height:24px; left:-12px; top:-12px; border:1px solid #ffe6af; border-radius:50%; opacity:0; }
.treasury-edition .treasury-achievement-burst i { --spark-angle:0deg; position:absolute; top:-2px; left:-2px; width:4px; height:4px; background:#f8d48a; box-shadow:0 0 7px #ffd77f88; opacity:0; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(2) { --spark-angle:30deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(3) { --spark-angle:60deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(4) { --spark-angle:90deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(5) { --spark-angle:120deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(6) { --spark-angle:150deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(7) { --spark-angle:180deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(8) { --spark-angle:210deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(9) { --spark-angle:240deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(10) { --spark-angle:270deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(11) { --spark-angle:300deg; }
.treasury-edition .treasury-achievement-burst i:nth-of-type(12) { --spark-angle:330deg; }
.treasury-edition [data-celebrating="true"] .treasury-achievement-burst > span { animation:treasury-achievement-ring 1100ms cubic-bezier(.16,1,.3,1) both; }
.treasury-edition [data-celebrating="true"] .treasury-achievement-burst i { animation:treasury-achievement-spark 1050ms cubic-bezier(.16,1,.3,1) both; }
.treasury-edition [data-celebrating="true"] .treasury-achievement-burst i:nth-of-type(even) { animation-delay:60ms; width:2px; height:5px; }
.treasury-edition .treasury-gem-halo { position:absolute; top:76px; width:224px; height:224px; border-radius:50%; background:radial-gradient(ellipse,#84b7a10f,#d2ac4b24 38%,transparent 70%); animation:treasury-gem-breathe 5s ease-in-out infinite; }
.treasury-edition .treasury-gem-sparks { position:absolute; inset:20% 25% 35%; z-index:4; pointer-events:none; }
.treasury-edition .treasury-gem-sparks i { --drift:-12px; position:absolute; width:3px; height:3px; left:12%; bottom:20%; background:#f9e2a4; opacity:0; box-shadow:0 0 9px #f4c970; animation:treasury-gold-mote 5s ease-out infinite; }
.treasury-edition .treasury-gem-sparks i:nth-child(2) { left:70%; bottom:15%; animation-delay:-2.8s; --drift:18px; }
.treasury-edition .treasury-gem-sparks i:nth-child(3) { left:26%; bottom:62%; animation-delay:-1.3s; width:2px; height:2px; }
.treasury-edition .treasury-gem-sparks i:nth-child(4) { left:88%; bottom:65%; animation-delay:-3.7s; --drift:6px; }
.treasury-edition .treasury-gem-sparks i:nth-child(5) { left:56%; bottom:81%; animation-delay:-4.6s; width:2px; height:2px; }
.treasury-edition[data-entered="true"] .treasury-copy > * { animation:treasury-offer-enter .65s both cubic-bezier(.16,1,.3,1); }
.treasury-edition[data-entered="true"] .treasury-copy h2 { animation-delay:.06s; }
.treasury-edition [hidden] { display:none; }
@media (max-width:1100px) and (min-width:681px) {
  .treasury-edition .treasury-frame { width:calc(100% - 56px); grid-template-columns:.75fr 1fr; gap:24px 30px; padding-block:54px; }
  .treasury-edition .treasury-relic { min-height:426px; }
  .treasury-edition .treasury-relic::before { width:210px; top:65px; }
  .treasury-edition .treasury-relic::after { width:154px; top:93px; }
  .treasury-edition .treasury-relic > img { width:150px; height:150px; top:94px; }
  .treasury-edition .treasury-copy h2 { font-size:33px; }
  .treasury-edition .treasury-invitation { padding:22px 20px 2px; }
  .treasury-edition .treasury-benefit strong { font-size:21px; }
  .treasury-edition .treasury-loot { transform:scale(.85); transform-origin:50% 100%; }
}
@media (max-width:680px) {
  .founder-treasury.treasury-edition::before { background:linear-gradient(0deg,#080f28 2%,#080f28ed 55%,#080f28b0 79%,#080f28),url('assets/founder-harbor-v1.webp') 23% 0 / auto 520px no-repeat; }
  .treasury-edition .treasury-frame { width:calc(100% - 40px); max-width:460px; grid-template-columns:minmax(0,1fr); min-height:0; padding:34px 0 36px; gap:18px; }
  .treasury-edition .treasury-copy { grid-column:1; grid-row:1; }
  .treasury-edition .treasury-kicker { margin-bottom:13px; font-size:9px; letter-spacing:.12em; gap:8px; }
  .treasury-edition .treasury-kicker-mark,.treasury-edition .treasury-kicker-mark img { width:21px; height:25px; }
  .treasury-edition .treasury-copy h2 { font-size:clamp(25px,7.6vw,35px); line-height:1.18; }
  .treasury-edition .treasury-relic { grid-column:1; grid-row:2; min-height:146px; margin:-5px 0 -10px; transform:none; }
  .treasury-edition .treasury-relic::before { width:91px; top:12px; }
  .treasury-edition .treasury-relic::after { width:65px; top:25px; }
  .treasury-edition .treasury-relic > img { width:82px; height:82px; top:18px; }
  .treasury-edition .treasury-orbit-one { top:35px; width:210px; height:58px; }
  .treasury-edition .treasury-orbit-two { top:15px; width:160px; height:95px; }
  .treasury-edition .treasury-gem-halo { top:-5px; width:125px; height:125px; }
  .treasury-edition .treasury-light { top:-22px; width:180px; }
  .treasury-edition .treasury-plinth { bottom:0; width:240px; height:20px; }
  .treasury-edition .treasury-scene-signature { display:none; }
  .treasury-edition .treasury-gem-sparks { inset:10% 30% 30%; }
  .treasury-edition .treasury-loot { bottom:0; width:260px; height:100px; }
  .treasury-edition .treasury-loot-piece { width:84px; height:88px; }
  .treasury-edition .treasury-loot-piece > img { width:100px; height:100px; left:-26px; top:-5px; }
  .treasury-edition .treasury-loot-hero { height:90px; }
  .treasury-edition .treasury-loot-hero > img { width:125px; height:125px; left:-39px; top:-26px; }
  .treasury-edition .treasury-loot-hero > .treasury-loot-coin { width:25px; height:25px; left:31px; top:3px; }
  .treasury-edition .treasury-invitation { grid-column:1; padding:19px 19px 2px; margin:0; }
  .treasury-edition .treasury-benefit { gap:11px; margin-bottom:16px; }
  .treasury-edition .treasury-benefit-art { flex-basis:33px; height:38px; }
  .treasury-edition .treasury-benefit-art img { width:32px; height:32px; }
  .treasury-edition .treasury-benefit strong { font-size:21px; }
  .treasury-edition .treasury-benefit div > span { font-size:13px; margin-top:5px; }
  .treasury-edition .treasury-desktop-break { display:none; }
  body .treasury-edition .treasury-cta { width:100%; min-height:52px; font-size:14px; padding-inline:12px; gap:12px; }
  .treasury-edition .treasury-invitation > small { margin-top:10px; font-size:12px; }
  .treasury-edition .treasury-details { margin-top:12px; }
  .treasury-edition .treasury-community { grid-column:1; padding-top:3px; }
  .treasury-edition .treasury-community-title { font-size:12px; margin-bottom:5px; }
  .treasury-edition .treasury-proof { font-size:11px; gap:13px; }
  .treasury-edition .treasury-proof > strong { font-size:39px; }
  .treasury-edition .treasury-milestones { margin-top:18px; }
  .treasury-edition .treasury-milestone-note { font-size:10px; }
}
@media (max-width:360px) {
  .treasury-edition .treasury-frame { width:calc(100% - 32px); }
  .treasury-edition .treasury-invitation { padding-inline:15px; }
  .treasury-edition .treasury-benefit strong { font-size:19px; }
  .treasury-edition .treasury-proof { gap:10px; }
  .treasury-edition .treasury-proof > strong { font-size:33px; }
}
@keyframes treasury-energy-travel { 0% { transform:translateX(0); opacity:0; } 16% { opacity:1; } 100% { transform:translateX(500%); opacity:0; } }
@keyframes treasury-gold-mote { 0%,18% { transform:translate3d(0,4px,0) rotate(45deg); opacity:0; } 30% { opacity:.8; } 80%,100% { transform:translate3d(var(--drift),-28px,0) rotate(80deg); opacity:0; } }
@keyframes treasury-gem-breathe { 0%,100% { transform:scale(.85); opacity:.5; } 50% { transform:scale(1.12); opacity:1; } }
@keyframes treasury-reward-float { 0%,100% { transform:translateY(0) rotate(-6deg); } 50% { transform:translateY(-8px) rotate(6deg); } }
@keyframes treasury-cta-call { 0%,35%,100% { opacity:0; } 63% { opacity:.7; } }
@keyframes treasury-offer-enter { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes treasury-achievement-ring { 0% { transform:scale(.35); opacity:0; } 12% { opacity:.9; } 100% { transform:scale(4); opacity:0; } }
@keyframes treasury-achievement-spark { 0% { transform:rotate(var(--spark-angle)) translateX(7px) scale(.3); opacity:0; } 12% { opacity:1; } 100% { transform:rotate(var(--spark-angle)) translateX(63px) scale(.1); opacity:0; } }
.treasury-edition[data-motion="paused"] *,.treasury-edition[data-motion="paused"] *::before,.treasury-edition[data-motion="paused"] *::after { animation-play-state:paused!important; }
.reduce-motion .treasury-edition *,.reduce-motion .treasury-edition *::before,.reduce-motion .treasury-edition *::after { animation:none!important; transition:none!important; }
@media (prefers-reduced-motion:reduce) { .treasury-edition *,.treasury-edition *::before,.treasury-edition *::after { animation:none!important; transition:none!important; } }
@media (prefers-reduced-transparency:reduce) { .treasury-edition .treasury-invitation { background:#111e36; backdrop-filter:none; -webkit-backdrop-filter:none; } }
@supports not (backdrop-filter:blur(1px)) { .treasury-edition .treasury-invitation { background:#111e36; } }
