/* ============================================================================
   HOOKR
   One font, one accent, a lot of white. Glass panels over a soft field.
   No display serif, no scroll animations, nothing that moves on its own.
   ============================================================================ */

:root {
  --bg:        #f6f7f5;
  --paper:     #ffffff;
  --ink:       #0e1210;
  --ink-2:     #4b5350;
  --ink-3:     #6c7471;
  --line:      #e3e6e1;
  --line-2:    #eef0ec;
  --field:     #c9ccc4;

  --accent:      #6b6237;
  --accent-2:    #857b45;
  --accent-soft: #f1eee1;
  --warn:        #9a4f22;
  --good:        #3d7a53;

  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1080px;
  --gut: 24px;
  --r: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the soft field everything floats on */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 12% 0%, rgba(138,127,71,.14), transparent 60%),
    radial-gradient(50vw 45vh at 92% 14%, rgba(110,132,124,.13), transparent 62%),
    radial-gradient(70vw 55vh at 50% 100%, rgba(107,98,55,.10), transparent 60%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(34px, 5.2vw, 54px); }
h2 { font-size: clamp(23px, 2.8vw, 32px); }
h3 { font-size: 17px; letter-spacing: -0.015em; }
p  { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 720px; margin: 0 auto; }
.center { text-align: center; }

::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }

/* --------------------------------------------------------------- glass --- */

.glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 1px 2px rgba(14,18,16,.04), 0 16px 40px rgba(14,18,16,.06);
  border-radius: var(--r);
}

/* ----------------------------------------------------------------- nav --- */

.nav { position: sticky; top: 0; z-index: 60; padding: 12px 0; }
.nav-in { display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 14px; }
.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  transition: color .2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
/* the button in the nav is a link, so it needs its colour back */
.nav-links a.btn { color: #fff; }

/* -------------------------------------------------------------- button --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  background: var(--ink); color: #fff;
  font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.btn:hover { background: #232a26; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-2); }
.btn.ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #fff; border-color: var(--field); }
.btn.sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn.wide { width: 100%; padding: 14px; font-size: 15px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }


/* ==========================================================================
   THE HERO CARD
   One rounded plate holding the whole first screen: the painting behind it,
   the nav floating on top, the headline bottom left and a short form bottom
   right. It locks to the viewport on wide screens and grows below that.
   ========================================================================== */

.shell { padding: 12px; }

.card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  min-height: calc(100vh - 24px);
  background: var(--bg);
  isolation: isolate;
}
.card-bg {
  position: absolute; left: 0; right: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
  z-index: -2;
}
.card-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(12,14,10,.60) 0%, rgba(12,14,10,.16) 44%, rgba(12,14,10,.02) 72%, rgba(12,14,10,.14) 100%);
}
.card-inner {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  min-height: calc(100vh - 24px);
  padding: 16px;
}
.card-spacer { flex: 1 1 auto; min-height: 2rem; }

/* the nav lives inside the card on this page */
.pill { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 14px; }
.pill .brand { color: var(--ink); }
.pill-links { display: none; gap: 22px; margin-left: 10px; }
.pill-links a {
  color: #2c332e; font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: opacity .2s var(--ease);
}
.pill-links a:hover { opacity: .6; }
.pill .right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.card-bottom { display: flex; flex-direction: column; gap: 20px; }

.card-head {
  margin: 0; color: #fff;
  font-size: clamp(30px, 5.6vw, 50px);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.03em;
  text-shadow: 0 2px 26px rgba(12,14,10,.45);
}
.card-head em { font-style: italic; font-weight: 500; }

.quick { width: 100%; flex-shrink: 0; }
.quick-in {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(12,14,10,.3);
  padding: 18px;
  display: flex; flex-direction: column; gap: 13px;
}
.quick-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.quick-facts {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 12px; padding: 10px 13px; border-radius: 12px; background: var(--bg);
}
.quick-facts .l span { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.quick-facts .l b { font-size: 14.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.quick-facts .r { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-facts .r span {
  font-size: 11px; font-weight: 500; padding: 5px 9px; border-radius: 8px;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap;
}

.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.or i { flex: 1; height: 1px; background: var(--line); }

.quick-form { display: flex; flex-direction: column; gap: 10px; }
.quick-form label { margin-bottom: 0; }
.quick-row { display: flex; flex-direction: column; gap: 8px; }
.quick-preview { display: flex; flex-direction: column; gap: 8px; }
.quick-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; margin: 0; }
.more-hooks { font-size: 12.5px; color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line); align-self: center; }
.more-hooks:hover { color: var(--accent); border-color: var(--accent); }

@media (min-width: 640px) {
  .shell { padding: 16px; }
  .card, .card-inner { min-height: calc(100vh - 32px); }
  .card { border-radius: 24px; }
  .card-inner { padding: 22px; }
  .quick-in { border-radius: 20px; padding: 22px; }
  .quick-row { flex-direction: row; }
  .quick-row input { flex: 1; min-width: 0; }
}
@media (min-width: 768px) {
  .shell { padding: 24px; }
  .card, .card-inner { min-height: calc(100vh - 48px); }
  .card-inner { padding: 28px; }
  .pill-links { display: flex; }
}
@media (min-width: 1024px) {
  .card-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 28px; }
  .card-head { max-width: 18ch; flex-shrink: 0; }
  .quick { width: min(430px, 42%); }
}

/* ---------------------------------------------------------------- hero --- */

.hero { padding: clamp(48px, 9vh, 96px) 0 clamp(30px, 5vh, 56px); text-align: center; }
.hero h1 { max-width: 17ch; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin: 20px auto 0; max-width: 52ch; font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--ink-2); }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.facts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.fact { padding: 13px 20px; text-align: center; }
.fact b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.fact span { font-size: 13px; color: var(--ink-3); }

/* --------------------------------------------------------------- plate --- */
/* The paintings are shown whole. Their own ratio sets the height. */

.plate { margin: clamp(36px, 5vw, 64px) 0 0; }
.plate img { width: 100%; height: auto; border-radius: var(--r); }
.plate figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

/* ------------------------------------------------------------ sections --- */

section { padding: clamp(44px, 6vw, 76px) 0; }
.sec-head { text-align: center; margin-bottom: 32px; }
.sec-head p { margin: 14px auto 0; max-width: 52ch; color: var(--ink-2); }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cols3 > div { padding: 22px; }
.cols3 .n {
  width: 26px; height: 26px; border-radius: 8px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.cols3 h3 { margin-bottom: 7px; }
.cols3 p { color: var(--ink-2); font-size: 15px; }

/* ----------------------------------------------------------- hook list --- */

.hooks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hook { display: block; padding: 18px 20px; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.hook:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(14,18,16,.05), 0 20px 44px rgba(14,18,16,.09); }
.hook .top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hook h3 { font-size: 17px; }
.hook p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; }
.hook .split { margin-top: 2px; }

.tag {
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-3); white-space: nowrap;
}
.tag.on { border-color: transparent; background: var(--accent-soft); color: var(--accent); }

.split { display: flex; align-items: center; gap: 14px; }
.ring { flex-shrink: 0; display: block; }
.legend { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.bands { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bands th {
  text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); padding: 0 14px 10px 0;
}
.bands td { padding: 13px 14px 13px 0; border-top: 1px solid var(--line-2); vertical-align: middle; }
.bands td:first-child { white-space: nowrap; }

/* --------------------------------------------------------------- forms --- */

label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
label .opt { color: var(--ink-3); font-weight: 400; }

input[type=text], input[type=number], select, textarea {
  width: 100%; padding: 12px 13px; font: inherit; font-size: 15px;
  color: var(--ink); background: rgba(255,255,255,.85);
  border: 1px solid var(--line); border-radius: 11px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input::placeholder, textarea::placeholder { color: #9aa19d; }
input:hover, select:hover, textarea:hover { border-color: var(--field); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 92px; resize: vertical; }
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 7px; }
.note { font-size: 13.5px; color: var(--warn); }
.ok { font-size: 13.5px; color: var(--good); }
.muted { color: var(--ink-3); }

/* --------------------------------------------------------------- panel --- */

.panel { padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 19px; margin-bottom: 4px; }
.panel .sub { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; word-break: break-word; }

.code {
  font-family: var(--mono);
  font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  color: var(--ink-2); background: rgba(255,255,255,.6);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; margin: 0;
  max-height: 260px; overflow: auto;
}

/* --------------------------------------------------------------- chips --- */

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 8px 13px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.7); color: var(--ink-2); border: 1px solid var(--line);
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.chip:hover { border-color: var(--field); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* -------------------------------------------------------------- wallet --- */

/* A square icon link, sized to sit beside the wallet button. */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8); color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn svg { width: 15px; height: 15px; display: block; fill: currentColor; }
/* .nav-links paints its links, and .btn takes its colour back, so this needs
   to say its own colour too. */
.nav-links a.icon-btn { color: var(--ink); }
.nav-links a.icon-btn:hover { color: #fff; }

.wallet {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 11px; cursor: pointer;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font: inherit; font-size: 14px; font-weight: 600;
  transition: background .2s var(--ease);
}
.wallet:hover { background: #232a26; }
.wallet.on { background: rgba(255,255,255,.8); color: var(--ink); border-color: var(--line); }
/* signed in, but the wallet has not attached to this tab */
.wallet.warm { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.wallet .led { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.wallet.on .led { background: var(--good); }
.wallet.warm .led { background: var(--accent); }

/* --------------------------------------------------------------- toast --- */

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 300; max-width: min(560px, 92vw);
}
#toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#toast a { color: #d9d2b4; }

/* Rings stack down the summary panel, one per band. */
#preview .split + .hint { margin-top: 14px; }

/* -------------------------------------------------------------- footer --- */

footer { padding: 30px 0 44px; color: var(--ink-3); font-size: 13.5px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: center; }
footer a { color: var(--ink-3); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ================================================================ create == */

.create { padding: 24px 0 70px; }
.create-head { text-align: center; margin-bottom: 28px; }
.create-head p { margin: 14px auto 0; max-width: 56ch; color: var(--ink-2); }

.create-grid { display: grid; grid-template-columns: 1fr 370px; gap: 18px; align-items: start; }
.create-side { position: sticky; top: 84px; }

.img-row { display: flex; gap: 16px; align-items: flex-start; }
.img-drop {
  width: 112px; height: 112px; flex-shrink: 0; border-radius: 14px;
  border: 1.5px dashed var(--field); background: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; color: var(--ink-3); cursor: pointer; overflow: hidden; padding: 8px;
  position: relative;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.img-drop:hover { border-color: var(--accent); color: var(--accent); }
.img-drop img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* while a file is being dragged over the panel */
.img-drop.over {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
  color: var(--accent);
}
.img-drop.over img { opacity: .35; }
.img-row .fields { flex: 1; min-width: 0; }

.count { float: right; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }

.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pick-head a { font-size: 13.5px; color: var(--accent); text-decoration: none; }

.limit {
  margin-top: 14px; padding: 13px 15px; border-radius: 12px;
  background: var(--accent-soft); font-size: 13.5px; color: #5d5533;
}
.limit b { display: block; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }

.rows { margin-top: 4px; }
.rows .r {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.rows .r:last-child { border-bottom: 0; }
.rows .r span { color: var(--ink-3); }
.rows .r b { font-weight: 600; text-align: right; }

.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.switch-row:first-of-type { border-top: 0; }
.switch-row .t { flex: 1; }
.switch-row .t b { display: block; font-size: 14.5px; font-weight: 600; }
.switch-row .t span { font-size: 13px; color: var(--ink-3); }
.switch {
  width: 42px; height: 24px; border-radius: 20px; border: 0; padding: 0; flex-shrink: 0;
  background: #d3d6d0; position: relative; cursor: pointer; transition: background .2s var(--ease);
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(14,18,16,.28);
  transition: transform .2s var(--ease);
}
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }

.band { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.6); margin-bottom: 10px; }
.band-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.band-hd b { font-size: 13.5px; font-weight: 600; }
.band-hd input { width: 120px; }
.leg { display: grid; grid-template-columns: 1fr 84px 32px; gap: 10px; align-items: center; padding: 7px 0; }
.leg .x { border: 0; background: none; color: var(--ink-3); font-size: 17px; cursor: pointer; padding: 4px; border-radius: 6px; }
.leg .x:hover { color: var(--warn); }
.band-foot { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.band-foot .sum { margin-left: auto; font-size: 13px; font-weight: 600; }

.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); font-size: 15px; }

/* ================================================================= crank == */

.crank-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }


/* ============================================================= leaderboard = */

.board-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }

.coin {
  display: grid; grid-template-columns: 34px 44px 1fr 260px; gap: 16px; align-items: center;
  padding: 16px 18px; margin-bottom: 10px; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.coin:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(14,18,16,.05), 0 20px 44px rgba(14,18,16,.09); }
.coin-rank { font-size: 15px; font-weight: 600; color: var(--ink-3); text-align: center; }
.coin-pic {
  width: 44px; height: 44px; border-radius: 11px; overflow: hidden; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.coin-pic img { width: 100%; height: 100%; object-fit: cover; }
.coin-main { min-width: 0; }
.coin-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.coin-top b { font-size: 16px; font-weight: 600; }
.coin-ticker { font-size: 13.5px; color: var(--ink-3); }
.coin-main .legend { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
.coin-nums { display: flex; gap: 18px; justify-content: flex-end; text-align: right; }
.coin-nums b { display: block; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.coin-nums span { font-size: 12px; color: var(--ink-3); }

@media (max-width: 820px) {
  .coin { grid-template-columns: 24px 40px 1fr; }
  .coin-nums { grid-column: 3; justify-content: flex-start; text-align: left; flex-wrap: wrap; gap: 14px; }
}

/* ================================================================ success == */

.done { text-align: center; padding: 8px 0 4px; }
.done .tick {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
  background: #e8f2ea; color: var(--good);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.done h2 { font-size: 22px; margin-bottom: 6px; }
.done p { color: var(--ink-2); font-size: 14.5px; }

.ca {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 14px;
  padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
}
.ca code {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px;
  color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
}
.ca button {
  flex-shrink: 0; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.ca button:hover { border-color: var(--field); color: var(--ink); }

/* ============================================================ responsive == */

@media (max-width: 940px) {
  .create-grid, .crank-grid { grid-template-columns: 1fr; }
  .create-side { position: static; }
  .cols3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --gut: 18px; }
  .hooks { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn):not(.wallet):not(.icon-btn) { display: none; }
  .img-row { flex-direction: column; }
  .img-drop { width: 100%; height: 140px; }
  .fact { flex: 1 1 42%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* The wallet menu. Two wallets can be attached at once, so which one is
   current has to be visible and changeable. */
.wallet-menu {
  /* Lives in the body, placed against the button, so nothing can paint over it. */
  position: fixed; z-index: 400;
  min-width: 214px; padding: 7px; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(30, 28, 20, .16);
  display: flex; flex-direction: column; gap: 2px;
}
.wallet-menu-head {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); padding: 7px 10px 5px;
}
.wallet-item, .wallet-act {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer;
}
.wallet-item:hover, .wallet-act:hover { background: rgba(107, 98, 55, .09); }
.wallet-item i {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--line); border: 1px solid rgba(30, 28, 20, .12);
}
.wallet-item.on i { background: var(--good); border-color: transparent; }
.wallet-item.on span { font-weight: 600; }
.wallet-act { color: var(--muted); }
.wallet-act:first-of-type { margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
