/* instapaid.fun home page. Shared pieces (tokens, header, buttons, lookup, footer) are in app.css. */

/* ---------- section scaffolding ---------- */
.section { padding: 72px 0; position: relative; }
.post-title { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.post-title > img { width: 46px; height: 46px; flex: none; padding: 3px; border-radius: 50%; background: var(--grad); }
.post-title h2, .band h2, .end-card h2 {
  font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; font-weight: 900; letter-spacing: -.035em;
}
.note-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 15px; color: var(--ink-2); max-width: 62em; }
.note-line svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 28px 0 40px; overflow: clip; }
.hero-glow {
  position: absolute; inset: -10% -10% auto auto; width: 70%; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 35% at 70% 30%, rgba(124, 58, 237, .20), transparent 70%),
    radial-gradient(35% 30% at 85% 60%, rgba(249, 115, 22, .16), transparent 70%),
    radial-gradient(30% 30% at 55% 70%, rgba(225, 48, 108, .14), transparent 70%);
  filter: blur(10px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 15px; font-weight: 800; color: var(--ink); box-shadow: var(--shadow); letter-spacing: -.005em; white-space: nowrap;
}
.kicker svg { width: 16px; height: 16px; color: var(--pink); }

h1 {
  margin-top: 20px; font-family: var(--display);
  font-size: clamp(42px, 5.1vw, 70px); line-height: 1; font-weight: 900; letter-spacing: -.045em;
}
/* The brand gradient as the words' own fill (--grad-text: every point of it is 4.5:1 or more on the
   page, light and dark), with an ink outline and an ink offset shadow for the sticker look. */
.sticker-words {
  display: block; width: fit-content; margin-top: .06em; padding: 0 .08em .1em 0;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  letter-spacing: -.025em;
  -webkit-text-stroke: .04em var(--ink); paint-order: stroke fill;
  filter: drop-shadow(.04em .05em 0 var(--ink));
}
.lead { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 32em; }

.cmd {
  margin-top: 24px; max-width: 560px;
  border: 2px solid transparent; border-radius: 20px;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
  padding: 10px 10px 10px 18px; box-shadow: var(--shadow);
}
.cmd-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.cmd-row { display: flex; align-items: center; gap: 12px; }
.cmd-text { flex: 1; min-width: 0; font-family: var(--font); font-size: 18px; font-weight: 550; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.cmd-text b { color: var(--accent); font-weight: 800; }
.cmd-hint { display: flex; gap: 7px; align-items: flex-start; margin: 8px 0 2px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.cmd-hint svg { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--pink); }
.cmd-hint q { font-weight: 700; color: var(--ink); }
/* A commenter's own lore, marked like a highlighter so it reads as optional and theirs. */
.lore-in { background: var(--gold-tint); color: var(--gold-ink); font-weight: 650; border-radius: 6px; padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.glimpse { display: none; }

.cta-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; font-weight: 650; color: var(--ink-2); }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--tint); color: var(--accent); }

/* ---------- the coin ---------- */
.coin-slot { position: relative; aspect-ratio: 1; }
.coin-slot .coin-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(124, 58, 237, .28)); }
.coin-slot { animation: coin-float 6s ease-in-out infinite; }
/* A glint that sweeps across the coin only (masked by the coin's own alpha). */
.coin-slot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .8) 50%, transparent 58%) no-repeat;
  background-size: 300% 100%;
  -webkit-mask: url(/media/hero-coin-512.webp) center / contain no-repeat;
  mask: url(/media/hero-coin-512.webp) center / contain no-repeat;
  animation: coin-glint 5.5s ease-in-out infinite;
}
@keyframes coin-float {
  0%, 100% { transform: perspective(800px) translateY(0) rotateY(-16deg) rotateZ(-2deg); }
  50% { transform: perspective(800px) translateY(-10px) rotateY(16deg) rotateZ(2deg); }
}
@keyframes coin-glint { 0%, 40% { background-position: 100% 0; } 80%, 100% { background-position: 0 0; } }
.coin-top { display: none; }

/* ---------- the stage: a phone, a comment, our reply ---------- */
.hero-stage { position: relative; container-type: inline-size; padding-top: 30px; min-width: 0; }
.coin-stage { width: 100%; }
/* The phone's face: bezel, camera pill and screen. Its body (rim, keys, back) is in "the phone in 3D" below;
   its shadow is .p3-glow, which stays flat behind it while it turns. */
.phone {
  position: relative; z-index: 1; width: 330px; max-width: 100%; padding: 11px; border-radius: 46px;
  background: linear-gradient(160deg, #2a2338, #0e0b14 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 3.5px #07050b;
  transform-style: preserve-3d;
}
.phone::before { /* camera pill, with a lens in it */
  content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px;
  border-radius: 999px; z-index: 2;
  background: radial-gradient(circle at calc(100% - 10px) 50%, #4a5d86 0 1.6px, #1b2236 2.6px 4.4px, #050408 5.4px);
}
.phone-screen {
  background: var(--screen); border-radius: 36px; overflow: hidden; color: var(--ink);
  font-size: 13px; line-height: 1.4; padding-top: 30px; padding-bottom: 70px; /* room for our post, under the thread */
}
.app-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.ab-title { font-weight: 800; font-size: 14px; }
.ab-tag { padding: 2px 8px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); font-size: 11.5px; font-weight: 800; }
.post-head { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; }
.pm-who { display: flex; flex-direction: column; line-height: 1.2; }
.pm-who b { font-size: 13.5px; }
.pm-who small { font-size: 12px; color: var(--ink-2); } /* not the muted grey: 12px words on a turned, glazed screen need the margin */
.post-media svg { width: 100%; height: auto; aspect-ratio: 320 / 132; }
.steam path { animation: steam 3s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .6s; }
.steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0%, 100% { transform: translateY(0); opacity: .85; } 50% { transform: translateY(-6px); opacity: .35; } }
.caption { padding: 9px 14px 0; }
.thread { margin-top: 10px; padding: 12px 14px 16px; border-top: 1px solid var(--line); }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.cmt-body { min-width: 0; }
.cmt-body p + p { margin-top: 6px; }
.reply-wrap { position: relative; margin-top: 10px; margin-left: 16px; min-height: 40px; }
.reply .ava { width: 26px; height: 26px; }
.links span { display: block; color: var(--ink-2); overflow-wrap: break-word; }
.links span + span { margin-top: 2px; }
.fanmade { color: var(--ink-2); font-weight: 650; }

.typing {
  position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 7px; border-radius: 999px; background: var(--tint);
  font-size: 12.5px; font-weight: 650; color: var(--ink-2); opacity: 0; white-space: nowrap;
}
.typing img { width: 20px; height: 20px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: dot 1s ease-in-out infinite; }
.typing i:nth-of-type(2) { animation-delay: .15s; }
.typing i:nth-of-type(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-3px); opacity: 1; } }

/* The sequence. Without JS everything simply shows; home.js arms it and plays it in view. Each step ends on
   its own resting style, so it fills backwards only: an animation that keeps filling forwards keeps its words
   on a layer of their own, which inside the turned phone is drawn soft on a 3x screen. */
.armed:not(.play) :is(.s1, .s3, .s4, .s5, .sticker) { opacity: 0; }
.play .s1 { animation: rise .55s .4s cubic-bezier(.2, .9, .3, 1.2) backwards; }
.play .s2 { animation: typing 1.7s 1.1s ease backwards; }
.play .s3 { animation: rise .55s 2.8s cubic-bezier(.2, .9, .3, 1.2) backwards; }
.play .s4 { animation: rise .5s 3.4s ease backwards; }
.play .s5 { animation: rise .5s 4s ease backwards; }
.play .sticker-coin { animation: pop .6s 3.1s cubic-bezier(.2, 1.4, .4, 1) both, bob 4s 3.7s ease-in-out infinite; }
.play .sticker-post { animation: pop .6s 4.7s cubic-bezier(.2, 1.4, .4, 1) both, bob 4.6s 5.3s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes typing { 0% { opacity: 0; transform: translateY(6px); } 14%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0 var(--z, 0px); } 50% { translate: 0 -6px var(--z, 0px); } } /* keeps each sticker's depth */

/* Stickers sit over the post's photo, or outside the phone, never over its words. */
.sticker {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 16px 28px -14px rgba(76, 29, 149, .5), 0 3px 8px rgba(27, 21, 48, .08); /* tight: a big blur is a big layer to turn */
  translate: 0 0 var(--z, 0px); /* its depth in front of the phone */
}
.st-txt { display: flex; flex-direction: column; line-height: 1.25; }
.st-txt b { font-size: 14.5px; }
.st-txt small { font-size: 13px; color: var(--ink-2); font-weight: 650; }
.st-tick { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); font-size: 12.5px; font-weight: 850; }
.st-at { color: var(--accent); font-weight: 800; }
.st-ava { flex: none; width: 38px; height: 38px; }
/* The coin wears the post's photo: the same drawing, cropped round in a gold rim. */
.post-coin { flex: none; width: 46px; height: 46px; filter: drop-shadow(0 4px 8px rgba(154, 87, 0, .35)); }
.sticker-coin { --z: 64px; top: 158px; left: calc(-24px - clamp(0px, 4cqw, 22px)); } /* low on the photo: clear of the name above it, even turned */
/* Our post comes after the reply: at the phone's foot, in the room kept under the thread, never over
   the photo the coin wears. Centred on a narrow stage; on a wide one it steps out past the phone's edge. */
.sticker-post { --z: 44px; bottom: 14px; left: 0; right: 0; width: max-content; max-width: calc(100% - 12px); margin-inline: auto; }
.sticker-post .st-more { display: none; } /* "to claim": only where there is room for it on one line */
@container (min-width: 540px) {
  .phone-screen { padding-bottom: 76px; }
  .sticker-post { top: auto; right: auto; bottom: 22px; left: 118px; }
  .sticker-post .st-txt { white-space: nowrap; }
  .sticker-post .st-more { display: inline; }
}

/* A small layered CSS coin: edge layers, a reeded rim and a glint. It really turns. */
.coin3d { --t: .7px; position: relative; flex: none; width: var(--c); height: var(--c); perspective: 500px; }
.c3-tilt { display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(10deg) rotateZ(-6deg); }
.c3-coin { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; animation: c3-spin 5s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes c3-spin { 0%, 45% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.c3-coin i {
  position: absolute; inset: 0; border-radius: 50%;
  transform: translateZ(calc(var(--i) * var(--t)));
  background: radial-gradient(circle, #9a5700 60%, var(--edge, #d88a00) 61%);
}
.c3-coin i:nth-child(odd) { --edge: #f5a300; }
.c3-face {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: translateZ(calc(var(--t) * 5));
  background:
    radial-gradient(circle at 34% 28%, #fff7c2 0 6%, transparent 30%),
    radial-gradient(circle at 50% 50%, #ffe066 0 38%, #ffd23f 52%, #f5a300 74%, #c77800 88%, #8f5100 100%);
  box-shadow: inset 0 0 0 2px #8f5100, inset 0 0 0 4px #f5a300, inset 0 0 0 5px #b86a00;
}
.c3-back { transform: rotateY(180deg) translateZ(calc(var(--t) * 5)); }
.c3-face::before { /* reeded rim */
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  background: repeating-conic-gradient(#b86a00 0 4deg, #ffd23f 4deg 9deg);
  -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 90%);
  mask: radial-gradient(closest-side, transparent 88%, #000 90%);
  opacity: .8;
}
.c3-face::after { /* glint */
  content: ""; position: absolute; inset: -30%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .8) 48%, transparent 56%);
  animation: c3-glint 5s ease-in-out infinite;
}
@keyframes c3-glint { 0%, 20% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
.c3-face svg { position: absolute; inset: 18%; width: 64%; height: 64%; }

.stage-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 64px; width: 330px; max-width: 100%; margin-left: clamp(0px, 4cqw, 22px); }
.replay {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font-weight: 750; font-size: 15px; cursor: pointer;
}
.replay svg { width: 18px; height: 18px; }
.replay:hover { border-color: var(--accent); }
.illus { font-size: 13.5px; font-weight: 650; color: var(--muted); }

/* ---------- the phone in 3D ----------
   CSS 3D, so the screen stays the live, readable thread. .p3 is the scene (the perspective, the focus ring,
   the pointer and keys); .p3-rig turns (home.js writes its transform); inside it sit the coin, the sparkles and
   the stickers at their own depths, and the phone: its face at z = 0, its body behind it in .p3-body — the rim
   (4 walls and 6 facets per rounded corner, built by home.js and lit by it as they turn), the side keys and
   the back. Without JS it is the flat phone it always was. */
.p3 {
  --d: 28px; --r: 46px; /* thickness and corner radius */
  position: relative; width: 330px; max-width: 100%; margin-left: clamp(0px, 4cqw, 22px);
  perspective: 1300px; perspective-origin: 50% 42%;
  border-radius: 50px;
}
.p3:focus-visible { outline: 3px solid var(--accent); outline-offset: 12px; border-radius: 52px; }
.p3-live { cursor: grab; touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.p3-live img { -webkit-user-drag: none; }
.p3-live.p3-grab { cursor: grabbing; }
.p3-rig { position: relative; transform-style: preserve-3d; transform-origin: 50% 50% calc(var(--d) / -2); }

/* Flat, behind the rig: the brand glow the phone always had, and a contact shadow on the floor. */
.p3-glow, .p3-floor { position: absolute; pointer-events: none; will-change: transform; } /* soft gradients: keep one raster while they stretch */
.p3-glow { /* soft by its own gradient, no blur filter (and not an outer box-shadow, which leaves a pale hole
             where the phone was once it turns) */
  inset: -6% -22% -12%; opacity: .85;
  background: /* Gaussian-like falloffs, so no ring shows where they end */
    radial-gradient(closest-side at 50% 58%, rgba(124, 58, 237, .44), rgba(124, 58, 237, .4) 20%, rgba(124, 58, 237, .31) 40%, rgba(124, 58, 237, .2) 57%, rgba(124, 58, 237, .1) 73%, rgba(124, 58, 237, .035) 87%, rgba(124, 58, 237, 0)),
    radial-gradient(closest-side at 50% 88%, rgba(225, 48, 108, .4), rgba(225, 48, 108, .28) 35%, rgba(225, 48, 108, .12) 65%, rgba(225, 48, 108, .03) 86%, rgba(225, 48, 108, 0));
}
.p3-floor {
  left: 4%; right: 4%; top: calc(100% + 4px); height: 44px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 20, 96, .42), rgba(46, 20, 96, .16) 55%, rgba(46, 20, 96, 0));
}

/* The body, half the thickness behind the face. */
.p3-body { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--d) / -2)); }
.p3-rim {
  --rim: #150d26 0%, #3d2b66 13%, #7458bb 36%, #a68be8 50%, #7458bb 64%, #3d2b66 87%, #150d26 100%; /* violet anodised */
  position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(180deg, var(--rim));
}
.p3-rim.p3-v { background: linear-gradient(90deg, var(--rim)); }
.p3-rim::before, .p3-rim::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.p3-rim::before { background: #07050b; opacity: var(--dk, .4); } /* away from the light */
.p3-rim::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 18%, #fff 50%, rgba(255, 255, 255, 0) 82%); opacity: var(--gl, 0); } /* the glint */
.p3-rim.p3-v::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 18%, #fff 50%, rgba(255, 255, 255, 0) 82%); }
.p3-rim.p3-key { border-radius: 4px; }

.p3-back {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--r);
  transform: translateZ(calc(var(--d) / -2)) rotateY(180deg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    radial-gradient(80% 50% at 22% 6%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 70%),
    linear-gradient(158deg, #7c3aed 0%, #b62bd0 26%, #e1306c 50%, #f97316 78%, #fbbf24 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34), inset 0 0 50px rgba(46, 6, 90, .28);
}
.p3-back::after { content: ""; position: absolute; inset: 0; background: #0b0614; opacity: var(--dk, 0); }
.p3-at { position: absolute; left: 50%; top: 52%; width: 46%; translate: -50% -50%; filter: drop-shadow(0 6px 14px rgba(70, 0, 60, .35)); }
.p3-cam { /* a round camera island in a gold ring, like the coin's rim */
  position: absolute; top: 22px; left: 22px; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #3d3350, #15101e 68%);
  box-shadow: 0 0 0 3px #f5b400, 0 0 0 5px #a55e00, 0 8px 18px rgba(40, 0, 60, .45);
}
.p3-cam b { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #6d86b8 0 8%, #1d2740 20%, #06070d 46%, #232033 58%, #0a0810 70%); box-shadow: 0 0 0 2px #2c2438; }
.p3-cam b:first-child { top: 14px; left: 34px; }
.p3-cam b:nth-child(2) { top: 54px; left: 14px; }
.p3-cam s { position: absolute; top: 62px; left: 64px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #fffbe6 0 30%, #ffd98a 60%, #b98a3a); }
.p3-sheen { position: absolute; inset: -20% -90%; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .42) 49%, rgba(255, 255, 255, 0) 58%); }

/* The glass over the screen: a fixed faint reflection in the corner and a glare that slides as it turns (home.js
   keeps the glare off at the resting pose, so the words people read are never washed). */
.p3-glass { position: absolute; inset: 11px; z-index: 1; overflow: hidden; border-radius: 36px; pointer-events: none; }
.p3-glass::before { content: ""; position: absolute; inset: 0; background: linear-gradient(152deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 22%); }
.p3-glass i {
  position: absolute; top: -30%; bottom: -30%; left: 10%; width: 80%; opacity: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, .42) 47%, rgba(255, 255, 255, .12) 56%, rgba(255, 255, 255, 0) 74%);
}

/* Around the phone, each at its own depth; seen from behind (mid-spin) they are not drawn, not mirrored. */
.p3 .sticker, .p3-coin, .p3-spark { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.p3-coin { position: absolute; z-index: 3; top: -36px; right: calc(clamp(0px, 4cqw, 22px) + 100% - 100cqw); width: clamp(180px, 48cqw, 270px); transform: translateZ(84px); }
.p3-spark {
  position: absolute; width: var(--s); height: var(--s); transform: translateZ(var(--z)); pointer-events: none;
  background: radial-gradient(circle, #fffbe0 0 16%, #ffd23f 42%, #f59e0b 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 3.4s ease-in-out infinite;
}
.sp1 { --s: 24px; --z: 64px; right: -92px; top: 300px; }
.sp2 { --s: 15px; --z: -90px; right: -128px; top: 410px; animation-delay: -1.2s; }
.sp3 { --s: 11px; --z: 40px; right: -150px; top: 250px; animation-delay: -2.1s; }
.sp4 { --s: 14px; --z: 56px; right: -58px; bottom: 120px; animation-delay: -.6s; }
@keyframes twinkle { 0%, 100% { scale: .7; } 50% { scale: 1.1; } }

/* "Drag to turn": on the floor under the phone until it has been turned once; for keys, when focused. */
.p3-hint {
  display: none; position: absolute; left: 50%; top: calc(100% + 14px); translate: -50% 0; align-items: center; gap: 6px;
  padding: 4px 11px 4px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 13px; font-weight: 750; color: var(--ink-2); white-space: nowrap; pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.p3-live .p3-hint { display: inline-flex; }
.p3-hint svg { width: 17px; height: 17px; color: var(--accent); animation: sway 2.4s ease-in-out infinite; }
.p3-hint .h-keys { display: none; }
.p3-used .p3-hint { opacity: 0; transform: translateY(6px); }
.p3:focus-visible .p3-hint { opacity: 1; transform: none; }
.p3:focus-visible .p3-hint .h-keys { display: inline; }
.p3:focus-visible .p3-hint .h-drag { display: none; }
@keyframes sway { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }

/* ---------- trust strip ---------- */
.trust { background: #1b1530; color: #e9e3fb; }
.trust-row { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 15px; padding-bottom: 15px; font-size: 15px; font-weight: 600; }
.trust-row li { position: relative; padding-left: 21px; }
.trust-row li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; background: #ffd23f;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.trust b { color: #fff; font-weight: 800; }
@media (prefers-color-scheme: dark) {
  .p3-glow { opacity: 1; }
  .sticker { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04); }
  .p3-floor { background: radial-gradient(closest-side, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, 0)); }
}
@media (prefers-color-scheme: dark) { .trust { background: #1f1836; border-block: 1px solid #342a52; } }

/* ---------- how it works: the loop band, then four steps ---------- */
.how { position: relative; padding-bottom: 72px; }
/* Full-bleed: the loop fills the band; the words sit on its calm violet left, under a scrim that keeps
   every frame's left side dark enough for white text (measured against the video's own frames). */
.how-band {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(560px, 46vw, 700px); display: flex; align-items: center;
  background: #3a04a6 url(/media/hero-loop-poster.webp) 50% 35% / cover no-repeat; color: #fff;
}
.how-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; pointer-events: none; }
.how-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(30, 4, 96, .72) 0%, rgba(34, 4, 104, .56) 34%, rgba(40, 6, 110, .22) 52%, rgba(40, 6, 110, 0) 64%),
    linear-gradient(0deg, rgba(20, 3, 70, .35), transparent 30%);
}
.how-copy { position: relative; padding-bottom: 64px; }
.how-copy > * { max-width: min(520px, 44vw); }
.how-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .42); color: #fff;
  font-size: 15px; font-weight: 800; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.how-kicker svg { width: 15px; height: 15px; color: #ffd23f; }
.how-band h2 {
  margin-top: 18px; font-family: var(--display); font-size: clamp(40px, 5vw, 68px); line-height: 1; font-weight: 900; letter-spacing: -.04em; color: #fff;
  text-shadow: 0 2px 24px rgba(30, 4, 96, .45);
}
.how-band h2 span { display: block; color: #ffd23f; }
.how-lead { margin-top: 18px; font-size: 18.5px; line-height: 1.55; color: #f4eeff; text-shadow: 0 1px 12px rgba(30, 4, 96, .5); }
.how-lead b { color: #fff; }

.how-steps {
  position: relative; z-index: 1; list-style: none; margin: -76px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 18px; row-gap: 22px;
}
.step {
  position: relative; grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 10px; align-content: start;
  padding: 16px 20px 22px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.step-art {
  position: relative; height: 150px; margin: 0 -4px 4px; border-radius: 20px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(55% 60% at 50% 55%, rgba(251, 191, 36, .28), transparent 72%),
    radial-gradient(70% 80% at 15% 0%, rgba(124, 58, 237, .16), transparent 70%),
    radial-gradient(70% 80% at 95% 100%, rgba(225, 48, 108, .14), transparent 70%),
    var(--bg-2);
}
.step-art img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(76, 29, 149, .22)); transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.step:hover .step-art img { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
.step-art-at img { width: 118px; height: 118px; margin-top: -18px; }
/* Our post's caption @mentions the creator (no photo tag): the mention, as a chip under the coin. */
.at-chip {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 4px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--accent); font-size: 13px; font-weight: 800; white-space: nowrap;
}
.step-k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 21px; font-weight: 900; letter-spacing: -.02em; color: var(--accent); }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-grad); color: #fff; font-size: 16px; font-weight: 900; font-family: var(--font); }
.step h3 { font-size: 19px; font-weight: 850; letter-spacing: -.02em; line-height: 1.2; }
.step > p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.step b { color: var(--ink); }
.step:not(:last-child)::after { /* feed connector */
  content: ""; position: absolute; top: 90px; right: -19px; width: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px);
}
.mini { align-self: end; padding-top: 4px; }
.mini > * { background: var(--bg-2); border-radius: 16px; padding: 11px 12px; }
.mini-cmt { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.mini-cmt p { color: var(--ink); min-width: 0; }
.mini-cmt .dim { color: var(--ink-2); font-size: 13.5px; }
.mini-coin { display: flex; gap: 10px; align-items: center; }
.mini-coin .post-coin { width: 42px; height: 42px; }
.mini-coin p { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 14.5px; line-height: 1.3; color: var(--ink); min-width: 0; }
.mini-coin .dim { flex-basis: 100%; color: var(--ink-2); font-size: 13.5px; }
.mini-dm { display: flex; flex-direction: column; gap: 8px; }
.mini-dm > * { padding: 0; background: none; }
.dm-bubble {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px !important;
  border-radius: 18px 18px 4px 18px !important; background: var(--btn-grad) !important; color: #fff;
}
.dm-bubble svg { width: 18px; height: 18px; }
.dm-bubble code { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.dm-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 750; color: var(--ok); }
.dm-ok svg { width: 18px; height: 18px; }
.how .note-line { margin-top: 26px; }

/* ---------- recently launched ---------- */
.recent { overflow: clip; padding-bottom: 56px; }
.recent-scatter { position: absolute; right: -330px; top: 16px; width: 540px; height: auto; opacity: .32; pointer-events: none; }
.recent > :not(.recent-scatter) { position: relative; }
.recent-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 8px; }
.recent-head .post-title { margin-bottom: 0; }
.recent-head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.recent-head h2 .tag { font-family: var(--font); letter-spacing: 0; font-size: 14px; }
.lookup-compact { width: min(430px, 100%); }
.lookup-compact label { font-size: 14.5px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { transform: translateY(-1px); }
.recent-sub { margin: 16px 0 22px; color: var(--ink-2); font-size: 16px; }
.recent-empty { margin: -6px 0 22px; padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1px dashed var(--line-2); color: var(--ink-2); max-width: 760px; }
.recent-empty b { color: var(--ink); }
.shelf {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain;
  padding: 6px max(24px, calc((100vw - 1160px) / 2 + 24px)) 18px;
  scroll-padding-inline: max(24px, calc((100vw - 1160px) / 2 + 24px));
}
.shelf:focus-visible { outline-offset: -3px; }
.shelf-row { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; gap: 16px; width: max-content; } /* each card its own height in the scrolling row */
.coin-card {
  position: relative; scroll-snap-align: start; width: 250px; padding: 18px; border-radius: 22px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s ease, border-color .2s ease;
}
.coin-card:has(.cc-link):hover { transform: translateY(-3px); border-color: var(--line-2); }
.is-example { border-style: dashed; border-color: var(--line-2); }
.is-example .cc-for { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.cc-handle { font-weight: 800; color: var(--ink); }
.cc-ex { padding: 3px 10px; }
.coin-card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.cc-top { display: flex; align-items: center; gap: 12px; }
.cc-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.cc-name b { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.cc-name .tick { font-size: 13px; }
.cc-for { font-size: 14.5px; color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.cc-link { font-weight: 800; text-decoration: none; color: var(--accent); }
.cc-link:focus-visible { outline: none; }
.cc-link::after { content: ""; position: absolute; inset: 0; border-radius: 22px; } /* the whole card opens the creator's page */
.coin-card:hover .cc-link { text-decoration: underline; }
.cc-lore { font-size: 14.5px; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; padding: 8px 11px 9px; border-radius: 14px; background: var(--lore-bg); } /* a URL or hashtag wraps */
/* Three lines at most, so one long lore (up to 400 characters) does not stretch every card in the row; the creator's page has it all. */
.cc-lore-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.cc-lore-k { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 1px; }
.cc-src { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.cc-src svg { flex: none; width: 16px; height: 16px; color: var(--pink); }
.cc-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.cc-when { font-size: 13px; color: var(--muted); font-weight: 650; }
.cc-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: -2px -10px -8px; }
.cc-pump {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px; border-radius: 12px; font-size: 14.5px; font-weight: 750; text-decoration: none; color: var(--accent);
}
.cc-pump:hover { background: var(--tint); }
.cc-pump svg { width: 16px; height: 16px; }
.more { margin-top: 6px; }
.recent-foot { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.recent-foot svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

/* ---------- for creators: the dark band ---------- */
.band { position: relative; overflow: clip; isolation: isolate; padding: 88px 0; background: #170944; color: #f6f2ff; }
/* The violet-to-orange mesh, with a scrim on the words' side (measured against its pixels). */
.band-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 6, 42, .74) 0%, rgba(16, 6, 42, .56) 46%, rgba(16, 6, 42, .12) 80%, rgba(16, 6, 42, 0) 100%);
}
.band-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
.band-side { position: relative; padding-top: 128px; }
/* The crown sits on the claim card. */
.band-crown { position: absolute; z-index: 2; top: -46px; right: 34px; width: 190px; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); animation: crown-bob 6s ease-in-out infinite; pointer-events: none; }
@keyframes crown-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.pill-gold { background: #2b2140; border-color: rgba(255, 210, 63, .45); color: #ffe38a; }
.band h2 { margin-top: 16px; color: #fff; font-size: clamp(34px, 4.4vw, 56px); }
.band-lead { margin-top: 16px; font-size: 18px; color: #e2daf6; max-width: 34em; }
.reasons { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 14px; }
.reasons li { display: flex; gap: 12px; align-items: flex-start; color: #e2daf6; }
.reasons b { color: #fff; }
.reasons svg { flex: none; width: 26px; height: 26px; padding: 5px; margin-top: 0; border-radius: 50%; background: rgba(255, 210, 63, .16); color: #ffd23f; }
.lookup-dark { margin-top: 28px; padding-top: 24px; border-top: 1px dashed rgba(255, 255, 255, .28); max-width: 520px; }
.lookup-dark label { color: #fff; }
.lookup-dark .lookup-field { background: #120c20; border-color: #5b4d86; }
.lookup-dark .lookup-field:focus-within { border-color: #c4b5fd; outline-color: rgba(196, 181, 253, .45); }
.lookup-dark .lookup-field span { color: #cfc6e8; }
.lookup-dark .lookup-field input { color: #fff; }
.lookup-dark .lookup-field input::placeholder { color: #aea4c9; }
.lookup-dark .lookup-err { color: #fda4af; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .72); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.band :focus-visible { outline-color: #c4b5fd; }
.takedown { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: #e2daf6; font-size: 15.5px; max-width: 520px; }
.takedown b { color: #fff; }
.takedown svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #ffd23f; }

.claim-mock { position: relative; background: rgba(34, 22, 66, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid #4d3d7c; border-radius: 26px; padding: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); color: #f6f2ff; }
.cm-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #43366b; }
.cm-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cm-who b { color: #fff; font-size: 15.5px; }
.cm-who small { color: #cfc6e8; font-size: 13.5px; }
.cm-tag { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(255, 210, 63, .14); color: #ffd23f; border: 1px solid rgba(255, 210, 63, .45); font-size: 13px; font-weight: 800; white-space: nowrap; }
.cm-steps { list-style: none; margin: 0; padding: 0; }
.cm-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #2f2452; margin-top: 10px; }
.cm-steps li > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cm-steps b { color: #fff; font-size: 15px; }
.cm-steps small { color: #cfc6e8; font-size: 13.5px; }
.cm-steps code { color: #ffd23f; font: 800 18px/1.3 var(--mono); letter-spacing: .06em; }
.cm-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.cm-n svg { width: 16px; height: 16px; }
.done .cm-n { background: #15803d; color: #fff; }
.now { background: #36295f !important; border: 1px solid #7358d6; }
.now .cm-n { background: var(--btn-grad); color: #fff; }
.cm-field { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 11px 12px; border-radius: 12px; background: #150f24; border: 1px solid #5b4d86; color: #efeaff; font: 600 15px var(--mono); }
.cm-field svg { width: 18px; height: 18px; color: #cfc6e8; }
.cm-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; min-height: 46px; border-radius: 999px; background: #ffd23f; color: #2b1800; font-weight: 850; }
.cm-btn svg { width: 18px; height: 18px; }
.cm-foot { font-size: 13.5px; color: #cfc6e8; margin-top: 14px; text-align: center; }
.band .scam { margin-top: 18px; background: #3a1630; border-color: rgba(253, 164, 175, .5); }
.band .scam p { color: #ffe4ea; }
.band .scam b { color: #fff; }
.band .scam > svg { color: #fda4af; }

/* ---------- for fans ---------- */
.fans-title { position: relative; }
.post-title > .fans-art { padding: 0; border-radius: 0; background: none; }
.post-title > .fans-art { flex: none; margin: -64px 0 -44px auto; width: 176px; height: auto; filter: drop-shadow(0 16px 20px rgba(162, 28, 175, .22)); animation: pop-tilt 5s ease-in-out infinite; }
@keyframes pop-tilt { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-6px); } }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.way { display: flex; flex-direction: column; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.way-art {
  min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 18px;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(124, 58, 237, .14), transparent 70%),
    radial-gradient(60% 80% at 90% 100%, rgba(249, 115, 22, .14), transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mini-cmt.cmt-card { width: min(300px, 100%); padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; }
.browser { width: min(300px, 100%); border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); font-weight: 650; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser-bar span { margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); }
.browser-body { padding: 12px; display: grid; gap: 8px; }
.fld { display: flex; flex-direction: column; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 650; line-height: 1.3; }
.fld small { font-size: 12px; color: var(--muted); font-weight: 650; }
.wallets { display: flex; gap: 8px; }
.wallets span { flex: 1; text-align: center; padding: 7px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 750; }
.profile-mock { width: min(310px, 100%); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pm-lines { flex: 1; min-width: 0; display: grid; gap: 6px; }
.pm-lines b { font-size: 15px; }
.pm-lines i { display: block; height: 8px; border-radius: 99px; background: var(--line); }
.pm-lines i.short { width: 60%; }
.ext-btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--btn-grad); color: #fff; font-size: 13.5px; font-weight: 750; white-space: nowrap; animation: nudge 2.8s ease-in-out infinite; }
.ext-btn img { width: 20px; height: 20px; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-3px) scale(1.03); } 86% { transform: none; } }
.way-copy { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.way-copy h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.way-copy h3 svg { width: 24px; height: 24px; color: var(--accent); }
.way-copy p { margin-top: 8px; color: var(--ink-2); }
.soon, .free { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.soon { background: var(--gold-tint); color: var(--gold-ink); border: 1px solid var(--warn-line); }
.free { background: var(--ok-tint); color: var(--ok); border: 1px solid var(--ok-line); }
.text-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; text-decoration: none; align-self: flex-start; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }
.copy-link { border: 0; background: none; padding: 6px 0 0; font: inherit; font-weight: 800; color: var(--accent); cursor: pointer; }
.copy-link:hover svg { transform: none; }
.copy-link.copied { color: var(--ok); }

/* ---------- FAQ: a comment thread ---------- */
.faq-sec { padding-top: 40px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 20px; cursor: pointer; border-radius: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.q { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.faq .a { display: flex; gap: 12px; align-items: flex-start; margin: 0 20px 18px 58px; padding: 14px 16px; border-radius: 16px; background: var(--lore-bg); }
.faq .a .ava { margin-top: 1px; }
.faq .a p { color: var(--ink); }
.faq .a p + p { margin-top: 8px; }
.faq .a a { font-weight: 800; }
.faq .a .text-link { margin-top: 4px; padding-top: 0; }

/* ---------- closing card: the mesh and the gold coin ---------- */
.closing { padding: 24px 0 40px; }
.end-card { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 480px; border-radius: 36px; background: #170944; color: #fff; box-shadow: var(--shadow-lg); isolation: isolate; }
.end-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2; transform: scaleX(-1); }
.end-card::before { /* keeps every word on the calm violet side */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 6, 42, .7) 0%, rgba(16, 6, 42, .5) 48%, rgba(16, 6, 42, 0) 72%);
}
/* The coin and the words share the card and never meet: each has its own share of the width. */
.end-coin { position: absolute; right: 5%; top: 50%; margin-top: calc(min(360px, 32%) / -2); width: min(360px, 32%); z-index: 0; }
.end-coin .coin-img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.end-copy { position: relative; z-index: 1; padding: 52px 48px; max-width: min(640px, 60%); }
.end-card h2 { color: #fff; max-width: 12em; }
.end-note { margin-top: 12px; color: #efe8ff; font-size: 16px; }
.cmd-on-dark { margin-top: 26px; background: rgba(24, 6, 60, .6); border: 1.5px solid rgba(255, 255, 255, .55); box-shadow: none; }
.cmd-on-dark .cmd-text { color: #fff; }
.cmd-on-dark .cmd-text b { color: #ffd23f; }
.cmd-on-dark .copy { background: #fff; color: #1b1530; }
.cmd-on-dark .copy.copied { background: #047857; color: #fff; }
.btn-light { background: #fff; color: #3b0f8c; }
.btn-light:hover { transform: translateY(-1px); }
.end-card :focus-visible { outline-color: #fff; }

/* ---------- motion: paused off-screen (home.js) ---------- */
.paused, .paused *, .paused::after, .paused *::after, .paused *::before { animation-play-state: paused !important; }

/* ---------- responsive ---------- */
@media (min-width: 1160px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 540px; }
  .cta-row .btn { padding: 0 22px; }
}
@media (min-width: 981px) {
  .shelf { overflow: visible; padding: 6px 0 12px; }
  .shelf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; width: auto; max-width: 1160px; margin: 0 auto; padding: 0 24px; } /* even rows; the lore clamp keeps them close */
  .coin-card { width: auto; }
  .shelf-row:not(.show-all) > li:nth-child(n+7) { display: none; }
}
/* Four steps side by side from 1180px; two by two below that; one column on phones. */
@media (max-width: 1180px) {
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 1100px) {
  .ways { grid-template-columns: 1fr 1fr; }
  .ways .way:first-child { grid-column: 1 / -1; flex-direction: row; }
  .ways .way:first-child .way-art { flex: 1; border-bottom: 0; border-right: 1px solid var(--line); min-height: 0; }
  .ways .way:first-child .way-copy { flex: 1; justify-content: center; }
}
@media (max-width: 980px) {
  .more { display: none !important; }
  .hero { padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 640px; }
  .hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .coin-top { display: block; width: 150px; flex: none; margin: -6px -6px -14px 0; }
  h1 { margin-top: 4px; }
  .glimpse {
    display: flex; gap: 9px; align-items: flex-start; margin: 10px 0 0 22px; padding: 10px 12px;
    border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
    font-size: 14px; line-height: 1.4; max-width: 520px; position: relative;
  }
  .glimpse::before { content: ""; position: absolute; left: -14px; top: -10px; width: 12px; height: 24px; border-left: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); border-bottom-left-radius: 10px; }
  .glimpse img { width: 24px; height: 24px; flex: none; margin-top: 1px; }
  .glimpse .g-more { color: var(--ink-2); font-weight: 650; }
  .hero-stage { width: 100%; max-width: 380px; justify-self: center; padding-top: 0; }
  .p3-coin { display: none; }
  .p3 { margin: 0 auto; }
  .sticker-coin { top: 150px; left: calc((100% - 100cqw) / 2 + 15px); } /* 15px: its depth carries it out that far */
  .stage-foot { margin: 60px auto 0; }
  .sp1 { right: -12px; top: 236px; --z: 24px; }
  .sp2 { --z: 0px; right: calc((100% - 100cqw) / 2 + 12px); top: 452px; } /* inside the stage, clear of the screen's edge */
  .sp3 { right: auto; left: calc((100% - 100cqw) / 2 + 2px); top: 340px; }
  .sp4 { right: 10px; bottom: -24px; --z: 40px; }
  .recent-sub { max-width: 30em; } /* clear of the scattered coins at the right edge */
  .band-grid { grid-template-columns: 1fr; gap: 28px; }
  .band-side { padding-top: 104px; }
  .band-crown { width: 150px; top: -34px; right: 16px; }
  .band::before { background: linear-gradient(180deg, rgba(16, 6, 42, .72) 0%, rgba(16, 6, 42, .6) 60%, rgba(16, 6, 42, .35) 100%); }
}
@media (max-width: 900px) {
  /* The loop band: words first on the video's own violet, then the video, which fades up into them. */
  .how-band { flex-direction: column; align-items: stretch; height: auto; background: #3a04a6; }
  .how-band::before { display: none; }
  .how-copy { order: -1; z-index: 1; padding-top: 44px; padding-bottom: 6px; background: linear-gradient(180deg, #2a048f 0%, #3a04a6 100%); }
  .how-copy::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 96px; background: linear-gradient(180deg, #3a04a6 0%, rgba(58, 4, 166, .6) 45%, rgba(58, 4, 166, 0) 100%); pointer-events: none; }
  .how-video { position: relative; inset: auto; z-index: 0; display: block; height: auto; aspect-ratio: 1.6; object-position: 96% 38%; }
  .how-copy > * { max-width: 620px; }
  .how-steps { margin-top: -54px; }
}
@media (max-width: 760px) {
  .how-video { aspect-ratio: 1 / .92; }
  .ways { grid-template-columns: 1fr; }
  .ways .way:first-child { flex-direction: column; }
  .ways .way:first-child .way-art { border-right: 0; border-bottom: 1px solid var(--line); }
  .how-steps { grid-template-columns: 1fr; margin-top: -54px; row-gap: 22px; }
  .step { grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "art-k art" "h art" "p p" "m m"; column-gap: 12px; align-items: center; }
  .step-art { grid-area: art; width: 104px; height: 104px; margin: 0; border-radius: 22px; }
  .step-art img { width: 100px; height: 100px; }
  .step-art-at img { width: 100px; height: 100px; margin-top: 0; }
  .at-chip { display: none; } /* too wide for the 104px art; the step's own words and mini post say it */
  .step-k { grid-area: art-k; align-self: end; }
  .step h3 { grid-area: h; align-self: start; }
  .step > p { grid-area: p; }
  .step .mini { grid-area: m; }
  .step:not(:last-child)::after { display: block; top: auto; bottom: -23px; right: auto; left: 42px; width: 2px; height: 24px; background: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 9px); }
  .end-card { display: block; min-height: 0; }
  .end-bg { transform: none; object-position: 30% 50%; }
  .end-card::before { background: linear-gradient(180deg, rgba(16, 6, 42, .2) 0%, rgba(16, 6, 42, .6) 42%, rgba(16, 6, 42, .7) 100%); }
  .end-coin { position: relative; right: auto; top: auto; width: 190px; margin: 26px auto -14px; }
  .end-copy { padding: 18px 20px 28px; max-width: none; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .how { padding-bottom: 48px; }
  .post-title { gap: 12px; margin-bottom: 20px; }
  .post-title > img { width: 40px; height: 40px; }
  .hero { padding: 12px 0 30px; }
  .kicker { font-size: 14.5px; padding: 7px 13px 7px 10px; }
  .coin-top { width: 128px; margin: -4px -4px -10px 0; }
  h1 { font-size: clamp(34px, 10.4vw, 44px); line-height: 1.02; }
  .lead { margin-top: 12px; font-size: 16.5px; line-height: 1.5; }
  .cmd { margin-top: 16px; padding: 10px 10px 10px 14px; border-radius: 18px; }
  .cmd-label { font-size: 13px; }
  .cmd-text { font-size: 16px; }
  .cmd-hint { font-size: 14px; }
  .copy { padding: 0 14px; }
  .glimpse { font-size: 13.5px; }
  .cta-row { margin-top: 16px; gap: 10px; flex-wrap: nowrap; }
  .cta-row .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 16px; }
  .ticks { margin-top: 14px; gap: 4px 14px; font-size: 14px; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13.5px; padding-top: 12px; padding-bottom: 12px; }
  .trust-row li { padding-left: 17px; line-height: 1.4; }
  .trust-row li::before { width: 9px; height: 9px; top: .4em; }
  .how-band h2 { font-size: clamp(36px, 11vw, 46px); margin-top: 14px; }
  .how-lead { font-size: 16.5px; margin-top: 12px; }
  .how-kicker { font-size: 14px; }
  .how-steps { row-gap: 18px; }
  .step { padding: 14px 14px 16px 16px; row-gap: 6px; border-radius: 22px; }
  .step-k { font-size: 19px; }
  .step-n { width: 30px; height: 30px; font-size: 15px; }
  .step h3 { font-size: 17.5px; }
  .step > p { font-size: 15px; line-height: 1.5; margin-top: 4px; }
  .mini > * { padding: 10px 12px; }
  .step:not(:last-child)::after { bottom: -19px; height: 20px; left: 30px; }
  .note-line { margin-top: 16px; font-size: 14.5px; }
  .recent-head { align-items: stretch; }
  .lookup-compact { width: 100%; }
  /* Phones: below the heading, behind the opaque lookup field and button, clear of every line of text. */
  .recent-scatter { width: 330px; right: -190px; top: 118px; }
  .post-title > .fans-art { position: absolute; right: -8px; top: -46px; width: 74px; height: auto; margin: 0; }
  .way-art { display: none; }
  .ways { gap: 14px; }
  .way-copy { padding: 18px 18px 16px; }
  .way-copy h3 { font-size: 18px; }
  .recent-sub { margin: 14px 0 16px; font-size: 15px; }
  .shelf { padding-inline: 16px; scroll-padding-inline: 16px; }
  .coin-card { width: min(78vw, 290px); }
  .band { padding: 52px 0; }
  .band-lead { font-size: 16.5px; }
  .band-side { padding-top: 84px; }
  .band-crown { width: 120px; right: 10px; top: -26px; }
  .reasons { margin: 20px 0 24px; gap: 12px; }
  .band .btn-gold { width: 100%; }
  .claim-mock { padding: 16px; border-radius: 22px; }
  .cm-steps li { padding: 12px; }
  .cm-steps code { font-size: 16px; }
  .faq summary { padding: 10px 16px; }
  .q { font-size: 17px; }
  .faq .a { margin: 0 12px 14px 12px; padding: 12px 14px; }
  .end-card { border-radius: 28px; }
  .end-card .cta-row { flex-wrap: wrap; }
  .end-card .btn { width: 100%; flex: 1 1 100%; }
  .cmd-on-dark .cmd-row { flex-direction: column; align-items: stretch; }
  .cmd-on-dark .copy { justify-content: center; }
}
@media (max-width: 380px) {
  .coin-top { width: 112px; }
  .cta-row .btn { font-size: 15px; padding: 0 8px; }
  .trust-row { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .coin-slot, .coin-slot::after, .c3-coin, .c3-face::after, .steam path, .ext-btn, .typing i, .band-crown, .fans-art { animation: none !important; }
  .step-art img { transition: none !important; }
  .play :is(.s1, .s3, .s4, .s5, .sticker-coin, .sticker-post) { animation: none !important; opacity: 1 !important; }
  .play .s2 { animation: none !important; opacity: 0 !important; }
  .p3-spark, .p3-hint svg { animation: none !important; }
  .p3-hint { transition: none; }
}
