@import url("https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap");

:root {
  color-scheme: dark;
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1c1c1f;
  --bone: #eceae1;
  --bone-dim: rgba(236, 234, 225, 0.56);
  --bone-faint: rgba(236, 234, 225, 0.36);
  --line: rgba(236, 234, 225, 0.12);
  --line-2: rgba(236, 234, 225, 0.22);
  --grass: #19e08a;
  --grass-dim: rgba(25, 224, 138, 0.14);
  --live: #ff4d2e;
  --pitch: var(--ink);
  --pitch-2: var(--ink);
  --night: var(--ink-3);
  --card: var(--ink-2);
  --card-2: var(--ink-2);
  --chalk: var(--bone);
  --chalk-dim: var(--bone-dim);
  --chalk-faint: var(--bone-faint);
  --amber: var(--grass);
  --klaxon: var(--live);
  --good: var(--grass);
  --bad: var(--live);
  --grad-floodlit: radial-gradient(120% 80% at 50% 0%, #131316 0%, var(--ink) 70%);
  --grad-amber-glow: radial-gradient(80% 120% at 100% 0%, rgba(25, 224, 138, 0.06), transparent);
  --motif-arc: rgba(236, 234, 225, 0.1);
  --font-display: "Anton", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --display-hero: 400 46px/0.92 var(--font-display);
  --display-title: 400 26px/0.96 var(--font-display);
  --display-wordmark: 400 25px/1 var(--font-display);
  --display-stat: 400 30px/1 var(--font-display);
  --body-lg: 400 16px/1.5 var(--font-body);
  --body-md: 400 14px/1.5 var(--font-body);
  --body-sm: 400 13px/1.5 var(--font-body);
  --label: 700 11px/1 var(--font-body);
  --button: 700 13px/1 var(--font-body);
  --mono-clock: 700 14px/1 var(--font-mono);
  --mono-odds: 700 15px/1 var(--font-mono);
  --mono-score: 700 14px/1 var(--font-mono);
  --mono-sm: 700 10px/1 var(--font-mono);
  --track-label: 0.16em;
  --track-button: 0.06em;
  --track-pill: 0.14em;
  --track-eyebrow: 0.18em;
  --track-display: 0.01em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --app-max-width: 384px;
  --web-max-width: 1200px;
  --web-content: 680px;
  --web-rail: 320px;
  --tap-min: 44px;
  --screen-gutter: 20px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-2xl: 0px;
  --radius-pill: 0px;
  --border-width: 1px;
  --ring-width: 1px;
  --shadow-pop: 0 16px 50px rgba(0, 0, 0, 0.6);
  --shadow-card: none;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fade: 0.35s;
  --dur-tap: 0.12s;
  --grass-deep: var(--ink);
  --touchline: var(--chalk);
  --muted: var(--chalk-dim);
  --faint: var(--chalk-faint);
  --surface: var(--card);
  --surface-2: var(--card-2);
  --surface-3: var(--night);
  --coral: var(--klaxon);
  --sky: var(--chalk-dim);
  --mint: var(--good);
  --rose: var(--bad);
  --shadow: rgba(0, 0, 0, 0.6);
  --radius: var(--radius-sm);
  font-family: var(--font-body);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(120, 200, 220, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(255, 107, 74, 0.16), transparent 26rem),
    linear-gradient(140deg, var(--grass) 0%, var(--grass-deep) 58%, #041611 100%);
  color: var(--chalk);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
select,
textarea {
  background: rgba(6, 23, 19, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--chalk);
  min-width: 0;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 84px;
  padding: 12px;
  resize: vertical;
}

::placeholder {
  color: rgba(255, 249, 234, 0.44);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.app-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 88px;
}

.landing-shell,
.setup-shell {
  min-height: 100vh;
}

.landing-hero {
  min-height: min(860px, 96vh);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.landing-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 22, 17, 0.94), rgba(4, 22, 17, 0.58) 44%, rgba(4, 22, 17, 0.24)),
    radial-gradient(circle at 84% 18%, rgba(247, 200, 67, 0.28), transparent 16rem),
    radial-gradient(circle at 72% 74%, rgba(120, 200, 220, 0.2), transparent 20rem),
    linear-gradient(145deg, var(--pitch-2) 0%, var(--pitch) 48%, #041611 100%);
}

.landing-bg .pitch-visual {
  inset: 17% 5% 7% 38%;
  opacity: 0.78;
}

.landing-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 18px 46px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.landing-grid {
  min-height: calc(min(860px, 96vh) - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.74fr);
  gap: 32px;
  align-items: center;
}

.landing-copy {
  max-width: 720px;
}

.landing-lede {
  max-width: 620px;
  color: rgba(255, 249, 234, 0.84);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.38;
}

.landing-actions,
.landing-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-actions {
  margin-top: 24px;
}

.landing-proof {
  margin-top: 24px;
  color: var(--muted);
}

.landing-proof span {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.42);
}

.landing-proof strong {
  color: var(--amber);
  font-size: 24px;
}

.signup-card,
.hero-product-card,
.explain-card,
.compliance-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 47, 41, 0.82);
  box-shadow: 0 24px 80px var(--shadow);
}

.signup-card {
  padding: 22px;
  backdrop-filter: blur(16px);
}

.hero-product-card {
  position: absolute;
  right: 7%;
  bottom: 11%;
  width: min(370px, 34vw);
  padding: 16px;
}

.hero-product-card h3 {
  margin: 12px 0 8px;
}

.hero-product-card p {
  color: var(--muted);
  line-height: 1.45;
}

.mini-slip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mini-slip strong {
  color: var(--amber);
}

.landing-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 26px 18px 110px;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.explain-card {
  min-height: 190px;
  padding: 18px;
  box-shadow: none;
}

.explain-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
  font-weight: 900;
}

.explain-card p {
  color: var(--muted);
  line-height: 1.46;
}

.compliance-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 18px;
  box-shadow: none;
}

.onboarding-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(247, 200, 67, 0.14), transparent 26rem),
    linear-gradient(150deg, #041611, var(--pitch) 56%, #041611);
}

.phone-frame {
  width: min(450px, 100%);
  min-height: min(860px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -10%, rgba(11, 90, 63, 0.72), transparent 18rem),
    var(--grass-deep);
  box-shadow: 0 28px 90px var(--shadow);
}

.onboarding-screen {
  min-height: min(860px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px;
}

.onboarding-screen.wide {
  min-height: auto;
}

.onboarding-head {
  display: grid;
  gap: 8px;
}

.onboarding-head .wordmark {
  margin-top: 6px;
}

.onboarding-head h1 {
  max-width: none;
  margin: 8px 0 2px;
  font-size: 34px;
  line-height: 0.98;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.center-note {
  text-align: center;
}

.points-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.56);
}

.points-stepper button,
.emoji-grid button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.42);
  color: var(--chalk);
}

.points-stepper strong {
  color: var(--amber);
  font-size: 22px;
  text-align: center;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.36);
}

.toggle-row strong,
.toggle-row em {
  display: block;
}

.toggle-row em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.switch {
  width: 52px;
  height: 28px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
}

.switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--chalk);
  transition: transform 0.2s ease;
}

.switch.on {
  background: var(--amber);
  border-color: var(--amber);
}

.switch.on span {
  background: var(--ink);
  transform: translateX(24px);
}

.advanced-box,
.gaffer-quote,
.share-panel,
.invite-code {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 47, 41, 0.72);
  padding: 14px;
}

.advanced-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.advanced-box span {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.avatar.big {
  width: 76px;
  height: 76px;
  font-size: 22px;
}

.avatar-picker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.emoji-grid button {
  min-height: 46px;
  font-weight: 900;
}

.emoji-grid button.is-active,
.tone-row.is-active {
  border-color: var(--amber);
  background: rgba(247, 200, 67, 0.12);
}

.tone-stack {
  display: grid;
  gap: 8px;
}

.tone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--chalk);
  text-align: left;
}

.tone-row strong,
.tone-row em {
  display: block;
}

.tone-row em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.share-panel {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 8px;
  border-style: dashed;
  color: var(--chalk);
  text-align: center;
}

.share-panel svg {
  width: 34px;
  height: 34px;
  color: var(--coral);
}

.share-panel span {
  color: var(--muted);
  font-size: 13px;
}

.invite-code {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
}

.invite-code span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.invite-code strong {
  color: var(--amber);
  font-size: 20px;
}

.invite-code button {
  grid-row: 1 / 3;
  grid-column: 2;
}

.joined-list {
  display: grid;
  gap: 8px;
}

.gaffer-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.gaffer-quote p {
  margin: 0;
  color: var(--chalk);
  line-height: 1.48;
}

.onboarding-builder {
  grid-template-columns: 1fr;
}

.full-field {
  grid-column: 1 / -1;
}

.setup-shell {
  display: grid;
  place-items: center;
  padding: 18px;
}

.setup-panel {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.78);
  box-shadow: 0 28px 80px var(--shadow);
}

.setup-art {
  min-height: 560px;
  padding: 28px;
  background:
    linear-gradient(rgba(6, 23, 19, 0.2), rgba(6, 23, 19, 0.66)),
    repeating-linear-gradient(90deg, rgba(255, 249, 234, 0.04) 0 1px, transparent 1px 78px),
    linear-gradient(160deg, rgba(11, 90, 63, 0.95), rgba(6, 37, 30, 0.95));
  position: relative;
}

.pitch-visual {
  position: absolute;
  inset: 104px 34px 42px;
  border: 2px solid rgba(255, 249, 234, 0.42);
  border-radius: var(--radius);
}

.pitch-visual::before,
.pitch-visual::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 249, 234, 0.32);
}

.pitch-visual::before {
  inset: 24% auto 24% 0;
  width: 22%;
  border-left: 0;
}

.pitch-visual::after {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  left: calc(50% - 59px);
  top: calc(50% - 59px);
}

.halfway-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 249, 234, 0.32);
}

.setup-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 504px;
}

.setup-form {
  padding: 30px;
  background:
    radial-gradient(circle at 78% 0%, rgba(247, 200, 67, 0.12), transparent 18rem),
    var(--surface);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}

.wordmark-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--amber);
  font-weight: 800;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.92;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.tiny {
  font-size: 12px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tone-option,
.nav-button,
.choice-button,
.icon-button,
.primary-button,
.secondary-button,
.ghost-button,
.reaction-button,
.stepper-button {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.tone-option {
  min-height: 62px;
  padding: 10px;
  background: rgba(6, 23, 19, 0.56);
  color: var(--muted);
  text-align: left;
}

.tone-option strong {
  display: block;
  color: var(--chalk);
  margin-bottom: 3px;
}

.tone-option.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.tone-option.is-active strong {
  color: var(--ink);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.secondary-button {
  background: rgba(120, 200, 220, 0.14);
  color: var(--chalk);
}

.ghost-button {
  background: transparent;
  color: var(--muted);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.86);
  backdrop-filter: blur(16px);
}

.league-meta {
  min-width: 0;
}

.league-meta strong,
.league-meta span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.league-meta strong {
  font-size: 16px;
}

.league-meta span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.status-cluster {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pill.is-hot {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.pill.is-live {
  color: var(--chalk);
  background: rgba(255, 107, 74, 0.22);
  border-color: rgba(255, 107, 74, 0.48);
}

.pill.is-good {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.main-pane,
.side-pane,
.panel,
.feed-entry,
.round-rail,
.fixture-card,
.result-card,
.fulltime-card,
.admin-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.main-pane,
.side-pane {
  background: rgba(6, 23, 19, 0.58);
}

.main-pane {
  min-height: calc(100vh - 132px);
  overflow: hidden;
}

.side-pane {
  position: sticky;
  top: 96px;
  padding: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-title h2 {
  margin: 0;
}

.round-rail {
  margin: 16px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(247, 200, 67, 0.12), transparent),
    var(--surface);
}

.round-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(88px, 0.4fr));
  gap: 12px;
  align-items: center;
}

.stat {
  min-width: 0;
}

.stat-value {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-value.good {
  color: var(--mint);
}

.stat-value.bad {
  color: var(--rose);
}

.stat-value.hot {
  color: var(--amber);
}

.feed {
  padding: 0 16px 16px;
}

.feed-entry {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(16, 47, 41, 0.72);
}

.feed-entry.is-system {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  text-align: center;
  background: rgba(120, 200, 220, 0.09);
}

.feed-entry.is-fulltime {
  display: block;
  padding: 0;
  border-color: rgba(247, 200, 67, 0.58);
  overflow: hidden;
}

.feed-entry.is-reply {
  margin-left: 52px;
  background: rgba(6, 23, 19, 0.38);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--chalk);
  font-weight: 900;
}

.avatar.gaffer {
  border-color: var(--coral);
  color: var(--coral);
}

.avatar.you {
  border-color: var(--amber);
  color: var(--amber);
}

.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.post-author span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.post-body {
  color: var(--chalk);
  line-height: 1.48;
}

.post-body.muted {
  color: var(--muted);
}

.post-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.reaction-button,
.icon-button,
.stepper-button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 32px;
  background: rgba(6, 23, 19, 0.44);
  color: var(--muted);
}

.reaction-button {
  grid-auto-flow: column;
  gap: 5px;
  padding: 0 9px;
  font-size: 12px;
}

.reaction-button.has-count {
  color: var(--chalk);
  background: rgba(247, 200, 67, 0.14);
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(6, 23, 19, 0.54);
}

.reply-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(120, 200, 220, 0.09);
  font-size: 12px;
}

.composer input {
  height: 46px;
  border-radius: var(--radius);
}

.fixture-list,
.admin-grid,
.table-grid,
.shout-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.shout-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  align-items: start;
}

.panel {
  background: var(--surface);
  overflow: hidden;
}

.panel-pad {
  padding: 14px;
}

.fixture-card,
.result-card,
.admin-block {
  background: rgba(16, 47, 41, 0.86);
  padding: 12px;
}

.fixture-head,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fixture-head {
  margin-bottom: 10px;
}

.fixture-title {
  min-width: 0;
  font-weight: 900;
}

.fixture-title span {
  color: var(--muted);
  font-weight: 600;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-button {
  min-height: 64px;
  padding: 8px;
  background: rgba(6, 23, 19, 0.56);
  color: var(--chalk);
  text-align: center;
}

.choice-button strong,
.choice-button span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.choice-button strong {
  font-size: 13px;
}

.choice-button span {
  margin-top: 4px;
  color: var(--sky);
  font-weight: 900;
}

.choice-button.is-selected {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.choice-button.is-selected span {
  color: var(--ink);
}

.stake-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 8px;
}

.stake-value {
  min-width: 28px;
  color: var(--amber);
  font-weight: 900;
  text-align: center;
}

.allocation-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 16px 0;
}

.allocation-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.45);
}

.submit-strip {
  position: sticky;
  bottom: 74px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(6, 23, 19, 0.9);
}

.pick-list {
  display: grid;
  gap: 8px;
}

.pick-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.36);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
}

.table td:last-child,
.table th:last-child {
  text-align: right;
}

.table .good {
  color: var(--mint);
  font-weight: 800;
}

.table .bad {
  color: var(--rose);
  font-weight: 800;
}

.fulltime-card {
  background: var(--surface);
}

.fulltime-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 900;
}

.fulltime-body {
  padding: 14px;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.daily-winner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.daily-winner-strip span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 249, 234, 0.12);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(120, 200, 220, 0.08);
  font-size: 12px;
}

.daily-winner-strip strong {
  color: var(--chalk);
}

.award {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.36);
}

.award span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.award strong {
  display: block;
  margin-top: 4px;
}

.jackpot-panel {
  border-color: rgba(247, 200, 67, 0.6);
  background:
    radial-gradient(circle at 80% 0%, rgba(247, 200, 67, 0.16), transparent 16rem),
    var(--surface);
}

.jackpot-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--amber);
  font-size: clamp(52px, 8vw, 78px);
  font-weight: 900;
  line-height: 1;
}

.jackpot-number.compact {
  color: var(--chalk);
  font-size: 48px;
}

.jackpot-number span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.jackpot-bar {
  height: 10px;
  margin: 18px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.jackpot-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-head h3 {
  margin-bottom: 4px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menu-list {
  display: grid;
}

.menu-list button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--chalk);
  text-align: left;
}

.menu-list button:last-child {
  border-bottom: 0;
}

.menu-list button svg:first-child {
  color: var(--muted);
}

.menu-list button.danger,
.menu-list button.danger svg {
  color: var(--rose);
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-block.full {
  grid-column: 1 / -1;
}

.result-controls {
  display: grid;
  gap: 10px;
}

.round-builder {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 160px minmax(0, 1.4fr) auto;
  gap: 12px;
  align-items: end;
}

.fixture-picker {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.fixture-pick-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.32);
}

.fixture-pick-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--amber);
}

.fixture-pick-row span,
.fixture-pick-row em,
.fixture-pick-row b {
  min-width: 0;
}

.fixture-pick-row strong,
.fixture-pick-row em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fixture-pick-row em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.fixture-pick-row b {
  color: var(--amber);
  font-size: 12px;
  text-align: right;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 110px;
  gap: 8px;
  align-items: center;
}

.side-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.side-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border-radius: var(--radius);
  background: rgba(16, 47, 41, 0.72);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 30;
  width: min(620px, calc(100% - 28px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 44px var(--shadow);
}

.nav-button {
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.nav-button.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.nav-button svg {
  width: 18px;
  height: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  z-index: 40;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--chalk);
  box-shadow: 0 14px 42px var(--shadow);
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .layout,
  .setup-panel,
  .landing-grid,
  .shout-grid,
  .admin-grid,
  .round-builder {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-bg .pitch-visual {
    inset: 10% 4% 48% 8%;
  }

  .landing-grid {
    min-height: 0;
    padding-top: 46px;
  }

  .hero-product-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
  }

  .explain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-pane {
    position: static;
    order: -1;
  }

  .setup-art {
    min-height: 320px;
  }

  .setup-copy {
    min-height: 260px;
  }

  .round-grid,
  .allocation-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 8px 8px 86px;
  }

  .landing-content,
  .landing-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-links {
    width: 100%;
    justify-content: space-between;
  }

  .landing-actions,
  .compliance-note {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-actions .primary-button,
  .landing-actions .secondary-button {
    width: 100%;
  }

  .explain-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar .wordmark {
    display: none;
  }

  .status-cluster {
    justify-content: flex-end;
  }

  .round-grid,
  .allocation-bar,
  .award-grid,
  .tone-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    gap: 6px;
  }

  .choice-button {
    min-height: 58px;
    padding: 7px 4px;
  }

  .submit-strip {
    bottom: 72px;
    align-items: stretch;
    flex-direction: column;
  }

  .composer {
    grid-template-columns: 1fr auto;
    padding: 10px;
  }

  .feed,
  .fixture-list,
  .admin-grid,
  .table-grid,
  .shout-grid,
  .section-header,
  .allocation-bar {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ------------------------------------------------------------------
 * The Shout Design System application layer
 * ------------------------------------------------------------------ */
html,
body {
  background:
    radial-gradient(120% 80% at 50% 0%, var(--pitch-2), #04150f 80%),
    var(--night);
  font-family: var(--font-body);
}

body {
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--pitch-2), #04150f 80%),
    var(--night);
}

#app {
  width: min(var(--app-max-width), 100%);
}

.app-shell {
  width: min(var(--app-max-width), 100%);
  min-height: min(820px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  margin: 0 auto;
  padding: 0 0 76px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--grad-floodlit);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.landing-shell {
  min-height: auto;
  display: grid;
  place-items: center;
}

.landing-hero {
  width: min(var(--app-max-width), 100%);
  min-height: min(820px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--grad-floodlit);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.landing-bg {
  background: var(--grad-floodlit);
}

.landing-grid {
  grid-template-columns: 1fr;
  min-height: calc(min(820px, calc(100vh - 44px)) - 86px);
  gap: var(--space-6);
  align-content: center;
}

.landing-copy h1,
.onboarding-head h1,
h1,
h2,
.section-title h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0;
}

.landing-copy h1 {
  max-width: 10ch;
  font: 600 clamp(44px, 14vw, 76px) / 0.92 var(--font-display);
}

.landing-lede {
  color: var(--chalk);
  font: var(--fw-medium) 20px/1.25 var(--font-body);
}

.landing-section {
  width: min(var(--app-max-width), 100%);
  padding: var(--space-5) 0 0;
}

.explain-grid {
  grid-template-columns: 1fr;
}

.landing-proof,
.landing-links {
  display: none;
}

.hero-product-card,
.signup-card,
.explain-card,
.compliance-note,
.panel,
.feed-entry,
.round-rail,
.fixture-card,
.result-card,
.fulltime-card,
.admin-block,
.allocation-card,
.pick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: none;
}

.layout {
  display: block;
}

.side-pane {
  display: none;
}

.main-pane {
  min-height: auto;
  height: calc(min(820px, calc(100vh - 44px)) - 76px);
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  padding: 14px var(--screen-gutter) 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(11, 61, 46, 0.95);
  backdrop-filter: blur(10px);
}

.wordmark {
  align-items: baseline;
  gap: 2px;
  color: var(--chalk);
  font: var(--display-wordmark);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wordmark-mark {
  width: 0.35em;
  height: 0.35em;
  display: inline-block;
  border-radius: var(--radius-pill);
  background: var(--klaxon);
  color: transparent;
  transform: translateY(-2px);
}

.wordmark-mark svg {
  display: none;
}

.eyebrow,
.stat-label,
.section-title,
.pill,
.fixture-pick-row em,
.fulltime-banner,
.post-author .pill {
  letter-spacing: var(--track-label);
}

.eyebrow,
.stat-label,
.pill {
  font: var(--label);
  text-transform: uppercase;
}

.pill {
  min-height: 27px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--chalk-dim);
}

.pill.is-hot {
  color: var(--night);
  background: var(--amber);
  border-color: var(--amber);
}

.pill.is-live {
  color: var(--chalk);
  background: rgba(255, 92, 57, 0.18);
  border-color: rgba(255, 92, 57, 0.48);
}

.primary-button {
  min-height: var(--tap-min);
  border-radius: var(--radius-lg);
  background: var(--amber);
  border-color: var(--amber);
  color: var(--night);
  font: var(--button);
  letter-spacing: var(--track-button);
  text-transform: uppercase;
}

.secondary-button,
.ghost-button {
  min-height: var(--tap-min);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--chalk);
  border-color: var(--line);
  box-shadow: none;
}

input,
select,
textarea,
.composer input {
  min-height: var(--tap-min);
  border-radius: var(--radius-lg);
  background: var(--night);
  border-color: var(--line);
  color: var(--chalk);
  font: var(--body-md);
}

.round-rail {
  margin: var(--space-4) var(--screen-gutter);
  padding: var(--space-4);
  background-color: var(--card);
}

.round-rail h3,
.round-rail h2,
.panel h3,
.fulltime-banner,
.stat-value {
  font-family: var(--font-display);
  text-transform: uppercase;
}

.stat-value,
.jackpot-number,
.choice-button span,
.fixture-pick-row b,
.stake-value,
.status-cluster .pill:first-child,
.table td:nth-child(3),
.table td:last-child {
  font-family: var(--font-mono);
}

.stat-value {
  font: var(--display-stat);
}

.feed {
  padding: 0 var(--screen-gutter) var(--space-4);
}

.feed-entry {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  margin-bottom: var(--space-4);
  border: 0;
  background: transparent;
}

.feed-entry.is-system {
  display: block;
  padding: 0;
  color: var(--chalk-dim);
  background: transparent;
}

.feed-entry.is-system span,
.feed-entry.is-system {
  font: var(--mono-sm);
}

.post-body {
  font: var(--body-md);
}

.feed-entry .post-body {
  color: var(--chalk-dim);
}

.avatar {
  width: 36px;
  height: 36px;
  border-width: var(--ring-width);
  border-radius: var(--radius-pill);
  background: var(--night);
  font: var(--fw-bold) 12px/1 var(--font-body);
}

.avatar.gaffer {
  border-color: var(--klaxon);
  color: var(--klaxon);
}

.avatar.you {
  border-color: var(--amber);
  color: var(--amber);
}

.post-author span:first-child {
  font: var(--fw-semibold) 13px/1 var(--font-body);
}

.post-author .pill {
  color: var(--klaxon);
}

.feed-entry.is-gaffer .post-author span:first-child {
  color: var(--klaxon);
}

.feed-entry.is-gaffer .post-body {
  margin-top: 5px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-2);
  color: var(--chalk);
}

.reaction-button {
  min-height: 28px;
  min-width: 34px;
  border-radius: var(--radius-pill);
  background: transparent;
  border-color: transparent;
  color: var(--chalk-dim);
  font: var(--mono-sm);
}

.reaction-button.has-count {
  background: rgba(255, 210, 63, 0.1);
  border-color: rgba(255, 210, 63, 0.28);
  color: var(--amber);
}

.composer {
  padding: var(--space-3) var(--screen-gutter) var(--space-4);
  background: linear-gradient(transparent, var(--night) 30%);
}

.composer input {
  border-radius: var(--radius-pill);
}

.choice-button {
  min-height: 64px;
  border-radius: var(--radius-md);
  background: var(--night);
}

.choice-button.is-selected {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--night);
}

.choice-button span {
  color: var(--amber);
}

.choice-button.is-selected span {
  color: var(--night);
}

.fixture-card {
  border-radius: var(--radius-xl);
}

.fulltime-card {
  border-color: var(--amber);
  border-radius: var(--radius-2xl);
}

.fulltime-banner {
  background: var(--amber);
  color: var(--night);
}

.bottom-nav {
  width: calc(100% - 24px);
  max-width: calc(var(--app-max-width) - 24px);
  bottom: 12px;
  border-radius: var(--radius-2xl);
  background: rgba(6, 35, 27, 0.94);
  box-shadow: var(--shadow-pop);
}

.nav-button {
  min-height: var(--tap-min);
  border-radius: var(--radius-lg);
  font: var(--fw-medium) 12px/1 var(--font-body);
}

.nav-button.is-active {
  background: var(--amber);
  color: var(--night);
  border-color: var(--amber);
}

.onboarding-stage {
  padding: 0;
  background: transparent;
}

.phone-frame {
  border-radius: 28px;
  background: var(--grad-floodlit);
}

.onboarding-screen {
  color: var(--chalk);
}

.share-panel,
.advanced-box,
.gaffer-quote,
.invite-code,
.toggle-row {
  background: var(--card);
}

.switch.on {
  background: var(--amber);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.feed-entry,
.fulltime-card {
  animation: fadeUp var(--dur-fade) var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  .feed-entry,
  .fulltime-card {
    animation: none;
  }
}

@media (max-width: 620px) {
  body {
    padding: 0;
  }

  #app,
  .app-shell,
  .landing-hero,
  .phone-frame {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .main-pane {
    height: calc(100vh - 76px);
  }

  .topbar .wordmark {
    display: inline-flex;
  }
}

/* ------------------------------------------------------------------
 * Desktop website mode
 * ------------------------------------------------------------------ */
body {
  display: block;
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(70% 42% at 50% -8%, rgba(11, 61, 46, 0.95), transparent 62%),
    radial-gradient(38% 42% at 86% 12%, rgba(255, 92, 57, 0.12), transparent 68%),
    linear-gradient(150deg, var(--pitch) 0%, var(--pitch-2) 48%, var(--night) 100%);
}

#app {
  width: 100%;
}

.landing-shell {
  display: block;
  min-height: 100vh;
}

.landing-hero {
  width: 100%;
  min-height: min(820px, 94vh);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.landing-bg {
  background:
    linear-gradient(90deg, rgba(6, 35, 27, 0.96), rgba(6, 35, 27, 0.72) 44%, rgba(6, 35, 27, 0.3)),
    var(--grad-floodlit);
}

.landing-bg .pitch-visual {
  inset: 18% 5% 8% 42%;
  opacity: 0.82;
}

.landing-content {
  width: min(1180px, calc(100% - 48px));
  min-height: min(820px, 94vh);
  padding: 22px 0 54px;
}

.landing-nav {
  min-height: 64px;
}

.landing-links {
  display: flex;
}

.landing-grid {
  min-height: calc(min(820px, 94vh) - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.landing-copy h1 {
  max-width: 11ch;
  font-size: clamp(72px, 9vw, 128px);
}

.landing-lede {
  max-width: 680px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
}

.landing-proof {
  display: flex;
}

.signup-card {
  padding: 24px;
  background: rgba(14, 58, 44, 0.9);
}

.hero-product-card {
  width: min(390px, 30vw);
}

.landing-section {
  width: min(1180px, calc(100% - 48px));
  padding: 34px 0 92px;
}

.explain-grid {
  grid-template-columns: repeat(4, 1fr);
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(70% 46% at 50% -12%, rgba(11, 61, 46, 0.96), transparent 70%),
    linear-gradient(150deg, var(--pitch) 0%, var(--pitch-2) 52%, var(--night) 100%);
  padding: 0 24px 36px;
}

.topbar {
  width: min(1240px, 100%);
  margin: 0 auto 18px;
  padding: 16px 0;
  grid-template-columns: auto minmax(170px, 1fr) auto auto;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  backdrop-filter: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: rgba(6, 35, 27, 0.72);
}

.desktop-nav-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--chalk-dim);
  font: var(--fw-semibold) 13px/1 var(--font-body);
}

.desktop-nav-button svg {
  width: 17px;
  height: 17px;
}

.desktop-nav-button.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--night);
}

.league-switcher {
  width: min(260px, 100%);
  height: 34px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
}

.layout {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.layout.is-home-layout {
  grid-template-columns: 1fr;
}

.main-pane {
  height: auto;
  min-height: calc(100vh - 118px);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: rgba(6, 35, 27, 0.48);
}

.side-pane {
  display: block;
  position: sticky;
  top: 88px;
  border-radius: var(--radius-2xl);
  background: rgba(6, 35, 27, 0.48);
}

.bottom-nav {
  display: none;
}

.section-header {
  padding: 18px 20px 0;
}

.round-rail {
  margin: 18px 20px;
}

.feed,
.fixture-list,
.admin-grid,
.table-grid,
.shout-grid {
  padding-left: 20px;
  padding-right: 20px;
}

.composer {
  position: sticky;
  bottom: 0;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

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

.table-grid > .panel:first-child:last-child,
.table-grid > .panel:nth-child(3),
.table-grid > .panel:nth-child(4) {
  min-width: 0;
}

.shout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
}

.admin-grid,
.round-builder {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-block.full {
  grid-column: 1 / -1;
}

.round-builder .field:nth-child(3) {
  grid-column: 1 / -1;
}

.round-builder .primary-button {
  justify-self: start;
}

.onboarding-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background:
    radial-gradient(60% 48% at 50% -10%, rgba(11, 61, 46, 0.96), transparent 70%),
    linear-gradient(150deg, var(--pitch) 0%, var(--pitch-2) 52%, var(--night) 100%);
}

.phone-frame {
  width: min(980px, 100%);
  min-height: auto;
  max-height: none;
  overflow: visible;
  border-radius: var(--radius-2xl);
  background: rgba(6, 35, 27, 0.62);
  box-shadow: none;
}

.onboarding-screen {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 30px;
  padding: 30px;
  align-items: start;
}

.onboarding-screen > .onboarding-head {
  position: sticky;
  top: 30px;
}

.onboarding-screen > .form-grid,
.onboarding-screen > .round-builder,
.onboarding-screen > .share-panel,
.onboarding-screen > .invite-code,
.onboarding-screen > .joined-list,
.onboarding-screen > .gaffer-quote,
.onboarding-screen > .side-item,
.onboarding-screen > .avatar-picker,
.onboarding-screen > .emoji-grid,
.onboarding-screen > .primary-button,
.onboarding-screen > .ghost-button,
.onboarding-screen > .center-note {
  grid-column: 2;
}

.onboarding-screen.wide {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
}

.onboarding-builder {
  grid-template-columns: 1fr 180px;
}

.onboarding-builder .full-field {
  grid-column: 1 / -1;
}

.insight-grid,
.briefing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 18px;
}

.briefing-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.briefing-grid > .aggregate-panel {
  grid-column: 1 / -1;
}

.briefing-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(247, 200, 67, 0.12), transparent),
    rgba(16, 47, 41, 0.78);
}

.briefing-hero h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(247, 200, 67, 0.12), transparent),
    rgba(16, 47, 41, 0.78);
}

.home-hero h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.home-summary-grid {
  min-width: min(420px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-latest {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(120, 200, 220, 0.08);
}

.home-latest span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.league-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
}

.league-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.38);
}

.league-card.is-active {
  border-color: rgba(255, 210, 63, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.2);
}

.league-card-top,
.league-card-footer,
.setup-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.league-card-top {
  align-items: flex-start;
}

.league-card h3 {
  margin: 10px 0 4px;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-stat-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-chip-row,
.daily-card-list {
  display: grid;
  gap: 8px;
}

.daily-chip-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-chip-row span,
.daily-card {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.34);
}

.daily-chip-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.daily-panel {
  grid-column: 1 / -1;
}

.daily-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(190px, 0.8fr);
  gap: 10px;
  align-items: center;
}

.daily-card.is-next {
  border-color: rgba(255, 210, 63, 0.58);
}

.daily-card span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.daily-card strong {
  min-width: 0;
}

.daily-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.daily-fixtures {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.daily-fixtures b {
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid rgba(255, 249, 234, 0.12);
  border-radius: var(--radius-sm);
  color: var(--chalk);
  background: rgba(120, 200, 220, 0.08);
  font-size: 11px;
  line-height: 1.15;
}

.daily-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 16px 20px 0;
}

.daily-tabs.is-admin {
  padding: 0 0 12px;
}

.daily-tab {
  min-height: 58px;
  display: grid;
  gap: 3px;
  align-content: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.42);
  color: var(--chalk);
  text-align: left;
}

.daily-tab.is-active {
  border-color: var(--amber);
  background: rgba(247, 200, 67, 0.14);
}

.daily-tab strong,
.daily-tab span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.daily-tab strong {
  color: var(--amber);
  font-size: 12px;
  text-transform: uppercase;
}

.daily-tab span {
  color: var(--muted);
  font-size: 11px;
}

.league-card-footer {
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.form-grid .full-field,
.round-builder .full-field {
  grid-column: 1 / -1;
}

.mode-card {
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.38);
  color: var(--chalk);
  text-align: left;
}

.mode-card strong,
.mode-card span {
  display: block;
}

.mode-card strong {
  margin-bottom: 8px;
}

.mode-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mode-card.is-active {
  background: rgba(255, 210, 63, 0.14);
  border-color: var(--amber);
}

.setup-hint {
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(120, 200, 220, 0.08);
}

.setup-hint strong {
  color: var(--chalk);
  white-space: nowrap;
}

.help-tip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 5px;
}

.help-tip > span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.help-tip em {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: min(260px, 72vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.98);
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-card);
}

.help-tip em strong {
  display: block;
  margin-bottom: 4px;
  color: var(--chalk);
}

.help-tip:hover em,
.help-tip:focus-within em {
  opacity: 1;
}

.data-panel {
  grid-column: 1 / -1;
}

.data-card-list,
.movement-list {
  display: grid;
  gap: 8px;
}

.data-card,
.movement-snapshot,
.score-breakdown > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.34);
}

.data-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(100px, 0.5fr) minmax(140px, 0.7fr);
  gap: 8px;
  align-items: center;
}

.data-card strong,
.data-card span,
.data-card em,
.data-card p {
  min-width: 0;
}

.data-card span {
  color: var(--amber);
  font-weight: 900;
}

.data-card em,
.data-card p {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.data-card p {
  grid-column: 1 / -1;
}

.movement-panel {
  grid-column: 1 / -1;
}

.round-day-breakdown {
  display: grid;
  gap: 6px;
  min-width: 180px;
  margin-top: 8px;
}

.round-day-breakdown > div,
.round-day-breakdown > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 249, 234, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(6, 23, 19, 0.34);
}

.round-day-breakdown span {
  color: var(--muted);
  font-size: 12px;
}

.round-day-breakdown strong {
  color: var(--amber);
}

.movement-snapshot {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.movement-snapshot.is-current {
  border-color: rgba(255, 210, 63, 0.58);
}

.movement-snapshot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movement-snapshot strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movement-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 4px;
  border-radius: 50%;
  background: rgba(120, 200, 220, 0.12);
  color: var(--muted);
  font-weight: 900;
}

.movement-badge.up {
  background: rgba(70, 210, 126, 0.18);
  color: var(--mint);
}

.movement-badge.down {
  background: rgba(255, 107, 107, 0.18);
  color: var(--rose);
}

.score-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.score-breakdown span,
.score-breakdown strong {
  display: block;
}

.score-breakdown span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.score-breakdown strong {
  margin-top: 4px;
  color: var(--chalk);
}

.briefing-fixtures,
.briefing-steps,
.live-board {
  display: grid;
  gap: 10px;
}

.briefing-fixture,
.briefing-steps div,
.live-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.38);
}

.briefing-fixture {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.briefing-fixture em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.briefing-steps div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px;
}

.briefing-steps strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
}

.shape-panel,
.aggregate-panel,
.live-board-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(120, 200, 220, 0.08), transparent 16rem),
    rgba(16, 47, 41, 0.78);
}

.shape-head,
.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.shape-head h3,
.board-head h3 {
  margin-bottom: 4px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(247, 200, 67, 0.45);
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.risk-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 23, 19, 0.72);
}

.risk-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--amber), var(--coral));
}

.risk-labels,
.shape-stats,
.aggregate-grid {
  display: grid;
  gap: 8px;
}

.risk-labels {
  grid-template-columns: 1fr 1fr;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.risk-labels span:last-child {
  text-align: right;
}

.shape-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.mini-stat,
.aggregate-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.36);
}

.mini-stat strong,
.mini-stat span,
.aggregate-grid strong,
.aggregate-grid span {
  display: block;
}

.mini-stat strong,
.aggregate-grid strong {
  color: var(--amber);
  font-size: 18px;
  line-height: 1;
}

.mini-stat span,
.aggregate-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.aggregate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.side-shape {
  margin-top: 12px;
}

.side-shape .panel-pad {
  padding: 12px;
}

.side-shape .shape-stats {
  grid-template-columns: 1fr;
}

.side-shape .aggregate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.side-shape .shape-head {
  display: grid;
}

.live-board-panel {
  grid-column: 1 / -1;
}

.live-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(3, minmax(84px, auto)) minmax(170px, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.live-row strong,
.live-row span {
  display: block;
}

.live-stat {
  min-width: 0;
}

.live-stat span {
  color: var(--amber);
  font-weight: 900;
  line-height: 1;
}

.live-stat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.live-row details {
  min-width: 0;
}

.live-row summary {
  color: var(--chalk);
  font-weight: 900;
  cursor: pointer;
}

.live-row details p {
  margin: 8px 0 0;
}

.room-votes {
  padding: 0 20px 18px;
}

.side-pane .room-votes {
  padding: 0;
  margin-top: 12px;
}

.room-votes.is-admin {
  padding: 0;
}

.vote-list {
  display: grid;
  gap: 10px;
}

.vote-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.36);
}

.vote-head,
.vote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vote-head strong,
.vote-head span {
  display: block;
}

.vote-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vote-option,
.shout-tab,
.player-option,
.timing-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.48);
  color: var(--chalk);
}

.vote-option {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
}

.vote-option.is-selected,
.shout-tab.is-active,
.player-option.is-selected,
.timing-option.is-selected {
  border-color: var(--amber);
  background: rgba(247, 200, 67, 0.14);
}

.vote-option strong {
  color: var(--amber);
}

.shout-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 20px 0;
}

.shout-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.players-grid,
.timing-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.player-list,
.timing-list,
.scorer-result-grid {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.player-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-option {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  text-align: left;
}

.player-option strong,
.player-option em {
  display: block;
}

.player-option em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.player-option b,
.timing-option strong {
  color: var(--amber);
}

.timing-option {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  text-align: left;
  font-weight: 900;
}

.scorer-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.scorer-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 23, 19, 0.36);
  color: var(--chalk);
  font-size: 12px;
  font-weight: 800;
}

.scorer-check em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.automation-list {
  display: grid;
  gap: 8px;
}

.automation-row {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--ink-3);
}

.automation-row strong {
  color: var(--grass);
  font: var(--mono-sm);
  letter-spacing: var(--track-pill);
  text-transform: uppercase;
}

.automation-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.provider-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 12px;
  align-items: start;
}

.provider-actions {
  display: grid;
  gap: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-health-grid,
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.analytics-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.analytics-event-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.analytics-event-row {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--ink-3);
}

.analytics-event-row strong {
  color: var(--grass);
  font: var(--mono-sm);
  letter-spacing: var(--track-pill);
  text-transform: uppercase;
}

.analytics-event-row span {
  color: var(--muted);
  font-size: 12px;
}

/* Blackout design-system application layer */
body {
  background: var(--grad-floodlit);
  color: var(--bone);
  font: var(--body-md);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -12vh -8vw auto auto;
  width: min(56vw, 720px);
  aspect-ratio: 1;
  border: 1px solid var(--motif-arc);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
  transform: translate(22%, -42%);
}

input,
select,
textarea {
  min-height: var(--tap-min);
  border-color: var(--line-2);
  border-radius: 0;
  background: var(--ink-3);
  color: var(--bone);
}

input::placeholder,
textarea::placeholder {
  color: var(--bone-faint);
}

:focus-visible {
  outline: 2px solid var(--grass);
  outline-offset: 2px;
}

.app-shell,
.landing-content,
.landing-section,
.landing-hero,
.phone-frame {
  width: min(var(--web-max-width), 100%);
}

.landing-shell,
.onboarding-stage {
  background: var(--ink);
}

.landing-hero,
.landing-bg,
.setup-panel,
.phone-frame {
  border-radius: 0;
  background:
    radial-gradient(90% 56% at 50% 0%, rgba(236, 234, 225, 0.07), transparent 58%),
    var(--ink);
  box-shadow: none;
}

.landing-bg,
.briefing-hero,
.home-hero,
.round-rail {
  position: relative;
  overflow: hidden;
}

.landing-bg::after,
.briefing-hero::after,
.round-rail::after,
.home-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid var(--motif-arc);
  border-radius: 50%;
  pointer-events: none;
}

.landing-bg::after {
  right: -92px;
  top: -148px;
}

.briefing-hero::after,
.round-rail::after,
.home-hero::after {
  right: -140px;
  top: -176px;
}

.landing-copy h1,
.onboarding-head h1,
h1,
h2,
.section-title h2,
.fulltime-banner,
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
}

.landing-copy h1,
h1 {
  font-size: clamp(52px, 8vw, 96px);
}

h2,
.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
}

.eyebrow,
.pill,
.stat-label,
.profile-chip,
.clock,
.league-meta span,
.nav-button,
.daily-tab strong,
.daily-card span,
.vote-head span,
.post-author .pill {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: var(--track-pill);
  text-transform: uppercase;
}

.eyebrow,
.stat-label,
.muted,
.small,
.tiny,
.league-meta span {
  color: var(--bone-dim);
}

.wordmark {
  gap: 7px;
  color: var(--bone);
  font-size: 25px;
  line-height: 1;
}

.wordmark-mark {
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  margin-top: 3px;
  border-radius: 0;
  background: var(--grass);
  color: transparent;
}

.wordmark-mark svg {
  display: none;
}

.topbar {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(11, 11, 12, 0.9);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.main-pane {
  border-color: var(--line);
  border-radius: 0;
  background: transparent;
}

.side-pane,
.panel,
.feed-entry,
.round-rail,
.fixture-card,
.result-card,
.fulltime-card,
.admin-block,
.allocation-card,
.pick-card,
.signup-card,
.hero-product-card,
.explain-card,
.compliance-note,
.home-hero,
.home-latest,
.league-card,
.briefing-hero,
.daily-card,
.daily-chip-row span,
.vote-card,
.data-card,
.live-row,
.movement-snapshot,
.scorer-check,
.result-row {
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--ink-2);
  box-shadow: none;
}

.briefing-hero,
.home-hero,
.round-rail {
  background:
    linear-gradient(90deg, var(--grass-dim), transparent 44%),
    var(--ink-2);
}

.feed-entry,
.post-tools,
.composer,
.table th,
.table td,
.side-item,
.menu-list button,
.movement-snapshot,
.daily-card {
  border-color: var(--line);
}

.feed-entry.is-gaffer {
  border-color: var(--line-2);
  background:
    linear-gradient(90deg, var(--grass-dim), transparent 38%),
    var(--ink-2);
}

.feed-entry.is-you,
.live-row:has(.avatar.you) {
  box-shadow: inset 2px 0 0 var(--grass);
}

.avatar,
.avatar.big {
  border-radius: 0;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.avatar.gaffer {
  border-color: var(--grass);
  background: var(--grass);
  color: var(--ink);
}

.avatar.you {
  border-color: var(--grass);
  background: transparent;
  color: var(--grass);
}

.primary-button,
.secondary-button,
.ghost-button,
.nav-button,
.choice-button,
.tone-option,
.reaction-button,
.stepper-button,
.icon-button,
.vote-option,
.shout-tab,
.player-option,
.timing-option,
.daily-tab,
.mode-card,
.emoji-grid button,
.points-stepper button {
  min-height: var(--tap-min);
  border-radius: 0;
  box-shadow: none;
}

.primary-button,
.choice-button.is-selected,
.tone-option.is-active,
.vote-option.is-selected,
.shout-tab.is-active,
.player-option.is-selected,
.timing-option.is-selected,
.daily-tab.is-active,
.mode-card.is-selected,
.emoji-grid button.is-active,
.nav-button.is-active {
  border-color: var(--grass);
  background: var(--grass);
  color: var(--ink);
}

.primary-button svg,
.choice-button.is-selected svg,
.nav-button.is-active svg {
  color: var(--ink);
}

.secondary-button,
.ghost-button,
.nav-button,
.choice-button,
.tone-option,
.vote-option,
.shout-tab,
.player-option,
.timing-option,
.daily-tab {
  background: transparent;
  color: var(--bone);
}

.secondary-button:hover,
.ghost-button:hover,
.nav-button:hover,
.choice-button:hover,
.vote-option:hover,
.shout-tab:hover,
.player-option:hover,
.timing-option:hover,
.daily-tab:hover {
  border-color: var(--line-2);
}

.pill,
.profile-chip {
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--bone-dim);
}

.pill.is-hot,
.pill.is-good,
.profile-chip,
.stat-value.hot,
.stat-value.good,
.jackpot-number,
.choice-button span,
.player-option b,
.timing-option strong,
.stepper-button,
.stake-value,
.clock,
.good {
  color: var(--grass);
}

.pill.is-live,
.pill.is-bad,
.bad,
.danger,
.over,
.stat-value.bad {
  color: var(--live);
}

.stat-value,
.jackpot-number,
.table td:nth-child(3),
.table td:nth-child(4),
.live-stat span,
.allocation-card .stat-value,
.points-stepper strong,
.stake-value,
.score-breakdown strong,
.round-day-breakdown strong {
  font-family: var(--font-mono);
  font-weight: 700;
}

.table th {
  font: var(--mono-sm);
  color: var(--bone-dim);
  letter-spacing: var(--track-pill);
  text-transform: uppercase;
}

.table tr:hover td,
.live-row:hover,
.league-card:hover {
  background: var(--ink-3);
}

.bottom-nav,
.submit-strip,
.composer {
  border-color: var(--line);
  background: rgba(11, 11, 12, 0.94);
  backdrop-filter: blur(8px);
}

.fulltime-banner {
  background: var(--grass);
  color: var(--ink);
}

.jackpot-panel {
  border-color: var(--grass);
  background:
    linear-gradient(90deg, var(--grass-dim), transparent 42%),
    var(--ink-2);
}

.jackpot-bar,
.bar,
.switch {
  border-radius: 0;
  background: var(--ink-3);
}

.jackpot-bar span,
.bar i,
.switch.on {
  border-radius: 0;
  background: var(--grass);
}

.switch span {
  border-radius: 0;
}

.result-row select,
.result-row input,
.composer input,
.field input,
.field select {
  background: var(--ink-3);
}

.reaction-button span {
  font-family: var(--font-mono);
}

.help-tip > span {
  border-radius: 0;
  background: var(--grass);
  color: var(--ink);
}

.help-tip em {
  border-radius: 0;
  border-color: var(--line-2);
  background: var(--ink-3);
  color: var(--bone);
  box-shadow: var(--shadow-pop);
}

.pitch-visual,
.pitch-visual::before {
  border-color: var(--motif-arc);
  border-radius: 0;
}

.pitch-visual::after {
  border-color: var(--motif-arc);
  border-radius: 50%;
}

.halfway-line {
  background: var(--motif-arc);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: stretch;
  }

  .desktop-nav-button {
    flex: 1;
    justify-content: center;
  }

  .layout,
  .landing-grid,
  .shout-grid,
  .admin-grid,
  .round-builder,
  .table-grid,
  .insight-grid,
  .briefing-grid,
  .league-card-grid,
  .players-grid,
  .timing-grid,
  .provider-grid,
  .analytics-grid,
  .onboarding-screen,
  .onboarding-screen.wide {
    grid-template-columns: 1fr;
  }

  .mode-grid,
  .home-summary-grid,
  .home-stat-grid,
  .daily-chip-row,
  .score-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-card,
  .daily-card,
  .movement-snapshot {
    grid-template-columns: 1fr;
  }

  .provider-health-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .briefing-grid > .aggregate-panel,
  .live-board-panel {
    grid-column: auto;
  }

  .briefing-hero,
  .home-hero,
  .home-latest {
    display: grid;
  }

  .live-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .player-list,
  .scorer-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-row > div:first-child,
  .live-row details {
    grid-column: 1 / -1;
  }

  .side-pane {
    position: static;
  }

  .onboarding-screen > .onboarding-head,
  .onboarding-screen > .form-grid,
  .onboarding-screen > .round-builder,
  .onboarding-screen > .share-panel,
  .onboarding-screen > .invite-code,
  .onboarding-screen > .joined-list,
  .onboarding-screen > .gaffer-quote,
  .onboarding-screen > .side-item,
  .onboarding-screen > .avatar-picker,
  .onboarding-screen > .emoji-grid,
  .onboarding-screen > .primary-button,
  .onboarding-screen > .ghost-button,
  .onboarding-screen > .center-note {
    grid-column: auto;
    position: static;
  }

  .explain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding: 0 0 76px;
  }

  .topbar {
    padding: 14px var(--screen-gutter) 12px;
  }

  .desktop-nav {
    display: none;
  }

  .bottom-nav {
    display: grid;
  }

  .layout {
    display: block;
  }

  .side-pane {
    display: none;
  }

  .main-pane {
    min-height: calc(100vh - 76px);
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .landing-content,
  .landing-section {
    width: calc(100% - 24px);
  }

  .landing-hero,
  .app-shell,
  .phone-frame {
    border-radius: 0;
  }

  .explain-grid {
    grid-template-columns: 1fr;
  }

  .shape-stats,
  .aggregate-grid {
    grid-template-columns: 1fr 1fr;
  }

  .live-row {
    grid-template-columns: 1fr;
  }

  .shout-tabs,
  .vote-options,
  .player-list,
  .scorer-result-grid,
  .mode-grid,
  .home-summary-grid,
  .home-stat-grid,
  .daily-chip-row,
  .score-breakdown,
  .provider-health-grid {
    grid-template-columns: 1fr;
  }
}
