/* Beat Masters! website. Day to festival night as you scroll. No external requests. */
@font-face { font-family: "Lilita One"; src: url(fonts/LilitaOne.ttf) format("truetype"); font-display: swap; }

:root {
  --night: #17132e;
  --night-2: #201a42;
  --night-3: #100d22;
  --twilight: #2b2459;
  --paper: #fff8ec;
  --paper-2: #fdeed4;
  --ink: #241d44;
  --ink-soft: #5b5378;
  --text: #fdfbff;
  --muted: #cfc8ec;
  --lantern: #ffb547;
  --lantern-2: #ff7a3d;
  --teal: #1fb5ad;
  --coral: #ff6f61;
  --gold: #ffc83d;
  --axure: #EE2244;
  --tech: #36BCE2;
  --radius: 22px;
  --maxw: 1180px;
  --shadow: 0 12px 32px rgba(10, 6, 30, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lantern); }
h1, h2, h3, .tagline, .pill, .stage, .num {
  font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; letter-spacing: .01em;
}
h1, h2, h3 { line-height: 1.1; margin: 0 0 .45em; overflow-wrap: break-word; hyphens: auto; }
/* Lilita One has no Japanese glyphs: Japanese titles use a heavy rounded system font */
:lang(ja) :is(h1, h2, h3, .tagline, .pill, .stage, .num) {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800; letter-spacing: 0;
}
:lang(ja) h2 { font-size: clamp(28px, 4.4vw, 46px); }
h2 { font-size: clamp(34px, 5.2vw, 56px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.lead { font-size: clamp(18px, 2vw, 21px); max-width: 760px; color: var(--muted); }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--lantern); color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 19, 46, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand img { width: 76px; height: auto; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; white-space: nowrap; }
.nav a:hover { color: var(--lantern); }
.langs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-left: auto; }
.nav + .langs { margin-left: 8px; }
.langs a {
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
}
.langs a[aria-current] { background: var(--text); color: var(--ink); border-color: var(--text); }
@media (min-width: 860px) { .brand img { width: 92px; } }
@media (min-width: 960px) { .nav { display: flex; } }   /* 960, not 860: with the Soundtrack link the French nav needs the room */

/* ---------- pills (the game's MenuV2 buttons) ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.center .ctas { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 10px 26px; border-radius: 999px; font-size: 20px; text-decoration: none;
  border: 3px solid #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .25), var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.pill-gold { background: linear-gradient(#ffd166, var(--lantern)); color: var(--ink); }
.pill-ghost { background: rgba(23, 19, 46, .55); color: #fff; }
.pill-dark { background: var(--ink); color: #fff; }
.pill.is-static { cursor: default; }
.pill.is-static:hover { transform: none; }

/* ---------- hero: the Grand Concert key art (2026-11-28) ----------
   Phone: the square key art on top, the logo and text below it.
   Desktop: the 3:1 banner (masters right of centre, calm sky left of centre) with the text on that calm part. */
.hero {
  position: relative; display: flex; flex-direction: column; padding: 0 0 72px; text-align: center;
  background: linear-gradient(180deg, #17132e 0%, #17132e 72%, var(--paper) 100%);
}
.hero-art {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.hero-in { width: 100%; position: relative; margin-top: -16%; }
.hero-logo { margin: 0 auto 8px; width: 72%; max-width: 560px; }
@media (min-width: 900px) {
  .hero {
    flex-direction: row; align-items: center; min-height: 33.34vw; padding: 32px 0 56px; text-align: left;
    background:
      linear-gradient(90deg, rgba(23, 19, 46, .55) 0%, rgba(23, 19, 46, .25) 32%, rgba(23, 19, 46, 0) 46%),
      linear-gradient(180deg, rgba(23, 19, 46, 0) 72%, var(--paper) 100%),
      url(hero-1200.webp) center / cover no-repeat;
  }
  .hero-art { display: none; }
  .hero-in { margin: 0; max-width: none; padding-left: 21vw; }
  .hero-in > * { max-width: min(25vw, 460px); }
  .hero-logo { margin: 0 0 6px; width: 100%; }
  .hero-sub { margin: 0; }
}
@media (min-width: 1400px) {
  .hero { background:
    linear-gradient(90deg, rgba(23, 19, 46, .55) 0%, rgba(23, 19, 46, .25) 32%, rgba(23, 19, 46, 0) 46%),
    linear-gradient(180deg, rgba(23, 19, 46, 0) 72%, var(--paper) 100%),
    url(hero-2400.webp) center / cover no-repeat; }
}
.hero-logo img { width: 100%; filter: drop-shadow(0 14px 22px rgba(10, 6, 30, .45)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-.6deg); } }
.tagline {
  font-size: clamp(28px, 4.6vw, 48px); margin: 0 0 8px; color: #fff;
  text-shadow: 0 3px 0 var(--ink), 0 0 24px rgba(23, 19, 46, .6);
}
.hero-sub { max-width: 640px; margin: 0 auto; font-size: clamp(17px, 2vw, 20px); font-weight: 600; color: #fff; text-shadow: 0 2px 10px rgba(10, 6, 30, .8); }
.hero .ctas { justify-content: center; }
@media (min-width: 900px) {   /* the text column sits on the calm sky left of the masters; keep it short so the 3:1 art is not cropped */
  .hero { background-position: 0 0, 0 0, 40% center !important; }
  .hero .ctas { justify-content: flex-start; margin: 16px 0 6px; }
  .hero .hero-in { padding-left: 20vw; }
  .hero .hero-logo { width: min(19vw, 400px); }
  .hero .tagline { font-size: clamp(24px, 2.2vw, 40px); }
  .hero .hero-sub { margin: 0; max-width: min(24vw, 440px); font-size: clamp(15px, 1.1vw, 18px); }
}
.release { margin: 12px 0 0; font-family: "Lilita One", system-ui, sans-serif; font-size: clamp(19px, 2vw, 24px); color: var(--gold); text-shadow: 0 2px 0 var(--ink), 0 0 16px rgba(10, 6, 30, .8); }
:lang(ja) .release { font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; font-weight: 800; }
.release + .platforms { margin-top: 2px; }
@media (min-width: 900px) { .hero .release { font-size: clamp(15px, 1.25vw, 22px); margin-top: 8px; } }
.platforms { margin-top: 10px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 8px rgba(10, 6, 30, .9); }

/* ---------- sections ---------- */
.sec { position: relative; padding: 72px 0; }
@media (min-width: 900px) { .sec { padding: 104px 0; } }
.sec-paper { background: var(--paper); color: var(--ink); }
.sec-paper .lead { color: var(--ink-soft); }
.sec-dusk { background: linear-gradient(180deg, var(--paper) 0%, #ffd79a 12%, #ffab72 32%, #e0727a 52%, #8f4a8c 74%, var(--twilight) 100%); color: var(--ink); }
.sec-dusk h2 { color: var(--ink); }
.sec-dusk .lead { color: var(--ink-soft); }
.sec-twilight { background: var(--twilight); }
.sec-night { background: radial-gradient(1200px 500px at 70% 0%, #3a2c6e 0%, transparent 60%), var(--night); overflow: hidden; }
.sec-night2 { background: var(--night-2); }
.sec-festival { background: radial-gradient(900px 420px at 50% 100%, rgba(255, 150, 60, .35), transparent 70%), var(--night); }

/* ---------- how to play ---------- */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border-radius: var(--radius); padding: 26px 24px 18px; box-shadow: 0 8px 24px rgba(36, 29, 68, .10); border: 2px solid var(--paper-2); }
.num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--gold); font-size: 22px; margin-bottom: 12px;
}
.step p { color: var(--ink-soft); }
.tiles { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; }
.tiles li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.tiles img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(36, 29, 68, .25)); }

/* ---------- masters ---------- */
.masters { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 28px 22px; justify-content: center; }
.master {
  width: 100%; max-width: 360px; background: var(--paper); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  border: 3px solid #fff;
}
@media (min-width: 640px) { .master { width: calc(50% - 11px); } }
@media (min-width: 980px) { .master { width: calc(25% - 17px); } }
.master-art {
  height: 250px; display: flex; align-items: flex-end; justify-content: center; padding-top: 14px;
  background: radial-gradient(circle at 50% 75%, rgba(255, 255, 255, .55), transparent 62%), var(--accent);
}
.master-art img { height: 236px; width: auto; filter: drop-shadow(0 8px 10px rgba(20, 10, 40, .35)); transition: transform .25s ease; }
.master:hover .master-art img { transform: translateY(-6px) scale(1.03); }
.master-txt { padding: 16px 20px 20px; }
.master-txt h3 { margin-bottom: .3em; }
.master-txt p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.stage { color: var(--accent); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px !important; filter: brightness(.85); }

/* ---------- worlds ---------- */
.shots { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
@media (min-width: 600px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { display: block; border-radius: 16px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow); }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.04); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-top: 28px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* the trailer: a local thumbnail that opens YouTube (no embed, so no third-party request) */
.video-link { display: block; max-width: 1040px; margin-left: auto; margin-right: auto; border: 3px solid rgba(255, 255, 255, .85); color: #fff; text-decoration: none; }
.video-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-link .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: linear-gradient(#ffd166, var(--lantern)); box-shadow: 0 8px 26px rgba(10, 6, 30, .55); transition: transform .2s ease; }
.video-link .play::after { content: ""; position: absolute; left: 33px; top: 24px; border-style: solid; border-width: 18px 0 18px 28px;
  border-color: transparent transparent transparent var(--ink); }
.video-cta { position: absolute; right: 14px; bottom: 14px; padding: 8px 16px; border-radius: 999px; background: rgba(16, 12, 40, .78);
  font-weight: 700; font-size: 15px; white-space: nowrap; }
.video-link:hover img, .video-link:focus-visible img { transform: scale(1.03); }
.video-link:hover .play, .video-link:focus-visible .play { transform: scale(1.08); }
@media (max-width: 520px) { .video-link .play { transform: scale(.75); } .video-cta { font-size: 13px; padding: 6px 12px; right: 10px; bottom: 10px; } }

/* ---------- story: festival night ---------- */
.story { display: grid; gap: 32px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .story { grid-template-columns: 1.3fr .9fr; } }
.passport { width: min(420px, 80vw); margin: 0 auto; transform: rotate(4deg); filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .5)); }
.stamps { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stamps img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.stamps li:nth-child(odd) img { transform: rotate(-6deg); }
.stamps li:nth-child(even) img { transform: rotate(5deg); }
@media (min-width: 600px) { .stamps img { width: 104px; height: 104px; } }
.lanterns i {
  position: absolute; bottom: -60px; width: 26px; height: 34px; border-radius: 10px 10px 13px 13px;
  background: radial-gradient(circle at 50% 60%, #fff3c4 0%, var(--lantern) 45%, var(--lantern-2) 100%);
  box-shadow: 0 0 22px 8px rgba(255, 170, 70, .35); opacity: .85; animation: rise 18s linear infinite;
}
.lanterns i:nth-child(1) { left: 6%; animation-delay: 0s; transform: scale(.8); }
.lanterns i:nth-child(2) { left: 18%; animation-delay: -6s; }
.lanterns i:nth-child(3) { left: 31%; animation-delay: -12s; transform: scale(.6); }
.lanterns i:nth-child(4) { left: 47%; animation-delay: -3s; transform: scale(.7); }
.lanterns i:nth-child(5) { left: 62%; animation-delay: -9s; }
.lanterns i:nth-child(6) { left: 74%; animation-delay: -15s; transform: scale(.65); }
.lanterns i:nth-child(7) { left: 86%; animation-delay: -5s; transform: scale(.9); }
.lanterns i:nth-child(8) { left: 94%; animation-delay: -11s; transform: scale(.55); }
@keyframes rise { 0% { translate: 0 0; opacity: 0; } 10% { opacity: .85; } 90% { opacity: .7; } 100% { translate: 18px -900px; opacity: 0; } }

/* ---------- features ---------- */
.feats { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(4, 1fr); } }
.feat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 22px 20px 8px; }
.feat h3 { color: var(--gold); font-size: 22px; }
.feat p { color: var(--muted); font-size: 16px; }

/* ---------- official soundtrack (2026-11-30): the album cover with a record sliding out, the 8 songs, plain links ---------- */
.sec-music { background: radial-gradient(760px 520px at 24% 46%, rgba(108, 79, 216, .38), transparent 70%), var(--night); }
.ost { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .ost { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; } }
.ost-cover { position: relative; width: min(360px, 62vw); margin: 0 auto; transform: translateX(-14%); }
@media (min-width: 900px) { .ost-cover { width: 76%; max-width: 380px; margin: 0; transform: none; } }
.ost-cover img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 22px 44px rgba(5, 3, 15, .6);
}
.ost-disc {
  position: absolute; z-index: 0; top: 4%; left: 36%; width: 92%; aspect-ratio: 1 / 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--night) 0 2.2%, var(--gold) 2.2% 13%, #6c4fd8 13% 28%, transparent 28.4%),
    conic-gradient(from 20deg, transparent 0 4%, rgba(255, 255, 255, .16) 10%, transparent 17% 50%, rgba(255, 255, 255, .12) 58%, transparent 66%),
    repeating-radial-gradient(circle, #2c2a36 0 1.6px, #3b3947 1.6px 3.2px);
  box-shadow: 0 16px 36px rgba(5, 3, 15, .55), inset 0 0 0 2px rgba(255, 255, 255, .14);
  transition: transform .5s ease;
}
.ost-cover:hover .ost-disc { transform: translateX(8%) rotate(40deg); }
.tracks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 7px; }
.tracks li {
  display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto; align-items: center; gap: 0 12px;
  padding: 9px 16px 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08); border-left: 5px solid var(--accent);
}
.t-no { grid-row: 1 / span 2; font-family: "Lilita One", system-ui, sans-serif; font-size: 20px; color: var(--muted); }
.t-title { font-weight: 800; color: #fff; font-size: 17px; line-height: 1.3; }
.t-who { grid-column: 2; color: var(--muted); font-size: 14px; line-height: 1.35; }
.t-len { grid-column: 3; grid-row: 1 / span 2; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ost-meta { margin: 16px 0 6px; color: var(--muted); font-size: 14px; }
.ost .soon { margin: 0; }
.ost .ctas { margin-top: 18px; }
.pill-small { min-height: 44px; padding: 8px 20px; font-size: 17px; }
.ost-game { margin: 14px 0 0; font-weight: 700; color: #fff; }

/* ---------- community ---------- */
.soon { font-weight: 700; color: var(--gold); }
.contact { margin-top: 26px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { background: var(--night-3); padding: 36px 0 28px; color: var(--muted); font-size: 14px; }
.foot-in { display: grid; gap: 14px; justify-items: center; text-align: center; }
.studio { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; }
.studio img { width: 36px; height: auto; }
.ax { color: var(--axure); } .te { color: var(--tech); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.foot-links a { color: #fff; }
.fine { margin: 0; max-width: 760px; opacity: .8; }

/* ---------- document pages ---------- */
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.4em; }
.doc p { color: var(--ink); }
.updated { color: var(--ink-soft) !important; font-weight: 600; }
.page .top { position: sticky; }

/* ---------- help & FAQ ---------- */
.faq { margin: 24px 0 30px; display: grid; gap: 10px; }
.qa { background: #fff; border: 2px solid var(--paper-2); border-radius: 16px; padding: 4px 18px; }
.qa summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: outside; color: var(--ink); }
.qa[open] summary { color: #b0510f; }
.qa p { margin: 0 0 14px; color: var(--ink-soft) !important; }

/* ---------- press kit ---------- */
.press .keyart { width: 100%; border-radius: 18px; border: 3px solid #fff; box-shadow: 0 12px 30px rgba(36, 29, 68, .2); margin: 18px 0 30px; }
.press-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .press-grid { grid-template-columns: 1fr 1fr; } }
.facts { width: 100%; border-collapse: collapse; font-size: 16px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid #eadfcb; }
.facts th { width: 38%; color: var(--ink-soft); font-weight: 700; }
.plain { padding-left: 1.1em; color: var(--ink); }
.plain li { margin: 0 0 .6em; }
.masters-list span { color: var(--ink-soft); }
.press .shots { margin-bottom: 20px; }
.press a:not(.pill) { color: #b0510f; }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 5, 20, .88); }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 12px; }
.lb-close { position: fixed; top: 12px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
