:root {
  --bg: #07120d;
  --surface: #0f1c15;
  --surface-2: #16251d;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4fbf5;
  --muted: #aab9ad;
  --brand: #9be15d;
  --brand-2: #00c9a7;
  --gold: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(155, 225, 93, 0.14), transparent 32rem),
    linear-gradient(180deg, #07120d 0%, #0b1711 48%, #07120d 100%);
}

button {
  border: 0;
  font: inherit;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px calc(118px + env(safe-area-inset-bottom));
  position: relative;
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  margin: -14px -14px 14px;
  padding: max(14px, env(safe-area-inset-top)) 14px 12px;
  background: rgba(7, 18, 13, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.topbar h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h1 {
  margin-top: 2px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

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

.icon-button svg,
.nav-item svg,
.meta-row svg,
.play-button svg {
  width: 20px;
  height: 20px;
}

main {
  overflow: hidden;
}

.screen {
  display: none;
  animation: rise 220ms ease both;
}

.screen.active {
  display: block;
}

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

.feature-panel {
  min-height: 340px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7, 18, 13, 0.06), rgba(7, 18, 13, 0.94)),
    url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=1200&q=80")
      center/cover;
  box-shadow: var(--shadow);
}

.feature-overlay {
  width: 100%;
  padding: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #07120d;
  background: var(--brand);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-panel h2,
.video-feature h2,
.headline-card h2 {
  margin-top: 12px;
  max-width: 13ch;
  font-size: 2.15rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-panel p,
.headline-card p {
  margin-top: 10px;
  max-width: 28ch;
  color: #dce9de;
  line-height: 1.45;
}

.section-intro {
  padding: 4px 2px 18px;
}

.section-intro h2 {
  margin-top: 12px;
  font-size: 2.2rem;
  line-height: 1;
}

.section-intro p {
  margin-top: 8px;
  max-width: 30ch;
  color: var(--muted);
  line-height: 1.45;
}

.tournament-search {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 0 15px;
  color: #68746d;
  background: #e9eef0;
  border-radius: 8px;
}

.tournament-search svg {
  width: 23px;
  height: 23px;
}

.tournament-search input {
  min-width: 0;
  color: #111814;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
}

.tournament-search input::placeholder {
  color: #68746d;
}

.filter-scroll,
.tournament-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  margin: 14px -14px 0;
  padding: 0 14px 4px;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar,
.tournament-strip::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 42px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0 15px;
  color: #111814;
  background: #ffffff;
  border: 2px solid #dce4e6;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-chip.active {
  border-color: #b8c6c9;
}

.filter-chip svg {
  width: 16px;
  height: 16px;
}

.tournament-strip {
  margin-top: 10px;
  padding-bottom: 10px;
}

.tournament-bubble {
  width: 86px;
  display: grid;
  gap: 7px;
  justify-items: center;
  color: #5d6861;
  background: transparent;
}

.tournament-bubble span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #cc241d, #2333a0);
  border: 2px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.14);
  font-weight: 950;
}

.tournament-bubble:nth-child(2) span {
  background: linear-gradient(135deg, #ffd166, #00c9a7);
  color: #07120d;
}

.tournament-bubble:nth-child(3) span {
  background: linear-gradient(135deg, #111814, #777);
}

.tournament-bubble:nth-child(4) span {
  background: linear-gradient(135deg, #00c9a7, #2333a0);
}

.tournament-bubble strong {
  max-width: 84px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
}

.tournament-bubble.active strong {
  color: var(--text);
}

.storefront-heading {
  margin-top: 18px;
}

.featured-tournament {
  position: relative;
  min-height: 290px;
  overflow: hidden;
}

.featured-slide {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10px;
  min-height: 270px;
  padding: 18px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  background: #ffffff;
  border-radius: 8px;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.featured-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.featured-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.featured-copy h2 {
  margin-top: 14px;
  color: #101712;
  font-size: 1.8rem;
  line-height: 0.98;
}

.featured-copy p {
  margin-top: 10px;
  color: #3f4a43;
  line-height: 1.35;
}

.featured-copy .primary-action,
.featured-copy .ghost-action {
  width: max-content;
  margin-top: 18px;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.12);
}

.featured-copy .ghost-action {
  color: #111814;
  background: #eef3f4;
  border-color: #d9e4e6;
}

.featured-slide img {
  width: 100%;
  height: 230px;
  align-self: center;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
}

.placeholder-art {
  display: grid;
  place-items: center;
  align-self: center;
  height: 230px;
  color: #07120d;
  background:
    linear-gradient(135deg, rgba(155, 225, 93, 0.9), rgba(0, 201, 167, 0.85)),
    #9be15d;
  border-radius: 8px;
}

.placeholder-art svg {
  width: 74px;
  height: 74px;
}

.featured-dots {
  display: flex;
  gap: 7px;
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
}

.featured-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  background: #c3ced1;
  border-radius: 999px;
}

.featured-dots button.active {
  width: 20px;
  background: #111814;
}

.status-pill.red {
  color: #fff7d7;
  background: #cc241d;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.primary-action,
.ghost-action,
.text-action {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 850;
}

.primary-action {
  color: #07120d;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.primary-action.small {
  min-height: 38px;
}

.ghost-action {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.text-action {
  min-height: 36px;
  color: var(--brand);
  background: transparent;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 2px 12px;
}

.section-heading h3 {
  font-size: 1rem;
}

.event-card,
.tournament-card,
.matchday-card,
.contact-panel,
.empty-card,
.fixture-card,
.table-card,
.score-strip,
.headline-card,
.news-list article,
.video-grid article {
  background: rgba(15, 28, 21, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tournament-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tournament-poster {
  width: 100%;
  max-height: 480px;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.tournament-body {
  padding: 14px;
}

.tournament-title-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 12px;
  align-items: start;
}

.tournament-title-row h3 {
  margin-top: 10px;
  font-size: 1.36rem;
  line-height: 1.08;
}

.tournament-body p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.muted-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.matchday-card {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 14px;
}

.matchday-card h4 {
  color: var(--gold);
  font-size: 0.96rem;
}

.fixture-line {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.fixture-line span {
  color: #07120d;
  background: var(--gold);
  border-radius: 6px;
  padding: 5px 6px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.fixture-line strong {
  line-height: 1.3;
}

.contact-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(155, 225, 93, 0.16), rgba(0, 201, 167, 0.08));
}

.contact-panel span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-panel a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.empty-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.empty-card svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.empty-card p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.event-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
}

.date-tile {
  height: 64px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #07120d;
  background: var(--brand);
  border-radius: 8px;
}

.date-tile.warm {
  background: var(--gold);
}

.date-tile span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-tile strong {
  font-size: 1.7rem;
  line-height: 1;
}

.event-card h4,
.fixture-card strong,
.news-list h4,
.video-grid h4 {
  font-size: 0.98rem;
  line-height: 1.25;
}

.event-card p,
.fixture-card p,
.news-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: #d8e9db;
  font-size: 0.78rem;
}

.meta-row span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.score-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.score-strip span,
.headline-card span,
.video-feature span,
.news-list span,
.video-grid span {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.score-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 1.2rem;
}

.table-card {
  margin-top: 14px;
  overflow: hidden;
}

.league-row {
  display: grid;
  grid-template-columns: 34px 1fr 42px 48px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
}

.league-row:first-child {
  border-top: 0;
}

.league-row.header {
  min-height: 38px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fixture-list {
  display: grid;
  gap: 10px;
}

.fixture-card {
  padding: 14px;
}

.fixture-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
}

.video-feature {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.video-feature img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.video-feature > div {
  padding: 16px;
}

.play-button {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 218px;
  right: 16px;
  color: #07120d;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.video-grid article {
  overflow: hidden;
}

.video-grid img {
  width: 100%;
  aspect-ratio: 1.15;
  display: block;
  object-fit: cover;
}

.video-grid h4,
.video-grid span {
  display: block;
  margin: 9px 10px 0;
}

.video-grid span {
  margin-bottom: 10px;
}

.headline-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(7, 18, 13, 0.1), rgba(7, 18, 13, 0.94)),
    url("https://images.unsplash.com/photo-1577223625816-7546f13df25d?auto=format&fit=crop&w=1200&q=80")
      center/cover;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.news-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.news-list article {
  padding: 14px;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 20;
  width: min(calc(100% - 28px), 492px);
  transform: translateX(-50%);
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 209, 102, 0.5)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 209, 102, 0.28)),
    rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(22px) saturate(1.35);
    0 14px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
}

.nav-item {
  min-width: 0;
  min-height: 62px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #4b4030;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
  position: relative;
  z-index: 1;
}

.nav-item span {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.6rem, 2.55vw, 0.72rem);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.nav-item.active {
  color: #21170c;
  background: radial-gradient(circle at 50% 30%, rgba(155, 225, 93, 0.96), rgba(255, 209, 102, 0.72));
  box-shadow:
    0 9px 18px rgba(122, 80, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transform: translateY(-2px);
}

@media (min-width: 800px) {
  .app-shell {
    padding-top: 22px;
  }

  .feature-panel {
    min-height: 420px;
  }
}