:root {
  color-scheme: light;
  --ink: #201a35;
  --deep: #18142b;
  --paper: #f7f5ee;
  --white: #fffdf7;
  --yellow: #ffce48;
  --orange: #f4a337;
  --muted: #5f586e;
  --header-height: 72px;
  --gutter: clamp(20px, 5.5vw, 88px);
  --shell: 1296px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.7; }
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid #397ad0; outline-offset: 5px; }
[id] { scroll-margin-top: var(--header-height); }

.section-shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: var(--header-height);
  background-color: var(--white);
  border-bottom: 1px solid #e9e3d8;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: calc(var(--header-height) - 1px);
  width: min(calc(100% - 2 * var(--gutter)), var(--shell));
  margin-inline: auto;
}
.wordmark {
  display: inline-flex;
  width: max-content;
  gap: 10px;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 900;
  transform: skewX(-5deg);
  letter-spacing: -.05em;
  white-space: nowrap;
}
.brand-icon {
  width: 33px;
  height: 33px;
  background: center / contain no-repeat url("../assets/volleyball.png");
  transform: skewX(5deg);
}
.site-nav {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 8px;
}
.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 108px;
  padding: 0 12px;
  font-weight: 750;
  font-size: .9375rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--ink); background-color: #f5f1e6; }
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 4px;
  background: var(--orange);
  transform: skewX(-22deg);
}
.header-trailer {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 9px;
  padding: 8px 17px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  font-size: .875rem;
  white-space: nowrap;
  transition: background-color .2s;
}
.header-trailer:hover { background-color: var(--yellow); }
.triangle {
  display: inline-block;
  flex: none;
  width: .66em;
  height: .72em;
  background-color: currentColor;
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(610px, 49vw, 750px);
  overflow: hidden;
  overflow: clip;
  background: #352e59;
  color: var(--white);
}
.hero-photo, .hero-lines, .hero-orbit, .hero-players { position: absolute; pointer-events: none; }
.hero-photo {
  z-index: -4;
  inset: 0;
  background: center 54% / cover no-repeat url("../assets/backgrounds/court-04.webp");
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(4deg, #201633a8 0%, transparent 36%),
    linear-gradient(106deg, #19152ff5 10%, #21183be8 32%, #37274b72 51%, #32214310 68%, transparent 100%),
    linear-gradient(90deg, #2a2046ac, transparent 78%);
}
.hero-lines {
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(127deg, transparent 0 36px, #d4bde32a 36px 37px, transparent 37px 76px);
  mask-image: linear-gradient(114deg, transparent 28%, #0008 53%, transparent 87%);
}
.hero-orbit {
  z-index: -2;
  width: clamp(450px, 46vw, 725px);
  aspect-ratio: 1;
  right: clamp(16px, 5vw, 96px);
  top: 50%;
  border: 1px solid #fff9cc9e;
  border-radius: 50%;
  box-shadow: 0 0 36px #ffe5a626, inset 0 0 38px #f9e3ca29;
  transform: translateY(-49%);
}
.hero-orbit::before, .hero-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid #ffe4a778;
  border-radius: inherit;
  inset: 14px;
}
.hero-orbit::after { inset: -11px; border-style: dashed; border-color: #fff6cb61; }
.hero-players {
  z-index: -1;
  inset: 0 max(0px, calc((100% - 1580px) / 2));
}
.hero-player {
  position: absolute;
  width: auto;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px #21182b55);
}
.hero-player-back {
  height: 124%;
  top: 6%;
  right: 33%;
  transform: rotate(5deg);
}
.hero-player-front {
  height: 133%;
  top: 4%;
  right: 5%;
  transform: rotate(-4deg);
}
.hero-shell { display: flex; align-items: center; }
.hero-copy {
  padding-block: 64px 82px;
  width: 56%;
  min-width: 490px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffdf81;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.hero-kicker span {
  width: 26px;
  height: 3px;
  transform: skewX(-28deg);
  background: currentColor;
}
.hero h1 {
  width: fit-content;
  margin: 12px 0 12px -4px;
  font-weight: 1000;
  font-size: clamp(5rem, 8.25vw, 8.4rem);
  line-height: 1.08;
  letter-spacing: -.08em;
  transform: skewX(-8deg);
  text-shadow: 1px 2px #31223e, 3px 5px #31223e, 6px 9px #31223e, 8px 11px #f3a25a85;
  white-space: nowrap;
}
.hero h1 strong { font-weight: inherit; color: var(--yellow); }
.hero-tagline {
  font-weight: 900;
  font-size: clamp(1.5rem, 2.7vw, 2.8rem);
  line-height: 1.35;
  letter-spacing: .06em;
}
.hero-summary {
  margin-top: 17px;
  color: #f3e9f3;
  font-size: 1.0625rem;
  line-height: 1.78;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 9px 23px;
  border: 1px solid transparent;
  font-size: .9375rem;
  font-weight: 850;
  white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-3px); }
.button-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 #b96b36;
}
.button-primary:hover { background: #ffe188; box-shadow: 5px 6px 0 #b96b36; }
.button-ghost {
  background: #1d172987;
  border-color: #fffdf7a8;
  color: var(--white);
}
.button-ghost:hover { background: var(--white); color: var(--ink); }
.hero-band {
  position: relative;
  background: var(--yellow);
  box-shadow: 0 -3px 0 #ffebae;
}
.hero-band-inner {
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: .05em;
}
.hero-band-inner p { font-size: 1rem; }
.hero-band-inner p span { margin-inline: 3px; color: #79582c; }
.band-moves { display: flex; align-items: center; gap: 13px; font-size: .875rem; }
.band-moves i { height: 15px; width: 1px; background: #3a285d78; transform: skewX(-20deg); }

.gameplay {
  display: grid;
  grid-template-columns: minmax(270px, .76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(28px, 7vw, 108px);
  padding-block: clamp(62px, 6.2vw, 100px) clamp(65px, 8vw, 124px);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: #65462e;
  font-size: .875rem;
  font-weight: 850;
  letter-spacing: .16em;
}
.section-label::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange);
  transform: skewX(-22deg);
}
.gameplay h2 {
  margin-block: 10px 17px;
  font-size: clamp(3rem, 4.4vw, 4.95rem);
  font-weight: 950;
  line-height: 1.13;
  letter-spacing: -.08em;
}
.gameplay-copy > p:not(.section-label) { max-width: 40ch; color: var(--muted); }
.gameplay-features { display: grid; margin-top: 26px; }
.gameplay-features > div {
  display: grid;
  grid-template-columns: 6.3em minmax(0, 1fr);
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid #dbd4c7;
}
.gameplay-features dt { font-weight: 850; }
.gameplay-features dd { color: var(--muted); font-size: .9375rem; }
.gameplay-media { min-width: 0; }
.media-cover {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  text-align: left;
  border: 6px solid var(--white);
  background: linear-gradient(120deg, #292442, #4d3b59);
  color: var(--white);
  box-shadow: 0 0 0 1px #d8cfc3, 10px 10px 0 #e5dfd2;
}
.media-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #17112be3, transparent 52%);
}
.media-cover img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .34s;
}
.media-cover:hover img { transform: scale(1.045); }
.media-play {
  position: absolute;
  width: 64px;
  height: 64px;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #fff3c9;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.5rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px #221a3c53;
}
.media-caption { position: absolute; inset: auto 18px 15px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.media-caption strong { font-size: clamp(1rem, 2.5vw, 1.55rem); }
.media-caption small { font-size: .875rem; }
.media-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.media-links button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 10px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 800;
  border: 1px solid #d7d0c8;
  background-color: transparent;
}
.media-links button:hover { background-color: var(--yellow); border-color: var(--yellow); }

.characters {
  padding-block: clamp(48px, 5.3vw, 88px) clamp(64px, 7vw, 112px);
  background: #282140;
  color: var(--white);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  margin-bottom: 24px;
}
.section-heading h2, .studio h2, .contact h2 {
  font-size: clamp(2.55rem, 4.2vw, 4.4rem);
  line-height: 1.13;
  letter-spacing: -.06em;
  font-weight: 950;
}
.section-intro { color: #e0d6e9; font-size: .9375rem; }
.character-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(400px, 35vw, 530px);
  overflow: hidden;
  border: 1px solid #8e7797;
  background:
    linear-gradient(103deg, #211a39 1%, #281e40dc 33%, #35244a3b 77%),
    center 50% / cover no-repeat url("../assets/backgrounds/court-03.webp");
}
.character-stage::before, .character-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.character-stage::before {
  inset: 0 8% 0 53%;
  border-inline: 1px solid #fff3c88a;
  background: #f8d69d24;
  transform: skewX(-23deg);
}
.character-stage::after {
  height: 4px;
  width: 27%;
  inset: auto auto 0 0;
  background: var(--yellow);
  transform: skewX(-22deg);
}
.character-copy {
  position: relative;
  z-index: 1;
  width: 47%;
  padding: clamp(26px, 6vw, 88px);
}
.character-copy h3 {
  font-size: clamp(2.75rem, 5vw, 5.25rem);
  font-weight: 950;
  color: var(--yellow);
  letter-spacing: -.07em;
  line-height: 1.14;
  margin-bottom: 12px;
  white-space: nowrap;
  text-shadow: 3px 4px #31213c;
}
.character-copy p { max-width: 24ch; color: #f4e9f6; }
.character-art {
  position: absolute;
  display: flex;
  justify-content: center;
  inset: 2% 7% 2% 44%;
  pointer-events: none;
}
.character-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(5px 12px 14px #1b152b8f);
}
.character-roster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.character-choice {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: 0;
  background: #392e51;
  border: 1px solid #625372;
  color: var(--white);
  font-weight: 800;
  transition: background-color .2s, border-color .2s;
}
.character-choice:hover { border-color: var(--yellow); background-color: #5b4565; }
.character-choice[aria-pressed="true"] { border-color: var(--yellow); background: #67484d; }
.character-choice img { width: 100%; height: clamp(63px, 7.4vw, 108px); object-fit: contain; object-position: center bottom; }
.character-choice span { display: block; width: 100%; padding: 4px 2px; background: #211a35; font-size: .875rem; white-space: nowrap; }
.character-choice[aria-pressed="true"] span { color: var(--ink); background: var(--yellow); }

.studio { padding-block: clamp(65px, 8vw, 120px) 0; }
.studio-panel {
  display: grid;
  align-items: center;
  min-height: clamp(380px, 36vw, 515px);
  border-left: 5px solid var(--yellow);
  color: var(--white);
  background:
    linear-gradient(90deg, #1e172ff5 0%, #221831e5 31%, #30223870 62%, #2b183b16 100%),
    center 56% / cover no-repeat url("../assets/backgrounds/court-07.webp");
}
.studio-copy { padding: clamp(26px, 5vw, 74px); width: min(100%, 640px); }
.studio-copy .section-label { color: #ffdc86; }
.studio h2 { margin-block: 10px 22px; }
.studio-motto { font-size: clamp(1.125rem, 2vw, 1.65rem); font-weight: 900; color: #ffdd8a; margin-bottom: 10px; }
.studio-motto span { display: inline-block; }
.studio-copy > p:last-child { max-width: 32ch; color: #f3e9f4; }

.contact { padding-block: clamp(32px, 5.5vw, 80px) clamp(64px, 7vw, 110px); }
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4.1vw, 58px);
  border: 1px solid #d7c4a3;
  background:
    linear-gradient(131deg, #ffebaf 0%, #fff4da 57%, #ffdfa0 57.1%, #ffedbe 100%);
}
.contact h2 { font-size: clamp(2.18rem, 3.35vw, 3.45rem); margin-bottom: 7px; }
.contact-copy > p { color: var(--muted); }
.contact-email {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .2em;
  max-width: 100%;
  padding: 12px 18px;
  background: var(--white);
  border-left: 3px solid var(--orange);
  color: var(--ink);
  font-weight: 750;
}

.contact-email:hover { background: #fff1c7; }

.site-footer { background: #181429; color: #f4eaf4; }
.footer-inner { min-height: 99px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.footer-inner p, .back-to-top { font-size: .875rem; }
.footer-inner p { color: #c8bed1; }
.back-to-top { text-decoration: underline; text-underline-offset: 4px; }

.trailer-dialog {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100dvh - 36px);
  padding: 0;
  color: var(--white);
  background: #221c36;
  border: 1px solid #625476;
  box-shadow: 0 22px 100px #110c25ad;
}
.trailer-dialog::backdrop { background: #15101edc; }
.trailer-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 2px solid var(--yellow); }
.trailer-heading h2 { font-size: 1.2rem; }
.trailer-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1;
  background: #382f51;
  border: 1px solid #877391;
}
.trailer-close:hover { background: var(--yellow); color: var(--ink); }
.trailer-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 67dvh; background: #100d1a; }
.trailer-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 16px 16px; }
.trailer-choice { padding: 6px 12px; color: var(--white); font-size: .875rem; background: transparent; border: 1px solid #77628a; }
.trailer-choice:hover, .trailer-choice[aria-pressed="true"] { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

@media (max-width: 1000px) {
  .site-nav { gap: 0; }
  .site-nav a { min-width: 85px; }
  .hero-player-back { height: 110%; right: 26%; top: 12%; }
  .hero-player-front { height: 117%; right: 1%; top: 11%; }
  .hero-copy { min-width: 0; width: 58%; }
  .hero h1 { font-size: clamp(3.6rem, 9.1vw, 6.4rem); }
}

@media (max-width: 740px) {
  :root { --header-height: 96px; }
  .header-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 52px 43px;
    align-items: center;
  }
  .wordmark { font-size: 1.1rem; }
  .brand-icon { width: 28px; height: 28px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; }
  .site-nav a { flex: 1; min-width: 0; padding-inline: 4px; font-size: .875rem; }
  .site-nav a[aria-current]::after { inset-inline: 12px; height: 3px; }
  .header-trailer { grid-column: 2; grid-row: 1; padding: 4px 10px; }
  .hero { min-height: clamp(620px, 113vw, 740px); }
  .hero-photo { background-position: 67% 50%; }
  .hero::before {
    background:
      linear-gradient(0deg, #1c162ff5 4%, #1c162fe5 22%, #251c3c70 52%, #34234315 77%),
      linear-gradient(90deg, #1a15306b, transparent 60%);
    z-index: 0;
  }
  .hero-shell { position: relative; align-items: end; z-index: 1; }
  .hero-copy { width: 100%; padding-block: 270px 35px; }
  .hero-kicker { font-size: .875rem; }
  .hero h1 { margin-block: 9px 12px; font-size: clamp(3.7rem, 13vw, 6.15rem); }
  .hero-tagline { font-size: clamp(1.37rem, 4.6vw, 2.2rem); }
  .hero-summary { margin-top: 12px; font-size: 1rem; }
  .hero-actions { margin-top: 23px; }
  .button { min-height: 46px; padding-inline: 16px; }
  .hero-orbit { top: 39%; width: min(88vw, 510px); right: 5%; }
  .hero-player-back { height: 65%; top: 5%; right: 59%; }
  .hero-player-front { height: 77%; top: 2%; right: 7%; }
  .hero-band-inner { min-height: 48px; }
  .hero-band-inner p { font-size: .875rem; letter-spacing: 0; }
  .band-moves { gap: 5px; font-size: .8125rem; letter-spacing: 0; }
  .band-moves i { height: 11px; }
  .gameplay { grid-template-columns: minmax(0, 1fr); padding-block: 64px; gap: 34px; }
  .gameplay h2 { margin-top: 9px; }
  .gameplay h2 br { display: none; }
  .gameplay-features { grid-template-columns: 1fr; }
  .gameplay-media { padding-right: 6px; }
  .media-cover { border-width: 4px; box-shadow: 0 0 0 1px #d8cfc3, 6px 6px 0 #e5dfd2; }
  .media-play { width: 49px; height: 49px; }
  .media-caption { inset: auto 12px 9px; }
  .section-heading { flex-direction: column; margin-bottom: 19px; }
  .character-stage { align-items: end; min-height: 390px; }
  .character-stage::before { inset-inline: 42% 10%; }
  .character-stage::after { width: 45%; }
  .character-copy { width: 100%; padding: 29px 19px 20px; background: linear-gradient(0deg, #241b37, #241b37eb 57%, transparent); }
  .character-copy h3 { margin-bottom: 5px; }
  .character-copy p { max-width: 100%; }
  .character-art { inset: 3% 0 13%; }
  .character-roster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .character-choice img { height: clamp(58px, 13vw, 82px); }
  .character-choice span { font-size: .8125rem; }
  .studio-panel { min-height: 360px; background-position: 60% center; }
  .studio-copy { padding-inline: 23px; }
  .contact-panel { flex-direction: column; align-items: start; gap: 17px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; padding-block: 15px; }
  .footer-inner p { grid-row: 2; }
  .back-to-top { grid-column: 2; grid-row: 1; }
}

@media (max-width: 365px) {
  :root { --gutter: 16px; }
  .hero-band-inner { gap: 6px; }
  .hero-band-inner p { font-size: .8125rem; }
  .band-moves { gap: 4px; }
}

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