:root {
  --night: #0f0c24;
  --night-2: #161236;
  --plate: #2b3040;
  --canvas: #e9edf2;
  --panel: #fff;
  --panel-alt: #f4f6f9;
  --line: #d8dfe8;
  --ink: #283041;
  --muted: #5b6578;
  --purple: #6240ba;
  --green: #3fb44a;
  --font: "Exo 2", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
}
h1, h2, p, figure, dl, dd { margin: 0; }
h1, h2 { line-height: 1.06; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { cursor: pointer; font: inherit; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #397ad3; outline-offset: 4px; }
.hero :focus-visible, .site-header :focus-visible, .join :focus-visible { outline-color: #a8e8f5; }

.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--panel);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--night); color: #fff; border-bottom: 1px solid #ffffff20; }
.header-inner, .site-header nav, .footer-inner, .site-footer nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-inner { min-height: 70px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; }
.brand img { flex: none; border-radius: 9px; }
.header-link { color: #c9cde0; font-size: 15px; text-decoration: none; }
.header-link:hover { color: #fff; text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
}
.primary { background: var(--green); color: #0e2614; }
.primary:hover { background: #6acf72; }
.header-cta { min-height: 40px; padding-inline: 14px; font-size: 14px; }

.hero {
  color: #fff;
  overflow: hidden;
  background-color: var(--night-2);
  background-image:
    linear-gradient(#c5c1ed0d 1px, transparent 1px),
    linear-gradient(90deg, #c5c1ed0d 1px, transparent 1px),
    linear-gradient(120deg, var(--night), var(--night-2) 66%, #25204b);
  background-size: 40px 40px, 40px 40px, auto;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: center;
  padding-block: clamp(42px, 6vw, 88px) 45px;
}
.release {
  color: #a8e8f5;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .1em;
}
.release span { margin-inline: 5px; color: #9399b6; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -.035em;
}
.hero h1 span { color: #bda9fb; }
.hero-lead { max-width: 37ch; margin-top: 21px; color: #d0d4e7; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: grid; justify-items: start; gap: 10px; margin-top: 26px; }
.beta-status { max-width: 40ch; font-size: 14px; color: #d0d4e7; }
.text-link { color: #e6ddff; font-size: 14px; text-underline-offset: 3px; }
.text-link:hover { color: #fff; }

.hero-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(10px, 2vw, 22px);
  max-width: 485px;
  margin-inline: auto;
}
.device {
  padding: clamp(4px, .6vw, 8px);
  background: var(--plate);
  border: 1px solid #626984;
  border-radius: clamp(15px, 2vw, 26px);
  box-shadow: 0 14px 30px #08061980;
}
.device img { width: 100%; border-radius: clamp(11px, 1.45vw, 18px); }
.device-campus { margin-top: clamp(18px, 5vw, 62px); }
.hero-media figcaption { margin-top: 17px; color: #c9cde0; font-size: 13px; text-align: center; }

.release-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
  align-items: start;
  gap: clamp(28px, 6vw, 78px);
  padding-block: clamp(45px, 7vw, 84px);
}
.release-notes { margin-top: 24px; border-top: 1px solid var(--line); }
.release-notes div {
  display: grid;
  grid-template-columns: minmax(130px, .65fr) minmax(0, 1fr);
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.release-notes dt { font-weight: 750; }
.release-notes dd { color: var(--muted); }
.trailer-panel { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.trailer-panel h2 { margin: 2px 0 13px; font-size: 20px; }
.trailer-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  background: var(--night);
}
.trailer-poster, .trailer-shell iframe { width: 100%; height: 100%; border: 0; }
.trailer-poster { object-fit: cover; }
.play-button {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
  background: var(--panel);
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  font-weight: 750;
  box-shadow: 0 2px 14px #0f0c2466;
}
.play-button:hover { background: #e4effb; }
.play-icon { color: var(--purple); font-size: 13px; }
.trailer-pending { position: absolute; bottom: 10px; left: 10px; color: #fff; }
.video-note { margin-top: 9px; color: var(--muted); font-size: 13px; }

.screenshot-area { padding-block: clamp(45px, 7vw, 84px); background: var(--panel); border-block: 1px solid var(--line); }
.gallery-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.gallery-nav a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.gallery-nav a:hover { background: #e4effb; }
.gallery-section { margin-top: 42px; padding-top: 27px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(23px, 3vw, 32px); }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.gallery-controls { display: flex; gap: 6px; flex: none; }
.gallery-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-alt);
  color: var(--ink);
  font-size: 20px;
}
.gallery-controls button:hover:enabled { background: #e4effb; }
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 5px 5px 13px;
  margin-inline: -5px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 5px;
  overscroll-behavior-x: contain;
}
.gallery-card { flex: 0 0 min(64vw, 228px); min-width: 0; scroll-snap-align: start; }
.screenshot-button {
  display: block;
  position: relative;
  width: 100%;
  padding: 4px;
  border: 1px solid #555f75;
  border-radius: 15px;
  background: var(--plate);
}
.screenshot-button:hover { border-color: var(--purple); }
.screenshot-button img { width: 100%; border-radius: 10px; }
.enlarge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--night);
  color: #fff;
}
.gallery-card figcaption { margin-top: 8px; font-size: 14px; font-weight: 700; }

.join { background: var(--night-2); color: #fff; padding-block: clamp(42px, 7vw, 78px); }
.join-inner { display: flex; align-items: flex-start; gap: 22px; }
.join-inner > img { flex: none; border-radius: 16px; }
.join-detail { margin-top: 11px; color: #d0d4e7; }
.fair-play { margin-top: 20px; color: #c9cde0; font-size: 13px; }
.site-footer { background: var(--night); color: #c9cde0; }
.footer-inner { min-height: 80px; justify-content: space-between; padding-block: 18px; font-size: 14px; }
.site-footer nav { flex-wrap: wrap; }
.site-footer a { text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }

.lightbox {
  width: min(540px, 94vw);
  max-height: 94dvh;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
}
.lightbox::backdrop { background: #0f0c24d9; }
.lightbox img { max-height: 76dvh; width: auto; margin-inline: auto; border-radius: 10px; }
.lightbox p { margin: 10px 15px 0; text-align: center; font-size: 14px; }
.lightbox-close {
  position: sticky;
  float: right;
  top: 0;
  z-index: 1;
  width: 44px;
  height: 44px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 780px) {
  .wrap { width: min(100% - 36px, 620px); }
  .header-inner, .site-header nav { gap: 12px; }
  .hero-layout, .release-overview { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(38px, 8.5vw, 62px); }
  .trailer-panel { width: min(100%, 310px); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 510px) {
  .site-header .header-link { display: none; }
  .release-notes div { grid-template-columns: 1fr; gap: 3px; }
  .join-inner { gap: 12px; }
  .join-inner > img { width: 46px; }
}
