/* フォントの適用と全体設定 */
@import url('https://googleapis.com');

:root {
    --color-base: dodgerblue;
    --color-select: lightseagreen;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100vw;
  height: 100dvh;
  background-color: #000000;
  background-image: linear-gradient(rgb(0 0 0 /0.3) 50%, rgb(255 255 255 /0.03) 50%);
  background-size: 100% 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'DotGothic16', monospace;
  color: #fff;
  overflow: hidden;
}

/* 画面いっぱいの画面枠 */
.game-container {
  width: 96vw;
  height: 92dvh;
  border: 8px solid var(--color-base);
  border-radius: 10px;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* ヘッダー・タイトル */
.game-header {
  border-bottom: 4px solid var(--color-base);
  padding-bottom: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.game-header h1 {
  font-family: 'DotGothic16', monospace;
  font-size: 1.5rem;
  color: #ffffff;
}

/* メニュー（サブページ切り替えボタン） */
.menu-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.menu-btn {
  flex: 1;
  background: var(--color-base);
  border: none;
  border-radius: 0 30px 30px 0;
  color: #000;
  padding: 10px;
  font-family: 'DotGothic16', monospace;
  font-size: 1.1rem;
  cursor: pointer;
}

.menu-btn:hover {
  background: #34495e;
  color: #f1c40f;
}

.menu-btn.active {
  background: var(--color-select);
  border-color: #f1c40f;
  color: #fff;
}

/* サブページ表示エリア */
.screen-body {
  flex: 1;
  border: 4px solid #555;
  border-radius: 10px;
  background: #111111;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

.page {
  display: none;
  height: 100%;
}

.page.active {
  display: block;
}

/* テキスト・ボックス共通 */
h2 {
  color: #f1c40f;
  margin-bottom: 12px;
  font-size: 1.3rem;
  border-left: 8px solid #00ffff;
  padding-left: 8px;
}

p {
  line-height: 1.8;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.pixel-box {
  border: 3px dashed #00ffff;
  background: rgb(0 255 255 / 0.05);
  padding: 12px;
  margin-top: 12px;
}

/* スマートフォン向けの調整 */
@media (max-width: 1320px) {
  body {
    font-size: clamp(18px, 2vw, 36px);
  }
  h2 {
    font-size: clamp(20px, 2vw, 36px);
  }
  .game-header h1 {
    font-size: clamp(20px, 2vw, 36px);
  }
  p {
    font-size: clamp(18px, 2vw, 36px);
  }
}
