:root {
  color-scheme: light;
  --ink: #171d1a;
  --muted: #66706b;
  --soft: #f5f7f6;
  --surface: #ffffff;
  --line: #dde4e0;
  --line-strong: #c9d4ce;
  --accent: #0d5b47;
  --accent-soft: #e8f1ed;
  --shadow: 0 18px 54px rgba(30, 48, 40, 0.08);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Satoshi", "Geist", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
}

a,
button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
  transform: translateY(1px) scale(0.99);
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(14px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.top-actions,
.stats,
.match-top,
.teams,
.download-row,
.toggle-row,
.reason-chips,
.hero-actions,
.top-picks-head,
.mini-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.top-actions {
  gap: 8px;
}

.top-actions a,
.top-actions button,
.download-row a,
.download-row button,
.toolbar button,
footer button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms, background 180ms;
}

.primary-action,
.download-row .primary-action {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.icon-link,
.profile-button {
  gap: 7px;
}

.profile-button {
  font-weight: 850;
}

.profile-button span {
  white-space: nowrap;
}

.profile-button img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

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

.hero {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: 18px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: brightness(1.14) saturate(1.04);
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(9, 25, 21, 0.08), rgba(9, 25, 21, 0.58) 74%),
    linear-gradient(0deg, rgba(9, 25, 21, 0.42), rgba(9, 25, 21, 0.1));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 116px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(40px, 5.8vw, 70px);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.title-mobile {
  display: none;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
}

.hero-copy > p:last-of-type,
.section-head > p {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
}

.hero .eyebrow {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.hero-copy > p:last-of-type {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.hero-actions {
  width: fit-content;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px auto 0;
}

.hero-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.hero-actions a:first-child {
  border-color: transparent;
  background: #fff;
  color: var(--accent);
}

.mobile-island {
  display: none;
}

.next-card {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 40px;
  width: min(760px, calc(100% - 36px));
  transform: translateX(-50%);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 0.7fr);
  gap: 8px 14px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  text-align: left;
}

.next-card span,
.next-card small,
.stats span,
.stats small,
label span,
.stage-control > span,
.plan-score span,
.plan-score small,
.top-picks-head p,
.mini-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.next-card span,
.next-card small {
  color: rgba(255, 255, 255, 0.72);
}

.next-card strong {
  min-width: 0;
  display: block;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-card small {
  grid-column: 2;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats {
  position: relative;
  z-index: 3;
  width: min(1040px, 100%);
  margin: -18px auto 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stats article {
  flex: 1;
  min-width: 0;
  padding: 18px 18px;
  border-right: 1px solid var(--line);
}

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

.stats strong {
  display: inline-block;
  margin: 4px 4px 0 0;
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1;
}

.planner-section,
.spotlight-section,
.schedule-section {
  scroll-margin-top: 84px;
  margin-top: 54px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.planner-head {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 14px;
}

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

.calendar-help article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-help strong {
  font-size: 14px;
}

.calendar-help span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.section-head.compact {
  align-items: center;
}

.section-head.compact > span {
  justify-self: end;
  color: var(--muted);
  font-weight: 850;
}

.subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.subscribe-card,
.result-card,
.toolbar,
.match-card,
.shortcut-card,
.star-card,
.qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.subscribe-card,
.result-card {
  min-width: 0;
  padding: 16px;
}

label,
.stage-control {
  display: grid;
  gap: 7px;
}

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

input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(13, 91, 71, 0.2);
  outline-offset: 2px;
}

.team-picker {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 6px;
}

.team-chip {
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
}

.team-code,
.plan-date,
.match-time,
.shortcut-code {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 900;
}

.team-code,
.team-tier {
  font-size: 11px;
}

.team-name {
  font-weight: 850;
}

.team-tier {
  color: var(--muted);
  font-family: var(--mono);
}

.team-chip.active {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.team-chip.active .team-code,
.team-chip.active .team-tier {
  color: rgba(255, 255, 255, 0.76);
}

.preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stage-control {
  grid-column: 1 / -1;
}

.toggle-row {
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-row label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.result-card {
  display: grid;
  align-content: start;
  gap: 13px;
}

.plan-score {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 8px;
  align-items: end;
}

.plan-score span {
  grid-column: span 2;
}

.plan-score strong {
  font-family: var(--mono);
  font-size: clamp(54px, 8vw, 86px);
  line-height: 0.86;
}

.result-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.reason-chips {
  flex-wrap: wrap;
  gap: 8px;
}

.reason-chips span,
.match-grade {
  border-radius: 8px;
  padding: 4px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.download-row {
  flex-wrap: wrap;
  gap: 8px;
}

.feed-select {
  margin-top: 8px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.top-picks-head {
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.top-picks-head h3,
.top-picks-head p {
  margin: 0;
}

.top-picks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.plan-item {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  animation: rise 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 38ms);
}

.plan-main strong {
  display: block;
}

.plan-main span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.plan-badge {
  width: max-content;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 900;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.spotlight-layout > section {
  min-width: 0;
}

.mini-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mini-head h3 {
  margin: 0;
}

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

.shortcut-card {
  overflow: hidden;
  animation: rise 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 28ms);
}

.shortcut-card button,
.star-card button {
  width: 100%;
  display: grid;
  gap: 5px;
  border: 0;
  padding: 12px;
  background: #fff;
  text-align: left;
}

.shortcut-card strong,
.star-card strong {
  overflow-wrap: anywhere;
}

.shortcut-card small,
.star-card small,
.shortcut-card div span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.shortcut-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.shortcut-card a,
.star-card a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.star-grid {
  display: grid;
  gap: 10px;
}

.star-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-right: 10px;
  animation: rise 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 34ms);
}

.star-card button span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(124px, 1fr)) auto;
  gap: 10px;
  padding: 14px;
}

.schedule-list {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.date-group h3 {
  position: sticky;
  top: 65px;
  z-index: 5;
  margin: 0 0 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

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

.match-card {
  padding: 14px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms, box-shadow 180ms;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(30, 48, 40, 0.08);
}

.match-top {
  justify-content: space-between;
  gap: 10px;
}

.match-grade.elite {
  background: #edf3f0;
  color: #194c3c;
}

.match-grade.favorite {
  background: #dfeee8;
  color: var(--accent);
}

.teams {
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 10px;
}

.teams span {
  min-width: 0;
  flex: 1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.teams .away {
  text-align: right;
}

.score {
  flex: 0 0 auto;
  min-width: 58px;
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  text-align: center;
}

.score.upcoming {
  background: var(--soft);
  color: var(--muted);
}

.match-detail {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.match-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.match-actions a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

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

.empty-state.inline {
  grid-column: 1 / -1;
  padding: 26px 0;
}

footer {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 54px auto 0;
  padding: 24px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer strong {
  display: block;
  color: var(--ink);
}

footer p {
  margin-bottom: 0;
}

.support-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(86vh, 780px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.support-dialog::backdrop {
  background: rgba(18, 32, 29, 0.45);
  backdrop-filter: blur(5px);
}

.dialog-panel {
  position: relative;
  overflow: auto;
  max-height: min(86vh, 780px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(20, 37, 31, 0.28);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.creator-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 38px;
}

.creator-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(31, 50, 40, 0.16);
}

.creator-card h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.creator-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

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

.qr-card {
  min-width: 0;
  padding: 14px;
  background: #fff;
}

.qr-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.qr-card img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.qr-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.profile-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

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

@media (max-width: 1080px) {
  .hero,
  .section-head,
  .subscribe-layout,
  .spotlight-layout,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-left: 0;
  }

  .top-picks,
  .team-shortcuts,
  .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head.compact > span {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .mobile-island {
    position: fixed;
    top: 10px;
    left: 50%;
    z-index: 30;
    width: min(calc(100% - 28px), 370px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(221, 228, 224, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 44px rgba(23, 29, 26, 0.16);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -14px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-island.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
  }

  .mobile-island a,
  .mobile-island button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 6px;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-island a:first-child {
    background: var(--ink);
    color: #fff;
  }

  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .top-actions,
  .download-row {
    width: min(100%, 340px);
  }

  .hero-actions {
    width: min(100%, 340px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-actions a,
  .top-actions button,
  .download-row a,
  .download-row button {
    flex: 1;
    padding-inline: 10px;
  }

  .hero-actions a {
    min-height: 42px;
    justify-content: center;
    min-width: 0;
    padding-inline: 12px;
    text-align: center;
    white-space: nowrap;
  }

  .hero {
    min-height: 520px;
    padding: 34px 18px 142px;
  }

  .next-card {
    bottom: 16px;
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .next-card small {
    grid-column: 1;
  }

  h1 {
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 22px;
    font-size: clamp(32px, 9.6vw, 40px);
    line-height: 1.12;
  }

  h1 span {
    display: block;
    white-space: nowrap;
  }

  .title-desktop {
    display: none;
  }

  .title-mobile {
    display: block;
  }

  .calendar-help {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: clamp(28px, 9vw, 40px);
  }

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

  .stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats article:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stats article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .stats article:nth-child(4) {
    border-bottom: 1px solid var(--line);
  }

  .stats article:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .preference-grid,
  .top-picks,
  .team-shortcuts,
  .match-grid {
    grid-template-columns: 1fr;
  }

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

  .star-card {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .star-card a {
    margin: 0 10px 10px;
  }

  .section-head {
    gap: 10px;
  }

  .support-dialog {
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100dvh - 28px);
  }

  .dialog-panel {
    max-height: calc(100dvh - 28px);
    padding: 14px;
  }

  .creator-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding-right: 34px;
  }

  .creator-avatar {
    width: 52px;
    height: 52px;
  }

  .creator-card h2 {
    margin-bottom: 4px;
    font-size: 22px;
  }

  .creator-card p:last-child {
    font-size: 13px;
    line-height: 1.38;
  }

  .qr-grid {
    gap: 8px;
    margin-top: 12px;
  }

  .qr-card {
    padding: 10px;
  }

  .qr-card h3 {
    font-size: 15px;
  }

  .qr-card img {
    max-width: 126px;
  }

  .qr-card p {
    display: none;
  }

  .profile-links {
    gap: 6px;
    margin-top: 10px;
  }

  .profile-links a {
    flex: 1;
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  footer {
    align-items: stretch;
    flex-direction: column;
  }
}
