:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --panel: #ffffff;
  --panel-strong: #eef8f0;
  --text: #14211b;
  --muted: #66736d;
  --line: #dce5df;
  --green: #0f7a48;
  --green-dark: #075737;
  --yellow: #facc15;
  --blue: #2563eb;
  --red: #dc2626;
  --shadow: 0 18px 48px rgba(20, 33, 27, .12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(250, 204, 21, .22), transparent 22rem),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, .13), transparent 24rem),
    linear-gradient(180deg, #f7fbf7, var(--bg));
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--green);
  cursor: pointer;
}

button:hover {
  background: var(--green-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

select,
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .65rem .75rem;
  background: #fff;
  color: var(--text);
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(250, 204, 21, .25), transparent 24rem),
    linear-gradient(135deg, var(--green), var(--green-dark));
}

.login-shell {
  width: min(100%, 480px);
  padding: 1.25rem;
}

.login-panel {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: .2rem 0 1.5rem;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: .95;
  letter-spacing: 0;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form label {
  display: grid;
  gap: .4rem;
  color: var(--muted);
  font-weight: 700;
}

.login-error {
  margin: 0;
  border: 1px solid rgba(220, 38, 38, .25);
  border-radius: 8px;
  padding: .75rem;
  color: var(--red);
  background: rgba(220, 38, 38, .08);
}

.landing-body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(250, 204, 21, .26), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(59, 130, 246, .22), transparent 22rem),
    linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
}

.landing-stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  isolation: isolate;
  padding: 2rem;
  touch-action: none;
}

.landing-stage::before {
  position: absolute;
  inset: 8vh 6vw;
  z-index: -2;
  content: "";
  border: 3px solid rgba(255, 255, 255, .35);
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(255, 255, 255, .35) 0 calc(50% + 1.5px), transparent 0),
    radial-gradient(circle at 50% 50%, transparent 0 6.8rem, rgba(255, 255, 255, .35) 6.9rem 7.1rem, transparent 7.2rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 9vw);
  opacity: .82;
}

.landing-stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, .08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 2px, transparent 2px);
  background-size: 9rem 9rem;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, .95), transparent 72%);
}

.landing-message {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  text-align: center;
  text-shadow: 0 12px 32px rgba(0, 0, 0, .36);
}

.landing-message .eyebrow {
  margin: 0 0 1rem;
  color: #fef08a;
  font-size: clamp(.9rem, 2vw, 1.1rem);
}

.landing-message h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.1rem, 12vw, 8.8rem);
  line-height: .92;
  letter-spacing: 0;
}

.landing-message h1 span {
  display: block;
}

.landing-login-form {
  display: flex;
  align-items: end;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  width: min(100%, 760px);
  margin: 1.5rem auto 0;
  text-align: left;
  text-shadow: none;
}

.landing-login-form label {
  display: grid;
  gap: .25rem;
  width: min(100%, 190px);
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
}

.landing-login-form input {
  min-height: 36px;
  border-color: rgba(255, 255, 255, .45);
  border-radius: 7px;
  padding: .45rem .6rem;
  background: rgba(255, 255, 255, .94);
}

.landing-login-form button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 7px;
  padding: .45rem .95rem;
  color: #073f29;
  background: #fef08a;
  font-weight: 900;
  text-decoration: none;
}

.landing-login-form button:hover,
.primary-link:hover {
  background: #fde047;
}

.landing-login-form .login-error {
  flex-basis: 100%;
  width: min(100%, 600px);
  margin: 0 auto .2rem;
  color: #fecaca;
  background: rgba(127, 29, 29, .6);
}

.session-panel {
  display: inline-grid;
  gap: .8rem;
  min-width: min(100%, 360px);
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  padding: .95rem;
  background: rgba(7, 63, 41, .72);
  text-shadow: none;
  backdrop-filter: blur(10px);
}

.session-panel p {
  margin: 0;
  font-weight: 800;
}

.session-actions {
  display: flex;
  justify-content: center;
  gap: .65rem;
}

.session-actions form {
  margin: 0;
}

.session-actions .ghost-button {
  min-height: 36px;
  border-color: rgba(255, 255, 255, .45);
  padding: .45rem .95rem;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.landing-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-confetti span {
  position: absolute;
  left: calc(var(--x) * 1vw);
  top: -1.5rem;
  width: .78rem;
  height: 1.15rem;
  border-radius: 2px;
  background: var(--c);
  box-shadow: 0 0 18px rgba(255, 255, 255, .25);
  transform: rotate(var(--r));
  animation: landing-fall 5.8s linear infinite;
  animation-delay: var(--d);
}

.landing-confetti span:nth-child(3n) {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
}

.landing-confetti span:nth-child(4n) {
  width: 1.1rem;
  height: .38rem;
}

.physics-ball {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: grid;
  width: clamp(3rem, 8vw, 5.8rem);
  height: clamp(3rem, 8vw, 5.8rem);
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 1.25rem 1.8rem rgba(0, 0, 0, .28));
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translate3d(var(--ball-x, 0), var(--ball-y, 0), 0) rotate(var(--ball-rot, 0deg));
  will-change: transform;
}

.physics-ball:hover {
  background: transparent;
}

.physics-ball:active {
  cursor: grabbing;
}

.physics-ball-three {
  width: clamp(2.4rem, 6vw, 4.6rem);
  height: clamp(2.4rem, 6vw, 4.6rem);
  font-size: clamp(2rem, 5.2vw, 4rem);
}

@keyframes landing-fall {
  0% {
    translate: 0 -8vh;
    rotate: 0deg;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    translate: var(--drift, 1rem) 110vh;
    rotate: 540deg;
    opacity: .1;
  }
}

.app-shell {
  width: min(100%, 1520px);
  margin: 0 auto;
  padding: 1.25rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
}

.topbar h1 {
  margin: .1rem 0 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .9;
  letter-spacing: 0;
}

.topbar form {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .75rem;
  color: var(--muted);
  background: #fff;
  white-space: nowrap;
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

.ghost-button:hover {
  background: var(--panel-strong);
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: .5rem;
  padding: .9rem 0;
  background: rgba(245, 247, 244, .92);
  backdrop-filter: blur(12px);
}

.tab {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.tab.is-active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

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

.section-head h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.group-card,
.match-card,
.third-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(20, 33, 27, .05);
}

.group-card {
  padding: 1rem;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}

.card-head h3,
.round-column h3 {
  margin: 0;
}

.card-head span {
  color: var(--muted);
  font-size: .9rem;
}

.rank-list {
  display: grid;
  gap: .65rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  align-items: center;
  gap: .6rem;
}

.rank-row span {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.thirds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
}

.third-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem .75rem;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
}

.third-card input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--green);
}

.third-card span {
  color: var(--muted);
  font-weight: 800;
}

.third-card strong {
  grid-column: 2;
}

.third-card.is-selected {
  border-color: rgba(15, 122, 72, .45);
  background: var(--panel-strong);
}

.third-note {
  grid-column: 1 / -1;
  margin: .25rem 0 0;
  color: var(--red);
  font-weight: 800;
}

.third-note.is-ok {
  color: var(--green);
}

.knockout-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.round-column {
  display: grid;
  min-width: 260px;
  gap: .75rem;
}

.match-card {
  display: grid;
  gap: .75rem;
  padding: .85rem;
}

.match-title {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.match-teams {
  display: grid;
  gap: .5rem;
}

.team-row {
  display: grid;
  gap: .25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .65rem;
  background: #fafcfb;
}

.team-row span,
.winner-picker span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-row strong {
  min-height: 1.4rem;
}

.team-row.is-winner {
  border-color: rgba(15, 122, 72, .45);
  background: var(--panel-strong);
}

.third-assignment {
  margin-top: .35rem;
}

.winner-picker {
  display: grid;
  gap: .35rem;
}

.save-status {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .65rem .9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.save-status.is-saving {
  color: var(--blue);
}

.save-status.is-ok {
  color: var(--green);
}

.save-status.is-error {
  color: var(--red);
}

.predictor-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 14%, rgba(250, 204, 21, .18), transparent 22rem),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, .16), transparent 24rem),
    linear-gradient(135deg, #19834d, #075737);
  color: #fff;
  overflow: hidden;
}

.predictor-shell::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, .08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 2px, transparent 2px),
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(255, 255, 255, .26) 0 calc(50% + 1.5px), transparent 0);
  background-size: 8rem 8rem, 8rem 8rem, 100% 100%;
}

.side-panel,
.predictor-main {
  position: relative;
  z-index: 1;
}

.side-panel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, .22);
  padding: 1rem;
  background: rgba(6, 62, 38, .78);
  box-shadow: 18px 0 42px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
  transition: margin-left .22s ease;
}

.side-brand {
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  padding-bottom: 1rem;
}

.side-brand .eyebrow,
.mobile-topbar .eyebrow,
.view-head .eyebrow {
  color: #fef08a;
}

.side-brand h1 {
  margin: .25rem 0 0;
  color: #fff;
  font-size: 1.65rem;
  line-height: .95;
  letter-spacing: 0;
}

.side-nav {
  display: grid;
  gap: .45rem;
  margin: 1rem 0;
  overflow-y: auto;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: .65rem .75rem;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .08);
  text-align: left;
}

.side-link:hover {
  background: rgba(255, 255, 255, .14);
}

.side-link.is-active {
  border-color: rgba(254, 240, 138, .9);
  color: #073f29;
  background: #fef08a;
}

.side-link small {
  border-radius: 999px;
  padding: .15rem .42rem;
  color: inherit;
  background: rgba(255, 255, 255, .18);
  font-weight: 900;
}

.side-user {
  display: grid;
  gap: .75rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 1rem;
  color: rgba(255, 255, 255, .86);
}

.side-user .ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
}

.predictor-main {
  min-width: 0;
  min-height: 100vh;
  overflow: auto;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  padding: .85rem 1rem;
  background: rgba(7, 87, 55, .78);
  backdrop-filter: blur(14px);
}

.mobile-topbar h1 {
  margin: .15rem 0 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: .95;
  letter-spacing: 0;
}

.panel-toggle {
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-size: 1.2rem;
}

.view-root {
  padding: 1.2rem;
}

.view-card {
  min-height: calc(100vh - 5.8rem);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
  animation: view-in .28s ease both;
}

.view-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.view-head h2 {
  margin: .25rem 0 .35rem;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.view-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.third-strip {
  display: flex;
  gap: .5rem;
  margin: 0 0 1rem;
  overflow-x: auto;
  padding-bottom: .25rem;
}

.third-strip span {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 122, 72, .25);
  border-radius: 999px;
  padding: .45rem .7rem;
  background: var(--panel-strong);
  font-weight: 900;
}

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

.bracket-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding: .25rem 0 1rem;
}

.bracket-column {
  display: grid;
  min-width: 230px;
  gap: .7rem;
  align-content: start;
}

.bracket-column h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  border-radius: 8px;
  padding: .7rem;
  color: #073f29;
  background: #fef08a;
}

.bracket-match {
  display: grid;
  gap: .45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 33, 27, .06);
}

.bracket-team {
  display: grid;
  gap: .15rem;
  border: 1px solid #e6eee8;
  border-radius: 7px;
  padding: .55rem;
  background: #fafcfb;
}

.bracket-team span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-team strong {
  min-height: 1.35rem;
}

.group-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.fixture-list {
  display: grid;
  gap: .85rem;
}

.fixture-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .9rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 20px rgba(20, 33, 27, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.fixture-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(20, 33, 27, .1);
}

.fixture-meta {
  display: grid;
  gap: .2rem;
}

.fixture-meta span {
  width: fit-content;
  border-radius: 999px;
  padding: .2rem .5rem;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.fixture-meta strong {
  font-size: 1.05rem;
}

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

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
}

.team-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  align-items: center;
  gap: .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .7rem;
  background: #f8fbf9;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.team-score label {
  font-weight: 900;
}

.team-score input {
  min-height: 40px;
  padding: .35rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
}

.team-score.is-win {
  border-color: rgba(22, 163, 74, .45);
  background: rgba(22, 163, 74, .12);
}

.team-score.is-loss {
  border-color: rgba(220, 38, 38, .38);
  background: rgba(220, 38, 38, .1);
}

.team-score.is-draw {
  border-color: rgba(234, 179, 8, .5);
  background: rgba(250, 204, 21, .16);
}

.versus {
  color: var(--muted);
  font-weight: 900;
}

.standings-card {
  position: sticky;
  top: 5.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 33, 27, .08);
}

.standings-card h3 {
  margin: 0 0 .75rem;
}

.standings-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.standings-card th,
.standings-card td {
  border-bottom: 1px solid var(--line);
  padding: .55rem .35rem;
  text-align: right;
}

.standings-card th:first-child,
.standings-card td:first-child {
  text-align: left;
}

.standings-card td:first-child {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 900;
}

.standings-card td span {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--muted);
  font-size: .78rem;
}

.standings-card tr.is-qualified td span {
  background: var(--green);
}

.standings-card tr.is-third td span {
  background: #d97706;
}

.is-panel-collapsed .side-panel {
  margin-left: -280px;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: .9rem;
  }

  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar form,
  .tabs {
    overflow-x: auto;
  }

  .section-head button {
    width: 100%;
  }

  .landing-stage {
    padding: 1.25rem;
  }

  .landing-message {
    min-width: 0;
    width: 100%;
  }

  .landing-message h1 {
    font-size: clamp(2.1rem, 9.4vw, 3.2rem);
    line-height: .96;
  }

  .landing-stage::before {
    inset: 5vh 5vw;
    border-radius: 18px;
  }

  .landing-login-form {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 260px);
    max-width: calc(100vw - 4rem);
    margin-top: 1.1rem;
  }

  .landing-login-form label {
    width: 100%;
  }

  .session-actions {
    flex-direction: column;
  }

  .session-actions .primary-link,
  .session-actions .ghost-button {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .predictor-shell {
    grid-template-columns: 250px 1fr;
  }

  .side-panel {
    width: 250px;
  }

  .is-panel-collapsed .side-panel {
    margin-left: -250px;
  }

  .group-layout {
    grid-template-columns: 1fr;
  }

  .standings-card {
    position: static;
  }
}

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

  .side-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(86vw, 300px);
  }

  .is-panel-collapsed .side-panel {
    margin-left: min(-86vw, -300px);
  }

  .view-root {
    padding: .8rem;
  }

  .view-head {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .versus {
    text-align: center;
  }

  .team-score {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
}
