:root {
  --carbonell-blue: #263061;
  --carbonell-blue-strong: #1d2858;
  --carbonell-red: #d92527;
  --carbonell-yellow: #ffc044;
  --ice: #f5f7fa;
  --ice-strong: #eef2f6;
  --surface: #ffffff;
  --surface-soft: #fbfcfe;
  --ink: #172033;
  --muted: #68758a;
  --line: #dde4ee;
  --line-strong: #c9d3e2;
  --shadow: 0 18px 48px rgba(38, 48, 97, 0.12);
  --shadow-soft: 0 10px 28px rgba(23, 32, 51, 0.08);
  --shadow-strong: 0 24px 70px rgba(23, 32, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--ice) 260px, var(--ice-strong) 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
  overflow-x: hidden;
  position: relative;
}

body.page-login,
body.page-dashboard {
  background: #f5f7fa;
}

body.page-login::before,
body.page-dashboard::before {
  background-attachment: fixed;
  background-image: var(--page-overlay), var(--page-background);
  background-position: var(--page-background-position, center);
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body.page-login::after,
body.page-dashboard::after {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 192, 68, 0.2), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(38, 48, 97, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(245, 247, 250, 0.34));
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body.page-login {
  --page-background: url("img/backgrounds/selecao-brasileira-historia-no-futebol-e-participacao-em-copas-do-mundo.jpg");
  --page-background-position: 58% center;
  --page-overlay:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 253, 0.9) 42%, rgba(255, 255, 255, 0.58) 100%);
}

body.page-dashboard {
  --page-background: url("img/backgrounds/gc-torcida.jpg");
  --page-background-position: center top;
  --page-overlay:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0, rgba(245, 247, 250, 0.65) 330px, rgba(238, 242, 246, 0.85) 100%),
    linear-gradient(120deg, rgba(38, 48, 97, 0.1), rgba(255, 192, 68, 0.12));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease, background 160ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 192, 68, 0.65);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(221, 228, 238, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 32px;
}

.page-login .topbar,
.page-dashboard .topbar {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 28px rgba(23, 32, 51, 0.06);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand img {
  display: block;
  height: 42px;
  max-width: 220px;
  object-fit: contain;
}

.brand span {
  background: var(--carbonell-blue);
  border-radius: 8px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.nav-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.nav-actions form {
  margin: 0;
}

.nav-actions a,
.link-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--carbonell-blue);
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: 0 14px;
}

.nav-actions a:hover,
.link-button:hover {
  background: #fff7e5;
  border-color: #ffe0a3;
  color: var(--carbonell-blue-strong);
}

.link-button {
  cursor: pointer;
}

main {
  margin: 0 auto;
  max-width: 1160px;
  padding: 42px 24px 56px;
}

.dashboard-sponsor-layout {
  --sponsor-gap: clamp(16px, 1.35vw, 24px);
  --sponsor-rail: clamp(176px, 14.2vw, 320px);
  align-items: start;
  display: grid;
  gap: var(--sponsor-gap);
  grid-template-columns: minmax(176px, var(--sponsor-rail)) minmax(0, 1112px) minmax(176px, var(--sponsor-rail));
  margin-left: calc((100% - min(1800px, calc(100vw - 32px))) / 2);
  width: min(1800px, calc(100vw - 32px));
}

.dashboard-main {
  grid-column: 2;
  min-width: 0;
}

.sponsor-rail {
  display: grid;
  gap: var(--sponsor-gap);
  max-height: calc(100vh - 112px);
  position: sticky;
  top: 96px;
  z-index: 1;
}

.sponsor-rail-left {
  grid-column: 1;
}

.sponsor-rail-right {
  grid-column: 3;
}

.sponsor-mobile-carousel {
  display: none;
}

.sponsor-banner {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.96) 52%, rgba(255, 248, 228, 0.95)),
    linear-gradient(180deg, rgba(0, 156, 59, 0.08), rgba(0, 39, 118, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.12), inset 0 0 0 1px rgba(0, 39, 118, 0.06);
  color: var(--carbonell-blue);
  display: flex;
  font-size: clamp(0.82rem, 0.82vw, 1rem);
  font-weight: 900;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  text-align: center;
}

.sponsor-banner::before {
  background:
    linear-gradient(90deg, rgba(0, 156, 59, 0.72), rgba(255, 223, 0, 0.72), rgba(0, 39, 118, 0.72)),
    repeating-linear-gradient(135deg, rgba(0, 39, 118, 0.1) 0 1px, transparent 1px 13px);
  content: "";
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
}

.sponsor-watermark {
  background-image: url("img/carbonell-logo-icon.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(180px, 70%);
  filter: grayscale(100%) brightness(1.1) contrast(0.85);
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  position: absolute;
  transform: rotate(-10deg);
  z-index: 1;
}

.sponsor-banner > span,
.sponsor-contact-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.1);
  display: flex;
  justify-content: center;
  line-height: 1.35;
  min-height: 72px;
  padding: 14px 16px;
  position: relative;
  text-transform: uppercase;
  width: 100%;
  z-index: 2;
}

.sponsor-contact-card {
  flex-direction: column;
  gap: 4px;
  padding-inline: 8px;
}

.sponsor-contact-label {
  font-size: 0.78em;
}

.sponsor-contact-email {
  display: block;
  font-size: clamp(0.42rem, 0.62vw, 0.72rem);
  line-height: 1.15;
  text-transform: none;
  white-space: nowrap;
}

.sponsor-banner-filled {
  padding: 0;
  align-items: stretch;
}

.sponsor-banner-filled::before {
  opacity: 0.08;
  z-index: 1;
}

.sponsor-banner-filled img {
  position: relative;
  z-index: 0;
}

.sponsor-banner-link {
  display: block;
  height: 100%;
  width: 100%;
}

.sponsor-banner-tall {
  min-height: min(780px, calc(100vh - 112px));
}

.sponsor-banner-medium {
  min-height: min(328px, 36vh);
}

.sponsor-banner-lower {
  min-height: min(410px, 45vh);
}

.sponsor-banner img,
.sponsor-banner picture,
.sponsor-banner video {
  display: block;
  height: 100%;
  width: 100%;
}

.sponsor-banner img,
.sponsor-banner video {
  object-fit: cover;
}

.dev-auth-banner {
  background: #fff7dd;
  border: 1px solid #ead17c;
  border-radius: 8px;
  color: #69520d;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.login-shell {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  min-height: calc(100vh - 174px);
}

.hero-panel {
  padding: 10px 0;
}

.page-login .hero-panel {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  padding: 32px;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.brand-lockup img {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  height: 74px;
  object-fit: contain;
  padding: 10px;
  width: 74px;
}

.brand-lockup span {
  color: var(--carbonell-blue);
  display: block;
  font-size: 1.18rem;
  font-weight: 900;
}

.rules-page h1,
.calendar-page h1 {
  color: var(--carbonell-blue-strong);
  font-size: 4.1rem;
  font-weight: 950;
  line-height: 0.98;
  margin: 0 0 22px;
  max-width: 780px;
}

.rules-page-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.rules-page-header h1 {
  margin-bottom: 0;
}

.login-copy h1 {
  color: var(--carbonell-blue-strong);
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1.1;
  margin: 0 0 22px;
  max-width: 780px;
}

.dashboard-header h1 {
  color: var(--carbonell-blue-strong);
  font-size: clamp(2.5rem, 4vw, 3.35rem);
  font-weight: 950;
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 780px;
}

.login-copy p,
.dashboard-header p,
.rules-note,
.rules-intro,
.rules-section p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 680px;
}

.eyebrow,
.panel-kicker {
  color: var(--carbonell-red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.allowed-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.allowed-domains span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(38, 48, 97, 0.08);
  color: var(--carbonell-blue);
  font-size: 0.9rem;
  font-weight: 850;
  padding: 10px 12px;
}

.hero-stats {
  border-top: 1px solid rgba(38, 48, 97, 0.14);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  max-width: 710px;
  padding-top: 24px;
}

.hero-stats div {
  min-width: 0;
}

.hero-stats strong {
  color: var(--carbonell-blue);
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
  margin-top: 8px;
}

.login-panel,
.score-card,
.metric-grid article,
.rules-grid article,
.rules-summary article,
.rules-example-grid article,
.match-grid article {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.login-panel {
  align-self: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-strong);
  padding: 30px;
  position: relative;
}

.login-panel::before {
  background: var(--carbonell-yellow);
  border-radius: 8px 8px 0 0;
  content: "";
  height: 6px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.login-panel h2 {
  color: var(--carbonell-blue);
  font-size: 1.7rem;
  font-weight: 950;
  margin: 0 0 8px;
}

.login-panel p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.primary-action,
.secondary-action {
  border-radius: 8px;
  font-weight: 900;
  min-height: 50px;
  width: 100%;
}

.primary-action {
  background: var(--carbonell-blue);
  border: 1px solid var(--carbonell-blue);
  box-shadow: 0 16px 30px rgba(38, 48, 97, 0.22);
  color: white;
}

.primary-action:hover {
  background: var(--carbonell-blue-strong);
  border-color: var(--carbonell-blue-strong);
  transform: translateY(-1px);
}

.secondary-action {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--carbonell-blue);
  margin-top: 12px;
}

.secondary-action:hover {
  background: #fff7e5;
  border-color: var(--carbonell-yellow);
}

.page-back-action {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin-top: 0;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
  width: auto;
}

.page-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.setup-warning {
  background: #fff7dd;
  border: 1px solid #f0d57f;
  border-radius: 8px;
  color: #674f05;
  line-height: 1.5;
  margin-top: 16px;
  padding: 12px;
}

.error-text {
  color: #b42318;
  font-weight: 800;
}

.login-panel #login-message.error-text {
  color: #b42318;
}

.family-login-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}

.family-login-form[hidden] {
  display: none;
}

.family-login-form label {
  color: var(--carbonell-blue);
  font-size: 0.88rem;
  font-weight: 850;
}

.family-login-form input {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 0 12px;
  width: 100%;
}

.family-login-form input:focus {
  border-color: var(--carbonell-blue);
  box-shadow: 0 0 0 3px rgba(38, 48, 97, 0.14);
  outline: none;
}

.family-login-form .primary-action {
  margin-top: 4px;
}

.family-resend-code {
  margin-top: 8px;
}

.login-footnote {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
}

.login-footnote span {
  background: var(--carbonell-red);
  border-radius: 8px;
  display: block;
  flex: 0 0 10px;
  height: 10px;
  margin-top: 7px;
}

.login-footnote p {
  font-size: 0.92rem;
  margin: 0;
}

.term-modal {
  align-items: center;
  background: rgba(10, 16, 30, 0.68);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 30;
}

.term-modal[hidden] {
  display: none;
}

.term-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  color: var(--ink);
  display: grid;
  gap: 18px;
  max-height: min(720px, calc(100vh - 40px));
  max-width: 680px;
  overflow: auto;
  padding: 26px;
  width: 100%;
}

.term-dialog-header h2 {
  color: var(--carbonell-blue-strong);
  font-size: 1.55rem;
  margin: 4px 0 0;
}

.term-dialog-body {
  color: var(--muted);
  display: grid;
  gap: 12px;
  line-height: 1.58;
}

.term-dialog-body p {
  margin: 0;
}

.term-document-link {
  color: var(--carbonell-blue);
  font-weight: 900;
}

.term-checkbox {
  align-items: flex-start;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--carbonell-blue-strong);
  display: flex;
  gap: 10px;
  font-weight: 850;
  line-height: 1.45;
  padding: 14px;
}

.term-checkbox input {
  flex: 0 0 auto;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.feedback-modal {
  align-items: center;
  background: rgba(10, 16, 30, 0.68);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 32;
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 18px;
  max-width: 520px;
  padding: 24px;
  width: min(100%, 520px);
}

.feedback-dialog-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.feedback-dialog-header h2 {
  color: var(--carbonell-blue-strong);
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1.2;
  margin: 4px 0 0;
}

.feedback-close {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  flex: 0 0 38px;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  text-transform: uppercase;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-stars {
  border: 0;
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.feedback-stars legend {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  margin-bottom: 4px;
  width: 100%;
}

.feedback-stars input {
  opacity: 0;
  position: absolute;
}

.feedback-stars label {
  color: var(--line-strong);
  cursor: pointer;
  font-size: 2.25rem;
  line-height: 1;
}

.feedback-stars input:checked ~ label,
.feedback-stars label:hover,
.feedback-stars label:hover ~ label {
  color: var(--carbonell-yellow);
}

.feedback-stars input:focus-visible + label {
  outline: 3px solid rgba(255, 192, 68, 0.65);
  outline-offset: 3px;
}

.feedback-comment {
  color: var(--carbonell-blue-strong);
  display: grid;
  font-weight: 850;
  gap: 8px;
}

.feedback-comment textarea {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 110px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.term-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.term-actions button {
  width: auto;
}

.term-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.dashboard-header {
  align-items: stretch;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 250px;
  padding: 26px;
}

.world-cup-curiosity {
  border-left: 5px solid var(--carbonell-yellow);
  margin-top: 18px;
  max-width: 680px;
  padding: 2px 0 2px 14px;
}

.world-cup-curiosity span {
  color: var(--carbonell-blue);
  display: block;
  font-size: 0.82rem;
  font-weight: 950;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.dashboard-header .world-cup-curiosity p {
  color: var(--carbonell-blue-strong);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
}

.score-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px;
}

.score-card span,
.metric-grid span,
.rules-grid span,
.rules-summary span,
.rules-example-grid span,
.match-date {
  color: var(--muted);
  font-weight: 800;
}

.score-card strong {
  color: var(--carbonell-blue);
  font-size: 4.5rem;
  line-height: 1;
}

.score-card small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.metric-grid,
.rules-grid,
.rules-summary,
.rules-example-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.metric-grid article,
.rules-grid article,
.rules-summary article,
.rules-example-grid article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 124px;
  padding: 20px;
  position: relative;
}

.ranking-summary-card {
  min-height: 186px;
}

.prize-summary-card strong {
  font-size: 1.1rem;
}

.prize-summary-card>small {
  color: var(--muted);
  font-weight: 850;
}

.metric-grid article::after,
.rules-grid article::after {
  background: var(--carbonell-yellow);
  border-radius: 8px;
  content: "";
  height: 8px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
}

.metric-grid article:nth-child(2)::after,
.rules-grid article:nth-child(2)::after {
  background: var(--carbonell-red);
}

.metric-grid article:nth-child(3)::after,
.rules-grid article:nth-child(3)::after {
  background: var(--carbonell-blue);
}

.metric-grid strong,
.rules-grid strong,
.rules-summary strong,
.rules-example-grid strong {
  color: var(--carbonell-blue-strong);
  font-size: 1.35rem;
  line-height: 1.2;
  padding-right: 34px;
}

.ranking-mini-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
}

.ranking-mini-list li {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.ranking-mini-list strong,
.ranking-mini-list small,
.ranking-mini-participant,
.ranking-mini-participant span {
  min-width: 0;
}

.ranking-mini-list strong {
  color: var(--carbonell-blue);
  font-size: 0.95rem;
  padding: 0;
}

.ranking-mini-participant {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 8px;
}

.ranking-mini-participant img,
.ranking-avatar-fallback {
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
}

.ranking-mini-participant img,
.ranking-participant img {
  display: block;
  object-fit: cover;
}

.ranking-avatar-fallback {
  align-items: center;
  background: var(--carbonell-blue);
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  justify-content: center;
  text-transform: uppercase;
}

.ranking-mini-participant span:last-child {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-mini-list small {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.metric-card-action {
  align-items: center;
  align-self: flex-start;
  background: var(--carbonell-blue);
  border: 1px solid var(--carbonell-blue);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  justify-content: center;
  margin-top: auto;
  min-height: 38px;
  padding: 0 12px;
}

.metric-card-action:hover {
  background: var(--carbonell-blue-strong);
  border-color: var(--carbonell-blue-strong);
  color: #fff;
  transform: translateY(-1px);
}

.workbench,
.ranking-section,
.match-preview {
  margin-top: 32px;
}

.prizes-page {
  display: grid;
  gap: 24px;
}

.prizes-hero {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.prizes-hero h1 {
  color: var(--carbonell-blue-strong);
  font-size: 3.4rem;
  font-weight: 950;
  line-height: 1;
  margin: 0 0 16px;
  max-width: 820px;
}

.prizes-hero p,
.prize-current-card p,
.prize-card p,
.prize-rules-note span {
  color: var(--muted);
  line-height: 1.65;
}

.prize-current-card,
.prize-rules-note,
.prize-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.prize-current-card {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  padding: 24px;
}

.prize-current-card h2 {
  color: var(--carbonell-blue-strong);
  font-size: 2rem;
  font-weight: 950;
  margin: 0 0 10px;
}

.prize-current-card span,
.prize-card small {
  color: var(--carbonell-blue);
  font-weight: 900;
}

.prize-rules-note {
  border-left: 5px solid var(--carbonell-yellow);
  display: grid;
  gap: 6px;
  padding: 18px 20px;
}

.prize-rules-note strong {
  color: var(--carbonell-blue-strong);
  font-size: 1rem;
}

.prize-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prize-card {
  display: grid;
  gap: 8px;
  min-height: 230px;
  padding: 22px;
  position: relative;
}

.prize-card::after {
  background: var(--carbonell-yellow);
  border-radius: 8px;
  content: "";
  height: 8px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
}

.prize-card:nth-child(2)::after,
.prize-card:nth-child(5)::after {
  background: var(--carbonell-red);
}

.prize-card:nth-child(3)::after {
  background: var(--carbonell-blue);
}

.prize-card.active {
  border-color: var(--carbonell-yellow);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.14);
}

.prize-status {
  color: var(--carbonell-red);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prize-card h2 {
  color: var(--carbonell-blue-strong);
  font-size: 1.45rem;
  font-weight: 950;
  margin: 0;
  padding-right: 46px;
}

.prize-card strong {
  color: var(--carbonell-blue);
  font-size: 0.98rem;
}

.prize-product {
  align-items: center;
  background: rgba(13, 73, 133, 0.06);
  border: 1px solid rgba(13, 73, 133, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 88px minmax(0, 1fr);
  margin: 6px 0;
  padding: 10px;
}

.prize-product-current {
  grid-template-columns: 112px minmax(0, 1fr);
  margin-top: 16px;
  max-width: 540px;
}

.prize-product img {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  padding: 6px;
  width: 100%;
}

.prize-product small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prize-product strong {
  color: var(--carbonell-blue-strong);
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h2 {
  color: var(--carbonell-blue);
  font-size: 1.7rem;
  font-weight: 950;
  margin: 0;
}

.ghost-link,
.status-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--carbonell-blue);
  font-size: 0.92rem;
  font-weight: 900;
  padding: 10px 12px;
  white-space: nowrap;
}

.ghost-link:hover {
  border-color: var(--carbonell-yellow);
  box-shadow: var(--shadow-soft);
}

.status-pill {
  background: #fff7e5;
  border-color: #ffe0a3;
}

.ranking-table {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.ranking-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 88px minmax(0, 1fr) 90px 90px;
  min-height: 58px;
  padding: 0 18px;
}

.ranking-row+.ranking-row {
  border-top: 1px solid var(--line);
}

.ranking-row-head {
  background: var(--carbonell-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 950;
  min-height: 46px;
  text-transform: uppercase;
}

.ranking-row.podium {
  background: #fffaf0;
}

.ranking-participant {
  align-items: center;
  color: var(--carbonell-blue-strong);
  display: flex;
  gap: 10px;
  overflow: hidden;
}

.ranking-participant img {
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 34px;
  height: 34px;
  width: 34px;
}

.ranking-participant .ranking-avatar-fallback {
  flex-basis: 34px;
  height: 34px;
  width: 34px;
}

.ranking-participant span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row span {
  color: var(--muted);
  font-weight: 850;
}

.ranking-row .ranking-avatar-fallback {
  color: #fff;
}

.ranking-row-head span {
  color: #fff;
}

.action-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 116px;
  padding: 20px;
}

.action-grid a:hover {
  border-color: var(--carbonell-yellow);
  transform: translateY(-2px);
}

.action-grid span {
  color: var(--carbonell-red);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.action-grid strong {
  color: var(--carbonell-blue);
  font-size: 1.25rem;
  line-height: 1.2;
}

.match-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-grid article {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.integration-note,
.empty-state {
  background: #fff7dd;
  border: 1px solid #f0d57f;
  border-radius: 8px;
  color: #674f05;
  line-height: 1.5;
  margin: 0 0 16px;
  padding: 12px;
}

.empty-state {
  display: grid;
  gap: 4px;
}

.empty-state strong {
  color: var(--carbonell-blue);
}

.empty-state span {
  color: var(--muted);
}

.teams {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
}

.teams strong {
  color: var(--carbonell-blue);
  font-size: 1.25rem;
}

.teams strong:last-child {
  text-align: right;
}

.teams span {
  background: var(--ice-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  padding: 6px 8px;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-meta span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 10px;
}

.match-grid button {
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: not-allowed;
  font-weight: 900;
  min-height: 42px;
}

.success-note {
  background: #e9f8ef;
  border: 1px solid #b7e3c5;
  border-radius: 8px;
  color: #196c35;
  font-weight: 850;
  margin: 0 0 16px;
  padding: 12px;
}

.error-note {
  background: #fff1f0;
  border: 1px solid #f3b8b5;
  border-radius: 8px;
  color: #9f1d18;
  font-weight: 850;
  margin: 0 0 16px;
  padding: 12px;
}

.profile-page {
  display: grid;
  gap: 18px;
  max-width: 940px;
}

.profile-heading h1 {
  color: var(--carbonell-blue-strong);
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
  margin: 0;
}

.profile-editor {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  padding: 24px;
}

.profile-summary {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.profile-photo-frame {
  align-items: center;
  background: var(--carbonell-blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  display: flex;
  flex: 0 0 104px;
  font-size: 2.8rem;
  font-weight: 950;
  height: 104px;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
  width: 104px;
}

.profile-photo-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-summary span,
.profile-form label span,
.profile-hint {
  color: var(--muted);
  font-weight: 850;
}

.profile-summary strong {
  color: var(--carbonell-blue-strong);
  display: block;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.15;
  margin: 4px 0;
}

.profile-summary small {
  color: var(--muted);
  display: block;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.profile-form label {
  display: grid;
  gap: 8px;
}

.profile-form input[type="file"] {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  padding: 12px;
  width: 100%;
}

.profile-hint {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-actions .primary-action,
.profile-actions .secondary-action {
  margin-top: 0;
  width: auto;
  min-width: 170px;
  padding: 0 18px;
}

.betting-form {
  display: grid;
  gap: 18px;
}

.round-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.round-tab {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--carbonell-blue);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 190px;
  flex-direction: column;
  gap: 5px;
  min-height: 76px;
  padding: 12px;
  scroll-snap-align: start;
  text-align: left;
}

.round-tab:hover,
.round-tab.active {
  border-color: var(--carbonell-yellow);
  box-shadow: var(--shadow-soft);
}

.round-tab.active {
  background: #fff7e5;
}

.round-tab span {
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.2;
}

.round-tab strong {
  color: #196c35;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.round-tab.locked {
  color: var(--muted);
}

.round-tab.locked strong {
  color: var(--muted);
}

.betting-round {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.betting-round[hidden] {
  display: none;
}

.betting-round>header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.betting-round h3 {
  color: var(--carbonell-blue);
  font-size: 1.35rem;
  font-weight: 950;
  margin: 2px 0 0;
}

.betting-round header span,
.betting-round header strong {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.betting-round header strong {
  background: #e9f8ef;
  border: 1px solid #b7e3c5;
  border-radius: 8px;
  color: #196c35;
  padding: 8px 10px;
}

.betting-round.locked {
  opacity: 0.68;
}

.betting-round.locked header strong {
  background: var(--ice);
  border-color: var(--line);
  color: var(--muted);
}

.betting-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bet-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.bet-teams {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.bet-teams label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.team-name {
  align-items: center;
  color: var(--carbonell-blue);
  display: flex;
  font-size: 0.95rem;
  font-weight: 900;
  gap: 8px;
  line-height: 1.25;
  min-height: 36px;
}

.team-flag {
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(23, 32, 51, 0.14);
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  object-fit: cover;
  width: 26px;
}

.bet-teams input {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 950;
  min-height: 42px;
  padding: 8px 10px;
  text-align: center;
  width: 100%;
}

.bet-teams input:disabled {
  background: var(--ice);
  color: var(--muted);
}

.versus {
  align-items: center;
  background: var(--ice-strong);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  padding: 0 10px;
}

.bet-card-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-height: 38px;
}

.save-match-action {
  font-size: 0.88rem;
  margin-top: 0;
  min-height: 38px;
  padding: 0 14px;
  width: auto;
}

.save-match-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.bet-card-feedback {
  color: var(--muted);
  flex: 1 1 auto;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.3;
  margin: 0;
  min-height: 1.1rem;
  text-align: right;
}

.bet-card-feedback.loading {
  color: var(--carbonell-blue);
}

.bet-card-feedback.saved {
  color: #196c35;
}

.bet-card-feedback.error {
  color: var(--carbonell-red);
}

.bet-card-feedback.locked {
  color: var(--muted);
}

.betting-actions {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.compact-action {
  min-height: 42px;
  padding: 0 16px;
  width: auto;
}

.calendar-board {
  margin-top: 32px;
}

.calendar-page {
  max-width: 1120px;
}

.calendar-page h1 {
  font-size: 3.25rem;
  margin-bottom: 0;
}

.calendar-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

.calendar-table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.calendar-table th,
.calendar-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

.calendar-table th {
  color: var(--carbonell-blue);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-table td {
  color: var(--ink);
  font-weight: 750;
}

.calendar-table tr:last-child td {
  border-bottom: 0;
}

.calendar-table small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

.admin-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-actions .secondary-action {
  margin-top: 0;
}

.admin-round-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-round-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.admin-round-card.locked {
  background: var(--ice);
}

.admin-round-card span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.admin-round-card strong {
  color: var(--ink);
  display: block;
  font-weight: 950;
}

.admin-game-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px;
}

.admin-game-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-game-form label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-game-form input,
.admin-game-form select,
.result-row-form input,
.result-row-form select {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.admin-game-form button {
  align-self: end;
  grid-column: span 2;
}

.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

.admin-results-table {
  min-width: 1040px;
}

.admin-profiles-table {
  min-width: 0;
  table-layout: fixed;
}

.admin-profiles-table th,
.admin-profiles-table td {
  overflow-wrap: anywhere;
}

.admin-profiles-table th:last-child,
.admin-profiles-table td:last-child {
  width: 150px;
}

.admin-terms-table {
  min-width: 900px;
}

.admin-profile-cell {
  align-items: center;
  display: flex;
  gap: 10px;
}

.admin-profile-cell img,
.admin-profile-cell .ranking-avatar-fallback {
  flex: 0 0 34px;
  height: 34px;
  width: 34px;
}

.admin-profile-cell img {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: block;
  object-fit: cover;
}

.admin-profile-cell strong {
  color: var(--carbonell-blue-strong);
  font-weight: 950;
}

.admin-profile-type {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  padding: 7px 9px;
}

.admin-profile-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.admin-profile-actions form {
  margin: 0;
}

.admin-profile-actions button {
  min-height: 38px;
  padding: 0 12px;
  width: 100%;
}

.admin-profile-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.danger-action {
  border-color: #b42318;
  color: #b42318;
}

.admin-term-details {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  min-width: 260px;
}

.admin-term-details summary {
  color: var(--carbonell-blue-strong);
  cursor: pointer;
  font-weight: 900;
}

.admin-term-details span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-user-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.admin-user-form label {
  display: grid;
  gap: 7px;
}

.admin-user-form label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-user-form input,
.admin-user-form select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 0 11px;
  width: 100%;
}

.admin-user-form button {
  align-self: end;
  min-height: 44px;
  width: auto;
}

.result-row-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 72px auto 72px minmax(150px, 1fr) minmax(150px, auto) minmax(130px, auto);
}

.result-row-form span {
  color: var(--muted);
  font-weight: 950;
  text-align: center;
}

.calendar-match {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.calendar-match span {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.calendar-match strong {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 950;
}

.rules-page {
  max-width: 980px;
}

.rules-page h1 {
  font-size: 3.55rem;
}

.rules-intro {
  margin-bottom: 0;
}

.rules-summary {
  margin-bottom: 32px;
}

.rules-summary article {
  border-top: 5px solid var(--carbonell-yellow);
  min-height: 132px;
}

.rules-summary article:nth-child(2) {
  border-top-color: var(--carbonell-red);
}

.rules-summary article:nth-child(3) {
  border-top-color: var(--carbonell-blue);
}

.rules-summary strong,
.rules-example-grid strong {
  padding-right: 0;
}

.rules-section {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 28px;
}

.rules-section h2 {
  color: var(--carbonell-blue);
  font-size: 1.65rem;
  font-weight: 950;
  margin: 0 0 10px;
}

.rules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-grid article {
  min-height: 178px;
}

.rules-grid small,
.rules-example-grid small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.rules-example-grid article {
  min-height: 156px;
}

.tiebreaker-list {
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 760px;
  padding-left: 24px;
}

.tiebreaker-list li {
  padding-left: 4px;
}

.tiebreaker-list li::marker {
  color: var(--carbonell-red);
  font-weight: 950;
}

.rules-note {
  border-left: 4px solid var(--carbonell-yellow);
  margin-top: 24px;
  padding-left: 16px;
}

@media (max-width: 900px) {
  body.page-login {
    --page-background-position: 68% center;
    --page-overlay:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0, rgba(248, 250, 253, 0.9) 56%, rgba(255, 255, 255, 0.64) 100%);
  }

  body.page-dashboard {
    --page-background-position: 44% top;
  }

  .login-shell,
  .dashboard-header,
  .metric-grid,
  .rules-summary,
  .rules-example-grid,
  .action-grid,
  .admin-actions,
  .admin-round-grid,
  .match-grid,
  .betting-grid {
    grid-template-columns: 1fr;
  }

  .login-copy h1,
  .dashboard-header h1,
  .prizes-hero h1,
  .rules-page h1,
  .calendar-page h1 {
    font-size: 2.7rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1199px) {
  .dashboard-sponsor-layout {
    display: block;
    margin-left: 0;
    transform: none;
    width: 100%;
  }

  .sponsor-rail {
    display: none;
  }

  .sponsor-mobile-carousel {
    display: block;
    margin: 22px 0;
  }

  .sponsor-mobile-carousel .sponsor-banner {
    min-height: auto;
    aspect-ratio: 2 / 1;
  }

  .sponsor-mobile-carousel .sponsor-banner:not(.active) {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    position: static;
  }

  .brand {
    width: 100%;
  }

  .brand img {
    height: 38px;
    max-width: 190px;
  }

  .nav-actions {
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
  }

  .nav-actions a,
  .nav-actions form,
  .link-button {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    width: 100%;
  }

  main {
    padding: 28px 16px 42px;
  }

  .login-panel {
    padding: 24px;
  }

  .page-login .hero-panel,
  .dashboard-header {
    padding: 22px;
  }

  .dashboard-header {
    gap: 18px;
  }

  .score-card {
    align-items: flex-start;
    padding: 20px;
  }

  .score-card strong {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .metric-grid article {
    min-height: 0;
  }

  .ranking-mini-list li {
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ranking-mini-list small {
    grid-column: 2;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .prize-current-card,
  .prize-grid,
  .profile-editor {
    grid-template-columns: 1fr;
  }

  .admin-game-form {
    grid-template-columns: 1fr;
  }

  .admin-user-form {
    grid-template-columns: 1fr;
  }

  .admin-game-form button,
  .admin-user-form button {
    grid-column: auto;
  }

  .admin-round-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header-actions,
  .rules-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header-actions {
    justify-content: flex-start;
  }

  .prizes-hero {
    flex-direction: column;
  }

  .compact-action {
    width: 100%;
  }

  .ghost-link,
  .status-pill {
    width: 100%;
  }

  .metric-card-action {
    width: 100%;
  }

  .ranking-row {
    grid-template-columns: 70px minmax(0, 1fr) 70px 70px;
    padding: 0 12px;
  }

  .round-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .round-tab {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bet-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bet-card-feedback {
    min-height: 0;
    text-align: left;
  }

  .save-match-action {
    width: 100%;
  }

  .match-result-badge,
  .user-score-badge {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand span {
    display: none;
  }

  .login-copy h1,
  .dashboard-header h1,
  .rules-page h1,
  .calendar-page h1 {
    font-size: 2.25rem;
  }

  .teams {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .teams strong:last-child {
    text-align: left;
  }

  .teams span {
    justify-self: start;
  }

  .ranking-row {
    grid-template-columns: 58px minmax(0, 1fr) 62px;
  }

  .ranking-row span:nth-child(4) {
    display: none;
  }

  .betting-round>header,
  .bet-teams,
  .result-row-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .betting-round>header {
    flex-direction: column;
  }

  .versus {
    justify-self: start;
  }

  .nav-actions a,
  .nav-actions form,
  .link-button {
    flex-basis: 100%;
  }

  .round-tabs {
    grid-template-columns: 1fr;
  }

  .round-tab {
    min-height: 70px;
  }
}

/* Estilização para resultados e pontuações nos cards de palpites */
.match-result-badge {
  align-items: center;
  background: var(--carbonell-blue);
  border-radius: 8px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 10px 14px;
}

.match-result-badge .result-label {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.match-result-badge .result-score {
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 1px;
}

.match-result-badge .result-score strong {
  color: var(--carbonell-yellow);
}

.match-result-badge.pending {
  background: #eef2f7;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
}

.match-result-badge.pending .result-score {
  color: var(--carbonell-blue);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.user-score-badge {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 14px;
}

.user-score-badge.exato {
  background: #e9f8ef;
  border-color: #b7e3c5;
  color: #196c35;
}

.user-score-badge.parcial {
  background: #fff7e5;
  border-color: #ffe0a3;
  color: #a1700b;
}

.user-score-badge.minimo {
  background: #f5f7fa;
  border-color: var(--line-strong);
  color: var(--carbonell-blue);
}

.user-score-badge.zero {
  background: #fdf2f2;
  border-color: #fecdca;
  color: #b42318;
}

.user-score-badge.pending {
  background: #f8fafc;
  border-color: var(--line);
  color: var(--text-muted);
}

.user-score-badge strong {
  font-size: 1.25rem;
  font-weight: 950;
}

.user-score-badge span {
  font-size: 0.88rem;
  font-weight: 800;
}

