:root {
  --bg: #060806;
  --panel: rgba(12, 16, 13, .76);
  --panel-2: rgba(19, 25, 20, .88);
  --panel-3: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .13);
  --text: #f8fbf6;
  --muted: #aab3a5;
  --green: #45df00;
  --green-2: #c7ff65;
  --cyan: #69e8ff;
  --amber: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, .46);
  --soft-shadow: 0 16px 38px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(145deg, rgba(69, 223, 0, .13), transparent 27%),
    radial-gradient(circle at 84% 5%, rgba(105, 232, 255, .12), transparent 28%),
    radial-gradient(circle at 8% 32%, rgba(255, 209, 102, .08), transparent 22%),
    linear-gradient(180deg, #0d100c, #060806 48%, #050605);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

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

.app-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0px 5px;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: absolute;
  top: 76px;
  right: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(105, 232, 255, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .04), transparent);
  transform: rotate(-15deg);
  pointer-events: none;
  opacity: .58;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -22px -16px 0;
  padding: 12px 16px 10px;
  background: linear-gradient(180deg, rgba(6, 8, 6, .96), rgba(6, 8, 6, .74) 72%, transparent);
  backdrop-filter: blur(22px);
}

.app-topbar img {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .5));
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .065);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-button:hover {
  border-color: rgba(69, 223, 0, .38);
  background: rgba(69, 223, 0, .12);
}

.icon-button span {
  width: 15px;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
}

.welcome {
  position: relative;
  padding: 24px 0 18px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--green-2);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  max-width: 350px;
  font-size: clamp(1.42rem, 6.6vw, 1.66rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.league-carousel::-webkit-scrollbar {
  display: none;
}

.hero-carousel,
.content-section {
  position: relative;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035) 42%, rgba(69, 223, 0, .045)),
    rgba(10, 13, 10, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  isolation: isolate;
}

.hero-carousel::after,
.content-section::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), transparent 30%);
  pointer-events: none;
}

.app-panel {
  display: none;
}

.app-panel.active {
  display: block;
  animation: panelIn .24s ease both;
}

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

.section-head h2 {
  margin: 0;
  font-size: 1.12rem;
  text-transform: none;
}

.section-head a,
.section-head>span {
  padding: 7px 10px;
  color: var(--green-2);
  font-size: .7rem;
  font-weight: 800;
  border: 1px solid rgba(69, 223, 0, .24);
  border-radius: 999px;
  background: rgba(69, 223, 0, .095);
  white-space: nowrap;
}

.league-carousel {
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.league-slide {
  position: relative;
  flex: 0 0 68%;
  min-height: 118px;
  padding: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  scroll-snap-align: center;
  box-shadow: none;
  transition: transform .22s ease, border-color .22s ease;
}

.league-slide:active,
.match-card:active,
.entity-card:active {
  transform: scale(.985);
}

.league-slide::before {
  display: none;
}

.league-logo {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
  background: transparent;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 1000;
  box-shadow: none;
}

.league-slide h3 {
  position: relative;
  margin: 28px 0 0;
  font-size: 1.02rem;
  line-height: 1.05;
  text-transform: none;
}

.league-slide p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 700;
}

.league-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #071006;
  font-size: .64rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(69, 223, 0, .18);
}

.carousel-bars {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.carousel-bars span {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.carousel-bars .active {
  background: var(--green);
}

.match-list,
.entity-list {
  display: grid;
  gap: 11px;
}

.match-card,
.entity-card,
.empty-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .035)),
    rgba(10, 13, 10, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 12px 26px rgba(0, 0, 0, .18);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.match-card {
  gap: 10px;
  padding: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    rgba(8, 11, 9, .72);
}

.empty-card {
  padding-left: 30px;
}

.match-card:hover,
.entity-card:hover,
.empty-card:hover {
  border-color: rgba(69, 223, 0, .32);
  background:
    linear-gradient(145deg, rgba(69, 223, 0, .12), rgba(105, 232, 255, .035)),
    rgba(9, 11, 9, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 16px 32px rgba(0, 0, 0, .22);
}

.entity-card::before,
.empty-card::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 5px;
  height: calc(100% - 30px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--cyan));
}

.match-card::before {
  display: none;
}

.match-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  padding-left: 0;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-card header span:last-child,
.entity-meta {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(69, 223, 0, .1);
  color: var(--green-2);
  font-size: .66rem;
  line-height: 1;
}

.match-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0;
}

.team {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

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

.team-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 7px;
  background: transparent;
  color: var(--green-2);
  font-size: .58rem;
  font-weight: 1000;
  box-shadow: none;
}

.team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-copy {
  min-width: 0;
}

.team strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
}

.team span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
}

.match-score .team:last-child {
  text-align: right;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid rgba(69, 223, 0, .22);
  border-radius: 8px;
  background: rgba(69, 223, 0, .09);
  color: var(--green-2);
  font-size: .98rem;
  font-weight: 1000;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
}

.match-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-card {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  padding-left: 22px;
}

.entity-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(69, 223, 0, .22), rgba(105, 232, 255, .09)),
    rgba(69, 223, 0, .08);
  color: var(--green);
  font-size: .8rem;
  font-weight: 1000;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}

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

.entity-main {
  min-width: 0;
}

.entity-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .98rem;
  letter-spacing: 0;
}

.entity-main span,
.empty-card {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.entity-meta {
  font-weight: 1000;
  text-align: right;
  text-transform: uppercase;
}

.pager {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.pager button {
  flex: 1;
  min-height: 44px;
  border: 1px solid rgba(69, 223, 0, .24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(69, 223, 0, .14), rgba(105, 232, 255, .055));
  color: var(--text);
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}

.pager button:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(69, 223, 0, .42);
}

.pager button:disabled {
  opacity: .42;
}

.skeleton {
  min-height: 96px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(69, 223, 0, .1), rgba(255, 255, 255, .05));
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 460px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background:
    linear-gradient(180deg, rgba(22, 28, 22, .9), rgba(4, 6, 4, .97));
  backdrop-filter: blur(24px);
  box-shadow: 0 -18px 46px rgba(0, 0, 0, .38);
}

.bottom-nav a {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 42px;
  color: #f7faf4;
  font-size: .61rem;
  font-weight: 900;
  border-radius: 8px;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}

.bottom-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bottom-nav .active {
  color: #071006;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 14px 28px rgba(69, 223, 0, .2);
  transform: translateY(-1px);
}

.bottom-nav .active::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #071006;
  opacity: .65;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (prefers-reduced-motion: no-preference) {
  .league-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 28%, rgba(255, 255, 255, .13), transparent 56%);
    transform: translateX(-120%);
    animation: scan 4.8s ease-in-out infinite;
  }

  .bottom-nav .active svg {
    animation: pop .28s ease both;
  }
}

@keyframes scan {

  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes pop {
  0% {
    transform: scale(.82);
  }

  70% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@media (min-width: 560px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(69, 223, 0, .14), transparent 28%),
      #111;
  }

  .app-shell {
    margin-top: 22px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 22%),
      #050605;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  }
}