@font-face {
  font-family: 'Space Grotesk';
  src: url('./assets/space-grotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:where(.arcade-site, .arcade-launcher) {
  --launch-bg: #0c1318;
  --launch-panel: #151f25;
  --launch-text: #f1f4ef;
  --launch-muted: #a9b6b8;
  --launch-accent: #d8fa70;
  --launch-line: #2b383e;
  --launch-font: 'Space Grotesk', sans-serif;
  color: var(--launch-text);
  background: var(--launch-bg);
  font-family: var(--launch-font);
  font-size: 1rem;
  line-height: 1.5;
  color-scheme: dark;
  text-align: left;
}
:where(.arcade-site, .arcade-launcher) * { box-sizing: border-box; }
:where(.arcade-site, .arcade-launcher) a { color: inherit; text-decoration: none; }
:is(.arcade-site, .arcade-launcher) :is(h1,h2,h3,p) { margin: 0; text-shadow: none; }
:is(.arcade-site, .arcade-launcher) :is(h1,h2,h3) { font-family: var(--launch-font); text-transform: none; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.arcade-wrap { width: min(100% - 2rem, 80rem); margin-inline: auto; }
.arcade-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; border-bottom: 1px solid var(--launch-line); }
.arcade-brand { display: inline-flex; align-items: center; gap: .75rem; flex-shrink: 0; min-height: 3rem; }
.arcade-brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .7rem .2rem .7rem .2rem; background: var(--launch-accent); color: var(--launch-bg); font-size: 1.5rem; font-weight: 700; letter-spacing: -.1em; padding-right: .15em; }
.arcade-brand-name { display: grid; gap: .1rem; }
.arcade-brand-name strong { font-size: .95rem; letter-spacing: -.03em; }
.arcade-brand-name small { font-size: .72rem; color: var(--launch-muted); }
.arcade-nav-links { display: flex; gap: .25rem; align-items: center; }
.arcade-nav-links a { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: .5rem .75rem; font-size: .875rem; color: var(--launch-muted); border-radius: .4rem; }
.arcade-nav-links a:is(:hover,[aria-current='page']) { color: var(--launch-accent); background: #d8fa700b; }
.arcade-kicker { font-size: .875rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--launch-accent); }
:is(.arcade-site,.arcade-launcher) .arcade-button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3rem; padding: .8rem 1.25rem; margin: 0; border: 1px solid #46545b; border-radius: .45rem; background: transparent; color: var(--launch-text); font: 600 .95rem/1.25 var(--launch-font); letter-spacing: -.01em; text-transform: none; text-shadow: none; box-shadow: none; cursor: pointer; white-space: normal; transition: background-color .16s, border-color .16s, transform .16s; }
:is(.arcade-site,.arcade-launcher) .arcade-button:hover { background: #23313a; border-color: #71838d; transform: translateY(-2px); color: var(--launch-text); box-shadow: none; }
:is(.arcade-site,.arcade-launcher) .arcade-button--primary { background: var(--launch-accent); color: var(--launch-bg); border-color: var(--launch-accent); }
:is(.arcade-site,.arcade-launcher) .arcade-button--primary:hover { background: #e8ffab; border-color: #e8ffab; color: var(--launch-bg); }
:is(.arcade-site,.arcade-launcher) .arcade-button--quiet { border-color: var(--launch-line); color: var(--launch-muted); }
:is(.arcade-site,.arcade-launcher) :is(a,button):focus-visible { outline: 2px solid var(--launch-accent); outline-offset: 4px; }
.arcade-scene { width: 100%; overflow: hidden; isolation: isolate; border-radius: 1rem; background: radial-gradient(ellipse at 50% 35%, #344c51, #1e3038 55%, #16232b); }
.arcade-scene > svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 1.2rem 1rem #0004); transition: transform .45s ease; }
.arcade-scene[data-arcade-scene='air'] { background: radial-gradient(ellipse at 55% 30%, #45513d, #26382f 55%, #172a28); }
.arcade-scene[data-scene-state='error'] { display: grid; place-items: center; min-height: 12rem; color: var(--launch-muted); }
.arcade-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--launch-line); font-size: .8rem; color: var(--launch-muted); }
.arcade-skip { position: fixed; top: 1rem; left: 1rem; z-index: 2; padding: .8rem 1rem; background: var(--launch-accent); color: #0c1318 !important; transform: translateY(-200%); }
.arcade-skip:focus { transform: none; }

/* Launchers are complete pages, independent of gameplay's selected theme. */
.arcade-launcher { display: none; position: fixed; inset: 0; width: 100%; min-width: 0; height: 100dvh; max-height: none; transform: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); margin: 0; border: 0; border-radius: 0; overflow: auto; overscroll-behavior: contain; pointer-events: auto; touch-action: pan-y; box-shadow: none; }
.arcade-launcher.active { display: block; }
.launcher-main { padding-block: 2rem; }
.launcher-hero { display: grid; gap: 1.5rem; }
.launcher-copy { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.arcade-launcher h1 { color: var(--launch-text); font-size: clamp(2.8rem, 8vw, 5.7rem); line-height: .98; width: auto; }
.arcade-launcher h1 span { display: block; color: var(--launch-accent); }
.launcher-lead { max-width: 34rem; color: var(--launch-muted); font-size: 1rem; line-height: 1.65; }
.launcher-actions { display: grid; gap: .65rem; width: 100%; }
.launcher-actions .arcade-button { justify-content: space-between; }
.launcher-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .875rem; color: var(--launch-muted); padding-top: .5rem; }
.launcher-facts span::before { content: ''; display: inline-block; width: .3rem; height: .3rem; margin-right: .5rem; background: var(--launch-accent); vertical-align: middle; }
.launcher-visual { min-width: 0; }
.launcher-art-caption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem .25rem; color: var(--launch-muted); font-size: .875rem; }
.launcher-bottom { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; margin-top: 1.5rem; }
.launcher-profile { display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; background: var(--launch-panel); border: 1px solid var(--launch-line); border-radius: .75rem; }
.launcher-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.arcade-launcher h2 { color: var(--launch-text); border: 0; padding: 0; width: auto; font-size: 1.15rem; line-height: 1.3; }
.launcher-balance { min-width: 0; max-width: 50%; overflow-wrap: anywhere; text-align: right; color: var(--launch-accent); font-size: .9rem; font-variant-numeric: tabular-nums; }
.launcher-profile-copy { overflow-wrap: anywhere; color: var(--launch-muted); font-size: .875rem; line-height: 1.5; }
.launcher-profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.launcher-profile-actions .arcade-button { flex: 1 1 auto; font-size: .875rem; min-height: 2.75rem; padding: .65rem .85rem; }
.arcade-launcher :is(.menu-auth-action-initially-hidden,.auth-session-action) { display: none; }
.launcher-profile-state { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .8rem; color: var(--launch-muted); }
.launcher-profile-state > * { min-width: 0; overflow-wrap: anywhere; }
.launcher-secondary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; padding: 1.25rem; border: 1px solid var(--launch-line); border-radius: .75rem; }
.launcher-secondary strong { display: block; font-size: .95rem; }
.launcher-secondary p { color: var(--launch-muted); font-size: .875rem; margin-top: .3rem; }
.launcher-secondary a { flex-shrink: 0; }
@media (min-width: 640px) {
  .arcade-wrap { width: min(100% - 4rem, 80rem); }
  .launcher-actions { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 32rem; }
}
@media (min-width: 1024px) {
  .arcade-nav { min-height: 6rem; }
  .launcher-main { padding-block: 3rem 2.5rem; }
  .launcher-hero { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: 3rem; }
  .launcher-bottom { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); margin-top: 2rem; }
  .launcher-profile { padding: 1.5rem; }
}
@media (max-width: 400px) {
  .arcade-brand-name small { display: none; }
  .arcade-brand-name strong { font-size: .8rem; }
  .arcade-brand { gap: .45rem; }
  .arcade-nav-links a { padding-inline: .45rem; font-size: .875rem; }
  .arcade-brand-mark { width: 2rem; height: 2rem; font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.arcade-site,.arcade-launcher) *, :is(.arcade-site,.arcade-launcher) *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
