* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--color-paper);
  overflow: hidden;
}

body {
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scene.scene--active {
  display: flex;
}

.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.screen-pad {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  max-height: 100%;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  overflow-y: auto;
}

/* ゲーム本体の見出しはデジタルドット文字。筆文字（--font-display）は
   TSUNAGIブランド名の表示（.brand-mark）専用に予約する。 */
.screen-heading {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--color-ink);
  margin: 0;
  text-align: center;
}

.screen-subheading {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-ink-soft);
  margin: var(--space-2) 0 0;
}

.game-frame {
  position: relative;
  width: 100%;
  height: 100%;
}
