:root {
  --bg: #07111f;
  --panel: #0d1b2f;
  --panel-2: #10243c;
  --line: rgba(157, 180, 210, .18);
  --text: #f6fbff;
  --muted: #94a8c0;
  --dim: #61738a;
  --cyan: #21d4fd;
  --lime: #b7ff3c;
  --orange: #ff9f1c;
  --red: #ff426d;
  --violet: #9b7cff;
  --shadow: 0 18px 55px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #02060d;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, #02060d 0%, #07111f 36%, #02060d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.phone-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(90deg, rgba(33, 212, 253, .06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(183, 255, 60, .035) 0 1px, transparent 1px 100%),
    var(--bg);
  background-size: 24px 24px;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, .58);
}

.app-main {
  min-height: 100vh;
  padding: 78px 16px 108px;
}

.top-appbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 30;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(7, 17, 31, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  color: #06101d;
  font-weight: 1000;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  line-height: 1;
}

.brand-lockup strong {
  font-weight: 950;
  letter-spacing: .08em;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  text-transform: uppercase;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.hero-stack,
.page-intro,
.tournament-hero,
.match-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(33, 212, 253, .16), transparent 38%),
    linear-gradient(20deg, rgba(183, 255, 60, .12), transparent 42%),
    linear-gradient(180deg, #11223a, #091524);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-stack::after,
.page-intro::after,
.tournament-hero::after,
.match-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--orange), var(--red));
}

.hero-copy,
.page-intro > *,
.tournament-hero > *,
.match-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--cyan);
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 12vw, 54px);
  line-height: .95;
  font-weight: 1000;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.05;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-stack p,
.page-intro p,
.tournament-hero p,
.match-hero p {
  margin-bottom: 0;
}

.live-strip {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.live-strip strong {
  color: var(--text);
  font-size: 20px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 66, 109, .13);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(.75);
    opacity: .7;
  }
}

.search-panel,
.info-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(13, 27, 47, .92);
}

.search-panel label,
.search-panel label span {
  display: block;
}

.search-panel label span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07111f;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(33, 212, 253, .8);
  box-shadow: 0 0 0 3px rgba(33, 212, 253, .12);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  font-weight: 900;
  white-space: nowrap;
}

.btn.primary {
  color: #06101d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
}

.btn.compact {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.quick-stats div {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
}

.quick-stats strong {
  font-size: 28px;
  line-height: 1;
}

.quick-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-block {
  margin-top: 22px;
}

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

.section-head a {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chip-row,
.hero-badges,
.hero-meta,
.match-meta,
.match-foot,
.section-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip,
.badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chip.active,
.badge.cyan,
.score-box.cyan {
  border-color: rgba(33, 212, 253, .42);
  color: var(--cyan);
  background: rgba(33, 212, 253, .1);
}

.badge.lime,
.score-box.lime {
  border-color: rgba(183, 255, 60, .4);
  color: var(--lime);
  background: rgba(183, 255, 60, .1);
}

.badge.red,
.score-box.red {
  border-color: rgba(255, 66, 109, .42);
  color: var(--red);
  background: rgba(255, 66, 109, .1);
}

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

.card-list {
  display: grid;
  gap: 12px;
}

.tournament-card {
  min-height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(150deg, rgba(33, 212, 253, .13), transparent 42%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.tournament-card.featured {
  min-height: 296px;
}

.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(183, 255, 60, .14), transparent 30%, rgba(33, 212, 253, .12));
  opacity: .8;
}

.tournament-card > *:not(.card-glow) {
  position: relative;
  z-index: 1;
}

.tournament-topline,
.tournament-foot,
.tournament-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tournament-topline > span:last-child,
.tournament-foot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tournament-card h2 {
  margin: 36px 0 8px;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.tournament-card p {
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tournament-stats {
  margin-bottom: 14px;
}

.tournament-stats span {
  flex: 1;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.tournament-stats b {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.tournament-foot strong {
  color: var(--lime);
  text-transform: uppercase;
}

.match-card,
.standing-row,
.player-card,
.team-tile,
.event-row,
.goal-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 27, 47, .9);
}

.match-card {
  display: block;
  padding: 15px;
  background:
    linear-gradient(145deg, rgba(33, 212, 253, .13), transparent 42%),
    linear-gradient(25deg, rgba(183, 255, 60, .09), transparent 48%),
    rgba(13, 27, 47, .94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.match-meta,
.match-foot {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  justify-content: space-between;
}

.match-foot a {
  color: var(--lime);
}

.match-tournament {
  width: 100%;
  color: var(--cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.team-side {
  min-width: 0;
  display: flex;
  min-height: 146px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 7px;
  border: 1px solid rgba(148, 168, 192, .14);
  border-radius: 8px;
  background: rgba(7, 17, 31, .38);
  text-align: center;
}

.team-side.right {
  flex-direction: column;
  text-align: center;
}

.team-side strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.12;
}

.team-side span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.score-box {
  min-width: 92px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(183, 255, 60, .42);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(183, 255, 60, .13), rgba(33, 212, 253, .04)),
    #07111f;
  font-size: 31px;
  font-weight: 1000;
  box-shadow: inset 0 0 26px rgba(183, 255, 60, .07);
}

.score-box span {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(33, 212, 253, .22), rgba(183, 255, 60, .14));
  color: var(--text);
  font-size: 14px;
  font-weight: 1000;
  overflow: hidden;
}

.avatar.sm {
  width: 42px;
  height: 42px;
  font-size: 11px;
}

.avatar.lg {
  width: 84px;
  height: 84px;
  font-size: 18px;
}

.avatar.xl {
  width: 118px;
  height: 118px;
  font-size: 22px;
}

.avatar.match-logo {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, .28);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(135deg, rgba(33, 212, 253, .25), rgba(183, 255, 60, .16));
  box-shadow:
    0 0 0 1px rgba(33, 212, 253, .12),
    0 15px 32px rgba(0, 0, 0, .38);
}

.avatar.showcase {
  width: 148px;
  height: 148px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, .34);
  box-shadow:
    0 0 0 5px rgba(33, 212, 253, .08),
    0 0 54px rgba(33, 212, 253, .2),
    0 22px 55px rgba(0, 0, 0, .45);
}

.avatar.player-showcase {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border-color: rgba(183, 255, 60, .34);
}

.identity-link {
  display: inline-flex;
  border-radius: 14px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-hero {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-size: cover;
  background-position: center;
}

.tournament-hero h1 {
  font-size: clamp(38px, 13vw, 58px);
}

.hero-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-tabs {
  position: sticky;
  top: 68px;
  z-index: 10;
  margin: 12px -16px 14px;
  padding: 9px 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
  background: rgba(7, 17, 31, .84);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.section-tabs a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-tabs a.active {
  color: #06101d;
  border-color: transparent;
  background: var(--lime);
}

.standings-list,
.player-list,
.team-grid,
.more-grid,
.event-list {
  display: grid;
  gap: 10px;
}

.standing-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 32px auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
}

.standing-row.leader {
  border-color: rgba(183, 255, 60, .38);
  background: rgba(183, 255, 60, .08);
}

.rank {
  color: var(--lime);
  font-size: 20px;
  font-weight: 1000;
  text-align: center;
}

.standing-row strong,
.player-card strong,
.team-tile strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standing-mini {
  grid-column: 3 / 5;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.form-strip {
  display: inline-flex;
  gap: 4px;
}

.form-dot {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #06101d;
  font-size: 10px;
  font-weight: 1000;
  background: var(--dim);
}

.form-dot.win {
  background: var(--lime);
}

.form-dot.draw {
  background: var(--orange);
}

.form-dot.loss {
  background: var(--red);
  color: var(--text);
}

.form-empty {
  color: var(--dim);
  font-size: 11px;
}

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

.team-tile {
  min-height: 188px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(33, 212, 253, .14), transparent 55%),
    rgba(13, 27, 47, .92);
}

.team-tile.large {
  min-height: 220px;
}

.team-tile span,
.player-card span {
  color: var(--muted);
  font-size: 12px;
}

.player-card {
  min-height: 104px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(90deg, rgba(33, 212, 253, .1), transparent),
    rgba(13, 27, 47, .92);
}

.player-card.feature {
  min-height: 126px;
  border-color: rgba(183, 255, 60, .2);
}

.player-card div {
  min-width: 0;
}

.player-card b {
  color: var(--lime);
}

.bracket-stack {
  display: grid;
  gap: 18px;
}

.bracket-round {
  position: relative;
}

.bracket-round h2 {
  margin-bottom: 10px;
  color: var(--cyan);
  text-transform: uppercase;
}

.match-hero {
  text-align: center;
}

.team-hero-card {
  position: relative;
  min-height: 380px;
  display: grid;
  align-content: end;
  justify-items: center;
  overflow: hidden;
  border: 1px solid rgba(33, 212, 253, .22);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 8%, rgba(33, 212, 253, .28), transparent 34%),
    radial-gradient(circle at 50% 42%, rgba(183, 255, 60, .13), transparent 45%),
    linear-gradient(180deg, #122843, #07111f 74%);
  box-shadow: var(--shadow);
}

.team-hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--orange), var(--red));
}

.team-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 78%);
}

.team-hero-logo,
.team-hero-copy {
  position: relative;
  z-index: 1;
}

.team-hero-logo {
  margin-bottom: 20px;
}

.team-hero-copy h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 11vw, 50px);
}

.team-record {
  margin-top: 14px;
}

.match-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 20px 0 14px;
}

.match-team {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.match-team strong {
  max-width: 110px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.giant-score {
  min-width: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.giant-score b {
  font-size: 48px;
  line-height: 1;
}

.giant-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
}

.event-row,
.goal-row {
  min-height: 58px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.goal-row {
  justify-content: flex-start;
}

.goal-row > b {
  width: 38px;
  color: var(--lime);
  font-size: 20px;
}

.goal-row div {
  min-width: 0;
}

.goal-row strong,
.goal-row span {
  display: block;
}

.goal-row span {
  color: var(--muted);
  font-size: 12px;
}

.info-card h2 {
  margin-bottom: 12px;
}

.info-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.info-card dd {
  margin: 0;
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
}

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

.more-grid a {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--cyan);
  font-weight: 1000;
  text-transform: uppercase;
}

.empty-state {
  margin-top: 16px;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(148, 168, 192, .3);
  border-radius: 8px;
  padding: 22px;
  background: rgba(13, 27, 47, .58);
}

.empty-state.compact {
  min-height: 150px;
  margin-top: 0;
}

.empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(33, 212, 253, .3);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 1000;
  margin: 0 auto 12px;
}

.empty-state h1,
.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 320px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0, rgba(33, 212, 253, .18), transparent 58%),
    rgba(7, 17, 31, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  min-width: 0;
  min-height: 66px;
  display: grid;
  place-items: center;
  gap: 5px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.bottom-nav a.active {
  color: #06101d;
  background:
    linear-gradient(135deg, rgba(183, 255, 60, .96), rgba(33, 212, 253, .96));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .24) inset,
    0 14px 30px rgba(33, 212, 253, .18);
}

.bottom-nav a:not(.active) {
  border: 1px solid rgba(148, 168, 192, .1);
  background: rgba(255, 255, 255, .02);
}

.bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 40;
  width: min(calc(100% - 28px), 452px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(183, 255, 60, .38);
  border-radius: 8px;
  padding: 12px;
  background: #0d1b2f;
  box-shadow: var(--shadow);
}

.install-toast:not(.is-visible) {
  display: none;
}

.install-toast strong,
.install-toast span {
  display: block;
}

.install-toast span {
  color: var(--muted);
  font-size: 12px;
}

.ghost-x {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-weight: 900;
}

.back-top {
  position: fixed;
  right: calc(50% - min(50%, 240px) + 16px);
  bottom: 92px;
  z-index: 25;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(13, 27, 47, .88);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 370px) {
  .filter-row {
    grid-template-columns: 1fr;
  }

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

  .score-row {
    grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
    gap: 7px;
  }

  .team-side,
  .team-side.right {
    min-height: 132px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .avatar.match-logo {
    width: 72px;
    height: 72px;
  }

  .score-box {
    min-width: 78px;
    height: 68px;
    font-size: 26px;
  }

  .giant-score {
    width: 100%;
    min-width: 0;
  }

  .standing-row {
    grid-template-columns: 28px auto 1fr;
  }

  .standing-row > b {
    grid-column: 3;
  }

  .form-strip {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
