/* SHIO BATAKE ─ 塩の畑 */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&display=swap');

:root {
  --bg: #fff6e5;
  --bg-deep: #ffe9c2;
  --panel: #fffdf8;
  --line: #f0d9b0;
  --ink: #4a3a22;
  --ink-soft: #8a7454;
  --green: #3f9d4f;
  --red: #d9382e;
  --pink: #e8557a;
  --amber: #f2903a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 200, 120, 0.35), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(120, 210, 140, 0.25), transparent 45%),
    var(--bg);
}

.game-header { text-align: center; margin-bottom: 12px; }
.game-header h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--green);
  text-shadow: 3px 3px 0 #ffd9a8;
}
.tagline {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.2em;
}

/* 訪問者カウンター */
.counter-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.counter-digits { display: inline-flex; gap: 2px; }
.counter-digit {
  display: inline-block;
  min-width: 15px;
  padding: 2px 0;
  background: #4a3a22;
  color: #ffe9a8;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

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

.canvas-frame {
  width: 100%;
  max-width: 400px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 6px var(--line),
    0 18px 40px rgba(120, 80, 20, 0.22);
  background: #fffdf8;
}

#game {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: pointer;
}

.evolution {
  width: 100%;
  margin-top: 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 14px;
}
.evolution h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.evolution-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 2px;
}
.evolution-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  color: var(--ink-soft);
  min-width: 34px;
}
.evolution-list li .evo-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
  margin-bottom: 3px;
}
.evolution-list li .evo-arrow {
  align-self: center;
  color: #d9c19a;
  font-size: 11px;
  min-width: auto;
}
.evo-note { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.evo-note strong { color: var(--green); }

.controls-note {
  width: 100%;
  margin-top: 12px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
}
.controls-note p { margin: 0; }
.controls-note strong { color: var(--amber); }
.controls-note .hint { margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.chain-txt { color: var(--pink); font-weight: 700; }

.game-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 420px;
}
.game-footer p { margin: 0; }
.game-footer a { color: var(--green); }

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