/* SHIO INVADERS ─ 塩 vs 胡椒 */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=DotGothic16&display=swap');

:root {
  --bg: #05060f;
  --panel: #0b0e1e;
  --line: #1d2340;
  --salt: #f2f4ff;
  --neon: #7df9ff;
  --amber: #ffd35c;
  --pink: #ff7a90;
  --text: #c9cfe8;
  --text-dim: #6a7194;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DotGothic16', 'Noto Sans JP', monospace, sans-serif;
  -webkit-font-smoothing: none;
}

.crt {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 26px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(125, 249, 255, 0.06), transparent 55%),
    var(--bg);
}

.game-header { text-align: center; margin-bottom: 14px; }
.game-header h1 {
  margin: 0;
  font-family: 'Press Start 2P', 'DotGothic16', monospace;
  font-size: clamp(20px, 5.4vw, 34px);
  letter-spacing: 0.06em;
  color: var(--salt);
  text-shadow:
    0 0 6px rgba(125, 249, 255, 0.9),
    0 0 22px rgba(125, 249, 255, 0.45),
    3px 3px 0 #1a2f6e;
}
.tagline {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--neon);
  letter-spacing: 0.4em;
  text-shadow: 0 0 8px rgba(125, 249, 255, 0.6);
}

/* 訪問者カウンター（ゲーム画面の外に表示） */
.counter-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 5px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.counter-label { white-space: nowrap; }
.counter-digits { display: inline-flex; gap: 2px; }
.counter-digit {
  display: inline-block;
  min-width: 14px;
  padding: 2px 0;
  background: #000;
  color: var(--amber);
  border: 1px solid #2a3358;
  border-radius: 2px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 0 6px rgba(255, 211, 92, 0.6);
}

.game-main {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.canvas-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(125, 249, 255, 0.12),
    0 0 40px rgba(125, 249, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.6);
  background: #000;
}

#game {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  image-rendering: pixelated;
  cursor: crosshair;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.16) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: multiply;
}

.controls-note {
  width: 100%;
  max-width: 480px;
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.9;
}
.controls-note p { margin: 0; }
.controls-note strong { color: var(--amber); }
.controls-note .hint { margin-top: 6px; color: var(--text-dim); font-size: 12px; }
.combo-txt { color: var(--pink); }

.game-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 2;
}
.game-footer p { margin: 0; }

@media (max-width: 400px) {
  .controls-note { font-size: 12px; padding: 10px 12px; }
}
