/* Layout concept: a dark battle stage. Full-bleed spotlight hero, then the page reads
   like an event program: each section is a "round" with a cue label, gold spotlight
   accent against cool haze. Dark-only by design (stage photos). */
:root {
  --stage: #0a0c10;        /* page ground, blue-black like the venue */
  --stage-2: #12161d;      /* raised surface */
  --line: #262c36;         /* hairlines */
  --haze: #9fb0c4;         /* secondary text, the blue smoke */
  --ink: #eef1f5;          /* primary text */
  --spot: #f0b764;         /* accent, the warm spotlight */
  --sock: #d93a3a;         /* rare second accent, the red socks */

  --f-display: "Dela Gothic One", "Hiragino Kaku Gothic StdN", "Yu Gothic", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--stage) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  position: relative; z-index: 2;
  font-family: var(--f-display); font-size: 22px; letter-spacing: .04em;
  text-decoration: none; line-height: 1;
}
.logo small {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em;
  color: var(--spot); margin-left: 8px; vertical-align: middle;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2.2vw, 32px); }
.nav a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--haze); padding-block: 6px; position: relative;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--spot); transition: right .25s;
}
.nav a:hover, .nav a.is-current { color: var(--ink); }
.nav a:hover::after, .nav a.is-current::after { right: 0; }

.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; position: relative;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; background: currentColor;
  transform: translateX(-50%); transition: transform .25s, opacity .25s;
}
.menu-btn span { top: 50%; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; transform: none; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(560px, 92svh, 900px);
  display: grid; align-items: end; overflow: hidden; isolation: isolate;
}
.hero-stage {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 28% 22%, color-mix(in srgb, var(--spot) 38%, transparent), transparent 70%),
    radial-gradient(50% 60% at 85% 35%, color-mix(in srgb, var(--haze) 22%, transparent), transparent 70%),
    linear-gradient(180deg, #0d0f14 0%, var(--stage) 100%);
}
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--stage) 55%, transparent) 0%, transparent 22%),
    linear-gradient(0deg, var(--stage) 0%, color-mix(in srgb, var(--stage) 60%, transparent) 30%, transparent 62%);
}
.hero-inner { padding-block: 0 clamp(36px, 7vw, 80px); width: 100%; }
.hero-eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--spot);
  display: flex; align-items: center; gap: 12px; margin: 0 0 8px;
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--spot); }
.hero h1 {
  font-family: var(--f-display); font-weight: 400; margin: 0;
  font-size: clamp(88px, 22vw, 300px); line-height: .82; letter-spacing: -.01em;
  text-shadow: 0 6px 40px rgba(0,0,0,.45);
}
.hero-sub {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px 32px; margin-top: 20px;
}
.hero-sub p { margin: 0; font-size: clamp(15px, 1.6vw, 18px); color: var(--ink); max-width: 34em; }
.hero-sub .ja-name { font-weight: 700; letter-spacing: .12em; }
.scroll-cue {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: var(--haze);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); border-top: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 4px;
  align-items: end; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head > :not(.section-freeze) { grid-column: 1; }
.section-head .section-freeze {
  grid-column: 2; grid-row: 1 / span 3; align-self: end;
  width: auto; height: clamp(120px, 17vw, 230px); max-width: 40vw;
}
.cue {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .24em; color: var(--spot);
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--f-display); font-weight: 400; margin: 0;
  font-size: clamp(40px, 7vw, 84px); line-height: 1; letter-spacing: .01em;
  text-wrap: balance;
}
.section-head .ja { color: var(--haze); font-size: 14px; letter-spacing: .2em; }

.tbd {
  display: inline-block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--stage); background: var(--haze); padding: 1px 6px; border-radius: 2px;
  vertical-align: middle; line-height: 1.6; margin-left: 6px;
}

/* ---------- Profile ---------- */
.profile-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.profile-body { display: grid; gap: 28px; }
.profile-body > * { min-width: 0; }
.profile-name { margin: 0 0 4px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: .1em; }
.profile-name span { font-family: var(--f-mono); font-size: 13px; color: var(--haze); letter-spacing: .2em; margin-left: 12px; font-weight: 400; }
.profile-lead { color: var(--haze); max-width: 36em; }
.spec { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--haze);
  text-transform: uppercase; padding-right: 28px; padding-top: 15px;
}
.moves { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.moves li {
  list-style: none; border: 1px solid var(--line); padding: 2px 12px; border-radius: 99px; font-size: 14px;
}
.moves { padding: 0; margin: 0; }

/* ---------- Freeze silhouette (made from a permitted photo) ---------- */
.freeze-figure { margin: 0; display: grid; gap: 20px; justify-items: center; }
.freeze-line {
  width: min(100%, 360px); height: auto; overflow: visible;
  fill: none; stroke: var(--spot); stroke-width: 2.5px; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--spot) 45%, transparent));
}
.freeze-line path { vector-effect: non-scaling-stroke; }
.freeze-figure figcaption { display: grid; gap: 2px; text-align: center; font-size: 14px; }
/* Profile figure: size by height so the whole figure fits on screen when jumping to #profile */
@media (min-width: 861px) {
  .profile-grid > .freeze-figure { align-self: start; }
  .freeze-figure .freeze-line { width: auto; max-width: 100%; height: clamp(240px, calc(100svh - 500px), 520px); }
}
.freeze-mark {
  display: inline-block; width: 13px; height: 19px; margin-right: 10px; vertical-align: -4px;
  background: currentColor;
  -webkit-mask: url("../assets/img/freeze.png") center / contain no-repeat;
  mask: url("../assets/img/freeze.png") center / contain no-repeat;
}
/* the "freeze" moment: the outline draws itself, then locks with a flash */
.freeze-line path { transition: stroke-dashoffset 2.4s cubic-bezier(.6, 0, .2, 1); }
.js .freeze-figure.reveal.pre { opacity: 1; transform: none; }
.js .reveal.pre .freeze-line path { stroke-dashoffset: var(--len); }
.js .section-head.reveal.pre { opacity: 1; transform: none; }
.is-locked .freeze-line { animation: lock .6s ease-out; }
@keyframes lock {
  0% { filter: drop-shadow(0 0 28px var(--spot)) brightness(1.5); }
  100% { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--spot) 45%, transparent)) brightness(1); }
}

/* ---------- About ---------- */
.about-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.about-lead {
  margin: 0; font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.6; letter-spacing: .04em;
  text-wrap: balance;
}
.about-text p { margin: 0 0 1.2em; color: var(--haze); max-width: 38em; }
.about-text p:last-child { margin-bottom: 0; }
.section-intro { color: var(--haze); max-width: 46em; margin: 0 0 clamp(32px, 5vw, 56px); }
.sub-title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px);
  margin: clamp(40px, 6vw, 64px) 0 16px; display: flex; align-items: baseline; gap: 12px;
}
.sub-title small { font-family: var(--f-body); font-size: 13px; color: var(--haze); letter-spacing: .14em; }
.section-intro + .sub-title { margin-top: 0; }

/* ---------- Achievements ---------- */
.highlights {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.highlights li { display: grid; gap: 8px; align-content: start; padding: 28px 24px 28px 0; }
.highlights li + li { padding-left: 24px; border-left: 1px solid var(--line); }
@media (min-width: 861px) and (max-width: 1200px) {
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .highlights li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.hl-num { font-family: var(--f-display); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--spot); }
.hl-num small { font-family: var(--f-body); font-weight: 700; font-size: 15px; color: var(--ink); margin-left: 8px; letter-spacing: .08em; }
.hl-label { font-size: 15px; line-height: 1.6; }
@media (min-width: 1201px) { .hl-num { font-size: 52px; white-space: nowrap; } }   /* four columns: keeps “Red Bull” on one line */
.podium-block .sub-title { margin-top: clamp(48px, 7vw, 80px); }
.podium {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px); align-items: end; height: clamp(240px, 30vw, 320px);
  border-bottom: 1px solid var(--line);
}
.podium-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; align-items: end; text-align: center; gap: 8px; }
.podium-res { font-weight: 700; font-size: clamp(13px, 1.6vw, 18px); letter-spacing: .06em; }
.podium-bar { align-self: end; width: 100%; background: color-mix(in srgb, var(--haze) 28%, var(--stage-2)); }
.p1 .podium-bar { height: 100%; background: var(--spot); }
.p2 .podium-bar { height: 72%; }
.p3 .podium-bar { height: 50%; }
.p1 .podium-res { color: var(--spot); }
.podium-year { font-family: var(--f-mono); font-size: 13px; color: var(--haze); padding-bottom: 10px; display: grid; font-variant-numeric: tabular-nums; }
.podium-year small { font-family: var(--f-body); font-size: 11px; }
.podium-col { grid-template-rows: auto minmax(0, 1fr) auto; }
.podium-col .podium-bar { grid-row: 2; }

/* ---------- Media ---------- */
.media-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.media-list li {
  display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line);
}
.media-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.media-meta time { font-family: var(--f-mono); color: var(--haze); font-variant-numeric: tabular-nums; }
.media-list h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.media-list p { margin: 0; color: var(--haze); max-width: 40em; }

/* ---------- Contact CTA ---------- */
.contact-cta { display: grid; gap: 24px; justify-items: start; }
.contact-cta p { margin: 0; color: var(--haze); }
.place-badge.top3 { color: var(--ink); }

/* ---------- Results ---------- */
.results-table-wrap { overflow-x: auto; }
.results { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.results th {
  text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 11px;
  letter-spacing: .2em; color: var(--haze); text-transform: uppercase;
  padding: 0 16px 12px 0; border-bottom: 1px solid var(--line);
}
.results td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.results .year { font-family: var(--f-mono); color: var(--haze); width: 5.5em; }
.results .event { font-weight: 700; }
.results .event small { display: block; font-weight: 400; color: var(--haze); font-size: 13px; }
.results .place { text-align: right; padding-right: 0; white-space: nowrap; }
.place-badge { font-family: var(--f-body); font-weight: 700; font-size: clamp(15px, 1.5vw, 18px); line-height: 1; color: var(--haze); letter-spacing: .06em; }
.place-badge.win { color: var(--spot); }
.results tr { transition: background .2s; }
.results tbody tr:hover { background: var(--stage-2); }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: 7.5em 7em minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline;
  padding: 20px 0; text-decoration: none; transition: padding .25s, color .25s;
}
.news-list a:hover { padding-left: 12px; color: var(--spot); }
.news-list time { font-family: var(--f-mono); color: var(--haze); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-cat {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 0 8px; justify-self: start; color: var(--haze);
}
.news-title { min-width: 0; }
.news-arrow { color: var(--spot); font-family: var(--f-mono); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); }
.contact-intro p { color: var(--haze); margin-top: 0; }
.contact-intro ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.contact-intro li::before { content: "— "; color: var(--spot); }
.form { display: grid; gap: 20px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; color: var(--haze); text-transform: uppercase; }
.field label .req { color: var(--sock); margin-left: 4px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--stage-2);
  border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; width: 100%;
  transition: border-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--spot); }
.field .err { color: var(--sock); font-size: 13px; min-height: 1em; }
.btn {
  text-decoration: none; display: inline-block;
  justify-self: start; font-family: var(--f-mono); font-size: 13px; letter-spacing: .24em;
  background: var(--spot); color: var(--stage); border: 0; padding: 16px 36px; cursor: pointer;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--ink); }
.form-done { border: 1px solid var(--spot); padding: 20px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-logo { font-family: var(--f-display); font-size: 40px; line-height: 1; }
.sns { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.sns a {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 50%; color: var(--haze); text-decoration: none; transition: color .2s, border-color .2s;
}
.sns a:hover { color: var(--spot); border-color: var(--spot); }
.sns svg { width: 18px; height: 18px; fill: currentColor; }
.copy { width: 100%; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--haze); margin: 0; }

/* ---------- Reveal ---------- */
.reveal { transition: opacity .8s ease, transform .8s ease; }
.js .reveal.pre { opacity: .001; transform: translateY(24px); }

.ph small { font-size: 10px; letter-spacing: .08em; opacity: .8; }

/* ---------- Wide screens: outlined name over the stage light ---------- */
@media (min-width: 1025px) {
  .hero h1 { color: transparent; -webkit-text-stroke: 2px var(--ink); text-shadow: none; }
  .hero h1 .fill { color: var(--ink); -webkit-text-stroke: 0; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .news-list a { grid-template-columns: 7.5em minmax(0, 1fr) auto; }
  .news-cat { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--stage);
    padding: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter) 32px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { font-family: var(--f-display); font-size: 40px; letter-spacing: .02em; text-transform: none; color: var(--ink); }
  .nav a::after { display: none; }
  .profile-grid, .contact-grid, .about-body { grid-template-columns: minmax(0, 1fr); }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .highlights li, .highlights li + li { padding: 20px 0; border-left: 0; }
  .highlights li + li { border-top: 1px solid var(--line); }
  .freeze-figure .freeze-line { width: min(70%, 300px); }
  .section-head .section-freeze { grid-row: 1; height: 84px; margin-bottom: 4px; }
  .section-head > h2, .section-head > .ja { grid-column: 1 / -1; }
    .scroll-cue { display: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero { min-height: clamp(520px, 86svh, 760px); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .btn { justify-self: stretch; }
  .results thead { display: none; }
  .results tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .results td { border: 0; padding: 0; }
  .results .year { grid-column: 1 / -1; width: auto; font-size: 13px; }
  .results .event { padding-right: 12px; }
  .results .place { align-self: center; }
  .news-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .news-list time { grid-column: 1 / -1; font-size: 13px; }
  .media-list li { grid-template-columns: minmax(0, 1fr); }
  .media-meta { flex-direction: row; align-items: center; }
}

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

/* ---------- Copy update: tagline, sponsor, request tags ---------- */
.hero-sub .hero-tagline { flex-basis: 100%; font-weight: 700; font-size: clamp(17px, 2vw, 22px); letter-spacing: .06em; }
#contact .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.contact-side { display: grid; gap: 28px; }
.contact-lead { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.8; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form .field > label { display: flex; align-items: center; min-height: 28px; }
.form .field label, .form legend { font-family: var(--f-body); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ink); text-transform: none; padding: 0; }
.form legend { margin-bottom: 10px; }
.form .field label .req { font-size: 11px; font-weight: 700; color: var(--stage); background: var(--spot); padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chips label { cursor: pointer; position: relative; }
.type-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.type-chips span { display: inline-block; font-weight: 400; font-size: 14px; padding: 8px 16px; border: 1px solid var(--line); color: var(--haze); transition: border-color .2s, color .2s, background .2s; }
.type-chips input:checked + span { border-color: var(--spot); color: var(--stage); background: var(--spot); font-weight: 700; }
.type-chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form .check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 400; }
.form .check input { width: 18px; height: 18px; accent-color: var(--spot); margin: 0; }
.form .check a { color: var(--spot); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--sock); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; }
.form-status { margin: 0; min-height: 1.5em; color: var(--haze); }
.form-status.is-ok { border: 1px solid var(--spot); padding: 16px 20px; color: var(--ink); }
.form-status.is-ng { color: var(--sock); }
.form button[disabled] { opacity: .6; cursor: wait; }
.sponsor-box { border: 1px solid var(--line); border-left: 2px solid var(--spot); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; justify-items: start; }
.sponsor-box .cue { margin: 0; }
.sponsor-box h3 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); }
.sponsor-box p:not(.cue) { margin: 0; color: var(--haze); }
.btn-ghost { background: transparent; color: var(--spot); box-shadow: inset 0 0 0 1px var(--spot); }
.btn-ghost:hover { background: var(--spot); color: var(--stage); }
.more-btn { display: none; }
@media (max-width: 860px) {
  #contact .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .is-collapsed .results tr.extra { display: none; }
  .more-btn {
    display: block; width: 100%; margin-top: 16px; padding: 14px; cursor: pointer;
    background: transparent; color: var(--spot); border: 1px solid var(--line);
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em;
  }
  .sponsor-box .btn { justify-self: stretch; text-align: center; }
}

/* ---------- Medal colours ---------- */
:root { --gold: #f0b764; --silver: #cdd6e0; --bronze: #d08f5c; }
.place-badge.gold, .place-badge.silver, .place-badge.bronze {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  color: var(--medal); background: color-mix(in srgb, var(--medal) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--medal) 45%, transparent);
}
.place-badge.gold::before, .place-badge.silver::before, .place-badge.bronze::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 60%), var(--medal);
}
.place-badge.gold { --medal: var(--gold); }
.place-badge.silver { --medal: var(--silver); }
.place-badge.bronze { --medal: var(--bronze); }
.p1 .podium-bar { background: var(--gold); }
.p2 .podium-bar { background: color-mix(in srgb, var(--silver) 70%, var(--stage-2)); }
.p3 .podium-bar { background: color-mix(in srgb, var(--bronze) 70%, var(--stage-2)); }
.p1 .podium-res { color: var(--gold); }
.p2 .podium-res { color: var(--silver); }
.p3 .podium-res { color: var(--bronze); }

/* ---------- Count-up numbers ---------- */
.count { display: inline-block; min-width: .62em; font-variant-numeric: tabular-nums; }
.count.is-done { animation: count-pop .5s ease-out; }
@keyframes count-pop {
  0% { transform: scale(1); text-shadow: none; }
  40% { transform: scale(1.18); text-shadow: 0 0 24px color-mix(in srgb, var(--spot) 70%, transparent); }
  100% { transform: scale(1); text-shadow: none; }
}

/* ---------- Sticky contact button (phones) ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: block; position: fixed; z-index: 40;
    left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 15px 20px; text-align: center; text-decoration: none;
    font-weight: 700; font-size: 15px; letter-spacing: .12em;
    background: var(--spot); color: var(--stage);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
    opacity: 0; transform: translateY(calc(100% + 24px)); pointer-events: none;
    transition: opacity .3s, transform .3s;
  }
  .sticky-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

.form [hidden] { display: none !important; }

/* ---------- Motion set ---------- */
/* 1. Podium bars grow from the floor, one after another */
.motion .podium-bar { transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.motion .podium-res { opacity: 0; transition: opacity .4s ease; }
.motion .podium.is-play .podium-bar { transform: scaleY(1); }
.motion .podium.is-play .podium-res { opacity: 1; }
.motion .podium-col:nth-child(2) .podium-bar, .motion .podium-col:nth-child(2) .podium-res { transition-delay: .15s; }
.motion .podium-col:nth-child(3) .podium-bar, .motion .podium-col:nth-child(3) .podium-res { transition-delay: .3s; }
.motion .podium-col:nth-child(4) .podium-bar, .motion .podium-col:nth-child(4) .podium-res { transition-delay: .45s; }
.motion .podium-col:nth-child(5) .podium-bar, .motion .podium-col:nth-child(5) .podium-res { transition-delay: .6s; }
.motion .podium.is-play .podium-res { transition-duration: .4s; }
.motion .podium.is-play .podium-col .podium-res { transition-delay: calc(var(--d, 0s) + .7s); }
.motion .podium-col:nth-child(2) { --d: .15s; }
.motion .podium-col:nth-child(3) { --d: .3s; }
.motion .podium-col:nth-child(4) { --d: .45s; }
.motion .podium-col:nth-child(5) { --d: .6s; }

/* 2. Hero name: a spotlight sweeps across the letters */
.hero h1 .ch { display: inline-block; }
.motion .hero h1.is-play .ch { animation: spot-hit 1.6s ease-out both; }
.motion .hero h1.is-play .ch:nth-child(2) { animation-delay: .25s; }
.motion .hero h1.is-play .ch:nth-child(3) { animation-delay: .5s; }
.motion .hero h1.is-play .ch:nth-child(4) { animation-delay: .75s; }
@keyframes spot-hit {
  0% { filter: none; }
  35% { filter: drop-shadow(0 0 18px var(--spot)) drop-shadow(0 0 42px color-mix(in srgb, var(--spot) 60%, transparent)) brightness(1.35); -webkit-text-stroke-color: var(--spot); }
  100% { filter: none; }
}

/* 3. Japan results arrive row by row */
.motion #japan-results tbody tr { opacity: 0; transform: translateX(-16px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.motion #japan-results.is-play tbody tr { opacity: 1; transform: none; }

/* 4. PC: the stage light follows the mouse */
.hero-follow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(28vw 28vw at var(--mx, 30%) var(--my, 30%), color-mix(in srgb, var(--spot) 34%, transparent), transparent 70%);
}
.hero-follow.is-on { opacity: 1; }

/* 5. Round calls flicker on like a battle MC's call */
.motion .section-head .cue { opacity: 0; }
.motion .section-head .cue.is-play { animation: cue-call .9s steps(1, end) both; }
@keyframes cue-call {
  0% { opacity: 0; } 15% { opacity: 1; } 25% { opacity: .15; } 40% { opacity: 1; }
  52% { opacity: .35; } 62% { opacity: 1; text-shadow: 0 0 14px var(--spot); } 100% { opacity: 1; text-shadow: none; }
}

/* Keep competition and result close together on wide screens */
.results { max-width: 760px; }
.more-btn { max-width: 760px; }

/* Hero intro: HARU's silhouette dances on the stage once, then hands over to the name */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen; opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.hero-video.is-on { opacity: 1; }
.hero.is-intro h1 { opacity: .12; }
.hero h1 { transition: opacity 1s ease; }
@media (max-width: 860px) { .hero-video { object-position: 50% 35%; } }

/* ---------- Language menu ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--haze); padding-block: 6px;
  transition: color .2s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.lang-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); }
.nav .lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 12px); display: block; min-width: 11em;
  padding: 8px 0; background: var(--stage); border: 1px solid var(--line);
}
.nav .lang-menu a {
  display: block; padding: 8px 18px; white-space: nowrap;
  font-family: var(--f-body); font-size: 14px; letter-spacing: .04em; text-transform: none;
}
.nav .lang-menu a::after { display: none; }
.nav .lang-menu a[aria-current] { color: var(--spot); }
@media (max-width: 860px) {
  .nav .lang { margin-top: 28px; }
  .nav .lang-menu summary { font-size: 14px; }
  .nav .lang-menu ul { position: static; display: flex; flex-wrap: wrap; gap: 4px 22px; min-width: 0; padding: 14px 0 0; background: none; border: 0; }
  .nav .lang-menu a { padding: 6px 0; font-family: var(--f-body); font-size: 17px; color: var(--haze); }
}

/* ---------- Per-language fonts ---------- */
html[lang="ko"] {
  --f-display: "Dela Gothic One", "Black Han Sans", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
html[lang="zh-Hans"] { --f-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
html[lang="zh-Hans"] .sub-title { font-family: "Noto Sans SC", var(--f-display); font-weight: 900; }
