/* v10 fixes: phone gutters, hero/origin art framing, contract-address strip, card page above the fold, readability. */

/* Contract address strip under the home hero buttons */
.p-ca{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;max-width:max-content;margin:20px 0 0;padding:8px 8px 8px 14px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(5,6,8,.62);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.p-ca .p-ca-label{font:700 11px/1 'JetBrains Mono',monospace;letter-spacing:.18em;color:#ff5d52}
.p-ca code{font:600 13px/1 'JetBrains Mono',monospace;color:#f1f2f4;white-space:nowrap}
.p-ca .p-ca-btn{border:0;border-radius:999px;padding:8px 14px;font:700 12px/1 'Inter',system-ui,sans-serif;color:#fff;background:#e2231a;cursor:pointer;min-height:32px}
.p-ca .p-ca-btn:hover{background:#ff3b30}

/* Tokenomics rows: label and text flow as one sentence instead of two squeezed columns */
.tok-list li{display:block;position:relative;padding:16px 20px 16px 52px}
.tok-list li:before{position:absolute;left:20px;top:15px}
.tok-list li b{color:#fff;margin-right:6px}

/* Readability */
.coll-soon,.coll-locked{opacity:.82}
.coll-count{white-space:nowrap}
.hc-eyebrow,.p-eyebrow,.mv-eyebrow,.cp-eyebrow{font-size:max(11px,1em)}

/* Card page: the card (and Share) should be on screen when someone arrives from a shared link */
.cp-hero{padding:64px 0 34px}
.cp-stage{padding:34px 0 72px}
@media(max-width:700px){
  /* phones: keep gutters, frame the mascot instead of covering it */
  .p-hero{min-height:880px}
  .p-hero-art img,.hc-hero-art img,.bk-hero-art img{object-position:0% 0}
  .p-hero h1{font-size:48px}
  .p-ca{max-width:100%;padding-left:12px;gap:8px}
  .p-ca code{font-size:12px}
  .p-origin{min-height:840px}
  .p-origin-art img{object-position:center top}
  .p-origin .p-section-copy h2{font-size:32px}
  .hc-hero{min-height:900px}
  .bk-hero{min-height:880px}
  .saga-hero{min-height:900px}
  .tok-list li{padding:14px 16px 14px 44px;font-size:15px}
  .tok-list li:before{left:16px;top:14px}
  .cp-hero{padding:22px 0 14px}
  .cp-head h1{font-size:36px}
  .cp-lead{display:none}
  .cp-stage{padding:14px 0 48px}
  .cp-stage .wrap{padding-left:12px;padding-right:12px}
  .cp-card-frame{padding:6px}
  .cp-actions-panel>.cp-eyebrow,.cp-actions-panel>h2,.cp-actions-panel>p:not(.hands-fine){display:none}
  .cp-actions-panel{padding:14px}
  .cp-actions-panel .hands-actions{grid-template-columns:1fr 1fr}
  .cp-actions-panel .hands-actions .btn:first-child{grid-column:1/-1}
}

.mv-feature-empty{display:none}
#featuredBlock[hidden]+.mv-feature-empty{display:block;color:#a9afb7;padding:6px 0 0;font-size:15px}

/* Keep the side gutters on every hero/inner wrapper below desktop width (some breakpoints zeroed them).
   On desktop the .wrap already supplies the gutter, so text lines up with the logo. */
.p-hero-inner,.p-origin-inner,.hc-hero-inner,.bk-hero-inner,.saga-hero-inner,.mv-hero-grid{padding-left:20px;padding-right:20px}
@media(min-width:1200px){.p-hero-inner,.p-origin-inner,.hc-hero-inner,.bk-hero-inner,.saga-hero-inner,.mv-hero-grid{padding-left:0;padding-right:0}}

/* Laptop/desktop hero: fit the first screen (headline, buttons and CA strip visible without scrolling) */
@media(min-width:701px){
  .p-hero{min-height:clamp(560px,calc(100vh - 73px),760px);align-items:center}
  .p-hero-inner{padding-top:34px;padding-bottom:34px}
}
@media(min-width:701px) and (max-height:700px){
  .p-hero h1{font-size:clamp(52px,6.2vw,96px)}
  .p-kicker{margin-top:14px}
}
#originals,#fresh,#submit{scroll-margin-top:84px}

/* Intro splash wordmark: GM white, E red. No red glitch layers over the letters. */
.intro-txt:before,.intro-txt:after{display:none!important}

/* Live stats tiles: identical size; headline values stay on one line */
.p-live{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:12px}
.p-live>div{min-height:124px;display:flex;flex-direction:column;justify-content:flex-start}
.p-live>div{padding:18px 16px}
.p-live strong{font-size:clamp(18px,1.6vw,24px);white-space:nowrap}
.p-live small{margin-top:auto;padding-top:6px;min-height:1.2em}
@media(max-width:700px){.p-live{grid-template-columns:repeat(2,minmax(0,1fr))}.p-live>div{min-height:104px}.p-live>div:last-child{grid-column:1/-1;min-height:84px}}

/* More air between a section's paragraph and its buttons */
.p-section-copy>p+.p-actions,.p-section-copy>p+.hands-actions{margin-top:34px}

@media(min-width:1000px){.p-community-grid{grid-template-columns:minmax(0,1fr) minmax(480px,560px);gap:48px}.p-live{max-width:none}}

/* Laptop/desktop: every page hero fits the first screen (headline + buttons visible without scrolling) */
@media(min-width:701px){
  .saga-hero,.hc-hero,.bk-hero,.mv-hero{min-height:clamp(540px,calc(100vh - 73px),780px);align-items:center}
  .saga-hero-inner,.hc-hero-inner,.bk-hero-inner{padding-top:36px;padding-bottom:36px}
  .mv-hero-grid{padding-top:36px;padding-bottom:36px}
  .saga-hero-copy{max-width:880px}
  .saga-hero h1{font-size:clamp(44px,min(6.2vw,10.5vh),100px);margin-bottom:16px}
  .saga-hero p{margin-bottom:22px}
  .hc-copy h1,.mv-hero h1{font-size:clamp(44px,min(6.4vw,10.5vh),104px)}
  .bk-hero h1{font-size:clamp(44px,min(6.4vw,10.5vh),104px)}
}
.bk-hero-inner{width:100%}
@media(min-width:701px){.saga-hero-copy{max-width:700px}}

/* Saga hero on phones: art sits in the top block so the headline never covers the mascot */
@media(max-width:700px){
  .saga-hero{min-height:960px}
  .saga-hero-art{bottom:auto;height:620px}
  .saga-hero-art img{object-position:58% 40%}
  .saga-hero-shade{background:linear-gradient(0deg,#040507 0%,#040507 40%,rgba(4,5,7,.55) 52%,rgba(4,5,7,0) 68%),linear-gradient(180deg,rgba(4,5,7,.55) 0%,rgba(4,5,7,0) 18%)}
}

/* ===== Phone spacing pass: shorter heroes, no dead space, compact tiles ===== */
@media(max-width:700px){
  /* Home hero: one screen; art shifted up so the mascot's face sits above the headline */
  .p-hero{min-height:calc(100vh - 62px);min-height:calc(100svh - 62px)}
  .p-hero-art{top:-110px}
  .p-hero-inner{padding-bottom:26px}
  .p-hero h1{font-size:44px}
  .p-kicker{margin-top:12px}
  .p-lead{margin-bottom:14px}
  .p-ca{margin-top:14px}

  /* Origin: picture block on top, copy underneath (no 800px-tall overlay) */
  .p-origin{display:block;min-height:0}
  .p-origin-art{position:relative;inset:auto;height:300px}
  .p-origin-art img{object-position:50% 26%}
  .p-origin-overlay{bottom:auto;height:300px;background:linear-gradient(0deg,#0a0b0d 0%,rgba(10,11,13,0) 45%)}
  .p-origin-inner{padding:22px 20px 44px}
  .p-origin .p-section-copy h2{font-size:30px}

  /* Ecosystem tiles: two across, compact */
  .p-eco-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .p-tool-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:118px;padding:14px;grid-template-columns:none}
  .p-tool-card b{margin:8px 0 0;font-size:16px}
  .p-tool-card small{margin:0}
  .p-tool-card em{position:absolute;right:12px;top:12px;grid-column:auto;grid-row:auto}
  .p-ecosystem,.p-community,.p-meme-vault{padding:40px 0}

  /* Inner page heroes: no dead space under the buttons */
  .saga-hero{min-height:calc(100vh - 62px);min-height:calc(100svh - 62px)}
  .saga-hero h1{font-size:44px}
  .saga-hero-inner{padding-bottom:30px}
  .hc-hero,.bk-hero{min-height:calc(100vh - 62px);min-height:calc(100svh - 62px)}
  .hc-hero-inner,.bk-hero-inner{padding-bottom:30px}
  .saga-intro{padding:40px 0 24px}
  .mv-empty{margin:8px 0}
}

/* ===== Phone inner-page heroes: picture block on top, copy beneath (mascot never covered, no dead space) ===== */
@media(max-width:700px){
  .saga-hero,.hc-hero,.bk-hero{display:block;min-height:0;align-items:initial}
  .saga-hero-art,.hc-hero-art,.bk-hero-art{position:absolute;top:0;left:0;right:0;bottom:auto}
  .saga-hero-shade,.hc-hero-shade,.bk-hero-shade{position:absolute;top:0;left:0;right:0;bottom:auto}
  .saga-hero-art,.saga-hero-shade{height:420px}
  .hc-hero-art,.hc-hero-shade,.bk-hero-art,.bk-hero-shade{height:300px}
  .saga-hero-art img{object-position:46% 40%}
  .hc-hero-art img,.bk-hero-art img{object-position:0% 62%}
  .saga-hero-shade,.hc-hero-shade,.bk-hero-shade{background:linear-gradient(0deg,#050608 0%,rgba(5,6,8,.0) 60%),linear-gradient(180deg,rgba(5,6,8,.45) 0%,rgba(5,6,8,0) 22%)}
  .saga-hero-inner{padding:350px 20px 34px}
  .hc-hero-inner,.bk-hero-inner{padding:240px 20px 34px}
  .mv-hero{min-height:0;display:block}
  .mv-hero-grid{padding:30px 20px 34px}
}
@media(max-width:700px){
  .saga-hero-art,.saga-hero-shade{height:380px}
  .saga-hero-inner{padding-top:312px}
  .hc-hero-art,.hc-hero-shade,.bk-hero-art,.bk-hero-shade{height:235px}
  .hc-hero-inner,.bk-hero-inner{padding-top:188px}
  .hc-hero-art img,.bk-hero-art img{object-position:0% 58%}
  .hc-copy h1,.bk-hero h1{font-size:42px}
}
@media(max-width:700px){
  .mv-hero{padding:0}
  .mv-hero-grid{display:flex;flex-direction:column;gap:18px;padding:18px 20px 34px}
  .mv-original-hero-image{order:-1;margin:0}
  .mv-original-hero-image img{width:100%;height:210px;object-fit:cover;border-radius:16px;display:block}
  .mv-hero h1{font-size:42px}
}
@media(max-width:700px){.saga-hero-art,.saga-hero-shade{height:350px}.saga-hero-inner{padding-top:282px}}
@media(max-width:700px){
  .p-origin{padding:0}
  .p-origin-art{display:block;width:100%;height:300px}
  .p-origin-art img{width:100%;height:300px}
}
@media(max-width:700px){
  .saga-hero-inner{padding-bottom:22px}
  .saga-chapter{padding-top:22px;padding-bottom:22px}
  .mv-fresh-head{margin-top:40px}
  .mv-gallery:empty{display:none}
  .p-live>div{min-height:92px}
  .p-live>div:last-child{min-height:72px}
}
@media(max-width:700px) and (max-height:720px){.p-kicker{display:none}.p-lead{font-size:15px;line-height:1.45}.p-hero-art{top:-150px}}

/* Holder Check: generate-card box under the result (replaces share/download buttons) */
.hc-gen{max-width:560px;margin:20px auto 4px;padding:22px;border:1px solid var(--h-line,rgba(255,255,255,.14));border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));display:grid;gap:14px;text-align:left}
.hc-gen[hidden]{display:none}
.hc-gen-text{margin:0;color:#e1e4e8;font-size:16px;line-height:1.55}
.hc-gen .owner-name{display:grid;gap:7px;flex:none;color:#a9afb7;font-size:13px}
.hc-gen .owner-name input{width:100%;min-height:50px;padding:0 14px;border-radius:12px;font-size:16px;box-sizing:border-box}
.hc-gen-btn{width:100%;min-height:54px;font-size:16px;padding:0 20px}
.hc-gen .submit-msg{margin:0;min-height:0;text-align:center}
.hc-gen .submit-msg:empty{display:none}
.hc-gen .hands-note{margin:0;text-align:center;font-size:13px;line-height:1.55}
.hc-signout{justify-self:center;background:none;border:0;padding:6px 10px;color:#9aa0a6;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}
.hc-signout[hidden]{display:none}
.hc-result-panel .hands-fine:empty{display:none}
.hc-result-panel .hands-fine{text-align:center;margin:10px 0 0}
@media(max-width:700px){.hc-gen{padding:18px;margin-top:16px}.coll-act{min-height:42px;padding:10px 16px}}
.cp-back{display:inline-flex;align-items:center;min-height:44px;margin:0 0 14px;padding:0 16px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.05);color:#fff;font-size:14px;font-weight:700;text-decoration:none}
.cp-back:hover{background:rgba(255,255,255,.1)}
