:root {
  --navy-950: #0b0b0b;
  --navy-900: #111111;
  --navy-800: #191919;
  --navy-700: #242424;
  --surface: #ffffff;
  --surface-soft: #f1f2f4;
  --line: #d8dadd;
  --text: #111317;
  --muted: #555d67;
  --positive: #0f6f3d;
  --positive-dark: #084926;
  --neutral: #3c4652;
  --neutral-dark: #232a31;
  --negative: #b84a24;
  --negative-dark: #7d2d17;
  --stat-base: #202020;
  --stat-base-dark: #151515;
  --offense: #0d7a43;
  --offense-dark: #064325;
  --effort: #8f1b1b;
  --effort-dark: #4f1212;
  --defense: #1f6f6a;
  --defense-dark: #123e3b;
  --clear: #36546c;
  --clear-dark: #1d2f3e;
  --goalie-save: #2f6d72;
  --goalie-save-dark: #1d4245;
  --goalie-allowed: #5d4d6a;
  --goalie-allowed-dark: #342c3d;
  --faceoff-win: #5e5140;
  --faceoff-win-dark: #332c24;
  --faceoff-loss: #5a4038;
  --faceoff-loss-dark: #30231f;
  --danger: #cf2f33;
  --warning: #ec8b22;
  --hornet-red: #e81010;
  --hornet-red-soft: #ffe4e4;
  --hornet-yellow: var(--hornet-red);
  --hornet-yellow-soft: var(--hornet-red-soft);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy-950);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.055), transparent 24rem),
    linear-gradient(180deg, #1b1b1b 0%, #121212 42%, #0b0b0b 100%);
  color: var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.app-shell {
  width: 100%;
  max-width: 760px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 14px calc(112px + var(--safe-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -18px -14px 14px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 12px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.56), rgba(5, 5, 5, 0.7)),
    url("assets/honeycombblack.png?v=1") center / cover no-repeat,
    #0b0b0b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.brand-logo-wrap {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.brand-logo {
  display: block;
  width: min(62vw, 292px);
  height: auto;
  max-height: 54px;
  margin: 0;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.24));
}

.app-version-chip {
  display: block;
  margin-left: clamp(5px, 1.8vw, 10px);
  color: #4b4f55;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

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

.brand-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.05;
}

.status-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f1f2f4;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.topbar-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.help-chip {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1;
}

.tutorial-chip {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.screen-title {
  margin: 18px 0 12px;
}

.screen-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.08;
}

.home-title h2 {
  font-size: 1.42rem;
}

.welcome-hero {
  display: grid;
  gap: 18px;
  margin: 18px 0 14px;
  padding: 18px 2px 6px;
}

.welcome-copy {
  display: grid;
  gap: 10px;
}

.welcome-copy h2 {
  max-width: 10ch;
  margin: 0;
  color: #ffffff;
  font-size: 2.45rem;
  line-height: 0.98;
}

.welcome-copy p {
  max-width: 34rem;
  margin: 0;
  color: #d7d9dd;
  font-size: 1rem;
  line-height: 1.48;
}

.welcome-stack {
  gap: 12px;
}

.welcome-info-card,
.faq-card {
  border-color: rgba(232, 16, 16, 0.24);
}

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

.welcome-step-list div {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.35;
}

.welcome-step-list strong {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--hornet-red);
  font-size: 0.9rem;
}

.faq-card {
  display: grid;
  gap: 10px;
}

.faq-card details {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.faq-card summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
}

.action-grid.compact {
  grid-template-columns: 1fr 1fr;
  margin-top: 4px;
}

.screen-title p {
  margin: 8px 0 0;
  color: #c6c8cc;
  font-size: 0.98rem;
  line-height: 1.45;
}

.live-title {
  margin: 12px 0 10px;
}

.live-title h2 {
  color: #f2f3f4;
  font-size: 1.24rem;
  font-weight: 850;
  line-height: 1.05;
}

.live-title p {
  margin-top: 5px;
  color: #aeb4bb;
  font-size: 0.82rem;
  line-height: 1.25;
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.live-share-link {
  min-height: 0;
  padding: 0;
  border: 0;
  color: #d7dde4;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: rgba(232, 16, 16, 0.62);
  text-underline-offset: 3px;
  box-shadow: none;
}

.live-share-link:active {
  color: #ffffff;
}

.stack {
  display: grid;
  gap: 12px;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.card.pad {
  padding: 14px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.2;
}

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

.small {
  font-size: 0.84rem;
  line-height: 1.35;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.section-head p {
  margin: 0;
}

.helper-lines {
  display: grid;
  gap: 1px;
}

.helper-lines span {
  display: block;
}

.player-switch-card {
  display: grid;
  gap: 12px;
}

.player-switch-card.inline {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

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

.player-chip {
  display: inline-flex;
  min-width: 132px;
  min-height: 68px;
  flex: 1 1 calc(50% - 4px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #ffffff;
  text-align: left;
  box-shadow: none;
}

.player-chip strong,
.player-chip span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-chip strong {
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.1;
}

.player-chip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.player-chip .player-chip-code,
.player-card-code {
  color: var(--hornet-red);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.player-card-code {
  margin: 2px 0 0;
}

.player-chip .player-chip-status {
  color: #52606c;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.player-chip .player-chip-status.unverified {
  color: var(--hornet-red);
}

.player-chip.active {
  border-color: rgba(232, 16, 16, 0.72);
  background:
    linear-gradient(90deg, var(--hornet-red) 0 5px, transparent 5px),
    #f7f8f9;
  box-shadow: inset 0 0 0 1px rgba(232, 16, 16, 0.14);
}

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

.compact-player-card h3,
.compact-player-card p {
  margin: 0;
}

.compact-player-card .tiny {
  margin-top: 4px;
}

.my-players-card {
  display: grid;
  gap: 12px;
}

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

.player-assignment-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f8f9;
}

.player-assignment-card.active {
  border-color: rgba(232, 16, 16, 0.72);
  background:
    linear-gradient(90deg, var(--hornet-red) 0 5px, transparent 5px),
    #f7f8f9;
  box-shadow: inset 0 0 0 1px rgba(232, 16, 16, 0.12);
}

.player-assignment-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.player-assignment-main h3,
.player-assignment-main p {
  margin: 0;
}

.player-assignment-main h3 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
}

.player-assignment-main p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.status-pill {
  align-self: start;
  padding: 6px 8px;
  border: 1px solid rgba(232, 16, 16, 0.18);
  border-radius: 999px;
  color: var(--hornet-red);
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

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

.player-assignment-stats span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.player-assignment-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
}

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

.team-card {
  display: grid;
  gap: 14px;
}

.team-card.collapsed {
  gap: 0;
}

.team-card h3,
.team-card h4 {
  margin: 0;
}

.team-code-helper {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.team-code-helper code {
  color: var(--brand-red);
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.04em;
  user-select: all;
}

.team-card-body {
  display: grid;
  gap: 14px;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.team-chip {
  display: inline-flex;
  min-width: 130px;
  min-height: 50px;
  flex: 1 1 calc(50% - 4px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #ffffff;
  text-align: left;
}

.team-chip strong,
.team-chip span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-chip strong {
  font-size: 0.9rem;
  font-weight: 900;
}

.team-chip span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.team-chip.active {
  border-color: rgba(232, 16, 16, 0.68);
  background:
    linear-gradient(90deg, var(--hornet-red) 0 5px, transparent 5px),
    #f7f8f9;
}

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

.inline-mini-form {
  display: grid;
  gap: 6px;
}

.inline-mini-form label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inline-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.roster-edit-details {
  align-items: start;
}

.roster-edit-card.inline {
  margin: 6px 0 16px;
  padding: 12px;
  border: 1px solid rgba(232, 16, 16, 0.22);
  background:
    linear-gradient(90deg, rgba(232, 16, 16, 0.08), transparent 42%),
    #fff7f7;
  box-shadow: none;
}

.roster-action-block {
  padding: 10px 12px;
  border: 1px solid rgba(232, 16, 16, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(232, 16, 16, 0.1), transparent 48%),
    #fff8f8;
}

.roster-action-block .collapsible-card-head {
  min-height: 48px;
}

.roster-action-block .collapsible-card-head h4 {
  margin: 0 0 2px;
}

.roster-action-block .collapse-icon {
  border-color: rgba(232, 16, 16, 0.28);
  color: var(--hornet-red);
  background: #ffffff;
}

.add-player-block {
  gap: 8px;
}

.add-player-block.collapsed {
  padding-bottom: 2px;
}

.add-player-block .team-add-player-form.roster-edit-card.inline {
  margin: 0;
}

.edit-player-block .roster-edit-card.inline {
  margin: 0;
}

.roster-edit-card.inline .section-head {
  align-items: start;
}

.roster-edit-card.inline h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  line-height: 1.15;
}

.roster-edit-card.inline .muted.small {
  margin: 0;
  font-size: 0.82rem;
}

.roster-number-field {
  width: min(132px, 100%);
}

.roster-number-field input {
  min-height: 44px;
  text-align: center;
  font-weight: 850;
}

.team-roster-block,
.team-add-player-form {
  display: grid;
  gap: 10px;
}

.team-roster-block + .team-roster-block {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.unclaimed-summary-block {
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #dfe2e6;
  border-radius: var(--radius);
  background: #f7f8fa;
}

.unclaimed-summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.unclaimed-summary-head h4,
.unclaimed-summary-head p {
  margin: 0;
}

.unclaimed-summary-head h4 {
  font-size: 0.96rem;
}

.unclaimed-summary-head strong {
  min-width: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--hornet-red);
  background: var(--hornet-red-soft);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
}

.unclaimed-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unclaimed-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #d8dadd;
  border-radius: 999px;
  color: var(--text);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
}

.unclaimed-pill.muted-pill {
  color: var(--muted);
  background: #eef0f2;
}

.unclaimed-meta {
  margin: 0;
}

.access-summary-block {
  margin-top: 8px;
}

.access-summary-block .unclaimed-summary-head strong {
  min-width: 36px;
}

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

.access-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #dfe2e6;
  border-radius: var(--radius);
  background: #ffffff;
}

.access-request-row strong,
.access-request-row small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-request-row strong {
  font-size: 0.88rem;
}

.access-request-row small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.team-requests-card {
  padding-top: 10px;
}

.team-requests-card .team-roster-block {
  gap: 6px;
}

.team-requests-card h3,
.team-requests-card h4 {
  margin: 0 0 4px;
}

.team-form-actions {
  display: flex;
  justify-content: flex-end;
}

.position-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.position-picker legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.position-option {
  min-width: 0;
}

.position-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.position-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.position-option input:checked + span {
  border-color: rgba(232, 16, 16, 0.72);
  background:
    linear-gradient(90deg, var(--hornet-red) 0 5px, transparent 5px),
    #f7f8f9;
}

.player-chip-wrap {
  display: grid;
  gap: 6px;
  min-width: 132px;
}

.player-chip-wrap .player-chip {
  width: 100%;
}

.compact-head {
  align-items: flex-end;
}

.team-note {
  margin: 0;
}

.notice-card {
  padding: 12px;
  border: 1px solid rgba(232, 16, 16, 0.24);
  border-radius: var(--radius);
  color: var(--text);
  background: #fff4f4;
  font-size: 0.86rem;
  font-weight: 800;
}

.install-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(232, 16, 16, 0.18);
  border-radius: var(--radius);
  background: #f7f8f9;
}

.install-card strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.install-card p {
  margin: 4px 0 0;
}

.install-steps {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding-top: 2px;
  color: #4f5661;
  font-size: 0.82rem;
  font-weight: 850;
}

.install-steps span {
  display: block;
}

.compact-install {
  margin-top: 2px;
}

.compact-notice {
  margin-top: 10px;
}

.compact-notice p {
  margin: 4px 0 0;
}

.error-card {
  border-color: rgba(232, 16, 16, 0.48);
  background: #ffe7e7;
}

.error-card .muted {
  color: #6f1010;
}

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

.roster-note {
  margin: -4px 2px 0;
  color: #c6c8cc;
}

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

.metric {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.45rem, 8vw, 2.2rem);
  line-height: 1.0;
}

.impact-grade {
  display: block;
}

.impact-grade strong {
  display: block;
}

.impact-grade small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.05;
  text-transform: uppercase;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.impact-card {
  display: grid;
  gap: 12px;
}

.impact-score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding: 7px;
  border: 1px solid rgba(232, 16, 16, 0.35);
  border-radius: 14px;
  color: var(--hornet-red);
  background: #fff4f4;
  font-size: 1.1rem;
  font-weight: 950;
}

.impact-score-badge .impact-grade small {
  color: #7a2024;
  font-size: 0.62rem;
}

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

.impact-breakdown-row {
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f9;
}

.impact-breakdown-row span,
.impact-breakdown-row strong,
.impact-breakdown-row small {
  display: block;
}

.impact-breakdown-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.impact-breakdown-row strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 950;
}

.impact-breakdown-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.impact-takeaway {
  margin: 0;
  padding: 11px 12px;
  border-left: 4px solid var(--hornet-red);
  border-radius: 8px;
  background: #fff7f7;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

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

.possession-impact-card {
  display: grid;
  gap: 12px;
}

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

.possession-impact-metric {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f9;
}

.possession-impact-metric span,
.possession-impact-metric strong,
.possession-impact-metric small {
  display: block;
}

.possession-impact-metric span,
.possession-impact-metric small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.possession-impact-metric strong {
  margin: 4px 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1;
}

.archetype-card {
  display: grid;
  gap: 12px;
  border-color: rgba(232, 16, 16, 0.22);
}

.archetype-card .eyebrow {
  margin: 0 0 2px;
  color: var(--hornet-red);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.archetype-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(232, 16, 16, 0.35);
  border-radius: 999px;
  background: #fff4f4;
  color: var(--hornet-red);
  font-size: 0.78rem;
  font-weight: 950;
}

.archetype-explanation {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.4;
}

.archetype-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.archetype-reasons span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8f9;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.archetype-bars {
  display: grid;
  gap: 8px;
}

.archetype-bar {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(96px, 1.4fr) 34px;
  align-items: center;
  gap: 8px;
}

.archetype-bar span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.archetype-bar div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e8eb;
}

.archetype-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111, var(--hornet-red));
}

.archetype-bar strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: right;
}

.archetype-focus {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 4px solid var(--hornet-red);
  border-radius: 8px;
  background: #fff7f7;
}

.archetype-focus span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.archetype-focus strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.season-groups {
  display: grid;
  gap: 12px;
}

.season-stat-group {
  display: grid;
  gap: 10px;
}

.season-stat-group h3 {
  margin: 0;
}

.stat-mini-grid {
  display: grid;
  gap: 8px;
}

.stat-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f9;
  color: var(--text);
}

.stat-mini-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.stat-mini-row strong {
  font-size: 1rem;
  font-weight: 950;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--neutral);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: #ffffff;
}

.btn.secondary.auth-create {
  border: 1px solid rgba(232, 16, 16, 0.72);
  color: #111317;
  background:
    linear-gradient(90deg, var(--hornet-red) 0 6px, transparent 6px),
    #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(17, 19, 23, 0.04);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn.brand,
.btn.positive {
  border: 1px solid rgba(232, 16, 16, 0.72);
  background:
    linear-gradient(90deg, var(--hornet-red) 0 6px, transparent 6px),
    linear-gradient(180deg, #2a3038, #13161a);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.btn.neutral {
  background: linear-gradient(180deg, var(--neutral), var(--neutral-dark));
}

.faq-card .action-grid.compact .btn.neutral,
.faq-card .action-grid.compact .btn.secondary {
  border: 1px solid rgba(232, 16, 16, 0.72);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.faq-card .action-grid.compact .btn.neutral {
  background:
    linear-gradient(90deg, var(--hornet-red) 0 6px, transparent 6px),
    linear-gradient(180deg, #2a3038, #13161a);
}

.faq-card .action-grid.compact .btn.secondary {
  background:
    linear-gradient(90deg, var(--hornet-red) 0 6px, transparent 6px),
    #ffffff;
}

.btn.brand.neutral {
  background:
    linear-gradient(90deg, var(--hornet-red) 0 6px, transparent 6px),
    linear-gradient(180deg, #2a3038, #13161a);
}

.btn.negative {
  background: linear-gradient(180deg, var(--negative), var(--negative-dark));
}

.btn.danger {
  background: linear-gradient(180deg, var(--danger), #9e2025);
}

.btn.warning {
  background: linear-gradient(180deg, var(--warning), var(--negative-dark));
}

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

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

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

.field label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--text);
  background: #ffffff;
  font-size: 1rem;
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--neutral);
  box-shadow: 0 0 0 3px rgba(60, 70, 82, 0.2);
}

.quarter-tabs,
.period-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.quarter-tab,
.period-tab {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: #b8bec5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: none;
}

.quarter-tab.active,
.period-tab.active {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -2px 0 rgba(232, 16, 16, 0.62);
}

.live-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 13px;
}

.live-pill {
  min-height: 56px;
  padding: 8px 9px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #15171a;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.13);
}

.live-pill strong {
  display: block;
  font-size: clamp(1.08rem, 6vw, 1.55rem);
  line-height: 1;
  font-weight: 900;
}

.live-pill .impact-grade small {
  font-size: 0.58rem;
}

.live-pill span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.live-stat-groups {
  display: grid;
  gap: 16px;
}

.stat-group {
  display: grid;
  gap: 8px;
}

.stat-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 1px;
}

.stat-group-head h3 {
  margin: 0;
  color: #d5d9dd;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-group-head span {
  color: #7f8790;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}

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

.stat-button {
  position: relative;
  display: flex;
  min-height: 70px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(90deg, var(--stat-accent, var(--neutral)) 0 5px, transparent 5px),
    linear-gradient(180deg, var(--stat-base), var(--stat-base-dark));
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.22);
}

.stat-button.positive,
.stat-button.offense {
  --stat-accent: var(--offense);
}

.stat-button.neutral {
  --stat-accent: #6c7681;
}

.stat-button.negative {
  --stat-accent: var(--negative);
}

.stat-button.effort {
  --stat-accent: var(--effort);
}

.stat-button.defense {
  --stat-accent: var(--defense);
}

.stat-button.clear {
  --stat-accent: var(--clear);
}

.stat-button.goalieSave {
  --stat-accent: var(--goalie-save);
}

.stat-button.goalieAllowed {
  --stat-accent: var(--goalie-allowed);
}

.stat-button.faceoffWin {
  --stat-accent: var(--faceoff-win);
}

.stat-button.faceoffLoss {
  --stat-accent: var(--faceoff-loss);
}

.stat-button.compact {
  min-height: 60px;
  padding: 10px;
}

.stat-button .label {
  font-size: clamp(0.98rem, 4.4vw, 1.14rem);
  font-weight: 900;
  line-height: 1.1;
}

.stat-button .points {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 850;
}

.stat-button.compact .label {
  font-size: clamp(0.88rem, 4vw, 1rem);
}

.stat-button.compact .points {
  font-size: 0.72rem;
}

.sticky-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: rgba(9, 9, 9, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.sticky-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}

.sticky-actions .btn {
  min-height: 46px;
  padding: 9px 8px;
  font-size: clamp(0.72rem, 3.2vw, 0.88rem);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.sticky-actions .btn.warning,
.sticky-actions .btn.neutral {
  background: linear-gradient(180deg, #343a42, #20242a);
}

.sticky-actions .btn.danger {
  background: linear-gradient(180deg, #96363a, #651e23);
}

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

.event-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.event-row .badge {
  min-width: 34px;
  padding: 5px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--neutral);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.event-row.positive .badge {
  background: var(--positive);
}

.event-row.negative .badge {
  background: var(--negative);
}

.event-row.goalieSave .badge {
  background: var(--goalie-save);
}

.event-row.goalieAllowed .badge {
  background: var(--goalie-allowed);
}

.event-row strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.event-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.event-row .score {
  color: var(--text);
  font-weight: 900;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  justify-content: flex-end;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--neutral);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.mini-btn.light {
  border: 1px solid var(--line);
  color: var(--text);
  background: #ffffff;
}

.mini-btn.danger {
  background: var(--danger);
}

.mini-btn.tag {
  color: #ffffff;
  background: var(--hornet-yellow);
}

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

.mode-toggle .mini-btn {
  width: 100%;
}

.edit-event-form {
  border-color: rgba(17, 132, 71, 0.32);
}

.tag-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(17, 19, 23, 0.16);
  border-radius: 999px;
  color: #111317;
  background: var(--hornet-yellow-soft);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tag-remove {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #111317;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.tag-editor {
  border-color: rgba(232, 16, 16, 0.64);
  box-shadow: 0 0 0 2px rgba(232, 16, 16, 0.12);
}

.tag-editor-block {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.tag-editor-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-suggestion {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(17, 19, 23, 0.14);
  border-radius: 999px;
  color: #111317;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
}

.custom-tag-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.share-card {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  border-color: rgba(232, 16, 16, 0.48);
}

.share-card.collapsed {
  gap: 0;
}

.share-card h3,
.share-watch-form h3,
.account-card h3 {
  margin: 0;
}

.share-watch-form.collapsed {
  gap: 0;
}

.export-card.collapsed {
  padding-top: 12px;
  padding-bottom: 12px;
}

.share-watch-form .muted {
  margin-bottom: 0;
}

.collapsible-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.collapse-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(17, 19, 23, 0.16);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.collapse-icon span {
  transform: translateY(-1px);
}

.share-card-body {
  display: grid;
  gap: 10px;
}

.share-watch-fields {
  display: grid;
  gap: 12px;
}

.account-card {
  border-color: rgba(232, 16, 16, 0.3);
}

.account-success-card {
  border-color: rgba(17, 132, 71, 0.36);
}

.more-card {
  display: grid;
  gap: 12px;
}

.primary-manage-card {
  border-color: rgba(232, 16, 16, 0.22);
}

.account-tools-card {
  gap: 10px;
}

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

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

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

.more-status-cell {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(17, 19, 23, 0.1);
  border-radius: var(--radius);
  background: #f6f7f8;
}

.more-status-cell span,
.more-status-cell strong {
  display: block;
}

.more-status-cell span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.more-status-cell strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.more-status-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.more-action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon copy";
  gap: 2px 10px;
  min-height: 62px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(17, 19, 23, 0.1);
  border-radius: var(--radius);
  color: var(--text);
  background: #f6f7f8;
  text-align: left;
}

.more-action > span {
  grid-area: icon;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--hornet-red);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(232, 16, 16, 0.16);
}

.more-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.more-action strong {
  grid-area: title;
  min-width: 0;
  font-size: 0.96rem;
  line-height: 1.15;
}

.more-action small {
  grid-area: copy;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.28;
}

.more-action.danger-link > span {
  color: #ffffff;
  background: var(--danger);
  box-shadow: none;
}

.more-action.danger-link strong {
  color: #8d1f22;
}

.compact-actions .more-action {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 58px;
  padding: 9px;
}

.compact-actions .more-action > span {
  width: 34px;
  height: 34px;
}

.compact-actions .more-action small {
  font-size: 0.72rem;
}

.admin-tools-card {
  border-color: rgba(232, 16, 16, 0.2);
}

.launch-kit-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-color: rgba(232, 16, 16, 0.24);
}

.launch-kit-group {
  display: grid;
  gap: 12px;
}

.launch-kit-group h3,
.launch-kit-hero-card h3 {
  margin: 0;
}

.launch-kit-actions,
.promo-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.launch-file-grid {
  display: grid;
  gap: 8px;
}

.launch-file-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(17, 19, 23, 0.1);
  border-radius: var(--radius);
  color: var(--text);
  background: #f6f7f8;
  text-decoration: none;
}

.launch-file-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--hornet-red);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(232, 16, 16, 0.16);
}

.launch-file-card svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.launch-file-card strong {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.15;
}

.launch-file-card small {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.promo-instructions-card h3 {
  margin: 0;
}

.promo-recording-screen {
  --promo-cycle: 16.8s;
  --promo-step-duration: 2.4s;
}

.promo-recording-frame {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 0.9fr);
  gap: 12px;
  min-height: 620px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 18%, rgba(232, 16, 16, 0.12), transparent 18rem),
    linear-gradient(180deg, #181818, #090909);
  box-shadow: var(--shadow);
}

.promo-field-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 18%,
    linear-gradient(135deg, #16361f, #0d2114 54%, #111111);
}

.promo-field-lines {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  opacity: 0.6;
}

.promo-player-marker {
  position: absolute;
  top: 62%;
  left: 24%;
  width: 34px;
  height: 34px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--hornet-red);
  box-shadow:
    0 0 0 9px rgba(232, 16, 16, 0.22),
    0 14px 22px rgba(0, 0, 0, 0.35);
  animation: promoPlayerMove var(--promo-cycle) ease-in-out infinite;
}

.promo-field-copy {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.promo-field-copy span,
.promo-caption span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-field-copy strong {
  font-size: 1.05rem;
  line-height: 1.12;
}

.promo-caption-stack {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  min-height: 126px;
}

.promo-caption {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border-left: 5px solid var(--hornet-red);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(9, 9, 9, 0.76);
  opacity: 0;
  transform: translateY(10px);
  animation: promoCaption var(--promo-cycle) linear infinite;
  animation-delay: calc(var(--promo-step) * var(--promo-step-duration));
}

.promo-caption strong {
  font-size: 1.2rem;
  line-height: 1.08;
}

.promo-caption small {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
}

.promo-phone-shell {
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(180deg, #171717, #050505);
  box-shadow:
    inset 0 0 0 5px #050505,
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.promo-phone-top {
  display: grid;
  gap: 4px;
  padding: 10px 8px 12px;
}

.promo-phone-top span {
  color: #9ca3aa;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-phone-top strong {
  font-size: 1.15rem;
  line-height: 1.08;
}

.promo-period-tabs {
  margin-bottom: 10px;
}

.promo-phone-shell .live-summary {
  margin-bottom: 10px;
}

.promo-phone-shell .live-pill {
  min-height: 50px;
  padding: 7px;
}

.promo-phone-shell .live-stat-groups {
  gap: 9px;
}

.promo-phone-shell .stat-group {
  gap: 6px;
}

.promo-phone-shell .stat-group-head span {
  display: none;
}

.promo-phone-shell .tracker-grid {
  gap: 7px;
}

.promo-phone-shell .stat-button {
  min-height: 56px;
  padding: 9px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

.promo-phone-shell .stat-button .label {
  font-size: 0.86rem;
}

.promo-phone-shell .stat-button .points {
  font-size: 0.66rem;
}

.stat-button.promo-hit {
  animation: promoButtonPulse var(--promo-cycle) linear infinite;
  animation-delay: calc(var(--promo-step) * var(--promo-step-duration));
}

.promo-log-card {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
}

.promo-log-card h3 {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.promo-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-left: 4px solid var(--hornet-red);
  border-radius: 8px;
  background: #f5f6f7;
  font-size: 0.78rem;
  font-weight: 850;
}

.promo-log-row strong {
  color: var(--hornet-red);
}

@keyframes promoButtonPulse {
  0%,
  13% {
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-2px);
    box-shadow:
      inset 0 0 0 2px rgba(255, 255, 255, 0.42),
      0 0 0 3px rgba(232, 16, 16, 0.48),
      0 14px 26px rgba(232, 16, 16, 0.28);
  }

  18%,
  100% {
    transform: translateY(0);
  }
}

@keyframes promoCaption {
  0%,
  13% {
    opacity: 1;
    transform: translateY(0);
  }

  18%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes promoPlayerMove {
  0%,
  100% {
    top: 62%;
    left: 24%;
  }

  15% {
    top: 54%;
    left: 34%;
  }

  30% {
    top: 45%;
    left: 50%;
  }

  45% {
    top: 36%;
    left: 68%;
  }

  60% {
    top: 28%;
    left: 72%;
  }

  78% {
    top: 46%;
    left: 58%;
  }

  90% {
    top: 58%;
    left: 42%;
  }
}

.request-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(17, 19, 23, 0.12);
  border-radius: var(--radius);
  background: #f5f6f7;
}

.request-summary div {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.request-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.request-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tutorial-list h3 {
  margin: 0;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.share-code {
  display: inline-grid;
  min-height: 46px;
  place-items: center;
  border: 2px dashed rgba(17, 19, 23, 0.24);
  border-radius: var(--radius);
  color: #111317;
  background: var(--hornet-yellow-soft);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0;
}

.export-card {
  gap: 0;
  border-color: rgba(17, 19, 23, 0.1);
  box-shadow: none;
}

.export-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.export-card .muted {
  margin: 0;
}

.export-card-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.export-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.import-label {
  display: grid;
  place-items: center;
}

.import-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.edit-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.list-row:first-child {
  border-top: 0;
}

.list-row h3,
.list-row p {
  margin: 0;
}

.list-row h3 {
  color: var(--text);
  font-size: 1rem;
}

.list-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.row-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--neutral);
  font-size: 1rem;
  font-weight: 900;
}

.icon-btn.wide {
  width: auto;
  min-width: 88px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.icon-btn.delete {
  background: var(--danger);
}

.table-card {
  overflow-x: hidden;
}

.stat-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: var(--text);
  background: #ffffff;
}

.stat-table th,
.stat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.stat-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-table .stat-section-row th {
  background: #f2f3f5;
  border-bottom-color: #d9dde3;
  color: var(--danger);
  font-size: 0.72rem;
  letter-spacing: 0;
  padding: 9px 12px 7px;
}

.stat-table td:last-child,
.stat-table th:last-child {
  width: 34%;
  text-align: right;
  white-space: nowrap;
}

.stat-table td:first-child,
.stat-table th:first-child {
  width: 66%;
}

.stat-table .stat-section-row th:first-child,
.stat-table .stat-section-row th:last-child {
  width: auto;
  text-align: left;
  white-space: normal;
}

.empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  position: fixed;
  right: 10px;
  bottom: 0;
  left: 10px;
  z-index: 35;
  max-width: 732px;
  margin: 0 auto;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(13, 13, 13, 0.97);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.nav-tab {
  display: grid;
  min-width: 0;
  min-height: 56px;
  place-items: center;
  gap: 4px;
  padding: 7px 2px 6px;
  border-radius: 10px;
  color: #b9bec5;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.nav-tab svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.nav-tab span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-tab.active {
  border: 1px solid rgba(232, 16, 16, 0.38);
  color: #111317;
  background: var(--surface-soft);
  box-shadow: inset 0 4px 0 var(--hornet-red);
}

.nav-tab.active svg {
  color: var(--hornet-red);
}

.toast {
  position: fixed;
  right: 14px;
  bottom: calc(92px + var(--safe-bottom));
  left: 14px;
  z-index: 40;
  max-width: 732px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(13, 13, 13, 0.96);
  box-shadow: var(--shadow);
  font-size: 0.94rem;
  font-weight: 800;
}

.update-banner {
  position: sticky;
  top: 8px;
  z-index: 34;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 11px 12px;
  border: 1px solid rgba(232, 16, 16, 0.5);
  border-radius: var(--radius);
  color: var(--text);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.update-banner strong,
.update-banner span {
  display: block;
}

.update-banner strong {
  font-size: 0.94rem;
  font-weight: 950;
}

.update-banner span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.update-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.update-dismiss {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 950;
}

@media (min-width: 520px) {
  .app-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .topbar {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

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

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

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

  .roster-edit-details {
    grid-template-columns: minmax(96px, 132px) minmax(0, 1fr);
  }

  .edit-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .status-chip {
    display: none;
  }

  .stat-group-head span {
    display: none;
  }

  .launch-kit-hero-card,
  .promo-instructions-card {
    grid-template-columns: 1fr;
  }

  .launch-kit-actions,
  .promo-action-row {
    justify-content: stretch;
  }

  .launch-kit-actions > *,
  .promo-action-row > * {
    flex: 1 1 100%;
  }
}

@media (max-width: 700px) {
  .promo-recording-frame {
    grid-template-columns: 1fr;
  }

  .promo-field-panel {
    min-height: 360px;
  }

  .promo-phone-shell {
    border-radius: 16px;
  }
}

@media (min-width: 760px) {
  .tracker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.promo-phone-shell .tracker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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