/* Tombola: the fairground look. Source of truth: design/Main.dc.html (desktop) and design/Phone.dc.html (under 700px). */
@font-face { font-family: "Rye"; font-weight: 400; src: url(fonts/rye-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Lora"; font-weight: 400; src: url(fonts/lora-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Lora"; font-weight: 600; src: url(fonts/lora-latin-600-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; src: url(fonts/lora-latin-400-italic.woff2) format("woff2"); font-display: swap; }

:root {
  --paper: #fff7e6;
  --paper-deep: #fbefd5;
  --red: #c8271c;
  --red-deep: #8f1a14;
  --gold: #e5a92b;
  --gold-pale: #f6d79a;
  --ink: #2c140d;
  --ink-soft: #4a2a1f;
  --ink-mute: #6b4a3c;
  --green: #1f7a3c;
  --teal: #1f7a74;
  --fail: #b3261e;
  --link: #b8231b;
  --display: "Rye", "Georgia", serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --stripe: 48px;
  --scallop: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--link); }
a:hover { color: var(--red-deep); }
p { margin: 0; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
code { font: 14px/1.4 var(--mono); }

/* page column. keeps content clear of the iPhone notch and home bar (viewport-fit=cover) */
.wrap {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* ---------- awning and scallops ---------- */
.awning {
  height: 44px;
  background: repeating-linear-gradient(90deg, var(--red) 0 var(--stripe), var(--paper) var(--stripe) calc(var(--stripe) * 2));
  border-bottom: 3px solid var(--ink);
}
.scallop { height: var(--scallop); }
.scallop-top {
  margin-top: -1px;
  background:
    radial-gradient(circle at calc(var(--stripe) / 2) 0, var(--red) calc(var(--scallop) - 1px), transparent var(--scallop)) 0 0 / calc(var(--stripe) * 2) var(--scallop) repeat-x,
    radial-gradient(circle at calc(var(--stripe) * 1.5) 0, var(--paper) calc(var(--scallop) - 1px), transparent var(--scallop)) 0 0 / calc(var(--stripe) * 2) var(--scallop) repeat-x;
}
.scallop-foot {
  background:
    radial-gradient(circle at calc(var(--stripe) / 2) var(--scallop), var(--red) calc(var(--scallop) - 1px), transparent var(--scallop)) 0 0 / calc(var(--stripe) * 2) var(--scallop) repeat-x,
    radial-gradient(circle at calc(var(--stripe) * 1.5) var(--scallop), var(--paper-deep) calc(var(--scallop) - 1px), transparent var(--scallop)) 0 0 / calc(var(--stripe) * 2) var(--scallop) repeat-x;
}

/* ---------- sign ---------- */
.top { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 16px 8px; text-align: center; }
.sign {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 20px 44px 18px;
  background: var(--red-deep);
  border: 4px solid var(--gold);
  border-radius: 26px;
  box-shadow: 0 0 0 4px var(--ink), 8px 10px 0 var(--ink);
  color: var(--paper);
}
.sign-lights {
  position: absolute; inset: 6px;
  border-radius: 16px;
  pointer-events: none;
  background:
    radial-gradient(circle, #fff3c4 0 2.5px, rgba(255, 220, 120, .5) 3.5px, transparent 5px) 0 0 / 20px 20px repeat-x,
    radial-gradient(circle, #fff3c4 0 2.5px, rgba(255, 220, 120, .5) 3.5px, transparent 5px) 0 100% / 20px 20px repeat-x;
}
.hat { margin-top: -34px; filter: drop-shadow(3px 3px 0 var(--ink)); }
.wordmark {
  margin-top: 6px;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--paper);
  text-shadow: 3px 3px 0 var(--ink);
}
.sign-sub { font-size: 17px; font-style: italic; color: var(--gold-pale); }
/* music switch: a badge on the sign's corner, 44px tap target, off by default */
.music {
  position: absolute; top: -16px; right: -16px;
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: 3px 4px 0 var(--ink);
  cursor: pointer;
}
.music:hover { background: #fff; }
.music:active { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--ink); }
.music .m-wave { display: none; }
.music.is-on { background: var(--gold); }
.music.is-on .m-wave { display: block; }
.music.is-on .m-off { display: none; }
.music.is-on .m-wave { animation: m-pulse 1.1s ease-in-out infinite alternate; transform-origin: 16px 12px; }
@keyframes m-pulse { from { opacity: .45; } to { opacity: 1; } }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; font-size: 16px; font-weight: 600; }
/* each link is a 44px-tall tap target; the dotted underline stays on the text, not the padded box */
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  color: var(--ink); text-decoration: underline dotted var(--link) 2px; text-underline-offset: 5px;
}
.nav a:hover, .nav a:focus-visible { color: var(--red-deep); text-decoration-style: solid; }

/* ---------- shared pieces ---------- */
.h-red { font-size: 36px; line-height: 1.1; color: var(--red-deep); }
.lead { font-size: 16px; color: var(--ink-soft); max-width: 760px; }
.fine { font-size: 15px; color: var(--ink-mute); }
.kicker { font-family: var(--display); font-size: 20px; letter-spacing: 3px; text-transform: uppercase; color: var(--red-deep); }
.rule-flank { display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
.rule-flank .rule { width: 48px; height: 2px; background: var(--red-deep); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px;
  padding: 0 32px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { color: var(--ink); filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover:not(:disabled) { color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 5px 0 var(--red-deep); }
.btn-ink:hover:not(:disabled) { color: var(--paper); }
.btn-gold { height: 50px; padding: 0 20px; font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: 0; background: var(--gold); box-shadow: 3px 4px 0 var(--ink); }
.btn-paper { font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.btn-small { height: 40px; padding: 0 18px; border-width: 2px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.btn-big { height: 74px; padding: 0 40px; font-size: 22px; border-radius: 16px; box-shadow: 6px 7px 0 var(--ink); }
.btn:focus-visible, input:focus-visible, .nav a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

input[type="text"], input:not([type]), input[type="url"] {
  font: 18px/1.2 var(--body);
  height: 56px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  min-width: 0;
}

/* rosettes: white circle, ink border, inner dashed ring */
.rosette {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
  outline: 3px dashed var(--red);
  outline-offset: -9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  color: var(--red);
}
.rosette-red { background: var(--red); color: var(--paper); outline-color: var(--paper); }
.rosette-lg { width: 90px; height: 90px; outline-offset: -10px; }
.rosette-lg .rs-num { font-size: 22px; }
.rosette-lg.rosette-red .rs-num { font-size: 26px; }
.rs-lbl { margin-top: 4px; font: 600 10px/1 var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.rosette-red .rs-lbl { color: var(--paper); }

/* ---------- 1. next drop ---------- */
.hero {
  max-width: 1100px; width: 100%; margin: 0 auto;
  padding: 40px max(24px, env(safe-area-inset-right)) 48px max(24px, env(safe-area-inset-left));
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
/* the drum */
.drum { position: relative; width: 100%; max-width: 1100px; }
.drum-canvas { display: block; width: 100%; }
.plate {
  position: absolute;
  left: calc(var(--cx, 50%) - var(--plate, 240px) / 2);
  top: calc(var(--cy, 50%) - var(--plate, 240px) / 2);
  width: var(--plate, 240px); height: var(--plate, 240px);
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--red), 4px 5px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 8% 7%;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
.plate .kicker { font-size: clamp(9px, calc(var(--plate, 240px) * .05), 12px); letter-spacing: 2px; }
.plate .countdown { display: flex; align-items: baseline; gap: 1px; margin: 2px 0 0; font-family: var(--display); font-size: clamp(18px, calc(var(--plate, 240px) * .115), 30px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plate .cd-sep { font-size: .8em; color: var(--red); padding: 0 1px; }
.plate .pot { font-size: clamp(16px, calc(var(--plate, 240px) * .1), 26px); text-shadow: none; color: var(--red-deep); margin-top: 4px; overflow-wrap: normal; white-space: nowrap; }
.plate .pot-unit { font-size: .55em; }
.plate .pot-usd { font-size: clamp(10px, calc(var(--plate, 240px) * .05), 12px); min-height: 0; }
.plate .pot-usd:empty { display: none; }
.plate-line { font-size: clamp(10px, calc(var(--plate, 240px) * .05), 12px); color: var(--ink-mute); min-height: 1.4em; white-space: nowrap; }
.plate .soon { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.plate .soon .kicker { font-size: clamp(7px, calc(var(--plate, 240px) * .042), 10px); letter-spacing: 1.5px; }
.plate .soon-big { font-family: var(--display); font-size: clamp(14px, calc(var(--plate, 240px) * .1), 26px); line-height: 1; color: var(--red); text-shadow: clamp(1px, calc(var(--plate, 240px) * .008), 2px) clamp(1px, calc(var(--plate, 240px) * .008), 2px) 0 var(--ink); }
.plate .soon-sub { font-size: clamp(9px, calc(var(--plate, 240px) * .048), 12px); line-height: 1.3; font-style: italic; color: var(--ink-mute); white-space: normal; max-width: 85%; }
.drum-demo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.demo-count { font: 600 13px var(--body); color: var(--ink-mute); }

.pot-board { display: contents; }
.pot { font-family: var(--display); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.drawing .pot { animation: wobble .9s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-.6deg); } }

.cd-note { font-size: 15px; color: var(--ink-mute); min-height: 1.5em; }

.mega {
  display: flex; flex-wrap: wrap; align-items: stretch;
  margin-top: 18px;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 7px 0 var(--ink);
  overflow: hidden;
  text-align: left;
}
.mega-body { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 16px 28px; }
.mega-kicker { font-family: var(--display); font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--red-deep); }
.mega-pot { font-family: var(--display); font-size: 34px; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.mega-usd { font-size: 14px; font-style: italic; color: var(--ink-soft); }
.mega-usd:empty { display: none; }
.mega-stub { display: flex; flex-direction: column; justify-content: center; padding: 16px 24px; border-left: 3px dashed var(--ink); background: var(--paper); }
.mega-in { font-size: 13px; color: var(--ink-mute); }
.mega-cd { font-family: var(--display); font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mega-when { font-size: 12px; color: var(--ink-mute); }

.ribbon {
  position: relative;
  margin-top: 22px;
  padding: 12px 36px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
}
.tail { position: absolute; top: 10px; width: 0; height: 0; border: 14px solid var(--red-deep); z-index: -1; }
.tail-l { left: -22px; border-left-color: transparent; }
.tail-r { right: -22px; border-right-color: transparent; }
.in-drum { font-size: 16px; color: var(--ink-mute); min-height: 1.5em; }
.buy-top { display: none; }

/* ---------- 2. how it works ---------- */
.how {
  background: repeating-linear-gradient(90deg, var(--paper-deep) 0 40px, var(--paper) 40px 80px);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.how-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 48px max(24px, env(safe-area-inset-right)) 48px max(24px, env(safe-area-inset-left));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.how-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  padding: 28px 22px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 6px 0 var(--ink);
}
.how-card > div { display: flex; flex-direction: column; gap: 12px; }
.how-card h2 { font-size: 22px; }
.how-card p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- 3. am I in the drum ---------- */
.panel-in { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.elig-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 760px; }
.elig-form input { flex: 1 1 360px; font-family: var(--mono); font-size: 16px; } /* 16px or more, or iPhone Safari zooms the page on focus */
.ticket-card {
  display: flex; flex-wrap: wrap;
  max-width: 760px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 7px 0 var(--ink);
  overflow: hidden;
}
.admit {
  flex: 0 0 110px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red);
  color: var(--paper);
  border-right: 3px dashed var(--ink);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 16px 0;
}
.elig-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.verdict { font-family: var(--display); font-size: 22px; line-height: 1.2; color: var(--ink); }
.verdict.yes { color: var(--green); }
.verdict.no { color: var(--fail); }
.verdict.wait { color: #9a6300; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts dt { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-mute); }
.facts dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#e-note:empty { display: none; }

/* ---------- 4. the rules ---------- */
.rules { background: var(--red-deep); color: var(--paper); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.rules .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.rules h2 { font-size: 36px; line-height: 1.1; color: var(--gold-pale); }
.split-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 7px 0 var(--ink);
}
.split-lead { font-size: 18px; font-weight: 600; }
.split-rosettes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rs-eq { font-family: var(--display); font-size: 28px; padding: 0 4px; }
.split-note { font-size: 15px; color: var(--ink-soft); }
.split-bar, .split-legend { display: none; }
.rule-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule-list li {
  display: flex; gap: 14px;
  padding: 18px 20px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 5px 0 var(--ink);
}
.rn { font-family: var(--display); font-size: 18px; line-height: 1.4; color: var(--red); flex: none; }
.rule-list p { font-size: 16px; line-height: 1.55; }

/* ---------- 5. last winners ---------- */
.win-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.win-list .empty { color: var(--ink-mute); font-style: italic; padding: 18px; text-align: center; border: 3px dashed var(--ink); border-radius: 14px; }
.ticket {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 6px 0 var(--ink);
  overflow: hidden;
}
.ticket.flag { box-shadow: 5px 6px 0 var(--fail); }
.t-stub {
  grid-row: 1 / span 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--gold);
  border-right: 3px dashed var(--ink);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center;
  padding: 12px 6px;
}
.ticket.mega-t .t-stub { background: var(--gold-pale); }
.t-track { font: 600 11px/1 var(--body); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
.t-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 16px 20px; min-width: 0; }
.t-amt { font-family: var(--display); font-size: 22px; color: var(--red); min-width: 140px; }
.t-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 15px/1.4 var(--mono); min-width: 0; }
.t-wallet { overflow-wrap: anywhere; }
.t-meta { font-size: 14px; color: var(--ink-mute); flex: 1 1 100%; }
.t-meta:empty { display: none; }
.t-actions { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.t-tx { font-size: 14px; font-weight: 600; }
.t-tx:not([href]) { color: var(--ink-mute); text-decoration: none; }
.t-tx:empty { display: none; }
.t-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font: 600 13px/1.2 var(--body); padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; }
.tag-warn { background: var(--fail); }
.flag-note { flex: 1 1 100%; padding: 8px 12px; border-radius: 10px; background: #fde2dc; color: var(--fail); font-size: 14px; font-weight: 600; }

.checks { list-style: none; grid-column: 2; margin: 0 20px 16px; padding: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; display: grid; gap: 6px; font-size: 14px; }
.checks li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: start; overflow-wrap: anywhere; }
.badge { font: 600 11px/1 var(--body); text-align: center; padding: 4px 0; border-radius: 6px; color: #fff; }
.b-pass { background: var(--green); }
.b-fail { background: var(--fail); }
.b-warn { background: #b06b00; }
.b-run { background: var(--ink-mute); }
/* [R10 Info 13] the verdict is the list's first item, under the Verify button */
.checks .summary { grid-template-columns: 1fr; font-weight: 600; padding-bottom: 6px; border-bottom: 2px dashed var(--ink); }
.checks .summary.good { color: var(--green); }
.checks .summary.bad { color: var(--fail); }
.checks .summary.unsure { color: #b06b00; }
/* [R9 finding 8] drand's relays contradict this RPC: loud, though not a FAIL (the site can't tell which one lies) */
.checks .summary.conflict { color: var(--fail); background: #fde2dc; border: 2px solid var(--fail); border-radius: 8px; padding: 8px 10px; }

.rpc-box { max-width: 760px; font-size: 15px; color: var(--ink-mute); }
.rpc-box summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.rpc-box summary::marker { color: var(--red); }
.verify-rpc { display: grid; gap: 8px; margin: 12px 0 10px; }
.verify-rpc input { font-family: var(--mono); font-size: 16px; height: 50px; box-shadow: 3px 4px 0 var(--ink); }

/* ---------- 6. ask the swarm ---------- */
.swarm {
  background: repeating-linear-gradient(90deg, var(--red) 0 var(--stripe), var(--paper) var(--stripe) calc(var(--stripe) * 2));
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 40px 0;
}
.swarm-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 32px 36px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 9px 0 var(--ink);
}
.swarm-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.swarm-text .lead { font-size: 18px; color: var(--ink); max-width: 600px; }
.swarm-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.swarm-cd { font-size: 14px; color: var(--ink-mute); text-align: center; max-width: 280px; }
.swarm-last { font-size: 15px; color: var(--ink-mute); display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.swarm-last:empty { display: none; }
.swarm-last .fine { font-size: 14px; }
.status { display: inline-block; font: 600 13px/1.2 var(--body); padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--ink-mute); }
.st-attested { background: var(--green); }
.st-failed { background: var(--fail); }
.st-pending { background: #b06b00; }

/* ---------- 7. proofs and contract address ---------- */
.proofs-grid { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.proofs, .ca { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.proofs-grid .h-red { font-size: 30px; }
.backed { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; }
.backed-dot { flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--ink-mute); border: 2px solid var(--ink); }
.backed.ok .backed-dot { background: var(--green); }
.backed.bad .backed-dot { background: var(--fail); }
.backed small { display: block; font-size: 14px; color: var(--ink-mute); }
.addr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.addr-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.addr-list .k { font-weight: 600; }
.addr-list .v { font: 15px/1.4 var(--mono); overflow-wrap: anywhere; }
.addr-list .fine { flex: 1 1 100%; font-size: 14px; }
.ca-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ca code { flex: 1 1 260px; min-width: 0; padding: 14px 16px; border-radius: 12px; background: #fff; border: 3px solid var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.buy-ca { align-self: flex-start; height: 50px; padding: 0 24px; font-size: 17px; }

/* ---------- footer ---------- */
.foot {
  background: repeating-linear-gradient(90deg, var(--red) 0 var(--stripe), var(--paper-deep) var(--stripe) calc(var(--stripe) * 2));
  padding: 28px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  text-align: center;
}
.foot-box { display: inline-block; max-width: 100%; padding: 10px 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; font-size: 14px; color: var(--ink-soft); }
#freshness { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-mute); }
#freshness:empty { display: none; }

/* ======================================================================= phone: design/Phone.dc.html */
@media (max-width: 699px) {
  :root { --stripe: 30px; --scallop: 15px; }
  body { font-size: 15px; line-height: 1.5; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .awning { height: 30px; }

  .top { gap: 14px; padding: 26px 16px 6px; }
  .sign { gap: 2px; padding: 16px 26px 12px; border-width: 3px; border-radius: 20px; box-shadow: 0 0 0 3px var(--ink), 5px 6px 0 var(--ink); }
  .sign-lights { inset: 5px; border-radius: 13px; background:
    radial-gradient(circle, #fff3c4 0 2px, rgba(255, 220, 120, .5) 3px, transparent 4px) 0 0 / 16px 16px repeat-x,
    radial-gradient(circle, #fff3c4 0 2px, rgba(255, 220, 120, .5) 3px, transparent 4px) 0 100% / 16px 16px repeat-x; }
  .hat { width: 48px; height: 40px; margin-top: -30px; filter: drop-shadow(2px 2px 0 var(--ink)); }
  .wordmark { margin-top: 4px; font-size: 36px; letter-spacing: 1px; text-shadow: 2px 2px 0 var(--ink); }
  .sign-sub { font-size: 14px; }
  .music { top: -14px; right: -14px; }
  .nav { gap: 0 2px; font-size: 14px; }

  .h-red, .rules h2 { font-size: 26px; }
  .lead { font-size: 14px; }
  .fine { font-size: 13px; }
  .kicker { font-size: 15px; }
  .rule-flank { gap: 10px; }
  .rule-flank .rule { width: 28px; }
  .btn { height: 54px; font-size: 17px; box-shadow: 3px 4px 0 var(--ink); }
  .btn-ink { box-shadow: 4px 5px 0 var(--red-deep); }
  .btn-big { height: 60px; font-size: 19px; border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); }
  .btn-small { height: 44px; padding: 0 16px; box-shadow: 2px 3px 0 var(--ink); }
  .btn-gold { height: 52px; }
  input[type="text"], input:not([type]), input[type="url"] { height: 54px; padding: 0 16px; font-size: 16px; box-shadow: 3px 4px 0 var(--ink); }

  .hero { padding: 26px 16px 32px; gap: 12px; }
  .cd-note { font-size: 13px; }

  .mega { width: 100%; max-width: 340px; margin-top: 10px; flex-wrap: nowrap; border-radius: 12px; box-shadow: 4px 5px 0 var(--ink); }
  .mega-body { flex: 1 1 auto; min-width: 0; padding: 12px 16px; }
  .mega-kicker { font-size: 12px; }
  .mega-pot { font-size: 24px; }
  .mega-stub { flex: 0 0 auto; padding: 12px 16px; }
  .mega-in { font-size: 11px; }
  .mega-cd { font-size: 18px; }
  .ribbon { margin-top: 14px; padding: 9px 22px; font-size: 15px; box-shadow: 3px 4px 0 var(--ink); }
  .tail { display: none; }
  .in-drum { font-size: 14px; }
  .buy-top { display: flex; margin-top: 6px; width: 100%; max-width: 340px; }

  .how { background: repeating-linear-gradient(90deg, var(--paper-deep) 0 30px, var(--paper) 30px 60px); }
  .how-grid { padding: 28px 16px; display: flex; flex-direction: column; gap: 12px; }
  .how-card { flex-direction: row; align-items: flex-start; gap: 14px; text-align: left; padding: 16px; border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
  .how-card > div { gap: 4px; }
  .how-card h2 { font-size: 18px; }
  .how-card p { font-size: 15px; line-height: 1.5; }
  .rosette { width: 44px; height: 44px; font-size: 18px; outline-width: 2px; outline-offset: -7px; }

  .panel-in { padding-top: 32px; padding-bottom: 32px; gap: 14px; }
  .elig-form { flex-direction: column; gap: 10px; }
  .elig-form input { flex: 1 1 auto; }
  .ticket-card { flex-direction: column; flex-wrap: nowrap; border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); }
  .admit { flex: none; writing-mode: horizontal-tb; transform: none; justify-content: flex-start; padding: 10px 16px; border-right: 0; border-bottom: 3px dashed var(--ink); font-size: 14px; }
  .elig-body { flex: 1 1 auto; gap: 14px; padding: 16px; }
  .verdict { font-size: 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .facts dt { font-size: 11px; }
  .facts dd { font-size: 18px; }

  .rules .wrap { padding-top: 32px; padding-bottom: 32px; gap: 16px; }
  .split-card { gap: 12px; padding: 16px; border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); }
  .split-lead { font-size: 16px; }
  .split-rosettes { display: none; }
  .split-bar { display: flex; height: 22px; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
  .split-bar span { display: block; }
  .sb-pot { flex: 35 0 0; background: var(--red); }
  .sb-mega { flex: 12 0 0; background: var(--gold); }
  .sb-liq { flex: 9 0 0; background: var(--teal); }
  .sb-team { flex: 4 0 0; background: var(--ink); }
  .split-legend { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .split-legend li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
  .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
  .dot-red { background: var(--red); }
  .dot-gold { background: var(--gold); }
  .dot-teal { background: var(--teal); }
  .dot-ink { background: var(--ink); }
  .pc { font-family: var(--display); font-size: 18px; min-width: 56px; }
  .split-note { font-size: 14px; }
  .rule-list { display: flex; flex-direction: column; gap: 10px; }
  .rule-list li { gap: 12px; padding: 14px 16px; border-radius: 12px; box-shadow: 3px 4px 0 var(--ink); }
  .rn { font-size: 16px; }
  .rule-list p { font-size: 15px; line-height: 1.5; }

  .win-list { gap: 12px; }
  .ticket { display: flex; flex-direction: column; border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
  .ticket.flag { box-shadow: 4px 4px 0 var(--fail); }
  .t-stub { flex-direction: row; justify-content: space-between; padding: 8px 14px; border-right: 0; border-bottom: 3px dashed var(--ink); font-size: 13px; }
  .t-body { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; }
  .t-amt { min-width: 0; }
  .t-who { font-size: 14px; }
  .t-meta { font-size: 12px; }
  .t-actions { margin-left: 0; justify-content: space-between; }
  .tag { font-size: 12px; padding: 3px 9px; }
  .checks { margin: 0 10px 10px; }

  .swarm { padding: 24px 0; }
  .swarm-card { flex-direction: column; align-items: stretch; gap: 12px; padding: 20px 18px; border-radius: 16px; box-shadow: 5px 6px 0 var(--ink); }
  .swarm-text { flex: 1 1 auto; }
  .swarm-text .lead { font-size: 15px; }
  .swarm-action { align-items: stretch; }
  .swarm-cd { max-width: none; font-size: 13px; }
  .swarm-last { font-size: 13px; }

  .proofs-grid { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
  .proofs-grid .h-red { font-size: 26px; }
  .ca .h-red { font-size: 22px; }
  .backed { font-size: 15px; }
  .addr-list { font-size: 15px; }
  .ca code { flex: 1 1 100%; padding: 12px 14px; font-size: 13px; }
  .ca-row { display: grid; grid-template-columns: 1fr; }
  .ca-row .btn-gold, .buy-ca { width: 100%; height: 52px; align-self: stretch; }
  .foot { padding: 20px 16px max(36px, env(safe-area-inset-bottom)); }
  .foot-box { padding: 8px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
