:root {
  --nova-blue: #022D94;
  --fusion-blue: #0563C1;
  --fusion-blue-hover: #064E9C;
  --formular-yellow: #FFBB1C;
  --green: #008300;
  --green-bg: #D9EDD9;
  --error-red: #C82D2D;
  --rating-yellow: #F6B800;
  --text-dark: #181818;
  --text-grey: #666666;
  --grey-1: #949494;
  --light-grey: #DCDCDC;
  --bg-selected: #FAFAFA;
  --bg-disabled: #F4F4F4;
  --white: #FFFFFF;
  --ink-blue: #111C3D;
  --soft-blue: #EEF4FF;
  --line-blue: #C8D3EA;
  --shadow: 0 18px 48px rgba(2, 45, 148, 0.13), 0 6px 18px rgba(24, 24, 24, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f3f6fb;
  color: var(--text-dark);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

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

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.award-icon {
  overflow: visible;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #f7faff 0%, #eef3f9 100%);
}

.brand-block {
  text-align: center;
  margin-bottom: 26px;
}

.auth-brand-block {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo--main {
  max-width: 270px;
  margin: 0 auto;
}

.brand-logo--checkpot-main {
  max-width: min(410px, 78vw);
  max-height: 118px;
  object-fit: contain;
  margin: 0 auto;
}

.auth-brand-claim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  color: #505b7c;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-logo--claim-check24 {
  width: 132px;
  max-height: 34px;
  object-fit: contain;
}

.brand-block p {
  margin: 18px 0 0;
  color: #505b7c;
  font-size: 1.6rem;
}

.auth-card {
  width: min(100%, 560px);
  min-height: 606px;
  padding: 30px 38px 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.auth-card--loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 16px;
  color: #515c7f;
  text-align: center;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #d7e0f3;
  border-top-color: var(--fusion-blue);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--light-grey);
  margin-bottom: 28px;
}

.auth-tab {
  min-height: 42px;
  padding: 0 14px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #4a526f;
  font-weight: 700;
}

.auth-tab.is-active {
  border-bottom-color: #0047ff;
  color: #003fc7;
}

.auth-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border-radius: 999px;
  background: #edf3ff;
  color: #0550dc;
}

.auth-icon .icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.9;
}

.auth-form {
  display: grid;
  gap: 19px;
}

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

.field-label {
  color: var(--ink-blue);
  font-size: 0.94rem;
  font-weight: 700;
}

.input-shell {
  min-height: 50px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
  background: var(--white);
  color: #596280;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.input-shell:focus-within {
  border-color: var(--fusion-blue);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.12);
}

.has-error .input-shell {
  border-color: rgba(200, 45, 45, 0.66);
}

.input-icon {
  display: grid;
  place-items: center;
  color: #566080;
}

.input-icon .icon {
  width: 20px;
  height: 20px;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink-blue);
  background: transparent;
}

.input-shell input::placeholder {
  color: #8b94ad;
  opacity: 1;
}

.password-toggle {
  width: 46px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #58627f;
}

.password-toggle:hover {
  color: var(--fusion-blue);
}

.field-help,
.field-error {
  color: #596280;
  font-size: 0.86rem;
}

.field-error {
  color: var(--error-red);
}

.button {
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

.button-primary {
  margin-top: 10px;
  color: var(--white);
  background: #0047ef;
  box-shadow: 0 7px 16px rgba(0, 71, 239, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: var(--fusion-blue-hover);
}

.button-primary:disabled {
  background: #6f93dd;
}

.auth-switch {
  margin: 20px 0 0;
  color: var(--ink-blue);
  text-align: center;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0047e5;
  font-weight: 700;
}

.auth-password-help {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 16px 0 0;
  color: #596280;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.35;
}

.auth-password-help p {
  margin: 0;
  color: var(--ink-blue);
  font-weight: 700;
}

.auth-password-help a {
  color: #0047e5;
  font-weight: 700;
  text-decoration: none;
}

.auth-password-help a:hover {
  text-decoration: underline;
}

.auth-password-help span {
  max-width: 320px;
}

.alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  padding: 17px 18px;
  border-radius: 6px;
  font-size: 0.94rem;
  line-height: 1.4;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 6px;
}

.alert-error {
  border: 1px solid rgba(200, 45, 45, 0.42);
  background: #fff4f4;
  color: var(--ink-blue);
}

.alert-success {
  border: 1px solid rgba(0, 131, 0, 0.3);
  background: var(--green-bg);
  color: var(--ink-blue);
}

.alert-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ee3939;
  color: var(--white);
}

.alert-icon .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.alert-success .alert-icon {
  background: var(--green);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg-selected);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 14px;
  overflow-y: auto;
  border-right: 1px solid var(--light-grey);
  background: var(--white);
  z-index: 20;
}

.sidebar-brand {
  padding: 0 6px 14px;
  text-align: center;
}

.brand-logo--sidebar {
  max-width: 168px;
  max-height: 64px;
  object-fit: contain;
  margin: 0 auto;
}

.sidebar-brand p {
  margin: 5px 0 0;
  color: #596280;
  font-size: 0.9rem;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
}

.sidebar-promo {
  margin: 18px 0 14px;
}

.sidebar-promo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 420px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(17, 28, 61, 0.12);
}

.nav-section {
  margin: 10px 8px 5px;
  color: var(--grey-1);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-section--admin {
  margin-top: 14px;
}

.nav-item {
  min-height: 38px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #34405f;
  text-decoration: none;
  font-weight: 700;
  text-align: left;
}

.nav-item--toggle {
  width: 100%;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.nav-item-chevron {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: currentColor;
  transition: transform 140ms ease;
}

.nav-item-chevron .icon {
  width: 16px;
  height: 16px;
}

.nav-item--toggle[aria-expanded="true"] .nav-item-chevron {
  transform: rotate(180deg);
}

.nav-item:hover,
.nav-item.is-active {
  background: #fff5d8;
  color: var(--nova-blue);
}

.nav-item.is-active {
  box-shadow: inset 4px 0 0 var(--formular-yellow);
}

.subnav {
  display: grid;
  gap: 2px;
  margin: 0 0 6px 25px;
}

.subnav-item {
  min-height: 32px;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 9px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: #58627f;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.subnav-item span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8f98ad;
}

.subnav-item:hover,
.subnav-item.is-active {
  background: var(--soft-blue);
  color: #0047df;
}

.subnav-item.is-active span {
  background: #0047df;
}

.sidebar-footer {
  display: grid;
  margin-top: auto;
  padding: 10px 0 0;
  border-top: 1px solid var(--light-grey);
}

.sidebar-logout {
  min-height: 38px;
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--error-red);
  text-align: left;
  font-weight: 700;
}

.sidebar-logout:hover {
  background: #fff1f1;
}

.main-area {
  min-width: 0;
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--light-grey);
  background: var(--white);
}

.topbar h1 {
  margin: 2px 0 0;
  color: var(--ink-blue);
  font-size: 1.55rem;
  line-height: 1.08;
}

.topbar-title {
  min-width: 0;
}

.topbar-kicker {
  margin: 0;
  color: var(--text-grey);
  font-size: 0.84rem;
}

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

.points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  min-width: 70px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--nova-blue);
  color: var(--white);
  font-weight: 800;
}

.points-badge--link {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.points-badge--link:hover {
  background: #003bb8;
  box-shadow: 0 8px 18px rgba(0, 68, 204, 0.2);
  transform: translateY(-1px);
}

.points-badge--link:focus-visible {
  outline: 3px solid rgba(0, 68, 204, 0.25);
  outline-offset: 3px;
}

.points-badge .icon {
  width: 18px;
  height: 18px;
}

.user-menu {
  position: relative;
}

.user-button {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto;
  gap: 9px;
  align-items: center;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--light-grey);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-blue);
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
  font-weight: 800;
}

.avatar-image {
  overflow: hidden;
  background: #dfe6f2;
}

.avatar-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.user-name {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 180px;
  display: none;
  padding: 6px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 28px rgba(24, 24, 24, 0.12);
}

.user-dropdown.is-open {
  display: grid;
}

.user-dropdown button {
  min-height: 38px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-blue);
  text-align: left;
}

.user-dropdown button:hover:not(:disabled) {
  background: var(--bg-selected);
}

.user-dropdown button:disabled {
  color: var(--grey-1);
}

.user-dropdown button[data-logout] {
  color: var(--error-red);
}

.content-area {
  padding: 28px 32px;
}

.empty-panel {
  min-height: calc(100vh - 134px);
}

.empty-panel-card {
  min-height: 220px;
  display: flex;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.04);
}

.empty-panel-card h2 {
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.3rem;
}

.panel-stack {
  display: grid;
  gap: 22px;
}

.panel-card {
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.04);
}

.panel-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 14px;
}

.panel-card-header h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.28rem;
}

.panel-card-header p {
  margin: 8px 0 0;
  color: #596280;
}

.panel-card-header--link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0047df;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.panel-card-header--link .icon {
  width: 18px;
  height: 18px;
}

.panel-loading-card,
.panel-error-card {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 28px;
  color: #596280;
}

.panel-error-card {
  place-items: stretch;
  align-content: center;
}

.panel-error-card .alert,
.panel-inline-alert .alert {
  margin: 0;
}

.panel-retry {
  justify-self: start;
  min-width: 140px;
  padding: 0 22px;
}

.my-status-card {
  display: grid;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid var(--light-grey);
}

.my-status-card.is-pending {
  border-color: #ffd36b;
  background: #fffaf0;
}

.my-status-card.is-clear {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-color: #b9dfc4;
  background: #f4fbf6;
}

.my-status-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.my-status-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.my-status-card.is-pending .my-status-icon {
  background: #fff0c4;
  color: #d58a00;
}

.my-status-card.is-clear .my-status-icon {
  background: var(--green-bg);
  color: var(--green);
}

.my-status-icon .icon {
  width: 30px;
  height: 30px;
}

.my-status-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.my-status-card h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.35rem;
  line-height: 1.2;
}

.my-status-card p {
  margin: 8px 0 0;
  color: #34405f;
  line-height: 1.45;
}

.my-status-next {
  font-weight: 700;
}

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

.my-status-actions.has-single {
  grid-template-columns: minmax(0, 1fr);
}

.my-status-action {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid #f2d591;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.my-status-action-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.my-status-action-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff0c4;
  color: #d58a00;
}

.my-status-action--matches .my-status-action-icon {
  background: var(--soft-blue);
  color: var(--fusion-blue);
}

.my-status-action-icon .icon {
  width: 26px;
  height: 26px;
}

.my-status-action h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.03rem;
}

.my-status-action p {
  margin: 6px 0 0;
  color: #34405f;
}

.my-status-action-detail {
  font-size: 0.9rem;
}

.my-status-action-button,
.my-status-calendar {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.my-status-action-button .icon,
.my-status-calendar .icon {
  width: 18px;
  height: 18px;
}

.route-card {
  overflow: hidden;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(260px, 3fr) minmax(420px, 5fr);
  gap: 22px;
  padding: 16px 28px 28px;
}

.timeline-group {
  min-width: 0;
}

.timeline-group-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.timeline-group-title::before,
.timeline-group-title::after {
  content: "";
  height: 1px;
  background: #d7deea;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  gap: 14px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  top: 18px;
  height: 3px;
  background: #c5cbd6;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.timeline-node {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: var(--white);
  color: #b8bfcc;
  font-size: 1.15rem;
  font-weight: 900;
}

.timeline-step h3 {
  min-height: 34px;
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.timeline-step p {
  margin: -2px 0 0;
  color: #6b7389;
  font-size: 0.78rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.state-finished {
  color: var(--green);
}

.timeline-node.state-finished {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.status-pill.state-finished {
  background: var(--green-bg);
  color: var(--green);
}

.state-ready {
  color: #28a650;
}

.status-pill.state-ready {
  background: #e2f4e7;
  color: #17843d;
}

.state-pending {
  color: var(--rating-yellow);
}

.status-pill.state-pending {
  background: #fff4d7;
  color: #a66d00;
}

.state-playing {
  color: var(--fusion-blue);
}

.status-pill.state-playing {
  background: var(--soft-blue);
  color: var(--nova-blue);
}

.state-upcoming {
  color: #b8bfcc;
}

.status-pill.state-upcoming {
  background: #eef0f4;
  color: #596070;
}

.state-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 0 28px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--light-grey);
  color: #596280;
  font-size: 0.9rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: currentColor;
}

.action-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.04);
}

.action-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--formular-yellow);
  color: var(--white);
}

.action-icon--clear {
  background: var(--green-bg);
  color: var(--green);
}

.action-banner h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.12rem;
}

.action-banner p {
  margin: 8px 0 0;
  color: #596280;
}

.action-button {
  min-width: 216px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 0 18px;
  text-decoration: none;
}

.action-button .icon {
  width: 18px;
  height: 18px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 22px;
}

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

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 1.35fr);
  padding: 18px 28px 28px;
}

.summary-metric,
.summary-next {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  padding: 4px 18px;
  text-align: center;
}

.summary-metric + .summary-metric,
.summary-next {
  border-left: 1px solid var(--light-grey);
}

.summary-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
}

.summary-icon--green {
  background: var(--green-bg);
  color: var(--green);
}

.summary-metric.is-warning .summary-icon {
  background: #fff4d7;
  color: #a66d00;
}

.summary-metric strong {
  color: #0047df;
  font-size: 1.72rem;
  line-height: 1;
}

.summary-metric.is-warning strong {
  color: #f0a400;
}

.summary-metric span:last-child,
.summary-next span {
  color: #596280;
  font-size: 0.92rem;
}

.summary-next {
  justify-items: start;
  text-align: left;
}

.summary-next strong {
  display: block;
  margin-top: 8px;
  color: var(--text-dark);
  font-size: 1rem;
}

.summary-next p {
  margin: 6px 0 12px;
  color: #596280;
}

.summary-next a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0047df;
  font-weight: 700;
  text-decoration: none;
}

.summary-next a .icon {
  width: 18px;
  height: 18px;
}

.mini-ranking {
  display: grid;
}

.mini-ranking-row {
  display: grid;
  grid-template-columns: 34px 44px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 0 28px;
  border-top: 1px solid var(--light-grey);
}

.mini-ranking-row.is-current {
  background: #edf4ff;
}

.rank-number {
  color: var(--nova-blue);
  font-size: 1rem;
  text-align: center;
}

.ranking-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
  font-weight: 800;
}

.ranking-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-dark);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.you-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--nova-blue);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
}

.ranking-points {
  color: var(--text-dark);
  white-space: nowrap;
}

.ranking-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--light-grey);
  color: #596280;
  font-size: 0.9rem;
}

.ranking-note .icon {
  width: 18px;
  height: 18px;
}

.ranking-note--up {
  color: var(--green);
}

.ranking-note--down {
  color: var(--error-red);
}

.news-card {
  overflow: hidden;
}

.news-card--featured .panel-card-header {
  align-items: center;
}

.news-board-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.news-carousel-controls {
  display: inline-flex;
  gap: 6px;
}

.news-carousel-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dfec;
  border-radius: 999px;
  background: var(--white);
  color: var(--fusion-blue);
}

.news-carousel-button:hover {
  background: var(--soft-blue);
}

.news-carousel-button .icon {
  width: 17px;
  height: 17px;
}

.news-carousel-button--prev .icon {
  transform: rotate(180deg);
}

.news-carousel {
  border-top: 1px solid var(--light-grey);
}

.news-carousel-track {
  display: grid;
  grid-auto-columns: minmax(260px, calc((100% - 32px) / 3));
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 18px 22px 22px;
  scroll-padding-inline: 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.panel-news-slide {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 25, 80, 0.05);
  scroll-snap-align: start;
}

.panel-news-slide:not(.has-image) {
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 14px;
  padding: 16px;
}

.panel-news-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.panel-news-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
  font-size: 1.35rem;
}

.panel-news-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.panel-news-slide:not(.has-image) .panel-news-body {
  padding: 0;
}

.panel-news-body h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.25;
}

.panel-news-body p {
  margin: 10px 0 14px;
  color: #34405f;
  line-height: 1.45;
}

.panel-news-body .news-action {
  margin-top: auto;
}

.news-list {
  display: grid;
  border-top: 1px solid var(--light-grey);
}

.news-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 28px;
}

.news-item.has-image {
  grid-template-columns: 42px minmax(0, 1fr) minmax(160px, 260px);
}

.news-item + .news-item {
  border-top: 1px solid var(--light-grey);
}

.news-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
  font-size: 1.25rem;
}

.news-content {
  min-width: 0;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.news-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: #fff3cf;
  color: #9a6400;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-item h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
}

.news-item time {
  color: #687188;
  font-size: 0.84rem;
  font-weight: 700;
}

.news-item p {
  margin: 10px 0 0;
  color: #34405f;
  line-height: 1.45;
  white-space: pre-line;
}

.news-action {
  width: fit-content;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
}

.news-action .icon {
  width: 16px;
  height: 16px;
}

.news-image {
  width: 100%;
  align-self: stretch;
  border-radius: 7px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.news-page {
  display: grid;
  gap: 20px;
}

.news-page-hero p {
  margin: 0;
  color: #596280;
  font-size: 1.02rem;
}

.news-page-list {
  display: grid;
  gap: 14px;
}

.news-item--full {
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 25, 80, 0.05);
}

.news-item--full.is-focused {
  border-color: rgba(0, 74, 224, 0.38);
  box-shadow: 0 12px 30px rgba(0, 74, 224, 0.13);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 24px 38px;
  border-top: 1px solid var(--light-grey);
  color: #596280;
  text-align: center;
}

.empty-state .icon {
  width: 24px;
  height: 24px;
}

.empty-state p {
  margin: 0;
}

.panel-footnote {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #596280;
  font-size: 0.9rem;
}

.panel-footnote .icon {
  width: 18px;
  height: 18px;
}

.classification-page {
  display: grid;
  gap: 22px;
}

.classification-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.classification-hero h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.55rem;
}

.classification-hero p {
  margin: 10px 0 0;
  color: #596280;
}

.classification-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.classification-quick-actions .button {
  min-width: 146px;
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
}

.classification-tabs {
  display: inline-flex;
  width: fit-content;
  overflow: hidden;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
}

.classification-tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  color: #596280;
  font-weight: 800;
  text-decoration: none;
  border-right: 1px solid var(--light-grey);
}

.classification-tabs a:last-child {
  border-right: 0;
}

.classification-tabs a.is-active {
  background: var(--soft-blue);
  color: var(--fusion-blue);
}

.classification-tabs .icon {
  width: 18px;
  height: 18px;
}

.classification-card {
  overflow: hidden;
}

.classification-scroll {
  max-height: min(640px, calc(100vh - 320px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.classification-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.classification-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--white);
  box-shadow: 0 1px 0 var(--light-grey);
}

.classification-table th,
.classification-table td {
  height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--light-grey);
  text-align: left;
  vertical-align: middle;
}

.classification-table th {
  height: 56px;
  color: #596280;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.classification-table tbody tr:last-child td {
  border-bottom: 0;
}

.classification-table tbody tr.is-current {
  background: #edf4ff;
}

.classification-position {
  display: inline-grid;
  grid-template-columns: 34px minmax(54px, auto);
  gap: 12px;
  align-items: center;
}

.classification-position > strong {
  color: var(--text-dark);
  font-size: 1.08rem;
}

.classification-change {
  color: #7b8497;
  font-weight: 800;
  white-space: nowrap;
}

.classification-change.is-up {
  color: var(--green);
}

.classification-change.is-down {
  color: var(--error-red);
}

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

.classification-avatar-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.classification-avatar-button:focus-visible {
  outline: 3px solid rgba(5, 99, 193, 0.25);
  outline-offset: 3px;
}

.classification-avatar-button:hover .classification-avatar {
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.14);
}

.classification-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.classification-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.classification-participant > span:not(.classification-avatar) {
  min-width: 0;
  overflow: hidden;
  color: var(--text-dark);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classification-participant b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--nova-blue);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
}

.classification-avatar-modal {
  position: relative;
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 42px 30px 28px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(17, 28, 61, 0.26);
  text-align: center;
}

.classification-avatar-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.classification-avatar-modal-picture-wrap {
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
}

.classification-avatar-modal-picture {
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(17, 28, 61, 0.14);
}

.classification-avatar-modal-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.classification-avatar-modal-info {
  display: grid;
  gap: 16px;
}

.classification-avatar-modal-info h2 {
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.35rem;
}

.classification-avatar-modal-info dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
  margin: 0;
}

.classification-avatar-modal-info dl > div {
  padding: 14px 16px;
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  background: #f8fbff;
}

.classification-avatar-modal-info dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.classification-avatar-modal-info dd {
  margin: 0;
  color: var(--nova-blue);
  font-size: 1.28rem;
  font-weight: 900;
}

.classification-points {
  color: #0047df;
}

.classification-hit-rate {
  color: var(--green);
}

.classification-infinite-sentinel,
.classification-infinite-end {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--light-grey);
  color: #596280;
  font-weight: 700;
}

.classification-infinite-sentinel .spinner {
  width: 22px;
  height: 22px;
  border-width: 3px;
}

.community-stats {
  display: grid;
  gap: 22px;
}

.community-stats-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.community-stats-hero > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.community-stats-icon,
.community-card header > span,
.community-empty-card > .icon,
.community-ai-summary > span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff4d8;
  color: var(--warning);
}

.community-stats-icon .icon,
.community-card header .icon,
.community-empty-card > .icon,
.community-ai-summary .icon {
  width: 22px;
  height: 22px;
}

.community-stats-hero h3,
.community-section-heading h3,
.community-card h4,
.community-empty-card h3 {
  margin: 0;
  color: var(--text-dark);
}

.community-stats-hero p,
.community-section-heading p,
.community-card p,
.community-empty-card p {
  margin: 6px 0 0;
  color: #596280;
}

.community-stats-hero aside {
  min-width: 150px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: #fbfcff;
}

.community-stats-hero aside strong {
  color: var(--text-dark);
  font-size: 1.7rem;
}

.community-stats-hero aside span {
  color: #596280;
  font-weight: 700;
}

.community-section {
  display: grid;
  gap: 12px;
}

.community-section-heading {
  display: grid;
  gap: 2px;
}

.community-card-grid {
  display: grid;
  gap: 16px;
}

.community-card-grid--tournament {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.community-card-grid--matches {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.community-performance-grid,
.community-team-grid {
  display: grid;
  gap: 16px;
}

.community-performance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.community-card,
.community-empty-card,
.community-ai-card {
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.community-card {
  min-height: 100%;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.community-card header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-card h4 {
  display: grid;
  gap: 2px;
  font-size: 0.98rem;
}

.community-card h4 small {
  color: #596280;
  font-size: 0.78rem;
  font-weight: 700;
}

.community-story-card,
.community-user-card,
.community-kpi-card,
.community-team-list-card,
.community-outcome-card {
  align-content: start;
}

.community-story-main,
.community-kpi-card > strong {
  display: block;
  color: var(--text-dark);
  font-size: 1.55rem;
  line-height: 1.08;
}

.community-story-card p,
.community-kpi-card p {
  margin-top: 0;
}

.community-outcome-bars {
  display: grid;
  gap: 11px;
}

.community-outcome-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.8fr) minmax(90px, 1fr) 58px;
  gap: 10px;
  align-items: center;
}

.community-outcome-row span,
.community-outcome-row strong {
  color: #596280;
  font-size: 0.84rem;
  font-weight: 800;
}

.community-outcome-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf7;
}

.community-outcome-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fusion-blue);
}

.community-outcome-row.is-exact i {
  background: #16a34a;
}

.community-outcome-row.is-trend i {
  background: var(--warning);
}

.community-outcome-row.is-winner i {
  background: var(--fusion-blue);
}

.community-outcome-row.is-error i {
  background: #1d2b53;
}

.community-user-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-user-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
  font-weight: 900;
}

.community-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-user-highlight strong {
  color: var(--text-dark);
  font-size: 1.05rem;
}

.community-user-highlight p {
  margin-top: 3px;
  font-weight: 800;
}

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

.community-flag {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  font-size: 1.7rem;
}

.community-winner strong {
  color: var(--text-dark);
  font-size: 1.08rem;
}

.community-winner small {
  display: block;
  margin-top: 2px;
  color: #596280;
  font-weight: 700;
}

.community-winner b {
  color: var(--warning);
  font-size: 1.45rem;
}

.community-top-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--light-grey);
}

.community-top-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f8;
}

.community-top-list li:last-child {
  border-bottom: 0;
}

.community-top-list span,
.community-top-list strong {
  color: var(--text-dark);
  font-weight: 800;
}

.community-top-list em {
  min-width: 0;
  overflow: hidden;
  color: #323a55;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-match-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: var(--text-dark);
}

.community-match-mini strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-match-mini em {
  color: #8a93a8;
  font-style: normal;
  font-weight: 800;
}

.community-match-main,
.community-score-card > strong {
  display: block;
  color: var(--fusion-blue);
  font-size: 2.1rem;
  line-height: 1;
  text-align: center;
}

.community-match-card p,
.community-score-card p,
.community-score-card small {
  text-align: center;
}

.community-score-card small {
  color: #596280;
  font-weight: 700;
}

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

.community-distribution span {
  display: grid;
  gap: 3px;
  justify-items: center;
  padding: 10px 6px;
  border-radius: 8px;
  background: #f6f8fc;
}

.community-distribution strong {
  color: var(--warning);
  font-size: 1.1rem;
}

.community-distribution em {
  color: #596280;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.community-empty-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.community-ai-card {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) minmax(230px, 0.9fr) minmax(260px, 1.1fr);
  gap: 18px;
  padding: 18px;
}

.community-ai-summary {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  background: #f8f5ff;
  text-align: center;
}

.community-ai-summary strong {
  color: #7c3aed;
  font-size: 2rem;
}

.community-ai-summary b,
.community-ai-summary small {
  color: #596280;
}

.community-phase-bars {
  display: grid;
  align-content: center;
  gap: 12px;
}

.community-phase-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.75fr) minmax(120px, 1fr) 54px;
  gap: 10px;
  align-items: center;
}

.community-phase-row span,
.community-phase-row strong {
  color: #596280;
  font-size: 0.86rem;
  font-weight: 800;
}

.community-phase-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf7;
}

.community-phase-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, var(--fusion-blue));
}

.community-ai-performance {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e8def8;
  border-radius: 8px;
  background: #fbf8ff;
}

.community-ai-performance header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.community-ai-performance header > span {
  display: inline-flex;
  flex: 0 0 auto;
  color: #7c3aed;
}

.community-ai-performance h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.community-ai-performance p {
  margin: 4px 0 0;
  color: #596280;
  font-size: 0.84rem;
  line-height: 1.35;
}

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

.community-ai-origin-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4eaf5;
  border-radius: 8px;
  background: var(--white);
}

.community-ai-origin-card strong {
  color: #596280;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.community-ai-origin-card b {
  color: var(--primary-blue);
  font-size: 1.35rem;
}

.community-ai-origin-card.is-ai b {
  color: #7c3aed;
}

.community-ai-origin-card > span {
  color: #596280;
  font-size: 0.78rem;
}

.community-ai-origin-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.community-ai-origin-card small {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: #3c4865;
  font-size: 0.72rem;
  font-weight: 800;
}

.community-ai-origin-card.is-ai small {
  background: #f3e8ff;
  color: #6d28d9;
}

.community-ai-performance-note {
  padding-top: 2px;
  color: #596280;
  font-size: 0.8rem;
}

.comparison-view,
.comparison-grid {
  display: grid;
  gap: 18px;
}

.comparison-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: end;
  padding: 18px;
}

.comparison-selector h3 {
  margin: 0;
  color: var(--text-dark);
}

.comparison-selector p {
  margin: 6px 0 0;
  color: #596280;
}

.comparison-selector .field {
  margin: 0;
}

.comparison-user-combobox {
  align-self: stretch;
}

.comparison-combobox-button {
  min-height: 52px;
}

.comparison-selected-option {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-selected-option strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-combobox-menu {
  min-width: min(420px, calc(100vw - 48px));
}

.comparison-combobox-options {
  max-height: 280px;
}

.comparison-combobox-option {
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
}

.comparison-combobox-option > span:not(.comparison-option-avatar) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.comparison-combobox-option strong,
.comparison-combobox-option small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-combobox-option small {
  color: #6d7485;
  font-size: 0.78rem;
  font-weight: 700;
}

.comparison-option-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.comparison-option-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.comparison-head-card,
.comparison-phase-card,
.comparison-differences-card,
.comparison-tournament-card {
  padding: 18px;
}

.comparison-head-card,
.comparison-differences-card {
  grid-column: 1;
}

.comparison-phase-card,
.comparison-tournament-card {
  grid-column: 2;
}

.comparison-faceoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.comparison-player {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.comparison-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #dce8ff;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fusion-blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.comparison-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-player.is-current .comparison-avatar {
  border-color: var(--warning);
}

.comparison-player.is-compared .comparison-avatar {
  border-color: #8b5cf6;
}

.comparison-player strong {
  color: var(--text-dark);
  font-size: 1.04rem;
}

.comparison-player span,
.comparison-vs span,
.comparison-metrics span {
  color: #596280;
  font-weight: 700;
}

.comparison-vs {
  min-width: 92px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.comparison-vs strong {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f4f6fb;
  color: var(--text-dark);
}

.comparison-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
}

.comparison-metrics div {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px 10px;
  border-right: 1px solid var(--light-grey);
  text-align: center;
}

.comparison-metrics div:last-child {
  border-right: 0;
}

.comparison-metrics strong {
  color: var(--text-dark);
  font-size: 1.25rem;
}

.comparison-metrics small {
  color: #8a93a8;
  font-size: 0.72rem;
}

.comparison-phase-card header,
.comparison-differences-card header,
.comparison-tournament-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comparison-phase-card header .icon,
.comparison-differences-card header .icon,
.comparison-tournament-card header .icon {
  width: 22px;
  height: 22px;
  color: var(--fusion-blue);
}

.comparison-phase-card h3,
.comparison-differences-card h3,
.comparison-tournament-card h3 {
  margin: 0;
  color: var(--text-dark);
}

.comparison-differences-card h3 small,
.comparison-tournament-card h3 small {
  color: #596280;
  font-size: 0.82rem;
  font-weight: 700;
}

.comparison-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--light-grey);
  text-align: left;
}

.comparison-table th {
  color: #596280;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.comparison-table tr.is-total td {
  color: var(--text-dark);
  font-weight: 900;
}

.comparison-table .is-positive,
.comparison-diff.is-positive strong {
  color: var(--green);
}

.comparison-table .is-negative,
.comparison-diff.is-negative strong {
  color: var(--error-red);
}

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

.comparison-difference-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) minmax(90px, 0.4fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid #e6ebf4;
  border-radius: 8px;
  background: #fbfcff;
}

.comparison-match-title,
.comparison-prediction-box,
.comparison-diff {
  display: grid;
  align-content: center;
  gap: 4px;
}

.comparison-match-title strong,
.comparison-prediction-box strong {
  color: var(--text-dark);
}

.comparison-match-title span,
.comparison-prediction-box span,
.comparison-prediction-box small,
.comparison-diff span {
  color: #596280;
  font-size: 0.82rem;
  font-weight: 700;
}

.comparison-prediction-box {
  padding: 10px;
  border-radius: 8px;
  background: var(--white);
}

.comparison-prediction-box.actual {
  border-left: 3px solid var(--warning);
}

.comparison-prediction-box.compared {
  border-left: 3px solid #8b5cf6;
}

.comparison-diff {
  justify-items: center;
  text-align: center;
}

.comparison-show-all {
  width: 100%;
  margin-top: 12px;
}

.comparison-tournament-table {
  display: grid;
  border-top: 1px solid var(--light-grey);
}

.comparison-tournament-table > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--light-grey);
}

.comparison-tournament-head {
  color: #596280;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.comparison-tournament-table span {
  color: #596280;
  font-weight: 800;
}

.comparison-tournament-table strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-empty-inline {
  box-shadow: none;
}

@media (max-width: 1100px) {
  .community-card-grid--tournament,
  .community-card-grid--matches,
  .community-card-grid--pulse,
  .community-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-team-grid {
    grid-template-columns: 1fr;
  }

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

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

  .comparison-head-card,
  .comparison-phase-card,
  .comparison-differences-card,
  .comparison-tournament-card {
    grid-column: auto;
  }

  .comparison-selector {
    grid-template-columns: 1fr 1fr;
  }

  .comparison-selector > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .classification-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .classification-tabs a {
    padding: 0 12px;
  }

  .community-stats-hero,
  .community-ai-card {
    grid-template-columns: 1fr;
  }

  .community-stats-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .community-stats-hero aside {
    justify-items: start;
  }

  .community-card-grid--tournament,
  .community-card-grid--matches,
  .community-card-grid--pulse,
  .community-performance-grid,
  .community-team-grid {
    grid-template-columns: 1fr;
  }

  .community-outcome-row {
    grid-template-columns: minmax(80px, 0.8fr) minmax(80px, 1fr) 54px;
  }

  .comparison-selector,
  .comparison-faceoff,
  .comparison-difference-row {
    grid-template-columns: 1fr;
  }

  .comparison-faceoff {
    gap: 12px;
  }

  .comparison-vs {
    justify-self: center;
  }

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

  .comparison-metrics div:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .community-stats-hero,
  .community-card,
  .community-empty-card,
  .community-ai-card {
    padding: 14px;
  }

  .community-winner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .community-winner b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .community-ai-origin-grid {
    grid-template-columns: 1fr;
  }

  .community-match-mini {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .community-match-mini em {
    display: none;
  }

  .community-phase-row {
    grid-template-columns: 1fr 54px;
  }

  .community-phase-row div {
    grid-column: 1 / -1;
    order: 3;
  }

  .comparison-head-card,
  .comparison-phase-card,
  .comparison-differences-card,
  .comparison-tournament-card,
  .comparison-selector {
    padding: 14px;
  }

  .comparison-tabs a,
  .classification-tabs a {
    gap: 6px;
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .comparison-metrics {
    grid-template-columns: 1fr;
  }

  .comparison-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--light-grey);
  }

  .comparison-metrics div:last-child {
    border-bottom: 0;
  }

  .comparison-tournament-table > div {
    grid-template-columns: 1fr;
  }

  .comparison-tournament-head {
    display: none !important;
  }
}

.calendar-page {
  display: grid;
  gap: 22px;
}

.calendar-hero h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.55rem;
}

.calendar-hero p {
  margin: 10px 0 0;
  color: #596280;
}

.calendar-phase-card {
  overflow: hidden;
}

.calendar-phase-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--light-grey);
}

.calendar-phase-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--nova-blue);
  color: var(--white);
}

.calendar-phase-icon .icon {
  width: 25px;
  height: 25px;
}

.calendar-phase-header h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.18rem;
}

.calendar-phase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 10px;
  color: #596280;
  font-size: 0.92rem;
}

.calendar-match-list {
  display: grid;
}

.calendar-group-list {
  display: grid;
  gap: 14px;
  padding: 18px 22px 22px;
}

.calendar-group-section {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: var(--white);
}

.calendar-group-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--light-grey);
  background: #f8faff;
}

.calendar-group-header h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.02rem;
}

.calendar-group-header span {
  color: #596280;
  font-size: 0.86rem;
  font-weight: 800;
}

.calendar-match-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(180px, 1fr) minmax(120px, 0.55fr) minmax(180px, 1fr) minmax(140px, 0.7fr);
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--light-grey);
}

.calendar-match-row:last-child {
  border-bottom: 0;
}

.calendar-group-section .calendar-match-row:last-child {
  border-bottom: 0;
}

.calendar-match-date {
  display: grid;
  gap: 5px;
  padding-right: 18px;
  border-right: 1px solid var(--light-grey);
  color: #596280;
}

.calendar-match-date strong {
  color: var(--text-dark);
  font-size: 1rem;
}

.calendar-match-date span,
.calendar-match-date em {
  color: #34405f;
  font-style: normal;
  font-weight: 700;
}

.calendar-match-date small {
  color: #596280;
  line-height: 1.3;
}

.calendar-team-side {
  min-width: 0;
}

.calendar-team {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.calendar-team-side--visitor .calendar-team {
  grid-template-columns: minmax(0, 1fr) 36px;
}

.calendar-team-side--visitor .calendar-team span {
  grid-column: 2;
}

.calendar-team-side--visitor .calendar-team strong {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.calendar-team span {
  font-size: 1.42rem;
  line-height: 1;
}

.calendar-team strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-dark);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-result {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.calendar-result span {
  color: #596280;
  font-size: 0.78rem;
  font-weight: 700;
}

.calendar-result strong {
  min-width: 76px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid #d7deea;
  border-radius: 6px;
  background: #f6f8fb;
  color: var(--ink-blue);
  font-size: 0.94rem;
  font-weight: 900;
}

.calendar-result strong.has-result {
  border-color: rgba(0, 131, 0, 0.18);
  background: #eef8ef;
  color: var(--green);
}

.calendar-match-status {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.calendar-match-status strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #596280;
  font-size: 0.92rem;
}

.calendar-match-status span {
  color: #596280;
  font-size: 0.84rem;
}

.calendar-match-status.is-pending strong {
  color: #a66d00;
}

.calendar-match-status.is-finished strong {
  color: var(--green);
}

.calendar-match-status.is-playing strong {
  color: var(--fusion-blue);
}

.calendar-match-status.is-locked strong {
  color: #6d7485;
}

.how-page {
  display: grid;
  gap: 18px;
}

.how-hero h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.55rem;
}

.how-hero p {
  margin: 0;
  color: #596280;
}

.how-section {
  padding: 24px 28px;
}

.how-section h2 {
  margin: 0;
  color: #0047df;
  font-size: 1.28rem;
}

.how-section > p {
  margin: 12px 0 0;
  color: #596280;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.how-step {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.how-step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: #0047df;
  font-weight: 900;
}

.how-step-icon,
.how-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: #0047df;
}

.how-step-icon .icon,
.how-icon .icon {
  width: 28px;
  height: 28px;
}

.how-step h3,
.how-type-card h3,
.how-ai-feature h3,
.how-ranking-grid h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
}

.how-step p,
.how-type-card p,
.how-ai-feature p,
.how-ranking-grid p,
.how-ranking-grid li {
  margin: 0;
  color: #596280;
  line-height: 1.45;
}

.how-step-arrow {
  display: grid;
  place-items: center;
  min-height: 76px;
  color: #9aa2b3;
}

.how-step-arrow .icon {
  width: 22px;
  height: 22px;
}

.how-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.how-type-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
}

.how-icon--green {
  background: var(--green-bg);
  color: var(--green);
}

.how-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.how-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--soft-blue);
  color: #0047df;
  font-size: 0.78rem;
  font-weight: 800;
}

.how-tags--green span {
  background: var(--green-bg);
  color: var(--green);
}

.how-scoring-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 28px;
  margin-top: 18px;
}

.how-match-points,
.how-points-side {
  min-width: 0;
}

.how-match-points h3,
.how-points-side h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
}

.how-points-side h3 span {
  color: #596280;
  font-size: 0.88rem;
  font-weight: 400;
}

.how-match-points > p,
.how-points-side > p {
  margin: 8px 0 0;
  color: #596280;
}

.how-rule-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.how-rule {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.how-rule-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef0f4;
  color: #596070;
}

.how-rule-icon.state-finished {
  background: var(--green-bg);
  color: var(--green);
}

.how-rule-icon.state-pending {
  background: #fff4d7;
  color: #a66d00;
}

.how-rule-icon.state-ready {
  background: var(--green-bg);
  color: var(--green);
}

.how-rule-icon.state-playing {
  background: var(--soft-blue);
  color: var(--nova-blue);
}

.how-rule-icon .icon {
  width: 22px;
  height: 22px;
}

.how-rule h4 {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.how-rule p {
  margin: 5px 0 0;
  color: #596280;
  line-height: 1.4;
}

.how-example {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #f9fbfe;
}

.how-example h4,
.how-example p {
  margin: 0;
}

.how-example h4 {
  color: var(--ink-blue);
}

.how-example p {
  color: #596280;
  font-size: 0.85rem;
}

.how-example strong {
  color: var(--text-dark);
  font-size: 1.1rem;
}

.how-example div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.how-example div span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 6px;
  background: #eef0f4;
  color: var(--ink-blue);
  font-weight: 800;
}

.how-example div span.is-exacto {
  background: var(--green-bg);
  color: var(--green);
}

.how-example div span.is-tendencia {
  background: #fff4d7;
  color: #a66d00;
}

.how-example div span.is-ganador {
  background: var(--soft-blue);
  color: var(--nova-blue);
}

.how-example div b {
  color: #596280;
  font-size: 0.85rem;
}

.how-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid #bcd2ff;
  border-radius: 6px;
  background: var(--soft-blue);
  color: #0047df;
  font-size: 0.86rem;
  font-weight: 700;
}

.how-note .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.how-table-wrap {
  overflow-x: auto;
  margin: 14px 0 22px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
}

.how-points-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
}

.how-points-table th,
.how-points-table td {
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--light-grey);
  text-align: left;
}

.how-points-table th {
  background: var(--nova-blue);
  color: var(--white);
  font-size: 0.82rem;
}

.how-points-table th:not(:first-child),
.how-points-table td:not(:first-child) {
  text-align: center;
}

.how-points-table tr:last-child td {
  border-bottom: 0;
}

.how-tournament-points {
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.how-tournament-point {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 8px;
  border-right: 1px solid var(--light-grey);
  text-align: center;
}

.how-tournament-point:last-child {
  border-right: 0;
}

.how-tournament-point span {
  color: #d99500;
}

.how-tournament-point .icon {
  width: 26px;
  height: 26px;
}

.how-tournament-point .award-icon {
  width: 34px;
  height: 34px;
}

.how-tournament-point strong {
  color: var(--text-dark);
  font-size: 0.8rem;
  line-height: 1.2;
}

.how-tournament-point b {
  color: #0047df;
  font-size: 1rem;
}

.how-max-points {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--ink-blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.how-max-points .icon {
  width: 18px;
  height: 18px;
  color: var(--nova-blue);
}

.how-state-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.how-state-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-right: 12px;
  border-right: 1px solid var(--light-grey);
}

.how-state-item:last-child {
  border-right: 0;
}

.how-state-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: var(--white);
  color: #b8bfcc;
}

.how-state-dot.state-pending {
  color: var(--rating-yellow);
}

.how-state-dot.state-ready {
  background: var(--green-bg);
  border-color: var(--green-bg);
  color: var(--green);
}

.how-state-dot.state-playing {
  color: var(--fusion-blue);
}

.how-state-dot.state-finished {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.how-state-dot.state-ready::before,
.how-state-dot.state-finished::before {
  content: "✓";
  font-weight: 900;
}

.how-state-item h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.how-state-item p {
  margin: 7px 0 0;
  color: #596280;
  font-size: 0.84rem;
  line-height: 1.42;
}

.how-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.how-ranking-grid article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-right: 22px;
  border-right: 1px solid var(--light-grey);
}

.how-ranking-grid article:last-child {
  border-right: 0;
}

.how-ranking-grid ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #596280;
}

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

.how-ai-feature {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.how-ai-feature .icon {
  width: 24px;
  height: 24px;
  color: #7c3aed;
}

.how-faq {
  padding-bottom: 18px;
}

.how-faq-item {
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  background: var(--white);
}

.how-faq-item + .how-faq-item {
  margin-top: 8px;
}

.how-faq-item summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--ink-blue);
  font-weight: 800;
  cursor: pointer;
}

.how-faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: #596280;
  line-height: 1.45;
}

.admin-page {
  display: grid;
  gap: 22px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-hero h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.55rem;
}

.admin-hero p {
  margin: 10px 0 0;
  color: #596280;
}

.admin-recalculate {
  min-width: 188px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 16px;
}

.admin-recalculate .icon {
  width: 18px;
  height: 18px;
}

.admin-tabs {
  display: flex;
  gap: 36px;
  min-height: 46px;
  align-items: end;
  border-bottom: 1px solid var(--light-grey);
  overflow-x: auto;
}

.admin-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px 14px;
  border-bottom: 3px solid transparent;
  color: #596280;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.admin-tab.is-active {
  border-bottom-color: #0047ef;
  color: #0047df;
}

.admin-phases-card {
  overflow: hidden;
}

.admin-inline-alert {
  padding: 0 28px 18px;
}

.admin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--light-grey);
}

.admin-phases-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.admin-phases-table th,
.admin-phases-table td {
  height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid var(--light-grey);
  text-align: left;
  vertical-align: middle;
}

.admin-phases-table th {
  height: 52px;
  color: #596280;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-phases-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-phase-name {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-phase-name > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--nova-blue);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-phase-name strong {
  display: block;
  color: var(--text-dark);
  font-weight: 800;
}

.admin-phase-name small,
.admin-first-match small {
  display: block;
  margin-top: 5px;
  color: #596280;
}

.admin-first-match strong {
  color: var(--ink-blue);
  font-weight: 800;
}

.admin-action-button {
  min-width: 156px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 14px;
}

.admin-action-button .icon {
  width: 18px;
  height: 18px;
}

.admin-action-stack {
  display: grid;
  gap: 8px;
  max-width: 260px;
}

.admin-action-stack small {
  color: #8a5f00;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-action-button.button-primary {
  background: var(--formular-yellow);
  color: #181818;
  box-shadow: 0 7px 16px rgba(246, 184, 0, 0.22);
}

.admin-action-button.button-primary:hover:not(:disabled) {
  background: #e9aa00;
}

.admin-action-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--soft-blue);
  color: var(--nova-blue);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-action-note--done {
  background: var(--green-bg);
  color: var(--green);
}

.admin-action-note .icon {
  width: 18px;
  height: 18px;
}

.admin-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 28px 22px;
  padding: 14px 16px;
  border: 1px solid #bcd2ff;
  border-radius: 6px;
  background: var(--soft-blue);
  color: #0047df;
}

.admin-note .icon {
  width: 20px;
  height: 20px;
}

.admin-note p {
  margin: 0;
  color: #24406e;
  line-height: 1.45;
}

.admin-note strong {
  color: #0047df;
}

.admin-placeholder {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 24px 28px;
}

.admin-placeholder > .icon {
  width: 34px;
  height: 34px;
  color: var(--fusion-blue);
}

.admin-placeholder h2 {
  margin: 0;
  color: var(--ink-blue);
}

.admin-placeholder p {
  margin: 6px 0 0;
  color: #596280;
}

.admin-results-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-phase-selector {
  overflow: hidden;
}

.admin-phase-selector h2 {
  margin: 0;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--light-grey);
  color: var(--ink-blue);
  font-size: 1rem;
}

.admin-phase-selector-item {
  min-height: 66px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #eef1f6;
  color: var(--ink-blue);
  text-decoration: none;
}

.admin-phase-selector-item:hover,
.admin-phase-selector-item.is-active {
  background: var(--soft-blue);
}

.admin-phase-selector-item strong,
.admin-phase-selector-item em {
  display: block;
}

.admin-phase-selector-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.admin-phase-selector-item em {
  margin-top: 4px;
  color: #596280;
  font-size: 0.82rem;
  font-style: normal;
}

.admin-phase-selector-item .icon {
  width: 17px;
  height: 17px;
  color: #596280;
}

.admin-selector-badge {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--nova-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-selector-badge.state-finished {
  background: var(--green-bg);
  color: var(--green);
}

.admin-selector-badge.state-playing {
  background: #eaf2ff;
  color: var(--fusion-blue);
}

.admin-selector-badge.state-pending {
  background: #fff4d7;
  color: #a66d00;
}

.admin-selector-badge.state-upcoming {
  background: #f0f2f5;
  color: #6d7485;
}

.admin-results-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-subtabs {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
}

.admin-subtab {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596280;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-subtab.is-active {
  background: var(--nova-blue);
  color: var(--white);
}

.admin-tournament-card,
.admin-users-card {
  overflow: hidden;
}

.admin-results-card,
.admin-crosses-card {
  overflow: visible;
}

.admin-results-form {
  display: grid;
  gap: 18px;
  padding: 0 22px 22px;
}

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

.admin-result-match {
  grid-template-columns: minmax(92px, 0.58fr) minmax(160px, 1fr) minmax(180px, 0.9fr) minmax(160px, 1fr) minmax(132px, 0.68fr);
}

.admin-result-match .match-date small {
  color: #596280;
  font-size: 0.78rem;
  font-weight: 600;
}

.match-actions.admin-results-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.72fr);
  align-items: start;
  gap: 18px;
}

.match-actions.admin-results-actions p {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0;
}

.admin-results-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.admin-results-action-buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 0 18px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.match-actions.admin-results-actions p small {
  grid-column: 2;
  display: block;
  margin-top: 4px;
  color: #a66d00;
  font-weight: 800;
}

.admin-warning {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  margin: 0 22px 18px;
  padding: 12px 14px;
  border: 1px solid #ffd36b;
  border-radius: 6px;
  background: #fff8e6;
  color: #a66d00;
}

.admin-warning p {
  margin: 0;
  line-height: 1.4;
}

.admin-warning .icon {
  width: 20px;
  height: 20px;
}

.admin-crosses-form {
  display: grid;
  gap: 16px;
  padding: 0 22px 18px;
}

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

.admin-cross-grid--official {
  align-items: start;
}

.admin-cross-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
}

.admin-cross-row-header,
.admin-cross-footer,
.admin-code-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-cross-row-header strong {
  color: var(--ink-blue);
}

.admin-cross-row--official .admin-cross-row-header {
  align-items: start;
}

.admin-cross-row--official .admin-cross-row-header div {
  display: grid;
  gap: 4px;
}

.admin-cross-row--official .admin-cross-row-header span,
.admin-cross-row--official .admin-cross-row-header small,
.admin-cross-stadium,
.admin-select-field small {
  color: #596280;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-cross-stadium {
  margin: -4px 0 0;
}

.admin-icon-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--error-red);
  cursor: pointer;
}

.admin-icon-action:hover {
  border-color: rgba(200, 45, 45, 0.28);
  background: #fff5f5;
}

.admin-icon-action .icon {
  width: 18px;
  height: 18px;
}

.admin-cross-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.admin-cross-grid--readonly {
  grid-template-columns: 1fr;
}

.admin-cross-row--readonly {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-cross-readonly-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  background: #f3f6fb;
}

.admin-cross-readonly-teams > span {
  display: grid;
  place-items: center;
  color: var(--ink-blue);
  font-weight: 900;
}

.admin-cross-readonly-teams > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #596280;
  font-weight: 800;
}

.admin-cross-teams > span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f3f6fb;
  color: var(--ink-blue);
  font-weight: 900;
}

.admin-select-field,
.admin-cross-meta label,
.admin-user-form label {
  display: grid;
  gap: 6px;
}

.admin-select-field select,
.admin-cross-meta input,
.admin-user-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-blue);
  outline: 0;
}

.admin-select-field select:focus,
.admin-cross-meta input:focus,
.admin-user-form input:focus {
  border-color: var(--fusion-blue);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.12);
}

.admin-select-field.has-error select,
.admin-user-form .has-error input {
  border-color: rgba(200, 45, 45, 0.66);
}

.admin-select-field em,
.admin-user-form em {
  color: var(--error-red);
  font-size: 0.78rem;
  font-style: normal;
}

.admin-cross-meta {
  display: grid;
  grid-template-columns: 130px 110px minmax(0, 1fr);
  gap: 10px;
}

.admin-select-field > span,
.admin-cross-meta span,
.admin-user-form span {
  color: #596280;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-select-field select:disabled {
  background: #f3f6fb;
  color: #7b849a;
  cursor: not-allowed;
}

.admin-cross-footer .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 156px;
  margin: 0;
  padding: 0 18px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.admin-cross-footer--official {
  justify-content: flex-end;
}

.admin-cross-footer--official .admin-cross-limit-note {
  margin-right: auto;
}

.admin-cross-limit-note {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  background: #f3f6fb;
  color: #596280;
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-cross-limit-message {
  margin: -2px 0 0;
}

.admin-note--compact {
  grid-template-columns: 20px minmax(0, 1fr);
  margin: 16px;
  padding: 12px;
}

.admin-tournament-header {
  align-items: start;
}

.admin-tournament-header .admin-note {
  width: min(390px, 100%);
  margin: 0;
}

.admin-tournament-form {
  display: grid;
  gap: 22px;
  padding: 0 22px 22px;
}

.admin-tournament-section {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--light-grey);
}

.admin-tournament-section h3 {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.05rem;
}

.admin-tournament-section h3 .icon {
  width: 22px;
  height: 22px;
}

.admin-tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.admin-users-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) auto;
  align-items: center;
}

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

.admin-users-header-actions .button {
  min-height: 44px;
  margin: 0;
  white-space: nowrap;
}

.admin-users-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-users-search input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
}

.admin-users-search .button {
  margin: 0;
}

.admin-user-form {
  display: grid;
  gap: 16px;
  margin: 0 22px 22px;
  padding: 18px;
  border: 1px solid #bcd2ff;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-user-form h3 {
  margin: 0;
  color: var(--ink-blue);
}

.admin-user-form p {
  margin: 6px 0 0;
  color: #596280;
}

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

.admin-checkbox-field {
  align-content: center;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
}

.admin-checkbox-field input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.admin-user-form-actions {
  padding: 0;
  border-top: 0;
}

.admin-users-table .ranking-avatar {
  width: 38px;
  height: 38px;
}

.admin-user-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-user-cell strong,
.admin-user-cell small {
  display: block;
}

.admin-user-cell small {
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--soft-blue);
  color: #0047df;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-user-points {
  color: var(--nova-blue);
}

.admin-user-actions {
  display: flex;
  gap: 10px;
}

.admin-user-actions .button {
  min-width: 104px;
  min-height: 38px;
  margin: 0;
}

.admin-users-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--light-grey);
}

.admin-users-pagination p {
  margin: 0;
  color: #596280;
}

.admin-users-pagination > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-users-pagination .button {
  min-width: 92px;
  margin: 0;
}

.admin-code-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 440px) minmax(220px, 0.7fr);
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
}

.admin-code-card h2 {
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.18rem;
}

.admin-code-card p {
  margin: 8px 0 0;
  color: #596280;
  line-height: 1.45;
}

.admin-code-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #c8d1e2;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-code-box span {
  grid-column: 1 / -1;
  color: #596280;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-code-box strong {
  color: var(--nova-blue);
  font-size: 1.55rem;
  letter-spacing: 0;
}

.admin-code-box .button,
.admin-code-actions .button {
  margin: 0;
}

.admin-code-actions {
  align-items: stretch;
  flex-direction: column;
}

.admin-code-actions p {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #ffd36b;
  border-radius: 6px;
  background: #fff8e6;
  color: #8a5b00;
  font-size: 0.84rem;
}

.admin-news-card {
  overflow: hidden;
}

.admin-news-form {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
  border-bottom: 1px solid var(--light-grey);
}

.admin-news-form label {
  display: grid;
  gap: 7px;
}

.admin-news-form label > span {
  color: #596280;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-news-form input,
.admin-news-form select,
.admin-news-form textarea {
  width: 100%;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-blue);
  font: inherit;
  outline: 0;
}

.admin-news-form input,
.admin-news-form select {
  min-height: 44px;
  padding: 0 14px;
}

.admin-news-form textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

.admin-news-form input:focus,
.admin-news-form select:focus,
.admin-news-form textarea:focus {
  border-color: var(--fusion-blue);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.12);
}

.admin-news-form .has-error input,
.admin-news-form .has-error select,
.admin-news-form .has-error textarea {
  border-color: rgba(200, 45, 45, 0.66);
}

.admin-news-form em {
  color: var(--error-red);
  font-size: 0.8rem;
  font-style: normal;
}

.admin-news-form small {
  color: #7b8497;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.admin-news-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.admin-news-options > label,
.admin-news-options fieldset {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.admin-news-options fieldset {
  flex-wrap: wrap;
  border: 0;
  padding: 0;
}

.admin-news-options legend {
  color: #596280;
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-news-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.admin-news-image-preview img {
  width: min(220px, 100%);
  border-radius: 7px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.admin-news-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.admin-news-actions p {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #596280;
}

.admin-news-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-news-action-buttons .button {
  min-width: 160px;
  margin: 0;
}

.admin-news-list {
  display: grid;
}

.admin-news-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 22px;
  border-bottom: 1px solid var(--light-grey);
}

.admin-news-item:last-child {
  border-bottom: 0;
}

.admin-news-item strong,
.admin-news-item time,
.admin-news-item p {
  display: block;
}

.admin-news-item strong {
  color: var(--ink-blue);
  font-size: 1rem;
}

.admin-news-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}

.admin-news-status,
.admin-news-featured {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 900;
}

.admin-news-status.is-published {
  background: #e4f6e9;
  color: #087c2b;
}

.admin-news-status.is-draft {
  background: #eef2f8;
  color: #596280;
}

.admin-news-featured {
  background: #eef5ff;
  color: var(--fusion-blue);
}

.admin-news-item time {
  margin-top: 4px;
  color: #7b8497;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-news-item p {
  margin: 8px 0 0;
  color: #596280;
  line-height: 1.45;
  white-space: pre-line;
}

.admin-news-item small {
  display: block;
  margin-top: 7px;
  color: #7b8497;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-news-item-actions {
  display: flex;
  gap: 8px;
}

.admin-news-item .button {
  min-width: 106px;
  margin: 0;
}

.button-danger {
  min-height: 44px;
  border: 1px solid rgba(200, 45, 45, 0.4);
  background: var(--white);
  color: var(--error-red);
  box-shadow: none;
}

.button-danger:hover:not(:disabled) {
  background: #fff5f5;
}

.admin-danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border-color: rgba(200, 45, 45, 0.28);
  background: #fffafa;
}

.admin-danger-card > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-danger-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffecec;
  color: var(--error-red);
}

.admin-danger-icon .icon {
  width: 22px;
  height: 22px;
}

.admin-danger-card h2 {
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.12rem;
}

.admin-danger-card p {
  margin: 7px 0 0;
  color: #596280;
  line-height: 1.45;
}

.admin-danger-button {
  min-width: 188px;
  margin: 0;
}

.admin-restore-modal {
  width: min(100%, 620px);
}

.admin-restore-form {
  display: grid;
  gap: 18px;
  padding: 0 32px 30px;
}

.admin-restore-warning {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(200, 45, 45, 0.32);
  border-radius: 8px;
  background: #fff5f5;
}

.admin-restore-warning > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffe1e1;
  color: var(--error-red);
}

.admin-restore-warning h3 {
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.02rem;
}

.admin-restore-warning p {
  margin: 7px 0 0;
  color: #596280;
  line-height: 1.45;
}

.admin-restore-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #3d4867;
  line-height: 1.45;
}

.admin-restore-confirm {
  display: grid;
  gap: 8px;
}

.admin-restore-confirm span {
  color: #596280;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-restore-confirm input {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
  color: var(--ink-blue);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  outline: 0;
}

.admin-restore-confirm input:focus {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3px rgba(200, 45, 45, 0.12);
}

.admin-restore-actions .button-danger {
  min-width: 184px;
  margin: 0;
  background: var(--error-red);
  color: var(--white);
}

.admin-restore-actions .button-danger:hover:not(:disabled) {
  background: #a72727;
}

.predictions-page {
  display: grid;
  gap: 22px;
}

.prediction-mode-switcher {
  min-width: 0;
}

.prediction-mode-tabs {
  display: flex;
  gap: 36px;
  min-height: 42px;
  align-items: end;
  border-bottom: 1px solid var(--light-grey);
}

.prediction-mode-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px 13px;
  border-bottom: 3px solid transparent;
  color: #596280;
  text-decoration: none;
  font-weight: 700;
}

.prediction-mode-tab.is-active {
  border-bottom-color: #0047ef;
  color: #0047df;
}

.prediction-mode-select {
  display: none;
}

.prediction-mode-select select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid #c8d1e2;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-blue);
  font-weight: 800;
  outline: 0;
}

.prediction-mode-select select:focus {
  border-color: var(--fusion-blue);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.12);
}

.predictions-banner {
  margin-top: 6px;
}

.phase-tabs-card {
  overflow: hidden;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.04);
}

.phase-tabs-scroll {
  display: grid;
  grid-auto-columns: minmax(142px, 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 10px;
}

.phase-select-mobile {
  display: none;
}

.phase-tab {
  position: relative;
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-right: 1px solid var(--light-grey);
  border-radius: 7px;
  color: var(--ink-blue);
  text-align: center;
  text-decoration: none;
}

.phase-tab:last-child {
  border-right: 0;
}

.phase-tab:hover,
.phase-tab.is-active {
  background: #fff9ea;
}

.phase-tab.is-active {
  box-shadow: inset 0 0 0 1px var(--formular-yellow);
}

.phase-tab span {
  font-weight: 800;
}

.phase-tab strong {
  color: #596280;
  font-size: 0.84rem;
}

.phase-select-mobile summary {
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 26px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  color: var(--ink-blue);
  cursor: pointer;
  list-style: none;
}

.phase-select-mobile summary::-webkit-details-marker {
  display: none;
}

.phase-select-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink-blue);
}

.phase-select-mobile summary strong,
.phase-select-option strong {
  display: block;
  color: var(--ink-blue);
  font-size: 1rem;
}

.phase-select-mobile summary em,
.phase-select-option em {
  display: block;
  margin-top: 4px;
  color: #596280;
  font-size: 0.9rem;
  font-style: normal;
}

.phase-select-chevron {
  display: grid;
  place-items: center;
  transition: transform 160ms ease;
}

.phase-select-mobile[open] .phase-select-chevron {
  transform: rotate(180deg);
}

.phase-select-options {
  display: grid;
  border-top: 1px solid var(--light-grey);
}

.phase-select-option {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  color: var(--ink-blue);
  text-decoration: none;
}

.phase-select-option + .phase-select-option {
  border-top: 1px solid #eef1f6;
}

.phase-select-option:hover,
.phase-select-option.is-active {
  background: var(--soft-blue);
}

.prediction-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--light-grey);
  color: #596280;
  font-size: 0.88rem;
}

.prediction-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.prediction-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
}

.prediction-legend-dot.state-pending {
  color: var(--rating-yellow);
}

.prediction-legend-dot.state-ready {
  color: var(--green);
}

.prediction-legend-dot.state-playing {
  color: var(--fusion-blue);
}

.prediction-legend-dot.state-finished {
  color: var(--green);
}

.prediction-legend-dot.state-upcoming {
  color: #9aa2b3;
}

.match-phase-card {
  overflow: hidden;
}

.match-phase-header {
  padding: 24px 28px 12px;
}

.match-phase-header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.match-phase-header h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.match-phase-header p {
  margin: 0;
  color: #596280;
}

.match-predictions-form {
  display: grid;
  gap: 18px;
  padding: 0 28px 26px;
}

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

.match-card {
  display: grid;
  grid-template-columns: minmax(86px, 0.52fr) minmax(180px, 1.05fr) minmax(210px, 1.05fr) minmax(180px, 1.05fr) minmax(130px, 0.65fr);
  gap: 16px;
  align-items: center;
  min-height: 108px;
  padding: 15px 18px;
  border: 1px solid #dfe4ee;
  border-radius: 6px;
  background: var(--white);
}

.match-date {
  display: grid;
  gap: 8px;
  padding-right: 16px;
  border-right: 1px solid var(--light-grey);
  color: #4b5570;
}

.match-date strong,
.match-date span {
  font-weight: 700;
}

.match-team-side {
  min-width: 0;
}

.match-team {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.match-team-side--visitor .match-team {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.match-team-side--visitor .match-team span {
  grid-column: 2;
}

.match-team-side--visitor .match-team strong {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.match-team span {
  font-size: 1.35rem;
  line-height: 1;
}

.match-team strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-scoreboard,
.match-status {
  display: grid;
  gap: 8px;
}

.match-scoreboard {
  justify-items: center;
  gap: 10px;
}

.score-row {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
}

.score-row > span {
  color: #596280;
  font-size: 0.82rem;
  font-weight: 700;
}

.score-row > small {
  color: #596280;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.score-static {
  min-width: 142px;
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr 16px 1fr;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #d7deea;
  border-radius: 6px;
  background: #f9fbfe;
  color: var(--ink-blue);
  font-weight: 800;
  text-align: center;
}

.score-row-real.has-result .score-static {
  border-color: rgba(0, 131, 0, 0.18);
  background: #eef8ef;
}

.score-static b {
  color: var(--text-dark);
}

.score-inputs {
  display: grid;
  grid-template-columns: minmax(54px, 1fr) 16px minmax(54px, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 142px;
}

.score-inputs > strong {
  align-self: center;
  color: var(--text-dark);
  text-align: center;
}

.score-field {
  display: grid;
  gap: 4px;
}

.score-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-blue);
  font-weight: 800;
  text-align: center;
  outline: 0;
}

.score-field input:focus {
  border-color: var(--fusion-blue);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.12);
}

.score-field input:disabled {
  background: #f6f8fb;
  color: #6d7485;
}

.score-field.has-error input {
  border-color: rgba(200, 45, 45, 0.66);
}

.score-field em {
  color: var(--error-red);
  font-size: 0.74rem;
  font-style: normal;
  text-align: center;
}

.match-status {
  justify-items: start;
}

.match-status strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #596280;
  font-size: 0.92rem;
}

.match-status span {
  color: #596280;
  font-size: 0.84rem;
}

.match-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.match-status.is-pending strong {
  color: #a66d00;
}

.match-status.is-saved strong,
.match-status.is-finished strong {
  color: var(--green);
}

.match-status.is-playing strong {
  color: var(--fusion-blue);
}

.match-status.is-locked strong {
  color: #6d7485;
}

.match-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 6px;
}

.match-actions p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #596280;
  font-size: 0.9rem;
}

.match-actions p .icon {
  width: 18px;
  height: 18px;
}

.match-actions .button-primary {
  min-width: 210px;
  margin-top: 0;
  padding: 0 22px;
}

.match-actions--note {
  padding: 0 28px 24px;
}

.match-progress-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 22px;
  align-items: center;
  padding: 22px 28px;
}

.match-progress-card h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.3rem;
}

.match-progress-card p {
  margin: 7px 0 0;
  color: #596280;
}

.match-progress-summary {
  display: grid;
  gap: 8px;
}

.match-progress-summary strong {
  color: var(--ink-blue);
}

.match-progress-summary span {
  color: var(--fusion-blue);
  font-weight: 800;
}

.match-progress-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
}

.match-progress-metrics em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #34405f;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
}

.match-progress-metrics i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #9aa3b4;
}

.match-progress-metrics i.is-success {
  background: #008a22;
}

.match-progress-metrics i.is-pending {
  background: #ffb000;
}

.match-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf3;
}

.match-progress-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--fusion-blue);
}

.match-predictions-groups {
  display: grid;
  gap: 14px;
  padding: 0 28px 18px;
}

.prediction-group {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: var(--white);
}

.prediction-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.prediction-group summary::-webkit-details-marker {
  display: none;
}

.prediction-group summary strong {
  display: block;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.prediction-group summary em {
  display: block;
  margin-top: 3px;
  color: #596280;
  font-size: 0.88rem;
  font-style: normal;
}

.prediction-group summary .icon {
  transition: transform 160ms ease;
}

.prediction-group[open] summary .icon {
  transform: rotate(180deg);
}

.prediction-match-list {
  display: grid;
  border-top: 1px solid #eef1f6;
}

.prediction-groups-accordion {
  display: grid;
  gap: 10px;
  padding: 0 28px 18px;
}

.prediction-group-section {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: var(--white);
}

.prediction-group-section[open] {
  border-color: #c8d4ea;
  box-shadow: 0 12px 30px rgba(17, 28, 61, 0.07);
}

.prediction-group-summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
}

.prediction-group-summary::-webkit-details-marker {
  display: none;
}

.prediction-group-section[open] .prediction-group-summary {
  border-bottom: 1px solid #e7ebf3;
  background: var(--white);
  color: var(--text-dark);
}

.prediction-group-summary strong {
  display: block;
  color: var(--text-dark);
  font-size: 1.12rem;
}

.prediction-group-section[open] .prediction-group-summary strong {
  color: var(--text-dark);
}

.prediction-group-summary em {
  display: block;
  margin-top: 3px;
  color: #596280;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
}

.prediction-group-section[open] .prediction-group-summary em {
  color: #596280;
}

.prediction-group-summary b {
  min-width: 112px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3d6;
  color: #9b6500;
  font-size: 0.82rem;
  text-align: center;
}

.prediction-group-summary b.is-complete {
  background: #e5f6e9;
  color: #008a22;
}

.prediction-group-section[open] .prediction-group-summary b {
  background: #fff3d6;
  color: #9b6500;
}

.prediction-group-section[open] .prediction-group-summary b.is-complete {
  background: #e5f6e9;
  color: #008a22;
}

.prediction-group-summary .icon {
  transition: transform 160ms ease;
}

.prediction-group-section[open] .prediction-group-summary .icon {
  transform: rotate(180deg);
}

.prediction-group-content {
  background: var(--white);
}

.prediction-match-card {
  display: grid;
  grid-template-columns: minmax(78px, 0.45fr) minmax(170px, 1fr) minmax(150px, 0.7fr) minmax(170px, 1fr) minmax(190px, 0.9fr);
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 14px 18px;
}

.prediction-match-card + .prediction-match-card {
  border-top: 1px solid #eef1f6;
}

.prediction-match-meta {
  display: grid;
  gap: 6px;
  padding-right: 14px;
  border-right: 1px solid var(--light-grey);
  color: #4b5570;
}

.prediction-match-meta strong,
.prediction-match-meta span {
  font-weight: 800;
}

.prediction-match-team {
  min-width: 0;
}

.prediction-match-team--visitor .match-team {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.prediction-match-team--visitor .match-team span {
  grid-column: 2;
}

.prediction-match-team--visitor .match-team strong {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.prediction-score {
  min-height: 50px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid #c8d1e2;
  border-radius: 8px;
  background: #f9fbfe;
  color: var(--ink-blue);
  text-align: center;
  text-decoration: none;
}

button.prediction-score {
  width: 100%;
  cursor: pointer;
}

button.prediction-score:hover {
  border-color: var(--fusion-blue);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.1);
}

.prediction-score strong {
  font-size: 1.08rem;
}

.prediction-score span {
  color: #596280;
  font-size: 0.78rem;
  font-weight: 700;
}

.prediction-score.is-empty strong {
  color: #7b8498;
  font-size: 0.9rem;
}

.prediction-score.has-prediction {
  border-color: rgba(5, 99, 193, 0.22);
  background: var(--soft-blue);
}

.prediction-match-outcome {
  display: grid;
  gap: 5px;
  justify-items: start;
  color: #596280;
}

.prediction-match-outcome strong {
  color: var(--ink-blue);
  font-size: 0.9rem;
}

.prediction-match-outcome span {
  font-size: 0.9rem;
  font-weight: 800;
}

.prediction-match-outcome.is-exacto span,
.prediction-match-outcome.is-tendencia span,
.prediction-match-outcome.is-ganador span,
.prediction-match-outcome.is-ready span,
.prediction-match-outcome.is-finished span {
  color: var(--green);
}

.prediction-match-outcome.is-pending span {
  color: #a66d00;
}

.prediction-match-outcome.is-error span {
  color: var(--error-red);
}

.prediction-match-outcome.is-playing span,
.prediction-match-outcome.is-upcoming span {
  color: #596280;
}

.prediction-match-outcome.is-unresolved strong {
  color: #596280;
  font-size: 1rem;
}

.prediction-match-outcome.is-unresolved span {
  color: #596280;
  font-weight: 700;
}

.prediction-modal {
  position: relative;
  width: min(100%, 760px);
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(17, 28, 61, 0.25);
}

.prediction-modal-header {
  display: grid;
  gap: 6px;
  padding-right: 46px;
}

.prediction-modal-header span {
  color: var(--fusion-blue);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.prediction-modal-header h2 {
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.45rem;
}

.prediction-modal-header p {
  margin: 0;
  color: #596280;
}

.prediction-modal-header .prediction-modal-note {
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid #ffd36b;
  border-radius: 6px;
  background: #fff8e6;
  color: #8a5d00;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.quick-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 16px;
}

.quick-score-group {
  display: grid;
  gap: 10px;
}

.quick-score-group h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.98rem;
}

.quick-score-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-score-button {
  min-height: 42px;
  border: 1px solid #c8d1e2;
  border-radius: 8px;
  background: #f9fbfe;
  color: var(--ink-blue);
  font-weight: 800;
}

.quick-score-button:hover,
.quick-score-button.is-selected {
  border-color: var(--fusion-blue);
  background: var(--soft-blue);
  color: var(--fusion-blue);
}

.manual-score-panel {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--light-grey);
}

.manual-score-toggle {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #c8d1e2;
  border-radius: 8px;
  background: var(--white);
  color: var(--fusion-blue);
  font-weight: 800;
}

.manual-score-toggle.is-active {
  border-color: var(--fusion-blue);
  background: var(--soft-blue);
}

.manual-score-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 70px 16px 70px minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
}

.manual-score-row span:last-child {
  text-align: right;
}

.manual-score-row input {
  min-height: 44px;
  border: 1px solid #c8d1e2;
  border-radius: 8px;
  color: var(--ink-blue);
  font-weight: 800;
  text-align: center;
}

.prediction-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.prediction-modal-actions .button {
  min-width: 160px;
}

.prediction-group-selector {
  display: grid;
  gap: 12px;
  padding: 0 28px 20px;
}

.prediction-group-selector h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
}

.prediction-group-selector > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prediction-group-tab {
  min-width: 64px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  gap: 2px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f1f4f8;
  color: var(--ink-blue);
  font-weight: 900;
  cursor: pointer;
}

.prediction-group-tab span {
  color: #596280;
  font-size: 0.72rem;
  font-weight: 800;
}

.prediction-group-tab.is-active {
  border-color: var(--fusion-blue);
  background: linear-gradient(135deg, var(--fusion-blue), var(--check-blue));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(5, 99, 193, 0.2);
}

.prediction-group-tab.is-active span {
  color: rgba(255, 255, 255, 0.85);
}

.prediction-group-panel {
  overflow: hidden;
  margin: 0 28px 18px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: var(--white);
}

.prediction-group-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 10px;
}

.prediction-group-panel h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.prediction-group-panel p {
  margin: 5px 0 0;
  color: #596280;
  font-weight: 700;
}

.prediction-match-heading,
.prediction-match-card {
  grid-template-columns: minmax(78px, 0.44fr) minmax(160px, 1fr) minmax(132px, 0.62fr) minmax(160px, 1fr) minmax(220px, 0.98fr);
}

.prediction-match-heading {
  display: grid;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid #eef1f6;
  color: #4b5570;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-match-card {
  min-height: 76px;
}

.prediction-score {
  position: relative;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) auto;
  place-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.prediction-score > strong {
  grid-column: 1;
}

.prediction-score:not(button) {
  grid-template-columns: 1fr;
}

.prediction-score > span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  grid-column: 2;
  place-items: center;
  border-radius: 999px;
  color: var(--fusion-blue);
}

.prediction-score > span .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.prediction-score.is-empty {
  color: #7b8498;
}

.prediction-match-outcome {
  justify-items: center;
  text-align: center;
}

.prediction-match-outcome strong {
  color: var(--ink-blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.prediction-match-outcome span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #596280;
}

.prediction-match-outcome span i {
  width: 10px;
  height: 10px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #9aa3b4;
}

.prediction-match-outcome.is-exacto span {
  color: #008a22;
}

.prediction-match-outcome.is-exacto span i {
  background: #008a22;
}

.prediction-match-outcome.is-tendencia span {
  color: #d87800;
}

.prediction-match-outcome.is-tendencia span i {
  background: #f6a800;
}

.prediction-match-outcome.is-ganador span {
  color: var(--fusion-blue);
}

.prediction-match-outcome.is-ganador span i {
  background: var(--fusion-blue);
}

.prediction-match-outcome.is-error span {
  color: #171f32;
}

.prediction-match-outcome.is-error span i {
  background: #171f32;
}

.prediction-match-outcome.is-pending span i {
  background: #ffb000;
}

.prediction-match-outcome.is-ready span i,
.prediction-match-outcome.is-finished span i {
  background: #008a22;
}

.prediction-match-outcome.is-playing span i {
  background: var(--fusion-blue);
}

.prediction-match-outcome.is-upcoming span i {
  background: #9aa3b4;
}

.prediction-modal {
  width: min(100%, 560px);
}

.prediction-modal-header {
  justify-items: center;
  text-align: center;
}

.prediction-modal-header span {
  color: var(--ink-blue);
  text-transform: none;
  font-size: 1.02rem;
}

.prediction-modal-header h2 {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
}

.prediction-modal-header h2 b {
  min-width: 0;
  font-size: 1.16rem;
  line-height: 1.2;
}

.prediction-modal-header h2 b:first-child {
  text-align: left;
}

.prediction-modal-header h2 b:last-child {
  text-align: right;
}

.prediction-modal-header h2 em {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 900;
}

.quick-score-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--text-dark);
  font-size: 1rem;
}

.quick-score-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dfe4ee;
}

.quick-score-grid {
  gap: 6px;
}

.quick-score-group {
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
}

.quick-score-group h3 {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.quick-score-group--local h3 {
  color: #008a22;
}

.quick-score-group--draw h3 {
  color: var(--ink-blue);
}

.quick-score-group--visitor h3 {
  color: #d93030;
}

.quick-score-group > div {
  grid-template-columns: 1fr;
}

.quick-score-button {
  min-height: 44px;
  border-width: 2px;
  background: var(--white);
  font-size: 1rem;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.quick-score-button.is-selected {
  transform: translateY(-1px);
  border-color: var(--fusion-blue);
  background: var(--fusion-blue);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(5, 99, 193, 0.24);
}

.quick-score-group--local .quick-score-button:not(.is-selected) {
  border-color: #bde8cd;
  background: #f5fff8;
  color: #00751d;
}

.quick-score-group--visitor .quick-score-button:not(.is-selected) {
  border-color: #ffd4d4;
  background: #fff7f7;
  color: #a51e1e;
}

.manual-score-toggle {
  width: 100%;
  justify-self: stretch;
  min-height: 54px;
  font-size: 1rem;
}

.manual-score-row {
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: end;
}

.manual-score-row label {
  display: grid;
  gap: 7px;
}

.manual-score-row label span {
  color: #596280;
  font-size: 0.82rem;
  font-weight: 800;
}

.manual-score-row label strong {
  min-height: 32px;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.manual-score-row em {
  align-self: end;
  padding-bottom: 13px;
  color: var(--ink-blue);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.tournament-page {
  display: grid;
  gap: 22px;
}

.tournament-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0 0;
}

.tournament-intro h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.55rem;
}

.tournament-intro p {
  margin: 8px 0 0;
  color: #596280;
}

.tournament-help {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.tournament-help > .icon {
  width: 34px;
  height: 34px;
  color: var(--fusion-blue);
}

.tournament-help h3 {
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.05rem;
}

.tournament-help p {
  margin: 6px 0 0;
  color: #596280;
}

.tournament-form,
.tournament-category-list {
  display: grid;
  gap: 14px;
}

.tournament-readonly {
  display: grid;
  gap: 14px;
}

.tournament-readonly > .panel-card-header {
  padding: 0;
}

.tournament-locked-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  background: #fff8e6;
  border-color: #ffd36b;
}

.tournament-locked-card > .icon {
  width: 34px;
  height: 34px;
  color: #a66d00;
}

.tournament-locked-card h3 {
  margin: 0;
  color: var(--text-dark);
}

.tournament-locked-card p {
  margin: 7px 0 0;
  color: #596280;
  line-height: 1.45;
}

.tournament-category-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.04);
}

.tournament-category-copy {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.tournament-category-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff4d7;
  color: #a66d00;
}

.tournament-category-icon .icon {
  width: 30px;
  height: 30px;
}

.tournament-category-icon .award-icon {
  width: 42px;
  height: 42px;
}

.tournament-category-copy h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.tournament-category-copy p {
  margin: 6px 0 10px;
  color: #596280;
}

.tournament-category-copy strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--soft-blue);
  color: #0047df;
  font-size: 0.82rem;
}

.tournament-category-card--readonly {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.7fr);
}

.tournament-prediction-control {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.tournament-readonly-value {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #f6f8fb;
}

.tournament-readonly-value span {
  color: #596280;
  font-size: 0.86rem;
  font-weight: 800;
}

.tournament-readonly-value strong {
  color: var(--ink-blue);
}

.tournament-combobox {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tournament-combobox > span {
  color: #596280;
  font-size: 0.9rem;
  font-weight: 700;
}

.tournament-combobox-button {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  padding: 0 12px 0 14px;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
  background: var(--white);
  color: #8b94ad;
  text-align: left;
  outline: 0;
}

.tournament-combobox-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-combobox-button.has-value {
  color: var(--ink-blue);
  font-weight: 700;
}

.tournament-combobox-button .icon {
  width: 18px;
  height: 18px;
  color: #596280;
  transition: transform 140ms ease;
}

.tournament-combobox.is-open .tournament-combobox-button {
  border-color: var(--fusion-blue);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.12);
}

.tournament-combobox.is-open .tournament-combobox-button .icon {
  transform: rotate(180deg);
}

.tournament-combobox-button:disabled {
  background: #f6f8fb;
  color: #6d7485;
}

.tournament-combobox.has-error .tournament-combobox-button {
  border-color: rgba(200, 45, 45, 0.66);
}

.tournament-combobox-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 45;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #c8d1e2;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(24, 24, 24, 0.14);
}

.tournament-combobox-search {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
  background: #f8faff;
  color: var(--ink-blue);
  outline: 0;
}

.tournament-combobox-search:focus {
  border-color: var(--fusion-blue);
  background: var(--white);
}

.tournament-combobox-menu small {
  color: #6d7485;
  font-size: 0.8rem;
}

.tournament-combobox-options {
  max-height: 240px;
  display: grid;
  gap: 4px;
  overflow-y: auto;
  padding-right: 3px;
}

.tournament-combobox-option {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-blue);
  text-align: left;
}

.tournament-combobox-option:hover,
.tournament-combobox-option.is-selected {
  background: var(--soft-blue);
  color: #0047df;
  font-weight: 800;
}

.tournament-combobox-empty {
  margin: 8px 4px;
  color: #596280;
  font-size: 0.9rem;
}

.tournament-combobox em {
  color: var(--error-red);
  font-size: 0.82rem;
  font-style: normal;
}

.tournament-filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.tournament-filter-field > span {
  color: #596280;
  font-size: 0.88rem;
  font-weight: 800;
}

.tournament-filter-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
  background: #f8faff;
  color: var(--ink-blue);
  outline: 0;
}

.tournament-filter-field input:focus {
  border-color: var(--fusion-blue);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.12);
  background: var(--white);
}

.tournament-filter-field input:disabled {
  background: #f6f8fb;
  color: #6d7485;
}

.tournament-filter-field small {
  color: #6d7485;
  font-size: 0.8rem;
}

.tournament-select-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tournament-select-field > span {
  color: #596280;
  font-size: 0.9rem;
  font-weight: 700;
}

.tournament-select-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 44px 0 14px;
  border: 1px solid #c8d1e2;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-blue);
  outline: 0;
}

.tournament-select-field select:focus {
  border-color: var(--fusion-blue);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.12);
}

.tournament-select-field select:disabled {
  background: #f6f8fb;
  color: #6d7485;
}

.tournament-select-field.has-error select {
  border-color: rgba(200, 45, 45, 0.66);
}

.tournament-select-field em {
  color: var(--error-red);
  font-size: 0.82rem;
  font-style: normal;
}

.tournament-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 0;
}

.tournament-actions p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #596280;
  font-size: 0.9rem;
}

.tournament-actions p .icon {
  width: 18px;
  height: 18px;
}

.tournament-actions .button-primary {
  min-width: 220px;
  margin-top: 0;
  padding: 0 22px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-blue);
}

.sidebar-backdrop {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background: rgba(17, 24, 39, 0.47);
  backdrop-filter: blur(2px);
  z-index: 60;
  overflow-y: auto;
}

.profile-modal {
  width: min(100%, 760px);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(17, 28, 61, 0.25);
}

.modal-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px 14px;
}

.modal-header h2 {
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.45rem;
}

.modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-blue);
}

.modal-close:hover {
  background: var(--bg-selected);
}

.profile-loading {
  min-height: 320px;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #596280;
}

.profile-form {
  padding: 0 32px 30px;
}

.profile-card {
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--white);
}

.profile-main-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;
  padding: 30px 34px;
}

.avatar-editor {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  color: #4f5878;
  font-size: 0.86rem;
  text-align: center;
}

.avatar-editor p {
  margin: 0;
}

.profile-avatar {
  position: relative;
  width: 142px;
  height: 142px;
  margin-bottom: 8px;
}

.profile-avatar-content {
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe5ee;
  color: var(--fusion-blue);
  font-size: 2.1rem;
  font-weight: 800;
}

.profile-avatar-content img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-upload {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: #f7faff;
  color: #0047ef;
  box-shadow: 0 7px 18px rgba(2, 45, 148, 0.15);
  cursor: pointer;
}

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

.profile-fields {
  display: grid;
  align-content: start;
  gap: 22px;
}

.profile-input {
  grid-template-columns: 1fr auto;
}

.profile-input input {
  min-height: 50px;
  padding: 0 16px;
}

.profile-input.is-readonly {
  background: #f8f9fc;
}

.profile-input.is-readonly input {
  color: #737b92;
}

.readonly-note {
  display: inline-grid;
  grid-template-columns: 20px auto;
  gap: 9px;
  align-items: center;
  margin: -5px 0 0;
  color: #596280;
  font-size: 0.9rem;
}

.readonly-note .icon {
  width: 18px;
  height: 18px;
}

.profile-divider {
  height: 1px;
  background: var(--light-grey);
}

.password-section {
  padding: 27px 34px 28px;
}

.password-heading {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  align-items: start;
  margin-bottom: 22px;
}

.password-heading h3 {
  margin: 0 0 10px;
  color: var(--ink-blue);
  font-size: 1.08rem;
}

.password-heading p {
  margin: 0;
  color: #596280;
  font-size: 0.85rem;
}

.password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 18px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
}

.button-secondary {
  min-width: 120px;
  padding: 0 22px;
  border: 1px solid #c8d1e2;
  background: var(--white);
  color: #34405f;
}

.button-secondary:hover {
  background: var(--bg-selected);
}

.modal-actions .button-primary {
  min-width: 184px;
  margin-top: 0;
  padding: 0 24px;
}

@media (max-height: 760px) and (min-width: 901px) {
  .sidebar-promo {
    margin-top: 12px;
  }

  .sidebar-promo img {
    max-height: min(36vh, 340px);
  }
}

@media (max-height: 620px) {
  .sidebar-promo {
    display: none;
  }

  .sidebar-footer {
    margin-top: auto;
  }
}

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

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar-promo {
    display: none;
  }

  .sidebar-footer {
    margin-top: auto;
  }

  .sidebar-is-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(17, 28, 61, 0.32);
    z-index: 10;
  }

  .sidebar-is-open .sidebar-backdrop {
    display: block;
  }

  .icon-button {
    display: grid;
  }

  .topbar {
    padding: 14px 18px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .user-name {
    display: none;
  }

  .content-area {
    padding: 20px;
  }

  .my-status-card.is-clear {
    grid-template-columns: 1fr;
  }

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

  .my-status-calendar,
  .my-status-action-button {
    width: 100%;
  }

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

  .prediction-match-card {
    grid-template-columns: minmax(74px, 0.55fr) minmax(110px, 1fr) minmax(126px, 0.9fr) minmax(110px, 1fr);
    grid-template-areas:
      "date local score visitor"
      "outcome outcome outcome outcome";
  }

  .prediction-match-heading {
    display: none;
  }

  .prediction-match-meta {
    grid-area: date;
  }

  .prediction-match-team--local {
    grid-area: local;
  }

  .prediction-score {
    grid-area: score;
  }

  .prediction-match-team--visitor {
    grid-area: visitor;
  }

  .prediction-match-outcome {
    grid-area: outcome;
    padding-top: 10px;
    border-top: 1px solid #eef1f6;
  }

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

  .timeline-layout,
  .panel-grid,
  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .match-card {
    grid-template-columns: minmax(76px, 0.5fr) minmax(140px, 1fr) minmax(190px, 1.05fr) minmax(140px, 1fr);
    grid-template-areas:
      "date local score visitor"
      "status status status status";
  }

  .match-date {
    grid-area: date;
  }

  .match-team-side--local {
    grid-area: local;
  }

  .match-scoreboard {
    grid-area: score;
  }

  .match-team-side--visitor {
    grid-area: visitor;
  }

  .match-status {
    grid-area: status;
    justify-items: center;
    padding-top: 10px;
    border-top: 1px solid #eef1f6;
  }

  .match-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .match-actions .button-primary {
    width: 100%;
  }

  .classification-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .classification-quick-actions {
    justify-content: flex-start;
  }

  .calendar-match-row {
    grid-template-columns: minmax(138px, 0.85fr) minmax(140px, 1fr) minmax(100px, 0.6fr) minmax(140px, 1fr);
    grid-template-areas:
      "date local result visitor"
      "status status status status";
  }

  .calendar-match-date {
    grid-area: date;
  }

  .calendar-team-side--local {
    grid-area: local;
  }

  .calendar-result {
    grid-area: result;
  }

  .calendar-team-side--visitor {
    grid-area: visitor;
  }

  .calendar-match-status {
    grid-area: status;
    justify-items: center;
    padding-top: 10px;
    border-top: 1px solid #eef1f6;
  }

  .how-steps,
  .how-scoring-grid,
  .how-type-grid,
  .how-ai-grid,
  .how-ranking-grid {
    grid-template-columns: 1fr;
  }

  .how-step-arrow {
    display: none;
  }

  .how-step {
    grid-template-columns: 42px 58px minmax(0, 1fr);
    align-items: center;
  }

  .how-step h3,
  .how-step p {
    grid-column: 3;
  }

  .how-step h3 {
    grid-row: 1;
  }

  .how-step p {
    grid-row: 2;
  }

  .how-step-icon {
    grid-column: 2;
    grid-row: 1 / 3;
  }

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

  .how-state-item:nth-child(2n) {
    border-right: 0;
  }

  .how-tournament-points {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
  }

  .how-ranking-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--light-grey);
    padding: 0 0 18px;
  }

  .how-ranking-grid article:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-recalculate {
    width: 100%;
  }

  .admin-results-layout,
  .admin-code-card {
    grid-template-columns: 1fr;
  }

  .admin-phase-selector {
    order: -1;
  }

  .admin-cross-grid,
  .admin-tournament-grid,
  .admin-tournament-grid--teams,
  .admin-users-header,
  .admin-user-form-grid {
    grid-template-columns: 1fr;
  }

  .match-actions.admin-results-actions,
  .admin-results-action-buttons {
    grid-template-columns: 1fr;
  }

  .admin-users-header {
    align-items: stretch;
  }

  .admin-users-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-users-header-actions .button {
    width: 100%;
  }

  .admin-users-search {
    grid-template-columns: 1fr;
  }

  .admin-code-card {
    align-items: stretch;
  }

  .tournament-category-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tournament-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tournament-actions .button-primary {
    width: 100%;
  }

  .timeline-track {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }

  .summary-metric,
  .summary-next {
    justify-items: start;
    border-left: 0;
    border-top: 1px solid var(--light-grey);
    text-align: left;
  }

  .summary-metric:first-child {
    border-top: 0;
  }

  .summary-metric + .summary-metric,
  .summary-next {
    border-left: 0;
  }

  .summary-metric {
    grid-template-columns: 48px 1fr;
    align-items: center;
    justify-content: start;
  }

  .summary-metric span:last-child {
    grid-column: 2;
  }

  .profile-modal {
    width: min(100%, 680px);
  }

  .profile-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .avatar-editor {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding: 26px 14px;
  }

  .brand-logo--main {
    max-width: 220px;
  }

  .brand-logo--checkpot-main {
    max-width: min(320px, 86vw);
    max-height: 92px;
  }

  .auth-brand-claim {
    gap: 5px 8px;
    font-size: 0.98rem;
  }

  .brand-logo--claim-check24 {
    width: 112px;
    max-height: 30px;
  }

  .brand-block p {
    font-size: 1.18rem;
  }

  .auth-card {
    min-height: 0;
    padding: 24px 18px 26px;
  }

  .auth-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
  }

  .auth-icon .icon {
    width: 38px;
    height: 38px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar h1 {
    font-size: 1.28rem;
  }

  .topbar-kicker {
    font-size: 0.78rem;
  }

  .topbar-actions {
    gap: 6px;
  }

  .points-badge {
    min-width: 58px;
    padding: 0 10px;
  }

  .user-button {
    padding-right: 6px;
  }

  .panel-card-header {
    padding: 20px 18px 12px;
  }

  .panel-card-header,
  .panel-card-header--link {
    flex-direction: column;
  }

  .my-status-card {
    gap: 16px;
    padding: 18px;
  }

  .my-status-header {
    gap: 14px;
  }

  .my-status-icon {
    width: 48px;
    height: 48px;
  }

  .my-status-icon .icon {
    width: 25px;
    height: 25px;
  }

  .my-status-card h2 {
    font-size: 1.16rem;
  }

  .my-status-action {
    padding: 16px;
  }

  .my-status-action-main {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .my-status-action-icon {
    width: 40px;
    height: 40px;
  }

  .my-status-action-icon .icon {
    width: 22px;
    height: 22px;
  }

  .match-progress-card,
  .match-predictions-groups,
  .match-actions--note,
  .prediction-group-selector,
  .prediction-groups-accordion {
    padding-left: 18px;
    padding-right: 18px;
  }

  .prediction-group-panel {
    margin-left: 18px;
    margin-right: 18px;
  }

  .prediction-group-summary {
    grid-template-columns: minmax(0, 1fr) auto 22px;
    gap: 10px;
    padding: 14px;
  }

  .prediction-group-summary b {
    min-width: 88px;
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .prediction-match-card {
    grid-template-columns: 62px minmax(72px, 1fr) minmax(104px, 0.95fr) minmax(72px, 1fr);
    gap: 10px;
    padding: 14px 12px;
  }

  .prediction-match-meta {
    gap: 6px;
    padding-right: 8px;
    font-size: 0.84rem;
  }

  .prediction-match-team .match-team {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .prediction-match-team--visitor .match-team {
    grid-template-columns: 1fr;
    justify-items: end;
  }

  .prediction-match-team--visitor .match-team span,
  .prediction-match-team--visitor .match-team strong {
    grid-column: auto;
    grid-row: auto;
  }

  .prediction-match-team .match-team span {
    font-size: 1.25rem;
  }

  .prediction-match-team .match-team strong {
    white-space: normal;
    font-size: 0.88rem;
    line-height: 1.18;
  }

  .prediction-score {
    min-height: 44px;
    padding: 7px 8px;
  }

  .prediction-score strong {
    font-size: 0.96rem;
  }

  .prediction-score span {
    font-size: 0.72rem;
  }

  .prediction-modal {
    gap: 18px;
    padding: 22px 16px;
  }

  .prediction-modal-header h2 {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    font-size: 1.18rem;
  }

  .prediction-modal-header h2 b {
    font-size: 0.96rem;
  }

  .quick-score-group {
    padding: 9px;
  }

  .quick-score-group h3 {
    font-size: 0.68rem;
  }

  .quick-score-button {
    min-height: 40px;
    font-size: 0.92rem;
  }

  .manual-score-row {
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
    gap: 7px;
    font-size: 0.86rem;
  }

  .prediction-modal-actions {
    flex-direction: column-reverse;
  }

  .prediction-modal-actions .button {
    width: 100%;
  }

  .classification-hero h2 {
    font-size: 1.35rem;
  }

  .classification-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .classification-quick-actions .button {
    min-width: 0;
    width: 100%;
  }

  .classification-scroll {
    max-height: none;
  }

  .classification-table {
    min-width: 760px;
  }

  .classification-table th,
  .classification-table td {
    padding: 0 18px;
  }

  .calendar-hero h2 {
    font-size: 1.35rem;
  }

  .calendar-group-list {
    padding: 14px;
  }

  .calendar-group-header {
    padding: 13px 14px;
  }

  .calendar-phase-header {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px 18px;
  }

  .calendar-phase-icon {
    width: 42px;
    height: 42px;
  }

  .calendar-phase-header h2 {
    font-size: 1.05rem;
  }

  .calendar-match-row {
    grid-template-columns: minmax(62px, 0.66fr) minmax(74px, 1fr) minmax(76px, 0.82fr) minmax(74px, 1fr);
    grid-template-areas:
      "date local result visitor"
      "status status status status";
    gap: 10px;
    padding: 15px 12px;
  }

  .calendar-match-date {
    gap: 5px;
    padding-right: 8px;
    font-size: 0.84rem;
  }

  .calendar-match-date small {
    font-size: 0.76rem;
  }

  .calendar-team {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .calendar-team-side--visitor .calendar-team {
    grid-template-columns: 1fr;
    justify-items: end;
  }

  .calendar-team-side--visitor .calendar-team span,
  .calendar-team-side--visitor .calendar-team strong {
    grid-column: auto;
    grid-row: auto;
  }

  .calendar-team span {
    font-size: 1.28rem;
  }

  .calendar-team strong {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.18;
  }

  .calendar-team-side--visitor .calendar-team strong {
    text-align: right;
  }

  .calendar-result strong {
    min-width: 64px;
  }

  .calendar-result span {
    font-size: 0.72rem;
  }

  .calendar-match-status {
    justify-items: start;
  }

  .how-hero h2 {
    font-size: 1.35rem;
  }

  .how-section {
    padding: 20px 18px;
  }

  .how-section h2 {
    font-size: 1.1rem;
  }

  .how-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px 14px;
  }

  .how-step-number {
    grid-row: 1 / 3;
  }

  .how-step-icon {
    display: none;
  }

  .how-step h3,
  .how-step p {
    grid-column: 2;
  }

  .how-type-card,
  .how-ai-feature,
  .how-ranking-grid article {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .how-type-card,
  .how-ai-feature {
    padding: 16px;
  }

  .how-ai-feature h3,
  .how-ai-feature p {
    grid-column: 2;
  }

  .how-icon {
    width: 42px;
    height: 42px;
  }

  .how-icon .icon {
    width: 23px;
    height: 23px;
  }

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

  .how-tournament-point {
    border-right: 0;
    border-bottom: 1px solid var(--light-grey);
  }

  .how-tournament-point:nth-last-child(-n + 1) {
    border-bottom: 0;
  }

  .how-state-grid {
    grid-template-columns: 1fr;
  }

  .how-state-item {
    border-right: 0;
    border-bottom: 1px solid var(--light-grey);
    padding: 0 0 14px;
  }

  .how-state-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .how-example {
    padding: 14px;
  }

  .admin-hero h2 {
    font-size: 1.35rem;
  }

  .admin-tabs {
    gap: 22px;
  }

  .admin-inline-alert {
    padding: 0 18px 16px;
  }

  .admin-phases-table {
    min-width: 860px;
  }

  .admin-phases-table th,
  .admin-phases-table td {
    padding: 0 16px;
  }

  .admin-results-layout {
    gap: 16px;
  }

  .admin-results-form,
  .admin-crosses-form,
  .admin-tournament-form {
    padding: 0 18px 22px;
  }

  .admin-result-match {
    grid-template-columns: minmax(56px, 0.65fr) minmax(68px, 1fr) minmax(96px, 1.12fr) minmax(68px, 1fr);
    grid-template-areas:
      "date local score visitor"
      "status status status status";
  }

  .admin-results-action-buttons,
  .admin-cross-footer,
  .admin-users-pagination,
  .admin-code-actions,
  .admin-news-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .match-actions.admin-results-actions,
  .admin-results-action-buttons {
    grid-template-columns: 1fr;
  }

  .admin-results-action-buttons .button,
  .admin-cross-footer .button,
  .admin-cross-limit-note,
  .admin-users-pagination .button,
  .admin-code-actions .button,
  .admin-news-actions .button {
    width: 100%;
  }

  .admin-danger-card {
    display: grid;
    padding: 18px;
  }

  .admin-danger-card > div {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .admin-danger-icon {
    width: 38px;
    height: 38px;
  }

  .admin-danger-button {
    width: 100%;
  }

  .admin-restore-form {
    padding: 0 18px 22px;
  }

  .admin-restore-warning {
    grid-template-columns: 1fr;
  }

  .admin-cross-teams,
  .admin-cross-meta,
  .admin-cross-readonly-teams {
    grid-template-columns: 1fr;
  }

  .admin-cross-teams > span,
  .admin-cross-readonly-teams > span {
    min-height: 30px;
  }

  .admin-user-form {
    margin: 0 18px 18px;
  }

  .admin-users-pagination {
    padding: 14px 18px;
  }

  .admin-code-card {
    padding: 22px 18px;
  }

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

  .admin-news-form {
    padding: 0 18px 18px;
  }

  .admin-news-item {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 16px 18px;
  }

  .admin-news-item .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-note {
    grid-template-columns: 1fr;
    margin: 16px 18px 20px;
  }

  .admin-placeholder {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .prediction-mode-tabs {
    display: none;
  }

  .prediction-mode-select {
    display: block;
  }

  .phase-tabs-scroll {
    display: none;
  }

  .phase-select-mobile {
    display: block;
  }

  .timeline-layout {
    padding: 14px 18px 22px;
  }

  .timeline-track {
    grid-template-columns: 1fr;
  }

  .timeline-track::before {
    left: 18px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: 3px;
    height: auto;
  }

  .timeline-step {
    grid-template-columns: 38px 1fr;
    justify-items: start;
    text-align: left;
  }

  .timeline-step h3,
  .timeline-step p,
  .timeline-step .status-pill {
    grid-column: 2;
  }

  .timeline-node {
    grid-row: 1 / 4;
  }

  .state-legend {
    margin: 0 18px;
  }

  .action-banner {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .action-button {
    width: 100%;
    min-width: 0;
  }

  .summary-metrics {
    padding: 10px 18px 22px;
  }

  .summary-metric,
  .summary-next {
    padding: 16px 0;
  }

  .mini-ranking-row {
    grid-template-columns: 28px 38px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 18px;
  }

  .you-badge {
    display: none;
  }

  .ranking-avatar {
    width: 38px;
    height: 38px;
  }

  .news-item {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .match-phase-header {
    padding: 20px 18px 12px;
  }

  .match-predictions-form {
    padding: 0 18px 22px;
  }

  .match-card {
    grid-template-columns: minmax(56px, 0.65fr) minmax(68px, 1fr) minmax(96px, 1.12fr) minmax(68px, 1fr);
    grid-template-areas:
      "date local score visitor"
      "status status status status";
    gap: 10px;
    padding: 14px 12px;
  }

  .match-date {
    gap: 6px;
    padding-right: 8px;
    border-right: 1px solid var(--light-grey);
    border-bottom: 0;
    font-size: 0.86rem;
  }

  .match-team {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .match-team-side--visitor .match-team {
    grid-template-columns: 1fr;
    justify-items: end;
  }

  .match-team-side--visitor .match-team span,
  .match-team-side--visitor .match-team strong {
    grid-column: auto;
    grid-row: auto;
  }

  .match-team span {
    font-size: 1.28rem;
  }

  .match-team strong {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.18;
  }

  .match-team-side--visitor .match-team strong {
    text-align: right;
  }

  .score-static,
  .score-inputs {
    min-width: 94px;
  }

  .score-static {
    min-height: 32px;
    padding: 0 8px;
  }

  .score-inputs {
    grid-template-columns: minmax(38px, 1fr) 10px minmax(38px, 1fr);
    gap: 5px;
  }

  .score-field input {
    min-height: 34px;
  }

  .score-row > span {
    font-size: 0.75rem;
  }

  .match-status {
    justify-items: start;
    padding-top: 10px;
  }

  .tournament-intro {
    flex-direction: column;
  }

  .tournament-intro h2 {
    font-size: 1.35rem;
  }

  .tournament-help {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .tournament-category-card {
    padding: 20px 18px;
  }

  .tournament-category-copy {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .tournament-category-icon {
    width: 48px;
    height: 48px;
  }

  .tournament-category-icon .icon {
    width: 26px;
    height: 26px;
  }

  .panel-footnote {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .modal-backdrop {
    align-items: start;
    padding: 12px;
  }

  .classification-avatar-modal {
    width: min(100%, 360px);
    gap: 16px;
    padding: 38px 20px 22px;
  }

  .classification-avatar-modal-picture-wrap,
  .classification-avatar-modal-picture {
    width: 138px;
    height: 138px;
  }

  .classification-avatar-modal-picture {
    font-size: 2.65rem;
  }

  .classification-avatar-modal-info dl {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .modal-header {
    padding: 20px 18px 10px;
  }

  .profile-form {
    padding: 0 18px 22px;
  }

  .profile-main-grid,
  .password-section {
    padding: 22px 18px;
  }

  .password-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .button {
    width: 100%;
  }
}

/* Predicciones de partidos: cards responsive */
.prediction-match-heading {
  display: none !important;
}

.prediction-group-content {
  padding: 16px 18px 18px;
  background: var(--white);
}

.prediction-match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
  border-top: 0;
}

.prediction-match-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 18px 18px 16px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: var(--white);
}

.prediction-match-card + .prediction-match-card {
  border-top: 1px solid #dfe4ee;
}

.prediction-match-date {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #596280;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.prediction-match-date .icon {
  width: 17px;
  height: 17px;
  color: #7b8498;
}

.prediction-match-versus {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.prediction-match-team {
  min-width: 0;
}

.prediction-match-team .match-team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prediction-match-team .match-team span {
  flex: 0 0 auto;
  font-size: 1.55rem;
  line-height: 1;
}

.prediction-match-team .match-team strong {
  min-width: 0;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.16;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prediction-match-team--local .match-team {
  justify-content: flex-start;
  text-align: left;
}

.prediction-match-team--visitor .match-team {
  flex-direction: row-reverse;
  justify-content: flex-end;
  text-align: right;
}

.prediction-match-team--visitor .match-team span,
.prediction-match-team--visitor .match-team strong {
  grid-column: auto;
  grid-row: auto;
}

.prediction-match-team--visitor .match-team strong {
  text-align: right;
}

.prediction-score {
  min-width: 108px;
  width: 100%;
  max-width: 168px;
  min-height: 52px;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #c8d1e2;
  border-radius: 8px;
  background: #f9fbfe;
  color: var(--ink-blue);
  text-align: center;
}

button.prediction-score {
  grid-template-columns: minmax(0, 1fr) 22px;
  cursor: pointer;
}

.prediction-score strong {
  min-width: 0;
  color: var(--ink-blue);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.prediction-score.is-empty strong {
  color: #6f7890;
  font-size: 0.92rem;
  white-space: normal;
}

.prediction-score > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--fusion-blue);
}

.prediction-score > span .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.35;
}

.prediction-match-outcome {
  min-width: 0;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding-top: 12px;
  border-top: 1px solid #eef1f6;
  color: #596280;
  text-align: center;
}

.prediction-match-outcome strong {
  color: var(--ink-blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.prediction-match-outcome span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #596280;
  font-size: 0.92rem;
  font-weight: 900;
}

.prediction-match-outcome span i {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #9aa3b4;
}

.prediction-match-outcome.is-exacto span {
  color: #008a22;
}

.prediction-match-outcome.is-exacto span i {
  background: #008a22;
}

.prediction-match-outcome.is-tendencia span {
  color: #d87800;
}

.prediction-match-outcome.is-tendencia span i {
  background: #f6a800;
}

.prediction-match-outcome.is-ganador span {
  color: var(--fusion-blue);
}

.prediction-match-outcome.is-ganador span i {
  background: var(--fusion-blue);
}

.prediction-match-outcome.is-error span {
  color: #171f32;
}

.prediction-match-outcome.is-error span i {
  background: #171f32;
}

.prediction-match-outcome.is-unresolved strong {
  color: #596280;
  font-size: 1.08rem;
}

.prediction-match-outcome.is-unresolved span {
  color: #596280;
  font-weight: 800;
}

.prediction-modal {
  width: min(100%, 640px);
  max-height: min(92vh, 880px);
  overflow-y: auto;
}

.prediction-modal-backdrop {
  place-items: center;
  align-items: center;
}

.prediction-modal .modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
}

.prediction-modal-header {
  justify-items: center;
  padding: 18px 46px 0;
  text-align: center;
}

.prediction-modal-header span {
  color: var(--ink-blue);
  font-size: 1.02rem;
  font-weight: 900;
  text-transform: none;
}

.prediction-modal-header h2 {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--text-dark);
}

.prediction-modal-header h2 b {
  min-width: 0;
  font-size: 1.14rem;
  line-height: 1.14;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prediction-modal-header h2 b:first-child {
  justify-self: end;
  text-align: right;
}

.prediction-modal-header h2 b:last-child {
  justify-self: start;
  text-align: left;
}

.prediction-modal-header h2 em {
  justify-self: center;
  color: var(--text-dark);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 900;
}

.manual-score-toggle {
  font-size: 0.98rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .prediction-match-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .prediction-group-content {
    padding: 12px;
  }

  .prediction-match-list {
    gap: 12px;
  }

  .prediction-match-card {
    padding: 16px 14px 14px;
  }

  .prediction-match-date {
    font-size: 0.86rem;
  }

  .prediction-match-versus {
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto) minmax(0, 1fr);
    gap: 8px;
  }

  .prediction-match-team .match-team {
    gap: 7px;
  }

  .prediction-match-team .match-team span {
    font-size: 1.45rem;
  }

  .prediction-match-team .match-team strong {
    font-size: 0.96rem;
  }

  .prediction-score {
    min-width: 96px;
    max-width: 132px;
    min-height: 50px;
    padding: 7px 8px;
  }

  .prediction-score strong {
    font-size: 1rem;
  }

  .prediction-score.is-empty strong {
    font-size: 0.86rem;
  }

  .prediction-match-outcome {
    padding-top: 10px;
  }

  .prediction-modal {
    width: min(100%, 420px);
    gap: 18px;
    padding: 24px 16px 16px;
    border-radius: 12px;
  }

  .prediction-modal-backdrop {
    align-items: center;
    padding: 12px;
  }

  .prediction-modal .modal-close {
    top: 14px;
    left: 12px;
  }

  .prediction-modal-header {
    padding: 28px 0 0;
  }

  .prediction-modal-header h2 {
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
    gap: 8px;
  }

  .prediction-modal-header h2 b {
    font-size: 0.98rem;
  }

  .manual-score-toggle {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .prediction-modal-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .prediction-modal-actions .button {
    width: 100%;
    min-height: 52px;
  }
}

@media (max-width: 390px) {
  .prediction-match-versus {
    grid-template-columns: minmax(0, 1fr) minmax(88px, auto) minmax(0, 1fr);
    gap: 6px;
  }

  .prediction-match-team .match-team span {
    font-size: 1.32rem;
  }

  .prediction-match-team .match-team strong {
    font-size: 0.88rem;
  }

  .prediction-score {
    min-width: 88px;
    max-width: 118px;
  }
}

/* Refuerzo: esta pantalla no debe heredar la maqueta tabular antigua. */
.prediction-match-card {
  grid-template-areas: none !important;
}

.prediction-match-date,
.prediction-match-team--local,
.prediction-score,
.prediction-match-team--visitor,
.prediction-match-outcome {
  grid-area: auto !important;
}

.prediction-match-team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prediction-match-team--local {
  justify-content: flex-start;
  text-align: left;
}

.prediction-match-team--visitor {
  flex-direction: row-reverse;
  justify-content: flex-end;
  text-align: right;
}

.prediction-team-flag {
  flex: 0 0 auto;
  font-size: 1.55rem;
  line-height: 1;
}

.prediction-team-name {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.16;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .prediction-match-card {
    grid-template-columns: 1fr !important;
  }

  .prediction-match-date {
    justify-content: center;
  }

  .prediction-match-versus {
    grid-template-columns: minmax(0, 1fr) minmax(100px, auto) minmax(0, 1fr) !important;
  }

  .prediction-match-team {
    gap: 7px;
    align-self: center;
  }

  .prediction-team-flag {
    font-size: 1.4rem;
  }

  .prediction-team-name {
    font-size: 0.94rem;
  }
}

@media (max-width: 390px) {
  .prediction-match-versus {
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto) minmax(0, 1fr) !important;
  }

  .prediction-score {
    min-width: 92px;
    max-width: 112px;
  }

  .prediction-team-flag {
    font-size: 1.26rem;
  }

  .prediction-team-name {
    font-size: 0.84rem;
  }
}

/* Clasificación mobile: tabla compacta con todas las columnas visibles. */
@media (max-width: 720px) {
  .classification-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid #dfe4ee;
    box-shadow: 0 10px 28px rgba(17, 28, 61, 0.06);
  }

  .classification-scroll {
    max-height: none;
    overflow: hidden;
  }

  .classification-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .classification-table thead {
    display: table-header-group;
    position: static;
    box-shadow: 0 1px 0 var(--light-grey);
  }

  .classification-table tbody tr.is-current {
    background: #edf4ff;
  }

  .classification-table th,
  .classification-table td {
    height: 64px;
    padding: 0 5px;
    text-align: center;
    vertical-align: middle;
  }

  .classification-table th {
    height: 48px;
    font-size: 0;
  }

  .classification-table th::after {
    color: #596280;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
  }

  .classification-table th:nth-child(1)::after {
    content: "POS";
  }

  .classification-table th:nth-child(2)::after {
    content: "PARTICIPANTE";
  }

  .classification-table th:nth-child(3)::after {
    content: "PTS";
  }

  .classification-table th:nth-child(4)::after {
    content: "EX";
  }

  .classification-table th:nth-child(5)::after {
    content: "TE";
  }

  .classification-table th:nth-child(6)::after {
    content: "GA";
  }

  .classification-table th:nth-child(1),
  .classification-table td:nth-child(1) {
    width: 42px;
  }

  .classification-table th:nth-child(3),
  .classification-table td:nth-child(3) {
    width: 42px;
  }

  .classification-table th:nth-child(4),
  .classification-table td:nth-child(4),
  .classification-table th:nth-child(5),
  .classification-table td:nth-child(5),
  .classification-table th:nth-child(6),
  .classification-table td:nth-child(6) {
    width: 31px;
  }

  .classification-table td:nth-child(2) {
    text-align: left;
  }

  .classification-participant {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .classification-avatar-button {
    width: 36px;
    height: 36px;
  }

  .classification-avatar {
    width: 36px;
    height: 36px;
  }

  .classification-participant > span:not(.classification-avatar) {
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .classification-participant b {
    min-height: 21px;
    padding: 0 7px;
    font-size: 0.68rem;
  }

  .classification-position {
    grid-template-columns: 1fr;
    gap: 2px;
    justify-items: center;
  }

  .classification-position > strong {
    font-size: 1rem;
  }

  .classification-change {
    font-size: 0.62rem;
  }

  .classification-points {
    font-size: 1.02rem;
  }
}

@media (max-width: 390px) {
  .classification-table th,
  .classification-table td {
    height: 60px;
    padding: 0 3px;
  }

  .classification-table th {
    height: 44px;
  }

  .classification-table th::after {
    font-size: 0.62rem;
  }

  .classification-table th:nth-child(1),
  .classification-table td:nth-child(1) {
    width: 35px;
  }

  .classification-table th:nth-child(3),
  .classification-table td:nth-child(3) {
    width: 36px;
  }

  .classification-table th:nth-child(4),
  .classification-table td:nth-child(4),
  .classification-table th:nth-child(5),
  .classification-table td:nth-child(5),
  .classification-table th:nth-child(6),
  .classification-table td:nth-child(6) {
    width: 27px;
  }

  .classification-participant {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .classification-avatar-button {
    width: 30px;
    height: 30px;
  }

  .classification-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .classification-participant > span:not(.classification-avatar) {
    font-size: 0.78rem;
  }

  .classification-participant b {
    padding: 0 5px;
    font-size: 0.62rem;
  }

  .classification-position > strong {
    font-size: 0.92rem;
  }

  .classification-change {
    display: none;
  }

  .classification-points {
    font-size: 0.95rem;
  }
}

/* Predicciones de partidos: jerarquía simplificada y vistas grid/lista */
.predictions-page .phase-tabs-card {
  margin-bottom: 18px;
}

.match-summary-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(260px, 1.1fr) minmax(116px, 0.42fr) minmax(116px, 0.42fr);
  gap: 24px;
  align-items: center;
  padding: 20px 28px;
}

.match-summary-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.match-summary-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff0c4;
  color: #d99500;
}

.match-summary-icon .icon {
  width: 30px;
  height: 30px;
}

.match-summary-title h2 {
  display: inline;
  margin: 0 10px 0 0;
  color: var(--ink-blue);
  font-size: 1.28rem;
}

.match-summary-title .status-pill {
  vertical-align: middle;
}

.match-summary-title p {
  margin: 8px 0 0;
  color: #596280;
}

.match-summary-progress {
  min-width: 0;
}

.match-summary-stat {
  min-height: 66px;
  display: grid;
  grid-template-columns: 20px auto;
  gap: 2px 8px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #e3e8f2;
  border-radius: 8px;
  background: var(--white);
}

.match-summary-stat i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #9aa3b4;
}

.match-summary-stat i.is-success {
  background: var(--green);
}

.match-summary-stat i.is-pending {
  background: #f6a800;
}

.match-summary-stat strong {
  color: var(--ink-blue);
  font-size: 1.18rem;
}

.match-summary-stat span {
  grid-column: 2;
  color: #596280;
  font-size: 0.88rem;
  font-weight: 800;
}

.match-display-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}

.match-control-group {
  display: grid;
  gap: 7px;
}

.match-control-group > span {
  color: #596280;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-view-toggle {
  width: fit-content;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: var(--white);
}

.match-view-toggle button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #34405f;
  font-weight: 800;
}

.match-view-toggle button.is-active {
  background: var(--soft-blue);
  color: #0047df;
}

.match-view-toggle .icon {
  width: 18px;
  height: 18px;
}

.prediction-date-sections {
  display: grid;
  gap: 12px;
}

.prediction-date-section {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.04);
}

.prediction-date-section > summary {
  list-style: none;
  cursor: pointer;
}

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

.prediction-date-header {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #e7ebf3;
  background: var(--white);
}

.prediction-date-header > div {
  min-width: 0;
}

.prediction-date-section:not([open]) .prediction-date-header {
  border-bottom: 0;
}

.prediction-date-header strong {
  display: block;
  color: var(--text-dark);
  font-size: 1.12rem;
}

.prediction-date-header > div > span {
  display: block;
  margin-top: 3px;
  color: #596280;
  font-size: 0.86rem;
  font-weight: 800;
}

.prediction-date-header b {
  min-width: 112px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3d6;
  color: #9b6500;
  font-size: 0.82rem;
  text-align: center;
}

.prediction-date-header b.is-complete {
  background: #e5f6e9;
  color: #008a22;
}

.prediction-date-chevron {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #14213d;
  transition: transform 140ms ease;
}

.prediction-date-chevron .icon {
  width: 18px;
  height: 18px;
}

.prediction-date-section[open] .prediction-date-chevron {
  transform: rotate(180deg);
}

.prediction-date-content {
  padding: 14px 16px 16px;
}

.prediction-groups-accordion {
  padding: 0;
  gap: 12px;
}

.prediction-group-section {
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.04);
}

.prediction-group-section[open] {
  box-shadow: 0 10px 28px rgba(17, 28, 61, 0.06);
}

.prediction-group-content {
  padding: 14px 16px 16px;
}

.prediction-match-list,
.prediction-knockout-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prediction-match-card {
  padding: 16px;
}

.prediction-match-date {
  font-size: 0.82rem;
}

.prediction-match-versus {
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto) minmax(0, 1fr);
  gap: 10px;
}

.prediction-score {
  min-width: 104px;
  max-width: 138px;
}

.prediction-team-name {
  font-size: 0.92rem;
}

.prediction-match-outcome strong,
.prediction-match-outcome span {
  font-size: 0.86rem;
}

.match-actions--standalone {
  padding-top: 0;
}

.prediction-list-wrap {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: var(--white);
}

.prediction-group-content .prediction-list-wrap {
  border: 0;
  border-radius: 0;
}

.prediction-list-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.prediction-list-table th,
.prediction-list-table td {
  height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid #eef1f6;
  color: var(--ink-blue);
  text-align: left;
  vertical-align: middle;
}

.prediction-list-table th {
  height: 44px;
  color: #596280;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-list-table tbody tr:last-child td {
  border-bottom: 0;
}

.prediction-list-table th:nth-child(1),
.prediction-list-table td:nth-child(1) {
  width: 145px;
}

.prediction-list-table th:nth-child(3),
.prediction-list-table td:nth-child(3) {
  width: 150px;
  text-align: center;
}

.prediction-list-table th:nth-child(4),
.prediction-list-table td:nth-child(4) {
  width: 125px;
  text-align: center;
}

.prediction-list-table th:nth-child(5),
.prediction-list-table td:nth-child(5) {
  width: 130px;
}

.prediction-list-table th:nth-child(6),
.prediction-list-table td:nth-child(6) {
  width: 96px;
  text-align: center;
}

.prediction-list-date,
.prediction-list-match,
.prediction-list-team,
.prediction-list-status {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.prediction-list-date {
  gap: 7px;
  color: #34405f;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.prediction-list-date .icon {
  width: 16px;
  height: 16px;
}

.prediction-list-match {
  width: 100%;
  gap: 10px;
}

.prediction-list-team {
  gap: 7px;
  font-weight: 900;
}

.prediction-list-team span {
  flex: 0 0 auto;
}

.prediction-list-team strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-list-match em {
  color: #7b8498;
  font-style: normal;
  font-weight: 800;
}

.prediction-list-status {
  gap: 7px;
  color: #596280;
  font-weight: 900;
}

.prediction-list-status i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.prediction-list-status.is-exacto {
  color: var(--green);
}

.prediction-list-status.is-tendencia {
  color: #d87800;
}

.prediction-list-status.is-ganador {
  color: var(--fusion-blue);
}

.prediction-list-status.is-error {
  color: #171f32;
}

.prediction-list-status.is-pending {
  color: #a66d00;
}

.prediction-list-points {
  color: var(--ink-blue);
}

.prediction-list-table .prediction-score {
  min-width: 94px;
  max-width: 116px;
  min-height: 38px;
  margin: 0 auto;
}

.prediction-list-table .prediction-score strong {
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .match-summary-card {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr);
  }

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

  .match-summary-stat {
    grid-template-columns: 20px auto 1fr;
    justify-content: start;
  }

  .match-summary-stat span {
    grid-column: 3;
  }
}

@media (max-width: 760px) {
  .match-summary-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .match-summary-title {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .match-summary-icon {
    width: 48px;
    height: 48px;
  }

  .match-display-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .match-control-group {
    width: 100%;
  }

  .match-view-toggle {
    width: 100%;
  }

  .match-view-toggle button {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
  }

  .prediction-match-list,
  .prediction-knockout-grid {
    grid-template-columns: 1fr;
  }

  .prediction-date-header {
    align-items: flex-start;
    padding: 13px 16px;
  }

  .prediction-date-header b {
    min-width: 96px;
    padding-inline: 10px;
  }

  .prediction-list-wrap {
    border: 0;
    background: transparent;
  }

  .prediction-list-table,
  .prediction-list-table tbody,
  .prediction-list-table tr,
  .prediction-list-table td {
    display: block;
    width: 100%;
  }

  .prediction-list-table thead {
    display: none;
  }

  .prediction-list-table tbody {
    display: grid;
    gap: 10px;
  }

  .prediction-list-table tr {
    padding: 13px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: var(--white);
  }

  .prediction-list-table td {
    height: auto;
    padding: 0;
    border-bottom: 0;
  }

  .prediction-list-table td + td {
    margin-top: 9px;
  }

  .prediction-list-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #596280;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .prediction-list-table td:nth-child(2)::before {
    display: none;
  }

  .prediction-list-match {
    justify-content: space-between;
  }

  .prediction-list-team {
    max-width: 45%;
  }

  .prediction-list-team strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .prediction-list-table td:nth-child(3),
  .prediction-list-table td:nth-child(4),
  .prediction-list-table td:nth-child(5),
  .prediction-list-table td:nth-child(6) {
    display: inline-grid;
    width: calc(50% - 5px);
    vertical-align: top;
  }

  .prediction-list-table td:nth-child(4),
  .prediction-list-table td:nth-child(6) {
    margin-left: 10px;
  }

  .prediction-list-table .prediction-score {
    margin: 0;
  }
}

/* Sede en predicciones de partidos tras simplificar la navegación. */
.prediction-match-date {
  display: grid !important;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.prediction-match-date-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #596280;
  font-weight: 800;
}

.prediction-match-stadium,
.prediction-list-date-block small {
  max-width: 100%;
  color: #6f7890;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.prediction-match-stadium {
  display: block;
  overflow-wrap: anywhere;
}

.prediction-list-date-block {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.prediction-list-date-block small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-tv-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid #edf1f7;
  color: #596280;
  font-size: 0.76rem;
  font-weight: 900;
}

.match-tv-channels--compact {
  justify-content: flex-start;
  margin-top: 2px;
  padding-top: 0;
  border-top: 0;
  font-size: 0.7rem;
}

.match-tv-logo-list {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.match-tv-logo {
  width: 30px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dce3ef;
  border-radius: 6px;
  background: #ffffff;
}

.match-tv-channels--compact .match-tv-logo {
  width: 24px;
  height: 20px;
  border-radius: 5px;
}

.match-tv-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prediction-match-outcome + .match-tv-channels {
  margin-top: 0;
  padding-top: 10px;
}

.prediction-list-match-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prediction-list-match-cell .prediction-list-match {
  min-width: 0;
  flex: 1 1 auto;
}

.prediction-list-match-cell .match-tv-channels--compact {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin: 0;
  white-space: nowrap;
}

.match-community-trend {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px 0 10px;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
}

.match-community-trend > strong {
  color: #596280;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

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

.match-community-item {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: center;
}

.match-community-item span {
  color: #34405f;
  font-size: 0.95rem;
  font-weight: 900;
}

.match-community-item em {
  min-width: 0;
  overflow: hidden;
  color: #596280;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-community-item i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf3;
}

.match-community-item b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9aa3b4;
}

.match-community-item.is-local span {
  color: #008a22;
}

.match-community-item.is-local b {
  background: #008a22;
}

.match-community-item.is-draw span {
  color: #596280;
}

.match-community-item.is-draw b {
  background: #b5bdca;
}

.match-community-item.is-visitor span {
  color: #d61f1f;
}

.match-community-item.is-visitor b {
  background: #d61f1f;
}

.match-community-trend-compact {
  display: block;
  margin-top: 4px;
  color: #596280;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .prediction-match-stadium {
    font-size: 0.74rem;
  }

  .prediction-list-date-block small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .match-tv-channels {
    flex-wrap: wrap;
  }

  .match-tv-channels--compact {
    justify-content: flex-start;
  }

  .match-community-items {
    gap: 7px;
  }

  .match-community-item em {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Sugerencias IA */
.tournament-intro-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-suggest-button,
.ai-icon-button {
  border: 1px solid #c7a7ff;
  background: #fbf7ff;
  color: #7c2df0;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(124, 45, 240, 0.08);
}

.ai-suggest-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.ai-suggest-button:hover:not(:disabled),
.ai-icon-button:hover:not(:disabled) {
  background: #f2e8ff;
  border-color: #9b5cff;
}

.ai-suggest-button .icon,
.ai-icon-button .icon {
  width: 18px;
  height: 18px;
}

.match-summary-card {
  grid-template-columns: minmax(260px, 1.35fr) minmax(220px, 1fr) minmax(104px, 0.34fr) minmax(104px, 0.34fr) auto;
}

.match-summary-ai {
  align-self: stretch;
  min-width: 210px;
}

.prediction-group-summary {
  gap: 10px;
}

.prediction-group-summary .ai-suggest-button--group {
  margin-left: auto;
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.82rem;
}

.prediction-score-actions {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.prediction-score-actions .prediction-score {
  min-width: 96px;
}

.ai-icon-button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}

.ai-suggestion-modal {
  width: min(100%, 560px);
  border: 1px solid #dac6ff;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 26px 70px rgba(45, 15, 92, 0.24);
  padding: 26px;
  position: relative;
}

.ai-suggestion-heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ai-suggestion-heading > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2e8ff;
  color: #7c2df0;
}

.ai-suggestion-heading .icon {
  width: 24px;
  height: 24px;
}

.ai-suggestion-heading h2 {
  margin: 0;
  color: var(--ink-blue);
  font-size: 1.18rem;
}

.ai-suggestion-heading p,
.ai-suggestion-note {
  margin: 8px 0 0;
  color: #596280;
  line-height: 1.45;
}

.ai-suggestion-summary {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #e5d8ff;
  border-radius: 10px;
  background: #fbf7ff;
}

.ai-suggestion-summary p {
  margin: 0;
  color: #263354;
}

.ai-suggestion-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button-ai {
  background: linear-gradient(180deg, #8a35ff 0%, #6f20db 100%);
  border-color: #6f20db;
}

.button-ai-outline {
  border-color: #c7a7ff;
  color: #6f20db;
}

@media (max-width: 980px) {
  .match-summary-card {
    grid-template-columns: 1fr 1fr;
  }

  .match-summary-ai {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .tournament-intro-actions {
    justify-content: flex-start;
  }

  .ai-suggest-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .prediction-group-summary .ai-suggest-button--group {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .prediction-score-actions {
    width: min(100%, 172px);
  }

  .prediction-score-actions .prediction-score {
    min-width: 0;
    flex: 1;
  }

  .ai-icon-button {
    width: 40px;
    min-width: 40px;
  }

  .ai-suggestion-modal {
    padding: 22px 16px 18px;
  }

  .ai-suggestion-heading {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .ai-suggestion-heading > span {
    width: 40px;
    height: 40px;
  }

  .ai-suggestion-actions {
    flex-direction: column-reverse;
  }

  .ai-suggestion-actions .button {
    width: 100%;
  }
}

/* Ajuste de Sugerencia IA: maquetación estable en cards, listas y modales. */
.prediction-match-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
}

.prediction-match-versus {
  grid-template-columns: minmax(0, 1fr) minmax(146px, auto) minmax(0, 1fr) !important;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.prediction-score-actions {
  width: max-content;
  max-width: 100%;
  justify-self: center;
}

.prediction-score-actions .prediction-score {
  min-width: 98px;
  max-width: 126px;
}

.prediction-score-actions .prediction-score.is-empty {
  min-width: 126px;
  max-width: 148px;
}

.prediction-score-actions .prediction-score.is-empty strong {
  max-width: 82px;
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.prediction-match-outcome {
  width: 100%;
  min-width: 0;
}

.prediction-match-outcome strong,
.prediction-match-outcome span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.prediction-group-summary {
  grid-template-columns: minmax(0, 1fr) auto auto 24px !important;
  overflow: hidden;
}

.prediction-group-summary > span {
  min-width: 0;
}

.prediction-group-summary .ai-suggest-button--group {
  max-width: 100%;
  justify-self: end;
}

.prediction-list-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.prediction-list-table {
  min-width: 0;
}

.prediction-list-table .prediction-score-actions {
  margin: 0 auto;
}

.prediction-list-table .ai-icon-button {
  width: 34px;
  min-width: 34px;
  min-height: 38px;
}

.ai-suggestion-modal {
  width: min(100%, 680px);
  padding: 30px;
  overflow: visible;
}

.ai-suggestion-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.ai-suggestion-heading {
  padding-right: 34px;
}

.ai-suggestion-main {
  margin: 18px 0 0;
  color: #263354;
  line-height: 1.45;
}

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

.ai-suggestion-actions .button {
  width: auto;
  min-width: 132px;
  white-space: nowrap;
}

.ai-suggestion-actions .button-ai {
  min-width: 144px;
}

@media (max-width: 900px) {
  .prediction-group-summary {
    grid-template-columns: minmax(0, 1fr) auto 24px !important;
  }

  .prediction-group-summary .ai-suggest-button--group {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .news-card--featured .panel-card-header {
    align-items: flex-start;
  }

  .news-board-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .news-carousel-controls {
    display: none;
  }

  .news-carousel-track {
    grid-auto-columns: minmax(252px, 88%);
    gap: 12px;
    padding: 16px 16px 18px;
    scroll-padding-inline: 16px;
  }

  .panel-news-slide:not(.has-image) {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .panel-news-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .panel-news-body {
    padding: 14px;
  }

  .panel-news-body .news-action {
    width: 100%;
  }

  .news-item,
  .news-item.has-image {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 16px 18px;
  }

  .news-image {
    grid-column: 1 / -1;
  }

  .news-action {
    width: 100%;
  }

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

  .admin-news-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-news-action-buttons {
    width: 100%;
    flex-direction: column;
  }

  .admin-news-action-buttons .button {
    width: 100%;
  }

  .admin-news-item-actions {
    grid-column: 1 / -1;
    flex-direction: column;
  }

  .prediction-list-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .prediction-list-table td,
  .prediction-list-table td:nth-child(3),
  .prediction-list-table td:nth-child(4),
  .prediction-list-table td:nth-child(5),
  .prediction-list-table td:nth-child(6) {
    display: block;
    width: 100%;
    margin: 0 !important;
  }

  .prediction-list-match {
    align-items: flex-start;
    gap: 8px;
    justify-content: space-between;
  }

  .prediction-list-match-cell {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .prediction-list-match-cell .match-tv-channels--compact {
    justify-content: flex-start;
    max-width: 100%;
    white-space: normal;
  }

  .prediction-list-team {
    max-width: none;
    min-width: 0;
    flex: 1 1 0;
  }

  .prediction-list-table .prediction-score-actions {
    margin: 0;
  }

  .prediction-list-status,
  .prediction-list-points {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
}

@media (max-width: 640px) {
  .prediction-match-versus {
    grid-template-columns: minmax(0, 1fr) minmax(140px, auto) minmax(0, 1fr) !important;
    gap: 7px;
  }

  .prediction-score-actions {
    gap: 5px;
  }

  .prediction-score-actions .prediction-score {
    min-width: 92px;
    max-width: 104px;
  }

  .prediction-score-actions .prediction-score.is-empty {
    min-width: 130px;
    max-width: 142px;
  }

  .prediction-score-actions .prediction-score.is-empty strong {
    max-width: 78px;
  }

  .ai-icon-button {
    width: 36px;
    min-width: 36px;
    min-height: 40px;
  }

  .ai-suggestion-modal {
    width: min(100%, 430px);
    padding: 24px 16px 16px;
  }

  .ai-suggestion-heading {
    grid-template-columns: 40px minmax(0, 1fr);
    padding-right: 30px;
  }

  .ai-suggestion-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-suggestion-actions .button,
  .ai-suggestion-actions .button-ai {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .prediction-match-versus {
    grid-template-columns: minmax(0, 1fr) minmax(132px, auto) minmax(0, 1fr) !important;
  }

  .prediction-score-actions .prediction-score {
    min-width: 88px;
    max-width: 96px;
  }

  .prediction-score-actions .prediction-score.is-empty {
    min-width: 126px;
    max-width: 136px;
  }
}

/* Pulido final de predicciones de partidos: nombres, acciones y lista responsive. */
.prediction-match-versus {
  grid-template-columns: minmax(0, 1.18fr) minmax(108px, auto) minmax(0, 1.18fr) !important;
  gap: 10px !important;
}

.prediction-match-team,
.prediction-match-team .match-team,
.prediction-list-team,
.prediction-list-match {
  min-width: 0;
}

.prediction-match-team .match-team strong,
.prediction-team-name,
.prediction-list-team strong {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.prediction-match-team .match-team strong,
.prediction-team-name {
  font-size: 0.9rem;
  line-height: 1.18;
}

.prediction-list-team strong {
  font-size: 0.9rem;
  line-height: 1.18;
}

.prediction-match-team .match-team {
  gap: 8px;
}

.prediction-team-flag,
.prediction-match-team .match-team span {
  font-size: 1.42rem;
}

.prediction-score-actions {
  width: max-content;
  max-width: 118px;
  gap: 5px;
}

.prediction-score-actions .prediction-score {
  min-width: 82px;
  max-width: 98px;
  min-height: 42px;
  padding-inline: 8px;
}

.prediction-score-actions .ai-icon-button {
  width: 36px;
  min-width: 36px;
  min-height: 42px;
}

.prediction-score-empty-shell {
  width: min(118px, 100%);
  justify-self: center;
  display: grid;
  gap: 6px;
}

.prediction-score-empty-label {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 40px;
  padding: 7px 10px;
}

.prediction-score-empty-label strong {
  max-width: 100%;
  font-size: 0.78rem !important;
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.prediction-score-empty-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.prediction-mini-action,
.prediction-score-empty-actions .ai-icon-button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}

.prediction-mini-action {
  border: 1px solid #c8d1e2;
  background: #f9fbfe;
  color: var(--fusion-blue);
  box-shadow: none;
}

.prediction-mini-action:hover:not(:disabled) {
  border-color: var(--fusion-blue);
  background: var(--soft-blue);
}

.prediction-mini-action .icon,
.prediction-score-empty-actions .ai-icon-button .icon {
  width: 18px;
  height: 18px;
}

.prediction-list-match-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.prediction-list-match-cell .match-tv-channels--compact {
  justify-self: end;
}

@media (max-width: 760px) {
  .prediction-list-table tr {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .prediction-list-table td,
  .prediction-list-table td:nth-child(3),
  .prediction-list-table td:nth-child(4),
  .prediction-list-table td:nth-child(5),
  .prediction-list-table td:nth-child(6) {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .prediction-list-table td::before {
    margin-bottom: 5px;
  }

  .prediction-list-table td:nth-child(2)::before {
    display: block;
    content: "Partido";
  }

  .prediction-list-date-block {
    gap: 4px;
  }

  .prediction-list-date-block small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .prediction-list-match-cell {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .prediction-list-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    width: 100%;
  }

  .prediction-list-team {
    max-width: none;
  }

  .prediction-list-team strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .prediction-list-match-cell .match-tv-channels--compact {
    justify-self: stretch;
    justify-content: flex-start;
    white-space: normal;
  }

  .prediction-list-table .prediction-score,
  .prediction-list-table .prediction-score-actions,
  .prediction-list-table .prediction-score-empty-shell {
    margin: 0;
  }

  .prediction-list-table .prediction-score-empty-shell {
    width: min(132px, 100%);
  }

  .prediction-list-status,
  .prediction-list-points,
  .match-community-trend-compact {
    display: inline-flex;
    max-width: 100%;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  .prediction-match-card {
    padding-inline: 12px;
  }

  .prediction-match-versus {
    grid-template-columns: minmax(0, 1fr) minmax(104px, auto) minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .prediction-match-team {
    gap: 6px;
  }

  .prediction-match-team .match-team strong,
  .prediction-team-name {
    font-size: 0.82rem;
  }

  .prediction-list-team strong {
    font-size: 0.84rem;
  }

  .prediction-team-flag,
  .prediction-match-team .match-team span {
    font-size: 1.24rem;
  }

  .prediction-score-actions {
    max-width: 104px;
  }

  .prediction-score-actions .prediction-score {
    min-width: 68px;
    max-width: 76px;
  }

  .prediction-score-actions .prediction-score strong {
    font-size: 0.96rem;
  }

  .prediction-score-actions .ai-icon-button {
    width: 32px;
    min-width: 32px;
  }

  .prediction-score-empty-shell {
    width: 104px;
  }

  .prediction-score-empty-label strong {
    font-size: 0.74rem !important;
  }

  .prediction-score-empty-actions {
    gap: 5px;
  }

  .prediction-mini-action,
  .prediction-score-empty-actions .ai-icon-button {
    min-height: 32px;
  }
}

@media (max-width: 390px) {
  .prediction-match-versus {
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto) minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .prediction-match-team .match-team strong,
  .prediction-team-name {
    font-size: 0.76rem;
  }

  .prediction-list-team strong {
    font-size: 0.78rem;
  }

  .prediction-team-flag,
  .prediction-match-team .match-team span {
    font-size: 1.12rem;
  }

  .prediction-score-empty-shell {
    width: 96px;
  }
}
