/* ==========================================================================
   Nail Challenge — colors live here. To try the cream background instead of
   light green, swap --bg to #fffaf2 (and --bg-soft to #f6efe3).
   ========================================================================== */
:root {
  --bg: #eaf5ea;          /* light green page background */
  --bg-soft: #dcecdc;     /* slightly darker band */
  --card: #fffdf8;        /* cards, chat window */
  --ink: #111a16;         /* main text: near-black */
  --muted: #4a5a52;
  --line: #c9dccb;
  --accent: #0d717e;      /* teal (buttons, links) */
  --accent-ink: #ffffff;
  --accent-hover: #0a5d68;
  --nail: #f0a9a1;        /* Nail's pink */
  --nail-tip: #f9e6da;
  --swing: #24453a;       /* dark green of the swing seat */
  --ok: #1d7a4a;
  --error: #b3261e;
  --tg: #2aabee;          /* Telegram blue */
  --live: #22c55e;        /* blinking "live" light next to the realtime reward */
  --m-pot: #33433b;       /* reward math: paid fees (the pot) - neutral: red would read as a loss */
  --m-coef: #1588c9;      /* reward math: coefficient 3 */
  --m-mem: #8a4ccf;       /* reward math: participants */
  --m-rew: #16924f;       /* reward math: the reward */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(17, 40, 30, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
h1, h2 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }
.h1-kicker { display: block; margin-top: .3em; color: var(--accent); font-size: .78em; }
h1 { font-size: clamp(calc(1.9rem + 3px), calc(4vw + 3px), calc(2.75rem + 3px)); font-family: "Inter Tight", var(--sans); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.link { font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
section { padding: 56px 0; }

/* ---------- top bar ---------- */
/* no top bar: the links are plain text at the top of the page and scroll away with it */
.topbar { position: static; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.nav-links { align-items: center; }
/* Join in the top bar: the site's teal (dark green-turquoise) pill */
.nav-links a.nav-join { background: var(--accent); color: var(--accent-ink); padding: 6px 16px; border-radius: 999px; }
.nav-links a.nav-join:hover { background: var(--accent-hover); color: var(--accent-ink); }
/* the page you are on */
.nav-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
       font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: rgba(13, 113, 126, .08); }
.btn-telegram { background: var(--tg); color: #fff; }
.btn-telegram:hover { filter: brightness(.95); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: 700 .85rem var(--sans); color: var(--accent); cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent); }
input, select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 113, 126, .15); }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; }
.at-input { flex: 1; display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.at-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 113, 126, .15); }
.at-input span { padding-left: 14px; color: var(--muted); font-weight: 700; }
.at-input input { border: 0; box-shadow: none !important; padding-left: 4px; flex: 1; }
.hint { margin: 8px 0 0; }
#swap-row { margin-top: 10px; }
.err { color: var(--error); font-size: .9rem; min-height: 1.3em; margin: 8px 0 0; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding-top: 48px; }
main { overflow-x: clip; }  /* the hero tree may reach past its column, never past the page */
.lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
.hero-sub { color: var(--muted); font-size: 1.12rem; margin: 0; max-width: 24em; }
.hero-body { color: var(--ink); max-width: 30em; margin: 0 0 10px; }   /* plain body text under the headline */
/* right side: the big "Join the challenge" button, Nail on the swing below it */
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 22px; align-self: start; padding-top: 44px; min-width: 0; }  /* the big cloud may reach past the column without widening it */
/* "Join the challenge" is a soft cloud in the sky above the tree: its edges breathe (blur in and out);
   on hover / keyboard focus the cloud turns crisp, pure white */
.btn-join { position: relative; z-index: 2; isolation: isolate; display: inline-grid; place-items: center; width: 560px; max-width: 120%; aspect-ratio: 320 / 150;
  padding: 8% 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #168796;
  font: 700 2rem/1.1 var(--serif); text-decoration: none; transition: transform .3s ease;
  top: -56px; }  /* sits higher in the sky; moved visually only, the tree keeps its place */
.btn-join::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 150' fill='%23fff'><circle cx='92' cy='92' r='44'/><circle cx='150' cy='66' r='54'/><circle cx='214' cy='78' r='46'/><circle cx='258' cy='104' r='32'/><circle cx='58' cy='112' r='28'/><rect x='50' y='96' width='222' height='42' rx='21'/></svg>") center / contain no-repeat;
  filter: blur(5px) drop-shadow(0 6px 14px rgba(36, 69, 58, .10)); opacity: .95; animation: cloud-breathe 1.2s ease-in-out infinite alternate; transition: filter .35s, opacity .35s; }
.btn-join:hover, .btn-join:focus-visible { color: #168796; background: none; transform: translateY(-2px); outline: none; }
.btn-join:hover::before, .btn-join:focus-visible::before { animation: none; filter: blur(0) drop-shadow(0 8px 18px rgba(36, 69, 58, .12)); opacity: 1; }
@keyframes cloud-breathe {
  from { filter: blur(6px) drop-shadow(0 6px 14px rgba(36, 69, 58, .10)); opacity: .92; }
  to   { filter: blur(0) drop-shadow(0 6px 14px rgba(36, 69, 58, .12)); opacity: 1; }      /* fully sharp at the turn */
}
@media (prefers-reduced-motion: reduce) { .btn-join::before { animation: none; filter: blur(4px); } }
/* Hero art: Nail's swing tied to the tree branch (inline SVG in index.html, units = tree.png pixels).
   The swing motion is drawn by the small script right after the SVG; keep its numbers in sync with the markup. */
.scene { display: block; width: min(740px, 156%); height: auto; overflow: visible; margin-top: -40px;
  position: relative; left: -50px; }  /* tucked under the big cloud */  /* bigger than its column, leaning towards the text */
.scene .tree { mix-blend-mode: multiply; }  /* white paper of the drawing disappears into the page */
.scene .rope { stroke: #633922; stroke-width: 16; stroke-linecap: round; }
.scene .knot rect { fill: #633922; }

.pay-card { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pay-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 6px; }
.pay-amount { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.pay-amount strong { font: 600 2.4rem/1 "Inter Tight", var(--sans); letter-spacing: -0.02em; }
.pay-amount span { color: var(--muted); font-weight: 700; }
.pay-nail-deal { flex: 1 1 220px; margin: 0; padding: 12px 18px; border-radius: 16px; background: #fdecd0; color: #7a4a06;
                 font-size: clamp(1.1rem, 1.8vw, 1.35rem); text-align: center; line-height: 1.25; }
.pay-nail-deal strong { font-size: 1.15em; }
.pay-nail-deal span { display: block; font-size: .78em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.pay-perks { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 6px; }
.pay-perks li { position: relative; padding-left: 28px; font-weight: 600; }
.pay-perks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
                        background: #d9f2df; color: var(--ok); font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.pay-label { display: block; margin: 0 0 8px; font-weight: 700; font-size: .92rem; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 18px; }
.pay-method { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 12px; border-radius: 12px; cursor: pointer;
              border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; text-align: left; transition: border-color .15s, background .15s; }
.pay-method strong { font-size: .98rem; }
.pay-method span { font-size: .75rem; color: var(--muted); }
.pay-method:hover { border-color: var(--accent); }
.pay-method[aria-checked="true"] { border-color: var(--accent); background: #e3f3f4; box-shadow: 0 0 0 3px rgba(13, 113, 126, .15); }
.pay-method.soon { cursor: default; opacity: .55; border-style: dashed; }
#swap-mint { width: 100%; margin: -8px 0 18px; }
.pay-go { font-size: 1.1rem; padding: 16px 26px; }
.pay-trust { text-align: center; margin: 12px 0 0; font-size: 1rem; }
.pay-newbie { text-align: center; margin: 10px 0 0; }
.pay-newbie a { font-weight: 700; }
.pay-step .btn { margin-top: 14px; width: 100%; }
.qr-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; aspect-ratio: 1; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-side p { margin: 0 0 6px; }
.qr-side .btn { margin: 4px 0 14px; }
.copy-row { display: flex; align-items: center; gap: 8px; background: #f3f7f2; border-radius: 10px; padding: 8px 10px; }
.copy-row code { flex: 1; font-size: .8rem; word-break: break-all; }
.copy-row code.pay-amount { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
#amount-box { margin-bottom: 10px; }
.pay-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 12px 6px 8px; border: 0; border-radius: 999px;
  background: #eef4ef; color: var(--accent); font: 700 .9rem var(--sans); cursor: pointer; }
.pay-back:hover { background: #e0ece4; }
.copy-row.big code { font-size: .95rem; font-weight: 700; color: var(--ok); }
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 16px 0 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .25; } }
.manual { margin-top: 14px; }
.manual summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .95rem; }
.manual .row { margin-top: 8px; }
.manual .btn { width: auto; margin-top: 0; padding: 10px 18px; }

/* ---------- meet Nail + chat ---------- */
.meet { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.meet-text { align-self: center; }
.meet-text p { margin: 0 0 20px; font-size: 1.32rem; line-height: 1.6; }
.meet-text .meet-goal { font: 700 clamp(1.45rem, 2.6vw, 1.85rem)/1.25 var(--serif); color: #d43c3c; }  /* the one red line on the page */
.live-community { max-width: 620px; margin: 0 auto 18px; }
.meet-text .privacy-note { font-size: .95rem; color: var(--muted); }
.privacy-note code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; color: var(--ink); }
.meet-text h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
.chat-slot { grid-column: 2; grid-row: 1; height: 460px; }
.chat { height: 100%; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; color: #111; border-bottom: 1px solid #e3e8e3; }  /* light, like Telegram */
.chat-head img { background: #f1f5f1; border-radius: 50%; }
.chat-head div { display: flex; flex-direction: column; line-height: 1.2; }
.chat-sub { font-size: .8rem; color: #8a9a8e; }
.chat-sub.busy { color: var(--tg); }  /* "typing…" in Telegram blue */
.chat-body { flex: 1; overflow-y: auto; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 3px;
  /* Telegram-like wallpaper: soft green gradient + our own faint doodles */
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke='%2324453a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' opacity='.09'><rect x='18' y='16' width='20' height='30' rx='10'/><path d='M18 27c6-5 14-5 20 0'/><path d='M120 22c10-8 24-6 30 4-10 8-24 6-30-4zM122 22l26 4'/><path d='M84 70c-5-6-15-2-12 6 2 5 12 11 12 11s10-6 12-11c3-8-7-12-12-6z'/><path d='M30 110l3 7 7 1-5 5 1 7-6-4-6 4 1-7-5-5 7-1z'/><rect x='128' y='96' width='18' height='27' rx='9' transform='rotate(18 137 110)'/><path d='M60 150c8-10 22-10 30 0M66 142v-5M84 142v-5'/><circle cx='150' cy='160' r='6'/><path d='M100 120l6-6M103 126l10-4'/></svg>") 0 0 / 180px 180px,
              linear-gradient(160deg, #dfe8b4 0%, #b9d7a5 55%, #9cc79a 100%); }
.bubble { position: relative; max-width: 82%; padding: 6px 10px 7px 11px; border-radius: 14px; font-size: .95rem; line-height: 1.4;
  color: #111; white-space: pre-wrap; word-wrap: break-word; animation: pop .18s ease-out;
  filter: drop-shadow(0 1px .5px rgba(16, 35, 20, .16)); }
/* message time (and ticks for own messages), set by main.js as data-time */
.bubble[data-time]::after { content: attr(data-time); float: right; margin: 7px -2px -3px 10px; font-size: .7rem; line-height: 1; color: #8a9a8e; }
.bubble.me[data-time]::after { content: attr(data-time) "  \2713\2713"; color: #4fae4e; letter-spacing: -.02em; white-space: pre; }
.bubble.me + .bubble.nail, .bubble.nail + .bubble.me { margin-top: 7px; }  /* small gap when the sender changes */
.bubble.nail { align-self: flex-start; background: #fff; margin-left: 8px; }
.bubble.me { align-self: flex-end; background: #effdde; margin-right: 8px; }
/* Telegram tail on the last bubble of a run */
.bubble.nail:not(:has(+ .bubble.nail)) { border-bottom-left-radius: 0; }
.bubble.me:not(:has(+ .bubble.me)) { border-bottom-right-radius: 0; }
.bubble.nail:not(:has(+ .bubble.nail))::before, .bubble.me:not(:has(+ .bubble.me))::before {
  content: ""; position: absolute; bottom: 0; width: 9px; height: 17px; }
.bubble.nail:not(:has(+ .bubble.nail))::before { left: -8px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 17'><path fill='%23fff' d='M9 0v17H1.5C.5 17 0 16 .8 15.2 5 11 8.5 6 9 0z'/></svg>"); }
.bubble.me:not(:has(+ .bubble.me))::before { right: -8px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 17'><path fill='%23effdde' d='M0 0v17h7.5c1 0 1.5-1 .7-1.8C4 11 .5 6 0 0z'/></svg>"); }
.bubble.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #8a9a8e; animation: blink 1s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .15s; }
.bubble.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
/* input bar: flat white strip like Telegram, round Telegram-blue send button */
.chat-input { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 16px; border-top: 1px solid #e3e8e3; background: #fff; }
.chat-input input { flex: 1; border: 0; border-radius: 0; padding: 12px 0; background: transparent; box-shadow: none; outline: none; font-size: .98rem; }
.chat-input:focus-within { border-top-color: var(--tg); }
.chat-input input::placeholder { color: #9aa59d; }
.chat-input button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--tg); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: transform .15s, background .15s; }
.chat-input button svg { transform: translateX(-1px); }
.chat-input button:hover { background: #1e9fe3; transform: scale(1.06); }
.chat-input button:disabled { background: #b9c6bd; transform: none; cursor: default; }
.meet { row-gap: 14px; }
.btn-big { padding: 18px 28px; font-size: 1.15rem; }
.chat-more { margin-top: 10px; box-shadow: var(--shadow); }
.chat-more-link { margin: 8px 0 0 !important; font-size: .9rem !important; padding-left: 28px; }

/* ---------- live rewards ---------- */
/* the realtime reward card sits in the hero, under the intro text */
.rewards { margin-top: 28px; max-width: 470px; }
.reward-now { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--live); border-radius: var(--radius);
              padding: 22px 26px 20px; box-shadow: var(--shadow); }
.live-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; font-size: .78rem;
            letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--live); animation: live 1.4s ease-out infinite; }
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .65); opacity: 1; }
  50%  { opacity: .35; }
  100% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); opacity: 1; }
}
.live-tag.stale { color: var(--muted); }
.live-tag.stale .live-dot { background: var(--muted); animation: none; }
.reward-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin: 4px 0 2px;
                font: 600 clamp(3rem, 7vw, 4.2rem)/1.05 "Inter Tight", var(--sans); letter-spacing: -0.03em;
                color: var(--m-rew); font-variant-numeric: tabular-nums; }
.reward-value .unit { font-size: .26em; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.reward-value .per { font: 700 .4em var(--sans); letter-spacing: 0; color: var(--ink); }
.reward-value.tick { animation: tick 1s ease-out; }
@keyframes tick { 0% { color: var(--live); } }
.rw-sub { margin: 0 0 10px; font-weight: 600; color: var(--muted); }
.rw-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 16px; }
.rw-math { border-top: 1px dashed var(--line); padding-top: 12px; font-variant-numeric: tabular-nums; }
.rw-math-title { margin: 0 0 2px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rw-eq { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; color: var(--muted); }
.m-pot { color: var(--m-pot); }
.m-coef { color: var(--m-coef); }
.m-mem { color: var(--m-mem); }
.m-rew { color: var(--m-rew); }
.rw-legend { margin: 0; display: grid; gap: 2px; font-size: .88rem; }
.rw-legend div { display: grid; grid-template-columns: 6.2em 1fr; gap: 8px; }
.rw-legend dt { font-weight: 800; }
.rw-legend dd { margin: 0; color: inherit; font-weight: 600; }  /* each definition in its number's colour */
.reward-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.reward-lists h3 { font: 700 1.5rem var(--serif); margin: 0; }
/* the payouts are proof the challenge pays: framed like the reward card so they don't get skipped */
.join .reward-lists { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--live); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 24px 22px; }
.rw-eyebrow { grid-column: 1 / -1; margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
#rw-top li:first-child { background: #fff4cf; border-radius: 10px; padding: 7px 10px; margin: 0 -10px; }  /* number one */
#rw-top li:first-child .rank { color: #b7791f; }
#rw-recent li:first-child { border-left: 3px solid var(--live); padding-left: 10px; margin-left: -13px; }  /* newest payout */
.rw-list { list-style: none; margin: 0; padding: 0; }
.rw-list li { padding: 7px 0; line-height: 1.45; font-variant-numeric: tabular-nums; }
.rw-list a { color: var(--ink); text-decoration: none; font: .9rem ui-monospace, "Cascadia Mono", Consolas, monospace; }
.rw-list a:hover { color: var(--accent); text-decoration: underline; }
.rw-list .rank { display: inline-block; min-width: 1.6em; font-weight: 800; color: var(--muted); }
.rw-list .amt { font-weight: 800; color: var(--ok); }
.rw-list .when { display: block; font-size: .82rem; color: var(--muted); }
.rw-list .when a { font: inherit; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .live-dot, .reward-value.tick { animation: none; } }

/* ---------- join: payment + latest rewards + top 10 ---------- */
.join { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.join { row-gap: 20px; }
.join-title { grid-column: 1 / -1; margin: 0; }
.join .pay-card { margin-top: 0; }
.join .reward-lists { grid-template-columns: 1fr; gap: 22px; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.reasons { padding-left: 1.3em; margin: 0; }
.reasons li { margin-bottom: 14px; }
.col-joke { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px dashed var(--line); }
.col-joke .reasons li { color: var(--muted); }

/* ---------- telegram live + social ---------- */
.live { text-align: center; }
.live > p { max-width: 620px; margin: 0 auto 18px; }
/* the group screenshot as a big window, the phone screenshot cut out on top of its right edge */
.tg-shots { position: relative; max-width: 1000px; margin: 64px auto 0; padding: 0 15% 0 0; }
.tg-desktop { display: block; width: 100%; border-radius: 14px; box-shadow: 0 18px 44px rgba(17, 40, 30, .18); border: 1px solid var(--line); }
.tg-phone { position: absolute; right: 0; top: 50%; width: 22%; transform: translateY(-50%) rotate(3deg);
            border: 7px solid #121614; border-radius: 26px; box-shadow: 0 24px 50px rgba(17, 40, 30, .32); background: #121614; }
.tg-shots figcaption { margin-top: 56px; padding-left: 15%; }
.social { margin-top: 34px; }
.social-title { font-weight: 700; margin: 0 0 10px; }
.link-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
        font-weight: 700; text-decoration: none; }
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- NAIL token ---------- */
.token { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.token-art { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.token-art img { width: min(260px, 60vw); filter: drop-shadow(0 14px 22px rgba(17, 40, 30, .18)); }
.token-ticker { font: 700 clamp(1.4rem, 3vw, 1.9rem) var(--serif); letter-spacing: .04em; color: var(--ink); }
.token-text p { margin: 0 0 14px; }
.token-name { color: #c4574c; }  /* deep nail pink, from the NAIL character */
.token-buy-title { font-weight: 700; margin-top: 22px !important; }
.token .link-list { justify-content: flex-start; }
.token .link-list .btn { padding: 12px 22px; }

/* ---------- how ---------- */
.how { max-width: 820px; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 12px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: .9rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--ink); }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .hero, .meet, .why, .join, .token { grid-template-columns: 1fr; }
  .rewards { max-width: none; }
  .token-art { order: -1; }
  /* phone screenshot under the group screenshot, overlapping it a little */
  .tg-shots { padding: 0; }
  .tg-phone { position: relative; top: auto; right: auto; display: block; width: min(62%, 300px); margin: -40px auto 0; transform: rotate(2deg); }
  .tg-shots figcaption { padding-left: 0; }
  .hero-art { order: -1; padding-top: 8px; }
  .scene { width: min(340px, 100%); margin-top: 18px; left: 0; }
  .btn-join { width: min(340px, 100%); font-size: 1.4rem; top: 0; }
  .chat-slot { grid-column: 1; grid-row: auto; }
  .chat-more { width: 100%; }
  .chat-more-link { padding-left: 0; text-align: center; }
  .chat-slot { height: 420px; }
  section { padding: 40px 0; }
}
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; height: auto; padding-top: 14px; row-gap: 6px; }
  .nav-links { flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; }
  .qr-row { grid-template-columns: 1fr; }
  .qr { max-width: 220px; margin: 0 auto; }
  .row { flex-direction: column; }
  .reward-lists { grid-template-columns: 1fr; }
}

/* ---------- floating "Chat with Nail" (like the AI helpers on many sites) ---------- */
.chat-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 7px 22px 7px 7px; border: 0; border-radius: 999px; background: var(--tg); color: #fff; font: 700 1.02rem var(--sans);
  box-shadow: 0 10px 28px rgba(42, 171, 238, .45); cursor: pointer; animation: launcher-hop 3.2s ease-in-out infinite;
  transition: opacity .2s, transform .2s; }
.chat-launcher img { background: #fff; border-radius: 50%; }
.chat-launcher::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(42, 171, 238, .5);
  animation: launcher-ring 3.2s ease-out infinite; pointer-events: none; }
.chat-launcher:hover { background: #1e9fe3; }
.chat-launcher.away { opacity: 0; pointer-events: none; transform: translateY(18px); animation: none; }
@keyframes launcher-hop { 0%, 64%, 100% { transform: translateY(0); } 72% { transform: translateY(-10px); } 80% { transform: translateY(0); } 86% { transform: translateY(-4px); } 92% { transform: translateY(0); } }
@keyframes launcher-ring { 0%, 60% { box-shadow: 0 0 0 0 rgba(42, 171, 238, .5); } 95%, 100% { box-shadow: 0 0 0 16px rgba(42, 171, 238, 0); } }
.chat-close { display: none; margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #8a9a8e;
  cursor: pointer; place-items: center; }
.chat-close:hover { background: #f1f5f1; color: var(--ink); }
.chat.floating { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 48px)); box-shadow: 0 24px 60px rgba(20, 50, 35, .28); animation: pop .18s ease-out; }
.chat.floating .chat-close { display: grid; }
@media (max-width: 600px) {
  .chat-launcher { right: 16px; bottom: 16px; }
  /* phones: the window uses the width of the screen and fits the visible area; main.js (fitChat) keeps it
     above the keyboard. Without the script it still fits the screen. */
  .chat.floating { left: 8px; right: 8px; bottom: 8px; width: auto; height: min(520px, calc(100dvh - 16px)); }
  .chat-input input { font-size: 16px; }   /* 16 px or more: iPhones don't zoom in when the field is tapped */
}
@media (prefers-reduced-motion: reduce) { .chat-launcher, .chat-launcher::after { animation: none; } }

/* Search and information pages share the site's existing colours and typography. */
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 20; padding: 10px 16px; background: var(--card); border: 2px solid var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.content-page { max-width: 860px; padding-top: 36px; padding-bottom: 64px; overflow-wrap: anywhere; }
.content-page h1 { max-width: 25ch; }
.content-page section { padding: 26px 0 0; }
.content-page h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.25; }
/* a sentence said big: the size of the headings above, in the moving colours (gradient-text.css) */
.say-big { display: block; margin: .15em 0 .3em; font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 700; line-height: 1.25; }
.content-page h3 { font-size: 1.2rem; }
.content-meta, .breadcrumbs { color: var(--muted); font-size: .9rem; }
.breadcrumbs { margin: 0 0 22px; }
.content-meta { margin: 14px 0 24px; }
.page-lead { font-size: 1.2rem; line-height: 1.55; }
.on-this-page { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 24px; margin-top: 28px; }
.on-this-page li { margin: 7px 0; }
.question { border-top: 1px solid var(--line); margin-top: 28px; }
.question p, .content-page section p { max-width: 72ch; }
.notice { border-left: 3px solid var(--accent); padding: 12px 16px; background: var(--bg-soft); font-size: .95rem; }
.formula { padding: 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.content-page table { width: 100%; border-collapse: collapse; background: var(--card); margin: 20px 0; }
.content-page caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
.content-page th, .content-page td { text-align: left; border: 1px solid var(--line); padding: 12px 16px; }
.content-page thead { background: var(--bg-soft); }
/* home FAQ: closed accordion cards, one question per row (open one with a click) */
.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 16px; margin-top: 24px; interpolate-size: allow-keywords; }  /* two side by side; an open card does not stretch its neighbour */
.answer-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.answer-card[open] { border-color: #b7d8cf; box-shadow: var(--shadow); }
.answer-card summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; border-radius: var(--radius); }
.answer-card summary::-webkit-details-marker { display: none; }
.answer-card summary:focus-visible { outline: 3px solid rgba(13, 113, 126, .35); outline-offset: 2px; }
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e2f0ec; transition: background .2s, transform .25s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: translate(-50%, -50%); transition: transform .25s, background .2s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }                     /* plus when closed */
.answer-card summary:hover .faq-icon { background: #cde6df; }
.answer-card[open] .faq-icon { background: var(--accent); transform: rotate(180deg); }
.answer-card[open] .faq-icon::before, .answer-card[open] .faq-icon::after { background: #fff; }
.answer-card[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }   /* minus when open */
/* smooth opening where the browser supports it; elsewhere it simply opens */
.answer-card::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.answer-card[open]::details-content { block-size: auto; }
.answer-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.answer-card p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.sources { border-top: 1px solid var(--line); margin-top: 24px; }
@media (max-width: 720px) {
  .answer-grid { grid-template-columns: 1fr; }
  .content-page { padding-top: 24px; }
  .brand { font-size: 1.1rem; }
  .footer .wrap { flex-direction: column; }
  .on-this-page { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Nail chat at the very top: wide like the Telegram app ---------- */
.chat-top { padding-top: 20px; padding-bottom: 8px; }
.chat-top .chat-slot { grid-column: auto; grid-row: auto; height: min(640px, calc(100vh - 150px)); min-height: 420px; }
.chat-top .chat:not(.floating) { box-shadow: 0 18px 50px rgba(20, 50, 35, .16); }
.chat-top .chat:not(.floating) .chat-head { padding: 12px 22px; }
.chat-top .chat:not(.floating) .chat-body { padding: 18px 8% 12px; }          /* wide window, messages kept readable */
.chat-top .chat:not(.floating) .chat-input { padding: 8px 10px 8px 22px; }
/* Meet Nail: one column now that the chat lives at the top */
.meet { grid-template-columns: minmax(0, 820px); }
@media (max-width: 600px) {
  .chat-top { padding-top: 10px; }
  /* phones: the chat fills the first screen (below the menu); the page continues under it */
  .chat-top .chat-slot { height: calc(100dvh - 120px); min-height: 380px; }
  .chat-top .chat:not(.floating) .chat-body { padding: 14px 12px 10px; }
}

/* ---------- chat: attach a photo / video, and a blinking line in the empty message field ---------- */
.chat-input { padding-left: 6px; }
.chat-input .chat-attach { width: 40px; height: 40px; background: transparent; color: #8a9a8e; border-radius: 50%; display: grid; place-items: center; }
.chat-input .chat-attach:hover { background: #f1f5f1; color: var(--tg); transform: none; }
.chat-input .chat-attach:disabled { background: transparent; color: #c9d3cc; }
.chat-field { flex: 1; position: relative; display: flex; align-items: center; min-width: 0; margin: 0; font: inherit; }
.chat-field input { flex: 1; caret-color: var(--tg); }
/* shown while the field is empty and not in use: "you can write here" */
/* a photo or video the visitor sent */
.bubble.media { padding: 4px; }
.bubble.media img, .bubble.media video { display: block; max-width: min(260px, 60vw); max-height: 320px; border-radius: 12px; }

/* Rules page: the one-line summary above the required-check targets, big and turquoise like the home page steps */
.rules-simply { margin: 30px 0 20px; color: var(--accent); font: 600 clamp(1.6rem, 3.4vw, 2.3rem)/1.15 "Inter Tight", var(--sans);
  letter-spacing: -0.03em; }

/* Rules page: "no video, no reward that day." stands out, big and turquoise */
.rules-big { display: block; margin: 8px 0; color: var(--accent); font: 600 clamp(1.5rem, 3vw, 2rem)/1.15 "Inter Tight", var(--sans);
  letter-spacing: -0.03em; }
