:root {
  --white: #f5f3ed;
  --black: #020302;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--black); }

body { color: var(--white); font-family: 'Inter', 'Noto Sans HK', sans-serif; }

@media (min-width: 681px) {
  body { min-height: 100svh; display: flex; flex-direction: column; }
  main { flex: 1; }
  footer { flex-shrink: 0; }
}

a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 134px 24px 108px;
  background: var(--black);
}

.hero-art,
.hero-grade { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-art {
  z-index: -3;
  object-fit: cover;
  object-position: center top;
}

.hero-grade {
  z-index: -2;
  background:
    linear-gradient(0deg, #020302, rgba(2, 3, 2, .62) 35%, rgba(2, 3, 2, .2) 100%);
}

header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

header::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0 0 -28px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(2, 3, 2, .88) 0%,
    rgba(2, 3, 2, .62) 42%,
    rgba(2, 3, 2, .24) 72%,
    rgba(2, 3, 2, 0) 100%
  );
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 48px));
  height: 100%;
  display: flex;
  align-items: center;
}

.header-inner { justify-content: space-between; }
.company-logo { margin-right: auto; }
.language-picker { position: relative; margin-left: 10px; color: #f5f3ed; }
.language-picker svg { width: 17px; height: 17px; }
#language-select { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(14, 14, 18, .65); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
#language-select[aria-expanded="true"] { background: #252522; }
#language-select[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.language-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 156px; padding: 8px; border: 0; border-radius: 24px; background: rgba(17,18,17,.9); box-shadow: 0 14px 36px rgba(0,0,0,.35); }
.language-panel a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; padding: 0 15px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #f5f3ed; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.language-panel a + a { margin-top: 4px; }
.language-panel a[aria-current="true"] { background: rgba(255,255,255,.08); color: #fff; }
.language-panel a:hover { background: rgba(255,255,255,.12); }
.game-intro { white-space: pre-line; max-width: 65ch; margin: 26px auto 0; padding-inline: 12px; color: #d0cec8; font-size: 16px; line-height: 1.8; text-align: center; }
.language-picker button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.discord-link { font-size: 13px; font-weight: 600; display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(14, 14, 18, .6); }
.discord-link:hover { background: #5865f2; }
.discord-link { width: 42px; height: 42px; justify-content: center; padding: 10px; }
.discord-link svg { width: 22px; height: 22px; }

.company-logo {
  display: block;
  width: 76px;
  line-height: 0;
  transform: translateY(4px);
}

.company-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.title-lockup {
  width: clamp(235px, 26vw, 370px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 22px;
}

h1 { position: relative; width: 100%; margin: 0; line-height: 0; filter: drop-shadow(0 4px 3px rgba(0,0,0,.75)) drop-shadow(0 9px 16px rgba(0,0,0,.48)); }

h1 img {
  display: block;
  width: 100%;
  filter: none;
}

.status {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(20px, 2.2vw, 32px);
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .32);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .3),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
}

.trailer {
  width: min(820px, 100%, calc((100svh - 320px) * 1.7778));
  margin-inline: auto;
  padding: 0;
  text-align: center;
}

.trailer h2 {
  margin: 0 0 24px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
}

.trailer video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0c0b;
  border-radius: 4px;
}

.video-frame { position: relative; box-shadow: 0 20px 70px rgba(0, 0, 0, .5); }
.video-frame video[hidden], .youtube-trailer[hidden] { display: none; }
.youtube-trailer { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.youtube-trailer iframe { display: block; width: 100%; height: 100%; border: 0; }
.youtube-fallback { display: grid; height: 100%; place-items: center; padding: 24px; color: #fff; }
.video-actions { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 6px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .18s ease, visibility .18s; }
.video-frame.controls-visible .video-actions { visibility: visible; opacity: 1; pointer-events: auto; }
.video-frame video { cursor: pointer; }
.video-frame video:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.video-actions button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; padding: 8px; color: #fff; background: rgba(18, 18, 18, .65); cursor: pointer; }
.video-actions svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.play-symbol, .mute-symbol, .is-muted .sound-waves, .is-paused .pause-symbol { display: none; }
.is-paused .play-symbol, .is-muted .mute-symbol { display: block; }
.volume-control { display: flex; align-items: center; gap: 6px; background: rgba(18, 18, 18, .65); border-radius: 999px; padding-right: 12px; }
.volume-control button { background: transparent; }
#video-volume { width: 70px; height: 16px; accent-color: #fff; cursor: pointer; }
.video-actions button:focus-visible { outline: 2px solid white; }

.steam-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.steam-button {
  display: inline-flex;
  min-height: 46px;
  min-width: 196px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(61, 62, 59, .98), rgba(39, 40, 38, .98));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .15),
    inset 0 -1px 1px rgba(0, 0, 0, .28),
    0 3px 0 rgba(15, 16, 14, .85),
    0 9px 20px rgba(0, 0, 0, .32);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.steam-icon { flex: 0 0 20px; width: 20px; height: 20px; }
.wishlist-button .steam-icon { fill: currentColor; stroke: none; }
.steam-button > .steam-icon, .steam-button > .release-tag { transform: none; }
.steam-button > span:not(.release-tag) { display: inline-flex; align-items: center; line-height: 20px; transform: translateY(-1px); }
.release-tag { font-size: 10px; font-weight: 500; line-height: 1; padding: 5px 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); color: #d7d5cc; }
.steam-button:hover { background: linear-gradient(180deg, #4a4b46, #33342f); }
.steam-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22), 0 1px 0 rgba(15, 16, 14, .85), 0 4px 12px rgba(0, 0, 0, .25);
}
@media (prefers-reduced-motion: reduce) {
  .steam-button { transition: none; }
  .steam-button:active { transform: none; }
}
.steam-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.news-section { width: min(820px, calc(100% - 48px), calc((100svh - 320px) * 1.7778)); margin-inline: auto; padding: 32px 0 56px; }
.news-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.news-heading h2 { font-size: 24px; font-weight: 600; margin: 0; }
.news-footer { display: flex; justify-content: center; margin-top: 24px; }
.news-footer > a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 18px; border-radius: 999px; color: #e5e5df; font-size: 12px; font-weight: 500; background: rgba(42,43,40,.85); }
.news-footer > a:hover { background: #383934; color: #fff; }
@media (min-width: 681px) { .hero { min-height: 0; padding-bottom: 32px; } .news-section { padding-top: 20px; } }
#news-status { color: #a0a298; font-size: 13px; line-height: 1.8; margin: 0; }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.news-card { display: grid; min-height: 230px; border-radius: 20px; background: linear-gradient(180deg, #262724, #171815); box-shadow: inset 0 1px 1px rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.25); }
.news-card.has-cover { grid-template-columns: 38% minmax(0, 1fr); }
.news-content { display: flex; flex-direction: column; min-width: 0; padding: 26px; }
.news-card:hover { background: linear-gradient(180deg, #30312c, #22231f); }
.news-card { overflow: hidden; }
.news-cover { display: block; width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.news-card time { color: #9fa195; font-size: 11px; }
.news-card h3 { margin: 16px 0 12px; font-size: 18px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.news-card p { margin: 0 0 24px; color: #aeb0a4; font-size: 13px; line-height: 1.8; }
.news-read { margin-top: auto; color: #e2e3da; font-size: 12px; }
.news-section a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
@media (max-width: 680px) {
  .news-section { width: calc(100% - 40px); padding-top: 20px; padding-bottom: 32px; }
  .news-heading { justify-content: center; }
  .news-heading h2 { font-size: 21px; text-align: center; }
  .news-card { min-height: 210px; border-radius: 16px; }
  .news-card.has-cover { grid-template-columns: 1fr; }
  .news-cover { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .news-content { padding: 18px 16px; }
  .news-card h3 { font-size: 15px; margin: 10px 0; }
  .news-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; font-size: 12px; }
}

.reading-news { overflow: hidden; }
#news-reader { width: min(760px, calc(100% - 32px)); max-height: calc(100svh - 48px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: #1d1e1a; color: var(--white); box-shadow: 0 24px 90px rgba(0,0,0,.6); overflow-y: auto; }
#news-reader::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
#reader-close { position: sticky; z-index: 1; top: 14px; float: right; margin: 14px 14px -54px 0; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(12,12,12,.8); color: #fff; cursor: pointer; }
#reader-close svg { width: 21px; height: 21px; }
#reader-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
#reader-cover[hidden] { display: none; }
.reader-content { padding: 32px; }
#reader-date { color: #aeb0a4; font-size: 12px; }
#reader-title { margin: 14px 0 24px; font-size: clamp(21px, 4vw, 30px); line-height: 1.5; overflow-wrap: anywhere; }
#reader-body { color: #d5d6cd; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
#reader-body p { margin: 0 0 18px; white-space: pre-line; }
#reader-source { display: inline-flex; margin-top: 14px; padding: 11px 18px; border-radius: 999px; background: #343630; font-size: 13px; }
#news-reader a:focus-visible, #reader-close:focus-visible { outline: 2px solid white; outline-offset: 3px; }
@media (max-width: 680px) { .reader-content { padding: 24px 20px; } }

footer {
  padding: 0 max(24px, calc((100vw - 1080px) / 2));
  background: #090a09;
  color: var(--white);
  font-family: 'Inter', 'Noto Sans HK', sans-serif;
}

.footer-meta {
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 18px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .34);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
}

.footer-meta #press-kit {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  padding-block: 6px;
  transition: color .2s ease;
}
.footer-meta #press-kit:hover { color: #fff; }
.footer-meta #press-kit:focus-visible { outline: 2px solid #fff; outline-offset: 5px; border-radius: 3px; }


@media (max-width: 680px) {
  .hero { min-height: 0; padding: 128px 20px 32px; }

  .hero-art { object-position: 75% top; }

  .hero-grade {
    background: linear-gradient(0deg, #020302, rgba(2, 3, 2, .7) 45%, rgba(2, 3, 2, .25));
  }

  header { height: 56px; }
  .header-inner { width: 88vw; }
  .company-logo { width: 64px; }

  .title-lockup { width: min(315px, 92%); margin-bottom: 22px; }
  .trailer { width: 100%; }
  .steam-actions { gap: 10px; flex-direction: column; align-items: center; }
  .steam-button { width: auto; max-width: 100%; min-width: 0; padding-inline: 22px; }

  .status { margin-top: 12px; min-height: 32px; padding: 0 13px; }
  footer { padding: 0 24px; }

  .footer-meta {
    min-height: 68px;
    font-size: 8px;
  }
}

