@font-face {
  font-family: Bebas;
  src: url("/assets/vendor/bebas-neue-latin.woff2");
}
@font-face {
  font-family: Sora;
  src: url("/assets/vendor/sora-latin.woff2");
}
:root {
  --bg: #07131f;
  --panel: #0b2234;
  --line: #7aa9d640;
  --text: #eaf5ff;
  --muted: #aec4d5;
  --orange: #ff7d21;
  --mint: #68d9bc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body.tournament-guide {
  margin: 0;
  background:
    radial-gradient(circle at 90% 5%, #48a4ff22, transparent 28%), var(--bg);
  color: var(--text);
  font-family: Sora, Arial, sans-serif;
  overflow-wrap: anywhere;
}
.tg-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 13px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: #061523ee;
  backdrop-filter: blur(16px);
}
.tg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}
.tg-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.tg-header nav,
.tg-actions,
.tg-downloads,
.tg-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.tg-header nav a,
.tg-text-link,
.tg-footer a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.tg-header nav a:hover,
.tg-text-link:hover {
  color: var(--orange);
}
.tg-shell {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.tg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: center;
  padding: 74px 0 50px;
}
.tg-hero > *,
.tg-guide-layout > *,
.tg-role-grid > *,
.tg-three-grid > *,
.tg-coach > * {
  min-width: 0;
}
.tg-eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.tg-hero h1,
.tg-section h2,
.tg-card h2,
.tg-chapter h2 {
  margin: 0;
  min-width: 0;
  font-family: Bebas, Impact, sans-serif;
  font-weight: 400;
  line-height: 0.9;
  overflow-wrap: anywhere;
}
.tg-hero h1 {
  font-size: clamp(3.3rem, 7vw, 6.8rem);
}
.tg-section h2 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}
.tg-chapter h2 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}
.tg-hero h1 span,
.tg-section h2 span,
.tg-card h2 span,
.tg-chapter h2 span {
  color: var(--orange);
}
.tg-lede,
.tg-section-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.millie {
  width: 100%;
  aspect-ratio: 1;
  background: url("/assets/tournaments/millie-presenter-gestures.png") 100%
    100%/300% 200% no-repeat;
  filter: drop-shadow(0 20px 24px #0007);
}
.millie.point {
  background-position: 0 0;
}
.millie.wave {
  background-position: 100% 100%;
}
.millie.stand {
  background-image: url("/assets/tournaments/millie-approved-sheet.png");
  background-position: 50% 100%;
}
.millie.kick {
  background-image: url("/assets/tournaments/millie-approved-sheet.png");
  background-position: 100% 0;
}
.tg-actions,
.tg-downloads {
  margin-top: 24px;
}
.tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid var(--orange);
  border-radius: 10px;
  background: var(--orange);
  color: #06131f;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}
.tg-button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.tg-section {
  padding: 62px 0;
  border-top: 1px solid var(--line);
}
.tg-role-grid,
.tg-three-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.tg-three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tg-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #102d43, #061523);
  color: var(--text);
  text-decoration: none;
}
.tg-card:hover {
  border-color: var(--orange);
}
.tg-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.tg-card h2 {
  font-size: 3rem;
}
.tg-kicker {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.tg-steps {
  counter-reset: tg;
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.tg-step {
  position: relative;
  padding: 18px 18px 18px 65px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b2234b8;
  line-height: 1.6;
}
.tg-step:before {
  counter-increment: tg;
  content: counter(tg, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--orange);
  font-weight: 800;
}
.tg-step strong {
  display: block;
  color: var(--text);
}
.tg-callout {
  margin: 20px 0;
  padding: 18px;
  border-left: 3px solid var(--mint);
  border-radius: 12px;
  background: #68d9bc12;
  color: var(--muted);
  line-height: 1.65;
}
.tg-callout.warn {
  border-left-color: var(--orange);
  background: #ff7d2112;
}
.tg-guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  padding: 46px 0 86px;
}
.tg-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b2234e6;
}
.tg-toc a {
  display: block;
  padding: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}
.tg-toc a:hover {
  color: var(--orange);
}
.tg-content {
  min-width: 0;
}
.tg-chapter {
  padding: 0 0 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.tg-chapter > p,
.tg-chapter li {
  color: var(--muted);
  line-height: 1.7;
}
.tg-chapter ol,
.tg-chapter ul {
  padding-left: 25px;
}
.tg-chapter li {
  padding: 4px 0;
}
.tg-chapter details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b2234b8;
}
.tg-chapter summary {
  padding: 16px 18px;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}
.tg-detail {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.7;
}
.tg-detail strong {
  color: var(--text);
}
.tg-status-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.tg-status-path span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}
.tg-status-path span:first-child {
  color: var(--mint);
  border-color: #68d9bc80;
}
.tg-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.yt-ad {
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #020508;
  max-width: 430px;
}
.yt-ad button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.yt-ad img {
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.yt-ad .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--bg);
  font-weight: 900;
}
.yt-ad figcaption {
  padding: 13px 15px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.yt-ad iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  border: 0;
}
.ad-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 430px);
  gap: 48px;
  align-items: center;
}
.tg-coach {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(110deg, #48a4ff1a, #ff7d2110);
}
.tg-coach .millie {
  width: 150px;
}
.tg-coach p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.tg-coach h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}
@media (max-width: 760px) {
  .tg-header {
    align-items: flex-start;
    gap: 12px;
  }
  .tg-header nav {
    justify-content: flex-end;
    gap: 8px;
  }
  .tg-header nav a {
    display: none;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.72rem;
  }
  .tg-header nav a:first-child,
  .tg-header nav a:nth-child(2) {
    display: inline-flex;
  }
  .tg-shell {
    width: min(100% - 28px, 1160px);
  }
  .tg-hero,
  .ad-section {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }
  .tg-hero .millie {
    max-width: 240px;
    margin: auto;
  }
  .tg-role-grid,
  .tg-three-grid {
    grid-template-columns: 1fr;
  }
  .tg-guide-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tg-toc {
    position: static;
    display: flex;
    gap: 8px;
    overflow: auto;
    white-space: nowrap;
  }
  .tg-toc a {
    display: inline-block;
  }
  .tg-footer {
    flex-direction: column;
  }
  .tg-section {
    padding: 46px 0;
  }
  .tg-card {
    padding: 22px;
  }
}
@media (max-width: 520px) {
  .tg-header {
    padding: 11px 14px;
  }
  .tg-brand span {
    display: none;
  }
  .tg-coach {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 12px;
  }
  .tg-coach .millie {
    width: 90px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
