/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #09090f;
  font-family: 'Courier New', Courier, monospace;
}

/* ── SCREEN SYSTEM ── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.9s ease;
}

.screen.off {
  opacity: 0;
  pointer-events: none;
}

/* ── FLASH OVERLAY ── */
#flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ── 共通: ゴーストボタン ── */
.ghost-btn {
  background: none;
  border: 1px solid #dcdcdc;
  color: #dcdcdc;
  font-family: inherit;
  letter-spacing: 0.4em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: color 0.3s, border-color 0.3s, opacity 0.9s ease;
}

.ghost-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.ghost-btn:hover {
  color: #aaa;
  border-color: #aaa;
}

/* ── 共通: フェードイン要素 ── */
.fadein {
  opacity: 0;
  transition: opacity 1s ease;
}

.fadein.show {
  opacity: 1;
}
