:root {
  --ink: #10131f;
  --muted: #69707c;
  --header: #b9ddea;
  --blue: #83c9ec;
  --blue-deep: #5fb1dc;
  --violet: #8f96eb;
  --gray: #dddddf;
  --gray-deep: #d2d2d4;
  --white: #ffffff;
  --line: rgba(16, 19, 31, .55);
  --shell: 920px;
  --content: 660px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f7f7f7;
  font-family: Inter, "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }

/* ===== Top header / hamburger ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  width: min(var(--shell), 100%);
  height: 46px;
  transform: translateX(-50%);
  background: rgba(185, 221, 234, .96);
  border-bottom: 1px solid rgba(16, 19, 31, .12);
  backdrop-filter: blur(12px);
}
.header-title {
  position: absolute;
  inset: 0 58px 0 58px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}
.menu-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 46px;
  border: 0;
  background: transparent;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  cursor: pointer;
}
.menu-button span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-menu {
  position: absolute;
  top: 46px;
  left: 0;
  width: 100%;
  background: rgba(185, 221, 234, .98);
  border-bottom: 1px solid rgba(16, 19, 31, .18);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .25s ease;
}
.site-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.site-menu-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.site-menu-grid a {
  min-height: 78px;
  padding: 12px 10px;
  border-right: 1px solid rgba(16, 19, 31, .18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background .2s ease;
}
.site-menu-grid a:last-child { border-right: 0; }
.site-menu-grid a:hover { background: rgba(255,255,255,.38); }
.site-menu-grid small { font-size: 8px; opacity: .58; }
.site-menu-grid strong { font-size: 12px; letter-spacing: .08em; }
.site-menu-grid span { font-size: 9px; }

.site-shell {
  width: min(var(--shell), 100%);
  margin: 46px auto 0;
  background: var(--gray);
  box-shadow: 0 0 40px rgba(0,0,0,.04);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--violet);
  isolation: isolate;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(rgba(114,121,220,.76), rgba(132,139,229,.84));
}
.hero-content {
  width: min(760px, 92%);
  color: #c9d2ff;
  text-align: center;
  display: grid;
  justify-items: center;
  padding: 54px 0 70px;
}
.hero-logo-frame {
  width: min(510px, 78vw);
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.hero-logo {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  /* 光学中心: ロゴの左右色の境目を画面中央へ寄せる */
  transform: translateX(6.5%);
  filter: drop-shadow(0 18px 26px rgba(15,18,40,.2));
}
.hero-kicker { margin: 12px 0 2px; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(27px, 4.5vw, 44px); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 span { font-size: .66em; }
.hero-copy { margin: 13px 0 0; font-size: clamp(11px, 1.5vw, 14px); font-weight: 800; letter-spacing: .08em; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}
.hero-scroll::after { content: ""; width: 1px; height: 32px; background: #111; }

/* ===== Shared home sections ===== */
.home-section { padding: 58px 24px 68px; }
.section-gray { background: var(--gray); }
.content-narrow { width: min(var(--content), 100%); margin: auto; }
.content-wide { width: min(790px, 100%); margin: auto; }
.round-emblem {
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: #c8c8ca;
  display: grid;
  place-items: center;
}
.round-emblem img { width: 36px; height: 36px; object-fit: contain; opacity: .65; }
.section-heading { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-bottom: 24px; text-align: center; }
.section-heading > span { height: 1px; background: var(--line); }
.section-heading h2 { margin: 0; font-size: 18px; line-height: 1.1; font-weight: 900; white-space: nowrap; }
.section-heading h2 small { display: inline; font-size: 11px; font-weight: 800; }
.mini-heading { margin-top: 58px; }
.section-copy { max-width: 580px; margin: 0 auto 34px; text-align: center; font-size: 12px; }

.compact-info { width: min(560px, 100%); margin: 0 auto; display: grid; gap: 7px; }
.compact-info > div { display: grid; grid-template-columns: 112px 1fr; gap: 7px; }
.compact-info dt, .compact-info dd { margin: 0; min-height: 36px; display: flex; align-items: center; padding: 8px 12px; background: var(--blue); font-size: 11px; }
.compact-info dt { justify-content: center; font-weight: 900; }
.compact-info dd { font-weight: 800; }

.schedule-list { width: min(560px, 100%); margin: 0 auto; display: grid; gap: 8px; }
.schedule-list > div { min-height: 38px; display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 7px 12px; background: var(--blue); font-size: 11px; }
.schedule-list time { font-weight: 900; }
.schedule-list strong { font-weight: 800; }
.schedule-list em { font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .1em; }
.simple-link { width: max-content; max-width: 100%; margin: 20px auto 0; display: flex; gap: 20px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 900; }
.simple-link.centered { margin-top: 30px; }

.team-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.team-mini { min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.team-mini b { width: 62px; height: 62px; display: grid; place-items: center; background: var(--blue); font-size: 12px; }
.team-mini span { font-size: 10px; font-weight: 900; }
.team-mini:hover b { background: var(--blue-deep); }

.broadcast-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(16,19,31,.25); background: rgba(255,255,255,.25); }
.broadcast-preview { min-height: 180px; background: #171b2b; color: white; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; }
.play-icon { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; display: grid; place-items: center; padding-left: 3px; }
.broadcast-preview small { display: block; font-size: 8px; letter-spacing: .16em; }
.broadcast-preview strong { display: block; font-size: 18px; }
.broadcast-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.broadcast-body p { margin: 0 0 20px; font-size: 11px; }
.broadcast-body a { background: var(--blue); padding: 10px 14px; font-size: 10px; font-weight: 900; }

/* ===== Bracket preview ===== */
.tournament-preview-section { padding-top: 22px; }
.bracket-preview { min-width: 670px; display: grid; grid-template-columns: 1.2fr 1fr .9fr .8fr; gap: 36px; align-items: center; padding: 25px 6px 10px; overflow: visible; }
.preview-round { display: grid; position: relative; }
.preview-round i { position: relative; display: flex; align-items: center; min-height: 25px; padding: 5px 8px; background: var(--blue); font-size: 8px; font-style: normal; font-weight: 900; }
.preview-quarter { gap: 9px; }
.preview-semi { gap: 43px; }
.preview-final { gap: 111px; }
.preview-winner { align-self: center; }
.preview-round:not(.preview-winner) i::after { content: ""; position: absolute; top: 50%; right: -36px; width: 36px; height: 1px; background: rgba(16,19,31,.4); }

/* ===== Caster / sponsor ===== */
.category-label { margin: 34px auto 16px; display: grid; place-items: center; font-size: 9px; font-weight: 900; }
.category-label::before, .category-label::after { content: ""; display: block; width: 130px; height: 1px; background: rgba(16,19,31,.5); }
.category-label::before { transform: translate(-150px, 10px); }
.category-label::after { transform: translate(150px, -9px); }
.people-grid, .sponsor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.person-mini { text-align: center; }
.portrait-placeholder { min-height: 190px; display: grid; place-items: center; background: var(--blue); font-size: 11px; font-weight: 900; }
.person-mini h3 { margin: 12px 0 1px; font-size: 11px; }
.person-mini p { margin: 0; font-size: 9px; }
.sponsor-mini { text-align: center; }
.sponsor-mini span { min-height: 130px; display: grid; place-items: center; background: var(--blue); font-size: 10px; font-weight: 900; }
.sponsor-mini small { display: block; margin-top: 8px; font-size: 9px; font-weight: 800; }

/* ===== Footer page navigation ===== */
.site-footer {
  width: 100%;
  margin: 0;
  padding: 54px 24px 26px;
  background: #060606;
  color: #fff;
}
.footer-inner { width: min(1040px, 100%); margin: 0 auto; }
.footer-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}
.footer-heading strong { font-size: 16px; letter-spacing: .08em; }
.footer-heading small { font-size: 10px; opacity: .58; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.22);
  border-left: 1px solid rgba(255,255,255,.22);
}
.footer-nav a {
  min-height: 112px;
  padding: 20px 22px;
  border-right: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
  transition: background .2s ease, color .2s ease;
}
.footer-nav a:hover { background: var(--blue); color: var(--ink); }
.footer-nav a small { grid-row: 1 / 3; align-self: start; font-size: 9px; opacity: .55; }
.footer-nav a strong { font-size: 17px; line-height: 1; letter-spacing: .04em; }
.footer-nav a span { margin-top: 7px; font-size: 10px; opacity: .65; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  color: rgba(255,255,255,.58);
}
.footer-bottom small { font-size: 10px; }
.footer-bottom span { font-size: 9px; }

/* ===== Secondary pages ===== */
.page-main { width: min(var(--shell),100%); margin:46px auto 0; background: var(--gray); min-height: calc(100vh - 122px); }
.page-hero { min-height: 250px; padding: 65px 24px 45px; background: var(--gray); text-align:center; }
.page-hero .content-narrow { display:grid; justify-items:center; }
.page-hero-logo { width: 140px; margin: 0 auto 18px; }
.page-hero h1 { margin:0; font-size:32px; line-height:1; }
.page-hero p { max-width:520px; margin:16px auto 0; font-size:11px; }
.page-section { padding: 55px 24px 70px; background: var(--gray); }
.organizer-card { display:grid; grid-template-columns: 220px 1fr; gap: 34px; align-items:center; }
.organizer-photo { aspect-ratio:1; display:grid; place-items:center; background:var(--blue); font-size:10px; font-weight:900; }
.organizer-copy h2 { margin:0 0 14px; font-size:20px; }
.organizer-copy p { font-size:11px; }
.organizer-meta { margin-top:20px; display:grid; gap:7px; }
.organizer-meta div { padding:10px 12px; background:var(--blue); font-size:10px; }
.teams-page-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.team-page-card { text-align:center; }
.team-page-card .team-logo { aspect-ratio:1; display:grid; place-items:center; background:var(--blue); font-size:18px; font-weight:900; }
.team-page-card strong { display:block; margin-top:8px; font-size:11px; }
.team-detail { display:grid; grid-template-columns:210px 1fr; gap:40px; align-items:start; }
.team-logo-placeholder { aspect-ratio:1; display:grid; place-items:center; background:var(--blue); font-size:34px; font-weight:900; }
.roster { display:grid; gap:7px; }
.player { display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:10px; padding:7px; background:rgba(255,255,255,.28); }
.player-avatar { width:44px; height:44px; display:grid; place-items:center; background:var(--blue); font-size:9px; font-weight:900; }
.player strong { font-size:10px; }
.player small { font-size:8px; }
.role { font-size:8px; font-weight:900; }
.tournament-board { min-width:720px; display:grid; grid-template-columns:repeat(3,1fr); gap:36px; align-items:center; }
.tournament-round h3 { font-size:11px; text-align:center; }
.match-list { display:grid; gap:14px; }
.tournament-round:nth-child(2) .match-list { gap:74px; }
.match { background:var(--blue); padding:8px; font-size:9px; }
.match div { display:flex; justify-content:space-between; padding:3px; }
.scroll-x { overflow-x:auto; padding-bottom:12px; }

.reveal { opacity:0; transform:translateY(12px); transition:opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity:1; transform:none; }

@media (max-width: 760px) {
  .site-menu-grid { grid-template-columns: repeat(3, 1fr); }
  .site-menu-grid a { min-height:68px; }
  .hero { min-height: 520px; }
  .hero-logo-frame { width:min(440px,82vw); min-height:220px; }
  .home-section { padding-left:18px; padding-right:18px; }
  .team-mini-grid, .teams-page-grid { grid-template-columns: repeat(2, 1fr); }
  .broadcast-card { grid-template-columns:1fr; }
  .broadcast-preview { min-height:150px; }
  .bracket-preview { transform-origin:left top; }
  .tournament-preview-section .content-wide { overflow-x:auto; padding-bottom:5px; }
  .organizer-card, .team-detail { grid-template-columns:1fr; }
  .organizer-photo, .team-logo-placeholder { width:min(240px,100%); margin:auto; }
}

@media (max-width: 520px) {
  .site-header { width:100%; }
  .header-title { font-size:9px; }
  .site-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 500px; }
  .hero-content { padding-top:42px; }
  .hero-logo-frame { width:94vw; min-height:210px; }
  .hero-logo { transform: translateX(6.5%); }
  .hero-kicker { font-size:10px; }
  .hero h1 { font-size:28px; }
  .hero-copy { font-size:10px; }
  .section-heading { gap:10px; }
  .section-heading h2 { font-size:15px; }
  .section-heading h2 small { font-size:9px; }
  .compact-info > div { grid-template-columns:92px 1fr; }
  .compact-info dt, .compact-info dd { font-size:9px; padding:7px 8px; }
  .schedule-list > div { grid-template-columns:64px 1fr; gap:5px 8px; }
  .schedule-list em { grid-column:2; }
  .people-grid, .sponsor-grid { gap:14px; }
  .portrait-placeholder { min-height:145px; }
  .sponsor-mini span { min-height:100px; }
  .category-label::before { width:85px; transform:translate(-102px,10px); }
  .category-label::after { width:85px; transform:translate(102px,-9px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition-duration:.01ms !important; animation-duration:.01ms !important; }
}

/* ===== 2026-09 layout fix: full-screen desktop + overview heading ===== */
/* The previous 920px shell created white gutters on desktop. */
:root {
  --shell: 100%;
}

body {
  background: var(--gray);
}

.site-header {
  left: 0;
  width: 100%;
  transform: none;
}

.site-shell {
  width: 100%;
  margin: 46px 0 0;
  box-shadow: none;
}

/* Make the first view use the full available browser height on PC. */
.hero {
  min-height: calc(100svh - 46px);
}

.site-footer,
.page-main {
  width: 100%;
  max-width: none;
}

/* Keep the overview title permanently visible instead of reveal-hidden. */
.overview-heading {
  margin-top: 4px;
  margin-bottom: 26px;
  opacity: 1;
  transform: none;
}

.overview-heading h2 {
  font-size: 20px;
  letter-spacing: .01em;
}

.overview-heading h2 small {
  font-size: 10px;
}

/* Bilingual labels in the overview table. */
.compact-info dt {
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.15;
}

.compact-info dt > span {
  font-size: 13px;
}

.compact-info dt > small {
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.compact-info dd {
  line-height: 1.12;
}

.compact-info dd > small,
.compact-info .inline-en {
  margin-left: 5px;
  font-size: 7px;
  font-weight: 900;
}

.compact-info .organizer-value {
  display: block;
  padding-top: 7px;
  padding-bottom: 7px;
}

.compact-info .organizer-value > span {
  display: block;
  font-size: 10px;
  line-height: 1.05;
}

.compact-info .organizer-value > small {
  display: block;
  margin: 3px 0 0;
  font-size: 6px;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .hero {
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .overview-heading h2 { font-size: 17px; }
  .compact-info dt > span { font-size: 10px; }
  .compact-info dt > small { font-size: 7px; }
  .compact-info .organizer-value > span { font-size: 9px; }
  .compact-info .organizer-value > small { font-size: 5.5px; }
}


/* ===== 2026-09 desktop typography scale-up ===== */
/* Full-width PC layout needs a larger visual scale than the original 920px mockup. */
@media (min-width: 761px) {
  :root {
    --content: 820px;
  }

  .header-title {
    font-size: 14px;
    letter-spacing: .09em;
  }
  .site-menu-grid small { font-size: 10px; }
  .site-menu-grid strong { font-size: 15px; }
  .site-menu-grid span { font-size: 11px; }

  /* PCでは大会ロゴを主役に見せる */
  .hero-content {
    width: min(1040px, 94%);
  }
  .hero-logo-frame {
    width: min(780px, 72vw);
    min-height: 420px;
  }
  .hero-logo {
    max-height: 520px;
  }

  .hero-kicker { font-size: 16px; }
  .hero h1 { font-size: clamp(38px, 3.6vw, 58px); }
  .hero-copy { font-size: clamp(15px, 1.25vw, 18px); }

  .home-section { padding-top: 76px; padding-bottom: 86px; }
  .content-wide { width: min(1040px, calc(100% - 48px)); }
  .round-emblem { width: 96px; height: 96px; }
  .round-emblem img { width: 42px; height: 42px; }

  .section-heading { margin-bottom: 32px; gap: 26px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading h2 small { font-size: 14px; }
  .section-copy { max-width: 740px; font-size: 15px; line-height: 1.9; }
  .mini-heading { margin-top: 72px; }

  .overview-heading h2 { font-size: 28px; }
  .overview-heading h2 small { font-size: 14px; }

  .compact-info { width: min(780px, 100%); gap: 10px; }
  .compact-info > div { grid-template-columns: 180px 1fr; gap: 10px; }
  .compact-info dt,
  .compact-info dd {
    min-height: 58px;
    padding: 12px 18px;
    font-size: 16px;
  }
  .compact-info dt > span { font-size: 18px; }
  .compact-info dt > small { font-size: 10px; }
  .compact-info dd > small,
  .compact-info .inline-en { font-size: 10px; }
  .compact-info .organizer-value > span { font-size: 15px; line-height: 1.12; }
  .compact-info .organizer-value > small { font-size: 8px; line-height: 1.2; }

  .schedule-list { width: min(780px, 100%); gap: 10px; }
  .schedule-list > div {
    min-height: 54px;
    grid-template-columns: 120px 1fr auto;
    gap: 18px;
    padding: 11px 18px;
    font-size: 15px;
  }
  .schedule-list em { font-size: 10px; }
  .simple-link { margin-top: 26px; font-size: 14px; }

  .team-mini-grid { gap: 18px; }
  .team-mini { min-height: 148px; gap: 12px; }
  .team-mini b { width: 84px; height: 84px; font-size: 16px; }
  .team-mini span { font-size: 13px; }

  .broadcast-preview { min-height: 230px; }
  .play-icon { width: 58px; height: 58px; }
  .broadcast-preview small { font-size: 10px; }
  .broadcast-preview strong { font-size: 25px; }
  .broadcast-body { padding: 36px; }
  .broadcast-body p { font-size: 14px; }
  .broadcast-body a { padding: 12px 18px; font-size: 13px; }

  .preview-round i { min-height: 34px; padding: 8px 11px; font-size: 11px; }

  .category-label { margin-top: 44px; margin-bottom: 22px; font-size: 12px; }
  .portrait-placeholder { min-height: 250px; font-size: 14px; }
  .person-mini h3 { margin-top: 16px; font-size: 14px; }
  .person-mini p { font-size: 12px; }
  .sponsor-mini span { min-height: 170px; font-size: 13px; }
  .sponsor-mini small { font-size: 12px; }

  /* Secondary pages */
  .page-hero { min-height: 310px; padding-top: 82px; padding-bottom: 58px; }
  .page-hero-logo { width: 180px; }
  .page-hero h1 { font-size: 44px; }
  .page-hero p { font-size: 15px; }
  .page-section { padding-top: 72px; padding-bottom: 88px; }
  .organizer-photo { font-size: 13px; }
  .organizer-copy h2 { font-size: 28px; }
  .organizer-copy p { font-size: 14px; }
  .organizer-meta div { font-size: 13px; }
  .team-page-card .team-logo { font-size: 24px; }
  .team-page-card strong { font-size: 14px; }
  .team-logo-placeholder { font-size: 44px; }
  .player-avatar { font-size: 11px; }
  .player strong { font-size: 13px; }
  .player small { font-size: 10px; }
  .role { font-size: 10px; }
  .tournament-round h3 { font-size: 15px; }
  .match { font-size: 12px; }
}


/* Footer navigation responsive tuning */
@media (min-width: 901px) {
  .site-footer { padding-top: 64px; }
  .footer-heading strong { font-size: 20px; }
  .footer-heading small { font-size: 12px; }
  .footer-nav a { min-height: 126px; padding: 24px 26px; }
  .footer-nav a small { font-size: 10px; }
  .footer-nav a strong { font-size: 20px; }
  .footer-nav a span { font-size: 12px; }
  .footer-bottom small { font-size: 11px; }
  .footer-bottom span { font-size: 10px; }
}

@media (max-width: 640px) {
  .site-footer { padding: 44px 18px 22px; }
  .footer-heading { margin-bottom: 18px; }
  .footer-heading strong { font-size: 14px; }
  .footer-heading small { font-size: 9px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav a { min-height: 92px; padding: 16px 14px; column-gap: 8px; }
  .footer-nav a small { font-size: 8px; }
  .footer-nav a strong { font-size: 13px; }
  .footer-nav a span { margin-top: 5px; font-size: 9px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 3px; padding-top: 18px; text-align: center; }
  .footer-bottom small { font-size: 9px; }
  .footer-bottom span { font-size: 8px; }
}

/* ===== Overview logo: slightly smaller than the main hero logo ===== */
.overview-logo-wrap {
  width: min(700px, 84vw);
  margin: 0 auto 42px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.overview-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Match the hero logo's optical center (the left/right color split). */
  transform: translateX(6.5%);
  filter: drop-shadow(0 14px 22px rgba(15, 18, 40, .14));
}

@media (max-width: 760px) {
  .overview-logo-wrap {
    width: min(600px, 88vw);
    margin-bottom: 34px;
  }
}

@media (max-width: 520px) {
  .overview-logo-wrap {
    width: 88vw;
    margin-bottom: 28px;
  }
}

/* ===== 2026-09 section heading emphasis ===== */
/* 概要 / 大会スケジュール / 本選招待チームなど、各セクション見出しを強調 */
.section-heading h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: .015em;
  text-shadow: 0 3px 10px rgba(16, 19, 31, .20);
}

.section-heading h2 small {
  font-size: .52em;
  font-weight: 800;
  letter-spacing: .04em;
}

/* 概要も他の見出しと同じスケールに統一 */
.overview-heading h2 {
  font-size: clamp(24px, 2.5vw, 34px);
}

@media (max-width: 520px) {
  .section-heading h2,
  .overview-heading h2 {
    font-size: 21px;
    text-shadow: 0 2px 7px rgba(16, 19, 31, .18);
  }

  .section-heading h2 small {
    font-size: .5em;
  }
}

/* ===== 2026-09 cosmic heading scale / navy shadow ===== */
/* セクション見出しを全画面PC向けにさらに大きくし、紺〜青の多層シャドウで宇宙感を追加 */
.section-heading h2,
.overview-heading h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: .025em;
  color: #11172f;
  text-shadow:
    0 2px 0 rgba(34, 43, 96, .18),
    0 7px 16px rgba(15, 24, 70, .34),
    0 14px 28px rgba(11, 20, 62, .22),
    0 0 18px rgba(95, 177, 220, .24);
}

.section-heading h2 small,
.overview-heading h2 small {
  font-size: .46em;
  font-weight: 850;
  letter-spacing: .055em;
  color: #26335f;
  text-shadow:
    0 3px 9px rgba(15, 24, 70, .28),
    0 0 10px rgba(131, 201, 236, .18);
}

@media (min-width: 1200px) {
  .section-heading h2,
  .overview-heading h2 {
    font-size: 50px;
  }
}

@media (max-width: 760px) {
  .section-heading h2,
  .overview-heading h2 {
    font-size: clamp(25px, 7vw, 32px);
    text-shadow:
      0 2px 0 rgba(34, 43, 96, .14),
      0 5px 12px rgba(15, 24, 70, .28),
      0 0 12px rgba(95, 177, 220, .20);
  }
}

@media (max-width: 520px) {
  .section-heading h2,
  .overview-heading h2 {
    font-size: 27px;
  }
}


/* ===== 2026-09 refined heading shadow ===== */
/* 文字本体と影色を分け、右下に半透明のくっきり影を統一 */
.section-heading h2,
.overview-heading h2 {
  color: #091126;
  text-shadow: 6px 6px 0 rgba(36, 52, 95, .28);
}

.section-heading h2 small,
.overview-heading h2 small {
  color: #22325e;
  text-shadow: 3px 3px 0 rgba(36, 52, 95, .20);
}

@media (max-width: 760px) {
  .section-heading h2,
  .overview-heading h2 {
    text-shadow: 4px 4px 0 rgba(36, 52, 95, .24);
  }

  .section-heading h2 small,
  .overview-heading h2 small {
    text-shadow: 2px 2px 0 rgba(36, 52, 95, .18);
  }
}

/* ===== 2026-09 varied cosmic backgrounds, section-based ===== */
/* 同じ背景の繰り返し感をなくすため、各セクションごとに別の宇宙ビジュアルを最背面で切り替える */
html,
body {
  min-height: 100%;
  background: var(--gray);
}

body {
  position: relative;
  overflow-x: hidden;
}

/* サイト本体は無地。宇宙背景は各セクションに分けて入れる */
.site-shell,
.page-main {
  position: relative;
  z-index: 1;
  background: var(--gray) !important;
}

/* MP4ファーストビューには背景を入れない */
.hero {
  position: relative;
  z-index: 2;
  background-color: var(--violet);
}

.cosmic-panel,
.page-hero,
.page-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cosmic-panel > *,
.page-hero > *,
.page-section > * {
  position: relative;
  z-index: 2;
}

.cosmic-panel::before,
.page-hero::before,
.page-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
  opacity: .96;
}

.cosmic-panel::after,
.page-hero::after,
.page-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(221, 221, 223, .10) 0%,
    rgba(221, 221, 223, .28) 12%,
    rgba(221, 221, 223, .70) 24%,
    rgba(221, 221, 223, .90) 36%,
    rgba(221, 221, 223, .95) 50%,
    rgba(221, 221, 223, .90) 64%,
    rgba(221, 221, 223, .70) 76%,
    rgba(221, 221, 223, .28) 88%,
    rgba(221, 221, 223, .10) 100%
  );
}

/* Top page: 背景をセクションごとに変える */
.cosmic-orbit::before {
  background-image: url("assets/space-side-bg-option2.png");
  background-position: center top;
}

.cosmic-nebula::before {
  background-image: url("assets/space-side-bg-option3.png");
  background-position: center center;
}

.cosmic-flare::before {
  background-image: url("assets/space-side-bg-option2-flip.png");
  background-position: center 34%;
}

.cosmic-orbit-reverse::before {
  background-image: url("assets/space-side-bg-option3-flip.png");
  background-position: center bottom;
}

/* Secondary pages も単調にならないよう交互に切替 */
.page-hero::before {
  background-image: url("assets/space-side-bg-option2.png");
  background-position: center top;
}

.page-main .page-section:nth-of-type(2n)::before {
  background-image: url("assets/space-side-bg-option3.png");
  background-position: center center;
}

.page-main .page-section:nth-of-type(2n+1)::before {
  background-image: url("assets/space-side-bg-option2-flip.png");
  background-position: center bottom;
}

/* 見出しシャドウは半透明の紺1色・右下に統一 */
.section-heading h2,
.overview-heading h2 {
  color: #091126;
  text-shadow: 6px 6px 0 rgba(35, 51, 91, .22) !important;
}

.section-heading h2 small,
.overview-heading h2 small {
  color: #22325e;
  text-shadow: 3px 3px 0 rgba(35, 51, 91, .16) !important;
}

@media (min-width: 1400px) {
  .cosmic-panel::before,
  .page-hero::before,
  .page-section::before {
    background-size: 100% auto;
  }
}

@media (max-width: 1099px) {
  /* モバイルは装飾が強すぎないよう簡略化 */
  .cosmic-panel::before,
  .page-hero::before,
  .page-section::before {
    background-size: auto 100%;
    opacity: .78;
  }

  .cosmic-panel::after,
  .page-hero::after,
  .page-section::after {
    background: rgba(221, 221, 223, .88);
  }
}

@media (max-width: 760px) {
  .section-heading h2,
  .overview-heading h2 {
    text-shadow: 4px 4px 0 rgba(35, 51, 91, .18) !important;
  }

  .section-heading h2 small,
  .overview-heading h2 small {
    text-shadow: 2px 2px 0 rgba(35, 51, 91, .12) !important;
  }
}

/* ===== 2026-09 black theme reset ===== */
/* 背景画像はいったん停止し、サイト全体を黒ベースに統一 */
:root {
  --ink: #f4f7ff;
  --muted: #a6afc4;
  --header: #070a12;
  --blue: #17334d;
  --blue-deep: #24577d;
  --violet: #080b14;
  --gray: #05070d;
  --gray-deep: #0b0f18;
  --white: #ffffff;
  --line: rgba(224, 234, 255, .24);
}

html,
body {
  background: #05070d !important;
  color: var(--ink);
}

body {
  background-image: none !important;
}

/* 以前の宇宙背景をすべて停止 */
body::before,
body::after,
.cosmic-panel::before,
.cosmic-panel::after,
.page-hero::before,
.page-hero::after,
.page-section::before,
.page-section::after {
  display: none !important;
  content: none !important;
  background-image: none !important;
}

.site-shell,
.page-main,
.home-section,
.section-gray,
.page-hero,
.page-section {
  background: #05070d !important;
  color: var(--ink);
}

/* ヘッダー / ハンバーガーメニュー */
.site-header {
  background: rgba(5, 7, 13, .94) !important;
  color: #f4f7ff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}

.header-title {
  color: #f4f7ff;
}

.menu-button span {
  background: #f4f7ff;
}

.site-menu {
  background: rgba(7, 10, 18, .98) !important;
  color: #f4f7ff;
  border-bottom-color: rgba(255,255,255,.14);
}

.site-menu-grid a {
  border-right-color: rgba(255,255,255,.12);
}

.site-menu-grid a:hover {
  background: rgba(117, 201, 240, .12);
}

.site-menu-grid small,
.site-menu-grid span {
  color: #99a5bb;
}

/* ヒーローはMP4をそのまま活かす */
.hero {
  background: #03050a !important;
}

.hero-content {
  color: #eef5ff;
}

.hero h1,
.hero-copy {
  color: #eef5ff;
}

/* セクション見出し */
.section-heading > span {
  background: rgba(185, 205, 234, .32);
}

.section-heading h2,
.overview-heading h2 {
  color: #f7f9ff !important;
  text-shadow: 6px 6px 0 rgba(46, 71, 113, .42) !important;
}

.section-heading h2 small,
.overview-heading h2 small {
  color: #9fb4d8 !important;
  text-shadow: 3px 3px 0 rgba(34, 53, 86, .32) !important;
}

.section-copy,
.page-hero p,
.organizer-copy p,
.person-mini p,
.sponsor-mini small,
.player small {
  color: #aeb8ca;
}

/* 概要 / スケジュール */
.compact-info dt,
.compact-info dd,
.schedule-list > div {
  background: #10283b;
  color: #f6f9ff;
  border: 1px solid rgba(126, 194, 230, .14);
}

.compact-info dt {
  color: #d8edff;
}

.compact-info dt > small,
.compact-info dd > small,
.compact-info .inline-en,
.compact-info .organizer-value > small,
.schedule-list em {
  color: #88a9c3;
}

.simple-link {
  color: #dff3ff;
  border-bottom-color: rgba(173, 218, 243, .55);
}

.simple-link:hover {
  color: #8ed8ff;
}

/* 招待チーム */
.team-mini b,
.team-page-card .team-logo,
.team-logo-placeholder,
.player-avatar {
  background: #143a58;
  color: #f5fbff;
  border: 1px solid rgba(133, 206, 243, .18);
}

.team-mini:hover b,
.team-page-card:hover .team-logo {
  background: #20597f;
}

.team-mini span,
.team-page-card strong {
  color: #edf6ff;
}

/* 配信 */
.broadcast-card {
  border-color: rgba(166, 207, 232, .18);
  background: #0b111b;
}

.broadcast-preview {
  background: #02040a;
}

.broadcast-body {
  background: #0c1420;
  color: #dce8f6;
}

.broadcast-body a {
  background: #173f5f;
  color: #f4fbff;
}

.broadcast-body a:hover {
  background: #245e87;
}

/* トーナメント */
.preview-round i,
.match {
  background: #112f49;
  color: #f4f9ff;
  border: 1px solid rgba(132, 199, 235, .14);
}

.preview-round:not(.preview-winner) i::after {
  background: rgba(156, 198, 224, .38);
}

/* キャスター / 協賛 */
.category-label {
  color: #c7d4e6;
}

.category-label::before,
.category-label::after {
  background: rgba(179, 202, 226, .28);
}

.portrait-placeholder,
.sponsor-mini span,
.organizer-photo {
  background: #123752;
  color: #f2f8ff;
  border: 1px solid rgba(135, 205, 239, .16);
}

.person-mini h3,
.sponsor-mini small {
  color: #eef5ff;
}

/* サブページ */
.organizer-meta div,
.player {
  background: #0d1a29;
  color: #edf5ff;
  border: 1px solid rgba(154, 193, 218, .10);
}

.role {
  color: #b7d0e3;
}

.page-hero h1,
.organizer-copy h2,
.tournament-round h3 {
  color: #f6f9ff;
}

/* フッター */
.site-footer {
  background: #020308;
  border-top: 1px solid rgba(255,255,255,.10);
}

.footer-nav {
  border-top-color: rgba(255,255,255,.16);
  border-left-color: rgba(255,255,255,.16);
}

.footer-nav a {
  border-right-color: rgba(255,255,255,.16);
  border-bottom-color: rgba(255,255,255,.16);
}

.footer-nav a:hover {
  background: #153a56;
  color: #ffffff;
}

.footer-nav a span,
.footer-nav a small,
.footer-bottom {
  color: #8d98aa;
}

@media (max-width: 760px) {
  .section-heading h2,
  .overview-heading h2 {
    text-shadow: 4px 4px 0 rgba(46, 71, 113, .36) !important;
  }

  .section-heading h2 small,
  .overview-heading h2 small {
    text-shadow: 2px 2px 0 rgba(34, 53, 86, .28) !important;
  }
}

/* ===== 2026-09 strong scroll-triggered heading reveal ===== */
/* 太い見出しが画面に入った瞬間、左から大きく滑り込みながらフェードイン。 */
.section-heading.scroll-meteor-heading {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

/* 既存の reveal と競合させない */
.section-heading.scroll-meteor-heading.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* 初期状態をかなり大きく動かして、スクロール時の変化を明確にする */
.section-heading.scroll-meteor-heading h2 {
  position: relative;
  z-index: 4;
  opacity: 0;
  transform: translate3d(-150px, 18px, 0) scale(.90);
  filter: blur(10px);
  will-change: transform, opacity, filter;
}

/* 左右ラインも同時に伸びる */
.section-heading.scroll-meteor-heading > span {
  opacity: 0;
  transform: scaleX(.15);
  transform-origin: center;
  will-change: transform, opacity;
}

/* 大きめの流星の尾 */
.section-heading.scroll-meteor-heading::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: clamp(180px, 28vw, 430px);
  height: 5px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(120, 157, 208, 0) 0%,
    rgba(120, 157, 208, .12) 24%,
    rgba(164, 201, 239, .42) 66%,
    rgba(244, 250, 255, .95) 100%
  );
  box-shadow: 0 0 14px rgba(130, 181, 230, .34);
  transform: translate3d(-125%, -34px, 0) rotate(-7deg) scaleX(.65);
  transform-origin: right center;
  will-change: transform, opacity;
}

/* 流星の先端と破片 */
.section-heading.scroll-meteor-heading::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: #f5fbff;
  box-shadow:
    -17px 9px 0 -2px rgba(155, 194, 232, .60),
    -38px 18px 0 -3px rgba(111, 151, 201, .42),
    -62px 27px 0 -4px rgba(88, 123, 173, .28),
    0 0 18px rgba(190, 226, 255, .82);
  transform: translate3d(-150px, -39px, 0) scale(.8);
  will-change: transform, opacity;
}

.section-heading.scroll-meteor-heading.is-heading-visible h2 {
  animation: strongHeadingArrival 1.15s cubic-bezier(.16,.84,.22,1) both;
}

.section-heading.scroll-meteor-heading.is-heading-visible > span {
  animation: headingLineGrow .78s ease-out .42s both;
}

.section-heading.scroll-meteor-heading.is-heading-visible::before {
  animation: strongMeteorSweep 1.05s cubic-bezier(.12,.78,.18,1) .04s both;
}

.section-heading.scroll-meteor-heading.is-heading-visible::after {
  animation: strongMeteorHead 1.00s cubic-bezier(.12,.78,.18,1) .06s both;
}

@keyframes strongHeadingArrival {
  0% {
    opacity: 0;
    transform: translate3d(-150px, 18px, 0) scale(.90);
    filter: blur(10px);
  }
  38% {
    opacity: .50;
    filter: blur(4px);
  }
  72% {
    opacity: 1;
    transform: translate3d(16px, -2px, 0) scale(1.025);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes headingLineGrow {
  0% { opacity: 0; transform: scaleX(.15); }
  100% { opacity: 1; transform: scaleX(1); }
}

@keyframes strongMeteorSweep {
  0% {
    opacity: 0;
    transform: translate3d(-125%, -34px, 0) rotate(-7deg) scaleX(.65);
  }
  14% { opacity: 1; }
  58% { opacity: .82; }
  100% {
    opacity: 0;
    transform: translate3d(calc(100vw + 30px), 34px, 0) rotate(-7deg) scaleX(1.15);
  }
}

@keyframes strongMeteorHead {
  0% {
    opacity: 0;
    transform: translate3d(-150px, -39px, 0) scale(.78);
  }
  12% { opacity: 1; }
  68% { opacity: .88; }
  100% {
    opacity: 0;
    transform: translate3d(calc(100vw + 30px), 30px, 0) scale(.52);
  }
}

/* 黒背景用：本体と影の色を分離 */
.section-heading.scroll-meteor-heading h2,
.overview-heading.scroll-meteor-heading h2 {
  color: #f7f9ff !important;
  text-shadow: 7px 7px 0 rgba(42, 64, 104, .34) !important;
}

.section-heading.scroll-meteor-heading h2 small,
.overview-heading.scroll-meteor-heading h2 small {
  color: #9fb4d8 !important;
  text-shadow: 3px 3px 0 rgba(34, 53, 86, .24) !important;
}

@media (max-width: 760px) {
  .section-heading.scroll-meteor-heading h2 {
    transform: translate3d(-78px, 12px, 0) scale(.94);
    filter: blur(7px);
  }

  .section-heading.scroll-meteor-heading::before {
    width: min(220px, 56vw);
    height: 3px;
  }

  @keyframes strongHeadingArrival {
    0% {
      opacity: 0;
      transform: translate3d(-78px, 12px, 0) scale(.94);
      filter: blur(7px);
    }
    72% {
      opacity: 1;
      transform: translate3d(8px, 0, 0) scale(1.015);
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: none;
      filter: blur(0);
    }
  }

  .section-heading.scroll-meteor-heading h2,
  .overview-heading.scroll-meteor-heading h2 {
    text-shadow: 4px 4px 0 rgba(42, 64, 104, .30) !important;
  }

  .section-heading.scroll-meteor-heading h2 small,
  .overview-heading.scroll-meteor-heading h2 small {
    text-shadow: 2px 2px 0 rgba(34, 53, 86, .20) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-heading.scroll-meteor-heading h2,
  .section-heading.scroll-meteor-heading > span {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
  }

  .section-heading.scroll-meteor-heading::before,
  .section-heading.scroll-meteor-heading::after {
    display: none;
    animation: none !important;
  }
}

/* ===== 2026-09 guaranteed JS heading motion ===== */
/* animation/transition ではなく JS が transform を直接更新するため、ブラウザ差の影響を受けにくい。 */
.section-heading.js-scroll-heading {
  position: relative;
  overflow: visible;
  isolation: isolate;
  opacity: 1 !important;
  transform: none !important;
}

.section-heading.js-scroll-heading h2 {
  position: relative;
  z-index: 5;
}

.section-heading.js-scroll-heading > span {
  position: relative;
  z-index: 4;
}

.js-heading-meteor {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: clamp(220px, 34vw, 520px);
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(125, 155, 210, 0) 0%,
    rgba(125, 155, 210, .10) 22%,
    rgba(160, 196, 235, .48) 68%,
    rgba(247, 252, 255, .98) 100%
  );
  box-shadow: 0 0 18px rgba(135, 183, 232, .38);
  transform-origin: right center;
  will-change: transform, opacity;
}

.js-heading-meteor-head {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: #f8fcff;
  box-shadow:
    -18px 8px 0 -2px rgba(158, 195, 232, .68),
    -40px 17px 0 -3px rgba(113, 151, 202, .48),
    -66px 27px 0 -4px rgba(86, 122, 176, .34),
    0 0 22px rgba(195, 229, 255, .88);
  will-change: transform, opacity;
}

@media (max-width: 760px) {
  .js-heading-meteor {
    width: min(250px, 62vw);
    height: 4px;
  }

  .js-heading-meteor-head {
    width: 10px;
    height: 10px;
    margin-top: -5px;
  }
}

/* ===== 2026-09 subtle card / tournament reveal ===== */
/* 見出しアニメーションはそのまま。カードとトーナメントだけ控えめに追加。 */
.team-mini.js-card-motion,
.team-page-card.js-card-motion,
.bracket-preview.js-bracket-motion,
.tournament-round.js-round-motion {
  transition: none !important;
  will-change: transform, opacity, filter;
}

/* トーナメントの列は少しずつ追いかけるように表示 */
.bracket-preview.js-bracket-motion .preview-round {
  will-change: transform, opacity, filter;
}

/* 動きが終わったあとは hover 等を邪魔しない */
.team-mini.js-card-motion[data-motion-played="true"],
.team-page-card.js-card-motion[data-motion-played="true"] {
  will-change: auto;
}

/* ===== 2026-09 slower card / bracket motion + hero logo entrance ===== */
/* 既存のロゴ画像の translateX(6.5%) はそのまま。外側 frame だけ動かす。 */
.hero-logo-frame {
  position: relative;
}

/* Hero logo: entrance motion only. No shooting-star/light sweep overlay. */


/* カード・トーナメントはJS側でゆっくり化。CSSは補助だけ。 */
.team-mini.js-card-motion,
.team-page-card.js-card-motion,
.bracket-preview.js-bracket-motion,
.tournament-round.js-round-motion {
  backface-visibility: hidden;
}

/* ===== 2026-09 subtle cosmic edge rails ===== */
/* 背景画像は使わず、黒背景の左右だけに薄い宇宙/HUD装飾を追加。ページと一緒にスクロールする。 */
.site-shell,
.page-main {
  position: relative;
  isolation: isolate;
}

/* HOMEはMP4の下からだけ装飾を開始 */
.site-shell::before,
.site-shell::after,
.page-main::before,
.page-main::after {
  content: "";
  position: absolute;
  width: clamp(72px, 10vw, 170px);
  pointer-events: none;
  z-index: 8;
  opacity: .72;
  background-repeat: repeat-y, repeat-y, no-repeat, no-repeat, no-repeat;
  background-size:
    100% 520px,
    100% 760px,
    100% 100%,
    100% 100%,
    100% 100%;
  animation: neoEdgeDrift 18s ease-in-out infinite alternate;
}

.site-shell::before,
.site-shell::after {
  top: calc(100svh - 46px);
  bottom: 0;
}

.page-main::before,
.page-main::after {
  top: 0;
  bottom: 0;
}

.site-shell::before,
.page-main::before {
  left: 0;
  background-image:
    radial-gradient(circle at 34% 82px, rgba(239,248,255,.82) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 245px, rgba(136,195,238,.56) 0 1.5px, transparent 3px),
    linear-gradient(90deg, rgba(69,137,194,.15), transparent 58%),
    linear-gradient(90deg, transparent 72%, rgba(121,190,235,.34) 73%, rgba(121,190,235,.10) 74%, transparent 75%),
    radial-gradient(ellipse at 0% 24%, rgba(59,109,181,.18), transparent 62%);
  box-shadow: inset 24px 0 38px rgba(29,69,124,.06);
  mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.site-shell::after,
.page-main::after {
  right: 0;
  background-image:
    radial-gradient(circle at 62% 132px, rgba(245,250,255,.86) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 330px, rgba(162,149,244,.56) 0 1.5px, transparent 3px),
    linear-gradient(270deg, rgba(80,55,150,.16), transparent 58%),
    linear-gradient(270deg, transparent 72%, rgba(145,126,231,.32) 73%, rgba(145,126,231,.10) 74%, transparent 75%),
    radial-gradient(ellipse at 100% 55%, rgba(100,79,196,.17), transparent 62%);
  box-shadow: inset -24px 0 38px rgba(65,48,139,.06);
  mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
  animation-delay: -5s;
}

/* 端に短い“軌道の切れ目”を入れて、ただの縦線に見えないようにする */
.site-shell::before,
.page-main::before {
  border-right: 1px solid rgba(136,197,236,.06);
}

.site-shell::after,
.page-main::after {
  border-left: 1px solid rgba(157,139,235,.06);
}

@keyframes neoEdgeDrift {
  0% {
    background-position: 0 0, 0 80px, 0 0, 0 0, 0 0;
    opacity: .58;
  }
  50% {
    opacity: .78;
  }
  100% {
    background-position: 0 145px, 0 -95px, 0 0, 0 0, 0 0;
    opacity: .66;
  }
}

/* コンテンツに被らないよう、狭い画面では装飾を弱める */
@media (max-width: 980px) {
  .site-shell::before,
  .site-shell::after,
  .page-main::before,
  .page-main::after {
    width: 58px;
    opacity: .46;
  }
}

@media (max-width: 760px) {
  .site-shell::before,
  .site-shell::after,
  .page-main::before,
  .page-main::after {
    width: 34px;
    opacity: .30;
  }
}

/* ===== 2026-09 asymmetric orbital arcs ===== */
/* 左側に3本、右側に2本。左右非対称のまま、軌道線は完全に静止させる。 */
.edge-orbit-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.site-shell > .edge-orbit-layer {
  top: calc(100svh - 46px);
}

.page-main > .edge-orbit-layer {
  top: 0;
}

.edge-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* 左側：3本。青系で少し密度を高める */
.edge-orbit--left-a {
  width: clamp(720px, 62vw, 1120px);
  height: clamp(1080px, 126vw, 1780px);
  left: clamp(-930px, -52vw, -560px);
  top: 5%;
  border: 1.4px solid rgba(119, 193, 243, .22);
  filter: drop-shadow(0 0 8px rgba(90, 170, 225, .08));
  transform: rotate(-20deg);
}

.edge-orbit--left-a::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  right: 16.5%;
  top: 17%;
  border-radius: 50%;
  background: rgba(239, 249, 255, .80);
  box-shadow: 0 0 10px rgba(154, 216, 255, .55);
}

.edge-orbit--left-b {
  width: clamp(610px, 53vw, 980px);
  height: clamp(900px, 106vw, 1510px);
  left: clamp(-815px, -45vw, -485px);
  top: 24%;
  border: 1px solid rgba(99, 168, 224, .14);
  transform: rotate(-8deg);
}

.edge-orbit--left-c {
  width: clamp(830px, 70vw, 1240px);
  height: clamp(1220px, 140vw, 1940px);
  left: clamp(-1080px, -60vw, -680px);
  top: 54%;
  border: 1px solid rgba(137, 199, 239, .09);
  transform: rotate(-31deg);
}

/* 右側：2本。位置も高さもずらして紫寄りに */
.edge-orbit--right-a {
  width: clamp(690px, 58vw, 1060px);
  height: clamp(1010px, 119vw, 1690px);
  right: clamp(-900px, -50vw, -555px);
  top: 37%;
  border: 1.3px solid rgba(156, 139, 237, .18);
  filter: drop-shadow(0 0 8px rgba(135, 111, 228, .07));
  transform: rotate(22deg);
}

.edge-orbit--right-a::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 18%;
  top: 24%;
  border-radius: 50%;
  background: rgba(247, 245, 255, .74);
  box-shadow: 0 0 9px rgba(196, 184, 255, .48);
}

.edge-orbit--right-b {
  width: clamp(560px, 48vw, 900px);
  height: clamp(860px, 98vw, 1420px);
  right: clamp(-780px, -43vw, -470px);
  top: 72%;
  border: 1px solid rgba(137, 122, 218, .10);
  transform: rotate(10deg);
}

/* 軌道線は静止表示。アニメーションなし。 */

/* 既存の端のHUDラインも少し弱め、曲線を主役にしすぎない */
.site-shell::before,
.site-shell::after,
.page-main::before,
.page-main::after {
  opacity: .50;
}

@media (max-width: 1180px) {
  .edge-orbit-layer { opacity: .72; }
  .edge-orbit--left-a { left: -700px; }
  .edge-orbit--left-b { left: -640px; }
  .edge-orbit--left-c { left: -790px; }
  .edge-orbit--right-a { right: -700px; }
  .edge-orbit--right-b { right: -610px; }
}

@media (max-width: 900px) {
  .edge-orbit-layer { opacity: .46; }
  .edge-orbit--left-c,
  .edge-orbit--right-b { display: none; }
}

@media (max-width: 760px) {
  .edge-orbit-layer { display: none; }
}


/* ===== 2026-09 static orbit lock ===== */
.edge-orbit {
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
}

.edge-orbit--left-a { transform: rotate(-20deg) !important; }
.edge-orbit--left-b { transform: rotate(-8deg) !important; }
.edge-orbit--left-c { transform: rotate(-31deg) !important; }
.edge-orbit--right-a { transform: rotate(22deg) !important; }
.edge-orbit--right-b { transform: rotate(10deg) !important; }

/* ===== 2026-09-10 content revision ===== */
/* Header title */
.header-title {
  font-size: clamp(9px, .82vw, 12px);
  letter-spacing: .075em;
}

/* Overview logo: smaller, with a crisp white outer edge instead of the dark shadow */
.overview-logo-wrap {
  width: min(460px, 56vw) !important;
  margin-bottom: 34px !important;
}
.overview-logo {
  filter:
    drop-shadow(1px 0 0 rgba(255,255,255,.96))
    drop-shadow(-1px 0 0 rgba(255,255,255,.96))
    drop-shadow(0 1px 0 rgba(255,255,255,.96))
    drop-shadow(0 -1px 0 rgba(255,255,255,.96))
    drop-shadow(0 9px 18px rgba(0,0,0,.20)) !important;
}

/* Overview copy: keep the requested three lines stable on desktop */
.overview-copy,
#overview > .content-narrow > .section-copy {
  max-width: 760px;
  line-height: 2;
  letter-spacing: .015em;
}

/* Japanese label first, English translation directly underneath */
.compact-info dt {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  text-align: center;
}
.compact-info dt > span,
.compact-info dt > small {
  display: block;
  margin: 0 !important;
  line-height: 1.1;
}
.compact-info dt > small {
  font-size: .58em !important;
  letter-spacing: .04em;
}

/* Four invited teams */
.team-mini-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}

/* Sponsor category labels removed: one clean grid */
.sponsor-grid--single {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

/* ===== 4-team double-elimination bracket ===== */
.double-elim-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(132,199,235,.45) rgba(255,255,255,.04);
}
.double-elim-scroll--page {
  width: min(1320px, calc(100vw - 48px));
  margin-inline: auto;
}
.tournament-page-section {
  padding-inline: 24px;
}

.bracket-preview {
  min-width: 0 !important;
  display: block !important;
  padding: 0 !important;
  overflow: visible !important;
}

.double-elim-bracket {
  position: relative;
  width: 1260px;
  height: 620px;
  margin-inline: auto;
  color: #f7f9ff;
}
.double-elim-bracket--preview {
  transform-origin: top left;
}

.de-connectors {
  position: absolute;
  inset: 0;
  width: 1260px;
  height: 620px;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.de-connectors path {
  fill: none;
  stroke: rgba(130, 184, 220, .62);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

.de-match {
  position: absolute !important;
  z-index: 2;
  width: 190px;
  margin: 0 !important;
  border: 1px solid rgba(139, 197, 233, .44);
  background: #070b13 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.20);
  overflow: hidden;
  color: #f7f9ff;
}
.de-match header {
  min-height: 28px;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  background: #10284f;
  border-bottom: 1px solid rgba(154,207,239,.35);
}
.de-match header strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: .01em;
}
.de-match header em {
  flex: 0 0 auto;
  color: #ff334e;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .02em;
}
.de-match > div {
  min-height: 28px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #0b111d;
  border-top: 1px solid rgba(139,197,233,.22);
  font-size: 10px;
  line-height: 1.15;
}
.de-match > div:first-of-type { border-top: 0; }
.de-match > div span { white-space: nowrap; }
.de-match > div b { color: #8ed8ff; }

.de-u1 { left: 0; top: 34px; }
.de-u2 { left: 0; top: 166px; }
.de-uf { left: 300px; top: 100px; }
.de-l1 { left: 300px; top: 366px; }
.de-lf { left: 600px; top: 305px; }
.de-gf { left: 900px; top: 188px; }
.de-reset { left: 1120px; top: 188px; width: 140px; }
.de-reset header strong { font-size: 10px; }
.de-reset > div { font-size: 9px; }

.de-label {
  position: absolute;
  z-index: 1;
  left: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  color: rgba(151,191,222,.56);
  pointer-events: none;
}
.de-label-upper { top: 0; }
.de-label-lower { top: 332px; }

/* Existing tournament animation hooks should animate cards, not alter bracket positioning. */
.de-match.preview-round,
.de-match.tournament-round {
  min-height: 0;
}
.de-match.tournament-round h3,
.de-match.tournament-round .match-list { display: none; }

/* Let the index preview keep the same bracket while fitting the 1040px content area. */
@media (min-width: 1100px) {
  .tournament-preview-section .double-elim-scroll {
    overflow-x: hidden;
  }
  .tournament-preview-section .double-elim-bracket--preview {
    transform: scale(.80);
    margin-bottom: -124px;
    margin-left: max(0px, calc((100% - 1008px) / 2));
  }
}

@media (max-width: 900px) {
  .overview-logo-wrap { width: min(390px, 68vw) !important; }
  .team-mini-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor-grid--single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .double-elim-scroll { padding-bottom: 18px; }
}

@media (max-width: 560px) {
  .overview-logo-wrap { width: min(330px, 74vw) !important; margin-bottom: 26px !important; }
  #overview > .content-narrow > .section-copy { line-height: 1.85; }
  .compact-info dt > small { font-size: 7px !important; }
  .sponsor-grid--single { grid-template-columns: 1fr 1fr; gap: 12px; }
}


/* ===== 2026-09-10 schedule / entry revision ===== */
.schedule-flow,
.entry-flow {
  width: min(760px, 100%);
  margin: 0 auto;
}
.flow-step + .flow-step {
  margin-top: 0;
}
.flow-box {
  position: relative;
  padding: 15px 24px;
  background: var(--blue);
  border: 1px solid rgba(255,255,255,.18);
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.flow-box strong,
.flow-box span {
  display: inline;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 850;
}
.flow-box strong { margin-right: 6px; }
.flow-box small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  line-height: 1.45;
  font-weight: 700;
}
.flow-arrow {
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-top: 18px solid var(--blue);
}
.entry-box {
  padding-block: 18px;
}
.entry-box span {
  display: block;
}
.entry-actions {
  margin-top: 26px;
  display: grid;
  justify-content: center;
  gap: 18px;
}
.entry-action {
  min-width: 180px;
  padding: 16px 22px;
  background: rgba(131, 201, 236, .95);
  border: 1px solid rgba(255,255,255,.22);
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}
.entry-action small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}
.entry-action--primary {
  min-width: 300px;
  padding-block: 18px;
}

/* ===== moving side stars, while keeping orbit lines static ===== */
.edge-star-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.edge-star {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.90);
  box-shadow: 0 0 12px rgba(128,197,255,.55), 0 0 20px rgba(156,138,235,.22);
  animation: edgeStarTwinkle var(--dur, 4.2s) ease-in-out infinite, edgeStarDrift var(--drift, 10s) linear infinite;
}
.edge-star::before,
.edge-star::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: rgba(210, 236, 255, .85);
  border-radius: 999px;
}
.edge-star::before { width: 2px; height: 14px; }
.edge-star::after { width: 14px; height: 2px; }
.edge-star--tiny {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 8px rgba(128,197,255,.46);
}
.edge-star--tiny::before { height: 9px; width: 1px; }
.edge-star--tiny::after { width: 9px; height: 1px; }
.edge-star--trail {
  width: 6px;
  height: 6px;
}
.edge-star--trail::after {
  width: 34px;
  height: 1px;
  left: -22px;
  right: auto;
  top: 50%;
  transform: rotate(-18deg);
  opacity: .5;
}
.site-shell > .edge-star-layer {
  top: calc(100svh - 46px);
}
.page-main > .edge-star-layer {
  top: 0;
}
.edge-star.left-1 { left: 48px; top: 10%; --dur: 4.6s; --drift: 12s; }
.edge-star.left-2 { left: 92px; top: 27%; --dur: 5.4s; --drift: 14s; }
.edge-star.left-3 { left: 64px; top: 48%; --dur: 4.8s; --drift: 13.4s; }
.edge-star.left-4 { left: 126px; top: 74%; --dur: 6.0s; --drift: 15.5s; }
.edge-star.right-1 { right: 68px; top: 15%; --dur: 4.3s; --drift: 12.6s; }
.edge-star.right-2 { right: 108px; top: 35%; --dur: 5.2s; --drift: 13.8s; }
.edge-star.right-3 { right: 82px; top: 56%; --dur: 4.9s; --drift: 16s; }
.edge-star.right-4 { right: 132px; top: 82%; --dur: 6.2s; --drift: 15.2s; }
@keyframes edgeStarTwinkle {
  0%, 100% { opacity: .2; transform: scale(.82); }
  40% { opacity: .75; transform: scale(1.06); }
  55% { opacity: .95; transform: scale(1.16); }
}
@keyframes edgeStarDrift {
  0% { translate: 0 0; }
  50% { translate: 0 -12px; }
  100% { translate: 0 0; }
}
@media (max-width: 760px) {
  .edge-star-layer { display: none; }
}

/* ===== 2026-09-10 clean 8-team double-elimination bracket ===== */
.double-elim-scroll--page {
  width: min(100%, calc(100vw - 32px));
}
.double-elim-bracket {
  position: relative;
  width: 1640px;
  height: 820px;
  margin-inline: auto;
  color: #f7f9ff;
}
.bracket-preview .double-elim-bracket--preview {
  transform-origin: top left;
}
.de-connectors {
  width: 1640px;
  height: 820px;
}
.de-connectors path {
  fill: none;
  stroke: rgba(151, 203, 235, .66);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.de-match {
  width: 210px;
  border-color: rgba(139, 197, 233, .5);
}
.de-match header strong {
  font-size: 11px;
}
.de-match > div {
  font-size: 10px;
}
.de-reset {
  width: 200px;
}
.de-reset header strong {
  font-size: 11px;
}
.de-reset > div {
  font-size: 10px;
}
.de-u1 { left: 0; top: 24px; }
.de-u2 { left: 0; top: 134px; }
.de-u3 { left: 0; top: 310px; }
.de-u4 { left: 0; top: 420px; }
.de-sf1 { left: 280px; top: 80px; }
.de-sf2 { left: 280px; top: 364px; }
.de-uf { left: 560px; top: 214px; }
.de-l1 { left: 0; top: 560px; }
.de-l2 { left: 0; top: 670px; }
.de-l3 { left: 280px; top: 560px; }
.de-l4 { left: 280px; top: 670px; }
.de-l5 { left: 560px; top: 616px; }
.de-lf { left: 840px; top: 500px; }
.de-gf { left: 1120px; top: 316px; }
.de-reset { left: 1400px; top: 316px; }
.de-label-upper { top: 0; }
.de-label-lower { top: 536px; }
.tournament-page-section .double-elim-scroll {
  padding-bottom: 28px;
}
.de-connectors.is-drawn path,
.double-elim-bracket.is-drawn .de-connectors path {
  opacity: 1;
}
@media (min-width: 1100px) {
  .tournament-preview-section .double-elim-scroll {
    overflow-x: hidden;
  }
  .tournament-preview-section .double-elim-bracket--preview {
    transform: scale(.61);
    margin-bottom: -318px;
    margin-left: max(0px, calc((100% - 1000px) / 2));
  }
}
@media (max-width: 1099px) {
  .bracket-preview .double-elim-scroll {
    overflow-x: auto;
  }
}
@media (max-width: 900px) {
  .flow-box {
    padding: 14px 16px;
  }
  .flow-box strong,
  .flow-box span {
    display: block;
    font-size: 12px;
  }
  .flow-box strong { margin: 0 0 4px; }
  .entry-action--primary { min-width: 260px; }
}
@media (max-width: 560px) {
  .entry-actions { gap: 14px; }
  .entry-action { min-width: 160px; font-size: 13px; }
  .entry-action--primary { min-width: 100%; }
}

.flow-step {
  display: flex;
  justify-content: center;
}
.schedule-flow .flow-box {
  width: min(780px, calc(100% - 18px));
}
.entry-flow .flow-box {
  width: min(900px, 100%);
}
.entry-flow .flow-step:nth-of-type(1) .flow-box,
.entry-flow .flow-step:nth-of-type(3) .flow-box {
  width: min(900px, 100%);
}
.entry-flow .flow-step:nth-of-type(5) .flow-box {
  width: min(900px, 100%);
}
.entry-actions .entry-action:first-child {
  width: 180px;
  min-width: 180px;
  justify-self: center;
}
.entry-actions .entry-action--primary {
  width: 300px;
  justify-self: center;
}


/* ===== 2026-09-10 continued polish ===== */
/* Schedule / Entry: reference-image-like spacing and arrows */
.schedule-flow,
.entry-flow {
  margin-top: 6px;
}
.schedule-flow .flow-box,
.entry-flow .flow-box {
  border: 0;
  box-shadow: none;
  color: #07101a;
}
.schedule-flow .flow-box {
  width: min(820px, 100%);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 12px 22px;
  text-align: left;
}
.schedule-flow .flow-box strong,
.schedule-flow .flow-box span {
  font-size: 12px;
  line-height: 1.55;
}
.schedule-flow .flow-arrow,
.entry-flow .flow-arrow {
  border-left-width: 24px;
  border-right-width: 24px;
  border-top-width: 16px;
}
.entry-flow {
  width: min(900px, 100%);
}
.entry-flow .flow-box {
  width: 100%;
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 13px 22px;
}
.entry-flow .flow-box span {
  font-size: 12px;
  line-height: 1.5;
}
.entry-flow .flow-box small {
  max-width: 760px;
  font-size: 8px;
  line-height: 1.4;
}
.entry-actions {
  margin-top: 28px;
  gap: 24px;
}
.entry-action {
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.entry-action:hover {
  transform: translateY(-3px);
  background: #9bd6f4;
  box-shadow: 0 12px 26px rgba(77, 171, 224, .16);
}

/* Bracket: connector coordinates are fixed, cards animate separately without affecting the SVG. */
.double-elim-bracket {
  isolation: isolate;
}
.de-connectors {
  z-index: 1;
}
.de-match {
  z-index: 3;
}
.de-label {
  z-index: 2;
}
.de-connectors .de-path {
  stroke: rgba(143, 203, 240, .74);
  stroke-width: 1.45;
  stroke-linecap: square;
  stroke-linejoin: miter;
  opacity: 0;
}
.de-connectors .de-path--drop {
  stroke: rgba(151, 151, 220, .58);
}
.de-connectors .de-path--lower {
  stroke: rgba(137, 179, 224, .68);
}

/* Keep the preview readable without making it feel cramped. */
@media (min-width: 1100px) {
  .tournament-preview-section .double-elim-bracket--preview {
    transform: scale(.62);
    margin-bottom: -312px;
  }
}

/* The orbit curves stay static; stars and small light points are what move. */
.edge-orbit {
  animation: none !important;
}
.edge-star-layer {
  z-index: 5;
  opacity: .88;
}
.edge-star {
  animation-name: edgeStarTwinkle2, edgeStarFloat2 !important;
  animation-duration: var(--twinkle, 5.8s), var(--float, 17s) !important;
  animation-timing-function: ease-in-out, ease-in-out !important;
  animation-iteration-count: infinite, infinite !important;
}
.edge-star:nth-child(2n) { animation-delay: -1.7s, -4.2s !important; }
.edge-star:nth-child(3n) { animation-delay: -3.2s, -7.4s !important; }
.edge-star:nth-child(4n) { animation-delay: -4.8s, -10.1s !important; }
@keyframes edgeStarTwinkle2 {
  0%, 100% { opacity: .22; scale: .80; }
  35% { opacity: .62; scale: .96; }
  50% { opacity: 1; scale: 1.18; }
  68% { opacity: .54; scale: .90; }
}
@keyframes edgeStarFloat2 {
  0%, 100% { translate: 0 0; }
  25% { translate: 7px -10px; }
  50% { translate: -5px -20px; }
  75% { translate: 9px -9px; }
}
.edge-star.left-1  { --twinkle: 5.0s; --float: 16s; }
.edge-star.left-2  { --twinkle: 6.4s; --float: 19s; }
.edge-star.left-3  { --twinkle: 5.8s; --float: 18s; }
.edge-star.left-4  { --twinkle: 7.0s; --float: 21s; }
.edge-star.right-1 { --twinkle: 5.6s; --float: 17s; }
.edge-star.right-2 { --twinkle: 6.8s; --float: 20s; }
.edge-star.right-3 { --twinkle: 5.2s; --float: 18.5s; }
.edge-star.right-4 { --twinkle: 7.2s; --float: 22s; }

@media (max-width: 760px) {
  .schedule-flow .flow-box {
    display: block;
    text-align: center;
    padding: 13px 14px;
  }
  .schedule-flow .flow-box strong,
  .schedule-flow .flow-box span {
    font-size: 11px;
  }
  .entry-flow .flow-box span { font-size: 11px; }
}


/* ===== 2026-09-10 requested fixes: unified flow text / single-elim / moving orbit light ===== */
/* Schedule / Entry colors now match the rest of the black-theme information blocks. */
.schedule-flow .flow-box,
.entry-flow .flow-box {
  background: #10283b !important;
  color: #f6f9ff !important;
  border: 1px solid rgba(126, 194, 230, .14) !important;
}
.schedule-flow .flow-box strong,
.schedule-flow .flow-box span,
.entry-flow .flow-box span {
  color: #f6f9ff !important;
}
.entry-flow .flow-box small {
  color: #88a9c3 !important;
}
.schedule-flow .flow-arrow,
.entry-flow .flow-arrow {
  border-top-color: #10283b !important;
}
.entry-action {
  background: #143a58 !important;
  color: #f6f9ff !important;
  border-color: rgba(126, 194, 230, .18) !important;
}
.entry-action small { color: #b8d3e8 !important; }
.entry-action:hover { background: #1a4b70 !important; }

/* Prevent the large hero logo from flashing at full size before JS initializes on reload. */
.hero-motion-js .hero-logo-frame {
  opacity: 0;
  transform: translate3d(0,72px,0) scale(.76);
  filter: blur(16px) brightness(1.18);
}

/* Smooth animated orbital lines: geometry stays fixed; only a soft highlight travels along the path. */
.edge-orbit-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: .74;
}
.site-shell > .edge-orbit-layer { top: calc(100svh - 46px); height: auto; }
.page-main > .edge-orbit-layer { top: 0; height: auto; }
.edge-orbit-base,
.edge-orbit-flow {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.edge-orbit-base.left { stroke: rgba(119,193,243,.13); stroke-width: 1.05; }
.edge-orbit-base.right { stroke: rgba(156,139,237,.12); stroke-width: 1.05; }
.edge-orbit-flow.left { stroke: rgba(133,211,255,.42); stroke-width: 1.35; }
.edge-orbit-flow.right { stroke: rgba(174,155,255,.34); stroke-width: 1.35; }
.edge-orbit-flow {
  stroke-dasharray: 160 92 24 118;
  animation: orbitLightFlow 22s linear infinite;
  filter: drop-shadow(0 0 4px rgba(113,190,244,.15));
}
.edge-orbit-flow.orbit-b { animation-duration: 29s; animation-direction: reverse; animation-delay: -8s; }
.edge-orbit-flow.orbit-c { animation-duration: 35s; animation-delay: -13s; }
.edge-orbit-flow.orbit-d { animation-duration: 27s; animation-direction: reverse; animation-delay: -4s; }
.edge-orbit-flow.orbit-e { animation-duration: 38s; animation-delay: -18s; }
@keyframes orbitLightFlow {
  to { stroke-dashoffset: -780; }
}
@media (max-width: 900px) {
  .edge-orbit-layer { opacity: .48; }
}
@media (max-width: 760px) {
  .edge-orbit-layer { display: none; }
}

/* Clean ordinary 8-team single-elimination bracket. */
.tournament-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 0 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(132,199,235,.45) rgba(255,255,255,.04);
}
.tournament-scroll--page {
  width: min(1360px, calc(100vw - 32px));
  margin-inline: auto;
}
.bracket-preview {
  min-width: 0 !important;
  display: block !important;
  padding: 0 !important;
  overflow: visible !important;
}
.single-elim-bracket {
  position: relative;
  width: 1320px;
  height: 520px;
  margin-inline: auto;
  color: #f7f9ff;
  isolation: isolate;
}
.bracket-connectors {
  position: absolute;
  inset: 0;
  width: 1320px;
  height: 520px;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.bracket-connectors .bracket-path {
  fill: none;
  stroke: rgba(143,203,240,.76);
  stroke-width: 1.55;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.bracket-connectors .bracket-path--final {
  stroke: rgba(170,157,240,.68);
}
.bracket-match {
  position: absolute !important;
  z-index: 3;
  width: 210px;
  margin: 0 !important;
  border: 1px solid rgba(139,197,233,.48);
  background: #070b13;
  box-shadow: 0 10px 28px rgba(0,0,0,.20);
  overflow: hidden;
  color: #f7f9ff;
}
.bracket-match header {
  min-height: 28px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #10284f;
  border-bottom: 1px solid rgba(154,207,239,.35);
}
.bracket-match header strong {
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.bracket-match header em {
  color: #ff334e;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
}
.bracket-match > div {
  min-height: 28px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #0b111d;
  border-top: 1px solid rgba(139,197,233,.22);
  font-size: 10px;
}
.bracket-match > div:first-of-type { border-top: 0; }
.bracket-match > div b { color: #8ed8ff; }
.qf1 { left: 0; top: 20px; }
.qf2 { left: 0; top: 130px; }
.qf3 { left: 0; top: 300px; }
.qf4 { left: 0; top: 410px; }
.sf1 { left: 330px; top: 75px; }
.sf2 { left: 330px; top: 355px; }
.final { left: 660px; top: 215px; }
.bracket-winner {
  position: absolute !important;
  z-index: 3;
  left: 1000px;
  top: 215px;
  width: 210px;
  min-height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 10px;
  background: linear-gradient(135deg, #10284f, #15183d);
  border: 1px solid rgba(168,191,244,.52);
  box-shadow: 0 12px 32px rgba(0,0,0,.23);
  text-align: center;
}
.bracket-winner small {
  color: #9fb4d8;
  font-size: 9px;
  letter-spacing: .18em;
}
.bracket-winner strong {
  margin-top: 3px;
  color: #f7f9ff;
  font-size: 18px;
  letter-spacing: .06em;
}
.bracket-column-label {
  position: absolute;
  z-index: 2;
  top: 0;
  color: rgba(159,180,216,.46);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
  transform: translateY(-4px);
}
.label-qf { left: 0; }
.label-sf { left: 330px; }
.label-final { left: 660px; }
.label-winner { left: 1000px; }
@media (min-width: 1100px) {
  .tournament-preview-section .tournament-scroll { overflow-x: hidden; }
  .tournament-preview-section .single-elim-bracket {
    transform: scale(.75);
    transform-origin: top left;
    margin-left: max(0px, calc((100% - 990px) / 2));
    margin-bottom: -130px;
  }
}
@media (max-width: 760px) {
  .tournament-scroll { padding-bottom: 18px; }
}

/* ===== 2026-09-10 rebuild v3: layers / TECH.C. / double elimination ===== */
/* Decorative layers stay behind the page content and fade out before the content column. */
.site-shell,
.page-main {
  position: relative;
  isolation: isolate;
  background: #05070d !important;
}

.site-shell > section,
.page-main > section,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-shell > .home-section,
.page-main > .page-hero,
.page-main > .page-section {
  background: transparent !important;
}

.hero {
  background: #03050a !important;
  z-index: 3 !important;
}

.edge-orbit-layer,
.edge-star-layer {
  z-index: 1 !important;
  pointer-events: none !important;
  -webkit-mask-image: linear-gradient(90deg,
    #000 0%, #000 16%, rgba(0,0,0,.85) 22%, transparent 34%,
    transparent 66%, rgba(0,0,0,.85) 78%, #000 84%, #000 100%);
  mask-image: linear-gradient(90deg,
    #000 0%, #000 16%, rgba(0,0,0,.85) 22%, transparent 34%,
    transparent 66%, rgba(0,0,0,.85) 78%, #000 84%, #000 100%);
}

/* Lines themselves do not move geometrically. A faint travelling highlight creates movement without twitching. */
.edge-orbit-base {
  opacity: .62;
}
.edge-orbit-flow {
  opacity: .58;
  animation-name: orbitLightFlow, orbitGlowBreath !important;
  animation-timing-function: linear, ease-in-out !important;
  animation-iteration-count: infinite, infinite !important;
  animation-duration: 24s, 8s !important;
}
.edge-orbit-flow.orbit-b { animation-duration: 31s, 9.5s !important; animation-direction: reverse, alternate !important; }
.edge-orbit-flow.orbit-c { animation-duration: 37s, 10.5s !important; }
.edge-orbit-flow.orbit-d { animation-duration: 29s, 8.5s !important; animation-direction: reverse, alternate !important; }
.edge-orbit-flow.orbit-e { animation-duration: 40s, 11s !important; }
@keyframes orbitGlowBreath {
  0%, 100% { opacity: .30; filter: drop-shadow(0 0 2px rgba(113,190,244,.08)); }
  50% { opacity: .72; filter: drop-shadow(0 0 6px rgba(113,190,244,.24)); }
}

/* Ensure the animated stars stay subtle and on the side margins only. */
.edge-star-layer { opacity: .72 !important; }
.edge-star { mix-blend-mode: screen; }

/* TECH.C. organizer page */
.techc-mark {
  width: min(310px, 100%);
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 22px 24px;
  border: 1px solid rgba(150, 211, 245, .20);
  background:
    radial-gradient(circle at 68% 25%, rgba(86,170,222,.18), transparent 42%),
    linear-gradient(145deg, #0a1420, #07101a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 18px 40px rgba(0,0,0,.22);
  color: #f6fbff;
}
.techc-mark strong {
  font-size: clamp(42px, 6vw, 72px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 950;
}
.techc-mark small {
  color: #8fb6d1;
  font-size: 8px;
  letter-spacing: .18em;
  font-weight: 850;
}
.techc-mark--hero {
  width: min(250px, 72vw);
  min-height: 112px;
  margin: 0 auto 28px;
  padding: 16px 20px;
}
.techc-mark--hero strong { font-size: clamp(36px, 5vw, 58px); }
.organizer-card--techc {
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.45fr);
  align-items: stretch;
  gap: 42px;
}
.organizer-photo--techc {
  min-height: 310px;
  padding: 30px;
  display: grid;
  place-items: center;
  background: #08111b;
}
.organizer-photo--techc .techc-mark {
  width: 100%;
  min-height: 190px;
}
.organizer-eyebrow {
  margin: 0 0 7px !important;
  color: #7eb9dc !important;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: .20em;
}
.organizer-copy h2 {
  margin-bottom: 3px;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.35;
}
.organizer-copy h3 {
  margin: 0 0 22px;
  color: #9cc4dd;
  font-size: clamp(12px, 1.25vw, 16px);
  letter-spacing: .04em;
}
.organizer-copy > p:not(.organizer-eyebrow) {
  line-height: 2;
}
.organizer-meta a {
  color: #dff3ff;
  border-bottom: 1px solid rgba(142, 203, 236, .42);
}
.organizer-meta a:hover { color: #8ed8ff; }

/* Reserve / coach rows */
.player--staff {
  background: #101b2a !important;
  border-color: rgba(164, 176, 238, .14) !important;
}
.player--staff .player-avatar {
  background: #20284d;
  border-color: rgba(164, 176, 238, .20);
}
.role--reserve { color: #a8c9e0; }
.role--coach { color: #bbb9ef; }

/* Robust initial hero state: CSS is visible to the browser before the external stylesheet finishes loading. */
html.hero-motion-js .hero-logo-frame {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Double-elimination bracket rebuilt to match the supplied reference. */
.tournament-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px 0 30px;
}
.tournament-scroll--page {
  width: min(1420px, calc(100vw - 30px));
  margin-inline: auto;
}
.double-elim-bracket-v2 {
  position: relative;
  width: 1400px;
  height: 640px;
  margin-inline: auto;
  color: #f7f9ff;
  isolation: isolate;
}
.double-elim-bracket-v2 .bracket-connectors {
  position: absolute;
  inset: 0;
  width: 1400px;
  height: 640px;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.double-elim-bracket-v2 .bracket-path {
  fill: none;
  stroke: rgba(143,203,240,.72);
  stroke-width: 1.45;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.double-elim-bracket-v2 .bracket-path--final {
  stroke: rgba(169,158,239,.72);
}
.double-elim-bracket-v2 .bracket-path--reset {
  stroke: rgba(188,177,245,.58);
}
.de2-match {
  position: absolute !important;
  z-index: 3;
  width: 190px;
  margin: 0 !important;
  border: 1px solid rgba(126, 181, 225, .52);
  background: #070b13;
  box-shadow: 0 10px 28px rgba(0,0,0,.20);
  overflow: hidden;
  color: #f7f9ff;
}
.de2-match header {
  min-height: 28px;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  background: #10284f;
  border-bottom: 1px solid rgba(154,207,239,.35);
}
.de2-match header strong {
  min-width: 0;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: .005em;
}
.de2-match header em {
  flex: 0 0 auto;
  color: #ff334e;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
}
.de2-match > div {
  min-height: 22px;
  padding: 3px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #0b111d;
  border-top: 1px solid rgba(139,197,233,.20);
  font-size: 9px;
  line-height: 1.2;
}
.de2-match > div:first-of-type { border-top: 0; }
.de2-match > div span { white-space: nowrap; }
.de2-match > div b { color: #8ed8ff; }

.de2-u1 { left: 0; top: 20px; }
.de2-u2 { left: 0; top: 120px; }
.de2-u3 { left: 0; top: 230px; }
.de2-u4 { left: 0; top: 330px; }
.de2-sf1 { left: 260px; top: 70px; }
.de2-sf2 { left: 260px; top: 280px; }
.de2-uf { left: 510px; top: 175px; }
.de2-l1 { left: 0; top: 455px; }
.de2-l2 { left: 0; top: 555px; }
.de2-l3 { left: 260px; top: 455px; }
.de2-l4 { left: 260px; top: 555px; }
.de2-l5 { left: 510px; top: 505px; }
.de2-lf { left: 760px; top: 505px; }
.de2-gf { left: 1020px; top: 340px; }
.de2-reset { left: 1240px; top: 340px; width: 160px; }
.de2-reset header strong { font-size: 9px; }
.de2-reset > div { font-size: 8px; }

.de2-label {
  position: absolute;
  z-index: 2;
  left: 0;
  color: rgba(154,188,216,.54);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .20em;
  pointer-events: none;
}
.de2-label-upper { top: 0; }
.de2-label-lower { top: 432px; }

@media (min-width: 1100px) {
  .tournament-preview-section .tournament-scroll { overflow-x: hidden; }
  .tournament-preview-section .double-elim-bracket-v2 {
    transform: scale(.72);
    transform-origin: top left;
    margin-left: max(0px, calc((100% - 1008px) / 2));
    margin-bottom: -179px;
  }
}

@media (max-width: 900px) {
  .organizer-card--techc { grid-template-columns: 1fr; }
  .organizer-photo--techc { min-height: 230px; }
  .techc-mark { margin-inline: auto; }
}

@media (max-width: 760px) {
  .edge-orbit-layer,
  .edge-star-layer { display: none !important; }
  .double-elim-bracket-v2 { height: 640px; }
}

/* ===== 2026-09-11 ABOUT page stability fix ===== */
/* Isolate the organizer page from older generic card/layout rules. */
.about-page {
  background: #05070d !important;
  color: #f4f7ff;
}

.about-page .about-main {
  width: 100%;
  margin: 46px 0 0;
  min-height: calc(100vh - 46px);
  background: #05070d !important;
  overflow: hidden;
}

.about-page .about-hero,
.about-page .about-content-section {
  position: relative;
  z-index: 2;
  background: #05070d !important;
}

.about-page .about-hero {
  min-height: 430px;
  padding: 86px 24px 70px;
  display: grid;
  place-items: center;
  text-align: center;
}

.about-page .about-hero-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.about-page .techc-mark {
  box-sizing: border-box;
  width: 100%;
  max-width: 340px;
  min-height: 160px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(150, 211, 245, .24);
  background:
    radial-gradient(circle at 70% 24%, rgba(86,170,222,.16), transparent 42%),
    linear-gradient(145deg, #0b1623, #07101a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 18px 42px rgba(0,0,0,.28);
  color: #f7fbff;
}

.about-page .techc-mark strong {
  display: block;
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 950;
  white-space: nowrap;
}

.about-page .techc-mark small {
  display: block;
  color: #8fb6d1;
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .16em;
  font-weight: 850;
  text-align: center;
}

.about-page .techc-mark--hero {
  max-width: 260px;
  min-height: 118px;
  margin-bottom: 34px;
  padding: 18px 20px;
}

.about-page .techc-mark--hero strong {
  font-size: clamp(36px, 4.4vw, 54px);
}

.about-page .about-heading {
  width: min(700px, 100%);
  margin: 0 auto 28px;
}

.about-page .about-hero h1 {
  margin: 0 0 12px;
  color: #f7f9ff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.035em;
}

.about-page .about-hero > .about-hero-inner > p {
  max-width: 600px;
  margin: 0 auto;
  color: #aeb9c9;
  font-size: 14px;
}

.about-page .about-content-section {
  padding: 34px 24px 90px;
}

.about-page .about-organizer-card {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  border: 1px solid rgba(143, 203, 240, .18);
  background: rgba(8, 14, 23, .92);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.about-page .about-organizer-logo {
  min-width: 0;
}

.about-page .about-organizer-copy {
  min-width: 0;
}

.about-page .about-organizer-copy .organizer-eyebrow {
  margin: 0 0 8px !important;
  color: #7eb9dc !important;
  font-size: 10px !important;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .2em;
}

.about-page .about-organizer-copy h2 {
  margin: 0 0 5px;
  color: #f7f9ff;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.35;
}

.about-page .about-organizer-copy h3 {
  margin: 0 0 22px;
  color: #9cc4dd;
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1.5;
  letter-spacing: .035em;
}

.about-page .about-description {
  margin: 0;
  color: #c8d1de;
  font-size: 14px;
  line-height: 2;
}

.about-page .about-meta-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.about-page .about-meta-item {
  min-width: 0;
  min-height: 86px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(139, 197, 233, .15);
  background: #0d1825;
}

.about-page .about-meta-item small {
  color: #75afd2;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .14em;
  font-weight: 900;
}

.about-page .about-meta-item strong,
.about-page .about-meta-item a {
  color: #eef7ff;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.about-page .about-meta-item a {
  width: fit-content;
  border-bottom: 1px solid rgba(142, 203, 236, .38);
}

/* The ABOUT content must never be hidden if a generic reveal rule or JS fails. */
.about-page .about-organizer-card,
.about-page .about-organizer-logo,
.about-page .about-organizer-copy,
.about-page .about-meta-grid {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  visibility: visible !important;
}

@media (max-width: 900px) {
  .about-page .about-hero {
    min-height: 380px;
    padding: 72px 20px 56px;
  }

  .about-page .about-content-section {
    padding: 26px 20px 72px;
  }

  .about-page .about-organizer-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px;
  }

  .about-page .about-organizer-logo .techc-mark {
    max-width: 300px;
  }

  .about-page .about-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about-page .about-hero {
    min-height: 350px;
    padding: 64px 16px 46px;
  }

  .about-page .about-content-section {
    padding: 20px 14px 56px;
  }

  .about-page .about-organizer-card {
    padding: 20px;
    gap: 24px;
  }

  .about-page .techc-mark {
    min-height: 132px;
  }

  .about-page .about-description {
    font-size: 13px;
    line-height: 1.9;
  }
}


/* ===== 2026-09-11 official TECH.C. logo assets ===== */
.about-page .about-official-logo {
  box-sizing: border-box;
  margin-inline: auto;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.about-page .about-official-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ABOUT上部：縦長のTECH.C.公式ロゴ */
.about-page .about-official-logo--hero {
  width: min(210px, 42vw);
  margin-bottom: 34px;
  padding: 16px 20px;
  border-radius: 8px;
}

.about-page .about-official-logo--hero img {
  width: min(166px, 100%);
}

/* ABOUT下部の枠内：学校名入り横長ロゴ */
.about-page .about-organizer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-page .about-official-logo--school {
  width: 100%;
  max-width: 520px;
  min-height: 170px;
  padding: 34px 26px;
  border-radius: 8px;
}

.about-page .about-official-logo--school img {
  width: 100%;
  max-width: 569px;
}

@media (max-width: 900px) {
  .about-page .about-official-logo--hero {
    width: min(190px, 48vw);
    margin-bottom: 28px;
  }

  .about-page .about-official-logo--school {
    max-width: 620px;
    min-height: 145px;
    padding: 28px 22px;
  }
}

@media (max-width: 560px) {
  .about-page .about-official-logo--hero {
    width: min(170px, 52vw);
    padding: 12px 14px;
    margin-bottom: 24px;
  }

  .about-page .about-official-logo--school {
    min-height: 112px;
    padding: 22px 16px;
  }
}

/* ===== Live tournament result UI ===== */
.live-status {
  width: min(760px, 100%);
  margin: 0 auto 22px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(135, 205, 242, .20);
  background: rgba(7, 12, 22, .70);
  color: #dbeeff;
  font-size: 10px;
  letter-spacing: .04em;
}
.live-status .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a6ba;
  box-shadow: 0 0 0 3px rgba(148,166,186,.12);
}
.live-status[data-mode="cloud"] .live-dot {
  background: #60e9a5;
  box-shadow: 0 0 12px rgba(96,233,165,.60);
}
.live-status strong { font-size: 10px; letter-spacing: .12em; }
.live-status small { opacity: .65; }
.live-status time { margin-left: auto; opacity: .55; }

.de2-match > div.is-winner {
  background: linear-gradient(90deg, rgba(49, 123, 174, .36), rgba(11,17,29,.95));
  box-shadow: inset 3px 0 0 #8ed8ff;
}
.de2-match > div.is-winner span { color: #fff; font-weight: 900; }
.de2-match > div.is-placeholder { opacity: .48; }
.de2-match.is-decided { border-color: rgba(142,216,255,.68); }
.de2-match.is-reset-not-needed { opacity: .45; }
.de2-match.is-reset-needed { border-color: rgba(170,145,255,.75); }

/* ===== Tournament Admin ===== */
.admin-page {
  background: #05070d;
  color: #f4f7ff;
}
.admin-page .site-header {
  left: 0;
  width: 100%;
  transform: none;
}
.admin-back-link {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #d7edff;
  font-size: 10px;
  font-weight: 900;
}
.admin-main {
  width: min(1180px, calc(100% - 32px));
  margin: 46px auto 80px;
}
.admin-hero {
  min-height: 310px;
  display: grid;
  align-items: end;
  padding: 72px 4px 42px;
  border-bottom: 1px solid rgba(139,197,233,.18);
}
.admin-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(36px, 6vw, 80px);
  line-height: .95;
  letter-spacing: -.04em;
}
.admin-hero p {
  max-width: 760px;
  margin: 0;
  color: #9eb1c9;
  font-size: 13px;
}
.admin-mode-badge {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(150,177,204,.30);
  color: #afc2d6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.admin-mode-badge[data-mode="cloud"] {
  border-color: rgba(96,233,165,.38);
  color: #75efb1;
}
.admin-status-text {
  margin-top: 16px !important;
  min-height: 20px;
  color: #9fb4d8 !important;
}
.admin-status-text[data-type="success"] { color: #75efb1 !important; }
.admin-status-text[data-type="error"] { color: #ff7b90 !important; }

.admin-panel {
  margin-top: 30px;
  padding: 26px;
  border: 1px solid rgba(139,197,233,.16);
  background: #080d16;
}
.admin-panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.admin-panel-heading > span {
  color: #85d5ff;
  font-size: 11px;
  font-weight: 900;
}
.admin-panel-heading h2 { margin: 0; font-size: 25px; line-height: 1; }
.admin-panel-heading small { color: #74879c; font-size: 9px; letter-spacing: .12em; }
.admin-help { margin: -8px 0 22px; color: #8ea1b7; font-size: 11px; }

.admin-login-form { width: min(460px, 100%); display: grid; gap: 14px; }
.admin-login-form label,
.admin-team-row {
  display: grid;
  gap: 6px;
  color: #8ea1b7;
  font-size: 10px;
  font-weight: 900;
}
.admin-login-form input,
.admin-team-row input,
.admin-score {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(139,197,233,.22);
  outline: none;
  background: #04070d;
  color: #f6fbff;
  font: inherit;
}
.admin-login-form input:focus,
.admin-team-row input:focus,
.admin-score:focus { border-color: #7dcef8; }
.admin-login-form button,
.admin-primary {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  background: #83c9ec;
  color: #07111d;
  font-weight: 950;
  cursor: pointer;
}

.admin-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.admin-actions-row { margin-top: 18px; display: flex; justify-content: flex-end; }
.admin-match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-match {
  border: 1px solid rgba(139,197,233,.19);
  background: #050912;
  overflow: hidden;
}
.admin-match.is-decided { border-color: rgba(118,211,255,.48); }
.admin-match.is-disabled { opacity: .48; }
.admin-match header {
  min-height: 36px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #10284f;
}
.admin-match header strong { flex: 1; font-size: 11px; }
.admin-match header em { color: #ff536b; font-size: 10px; font-style: normal; font-weight: 900; }
.admin-match header small { color: rgba(255,255,255,.45); font-size: 8px; }
.admin-match-team {
  min-height: 49px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 52px 48px;
  align-items: center;
  gap: 7px;
  border-top: 1px solid rgba(139,197,233,.12);
}
.admin-match-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; }
.admin-match-team.is-winner { background: rgba(54,133,184,.20); box-shadow: inset 3px 0 0 #8ed8ff; }
.admin-score { min-height: 34px; padding: 5px 6px; text-align: center; }
.admin-match-team button {
  height: 34px;
  border: 1px solid rgba(142,216,255,.35);
  background: transparent;
  color: #a8e3ff;
  font-size: 9px;
  font-weight: 950;
  cursor: pointer;
}
.admin-match-team button:hover:not(:disabled) { background: #83c9ec; color: #07111d; }
.admin-match-team button:disabled { opacity: .25; cursor: not-allowed; }
.admin-match footer { padding: 7px 8px; border-top: 1px solid rgba(139,197,233,.10); }
.admin-clear {
  border: 0;
  background: transparent;
  color: #71869c;
  font-size: 8px;
  cursor: pointer;
}
.admin-danger-zone {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.admin-danger-zone button {
  padding: 10px 14px;
  border: 1px solid rgba(255,111,132,.30);
  background: transparent;
  color: #ff8da0;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}
#admin-logout { border-color: rgba(139,197,233,.22); color: #a8c4d8; }

@media (max-width: 900px) {
  .admin-match-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .admin-back-link { display: none; }
  .admin-main { width: min(100% - 20px, 1180px); }
  .admin-panel { padding: 18px 12px; }
  .admin-teams,
  .admin-match-grid { grid-template-columns: 1fr; }
  .admin-match-team { grid-template-columns: minmax(0,1fr) 46px 46px; }
}

/* ===== Google Sheets tournament sync ===== */
.live-status[data-mode="sheet"] .live-dot {
  background: #60e9a5;
  box-shadow: 0 0 12px rgba(96,233,165,.60);
}
.live-status[data-mode="error"] .live-dot {
  background: #ff6077;
  box-shadow: 0 0 12px rgba(255,96,119,.46);
}
.live-status[data-mode="demo"] .live-dot {
  background: #8fa1b7;
  box-shadow: 0 0 0 3px rgba(143,161,183,.12);
}


/* ===== 2026-09-13 public stream + larger live bracket ===== */
/* Refresh details are operational information, so keep them off the public site. */
.live-status { display: none !important; }

.broadcast-stack {
  display: grid;
  gap: 18px;
}
.broadcast-card--twitch {
  border-color: rgba(171, 132, 255, .30);
}
.broadcast-preview--twitch {
  background: linear-gradient(135deg, rgba(89, 42, 150, .92), rgba(30, 20, 62, .96)) !important;
}
.broadcast-card--twitch .broadcast-body a {
  border-color: rgba(185, 151, 255, .42);
}

/* Progress routes: the sheet decides the winner, then the route glows automatically. */
.double-elim-bracket-v2 .bracket-path.is-progress-active {
  stroke: #8ed8ff !important;
  stroke-width: 2.7 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 4px rgba(105, 198, 255, .90)) drop-shadow(0 0 10px rgba(105, 198, 255, .48));
}
.double-elim-bracket-v2 .bracket-path--final.is-progress-active,
.double-elim-bracket-v2 .bracket-path--reset.is-progress-active {
  stroke: #b7a9ff !important;
  filter: drop-shadow(0 0 4px rgba(183, 169, 255, .92)) drop-shadow(0 0 11px rgba(183, 169, 255, .50));
}

/* Give the home-page bracket more visual weight without changing its logical coordinates. */
.tournament-preview-section .content-wide {
  width: min(1190px, calc(100% - 36px));
}
@media (min-width: 1100px) {
  .tournament-preview-section .double-elim-bracket-v2 {
    transform: scale(.82) !important;
    transform-origin: top left;
    margin-left: max(0px, calc((100% - 1148px) / 2)) !important;
    margin-bottom: -115px !important;
  }
}

/* Detailed tournament page is slightly enlarged as well; horizontal scroll remains available. */
@media (min-width: 900px) {
  .tournament-scroll--page {
    width: min(1515px, calc(100vw - 24px));
    padding-bottom: 68px;
  }
  .tournament-scroll--page .double-elim-bracket-v2 {
    transform: scale(1.075);
    transform-origin: top left;
    margin-inline: auto;
  }
}


/* ===== 2026-09-13 tournament readability / stronger route glow ===== */
/* Team names can become hard to read once real team names are injected.
   Give each name a dark backing chip so the connector lines never visually compete. */
.double-elim-bracket-v2 {
  overflow: visible;
}

.de2-match {
  width: 204px;
}
.de2-reset {
  width: 174px;
}

.de2-match > div {
  min-height: 28px;
  padding: 4px 8px;
  gap: 9px;
}

.de2-match > div span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 34px);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(4, 8, 15, .96);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(7, 14, 25, .36), 0 6px 14px rgba(0,0,0,.22);
  color: #f4fbff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .01em;
}

.de2-match > div b {
  flex: 0 0 auto;
  min-width: 20px;
  text-align: right;
  font-size: 10px;
  font-weight: 950;
}

.de2-match > div.is-placeholder span {
  color: rgba(244,251,255,.62);
  border-color: rgba(255,255,255,.03);
}

/* Make all bracket lines slightly visible even before results are entered,
   then make active routes much thicker and obviously glowing. */
.double-elim-bracket-v2 .bracket-path {
  stroke-width: 2.15;
  opacity: .26;
}
.double-elim-bracket-v2 .bracket-path--final {
  opacity: .30;
}
.double-elim-bracket-v2 .bracket-path--reset {
  opacity: .22;
}

.double-elim-bracket-v2 .bracket-path.is-progress-active {
  stroke: #8ed8ff !important;
  stroke-width: 4.8 !important;
  opacity: 1 !important;
  filter:
    drop-shadow(0 0 4px rgba(112, 214, 255, .98))
    drop-shadow(0 0 12px rgba(112, 214, 255, .92))
    drop-shadow(0 0 24px rgba(112, 214, 255, .72));
}
.double-elim-bracket-v2 .bracket-path--final.is-progress-active,
.double-elim-bracket-v2 .bracket-path--reset.is-progress-active {
  stroke: #c4b4ff !important;
  filter:
    drop-shadow(0 0 4px rgba(196, 180, 255, .98))
    drop-shadow(0 0 12px rgba(196, 180, 255, .90))
    drop-shadow(0 0 24px rgba(196, 180, 255, .68));
}

@media (min-width: 1100px) {
  .tournament-preview-section .double-elim-bracket-v2 {
    transform: scale(.86) !important;
    margin-left: max(0px, calc((100% - 1204px) / 2)) !important;
    margin-bottom: -96px !important;
  }
}


/* ===== 2026-09-13 hero title glow polish ===== */
/* Keep the existing logo/video composition, but give the text title more presence. */
.hero h1 {
  position: relative;
  z-index: 1;
  color: #f8fcff !important;
  font-weight: 950;
  letter-spacing: -.02em;
  text-shadow:
    0 3px 0 rgba(4, 10, 23, .92),
    0 8px 18px rgba(0, 0, 0, .62),
    0 0 7px rgba(130, 216, 255, .78),
    0 0 18px rgba(91, 181, 255, .52),
    0 0 34px rgba(126, 105, 255, .30);
}

.hero h1 span {
  display: inline-block;
  margin-top: .08em;
  color: #dfeaff;
  letter-spacing: .16em;
  text-shadow:
    0 2px 0 rgba(4, 10, 23, .92),
    0 7px 16px rgba(0, 0, 0, .62),
    0 0 7px rgba(183, 169, 255, .86),
    0 0 20px rgba(149, 125, 255, .54),
    0 0 36px rgba(96, 201, 255, .26);
}

.hero h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: min(340px, 62%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(133, 216, 255, .88), rgba(183, 169, 255, .88), transparent);
  box-shadow: 0 0 10px rgba(131, 201, 236, .60);
  opacity: .72;
}

@media (max-width: 520px) {
  .hero h1 {
    text-shadow:
      0 2px 0 rgba(4, 10, 23, .92),
      0 6px 14px rgba(0, 0, 0, .58),
      0 0 6px rgba(130, 216, 255, .72),
      0 0 15px rgba(91, 181, 255, .44);
  }
  .hero h1 span { letter-spacing: .11em; }
  .hero h1::after { bottom: -11px; width: 68%; }
}


/* ===== 2026-09-13 unified hero glow + deep starfield ===== */
.hero h1,
.hero h1 span {
  color: #f8fcff !important;
  text-shadow:
    0 3px 0 rgba(4, 10, 23, .94),
    0 9px 22px rgba(0, 0, 0, .68),
    0 0 7px rgba(126, 216, 255, .84),
    0 0 18px rgba(91, 181, 255, .62),
    0 0 36px rgba(67, 155, 255, .38) !important;
}
.hero h1 span {
  letter-spacing: .16em;
}
.hero h1::after {
  background: linear-gradient(90deg, transparent, rgba(130,216,255,.22), rgba(130,216,255,.96), rgba(130,216,255,.22), transparent) !important;
  box-shadow: 0 0 8px rgba(126,216,255,.74), 0 0 18px rgba(91,181,255,.48) !important;
}

/* A very low-z-index starfield. Content and orbit decorations stay above it. */
.cosmic-starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .92;
}
.cosmic-starfield .bg-star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: rgba(225, 242, 255, .95);
  box-shadow: 0 0 calc(var(--s, 2px) * 4.6) rgba(119, 198, 255, .46);
  animation:
    bgStarTwinkle var(--tw, 5.5s) ease-in-out infinite,
    bgStarDrift var(--dr, 24s) ease-in-out infinite;
  animation-delay: var(--delay, 0s), var(--delay2, 0s);
  will-change: opacity, transform;
}
.cosmic-starfield .bg-star.is-purple {
  background: rgba(235, 228, 255, .95);
  box-shadow: 0 0 calc(var(--s, 2px) * 4) rgba(171, 149, 255, .36);
}
@keyframes bgStarTwinkle {
  0%, 100% { opacity: .18; filter: brightness(.88); }
  40% { opacity: .68; filter: brightness(1); }
  55% { opacity: .98; filter: brightness(1.22); }
  72% { opacity: .42; filter: brightness(.94); }
}
@keyframes bgStarDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  38% { transform: translate3d(var(--dx1, 6px), var(--dy1, -10px), 0); }
  72% { transform: translate3d(var(--dx2, -6px), var(--dy2, -18px), 0); }
}

.cosmic-starfield .shooting-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #eefaff;
  box-shadow: 0 0 8px rgba(142,216,255,.95), 0 0 18px rgba(142,216,255,.65);
  opacity: 0;
  transform: rotate(-22deg);
  animation: shootingStar var(--shoot, 11s) linear infinite;
  animation-delay: var(--shoot-delay, 0s);
  will-change: transform, opacity;
}
.cosmic-starfield .shooting-star::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: var(--tail, 110px);
  height: 1px;
  transform: translateY(-50%);
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, rgba(142,216,255,.08), rgba(225,248,255,.84));
  box-shadow: 0 0 7px rgba(142,216,255,.35);
}
@keyframes shootingStar {
  0%, 76% { opacity: 0; transform: translate3d(0,0,0) rotate(-22deg); }
  78% { opacity: .95; }
  86% { opacity: .88; }
  91% { opacity: 0; transform: translate3d(260px,110px,0) rotate(-22deg); }
  100% { opacity: 0; transform: translate3d(260px,110px,0) rotate(-22deg); }
}

/* Hero audio control: browsers require a click before sound can start. */
.hero-sound-toggle {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 6;
  min-width: 104px;
  padding: 9px 12px;
  border: 1px solid rgba(196,232,255,.28);
  background: rgba(4,9,17,.58);
  color: #eaf8ff;
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-sound-toggle:hover,
.hero-sound-toggle.is-on {
  border-color: rgba(142,216,255,.66);
  background: rgba(7,18,30,.74);
  box-shadow: 0 0 14px rgba(91,181,255,.18);
}
.hero-sound-toggle.is-on {
  color: #9ee8ff;
}

@media (max-width: 760px) {
  .cosmic-starfield { opacity: .70; }
  .cosmic-starfield .bg-star:nth-child(3n) { display: none; }
  .cosmic-starfield .shooting-star:nth-of-type(n+3) { display: none; }
  .hero-sound-toggle { right: 12px; bottom: 12px; min-width: 94px; padding: 8px 10px; font-size: 8px; }
}


/* ===== 2026-09-13 stable starfield + faster tournament reveal ===== */
.cosmic-starfield { display: none !important; }
.cosmic-star-canvas {
  position: fixed;
  inset: 46px 0 0;
  width: 100vw;
  height: calc(100vh - 46px);
  z-index: 0;
  pointer-events: none;
  opacity: .82;
}
.site-shell > section,
.page-main > section,
.site-footer { position: relative; z-index: 2; }

/* The tournament starts almost as soon as it enters the viewport. */
.bracket-preview.js-bracket-motion .preview-round,
.tournament-round.js-round-motion {
  will-change: opacity, transform, filter;
}

@media (max-width: 760px) {
  .cosmic-star-canvas { opacity: .68; }
}

/* ===== 2026-09-13 responsive hardening: phone / tablet / touch ===== */
/* This block intentionally sits last so it normalizes the older iterative rules above. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
.site-shell,
.page-main {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
svg,
canvas {
  max-width: 100%;
}

.site-header,
.site-menu,
.site-menu-grid,
.home-section,
.page-section,
.page-hero,
.site-footer {
  min-width: 0;
}

.site-menu-grid > *,
.content-narrow > *,
.content-wide > *,
.broadcast-card > *,
.team-detail > *,
.about-organizer-card > * {
  min-width: 0;
}

.hero-video {
  object-position: center center;
}

/* Touch devices should not feel delayed when tapping navigation/buttons. */
a,
button {
  -webkit-tap-highlight-color: rgba(142, 216, 255, .14);
  touch-action: manipulation;
}

/* Long team/account names must never force the page wider than the viewport. */
.team-mini span,
.team-page-card strong,
.player strong,
.player small,
.about-meta-item a,
.about-meta-item strong,
.broadcast-body p,
.broadcast-body a,
.flow-box,
.compact-info dd {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Tournament horizontal-scroll affordance: only appears when the bracket cannot fit. */
.tournament-scroll-hint {
  display: none;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: -4px auto 12px;
  padding: 7px 12px;
  border: 1px solid rgba(142, 216, 255, .18);
  border-radius: 999px;
  background: rgba(8, 17, 29, .78);
  color: #9fcce5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
  text-align: center;
}

.tournament-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}

/* Tablet: use a compact two-row menu and calm the decorative side layers. */
@media (max-width: 1024px) {
  .site-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-menu-grid a {
    min-height: 66px;
    padding: 10px 8px;
  }

  .home-section,
  .page-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .content-wide {
    width: min(100%, 920px);
  }

  .hero-content {
    width: min(900px, 94%);
  }

  .hero-logo-frame {
    width: min(640px, 76vw);
    min-height: 310px;
  }

  .hero-logo {
    max-height: 420px;
  }

  .hero h1 {
    font-size: clamp(34px, 5.3vw, 48px);
  }

  .hero-copy {
    font-size: 13px;
  }

  .tournament-scroll-hint {
    display: block;
  }

  .tournament-scroll--page,
  .tournament-preview-section .tournament-scroll {
    width: 100%;
    max-width: 100%;
  }

  /* The canvas gives enough motion on tablet; hiding side ornaments avoids overlap and saves GPU work. */
  .edge-orbit-layer,
  .edge-star-layer {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .broadcast-card {
    grid-template-columns: 1fr;
  }

  .broadcast-preview {
    min-height: 190px;
  }

  .broadcast-body {
    padding: 24px;
  }

  .page-hero {
    min-height: 270px;
    padding: 68px 22px 44px;
  }

  .teams-page-grid,
  .team-mini-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-page .about-organizer-card {
    width: min(720px, 100%);
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 46px;
  }

  .header-title {
    inset-inline: 52px;
    font-size: clamp(8px, 2.5vw, 10px);
    letter-spacing: .055em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-button {
    width: 48px;
  }

  .hero {
    min-height: max(540px, calc(100svh - 46px));
  }

  .hero-content {
    width: min(100% - 24px, 640px);
    padding: 42px 0 54px;
  }

  .hero-logo-frame {
    width: min(520px, 91vw);
    min-height: 245px;
  }

  .hero-logo {
    max-height: 330px;
    transform: translateX(4.5%);
  }

  .hero h1 {
    max-width: 96vw;
    font-size: clamp(29px, 8.2vw, 38px);
    line-height: 1.06;
  }

  .hero h1 span {
    letter-spacing: .10em;
  }

  .hero-copy {
    max-width: 90vw;
    font-size: clamp(10px, 2.9vw, 12px);
    line-height: 1.7;
  }

  .home-section,
  .page-section {
    padding: 50px 18px 60px;
  }

  .content-narrow,
  .content-wide {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: minmax(24px, 1fr) minmax(0, auto) minmax(24px, 1fr);
    gap: 10px;
  }

  .section-heading h2,
  .overview-heading h2 {
    max-width: 74vw;
    white-space: normal;
    line-height: 1.14;
  }

  .section-heading h2 small,
  .overview-heading h2 small {
    display: inline-block;
    line-height: 1.2;
  }

  .overview-logo-wrap {
    width: min(350px, 78vw) !important;
  }

  .section-copy {
    width: min(100%, 620px);
    font-size: 12px;
    line-height: 1.9;
  }

  .flow-box {
    padding: 14px 16px;
  }

  .flow-box strong,
  .flow-box span {
    font-size: 12px;
  }

  .flow-arrow {
    border-left-width: 21px;
    border-right-width: 21px;
    border-top-width: 14px;
  }

  .entry-actions {
    width: 100%;
    gap: 12px;
  }

  .entry-action,
  .entry-action--primary {
    width: min(100%, 420px);
    min-width: 0;
  }

  .people-grid,
  .sponsor-grid,
  .sponsor-grid--single {
    gap: 16px;
  }

  .team-detail {
    gap: 28px;
  }

  .page-hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .page-hero p {
    font-size: 12px;
    line-height: 1.8;
  }

  .tournament-scroll-hint {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .tournament-scroll,
  .tournament-scroll--page {
    padding-bottom: 22px;
  }

  .cosmic-star-canvas {
    opacity: .62;
  }
}

@media (max-width: 560px) {
  .site-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-menu-grid a {
    min-height: 62px;
  }

  .hero-content {
    padding-top: 34px;
  }

  .hero-logo-frame {
    width: 94vw;
    min-height: 220px;
  }

  .hero h1 {
    font-size: clamp(27px, 8.4vw, 34px);
  }

  .home-section,
  .page-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section-heading {
    gap: 8px;
  }

  .section-heading h2,
  .overview-heading h2 {
    max-width: 78vw;
    font-size: clamp(23px, 7.2vw, 28px);
  }

  /* On phones, stacked overview rows are substantially easier to scan than a narrow two-column table. */
  .compact-info > div {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .compact-info dt,
  .compact-info dd {
    width: 100%;
    min-height: 0;
  }

  .compact-info dt {
    align-items: flex-start !important;
    padding: 9px 12px 7px;
    text-align: left;
  }

  .compact-info dd {
    padding: 8px 12px 12px;
    border-top: 0;
    font-size: 11px;
  }

  .compact-info .organizer-value > span {
    font-size: 10px;
    line-height: 1.45;
  }

  .compact-info .organizer-value > small {
    margin-top: 5px;
    font-size: 7px;
    line-height: 1.4;
  }

  .team-mini-grid,
  .teams-page-grid,
  .team-mini-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .team-mini {
    min-height: 124px;
  }

  .team-mini b {
    width: 70px;
    height: 70px;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .portrait-placeholder {
    min-height: 220px;
  }

  .sponsor-grid,
  .sponsor-grid--single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .broadcast-preview {
    min-height: 160px;
  }

  .broadcast-body {
    padding: 20px 18px;
  }

  .broadcast-body a {
    width: 100%;
    text-align: center;
  }

  .about-page .about-hero {
    min-height: 330px;
    padding: 60px 15px 42px;
  }

  .about-page .about-organizer-card {
    padding: 18px;
  }

  .about-page .about-official-logo--school {
    min-height: 100px;
    padding: 18px 14px;
  }

  .page-section {
    padding-top: 46px;
  }

  .footer-nav a {
    min-height: 86px;
  }
}

@media (max-width: 420px) {
  .header-title {
    inset-inline: 48px;
  }

  .hero {
    min-height: max(520px, calc(100svh - 46px));
  }

  .hero-logo-frame {
    min-height: 198px;
  }

  .hero-copy {
    max-width: 94vw;
  }

  .section-heading h2,
  .overview-heading h2 {
    max-width: 80vw;
    font-size: 23px;
  }

  .flow-box {
    padding-inline: 12px;
  }

  .flow-box strong,
  .flow-box span {
    display: block;
    font-size: 11px;
  }

  .flow-box strong {
    margin: 0 0 3px;
  }

  .player {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
  }

  .player-avatar {
    width: 42px;
    height: 42px;
  }

  .player .role {
    grid-column: 2;
    justify-self: start;
    margin-top: -5px;
  }

  .footer-nav a {
    padding-inline: 11px;
  }
}

/* Short landscape phones: keep the first view usable without making the logo dominate vertically. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: 430px;
  }

  .hero-content {
    padding: 28px 0 38px;
  }

  .hero-logo-frame {
    width: min(430px, 56vw);
    min-height: 155px;
  }

  .hero-logo {
    max-height: 200px;
  }

  .hero h1 {
    font-size: clamp(25px, 5vw, 34px);
  }

  .hero-copy {
    font-size: 10px;
  }
}

@supports (height: 100dvh) {
  .cosmic-star-canvas {
    height: calc(100dvh - 46px);
  }
  @media (max-width: 760px) {
    .hero {
      min-height: max(540px, calc(100dvh - 46px));
    }
  }
  @media (max-width: 420px) {
    .hero {
      min-height: max(520px, calc(100dvh - 46px));
    }
  }
}

@media (max-width: 760px) {
  /* Optical offset is useful on desktop, but on narrow screens true centering prevents edge clipping. */
  .hero-logo {
    transform: translateX(0) !important;
  }
}

/* Tournament overflow safety: bracket-preview also carries an old overflow:visible!important rule. */
@media (max-width: 1099px) {
  .tournament-scroll-hint {
    display: block;
  }

  .bracket-preview.tournament-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .tournament-page-section .tournament-scroll--page {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .tournament-scroll--page .double-elim-bracket-v2 {
    transform: none !important;
    transform-origin: top left !important;
    margin-inline: 0 !important;
  }
}

@media (min-width: 1100px) {
  .bracket-preview.tournament-scroll {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }
}


/* ===== 2026-09-16 requested content + page consistency ===== */
.page-title-line {
  width: min(780px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 22px;
}
.page-title-line > span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134,211,255,.72));
}
.page-title-line > span:last-child {
  background: linear-gradient(90deg, rgba(134,211,255,.72), transparent);
}
.page-title-line h1 { margin: 0; white-space: nowrap; }

/* Bigger invited / qualifier logo placement. */
.team-mini-grid--four { gap: 22px; }
.team-mini-grid--four .team-mini { min-height: 218px; gap: 14px; }
.team-mini-grid--four .team-mini b {
  width: 142px;
  height: 142px;
  border: 1px solid rgba(145,210,245,.34);
  background: linear-gradient(145deg, rgba(15,42,65,.92), rgba(7,15,27,.96));
  box-shadow: inset 0 0 24px rgba(83,173,229,.10), 0 15px 34px rgba(0,0,0,.22);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
}
.team-mini-grid--four .team-mini b small,
.teams-page-grid .team-logo small,
.team-logo-placeholder small {
  color: rgba(185,222,245,.64);
  font-size: 8px;
  letter-spacing: .16em;
  font-weight: 900;
}
.team-mini-grid--four .team-mini b span { font-size: 22px; }
.team-mini-grid--four .team-mini > span { font-size: 14px; }
.qualifier-copy { margin-bottom: 22px; }

.page-team-grid-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.page-team-grid-wrap .teams-page-grid { gap: 22px; }
.page-team-grid-wrap .team-page-card .team-logo {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(145,210,245,.28);
  background: linear-gradient(145deg, #102a42, #08111d);
  box-shadow: inset 0 0 30px rgba(90,182,237,.08), 0 16px 34px rgba(0,0,0,.20);
}
.page-team-grid-wrap .team-page-card .team-logo span { font-size: 34px; }
.team-switch-link, .team-crosslink { margin-top: 30px; }
.team-logo-placeholder { display:grid; place-items:center; align-content:center; gap:8px; }
.team-logo-placeholder > span { font-size: 42px; }

/* Entry should be impossible to miss while still matching the dark visual language. */
.entry-panel {
  position: relative;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 30px 28px 28px;
  overflow: hidden;
  border: 1px solid rgba(117,210,255,.48);
  background:
    radial-gradient(circle at 88% 12%, rgba(91,181,255,.18), transparent 32%),
    linear-gradient(145deg, rgba(8,18,31,.98), rgba(4,9,17,.98));
  box-shadow: 0 0 0 1px rgba(94,190,244,.08), 0 0 34px rgba(69,174,237,.11), 0 22px 58px rgba(0,0,0,.24);
}
.entry-panel::before {
  content:"";
  position:absolute;
  inset:0 auto 0 -28%;
  width: 24%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(160,229,255,.12), transparent);
  animation: entrySweep 5.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes entrySweep { 0%,58%{left:-28%;opacity:0} 65%{opacity:1} 86%{left:112%;opacity:.8} 100%{left:112%;opacity:0} }
.entry-kicker {
  width:max-content;
  margin:0 auto 6px;
  padding:4px 10px;
  border:1px solid rgba(137,219,255,.42);
  color:#9ee7ff;
  font-size:9px;
  font-weight:950;
  letter-spacing:.2em;
}
.entry-lead { margin:0 0 22px; text-align:center; color:#f4fbff; font-size:20px; font-weight:950; letter-spacing:.03em; }
.entry-panel .entry-actions { margin-top:26px; gap:14px; }
.entry-panel .entry-action { min-height:68px; }
.entry-panel .entry-action--primary {
  position:relative;
  min-height:82px;
  border:1px solid rgba(158,231,255,.76);
  background:linear-gradient(135deg,#8fe0ff,#5ebcec);
  color:#06111b;
  box-shadow:0 0 18px rgba(101,204,255,.30),0 0 42px rgba(80,171,238,.18);
  display:grid;
  place-items:center;
  align-content:center;
  gap:2px;
}
.entry-panel .entry-action--primary strong { font-size:17px; letter-spacing:.08em; }
.entry-panel .entry-action--primary small { font-size:9px; font-weight:900; opacity:.72; }
.entry-panel .entry-action--primary:hover { transform:translateY(-2px); box-shadow:0 0 26px rgba(101,204,255,.42),0 0 58px rgba(80,171,238,.24); }

.about-meta-item .meta-link-arrow { margin-left:8px; color:#86d8ff; }
.about-meta-item > a { display:inline-flex; align-items:center; width:fit-content; }

/* ===== Complete 8-team double-elimination bracket v3 ===== */
.double-elim-bracket-v3 {
  position: relative;
  width: 1820px;
  height: 760px;
  color:#f7f9ff;
  isolation:isolate;
}
.double-elim-bracket-v3 .bracket-connectors {
  position:absolute;
  inset:0;
  width:1820px;
  height:760px;
  z-index:1;
  overflow:visible;
  pointer-events:none;
}
.double-elim-bracket-v3 .bracket-path {
  fill:none;
  stroke:#5aaee0;
  stroke-width:2.4;
  vector-effect:non-scaling-stroke;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.66;
}
.double-elim-bracket-v3 .bracket-path--drop,
.double-elim-bracket-v3 .bracket-path--final,
.double-elim-bracket-v3 .bracket-path--reset {
  stroke:#5aaee0;
}
.double-elim-bracket-v3 .bracket-path.is-progress-active,
.double-elim-bracket-v3 .bracket-path--final.is-progress-active,
.double-elim-bracket-v3 .bracket-path--reset.is-progress-active {
  stroke:#79d8ff !important;
  stroke-width:5 !important;
  opacity:1 !important;
  filter:drop-shadow(0 0 4px rgba(121,216,255,.98)) drop-shadow(0 0 12px rgba(89,190,244,.82)) drop-shadow(0 0 22px rgba(65,160,225,.52));
}
.double-elim-bracket-v3 .de2-match {
  width:220px;
  height:82px;
}
.double-elim-bracket-v3 .de2-match header { min-height:30px; height:30px; }
.double-elim-bracket-v3 .de2-match > div { min-height:26px; height:26px; }
.double-elim-bracket-v3 .de2-match > div span { max-width:168px; }

/* Reference layout: connector ports sit on the divider between the two team rows. */
.double-elim-bracket-v3 .de2-u1 { left:20px; top:30px; }
.double-elim-bracket-v3 .de2-u2 { left:20px; top:135px; }
.double-elim-bracket-v3 .de2-u3 { left:20px; top:245px; }
.double-elim-bracket-v3 .de2-u4 { left:20px; top:350px; }
.double-elim-bracket-v3 .de2-sf1 { left:310px; top:82.5px; }
.double-elim-bracket-v3 .de2-sf2 { left:310px; top:297.5px; }
.double-elim-bracket-v3 .de2-uf { left:600px; top:190px; }

.double-elim-bracket-v3 .de2-l1 { left:20px; top:520px; }
.double-elim-bracket-v3 .de2-l2 { left:20px; top:650px; }
.double-elim-bracket-v3 .de2-l3 { left:310px; top:520px; }
.double-elim-bracket-v3 .de2-l4 { left:310px; top:650px; }
.double-elim-bracket-v3 .de2-l5 { left:600px; top:585px; }
.double-elim-bracket-v3 .de2-lf { left:870px; top:585px; }
.double-elim-bracket-v3 .de2-gf { left:1300px; top:387.5px; }
.double-elim-bracket-v3 .de2-reset { left:1550px; top:387.5px; width:220px; }
.de3-label { position:absolute; z-index:2; left:20px; color:rgba(154,188,216,.68); font-size:10px; font-weight:900; letter-spacing:.20em; pointer-events:none; }
.de3-label-upper { top:4px; }
.de3-label-lower { top:492px; }

/* Home preview: show the complete lower bracket instead of cropping it. */
.tournament-preview-section .bracket-preview { min-width:0; overflow-x:auto; overflow-y:hidden; }
@media (min-width:1200px) {
  .tournament-preview-section .double-elim-bracket-v3 {
    transform:scale(.67);
    transform-origin:top left;
    margin-left:max(0px, calc((100% - 1219px) / 2));
    margin-bottom:-245px;
  }
}
@media (min-width:900px) and (max-width:1199px) {
  .tournament-preview-section .double-elim-bracket-v3 {
    transform:scale(.58);
    transform-origin:top left;
    margin-bottom:-319px;
  }
}
.tournament-scroll--page { overflow-x:auto !important; overflow-y:hidden; }
@media (min-width:1500px) {
  .tournament-scroll--page .double-elim-bracket-v3 {
    transform:scale(.88);
    transform-origin:top left;
    margin-bottom:-91px;
  }
}

@media (max-width:900px) {
  .page-title-line { gap:14px; }
  .page-team-grid-wrap { width:min(100% - 28px, 760px); }
  .page-team-grid-wrap .teams-page-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-team-grid-wrap .team-page-card .team-logo { min-height:180px; }
  .team-mini-grid--four .team-mini b { width:118px; height:118px; }
  .team-mini-grid--four .team-mini { min-height:188px; }
  .entry-panel { padding:26px 20px 24px; }
  .entry-lead { font-size:18px; }
}
@media (max-width:560px) {
  .page-title-line { grid-template-columns:minmax(18px,1fr) auto minmax(18px,1fr); gap:9px; }
  .page-title-line h1 { font-size:clamp(23px,8vw,34px); }
  .team-mini-grid--four { gap:12px; }
  .team-mini-grid--four .team-mini { min-height:164px; }
  .team-mini-grid--four .team-mini b { width:100px; height:100px; }
  .team-mini-grid--four .team-mini b span { font-size:18px; }
  .team-mini-grid--four .team-mini > span { font-size:11px; }
  .page-team-grid-wrap .team-page-card .team-logo { min-height:145px; }
  .entry-panel { padding:22px 14px 20px; }
  .entry-lead { font-size:16px; }
  .entry-panel .entry-actions { grid-template-columns:1fr; }
  .entry-panel .entry-action--primary { min-height:74px; }
  .double-elim-bracket-v3 { transform:scale(.82); transform-origin:top left; margin-bottom:-137px; }
}

/* Larger team-logo area on team detail pages. */
@media (min-width: 761px) {
  .team-detail { grid-template-columns: 280px minmax(0,1fr); gap: 48px; }
  .team-logo-placeholder { width: 280px; min-height: 280px; }
}

/* Entry CTA must override older dark-button rules. */
.entry-panel .entry-action--primary {
  width: min(440px, 100%) !important;
  min-width: 0 !important;
  background: linear-gradient(135deg,#9de7ff,#63c4f3) !important;
  color: #06111b !important;
  border-color: rgba(190,239,255,.92) !important;
}
.entry-panel .entry-action--primary small { color:#123448 !important; }


/* ===== 2026-09-16 bracket ports / embedded rules / footer contact ===== */
/* Tournament connector palette is deliberately blue-only. */
.double-elim-bracket-v3 .bracket-path,
.double-elim-bracket-v3 .bracket-path--drop,
.double-elim-bracket-v3 .bracket-path--final,
.double-elim-bracket-v3 .bracket-path--reset {
  stroke: #5aaee0 !important;
  stroke-width: 2.5;
}
.double-elim-bracket-v3 .bracket-path.is-progress-active,
.double-elim-bracket-v3 .bracket-path--final.is-progress-active,
.double-elim-bracket-v3 .bracket-path--reset.is-progress-active {
  stroke: #82ddff !important;
  stroke-width: 5 !important;
  filter: drop-shadow(0 0 4px rgba(130,221,255,.98))
          drop-shadow(0 0 12px rgba(90,174,224,.86))
          drop-shadow(0 0 22px rgba(73,159,219,.54));
}

/* Integrated tournament rules page. */
.rules-page { background:#05070d; color:#f4f7ff; }
.rules-hero { background:#05070d; }
.rules-section { background:#05070d; padding-top:24px; }
.rules-shell {
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
  border:1px solid rgba(137,205,241,.18);
  background:#080d16;
  box-shadow:0 24px 70px rgba(0,0,0,.24);
}
.rules-toolbar {
  min-height:66px;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid rgba(137,205,241,.16);
  background:linear-gradient(90deg,rgba(15,39,72,.96),rgba(8,18,31,.96));
}
.rules-toolbar > div { display:grid; gap:3px; }
.rules-toolbar strong { font-size:13px; letter-spacing:.08em; }
.rules-toolbar small { color:#7fa9c4; font-size:9px; letter-spacing:.10em; }
.rules-toolbar a {
  flex:0 0 auto;
  padding:9px 13px;
  border:1px solid rgba(142,216,255,.36);
  color:#aee8ff;
  font-size:10px;
  font-weight:900;
}
.rules-toolbar a:hover { background:#83c9ec; color:#07111d; }
.rules-pdf-object {
  display:block;
  width:100%;
  height:min(78vh, 1040px);
  min-height:720px;
  border:0;
  background:#111722;
}
.rules-pdf-fallback {
  min-height:520px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:14px;
  padding:30px;
  text-align:center;
  color:#b9c9d7;
}
.rules-pdf-fallback a { padding:12px 16px; background:#83c9ec; color:#07111d; font-weight:900; }
.rules-mobile-note { display:none; margin:0; padding:12px 16px 16px; color:#879bad; font-size:10px; }

/* Contact is intentionally repeated on every public page so users never have to hunt for it. */
.footer-contact {
  margin-top:26px;
  padding:20px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border:1px solid rgba(142,216,255,.22);
  background:linear-gradient(90deg,rgba(12,25,42,.82),rgba(5,10,18,.88));
}
.footer-contact > div { display:grid; gap:5px; }
.footer-contact small { color:#72bce6; font-size:9px; font-weight:900; letter-spacing:.18em; }
.footer-contact strong { color:#f4f8ff; font-size:14px; }
.footer-contact a {
  flex:0 0 auto;
  color:#9ee4ff;
  font-size:14px;
  font-weight:900;
  border-bottom:1px solid rgba(158,228,255,.48);
}
.footer-contact a:hover { color:#fff; }

@media (max-width:760px) {
  .rules-shell { width:min(100% - 20px, 1120px); }
  .rules-toolbar { align-items:flex-start; flex-direction:column; }
  .rules-toolbar a { width:100%; text-align:center; }
  .rules-pdf-object { min-height:68vh; height:68vh; }
  .rules-mobile-note { display:block; }
  .footer-contact { align-items:flex-start; flex-direction:column; padding:17px 16px; }
  .footer-contact strong { font-size:12px; }
  .footer-contact a { font-size:13px; }
}


/* Rules are rendered as page images inside the site so the visitor never drops into a raw PDF viewer. */
.rules-pages {
  padding:22px;
  display:grid;
  gap:20px;
  background:#0a101a;
}
.rules-page-sheet {
  width:min(880px, 100%);
  margin:0 auto;
  background:#fff;
  box-shadow:0 10px 34px rgba(0,0,0,.32);
}
.rules-page-sheet img {
  display:block;
  width:100%;
  height:auto;
}
.rules-mobile-note { display:block; }
@media (max-width:760px) {
  .rules-pages { padding:8px; gap:10px; }
  .rules-page-sheet { width:100%; }
}

/* ===== 2026-09-16 integrated tournament rules page ===== */
.rules-web-page {
  background: #05070d !important;
  color: #edf7ff;
}
.rules-web-hero {
  position: relative;
  min-height: 410px;
  padding: 82px 24px 64px;
  background:
    radial-gradient(circle at 18% 15%, rgba(79,164,221,.11), transparent 35%),
    radial-gradient(circle at 82% 78%, rgba(92,115,218,.08), transparent 38%),
    #05070d !important;
  overflow: hidden;
}
.rules-web-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(980px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(132,207,247,.62), transparent);
}
.rules-web-hero .content-narrow { width: min(820px, 100%); }
.rules-web-hero .page-title-line h1 { color:#f7fbff; }
.rules-web-hero > .content-narrow > p {
  max-width: 630px;
  margin: 18px auto 0;
  color: #98aabd;
  font-size: 13px;
  line-height: 1.9;
}
.rules-hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rules-primary-action,
.rules-secondary-action {
  min-width: 188px;
  min-height: 48px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(132,207,247,.36);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  transition: .22s ease;
}
.rules-primary-action { background:#83c9ec; color:#07111d; border-color:#83c9ec; }
.rules-secondary-action { background:rgba(8,15,25,.72); color:#e9f7ff; }
.rules-primary-action:hover,
.rules-secondary-action:hover { transform: translateY(-2px); box-shadow:0 0 22px rgba(109,197,244,.18); }

.rules-web-section {
  padding: 62px 24px 100px;
  background: #05070d;
}
.rules-web-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.rules-toc {
  position: sticky;
  top: 72px;
  padding: 18px;
  border: 1px solid rgba(131,201,236,.15);
  background: rgba(7,12,21,.92);
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
}
.rules-toc-head {
  padding: 5px 4px 15px;
  border-bottom: 1px solid rgba(131,201,236,.14);
  display: grid;
  gap: 3px;
}
.rules-toc-head small { color:#6eaed0; font-size:8px; font-weight:900; letter-spacing:.18em; }
.rules-toc-head strong { color:#f7fbff; font-size:16px; letter-spacing:.08em; }
.rules-toc nav { display:grid; margin-top:10px; }
.rules-toc nav a {
  min-height: 38px;
  padding: 8px 4px;
  display:grid;
  grid-template-columns: 28px 1fr;
  align-items:center;
  gap: 6px;
  border-bottom: 1px solid rgba(132,198,235,.08);
  color:#9bacbe;
  font-size:9px;
  line-height:1.4;
  transition: color .18s ease, padding-left .18s ease, background .18s ease;
}
.rules-toc nav a span { color:#6bc7f5; font-weight:950; }
.rules-toc nav a:hover { color:#fff; padding-left:8px; background:rgba(131,201,236,.05); }
.rules-pdf-mini {
  margin-top:14px;
  padding:10px 11px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#10284f;
  border:1px solid rgba(131,201,236,.24);
  color:#eaf8ff;
  font-size:9px;
  font-weight:900;
}

.rules-document { min-width:0; }
.rules-document-intro {
  padding: 34px 38px;
  border: 1px solid rgba(132,201,236,.17);
  background:
    linear-gradient(135deg, rgba(16,40,79,.62), rgba(7,12,21,.88) 58%),
    #08101b;
  box-shadow: 0 22px 65px rgba(0,0,0,.20);
}
.rules-kicker { color:#75cfff; font-size:9px; font-weight:950; letter-spacing:.17em; }
.rules-document-intro h2 { margin:6px 0 10px; font-size:clamp(26px,3vw,42px); line-height:1; letter-spacing:.02em; }
.rules-document-intro p { max-width:690px; margin:0; color:#aebdcb; font-size:12px; line-height:1.9; }

.rule-chapter {
  scroll-margin-top: 72px;
  margin-top: 22px;
  border: 1px solid rgba(132,201,236,.13);
  background: rgba(8,13,22,.92);
  box-shadow: 0 18px 54px rgba(0,0,0,.16);
}
.rule-chapter > header {
  min-height: 92px;
  padding: 22px 28px;
  display:flex;
  align-items:center;
  gap:18px;
  background: linear-gradient(90deg, rgba(16,40,79,.92), rgba(9,21,38,.72));
  border-bottom:1px solid rgba(132,201,236,.20);
}
.rule-chapter > header > span {
  width:48px;
  color:#78d1ff;
  font-size:22px;
  font-weight:950;
  line-height:1;
  letter-spacing:-.03em;
}
.rule-chapter > header small { color:#739eb8; font-size:8px; font-weight:900; letter-spacing:.20em; }
.rule-chapter > header h2 { margin:3px 0 0; color:#f7fbff; font-size:22px; line-height:1.2; }
.rule-block { padding: 27px 30px; border-top:1px solid rgba(132,201,236,.08); }
.rule-chapter > header + .rule-block { border-top:0; }
.rule-block h3 { margin:0 0 16px; color:#eaf7ff; font-size:15px; line-height:1.45; }
.rule-block h3::before { content:""; display:inline-block; width:18px; height:2px; margin:0 9px 4px 0; background:#73cfff; box-shadow:0 0 8px rgba(115,207,255,.48); }
.rule-block h4 { margin:20px 0 10px; color:#8fd8ff; font-size:11px; letter-spacing:.04em; }
.rule-block p,
.rule-block li,
.rule-block dd { color:#b9c6d2; font-size:12px; line-height:2; }
.rule-block p { margin:0 0 12px; }
.rule-block p:last-child { margin-bottom:0; }
.rule-block ul,
.rule-block ol { margin: 10px 0 0; padding-left: 1.6em; }
.rule-block li + li { margin-top:5px; }
.rule-split { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.rule-split > div { padding:18px 20px; border:1px solid rgba(132,201,236,.14); background:#0a1421; }
.rule-split h4 { margin:0 0 8px; color:#dff5ff; font-size:12px; }
.rule-definitions { margin:0; display:grid; gap:10px; }
.rule-definitions > div { padding:15px 18px; border-left:2px solid #72cfff; background:rgba(15,31,51,.54); }
.rule-definitions dt { margin-bottom:5px; color:#8edcff; font-size:10px; font-weight:950; }
.rule-definitions dd { margin:0; }
.rule-draft-note { color:#718194 !important; font-style:italic; }
.rule-empty-list { list-style:none; padding-left:0 !important; display:flex; gap:13px; flex-wrap:wrap; }
.rule-empty-list li { color:#53677a; }
.rule-sequence { counter-reset:ruleStep; list-style:none; padding-left:0 !important; }
.rule-sequence li { position:relative; padding:10px 12px 10px 42px; border-bottom:1px solid rgba(132,201,236,.08); }
.rule-sequence li::before { counter-increment:ruleStep; content:counter(ruleStep, decimal-leading-zero); position:absolute; left:8px; top:10px; color:#70cfff; font-size:9px; font-weight:950; }
.rule-penalties { list-style:none; padding-left:0 !important; display:grid; gap:8px; }
.rule-penalties li { padding:13px 15px; display:grid; grid-template-columns:64px 1fr; gap:10px; border:1px solid rgba(132,201,236,.12); background:#09131f; }
.rule-penalties strong { color:#72cfff; font-size:10px; }
.rules-end-card {
  margin-top:22px;
  padding:24px 28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  border:1px solid rgba(132,201,236,.20);
  background:linear-gradient(90deg,#0e2544,#09131f);
}
.rules-end-card small { display:block; color:#72bfe8; font-size:8px; font-weight:950; letter-spacing:.16em; }
.rules-end-card strong { display:block; margin-top:3px; color:#fff; font-size:16px; }
.rules-end-card p { margin:5px 0 0; color:#8fa1b2; font-size:10px; }
.rules-end-card > a { min-width:156px; padding:11px 14px; display:flex; justify-content:space-between; gap:15px; border:1px solid rgba(132,201,236,.30); color:#eaf8ff; font-size:10px; font-weight:950; }
.rules-end-card > a:hover { background:#83c9ec; color:#07111d; }

@media (max-width: 900px) {
  .rules-web-layout { grid-template-columns: 1fr; gap:20px; }
  .rules-toc { position:relative; top:auto; }
  .rules-toc nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
  .rules-toc nav a { min-height:42px; }
}
@media (max-width: 620px) {
  .rules-web-hero { min-height:350px; padding:66px 16px 46px; }
  .rules-web-section { padding:30px 12px 68px; }
  .rules-hero-actions { display:grid; grid-template-columns:1fr; }
  .rules-primary-action, .rules-secondary-action { width:100%; }
  .rules-toc { padding:14px; }
  .rules-toc nav { grid-template-columns:1fr; }
  .rules-document-intro { padding:24px 20px; }
  .rule-chapter > header { min-height:78px; padding:18px 18px; gap:12px; }
  .rule-chapter > header > span { width:36px; font-size:18px; }
  .rule-chapter > header h2 { font-size:18px; }
  .rule-block { padding:22px 18px; }
  .rule-block h3 { font-size:14px; }
  .rule-block p, .rule-block li, .rule-block dd { font-size:11px; line-height:1.9; }
  .rule-split { grid-template-columns:1fr; }
  .rule-penalties li { grid-template-columns:1fr; gap:3px; }
  .rules-end-card { align-items:stretch; flex-direction:column; }
  .rules-end-card > a { width:100%; }
}
/* =========================================
   一般予選DAY2 / 本選DAY1〜DAY5 見出し調整
========================================= */

.caster-day-heading--day2 {
  width: min(580px, 82%);
  margin: 36px auto 32px;

  display: grid;
  grid-template-columns: minmax(60px, 1fr) auto minmax(60px, 1fr);
  align-items: center;

  column-gap: 22px;
}

.caster-day-heading--day2 p {
  margin: 0;

  color: #dbe9ff;

  font-size: 13px;
  font-weight: 900;
  line-height: 1;

  letter-spacing: 0.02em;
  white-space: nowrap;

  text-align: center;
}

.caster-day-heading--day2 .caster-day-line {
  display: block;

  width: 100%;
  height: 1px;
}

/* 左側の線 */
.caster-day-heading--day2 .caster-day-line:first-child {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(150, 195, 230, 0.42) 35%,
    rgba(150, 195, 230, 0.7) 100%
  );
}

/* 右側の線 */
.caster-day-heading--day2 .caster-day-line:last-child {
  background: linear-gradient(
    90deg,
    rgba(150, 195, 230, 0.7) 0%,
    rgba(150, 195, 230, 0.42) 65%,
    transparent 100%
  );
}

@media (max-width: 560px) {
  .caster-day-heading--day2 {
    width: 94%;

    grid-template-columns:
      minmax(25px, 1fr)
      auto
      minmax(25px, 1fr);

    column-gap: 10px;
  }

  .caster-day-heading--day2 p {
    font-size: 10px;
  }
}
.day6-label {
  font-size: 14px;
}
/* 大会規約を見るボタンを中央揃え */
.entry-panel .entry-actions .entry-action:first-child {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 180px;
  min-width: 180px;

  margin-left: auto;
  margin-right: auto;

  justify-self: center;
  text-align: center;
}

/* =========================================================
   NEO CUP FINAL RESPONSIVE FIX
   Tablet / Smartphone
   既存CSSを削除せず、styles.css の一番最後に追加
========================================================= */


/* ---------- 共通のはみ出し対策 ---------- */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

.site-shell,
.page-main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.content-narrow,
.content-wide {
  max-width: 100%;
}

img,
video {
  max-width: 100%;
}

a,
button {
  touch-action: manipulation;
}


/* =========================================================
   TABLET
   iPad / 8〜11インチ前後
========================================================= */

@media (min-width: 761px) and (max-width: 1100px) {

  /* ---------- HEADER ---------- */

  .site-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-menu-grid a {
    min-height: 68px;
    padding: 10px 8px;
  }


  /* ---------- HERO ---------- */

  .hero {
    min-height: max(620px, calc(100svh - 46px));
  }

  .hero-content {
    width: min(900px, 92%);
    padding: 44px 0 58px;
  }

  .hero-logo-frame {
    width: min(560px, 68vw);
    min-height: 280px;
  }

  .hero-logo {
    max-height: 360px;
    transform: translateX(0) !important;
  }

  .hero h1 {
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1.05;
  }

  .hero-copy {
    font-size: 13px;
  }


  /* ---------- SECTION ---------- */

  .home-section,
  .page-section {
    padding: 64px 28px 72px;
  }

  .content-narrow {
    width: min(820px, 100%);
  }

  .content-wide {
    width: min(960px, 100%);
  }

  .section-heading {
    gap: 18px;
  }

  .section-heading h2,
  .overview-heading h2 {
    font-size: clamp(30px, 4.2vw, 40px);
  }


  /* ---------- OVERVIEW ---------- */

  .compact-info > div {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .compact-info dt,
  .compact-info dd {
    min-width: 0;
  }


  /* ---------- TEAMS ---------- */

  .team-mini-grid--four,
  .teams-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-mini-grid--four .team-mini b {
    width: 120px;
    height: 120px;
  }


  /* ---------- CASTER ---------- */

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .caster-day-heading--day2 {
    width: min(620px, 88%);
  }


  /* ---------- ENTRY ---------- */

  .entry-panel {
    width: min(760px, 100%);
  }

  .entry-panel .entry-actions {
    justify-items: center;
  }


  /* ---------- STREAM ---------- */

  .broadcast-card {
    grid-template-columns: 1fr;
  }

  .broadcast-preview {
    min-height: 200px;
  }


  /* ---------- TOURNAMENT ---------- */

  .tournament-scroll-hint {
    display: block;
  }

  .bracket-preview.tournament-scroll,
  .tournament-scroll--page {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  /*
    タブレットでは無理に縮小しない。
    チーム名が読めるサイズを維持して横スクロール。
  */
  .tournament-preview-section .double-elim-bracket-v3,
  .tournament-scroll--page .double-elim-bracket-v3 {
    transform: none !important;
    transform-origin: top left !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
  }


  /* ---------- PAGE TITLE ---------- */

  .page-title-line {
    width: min(720px, 94%);
    gap: 16px;
  }


  /* ---------- FOOTER ---------- */

  .footer-contact {
    width: 100%;
  }
}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 760px) {

  /* ---------- HEADER ---------- */

  .site-header {
    height: 46px;
  }

  .header-title {
    inset-inline: 52px;
    font-size: clamp(8px, 2.5vw, 10px);
    letter-spacing: .05em;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .site-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-menu-grid a {
    min-height: 64px;
    padding: 10px 7px;
  }


  /* ---------- HERO ---------- */

  .hero {
    min-height: max(560px, calc(100svh - 46px));
  }

  .hero-content {
    width: calc(100% - 24px);
    padding: 34px 0 46px;
  }

  .hero-logo-frame {
    width: min(420px, 86vw);
    min-height: 200px;
  }

  .hero-logo {
    max-height: 280px;
    transform: none !important;
  }

  .hero h1 {
    max-width: 94vw;

    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.06;

    text-align: center;
  }

  .hero h1 span {
    letter-spacing: .08em;
  }

  .hero-copy {
    max-width: 92vw;

    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.7;

    text-align: center;
  }


  /* ---------- SECTION ---------- */

  .home-section,
  .page-section {
    padding: 48px 16px 56px;
  }

  .content-narrow,
  .content-wide {
    width: 100%;
  }


  /* ---------- SECTION HEADING ---------- */

  .section-heading {
    grid-template-columns:
      minmax(20px, 1fr)
      minmax(0, auto)
      minmax(20px, 1fr);

    gap: 9px;
  }

  .section-heading h2,
  .overview-heading h2 {
    max-width: 78vw;

    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.14;

    white-space: normal;
    text-align: center;
  }

  .section-heading h2 small,
  .overview-heading h2 small {
    display: inline-block;
    line-height: 1.2;
  }

  .section-copy {
    width: 100%;

    font-size: 12px;
    line-height: 1.9;
  }


  /* ---------- OVERVIEW ---------- */

  .overview-logo-wrap {
    width: min(330px, 76vw) !important;
  }

  /*
    スマホでは概要表を上下にする。
    横2列のままだと主催名がかなり窮屈になる。
  */
  .compact-info > div {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .compact-info dt,
  .compact-info dd {
    width: 100%;
    min-height: 0;
  }

  .compact-info dt {
    justify-content: flex-start !important;

    padding: 9px 12px 7px;

    text-align: left;
  }

  .compact-info dd {
    padding: 8px 12px 12px;

    border-top: 0;

    font-size: 11px;
    line-height: 1.55;
  }

  .compact-info .organizer-value > span {
    font-size: 10px;
    line-height: 1.45;
  }

  .compact-info .organizer-value > small {
    margin-top: 5px;

    font-size: 7px;
    line-height: 1.4;
  }


  /* ---------- SCHEDULE ---------- */

  .flow-box {
    width: 100%;

    padding: 14px 13px;

    text-align: center;
  }

  .flow-box strong,
  .flow-box span {
    font-size: 11px;
    line-height: 1.7;
  }


  /* ---------- INVITED / QUALIFIER TEAM ---------- */

  .team-mini-grid,
  .team-mini-grid--four,
  .teams-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .team-mini-grid--four .team-mini {
    min-height: 154px;
  }

  .team-mini-grid--four .team-mini b {
    width: 96px;
    height: 96px;
  }

  .team-mini-grid--four .team-mini b span {
    font-size: 18px;
  }

  .team-mini-grid--four .team-mini > span {
    font-size: 11px;

    overflow-wrap: anywhere;
    text-align: center;
  }


  /* ---------- ENTRY ---------- */

  .entry-panel {
    width: 100%;

    padding: 22px 14px 20px;
  }

  .entry-lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .entry-panel .entry-actions {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr !important;

    justify-items: center;

    gap: 12px;
  }

  /* 大会規約を見る */
  .entry-panel .entry-actions .entry-action:first-child {
    width: min(220px, 100%) !important;
    min-width: 0 !important;

    margin-inline: auto;

    justify-self: center;
  }

  /* 応募フォーム */
  .entry-panel .entry-action--primary {
    width: min(420px, 100%) !important;
    min-width: 0 !important;

    margin-inline: auto;

    min-height: 74px;
  }


  /* ---------- STREAM ---------- */

  .broadcast-stack {
    width: 100%;
  }

  .broadcast-card {
    grid-template-columns: 1fr;
  }

  .broadcast-preview {
    min-height: 160px;
  }

  .broadcast-body {
    padding: 20px 18px;
  }

  .broadcast-body p {
    line-height: 1.8;
  }

  .broadcast-body a {
    width: 100%;

    text-align: center;
  }


  /* ---------- CASTER ---------- */

  .people-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portrait-placeholder {
    min-height: 210px;
  }

  .person-mini h3 {
    margin-top: 12px;
  }

  .caster-day-heading--day2 {
    width: 100%;

    grid-template-columns:
      minmax(24px, 1fr)
      auto
      minmax(24px, 1fr);

    column-gap: 10px;
  }

  .caster-day-heading--day2 p {
    font-size: 10px;
    white-space: nowrap;
  }

  .day6-label {
    font-size: 12px !important;
  }


  /* ---------- TOURNAMENT ---------- */

  .tournament-scroll-hint {
    display: block;

    margin-bottom: 10px;

    font-size: 9px;
  }

  .bracket-preview.tournament-scroll,
  .tournament-scroll,
  .tournament-scroll--page {
    width: 100%;
    max-width: 100%;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding-bottom: 20px;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  /*
    ここ重要。
    スマホではトーナメント自体を縮小しない。
    縮小するとチーム名とスコアが読めなくなるため、
    横スワイプで見る。
  */
  .tournament-preview-section .double-elim-bracket-v3,
  .tournament-scroll--page .double-elim-bracket-v3,
  .double-elim-bracket-v3 {
    width: 1820px;

    transform: none !important;
    transform-origin: top left !important;

    margin-left: 0 !important;
    margin-bottom: 0 !important;
  }


  /* ---------- SUB PAGE ---------- */

  .page-hero {
    min-height: 250px;

    padding: 64px 16px 42px;
  }

  .page-title-line {
    width: 100%;

    grid-template-columns:
      minmax(18px, 1fr)
      auto
      minmax(18px, 1fr);

    gap: 9px;
  }

  .page-title-line h1 {
    max-width: 76vw;

    font-size: clamp(24px, 8vw, 34px);

    white-space: normal;
    text-align: center;
  }

  .page-team-grid-wrap {
    width: calc(100% - 24px);
  }


  /* ---------- TEAM DETAIL ---------- */

  .team-detail {
    grid-template-columns: 1fr !important;

    gap: 26px;

    text-align: center;
  }

  .team-logo-placeholder {
    width: min(240px, 80vw) !important;
    min-height: 240px;

    margin-inline: auto;
  }

  .roster {
    text-align: left;
  }


  /* ---------- RULES ---------- */

  .rules-shell {
    width: calc(100% - 18px);
  }

  .rules-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rules-toolbar a {
    width: 100%;

    text-align: center;
  }


  /* ---------- FOOTER ---------- */

  .site-footer {
    padding: 42px 16px 22px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-nav a {
    min-height: 86px;

    padding: 15px 12px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;

    padding: 17px 16px;
  }

  .footer-contact strong {
    font-size: 12px;
  }

  .footer-contact a {
    font-size: 13px;
  }
}


/* =========================================================
   SMALL PHONE
   iPhone SE系など
========================================================= */

@media (max-width: 430px) {

  .home-section,
  .page-section {
    padding-left: 13px;
    padding-right: 13px;
  }

  .hero-logo-frame {
    width: 88vw;
    min-height: 185px;
  }

  .hero h1 {
    font-size: clamp(26px, 8.5vw, 32px);
  }

  .section-heading h2,
  .overview-heading h2 {
    max-width: 80vw;

    font-size: 23px;
  }

  .team-mini-grid--four .team-mini b {
    width: 86px;
    height: 86px;
  }

  .team-mini-grid--four .team-mini {
    min-height: 142px;
  }

  .caster-day-heading--day2 {
    column-gap: 7px;
  }

  .caster-day-heading--day2 p {
    font-size: 9px;
  }

  .footer-nav a strong {
    font-size: 12px;
  }

  .footer-nav a span {
    font-size: 8px;
  }
}


/* =========================================================
   横向きスマホ
========================================================= */

@media (max-height: 520px) and (orientation: landscape) {

  .hero {
    min-height: 430px;
  }

  .hero-content {
    padding: 24px 0 34px;
  }

  .hero-logo-frame {
    width: min(400px, 52vw);
    min-height: 145px;
  }

  .hero-logo {
    max-height: 190px;
  }

  .hero h1 {
    font-size: clamp(24px, 5vw, 32px);
  }

  .hero-copy {
    font-size: 10px;
  }
}
/* スマホ・タブレットだけスクロールバーを消す */
@media (max-width: 1100px) {

  .tournament-scroll,
  .bracket-preview.tournament-scroll,
  .tournament-scroll--page {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .tournament-scroll::-webkit-scrollbar,
  .bracket-preview.tournament-scroll::-webkit-scrollbar,
  .tournament-scroll--page::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}
/* =========================================
   トーナメントの余計な白いスクロールバーを削除
========================================= */

@media (max-width: 1100px) {

  /* 外側では横スクロールさせない */
  .tournament-preview-section .content-wide {
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding-bottom: 0 !important;
  }

  /* 横スクロールはトーナメント本体だけに任せる */
  .tournament-scroll,
  .bracket-preview.tournament-scroll,
  .tournament-scroll--page {
    overflow-x: auto !important;
    overflow-y: hidden !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;

    -webkit-overflow-scrolling: touch;
  }

  /* Chrome / Safari / Edge */
  .tournament-scroll::-webkit-scrollbar,
  .bracket-preview.tournament-scroll::-webkit-scrollbar,
  .tournament-scroll--page::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}
/* =========================================
   スマホの概要表を中央揃え
========================================= */

@media (max-width: 760px) {

  .compact-info dt,
  .compact-info dd {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .compact-info dt {
    flex-direction: column !important;
  }

  .compact-info dd {
    flex-wrap: wrap;
  }

  .compact-info .organizer-value {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .compact-info .organizer-value > span,
  .compact-info .organizer-value > small {
    width: 100%;
    text-align: center !important;
  }

  .compact-info .inline-en {
    margin-left: 5px;
    text-align: center;
  }
}
/* =========================================
   スマホ：招待チーム / 一般予選BEST4を中央寄せ
========================================= */

@media (max-width: 760px) {

  .team-mini-grid--four {
    grid-template-columns:
      repeat(2, minmax(0, 132px)) !important;

    justify-content: center;

    column-gap: clamp(18px, 7vw, 36px) !important;
    row-gap: 26px !important;

    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .team-mini-grid--four .team-mini {
    width: 132px;
    min-height: 150px;

    justify-self: center;
  }

  .team-mini-grid--four .team-mini b {
    margin-left: auto;
    margin-right: auto;
  }

  .team-mini-grid--four .team-mini > span {
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   スマホ用：各ボックスを少しコンパクトに
========================================================= */

@media (max-width: 760px) {

  /* =====================================
     1. 概要
     大会名称 / 日程 / 主催 / 開催
  ===================================== */

  .compact-info {
    width: min(92%, 520px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 8px;
  }

  .compact-info dt {
    padding: 7px 10px 5px !important;
  }

  .compact-info dd {
    padding: 7px 10px 10px !important;
  }


  /* =====================================
     2. 大会スケジュール
  ===================================== */

  .schedule-flow {
    width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .schedule-flow .flow-box {
    width: 100% !important;
    min-height: 0 !important;

    padding: 11px 12px !important;

    margin-left: auto;
    margin-right: auto;
  }

  .schedule-flow .flow-box strong,
  .schedule-flow .flow-box span {
    font-size: 10px !important;
    line-height: 1.6 !important;
  }

  .schedule-flow .flow-arrow {
    border-left-width: 17px !important;
    border-right-width: 17px !important;
    border-top-width: 11px !important;
  }


  /* =====================================
     3. YouTube / Twitch
  ===================================== */

  .broadcast-stack {
    width: min(92%, 520px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 14px !important;
  }

  .broadcast-card {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .broadcast-preview {
    min-height: 135px !important;
  }

  .broadcast-body {
    padding: 16px 14px !important;
  }

  .broadcast-body p {
    margin-bottom: 14px !important;
    font-size: 10px !important;
  }

  .broadcast-body a {
    padding: 9px 12px !important;
    font-size: 9px !important;
  }

  .play-icon {
    width: 42px !important;
    height: 42px !important;
  }


  /* =====================================
     4. キャスター
  ===================================== */

  .people-grid {
    width: min(90%, 500px) !important;
    margin-left: auto !important;
    margin-right: auto !important;

    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .portrait-placeholder {
    min-height: 165px !important;
  }

  .person-mini h3 {
    margin-top: 10px !important;
    font-size: 11px !important;
  }


  /* =====================================
     5. スポンサー
  ===================================== */

  .sponsor-grid,
  .sponsor-grid--single {
    width: min(92%, 520px) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    column-gap: 12px !important;
    row-gap: 16px !important;
  }

  .sponsor-mini span {
    min-height: 105px !important;
  }

  .sponsor-mini small {
    margin-top: 6px !important;
    font-size: 9px !important;
  }
}
@media (max-width: 760px) {

  .schedule-flow {
    width: min(92%, 520px) !important;
    margin-inline: auto !important;
  }

  .schedule-flow .flow-box {
    width: 100% !important;
    max-width: 100% !important;
  }
}