:root {
  color-scheme: light;
  --ink: #0b0b0a;
  --ink-soft: #242420;
  --paper: #fbfbf4;
  --paper-2: #f0f0e8;
  --line: #0b0b0a;
  --muted: #68685d;
  --green: #00a651;
  --green-dark: #007a3d;
  --orange: #ff7a00;
  --yellow: #ffd23c;
  --white: #ffffff;
  --radius: 8px;
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-soft: 0 18px 40px rgba(11, 11, 10, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    repeating-linear-gradient(108deg, transparent 0 24px, rgba(11, 11, 10, 0.035) 24px 26px),
    repeating-linear-gradient(3deg, transparent 0 38px, rgba(0, 166, 81, 0.055) 38px 41px),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(135deg, transparent 0 46%, rgba(11, 11, 10, 0.08) 47% 48%, transparent 49%),
    linear-gradient(45deg, transparent 0 62%, rgba(11, 11, 10, 0.06) 63% 64%, transparent 65%);
  background-position:
    0 0,
    28px 18px;
  background-size:
    180px 120px,
    210px 150px;
  opacity: 0.95;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
.brand strong,
.button,
.nav-button strong,
.tag,
.week-chip strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

h1 {
  max-width: 880px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.05;
}

h4 {
  margin: 8px 0 6px;
  font-size: 1rem;
  line-height: 1.08;
}

p {
  color: var(--muted);
  line-height: 1.42;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
}

.site-banner {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  height: clamp(260px, 29vw, 430px);
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
  background: var(--ink);
  color: inherit;
  text-decoration: none;
}

.site-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: contrast(1.04) saturate(1.08);
}

.site-banner::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 10, 0.24));
  content: "";
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid var(--ink);
  background: rgba(251, 251, 244, 0.94);
  padding: 7px 14px;
  backdrop-filter: blur(14px);
}

.topbar-title {
  position: relative;
  display: block;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  width: min(380px, 34vw);
  height: 64px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  color: inherit;
  text-decoration: none;
  transform: rotate(-0.5deg);
}

.topbar-title::after {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: 46px;
  height: 7px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  content: "";
  transform: rotate(-8deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.topbar-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: contrast(1.04) saturate(1.08);
}

.brand {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.12rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.provider-bar {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.access-bar {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.provider-bar label,
.access-bar label,
label {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 7px;
}

select,
input,
textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  outline: none;
}

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

textarea {
  padding: 14px;
}

select:focus,
input:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.22);
}

.sync-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 2px solid var(--green-dark);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.role-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
}

.role-chip.commissioner {
  background: var(--orange);
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 0 16px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.secondary {
  background: var(--green);
  color: var(--paper);
}

.button.ghost {
  background: var(--white);
  color: var(--ink);
}

.button.chaos {
  background: var(--orange);
  color: var(--ink);
}

.compact-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.button:disabled,
.button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.side-nav {
  position: sticky;
  top: 70px;
  z-index: 30;
  display: flex;
  height: calc(100vh - 70px);
  flex-direction: column;
  gap: 9px;
  border-right: 3px solid var(--ink);
  background: rgba(251, 251, 244, 0.92);
  padding: 12px 10px;
  backdrop-filter: blur(12px);
}

.nav-button {
  display: grid;
  min-height: 64px;
  gap: 5px;
  place-items: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  padding: 7px;
  text-align: center;
}

.nav-button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.nav-button strong {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-button:hover,
.nav-button.active {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-button.active span {
  background: var(--green);
  color: var(--paper);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.league-setup {
  display: grid;
  width: min(1220px, 100%);
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 36px;
  align-items: center;
  margin: 0 auto;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.1) 0 14px, transparent 14px 28px),
    var(--paper);
  padding: 44px;
  box-shadow: 9px 9px 0 var(--ink);
}

.league-setup-copy {
  display: grid;
  gap: 16px;
}

.league-setup h1 {
  max-width: 720px;
  margin: 0;
  font-size: 5rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.league-setup p {
  max-width: 620px;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 850;
}

.league-setup-actions {
  display: grid;
  gap: 12px;
  align-content: center;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 18px;
  box-shadow: 6px 6px 0 var(--green-dark);
}

.league-setup-actions .button {
  min-height: 62px;
  font-size: 1.15rem;
}

.league-setup-actions #openSavedLeague {
  background: var(--green);
  color: var(--white);
}

.league-setup-actions small {
  color: var(--ink-soft);
  font-weight: 900;
  line-height: 1.3;
}

.shared-account-card,
.manual-join-panel {
  display: grid;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
}

.shared-account-card > span,
.manual-join-panel > span,
.shared-league-controls span {
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.shared-account-card label {
  margin-top: 3px;
  font-size: 0.72rem;
}

.shared-auth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.manual-join-panel[hidden] {
  display: none;
}

body:not(.league-connected) .side-nav,
body:not(.league-connected) .topbar,
body:not(.league-connected) .view,
body:not(.league-connected) .access-bar,
body:not(.league-connected) .audit-section,
body:not(.league-connected) .floating-create,
body:not(.league-connected) .page-scroll-controls,
body.league-connected .league-setup {
  display: none;
}

body:not(.league-connected) .workspace {
  grid-column: 1 / -1;
  padding-block: 28px 44px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.view-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
  font-weight: 850;
  line-height: 1.28;
}

.eyebrow {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin: 0 0 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.week-chip {
  display: grid;
  min-width: 128px;
  min-height: 66px;
  align-content: center;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
  padding: 9px 13px;
  box-shadow: 5px 5px 0 var(--ink);
}

.week-chip span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.week-chip strong {
  font-size: 1.75rem;
  line-height: 0.9;
}

.week-chip.danger {
  background: var(--orange);
  color: var(--ink);
}

.action-dock {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 18px;
}

.action-button {
  min-height: 58px;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  font-size: clamp(0.9rem, 1.3vw, 1.25rem);
}

.action-button span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 1000;
}

.war-room {
  margin-bottom: 20px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(11, 11, 10, 0.04) 0 12px, transparent 12px 24px),
    var(--paper);
  padding: 16px;
  box-shadow: var(--shadow-hard);
}

.war-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.war-room-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
}

.war-status-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.war-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
}

.war-sync-actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
}

.league-command-center {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr) minmax(190px, 0.34fr);
  gap: 10px;
  margin-bottom: 12px;
}

.command-summary,
.command-alerts,
.league-chip {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 12px;
}

.command-summary {
  background: var(--ink);
  color: var(--paper);
}

.command-summary span,
.command-alerts span,
.league-chip span,
.alert-item span {
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.command-summary strong,
.command-alerts strong,
.league-chip strong {
  display: block;
  margin-top: 4px;
  line-height: 1.05;
}

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

.league-chip {
  display: grid;
  gap: 4px;
}

.league-chip.active {
  background: var(--green);
  color: var(--paper);
}

.league-chip small {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0.86;
}

.command-alerts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  background: var(--yellow);
}

.war-ticker {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(170px, 0.42fr) minmax(190px, 0.52fr);
  gap: 10px;
  margin-bottom: 12px;
}

.war-ticker div {
  display: grid;
  gap: 4px;
  min-height: 62px;
  align-content: center;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 12px;
}

.war-ticker div:nth-child(2) {
  background: var(--green);
}

.war-ticker div:nth-child(3) {
  background: var(--orange);
  color: var(--ink);
}

.war-ticker span {
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.war-ticker strong {
  overflow-wrap: anywhere;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  line-height: 1.06;
  text-transform: uppercase;
}

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

.war-support-row,
.war-secondary-row {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.war-support-row,
.war-secondary-row {
  grid-template-columns: minmax(0, 1fr);
}

.war-panel {
  min-width: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  padding: 13px;
}

.recap-redzone-panel {
  margin-bottom: 14px;
  border-width: 4px;
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.07) 0 12px, transparent 12px 24px),
    var(--white);
  box-shadow: var(--shadow-hard);
}

.heckle-panel {
  display: grid;
  align-content: start;
  gap: 9px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}

.panic-panel {
  border-width: 4px;
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.09) 0 12px, transparent 12px 24px),
    var(--white);
  box-shadow: 7px 7px 0 var(--ink);
}

.panic-room-banner {
  position: relative;
  display: block;
  height: clamp(170px, 17vw, 250px);
  margin-bottom: 12px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  padding: 0;
  box-shadow: 5px 5px 0 var(--green-dark);
}

.panic-room-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: contrast(1.04) saturate(1.08);
}

.panic-room-fallback-title {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.85;
  text-align: center;
  text-shadow:
    5px 5px 0 var(--green-dark),
    8px 8px 0 var(--ink);
  text-transform: uppercase;
}

.panic-room-banner.fallback-banner {
  background:
    linear-gradient(90deg, rgba(11, 11, 10, 0.74), rgba(11, 11, 10, 0.3)),
    var(--ink);
}

.panic-room-banner.fallback-banner img {
  opacity: 0.42;
}

.panic-room-banner.fallback-banner .panic-room-fallback-title {
  display: grid;
}

.panic-panel .panel-title h3 {
  font-size: clamp(1.3rem, 2.5vw, 2.1rem);
}

.panic-bet-slip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.75fr) minmax(84px, 0.38fr) minmax(230px, 1fr) auto;
  gap: 9px;
  align-items: end;
  margin-bottom: 10px;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(11, 11, 10, 0.05) 0 6px, transparent 6px 12px),
    var(--white);
  padding: 10px;
}

.panic-bet-slip.bet-slip-focus {
  animation: betSlipFlash 950ms ease-out;
}

.panic-odds-preview {
  display: grid;
  min-height: 42px;
  align-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  padding: 7px 9px;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1.15;
  text-transform: uppercase;
}

.panic-bet-slip button {
  grid-column: auto;
  min-height: 42px;
}

.heckle-panel p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 1000;
}

.custom-heckle {
  display: grid;
  gap: 6px;
}

.custom-heckle span {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.custom-heckle textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 850;
}

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

.redzone-feed,
.panic-grid,
.bounty-list,
.receipt-list {
  display: grid;
  gap: 9px;
}

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

.alert-stream {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 9px;
}

.alert-item {
  display: grid;
  gap: 3px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 9px 10px;
}

.alert-item strong {
  font-size: 0.88rem;
  line-height: 1.12;
}

.redzone-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 11px;
}

.redzone-item.active {
  background: var(--ink);
  color: var(--paper);
}

.redzone-item.active p,
.redzone-item.active strong {
  color: var(--paper);
}

.redzone-item p {
  margin-bottom: 0;
  font-size: 0.88rem;
  font-weight: 850;
}

.redzone-item > strong {
  color: var(--green-dark);
  font-size: 0.78rem;
  white-space: nowrap;
}

.redzone-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.panic-card {
  display: grid;
  gap: 9px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 10px;
  cursor: pointer;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    outline-color 150ms ease,
    transform 150ms ease;
}

.panic-card:hover,
.panic-card:focus-visible {
  outline: 4px solid var(--green);
  outline-offset: 3px;
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.12) 0 10px, transparent 10px 20px),
    var(--white);
  box-shadow: 7px 7px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.panic-card.has-bets {
  border-width: 3px;
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.08) 0 10px, transparent 10px 20px),
    var(--paper-2);
}

.panic-card.hot-bet-card {
  outline: 5px solid var(--orange);
  box-shadow: 7px 7px 0 var(--ink);
}

.panic-card.siren-card {
  animation: sirenPulse 900ms ease-in-out infinite alternate;
}

.panic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panic-card-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 1000;
}

.panic-manager {
  display: grid;
  grid-template-columns: minmax(70px, 0.42fr) 44px minmax(0, 1fr) minmax(86px, auto);
  gap: 8px;
  align-items: center;
}

.panic-manager span,
.panic-manager strong {
  font-size: 0.82rem;
  font-weight: 1000;
}

.panic-manager strong {
  text-align: right;
}

.panic-meter {
  height: 13px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.panic-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
}

.win-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 1000;
  white-space: nowrap;
}

.win-chip.gain {
  background: var(--green);
  color: var(--paper);
}

.win-chip.loss {
  background: var(--orange);
  color: var(--ink);
}

.panic-bet-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 10px;
}

.panic-bet-summary span,
.panic-bet-summary strong {
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.panic-receipts {
  display: grid;
  gap: 8px;
}

.panic-receipt {
  display: grid;
  gap: 4px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 0 14px, rgba(11, 11, 10, 0.08) 14px 15px, transparent 15px),
    repeating-linear-gradient(0deg, #fff 0 8px, #f3f3ec 8px 16px);
  padding: 9px 10px;
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  box-shadow: 3px 3px 0 rgba(11, 11, 10, 0.3);
}

.panic-receipt span,
.panic-receipt small {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panic-receipt strong {
  font-size: 0.86rem;
  text-transform: uppercase;
}

.panic-receipt.siren-panic {
  background:
    repeating-linear-gradient(0deg, rgba(255, 122, 0, 0.2) 0 8px, #fff 8px 16px),
    var(--white);
}

.panic-receipt.printing {
  background:
    repeating-linear-gradient(0deg, rgba(0, 166, 81, 0.14) 0 8px, #fff 8px 16px),
    var(--white);
}

.panic-receipt.empty {
  border-style: dashed;
  box-shadow: none;
}

.bounty-item,
.receipt-item {
  display: grid;
  gap: 5px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.bounty-item.hot {
  background: var(--orange);
}

.bounty-item span,
.receipt-item small {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.receipt-item strong {
  font-size: 0.92rem;
}

.receipt-item span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 850;
}

.share-panel {
  background: var(--green);
}

.share-card {
  display: grid;
  min-height: 168px;
  align-content: center;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-12deg, rgba(11, 11, 10, 0.13) 0 9px, transparent 9px 18px),
    var(--white);
  padding: 16px;
  text-align: center;
}

.trading-card {
  position: relative;
  overflow: hidden;
  border-width: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 240, 232, 0.98)),
    var(--white);
}

.trading-card.failure {
  background:
    repeating-linear-gradient(-14deg, rgba(255, 122, 0, 0.2) 0 11px, transparent 11px 22px),
    var(--white);
}

.trading-card.accomplishment {
  background:
    repeating-linear-gradient(-14deg, rgba(0, 166, 81, 0.18) 0 11px, transparent 11px 22px),
    var(--white);
}

.card-topline,
.card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-topline span,
.card-stats span {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
  font-size: 0.66rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.card-portrait {
  display: grid;
  width: min(118px, 48%);
  aspect-ratio: 1 / 1;
  place-items: center;
  margin: 4px auto 0;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-12deg, rgba(11, 11, 10, 0.12) 0 7px, transparent 7px 14px),
    var(--green);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.25rem;
}

.card-name {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.card-copy {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 900;
}

.share-card span,
.share-card small {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.share-card strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2.3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

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

.trial-panel {
  display: grid;
  gap: 9px;
}

.trial-panel > strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.trial-panel p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-weight: 900;
}

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

.trial-votes button {
  min-height: 38px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 1000;
  text-transform: uppercase;
}

.trial-votes button:hover {
  background: var(--green);
  color: var(--paper);
}

.hero-grid,
.trash-layout,
.rankings-grid,
.recap-grid,
.wheel-layout,
.history-grid,
.clubhouse-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  margin-bottom: 18px;
}

.media-stage {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow-hard);
}

.media-stage::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 11, 10, 0.42), transparent 38%),
    linear-gradient(0deg, rgba(11, 11, 10, 0.46), transparent 48%);
}

.media-stage img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.stage-overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  gap: 12px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(251, 251, 244, 0.94);
  padding: 14px;
  box-shadow: 5px 5px 0 var(--ink);
}

.stage-overlay p {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.stage-overlay h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3.2vw, 2.8rem);
}

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

.stage-metrics span {
  display: grid;
  min-height: 56px;
  align-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.stage-metrics strong {
  display: block;
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.news-panel,
.composer,
.board-shell,
.method-panel,
.rivalry-section,
.awards-section,
.script-section,
.settings-panel,
.wheel-rules,
.wheel-stage,
.wheel-controls,
.memories-section,
.lore-section,
.personality-section,
.trade-section,
.waiver-section {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(251, 251, 244, 0.97);
  box-shadow: var(--shadow-soft);
}

.news-panel,
.composer,
.board-shell,
.method-panel,
.rivalry-section,
.awards-section,
.script-section,
.settings-panel,
.wheel-rules,
.wheel-controls,
.memories-section,
.lore-section,
.personality-section,
.trade-section,
.waiver-section {
  padding: 16px;
}

.news-panel {
  display: grid;
  align-content: start;
}

.panel-title,
.board-header,
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  justify-content: flex-start;
}

.live-dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
}

.headline-list,
.formula-list,
.option-list,
.challenge-list,
.lore-list,
.personality-list,
.waiver-list,
.award-list,
.rivalry-list,
.trash-board {
  display: grid;
  gap: 10px;
}

.headline-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.headline-list li,
.debate-box,
.challenge-item,
.lore-item,
.personality-item,
.waiver-item,
.award-item,
.rivalry-item,
.trash-post,
.rank-row,
.trade-result,
.beef-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.headline-list li {
  padding: 12px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.18;
}

.headline-list li:first-child {
  background: var(--ink);
  color: var(--paper);
}

.beef-card {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--paper-2);
}

.beef-card strong {
  font-size: 1rem;
}

.beef-card p {
  margin: 0;
  font-size: 0.86rem;
}

.commissioner-card {
  border-left-width: 10px;
  border-left-color: var(--orange);
}

.mini-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.clubhouse-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  margin-bottom: 18px;
}

.exchange-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1fr) minmax(280px, auto);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 94px;
  margin-bottom: 12px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-10deg, rgba(0, 166, 81, 0.15) 0 12px, rgba(255, 255, 255, 0.86) 12px 24px),
    var(--white);
  padding: 12px 18px;
  box-shadow: var(--shadow-hard);
}

.exchange-hero .tag {
  width: fit-content;
}

.exchange-hero .button {
  min-height: 48px;
}

.sportsbook-command-copy {
  display: grid;
  gap: 7px;
}

.sportsbook-command-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.sportsbook-command-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1.22;
}

.sportsbook-command-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.sportsbook-command-stats article {
  display: grid;
  min-height: 72px;
  align-content: center;
  gap: 4px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 9px 10px;
}

.sportsbook-command-stats span,
.book-card-head span,
.book-card-foot span,
.book-team-row span,
.book-line span,
.book-odds-preview span,
.book-odds-preview small,
.protocol-assignment small,
.protocol-option-chip span {
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1.16;
  text-transform: uppercase;
}

.sportsbook-command-stats strong {
  font-size: 1.05rem;
  line-height: 1.02;
  text-transform: uppercase;
}

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

.weekly-book-board,
.blue-tent-protocol {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-12deg, rgba(0, 166, 81, 0.11) 0 12px, rgba(251, 251, 244, 0.82) 12px 24px),
    rgba(251, 251, 244, 0.98);
  padding: 15px;
  box-shadow: var(--shadow-soft);
}

.weekly-book-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.weekly-book-head h2,
.blue-tent-protocol h2 {
  margin: 2px 0 0;
  font-size: clamp(1.4rem, 2.7vw, 2.4rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.book-slip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.8fr) minmax(90px, 0.36fr) auto minmax(260px, 1.15fr);
  gap: 10px;
  align-items: end;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 10px;
}

.book-odds-preview {
  display: grid;
  min-height: 64px;
  align-content: center;
  gap: 3px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(11, 11, 10, 0.04) 0 7px, transparent 7px 14px),
    var(--paper);
  padding: 9px 10px;
}

.book-odds-preview strong {
  font-size: 0.96rem;
  line-height: 1.14;
}

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

.weekly-book-card {
  display: grid;
  gap: 10px;
  cursor: pointer;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    outline-color 160ms ease;
}

.weekly-book-card:hover,
.weekly-book-card:focus-visible,
.weekly-book-card.selected {
  outline: 4px solid var(--orange);
  outline-offset: -5px;
  box-shadow: 7px 7px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.weekly-book-card.hot-book-card {
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.24), transparent 48%),
    var(--white);
}

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

.book-card-head h3 {
  margin: 3px 0 0;
  font-size: 1.35rem;
  line-height: 0.98;
}

.book-card-head > strong {
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 7px 9px;
  font-size: 0.78rem;
}

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

.book-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(76px, auto) minmax(92px, auto);
  gap: 9px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.07) 0 9px, transparent 9px 18px),
    var(--paper);
  padding: 9px;
}

.book-team-row strong,
.protocol-assignment h3 {
  display: block;
  font-size: 1rem;
  line-height: 1.05;
}

.book-line {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.book-line strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.35rem;
  line-height: 0.95;
}

.book-money-split {
  display: flex;
  height: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.book-money-split span,
.book-money-split i {
  display: block;
  height: 100%;
}

.book-money-split span {
  background: var(--green);
}

.book-money-split i {
  background: var(--orange);
}

.blue-tent-protocol {
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
  background:
    linear-gradient(135deg, rgba(255, 210, 51, 0.42), transparent 38%),
    rgba(251, 251, 244, 0.98);
}

.protocol-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.protocol-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.3;
}

.protocol-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr);
  gap: 10px;
}

.protocol-assignment {
  display: grid;
  gap: 8px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 12px;
}

.protocol-assignment p {
  margin: 0;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
}

.protocol-assignment small {
  color: var(--yellow);
}

.protocol-assignment .danger-tag {
  background: var(--orange);
  color: var(--ink);
}

.protocol-controls,
.protocol-option-form {
  display: grid;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.protocol-actions,
.protocol-option-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.protocol-option-form label {
  grid-column: 1 / -1;
}

.protocol-option-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.protocol-option-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  padding: 5px 6px 5px 10px;
}

.protocol-option-chip button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 1000;
  line-height: 1;
}

.exchange-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.exchange-score-grid article,
.portfolio-card,
.stock-card,
.receipt-score,
.exhibit-item,
.wager-item,
.boost-item {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.exchange-score-grid article {
  display: grid;
  gap: 4px;
  padding: 13px;
  box-shadow: 5px 5px 0 var(--ink);
}

.exchange-score-grid span,
.portfolio-card span,
.stock-meta span,
.receipt-score span,
.exhibit-item span,
.wager-item span,
.boost-item span {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.exchange-score-grid strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.8rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.exchange-score-grid small {
  color: var(--muted);
  font-weight: 900;
}

.exchange-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.market-board,
.league-market-board,
.trade-ticket,
.future-ticket,
.receipts-machine,
.wager-desk,
.boost-desk {
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(251, 251, 244, 0.97);
  padding: 15px;
  box-shadow: var(--shadow-soft);
}

.league-market-board {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(0, 166, 81, 0.08), transparent 34%),
    rgba(251, 251, 244, 0.98);
}

.market-board,
.receipts-machine {
  grid-row: span 2;
}

.market-create-strip {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(190px, 1fr) minmax(230px, auto);
  gap: 10px;
  align-items: end;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 10px;
}

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

.market-create-actions .button {
  min-height: 52px;
  padding-inline: 12px;
}

.custom-market-queue {
  display: grid;
  gap: 10px;
}

.custom-queue-head,
.custom-queue-item {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.custom-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 12px;
}

.custom-queue-head strong,
.custom-queue-head span {
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.custom-queue-list {
  display: grid;
  gap: 9px;
}

.custom-queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(11, 11, 10, 0.04) 0 7px, transparent 7px 14px),
    var(--paper);
  padding: 11px;
}

.custom-queue-item span,
.custom-queue-item small {
  display: block;
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 1000;
  line-height: 1.2;
  text-transform: uppercase;
}

.custom-queue-item strong {
  display: block;
  margin: 4px 0;
  font-size: 1rem;
  line-height: 1.1;
}

.custom-queue-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.market-command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.35fr);
  gap: 12px;
  align-items: stretch;
}

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

.prediction-card {
  display: grid;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(0, 166, 81, 0.07) 0 8px, transparent 8px 17px),
    var(--white);
  padding: 12px;
  box-shadow: 5px 5px 0 var(--ink);
}

.prediction-card.hot-market {
  outline: 4px solid var(--orange);
  outline-offset: -7px;
}

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

.prediction-card-head span,
.market-meta-row span,
.market-position span,
.market-position small,
.market-receipt span,
.market-receipt small {
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1.2;
  text-transform: uppercase;
}

.prediction-card-head strong {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  padding: 4px 8px;
  color: var(--paper);
  font-size: 0.75rem;
}

.prediction-card-head strong.down {
  background: var(--orange);
  color: var(--ink);
}

.prediction-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.02;
}

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

.prediction-price-row > div {
  display: grid;
  gap: 3px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 9px;
}

.yes-price {
  background: var(--green);
  color: var(--paper);
}

.no-price {
  background: var(--white);
  color: var(--ink);
}

.prediction-price-row span,
.prediction-price-row small {
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1.1;
  text-transform: uppercase;
}

.prediction-price-row strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  line-height: 0.95;
}

.market-spark {
  display: flex;
  height: 42px;
  align-items: end;
  gap: 5px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  padding: 6px;
}

.market-spark i {
  flex: 1;
  min-width: 6px;
  border: 2px solid var(--ink);
  border-radius: 3px 3px 0 0;
  background: var(--green);
}

.prediction-card p,
.market-receipt p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.28;
}

.market-position {
  display: grid;
  gap: 4px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 9px;
}

.market-position strong {
  font-size: 0.95rem;
}

.prediction-card-actions {
  display: grid;
  grid-template-columns: minmax(74px, 0.7fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.prediction-card-actions label {
  gap: 4px;
}

.prediction-card-actions .button {
  min-height: 46px;
  padding-inline: 8px;
}

.market-tape {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  padding: 12px;
  color: var(--paper);
}

.market-tape .panel-title h3 {
  color: var(--paper);
  font-size: 1.15rem;
}

.compact-panel-title {
  margin-bottom: 0;
}

.market-receipt-tape {
  display: grid;
  gap: 9px;
  max-height: 570px;
  overflow: auto;
  padding-right: 4px;
}

.market-receipt {
  display: grid;
  gap: 5px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(11, 11, 10, 0.04) 0 7px, transparent 7px 14px),
    var(--paper);
  padding: 10px;
  color: var(--ink);
}

.market-receipt strong {
  font-size: 0.95rem;
}

.market-holding-row span small {
  color: var(--green-dark);
}

.stock-list,
.exhibit-list,
.wager-list,
.boost-list,
#portfolioList {
  display: grid;
  gap: 10px;
}

.stock-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.stock-ticker {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.2rem;
}

.stock-meta {
  display: grid;
  gap: 4px;
}

.stock-meta strong {
  font-size: 1rem;
}

.stock-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.stock-price {
  display: grid;
  justify-items: end;
  gap: 3px;
  font-weight: 1000;
}

.stock-price strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.45rem;
}

.stock-price small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.stock-price .up {
  color: var(--green-dark);
}

.stock-price .down {
  color: var(--orange);
}

.stock-bonus-note {
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 9px 10px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.25;
  text-transform: uppercase;
}

.exchange-actions,
.future-form,
.receipt-form,
.wager-form {
  display: grid;
  gap: 10px;
}

.future-form {
  grid-template-columns: minmax(150px, 0.8fr) minmax(210px, 1.1fr) minmax(90px, 0.45fr) auto;
  align-items: end;
}

.season-bet-board {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(255, 210, 51, 0.34), transparent 35%),
    rgba(251, 251, 244, 0.98);
}

.season-rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.season-rule-strip span {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 7px 10px;
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

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

.season-bet-card {
  display: grid;
  gap: 8px;
  min-height: 210px;
  cursor: pointer;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-12deg, rgba(0, 166, 81, 0.08) 0 9px, transparent 9px 18px),
    var(--white);
  padding: 11px;
  box-shadow: 4px 4px 0 var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    outline-color 160ms ease;
}

.season-bet-card:hover,
.season-bet-card:focus-visible,
.season-bet-card.selected {
  outline: 4px solid var(--orange);
  outline-offset: -5px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.season-bet-card.selected {
  background:
    repeating-linear-gradient(-12deg, rgba(0, 166, 81, 0.18) 0 9px, transparent 9px 18px),
    var(--yellow);
}

.season-bet-card-head,
.season-card-return,
.season-probability {
  display: grid;
  gap: 5px;
}

.season-bet-card-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.season-bet-card-head span,
.season-bet-card p,
.season-bet-card small,
.season-card-return span,
.season-probability span {
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1.18;
  text-transform: uppercase;
}

.season-bet-card-head strong {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 8px;
  font-size: 0.78rem;
}

.season-bet-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 0.96;
}

.season-bet-card p {
  margin: 0;
  color: var(--ink-soft);
}

.season-meter {
  height: 13px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.season-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
}

.season-card-return {
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 8px;
}

.season-card-return strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.75rem;
  line-height: 0.95;
}

.future-quote {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 11px 12px;
  color: var(--ink);
  font-weight: 1000;
}

.future-quote span,
.future-quote small {
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1.2;
  text-transform: uppercase;
}

.future-quote strong {
  font-size: 1rem;
}

.future-list {
  display: grid;
  gap: 9px;
}

.future-item {
  display: grid;
  gap: 5px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(11, 11, 10, 0.04) 0 7px, transparent 7px 14px),
    var(--white);
  padding: 10px;
}

.future-item span,
.future-item small {
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 1000;
  line-height: 1.2;
  text-transform: uppercase;
}

.future-item strong {
  font-size: 1rem;
}

.future-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.future-item.empty {
  border-style: dashed;
}

.exchange-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0;
}

.portfolio-card {
  display: grid;
  gap: 10px;
  background: var(--yellow);
  padding: 12px;
}

.portfolio-card strong {
  display: block;
  font-size: 1.4rem;
}

.holding-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px 10px;
  font-weight: 900;
}

.holding-row small {
  display: block;
  margin-top: 3px;
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.receipt-score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px;
}

.receipt-score span {
  color: var(--paper);
}

.receipt-score strong {
  display: block;
  margin-top: 3px;
  font-size: 1.2rem;
}

.exhibit-item,
.wager-item,
.boost-item {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.exhibit-item.horrendous {
  background: var(--orange);
}

.exhibit-item.correct {
  background: rgba(0, 166, 81, 0.16);
}

.wager-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.boost-item {
  background: var(--paper-2);
}

.pulse-panel {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(251, 251, 244, 0.97);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.green-dot {
  background: var(--green);
}

.beef-score-list,
.activity-feed {
  display: grid;
  gap: 10px;
}

.beef-score-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.28fr);
  gap: 12px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
}

.beef-score-item h3 {
  margin-top: 7px;
}

.beef-score-item p {
  margin-bottom: 0;
  font-size: 0.84rem;
  font-weight: 900;
}

.beef-meter {
  height: 16px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
}

.beef-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.activity-item {
  display: grid;
  grid-template-columns: minmax(84px, 0.22fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 12px;
}

.activity-item strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.activity-item span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.activity-item small {
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
}

.audit-section {
  margin-top: 18px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-8deg, rgba(11, 11, 10, 0.05) 0 10px, transparent 10px 20px),
    var(--paper);
  padding: 15px;
  box-shadow: var(--shadow-soft);
}

.audit-log {
  display: grid;
  gap: 9px;
}

.audit-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 12px;
}

.audit-item strong,
.audit-item span,
.audit-item small {
  display: block;
}

.audit-item strong {
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.audit-item span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 900;
}

.audit-item small {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
}

.audit-item.commissioner {
  border-left: 10px solid var(--orange);
}

.tag {
  display: inline-flex;
  min-height: 26px;
  width: fit-content;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  padding: 0 9px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}

.settings-panel {
  display: grid;
  gap: 12px;
}

.league-connection-settings {
  grid-column: 1 / -1;
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.1) 0 12px, transparent 12px 24px),
    var(--paper);
}

.connection-summary {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 1.4fr 0.6fr;
  gap: 10px;
}

.connection-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.connection-summary span {
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.connection-summary strong {
  overflow-wrap: anywhere;
}

.connection-settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shared-league-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  border-top: 2px dashed var(--ink);
  padding-top: 12px;
}

.shared-league-controls > div {
  display: grid;
  gap: 3px;
}

.shared-league-controls .settings-auth-card {
  grid-column: 1 / -1;
  gap: 7px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 10px;
}

.settings-auth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.settings-auth-card small {
  color: var(--ink-soft);
  font-weight: 850;
}

.manual-invite-box {
  display: grid;
  gap: 7px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 12px;
}

.manual-invite-box > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.manual-invite-box small {
  color: var(--ink-soft);
  font-weight: 850;
}

.connection-disclaimer {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.command-settings,
.ticker-settings {
  grid-column: 1 / -1;
}

.sync-settings {
  align-content: start;
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.1) 0 12px, transparent 12px 24px),
    rgba(251, 251, 244, 0.97);
}

.settings-panel .war-status {
  width: fit-content;
}

.settings-panel .war-sync-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-panel .league-command-center,
.settings-panel .war-ticker {
  margin: 0;
}

.settings-panel .league-command-center {
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr) minmax(200px, 0.36fr);
}

.settings-panel .war-ticker {
  grid-template-columns: minmax(0, 1.3fr) minmax(170px, 0.42fr) minmax(190px, 0.52fr);
}

.trash-layout {
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  align-items: start;
}

.war-room > .trash-layout {
  margin-top: 12px;
}

.composer {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow-hard);
}

.trash-instructions {
  margin: -4px 0 0;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.09) 0 10px, transparent 10px 20px),
    var(--white);
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.28;
}

.ai-shot-panel {
  display: grid;
  gap: 6px;
  border: 3px solid var(--ink);
  border-left-width: 10px;
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 12px;
}

.ai-shot-panel h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.ai-shot-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 1000;
  line-height: 1.25;
}

.field-grid,
.trade-grid {
  display: grid;
  gap: 12px;
}

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

.field-grid label:first-child {
  grid-column: 1 / -1;
}

.upload-drop {
  min-height: 112px;
  place-items: center;
  margin: 0;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.14) 0 10px, rgba(0, 166, 81, 0.04) 10px 20px),
    var(--white);
  padding: 18px;
  color: var(--green-dark);
  text-align: center;
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-drop span {
  font-size: 0.82rem;
}

.upload-drop strong {
  color: var(--ink);
  font-size: 1rem;
}

.record-panel {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 12px;
}

.record-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.record-panel strong {
  font-weight: 1000;
  text-transform: uppercase;
}

.record-panel span {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  padding: 4px 9px;
  font-size: 0.8rem;
  font-weight: 1000;
}

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

#recordingPreview {
  display: none;
  width: 100%;
  min-height: 160px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  object-fit: cover;
}

#recordingPreview.active {
  display: block;
}

#recordingAudioPreview {
  width: 100%;
  min-height: 48px;
}

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

.record-review-actions[hidden] {
  display: none;
}

.composer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.roast-preview {
  min-height: 96px;
  margin-top: 0;
  border: 3px solid var(--ink);
  border-left-width: 10px;
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 13px;
  color: var(--ink);
  font-weight: 1000;
  line-height: 1.3;
}

.roast-preview.confirmed {
  border-color: var(--green-dark);
  background: #dff7e8;
  box-shadow: inset 0 0 0 3px var(--green);
}

.roast-picker {
  display: grid;
  gap: 9px;
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
  padding: 11px;
}

.roast-picker[hidden] {
  display: none;
}

.roast-picker-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.roast-picker-status strong {
  font-size: 0.9rem;
}

.roast-picker-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(140px, 1.4fr) minmax(0, 0.8fr);
  gap: 8px;
}

.roast-picker-actions .button {
  min-width: 0;
}

.board-shell {
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(11, 11, 10, 0.03) 18px 20px),
    rgba(251, 251, 244, 0.97);
}

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

.trash-post {
  position: relative;
  display: grid;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
}

.delete-board-post {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #d71920;
  color: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.delete-board-post:hover,
.delete-board-post:focus-visible {
  background: #ff2b32;
  transform: translateY(-1px);
}

.starter-card {
  display: grid;
  min-height: 220px;
  align-content: center;
  gap: 10px;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-10deg, rgba(0, 166, 81, 0.14) 0 12px, rgba(255, 255, 255, 0.82) 12px 24px),
    var(--white);
  padding: 16px;
}

.starter-card p {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-weight: 850;
}

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

.post-media {
  position: relative;
  display: grid;
  min-height: 188px;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
}

.post-media audio {
  width: calc(100% - 24px);
}

.play-badge {
  position: absolute;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
}

.gif-card {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 188px;
  place-items: center;
  background:
    repeating-linear-gradient(-12deg, rgba(11, 11, 10, 0.12) 0 7px, transparent 7px 14px),
    var(--green);
  color: var(--paper);
  padding: 20px;
  text-align: center;
  animation: pulseCard 1.3s ease-in-out infinite alternate;
}

.gif-card strong {
  max-width: 19ch;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.post-copy {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.post-copy p {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-weight: 800;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.reaction-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.reaction-row button {
  min-height: 34px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.reaction-row button:hover {
  background: var(--green);
  color: var(--paper);
}

.rankings-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: start;
}

.rank-table {
  display: grid;
  gap: 10px;
}

.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(180px, 1fr) minmax(300px, 1.15fr) minmax(170px, 0.75fr);
  align-items: center;
  gap: 10px;
  min-height: 98px;
  padding: 13px 48px 13px 13px;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.rank-row:hover,
.rank-row:focus-visible {
  background: #f2fff7;
  box-shadow: 5px 5px 0 var(--green-dark);
  outline: 0;
  transform: translateY(-1px);
}

.rank-row.expanded {
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.06) 0 12px, transparent 12px 24px),
    var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

.rank-expand-icon {
  position: absolute;
  top: 14px;
  right: 13px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 1.25rem;
  font-weight: 1000;
  line-height: 1;
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-weight: 1000;
}

.manager-line strong,
.manager-line span,
.manager-line small,
.rank-quick-stats strong,
.rank-quick-stats span,
.rank-stat strong,
.rank-stat span,
.trash-rank-cell strong,
.trash-rank-cell span,
.metric-cell strong,
.metric-cell span {
  display: block;
}

.manager-line span,
.manager-line small,
.rank-quick-stats span,
.rank-stat span,
.trash-rank-cell span,
.metric-cell span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.manager-line small {
  margin-top: 4px;
  color: var(--green-dark);
  text-transform: uppercase;
}

.rank-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rank-stat,
.trash-rank-cell {
  min-height: 66px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 8px 9px;
}

.rank-quick-stats .rank-stat {
  min-width: 0;
}

.rank-stat strong,
.trash-rank-cell strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.22rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.official-rank-stat {
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.09) 0 10px, transparent 10px 20px),
    var(--white);
}

.trash-rank-cell {
  display: grid;
  gap: 7px;
}

.trash-meter {
  height: 9px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
}

.trash-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
}

.rank-team-detail {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  margin-top: 6px;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
  cursor: default;
}

.rank-team-detail[hidden] {
  display: none;
}

.rank-detail-topline,
.rank-roster-heading,
.rank-factor span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rank-detail-topline strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.rank-detail-topline span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: right;
  text-transform: uppercase;
}

.rank-roster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-roster-group {
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.rank-roster-heading {
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  padding: 8px 10px;
  color: var(--white);
}

.rank-roster-heading h4,
.rank-score-explanation h4 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.rank-roster-heading span {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 1000;
}

.rank-player-list {
  display: grid;
}

.rank-player {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  border-bottom: 1px solid rgba(11, 11, 10, 0.22);
  padding: 6px 9px;
}

.rank-player:last-child {
  border-bottom: 0;
}

.rank-player-position {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 1000;
}

.rank-player strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.rank-player small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: right;
}

.rank-roster-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.rank-score-explanation {
  border-left: 8px solid var(--orange);
  background: var(--white);
  padding: 12px;
}

.rank-score-explanation p {
  margin: 6px 0 12px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
}

.rank-factor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.rank-factor {
  min-width: 0;
}

.rank-factor span {
  align-items: flex-end;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.rank-factor span small {
  color: var(--green-dark);
}

.rank-factor strong {
  display: block;
  margin: 3px 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.05rem;
}

.rank-factor > div {
  height: 7px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.rank-factor i {
  display: block;
  height: 100%;
  background: var(--green);
}

.metric-cell strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.18rem;
}

.metric-bar {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.formula-list span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-weight: 900;
}

.formula-list span:last-child {
  border-bottom: 0;
}

.formula-list strong {
  color: var(--ink);
}

.debate-box,
.trade-result {
  margin-top: 14px;
  padding: 13px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
}

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

.rivalry-item,
.award-item,
.challenge-item,
.lore-item,
.personality-item,
.waiver-item {
  padding: 13px;
}

.rivalry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.spread-pill {
  display: grid;
  min-width: 78px;
  min-height: 48px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
}

.award-item {
  display: grid;
  gap: 6px;
  border-left-width: 10px;
}

.script-section {
  margin-top: 18px;
}

#recapScript {
  display: block;
  width: 100%;
  min-height: 230px;
  resize: vertical;
  line-height: 1.45;
}

.wheel-rules {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  border-left-width: 12px;
  border-left-color: var(--green);
  background:
    linear-gradient(90deg, rgba(0, 165, 81, 0.13), transparent 42%),
    rgba(251, 251, 244, 0.97);
}

.wheel-rules h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.wheel-rules p {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.wheel-layout {
  grid-template-columns: minmax(320px, 0.95fr) minmax(300px, 1.05fr);
  align-items: start;
}

.wheel-stage {
  display: grid;
  place-items: center;
  padding: 18px;
  box-shadow: var(--shadow-hard);
}

#punishmentWheel {
  display: block;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  filter: drop-shadow(8px 8px 0 rgba(11, 11, 10, 0.95));
}

.spin-button {
  margin-top: 16px;
}

.wheel-result {
  min-height: 48px;
  margin-top: 12px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 1000;
  text-align: center;
}

.wheel-controls h2 {
  margin-top: 18px;
}

.wheel-controls h2:first-child {
  margin-top: 0;
}

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

.option-chip {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px 10px;
  font-weight: 900;
}

.option-chip button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 1000;
}

.add-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 12px 0 18px;
}

.challenge-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.challenge-item strong,
.challenge-item span {
  display: block;
}

.challenge-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.memories-section {
  margin-bottom: 18px;
  border-left-width: 12px;
  border-left-color: var(--green);
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.07) 0 12px, transparent 12px 24px),
    rgba(251, 251, 244, 0.98);
}

.memories-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
}

.memories-heading h2 {
  flex: 0 0 auto;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.9;
}

.memories-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.memory-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr) minmax(170px, 0.65fr) auto;
  align-items: end;
  gap: 10px;
}

.memory-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.memory-form input,
.memory-form textarea {
  width: 100%;
}

.memory-form textarea {
  min-height: 80px;
  resize: vertical;
}

.memory-upload {
  min-height: 80px;
  align-content: center;
  border: 2px dashed var(--ink);
  background: var(--white);
  padding: 9px;
  cursor: pointer;
}

.memory-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.memory-upload span {
  color: var(--green-dark);
}

.memory-upload strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-save-status {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.memory-save-status.error {
  color: #b00020;
}

.memory-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.memory-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 16px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.memory-empty strong {
  color: var(--ink);
  font-size: 1rem;
}

.memory-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.memory-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
}

.memory-card-media img,
.memory-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-card-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
}

.memory-card-copy h3,
.memory-card-copy p {
  margin: 0;
}

.memory-card-copy h3 {
  padding-right: 34px;
}

.memory-card-copy p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
  white-space: pre-wrap;
}

.memory-card-meta {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.memory-feed:empty::before {
  grid-column: 1 / -1;
  content: "No league memories saved yet. Somebody has to tell the first story.";
  border: 3px dashed var(--ink);
  background: var(--paper-2);
  padding: 16px;
  color: var(--ink-soft);
  font-weight: 900;
}

.lore-item,
.personality-item,
.waiver-item {
  display: grid;
  gap: 6px;
}

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

.card-vault:empty::before {
  content: "No cards pinned yet. Mint one from a War Room swing.";
  display: block;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 14px;
  color: var(--ink-soft);
  font-weight: 900;
}

.vault-card {
  position: relative;
  display: grid;
  gap: 9px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
  box-shadow: 5px 5px 0 var(--ink);
}

.vault-card.failure {
  background:
    repeating-linear-gradient(-14deg, rgba(255, 122, 0, 0.18) 0 10px, rgba(255, 255, 255, 0.9) 10px 20px),
    var(--white);
}

.vault-card.accomplishment {
  background:
    repeating-linear-gradient(-14deg, rgba(0, 166, 81, 0.16) 0 10px, rgba(255, 255, 255, 0.9) 10px 20px),
    var(--white);
}

.vault-card h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.5rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.vault-card p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 900;
}

.vault-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.vault-stats span {
  display: grid;
  gap: 2px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 7px;
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.vault-stats strong {
  display: block;
  color: var(--green-dark);
  font-size: 0.92rem;
}

.personality-item {
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-weight: 1000;
}

.trade-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
}

.trade-result:empty {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: min(360px, calc(100vw - 36px));
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 14px;
  box-shadow: 6px 6px 0 var(--green);
  font-weight: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.floating-create {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  padding: 0 18px 0 12px;
  box-shadow: 6px 6px 0 var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-create span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 1000;
}

.floating-create:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.page-scroll-controls {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 88;
  display: grid;
  gap: 8px;
}

.page-scroll-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.15rem;
  font-weight: 1000;
  line-height: 1;
}

.page-scroll-controls button:hover {
  background: var(--green);
  color: var(--paper);
  transform: translate(-1px, -1px);
}

.page-scroll-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(11, 11, 10, 0.72);
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.connect-modal {
  width: min(760px, 100%);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-8deg, rgba(0, 166, 81, 0.08) 0 14px, transparent 14px 28px),
    var(--paper);
  padding: 18px;
  box-shadow: 10px 10px 0 var(--green);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
}

.modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.custom-bet-modal {
  max-width: 760px;
}

.claim-team-modal {
  max-width: 680px;
}

.claim-team-intro {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-weight: 850;
}

.claim-team-form {
  display: grid;
  gap: 12px;
}

.claim-team-form label {
  display: grid;
  gap: 6px;
  border-left: 7px solid var(--green);
  background: var(--white);
  padding: 12px;
}

.claim-team-form label:nth-child(2) {
  border-left-color: var(--yellow);
}

.claim-team-form label:nth-child(3) {
  border-left-color: var(--orange);
}

.claim-team-form small,
.claim-correction-note {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.claim-confirmation {
  margin: 14px 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 12px;
  font-weight: 950;
  line-height: 1.3;
}

.claim-correction-note {
  display: block;
  margin-top: 12px;
}

.settings-league-switcher {
  min-width: 240px;
}

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

.league-invite-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.league-invite-row > div {
  display: grid;
  gap: 2px;
}

.league-invite-row span {
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 900;
}

.custom-bet-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.45fr) minmax(130px, 0.35fr);
  gap: 10px;
}

.custom-bet-form label:first-child,
.custom-bet-form label:last-child {
  grid-column: 1 / -1;
}

.custom-bet-form textarea {
  min-height: 92px;
  resize: vertical;
}

.custom-bet-preview {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 12px;
  color: var(--ink);
}

.custom-bet-preview span,
.custom-bet-preview small {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1.2;
  text-transform: uppercase;
}

.custom-bet-preview strong {
  font-size: 1rem;
}

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
}

.connect-actions,
.league-id-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.league-id-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
}

.league-id-panel[hidden] {
  display: none;
}

.connection-status {
  margin-top: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 1000;
}

.league-picker {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
}

.league-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
}

.league-choice strong,
.league-choice span {
  display: block;
}

.league-choice span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

@keyframes pulseCard {
  from {
    transform: scale(1);
    filter: saturate(1);
  }

  to {
    transform: scale(1.025);
    filter: saturate(1.3);
  }
}

@keyframes sirenPulse {
  from {
    outline-color: var(--orange);
    filter: saturate(1);
  }

  to {
    outline-color: var(--yellow);
    filter: saturate(1.25);
  }
}

@keyframes betSlipFlash {
  0% {
    outline: 0 solid transparent;
    box-shadow: none;
  }

  35% {
    outline: 5px solid var(--green);
    box-shadow: 6px 6px 0 var(--orange);
  }

  100% {
    outline: 0 solid transparent;
    box-shadow: none;
  }
}

@media (max-width: 1180px) {
  .war-grid {
    grid-template-columns: 1fr;
  }

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

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

  .action-dock,
  .clubhouse-grid,
  .exchange-layout,
  .exchange-hero,
  .hero-grid,
  .market-command-layout,
  .blue-tent-protocol,
  .protocol-layout,
  .trash-layout,
  .rankings-grid,
  .wheel-layout,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .prediction-market-grid {
    grid-template-columns: 1fr;
  }

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

  .book-odds-preview {
    grid-column: 1 / -1;
  }

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

  .composer {
    position: static;
  }

  .rank-row {
    grid-template-columns: 52px minmax(170px, 1fr);
  }

  .rank-quick-stats,
  .trash-rank-cell {
    grid-column: 2 / -1;
  }

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

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

  .memory-story-field,
  .memory-save-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
  }

  .site-banner {
    height: clamp(210px, 56vw, 300px);
  }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .topbar-title {
    position: static;
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: min(420px, 94vw);
    height: 82px;
    transform: rotate(-0.5deg);
    order: -1;
  }

  .topbar-title::after {
    right: 18px;
    bottom: 10px;
  }

  .brand {
    display: none;
  }

  .provider-bar,
  .access-bar {
    grid-column: 1;
    grid-row: auto;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .provider-bar label,
  .access-bar label {
    width: 100%;
  }

  .provider-bar select,
  .access-bar select,
  .provider-bar .button,
  .sync-status,
  .role-chip {
    flex: 1 1 150px;
  }

  .side-nav {
    position: sticky;
    top: auto;
    bottom: 0;
    grid-row: 4;
    width: 100%;
    max-width: 100vw;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 3px solid var(--ink);
    border-right: 0;
    padding: 8px;
  }

  .nav-button {
    min-width: 78px;
    min-height: 58px;
  }

  .workspace {
    padding: 18px 12px 96px;
  }

  .view-heading,
  .board-header,
  .exchange-hero,
  .panel-title,
  .section-title {
    display: grid;
  }

  .action-dock {
    gap: 9px;
  }

  .war-room {
    padding: 12px;
  }

  .war-room-head,
  .panic-card-head,
  .modal-head {
    display: grid;
  }

  .war-status-stack {
    justify-items: stretch;
  }

  .war-grid,
  .war-support-row,
  .war-secondary-row,
  .sportsbook-command-stats,
  .sportsbook-command-actions,
  .weekly-book-grid,
  .book-slip,
  .book-team-row,
  .protocol-actions,
  .protocol-option-form,
  .custom-bet-form,
  .custom-queue-item,
  .settings-grid,
  .settings-panel .league-command-center,
  .settings-panel .war-ticker,
  .settings-panel .war-sync-actions,
  .league-command-center,
  .command-leagues,
  .market-create-strip,
  .future-form,
  .panic-bet-slip,
  .panic-grid,
  .redzone-feed,
  .alert-stream,
  .war-ticker,
  .war-actions,
  .war-sync-actions,
  .command-alerts,
  .trial-votes,
  .connect-grid,
  .connect-actions,
  .league-id-panel,
  .league-choice {
    grid-template-columns: 1fr;
  }

  .league-setup,
  .connection-summary,
  .shared-auth-row,
  .settings-auth-row,
  .shared-league-controls,
  .league-invite-row,
  .manual-invite-box > div {
    grid-template-columns: 1fr;
  }

  .league-setup {
    min-height: auto;
    padding: 22px 16px;
  }

  .league-setup h1 {
    font-size: 3rem;
  }

  .panic-panel,
  .redzone-panel,
  .bounty-panel,
  .receipt-panel {
    grid-column: auto;
  }

  .panic-bet-slip button {
    grid-column: 1;
  }

  .panic-room-banner {
    height: clamp(150px, 42vw, 220px);
  }

  .action-button {
    min-height: 52px;
  }

  .media-stage,
  .media-stage img {
    min-height: 360px;
  }

  .stage-overlay {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .stage-metrics,
  .exchange-score-grid,
  .field-grid,
  .prediction-card-actions,
  .mini-actions,
  .stock-card,
  .panic-manager,
  .composer-actions,
  .record-actions,
  .trash-board,
  .recap-grid,
  .card-vault,
  .vault-stats,
  .option-list,
  .trade-grid,
  .reaction-row,
  .beef-score-item,
  .activity-item,
  .audit-item {
    grid-template-columns: 1fr;
  }

  .roast-picker-actions {
    grid-template-columns: 1fr 1.4fr 1fr;
  }

  .roast-picker-actions .button {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.76rem;
  }

  .stock-price {
    justify-items: start;
  }

  .market-receipt-tape {
    max-height: none;
  }

  .market-create-actions,
  .custom-queue-actions {
    grid-template-columns: 1fr;
  }

  .season-bet-grid,
  .season-rule-strip {
    grid-template-columns: 1fr;
  }

  .season-bet-grid {
    display: grid;
  }

  .season-rule-strip {
    justify-content: stretch;
  }

  .season-rule-strip span {
    text-align: center;
  }

  .activity-item small,
  .audit-item small {
    white-space: normal;
  }

  .floating-create {
    right: 12px;
    bottom: 86px;
  }

  .page-scroll-controls {
    right: 12px;
    bottom: 150px;
  }

  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 0;
    padding: 10px 42px 10px 10px;
  }

  .rank-roster-grid {
    grid-template-columns: 1fr;
  }

  .rank-detail-topline {
    display: grid;
    justify-content: stretch;
  }

  .rank-detail-topline span {
    text-align: left;
  }

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

  .rank-player {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .rank-player small {
    grid-column: 2;
    text-align: left;
  }

  .memories-heading {
    display: grid;
    gap: 8px;
  }

  .memory-form,
  .memory-feed {
    grid-template-columns: 1fr;
  }

  .memory-story-field,
  .memory-save-status {
    grid-column: auto;
  }

  .rank-stat {
    min-height: 52px;
    padding: 8px;
  }

  .rank-quick-stats,
  .trash-rank-cell,
  .rank-row .metric-cell {
    grid-column: 1 / -1;
  }

  .rank-quick-stats {
    gap: 6px;
  }

  .challenge-item,
  .rivalry-item {
    grid-template-columns: 1fr;
  }
}
