/* Echo Journey is intentionally dependency-free: layout and presentation use native CSS only. */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07101e;
  color: #eef6ff;
}

* { box-sizing: border-box; }

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 50% -20%, #1b3d66 0, #07101e 48%, #030814 100%);
}

.app-shell {
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3.5rem) 0 2rem;
}

.intro { max-width: 44rem; }

.eyebrow {
  margin: 0 0 .4rem;
  color: #7ee4ff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .5rem; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; }
h2 { margin-bottom: .55rem; font-size: 1.05rem; }

.intro > p:last-child { color: #b9c9dc; line-height: 1.55; }

.scene-panel {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid #2d5f85;
  border-radius: 1rem;
  background: #081420;
  box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 35%);
}

#game-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 17rem;
  background: #071a2c;
  touch-action: none;
}

.webgl-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .5rem;
  padding: 2rem;
  color: #ffe9e9;
  text-align: center;
  background: #31151b;
}

.information {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid #28445f;
  border-radius: .75rem;
  background: rgb(11 30 48 / 88%);
}

.card p { margin-bottom: 0; color: #c8d8e9; line-height: 1.55; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  margin: 0 .1rem;
  padding: .1rem .35rem;
  border: 1px solid #6082a2;
  border-bottom-width: 2px;
  border-radius: .25rem;
  color: #fff;
  font-family: inherit;
  font-size: .82em;
  text-align: center;
}

button {
  margin-top: .85rem;
  padding: .55rem .8rem;
  border: 1px solid #7ee4ff;
  border-radius: .35rem;
  color: #00131b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #7ee4ff;
}

button:hover { background: #c0f5ff; }
button:focus-visible, #game-canvas:focus-visible { outline: 3px solid #ffe36c; outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .app-shell { width: min(100% - 1rem, 1080px); padding-top: 1rem; }
  #game-canvas { min-height: 13rem; }
  .information { grid-template-columns: 1fr; }
}
