:root {
  --ink-950: #05070d;
  --ink-900: #080c17;
  --ink-850: #0b1020;
  --ink-800: #101624;
  --ink-760: #151d2e;
  --paper-50: #f8faf3;
  --paper-100: #f4f6ee;
  --paper-200: #eef3e5;
  --paper-300: #e4e9da;
  --paper-border: #d8ddcf;
  --paper-border-strong: #aab3a2;
  --text-primary: #ffffff;
  --text-secondary: #dbe2ef;
  --text-tertiary: #c5cfdd;
  --text-muted: #9ca6b8;
  --text-on-paper: #05070d;
  --text-on-paper-muted: #4b5565;
  --text-on-paper-soft: #586174;
  --brand-lime: #b7ff20;
  --brand-green: #08c46b;
  --brand-orange: #ff5a14;
  --brand-orange-strong: #f23f0b;
  --brand-blue: #6ea8ff;
  --status-danger: #ff3f5f;
  --surface-app: var(--ink-950);
  --surface-app-2: var(--ink-900);
  --surface-raised: var(--ink-800);
  --surface-raised-2: var(--ink-760);
  --surface-card: var(--paper-100);
  --surface-card-soft: var(--paper-200);
  --surface-card-muted: var(--paper-300);
  --surface-card-glass: rgba(244, 246, 238, 0.97);
  --surface-overlay: rgba(5, 7, 13, 0.78);
  --surface-overlay-strong: rgba(5, 7, 13, 0.94);
  --surface-panel-glass: rgba(16, 22, 36, 0.9);
  --surface-panel-soft: rgba(16, 22, 36, 0.76);
  --surface-ghost: rgba(255, 255, 255, 0.06);
  --surface-ghost-hover: rgba(255, 255, 255, 0.08);
  --surface-ghost-strong: rgba(255, 255, 255, 0.12);
  --surface-ghost-selected: rgba(255, 255, 255, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-quiet: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-on-image: rgba(255, 255, 255, 0.54);
  --border-accent: rgba(183, 255, 32, 0.36);
  --border-accent-strong: rgba(183, 255, 32, 0.62);
  --text-on-accent-muted: rgba(5, 7, 13, 0.66);
  --accent-primary: var(--brand-lime);
  --accent-primary-soft: rgba(183, 255, 32, 0.1);
  --accent-primary-panel: rgba(183, 255, 32, 0.14);
  --accent-primary-border: rgba(183, 255, 32, 0.28);
  --accent-action: var(--brand-orange);
  --accent-action-soft: rgba(255, 90, 20, 0.1);
  --accent-action-panel: rgba(255, 90, 20, 0.12);
  --accent-action-border: rgba(255, 90, 20, 0.42);
  --accent-info: var(--brand-blue);
  --accent-info-soft: rgba(79, 168, 255, 0.1);
  --accent-info-panel: rgba(79, 168, 255, 0.12);
  --accent-info-border: rgba(79, 168, 255, 0.38);
  --accent-success: var(--brand-green);
  --accent-success-soft: rgba(8, 196, 107, 0.1);
  --accent-success-panel: rgba(8, 196, 107, 0.12);
  --accent-success-border: rgba(8, 196, 107, 0.42);
  --accent-danger: var(--status-danger);
  --accent-danger-soft: rgba(255, 63, 95, 0.13);
  --accent-danger-panel: rgba(255, 63, 95, 0.16);
  --accent-danger-border-soft: rgba(255, 63, 95, 0.44);
  --accent-danger-border: rgba(255, 63, 95, 0.52);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-accent: 0 12px 32px rgba(183, 255, 32, 0.2);
  --night: var(--ink-950);
  --night-2: var(--ink-850);
  --panel: var(--ink-800);
  --panel-2: var(--ink-760);
  --paper: var(--paper-100);
  --white: var(--text-primary);
  --muted: var(--text-muted);
  --line: var(--border-subtle);
  --lime: var(--brand-lime);
  --green: var(--brand-green);
  --orange: var(--brand-orange);
  --orange-2: var(--brand-orange-strong);
  --blue: var(--brand-blue);
  --danger: var(--status-danger);
  --radius-control: 8px;
  --ease-standard: cubic-bezier(0.19, 1, 0.22, 1);
  --display: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --score: "Nunito", "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  --weight-ui: 600;
  --weight-strong: 700;
  --weight-display: 900;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  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, var(--ink-950) 0%, var(--ink-900) 48%, var(--ink-950) 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;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.patota-loader {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(183, 255, 32, 0.07) 0 1px, transparent 1px 118px),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 52%, var(--ink-950) 100%);
  isolation: isolate;
}

.patota-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, transparent 0 24%, rgba(183, 255, 32, 0.2) 24% 30%, transparent 30% 100%),
    linear-gradient(250deg, transparent 0 32%, rgba(255, 90, 20, 0.22) 32% 38%, transparent 38% 100%);
  transform: translateX(-10%);
  animation: loaderBands 1100ms ease-in-out infinite alternate;
}

.patota-loader-inner {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(24px, 7vh, 68px);
  padding: 44px max(16px, env(safe-area-inset-left)) 112px max(16px, env(safe-area-inset-right));
}

.patota-loader-hashtags {
  width: 100%;
  min-height: clamp(118px, 24vh, 240px);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.patota-loader-hashtags span {
  display: block;
  width: 100%;
  max-width: min(1120px, calc(100vw - 32px));
  margin-inline: auto;
  overflow: hidden;
  overflow-wrap: normal;
  white-space: nowrap;
  text-wrap: nowrap;
  font-family: var(--display);
  font-weight: var(--weight-display);
  font-size: clamp(2.05rem, 9.8vw, 6.7rem);
  line-height: 0.9;
  text-align: center;
  text-overflow: clip;
  text-transform: uppercase;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  will-change: transform, opacity;
  animation: loaderHashtagCycle 430ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.patota-loader-hashtags span[data-tone="lime"] {
  color: var(--lime);
}

.patota-loader-hashtags span[data-tone="paper"] {
  color: var(--paper);
}

.patota-loader-hashtags span[data-tone="orange"] {
  color: var(--orange);
}

.patota-loader-hashtags span[data-tone="blue"] {
  color: var(--blue);
}

.patota-loader-context {
  max-width: min(520px, calc(100vw - 36px));
  margin: -22px 0 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 4vw, 22px);
  font-weight: var(--weight-strong);
  text-align: center;
}

.patota-loader-percent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  text-align: center;
}

.patota-loader-percent span {
  font-family: var(--score);
  font-weight: var(--weight-display);
  font-size: clamp(42px, 12vw, 92px);
  line-height: 0.9;
}

.patota-loader-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  animation: loaderProgress var(--loader-duration, 1500ms) linear forwards;
}

.patota-loader.is-done {
  animation: loaderExit 520ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes loaderBands {
  from {
    transform: translateX(-10%);
  }
  to {
    transform: translateX(10%);
  }
}

@keyframes loaderHashtagCycle {
  from {
    opacity: 0;
    transform: translateY(78%) skewY(-4deg);
    filter: blur(2px);
  }
  62% {
    opacity: 1;
    transform: translateY(0) skewY(0);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes loaderProgress {
  to {
    transform: scaleX(1);
  }
}

@keyframes loaderExit {
  to {
    transform: translateY(-100%);
  }
}

.login-screen {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(520px, 42vw, 640px);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(22px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.97) 0%, rgba(5, 7, 13, 0.85) 46%, rgba(5, 7, 13, 0.54) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.12), var(--surface-overlay)),
    url("assets/resenha-community.webp") center / cover no-repeat;
  isolation: isolate;
}

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

.login-screen::before {
  width: 120vw;
  height: 28vh;
  right: -28vw;
  top: -8vh;
  background: linear-gradient(102deg, transparent 0 36%, var(--accent-primary-border) 36% 39%, var(--surface-overlay) 39% 46%, transparent 46% 100%);
  transform: rotate(-8deg);
}

.login-screen::after {
  width: 118vw;
  height: 26vh;
  left: -36vw;
  bottom: -10vh;
  background: linear-gradient(74deg, transparent 0 36%, rgba(255, 90, 20, 0.24) 36% 41%, var(--surface-overlay) 41% 48%, transparent 48% 100%);
  transform: rotate(9deg);
}

.login-orbit {
  display: 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(--display);
  font-weight: var(--weight-display);
  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 {
  width: 100%;
  max-width: min(850px, calc(100vw - 36px));
  min-width: 0;
}

.login-brand {
  width: fit-content;
  margin-bottom: clamp(28px, 5vh, 56px);
}

.login-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(52px, 6vw, 86px);
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-transform: none;
}

.login-hero p:not(.eyebrow) {
  max-width: 610px;
  color: var(--text-secondary);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
}


.login-feature-strip {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.login-feature-strip article {
  min-height: 148px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  color: var(--white);
  background: rgba(16, 22, 36, 0.93);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.login-feature-strip article.is-accent {
  color: var(--night);
  background: var(--lime);
}

.login-feature-strip span {
  color: inherit;
  font-size: 12px;
  font-weight: var(--weight-ui);
  opacity: 0.72;
}

.login-feature-strip strong {
  font-family: var(--heading);
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.1;
}

.login-preview-row {
  display: none;
}

.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(--display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
}

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

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

.login-card {
  width: min(440px, calc(100vw - 36px));
  min-width: 0;
  justify-self: end;
  min-height: auto;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 22px;
  color: var(--night);
  background: var(--surface-card-glass);
  border: 1px solid var(--border-on-image);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

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

.login-card h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-transform: none;
}

.login-card .eyebrow {
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

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

.login-card label span,
.login-card small {
  color: var(--text-on-paper-muted);
  font-size: 12px;
  font-weight: var(--weight-strong);
  text-transform: none;
}

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

.login-card input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px var(--border-accent);
}

.login-card label small {
  color: var(--text-on-paper-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
}

#loginStatus {
  text-transform: none;
}

.login-help-steps {
  display: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-card.is-signup-mode .login-help-steps {
  display: grid;
}

.login-help-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  background: rgba(5, 7, 13, 0.05);
  border: 1px solid var(--paper-border);
  border-radius: 8px;
}

.login-help-steps li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--score);
  font-size: 17px;
  font-weight: var(--weight-display);
  line-height: 1;
}

.login-help-steps strong,
.login-help-steps small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: none;
}

.login-help-steps strong {
  color: var(--night);
  font-size: 12px;
  line-height: 1.1;
}

.login-help-steps small {
  margin-top: 2px;
  color: var(--text-on-paper-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

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

.login-choice-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.login-card-header { order: 1; }
.login-choice-bar { order: 2; }
.invite-preview { order: 3; }
.invite-intent { order: 4; }
.login-step-grid { order: 5; }
.create-patota-note { order: 6; }
.login-account-details { order: 7; }
.login-consent { order: 8; }
.login-actions { order: 9; }
.save-access-button { order: 10; }
.account-created-panel { order: 11; }
#loginStatus { order: 12; }
.login-legal-links { order: 13; }

.login-choice-bar button,
.invite-intent button,
.code-fallback-button {
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  color: var(--night);
  background: var(--surface-card-muted);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: var(--weight-strong);
  line-height: 1.05;
  overflow-wrap: anywhere;
  white-space: normal;
  text-transform: none;
}

.login-choice-bar button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 4px 10px;
  min-height: 66px;
  padding: 12px;
  text-align: left;
}

.login-choice-bar button strong,
.login-choice-bar button small,
.login-choice-kicker {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: none;
}

.login-choice-kicker {
  color: var(--text-on-paper-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.login-choice-bar button strong {
  font-size: 15px;
  line-height: 1.1;
}

.login-choice-bar button small {
  color: var(--text-on-paper-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.18;
}

.login-choice-bar button::after {
  content: ">";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  align-self: center;
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--night);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  font-weight: 900;
}

.login-choice-bar button.is-active,
.invite-intent button.is-active,
.code-fallback-button {
  background: var(--night);
  color: var(--white);
}

.login-choice-bar button.is-active small {
  color: var(--surface-ghost-selected);
}

.login-choice-bar button.is-active::after {
  color: var(--night);
  background: var(--lime);
}

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

.invite-intent button {
  min-height: 48px;
  font-size: 13px;
  line-height: 1.12;
}

.login-card.is-entry-choice-only .invite-intent,
.login-card.is-account-mode .invite-intent,
.login-card.is-account-open .invite-intent {
  display: none;
}

.invite-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: var(--night);
  background: var(--text-primary);
  border: 1px solid var(--paper-border);
  border-radius: 8px;
}

.invite-preview h3 {
  margin: 0 0 6px;
  font-family: var(--heading);
  font-size: 25px;
  line-height: 1.05;
  text-transform: none;
}

.invite-preview p {
  margin: 0;
  color: var(--text-on-paper-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

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

.invite-preview-stats div {
  min-width: 0;
  padding: 9px;
  background: var(--surface-card-soft);
  border-radius: 8px;
}

.invite-preview-stats dt {
  color: var(--text-on-paper-soft);
  font-size: 10px;
  font-weight: var(--weight-strong);
  text-transform: none;
}

.invite-preview-stats dd {
  margin: 3px 0 0;
  color: var(--night);
  font-family: var(--score);
  font-weight: var(--weight-display);
  font-size: 21px;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.login-card.is-entry-choice-only .login-step-grid,
.login-card.is-entry-choice-only .login-consent,
.login-card.is-entry-choice-only .login-actions,
.login-card.is-entry-choice-only .login-account-details,
.login-card.is-entry-choice-only #loginStatus {
  display: none !important;
}

.login-card.is-entry-choice-only {
  width: min(640px, 100%);
  gap: 18px;
  padding: 24px;
  color: var(--night);
  background: var(--surface-card-glass);
  border-color: var(--border-on-image);
}

.login-card.is-entry-choice-only .eyebrow {
  display: none;
}

.login-card.is-entry-choice-only h2 {
  color: var(--night);
  font-size: clamp(36px, 3.4vw, 46px);
  line-height: 1.02;
}

.login-card.is-entry-choice-only .login-mode-note {
  gap: 8px;
  padding: 0 0 12px;
  border-top: 0;
  border-bottom: 1px solid var(--paper-border);
}

.login-card.is-entry-choice-only .login-mode-note strong {
  color: var(--night);
  font-size: 18px;
}

.login-card.is-entry-choice-only .login-mode-note span {
  color: var(--text-on-paper-muted);
  font-size: 16px;
}

.login-card.is-entry-choice-only .login-choice-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-card.is-entry-choice-only .login-choice-bar button {
  min-height: 152px;
  align-content: start;
  gap: 9px;
  padding: 18px;
  color: var(--night);
  background: var(--text-primary);
  border-color: var(--paper-border);
  box-shadow: none;
}

.login-card.is-entry-choice-only .login-choice-bar button:hover,
.login-card.is-entry-choice-only .login-choice-bar button:focus-visible {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--accent-primary-panel);
  outline: none;
  transform: translateY(-1px);
}

.login-card.is-entry-choice-only .login-choice-kicker {
  color: var(--text-on-paper-soft);
  grid-column: 1 / -1;
}

.login-card.is-entry-choice-only .login-choice-bar button strong {
  color: var(--night);
  grid-column: 1;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.06;
}

.login-card.is-entry-choice-only .login-choice-bar button small {
  color: var(--text-on-paper-muted);
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
}

.login-card.is-entry-choice-only .login-choice-bar button::after {
  background: var(--lime);
  grid-column: 2;
  grid-row: 2;
}

.login-card.is-entry-choice-only .login-choice-bar [data-entry-choice="account"] {
  grid-column: 1 / -1;
  min-height: 92px;
}

.login-card.is-entry-choice-only .login-choice-bar [data-entry-choice="account"] strong {
  font-size: 18px;
}

.login-card.is-entry-choice-only .login-legal-links a {
  color: var(--text-on-paper-muted);
}

.login-card.is-create-mode .login-choice-bar,
.login-card.is-signup-mode .login-choice-bar,
.login-card.is-account-open .login-choice-bar,
.login-card.is-code-fallback-visible .login-choice-bar,
.login-card.has-invite-link .login-choice-bar {
  display: none;
}

.login-card.is-create-mode #loginCreatePatotaField {
  order: -1;
}

.login-card.is-create-mode {
  gap: 12px;
}

.login-card.is-create-mode .login-help-steps {
  display: none !important;
}

.login-card.is-create-mode .login-card-header {
  gap: 6px;
}

.login-card.is-create-mode .login-mode-note {
  padding-top: 8px;
}

.create-patota-note {
  display: grid;
  gap: 0;
  padding: 9px 10px;
  color: var(--text-on-paper);
  background: rgba(183, 255, 32, 0.11);
  border: 1px solid rgba(94, 120, 42, 0.16);
  border-radius: 8px;
}

.create-patota-note[hidden] {
  display: none;
}

.create-patota-note strong {
  font-size: 12px;
  line-height: 1.25;
}

.create-patota-note ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: var(--text-on-paper-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

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

.auth-mode-toggle button {
  min-width: 0;
  min-height: 48px;
  color: var(--night);
  background: var(--surface-card-muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: none;
}

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

.login-mode-note {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 11px 0 0;
  border-top: 1px solid var(--paper-border);
}

.login-mode-note strong {
  color: var(--night);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.login-mode-note span {
  color: var(--text-on-paper-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.login-account-details {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid var(--paper-border);
  border-bottom: 1px solid var(--paper-border);
}

.login-account-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--night);
  background: var(--surface-card-muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  text-transform: none;
}

.login-account-details summary::-webkit-details-marker {
  display: none;
}

.login-account-details summary::after {
  content: "+";
  font-family: var(--heading);
}

.login-account-details[open] summary::after {
  content: "-";
}

.login-account-details label {
  margin-top: 10px;
}

.login-account-details:not([open]) label {
  display: none;
}

.login-card.is-create-mode .login-account-details {
  padding: 0;
  border: 0;
  gap: 9px;
}

.login-card.is-create-mode .login-account-details summary,
.login-card.is-create-mode .login-phone-field,
.login-card.is-create-mode .login-divider,
.login-card.is-create-mode .google-login,
.login-card.is-create-mode #demoLogin {
  display: none;
}

.login-card.is-create-mode .login-account-details label {
  margin-top: 0;
}

.login-card.is-create-mode .login-account-grid {
  gap: 9px;
}

.login-account-grid {
  display: grid;
  gap: 10px;
}

.player-card-builder {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(183, 255, 32, 0.16), rgba(255, 90, 20, 0.09) 48%, rgba(110, 168, 255, 0.12)),
    var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.login-card:not(.is-signup-mode) .player-card-builder {
  display: none;
}

.player-card-builder summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.player-card-builder summary::-webkit-details-marker {
  display: none;
}

.player-card-builder summary span,
.player-card-builder summary strong {
  color: var(--white);
}

.player-card-builder summary span {
  font-size: 12px;
  font-weight: 800;
}

.player-card-builder summary strong {
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.player-card-builder summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 999px;
  font-family: var(--heading);
}

.player-card-builder[open] summary::after {
  content: "-";
}

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

.player-card-copy {
  display: grid;
  gap: 4px;
}

.player-card-copy strong {
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-card-copy span {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
}

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

.player-sticker-preview {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 13px;
  color: var(--paper);
  background:
    radial-gradient(circle at 22% 18%, var(--border-strong), transparent 24%),
    linear-gradient(145deg, var(--ink-760) 0%, var(--surface-raised) 58%, var(--ink-950) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px var(--border-subtle),
    0 16px 34px rgba(0, 0, 0, 0.26);
  isolation: isolate;
}

.player-sticker-preview[data-theme="orange"] {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(145deg, var(--brand-orange-strong) 0%, var(--accent-action) 42%, var(--surface-raised) 100%);
}

.player-sticker-preview[data-theme="blue"] {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(145deg, var(--ink-850) 0%, var(--accent-info) 48%, var(--surface-raised) 100%);
}

.player-sticker-preview[data-theme="night"] {
  background:
    radial-gradient(circle at 22% 18%, var(--accent-primary-border), transparent 24%),
    linear-gradient(145deg, var(--ink-950) 0%, var(--surface-raised-2) 52%, var(--ink-760) 100%);
}

.player-sticker-shine {
  position: absolute;
  inset: -60% 32% 40% -20%;
  z-index: -1;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-18deg);
  pointer-events: none;
}

.player-sticker-top,
.player-sticker-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.player-sticker-top {
  grid-template-columns: minmax(0, 1fr) 52px;
}

.player-sticker-top span {
  min-width: 0;
  color: rgba(244, 246, 238, 0.78);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.player-sticker-top strong {
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink-950);
  background: var(--lime);
  border-radius: 7px;
  font-family: var(--heading);
  font-size: 21px;
  line-height: 1;
}

.player-sticker-photo {
  width: min(138px, 46vw);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 35% 28%, rgba(192, 255, 61, 0.42), transparent 28%),
    var(--ink-800);
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  font-family: var(--heading);
  font-size: clamp(30px, 12vw, 42px);
  line-height: 1;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.player-sticker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-sticker-photo.has-photo span {
  display: none;
}

.player-sticker-name {
  min-width: 0;
  color: var(--paper);
  font-family: var(--heading);
  font-size: 24px;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-align: center;
  text-transform: uppercase;
}

.player-sticker-meta {
  color: rgba(244, 246, 238, 0.76);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
}

.player-sticker-stats {
  margin: 0;
}

.player-sticker-stats div {
  min-width: 0;
  padding: 8px 6px;
  background: var(--surface-ghost-strong);
  border-radius: 7px;
  text-align: center;
}

.player-sticker-stats dt {
  color: rgba(244, 246, 238, 0.68);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-sticker-stats dd {
  margin: 3px 0 0;
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.player-sticker-overall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  justify-self: center;
  padding: 6px 10px;
  color: var(--ink-950);
  background: var(--lime);
  border-radius: 999px;
  line-height: 1;
}

.player-sticker-overall strong {
  font-family: var(--heading);
  font-size: 20px;
}

.player-sticker-overall span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-sticker-attributes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.player-sticker-attributes span {
  min-width: 0;
  padding: 6px 3px;
  color: rgba(244, 246, 238, 0.74);
  background: rgba(5, 7, 13, 0.22);
  border: 1px solid var(--surface-ghost-hover);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.05;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.player-sticker-attributes b {
  display: block;
  color: var(--paper);
  font-size: 13px;
  line-height: 1.05;
}

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

.player-card-field,
.player-photo-picker {
  min-width: 0;
  margin: 0;
}

.player-card-field.is-full,
.player-photo-picker.is-full,
.player-photo-clear,
.player-card-randomize {
  grid-column: 1 / -1;
}

.player-card-fields input,
.player-card-fields select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--night);
  background: var(--paper-50);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.player-card-fields label span,
.player-card-fields label small {
  color: var(--text-secondary);
}

.player-photo-picker {
  position: relative;
}

.player-photo-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.player-photo-picker > span,
.player-photo-clear,
.player-card-randomize {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--night);
  background: var(--lime);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.player-photo-picker svg,
.player-card-randomize svg {
  width: 16px;
  height: 16px;
}

.player-photo-clear {
  background: var(--surface-ghost-hover);
  color: var(--paper);
}

.player-card-randomize {
  background: var(--paper-50);
  color: var(--night);
}

.code-fallback-button {
  width: 100%;
}

.login-consent {
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--text-on-paper-muted);
  background: rgba(238, 243, 229, 0.72);
  border: 1px solid var(--paper-border);
  border-radius: 8px;
  cursor: pointer;
}

.login-consent input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  appearance: none;
  color: var(--night);
  background: var(--text-primary);
  border: 2px solid var(--paper-border-strong);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: none;
}

.login-consent input:checked {
  background: var(--lime);
  border-color: var(--lime);
}

.login-consent input:checked::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid var(--night);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.login-consent span {
  color: var(--text-on-paper-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.login-card .login-consent span {
  text-transform: none;
}

.login-card.is-fast-invite {
  min-height: auto;
  align-content: stretch;
}

.save-access-button {
  min-height: 44px;
  padding: 8px 10px;
  color: var(--night);
  background: transparent;
  border: 1px dashed var(--paper-border-strong);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.save-access-button:hover,
.save-access-button:focus-visible {
  background: var(--surface-card-soft);
  outline: none;
}

.account-created-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--night);
  background: var(--surface-card-soft);
  border: 1px solid var(--paper-border);
  border-radius: 8px;
}

.account-created-panel strong {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-created-panel span {
  color: var(--text-on-paper-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
}

.account-created-panel div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-created-panel button {
  min-width: 0;
  min-height: 44px;
  color: var(--night);
  background: var(--text-primary);
  border: 1px solid var(--paper-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.account-created-panel button:first-child {
  background: var(--lime);
  border-color: var(--lime);
}

.login-card:not(.is-account-open) .login-account-details {
  display: none;
}

.login-card.is-create-mode .auth-mode-toggle {
  display: none;
}

.login-card.is-personal-signup-mode .auth-mode-toggle {
  display: none;
}

.login-submit {
  width: 100%;
}

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

.login-divider {
  min-height: 18px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--text-on-paper-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--paper-border);
}

.login-divider span {
  position: relative;
  padding: 0 10px;
  background: var(--paper);
}

.google-login {
  min-height: 48px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--night);
  background: var(--white);
  border: 1px solid var(--paper-border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.google-login span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #1a73e8;
  background: var(--paper-50);
  border: 1px solid var(--paper-border);
  border-radius: 50%;
  font-family: var(--heading);
  line-height: 1;
}

.google-login strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-login:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.secondary-login {
  min-height: 44px;
  color: var(--text-on-paper-soft);
  background: transparent;
  border: 1px solid rgba(107, 114, 128, 0.18);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.secondary-login:hover {
  color: var(--night);
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(107, 114, 128, 0.28);
}

.login-legal-links {
  margin: 0;
  color: var(--text-on-paper-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.login-legal-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.legal-page .brand {
  width: fit-content;
  margin-bottom: 36px;
}

.legal-hero {
  margin-bottom: 34px;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-family: var(--heading);
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.9;
  text-transform: uppercase;
}

.legal-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

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

.legal-section {
  padding: 22px;
  background: var(--surface-ghost-hover);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-family: var(--heading);
  font-size: 28px;
  line-height: 0.95;
  text-transform: uppercase;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 650;
}

.legal-section p {
  margin: 0 0 10px;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 16px;
  color: var(--night);
  background: var(--lime);
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-patota-screen {
  width: min(1180px, calc(100vw - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) 0 34px;
  display: grid;
  gap: 18px;
}

.public-patota-header,
.public-patota-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.public-patota-brand {
  min-height: 48px;
}

.public-patota-hero {
  min-height: min(680px, calc(100dvh - 112px));
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.68fr);
  align-items: stretch;
  gap: clamp(16px, 3vw, 28px);
}

.public-patota-cover,
.public-patota-copy,
.public-panel,
.public-join-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.public-patota-cover {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, var(--surface-ghost-hover) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(0deg, var(--accent-primary-panel) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(circle at 50% 54%, var(--accent-primary-border), transparent 32%),
    linear-gradient(145deg, rgba(8, 196, 107, 0.18), rgba(16, 22, 36, 0.96));
}

.public-patota-cover.has-image {
  background-size: cover;
  background-position: center;
}

.public-crest {
  width: clamp(132px, 24vw, 220px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--night);
  background: var(--lime);
  border: 7px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: var(--weight-display);
}

.public-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-patota-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(160deg, rgba(255, 90, 20, 0.14), transparent 42%),
    rgba(16, 22, 36, 0.92);
}

.public-patota-copy h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: clamp(40px, 7.6vw, 92px);
  line-height: 0.92;
}

.public-patota-copy p {
  margin: 0;
}

.public-patota-copy > p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 650;
}

.public-patota-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-patota-chips span,
.public-status-note,
.public-form-status {
  color: var(--text-secondary);
}

.public-patota-chips span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-ghost-hover);
  font-weight: 800;
}

.public-patota-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.public-panel,
.public-join-section {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface-panel-glass);
}

.public-about-panel {
  grid-column: 1 / -1;
}

.public-panel h2,
.public-join-section h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.public-score-list,
.public-player-strip,
.public-photo-grid,
.public-next-match {
  display: grid;
  gap: 10px;
}

.public-score-card,
.public-player-pill,
.public-next-match-card,
.public-empty-state {
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-ghost);
}

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

.public-next-match-card {
  display: grid;
  gap: 10px;
}

.public-next-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-next-match-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  color: var(--white);
  background: var(--surface-ghost-hover);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.public-score-card strong {
  font-family: var(--score);
  font-size: 38px;
  line-height: 0.9;
}

.public-player-strip {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.public-player-pill {
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
}

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

.public-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-ghost-hover);
}

.public-join-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(360px, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.public-join-section p {
  color: var(--text-secondary);
}

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

.public-join-form input[name="website"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.public-join-form label,
.public-page-settings-form label {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.public-join-form input,
.public-join-form textarea,
.public-page-settings-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--white);
  background: var(--surface-ghost-hover);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  resize: vertical;
}

.public-join-form input:focus,
.public-join-form textarea:focus,
.public-page-settings-form textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--accent-primary-panel);
}

.public-join-form-wide,
.public-page-form-wide {
  grid-column: 1 / -1;
}

.public-form-status[data-tone="success"] {
  color: var(--lime);
}

.public-form-status[data-tone="error"] {
  color: var(--danger);
}

.public-patota-footer {
  padding: 16px 0 0;
  color: var(--muted);
}

.public-patota-footer a,
.public-patota-footer button {
  min-height: 44px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

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

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

.admin-panel-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;
}

body.is-admin .admin-panel-only {
  display: block !important;
}

body.is-admin .add-player.admin-panel-only {
  display: grid !important;
}

body.is-admin button.admin-panel-only {
  display: inline-flex !important;
}

body.is-admin .view-actions > .admin-panel-only {
  display: inline-flex !important;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background:
    linear-gradient(180deg, var(--accent-success-panel), transparent 34%),
    var(--surface-overlay-strong);
  border-right: 1px solid var(--line);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.brand {
  flex: 0 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo-full {
  width: min(198px, 100%);
}

.login-brand .brand-logo-full {
  width: min(224px, calc(100vw - 36px));
}

.brand-logo-symbol {
  display: none;
  width: 46px;
}

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

.nav-item,
.nav-more summary,
.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: 700;
  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,
.nav-more 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-more {
  min-width: 0;
}

.nav-more summary {
  justify-content: flex-start;
  color: var(--muted);
  background: transparent;
  list-style: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more-menu {
  display: none;
  gap: 6px;
  padding: 7px 0 0 12px;
}

.nav-more[open] .nav-more-menu {
  display: grid;
}

.nav-more-menu .nav-item {
  min-height: 42px;
  font-size: 13px;
}

.nav-more summary:hover,
.nav-more[open] summary,
body[data-view="caixa"] .nav-more summary,
body[data-view="times"] .nav-more summary,
body[data-view="temporada"] .nav-more summary,
body[data-view="feed"] .nav-more summary,
body[data-view="avisos"] .nav-more summary,
.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: var(--surface-ghost);
  border-color: var(--line);
}

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

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

.season-card {
  flex: 0 0 auto;
  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;
  overflow-x: clip;
  padding: 22px;
}

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

.view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar {
  margin-bottom: 22px;
}

.stage-rail {
  max-width: 100%;
  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: var(--surface-panel-soft);
  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: var(--border-subtle);
  border-radius: 999px;
}

.stage-step.is-active {
  color: var(--night);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(183, 255, 32, 0.2);
}

.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 small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-step strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--heading);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
}

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

.stage-step.is-active small {
  color: var(--text-on-accent-muted);
}

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

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

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

.patota-switcher {
  min-height: 46px;
  display: inline-grid;
  grid-template-columns: auto minmax(150px, 220px);
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  color: var(--white);
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.patota-switcher[hidden] {
  display: none;
}

.patota-switcher span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.patota-switcher select {
  min-height: 34px;
  min-width: 0;
  width: 100%;
  padding: 0 28px 0 10px;
  color: var(--white);
  background: var(--surface-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.patota-switcher select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--accent-primary-panel);
}

.session-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--lime);
  background: var(--accent-primary-soft);
  border: 1px solid var(--accent-primary-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sync-pill {
  color: var(--white);
  background: var(--surface-ghost);
  border-color: var(--line);
}

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

.guest-upgrade-button[hidden] {
  display: none;
}

.guest-upgrade-button {
  border-color: rgba(183, 255, 32, 0.38);
  color: var(--lime);
}

.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: var(--accent-danger-panel);
  border-color: var(--accent-danger-border-soft);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  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), var(--surface-overlay) 48%, rgba(5, 7, 13, 0.08)),
    linear-gradient(135deg, var(--accent-primary-border) 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: var(--text-secondary);
  font-size: 20px;
  font-weight: 600;
}

.round-details {
  margin-top: 12px;
  color: var(--text-secondary);
}

.round-details > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text-secondary);
  background: var(--surface-panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.section-details {
  min-width: 0;
  color: var(--text-secondary);
}

.section-details > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-secondary);
  background: var(--surface-panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.section-details > summary::-webkit-details-marker {
  display: none;
}

.section-details > summary span:not(.status-pill) {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-details > summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 14px;
  line-height: 1.2;
}

.section-details > summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 900;
}

.section-details[open] > summary::after {
  content: "-";
}

.section-details-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
}

.section-details > .season-badge-grid,
.feed-badge-details > .badge-board {
  margin-top: 12px;
}

.season-details {
  margin-top: 18px;
}

.finance-ledger-surface.section-details {
  padding: 16px;
}

.round-details > summary::-webkit-details-marker {
  display: none;
}

.round-details > summary span,
.my-round-disclosure summary span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.round-details > summary strong,
.my-round-disclosure summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 14px;
  line-height: 1.2;
}

.round-details > summary::after,
.my-round-disclosure summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 900;
}

.round-details[open] > summary::after,
.my-round-disclosure[open] summary::after {
  content: "-";
}

.round-details-body {
  display: grid;
  gap: 18px;
  padding-top: 12px;
}

.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: var(--surface-overlay);
  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(--score);
  font-weight: var(--weight-display);
  font-size: 104px;
  line-height: 0.86;
}

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

.my-round-panel {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, var(--accent-primary-panel), transparent 34%),
    var(--surface-panel-glass);
  border: 1px solid var(--accent-primary-border);
  border-radius: 8px;
}

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

.my-round-panel > .my-round-live-grid,
.my-round-panel > .my-round-guide,
.my-round-panel > .my-round-matchday,
.my-round-panel > .my-round-insights,
.my-round-panel > .my-round-secondary,
.my-round-panel > .my-round-disclosure {
  grid-column: 1 / -1;
}

.my-round-matchday {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--text-secondary);
  background:
    linear-gradient(135deg, var(--accent-action-panel), transparent 42%),
    var(--surface-ghost);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.my-round-crest {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--score);
  font-size: 24px;
  font-weight: var(--weight-display);
}

.my-round-matchday > div:not(.my-round-crest) {
  min-width: 0;
}

.my-round-matchday span {
  display: block;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-round-matchday strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--white);
  font-family: var(--heading);
  font-size: 21px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-round-matchday small {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 4px;
  color: var(--text-tertiary);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-round-matchday dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.my-round-matchday dl div {
  min-width: 0;
  padding: 8px;
  background: rgba(5, 7, 13, 0.32);
  border: 1px solid var(--surface-ghost-hover);
  border-radius: 8px;
}

.my-round-matchday dt,
.my-round-matchday dd {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-round-matchday dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.my-round-matchday dd {
  margin: 3px 0 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

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

.my-round-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--text-secondary);
  font-weight: 500;
}

.my-round-next {
  min-width: 0;
  display: grid;
  gap: 3px;
  max-width: 720px;
  padding: 10px 12px;
  color: var(--night);
  background: rgba(183, 255, 32, 0.92);
  border-radius: 8px;
}

.my-round-next span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.my-round-next strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.2;
}

.my-round-feedback {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  max-width: 720px;
  padding: 9px 11px;
  color: var(--text-secondary);
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.my-round-feedback span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.my-round-feedback strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.2;
}

.my-round-feedback[data-tone="error"] {
  border-color: var(--accent-danger-border);
  background: var(--accent-danger-soft);
}

.my-round-feedback[data-tone="error"] span {
  color: var(--danger);
}

.my-round-feedback[data-tone="success"] {
  border-color: var(--accent-success-border);
  background: var(--accent-success-panel);
}

.my-round-feedback[data-tone="success"] span {
  color: var(--green);
}

.my-round-feedback[data-tone="syncing"] span {
  color: var(--blue);
}

.my-round-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-round-guide li {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  color: var(--text-secondary);
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.my-round-guide li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--surface-ghost-selected);
  border-radius: 50%;
  font-family: var(--score);
  font-size: 17px;
  font-weight: var(--weight-display);
  line-height: 1;
}

.stage-step span svg {
  width: 15px;
  height: 15px;
}

.my-round-guide strong,
.my-round-guide small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: none;
}

.my-round-guide strong {
  color: var(--white);
  font-size: 12px;
  line-height: 1.1;
}

.my-round-guide small {
  margin-top: 3px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.my-round-guide li[data-guide-state="active"] {
  border-color: var(--border-accent);
  background: var(--accent-primary-soft);
}

.my-round-guide li[data-guide-state="active"] > span,
.my-round-guide li[data-guide-state="done"] > span {
  background: var(--lime);
}

.my-round-guide li[data-guide-state="done"] {
  border-color: var(--accent-success-border);
}

.my-round-guide li[data-guide-state="done"] > span::after {
  content: "✓";
  font-family: var(--body);
  font-size: 13px;
  font-weight: 900;
}

.my-round-guide li[data-guide-state="done"] > span {
  font-size: 0;
}

.my-round-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.my-round-summary span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: var(--text-secondary);
  background: var(--surface-ghost-hover);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.my-round-summary b {
  color: var(--lime);
  font-family: var(--score);
  font-size: 16px;
  font-weight: var(--weight-display);
  line-height: 1;
}

.my-round-secondary {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.my-round-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 820px;
}

.my-round-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 980px;
}

.my-round-insights button {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px;
  text-align: left;
  color: var(--text-secondary);
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.my-round-insights span,
.my-round-insights strong,
.my-round-insights small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-round-insights span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-round-insights strong {
  color: var(--white);
  font-size: 16px;
  line-height: 1.12;
}

.my-round-insights small {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.my-round-insights button[data-tone="lime"] {
  border-color: var(--border-accent);
  background: var(--accent-primary-soft);
}

.my-round-insights button[data-tone="orange"] {
  border-color: var(--accent-action-border);
  background: var(--accent-action-soft);
}

.my-round-insights button[data-tone="green"] {
  border-color: var(--accent-success-border);
  background: var(--accent-success-soft);
}

.my-round-insights button[data-tone="blue"] {
  border-color: rgba(79, 168, 255, 0.42);
  background: var(--accent-info-soft);
}

.round-ops-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  color: var(--text-secondary);
  background:
    linear-gradient(135deg, var(--accent-primary-panel), transparent 34%),
    linear-gradient(225deg, var(--accent-action-soft), transparent 38%),
    rgba(5, 7, 13, 0.36);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.round-ops-heading {
  display: grid;
  gap: 4px;
}

.round-ops-heading span,
.round-duty-list > div span,
.round-duty-list article span,
.round-ops-grid button span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.round-ops-heading strong,
.round-duty-list > div strong {
  color: var(--white);
  font-family: var(--heading);
  font-size: 17px;
  line-height: 1.08;
}

.round-ops-heading small {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 650;
}

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

.round-ops-grid button,
.round-duty-list article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 11px;
  text-align: left;
  color: var(--text-secondary);
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.round-ops-grid button {
  min-height: 104px;
  cursor: pointer;
}

.round-ops-grid button strong,
.round-duty-list article strong {
  min-width: 0;
  overflow: hidden;
  color: var(--white);
  font-size: 14px;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-ops-grid button small,
.round-duty-list article small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.round-ops-grid button[data-tone="lime"],
.round-ops-grid button[data-tone="green"] {
  border-color: var(--border-accent);
  background: var(--accent-primary-soft);
}

.round-ops-grid button[data-tone="orange"] {
  border-color: var(--accent-action-border);
  background: var(--accent-action-soft);
}

.round-ops-grid button[data-tone="blue"] {
  border-color: var(--accent-info-border);
  background: var(--accent-info-soft);
}

.round-duty-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.round-duty-list > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--surface-ghost-strong);
  border-radius: 8px;
}

.my-round-disclosure {
  max-width: 980px;
  color: var(--text-secondary);
}

.my-round-disclosure summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.my-round-disclosure summary::-webkit-details-marker {
  display: none;
}

.my-round-disclosure-body {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.my-round-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-round-secondary-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 11px;
  color: var(--text-secondary);
  background: var(--surface-ghost-hover);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

.my-round-secondary-actions button.blue-action {
  border-color: var(--accent-info-border);
  background: var(--accent-info-panel);
}

.admin-mode-disclosure summary {
  border-color: var(--accent-action-border);
  background: var(--accent-action-soft);
}

.admin-mode-disclosure summary span {
  color: var(--orange);
}

.my-round-live-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  color: var(--text-secondary);
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.my-round-live-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.my-round-live-card > div span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.my-round-live-card > div strong {
  color: var(--lime);
  font-size: 12px;
}

.my-round-live-card ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-round-live-card li {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.my-round-live-card li > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.my-round-live-card li.is-current > span {
  background: var(--orange);
}

.my-round-live-card li.is-empty {
  grid-template-columns: 1fr;
}

.my-round-live-card li.is-empty strong {
  color: var(--white);
}

.my-round-live-card strong,
.my-round-live-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-round-live-card strong {
  color: var(--white);
  font-size: 12px;
  line-height: 1.15;
}

.my-round-live-card small {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
}

.my-round-status-note {
  max-width: 720px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  color: var(--text-secondary);
  background: var(--surface-ghost);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.my-round-status-note span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-round-status-note strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.25;
}

.admin-day-panel {
  grid-column: 1 / -1;
  max-width: 980px;
  display: grid;
  gap: 10px;
  padding: 12px;
  color: var(--text-secondary);
  background: rgba(5, 7, 13, 0.38);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.admin-day-heading,
.admin-day-task,
.admin-day-task > div {
  min-width: 0;
}

.admin-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-day-heading span,
.admin-day-task span {
  display: block;
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-day-heading strong {
  display: block;
  margin-top: 2px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.12;
}

.admin-day-heading button,
.admin-day-task button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--night);
  background: var(--surface-ghost-selected);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.admin-day-heading svg {
  width: 15px;
  height: 15px;
}

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

.admin-day-task {
  display: grid;
  grid-template-rows: minmax(74px, auto) auto;
  gap: 8px;
  padding: 10px;
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-day-task[data-state="active"] {
  border-color: var(--accent-action-border);
  background: var(--accent-action-panel);
}

.admin-day-task[data-state="done"] {
  border-color: var(--accent-success-border);
  background: var(--accent-success-soft);
}

.admin-day-task[data-state="watch"] {
  border-color: var(--accent-info-border);
  background: var(--accent-info-soft);
}

.admin-day-task strong,
.admin-day-task small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-day-task strong {
  margin-top: 4px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.12;
}

.admin-day-task small {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.22;
}

.admin-day-task button {
  width: 100%;
  min-height: 44px;
}

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

.my-round-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--white);
  background: var(--surface-ghost-hover);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.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 button.blue-action {
  color: var(--night);
  background: var(--blue);
  border-color: var(--blue);
}

.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: 700;
}

.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(--score);
  font-weight: var(--weight-display);
  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: 700;
}

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

.player-finance-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--text-secondary);
  background:
    linear-gradient(135deg, var(--accent-primary-panel), var(--accent-action-soft)),
    var(--surface-panel-glass);
  border: 1px solid var(--accent-primary-border);
  border-radius: 8px;
}

.player-finance-card span,
.profile-summary-hero span,
.profile-summary-grid span,
.privacy-list strong {
  display: block;
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-finance-card strong {
  display: block;
  margin-top: 3px;
  color: var(--white);
  font-family: var(--heading);
  font-size: 26px;
  line-height: 1.05;
}

.player-finance-card p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-weight: 650;
}

.tool-surface {
  min-width: 0;
  padding: 20px;
  background: var(--surface-panel-glass);
}

.settings-surface {
  padding: 0;
}

.settings-surface > summary {
  margin: 0;
  padding: 20px;
  list-style: none;
  cursor: pointer;
}

.settings-surface > summary::-webkit-details-marker {
  display: none;
}

.settings-surface .round-settings-form {
  padding: 0 20px 20px;
}

.public-page-settings-surface {
  grid-column: 1 / -1;
}

.public-page-settings-form textarea,
.rule-grid textarea {
  min-height: 96px;
}

.public-page-link-box {
  margin-bottom: 4px;
}

.public-page-toggle {
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-ghost);
}

.rule-grid .public-page-toggle input {
  width: 22px;
  min-height: 22px;
  padding: 0;
  accent-color: var(--lime);
}

.public-page-toggle span {
  color: var(--white);
  font-weight: 800;
}

.public-page-toggle-locked {
  opacity: 0.72;
}

#publicPageAdminNote {
  color: var(--muted);
  font-weight: 800;
}

.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;
}

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

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

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

.profile-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.profile-card-surface,
.profile-edit-surface,
.profile-privacy-surface {
  min-width: 0;
}

.profile-card-surface {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  color: var(--text-secondary);
  background:
    linear-gradient(140deg, var(--accent-primary-panel), transparent 42%),
    var(--surface-panel-glass);
  border: 1px solid var(--accent-primary-border);
  border-radius: 8px;
}

.profile-summary-hero,
.profile-summary-empty {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-summary-avatar,
.profile-summary-empty > span,
.profile-photo-preview,
.sticker-avatar {
  overflow: hidden;
}

.profile-summary-avatar,
.profile-summary-empty > span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--score);
  font-size: 28px;
  font-weight: var(--weight-display);
}

.profile-summary-avatar img,
.profile-photo-preview img,
.sticker-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-summary-hero strong,
.profile-summary-empty strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-family: var(--heading);
  font-size: 28px;
  line-height: 1.05;
}

.profile-summary-hero p,
.profile-summary-empty p,
.profile-summary-bio {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-weight: 650;
}

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

.profile-summary-grid article {
  min-width: 0;
  padding: 12px;
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-summary-grid strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.15;
}

.profile-summary-grid article[data-tone="orange"] {
  border-color: var(--accent-action-border);
  background: var(--accent-action-soft);
}

.profile-summary-grid article[data-tone="green"] {
  border-color: var(--accent-success-border);
  background: var(--accent-success-soft);
}

.profile-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.profile-form label,
.profile-privacy-toggle {
  display: grid;
  gap: 6px;
}

.profile-form label > span,
.profile-privacy-toggle span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--white);
  background: rgba(5, 7, 13, 0.48);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.profile-form textarea {
  resize: vertical;
}

.profile-form-wide,
.profile-photo-control {
  grid-column: 1 / -1;
}

.profile-photo-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-photo-control > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-photo-preview {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--score);
  font-size: 26px;
  font-weight: var(--weight-display);
}

.profile-privacy-toggle {
  min-height: 52px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 10px 12px;
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-privacy-toggle input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--lime);
}

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

.privacy-list article {
  min-width: 0;
  padding: 12px;
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.privacy-list span {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-weight: 650;
}

.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: 700;
  text-transform: uppercase;
}

.status-pill[data-state="urgent"] {
  color: var(--night);
  background: var(--blue);
}

.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: var(--surface-ghost);
}

.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,
.bench-row button,
.payment-row button,
.card-actions button {
  min-height: 44px;
  padding: 8px 10px;
  color: var(--white);
  background: var(--surface-ghost-hover);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.roster-row button:hover,
.bench-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), var(--surface-panel-glass)),
    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: var(--surface-ghost-hover);
  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 var(--accent-primary-panel);
}

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

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

.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(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: 700;
  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);
}

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

.badge-stack-large {
  min-height: 56px;
  max-width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.badge-stack-large span {
  width: 56px;
  height: 56px;
  flex: 0 0 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, var(--border-subtle) 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 var(--border-subtle);
  border-radius: 6px;
  pointer-events: none;
}

.sticker-card::after {
  content: "BR";
  position: absolute;
  right: -4px;
  bottom: 46px;
  color: var(--surface-ghost);
  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: 700;
  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 {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.card-actions button {
  min-width: 0;
}

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

.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: var(--accent-primary-panel);
}

.bench-row.is-called,
.admin-reserve-call {
  border-color: rgba(255, 90, 20, 0.48);
  box-shadow: inset 4px 0 0 var(--orange);
}

.finance-ledger-surface {
  grid-column: 1 / -1;
}

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

.ledger-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-ghost);
  border: 1px solid transparent;
  border-radius: 8px;
}

.ledger-row strong,
.ledger-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-row small,
.ledger-note {
  color: var(--muted);
  font-weight: 700;
}

.ledger-row span {
  font-family: var(--heading);
  font-size: 18px;
}

.ledger-row[data-kind="income"] {
  border-color: rgba(183, 255, 32, 0.2);
}

.ledger-row[data-kind="expense"] span {
  color: var(--orange);
}

.ledger-row[data-kind="pending"] span {
  color: var(--blue);
}

.ledger-row[data-kind="balance"] span,
.status-pill[data-state="positive"] {
  color: var(--night);
  background: var(--lime);
}

.status-pill[data-state="negative"] {
  color: var(--white);
  background: var(--orange);
}

.ledger-note {
  display: block;
  margin-top: 12px;
  text-transform: uppercase;
}

.teams-state-strip,
.result-gate-note,
.recap-publish-status {
  display: block;
  margin-bottom: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.teams-state-strip[data-state="official"],
.teams-state-strip[data-state="shared"],
.result-gate-note[data-state="ready"] {
  color: var(--night);
  background: var(--lime);
  border-color: var(--white);
}

.recap-publish-status {
  margin: 10px 0 0;
}

.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, var(--accent-primary-panel), 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: 700;
  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: 700;
}

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

.team-drawer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 280px;
  z-index: 90;
  display: none;
  transform: translateY(calc(100% - 54px));
  transition: transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

body[data-view="times"]:not(.is-locked) .team-drawer {
  display: block;
}

.team-drawer.is-open {
  transform: translateY(0);
}

.team-drawer-toggle {
  min-width: 134px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 10px 18px;
  color: var(--night);
  background: var(--lime);
  border: 2px solid var(--white);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-family: var(--heading);
  line-height: 1;
  text-transform: uppercase;
  pointer-events: auto;
}

.team-drawer-toggle strong {
  padding: 4px 7px;
  color: var(--white);
  background: var(--night);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
}

.team-drawer-panel {
  min-height: 326px;
  padding: 18px 0 22px;
  background: var(--surface-overlay-strong);
  border-top: 1px solid var(--line);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.team-drawer-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px max(18px, calc((100vw - 1180px) / 2)) 12px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.team-drawer-track::-webkit-scrollbar {
  display: none;
}

.team-drawer-card {
  width: 174px;
  min-height: 252px;
  flex: 0 0 174px;
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 14px;
  color: var(--night);
  text-align: left;
  background: var(--paper);
  border: 2px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  scroll-snap-align: center;
  transform: rotate(-2deg);
  transition: transform 170ms ease, filter 170ms ease;
}

.team-drawer-card:nth-child(even) {
  transform: rotate(2deg) translateY(8px);
}

.team-drawer-card:hover {
  filter: brightness(1.04);
  transform: translateY(-5px) rotate(0deg);
}

.team-drawer-card[data-tone="lime"] {
  background: var(--lime);
}

.team-drawer-card[data-tone="orange"] {
  background: var(--orange);
}

.team-drawer-card[data-tone="blue"] {
  background: var(--blue);
}

.team-drawer-card[data-tone="muted"] {
  color: var(--white);
  background: #303846;
}

.team-drawer-card span,
.team-drawer-card small {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.team-drawer-card span {
  color: var(--text-on-accent-muted);
}

.team-drawer-card[data-tone="muted"] span {
  color: rgba(255, 255, 255, 0.66);
}

.team-drawer-card strong {
  overflow-wrap: anywhere;
  font-family: var(--heading);
  font-size: 50px;
  line-height: 0.88;
  text-transform: uppercase;
}

.team-drawer-card b {
  min-height: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.team-drawer-card i,
.team-drawer-card em {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--surface-overlay);
  border-radius: 50%;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.team-column.is-pulsing {
  animation: teamPulse 850ms ease;
}

@keyframes teamPulse {
  0%,
  100% {
    border-color: var(--line);
    transform: translateY(0);
  }
  34% {
    border-color: var(--lime);
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(183, 255, 32, 0.18);
  }
}

.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: var(--text-secondary);
  font-weight: 800;
}

.share-score {
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  color: var(--night);
  background: var(--lime);
  border: 2px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  font-family: var(--heading);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.result-surface {
  margin-top: 18px;
}

.round-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.round-result-summary article {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  padding: 14px;
  color: var(--night);
  background: var(--paper);
  border-radius: 8px;
}

.round-result-summary article:nth-child(1) {
  background: var(--lime);
}

.round-result-summary article:nth-child(3) {
  background: var(--green);
}

.round-result-summary span {
  color: var(--text-on-accent-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.round-result-summary strong {
  overflow-wrap: anywhere;
  font-family: var(--heading);
  font-size: 30px;
  line-height: 0.98;
  text-transform: uppercase;
}

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

.round-result-form.is-gated {
  opacity: 0.66;
}

.round-result-form.is-gated input,
.round-result-form.is-gated select,
.round-result-form.is-gated textarea {
  cursor: not-allowed;
}

.score-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.score-inputs strong {
  min-height: 54px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--orange);
  border-radius: 8px;
  font-family: var(--heading);
  font-size: 28px;
  text-transform: uppercase;
}

.round-result-form label {
  display: grid;
  gap: 8px;
}

.round-result-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.round-result-form input,
.round-result-form select,
.round-result-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px;
  color: var(--white);
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.round-result-form textarea {
  resize: vertical;
}

.season-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-bottom: 18px;
}

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

.season-quick-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 132px;
  padding: 14px;
  color: var(--text-secondary);
  background: var(--surface-panel-glass);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.season-quick-card[data-tone="lime"] {
  border-color: var(--border-accent);
  background: var(--accent-primary-soft);
}

.season-quick-card[data-tone="green"] {
  border-color: rgba(8, 196, 107, 0.38);
  background: var(--accent-success-soft);
}

.season-quick-card[data-tone="blue"] {
  border-color: var(--accent-info-border);
  background: var(--accent-info-soft);
}

.season-quick-card span,
.season-quick-card strong,
.season-quick-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.season-quick-card span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.season-quick-card strong {
  color: var(--white);
  font-size: 17px;
  line-height: 1.12;
}

.season-quick-card small {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.season-quick-card button {
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
  padding: 8px 10px;
  color: var(--night);
  background: var(--lime);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.season-hero-panel {
  min-height: 520px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 26px;
  color: var(--night);
  background:
    linear-gradient(135deg, var(--border-strong) 0 18%, transparent 18%),
    var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.season-hero-panel > span {
  width: 92px;
  height: 118px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 6px solid var(--night);
  border-radius: 8px;
  font-family: var(--heading);
  font-size: 32px;
}

.season-hero-panel h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: 58px;
  line-height: 0.94;
  text-transform: uppercase;
}

.season-hero-panel p:not(.eyebrow) {
  max-width: 420px;
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.season-xp-meter {
  display: grid;
  gap: 10px;
}

.season-xp-meter strong {
  font-family: var(--heading);
  font-size: 36px;
  line-height: 1;
}

.season-ranking-list,
.season-hall-list {
  display: grid;
  gap: 10px;
}

.season-ranking-row,
.season-hall-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-ghost);
  border: 1px solid var(--surface-ghost-hover);
  border-radius: 8px;
}

button.season-ranking-row {
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

button.season-ranking-row:hover,
button.season-ranking-row.is-active {
  background: var(--accent-primary-soft);
  border-color: rgba(183, 255, 32, 0.5);
  transform: translateY(-1px);
}

.season-ranking-row i,
.season-hall-row span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--heading);
  font-style: normal;
}

.season-ranking-row strong,
.season-hall-row strong {
  display: block;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-ranking-row small,
.season-hall-row small {
  color: var(--muted);
  font-weight: 800;
}

.season-ranking-row b,
.season-hall-row b {
  color: var(--lime);
  font-family: var(--heading);
  font-size: 18px;
  white-space: nowrap;
}

.season-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.season-mini-badges span {
  padding: 4px 7px;
  color: var(--night);
  background: var(--paper);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

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

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

.season-badge-card[data-tone="lime"] {
  background: var(--lime);
}

.season-badge-card[data-tone="green"] {
  background: var(--green);
}

.season-badge-card[data-tone="orange"] {
  background: var(--orange);
}

.season-badge-card span {
  color: var(--text-on-accent-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.season-badge-card strong {
  overflow-wrap: anywhere;
  font-family: var(--heading);
  font-size: 32px;
  line-height: 0.98;
  text-transform: uppercase;
}

.season-bottom-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(250px, 0.75fr) minmax(0, 1.15fr);
  gap: 18px;
}

.season-profile-surface {
  align-content: start;
}

.season-profile-panel {
  display: grid;
  gap: 14px;
}

.season-profile-identity {
  min-height: 74px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.season-profile-identity i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--orange);
  border-radius: 50%;
  font-family: var(--heading);
  font-style: normal;
}

.season-profile-identity strong {
  display: block;
  overflow: hidden;
  font-family: var(--heading);
  font-size: 26px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.season-profile-identity small,
.season-profile-panel small {
  color: var(--muted);
  font-weight: 800;
}

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

.season-profile-stats article {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  background: var(--surface-ghost);
  border: 1px solid var(--surface-ghost-hover);
  border-radius: 8px;
}

.season-profile-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.season-profile-stats strong {
  color: var(--lime);
  font-family: var(--heading);
  font-size: 28px;
  line-height: 1;
}

.season-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.season-profile-badges span {
  padding: 6px 8px;
  color: var(--night);
  background: var(--paper);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.season-profile-panel p {
  margin: 0;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
}

.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: var(--text-on-accent-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

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

.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: var(--surface-ghost);
  border: 1px solid var(--surface-ghost-hover);
  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: 700;
}

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

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

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

.feed-event strong {
  display: block;
  overflow: hidden;
  font-weight: 700;
  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);
}

.announcements-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  gap: 18px;
  margin-bottom: 18px;
}

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

.announcement-signal-card span,
.announcement-signal-card small {
  color: var(--text-on-accent-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.announcement-row small,
.announcement-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.announcement-signal-card strong {
  font-family: var(--heading);
  font-size: 58px;
  line-height: 0.92;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

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

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

.announcement-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  background: var(--surface-ghost);
  border: 1px solid var(--surface-ghost-hover);
  border-radius: 8px;
}

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

.announcement-row[data-kind="urgent"] i {
  background: var(--blue);
}

.announcement-row strong {
  display: block;
  margin-bottom: 4px;
  overflow: visible;
  font-weight: 700;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.announcement-row p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-weight: 750;
}

.announcement-form-surface {
  margin-top: 18px;
}

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

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

.announcement-form input,
.announcement-form textarea,
.announcement-form select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  color: var(--white);
  background: var(--surface-ghost-hover);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.announcement-form textarea {
  min-height: 112px;
  padding: 14px;
}

.announcement-form input:focus,
.announcement-form textarea:focus,
.announcement-form select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--accent-primary-panel);
}

.announcement-form-actions {
  display: grid;
  grid-template-columns: minmax(180px, 0.25fr) auto;
  gap: 10px;
  justify-content: end;
}

.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, var(--border-strong) 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: 700;
  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: 700;
}

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

.admin-link-box code {
  min-height: 44px;
  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: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.admin-secondary-link {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--night);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.admin-secondary-link:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

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

.admin-next-round-status {
  width: fit-content;
  padding: 5px 8px;
  color: rgba(5, 7, 13, 0.72);
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.admin-checklist span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px;
  color: var(--night);
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(5, 7, 13, 0.12);
  border-radius: 8px;
}

.admin-checklist span[data-state="ok"] {
  background: rgba(255, 255, 255, 0.68);
}

.admin-checklist span[data-state="active"],
.admin-checklist span[data-state="pending"] {
  background: rgba(255, 90, 20, 0.22);
}

.admin-checklist i {
  overflow: hidden;
  color: var(--text-on-accent-muted);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-checklist strong {
  overflow-wrap: anywhere;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.08;
  text-transform: none;
}

.admin-stat-card {
  background: var(--surface-panel-glass);
}

.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;
}

.is-just-updated {
  animation: justUpdatedPulse 820ms var(--ease-standard) both;
}

.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: var(--surface-ghost-hover);
  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 var(--accent-primary-panel);
}

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

.audit-surface {
  background:
    linear-gradient(140deg, rgba(255, 90, 20, 0.16), var(--surface-panel-glass)),
    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: var(--surface-ghost);
  border: 1px solid var(--surface-ghost-hover);
  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: 700;
}

.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) minmax(86px, 110px) minmax(120px, auto) auto;
}

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

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

.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: 44px;
  padding: 8px 10px;
  color: var(--night);
  background: var(--lime);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

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

.app-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  max-width: min(360px, calc(100vw - 28px));
  padding: 13px 15px;
  color: var(--night);
  background: var(--white);
  border: 2px solid rgba(5, 7, 13, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.app-toast[data-tone="success"] {
  background: var(--lime);
}

.app-toast[data-tone="error"] {
  color: var(--white);
  background: var(--danger);
}

.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);
  }
}

@keyframes justUpdatedPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(183, 255, 32, 0);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(183, 255, 32, 0.34);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(183, 255, 32, 0);
  }
}

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

	  .patota-loader,
	  .patota-loader::before,
	  .patota-loader-hashtags span,
	  .patota-loader-bar,
	  .patota-loader.is-done,
	  .login-orbit span,
	  .view,
	  .nav-item,
	  .nav-more summary,
	  .primary-button,
	  .ghost-button,
	  .light-button,
	  .stage-step,
	  .team-drawer,
	  .team-drawer-card,
	  .team-column.is-pulsing,
  .swarm-chip,
  .is-just-updated {
    animation: none !important;
    transition: none !important;
  }

  .patota-loader.is-done {
    transform: translateY(-100%);
  }
}

@media (max-width: 1500px) {
  .login-feature-strip {
    display: none;
  }
}

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

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

  .login-hero {
    order: 2;
  }

  .login-card,
  .login-hero {
    width: 100%;
    max-width: min(760px, 100%);
    justify-self: center;
  }

  .login-card.is-entry-choice-only {
    width: min(680px, 100%);
  }

  .login-hero h1 {
    max-width: 760px;
    font-size: clamp(44px, 7vw, 76px);
  }

  .login-hero p:not(.eyebrow) {
    max-width: 620px;
    font-size: 18px;
  }
}

@media (max-width: 1080px) {

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

  .team-drawer {
    left: 88px;
  }

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

  .brand span,
  .sidebar .brand-logo-full,
	  .nav-item span,
	  .nav-more,
	  .season-card {
	    display: none;
	  }

  .sidebar .brand-logo-symbol {
    display: block;
    width: 48px;
  }

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

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

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

  .view-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .add-player {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.35fr) auto;
  }

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

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

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

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

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

  .round-duty-list > div {
    grid-column: 1 / -1;
  }

  .season-badge-grid {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 1081px) and (max-height: 780px) {
  .sidebar {
    gap: 14px;
    padding-block: 16px;
  }

  .nav-list {
    gap: 6px;
  }

  .season-card {
    display: none;
  }
}

@media (max-width: 760px) {
  .patota-loader-inner {
    padding-bottom: 94px;
  }

  .patota-loader-hashtags {
    min-height: 136px;
  }

  .patota-loader-hashtags span {
    max-width: calc(100vw - 24px);
    font-size: clamp(1.85rem, 9.2vw, 3.45rem);
  }

  .patota-loader-percent {
    bottom: 30px;
  }

  .login-screen {
    display: grid;
    padding: 18px;
    gap: 12px;
    overflow-x: hidden;
    background:
      linear-gradient(180deg, rgba(5, 7, 13, 0.92), rgba(5, 7, 13, 0.82) 46%, rgba(5, 7, 13, 0.96)),
      url("assets/resenha-community.webp") 42% top / auto 58vh no-repeat,
      var(--night);
  }

  .login-screen::before,
  .login-screen::after {
    display: none;
  }

  .login-orbit {
    display: none;
  }

  .login-brand {
    display: block;
    width: fit-content;
    margin-bottom: 18px;
  }

  .login-hero {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
  }

  .login-hero h1 {
    max-width: 100%;
    font-size: clamp(33px, 8.7vw, 42px);
  }

  .login-hero p:not(.eyebrow) {
    max-width: 100%;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .login-preview-row {
    display: none;
  }

  .login-feature-strip {
    display: none;
  }

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

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

  .login-card {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    gap: 10px;
    padding: 14px;
    margin: 10px auto 18px;
  }

  .login-card.is-fast-invite {
    min-height: auto;
    align-content: stretch;
  }

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

  .login-card.is-entry-choice-only {
    gap: 16px;
    padding: 18px;
    margin: 6px auto 12px;
  }

  .login-card.is-entry-choice-only h2 {
    font-size: 36px;
  }

  .login-card.is-entry-choice-only .login-mode-note strong {
    font-size: 15px;
  }

  .login-card.is-entry-choice-only .login-mode-note span {
    font-size: 14px;
  }

  .login-card.is-entry-choice-only .login-choice-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .login-card.is-entry-choice-only .login-choice-bar button {
    min-height: 112px;
    padding: 16px;
  }

  .login-card.is-entry-choice-only .login-choice-bar [data-entry-choice="account"] {
    min-height: 76px;
  }

  .login-help-steps {
    gap: 6px;
  }

  .login-help-steps li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .login-help-steps li > span {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .login-help-steps strong {
    font-size: 11px;
  }

  .login-help-steps small {
    font-size: 10px;
  }

  .login-choice-bar button {
    max-width: 100%;
    min-height: 58px;
    padding: 10px;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .login-choice-bar button strong {
    font-size: 14px;
  }

  .login-choice-bar button small {
    font-size: 11px;
  }

  .invite-intent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .invite-intent button {
    max-width: 100%;
    min-height: 44px;
    padding: 8px 6px;
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .invite-preview {
    gap: 10px;
    padding: 12px;
  }

  .invite-preview h3 {
    font-size: 22px;
  }

  .invite-preview p {
    font-size: 13px;
  }

  .invite-preview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .invite-preview-stats div {
    padding: 7px;
  }

  .invite-preview-stats dd {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .auth-mode-toggle {
    gap: 6px;
  }

  .auth-mode-toggle button {
    min-height: 44px;
    padding: 6px 4px;
    font-size: 10px;
  }

  .login-mode-note {
    gap: 3px;
    padding-top: 6px;
  }

  .login-mode-note strong {
    font-size: 11px;
  }

  .login-mode-note span {
    font-size: 12px;
    line-height: 1.25;
  }

  .login-card input {
    min-height: 46px;
  }

  .player-card-builder {
    padding: 10px;
  }

  .player-sticker-photo {
    width: min(122px, 44vw);
  }

  .login-consent {
    padding: 9px;
  }

  .login-card .login-consent input {
    min-height: 22px;
  }

  .login-consent span {
    font-size: 11px;
  }

  @media (max-width: 360px) {
    .login-screen {
      padding: 12px;
      gap: 12px;
    }

    .login-card {
      gap: 8px;
      padding: 12px;
    }

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

    .login-card.is-entry-choice-only h2 {
      font-size: 31px;
    }

    .login-card.is-entry-choice-only .login-choice-bar button {
      min-height: 104px;
      padding: 14px;
    }

    .login-card.is-entry-choice-only .login-choice-bar [data-entry-choice="account"] {
      min-height: 70px;
    }

    .login-card.is-entry-choice-only .login-choice-bar button strong {
      font-size: 18px;
    }

    .login-card.is-entry-choice-only .login-choice-bar button small {
      font-size: 12px;
      line-height: 1.28;
    }

    .login-choice-bar button {
      min-height: 44px;
      font-size: 10px;
    }

    .invite-preview {
      padding: 10px;
    }

    .invite-preview h3 {
      font-size: 20px;
    }

    .invite-preview-stats {
      display: none;
    }

    .login-card input {
      min-height: 44px;
    }

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

    .player-card-field {
      grid-column: 1 / -1;
    }

    .login-submit {
      min-height: 44px;
    }

    .login-card .login-consent input {
      min-height: 22px;
    }
  }

  .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);
    contain: paint;
    overflow: hidden;
  }

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

  .sidebar .brand-logo-symbol {
    width: 42px;
  }

  .nav-list {
    width: 100%;
    min-width: 0;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

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

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

  body[data-view="times"] .workspace {
    padding-bottom: 148px;
  }

  .team-drawer {
    right: 0;
    bottom: 74px;
    left: 0;
    z-index: 62;
    transform: translateY(calc(100% - 54px));
  }

  .team-drawer-toggle {
    min-width: 122px;
    min-height: 54px;
    padding: 9px 14px;
  }

  .team-drawer-panel {
    min-height: 0;
    max-height: min(58vh, 372px);
    overflow: hidden;
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
  }

  .team-drawer-track {
    gap: 10px;
    max-height: calc(min(58vh, 372px) - 28px);
    padding: 4px 14px 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .team-drawer-card {
    width: 152px;
    min-height: 208px;
    flex-basis: 152px;
    padding: 12px;
  }

  .team-drawer-card strong {
    font-size: 40px;
  }

  .topbar {
    gap: 8px;
    margin-bottom: 10px;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(82px, 0.62fr) 48px;
    align-items: stretch;
    gap: 6px;
  }

  .patota-switcher {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    width: 100%;
    border-radius: 8px;
  }

  .patota-switcher select {
    min-width: 0;
  }

  .topbar-actions #resetDemo,
  .topbar-actions #openMatch,
  .topbar-actions #upgradeGuestAccount {
    display: none;
  }

  .topbar-actions #logoutDemo span {
    display: none;
  }

  .topbar-actions #logoutDemo {
    width: 48px;
    min-width: 48px;
    justify-self: end;
    padding: 0;
  }

  .topbar-actions .session-pill,
  .topbar-actions .ghost-button,
  .topbar-actions .primary-button {
    min-height: 44px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .topbar-actions .session-pill {
    min-width: 0;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .score-inputs {
    grid-template-columns: 1fr;
  }

  .score-inputs strong {
    min-height: 44px;
  }

  .season-hero-panel {
    min-height: 420px;
  }

  .season-hero-panel h3 {
    font-size: 42px;
  }

  .season-ranking-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .season-quick-grid {
    gap: 7px;
  }

  .season-quick-card {
    min-height: 112px;
    padding: 10px;
  }

  .season-ranking-row b {
    grid-column: 2;
  }

  .stage-step {
    flex: 0 0 116px;
    min-width: 116px;
    min-height: 56px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px 8px;
    padding: 8px 9px;
    scroll-snap-align: start;
  }

  .stage-step span {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .stage-step strong {
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .stage-step small {
    font-size: 10px;
  }

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

  .app-toast {
    left: 14px;
    right: 14px;
    bottom: 88px;
    max-width: none;
  }

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

  .view-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

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

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

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

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

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

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

  .my-round-panel {
    min-height: auto;
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .my-round-matchday {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .my-round-crest {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .my-round-matchday strong {
    font-size: 17px;
  }

  .my-round-matchday dl {
    display: none;
  }

  .my-round-copy {
    gap: 6px;
  }

  .my-round-copy h3 {
    font-size: 23px;
  }

  .my-round-copy p {
    font-size: 14px;
  }

  .my-round-next {
    padding: 9px 10px;
  }

  .my-round-next strong {
    font-size: 13px;
  }

  .my-round-feedback {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 9px 10px;
  }

  .my-round-feedback strong {
    font-size: 12px;
  }

  .my-round-guide {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .my-round-guide li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .my-round-guide li > span {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .my-round-guide strong {
    font-size: 11px;
  }

  .my-round-guide small {
    font-size: 10px;
  }

  .my-round-summary span {
    min-height: 34px;
    font-size: 11px;
  }

  .my-round-secondary {
    gap: 7px;
  }

  .my-round-live-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .my-round-insights {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .my-round-insights button {
    min-height: 72px;
    padding: 10px;
  }

  .round-ops-panel {
    padding: 10px;
  }

  .round-ops-heading strong {
    font-size: 15px;
  }

  .round-ops-grid,
  .round-duty-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .round-ops-grid button {
    min-height: 76px;
    padding: 10px;
  }

  .round-duty-list > div,
  .round-duty-list article {
    padding: 10px;
  }

  .my-round-live-card {
    padding: 9px;
  }

  .my-round-live-card li {
    min-height: 32px;
  }

  .my-round-live-card li:nth-child(n+3) {
    display: none;
  }

  .my-round-status-note {
    padding: 9px 10px;
  }

  .my-round-status-note strong {
    font-size: 12px;
  }

  .admin-day-panel {
    gap: 8px;
    padding: 10px;
  }

  .admin-day-heading {
    align-items: flex-start;
  }

  .admin-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .admin-day-task {
    grid-template-rows: minmax(62px, auto) auto;
    padding: 8px;
  }

  .admin-day-task strong {
    font-size: 12px;
  }

  .admin-day-task small {
    font-size: 10px;
  }

  .my-round-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-start;
  }

  .my-round-actions button {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .my-round-actions .primary-action {
    grid-column: 1 / -1;
  }

  .player-finance-card,
  .profile-photo-control {
    align-items: stretch;
    flex-direction: column;
  }

  .player-finance-card strong {
    font-size: 22px;
  }

  .profile-layout,
  .profile-form,
  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary-hero,
  .profile-summary-empty {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .profile-summary-avatar,
  .profile-summary-empty > span {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .profile-summary-hero strong,
  .profile-summary-empty strong {
    font-size: 22px;
  }

  .my-round-secondary-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .my-round-secondary-actions button {
    width: 100%;
    padding: 9px 10px;
    font-size: 13px;
  }

  .my-round-panel > .my-round-guide {
    display: none;
  }

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

  .announcement-signal-card {
    min-height: 340px;
  }

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

  .announcement-signal-card strong {
    font-size: 42px;
  }

  .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) {
  .topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(76px, 0.58fr) 48px;
  }

  .topbar-actions .ghost-button,
  .topbar-actions .primary-button {
    width: 100%;
  }

  .guest-upgrade-button span {
    display: none;
  }

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

  .season-quick-grid {
    grid-template-columns: 1fr;
  }

  .team-drawer-card {
    width: 144px;
    flex-basis: 144px;
  }
}

@media (max-width: 760px) {
  .public-patota-screen {
    width: min(100vw - 24px, 520px);
    padding-top: 12px;
  }

  .public-patota-header,
  .public-patota-footer,
  .public-patota-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .public-patota-header .ghost-button,
  .public-patota-actions button {
    width: 100%;
  }

  .public-patota-hero,
  .public-patota-grid,
  .public-join-section,
  .public-join-form {
    grid-template-columns: 1fr;
  }

  .public-patota-hero {
    min-height: auto;
  }

  .public-patota-cover {
    min-height: 250px;
  }

  .public-patota-copy {
    padding: 20px;
  }

  .public-patota-copy h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

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

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

  .public-join-form-wide,
  .public-page-form-wide {
    grid-column: auto;
  }

  .login-screen {
    inline-size: 100vw;
    max-inline-size: 100vw;
  }

  .login-screen > .login-card,
  .login-screen > .login-hero {
    inline-size: calc(100vw - 36px) !important;
    max-inline-size: calc(100vw - 36px) !important;
  }

  .login-card *,
  .login-hero * {
    max-inline-size: 100%;
  }
}
