:root {
  --night: #05070d;
  --night-2: #0b1020;
  --panel: #101624;
  --panel-2: #151d2e;
  --paper: #f4f6ee;
  --white: #ffffff;
  --muted: #9ca6b8;
  --line: rgba(255, 255, 255, 0.12);
  --lime: #b7ff20;
  --green: #08c46b;
  --orange: #ff5a14;
  --orange-2: #f23f0b;
  --blue: #6ea8ff;
  --danger: #ff3f5f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --heading: "Archivo Black", Impact, sans-serif;
  --body: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  color: var(--white);
  background:
    linear-gradient(118deg, rgba(183, 255, 32, 0.11), transparent 34%),
    linear-gradient(242deg, rgba(255, 90, 20, 0.13), transparent 30%),
    linear-gradient(180deg, #05070d 0%, #080c17 48%, #04050a 100%);
  background-attachment: fixed;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
}

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

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.login-screen {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(22px, 5vw, 64px);
  isolation: isolate;
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: -1;
  pointer-events: none;
}

.login-screen::before {
  width: 68vw;
  height: 68vw;
  right: -26vw;
  top: -24vw;
  background: radial-gradient(circle, rgba(183, 255, 32, 0.28), transparent 62%);
  filter: blur(2px);
}

.login-screen::after {
  width: 54vw;
  height: 54vw;
  left: -24vw;
  bottom: -26vw;
  background: radial-gradient(circle, rgba(255, 90, 20, 0.26), transparent 64%);
}

.login-orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.login-orbit span {
  position: absolute;
  width: 86px;
  height: 112px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border: 6px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-family: var(--heading);
  font-size: 24px;
  transform: rotate(var(--card-rot, -8deg));
  animation: floatCard 5s ease-in-out infinite;
}

.login-orbit span:nth-child(1) {
  left: 8vw;
  top: 14vh;
  --card-rot: -14deg;
}

.login-orbit span:nth-child(2) {
  left: 45vw;
  top: 8vh;
  background: var(--orange);
  --card-rot: 10deg;
  animation-delay: -1.4s;
}

.login-orbit span:nth-child(3) {
  left: 57vw;
  bottom: 13vh;
  background: var(--green);
  --card-rot: -6deg;
  animation-delay: -2.2s;
}

.login-orbit span:nth-child(4) {
  left: 24vw;
  bottom: 8vh;
  background: var(--paper);
  --card-rot: 12deg;
  animation-delay: -3s;
}

.login-orbit span:nth-child(5) {
  right: 9vw;
  top: 20vh;
  --card-rot: 7deg;
  animation-delay: -0.7s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(var(--card-rot));
  }
  50% {
    transform: translateY(-16px) rotate(calc(var(--card-rot) * -1));
  }
}

.login-hero {
  max-width: 760px;
}

.login-brand {
  width: fit-content;
  margin-bottom: 58px;
}

.login-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.88;
  text-transform: uppercase;
}

.login-hero p:not(.eyebrow) {
  max-width: 560px;
  color: #dbe2ef;
  font-size: 21px;
  font-weight: 700;
}

.login-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mini-sticker {
  width: 126px;
  min-height: 152px;
  display: grid;
  align-content: space-between;
  padding: 12px;
  color: var(--night);
  background: var(--lime);
  border: 5px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.mini-sticker:nth-child(2) {
  transform: rotate(5deg) translateY(10px);
}

.mini-sticker:nth-child(3) {
  transform: rotate(-2deg);
}

.mini-sticker.is-orange {
  background: var(--orange);
}

.mini-sticker.is-paper {
  background: var(--paper);
}

.mini-sticker span,
.mini-sticker strong {
  font-family: var(--heading);
  text-transform: uppercase;
}

.mini-sticker span {
  font-size: 13px;
}

.mini-sticker strong {
  font-size: 24px;
  line-height: 0.94;
}

.login-card {
  min-height: 720px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 24px;
  color: var(--night);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.login-card h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: 44px;
  line-height: 0.95;
  text-transform: uppercase;
}

.login-card .eyebrow {
  color: var(--orange);
}

.login-card label {
  display: grid;
  gap: 8px;
}

.login-card label span,
.login-card small {
  color: #4b5565;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card input {
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  color: var(--night);
  background: var(--white);
  border: 1px solid #d8ddcf;
  border-radius: 8px;
  outline: none;
  font-weight: 900;
}

.login-card input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(183, 255, 32, 0.36);
}

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

.auth-mode-toggle button {
  min-height: 48px;
  color: var(--night);
  background: #e4e9da;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-mode-toggle button.is-active,
.login-submit {
  color: var(--night);
  background: var(--lime);
}

.login-submit {
  width: 100%;
}

.secondary-login {
  min-height: 44px;
  color: #4b5565;
  background: transparent;
  border: 1px dashed #b9c2aa;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.secondary-login:hover {
  color: var(--night);
  border-color: var(--orange);
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-only {
  display: none !important;
}

body.is-admin .nav-item.admin-only {
  display: inline-flex !important;
}

body.is-admin .stage-step.admin-only {
  display: grid !important;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(8, 196, 107, 0.12), transparent 34%),
    rgba(5, 7, 13, 0.94);
  border-right: 1px solid var(--line);
}

.brand {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lime);
  font-family: var(--heading);
  font-size: 20px;
  text-transform: uppercase;
}

.brand-mark {
  width: 46px;
  height: 46px;
}

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

.nav-item,
.primary-button,
.ghost-button,
.light-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 170ms ease,
    background 170ms ease,
    border-color 170ms ease,
    color 170ms ease,
    box-shadow 170ms ease;
}

.primary-button:disabled,
.ghost-button:disabled,
.light-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.nav-item svg,
.primary-button svg,
.ghost-button svg,
.light-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-item {
  justify-content: flex-start;
  color: var(--muted);
  background: transparent;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--night);
  background: var(--lime);
  transform: translateX(2px);
}

.primary-button {
  color: var(--night);
  background: var(--lime);
  box-shadow: 0 12px 32px rgba(183, 255, 32, 0.2);
}

.primary-button:hover,
.light-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.light-button:active,
.ghost-button:active,
.nav-item:active {
  transform: translateY(0) scale(0.98);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.light-button {
  color: var(--night);
  background: var(--white);
}

.compact {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 14px;
}

.season-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.season-card span,
.season-card small,
.metric-tile span,
.metric-tile small,
.amount-chip span,
.team-column > span,
.share-card-top span,
.ticket-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.season-card strong {
  display: block;
  margin: 4px 0 12px;
  font-family: var(--heading);
  font-size: 26px;
  line-height: 1;
}

.season-meter,
.metric-track {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.season-meter span,
.metric-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  border-radius: inherit;
  transition: width 260ms ease;
}

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

.topbar,
.view-header,
.surface-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  margin-bottom: 22px;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: -6px 0 22px;
}

.stage-step {
  min-height: 74px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-content: center;
  padding: 13px;
  color: var(--white);
  text-align: left;
  background: rgba(16, 22, 36, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.stage-step::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 10px;
  height: 3px;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 999px;
}

.stage-step.is-active {
  color: var(--night);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}

.stage-step.is-active::after {
  background: rgba(5, 7, 13, 0.34);
}

.stage-step span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--white);
  border-radius: 50%;
  font-family: var(--heading);
  font-size: 12px;
}

.stage-step strong,
.stage-step small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-step strong {
  font-family: var(--heading);
  line-height: 1;
  text-transform: uppercase;
}

.stage-step small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.stage-step.is-active small {
  color: rgba(5, 7, 13, 0.66);
}

.topbar h1,
.view-header h2,
.hero-copy h2 {
  margin: 0;
  font-family: var(--heading);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h1 {
  font-size: 42px;
}

.topbar-actions,
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.session-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--lime);
  background: rgba(183, 255, 32, 0.1);
  border: 1px solid rgba(183, 255, 32, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sync-pill {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.sync-pill[data-sync-status="online"] {
  color: var(--night);
  background: var(--green);
  border-color: var(--green);
}

.sync-pill[data-sync-status="syncing"] {
  color: var(--night);
  background: var(--lime);
  border-color: var(--lime);
}

.sync-pill[data-sync-status="error"] {
  color: var(--white);
  background: rgba(255, 63, 95, 0.16);
  border-color: rgba(255, 63, 95, 0.44);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: viewIn 300ms ease both;
}

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

.hero-panel {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: end;
  overflow: hidden;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.98), rgba(5, 7, 13, 0.78) 48%, rgba(5, 7, 13, 0.08)),
    linear-gradient(135deg, rgba(183, 255, 32, 0.22) 0 18%, transparent 18% 100%),
    url("assets/hero-nitro-inspired.webp") center right / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 700px;
}

.hero-copy h2 {
  max-width: 700px;
  font-size: 64px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 540px;
  color: #dbe2ef;
  font-size: 20px;
  font-weight: 600;
}

.match-ticket,
.tool-surface,
.metric-tile,
.finance-summary,
.team-column,
.versus-card,
.share-card,
.sticker-card {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.match-ticket {
  padding: 22px;
  background: rgba(5, 7, 13, 0.84);
  backdrop-filter: blur(12px);
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ticket-top strong {
  color: var(--orange);
}

.ticket-score {
  display: grid;
  margin: 24px 0;
}

.ticket-score strong {
  font-family: var(--heading);
  font-size: 104px;
  line-height: 0.86;
}

.ticket-score span {
  color: var(--lime);
  font-weight: 900;
  text-transform: uppercase;
}

.my-round-panel {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(183, 255, 32, 0.16), transparent 34%),
    rgba(16, 22, 36, 0.9);
  border: 1px solid rgba(183, 255, 32, 0.22);
  border-radius: 8px;
}

.my-round-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.my-round-copy h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.my-round-copy p {
  max-width: 720px;
  margin: 0;
  color: #dbe2ef;
  font-weight: 700;
}

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

.my-round-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.my-round-actions button.primary-action {
  color: var(--night);
  background: var(--lime);
  border-color: var(--lime);
}

.my-round-actions button.orange-action {
  color: var(--night);
  background: var(--orange);
  border-color: var(--orange);
}

.my-round-actions svg {
  width: 17px;
  height: 17px;
}

.match-ticket dl,
.finance-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.match-ticket dl div,
.finance-summary dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

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

dd {
  margin: 0;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.metric-tile {
  min-height: 142px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  background: var(--panel);
}

.metric-tile strong {
  font-family: var(--heading);
  font-size: 40px;
  line-height: 1;
}

.metric-track.orange i {
  background: var(--orange);
}

.mini-stack {
  display: flex;
  min-height: 26px;
}

.mini-stack span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: -6px;
  color: var(--night);
  background: var(--lime);
  border: 2px solid var(--panel);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.split-work,
.finance-layout,
.recap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.tool-surface {
  min-width: 0;
  padding: 20px;
  background: rgba(16, 22, 36, 0.88);
}

.surface-heading {
  margin-bottom: 18px;
}

.surface-heading h3,
.view-header h2,
.team-column h3 {
  margin: 0;
  font-family: var(--heading);
  text-transform: uppercase;
  line-height: 1;
}

.view-header {
  margin-bottom: 18px;
}

.view-header h2 {
  font-size: 42px;
}

.status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--night);
  background: var(--lime);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.roster-list,
.bench-list,
.payment-list,
.team-list {
  display: grid;
  gap: 10px;
}

.roster-row,
.bench-row,
.payment-row,
.team-player {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.roster-row strong,
.bench-row strong,
.payment-row strong,
.team-player strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-row small,
.bench-row small,
.payment-row small,
.team-player small {
  color: var(--muted);
  font-weight: 700;
}

.roster-row button,
.payment-row button,
.card-actions button {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.roster-row button:hover,
.payment-row button:hover,
.card-actions button:hover {
  color: var(--night);
  background: var(--lime);
}

.pitch-surface {
  background:
    linear-gradient(140deg, rgba(8, 196, 107, 0.18), rgba(16, 22, 36, 0.9)),
    var(--panel);
}

.add-player {
  display: grid;
  grid-template-columns: 180px 128px auto;
  gap: 8px;
}

.add-player input,
.add-player select,
textarea {
  min-height: 44px;
  width: 100%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.add-player input,
.add-player select {
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 14px;
}

.add-player input:focus,
.add-player select:focus,
textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(183, 255, 32, 0.14);
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.segmented-control button {
  min-height: 40px;
  padding: 10px 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.segmented-control button.is-active {
  color: var(--night);
  background: var(--lime);
  border-color: var(--lime);
}

.team-command-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.58fr) minmax(240px, 0.88fr);
  gap: 12px;
  margin-bottom: 18px;
}

.team-progress-card,
.team-pack-card {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  background: rgba(16, 22, 36, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-progress-card span,
.team-progress-card small,
.team-pack-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-progress-card strong {
  font-family: var(--heading);
  font-size: 42px;
  line-height: 1;
}

.team-progress-card.accent-orange strong {
  color: var(--orange);
}

.badge-stack-large {
  min-height: 56px;
  display: flex;
  align-items: center;
}

.badge-stack-large span {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
  color: var(--night);
  background: var(--lime);
  border: 4px solid var(--panel);
  border-radius: 50%;
  font-family: var(--heading);
  font-size: 16px;
  line-height: 1;
}

.badge-stack-large span:nth-child(3n) {
  background: var(--orange);
}

.badge-stack-large span:nth-child(4n) {
  background: var(--green);
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}

.sticker-card {
  min-height: 254px;
  position: relative;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(160deg, rgba(183, 255, 32, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 16%, transparent 16%),
    var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.sticker-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.sticker-card::after {
  content: "BR";
  position: absolute;
  right: -4px;
  bottom: 46px;
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--heading);
  font-size: 72px;
  line-height: 1;
  pointer-events: none;
}

.sticker-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: rgba(183, 255, 32, 0.5);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.26);
}

.sticker-status {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.sticker-status span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  color: var(--night);
  background: var(--lime);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sticker-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 22px auto 18px;
  color: var(--night);
  background: var(--lime);
  border: 8px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: inset 0 -10px 0 rgba(5, 7, 13, 0.14);
  font-family: var(--heading);
  font-size: 28px;
  line-height: 1;
}

.sticker-card h3 {
  min-height: 48px;
  margin: 0;
  font-family: var(--heading);
  font-size: 24px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.sticker-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.sticker-card[data-status="reserve"] .sticker-avatar,
.sticker-card[data-status="reserve"] .sticker-status span {
  background: var(--orange);
}

.sticker-card[data-status="out"] {
  filter: grayscale(0.7);
  opacity: 0.66;
}

.sticker-card[data-status="out"] .sticker-avatar,
.sticker-card[data-status="out"] .sticker-status span {
  background: var(--muted);
}

.amount-chip {
  min-height: 58px;
  display: grid;
  align-content: center;
  padding: 10px 16px;
  color: var(--night);
  background: var(--lime);
  border-radius: 8px;
}

.amount-chip strong {
  font-family: var(--heading);
  font-size: 28px;
  line-height: 1;
}

.finance-summary {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 24px;
  background: var(--paper);
  color: var(--night);
}

.finance-summary dt {
  color: #52606f;
}

.cash-ring {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 56%, transparent 57%),
    conic-gradient(var(--green) var(--cash-angle, 0deg), #dbe1d2 0);
}

.cash-ring span {
  font-family: var(--heading);
  font-size: 44px;
}

.payment-row.is-paid {
  background: rgba(183, 255, 32, 0.14);
}

.teams-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.team-column,
.versus-card {
  min-height: 520px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(183, 255, 32, 0.14), transparent 38%),
    var(--panel);
}

.orange-team {
  background:
    linear-gradient(180deg, rgba(255, 90, 20, 0.16), transparent 38%),
    var(--panel);
}

.team-column h3 {
  margin: 4px 0 18px;
  font-size: 36px;
}

.versus-card {
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--paper);
  color: var(--night);
}

.versus-card strong {
  font-family: var(--heading);
  font-size: 68px;
  line-height: 1;
}

.versus-card span {
  font-weight: 900;
  text-transform: uppercase;
}

.team-player {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.team-player i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.orange-team .team-player i {
  background: var(--orange);
}

.recap-layout {
  align-items: start;
}

.share-card {
  min-height: 520px;
  display: grid;
  align-content: space-between;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(140deg, rgba(5, 7, 13, 0.96), rgba(5, 7, 13, 0.48)),
    url("assets/resenha-community.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.share-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.share-card h3 {
  max-width: 460px;
  margin: 60px 0 20px;
  font-family: var(--heading);
  font-size: 58px;
  line-height: 0.98;
  text-transform: uppercase;
}

.share-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.share-stats div {
  min-height: 92px;
  display: grid;
  align-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.share-stats span {
  font-family: var(--heading);
  font-size: 32px;
  line-height: 1;
}

.share-stats small,
.share-card p {
  color: #dbe2ef;
  font-weight: 800;
}

.feed-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-bottom: 18px;
}

.feed-signal-card {
  min-height: 520px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 26px;
  color: var(--night);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0 16%, transparent 16%),
    var(--lime);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feed-signal-card span,
.badge-card span,
.badge-card small,
.feed-event small {
  color: rgba(5, 7, 13, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feed-signal-card strong {
  font-family: var(--heading);
  font-size: 64px;
  line-height: 0.9;
  text-transform: uppercase;
}

.feed-signal-card p {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

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

.feed-event {
  min-height: 70px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.feed-event i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.feed-event[data-tone="orange"] i {
  background: var(--orange);
}

.feed-event[data-tone="green"] i {
  background: var(--green);
}

.feed-event strong {
  display: block;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-event em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.badge-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.badge-card {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  padding: 20px;
  color: var(--night);
  background: var(--paper);
  border-radius: 8px;
}

.badge-card strong {
  font-family: var(--heading);
  font-size: 44px;
  line-height: 0.94;
  text-transform: uppercase;
}

.badge-card.accent-orange {
  background: var(--orange);
}

.badge-card.accent-green {
  background: var(--green);
}

.admin-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.45fr) minmax(220px, 0.6fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-hero-card,
.admin-stat-card {
  min-height: 178px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-hero-card {
  color: var(--night);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 18%, transparent 18%),
    var(--lime);
}

.admin-hero-card span,
.admin-stat-card span,
.admin-stat-card small,
.rule-grid span,
.audit-row small,
.admin-player-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-hero-card span {
  color: rgba(5, 7, 13, 0.64);
}

.admin-hero-card strong,
.admin-stat-card strong {
  font-family: var(--heading);
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-hero-card strong {
  font-size: 46px;
}

.admin-hero-card p {
  max-width: 560px;
  margin: 0;
  font-weight: 900;
}

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

.admin-link-box code {
  min-height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(5, 7, 13, 0.9);
  border-radius: 8px;
  font-family: var(--body);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-link-box button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--night);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.admin-link-box svg {
  width: 16px;
  height: 16px;
}

.admin-stat-card {
  background: rgba(16, 22, 36, 0.88);
}

.admin-stat-card strong {
  font-size: 54px;
}

.admin-stat-card.accent-orange strong {
  color: var(--orange);
  font-size: 38px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  margin-bottom: 18px;
}

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

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

.rule-grid label {
  display: grid;
  gap: 8px;
}

.rule-grid input,
.rule-grid select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.rule-grid input:focus,
.rule-grid select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(183, 255, 32, 0.14);
}

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

.audit-surface {
  background:
    linear-gradient(140deg, rgba(255, 90, 20, 0.16), rgba(16, 22, 36, 0.9)),
    var(--panel);
}

.audit-list,
.admin-table {
  display: grid;
  gap: 10px;
}

.audit-row,
.admin-player-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.audit-row i,
.admin-player-row i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.audit-row strong,
.admin-player-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-player-row {
  grid-template-columns: 42px minmax(0, 1fr) 110px 92px auto;
}

.admin-player-row[data-status="reserve"] i {
  background: var(--orange);
}

.admin-player-row[data-status="out"] {
  opacity: 0.58;
}

.admin-player-row[data-status="out"] i {
  background: var(--muted);
}

.admin-player-row button {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--night);
  background: var(--lime);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

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

.swarm-chip {
  position: absolute;
  width: 74px;
  height: 96px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border: 6px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  font-family: var(--heading);
  font-size: 22px;
  animation: swarmFly 950ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.swarm-chip:nth-child(3n) {
  background: var(--orange);
}

.swarm-chip:nth-child(4n) {
  background: var(--green);
}

@keyframes swarmFly {
  0% {
    opacity: 0;
    transform: translate(var(--start-x), var(--start-y)) rotate(var(--rot-start)) scale(0.35);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) rotate(var(--rot-end)) scale(1);
  }
}

@media (max-width: 1080px) {
  .login-screen {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .login-card {
    min-height: auto;
  }

  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar {
    padding: 14px;
    align-items: center;
  }

  .brand span,
  .nav-item span,
  .season-card {
    display: none;
  }

  .nav-item {
    width: 56px;
    justify-content: center;
  }

  .hero-panel,
  .my-round-panel,
  .split-work,
  .finance-layout,
  .recap-layout,
  .feed-layout,
  .team-command-strip,
  .admin-command-center,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

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

  .teams-board {
    grid-template-columns: 1fr;
  }

  .versus-card {
    min-height: 130px;
  }
}

@media (max-width: 760px) {
  .login-screen {
    padding: 18px;
  }

  .login-orbit span {
    width: 62px;
    height: 82px;
    border-width: 4px;
    font-size: 17px;
  }

  .login-brand {
    margin-bottom: 36px;
  }

  .login-hero h1 {
    font-size: 48px;
  }

  .login-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .mini-sticker {
    width: 96px;
    min-height: 120px;
  }

  .mini-sticker strong {
    font-size: 20px;
  }

  .login-card {
    padding: 18px;
  }

  .login-card h2 {
    font-size: 36px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: auto;
    height: 64px;
    z-index: 50;
    padding: 8px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 7, 13, 0.92);
    backdrop-filter: blur(14px);
  }

  .brand {
    min-height: 48px;
    justify-content: center;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }

  .nav-item {
    min-width: 48px;
    width: 48px;
  }

  .workspace {
    padding: 14px 14px 92px;
  }

  .stage-rail {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin: -6px -14px 18px;
    padding: 0 14px 5px;
    scroll-snap-type: x proximity;
  }

  .stage-step {
    min-width: 148px;
    scroll-snap-align: start;
  }

  .topbar,
  .view-header,
  .surface-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar h1 {
    font-size: 34px;
  }

  .view-header h2 {
    font-size: 32px;
  }

  .hero-panel {
    min-height: auto;
    padding: 22px;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .ticket-score strong {
    font-size: 76px;
  }

  .metric-grid,
  .share-stats,
  .badge-board,
  .add-player,
  .rule-grid {
    grid-template-columns: 1fr;
  }

  .my-round-panel {
    align-items: start;
  }

  .my-round-actions {
    justify-content: flex-start;
  }

  .feed-signal-card {
    min-height: 360px;
  }

  .feed-signal-card strong {
    font-size: 46px;
  }

  .feed-event {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .feed-event .status-pill {
    width: fit-content;
    grid-column: 2;
  }

  .admin-player-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .admin-player-row small,
  .admin-player-row .status-pill {
    display: none;
  }

  .admin-hero-card strong {
    font-size: 36px;
  }

  .admin-link-box {
    grid-template-columns: 1fr;
  }

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

  .sticker-card {
    min-height: 238px;
  }

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

  .share-card h3 {
    font-size: 42px;
  }
}

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