:root {
  --black: #020403;
  --ink: #06120b;
  --panel: rgba(3, 22, 13, 0.78);
  --panel-strong: rgba(2, 34, 18, 0.92);
  --green: #0b6c39;
  --green-hot: #22d271;
  --gold: #f3bd48;
  --gold-light: #fff2b4;
  --text: #fff7d3;
  --muted: rgba(255, 247, 216, 0.78);
  --line: rgba(255, 220, 116, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  color: var(--text);
  background: var(--black);
}

button {
  font: inherit;
}

.app {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(1, 8, 4, 0) 0%, #020403 76%);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 44px 18px 34px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 50% 28%, rgba(255, 215, 82, 0.18), transparent 34rem),
    url("./hero-tournament.png");
  background-position: center;
  background-size: cover;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.68)),
    radial-gradient(circle at 50% 88%, rgba(21, 177, 87, 0.28), transparent 20rem);
}

.hero::after {
  background-image:
    linear-gradient(rgba(255, 232, 153, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 232, 153, 0.04) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, transparent, #000 26%, transparent 88%);
}

.spotlight {
  position: absolute;
  top: -18%;
  z-index: -1;
  width: 26vw;
  min-width: 190px;
  height: 122%;
  pointer-events: none;
  opacity: 0.42;
  background: linear-gradient(180deg, rgba(255, 236, 165, 0.42), transparent 72%);
  filter: blur(18px);
  transform: rotate(14deg);
}

.spotlight-left {
  left: 4%;
}

.spotlight-right {
  right: 4%;
  transform: rotate(-14deg);
}

.hero-content {
  width: min(920px, 100%);
  min-width: 0;
  padding-top: min(4vh, 34px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.86rem;
  font-weight: 950;
  background: rgba(1, 12, 7, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 28px rgba(255, 212, 81, 0.22);
}

.brand-chip,
.modal-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #10230c;
  background: linear-gradient(145deg, #fff7ba, #cf8d11);
  box-shadow: 0 0 20px rgba(255, 216, 83, 0.68);
}

.eyebrow {
  margin: 28px 0 12px;
  color: var(--gold);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  font-weight: 950;
  text-shadow: 0 0 18px rgba(255, 207, 77, 0.64);
}

.title {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(4.2rem, 10vw, 9rem);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow:
    0 4px 0 #7a3d04,
    0 10px 28px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(255, 215, 83, 0.82),
    0 0 72px rgba(26, 202, 98, 0.32);
}

.title span {
  display: block;
}

.subline {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(255, 249, 222, 0.92);
  font-size: clamp(1.15rem, 2.4vw, 1.58rem);
  line-height: 1.55;
  font-weight: 900;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.88);
}

.event-panel {
  width: min(840px, 100%);
  overflow: hidden;
  margin: 30px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 82, 43, 0.86), rgba(2, 18, 10, 0.88)),
    linear-gradient(90deg, rgba(255, 224, 117, 0.12), transparent);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(255, 212, 82, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 224, 117, 0.24);
  text-align: left;
  min-width: 0;
}

.panel-head span {
  color: var(--muted);
  font-weight: 900;
}

.panel-head strong {
  color: var(--gold-light);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 216, 82, 0.62);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
  min-width: 0;
}

.stat {
  min-width: 0;
  min-height: 92px;
  padding: 14px 10px;
  border: 1px solid rgba(255, 224, 117, 0.24);
  border-radius: 8px;
  background: rgba(2, 18, 10, 0.48);
}

.stat strong {
  display: block;
  color: var(--gold-light);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 215, 82, 0.52);
}

.stat span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 850;
}

.hero-cta,
.float-cta,
.modal-actions button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 238, 151, 0.96);
  border-radius: 999px;
  color: #fff9d8;
  cursor: pointer;
  font-weight: 950;
  background: linear-gradient(180deg, #1bbd62, #08743d 48%, #032716);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -16px 24px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(255, 220, 89, 0.48),
    0 18px 42px rgba(0, 0, 0, 0.38);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
}

.hero-cta {
  min-height: 68px;
  margin-top: 24px;
  padding: 0 42px;
  font-size: clamp(1.15rem, 2.2vw, 1.48rem);
}

.hero-cta::before,
.float-cta::before {
  position: absolute;
  inset: -44% auto -44% -34%;
  width: 32%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  transform: skewX(-18deg);
  animation: shine 2.65s ease-in-out infinite;
}

.details {
  padding: 34px 18px 96px;
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 180, 91, 0.14), transparent 28rem),
    linear-gradient(180deg, #020403, #06150c);
}

.detail-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.detail-inner article {
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(255, 224, 117, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(7, 49, 28, 0.82), rgba(2, 12, 7, 0.86));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.detail-inner span {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 950;
}

.detail-inner strong {
  display: block;
  margin-top: 12px;
  color: var(--gold-light);
  font-size: 1.35rem;
}

.detail-inner p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}

.float-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-size: 1rem;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(7px);
}

.modal {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 226, 121, 0.82);
  border-radius: 8px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 217, 88, 0.2), transparent 13rem),
    linear-gradient(180deg, rgba(8, 75, 40, 0.98), rgba(2, 13, 8, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68), 0 0 44px rgba(255, 212, 82, 0.28);
}

.modal-mark {
  margin: 0 auto 16px;
  width: 42px;
  height: 42px;
}

.modal h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: 1.52rem;
  line-height: 1.42;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 214, 84, 0.44);
}

.modal p {
  margin: 10px 0 0;
  color: rgba(255, 247, 216, 0.9);
  font-size: 1.08rem;
  font-weight: 900;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions button {
  min-height: 52px;
}

.modal-actions .secondary {
  color: rgba(255, 246, 207, 0.86);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@keyframes shine {
  0%,
  52% {
    transform: translateX(0) skewX(-18deg);
  }

  100% {
    transform: translateX(520%) skewX(-18deg);
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 76px;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding: 28px 12px 30px;
    background-position: center top;
  }

  .hero-content {
    width: min(100%, calc(100vw - 24px));
    padding-top: 0;
  }

  .brand {
    font-size: 0.78rem;
  }

  .eyebrow {
    margin-top: 22px;
  }

  .title {
    font-size: clamp(2.9rem, 13vw, 3.6rem);
  }

  .subline {
    max-width: min(320px, 100%);
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .event-panel {
    width: min(100%, calc(100vw - 24px));
    margin-top: 24px;
    padding: 12px;
  }

  .panel-head {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .panel-head strong {
    width: 100%;
    font-size: 1.72rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat {
    display: block;
    min-height: 62px;
    padding: 10px;
    text-align: center;
  }

  .stat strong {
    font-size: 1.72rem;
  }

  .stat span {
    margin-top: 5px;
    text-align: center;
  }

  .hero-cta {
    display: none;
  }

  .float-cta {
    display: inline-flex;
  }

  .detail-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .hero {
    padding-inline: 10px;
  }

  .brand {
    max-width: 100%;
    gap: 8px;
    font-size: 0.72rem;
  }

  .title {
    font-size: clamp(2.65rem, 12vw, 3rem);
  }

  .stat {
    min-height: 84px;
  }

  .modal {
    padding: 26px 18px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}
