:root {
  --ink: #102318;
  --muted: #65736b;
  --field: #f5f8f2;
  --line: #d9e2d8;
  --grass: #0f7b3a;
  --grass-dark: #075f2c;
  --lime: #8cc63f;
  --gold: #f5c451;
  --red: #c93e37;
  --blue: #1f5f99;
  --navy: #12335f;
  --paper: #ffffff;
  --bg: #eef5ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(135deg, rgba(15, 123, 58, .12), rgba(245, 196, 81, .16)),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.brand-icon img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  object-position: center;
}

.event-icon {
  box-shadow: 0 0 0 4px rgba(15, 123, 58, .12);
}

.ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
  background:
    radial-gradient(circle at 50% 50%, #111 0 18%, transparent 19%),
    conic-gradient(#fff 0 20%, #111 20% 30%, #fff 30% 50%, #111 50% 60%, #fff 60% 80%, #111 80% 90%, #fff 90%);
  border: 2px solid var(--ink);
}

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

nav a,
.button,
button,
summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

nav a:hover,
.button:hover,
button:hover,
summary:hover {
  border-color: var(--grass);
}

.pill,
.primary {
  background: var(--grass);
  color: white;
  border-color: var(--grass-dark);
}

.danger {
  background: var(--red);
  color: white;
  border-color: #9f2c27;
}

.small {
  padding: 8px 10px;
  font-size: 14px;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  grid-template-areas:
    "copy art"
    "rule art";
  align-items: center;
  gap: 28px;
  padding: 48px;
  border-radius: 8px;
  color: white;
  background:
    radial-gradient(circle at 82% 20%, rgba(245, 196, 81, .22), transparent 28%),
    linear-gradient(rgba(2, 15, 10, .84), rgba(5, 38, 21, .78)),
    linear-gradient(110deg, #173f8f 0 18%, #ffffff 18% 23%, #10833c 23% 52%, #ffffff 52% 57%, #d81f26 57% 78%, #c81820 78%);
  overflow: hidden;
}

.hero > div:first-child {
  grid-area: copy;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.6;
}

.hero .button {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(255, 255, 255, .72);
}

.hero .button.primary {
  color: #ffffff;
  background: #07833d;
  border-color: #0b6b35;
}

.hero .button:hover {
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

.kicker-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

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

.score-card,
.panel,
.match-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 56, 31, .08);
}

.score-card {
  color: var(--ink);
  grid-area: rule;
  padding: 24px;
  max-width: 430px;
}

.score-card span {
  color: var(--muted);
  font-weight: 700;
}

.score-card strong {
  display: block;
  margin: 12px 0;
  color: var(--grass-dark);
  font-size: 28px;
}

.score-card p {
  color: #314139;
  line-height: 1.55;
}

.hero-showcase {
  grid-area: art;
  position: relative;
  align-self: stretch;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.hero-showcase img {
  width: min(100%, 430px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}

.host-colors {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.host-colors span {
  height: 7px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 0, 0, .35);
}

.host-colors span:nth-child(1) {
  background: var(--blue);
}

.host-colors span:nth-child(2) {
  background: var(--grass);
}

.host-colors span:nth-child(3) {
  background: var(--red);
}

.panel {
  padding: 22px;
  margin-top: 18px;
}

.auth {
  max-width: 460px;
  margin: 40px auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 18px;
}

h1,
h2 {
  margin: 0 0 14px;
}

.section-head h1 {
  font-size: 34px;
  margin: 0;
}

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

.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8df;
  border: 1px solid #efd27b;
  font-weight: 700;
}

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

.grid > *,
.panel {
  min-width: 0;
}

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

.match-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .75fr) auto;
  align-items: start;
  gap: 18px;
  padding: 18px;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.match-card h2 {
  margin-top: 10px;
  font-size: 22px;
}

.match-card small {
  color: var(--muted);
}

.match-card p span {
  color: var(--muted);
  font-weight: 700;
}

.deadline {
  display: grid;
  gap: 3px;
  width: fit-content;
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef8f0;
  border: 1px solid #cce9d3;
}

.deadline strong {
  color: var(--grass-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.countdown {
  font-weight: 900;
  color: var(--ink);
}

.deadline small {
  color: var(--muted);
}

.deadline.is-locked {
  background: #ffe8e6;
  border-color: #ffc4bf;
}

.deadline.is-locked strong,
.deadline.is-locked .countdown {
  color: var(--red);
}

.match-votes {
  min-height: 100%;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbf8, #eef6f0);
  border: 1px solid var(--line);
}

.match-votes h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.people-guesses {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 61, 46, .35) transparent;
}

.people-guesses::-webkit-scrollbar {
  width: 8px;
}

.people-guesses::-webkit-scrollbar-thumb {
  background: rgba(11, 61, 46, .28);
  border-radius: 999px;
}

.people-guesses::-webkit-scrollbar-track {
  background: transparent;
}

.people-guesses {
  padding: 0;
  margin: 0;
  list-style: none;
}

.people-guesses li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.guess-user {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 14px;
}

.guess-pick {
  color: var(--grass-dark);
  font-weight: 900;
  flex: 0 0 auto;
  font-size: 14px;
}

.guess-empty {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.match-status {
  display: flex;
  justify-content: flex-end;
}

.lock {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.open {
  color: #0b6d35;
  background: #dff4e8;
}

.locked {
  color: #8f2b25;
  background: #ffe1df;
}

.form,
.guess-form,
.inline {
  display: grid;
  gap: 12px;
}

.guess-form {
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  margin-top: 14px;
}

.inline {
  grid-template-columns: auto auto;
  align-items: center;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input[type="radio"] {
  width: auto;
  min-height: auto;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

details {
  min-width: min(280px, 70vw);
}

details .form {
  margin-top: 12px;
  padding: 14px;
  background: var(--field);
  border-radius: 8px;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  main {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "art"
      "rule";
    min-height: auto;
    padding: 26px;
  }

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

  .hero-showcase {
    min-height: 280px;
  }

  .score-card {
    max-width: none;
  }

  .section-head,
  .grid.two {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guess-form {
    grid-template-columns: 1fr;
  }

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

  .match-status {
    justify-content: flex-start;
  }

  .match-votes {
    min-height: auto;
  }

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

@media (max-width: 480px) {
  nav a,
  .button,
  button,
  summary {
    width: 100%;
    text-align: center;
  }

  nav {
    width: 100%;
  }

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

  .panel,
  .match-card {
    padding: 16px;
  }
}

/* Premium 2026 refresh */
:root {
  --ink: #111827;
  --muted: #667085;
  --field: #f8fafb;
  --line: #e5e7eb;
  --grass: #16A34A;
  --grass-dark: #0B3D2E;
  --gold: #d6a937;
  --paper: #ffffff;
  --bg: #F5F7F8;
}

body {
  background: var(--bg);
  color: var(--ink);
}

main {
  width: 100%;
  max-width: 1180px;
  padding: 34px 28px 64px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 76px;
  padding: 0 26px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.brand {
  width: 270px;
  font-size: 18px;
}

.brand strong {
  color: var(--grass);
}

.brand-icon {
  width: 52px;
  height: 52px;
  border: 0;
  box-shadow: 0 8px 24px rgba(11, 61, 46, .18);
  background: transparent;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.main-nav {
  flex: 1;
  justify-content: center;
  gap: 22px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 26px 10px 24px;
  color: #1f2937;
  font-size: 17px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.main-nav a.active {
  color: var(--grass-dark);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--grass);
}

.top-actions {
  width: 270px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.icon-button {
  position: relative;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #f2f5f4;
}

.icon-button span {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--grass);
  color: white;
  font-size: 11px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e5ece8, #ffffff);
  color: var(--grass-dark);
  font-weight: 900;
}

.avatar.big {
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, #9de25f, #277a28);
  color: white;
  font-size: 30px;
}

.user-menu {
  position: relative;
}

.user-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
}

.menu-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 190px;
  display: grid;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .16);
}

.menu-popover a {
  padding: 11px 12px;
  border-radius: 10px;
}

.menu-popover a:hover {
  background: #eef8f0;
}

.app-shell {
  min-height: 100vh;
  padding-top: 76px;
  padding-left: 300px;
}

.public-shell {
  padding-top: 76px;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 76px;
  bottom: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 20px;
  color: white;
  background:
    radial-gradient(circle at 100% 90%, rgba(214, 169, 55, .22), transparent 28%),
    linear-gradient(155deg, #08291f, #041811 72%);
  overflow-y: auto;
}

.side-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.side-logo img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.hello-card,
.performance-card {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.hello-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.hello-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  color: white;
  font-weight: 800;
}

.side-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .18));
}

.side-nav a.active,
.side-nav a:hover {
  background: rgba(22, 163, 74, .22);
  box-shadow: inset 4px 0 0 var(--grass);
}

.performance-card {
  margin-top: auto;
  padding: 20px;
}

.performance-card small {
  color: rgba(255,255,255,.78);
  font-weight: 900;
}

.performance-card > strong,
.rate {
  display: block;
  margin-top: 12px;
  color: #4ade80;
  font-size: 22px;
  text-transform: uppercase;
}

.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 14px;
}

.performance-grid span {
  color: rgba(255,255,255,.82);
}

.performance-grid b {
  display: block;
  margin-top: 6px;
  color: #4ade80;
  font-size: 18px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.progress i {
  display: block;
  height: 100%;
  background: #4ade80;
  border-radius: inherit;
}

.rate {
  font-size: 30px;
}

.performance-card p {
  margin: 4px 0 0;
  color: white;
}

.page-title {
  align-items: center;
  margin: 4px 0 26px;
}

.page-title h1 {
  font-size: 32px;
}

.page-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filters select {
  min-width: 190px;
  background: white;
  border-radius: 12px;
}

.match-list {
  gap: 16px;
}

.match-card {
  grid-template-columns: 118px minmax(0, 1fr) 120px;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
}

.match-date {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  color: #111827;
}

.match-date strong {
  color: #087339;
  font-size: 30px;
}

.match-date span,
.match-date small {
  color: #374151;
}

.match-date b {
  font-size: 16px;
}

.match-meta {
  color: #4b5563;
}

.teams-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 24px;
  margin: 18px 0 10px;
}

.team-side {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.team-side.right {
  justify-content: flex-end;
  text-align: right;
}

.flag {
  width: 52px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 30px;
}

.score-form {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.score-inputs {
  display: grid;
  grid-template-columns: 58px auto 58px;
  align-items: center;
  gap: 14px;
}

.score-inputs input {
  height: 54px;
  padding: 0;
  text-align: center;
  border-radius: 10px;
  background: white;
  font-size: 22px;
  font-weight: 900;
}

.score-inputs span {
  color: var(--muted);
  font-weight: 900;
}

.save-pick {
  min-width: 150px;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(22, 163, 74, .22);
}

.match-main > p {
  margin: 0;
  color: #4b5563;
}

.deadline {
  margin: 16px 0;
  min-width: 320px;
  border-radius: 12px;
  background: #f3f7f4;
}

.deadline.is-soon {
  background: #fff8df;
  border-color: #f1d179;
}

.deadline.is-soon strong,
.deadline.is-soon .countdown {
  color: #a16207;
}

.deadline.is-urgent {
  background: #ffe8e6;
  border-color: #ffc4bf;
}

.deadline.is-urgent strong,
.deadline.is-urgent .countdown {
  color: #b42318;
}

.save-pick.is-saving {
  opacity: .8;
  transform: scale(.98);
}

.match-status {
  justify-content: flex-end;
}

.lock {
  padding: 8px 14px;
}

.lock.open {
  background: #e3f5e9;
  color: #087339;
}

.lock.locked,
.lock.finished {
  background: #f3f4f6;
  color: #374151;
}

.lock.live {
  background: #fff8df;
  color: #a16207;
}

.match-votes {
  min-height: 0;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: 0;
}

.match-votes summary {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f3f6f4;
}

.match-votes[open] {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.match-votes h3 {
  margin-top: 0;
  text-transform: uppercase;
  font-size: 13px;
}

.people-guesses li {
  border-radius: 10px;
  background: #f9fbfa;
}

.guess-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.guess-pick small {
  color: var(--muted);
}

.ranking-list,
.saved-list,
.rules-grid {
  display: grid;
  gap: 14px;
}

.rank-card,
.saved-card {
  display: grid;
  grid-template-columns: 70px 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.rank-card.top-three {
  border-color: rgba(214, 169, 55, .45);
  background: linear-gradient(90deg, #fffdf5, #ffffff);
}

.rank-pos {
  font-size: 24px;
  font-weight: 900;
}

.rank-card b {
  color: var(--grass-dark);
}

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

.saved-card span {
  color: var(--muted);
}

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

@media (max-width: 1100px) {
  .brand,
  .top-actions {
    width: auto;
  }

  .app-shell {
    padding-left: 0;
  }

  .sidebar {
    position: static;
    width: auto;
    margin-top: 76px;
    border-radius: 0;
  }

  .app-shell main {
    padding-top: 24px;
  }

  .match-card,
  .teams-row {
    grid-template-columns: 1fr;
  }

  .team-side.right {
    justify-content: flex-start;
    text-align: left;
  }

  .score-form {
    justify-items: start;
  }

  .match-status {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .main-nav a {
    font-size: 14px;
    padding: 12px 6px;
  }

  .top-actions {
    gap: 8px;
  }

  .user-menu summary span:not(.avatar) {
    display: none;
  }

  .app-shell,
  .public-shell {
    padding-top: 122px;
  }

  .sidebar {
    margin-top: 122px;
  }

  main {
    padding-inline: 14px;
  }

  .section-head {
    display: grid;
  }

  .filters,
  .filters select {
    width: 100%;
  }

  .deadline {
    min-width: 0;
    width: 100%;
  }

  .score-inputs {
    grid-template-columns: 64px auto 64px;
  }

  .rank-card {
    grid-template-columns: 44px 40px 1fr;
  }

  .rank-card span:last-of-type,
  .rank-card b {
    grid-column: 3;
  }

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

/* Cleaner home redesign */
.clean-home-head {
  margin-bottom: 18px;
}

.dashboard-greeting.compact h1 {
  font-size: clamp(36px, 4vw, 52px);
}

.dashboard-greeting.compact p {
  font-size: 19px;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(420px, 1.18fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 18px;
}

.prize-feature {
  padding: 26px;
}

.prize-feature h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.prize-feature > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--grass-dark);
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1;
}

.prize-feature p {
  margin: 0 0 24px;
  color: #1f2937;
  font-weight: 800;
}

.feature-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-actions .button {
  text-align: center;
  border-radius: 12px;
}

.cup-banner.clean {
  min-height: 0;
  aspect-ratio: 623 / 347;
  padding: 0;
  background: #0B3D2E;
}

.cup-banner.clean .home-banner-img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  display: block;
  background: #06251b;
  filter: none;
}

.clean-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.focus-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
}

.focus-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e8f7ed;
  font-size: 44px;
}

.focus-icon.gold {
  background: #fff3d3;
}

.focus-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.focus-card strong {
  display: block;
  color: var(--grass-dark);
  font-size: 36px;
}

.focus-card p {
  margin: 8px 0 0;
  color: #111827;
  font-size: 17px;
}

.clean-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.clean-list-card {
  padding: 24px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.card-title-row h2 {
  margin: 0;
  font-size: 21px;
  text-transform: none;
}

.card-title-row a {
  color: var(--grass-dark);
  font-weight: 900;
}

.upcoming-clean ul,
.top5-clean ol {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.upcoming-clean li {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 118px 90px;
  align-items: center;
  column-gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.upcoming-clean li:first-child,
.top5-clean li:first-child {
  border-top: 0;
}

.game-line {
  display: grid;
  grid-template-columns: auto minmax(82px, 1fr) auto auto minmax(82px, 1fr);
  align-items: center;
  column-gap: 8px;
  min-width: 0;
  font-weight: 900;
}

.game-line .flag-img {
  width: 34px;
  height: 24px;
  flex: 0 0 auto;
  justify-self: center;
}

.game-line .flag-img + span,
.game-line span {
  min-width: 0;
  line-height: 1.15;
}

.game-line small {
  justify-self: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.upcoming-clean li b {
  color: #111827;
}

.top5-clean li {
  display: grid;
  grid-template-columns: 44px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  border-radius: 10px;
}

.top5-clean li:first-child {
  background: #eaf8ef;
}

.rank-medal {
  color: var(--grass-dark);
  font-weight: 900;
  font-size: 18px;
}

.top5-clean li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top5-clean li b {
  color: var(--grass-dark);
}

@media (max-width: 1180px) {
  .home-feature,
  .clean-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-feature,
  .clean-stat-row,
  .clean-bottom-grid {
    grid-template-columns: 1fr;
  }

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

  .focus-card {
    padding: 22px;
    gap: 18px;
  }

  .focus-icon {
    width: 72px;
    height: 72px;
    font-size: 34px;
  }

  .upcoming-clean li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .upcoming-clean li .button {
    width: 100%;
  }
}

/* Refinements requested after premium refresh */
.brand {
  width: 260px;
}

.sidebar {
  width: 270px;
  padding: 16px;
  gap: 14px;
  overflow-y: hidden;
}

.app-shell {
  padding-left: 0;
  margin-left: 270px;
}

.avatar {
  overflow: hidden;
  background: #eaf5ed;
  border: 1px solid rgba(11, 61, 46, .12);
}

.avatar img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.avatar.big {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #eaffef, #b8efc8);
}

.hello-card {
  padding: 14px;
  gap: 12px;
  border-radius: 16px;
}

.hello-card strong {
  font-size: 15px;
}

.hello-card p {
  margin-top: 4px;
  font-size: 13px;
}

.side-nav {
  gap: 6px;
}

.side-nav a {
  position: relative;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: rgba(11, 61, 46, .62);
  color: rgba(255,255,255,.92);
}

.side-nav a.active,
.side-nav a:hover {
  background: rgba(22, 163, 74, .22);
  border-color: rgba(74, 222, 128, .55);
  box-shadow: inset 3px 0 0 var(--grass);
}

.side-nav a.active .side-icon,
.side-nav a:hover .side-icon,
.main-nav a.active .nav-icon,
.main-nav a:hover .nav-icon,
.mobile-bottom-nav a.active .nav-icon,
.mobile-bottom-nav a:hover .nav-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(73%) sepia(69%) saturate(523%) hue-rotate(82deg) brightness(99%) contrast(90%)
    drop-shadow(0 5px 10px rgba(74, 222, 128, .22));
}

.performance-card {
  margin-top: 4px;
  padding: 14px;
  border-radius: 16px;
}

.performance-card > strong,
.rate {
  margin-top: 8px;
  font-size: 17px;
}

.performance-grid {
  margin: 12px 0 10px;
  gap: 10px;
}

.performance-grid span,
.performance-card p,
.performance-card small {
  font-size: 12px;
}

.performance-grid b {
  font-size: 15px;
}

.rate {
  font-size: 24px;
}

.match-card {
  position: relative;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
}

.match-date {
  align-content: center;
  min-height: 120px;
  align-self: stretch;
  margin: -24px 0 -24px -24px;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  border-radius: 16px 0 0 16px;
  background: #f1f4f3;
}

.match-main {
  width: min(100%, 980px);
  justify-self: center;
  padding: 0 18px;
  text-align: center;
}

.match-meta {
  justify-content: center;
}

.teams-row.result-mode {
  grid-template-columns: minmax(170px, 1fr) 130px minmax(170px, 1fr);
  justify-items: center;
}

.team-side {
  justify-content: center;
  text-align: center;
}

.team-side.right {
  justify-content: center;
  text-align: center;
}

.flag-img {
  width: 52px;
  height: 36px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(15,23,42,.08);
}

.flag-fallback {
  width: 52px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f8fafc;
}

.official-score {
  display: grid;
  place-items: center;
  gap: 4px;
}

.official-score span {
  min-width: 78px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.official-score small {
  font-size: 11px;
  color: var(--muted);
}

.pick-form {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 16px auto 0;
}

.pick-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
  width: min(100%, 620px);
}

.pick-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.pick-option input {
  width: auto;
  min-height: auto;
}

.pick-option span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pick-option .flag-img {
  width: 28px;
  height: 20px;
}

.pick-option.is-selected {
  border-color: var(--grass);
  background: #eaf8ef;
  color: var(--grass-dark);
}

.pick-form.is-saving .pick-option {
  opacity: .72;
}

.pick-form.just-saved .pick-option.is-selected {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .16);
}

.autosave-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.save-pick {
  min-width: 170px;
}

.deadline.deadline-compact {
  width: fit-content;
  min-width: 0;
  margin: 12px auto 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.deadline-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.2;
}

.deadline.deadline-compact span {
  font-weight: 800;
}

.deadline.deadline-compact .countdown {
  color: var(--grass-dark);
}

.deadline.deadline-compact small {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 11px;
}

.match-votes-area {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf9;
  text-align: left;
}

.votes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.votes-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.votes-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.match-votes-area .people-guesses {
  max-height: 190px;
  overflow-y: auto;
}

.match-votes-area .people-guesses li {
  min-height: 38px;
  padding: 7px 10px;
}

.match-votes-area .guess-user,
.match-votes-area .guess-pick {
  font-size: 13px;
  line-height: 1.2;
}

.match-votes-area .guess-pick .flag-img {
  width: 28px;
  height: 20px;
}

.votes-hidden {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #c7d8cc;
  border-radius: 12px;
  background: #f3f8f5;
  color: var(--ink);
}

.votes-hidden strong {
  color: var(--grass-dark);
  font-size: 15px;
}

.votes-hidden p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.vote-summary {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}

.vote-summary li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid #dbe8df;
  border-radius: 10px;
  background: #ffffff;
}

.vote-summary li span,
.vote-summary li strong {
  position: relative;
  z-index: 1;
  font-size: 13px;
}

.vote-summary li span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.vote-summary li strong {
  color: var(--grass-dark);
}

.vote-summary li i {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(22, 163, 74, .18), rgba(22, 163, 74, .04));
}

.match-votes-area {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 300px;
  overflow: hidden;
}

.match-votes-area [data-votes-content] {
  min-height: 0;
  max-height: clamp(180px, 28vh, 242px);
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 61, 46, .36) transparent;
}

.match-votes-area [data-votes-content]::-webkit-scrollbar {
  width: 7px;
}

.match-votes-area [data-votes-content]::-webkit-scrollbar-track {
  background: transparent;
}

.match-votes-area [data-votes-content]::-webkit-scrollbar-thumb {
  background: rgba(11, 61, 46, .28);
  border-radius: 999px;
}

.match-votes-area [data-votes-content]::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 61, 46, .52);
}

.match-votes-area .people-guesses {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.match-votes-area .people-guesses li {
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.match-votes-area .people-guesses li:hover {
  background: #eef8f1;
  border-color: rgba(22, 163, 74, .28);
  transform: translateX(2px);
}

.match-votes-area .vote-summary {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 10px;
  background: #f8faf9;
}

@media (max-width: 760px) {
  .match-votes-area {
    max-height: 280px;
  }

  .match-votes-area [data-votes-content] {
    max-height: 220px;
  }
}

/* Logged-in home dashboard */
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 24px;
  animation: riseIn .35s ease both;
}

.dashboard-greeting {
  display: grid;
  align-content: center;
  gap: 10px;
}

.dashboard-greeting h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 48px);
}

.dashboard-greeting p {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
}

.dashboard-greeting strong {
  color: var(--grass-dark);
  background: #e8f7ed;
  padding: 2px 8px;
  border-radius: 999px;
}

.cup-banner {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 34px;
  border-radius: 18px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 84% 40%, rgba(214,169,55,.45), transparent 24%),
    linear-gradient(135deg, #06251b, #0B3D2E 62%, #042016);
  box-shadow: 0 18px 45px rgba(11, 61, 46, .18);
}

.cup-banner strong {
  display: block;
  max-width: 360px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: .95;
  text-transform: uppercase;
}

.cup-banner span {
  display: block;
  margin-top: 8px;
  color: #4ade80;
  font-size: 38px;
  font-weight: 900;
}

.cup-banner img {
  width: min(34%, 170px);
  min-width: 120px;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.35));
}

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

.dash-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: riseIn .35s ease both;
}

.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .11);
}

.stat-card {
  min-height: 172px;
  padding: 22px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #eaf8ef;
  font-size: 22px;
}

.stat-card h2,
.top5-card h2,
.competition-card h2,
.results-card h2,
.upcoming-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 15px;
  text-transform: uppercase;
}

.stat-card > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--grass-dark);
  font-size: 30px;
}

.stat-card p {
  margin: 6px 0;
  color: #111827;
}

.leader-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px;
}

.leader-row strong {
  color: #111827;
  font-size: 22px;
}

.performance-stat {
  background: linear-gradient(135deg, #f8fffa, #eef9f0);
}

.mini-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #dff5e6;
  color: var(--grass-dark);
  font-weight: 900;
}

.mini-badge.pending {
  background: #e8f1ff;
  color: #1d4f91;
}

.next-teams {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #111827 !important;
  font-size: 18px !important;
}

.next-teams .flag-img {
  width: 34px;
  height: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.top5-card,
.competition-card,
.results-card,
.upcoming-card {
  padding: 22px;
}

.top5-card ol,
.results-card ul,
.upcoming-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.top5-card li {
  display: grid;
  grid-template-columns: 38px 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
}

.top5-card li:nth-child(1),
.top5-card li:nth-child(2),
.top5-card li:nth-child(3) {
  background: #f3faf5;
}

.top5-card li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top5-card li b {
  color: var(--grass-dark);
}

.top5-card li em {
  color: var(--muted);
  font-style: normal;
}

.rank-mini {
  color: var(--gold);
  font-weight: 900;
}

.stacked-dashboard {
  display: grid;
  gap: 16px;
}

.competition-card p {
  margin: 0 0 12px;
}

.progress.light {
  background: #d8dde0;
}

.progress.light i {
  transition: width .8s ease;
  background: linear-gradient(90deg, var(--grass-dark), var(--grass));
}

.competition-card > strong {
  display: block;
  margin-top: 8px;
  color: var(--grass-dark);
}

.results-card li,
.upcoming-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.results-card li b {
  min-width: 70px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #dff5e6;
  color: var(--grass-dark);
  text-align: center;
}

.upcoming-card li {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.upcoming-card li span,
.results-card li span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-card .flag-img,
.results-card .flag-img {
  width: 32px;
  height: 22px;
}

.upcoming-card li b {
  color: #374151;
  font-size: 14px;
}

.upcoming-card .button {
  width: 100%;
  margin-top: 16px;
  text-align: center;
}

.ghost-link {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #cddbd2;
  border-radius: 12px;
  color: var(--grass-dark);
  font-weight: 900;
}

.empty-line {
  color: var(--muted);
}

.invite-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 22px 26px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #073323, #0B3D2E);
  box-shadow: 0 18px 45px rgba(11, 61, 46, .18);
}

.ticket-icon {
  font-size: 42px;
}

.invite-banner strong {
  font-size: 20px;
}

.invite-banner p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.86);
}

.invite-banner .button {
  background: white;
  color: var(--grass-dark);
}

.side-position {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.side-position strong {
  display: block;
  color: #4ade80;
  font-size: 20px;
}

.side-position span {
  color: white;
  font-size: 12px;
}

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

@media (max-width: 1180px) {
  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .dashboard-hero {
    gap: 16px;
  }

  .cup-banner {
    min-height: 160px;
    padding: 22px;
  }

  .cup-banner strong {
    font-size: 34px;
  }

  .cup-banner img {
    width: 110px;
    min-width: 90px;
  }

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

  .performance-stat {
    order: 3;
  }

  .top5-card li {
    grid-template-columns: 36px 32px minmax(0, 1fr) auto;
  }

  .top5-card li em {
    grid-column: 3 / -1;
    margin-left: 42px;
  }

  .results-card li {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .invite-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.score-form,
.score-inputs,
.flag {
  display: none;
}

@media (max-width: 1100px) {
  .app-shell {
    margin-left: 0;
  }

  .sidebar {
    width: auto;
    overflow-y: visible;
  }

  .teams-row.result-mode,
  .match-card {
    grid-template-columns: 1fr;
  }

  .match-date {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    margin: -24px -24px 0;
    padding: 18px;
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 760px) {
  .pick-options {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin-top: 122px;
  }
}

/* Public landing page */
.public-topbar {
  background: rgba(3, 28, 20, .74);
  border-bottom-color: rgba(255, 255, 255, .12);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.public-topbar .brand {
  color: #ffffff;
  font-size: 20px;
}

.public-topbar .brand strong {
  color: #22c55e;
}

.public-topbar .brand-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(250, 204, 21, .55);
  background: #052e23;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .14);
}

.public-topbar .brand-icon img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.public-topbar .main-nav {
  display: none;
}

.public-actions a {
  color: #ffffff;
  border-color: transparent;
  background: transparent;
}

.public-actions .primary {
  padding-inline: 20px;
  background: #16a34a;
  border-color: #16a34a;
  box-shadow: 0 14px 28px rgba(22, 163, 74, .24);
}

.public-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 12%, rgba(250, 204, 21, .18), transparent 24%),
    radial-gradient(circle at 20% 30%, rgba(22, 163, 74, .18), transparent 28%),
    linear-gradient(180deg, #03140f 0%, #052e23 42%, #020a08 100%);
}

.public-shell main {
  width: 100%;
  padding: 0;
}

.landing-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
  color: #ffffff;
}

.landing-hero {
  min-height: calc(80vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 10% -8% 0;
  opacity: .36;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0 42%, rgba(255,255,255,.18) 43%, transparent 44%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: perspective(520px) rotateX(62deg);
}

.landing-copy,
.landing-visual {
  position: relative;
  z-index: 1;
  animation: riseIn .5s ease both;
}

.landing-badge {
  width: fit-content;
  margin: 0 0 26px;
  padding: 10px 14px;
  border: 1px solid rgba(22, 163, 74, .34);
  border-radius: 999px;
  color: #4ade80;
  background: rgba(5, 46, 35, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-copy h1 {
  max-width: 660px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.landing-copy h1 span {
  display: block;
  color: #22c55e;
}

.landing-copy h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin: 22px 0 0;
  border-radius: 999px;
  background: #facc15;
}

.landing-lead {
  max-width: 560px;
  margin: 24px 0 12px;
  color: #ffffff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  font-weight: 800;
}

.landing-sub {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.55;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.landing-actions .button {
  min-width: 190px;
  padding: 17px 24px;
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.landing-actions .primary {
  background: #16a34a;
  border-color: #16a34a;
  box-shadow: 0 20px 38px rgba(22, 163, 74, .28);
}

.landing-actions .outline {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.55);
}

.landing-actions .button:hover,
.landing-metrics article:hover,
.landing-panel:hover {
  transform: translateY(-3px);
}

.landing-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.landing-visual img {
  width: 100%;
  max-width: 680px;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0,0,0,.46), 0 0 70px rgba(250, 204, 21, .12);
}

.landing-metrics,
.landing-info-grid,
.landing-final {
  position: relative;
  z-index: 1;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 8px 0 28px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(5, 46, 35, .68);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}

.landing-metrics article {
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: transform .18s ease;
}

.landing-metrics article:last-child {
  border-right: 0;
}

.landing-metrics span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 163, 74, .2);
  font-size: 28px;
}

.landing-metrics small,
.landing-panel h2 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-metrics strong {
  color: #4ade80;
  font-size: clamp(30px, 4vw, 42px);
}

.landing-metrics p,
.landing-panel p {
  margin: 0;
  color: rgba(255,255,255,.72);
}

.landing-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
  gap: 0;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(5, 46, 35, .62);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}

.landing-panel {
  padding: 34px;
  transition: transform .18s ease;
}

.how-panel {
  border-right: 1px solid rgba(255,255,255,.12);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.steps-row div {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.steps-row span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: -22px;
  border-radius: 50%;
  color: white;
  background: #16a34a;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .18);
  z-index: 1;
}

.steps-row i {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 163, 74, .35);
  border-radius: 50%;
  background: rgba(2, 20, 14, .28);
  font-size: 38px;
  font-style: normal;
}

.steps-row strong {
  font-size: 17px;
}

.public-ranking ol {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 12px 0 20px;
  list-style: none;
}

.public-ranking li {
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.public-ranking img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.public-ranking strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-ranking b,
.public-ranking a {
  color: #4ade80;
}

.public-ranking a {
  display: inline-flex;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.landing-final {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  text-align: center;
  background:
    linear-gradient(rgba(5, 46, 35, .72), rgba(5, 46, 35, .82)),
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, .26), transparent 36%),
    #052e23;
}

.landing-final img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.landing-final strong {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase;
}

.landing-final strong span {
  color: #facc15;
}

.landing-final p {
  margin: 0;
  color: #4ade80;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .landing-hero,
  .landing-info-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 26px;
  }

  .landing-visual {
    min-height: 0;
  }

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

  .landing-metrics article:nth-child(2) {
    border-right: 0;
  }

  .landing-metrics article:nth-child(1),
  .landing-metrics article:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .how-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
}

@media (max-width: 640px) {
  .public-topbar {
    align-items: center;
  }

  .public-topbar .brand {
    font-size: 16px;
  }

  .public-topbar .brand-icon {
    width: 42px;
    height: 42px;
  }

  .public-topbar .brand-icon img {
    width: 42px;
    height: 42px;
  }

  .public-actions {
    width: auto;
  }

  .public-actions a {
    padding: 9px 10px;
    font-size: 14px;
  }

  .landing-page {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .landing-copy h1 {
    font-size: 40px;
  }

  .landing-lead {
    font-size: 21px;
  }

  .landing-sub {
    font-size: 16px;
  }

  .landing-actions .button {
    width: 100%;
  }

  .landing-metrics,
  .steps-row {
    grid-template-columns: 1fr;
  }

  .landing-metrics article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .landing-metrics article:last-child {
    border-bottom: 0;
  }

  .landing-panel {
    padding: 24px;
  }

  .public-ranking li {
    grid-template-columns: 30px 30px minmax(0, 1fr) auto;
    font-size: 14px;
  }
}

/* Clean premium rules page */
.rules-page {
  display: grid;
  gap: 22px;
  padding-bottom: 18px;
}

.rules-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.rules-title-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--grass-dark);
  background: #e7f6ec;
  font-size: 26px;
}

.rules-head h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(32px, 4vw, 46px);
}

.rules-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.rules-hero-card {
  min-height: 154px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 28px 34px;
  overflow: hidden;
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 45%, rgba(255,255,255,.1), transparent 22%),
    radial-gradient(circle at 88% 45%, transparent 0 18%, rgba(255,255,255,.14) 19% 20%, transparent 21%),
    linear-gradient(135deg, #052e23, #063d2c 58%, #042018);
  box-shadow: 0 20px 50px rgba(5, 46, 35, .16);
}

.rules-hero-card img {
  width: 114px;
  height: 114px;
  padding: 14px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(0,0,0,.14);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

.rules-hero-card h2 {
  margin: 0 0 8px;
  color: #f7d56a;
  font-size: clamp(26px, 4vw, 34px);
}

.rules-hero-card p {
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 800;
}

.clean-rules-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rule-card {
  min-height: 276px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.rule-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f6ec;
  font-size: 28px;
}

.rule-card h2 {
  margin: 0;
  color: #111827;
  font-size: 21px;
}

.rule-card p,
.rule-card li,
.rule-card small {
  color: #26332e;
  font-size: 15px;
  line-height: 1.45;
}

.rule-card p {
  margin: 0;
}

.rule-card ul {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  margin: 0;
}

.rule-card strong {
  color: var(--grass-dark);
}

.rule-card small {
  color: var(--muted);
}

.money-rule {
  display: block;
  color: var(--grass);
  font-size: 22px;
}

.pick-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.pick-demo span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid #d6eadb;
  border-radius: 999px;
  color: var(--grass-dark);
  background: #f2faf5;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.rules-faq {
  display: grid;
  gap: 0;
}

.rules-faq h2 {
  margin: 6px 0 12px;
  color: #111827;
  font-size: 24px;
}

.rules-faq details {
  min-width: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.rules-faq details:first-of-type {
  border-radius: 14px 14px 0 0;
}

.rules-faq details:last-of-type {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
}

.rules-faq summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  color: #111827;
  background: transparent;
  font-size: 16px;
  font-weight: 900;
  list-style: none;
}

.rules-faq summary::-webkit-details-marker {
  display: none;
}

.rules-faq summary::after {
  content: "⌄";
  margin-left: auto;
  color: var(--muted);
  font-size: 22px;
  transition: transform .18s ease;
}

.rules-faq details[open] summary::after {
  transform: rotate(180deg);
}

.rules-faq summary span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--grass);
  border-radius: 50%;
  color: var(--grass-dark);
  font-size: 14px;
}

.rules-faq details p {
  margin: 0;
  padding: 0 18px 16px 56px;
  color: var(--muted);
  line-height: 1.55;
}

.rules-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #87919b;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .clean-rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rules-head {
    justify-items: start;
    text-align: left;
  }

  .rules-hero-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }

  .rules-hero-card img {
    width: 86px;
    height: 86px;
  }

  .rules-hero-card p {
    font-size: 18px;
  }

  .clean-rules-grid {
    grid-template-columns: 1fr;
  }

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

  .rules-faq details p {
    padding-left: 18px;
  }
}

.admin-actions {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.admin-password-reset {
  min-width: 0;
}

.admin-password-reset summary {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.compact-form {
  max-width: 280px;
}

.compact-form label {
  font-size: 13px;
}

/* Sidebar collapse */
.sidebar-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #052e23;
  background: transparent;
  transition: background .25s ease, transform .25s ease;
}

.sidebar-toggle:hover {
  background: #eaf5ed;
  transform: translateY(-1px);
}

.sidebar-toggle span {
  width: 23px;
  height: 17px;
  display: block;
  margin: auto;
  background: currentColor;
  -webkit-mask: linear-gradient(#000 0 0) center top / 23px 3px no-repeat,
    linear-gradient(#000 0 0) center / 23px 3px no-repeat,
    linear-gradient(#000 0 0) center bottom / 23px 3px no-repeat;
  mask: linear-gradient(#000 0 0) center top / 23px 3px no-repeat,
    linear-gradient(#000 0 0) center / 23px 3px no-repeat,
    linear-gradient(#000 0 0) center bottom / 23px 3px no-repeat;
}

body.has-sidebar .app-shell,
body.has-sidebar .sidebar,
body.has-sidebar .side-nav a,
body.has-sidebar .hello-card,
body.has-sidebar .performance-card {
  transition: padding-left .28s ease, margin-left .28s ease, width .28s ease, transform .28s ease, opacity .2s ease;
}

body.sidebar-collapsed .sidebar {
  width: 70px;
  padding: 14px 10px;
  gap: 12px;
}

body.sidebar-collapsed .app-shell {
  margin-left: 70px;
}

body.sidebar-collapsed .hello-card,
body.sidebar-collapsed .performance-card {
  display: none;
}

body.sidebar-collapsed .side-nav {
  gap: 8px;
}

body.sidebar-collapsed .side-nav a {
  justify-content: center;
  padding: 13px 0;
  border-radius: 14px;
}

body.sidebar-collapsed .side-nav a span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body.sidebar-collapsed .side-icon {
  width: 28px;
  height: 28px;
}

body.sidebar-collapsed .sidebar-toggle {
  display: grid;
  place-items: center;
  background: #eaf5ed;
}

@media (max-width: 1100px) {
  body.has-sidebar .sidebar {
    position: fixed;
    left: 0;
    top: 76px;
    bottom: 0;
    width: 280px;
    z-index: 9;
    margin-top: 0;
    transform: translateX(-104%);
    box-shadow: 18px 0 42px rgba(2, 8, 6, .26);
  }

  body.has-sidebar.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.has-sidebar .app-shell {
    margin-left: 0;
    padding-left: 0;
  }

  body.sidebar-collapsed .sidebar {
    width: 280px;
    padding: 16px;
  }

  body.sidebar-collapsed .hello-card,
  body.sidebar-collapsed .performance-card {
    display: flex;
  }

  body.sidebar-collapsed .performance-card {
    display: block;
  }

  body.sidebar-collapsed .side-nav a {
    justify-content: flex-start;
    padding: 12px 14px;
  }

  body.sidebar-collapsed .side-nav a span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

@media (max-width: 760px) {
  body.has-sidebar .sidebar {
    top: 122px;
  }
}

/* Mobile topbar refinement */
@media (max-width: 760px) {
  .topbar {
    height: 64px !important;
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center !important;
    gap: 8px;
    padding: 8px 12px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    max-width: calc(100vw - 128px);
    min-width: 0;
    justify-self: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
  }

  .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-icon,
  .public-topbar .brand-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px;
  }

  .brand-icon img,
  .public-topbar .brand-icon img {
    width: 34px !important;
    height: 34px !important;
  }

  .sidebar-toggle {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
    justify-self: start;
    order: 0;
    z-index: 3;
  }

  .topbar .main-nav {
    display: none !important;
  }

  .mobile-bottom-nav {
    position: fixed !important;
    inset: auto 10px 12px 10px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    z-index: 100;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: auto !important;
    padding: 6px;
    border: 1px solid rgba(11, 61, 46, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .16);
    backdrop-filter: blur(14px);
  }

  .topbar .brand,
  .topbar .sidebar-toggle,
  .topbar .top-actions {
    position: relative;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-bottom-nav a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px !important;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #1f2937;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-bottom-nav a.active {
    background: #eaf8ef;
    color: var(--grass-dark);
  }

  .mobile-bottom-nav a.active::after {
    display: none;
  }

  .mobile-bottom-nav a:nth-child(n+4) {
    display: none;
  }

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

  .top-actions {
    grid-column: 3;
    grid-row: 1;
    width: 42px !important;
    min-width: 42px;
    justify-self: end;
    justify-content: center;
    gap: 0;
    overflow: visible;
    z-index: 4;
  }

  .top-actions > *:not(.user-menu) {
    display: none !important;
  }

  .user-menu {
    width: 42px;
    min-width: 42px;
  }

  .user-menu summary {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .user-menu summary span:not(.avatar) {
    display: none;
  }

  .app-shell,
  .public-shell {
    padding-top: 64px !important;
  }

  body.has-sidebar .sidebar,
  .sidebar {
    top: 64px !important;
    margin-top: 0 !important;
  }

  .app-shell main {
    padding-top: 16px;
    padding-bottom: 86px;
  }

  .page-title {
    margin: 6px 0 14px;
  }

  .page-title h1 {
    font-size: 32px;
    line-height: 1.02;
  }

  .page-title p {
    font-size: 15px;
    line-height: 1.35;
  }

  .filters {
    gap: 8px;
    margin-bottom: 14px;
  }

  .filters select,
  .filters input {
    min-height: 46px;
    border-radius: 14px;
    font-size: 16px;
  }

  .match-list {
    gap: 12px;
  }

  .match-card {
    grid-template-columns: 1fr !important;
    gap: 0;
    overflow: hidden;
    padding: 0 !important;
    border-radius: 16px;
  }

  .match-date {
    display: grid;
    grid-template-columns: auto auto auto auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #f1f4f3;
  }

  .match-date strong {
    font-size: 20px;
    line-height: 1;
  }

  .match-date span,
  .match-date b,
  .match-date small {
    font-size: 12px;
    line-height: 1.1;
  }

  .match-main {
    padding: 12px;
    text-align: center;
  }

  .match-meta {
    margin-bottom: 8px;
    justify-content: center;
    font-size: 13px;
  }

  .teams-row.result-mode {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr) !important;
    gap: 8px;
    margin: 6px 0 8px;
    align-items: center;
  }

  .team-side,
  .team-side.right {
    display: grid;
    justify-items: center;
    gap: 5px;
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
  }

  .flag-img,
  .flag-fallback {
    width: 36px;
    height: 25px;
    border-radius: 6px;
  }

  .official-score {
    gap: 2px;
  }

  .official-score span {
    min-width: 48px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 20px;
  }

  .official-score small {
    font-size: 10px;
  }

  .match-main > p {
    margin: 6px 0 10px;
    font-size: 12px;
    line-height: 1.35;
  }

  .pick-form {
    gap: 6px;
    margin-top: 8px;
  }

  .pick-options {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
    width: 100%;
  }

  .pick-option {
    min-height: 40px;
    padding: 7px 5px;
    border-radius: 11px;
    font-size: 11px;
    line-height: 1.12;
    white-space: normal;
  }

  .pick-option input {
    width: 14px;
    height: 14px;
  }

  .pick-option span {
    gap: 4px;
    justify-content: center;
    min-width: 0;
  }

  .pick-option .flag-img {
    width: 22px;
    height: 16px;
  }

  .autosave-note {
    display: none;
  }

  .deadline.deadline-compact {
    width: 100%;
    margin: 8px 0 0;
    padding: 7px 10px;
    border-radius: 12px;
    background: #f6faf8;
  }

  .deadline-line {
    gap: 6px;
    flex-wrap: wrap;
  }

  .deadline.deadline-compact span {
    display: block;
    font-size: 13px;
  }

  .deadline.deadline-compact small {
    font-size: 10px;
  }

  .match-votes-area {
    max-height: 136px;
    margin-top: 10px;
    padding: 9px;
    border-radius: 12px;
  }

  .votes-head {
    margin-bottom: 8px;
  }

  .votes-head h3,
  .votes-head span {
    font-size: 11px;
  }

  .match-votes-area [data-votes-content] {
    max-height: 82px;
  }

  .votes-hidden {
    padding: 9px;
    gap: 4px;
  }

  .votes-hidden strong {
    font-size: 13px;
  }

  .votes-hidden p {
    font-size: 11px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .match-votes-area .people-guesses li {
    min-height: 32px;
    padding: 6px 8px;
  }

  .match-votes-area .guess-user,
  .match-votes-area .guess-pick {
    font-size: 12px;
  }

  .lock {
    padding: 4px 8px;
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 13px;
  }

  .brand-icon,
  .public-topbar .brand-icon,
  .brand-icon img,
  .public-topbar .brand-icon img {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px;
  }
}
