@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/landing/fonts/inter.woff2") format("woff2");
}

@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/landing/fonts/cinzel-decorative.woff2") format("woff2");
}

:root {
  --bg: #161922;
  --ink: #e8eef8;
  --ink-btn: #111111;
  --accent: #6ea8fe;
  --accent-hi: #88b9ff;
  --accent-press: #588ee0;
  --tagline: #ffd56a;
  --radius: 8px;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --font-title: "Cinzel Decorative", Palatino, "Palatino Linotype", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  overflow: hidden;
}

.scene.overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.install-bar {
  flex: none;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0.7rem 1.4rem;
  padding-top: max(0.7rem, env(safe-area-inset-top, 0px));
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
}

.install-bar:focus-visible {
  outline: 2px solid rgba(232, 238, 248, 0.85);
  outline-offset: -2px;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  user-select: none;
}

.panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 100%;
  padding: 1.5rem 1.4rem max(2.2rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
  pointer-events: none;
}

.panel > * {
  pointer-events: auto;
}

.masthead {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(40rem, calc(100vw - 2.8rem));
  text-align: center;
  pointer-events: none;
}

.title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 2.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.tagline {
  margin: 0.55rem 0 0;
  color: var(--tagline);
  font-size: 1.0rem;
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  min-height: 2.75rem;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink-btn);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.play.is-waiting {
  pointer-events: none;
  background: rgba(110, 168, 254, 0.35);
  color: rgba(17, 17, 17, 0.45);
  box-shadow: none;
}

.play:hover,
.play:focus-visible {
  background: var(--accent-hi);
}

.play:active {
  background: var(--accent-press);
}

.play.is-waiting:hover,
.play.is-waiting:focus-visible,
.play.is-waiting:active {
  background: rgba(110, 168, 254, 0.35);
}

.play:focus-visible {
  outline: 2px solid rgba(232, 238, 248, 0.85);
  outline-offset: 2px;
}

.game-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
  background: transparent;
}

.game-frame.is-front {
  z-index: 3;
}

body.is-playing .scene.overlay {
  pointer-events: none;
}

body.is-playing .play,
body.is-playing .install-bar,
body.is-playing .masthead {
  display: none;
}

@media (display-mode: standalone) {
  .install-bar {
    display: none;
  }
}
