/* The Last Word — one word, a lot of white space, and a full stop. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-vietnamese-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  color-scheme: light dark;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --ink: #0b0c10;
  --ink-2: #5d626d;
  --line: #dfe2e8;
  --faint: #cdd1d9;
  --accent: #2f5bff;
  --accent-hover: #1e45e6;
  --accent-ink: #ffffff;
  --tint: #e4eaff;
  --bad: #d4281c;
  --good: #0b8a4f;
  --lift: 0 1px 2px rgb(11 12 16 / 0.05), 0 10px 30px rgb(11 12 16 / 0.07);

  --r: 22px;
  --r-s: 12px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --avail: calc(min(100vw, var(--max)) - 2 * var(--gutter));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090a0d;
    --surface: #13151a;
    --surface-2: #1c1f26;
    --ink: #f2f3f5;
    --ink-2: #9ba1ad;
    --line: #282c35;
    --faint: #2e323b;
    --accent: #6f8cff;
    --accent-hover: #8da4ff;
    --accent-ink: #090a0d;
    --tint: #171f3f;
    --bad: #ff7366;
    --good: #4fd08f;
    --lift: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
b, strong { font-weight: 700; }
code { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { left: 10px; top: 10px; }

.num { font-variant-numeric: tabular-nums lining-nums; }
.ext { color: var(--ink-2); font-weight: 500; white-space: nowrap; }

.demo {
  margin: 0;
  padding: 8px var(--gutter);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.top, main, .foot {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* The name of the site ends in a full stop: it is the last word, after all. */
.logo {
  flex: none;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo::after, .page__head h1::after { content: "."; color: var(--accent); }

.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-right: auto; }
.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 11px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 700 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(11 12 16 / 0.16); }
.btn:active:not(:disabled) { transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--cta, .btn--big { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--cta:hover:not(:disabled), .btn--big:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn--cta { flex: none; padding: 10px 10px 10px 18px; font-size: 14.5px; }
.btn__short { display: none; }
.btn__price {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-ink) 18%, transparent);
  font-variant-numeric: tabular-nums;
}
.btn--big { padding: 18px 30px; font-size: clamp(17px, 2.1vw, 21px); font-weight: 800; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover:not(:disabled) { border-color: var(--ink); box-shadow: none; }
.btn--wide { width: 100%; }
.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}

/* ---------- front page ---------- */

.front { padding-top: clamp(8px, 2vw, 22px); }

.front__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 clamp(4px, 1vw, 12px);
  color: var(--ink-2);
  font-size: 15px;
}
.front__meta .more { margin-left: auto; }

/* The number of the word, worn like a price sticker. */
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  transform: rotate(-3deg);
}
.tag--quiet { background: var(--surface-2); color: var(--ink-2); transform: none; }

.word {
  margin: 0;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: min(calc(var(--avail) / 6), 44vh);
}
.word span { display: inline-block; }
.word--muted { color: var(--faint); }

/* First-paint sizes by letter count; the script then fits the word exactly. */
.word[data-len="1"], .word[data-len="2"] { font-size: min(calc(var(--avail) / 1.9), 44vh); }
.word[data-len="3"] { font-size: min(calc(var(--avail) / 2.6), 44vh); }
.word[data-len="4"] { font-size: min(calc(var(--avail) / 3.4), 44vh); }
.word[data-len="5"] { font-size: min(calc(var(--avail) / 4.2), 44vh); }
.word[data-len="6"] { font-size: min(calc(var(--avail) / 5), 44vh); }
.word[data-len="7"] { font-size: calc(var(--avail) / 5.8); }
.word[data-len="8"] { font-size: calc(var(--avail) / 6.6); }
.word[data-len="9"] { font-size: calc(var(--avail) / 7.4); }
.word[data-len="10"] { font-size: calc(var(--avail) / 8.2); }
.word[data-len="11"] { font-size: calc(var(--avail) / 9); }
.word[data-len="12"] { font-size: calc(var(--avail) / 9.8); }
.word[data-len="13"] { font-size: calc(var(--avail) / 10.7); }
.word[data-len="14"] { font-size: calc(var(--avail) / 11.5); }
.word[data-len="15"] { font-size: calc(var(--avail) / 12.3); }
.word[data-len="16"] { font-size: calc(var(--avail) / 13.1); }
.word[data-len="17"] { font-size: calc(var(--avail) / 13.9); }
.word[data-len="18"] { font-size: calc(var(--avail) / 14.8); }
.word[data-len="19"] { font-size: calc(var(--avail) / 15.6); }
.word[data-len="20"] { font-size: calc(var(--avail) / 16.4); }
.word[data-len="21"] { font-size: calc(var(--avail) / 17.2); }
.word[data-len="22"] { font-size: calc(var(--avail) / 18); }
.word[data-len="23"] { font-size: calc(var(--avail) / 18.9); }
.word[data-len="24"] { font-size: calc(var(--avail) / 19.7); }

.front__empty { margin: 18px 0 0; color: var(--ink-2); font-size: 18px; text-align: center; }

/* The three facts under the word, on one card. */
.strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  margin: clamp(16px, 2.6vw, 30px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--lift);
}
.strip > div { min-width: 0; padding: 18px 24px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; }
.strip dt, .kicker {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.strip dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.strip .ext { margin-left: 4px; font-size: 14.5px; font-weight: 600; letter-spacing: 0; }

.sharebar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  justify-content: center;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
}
.sharebar .kicker { font-weight: 600; }
.sharebar a:hover, .sharebar .linkbtn:hover { color: var(--ink); }
.sharebar__mine { color: var(--accent); font-weight: 800; }

.pitch { padding: clamp(28px, 4.4vw, 56px) 0; text-align: center; }
.pitch__lede { margin: 0 0 20px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.pitch__lede b { font-weight: 900; }
.pitch__fine { margin: 16px 0 0; color: var(--ink-2); font-size: 14.5px; text-wrap: balance; }

.columns { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; padding: 0 0 44px; }
.columns > article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.columns h2 { margin: 0 0 16px; font-size: 21px; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.columns p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }
.more { font-size: 14.5px; font-weight: 700; }

.deal { margin: 0; padding: 0; list-style: none; counter-reset: deal; }
.deal li { position: relative; padding: 0 0 14px 40px; color: var(--ink-2); font-size: 15px; line-height: 1.45; counter-increment: deal; }
.deal li b { display: block; color: var(--ink); }
.deal li::before {
  content: counter(deal);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.ladder { display: block; width: 100%; height: auto; }
.ladder__bar--done { fill: var(--ink); }
.ladder__bar--next { fill: var(--accent); }
.ladder__bar--todo { fill: var(--surface-2); }
.ladder__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.prev { margin: 0; padding: 0; list-style: none; }
.prev li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.prev li:first-child { padding-top: 0; }
.prev a { min-width: 0; text-decoration: none; overflow-wrap: anywhere; }
.prev a:hover .prev__word { color: var(--accent); }
.prev__n { margin-right: 8px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.prev__word { font-size: 20px; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- inner pages ---------- */

.page { padding-top: clamp(20px, 3.4vw, 44px); padding-bottom: 12px; }
.page__head { padding-bottom: 8px; }
.page__head h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.page__head p { margin: 14px 0 0; color: var(--ink-2); font-size: 19px; font-weight: 500; }

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.empty { padding: 40px 0; color: var(--ink-2); text-align: center; }

.archive {
  margin: 12px 0 0;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  list-style: none;
}
.entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.entry:last-child { border-bottom: 0; }
.entry__n { color: var(--ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.entry__word {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.entry__word:hover { color: var(--accent); }
.entry__word--muted { color: var(--faint); }
.entry__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.badge--live { background: var(--accent); color: var(--accent-ink); }
.entry__by { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }

/* Who placed a word: logo, title, link. */
.sponsor { display: flex; gap: 14px; align-items: center; min-width: 0; }
.sponsor__logo {
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
}
.sponsor__logo--blank { display: grid; place-items: center; color: var(--ink-2); font-size: 22px; font-weight: 900; line-height: 1; }
.sponsor__text { display: grid; gap: 1px; min-width: 0; }
.sponsor__name { font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sponsor .sponsor__link { justify-self: start; margin: 0; font-size: 14.5px; font-weight: 500; letter-spacing: 0; }
.sponsor__note { color: var(--ink-2); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.strip .sponsor { margin-top: 6px; }
.strip .sponsor__name { font-size: 20px; }
.entry__num { display: grid; justify-items: end; color: var(--ink-2); font-size: 13px; line-height: 1.5; text-align: right; }
.entry__num b { color: var(--ink); font-size: 26px; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; }

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 20px 0;
  font-size: 14.5px;
  font-weight: 700;
}
.pager > :last-child { text-align: right; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.rules li {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.rules__n { flex: none; width: 44px; color: var(--accent); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rules h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.rules p { margin: 0; color: var(--ink-2); font-size: 16px; }

.note { max-width: 70ch; padding: 16px 0 0; }
.note h2, .prose h2 { margin: 30px 0 8px; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.note p, .prose p { margin: 0 0 12px; }

.prose { max-width: 70ch; padding: 6px 0 28px; }
.prose section { scroll-margin-top: 16px; }
.draft {
  padding: 12px 16px;
  border: 1.5px dashed var(--bad);
  border-radius: var(--r-s);
  color: var(--bad);
  font-size: 14.5px;
  font-weight: 600;
}
.code {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- forms ---------- */

.form { display: grid; gap: 14px; max-width: 520px; margin-top: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.hint { color: var(--ink-2); font-weight: 500; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input:not([type]), textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--ink);
  font: 500 17px/1.4 var(--sans);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input:hover, textarea:hover, select:hover { border-color: var(--ink-2); }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
input[aria-invalid="true"] { border-color: var(--bad); }
textarea { resize: vertical; }
input::placeholder { color: var(--ink-2); opacity: 0.6; }
.field-error { color: var(--bad); font-size: 13px; font-weight: 600; line-height: 1.4; }
.form__status { min-height: 1.5em; margin: 0; font-size: 14px; font-weight: 600; }
.form__status.is-good { color: var(--good); }
.form__status.is-bad { color: var(--bad); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; font-weight: 500; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }

/* ---------- checkout dialog ---------- */

.till {
  width: min(540px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(11 12 16 / 0.28);
  overflow: auto;
}
.till::backdrop { background: rgb(9 10 13 / 0.55); backdrop-filter: blur(3px); }
.till__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px 12px 22px;
  background: var(--surface);
}
.till__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font: 500 22px/1 var(--sans);
  cursor: pointer;
}
.till__close:hover { background: var(--line); }
.till__body { display: grid; gap: 14px; padding: 4px 22px 24px; }
.till__body > * { margin: 0; }
.till__body--inner { padding: 0; }
.till details .form { margin-top: 10px; }
.till summary { cursor: pointer; }
.till h2 { font-size: 30px; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.till h2:focus { outline: none; }
.till p { font-size: 16px; }
.till .fine { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.till__sub { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }

.preview {
  padding: 16px 14px 18px;
  border-radius: 18px;
  background: var(--tint);
  text-align: center;
  overflow: hidden;
}
.preview small { display: block; margin-bottom: 6px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.preview strong { display: block; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; text-transform: uppercase; }

.fieldset { display: grid; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; }

.logopick { display: flex; gap: 14px; align-items: center; }
.logopick .sponsor__logo { width: 64px; height: 64px; }
.logopick__side { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.logopick__label { font-size: 14px; font-weight: 700; line-height: 1.4; }
.logopick__btn { position: relative; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.logopick__btn:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.logopick__file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.fieldset legend { padding: 0 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.pricebox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--surface-2);
}
.pricebox span { color: var(--ink-2); font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.pricebox b { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.notice { padding: 12px 14px; border-radius: var(--r-s); background: var(--surface-2); font-size: 14.5px; line-height: 1.45; }
.notice--bad { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); font-weight: 600; }
.notice--good { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); font-weight: 600; }

.clock { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clockrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.payinfo { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.payinfo > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); }
.payinfo > div:first-child { border-top: 0; }
.payinfo dt { color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.payinfo dd { margin: 0; font: 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.copy {
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font: 700 12.5px/1.4 var(--sans);
  cursor: pointer;
}
.copy:hover { background: var(--line); }

.wallets { display: grid; gap: 8px; }
.wallets button { justify-content: flex-start; }
.wallets img { width: 22px; height: 22px; border-radius: 6px; }

.rowbtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.done-word { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
.sharecard { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }

/* ---------- editor's desk ---------- */

.desk { display: grid; gap: 16px; padding: 20px 0 40px; }
.desk > section { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.desk h2 { margin: 0 0 10px; font-size: 19px; font-weight: 900; letter-spacing: -0.02em; }
.desk__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.desk__word { font-size: 26px; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.desk__meta { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.desk__logo { display: block; width: 40px; height: 40px; margin: 6px 0 2px; }
.desk__none { margin: 0; color: var(--ink-2); }
.desk__mail { padding: 12px 0; border-top: 1px solid var(--line); }
.desk__mail summary { cursor: pointer; font-weight: 700; }
.desk__mail .code { margin: 10px 0 0; }
.desk code { font: 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.desk select { width: auto; padding: 6px 10px; font: inherit; }

/* ---------- footer ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 22px;
  padding-bottom: 40px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}
.foot::before { content: ""; flex: 0 0 100%; border-top: 1px solid var(--line); margin-bottom: 6px; }
.foot p { margin: 0; }
.foot b { margin-right: 8px; color: var(--ink); font-weight: 900; letter-spacing: -0.02em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .columns { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .entry__by { grid-column: 2 / -1; grid-row: 2; }
  .entry__num { grid-column: 3; grid-row: 1; }
}

@media (max-width: 700px) {
  .top { flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; }
  .logo { margin-right: auto; }
  .nav { order: 3; flex: 0 0 100%; margin: 0 -10px; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div { padding: 14px 16px; }
  .strip > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .strip > div:nth-child(2) { border-left: 0; }
  .strip dd { font-size: 19px; }
  .front__meta .front__motto { flex: 0 0 100%; }
  .btn--big { width: 100%; padding-inline: 16px; }
  .columns > article, .rules li { padding: 20px; }
  .archive { padding: 0 16px; }
  .entry { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; }
  .entry__n { grid-column: 1 / -1; }
  .entry__by { grid-column: 1 / -1; grid-row: auto; }
  .entry__num { grid-column: 2; grid-row: 2; }
  .entry__num b { font-size: 22px; }
  .payinfo > div { grid-template-columns: minmax(0, 1fr) auto; }
  .payinfo dt { grid-column: 1 / -1; }
  .till h2 { font-size: 26px; }
  .till__body { padding-inline: 18px; }
  .desk > section { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, input, textarea, select { transition: none; }
}
