@charset "UTF-8";

/* ===== global variables ===== */
:root {
  --game-bg: #b9f7c9;
  --accent: #1dcc51;

  /* 床の高さ（ロジック用） */
  --floor-height: 120px;

}

/* ===== layout ===== */
body {
  font-family: "DotGothic16", sans-serif;
  overflow: hidden;
}

/* 余白を支配する親 */
.game-area {
  min-height: 100vh;
  padding: clamp(24px, 4vw, 32px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--game-bg);
}

/* 余白の内側で伸縮するステージ */
.game-stage {
  width: min(360px, calc(100vw - 64px));
  height: min(640px, 80vh);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== GAME WORLD ===== */
.game-world {
  position: relative;
  flex: 1;
  min-height: 280px;

  background: #f9fbff;
  border-radius: 14px;
  border: 2px solid #fff;
  overflow: hidden;

  touch-action: none;
  user-select: none;
}





/* ===== veggie ===== */
.veggie {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.12);
}

/* ===== score ===== */
.score-panel {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #0b1020;
  border: 2px solid #fff;
  border-radius: 10px;

  color: #fff;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
}

.score-value {
  color: var(--accent);
  font-size: 16px;
}

/* ===== 外部UI ===== */
.game-controls {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===== 共通：丸ボタン ===== */
.round-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;

  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.05em;

  color: #fff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 0 rgba(0,0,0,0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.round-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}

.round-btn.glitch {
  background: #ff5fa2;
}

.round-btn.reset {
  background: #10b981;
}
