/* Visual rules retained from the supplied 8mbc startup page. */
:root {
      color-scheme: dark;
      --blue: #1597ff;
      --blue-hot: #45caff;
      --deep: #020814;
      --white: #f7fbff;
      font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      width: 100%;
      min-height: 100%;
      margin: 0;
      background: #030713;
      color: var(--white);
    }

    body {
      min-height: 100vh;
      overflow: hidden;
      background:
        radial-gradient(circle at 50% 18%, rgba(20, 99, 255, 0.25), transparent 30%),
        linear-gradient(120deg, #01040b, #071326 46%, #070409);
    }

    .phone {
      position: relative;
      width: 100vw;
      height: 100svh;
      min-height: 100vh;
      overflow: hidden;
      border-radius: 0;
      background:
        linear-gradient(180deg, rgba(0, 5, 14, 0.18) 0%, rgba(0, 6, 16, 0.02) 38%, rgba(0, 4, 12, 0.74) 79%, #020711 100%),
        url("assets/user-sports-bg.webp") center / auto 100% no-repeat,
        linear-gradient(90deg, rgba(1, 5, 14, 0.9), rgba(2, 11, 28, 0.2) 44%, rgba(2, 4, 12, 0.9)),
        url("assets/user-sports-bg.webp") center / cover no-repeat;
      box-shadow: none;
    }

    .phone::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 50% 52%, transparent 0 40%, rgba(0,0,0,0.12) 57%, rgba(0,0,0,0.5) 100%),
        linear-gradient(180deg, #020714 0 11%, transparent 28%, transparent 66%, rgba(0, 0, 0, 0.88) 87%, #020711 100%);
      pointer-events: none;
    }

    .phone::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, transparent 0 7%, rgba(18, 122, 255, 0.18) 8%, transparent 11% 89%, rgba(255, 42, 30, 0.14) 92%, transparent 96%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 92px);
      mix-blend-mode: screen;
      opacity: 0.42;
      pointer-events: none;
    }


    .brand {
      position: absolute;
      left: 50%;
      top: clamp(76px, 11vh, 132px);
      width: min(86vw, 760px);
      transform: translateX(-50%);
      z-index: 2;
      display: grid;
      justify-items: center;
      text-align: center;
    }


    .sports-title {
      margin-top: clamp(2px, 0.8vw, 8px);
      font-size: clamp(58px, 10vw, 120px);
      line-height: 0.92;
      font-weight: 950;
      font-style: italic;
      letter-spacing: 0;
      transform: skewX(-10deg);
      color: #fff;
      text-shadow:
        0 3px 0 rgba(46, 87, 170, 0.75),
        0 0 20px rgba(72, 157, 255, 0.55),
        0 0 42px rgba(16, 112, 255, 0.45);
    }

    .tagline {
      position: relative;
      margin-top: clamp(12px, 3vw, 18px);
      color: rgba(255,255,255,0.82);
      font-size: clamp(14px, 2.4vw, 22px);
      line-height: 1;
      font-weight: 500;
      text-shadow: 0 0 14px rgba(0,0,0,0.65);
    }

    .tagline::before,
    .tagline::after,
    .footer-text::before,
    .footer-text::after {
      content: "";
      position: absolute;
      top: 50%;
      width: clamp(58px, 15vw, 94px);
      height: 1px;
      background: linear-gradient(90deg, transparent, #187cff);
    }

    .tagline::before,
    .footer-text::before {
      right: calc(100% + 12px);
    }

    .tagline::after,
    .footer-text::after {
      left: calc(100% + 12px);
      transform: scaleX(-1);
    }

    .tagline span,
    .footer-text span {
      position: relative;
      display: inline-block;
    }

    .tagline span::before,
    .tagline span::after,
    .footer-text span::before,
    .footer-text span::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 5px;
      height: 5px;
      margin-top: -2px;
      border-radius: 50%;
      background: #1e8cff;
      box-shadow: 0 0 10px rgba(30, 140, 255, 0.9);
    }

    .tagline span::before,
    .footer-text span::before {
      left: -18px;
    }

    .tagline span::after,
    .footer-text span::after {
      right: -18px;
    }

    .loading-area {
      position: absolute;
      left: 50%;
      bottom: 19.9%;
      width: min(78vw, 620px);
      transform: translateX(-50%);
      z-index: 3;
      display: grid;
      gap: clamp(12px, 3vw, 18px);
    }

    .loading-label {
      display: flex;
      justify-content: center;
      gap: 0.34em;
      color: #fff;
      font-size: clamp(18px, 3.2vw, 30px);
      line-height: 1;
      font-style: italic;
      font-weight: 800;
      letter-spacing: 0.32em;
      text-shadow: 0 0 18px rgba(26, 121, 255, 0.72);
    }

    .progress-row {
      display: grid;
      grid-template-columns: 1fr;
      justify-items: center;
      gap: clamp(8px, 2.2vw, 12px);
    }

    .progress-track {
      --progress: 0%;
      position: relative;
      width: 100%;
      height: clamp(28px, 5vw, 42px);
      border-radius: 999px;
      border: 2px solid #0b55ff;
      background: linear-gradient(180deg, rgba(2, 6, 26, 0.98), rgba(2, 10, 38, 0.86));
      box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.78),
        0 0 22px rgba(0, 126, 255, 0.8),
        inset 0 2px 8px rgba(255, 255, 255, 0.12),
        inset 0 -4px 12px rgba(0, 10, 34, 0.8);
      overflow: visible;
    }

    .progress-fill {
      position: absolute;
      inset: 3px auto 3px 3px;
      width: var(--progress);
      border-radius: 999px;
      background:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 7px, transparent 7px 15px),
        linear-gradient(90deg, #074dff 0%, #0ea5ff 48%, #43e7ff 100%);
      box-shadow:
        0 0 22px rgba(14, 159, 255, 0.85),
        inset 0 3px 9px rgba(255,255,255,0.32);
      overflow: hidden;
    }

    .progress-fill::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
      animation: sweep 1.6s ease-in-out infinite;
    }

    .soccer-knob {
      position: absolute;
      left: clamp(21px, var(--progress), calc(100% - 21px));
      top: 50%;
      width: clamp(43px, 7.4vw, 62px);
      height: clamp(43px, 7.4vw, 62px);
      margin-left: clamp(-22px, -5.6vw, -29px);
      transform: translateY(-50%);
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: transparent;
      border: 0;
      box-shadow:
        0 0 20px rgba(31, 165, 255, 0.9),
        0 0 42px rgba(31, 165, 255, 0.68);
      animation: ballPulse 1.55s ease-in-out infinite;
    }

    .soccer-knob::before,
    .soccer-knob::after {
      display: none;
    }

    .soccer-knob img {
      width: 122%;
      height: 122%;
      object-fit: contain;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.28));
    }

    .percent {
      min-width: 54px;
      text-align: center;
      color: #1bb7ff;
      font-size: clamp(17px, 3vw, 24px);
      line-height: 1;
      font-weight: 900;
      letter-spacing: 0;
      text-shadow: 0 0 14px rgba(27, 183, 255, 0.9);
    }

    .sports-nav {
      position: absolute;
      left: 50%;
      bottom: 9.6%;
      width: min(76vw, 560px);
      transform: translateX(-50%);
      z-index: 3;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      align-items: center;
      height: clamp(44px, 7vw, 64px);
    }

    .sport-item {
      position: relative;
      display: grid;
      place-items: center;
      height: 100%;
      color: rgba(255,255,255,0.64);
    }

    .sport-item + .sport-item {
      border-left: 1px solid rgba(70, 124, 190, 0.22);
    }

    .sport-item svg {
      width: clamp(26px, 4.4vw, 38px);
      height: clamp(26px, 4.4vw, 38px);
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      filter: drop-shadow(0 0 8px rgba(0,0,0,0.6));
    }

    .sport-item.active {
      color: #fff;
      filter: drop-shadow(0 0 12px rgba(31, 135, 255, 0.95));
    }

    .sport-item.active::after {
      content: "";
      position: absolute;
      left: 21%;
      right: 21%;
      bottom: 0;
      height: 3px;
      border-radius: 999px;
      background: #0f8cff;
      box-shadow: 0 0 16px #0f8cff, 0 0 30px rgba(15, 140, 255, 0.9);
    }

    .more {
      display: flex;
      gap: 5px;
      color: rgba(255,255,255,0.72);
    }

    .more i {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
    }

    .footer-text {
      position: absolute;
      left: 50%;
      bottom: 5.1%;
      width: min(80vw, 620px);
      transform: translateX(-50%);
      z-index: 3;
      text-align: center;
      color: rgba(255,255,255,0.56);
      font-size: clamp(15px, 2.2vw, 21px);
      line-height: 1;
      font-weight: 500;
      white-space: nowrap;
    }

    @keyframes sweep {
      from { transform: translateX(-110%); }
      to { transform: translateX(135%); }
    }

    @keyframes ballPulse {
      0%, 100% { transform: translateY(-50%) scale(1); }
      50% { transform: translateY(-50%) scale(1.06); }
    }

    @media (max-width: 560px) {
      .brand {
        top: 18.8%;
        width: 84vw;
      }

      .loading-area {
        width: 79vw;
      }

      .sports-nav {
        width: 76vw;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
      }
    }

/* Keep the same artwork and hierarchy on short landscape screens. */
@media (min-width: 561px) and (max-height: 480px) {
  .brand { top: 8%; }
  .sports-title { margin-top: 2px; font-size: clamp(46px, 17vh, 76px); }
  .tagline { margin-top: 12px; font-size: 14px; }
  .loading-area { bottom: 24%; width: min(68vw, 620px); gap: 12px; }
  .loading-label { font-size: 20px; }
  .progress-row { gap: 8px; }
  .progress-track { height: 28px; }
  .soccer-knob { width: 43px; height: 43px; margin-left: -22px; }
  .percent { font-size: 17px; }
  .sports-nav { bottom: 8%; height: 38px; }
  .sport-item svg { width: 26px; height: 26px; }
  .footer-text { bottom: 2%; font-size: 14px; }
}
