:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, sans-serif;
  color: #f2f6f5;
  background: #080e15;
  --lime: #c9f36a;
  --border: #d0e3f149;
  --muted: #bdcad2;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, p, figure { margin: 0; }
button, a { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
.lobby {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 530px;
  height: 100svh;
  overflow: hidden;
  padding: clamp(20px, 4.25vw, 66px);
}
.stage { position: absolute; z-index: -2; inset: 0; background: #111e27; }
html[data-gx-embed] .lobby { min-height: 100svh; }
.stage canvas, .stage .poster { display: block; width: 100%; height: 100%; }
.stage .poster { position: absolute; inset: 0; object-fit: cover; }
.lightshade {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,#03070ccb 0%, transparent 22%),
              linear-gradient(0deg,#05090eee 0%, #070b1295 15%, #05090e00 45%);
}
.shot-cut { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #03060a; opacity: 0; }
.credits { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; pointer-events: none; }
.credit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(86vw, 37rem);
  min-height: 7rem;
  padding: clamp(19px, 4vw, 45px);
  background: #080e16ed;
  box-shadow: 0 18px 72px #0206099e;
  animation: credit-cut 260ms cubic-bezier(.16, .8, .37, 1) both;
}
.credit img { width: 100%; height: auto; object-fit: contain; }
.credit[data-credit="play"] { width: min(64vw, 25rem); }
.credit[data-credit="connect"] { background: #f5f7f9; }
.credit[data-credit="game"] { padding: 0; display: block; overflow: hidden; }
.credit[data-credit="game"] img { display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.credit[data-credit="game"]::after { content: ""; position: absolute; inset: 33% 0 0; background: linear-gradient(transparent, #070d17e0); }
.credit[data-credit="game"] span {
  position: absolute;
  z-index: 1;
  left: 5%;
  bottom: 9%;
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.6rem, 6vw, 4.1rem);
  text-transform: uppercase;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.065em;
}
@keyframes credit-cut { from { transform: translateY(10px) scale(1.055); opacity: .58; } to { transform: none; opacity: 1; } }
.mast {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: max(16px, env(safe-area-inset-top));
  left: clamp(20px, 4.25vw, 66px);
  right: clamp(20px, 4.25vw, 66px);
  min-height: 50px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-block: 3px 12px;
}
.identity { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 18px); }
.identity img { display: block; height: auto; width: clamp(69px, 10vw, 102px); }
.identity span {
  padding-left: clamp(10px, 1.5vw, 18px);
  border-left: 1px solid var(--border);
  font-size: clamp(.64rem, 1vw, .77rem);
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mast-links { display: flex; align-items: center; justify-content: end; gap: clamp(8px, 1.5vw, 22px); }
.privacy { color: var(--muted); white-space: nowrap; font-size: clamp(.67rem, 1.2vw, .78rem); padding-block: 8px; }
.privacy:hover { color: var(--lime); text-decoration: underline; }
.point-list a { display: inline-flex; align-items: center; font-weight: 700; padding: 8px; color: var(--lime); font-size: .78rem; }
.point-list a:hover { text-decoration: underline; }
.points .sponsor { margin-top: 6px; min-height: 34px; border-color: var(--lime); }
.home {
  padding: 8px 0 8px 8px;
  white-space: nowrap;
  font-size: clamp(.72rem, 1.4vw, .85rem);
  font-weight: 730;
}
.home:hover, .home span[aria-hidden] { color: var(--lime); }
.brief {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: clamp(20px, 4.25vw, 66px);
  right: clamp(20px, 4.25vw, 66px);
  display: flex;
  gap: clamp(16px, 4vw, 60px);
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.location { display: flex; align-items: center; gap: 10px; font-weight: 790; font-size: .68rem; text-transform: uppercase; letter-spacing: .17em; color: var(--lime); }
.location > span:first-child { width: 15px; height: 1px; background: var(--lime); }
h1 {
  margin: 8px 0 10px;
  font-weight: 850;
  font-size: clamp(3.1rem, 6.7vw, 6.65rem);
  line-height: .9;
  letter-spacing: -.062em;
  text-wrap: balance;
}
h1 span { color: var(--lime); }
#intro { color: #d6e0e6; font-size: .94rem; }
.controls { min-width: 240px; width: max-content; max-width: 100%; pointer-events: auto; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: .65em;
  border: 1px solid var(--border);
  background: #0a111ad9;
  border-radius: 6px;
  color: #edf4f6;
  padding: 11px 15px;
  font-size: .875rem;
  font-weight: 750;
  white-space: nowrap;
}
.button:hover, .button[aria-expanded="true"] { border-color: var(--lime); }
.button.main { border-color: var(--lime); color: #0e160a; background: var(--lime); }
.button.main:hover { background: #dbff92; }
.button.pechito { color: #e2ffc5; border-color: #b1d279; }
.button.pechito:hover { background: #25371f; }
#scene-status { min-height: 1.25em; margin-top: 9px; font-size: .76rem; color: var(--muted); }
#travel { display: block; width: min(100%, 23rem); height: 4px; margin-top: 11px; accent-color: var(--lime); }
.points {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 4.25vw, 66px);
  top: max(85px, calc(env(safe-area-inset-top) + 75px));
  max-width: calc(100% - 40px);
  width: 342px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #09121be8;
  box-shadow: 0 8px 28px #0006;
}
.point-list { display: flex; gap: 5px; flex-wrap: wrap; }
.point-list button {
  min-height: 40px;
  padding: 6px 9px;
  border: 1px solid #41515f;
  border-radius: 4px;
  background: #111d28;
  font-weight: 700;
  font-size: .77rem;
}
.point-list button[aria-pressed="true"] { background: #233017; border-color: var(--lime); color: var(--lime); }
#point-status { margin-top: 8px; color: #d1dee6; font-size: .79rem; line-height: 1.35; }
.lobby[data-mode="moving"] .copy, .lobby[data-mode="all"] .copy { visibility: hidden; }
.lobby[data-mode="moving"] .brief { justify-content: flex-end; z-index: 1; }
.lobby[data-mode="moving"] .mast { z-index: 1; }
.lobby[data-mode="moving"] .buttons a { display: none; }
.lobby[data-mode="moving"] #walk, .audio-toggle { background: #080f18e6; border-color: var(--border); color: #f0f4f5; }
.lobby[data-mode="moving"] #walk:hover, .audio-toggle:hover { border-color: var(--lime); }
.lobby[data-mode="all"] .brief { justify-content: flex-end; }
@media (max-width: 640px) {
  .lobby { min-height: 620px; }
  .stage { inset: 52px 0 max(200px, 26svh); }
  .lobby[data-mode="moving"] .stage { inset: 0; }
  .lobby[data-mode="pitch"] .stage { bottom: 16svh; }
  .lightshade {
    background: linear-gradient(180deg, #080e15 0%, #080e1500 19%),
                linear-gradient(0deg, #080e15 22%, #080e15c2 27%, #080e1500 40%);
  }
  .mast { left: 16px; right: 16px; top: max(8px, env(safe-area-inset-top)); min-height: 44px; }
  .brief { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); gap: 12px; flex-direction: column; align-items: stretch; }
  h1 { font-size: clamp(2.9rem, 11vw, 4rem); }
  #intro { font-size: .82rem; }
  .points { top: max(62px, calc(env(safe-area-inset-top) + 52px)); bottom: auto; right: 16px; left: 16px; max-width: none; width: auto; }
  .lobby[data-mode="all"] .copy { display: none; }
}
@media (max-width: 405px) { .home .return-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .credit { animation: none; } }
