/* The planned ETH treasury: HTML balances around the brand artwork. */
#treasury { --treasury-glass:rgba(255,255,255,.94); --treasury-edge:#ccd5c1; --treasury-eth:#8d660d; --treasury-ring:rgba(88,112,52,.14); }
html[data-theme="dark"] #treasury { --treasury-glass:rgba(21,25,18,.94); --treasury-edge:#3d4734; --treasury-eth:#e7cb78; --treasury-ring:rgba(176,206,140,.13); }
.treasury-display { margin-top:40px; padding-top:26px; border-top:1px solid var(--line); }
.treasury-topline { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.treasury-total>span { display:block; font-size:12px; font-weight:600; color:var(--muted); }
.treasury-total strong { display:flex; align-items:baseline; gap:12px; font-family:var(--display); font-size:clamp(48px,5.8vw,72px); line-height:1.15; font-weight:500; letter-spacing:-.045em; }
.treasury-total strong>b { font-weight:inherit; }
.treasury-total strong>span { font-family:"Hanken Grotesk",sans-serif; font-size:12px; font-weight:600; letter-spacing:.03em; color:var(--muted); }
.treasury-preview { border:1px solid var(--line); border-radius:30px; padding:7px 12px; font-size:11px; color:var(--muted); white-space:nowrap; }
.treasury-scene { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); align-items:start; position:relative; margin:24px 0 44px; }
.treasury-sponge { grid-column:4/10; grid-row:1; position:relative; width:100%; aspect-ratio:1; align-self:center; perspective:1100px; }
.treasury-sponge-float { position:absolute; inset:0; transform-style:preserve-3d; }
.treasury-character { display:block; width:100%; height:100%; object-fit:contain; }
.treasury-orbit { position:absolute; width:124%; height:35%; left:-12%; top:62%; border:1px solid var(--treasury-ring); border-radius:50%; transform:rotate(-9deg); }
.treasury-orbit::after { content:""; position:absolute; inset:14px -17px; border:1px solid var(--treasury-ring); border-radius:50%; }
.treasury-scene-label { position:absolute; top:101%; left:0; width:100%; text-align:center; font-size:10px; letter-spacing:.04em; color:var(--muted); }
.holding { grid-row:1; position:relative; z-index:1; min-width:0; border:1px solid var(--treasury-edge); border-radius:24px; background:var(--treasury-glass); box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 18px 38px -26px rgba(12,26,3,.28); transition:border-color .25s; }
.holding-eth { grid-column:1/5; margin-top:70px; --holding-color:var(--treasury-eth); }
.holding::after { content:""; position:absolute; top:57px; left:100%; width:19%; height:1px; background:var(--holding-color); opacity:.65; pointer-events:none; }
.holding summary { list-style:none; padding:23px; cursor:pointer; border-radius:inherit; }
.holding summary::-webkit-details-marker { display:none; }
.holding summary::marker { content:""; }
.holding summary:focus-visible { outline-offset:5px; }
.holding:hover,.holding:focus-within,.holding[open] { border-color:var(--holding-color); }
.holding-header { display:flex; align-items:center; gap:11px; }
.holding-icon { width:44px; height:48px; display:grid; place-items:center; flex:none; }
.holding-icon-eth img { width:34px; height:46px; object-fit:contain; }
.holding-name { min-width:0; }
.holding-name b { display:block; font-size:18px; line-height:1.3; }
.holding-name>span { display:block; margin-top:3px; font-size:11px; color:var(--muted); line-height:1.35; }
.holding-toggle { display:grid; place-items:center; margin-left:auto; align-self:flex-start; flex:none; width:23px; height:23px; border:1px solid var(--line); border-radius:50%; font-size:17px; color:var(--muted); transition:transform .2s; }
.holding[open] .holding-toggle { transform:rotate(45deg); }
.holding-amount { display:block; margin-top:22px; font-size:clamp(26px,3vw,40px); font-weight:700; letter-spacing:-.045em; line-height:1.15; font-variant-numeric:tabular-nums; }
.holding-amount>b { font-weight:inherit; }
.holding-amount>span { display:block; margin-top:6px; font-size:11px; font-weight:400; letter-spacing:0; color:var(--muted); }
.holding-value { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 12px; border-top:1px solid var(--line); padding-top:16px; margin-top:21px; }
.holding-value b { font-size:17px; font-weight:600; color:var(--holding-color); font-variant-numeric:tabular-nums; }
.holding-value>span { font-size:10px; color:var(--muted); }
.holding-detail { margin:0 23px 22px; padding-top:15px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.65; }
.treasury-pair-info { grid-column:10/13; grid-row:1; align-self:center; padding-left:25px; margin:0; display:grid; gap:30px; }
.treasury-pair-info dt { color:var(--muted); font-size:11px; margin-bottom:8px; }
.treasury-pair-info dd { margin:0; font-size:17px; font-weight:600; line-height:1.5; }
.treasury-pair-info dd img { display:inline-block; width:22px; height:26px; object-fit:contain; vertical-align:middle; margin-right:7px; }
.treasury-pair-info dd>span { display:block; color:var(--muted); font-size:11px; font-weight:400; margin-top:3px; }
.treasury-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 20px; padding-top:22px; margin-top:25px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; font-variant-numeric:tabular-nums; }
.treasury-links { margin-top:16px; }
#treasury .preview-note { margin-top:22px; }
@keyframes treasury-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@media (min-width:921px) and (max-width:1100px) {
  .holding summary { padding:19px; }.holding-detail { margin-inline:19px; }
  .holding-eth { margin-top:35px; }.holding-name>span { font-size:10px; }
  .treasury-pair-info { padding-left:20px; }.treasury-pair-info dd { font-size:14px; }
}
@media (max-width:920px) {
  .treasury-scene { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:34px 30px; margin-top:5px; }
  .treasury-sponge { grid-column:1/-1; grid-row:1; max-width:380px; justify-self:center; }
  .treasury-scene-label { top:100%; }
  .holding-eth { grid-row:2; grid-column:1; margin-top:0; }
  .holding::after { display:none; }.holding summary { padding:22px; }.holding-amount { font-size:34px; }
  .treasury-pair-info { grid-column:2; grid-row:2; padding-left:12px; gap:22px; }
}
@media (max-width:640px) {
  .treasury-display { margin-top:30px; padding-top:22px; }
  .treasury-topline { align-items:flex-start; gap:10px; }
  .treasury-total>span { font-size:11px; }.treasury-total strong { font-size:48px; gap:8px; }.treasury-total strong>span { font-size:10px; }
  .treasury-preview { font-size:9px; padding:5px 8px; margin-top:3px; }
  .treasury-scene { grid-template-columns:minmax(0,1fr); gap:14px; margin-top:14px; }
  .treasury-sponge { max-width:330px; grid-column:1; margin-bottom:24px; }
  .treasury-orbit { width:90%; left:5%; }.treasury-orbit::after { inset:10px -10px; }
  .holding-eth { grid-column:1; grid-row:auto; border-radius:20px; }
  .holding summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:17px 12px; padding:20px; }
  .holding-header { grid-column:1/-1; }.holding-name b { font-size:18px; }.holding-name>span { font-size:11px; }
  .holding-amount { margin:0; font-size:32px; }
  .holding-value { display:block; align-self:end; border:0; margin:0; padding:0 0 2px; text-align:right; }
  .holding-value>span { display:block; margin-top:5px; }.holding-detail { margin-inline:20px; }
  .treasury-pair-info { grid-column:1; grid-row:auto; grid-template-columns:1fr 1fr; padding:18px 0 0; gap:22px 15px; }
  .treasury-pair-info dd { font-size:15px; }.treasury-pair-info dd img { width:18px; height:23px; margin-right:4px; }
  .treasury-meta { display:grid; gap:7px; font-size:10px; }
}
@media (max-width:360px) {
  .treasury-topline { flex-wrap:wrap; }.treasury-preview { margin-top:0; }
  .holding summary { padding:17px; gap:16px 7px; }.holding-amount { font-size:28px; }.holding-value b { font-size:15px; }
  .holding-value>span { max-width:10ch; }.treasury-pair-info dd { font-size:13px; }
}
/* Depth stays in the artwork; amounts and interactive cards never tilt. */
.treasury-controls { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.treasury-motion-toggle { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:30px; background:transparent; color:var(--muted); font:600 11px "Hanken Grotesk",sans-serif; cursor:pointer; }
.treasury-motion-toggle[hidden] { display:none; }.treasury-motion-toggle:hover { background:var(--surface-2); color:var(--ink); }.treasury-motion-toggle:disabled { cursor:default; }
.treasury-motion-toggle svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.25; stroke-linejoin:round; }
.treasury-motion-state { font-size:10px; color:var(--muted); }
.treasury-motion-toggle[aria-pressed="true"] svg,.treasury-motion-toggle[aria-pressed="true"] .treasury-motion-state { color:var(--lime); }
.treasury-depth { position:absolute; inset:0; transform-style:preserve-3d; transform:rotateX(var(--depth-rx,0deg)) rotateY(var(--depth-ry,0deg)); }
.treasury-ground { position:absolute; pointer-events:none; bottom:-1%; left:14%; width:72%; height:13%; border-radius:50%; background:radial-gradient(ellipse,rgba(41,61,19,.19),rgba(41,61,19,.07) 38%,transparent 70%); transform:translateX(var(--depth-shadow,0px)); }
html[data-theme="dark"] .treasury-ground { background:radial-gradient(ellipse,rgba(177,215,118,.055),rgba(95,123,59,.025) 36%,transparent 70%); }
.treasury-glint { position:absolute; inset:0; pointer-events:none; opacity:0; mask:url('assets/brand/sponge-treasury-eth-v1.png') center/contain no-repeat; -webkit-mask:url('assets/brand/sponge-treasury-eth-v1.png') center/contain no-repeat; transition:opacity .4s; }
.treasury-glint::after { content:""; position:absolute; inset:0; background:linear-gradient(112deg,transparent 32%,rgba(255,255,255,.1) 43%,rgba(255,255,255,.6) 49%,rgba(255,255,255,.08) 57%,transparent 68%); transform:translateX(var(--depth-light,0%)); }
#treasury[data-motion-running] .treasury-sponge-float { animation:treasury-float 7s ease-in-out infinite; }
#treasury[data-motion-running] .treasury-sponge[data-pointer-active] .treasury-glint { opacity:.2; }
#treasury:not([data-motion-enabled]) .treasury-depth { transform:none; }
#treasury:not([data-motion-enabled]) .treasury-glint { display:none; }
@media (prefers-reduced-motion:reduce) {
  #treasury .treasury-depth { transform:none; } #treasury .treasury-sponge-float { animation:none; } #treasury .treasury-glint { display:none; }
  .holding,.holding-toggle { transition:none; }
}
