/* FinX GOAT (/goat) — pick-one-of-two speaker duels. Page-scoped: every
   rule hangs off .goat-page / .goat-body so nothing leaks into shared UI. */

.goat-body {
  background: #05070a;
}

.goat-page {
  --goat-line: rgba(255, 255, 255, .08);
  --goat-line-strong: rgba(255, 255, 255, .14);
  --goat-text: #f3f4f6;
  --goat-text-2: #a4acb8;
  --goat-muted: #6f7785;
  --goat-gold: #f5c84b;
  --goat-gold-2: #ffe08a;
  --goat-fire: #ff7a1a;
  --goat-green: #34d399;
  --goat-red: #ff5b72;
  --goat-radius: 22px;
  --goat-ease: cubic-bezier(.2, .8, .2, 1);
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 48px - var(--bz-mobile-tabbar-total-h, 0px));
  overflow-x: clip;
  color: var(--goat-text);
  font-family: 'Geist', Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Backdrop ─────────────────────────────────────────────────────────── */

.goat-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(245, 200, 75, .17), transparent 62%),
    radial-gradient(760px 460px at 50% 112%, rgba(255, 122, 26, .12), transparent 64%),
    linear-gradient(180deg, #05070a 0%, #070a0f 52%, #05070a 100%);
}

.goat-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 32%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 32%, #000 20%, transparent 78%);
}

.goat-ember {
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--goat-gold-2);
  box-shadow: 0 0 8px 2px rgba(255, 150, 40, .75);
  opacity: 0;
  animation: goat-ember 11s linear infinite;
}

.goat-ember:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 12s; }
.goat-ember:nth-child(2) { left: 19%; animation-delay: 3.4s; animation-duration: 10s; }
.goat-ember:nth-child(3) { left: 31%; animation-delay: 6.1s; animation-duration: 13s; }
.goat-ember:nth-child(4) { left: 44%; animation-delay: 1.7s; animation-duration: 11s; }
.goat-ember:nth-child(5) { left: 56%; animation-delay: 8.2s; animation-duration: 12.5s; }
.goat-ember:nth-child(6) { left: 63%; animation-delay: 4.6s; animation-duration: 9.5s; }
.goat-ember:nth-child(7) { left: 72%; animation-delay: 2.3s; animation-duration: 14s; }
.goat-ember:nth-child(8) { left: 81%; animation-delay: 7.1s; animation-duration: 10.5s; }
.goat-ember:nth-child(9) { left: 90%; animation-delay: 5.2s; animation-duration: 12s; }
.goat-ember:nth-child(10) { left: 97%; animation-delay: 9.4s; animation-duration: 11.5s; }

@keyframes goat-ember {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10% { opacity: .9; }
  70% { opacity: .5; }
  100% { transform: translate3d(-40px, -92vh, 0) scale(.4); opacity: 0; }
}

/* ── Shared atoms ─────────────────────────────────────────────────────── */

.goat-screen[hidden] {
  display: none !important;
}

/* backwards, not both: a retained transform would turn the screen into the
   containing block of the fixed share dock. */
.goat-screen.is-active {
  animation: goat-screen-in .5s var(--goat-ease) backwards;
}

@keyframes goat-screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.goat-step {
  display: inline-block;
  color: var(--goat-gold);
  font: 700 11px/1.2 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.goat-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.goat-btn:hover {
  text-decoration: none;
}

.goat-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.goat-btn:focus-visible,
.goat-link-btn:focus-visible,
.goat-link:focus-visible {
  outline: 2px solid var(--goat-gold);
  outline-offset: 3px;
}

.goat-btn:active {
  transform: scale(.98);
}

.goat-btn:disabled {
  opacity: .55;
  cursor: progress;
}

.goat-btn--primary {
  background: linear-gradient(180deg, #ffd766 0%, #f0b92d 100%);
  color: #1a1204;
  box-shadow: 0 12px 32px rgba(245, 200, 75, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.goat-btn--primary:hover {
  color: #1a1204;
  box-shadow: 0 16px 40px rgba(245, 200, 75, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
  transform: translateY(-1px);
}

.goat-btn--anon {
  background: rgba(255, 255, 255, .04);
  border-color: var(--goat-line-strong);
  color: var(--goat-text);
}

.goat-btn--anon img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.goat-btn--anon:hover {
  border-color: rgba(245, 200, 75, .55);
  background: rgba(245, 200, 75, .07);
}

.goat-btn--x {
  background: #f4f5f7;
  color: #0a0c10;
}

.goat-btn--x:hover {
  background: #fff;
  color: #0a0c10;
  transform: translateY(-1px);
}

.goat-btn--ghost {
  background: transparent;
  border-color: var(--goat-line-strong);
  color: var(--goat-text);
}

.goat-btn--ghost:hover {
  border-color: rgba(245, 200, 75, .55);
  color: var(--goat-gold-2);
}

.goat-btn--soft {
  min-height: 44px;
  background: rgba(255, 255, 255, .04);
  border-color: var(--goat-line);
  color: var(--goat-text-2);
  font-size: 14px;
}

.goat-btn--soft:hover {
  color: var(--goat-text);
  border-color: var(--goat-line-strong);
}

.goat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--goat-gold-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.goat-link::after {
  content: "\2192";
  transition: transform .2s ease;
}

.goat-link:hover {
  color: #fff3c4;
  text-decoration: none;
}

.goat-link:hover::after {
  transform: translateX(3px);
}

.goat-link-btn {
  padding: 6px 10px;
  border: 1px solid var(--goat-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--goat-text-2);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.goat-link-btn:hover {
  color: var(--goat-text);
  border-color: rgba(245, 200, 75, .5);
}

.goat-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 9px 6px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .05);
  text-align: center;
}

.goat-stat small {
  color: var(--goat-muted);
  font: 600 9.5px/1.15 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.goat-stat strong {
  color: var(--goat-text);
  font: 700 16px/1 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: 'tnum', 'zero';
  white-space: nowrap;
}

.goat-stat--rank strong {
  color: var(--goat-gold);
}

/* Korean wraps between syllables by default; keep words whole. */
.goat-page:lang(ko) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.goat-page .is-pos {
  color: var(--goat-green);
}

.goat-page .is-neg {
  color: var(--goat-red);
}

.goat-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Intro ────────────────────────────────────────────────────────────── */

.goat-intro-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) 16px 56px;
  text-align: center;
}

.goat-challenge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 7px 16px 7px 7px;
  border: 1px solid rgba(245, 200, 75, .38);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 200, 75, .14), rgba(245, 200, 75, .04));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  text-align: left;
}

.goat-challenge-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 2px solid var(--goat-gold);
  border-radius: 50%;
  object-fit: cover;
  background: #1a2029;
}

.goat-challenge p {
  margin: 0;
  color: var(--goat-text);
  font-size: 14px;
  line-height: 1.35;
}

.goat-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--goat-text-2);
  font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.goat-kicker-badge {
  padding: 7px 12px;
  border: 1px solid rgba(245, 200, 75, .42);
  border-radius: 999px;
  background: rgba(245, 200, 75, .08);
  color: var(--goat-gold);
}

.goat-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--goat-fire);
  box-shadow: 0 0 14px rgba(255, 122, 26, .8);
  animation: goat-pulse 1.8s ease-in-out infinite;
}

@keyframes goat-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.goat-title {
  margin: 18px 0 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.01em;
}

.goat-title span,
.goat-title em {
  display: block;
}

.goat-title em {
  padding-bottom: .06em;
  background: linear-gradient(180deg, #ffe9a8 0%, #f5c84b 45%, #d9981a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  filter: drop-shadow(0 0 28px rgba(245, 200, 75, .32));
}

.goat-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 26px auto 0;
}

.goat-teaser[hidden] {
  display: none;
}

.goat-face-stack {
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.goat-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: -10px;
  overflow: hidden;
  border: 2px solid #05070a;
  border-radius: 50%;
  background: linear-gradient(145deg, #252d3a, #141a23);
  box-shadow: 0 0 0 1px rgba(245, 200, 75, .28);
  animation: goat-face-in .5s var(--goat-ease) both;
  animation-delay: calc(var(--i, 0) * 60ms + .15s);
}

.goat-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goat-face--more {
  width: auto;
  min-width: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 200, 75, .12);
  color: var(--goat-gold-2);
  font: 700 12px/1 'JetBrains Mono', ui-monospace, monospace;
}

@keyframes goat-face-in {
  from { opacity: 0; transform: translateY(8px) scale(.8); }
  to { opacity: 1; transform: none; }
}

.goat-teaser-label {
  color: var(--goat-muted);
  font: 600 10.5px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.goat-select {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 30px auto 0;
  padding: 22px;
  border: 1px solid var(--goat-line-strong);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(22, 27, 36, .9), rgba(10, 13, 18, .94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  text-align: left;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.goat-select-head p {
  margin: 8px 0 0;
  color: var(--goat-text-2);
  font-size: 14px;
}

.goat-entry {
  margin-top: 22px;
}

.goat-nickname {
  margin-top: 16px;
}

.goat-nickname input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--goat-line-strong);
  border-radius: 14px;
  background: #07090d;
  color: var(--goat-text);
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.goat-nickname input::placeholder {
  color: #5b6371;
}

.goat-nickname input:focus {
  border-color: rgba(245, 200, 75, .6);
  box-shadow: 0 0 0 4px rgba(245, 200, 75, .12);
}

.goat-nickname input[aria-invalid="true"] {
  border-color: rgba(255, 91, 114, .7);
}

.goat-entry-error {
  margin: 10px 2px 0;
  color: var(--goat-red);
  font-size: 13px;
}

.goat-entry-error[hidden] {
  display: none;
}

.goat-select-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.goat-select-actions .goat-btn {
  width: 100%;
}

.goat-select-actions .goat-btn[hidden] {
  display: none;
}

.goat-today {
  margin: 16px 0 0;
  color: var(--goat-text-2);
  font-size: 13px;
}

.goat-today[hidden] {
  display: none;
}

.goat-unavailable {
  max-width: 480px;
  margin: 30px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--goat-line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  color: var(--goat-text-2);
}

/* ── Intro brief: everything on one screen ────────────────────────────── */

.goat-intro-grid {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin: 26px auto 0;
  text-align: left;
}

.goat-brief {
  padding: 22px 22px 20px;
  border: 1px solid rgba(245, 200, 75, .22);
  border-radius: 26px;
  background:
    radial-gradient(460px 220px at 0% 0%, rgba(245, 200, 75, .1), transparent 70%),
    linear-gradient(180deg, rgba(20, 24, 32, .82), rgba(9, 11, 15, .9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.goat-brief-field {
  display: flex;
  align-items: center;
  gap: 16px;
}

.goat-brief-number {
  flex: 0 0 auto;
  padding-bottom: .04em;
  background: linear-gradient(180deg, #ffe9a8 0%, #f5c84b 45%, #d9981a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 76px;
  font-weight: 400;
  line-height: .9;
  font-feature-settings: 'tnum';
  filter: drop-shadow(0 0 22px rgba(245, 200, 75, .3));
}

.goat-brief-title {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.goat-brief-lead p {
  margin: 6px 0 0;
  color: var(--goat-text-2);
  font-size: 14px;
  line-height: 1.45;
}

.goat-brief .goat-teaser {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  margin: 16px 0 0;
}

.goat-brief-cols {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--goat-line);
}

.goat-brief-block h3 {
  margin: 0 0 10px;
}

.goat-rules,
.goat-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.goat-rules li,
.goat-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.goat-rules svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .14);
  color: var(--goat-green);
}

.goat-steps-n {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(245, 200, 75, .45);
  border-radius: 50%;
  color: var(--goat-gold);
  font: 700 11px/1 'JetBrains Mono', ui-monospace, monospace;
}

.goat-rules span,
.goat-steps span:last-child {
  padding-top: 2px;
  color: var(--goat-text);
}

.goat-entry-col .goat-entry {
  margin: 0;
}

@media (min-width: 900px) {
  .goat-intro-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    max-width: none;
  }

  .goat-brief-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Leaderboards: the people's GOAT and the players ─────────────────── */

.goat-boards {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 26px auto 0;
}

@media (min-width: 900px) {
  .goat-boards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    max-width: none;
  }
}

.goat-board {
  min-width: 0;
  padding: 18px 16px 12px;
  border: 1px solid var(--goat-line-strong);
  border-radius: 22px;
  background: rgba(10, 13, 18, .72);
  text-align: left;
}

.goat-board[hidden],
.goat-board-table[hidden],
.goat-board-empty[hidden] {
  display: none;
}

.goat-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 0 4px 8px;
}

.goat-board-head h2 {
  margin: 0;
}

.goat-board-sub {
  margin: -2px 4px 10px;
  color: var(--goat-text-2);
  font-size: 13px;
  line-height: 1.4;
}

.goat-board-note {
  margin: 10px 4px 2px;
  color: var(--goat-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.goat-board-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
}

a.goat-board-author:hover .goat-board-name {
  color: var(--goat-gold-2);
}

.goat-board-author img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #1a2029;
}

.goat-board-author-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.goat-board-author-text small {
  color: var(--goat-muted);
  font: 500 11px/1.35 'JetBrains Mono', ui-monospace, monospace;
  overflow-wrap: anywhere;
}

.goat-board-author-text small:empty {
  display: none;
}

.goat-board-count {
  color: var(--goat-muted);
  font: 600 11px/1.2 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .06em;
}

.goat-board-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.goat-board-table th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--goat-line);
  color: var(--goat-muted);
  font: 600 10px/1.2 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.goat-board-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.goat-board-table tbody tr:last-child td {
  border-bottom: 0;
}

.goat-board-table .is-num {
  text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: 'tnum', 'zero';
  white-space: nowrap;
}

.goat-board-table td.goat-board-rank {
  width: 2.4em;
  color: var(--goat-text-2);
  font: 700 13px/1 'JetBrains Mono', ui-monospace, monospace;
}

.goat-board-table tr.is-top td.goat-board-rank {
  color: var(--goat-gold);
}

.goat-board-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.goat-board-table td.goat-board-score {
  color: var(--goat-gold-2);
  font-weight: 700;
}

.goat-board-you {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 200, 75, .16);
  color: var(--goat-gold);
  font: 700 10px/1.4 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.goat-board-table tr.is-you td {
  background: rgba(245, 200, 75, .08);
}

.goat-board-table tr.is-you td:first-child {
  border-radius: 10px 0 0 10px;
}

.goat-board-table tr.is-you td:last-child {
  border-radius: 0 10px 10px 0;
}

.goat-board-table tr.goat-board-gap td {
  padding: 0 8px;
  border-bottom: 0;
  color: var(--goat-muted);
  text-align: center;
  letter-spacing: .3em;
}

.goat-board-empty {
  margin: 6px 4px 8px;
  color: var(--goat-text-2);
  font-size: 14px;
}

/* ── Duel ─────────────────────────────────────────────────────────────── */

.goat-duel {
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  min-height: inherit;
  margin: 0 auto;
  padding: 14px 16px 24px;
}

.goat-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.goat-hud-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--goat-text-2);
  font-size: 13px;
}

.goat-hud-player img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1.5px solid rgba(245, 200, 75, .6);
  border-radius: 50%;
  object-fit: cover;
  background: #1a2029;
}

.goat-hud-player span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goat-hud-round {
  padding: 8px 14px;
  border: 1px solid rgba(245, 200, 75, .38);
  border-radius: 999px;
  background: rgba(245, 200, 75, .08);
  color: var(--goat-gold);
  font: 700 11.5px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.goat-duel.is-final .goat-hud-round {
  border-color: rgba(255, 122, 26, .7);
  background: rgba(255, 122, 26, .14);
  color: #ffb27a;
}

.goat-hud-mode {
  justify-self: end;
  overflow: hidden;
  color: var(--goat-muted);
  font: 600 10.5px/1.2 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .12em;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.goat-rail {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.goat-rail li {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1.5px dashed rgba(255, 255, 255, .16);
  border-radius: 50%;
}

.goat-rail li.is-current {
  border: 2px solid var(--goat-gold);
  box-shadow: 0 0 14px rgba(245, 200, 75, .45);
  animation: goat-pulse 1.4s ease-in-out infinite;
}

.goat-rail li.is-out {
  border: 0;
}

.goat-rail li.is-new {
  animation: goat-out-in .45s var(--goat-ease) both;
}

@keyframes goat-out-in {
  from { opacity: 0; transform: translateY(10px) scale(.6); }
  to { opacity: 1; transform: none; }
}

.goat-rail img {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #1b2230;
  border-radius: 50%;
  object-fit: cover;
  background: #1a2029;
  filter: grayscale(1) brightness(.72);
}

/* The strike: a red line across the face. */
.goat-rail li.is-out::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 122%;
  height: 3px;
  border-radius: 2px;
  background: var(--goat-red);
  box-shadow: 0 0 0 1.5px #05070a;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Green: the data agreed with crossing them out; red: it did not. */
.goat-rail li.is-out::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 2px solid #07090d;
  border-radius: 50%;
  background: #4b5563;
}

.goat-rail li.is-w::after { background: var(--goat-green); }
.goat-rail li.is-l::after { background: var(--goat-red); }

.goat-question {
  margin: 16px 0 12px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(27px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.goat-arena {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.goat-card {
  --mx: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas:
    "media body"
    "stats stats";
  align-items: center;
  gap: 12px 14px;
  width: 100%;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--goat-line-strong);
  border-radius: var(--goat-radius);
  background: linear-gradient(180deg, rgba(23, 28, 37, .94), rgba(11, 14, 19, .96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  color: var(--goat-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .28s var(--goat-ease), border-color .25s ease, box-shadow .25s ease, opacity .3s ease, filter .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.goat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at var(--mx) -10%, rgba(245, 200, 75, .12), transparent 62%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.goat-card:focus-visible {
  outline: 2px solid var(--goat-gold);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .goat-arena:not(.is-revealed) .goat-card:hover {
    border-color: rgba(245, 200, 75, .6);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 200, 75, .22), 0 0 46px rgba(245, 200, 75, .14);
    transform: translateY(-5px);
  }

  .goat-arena:not(.is-revealed) .goat-card:hover::before {
    opacity: 1;
  }
}

.goat-arena:not(.is-revealed) .goat-card:active {
  transform: scale(.985);
}

.goat-card-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font: 700 10px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.goat-card-flag:empty {
  display: none;
}

.goat-card.is-champion .goat-card-flag {
  background: linear-gradient(180deg, #ffd766, #e6a91d);
  color: #1a1204;
  box-shadow: 0 6px 18px rgba(245, 200, 75, .3);
}

.goat-card.is-challenger .goat-card-flag {
  border: 1px solid rgba(255, 122, 26, .55);
  background: rgba(255, 122, 26, .12);
  color: #ffb27a;
  animation: goat-flag-flash 1.2s ease-out both;
}

@keyframes goat-flag-flash {
  0% { transform: scale(.6); opacity: 0; box-shadow: 0 0 0 rgba(255, 122, 26, 0); }
  35% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 26px rgba(255, 122, 26, .6); }
  100% { transform: none; box-shadow: 0 0 0 rgba(255, 122, 26, 0); }
}

.goat-card-stamp {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--goat-gold);
  color: #1a1204;
  box-shadow: 0 6px 20px rgba(245, 200, 75, .45);
  transform: scale(0);
  transition: transform .38s cubic-bezier(.3, 1.6, .5, 1);
}

.goat-card-stamp svg {
  width: 20px;
  height: 20px;
}

.goat-card.is-picked .goat-card-stamp {
  transform: scale(1);
}

.goat-card-media {
  position: relative;
  grid-area: media;
  width: 88px;
  height: 88px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .06));
}

.goat-card.is-champion .goat-card-media {
  background: conic-gradient(from 210deg, #f5c84b, #fff0b8, #c48c12, #f5c84b);
  box-shadow: 0 0 34px rgba(245, 200, 75, .38);
}

.goat-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #18202b;
}

.goat-card-initials {
  position: absolute;
  inset: 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #273041, #151b25);
  color: #d7dee8;
  font: 700 26px/1 'Geist', Inter, sans-serif;
}

.goat-card-initials[hidden],
.goat-card-media img[hidden] {
  display: none;
}

.goat-card-body {
  display: flex;
  flex-direction: column;
  grid-area: body;
  gap: 3px;
  min-width: 0;
  padding-right: 6px;
}

.goat-card-name {
  color: var(--goat-text);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.goat-card-handle {
  color: var(--goat-text-2);
  font: 500 12.5px/1.3 'JetBrains Mono', ui-monospace, monospace;
}

.goat-card-handle:empty,
.goat-card-role:empty,
.goat-card-tags:empty {
  display: none;
}

.goat-card-role {
  display: -webkit-box;
  overflow: hidden;
  color: var(--goat-muted);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.goat-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.goat-chip {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  color: #cfd6df;
  font: 600 10.5px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .04em;
  white-space: nowrap;
}

.goat-chip--cat {
  border-color: rgba(245, 200, 75, .26);
  background: rgba(245, 200, 75, .07);
  color: var(--goat-gold-2);
  font-family: 'Geist', Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0;
}

.goat-card-lock,
.goat-card-stats {
  grid-area: stats;
}

.goat-card-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px dashed rgba(255, 255, 255, .13);
  border-radius: 12px;
  color: var(--goat-muted);
  font-size: 12px;
  text-align: center;
}

.goat-card-lock svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.goat-card-stats {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.goat-arena.is-revealed .goat-card-lock,
.goat-card.is-known .goat-card-lock {
  display: none;
}

.goat-card.is-known .goat-card-stats {
  display: grid;
}

.goat-arena.is-revealed .goat-card-stats {
  display: grid;
  animation: goat-stats-in .45s var(--goat-ease) both;
}

@keyframes goat-stats-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.goat-arena.is-revealed .goat-card {
  cursor: default;
}

.goat-card.is-picked {
  border-color: var(--goat-gold);
  box-shadow: 0 0 0 1px var(--goat-gold), 0 0 60px rgba(245, 200, 75, .24), 0 30px 70px rgba(0, 0, 0, .55);
  transform: translateY(-3px);
}

.goat-card.is-rejected {
  filter: grayscale(.85) brightness(.78);
  opacity: .6;
  transform: scale(.97);
}

.goat-card.is-leaving {
  animation: goat-card-out .3s ease-in forwards;
}

.goat-card.is-entering {
  animation: goat-card-in .5s var(--goat-ease) both;
}

@keyframes goat-card-out {
  to { opacity: 0; transform: translateY(26px) rotate(-2deg) scale(.92); filter: grayscale(1) blur(2px); }
}

@keyframes goat-card-in {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.goat-arena.is-final .goat-card.is-challenger {
  border-color: rgba(255, 122, 26, .6);
  box-shadow: 0 0 0 1px rgba(255, 122, 26, .3), 0 0 60px rgba(255, 122, 26, .16), 0 24px 60px rgba(0, 0, 0, .45);
}

.goat-vs {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  height: 0;
  pointer-events: none;
}

.goat-vs-medallion {
  width: 58px;
  height: 58px;
  margin: -29px 0;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(255, 122, 26, .55));
  transition: opacity .3s ease, transform .3s ease;
}

.goat-arena.is-revealed .goat-vs-medallion {
  opacity: 0;
  transform: scale(.6) rotate(-20deg);
}

.goat-verdict-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 3px solid #05070a;
  border-radius: 50%;
  color: #04120c;
  transform: scale(0);
  transition: transform .42s cubic-bezier(.3, 1.6, .5, 1) .05s;
}

.goat-verdict-badge svg {
  width: 28px;
  height: 28px;
}

.goat-verdict-badge.is-w {
  background: radial-gradient(circle at 35% 30%, #6ff0c0, #13a574);
  box-shadow: 0 0 36px rgba(52, 211, 153, .55);
}

.goat-verdict-badge.is-l {
  background: radial-gradient(circle at 35% 30%, #ff98a6, #c9304a);
  box-shadow: 0 0 36px rgba(255, 91, 114, .5);
  color: #1d0409;
}

.goat-verdict-badge.is-n {
  background: #4b5563;
  color: #e5e7eb;
}

.goat-arena.is-revealed .goat-verdict-badge {
  transform: scale(1);
}

.goat-arena.is-judging .goat-card {
  cursor: progress;
}

.goat-arena.is-judging .goat-card.is-picked .goat-card-lock {
  border-color: rgba(245, 200, 75, .4);
  color: var(--goat-gold-2);
}

.goat-arena.is-judging .goat-card.is-picked .goat-card-lock svg {
  animation: goat-pulse 1s ease-in-out infinite;
}

.goat-retry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 0;
  color: var(--goat-red);
  font-size: 14px;
}

.goat-retry[hidden] {
  display: none;
}

.goat-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 118px;
  margin-top: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.goat-reveal.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease .12s, visibility 0s;
}

.goat-verdict {
  max-width: 640px;
  margin: 0;
  color: var(--goat-text-2);
  font-size: 14.5px;
  line-height: 1.45;
  text-align: center;
}

.goat-verdict strong {
  font: 700 12px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.goat-verdict strong.is-w { color: var(--goat-green); }
.goat-verdict strong.is-l { color: var(--goat-red); }
.goat-verdict strong.is-n { color: var(--goat-text-2); }

.goat-next {
  overflow: hidden;
  min-width: 210px;
}

.goat-next-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(26, 18, 4, .38);
  transform: scaleX(0);
  transform-origin: left;
}

.goat-next.is-timing .goat-next-timer {
  animation: goat-timer var(--goat-auto, 4s) linear forwards;
}

@keyframes goat-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.goat-hint {
  margin: 10px 0 0;
  color: var(--goat-muted);
  font-size: 12px;
  text-align: center;
  transition: opacity .2s ease;
}

.goat-reveal.is-on + .goat-hint {
  opacity: 0;
}

@media (min-width: 760px) {
  .goat-duel {
    padding-top: 20px;
  }

  .goat-arena {
    grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
  }

  .goat-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "body"
      "stats";
    align-content: start;
    justify-items: center;
    gap: 16px;
    min-height: 470px;
    padding: 30px 24px 22px;
    text-align: center;
  }

  .goat-card-media {
    width: 172px;
    height: 172px;
    padding: 4px;
  }

  .goat-card-initials {
    inset: 4px;
    font-size: 44px;
  }

  .goat-card-body {
    align-items: center;
    width: 100%;
    padding-right: 0;
  }

  .goat-card-name {
    font-size: clamp(34px, 3.4vw, 42px);
  }

  .goat-card-tags {
    justify-content: center;
  }

  .goat-card-lock,
  .goat-card-stats {
    align-self: end;
    width: 100%;
  }

  .goat-card-lock {
    min-height: 58px;
  }

  .goat-stat strong {
    font-size: 18px;
  }

  .goat-vs {
    height: auto;
  }

  .goat-vs-medallion {
    width: 116px;
    height: 116px;
    margin: 0;
    animation: goat-vs-float 4.5s ease-in-out infinite;
  }

  .goat-verdict-badge {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
  }

  .goat-verdict-badge svg {
    width: 38px;
    height: 38px;
  }

  .goat-verdict {
    font-size: 15.5px;
  }
}

@keyframes goat-vs-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); filter: drop-shadow(0 0 22px rgba(255, 122, 26, .5)); }
  50% { transform: translateY(-6px) rotate(2deg); filter: drop-shadow(0 0 34px rgba(255, 122, 26, .75)); }
}

@media (max-width: 759px) {
  .goat-card-stats .goat-stat {
    padding: 7px 4px;
  }

  .goat-card-stats .goat-stat small {
    font-size: 8.5px;
    letter-spacing: .04em;
  }

  .goat-card-stats .goat-stat strong {
    font-size: 14px;
  }

  .goat-reveal {
    min-height: 104px;
  }

  .goat-hud-mode {
    display: none;
  }

  .goat-hud {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ── Result ───────────────────────────────────────────────────────────── */

.goat-result {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.goat-result-grid {
  display: grid;
  gap: 18px;
}

.goat-crowned {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 26px;
  border: 1px solid rgba(245, 200, 75, .36);
  border-radius: 28px;
  background:
    radial-gradient(600px 320px at 50% 0%, rgba(245, 200, 75, .18), transparent 70%),
    linear-gradient(180deg, rgba(26, 21, 9, .92), rgba(10, 11, 14, .96));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 224, 138, .14);
  text-align: center;
}

.goat-crowned::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 150px;
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(from 0deg, rgba(245, 200, 75, .075) 0deg 5deg, transparent 5deg 16deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  animation: goat-spin 80s linear infinite;
  pointer-events: none;
}

.goat-crowned > * {
  position: relative;
}

@keyframes goat-spin {
  to { transform: rotate(360deg); }
}

.goat-crowned-portrait {
  position: relative;
  width: 184px;
  height: 184px;
  margin: 58px auto 0;
}

.goat-crowned-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border: 5px solid var(--goat-gold);
  border-radius: 50%;
  object-fit: cover;
  background: #18202b;
  box-shadow: 0 0 0 7px rgba(245, 200, 75, .12), 0 0 90px rgba(245, 200, 75, .45);
}

.goat-crowned-initials {
  inset: 0;
  border: 5px solid var(--goat-gold);
  font-size: 56px;
}

.goat-crown {
  position: absolute;
  top: -66px;
  left: 50%;
  width: 112px;
  color: var(--goat-gold);
  filter: drop-shadow(0 8px 22px rgba(245, 200, 75, .55));
  transform: translateX(-50%) rotate(-7deg);
  animation: goat-crown-drop .9s cubic-bezier(.3, 1.5, .5, 1) .25s both;
}

@keyframes goat-crown-drop {
  from { opacity: 0; transform: translate(-50%, -60px) rotate(-30deg) scale(.6); }
  to { opacity: 1; transform: translateX(-50%) rotate(-7deg); }
}

.goat-crowned-rank {
  position: absolute;
  left: 50%;
  bottom: -14px;
  padding: 7px 14px;
  border: 1.5px solid var(--goat-gold);
  border-radius: 999px;
  background: #0c0a04;
  color: var(--goat-gold);
  font: 700 12px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .1em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.goat-crowned-rank:empty {
  display: none;
}

.goat-crowned-name {
  margin: 34px 0 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(42px, 6.4vw, 66px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.goat-crowned-handle {
  margin: 8px 0 0;
  color: var(--goat-text-2);
  font: 500 14px/1.3 'JetBrains Mono', ui-monospace, monospace;
}

.goat-crowned-handle:empty {
  display: none;
}

.goat-crowned-survived {
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 200, 75, .12);
  color: var(--goat-gold-2);
  font-size: 13px;
  font-weight: 600;
}

.goat-crowned-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 460px;
  margin: 20px auto 18px;
}

.goat-crowned-stats .goat-stat {
  background: rgba(0, 0, 0, .28);
}

.goat-scorecard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px;
  border: 1px solid var(--goat-line-strong);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 24, 32, .94), rgba(9, 11, 15, .96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.goat-score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.goat-score strong {
  font: 700 clamp(58px, 9vw, 84px)/.95 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: 'tnum', 'zero';
  letter-spacing: -.04em;
}

.goat-score span {
  color: var(--goat-gold);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.goat-tier-desc {
  margin: 0;
  color: var(--goat-text);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.25;
}

.goat-grid {
  display: grid;
  grid-template-columns: repeat(var(--cells, 15), minmax(0, 1fr));
  gap: 5px;
  max-width: 520px;
}

.goat-grid span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #2a313c;
  animation: goat-cell-in .35s cubic-bezier(.3, 1.5, .5, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms + .2s);
}

.goat-grid span.is-w { background: var(--goat-green); box-shadow: 0 0 14px rgba(52, 211, 153, .25); }
.goat-grid span.is-l { background: var(--goat-red); box-shadow: 0 0 14px rgba(255, 91, 114, .2); }

@keyframes goat-cell-in {
  from { opacity: 0; transform: scale(.3); }
  to { opacity: 1; transform: none; }
}

.goat-instinct-detail {
  margin: 0;
  color: var(--goat-text-2);
  font-size: 14px;
}

.goat-recorded {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(52, 211, 153, .1), rgba(52, 211, 153, .02));
}

.goat-recorded[hidden] {
  display: none;
}

.goat-recorded img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.goat-recorded div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.goat-recorded strong {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.goat-recorded span {
  color: var(--goat-text-2);
  font-size: 13px;
}

.goat-again-btn {
  width: 100%;
}

.goat-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.goat-share {
  margin-top: 4px;
}

.goat-share .goat-btn--x {
  flex: 1 1 100%;
  min-height: 54px;
  font-size: 16px;
}

.goat-share .goat-btn--ghost {
  flex: 1 1 0;
}

.goat-again-error {
  margin: 0;
  color: var(--goat-red);
  font-size: 13px;
}

.goat-gauntlet {
  margin-top: 18px;
  padding: 18px 20px 20px;
  border: 1px solid var(--goat-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .02);
}

.goat-gauntlet ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.goat-gauntlet li {
  position: relative;
  animation: goat-face-in .4s var(--goat-ease) both;
  animation-delay: calc(var(--i, 0) * 45ms + .35s);
}

.goat-gauntlet img {
  display: block;
  width: 44px;
  height: 44px;
  border: 2px solid #1b2230;
  border-radius: 50%;
  object-fit: cover;
  background: #1a2029;
  filter: grayscale(.75);
  opacity: .82;
}

.goat-gauntlet li::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border: 2px solid #07090d;
  border-radius: 50%;
  background: #4b5563;
}

.goat-gauntlet li.is-w::after { background: var(--goat-green); }
.goat-gauntlet li.is-l::after { background: var(--goat-red); }

.goat-method {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--goat-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.goat-dock {
  display: none;
}

@media (max-width: 899px) {
  .goat-page[data-goat-state="result"] .goat-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--bz-mobile-tabbar-total-h, 0px) + 12px);
    z-index: 1750;
    display: flex;
    transition: opacity .25s ease, transform .25s ease;
  }

  .goat-page[data-goat-state="result"] .goat-dock.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }

  .goat-dock .goat-btn--x {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  }

  .goat-result {
    padding-bottom: 96px;
  }
}

.goat-confetti {
  position: fixed;
  inset: 0;
  z-index: 1700;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  visibility: hidden;
}

.goat-confetti.is-on {
  visibility: visible;
}

@media (min-width: 900px) {
  .goat-result {
    padding-top: 36px;
  }

  .goat-result-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 22px;
  }

  .goat-scorecard {
    justify-content: center;
    padding: 34px 32px;
  }

  .goat-share .goat-btn--x {
    flex: 1 1 auto;
  }
}

@media (max-width: 559px) {
  .goat-intro-inner {
    padding-top: 18px;
  }

  .goat-kicker {
    gap: 8px;
    font-size: 10px;
  }

  .goat-kicker-dot {
    display: none;
  }

  .goat-title {
    margin-top: 14px;
    font-size: clamp(44px, 13vw, 60px);
  }

  .goat-intro-grid {
    margin-top: 18px;
  }

  .goat-brief {
    padding: 18px 16px 16px;
    border-radius: 22px;
  }

  .goat-brief-number {
    font-size: 62px;
  }

  .goat-brief-title {
    font-size: 25px;
  }

  .goat-rail {
    gap: 5px;
  }

  .goat-rail li {
    width: 26px;
    height: 26px;
  }

  .goat-select {
    padding: 16px;
    border-radius: 22px;
  }

  .goat-select-head p {
    font-size: 13px;
  }

  .goat-board {
    padding: 14px 10px 8px;
  }

  .goat-board-table th,
  .goat-board-table td {
    padding-left: 5px;
    padding-right: 5px;
  }

  .goat-crowned {
    padding: 22px 16px 20px;
  }

  .goat-crowned-portrait {
    width: 150px;
    height: 150px;
    margin-top: 50px;
  }

  .goat-crown {
    top: -56px;
    width: 94px;
  }

  .goat-crowned-name {
    margin-top: 30px;
  }

  .goat-crowned-stats {
    gap: 6px;
    margin: 16px auto 14px;
  }

  .goat-scorecard {
    padding: 22px 18px;
  }
}

@media (max-width: 419px) {
  .goat-board-points {
    display: none;
  }
}

.goat-result .goat-boards {
  max-width: none;
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .goat-page *,
  .goat-page *::before,
  .goat-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .goat-ember {
    display: none;
  }
}
