/* RAREST XI — drop through the pile of everything you could have said */

:root {
  /* 60 - ground, 30 - paper, 10 - one accent. Colour is spent on data, not chrome. */
  --ground:   #141033;
  --ground-d: #0b0822;
  --indigo:   #221b57;
  --well:     #080618;
  --paper:    #f8f5ef;
  --ink:      #171233;
  --ink-2:    #5d5780;
  --ink-3:    #9a94b5;
  --rule:     #e6e0d5;

  --gold:     #f5c451;
  --gold-lt:  #ffe6a8;
  --gold-dk:  #c2912a;

  /* the only place six colours are justified: reading the distribution */
  --t1: #7a8499;
  --t2: #4a9fe0;
  --t3: #2bc4a8;
  --t4: #9ed64a;
  --t5: #f5a63c;
  --t6: #ff5c7a;

  --sheen: linear-gradient(170deg, var(--gold-lt) 0%, var(--gold) 46%, var(--gold-dk) 100%);

  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;

  --display: "Anton", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow-x: hidden; }

body {
  font-family: var(--body); color: var(--ink); background: var(--ground-d);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.07), transparent 58%),
    radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0/7px 7px,
    linear-gradient(180deg, var(--ground) 0%, var(--ground-d) 70%);
}
body.quake { animation: quake .38s cubic-bezier(.36,.07,.19,.97); }
@keyframes quake {
  20% { transform: translate(-3px, 2px); } 40% { transform: translate(4px, -2px); }
  60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 2px); }
}
@keyframes sheen { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }


/* ---------- living background ----------
 * Bell curves drifting behind the game, lit by a slow aurora. The shape of
 * the background is the shape of the thing you are playing with.
 */

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(66px); opacity: .85; will-change: transform;
}
.b1 {
  width: 62vmax; height: 62vmax; top: -26vmax; left: -18vmax;
  background: radial-gradient(circle, rgba(104,80,232,.62), transparent 68%);
  animation: drift1 34s ease-in-out infinite;
}
.b2 {
  width: 48vmax; height: 48vmax; top: 18vmax; right: -20vmax;
  background: radial-gradient(circle, rgba(245,196,81,.34), transparent 66%);
  animation: drift2 44s ease-in-out infinite;
}
.b3 {
  width: 54vmax; height: 54vmax; bottom: -26vmax; left: 12vmax;
  background: radial-gradient(circle, rgba(43,196,168,.3), transparent 68%);
  animation: drift3 52s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(14vmax, 9vmax) scale(1.14); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-16vmax, -8vmax) scale(1.2); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1.06); }
  50%     { transform: translate(10vmax, -12vmax) scale(.92); }
}

/* two bell ranges sliding past each other at different speeds */
.bgwave {
  position: absolute; left: 0; bottom: 0; width: 200%; height: 46vh;
  will-change: transform;
}
.bgwave path { stroke: none; }
.w-back  { opacity: .5; animation: slide 72s linear infinite; }
.w-back path  { fill: rgba(255,255,255,.055); }
.w-front { opacity: .6; height: 34vh; animation: slide 44s linear infinite; }
.w-front path { fill: rgba(245,196,81,.075); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .blob, .bgwave { animation: none !important; }
}

/* ---------- mute ---------- */

.mutebtn {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(245,196,81,.4); background: transparent;
  color: var(--gold); font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, opacity .2s; position: relative;
}
.mutebtn:hover { background: rgba(245,196,81,.15); }
.mutebtn.off { opacity: .4; }
.mutebtn.off::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 50%;
  height: 1.5px; background: var(--gold); transform: rotate(-45deg);
}

/* ---------- spine ---------- */

.spine {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; background: var(--indigo); box-shadow: 0 1px 0 rgba(255,255,255,.07) inset;
}
.spine-mark { font-family: var(--display); font-size: 17px; color: var(--gold); flex: 0 0 auto; letter-spacing: .04em; }
.slots { flex: 1; display: flex; gap: 4px; justify-content: center; min-width: 0; }
.slot {
  flex: 0 0 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.22); background: transparent;
  transition: transform .3s, background .3s, box-shadow .3s;
}
.slot.now { border-color: var(--gold); transform: scale(1.3); box-shadow: 0 0 12px rgba(245,196,81,.7); }
.slot.filled { border-color: transparent; background: var(--fill, #fff); }
.slot.filled.top { background: var(--sheen); box-shadow: 0 0 12px rgba(245,196,81,.75); }
.slot.miss { background: rgba(255,255,255,.1); border-color: transparent; }
.spine-val { flex: 0 0 auto; text-align: right; line-height: 1; }
.spine-k {
  display: block; font-family: var(--cond); font-size: 9px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.spine-v { font-family: var(--display); font-size: 21px; color: var(--gold); }

/* ---------- page ---------- */

.page { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; padding: 16px 14px 180px; }
.screen { display: none; }
.screen.on { display: block; animation: dealin .36s cubic-bezier(.2,.8,.25,1) both; }
@keyframes dealin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- cover ---------- */

.cover {
  background: var(--paper); border-radius: var(--r-lg); padding: 52px 26px 44px; text-align: center;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.75); position: relative; overflow: hidden;
}
.cover::before {
  content: ""; position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: min(340px, 86%); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(245,196,81,.22), rgba(245,196,81,.06) 56%, transparent 72%);
}
.wordmark, .cover-sub { position: relative; z-index: 1; }
.cover::after {
  content: ""; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 54px; height: 4px; border-radius: var(--r-pill); background: var(--gold); opacity: .55;
}
.wordmark { margin: 0; line-height: .82; }
.wordmark span { display: block; font-family: var(--display); text-transform: uppercase; }
.wm-a { font-size: clamp(40px, 13vw, 74px); color: var(--ink); letter-spacing: .005em; }
.wm-b {
  font-size: clamp(72px, 24vw, 136px); letter-spacing: .05em; margin-top: 4px;
  background: var(--sheen);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.18)) drop-shadow(0 10px 26px rgba(245,196,81,.5));
}
.cover-sub {
  font-family: var(--cond); font-weight: 600; font-size: clamp(12px, 3.2vw, 15px);
  letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 0;
}

.daily-tag {
  position: relative; z-index: 1; margin: 14px 0 0;
  font-family: var(--cond); font-weight: 700; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dk);
}
.daily-tag b { color: var(--ink); font-weight: 700; }

.rules {
  background: var(--paper); border-radius: var(--r-lg); margin: 14px 0 0; padding: 26px 24px;
  box-shadow: 0 18px 44px -22px rgba(0,0,0,.7);
}
.rules-lead {
  font-family: var(--cond); font-weight: 600; font-size: 17px; line-height: 1.38;
  margin: 0 0 15px; padding-bottom: 13px; border-bottom: 2px solid var(--rule);
}
.rules ul { margin: 0; padding: 0; list-style: none; }
.rules li { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); padding: 7px 0 7px 21px; position: relative; }
.rules li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold);
}
.rules li b { color: var(--ink); font-weight: 700; }

/* ---------- buttons ---------- */

.btn {
  font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper); background: var(--indigo);
  border: 0; border-radius: var(--r-pill); padding: 17px 30px; cursor: pointer; width: 100%;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.9); transition: transform .14s, box-shadow .18s, background .15s;
}
.btn:hover { background: #2d2568; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-go { background: var(--sheen); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(245,196,81,.6); margin-top: 22px; }
.btn-go:hover { filter: brightness(1.06); }
.linkbtn {
  background: none; border: 0; cursor: pointer; padding: 4px;
  font-family: var(--cond); font-weight: 600; font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.5); text-decoration: underline;
}
.linkbtn:hover { color: #fff; }
.linkbtn.sent { color: var(--gold); text-decoration: none; cursor: default; }
.acts { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tomorrow {
  font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .1em;
  color: rgba(255,255,255,.5); text-align: center; margin: 6px 0 0; line-height: 1.6;
}

.board {
  margin: 26px 0 0; text-align: left;
  background: rgba(255,255,255,.05); border-radius: var(--r-lg); padding: 18px 20px 14px;
}
.board-h {
  font-family: var(--cond); font-weight: 700; font-size: 12.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 12px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.board-h span { color: rgba(255,255,255,.45); font-weight: 600; letter-spacing: .08em; }
.whoami {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--cond); font-weight: 600; font-size: 12.5px;
  letter-spacing: .08em; color: rgba(255,255,255,.5);
}
.whoami input {
  flex: 1; min-width: 120px;
  font-family: var(--cond); font-weight: 600; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 2px solid transparent; border-radius: var(--r-pill);
  padding: 9px 14px;
}
.whoami input:focus { outline: none; border-color: var(--gold); }
.whoami button {
  font-family: var(--cond); font-weight: 700; font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); background: var(--gold);
  border: 0; border-radius: var(--r-pill); padding: 10px 16px; cursor: pointer;
}
.whoami .me { color: var(--gold); }
.whoami .change {
  background: none; border: 0; padding: 0; color: rgba(255,255,255,.45);
  text-decoration: underline; font-size: 12px; cursor: pointer; letter-spacing: .06em;
}

.board-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.board-row {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.board-row:last-child { border-bottom: 0; }
.board-row .rk {
  flex: 0 0 22px; font-family: var(--display); font-size: 15px; color: rgba(255,255,255,.4);
}
.board-row .nm {
  flex: 1; min-width: 0; font-family: var(--cond); font-weight: 600; font-size: 15px;
  color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-row .gd { font-size: 11px; letter-spacing: -1px; opacity: .85; flex: 0 0 auto; }
.board-row .sc { font-family: var(--display); font-size: 17px; color: var(--gold); flex: 0 0 auto; }
.board-row.you { background: rgba(245,196,81,.1); margin: 0 -10px; padding: 0 10px; border-radius: var(--r-md); }
.board-row { padding: 0; }
.board-sum {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 0;
  cursor: pointer; list-style: none;
}
.board-sum::-webkit-details-marker { display: none; }
.board-sum::after {
  content: "\203A"; transform: rotate(90deg); font-size: 15px; line-height: 1;
  color: rgba(255,255,255,.35); flex: 0 0 auto; transition: transform .2s;
}
.board-row details[open] .board-sum::after { transform: rotate(-90deg); }
.board-sum:hover .nm { color: var(--gold); }

.board-answers {
  list-style: none; margin: 0 0 10px; padding: 10px 12px;
  background: rgba(0,0,0,.25); border-radius: var(--r-md);
}
.ba-row {
  display: flex; align-items: baseline; gap: 10px; padding: 5px 0;
  font-size: 13.5px; color: var(--paper);
}
.ba-n {
  flex: 0 0 18px; font-family: var(--cond); font-size: 11px;
  color: rgba(255,255,255,.3); text-align: right;
}
.ba-a { flex: 1; min-width: 0; font-family: var(--cond); font-weight: 600; }
.ba-a.ba-miss { color: rgba(255,255,255,.3); font-weight: 500; font-style: italic; }
.ba-p { font-family: var(--display); font-size: 14px; color: rgba(255,255,255,.45); flex: 0 0 auto; }
.board-note {
  font-family: var(--cond); font-weight: 600; font-size: 11.5px; letter-spacing: .08em;
  color: rgba(255,255,255,.4); margin: 12px 0 0; line-height: 1.6;
}

.sharebox {
  width: 100%; margin: 4px 0 0; padding: 14px 16px; resize: none;
  font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 13px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--gold); border-radius: var(--r-md);
}
.sharebox:focus { outline: none; box-shadow: 0 0 0 4px rgba(245,196,81,.25); }

.flagnote {
  font-family: var(--cond); font-weight: 600; font-size: 12px; letter-spacing: .08em;
  color: rgba(255,255,255,.45); text-align: center; margin: 16px 0 0; line-height: 1.6;
}
.flagnote button {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: var(--gold); text-decoration: underline;
}

.best {
  font-family: var(--cond); font-weight: 600; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.5); text-align: center; margin: 18px 0 0;
}

/* ---------- prompt ---------- */

.promptcard { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 14px 34px -18px rgba(0,0,0,.75); }
.pc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--indigo); color: var(--gold); padding: 10px 18px;
  font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.pc-pool { opacity: .6; font-weight: 500; letter-spacing: .1em; }
.pc-q {
  font-family: var(--cond); font-weight: 700; font-size: clamp(23px, 6vw, 35px);
  line-height: 1.08; margin: 0; padding: 18px 18px 0; color: var(--ink);
}
.pc-scope {
  margin: 13px 18px 16px; padding-top: 11px; border-top: 2px solid var(--rule);
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
}
.leadin {
  margin: 16px auto 0; max-width: 200px; text-align: center;
  font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  border: 1px dashed rgba(255,255,255,.28); border-radius: 3px; padding: 10px;
}

/* ---------- the curve ---------- */

.field {
  position: relative; margin: 14px 0 0; height: 214px;
  background: var(--well); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 0 40px -10px #000;
}
.field-k {
  position: absolute; top: 9px; z-index: 4;
  font-family: var(--cond); font-weight: 700; font-size: 9.5px;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.3);
}
.field-l { left: 12px; }
.field-r { right: 12px; }

.curve { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#curve-ghost { fill: rgba(255,255,255,.075); stroke: none; }
#curve-fill  { fill: url(#heat); opacity: .55; }
#curve-line  { fill: none; stroke: rgba(255,255,255,.34); stroke-width: 1.5; }

/* average / median / best markers */
.refs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ref { position: absolute; top: 26px; bottom: 26px; width: 0; transform: translateX(-50%); }
.ref::before {
  content: ""; position: absolute; inset: 0; width: 1px; left: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.34) 0 3px, transparent 3px 7px);
  transition: background .3s;
}
.ref-k.stack { bottom: auto; top: -1px; }
.ref-k.edge-l { transform: translateX(0); }
.ref-k.edge-r { transform: translateX(-100%); }
.ref-k {
  position: absolute; bottom: -22px; left: 0; transform: translateX(-50%);
  font-family: var(--cond); font-weight: 700; font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.4); white-space: nowrap;
  background: rgba(8,6,24,.82); border-radius: var(--r-pill); padding: 3px 8px;
  transition: color .3s, text-shadow .3s, background .3s;
}
.ref.hit::before { background: repeating-linear-gradient(180deg, #fff 0 3px, transparent 3px 7px); }
.ref.hit .ref-k { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.8); }
.ref.best::before { background: repeating-linear-gradient(180deg, var(--t6) 0 3px, transparent 3px 7px); }
.ref.best .ref-k { color: var(--t6); }

/* the runner that travels out along the tail */
.runner { position: absolute; z-index: 5; transform: translate(-50%, -50%); pointer-events: none; }
.runner-dot {
  display: block; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 20px 5px rgba(255,255,255,.85);
}
.runner-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 300px;
  margin-left: -1px; background: linear-gradient(180deg, rgba(255,255,255,.5), transparent);
}
.pop {
  position: absolute; z-index: 6; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff; transform: translate(-50%, -50%); pointer-events: none;
  animation: shock .8s cubic-bezier(.1,.8,.3,1) forwards;
}
@keyframes shock {
  from { transform: translate(-50%,-50%) scale(.4); opacity: .95; }
  to   { transform: translate(-50%,-50%) scale(11); opacity: 0; }
}

/* your landing flag */
.flagpin {
  position: absolute; z-index: 7; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 0;
  pointer-events: none; animation: pinin .4s cubic-bezier(.2,.9,.25,1) both;
}
@keyframes pinin { from { opacity: 0; transform: translate(-50%, -140%); } to { opacity: 1; transform: translate(-50%, -100%); } }
.flagpin-b {
  font-family: var(--display); font-size: 19px; line-height: 1; color: var(--ink);
  padding: 6px 12px 5px; border-radius: var(--r-pill); white-space: nowrap;
}
.flagpin-s { width: 2px; height: 16px; }

/* ---------- landing readout ---------- */

.landing { margin: 14px 0 0; text-align: center; animation: dealin .4s ease-out both; }
.l-name {
  font-family: var(--display); font-size: clamp(26px, 7.2vw, 40px);
  text-transform: uppercase; line-height: 1.02; color: var(--paper); margin: 0;
}
.l-tier {
  display: inline-block; font-family: var(--cond); font-weight: 700;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 17px; border-radius: var(--r-pill); line-height: 1; margin: 13px 0 0;
}
.l-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 18px 0 0;
}
.l-stats span {
  font-family: var(--cond); font-weight: 600; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06); border-radius: var(--r-pill); padding: 7px 14px;
}
.l-stats b {
  font-family: var(--display); font-weight: 400; font-size: 14px;
  color: var(--paper); margin-left: 7px; letter-spacing: 0;
}
.l-blurb { font-size: 13.5px; color: rgba(255,255,255,.66); margin: 8px 0 0; line-height: 1.5; }
.l-fix {
  display: inline-block; font-family: var(--cond); font-weight: 600; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: var(--gold); border-radius: var(--r-pill); padding: 5px 14px; margin: 10px 0 0;
}
.l-note { font-size: 12.5px; color: rgba(255,255,255,.44); margin: 7px 0 0; line-height: 1.5; }
.l-split {
  display: flex; justify-content: center; gap: 26px; margin: 16px 0 0;
  font-family: var(--cond); font-weight: 600; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase;
}
.l-split b { display: block; font-family: var(--display); font-size: 23px; font-weight: 400; letter-spacing: 0; }
.l-up { color: rgba(255,255,255,.4); }
.l-down { color: var(--t6); }
.landing.dud .l-tier { color: rgba(255,255,255,.5); }

/* ---------- final ---------- */

#s-done { text-align: center; }
.done-k {
  font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin: 4px 0 0;
}
.done-val {
  font-family: var(--display); font-size: clamp(72px, 22vw, 124px); line-height: .9;
  margin: 8px 0 0; background: var(--sheen);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.3)) drop-shadow(0 12px 30px rgba(245,196,81,.35));
}
.done-sub {
  font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin: 6px 0 0;
}
.done-rank {
  font-family: var(--display); font-size: clamp(22px, 6.4vw, 34px); text-transform: uppercase;
  color: var(--paper); margin: 22px 0 0; line-height: 1.05;
}
.done-note { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.7); margin: 10px auto 0; max-width: 420px; }

.album {
  background: rgba(255,255,255,.05); border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 4px 16px 10px; text-align: left;
}
.arow { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.arow:last-child { border-bottom: 0; }
.achip {
  flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--fill, #ccc);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 14px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.achip.top { background: var(--sheen); color: var(--ink); text-shadow: none; box-shadow: 0 0 14px rgba(245,196,81,.6); }
.achip.miss { background: rgba(255,255,255,.12); color: var(--ink-3); text-shadow: none; }
.abody { flex: 1; min-width: 0; }
.aq { font-size: 11.5px; color: rgba(255,255,255,.4); line-height: 1.35; margin-bottom: 3px; }
.aa { font-family: var(--cond); font-weight: 700; font-size: 16px; color: var(--paper); }
.at { font-family: var(--cond); font-weight: 700; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; flex: 0 0 54px; text-align: right; line-height: 1.25; }


/* ---------- final: distribution of every run you could have had ---------- */

.bell {
  position: relative; height: 176px; margin: 26px 0 0;
  background: var(--well); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 0 40px -10px #000;
}
.bell-k {
  position: absolute; top: 9px; z-index: 4;
  font-family: var(--cond); font-weight: 700; font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.3);
}
.bell-l { left: 12px; }
.bell-r { right: 12px; }
.bellsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#bell-ghost { fill: rgba(255,255,255,.075); }
#bell-fill  { fill: url(#bellheat); opacity: .55; }
#bell-line  { fill: none; stroke: rgba(255,255,255,.34); stroke-width: 1.5; }

.beatline {
  font-family: var(--cond); font-weight: 700; font-size: clamp(15px, 4vw, 19px);
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62);
  margin: 16px 0 0; line-height: 1.45;
}
.beatline b {
  font-family: var(--display); font-weight: 400; font-size: 1.5em;
  color: var(--gold); letter-spacing: 0; margin: 0 4px;
}

/* recap, tucked away */
.recap { margin: 24px 0 0; text-align: left; }
.recap summary {
  list-style: none; cursor: pointer;
  font-family: var(--cond); font-weight: 700; font-size: 12.5px;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05); border-radius: var(--r-pill);
  padding: 13px 20px; transition: background .2s, color .2s;
  display: flex; justify-content: space-between; align-items: center;
}
.recap summary::-webkit-details-marker { display: none; }
.recap summary::after { content: "\203A"; transform: rotate(90deg); font-size: 18px; line-height: 1; }
.recap[open] summary {
  color: var(--gold); border-radius: var(--r-lg) var(--r-lg) 0 0; background: rgba(255,255,255,.07);
}
.recap[open] summary::after { transform: rotate(-90deg); }
.recap summary:hover { color: #fff; }

/* ---------- tray ---------- */

.tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10,7,32,0), rgba(10,7,32,.97) 26%);
}
.rejects { max-width: 596px; margin: 0 auto; padding: 8px 2px 6px; }
.rj-msg {
  display: flex; align-items: baseline; gap: 8px;
  background: rgba(255,92,122,.16); border-left: 3px solid var(--t6);
  border-radius: var(--r-md); padding: 9px 13px; margin-bottom: 7px;
  animation: nope .42s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes nope { 10%,90% { transform: translateX(-2px); } 30%,70% { transform: translateX(3px); } 50% { transform: translateX(-3px); } }
.rj-word {
  font-family: var(--cond); font-weight: 700; font-size: 14px; color: #fff; flex: 0 0 auto;
  text-decoration: line-through; text-decoration-color: rgba(255,255,255,.55);
}
.rj-why { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.78); }
.rj-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.rj-chip {
  font-family: var(--cond); font-weight: 600; font-size: 11.5px; color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.07); border-radius: var(--r-pill); padding: 4px 10px; text-decoration: line-through;
}

.entrybar { max-width: 596px; margin: 0 auto; display: flex; align-items: stretch; gap: 8px; }
.clock {
  flex: 0 0 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border-radius: 50%;
  font-family: var(--display); font-size: 23px; color: var(--ink);
  transition: background .3s, color .3s;
}
.tray.low .clock { background: var(--t6); color: #fff; animation: tick 1s ease-in-out infinite; }
@keyframes tick { 50% { transform: scale(1.07); } }
#entry {
  flex: 1; min-width: 0; font-family: var(--cond); font-weight: 600; font-size: 19px; color: var(--ink);
  background: var(--paper); border: 2px solid transparent; border-radius: var(--r-pill); padding: 14px 20px;
}
#entry::placeholder { color: var(--ink-3); font-weight: 500; }
#entry:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,196,81,.2); }
.tray.low #entry { border-color: var(--t6); }
.stickit {
  flex: 0 0 auto; font-family: var(--cond); font-weight: 700; font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--sheen);
  border: 0; border-radius: var(--r-pill); padding: 14px 24px; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(245,196,81,.7); transition: transform .12s, filter .12s;
}
.stickit:active { transform: scale(.96); }
.stickit:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 560px) {
  /* On a phone the curve sat in a short box with a long stretch of empty
     background beneath it. Give that space to the chart instead. */
  .field { height: 40vh; min-height: 230px; }
  .page { padding-bottom: 118px; }
  .pc-q { font-size: clamp(22px, 6.4vw, 30px); }
  .promptcard { border-radius: var(--r-md); }
}

@media (max-width: 430px) {
  .page { padding: 13px 11px 118px; }
  .slot { flex: 0 0 13px; height: 13px; }
  .spine { gap: 8px; padding: 10px 12px; }
  .spine-v { font-size: 18px; }
  .stickit { padding: 14px 16px; font-size: 13px; }
  .l-split { gap: 18px; }

  /* the board row ran out of room: rank + name + eleven squares + score */
  .board { padding: 16px 14px 12px; }
  .board-sum { gap: 8px; flex-wrap: wrap; }
  .board-row .gd { order: 3; flex-basis: 100%; margin-left: 30px; letter-spacing: 0; }
  .board-row .sc { margin-left: auto; }
  .board-answers { padding: 10px; }
  .ba-a { font-size: 13px; }
}

@media (max-width: 360px) {
  .slot { flex: 0 0 11px; height: 11px; }
  .spine-mark { font-size: 15px; }
  .board-row .gd { font-size: 10px; }
}
