:root {
  --mud: #0e110b;
  --mud-2: #151a11;
  --mud-3: #1e2518;
  --line: #2d3624;
  --cream: #f3ead3;
  --cream-2: #e6dbbd;
  --ink: #12150e;
  --muted: #9aa58a;
  --money: #3ddc6b;
  --money-hi: #8cff9e;
  --yellow: #ffd84d;
  --pink: #ff9ec4;
  --blue: #8fd3ff;
  --red: #ff6a52;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--ink);
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  color: var(--cream);
  background-color: var(--mud);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(243, 234, 211, 0.06) 1px, transparent 0),
    radial-gradient(ellipse at 80% -10%, rgba(61, 220, 107, 0.16), transparent 55%),
    radial-gradient(ellipse at -10% 40%, rgba(255, 216, 77, 0.07), transparent 50%);
  background-size: 22px 22px, 100% 100%, 100% 100%;
  min-height: 100vh;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

a { color: var(--money-hi); }
b { font-weight: 700; }
.mono { font-family: var(--mono); }
.small { font-size: 0.85rem; }
[hidden] { display: none !important; }

/* speech bubbles */
.bubble {
  position: relative;
  display: inline-block;
  /* room for Fredoka descenders (p/q/g/y) and round sides */
  padding: 0.28em 0.72em 0.36em;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 0.7em;
  box-shadow: var(--shadow);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  overflow: visible;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 1.1em;
  bottom: -0.55em;
  width: 0.9em;
  height: 0.9em;
  background: var(--cream);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: skewX(-30deg) rotate(45deg);
}
.bubble.huge {
  font-size: clamp(4.5rem, 12vw, 8rem);
  letter-spacing: 0.04em;
  padding: 0.4em 0.95em 0.5em;
  line-height: 1.05;
  background: var(--money);
  transform: rotate(-4deg);
  border-width: 5px;
  border-radius: 0.55em;
  box-shadow: 9px 9px 0 var(--ink), 9px 9px 0 3px var(--cream);
  margin-bottom: 0.5em;
  z-index: 0;
  overflow: visible;
}
.bubble.huge::after {
  background: var(--money);
  border-width: 5px;
  bottom: -0.32em;
  left: 1.4em;
}
.bubble.big { font-size: 4rem; }

/* hero wordmark — SVG so Y/A/P never get clipped by radius/overflow */
.hero-mark {
  display: block;
  width: min(100%, 420px);
  margin: 0 0 0.2rem;
  line-height: 0;
  overflow: visible;
}
.hero-mark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.7em 1.3em;
  font: 700 1.05rem var(--display);
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-go { background: var(--money); color: var(--ink); }
.btn-ghost { background: var(--cream); color: var(--ink); }
.btn-sm { padding: 0.45em 0.95em; font-size: 0.92rem; }
.btn-wide { width: 100%; font-size: 1.25rem; }
.btn.soon { background: var(--mud-3); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; }

.pill, .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35em 0.85em;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--mud-2);
  color: var(--cream);
  font-size: 0.85rem;
  text-decoration: none;
}
.pill b, .chip b { color: var(--money-hi); }
.chip { cursor: default; }
button.chip { cursor: pointer; font-family: var(--mono); }
button.chip:hover { border-color: var(--money); }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(14, 17, 11, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.logo { text-decoration: none; }
.logo-bubble {
  display: inline-block;
  padding: 0.18em 0.55em 0.22em;
  background: var(--money);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.04em;
  border: 3px solid var(--ink);
  border-radius: 0.55em 0.55em 0.55em 0.15em;
  box-shadow: 3px 3px 0 var(--cream);
  transform: rotate(-3deg);
}
.logo-bubble.small { font-size: 1.1rem; }
.nav-links { display: flex; gap: 1.3rem; align-items: center; }
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.15em 0.1em 0.25em;
  display: inline-block;
}
.nav-links a:hover { color: var(--money-hi); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem) 3rem;
  overflow: visible;
}
.hero-copy { overflow: visible; min-width: 0; }
.kicker { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.2rem; }
.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55em;
  overflow: visible;
}
.hero-line {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 0.08em;
  position: relative;
  z-index: 1;
}
.hero-line em { font-style: normal; color: var(--money); text-shadow: 3px 3px 0 var(--ink); }
.hero-sub { max-width: 36em; font-size: 1.15rem; color: var(--cream-2); margin: 1.6rem 0 1.6rem; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1.6rem 0 0;
  max-width: 40rem;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--mud-2);
  overflow: hidden;
}
.hero-stats div { padding: 0.75rem 0.9rem; border-left: 2px solid var(--line); min-width: 0; }
.hero-stats div:first-child { border-left: 0; }
.hero-stats dt { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.hero-stats dd { margin: 0.1rem 0 0; font: 700 1.25rem var(--mono); color: var(--money-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats div:first-child dd { color: var(--yellow); }

.hero-notes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 1rem;
}

/* sticky notes */
.sticky {
  position: relative;
  padding: 1.3rem 1.2rem 1.1rem;
  color: var(--ink);
  border-radius: 4px 4px 14px 4px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4), inset 0 -10px 18px rgba(0, 0, 0, 0.06);
}
.sticky::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 76px;
  height: 22px;
  margin-left: -38px;
  background: rgba(243, 234, 211, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: rotate(-3deg);
}
.s-yellow { background: var(--yellow); }
.s-pink { background: var(--pink); }
.s-blue { background: var(--blue); }
.s-green { background: var(--money); }
.r-l { transform: rotate(-5deg); }
.r-r { transform: rotate(4deg); }
.r-l2 { transform: rotate(-2deg) translateY(10px); }
.r-r2 { transform: rotate(6deg) translateY(6px); }
.hero-notes .sticky {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 140px;
  justify-content: center;
  transition: transform 0.15s ease;
}
.hero-notes .sticky b { font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; }
.hero-notes .sticky span { font-size: 1.15rem; font-weight: 600; opacity: 0.9; }
.hero-notes .sticky:nth-child(odd) { animation: bob 5s ease-in-out infinite; }
.hero-notes .sticky:nth-child(even) { animation: bob 6s ease-in-out -2s infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-notes .sticky { animation: none; }
  .tape-track { animation: none; }
}

/* tape strip */
.tape-strip {
  overflow: hidden;
  background: var(--yellow);
  color: var(--ink);
  border-block: 3px solid var(--ink);
  transform: rotate(-1.2deg);
  margin: 1rem -1rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.tape-track { display: flex; width: max-content; animation: tape 28s linear infinite; }
.tape-track span { padding: 0.55rem 1.4rem; white-space: nowrap; }
.tape-track span::after { content: "\2726"; margin-left: 2.8rem; }
@keyframes tape { to { transform: translateX(-50%); } }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 3.5rem clamp(1rem, 4vw, 3rem); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 2.2rem; overflow: visible; }
.section-title .bubble {
  transform: rotate(-2deg);
  padding: 0.3em 0.78em 0.4em;
  line-height: 1.1;
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.step:nth-child(1) { transform: rotate(-2deg); }
.step:nth-child(2) { transform: rotate(1.5deg) translateY(12px); }
.step:nth-child(3) { transform: rotate(-1deg); }
.step h3 { margin: 0.2rem 0 0.4rem; font-size: 1.5rem; }
.step p { margin: 0; font-weight: 500; }
.step-n {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  font-weight: 700;
}

/* composer */
.yap-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.composer {
  background: var(--mud-2);
  border: 3px solid var(--cream);
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  box-shadow: 8px 8px 0 var(--money);
}
.field { display: block; margin-bottom: 1.2rem; }
.label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.label small { color: var(--muted); font-weight: 500; }
.row { display: flex; gap: 0.6rem; align-items: center; }
.row input { flex: 1; min-width: 0; }
input[type="text"], input[type="number"], textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--mud);
  color: var(--cream);
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
}
textarea { font-family: var(--display); resize: vertical; }
input:focus, textarea:focus { border-color: var(--money); box-shadow: 0 0 0 3px rgba(61, 220, 107, 0.2); }
.hint { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.peek.ok { color: var(--money-hi); }
.peek.bad { color: var(--red); }
.result { min-height: 1.5em; margin: 0.9rem 0 0; font-weight: 600; }
.result.ok { color: var(--money-hi); }
.result.bad { color: var(--red); }
#wallet-hint.signed { color: var(--money-hi); }
#bag-status { display: block; margin-top: 0.35rem; font-weight: 600; }
#bag-status.ok { color: var(--money-hi); }
#bag-status.bad { color: #ff8a8a; }

/* bag ladder */
.ladder-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  background: var(--mud-2);
  border: 3px solid var(--line);
  border-radius: var(--radius);
}
.ladder-copy h3 { margin: 0 0 0.5rem; font-size: 1.6rem; }
.ladder-copy p { margin: 0 0 0.8rem; color: var(--cream-2); }
.ladder-you { color: var(--muted); font-size: 0.85rem; }
.ladder-you.on { color: var(--money-hi); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ladder li {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--mud);
  transition: transform 0.15s ease, background 0.15s ease;
}
.ladder li:nth-child(1) { margin-right: 0; }
.ladder li:nth-child(2) { margin-right: 6%; }
.ladder li:nth-child(3) { margin-right: 12%; }
.ladder li:nth-child(4) { margin-right: 18%; }
.ladder li:nth-child(5) { margin-right: 24%; }
.ladder b { font-family: var(--mono); color: var(--yellow); }
.ladder span { font-weight: 700; }
.ladder em { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.ladder li.reached { border-color: var(--money); }
.ladder li.reached b { color: var(--money-hi); }
.ladder li.you { background: var(--money); border-color: var(--ink); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1deg); }
.ladder li.you b, .ladder li.you em { color: var(--ink); }

.rules h3 { margin: 0 0 0.6rem; font-size: 1.5rem; }
.rules ul { margin: 0; padding-left: 1.1rem; font-weight: 500; }
.rules li { margin-bottom: 0.35rem; }

/* board */
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tab {
  padding: 0.45rem 0.9rem;
  font: 600 0.9rem var(--display);
  color: var(--cream);
  background: var(--mud-2);
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.tab small { color: var(--muted); font-family: var(--mono); margin-left: 0.3em; }
.tab[aria-selected="true"] { background: var(--cream); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--money); }
.tab[aria-selected="true"] small { color: #5b6150; }

.board-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: start; }
.paper {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 8px 8px 0 var(--ink), 8px 8px 0 3px var(--money);
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(18, 21, 14, 0.07) 33px 34px);
}
.paper a { color: #1c7a3a; }
.paper-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.8rem; }
.paper-head p { margin: 0; }
.paper-stats { display: flex; gap: 1rem; align-items: center; }
.round-status { font-size: 1.1rem; font-weight: 700; }
.status {
  display: inline-block;
  padding: 0.1em 0.65em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status.live { background: var(--money); }
.status.live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ink); animation: blink 1s steps(2) infinite; }
.status.scoring { background: var(--yellow); }
.status.final { background: var(--ink); color: var(--cream); }
@keyframes blink { 50% { opacity: 0; } }

table.board { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.board th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.4rem 0.4rem; border-bottom: 3px solid var(--ink); }
.board td { padding: 0.55rem 0.4rem; border-bottom: 2px dashed rgba(18, 21, 14, 0.2); vertical-align: middle; }
.board td.empty { text-align: center; padding: 2rem 0.5rem; font-weight: 600; color: #5b6150; }
.board tr.me td { background: rgba(61, 220, 107, 0.25); }
.rank {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
  background: #fff;
}
.rank.r1 { background: var(--yellow); transform: rotate(-8deg); }
.rank.r2 { background: var(--pink); }
.rank.r3 { background: var(--blue); }
.wallet { font-family: var(--mono); font-size: 0.85rem; }
.check { color: #1c7a3a; font-weight: 700; margin-left: 0.25em; }
.pts { font-weight: 700; font-size: 1.15rem; }
.mult-up { color: #1c7a3a; font-weight: 700; }

.payout { margin-top: 1rem; border-top: 3px solid var(--ink); padding-top: 0.8rem; }
.payout summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.payout input { background: #fff; color: var(--ink); border-color: var(--ink); }
.payout-list { padding-left: 1.4rem; }
.payout-list li { margin: 0.2rem 0; word-break: break-all; }
.payout-list li.forfeit { opacity: 0.55; }
a.wallet { color: inherit; text-decoration: none; }
a.wallet:hover { text-decoration: underline; }

/* feed */
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.feed-head h3 { margin: 0; font-size: 1.4rem; }
.toggle { display: inline-flex; gap: 0.4rem; align-items: center; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--money); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; max-height: 720px; overflow-y: auto; padding-right: 0.4rem; padding-bottom: 0.8rem; }
.feed .empty { color: var(--muted); padding: 1rem 0; }
.yapc {
  position: relative;
  background: var(--mud-2);
  border: 2px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 0.85rem 1rem;
}
.yapc::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: var(--mud-2);
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  transform: skewX(-25deg) rotate(45deg);
}
.yapc.hit { border-color: var(--money); }
.yapc.hit::after { border-color: var(--money); }
.yapc.big { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255, 216, 77, 0.25); }
.yapc.big::after { border-color: var(--yellow); }
.yapc.me { background: #1a2615; }
.yapc.me::after { background: #1a2615; }
.yapc-top { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.sym { font-weight: 700; font-size: 1.15rem; color: var(--cream); text-decoration: none; }
.sym:hover { color: var(--money-hi); }
.who { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.yapc-note { margin: 0.35rem 0 0.5rem; color: var(--cream-2); word-break: break-word; }
.yapc-stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.yapc-stats b { color: var(--cream); }
.mult-badge {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.05em 0.55em;
  border-radius: 999px;
  background: var(--mud-3);
  color: var(--cream);
}
.yapc.hit .mult-badge { background: var(--money); color: var(--ink); }
.yapc.big .mult-badge { background: var(--yellow); color: var(--ink); }
.bar { height: 6px; margin-top: 0.55rem; border-radius: 99px; background: var(--mud-3); overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--money), var(--yellow)); border-radius: 99px; }
.bar::before, .bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(243, 234, 211, 0.5); z-index: 1; }
.bar::before { left: 20%; }
.bar::after { left: 60%; }

/* treasury */
.treasury {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--mud-2);
  border: 3px dashed var(--money);
  border-radius: var(--radius);
}
.treasury-addr {
  display: block;
  width: 100%;
  margin: 0.3rem 0 0.4rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  text-align: left;
  word-break: break-all;
  color: var(--ink);
  background: var(--money);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--cream);
  cursor: pointer;
}
.treasury-addr.soon { background: var(--mud-3); color: var(--muted); box-shadow: none; cursor: default; border-color: var(--line); }
.treasury-copy p { margin: 0 0 0.8rem; color: var(--cream-2); }
.treasury-copy b { color: var(--yellow); }
.pot-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem; }
.pot-nums div { padding: 0.8rem 1rem; background: var(--mud); border: 2px solid var(--line); border-radius: 14px; }
.pot-nums b { display: block; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--yellow); line-height: 1.2; }
.pot-nums div + div b { color: var(--money-hi); }
.recent-title { margin: 1.2rem 0 0.5rem; font-size: 1.1rem; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.recent li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.45rem 0.7rem; background: var(--mud); border: 1px solid var(--line); border-radius: 10px; }
.recent li.empty { color: var(--muted); justify-content: flex-start; }
.recent a { color: var(--money-hi); text-decoration: none; }
.recent a:hover { text-decoration: underline; }

/* faq */
.faq { display: grid; gap: 0.8rem; max-width: 820px; }
.faq details { background: var(--mud-2); border: 2px solid var(--line); border-radius: 14px; padding: 0.9rem 1.1rem; }
.faq details[open] { border-color: var(--money); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--money); font-weight: 700; }
.faq details[open] summary::before { content: "-"; }
.faq p { margin: 0.6rem 0 0; color: var(--cream-2); }

/* footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
  border-top: 2px solid var(--line);
  color: var(--muted);
}
.footer p { margin: 0; flex: 1; min-width: 240px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 50;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 200%);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

/* 404 */
body.lost { display: grid; place-items: center; text-align: center; }
.lost-box h1 { font-size: 2rem; margin: 2.5rem 0 1.5rem; }

@media (max-width: 960px) {
  .hero, .yap-grid, .board-grid, .treasury, .ladder-wrap { grid-template-columns: 1fr; }
  .hero-notes { max-width: 460px; }
  .nav-links { display: none; }
}
@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(n) { transform: rotate(-1deg); }
  .hide-sm { display: none; }
  .nav-right .pill { display: none; }
  .row { flex-wrap: wrap; }
  .row .btn { width: 100%; }
  .paper { padding: 0.8rem; }
  .board td, .board th { padding: 0.45rem 0.25rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(3) { border-left: 0; }
  .hero-stats div:nth-child(n + 3) { border-top: 2px solid var(--line); }
  .ladder li { grid-template-columns: 4.5rem 1fr; }
  .ladder em { display: none; }
  .ladder li:nth-child(n) { margin-right: 0; }
  .hero-notes { grid-template-columns: 1fr 1fr; gap: 0.9rem; padding: 0.5rem; }
  .hero-notes .sticky { min-height: 110px; }
  .hero-notes .sticky b { font-size: 2rem; }
  .pot-nums { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
