*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

:root {
  --app-header-block-start: max(0.75rem, env(safe-area-inset-top, 0px));
  --app-header-block-end: 0.75rem;
  --app-header-inner: 44px;
  --app-header-height: calc(
    var(--app-header-block-start) + var(--app-header-inner) + var(--app-header-block-end)
  );
  --mock-banner-height: 1.65rem;
}

body {
  background-color: #000;
  color: #f1f5f9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Loader ── */

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding: max(1.25rem, env(safe-area-inset-top))
           max(1.25rem, env(safe-area-inset-right))
           max(1.25rem, env(safe-area-inset-bottom))
           max(1.25rem, env(safe-area-inset-left));
  background-color: #000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 22rem;
  text-align: center;
  cursor: pointer;
}

.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-line {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #93c5fd 0%, #2563eb 45%, #1e40af 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2.5s ease-in-out infinite;
}

.title-line.accent {
  font-size: 1.65rem;
  letter-spacing: 0.14em;
}

.year {
  margin-top: 0.35rem;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #60a5fa;
  text-shadow:
    0 0 8px rgba(96, 165, 250, 0.8),
    0 0 24px rgba(37, 99, 235, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.loading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #3b82f6;
}

.dots span {
  animation: blink 1.4s infinite both;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

/* ── App shell ── */

[hidden] {
  display: none !important;
}

.app {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease 0.2s, visibility 0.5s ease 0.2s;
}

.app.is-visible {
  opacity: 1;
  visibility: visible;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
}

.app-header__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #60a5fa;
}

.mock-banner {
  position: fixed;
  top: var(--app-header-height);
  left: 0;
  right: 0;
  z-index: 99;
  margin: 0;
  padding: 0.35rem 1rem;
  min-height: var(--mock-banner-height);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.92);
  border-bottom: 1px solid #92400e;
}

body.has-mock-banner .main {
  padding-top: calc(var(--app-header-height) + var(--mock-banner-height));
}

body.has-mock-banner .section {
  scroll-margin-top: calc(var(--app-header-height) + var(--mock-banner-height));
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #60a5fa;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(280px, 85vw);
  height: 100%;
  padding: 1.5rem 1.25rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  background: #111;
  border-left: 1px solid #222;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__title {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-drawer__link {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-drawer__link:hover,
.nav-drawer__link:focus-visible {
  background: #1a1a1a;
  color: #60a5fa;
  outline: none;
}

.nav-drawer__divider {
  height: 1px;
  margin: 0.75rem 0;
  background: #222;
  list-style: none;
}

.nav-drawer__link--accent {
  color: #93c5fd;
  font-weight: 600;
}

/* ── Main content ── */

.main {
  padding-top: var(--app-header-height);
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.section {
  padding: 2rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  scroll-margin-top: var(--app-header-height);
}

.section + .section {
  border-top: 1px solid #1a1a1a;
}

.section-heading {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #93c5fd 0%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Collapsible sections ── */

.section-panel__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: margin-bottom 0.28s ease;
}

.section-panel__trigger .section-heading {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.section-panel:not(.is-open) .section-panel__trigger {
  margin-bottom: 0;
}

.section-panel__chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.28s ease;
}

.section-panel.is-open .section-panel__chevron {
  transform: rotate(180deg);
}

.section-panel__body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.section-panel.is-open .section-panel__body-wrap {
  grid-template-rows: 1fr;
}

.section-panel__body {
  overflow: hidden;
  min-height: 0;
}

.section-panel__action {
  display: block;
  margin: -0.5rem 0 1.25rem;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  .section-panel__trigger,
  .section-panel__body-wrap,
  .section-panel__chevron {
    transition: none;
  }
}

/* ── Avatar ── */

.avatar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  overflow: visible;
}

.avatar--sm {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.avatar--md {
  width: 56px;
  height: 56px;
  font-size: 1.1rem;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.25rem;
}

.avatar__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
}

.avatar__inner--photo {
  background: #111;
  border-color: #444;
  overflow: hidden;
}

.avatar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar__inner--emoji {
  background: #1a1a1a;
  border-color: #444;
}

.avatar__emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.avatar--sm .avatar__emoji {
  font-size: 1.15rem;
}

.avatar--lg .avatar__emoji {
  font-size: 1.65rem;
}

/* ── Team display name ── */

.team-display__name {
  font-weight: 700;
  color: #f8fafc;
}

.team-display__owner {
  font-size: 0.72em;
  font-weight: 500;
  color: #94a3b8;
}

.team-display--stacked {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.team-display--stacked .team-display__name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── Ranked list ── */

.rank-list {
  background: #111;
  border-radius: 16px;
  border: 1px solid #1a1a1a;
  overflow: hidden;
}

.rank-item + .rank-item {
  border-top: 1px solid #1a1a1a;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 44px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease;
}

.rank-row:hover,
.rank-row:focus-visible {
  background: #1a1a1a;
  outline: none;
}

.rank-row__toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.15s ease;
}

.rank-row:hover .rank-row__toggle,
.rank-row:focus-visible .rank-row__toggle {
  color: #93c5fd;
}

.rank-row__chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.rank-item.is-open .rank-row__chevron {
  transform: rotate(180deg);
}

.rank-panel {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
}

.rank-country-table {
  width: 100%;
}

.rank-country-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 1rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.rank-country-header.rank-country-row--with-rating {
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem 0.75rem;
}

.rank-country-header span:not(:first-child) {
  text-align: right;
}

.rank-country-header + .rank-country-row {
  border-top: 1px solid #1a1a1a;
}

.rank-country-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 1rem;
}

.rank-country-row--with-rating {
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem 0.75rem;
}

.rank-country-row + .rank-country-row {
  border-top: 1px solid #1a1a1a;
}

.rank-country-item + .rank-country-item {
  border-top: 1px solid #1a1a1a;
}

.rank-country-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 1rem;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rank-country-trigger:hover,
.rank-country-trigger:focus-visible {
  background: #141414;
  outline: none;
}

.rank-country-row__toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #64748b;
  pointer-events: none;
  transition: color 0.15s ease;
}

.rank-country-trigger:hover .rank-country-row__toggle,
.rank-country-trigger:focus-visible .rank-country-row__toggle {
  color: #93c5fd;
}

.rank-country-row__chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.rank-country-item.is-open .rank-country-row__chevron {
  transform: rotate(180deg);
}

.rank-country-trigger .rank-country-row__name {
  flex: 1;
  min-width: 0;
}

.rank-country-trigger .rank-country-row__points {
  flex-shrink: 0;
}

.rank-country-matches {
  padding: 0.5rem 0.75rem 0.75rem;
  background: #050505;
  border-top: 1px solid #1a1a1a;
}

.rank-country-matches .empty-state {
  margin: 0;
  padding: 0.5rem 0.25rem;
  font-size: 0.8rem;
}

.match-lookup-table--nested {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 12px;
  font-size: 0.72rem;
}

.match-lookup-table--nested .stats-table__header,
.match-lookup-table--nested .stats-table__row {
  padding: 0.5rem 0.55rem;
  font-size: 0.72rem;
}

.match-lookup-table--nested .stats-table__header {
  font-size: 0.58rem;
}

.rank-country-row__name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.rank-country-row__flag {
  flex-shrink: 0;
}

.rank-country-row__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-country-row__pick {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.rank-country-row__points {
  font-size: 0.85rem;
  font-weight: 700;
  color: #60a5fa;
  text-align: right;
  flex-shrink: 0;
}

.rank-country-row__rating {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: right;
  flex-shrink: 0;
  min-width: 2rem;
}

.rank-country-row__rating--positive {
  color: #4ade80;
}

.rank-country-row__rating--negative {
  color: #f87171;
}

/* ── Awards ── */

.admin-display-controls,
.awards-admin-control {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: #111;
  border: 1px solid #262626;
  border-radius: 12px;
}

.admin-display-controls .scoring-config__check-label + .scoring-config__check-label {
  margin-top: 0.65rem;
}

.awards-heading {
  margin: 1.5rem 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
}

.awards-list {
  background: #111;
  border-radius: 16px;
  border: 1px solid #1a1a1a;
  overflow: hidden;
}

.award-item + .award-item {
  border-top: 1px solid #1a1a1a;
}

.award-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 44px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease;
}

.award-row:hover,
.award-row:focus-visible {
  background: #1a1a1a;
  outline: none;
}

.award-row__toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.15s ease;
}

.award-row:hover .award-row__toggle,
.award-row:focus-visible .award-row__toggle {
  color: #93c5fd;
}

.award-row__chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.award-item.is-open .award-row__chevron {
  transform: rotate(180deg);
}

.award-panel {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
}

.award-standings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
}

.award-standings__row + .award-standings__row {
  border-top: 1px solid #141414;
}

.award-standings__row--leader {
  background: rgba(147, 197, 253, 0.06);
}

.award-standings__owner {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.award-row__value,
.award-standings__value {
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  color: #93c5fd;
}

.award-row__icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
}

.award-row__icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  object-fit: cover;
}

.award-row__icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border: 1px solid #262626;
  font-size: 1.15rem;
  line-height: 1;
}

.award-row__icon-wrap.has-image .award-row__icon--placeholder {
  display: none;
}

.award-row__info {
  min-width: 0;
}

.award-row__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.award-row__desc {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.award-row__owner {
  flex-shrink: 0;
  max-width: 11rem;
}

.award-row__owner-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row__num {
  flex-shrink: 0;
  width: 2.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.rank-row__num--tied {
  font-size: 0.8rem;
}

.rank-row__info {
  flex: 1;
  min-width: 0;
}

.rank-row__name {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.rank-row__label {
  min-width: 0;
}

.rank-row__label .team-display__name {
  font-size: 1.05rem;
}

.rank-row__label .team-display__owner {
  font-size: 0.78rem;
}

.rank-row__still-playing {
  font-size: 0.78rem;
  color: #60a5fa;
  font-weight: 500;
}

.rank-row__eliminated {
  font-size: 0.78rem;
  color: #f87171;
  font-weight: 600;
}

#leaderboard .rank-country-row--eliminated .rank-country-row__text {
  text-decoration: line-through;
  color: #f87171;
}

.rank-row__points {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #60a5fa;
}

/* ── Side bets ── */

.form-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.form-select,
.form-input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0a0a0a;
  color: #f1f5f9;
  font-size: 1rem;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.form-select:focus-visible,
.form-input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #222;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-option:has(input:checked) {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.radio-option input {
  accent-color: #2563eb;
  width: 18px;
  height: 18px;
}

.text-link {
  display: inline-block;
  margin: -0.75rem 0 1.25rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #60a5fa;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover,
.text-link:focus-visible {
  color: #93c5fd;
  outline: none;
}

.btn-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid #333;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  border-color: #555;
  color: #e2e8f0;
}

.edit-intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #94a3b8;
}

.edit-hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.8rem;
  color: #64748b;
}

.form-group .edit-hint {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.avatar-option + .avatar-option {
  margin-top: 1.25rem;
}

.avatar-option__label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.avatar-edit-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.emoji-keyboard-input {
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

.avatar-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.avatar-upload__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

.btn-text {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f87171;
  cursor: pointer;
}

.btn-text:hover {
  color: #fca5a5;
}

.emoji-picker__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem;
  border: 2px solid #333;
  border-radius: 12px;
  background: #0a0a0a;
  color: #f1f5f9;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.emoji-picker__btn:hover {
  border-color: #475569;
}

.emoji-picker__btn.is-selected {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.15);
}

.emoji-picker__initials {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.form-error {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f87171;
}

.edit-panel {
  padding-top: var(--app-header-height);
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  min-height: 100dvh;
}

.edit-panel__inner {
  max-width: 640px;
  margin: 0 auto;
}

.bets-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.matchday-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.matchday-subheading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.matchday-group__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 1rem;
}

.match-card__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.75rem;
}

.match-card__left {
  min-width: 0;
}

.match-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 100%;
}

.match-card__scores {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.match-card__datetime {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #60a5fa;
}

.match-card__teams {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
}

.match-card__team-side {
  white-space: nowrap;
}

.match-card__team {
  white-space: nowrap;
}

.match-card__teams .team-display__owner {
  font-size: calc(0.72em + 2pt);
}

.match-card__vs {
  font-weight: 500;
  color: #64748b;
}

.match-card__marker {
  display: inline-block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.match-card__marker--win {
  color: #4ade80;
}

.match-card__marker--loss {
  color: #f87171;
}

.match-card__marker--draw {
  color: #60a5fa;
}

.match-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.match-card__score {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.match-card__score--pk {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

.match-card__badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.match-card__badge--scheduled {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.match-card__badge--live {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.match-card__badge--final {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.bet-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 1rem;
}

.bet-card__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.75rem;
}

.bet-card__left {
  min-width: 0;
}

.bet-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-height: 100%;
  justify-content: space-between;
  gap: 0.35rem;
}

.bet-card__match {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.bet-card__result {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
}

.bet-card__winner {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.bet-card__loser {
  font-size: 0.8rem;
  color: #64748b;
}

.bet-card__role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bet-card__role--winner {
  color: #4ade80;
}

.bet-card__role--loser {
  color: #94a3b8;
}

.bet-card__desc {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.bet-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.bet-card__settle-btn,
.bet-card__settle-cancel {
  margin: 0;
}

.bet-card__settle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
}

.bet-card__settle-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.bet-card__settle-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bet-card__settle-option {
  min-height: 32px;
  padding: 0.25rem 0.65rem;
  border: 1px solid #333;
  border-radius: 999px;
  background: #0a0a0a;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.bet-card__settle-option:hover:not(:disabled) {
  border-color: #2563eb;
  color: #60a5fa;
}

.bet-card__settle-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bet-card__admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.bet-card__edit-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #1a1a1a;
}

.bet-card__edit-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bet-card__edit-actions .btn-primary,
.bet-card__edit-actions .btn-secondary {
  margin-top: 0;
}

.bet-card__stake {
  margin: auto 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #60a5fa;
}

.bets-stats-table {
  margin-top: 1.5rem;
  background: #111;
  border-radius: 16px;
  border: 1px solid #1a1a1a;
  overflow: hidden;
}

.bets-stats-header,
.bets-stats-row {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) 4.25rem 2.75rem 2.75rem 4.5rem;
  gap: 0.5rem;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

.bets-stats-header {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: #0a0a0a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.bets-stats-header span:not(:first-child) {
  text-align: right;
}

.bets-stats-row {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  min-height: 44px;
}

.bets-stats-row + .bets-stats-row {
  border-top: 1px solid #1a1a1a;
}

.bets-stats-row__owner {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.bets-stats-row__val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: right;
}

.bets-stats-row__val--positive {
  color: #4ade80;
}

.bets-stats-row__val--negative {
  color: #f87171;
}

/* ── Head 2 Head & Match Lookup tables ── */

.h2h__selectors {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.h2h__selectors .form-group {
  margin-bottom: 0;
}

.stats-table {
  background: #111;
  border-radius: 16px;
  border: 1px solid #1a1a1a;
  overflow: hidden;
  margin-bottom: 1rem;
}

.stats-table__header,
.stats-table__row {
  display: grid;
  gap: 0.35rem 0.5rem;
  align-items: start;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.stats-table__header {
  background: #0a0a0a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.stats-table__header span,
.stats-table__row span {
  min-width: 0;
}

.stats-table__row + .stats-table__row {
  border-top: 1px solid #1a1a1a;
}

.stats-table__label {
  font-weight: 600;
  color: #f1f5f9;
}

.stats-table__date {
  color: #94a3b8;
  font-size: 0.72rem;
}

.stats-table__match {
  color: #f1f5f9;
  font-weight: 500;
}

.stats-table__match .match-card__vs {
  font-size: 0.72rem;
}

.stats-table__match .team-display__owner {
  font-size: calc(0.72em + 2pt);
}

.h2h-summary-table__row {
  grid-template-columns: minmax(4rem, 1.2fr) minmax(2.5rem, 1fr) minmax(2.5rem, 1fr);
}

.h2h-summary-table__row--owners {
  align-items: end;
}

.h2h-summary-table__owner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.h2h-summary-table__owner-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.h2h-summary-table__owner-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: none;
  letter-spacing: normal;
}

.h2h-summary-table__metric {
  font-weight: 600;
  color: #60a5fa;
}

.h2h-summary-table__val {
  text-align: center;
  font-weight: 600;
  color: #f1f5f9;
}

.h2h-summary-table__val--better {
  color: #4ade80;
}

.h2h-summary-table__val--worse {
  color: #f87171;
}

.h2h-games-table__row {
  grid-template-columns: minmax(2.75rem, 0.75fr) minmax(4rem, 2.5fr) minmax(3rem, 0.8fr) minmax(2rem, 0.65fr);
}

.h2h-games-table__match {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.h2h-games-table__stage {
  display: block;
}

.h2h-games-table__row span:nth-child(3),
.h2h-games-table__score {
  text-align: right;
  white-space: nowrap;
}

.h2h-games-table__row span:nth-child(4) {
  text-align: right;
}

.h2h-games-table__group + .h2h-games-table__group {
  border-top: 1px solid #1a1a1a;
}

.h2h-games-table__group .h2h-games-table__row {
  border-top: none;
}

.h2h-breakdown-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.h2h-breakdown-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.h2h-breakdown-side__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: right;
  width: 100%;
  max-width: 14rem;
}

.h2h-breakdown-side .fantasy-breakdown {
  width: 100%;
  max-width: 14rem;
  margin: 0;
}

@media (min-width: 480px) {
  .h2h-breakdown-row {
    grid-template-columns: 1fr 1fr;
  }
}

.match-lookup-table {
  margin-top: 1rem;
}

.match-lookup-table__group + .match-lookup-table__group {
  border-top: 1px solid #1a1a1a;
}

.match-lookup-table__group .match-lookup-table__row {
  border-top: none;
}

.match-lookup-table__row {
  grid-template-columns: minmax(3.25rem, 0.9fr) minmax(3rem, 2fr) minmax(1.25rem, 0.35fr) minmax(3rem, 0.8fr) minmax(2rem, 0.65fr);
}

.match-lookup-table__opponent {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.match-lookup-table__stage {
  display: block;
}

.match-lookup-table__outcome {
  text-align: center;
  white-space: nowrap;
}

.match-lookup-breakdown-row {
  padding: 0 0.75rem 0.75rem;
  background: rgba(15, 23, 42, 0.35);
  border-top: 1px dashed #252525;
}

.match-lookup-breakdown-row .fantasy-breakdown {
  margin: 0;
  max-width: 14rem;
  margin-left: auto;
}

.match-lookup-table__row span:nth-child(4),
.match-lookup-table__score {
  text-align: right;
  white-space: nowrap;
}

.match-lookup-table__row span:nth-child(5),
.match-lookup-table__pts {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.match-lookup-fantasy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.match-lookup-fantasy__total {
  font-weight: 700;
}

.fantasy-breakdown-toggle {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent, #38bdf8);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fantasy-breakdown {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0.35rem 0.5rem;
  width: 100%;
  max-width: 9rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.35rem;
  font-size: 0.72rem;
}

.fantasy-breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #cbd5e1;
}

.fantasy-breakdown-unavailable {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  font-style: italic;
}

.scoring-config__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1rem;
}

.scoring-config__stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
}

.scoring-config__stages {
  border: 0;
  margin: 1rem 0 0;
  padding: 0;
}

.scoring-config__stages .form-label {
  margin-bottom: 0.75rem;
}

.scoring-config__checkbox {
  margin-top: 1rem;
}

.scoring-config__check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
}

.scoring-config__check-label input {
  margin-top: 0.2rem;
}

.form-success {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4ade80;
}

@media (min-width: 480px) {
  .scoring-config__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.stats-table__stage {
  color: #94a3b8;
  font-size: 0.72rem;
}

.status-badge--draw {
  background: rgba(100, 116, 139, 0.25);
  color: #94a3b8;
}

.status-badge--scheduled {
  background: rgba(100, 116, 139, 0.2);
  color: #64748b;
}

.status-badge--live {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.status-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge--open {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

.status-badge--won {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
}

.status-badge--lost {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
}

.subheading {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* ── Roster accordion ── */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  color: #f1f5f9;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.accordion-trigger__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.accordion-trigger__name .team-display__name {
  font-size: 1.05rem;
}

.accordion-trigger__name .team-display__owner {
  font-size: 0.78rem;
}

.accordion-trigger__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: transform 0.25s ease;
}

.accordion-item.is-open .accordion-trigger__chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  display: none;
  padding: 0 1rem 1rem;
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.roster-owner-stats {
  margin-bottom: 0.75rem;
}

.roster-owner-stats__table {
  margin-bottom: 0;
}

.roster-owner-stats__row {
  grid-template-columns: 1fr auto;
}

.roster-owner-stats__label {
  font-weight: 600;
  color: #60a5fa;
}

.roster-owner-stats__val {
  font-weight: 600;
  text-align: right;
}

.roster-owner-stats__val--goals-for,
.roster-owner-stats__val--win {
  color: #4ade80;
}

.roster-owner-stats__val--goals-against,
.roster-owner-stats__val--loss {
  color: #f87171;
}

.roster-owner-stats__val--draw {
  color: #60a5fa;
}

.roster-owner-stats__val--matches,
.roster-owner-stats__val--sep {
  color: #94a3b8;
}

.roster-owner-stats__val--record {
  white-space: nowrap;
}

/* ── All Countries ── */

.perf-table {
  background: #111;
  border-radius: 16px;
  border: 1px solid #1a1a1a;
  overflow: hidden;
}

.perf-header {
  display: grid;
  grid-template-columns: 1.2fr 4.5rem 2.5rem minmax(4.5rem, auto) minmax(2.5rem, auto);
  gap: 0.5rem;
  padding: 0 1rem;
  background: #0a0a0a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.perf-header__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0.65rem 0;
  border: none;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.perf-header__btn:first-child {
  justify-content: flex-start;
}

.perf-header__btn.is-active {
  color: #e2e8f0;
}

.perf-row {
  display: grid;
  grid-template-columns: 1.2fr 4.5rem 2.5rem minmax(4.5rem, auto) minmax(2.5rem, auto);
  gap: 0.5rem;
  align-items: center;
  padding: 0.85rem 1rem;
  min-height: 44px;
}

.perf-row + .perf-row {
  border-top: 1px solid #1a1a1a;
}

.perf-row__country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.perf-row__flag {
  flex-shrink: 0;
}

.perf-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.perf-row__owner {
  font-size: 0.8rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.perf-row__val {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: #94a3b8;
}

.perf-row__val--positive {
  color: #4ade80;
}

.perf-row__val--negative {
  color: #f87171;
}

/* ── Rules ── */

.rules-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rules-block {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 1.25rem;
}

.rules-block__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #60a5fa;
}

.rules-block__body {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.rules-block__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
}

.rules-block__list li + li {
  margin-top: 0.35rem;
}

/* ── Responsive ── */

@media (max-width: 479px) {
  .award-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .award-row__owner,
  .award-row__owner--tie {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    max-width: none;
  }

  .award-row__owner-label {
    text-align: left;
  }
}

@media (min-width: 480px) {
  .title-line {
    font-size: 1.55rem;
  }

  .title-line.accent {
    font-size: 1.9rem;
  }

  .year {
    font-size: 2.75rem;
  }

  .loading {
    font-size: 1rem;
  }

  .section {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }

  .section-heading {
    font-size: 1.75rem;
  }

}

.admin-matches-table__row {
  grid-template-columns: minmax(2rem, 0.5fr) minmax(4rem, 1.2fr) minmax(4rem, 1.2fr) minmax(3rem, 0.8fr) minmax(5rem, 1.3fr);
}

.audit-trail-table__row {
  grid-template-columns: minmax(5rem, 1.1fr) minmax(3rem, 0.7fr) minmax(4rem, 0.9fr) minmax(6rem, 2fr);
}

@media (min-width: 640px) {
  .main {
    max-width: 640px;
    margin: 0 auto;
  }
}
