:root {
  --ink: #17211e;
  --muted: #65706b;
  --paper: #fbfcf8;
  --line: #dfe6de;
  --field: #ffffff;
  --grass: #2f7d4f;
  --mint: #dff5e7;
  --coral: #d94d3f;
  --gold: #d8a739;
  --teal: #117b82;
  --navy: #1d3443;
  --shadow: 0 18px 50px rgba(23, 33, 30, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--grass);
  color: white;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.96);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

.hidden {
  display: none !important;
}

.scroll-top-button {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 6px 18px rgba(13, 38, 43, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: clamp(300px, 42vh, 440px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 23, 26, 0.83), rgba(12, 23, 26, 0.38) 55%, rgba(12, 23, 26, 0.18)),
    linear-gradient(0deg, rgba(12, 23, 26, 0.78), rgba(12, 23, 26, 0.08) 45%);
}

.topbar,
.hero-content,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(18px, 5vw, 60px);
}

.brand,
.session-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  font-weight: 850;
  flex-wrap: wrap;
  row-gap: 2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #17211e;
}

.app-version {
  align-self: center;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.session-box button {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.25);
  touch-action: manipulation;
}

.password-menu {
  position: relative;
}

.password-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.17);
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.password-menu form {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 8px;
  width: min(300px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  box-shadow: var(--shadow);
}

.password-field {
  display: grid;
  gap: 6px;
}

.password-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.password-input-wrap input {
  min-width: 0;
  border: 0;
  border-radius: 0;
}

.password-toggle {
  min-height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #edf3ef;
  color: var(--ink);
  padding: 0 10px;
}

.password-menu .form-message {
  color: var(--muted);
}

.password-save {
  background: #2f7d4f !important;
  color: white;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.password-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 26, 0.64);
  backdrop-filter: blur(2px);
}

.password-gate-panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 32px));
  box-shadow: var(--shadow);
}

.password-gate-panel h2 {
  margin-bottom: 0;
}

.hero-content {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0 46px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: -24px auto 64px;
}

.login-panel,
.dashboard {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(223, 230, 222, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel {
  display: grid;
  justify-items: center;
  padding: clamp(18px, 4vw, 34px);
}

.login-panel h2,
.dashboard h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.login-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: end;
  width: min(760px, 100%);
}

.login-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.register-entry {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 16px;
  text-align: center;
}

.register-entry span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--coral);
  font-weight: 750;
}

.modal {
  width: min(420px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.modal[open] {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.modal::backdrop {
  background: rgba(12, 23, 26, 0.54);
}

.modal-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin-bottom: 0;
}

.dashboard {
  padding: clamp(14px, 3vw, 28px);
}

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

.score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.score-strip div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f7faf5;
}

.score-strip span {
  font-size: 1.35rem;
  font-weight: 850;
}

.score-strip small {
  color: var(--muted);
  font-weight: 700;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3ef;
  margin-bottom: 20px;
}

.tab {
  border: 1px solid #d7e2dc;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: 0 5px 12px rgba(29, 52, 67, 0.06);
}

.tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
  box-shadow: 0 8px 16px rgba(29, 52, 67, 0.16);
}

.tips-accordion {
  display: grid;
  gap: 10px;
}

.tips-match {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.tips-match summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}

.tips-match summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 650;
}

.tips-result {
  color: var(--muted);
  text-align: right;
}

.scroll-hint {
  display: none;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  background: #f7faf5;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.compact-scroll {
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: inset -18px 0 16px -18px rgba(29, 52, 67, 0.5);
}

.tips-table {
  min-width: 520px;
}

.own-tip-row {
  background: #f0f8f3;
}

.standings-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.standings-switch button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #f7faf5;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(29, 52, 67, 0.08);
}

.standings-switch button span {
  color: inherit;
  font-weight: 900;
}

.standings-switch button:nth-child(1).active {
  border-color: #2f855a;
  background: #2f855a;
  color: white;
}

.standings-switch button:nth-child(2).active {
  border-color: #6b46c1;
  background: #6b46c1;
  color: white;
}

.standings-switch button:not(.active):nth-child(1) {
  border-color: #b8d9c4;
  background: #e8f5ed;
}

.standings-switch button:not(.active):nth-child(2) {
  border-color: #d0c1ef;
  background: #f0eaff;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

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

.match-card,
.panel,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.match-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.match-meta,
.status-line,
.tip-row,
.approval-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--mint);
  color: #155b36;
  font-size: 0.82rem;
  font-weight: 800;
}

.pill.warn {
  background: #fff2d1;
  color: #765311;
}

.pill.bad {
  background: #ffe2df;
  color: #8c2a22;
}

.pill.info {
  background: #e0f1f2;
  color: #0e656b;
}

.group-pill {
  background: #edf1ff;
  color: #24427c;
}

.kickoff,
.status-line {
  color: var(--muted);
  font-weight: 650;
}

.pending-tip-box {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #f0cf79;
  border-radius: 8px;
  background: #fff8e5;
  color: #62450c;
}

.pending-tip-box strong {
  color: #4b3710;
}

.pending-tip-box small {
  color: #765311;
  font-weight: 650;
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  font-size: 1.28rem;
}

.teams strong:last-child {
  text-align: right;
}

.prediction-form,
.result-form,
.approved-result-form,
.admin-prediction-form,
.panel {
  display: grid;
  gap: 12px;
}

.match-card .result-form {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.result-form h3 {
  margin: 0;
  font-size: 1rem;
}

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

.panel {
  padding: 18px;
}

.panel + .panel {
  margin-top: 14px;
}

.tips-filter-panel {
  align-items: start;
}

.tips-filter {
  display: grid;
  gap: 6px;
  width: min(320px, 100%);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.whats-new-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.45;
}

.upcoming-tip-reminder > div {
  display: grid;
  gap: 7px;
}

.upcoming-tip-matches {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf5;
  padding: 12px;
}

.history-panel h3 {
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.history-panel p {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.history-panel p:last-child {
  margin-bottom: 0;
}

.history-panel strong {
  color: var(--ink);
}

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

.result-card {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

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

.bracket-scroll {
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-color: rgba(28, 72, 82, 0.45) rgba(28, 72, 82, 0.08);
}

.bracket-grid {
  --bracket-row-height: 74px;
  --bracket-gap: 42px;
  --bracket-branch: 22px;
  --bracket-line: rgba(31, 68, 73, 0.38);
  display: grid;
  grid-template-columns: 250px 232px 218px 204px 204px;
  gap: var(--bracket-gap);
  min-width: 1130px;
  align-items: stretch;
}

.bracket-round {
  position: relative;
  display: grid;
  grid-template-rows: 30px repeat(32, var(--bracket-row-height));
  gap: 0;
}

.bracket-round h4 {
  grid-row: 1;
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0 2px 2px;
}

.bracket-match {
  position: relative;
  grid-row: var(--bracket-row) / span var(--bracket-span);
  align-self: center;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fbfdf9, #eef7f1);
  box-shadow: 0 8px 20px rgba(22, 55, 42, 0.06);
  padding: 11px;
}

.bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--bracket-branch) * -1);
  width: var(--bracket-branch);
  border-top: 2px solid var(--bracket-line);
}

.bracket-match.bracket-terminal::after {
  display: none;
}

.bracket-join {
  position: absolute;
  top: 50%;
  left: calc(var(--bracket-branch) * -1);
  width: var(--bracket-branch);
  border-top: 2px solid var(--bracket-line);
}

.bracket-join::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--join-height) / -2);
  height: var(--join-height);
  border-left: 2px solid var(--bracket-line);
}

.bracket-match-head,
.bracket-teams {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bracket-match-head {
  flex-wrap: wrap;
}

.bracket-no {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.bracket-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-content: stretch;
}

.bracket-teams span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bracket-teams span:last-child {
  text-align: right;
}

.bracket-teams > strong {
  color: var(--muted);
  min-width: 32px;
  text-align: center;
}

.bracket-teams span strong {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.2;
}

.bracket-teams small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.bracket-winner {
  color: #155b36;
  font-weight: 800;
  font-size: 0.86rem;
}

.bracket-note {
  margin: 8px 0 0;
}

.group-table {
  padding: 12px;
}

.group-table table {
  min-width: 0;
  table-layout: auto;
}

.group-table th,
.group-table td {
  padding: 9px 8px;
  white-space: nowrap;
}

.group-table th:nth-child(2),
.group-table td:nth-child(2) {
  white-space: normal;
  min-width: 96px;
}

.group-table .pill {
  min-height: 24px;
  padding: 0 7px;
  font-size: 0.74rem;
}

.table-wrap {
  overflow-x: auto;
}

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

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

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

td strong {
  font-weight: 850;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.approval-row {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

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

.password-reset-row .approval-actions input {
  width: min(220px, 100%);
}

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

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

.team-standing-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--team-color), white 55%);
  border-left: 8px solid var(--team-color);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--team-soft), white 58%);
}

.team-standing-card.leader {
  box-shadow: 0 14px 30px rgba(29, 52, 67, 0.12);
}

.team-standing-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
}

.team-standing-head h3 {
  margin: 0 0 4px;
}

.team-standing-head p,
.team-standing-meta {
  color: var(--muted);
  font-weight: 650;
}

.team-standing-head > strong {
  color: var(--team-color);
  font-size: 2rem;
}

.team-rank {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--team-color);
  color: white;
  font-weight: 900;
}

.team-standing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.leader-streak {
  color: var(--team-color);
}

.team-members {
  display: grid;
  gap: 8px;
}

.team-members div,
.team-assignment-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.team-members div {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

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

.team-assignment-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.empty.small {
  padding: 10px;
  text-align: left;
}

.danger {
  background: var(--coral);
}

.secondary {
  background: #e8eeeb;
  color: var(--ink);
}

.prediction-form button.edit-mode,
.result-form button.edit-mode {
  background: #efd895;
  color: #4b3710;
}

@media (max-width: 820px) {
  .login-panel,
  .login-form,
  .match-grid,
  .history-grid,
  .group-grid,
  .team-standings-grid,
  .team-admin-grid,
  .dashboard-head,
  .score-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    display: grid;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 12px 14px;
  }

  .session-box {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .session-box > span {
    flex-basis: 100%;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 650;
  }

  .brand {
    max-width: 100%;
  }

  .session-box button,
  .password-menu summary {
    min-height: 34px;
    padding-inline: 10px;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(8, 18, 20, 0.28);
    font-size: 0.86rem;
  }

  .password-menu form {
    position: fixed;
    top: 118px;
    left: 12px;
    right: 12px;
    z-index: 30;
    width: auto;
    max-height: min(420px, calc(100vh - 150px));
    overflow-y: auto;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    box-shadow: none;
  }

  .tab {
    width: 100%;
    min-height: 42px;
    padding-inline: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    background: #f8fbf8;
  }

  .tab.active {
    background: var(--navy);
  }

  .standings-switch {
    display: grid;
    grid-template-columns: 1fr;
  }

  .standings-switch button {
    width: 100%;
  }

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

  .tips-result {
    text-align: left;
  }

  .scroll-hint {
    display: block;
  }
}

@media (max-width: 540px) {
  .scroll-top-button {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }

  main {
    width: calc(100% - 18px);
    margin-top: -30px;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-bottom: 38px;
  }

  .teams {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .teams span,
  .teams strong:last-child {
    text-align: left;
  }

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

  .team-standing-head,
  .team-members div,
  .team-assignment-row {
    grid-template-columns: 1fr;
  }
}
