/* Agent Market v6: visual system mirrors the reference drop pages.
   Cream paper, brown ink, orange accents, Funnel Display + Funnel Sans.
   Shared identically across mint, presale and claim sites. */
:root {
  --paper: #fbf3e8;
  --paper-2: #f5e8d6;
  --paper-3: #eedbc3;
  --ink: #2a1d15;
  --ink-2: #5b4738;
  --mute: #8a7462;
  --line: rgba(42, 29, 21, .12);
  --line-2: rgba(42, 29, 21, .22);
  --orange: #f4a66e;
  --orange-2: #e58a4e;
  --orange-3: #c96d34;
  --peach: #fcdcc1;
  --cream: #fffaf3;
  --good: #4f8a63;
  --bad: #c2523d;
  --display: "Funnel Display", system-ui, sans-serif;
  --text: "Funnel Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --pad: clamp(18px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body:before {
  content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--peach); color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
b, strong { font-weight: 700; }

/* ===== Collar header (fixed dark pill, animated brand) ===== */
.collar {
  position: fixed; top: 14px; left: 50%; transform: translate(-50%);
  z-index: 50; display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 10px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px;
  box-shadow: 0 10px 30px -14px rgba(42, 29, 21, .55);
  max-width: calc(100vw - 24px);
}
.collar .stitch {
  position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px;
  border-radius: 11px; pointer-events: none;
  border: 1px dashed rgba(251, 243, 232, .18);
}
.collar .brand {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 4px 10px 4px 2px; flex: none;
}
.brand-mark {
  width: 27px; height: 27px; flex: none;
  transform-origin: 50% 0;
  animation: brandSway 5.2s ease-in-out infinite;
}
@keyframes brandSway {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-2deg); }
}
.brand-wordwrap {
  position: relative; display: inline-flex; overflow: hidden; border-radius: 3px;
}
.brand-word { display: block; height: 13.5px; width: auto; }
.brand-wordwrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(244, 166, 110, .5) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: brandSheen 6.5s ease-in-out infinite;
}
@keyframes brandSheen {
  0% { transform: translateX(-130%); }
  30%, 100% { transform: translateX(130%); }
}
.collar .links { position: relative; display: flex; align-items: center; flex-wrap: nowrap; }
.collar a.link {
  position: relative; padding: 8px 13px; font-size: 14px; font-weight: 500;
  letter-spacing: .01em; border-radius: 9px; color: rgba(251, 243, 232, .78);
  transition: color .25s, background .25s; white-space: nowrap;
}
.collar a.link:hover, .collar a.link[aria-current] { color: var(--paper); background: rgba(251, 243, 232, .08); }
.collar a.link[aria-current] { color: var(--orange); }
.collar .right { position: relative; display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.slot { display: flex; align-items: center; }
.wallet-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px; border-radius: 10px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  background: var(--orange); color: var(--ink);
  transition: background .2s;
}
.wallet-btn:hover { background: #f7b885; }
.wallet-btn.on { background: rgba(251, 243, 232, .1); color: var(--paper); }

/* ===== Toast ===== */
#toast {
  position: fixed; z-index: 100; left: 50%; bottom: 22px;
  transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 12px;
  width: min(440px, calc(100vw - 24px));
  padding: 14px 16px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-size: 14px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: transform .45s var(--spring), opacity .3s;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#toast a { font-weight: 700; color: var(--orange); }

/* ===== Page scaffold ===== */
.dp { position: relative; z-index: 1; max-width: 1220px; margin: 0 auto; padding: clamp(104px, 13vh, 140px) var(--pad) 110px; overflow-x: clip; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-3); }
.dp h1 { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 7vw, 96px); line-height: .9; letter-spacing: -.045em; margin-top: 12px; }
.dp h1 em { font-style: italic; color: var(--orange-2); }
.dp h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: .95; letter-spacing: -.035em; margin-top: 8px; }
.dp h3 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }
.lead { margin-top: 18px; max-width: 520px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); }
.lead b, .lead strong { color: var(--ink); }
.sec { margin-top: clamp(80px, 10vw, 130px); }
.sec-h { margin-bottom: 30px; }
.sec-h p { margin-top: 10px; color: var(--ink-2); max-width: 560px; }
.sec p.body { color: var(--ink-2); max-width: 640px; margin-top: 12px; }
.sec p.body strong { color: var(--ink); }
.fine { margin-top: 12px; font-size: 13px; color: var(--mute); text-align: center; }
.note { font-size: 13px; color: var(--mute); }
.side-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.side-link svg { transition: transform .25s var(--spring); }
.side-link:hover svg { transform: translate(4px); }
.soon-tag { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--orange); vertical-align: 2px; }
.tkr { color: var(--orange-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background .2s, transform .2s var(--spring);
}
.btn:hover { background: #3a291e; }
.btn.alt { background: var(--cream); color: var(--ink); border: 1px solid var(--line-2); }
.btn.alt:hover { background: #fff3e6; }
.chip-btn { flex: none; padding: 8px 14px; border-radius: 10px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 14px; transition: background .2s; }
.chip-btn:hover { background: #f7b885; }
.tagbtn {
  --c: var(--ink); --t: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px 16px 40px; font-weight: 600; font-size: 16px;
  color: var(--t); background: var(--c);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  -webkit-mask: radial-gradient(circle 4.5px at 19px 50%, transparent 4.5px, #000 5px);
  mask: radial-gradient(circle 4.5px at 19px 50%, transparent 4.5px, #000 5px);
  transition: transform .3s var(--spring), background .2s;
}
.tagbtn:hover { transform: translate(4px) rotate(-1deg); }
.tagbtn.orange { --c: var(--orange); --t: var(--ink); }
.tagbtn.orange:hover { --c: #f7b885; }
.tagbtn .arr { transition: transform .35s var(--spring); }
.tagbtn:hover .arr { transform: translate(4px); }

/* Live-now drop buttons (mint hero) */
.drop-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.drop-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 14px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.drop-btn .db-ic { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; }
.drop-btn .db-ic img { width: 100%; height: 100%; object-fit: cover; }
.drop-btn .db-ar { width: 16px; height: 16px; flex: none; transition: transform .3s var(--spring); }
.drop-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -16px rgba(42, 29, 21, .55); }
.drop-btn:hover .db-ar { transform: translate(3px); }
.drop-btn.db-dark { background: var(--ink); color: #fff3e4; }
.drop-btn.db-light { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }

/* ===== Console (action panel) ===== */
.console {
  background: var(--cream); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: 0 1px 0 #fff inset, 0 30px 60px -36px rgba(80, 40, 15, .35);
}
.go-btn {
  width: 100%; height: 60px; border-radius: 16px;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  position: relative; overflow: hidden;
  transition: transform .2s var(--spring), background .2s, opacity .2s;
}
.go-btn:after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(244, 166, 110, .35) 50%, transparent 70%);
  transform: translate(-100%);
}
.go-btn:not(:disabled):after { animation: sheen 3.2s 1s infinite; }
@keyframes sheen { 0% { transform: translate(-100%); } 60%, 100% { transform: translate(100%); } }
.go-btn:not(:disabled):active { transform: scale(.985); }
.go-btn:disabled { background: var(--paper-3); color: var(--mute); cursor: default; }
.go-btn:not(:disabled):hover { background: #3a291e; }
.go-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.agent-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 60px; padding: 0 20px; border-radius: 16px;
  background: var(--peach); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 16px;
  border: 1.5px solid rgba(201, 109, 52, .35);
  transition: background .2s, transform .2s var(--spring);
}
.agent-btn svg { width: 22px; height: 22px; flex: none; color: var(--orange-3); }
.agent-btn:active { transform: scale(.97); }
.agent-btn:hover { background: #fbd0ad; }
.txline { margin-top: 12px; font-size: 13px; color: var(--mute); word-break: break-all; text-align: center; }
.txline a { color: var(--orange-3); font-weight: 700; }

/* Who row (Agent ID status) */
.who { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--paper-2); }
.who-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 4px rgba(42, 29, 21, .06); }
.who.wait .who-dot { background: var(--orange); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.who.yes { background: #f3e2c9; box-shadow: 0 0 0 1.5px var(--orange) inset; }
.who.yes .who-dot { background: var(--good); box-shadow: 0 0 0 4px rgba(79, 138, 99, .18); }
.who.no .who-dot { background: var(--orange-2); }
.who-t { flex: 1; min-width: 0; display: grid; }
.who-t b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-t small { color: var(--ink-2); font-size: 13px; line-height: 1.35; }

/* Stepper, bill, total, progress */
.cs-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; gap: 12px; }
.cs-lab { display: grid; }
.cs-lab span { font-family: var(--display); font-weight: 700; font-size: 19px; }
.cs-lab small { color: var(--mute); font-size: 13px; }
.stepper { display: flex; align-items: center; background: var(--paper-2); border-radius: 14px; padding: 4px; }
.stepper button { width: 42px; height: 42px; border-radius: 11px; font-size: 22px; font-weight: 600; transition: background .2s; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper button:not(:disabled):hover { background: var(--cream); }
.stepper output { min-width: 52px; text-align: center; font-family: var(--display); font
...[truncated 20887 chars]-weight: 800; font-size: 26px; }
.stepper.sm { background: var(--cream); padding: 3px; }
.stepper.sm button { width: 34px; height: 34px; font-size: 18px; }
.stepper.sm output { min-width: 36px; font-size: 19px; }
.bill { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 12px; display: grid; gap: 6px; }
.bl { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.bl span:first-child { color: var(--ink-2); }
.bl small { margin-left: 8px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); vertical-align: 1px; }
.free-t { color: var(--good); font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.total > span { font-weight: 700; }
.total strong { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.total strong b { font-size: 18px; }
.progress { margin-top: 18px; }
.pg-bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-3)); border-radius: inherit; min-width: 8px; width: 0; transition: width .8s var(--ease); }
.pg-t { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--mute); }
.pg-t b { color: var(--ink); }

/* Facts band */
.facts-band { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 90px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.facts-band > div { display: grid; gap: 4px; padding: 26px 22px; }
.facts-band > div + div { border-left: 1px solid var(--line); }
.facts-band i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.facts-band b { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; }
.facts-band.five { grid-template-columns: repeat(5, 1fr); }
.facts-band small { color: var(--mute); font-size: 12px; }
.facts-band.three { grid-template-columns: repeat(3, 1fr); }

/* Verified contracts band (homepage, between hero and live board) */
.verify-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: clamp(56px, 8vw, 90px); padding: 15px 22px; background: var(--cream); border-top: 1px solid var(--line-2); }
.verify-band + .facts-band { margin-top: 0; }
.vb-title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.vb-title svg { flex: none; }
.vb-links { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }
.vb-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--orange); padding-bottom: 1px; transition: color .2s; }
.vb-links a:hover { color: var(--orange-3); }
.vb-note { color: var(--mute); font-size: 14px; }

/* Live claim ledger */
.claim-live { margin-top: 34px; }
.cl-head { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cl-head small { margin-left: auto; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--mute); text-align: right; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #4f8a63; flex: none; animation: pulse 1.6s ease-in-out infinite; }
.cl-band { margin-top: 14px; }
.cl-band > div { background: var(--panel, #fffaf3); }

/* Price ladder */
.ladder { margin-top: clamp(90px, 12vw, 150px); }
.steps-l { list-style: none; display: grid; gap: 10px; }
.steps-l li { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; }
.st-n { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; color: var(--orange-2); }
.steps-l b { font-weight: 700; }
.steps-l small { display: block; color: var(--mute); font-size: 13px; }
.st-p { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); white-space: nowrap; font-weight: 700; }
.st-p em { font-style: normal; color: var(--mute); font-weight: 500; }

/* Specimen (NFT artwork, first on the mint page) */
.mt-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.mt-art { position: sticky; top: 110px; perspective: 1200px; animation: artFloat 7s ease-in-out infinite; }
@keyframes artFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.specimen { position: relative; background: #1d130d; border-radius: 30px; padding: 14px 14px 0; box-shadow: 0 50px 90px -40px rgba(60, 25, 8, .7), 0 0 0 1px rgba(255, 255, 255, .04) inset; transition: transform .5s var(--ease); }
.sp-pin { position: absolute; top: -9px; left: 50%; width: 46px; height: 18px; margin-left: -23px; border-radius: 0 0 10px 10px; background: var(--orange); box-shadow: 0 2px 0 var(--orange-3); z-index: 3; transform-origin: 50% 0; animation: pinSway 5.5s ease-in-out infinite; }
@keyframes pinSway { 0%, 100% { transform: rotate(2.4deg); } 50% { transform: rotate(-2.4deg); } }
.sp-frame { border-radius: 20px; overflow: hidden; aspect-ratio: 1; }
.sp-foot { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; padding: 16px 8px 18px; color: var(--paper); font-size: 14px; font-weight: 600; }
.sp-foot span { display: grid; gap: 2px; }
.sp-foot i { font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 243, 232, .45); font-weight: 600; }
.mt-side { padding-top: 6px; }
.mt-side .console { margin-top: 30px; }

/* Animated NFT stage: Ken Burns zoom, lantern glow, firefly canvas, tilt */
.art-stage { position: relative; overflow: hidden; width: 100%; height: 100%; background: #1d130d; }
.art-stage img.art-img { display: block; width: 100%; height: 100%; object-fit: cover; animation: artZoom 16s ease-in-out infinite alternate; will-change: transform; }
@keyframes artZoom { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-1.6%, -1.6%); } }
.art-glow { position: absolute; inset: -18%; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle at 50% 60%, rgba(244, 166, 110, .34), rgba(229, 138, 78, .13) 42%, rgba(229, 138, 78, 0) 68%); animation: artGlow 6s ease-in-out infinite alternate; }
@keyframes artGlow { from { opacity: .55; transform: scale(.97); } to { opacity: 1; transform: scale(1.04); } }
.art-moon { position: absolute; left: 50%; top: 2%; width: 36%; aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle, rgba(255, 240, 205, .5), rgba(244, 166, 110, .16) 45%, rgba(244, 166, 110, 0) 70%); animation: moonPulse 7s ease-in-out infinite alternate; }
@keyframes moonPulse { from { opacity: .45; transform: translateX(-50%) scale(.95); } to { opacity: .95; transform: translateX(-50%) scale(1.06); } }
.art-lanterns { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.art-lanterns i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 170, .85), rgba(244, 166, 110, .32) 46%, rgba(244, 166, 110, 0) 70%); }
.art-lanterns .l1 { left: 4%; top: 42%; width: 17%; aspect-ratio: 1; animation: flickA 2.3s ease-in-out infinite; }
.art-lanterns .l2 { left: 13%; top: 52%; width: 15%; aspect-ratio: 1; animation: flickB 2.9s ease-in-out infinite; }
.art-lanterns .l3 { left: 60%; top: 48%; width: 15%; aspect-ratio: 1; animation: flickA 3.7s ease-in-out infinite reverse; }
.art-lanterns .l4 { left: 74%; top: 50%; width: 16%; aspect-ratio: 1; animation: flickB 2.6s ease-in-out infinite reverse; }
@keyframes flickA { 0%, 100% { opacity: .5; } 18% { opacity: .95; } 33% { opacity: .62; } 52% { opacity: 1; } 71% { opacity: .7; } 86% { opacity: .9; } }
@keyframes flickB { 0%, 100% { opacity: .85; } 22% { opacity: .55; } 41% { opacity: .95; } 63% { opacity: .6; } 82% { opacity: 1; } }
.art-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.art-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255, 228, 180, .17) 48%, rgba(255, 228, 180, .05) 54%, transparent 70%); transform: translateX(-130%) skewX(-8deg); animation: sheenSweep 7.5s ease-in-out infinite; }
@keyframes sheenSweep { 0% { transform: translateX(-130%) skewX(-8deg); } 30%, 100% { transform: translateX(130%) skewX(-8deg); } }

/* Agent ID section */
.agent { margin-top: clamp(80px, 10vw, 130px); }
.ag-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 50px); align-items: center; background: var(--ink); color: var(--paper); border-radius: 30px; padding: clamp(24px, 4vw, 54px); position: relative; overflow: hidden; }
.ag-card:before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 166, 110, .28), transparent 65%); pointer-events: none; }
.aid-stage { perspective: 900px; width: clamp(190px, 22vw, 250px); position: relative; z-index: 1; }
.aid-card { position: relative; aspect-ratio: 370 / 518; padding: 9%; display: flex; flex-direction: column; justify-content: space-between; color: #1a1300; overflow: hidden; clip-path: polygon(7% 0, 93% 0, 100% 5%, 100% 95%, 93% 100%, 7% 100%, 0 95%, 0 5%); background: radial-gradient(120% 70% at 30% 20%, #ffe9ad, #f4a66e 58%, #c96d34); box-shadow: inset 0 0 0 2px rgba(140, 95, 0, .25); animation: aidSway 7s ease-in-out infinite; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45)); }
@keyframes aidSway { 0%, 100% { transform: rotateY(-9deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(9deg) rotateX(-3deg) translateY(-7px); } }
.aid-card.flip { animation: aidflip .9s var(--ease); }
@keyframes aidflip { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(.94); } 100% { transform: rotateY(360deg) scale(1); } }
.aid-card:before { content: ""; position: absolute; top: 4.5%; right: 4.5%; bottom: 4.5%; left: 4.5%; border: 1.5px solid rgba(140, 95, 0, .35); clip-path: polygon(5% 0, 95% 0, 100% 4%, 100% 96%, 95% 100%, 5% 100%, 0 96%, 0 4%); pointer-events: none; }
.aid-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; font-size: clamp(9px, 1vw, 11px); font-weight: 700; letter-spacing: .04em; }
.aid-name { position: relative; z-index: 1; align-self: flex-start; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(26px, 3vw, 36px); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(255, 245, 170, .6); }
.aid-handle { position: relative; z-index: 1; font-size: clamp(11px, 1.1vw, 13px); font-weight: 700; opacity: .85; margin-top: 4px; }
.aid-bot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.aid-brand { font-size: clamp(8px, .85vw, 10px); font-weight: 800; letter-spacing: .06em; }
.ag-t { position: relative; }
.ag-t .kicker { color: var(--orange); }
.ag-t h2 { color: var(--paper); }
.ag-t p { margin-top: 12px; color: rgba(251, 243, 232, .72); max-width: 600px; }
.ag-check { display: flex; gap: 8px; margin-top: 20px; max-width: 560px; background: rgba(251, 243, 232, .07); border-radius: 14px; padding: 6px; }
.ag-check input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 10px; color: var(--paper); font-size: 15px; font-family: var(--text); }
.ag-check input::placeholder { color: rgba(251, 243, 232, .4); }
.ag-check button { padding: 10px 18px; border-radius: 10px; background: var(--orange); color: var(--ink); font-weight: 700; }
.ag-check button:hover { background: #f7b885; }
.ag-res { min-height: 22px; margin-top: 10px; font-size: 14px; }
.ag-res.good { color: #9fd4ad; }
.ag-res.bad { color: #f2b49b; }

/* Perks */
.perks { margin-top: clamp(80px, 10vw, 130px); }
.perk-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.perk { position: relative; padding: 28px 26px 30px; border-radius: 26px; background: var(--cream); border: 1px solid var(--line); overflow: hidden; }
.perk:first-child { background: var(--orange); border-color: transparent; }
.perk:first-child p { color: rgba(42, 29, 21, .78); }
.pk-n { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--orange-3); }
.perk:first-child .pk-n { color: var(--ink); }
.perk h3 { margin-top: 30px; font-size: 30px; }
.perk .b-big { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; margin-top: 14px; }
.perk p { margin-top: 8px; color: var(--ink-2); }
.pk-a { display: inline-block; margin-top: 18px; font-weight: 700; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.perk:not(:first-child) .pk-a { border-color: var(--orange-2); }
.perk-math { background: transparent; border-style: dashed; border-color: var(--line-2); }

/* Prompt boxes */
.prompt-box { position: relative; margin-top: 18px; }
.prompt-box pre { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 18px; font: 500 13.5px/1.55 var(--text); white-space: pre-wrap; word-break: break-word; }
.copy-btn { position: absolute; top: 10px; right: 10px; padding: 8px 14px; border-radius: 10px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 13px; z-index: 2; }
.copy-btn:hover { background: #f7b885; }

/* FAQ */
.dp-faq { margin-top: clamp(80px, 10vw, 130px); max-width: 780px; }
.dp-faq details { border-bottom: 1px solid var(--line); }
.dp-faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 18px; }
.dp-faq summary::-webkit-details-marker { display: none; }
.dp-faq summary:after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--orange-3); transition: transform .3s var(--spring); }
.dp-faq details[open] summary:after { transform: rotate(45deg); }
.dp-faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 640px; }

/* Presale: head, bowl gauge, fields */
.ps-head { text-align: center; }
.ps-head .lead { margin-left: auto; margin-right: auto; }
.ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(28px, 5vw, 70px); align-items: center; margin-top: clamp(40px, 6vw, 70px); }
.bowl { position: relative; display: grid; justify-items: center; }
.bowl-svg { width: min(100%, 440px); overflow: visible; transform: rotate(-90deg); }
.bowl-svg .bowl-track { fill: none; stroke: var(--paper-3); stroke-width: 14; }
.bowl-svg .bowl-arc { fill: none; stroke: url(#bowlGrad); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.bowl-t { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1 / 1; max-height: 440px; display: grid; place-content: center; text-align: center; pointer-events: none; }
.bowl-t span { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 7vw, 84px); letter-spacing: -.04em; line-height: 1; }
.bowl-t small { color: var(--ink-2); font-weight: 600; }
.bowl .progress { width: min(100%, 440px); }
.bowl-cap { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; justify-content: center; width: 100%; }
.bowl-cap div { display: grid; padding: 12px 18px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); min-width: 170px; flex: 1; }
.bowl-cap i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.bowl-cap b { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.bowl-cap small { color: var(--mute); font-size: 12px; }
.bowl-cap b small { font-family: var(--text); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--paper-2); border-radius: 16px; }
.pay-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; font-weight: 700; font-size: 16px; color: var(--ink-2); transition: background .25s, color .25s, box-shadow .25s; }
.pay-tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(80, 40, 15, .4); }
.field { display: grid; gap: 8px; margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.field.out { background: var(--paper-2); border-color: transparent; }
.f-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute); }
.f-top > span { font-weight: 700; color: var(--ink-2); }
.f-top b { color: var(--ink); font-weight: 600; }
.f-row { display: flex; align-items: center; gap: 10px; }
.f-row input, .f-row output { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -.03em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-row output.big { font-size: 30px; }
.f-row input::placeholder { color: var(--line-2); }
.f-coin { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: var(--cream); border: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.quick { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.quick button { padding: 2px 9px; border-radius: 7px; background: var(--paper-2); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.quick button:hover { background: var(--peach); }
.field.out .quick button { background: var(--cream); }
.arrow-paw { width: 40px; height: 40px; margin: -8px auto -12px; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--orange); border: 4px solid var(--cream); }
.rate { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 14px; color: var(--ink-2); text-align: center; flex-wrap: wrap; }
.rate b { color: var(--ink); }

/* Roadmap */
.road { margin-top: clamp(80px, 10vw, 130px); }
.road-l { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.road-l:before { content: ""; position: absolute; top: 9px; left: 0; right: 0; border-top: 2px dashed var(--line-2); }
.road-l li { position: relative; padding: 36px 24px 0 0; }
.rd-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--orange-2); }
.road-l li:first-child .rd-dot { background: var(--orange-2); }
.road-l b { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.road-l p { margin-top: 6px; color: var(--ink-2); }

/* Claim: hero, clock, grid, calc, rules */
.cl-hero { text-align: center; }
.cl-hero .lead { margin-left: auto; margin-right: auto; max-width: 600px; }
.clock { margin: 40px auto 0; display: inline-grid; gap: 12px; justify-items: center; }
.clock-k { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.clock-d { font-size: 13px; color: var(--mute); }
.cd { display: flex; gap: clamp(6px, 1.4vw, 12px); }
.cd span { display: grid; justify-items: center; min-width: clamp(68px, 9vw, 100px); padding: 14px 10px 10px; border-radius: 18px; background: var(--ink); color: var(--paper); position: relative; }
.cd span:before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; border-top: 1px solid rgba(251, 243, 232, .08); }
.cd b { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; line-height: 1; }
.cd i { font-style: normal; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.cl-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(60px, 8vw, 100px); align-items: start; justify-content: center; }
.cl-top { display: flex; justify-content: space-between; align-items: center; }
.cl-k { font-weight: 700; color: var(--ink-2); }
.cl-state { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.cl-state.open { background: rgba(79, 138, 99, .14); color: var(--good); }
.cl-big { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cl-big output { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.4vw, 60px); letter-spacing: -.04em; line-height: 1; }
.cl-big b { font-family: var(--display); font-size: 20px; color: var(--orange-2); }
.cl-eyes { display: flex; flex-wrap: wrap; gap: 5px; margin: 16px 0 6px; min-height: 4px; align-items: center; }
.cl-eyes i { width: 26px; height: 16px; border-radius: 50%; background: radial-gradient(ellipse 3px 6px at 50% 50%, var(--ink) 98%, transparent), radial-gradient(circle at 50% 50%, var(--orange) 55%, transparent 58%), #fff4e4; border: 2px solid var(--ink); }
.cl-eyes span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cl-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cl-line span:first-child { color: var(--ink-2); }
.cl-line span:last-child { font-weight: 700; text-align: right; }
.claim-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.claim-btns .go-btn { font-size: 16px; }
.cl-side { display: grid; gap: 22px; }
.calc { padding: clamp(22px, 3vw, 36px); border-radius: 26px; border: 1.5px dashed var(--line-2); }
.calc h3 { margin-top: 6px; }
.calc .sub { color: var(--ink-2); margin-top: 6px; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; margin-top: 28px; border-radius: 99px; background: linear-gradient(90deg, var(--orange) var(--p, 40%), var(--paper-3) var(--p, 40%)); outline: 0; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 5px solid var(--cream); box-shadow: 0 4px 12px rgba(42, 29, 21, .3); cursor: grab; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 5px solid var(--cream); cursor: grab; }
.calc-out { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.calc-out .cv { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.035em; line-height: 1; }
.calc-out .cv small { font-size: .45em; color: var(--orange-2); letter-spacing: 0; }
.calc-out > span:first-child { color: var(--ink-2); font-weight: 600; }
.calc-out > span:first-child b { font-family: var(--display); font-size: 24px; color: var(--ink); }
.calc .fine { text-align: left; }
.checker { display: flex; gap: 8px; margin-top: 16px; background: var(--paper-2); border-radius: 14px; padding: 6px; }
.checker input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 10px; color: var(--ink); font-size: 15px; font-family: var(--text); }
.checker input::placeholder { color: var(--mute); }
.checker .chip-btn { padding: 10px 18px; border-radius: 10px; }
.rules { margin-top: clamp(80px, 10vw, 130px); }
.rule-board { position: relative; overflow: hidden; border-radius: 30px; background: var(--ink); color: var(--paper); padding: clamp(26px, 4vw, 48px); }
.rule-board:before { content: ""; position: absolute; top: -40%; right: -10%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 166, 110, .28), rgba(244, 166, 110, 0)); pointer-events: none; }
.rule-track { --g: clamp(18px, 3vw, 34px); position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); }
.rule { position: relative; display: grid; gap: 12px; align-content: start; }
.rule:not(:last-child):before { content: ""; position: absolute; left: 46px; top: 22px; height: 2px; width: calc(100% + var(--g) - 46px); background: repeating-linear-gradient(90deg, rgba(251, 243, 232, .28) 0 6px, transparent 6px 12px); }
.rule .dot { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 2px solid var(--orange); color: var(--orange); font: 800 14px var(--display); letter-spacing: .04em; }
.rule:last-child .dot { background: var(--orange); color: var(--ink); }
.rule small { font: 700 11px var(--display); letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 243, 232, .5); }
.rule b { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; line-height: 1.05; }
.rule b em { font-style: normal; color: var(--orange); }
.rule p { color: rgba(251, 243, 232, .72); }
.rule-foot { position: relative; margin-top: clamp(24px, 3vw, 36px); padding-top: 18px; border-top: 1px solid rgba(251, 243, 232, .14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; font-size: 14px; color: rgba(251, 243, 232, .62); }
.rule-foot strong { color: var(--paper); font-family: var(--display); }

/* Agent modal */
.agm { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; background: rgba(42, 29, 21, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.agm.in { opacity: 1; }
.agm[hidden] { display: none; }
.agm-card { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--cream); border-radius: 26px; padding: clamp(20px, 4vw, 30px); box-shadow: 0 30px 80px -30px rgba(42, 29, 21, .6); transform: translateY(14px) scale(.98); transition: transform .3s var(--ease); }
.agm.in .agm-card { transform: none; }
.agm-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.agm-h h3 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; margin-top: 4px; }
.agm-x { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); flex: none; font-size: 15px; }
.agm-steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin: 18px 0; padding: 0; }
.agm-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; color: var(--ink-2); font-size: 14px; }
.agm-steps li:before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--orange); font: 800 14px var(--display); }
.agm-steps b { font-family: var(--display); font-size: 16px; color: var(--ink); }
.agm-qty { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--paper-2); }
.agm-qty > span { font-weight: 600; }
.agm-qty strong { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-size: 17px; }
.agm-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.agm-pay button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border-radius: 11px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.agm-pay button[aria-selected="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(42, 29, 21, .4); }
.agm-amt { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: 16px; background: var(--paper-2); }
.agm-amt input { flex: 1; min-width: 0; text-align: right; background: none; border: 0; outline: 0; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); }
.agm-amt .coin { font-weight: 700; flex: none; }
.agm-prompt { position: relative; margin-top: 12px; border-radius: 16px; background: var(--ink); color: var(--paper); padding: 16px 16px 60px; }
.agm-prompt pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 500 13.5px/1.55 var(--text); -webkit-user-select: text; user-select: text; max-height: 300px; overflow-y: auto; }
.agm-prompt .copy-btn { position: absolute; top: auto; right: 10px; bottom: 10px; padding: 10px 16px; border-radius: 11px; }
.agm-note { margin-top: 10px; font-size: 12.5px; color: var(--mute); }

/* Footer */
.foot { position: relative; z-index: 1; margin-top: 120px; background: var(--ink); color: var(--paper); padding: 0 var(--pad) 26px; }
.foot-in { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 70px 0 50px; border-bottom: 1px solid rgba(251, 243, 232, .1); }
.foot-brand .brand { display: inline-flex; align-items: center; gap: 9px; }
.foot-brand p { margin-top: 18px; max-width: 440px; font-size: 14px; color: rgba(251, 243, 232, .6); }
.foot-contracts { margin-top: 16px; display: grid; gap: 6px; font-size: 12.5px; color: rgba(251, 243, 232, .55); }
.foot-contracts b { color: rgba(251, 243, 232, .85); font-weight: 600; }
.foot-contracts span { word-break: break-all; }
.foot-links { display: grid; gap: 10px; justify-items: start; align-content: start; }
.foot-links a { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); transition: color .2s, transform .3s var(--spring); }
.foot-links a:hover { color: var(--orange); transform: translate(6px); }
.foot-base { max-width: 1220px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; font-size: 13px; color: rgba(251, 243, 232, .5); }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .mt-hero, .ps-grid, .cl-grid { grid-template-columns: minmax(0, 1fr); }
  .bowl { min-width: 0; width: 100%; }
  .bowl-svg { height: auto; }
  .mt-art { position: relative; top: 0; max-width: 520px; width: 100%; margin: 0 auto; }
  .ps-console, .cl-console, .calc { max-width: 520px; width: 100%; margin: 0 auto; }
  .cl-side { max-width: 520px; width: 100%; margin: 0 auto; }
  .perk-grid { grid-template-columns: 1fr 1fr; }
  .perk:first-child { grid-column: 1 / -1; }
  .facts-band, .facts-band.five, .facts-band.three { grid-template-columns: 1fr 1fr; }
  .facts-band > div:nth-child(odd) { border-left: 0; }
  .facts-band > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ag-card { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .ag-t { width: 100%; }
  .road-l { grid-template-columns: 1fr; gap: 26px; }
  .road-l:before { top: 0; bottom: 0; left: 9px; right: auto; border-top: 0; border-left: 2px dashed var(--line-2); }
  .road-l li { padding: 0 0 0 40px; }
  .rule-track { --g: 26px; grid-template-columns: 1fr; }
  .rule { grid-template-columns: 46px 1fr; column-gap: 16px; row-gap: 6px; }
  .rule .dot { grid-row: span 3; }
  .rule:not(:last-child):before { left: 22px; top: 46px; width: 2px; height: calc(100% + var(--g) - 46px); background: repeating-linear-gradient(180deg, rgba(251, 243, 232, .28) 0 6px, transparent 6px 12px); }
  .dp { padding-top: 150px; }
}
@media (max-width: 860px) {
  .collar { left: 12px; right: 12px; transform: none; flex-wrap: wrap; justify-content: space-between; top: 10px; padding-bottom: 8px; }
  .collar .links { order: 3; width: 100%; justify-content: space-between; }
  .collar a.link { padding: 7px 9px; font-size: 13.5px; }
  .collar .right { margin-left: 0; }
}
@media (max-width: 640px) {
  .perk-grid { grid-template-columns: 1fr; }
  .steps-l li { grid-template-columns: auto 1fr; grid-template-areas: "n p" "d d"; gap: 6px 12px; padding: 16px 18px; align-items: center; }
  .st-n { grid-area: n; font-size: 24px; }
  .steps-l li > div { grid-area: d; }
  .st-p { grid-area: p; justify-self: end; font-size: 14px; }
  .go-row { grid-template-columns: 1fr 1fr; }
  .go-btn { font-size: 16px; }
  .agent-btn { padding: 0 10px; font-size: 14.5px; gap: 6px; }
  .agent-btn svg { width: 19px; height: 19px; }
  .claim-btns { grid-template-columns: 1fr; }
  .clock { display: grid; width: 100%; }
  .cd { width: 100%; }
  .cd span { min-width: 0; flex: 1; padding: 12px 6px 8px; }
  .bowl-cap { flex-wrap: wrap; }
  .bowl-cap div { min-width: 0; flex: 1 1 40%; padding: 12px 14px; }
  .bowl-cap b { font-size: 16px; white-space: nowrap; }
  .bowl-cap div { padding: 12px 10px; }
  .f-row input, .f-row output { font-size: 30px; }
  .total strong { font-size: 26px; }
  .sp-foot { font-size: 13px; }
  .foot-in { grid-template-columns: 1fr; }
  .drop-btn { flex: 1 1 auto; }
}
/* ===== Swap console (PancakeSwap V2) ===== */
#swap h2 em { font-style: italic; color: var(--orange-2); }
.sw-console { max-width: 560px; margin: 0 auto; }
.sw-field { display: grid; gap: 8px; padding: 16px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.sw-field.out { background: var(--paper-2); border-color: transparent; }
.sw-console .f-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute); }
.sw-console .f-top > span:first-child { font-weight: 700; color: var(--ink-2); }
.sw-console .f-top b { color: var(--ink); font-weight: 600; }
.sw-console .f-row { display: flex; align-items: center; gap: 10px; }
.sw-console .f-row input, .sw-console .f-row output { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -.03em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-console .f-row input::placeholder { color: var(--line-2); }
.sw-console .f-coin { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: var(--cream); border: 1px solid var(--line); font-size: 16px; font-weight: 700; transition: background .2s; }
.sw-console .f-coin:hover { background: var(--peach); }
.sw-console .f-coin .car { font-size: 11px; color: var(--mute); }
.tok-wrap { position: relative; flex: none; }
.tok-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; background: var(--ink); color: var(--orange); }
.tok-ic.t-usdt { background: var(--good); color: #fff; }
.tok-ic.t-amkt { background: var(--orange-2); color: var(--ink); }
.tok-ic-img { flex: none; width: 30px; height: 30px; border-radius: 50%; display: block; }
.coin-ic { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: -5px; margin-right: 6px; }
.coin-ic-s { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 5px; }
.st-p { display: inline-flex; align-items: center; }
.st-p .coin-ic { vertical-align: middle; }
.tok-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 210px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 24px 44px -20px rgba(80, 40, 15, .45); display: grid; gap: 2px; }
.tok-menu[hidden] { display: none; }
.tok-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 11px; font-weight: 700; font-size: 15px; }
.tok-opt:hover { background: var(--paper-2); }
.tok-opt[aria-selected="true"] { background: var(--peach); }
.tok-opt .tok-nm { display: grid; line-height: 1.15; }
.tok-opt .tok-nm small { color: var(--mute); font-weight: 600; font-size: 12px; }
.tok-opt .tok-pool { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.tok-opt .tok-pool.live { color: var(--good); }
.sw-console .arrow-paw { width: 40px; height: 40px; margin: -8px auto -12px; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--orange); border: 4px solid var(--cream); transition: transform .35s var(--spring); }
.sw-console .arrow-paw:hover { transform: rotate(180deg); }
.sw-max { color: var(--orange-3); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.sw-max:hover { color: var(--ink); }
.sw-pool { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #f3e2c9; box-shadow: 0 0 0 1.5px var(--orange) inset; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.sw-pool b { color: var(--ink); }
.sw-meta { margin-top: 16px; display: grid; gap: 9px; }
.sw-rate { text-align: center; font-size: 14px; color: var(--ink-2); }
.sw-rate b { color: var(--ink); }
.sw-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.sw-line b { color: var(--ink); font-weight: 700; text-align: right; }
.sw-line b.warn { color: var(--bad); }
.sw-slip { display: inline-flex; gap: 4px; }
.sw-slip button { padding: 4px 11px; border-radius: 8px; background: var(--paper-2); font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.sw-slip button:hover { background: var(--peach); }
.sw-slip button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sw-go { margin-top: 16px; }
@media (max-width: 640px) {
  .sw-console .f-row input, .sw-console .f-row output { font-size: 30px; }
  .tok-menu { min-width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark, .brand-wordwrap::after, .art-stage img.art-img, .art-glow, .art-moon, .art-lanterns i, .art-sheen, .sp-pin, .mt-art, .aid-card, .go-btn:not(:disabled):after, .live-dot { animation: none; }
}


/* ===== Footer columns + legal pages ===== */
.foot-in { grid-template-columns: 1.25fr .55fr .6fr 1.3fr; gap: 44px; }
.foot-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-col h4 { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.foot-col > a { font-size: 15px; font-weight: 500; color: rgba(251, 243, 232, .78); transition: color .2s, transform .3s var(--spring); }
.foot-col > a:hover { color: var(--orange); transform: translate(4px); }
.foot-col > a.fc { display: grid; gap: 1px; }
.foot-col > a.fc:hover { transform: none; }
.foot-col .fc b { font-size: 13.5px; font-weight: 600; color: rgba(251, 243, 232, .92); transition: color .2s; }
.foot-col .fc span { font-size: 12px; color: rgba(251, 243, 232, .5); word-break: break-all; }
.foot-col .fc:hover b { color: var(--orange); }
@media (max-width: 1080px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 920px) { .foot-in { grid-template-columns: 1fr; } }

/* Legal and about pages: reading column */
.doc { max-width: 760px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 6vw, 68px); line-height: .92; letter-spacing: -.04em; margin-top: 12px; }
.doc h1 em { font-style: italic; color: var(--orange-2); }
.doc .updated { margin-top: 14px; font-size: 13.5px; color: var(--mute); }
.doc h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.05; margin: 42px 0 12px; }
.doc p { color: var(--ink-2); line-height: 1.65; margin-bottom: 14px; max-width: 68ch; }
.doc p strong, .doc li strong { color: var(--ink); }
.doc ul { margin: 0 0 16px 20px; color: var(--ink-2); line-height: 1.6; display: grid; gap: 7px; }
.doc a { color: var(--orange-3); font-weight: 600; }
.doc .kv { border-top: 1px solid var(--line); margin: 8px 0 20px; }
.doc .kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.doc .kv span { color: var(--mute); }
.doc .kv b { font-weight: 700; text-align: right; }
.doc .addr { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); word-break: break-all; font-weight: 500; }

/* ===== v11 smoothness: scroll reveal, micro-interactions, X links ===== */
/* Reveal state: .rv is added by js/smooth.js only, so with JS off or
   IntersectionObserver missing the content is simply visible. */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease-out, transform .6s var(--ease); will-change: opacity, transform; }
.rv.in { opacity: 1; transform: translateY(0); }

/* Micro-interactions: gentle lift on cards, press on buttons. Elements
   still carrying .rv are excluded so the reveal transition stays clean;
   smooth.js strips .rv once the reveal finishes. */
.perk:not(.rv), .steps-l li:not(.rv), .bowl-cap > div:not(.rv) { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.perk:not(.rv):hover, .steps-l li:not(.rv):hover { transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(80, 40, 15, .45); }
.btn, .chip-btn, .copy-btn, .wallet-btn, .f-coin, .tok-opt { transition: background .2s, color .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:active, .chip-btn:active, .copy-btn:active, .wallet-btn:active, .f-coin:active, .drop-btn:active, .ag-check button:active { transform: scale(.98); }
.stepper button { transition: background .2s, transform .15s var(--ease); }
.stepper button:not(:disabled):active { transform: scale(.9); }

/* Nav underline slide */
.collar a.link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.collar a.link:hover::after, .collar a.link[aria-current]::after { transform: scaleX(1); }
.collar .x-link { font-weight: 800; }

/* Footer X link */
.foot-brand p.foot-x { margin-top: 12px; }
.foot-x a { font-size: 14.5px; font-weight: 700; color: rgba(251, 243, 232, .88); transition: color .2s; }
.foot-x a:hover { color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tidiness pass: aligned labels, prices, cards ---------- */
.sp-foot b { white-space: nowrap; }
.sp-foot .coin-ic-s { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.bowl-cap i { min-height: 27px; }
.prompt-box pre { padding-top: 50px; }
@media (max-width: 720px) {
  .sp-foot { font-size: 12.5px; padding: 14px 4px 16px; }
  .facts-band i { font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
  .facts-band > div { padding: 20px 16px; }
  .facts-band.five > div:nth-child(5) { grid-column: 1 / -1; }
  .steps-l li { align-items: start; }
  .steps-l .st-p { padding-top: 3px; }
  .perk h3 { margin-top: 14px; }
  .bowl-cap i { min-height: 0; }
  .bowl-cap > div { flex: 1 1 40%; }
}

.sp-foot b { font-weight: 600; }
@media (max-width: 720px) { .facts-band.three > div:nth-child(3) { grid-column: 1 / -1; } }

/* pool venues band (homepage swap section) */
.pool-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.pool-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 26px; background: var(--cream); border: 1px solid var(--line); min-width: 0; }
.pool-logo { width: 54px; height: 54px; border-radius: 50%; flex: none; display: inline-block; }
.pool-txt { flex: 1; min-width: 0; }
.pool-txt h3 { font-family: "Funnel Display", sans-serif; font-size: 21px; font-weight: 700; color: var(--ink); }
.pool-txt p { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 3px; }
.pool-state { flex: none; font-family: "Funnel Sans", sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-3); border: 1.5px dashed var(--orange-2); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
@media (max-width: 720px) {
  .pool-band { grid-template-columns: minmax(0, 1fr); }
  .pool-card { padding: 16px 18px; align-items: flex-start; }
  .pool-logo { width: 46px; height: 46px; margin-top: 3px; }
  .pool-state { margin-top: 5px; }
}

@media (max-width: 640px) {
  .cl-head { flex-wrap: wrap; row-gap: 4px; }
  .cl-head small { margin-left: 0; width: 100%; text-align: left; }
}

/* ===== Header social cluster ===== */
.soc-row { display: inline-flex; align-items: center; gap: 6px; padding-right: 10px; border-right: 1px solid rgba(251, 243, 232, .14); }
.collar .soc-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(251, 243, 232, .20); background: rgba(251, 243, 232, .05); color: rgba(251, 243, 232, .88); transition: color .2s, border-color .2s, background .2s; }
.collar .soc-btn:hover { color: var(--orange); border-color: rgba(244, 166, 110, .55); background: rgba(251, 243, 232, .09); }
.collar .soc-btn svg { width: 16px; height: 16px; display: block; }
@media (max-width: 860px) {
  .collar .soc-btn { width: 32px; height: 32px; }
  .soc-row { padding-right: 8px; }
  .collar .wallet-btn { height: 32px; padding: 0 12px; font-size: 13.5px; }
}

@media (max-width: 480px) {
  .brand-word { height: 11px; }
  .collar .brand { gap: 7px; padding-right: 4px; }
  .collar .soc-btn { width: 30px; height: 30px; border-radius: 9px; }
  .collar .soc-btn svg { width: 15px; height: 15px; }
  .collar .wallet-btn { height: 30px; padding: 0 11px; font-size: 13px; }
  .collar .right { gap: 7px; margin-left: 4px; }
  .soc-row { gap: 5px; padding-right: 7px; }
}

@media (max-width: 374px) {
  .brand-word { height: 10px; }
  .collar .brand { gap: 6px; }
  .collar .soc-btn { width: 28px; height: 28px; }
  .collar .wallet-btn { height: 28px; padding: 0 9px; font-size: 12.5px; }
  .soc-row { gap: 4px; padding-right: 6px; }
  .collar .right { gap: 6px; }
}
