/* 最小限の手書き風スタイル。Tailwind CDN と併用。 */

@import url('https://fonts.googleapis.com/css2?family=Klee+One:wght@400;600&family=Yomogi&display=swap');

:root {
  --paper: #fbf7ec;
  --ink: #2b2b2b;
  --leaf: #5c8a4a;
  --moss: #3e6b36;
  --clay: #c97a5b;
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Klee One', 'Yomogi', system-ui, sans-serif;
}

.paper-bg {
  background-color: var(--paper);
  background-image: radial-gradient(#e7dcc2 1px, transparent 1px);
  background-size: 18px 18px;
}

.font-hand { font-family: 'Klee One', 'Yomogi', system-ui, sans-serif; }

/* 地図 */
.map-pref {
  fill: #f5ecd2;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 160ms ease;
  cursor: pointer;
}
.map-pref:hover { fill: #c9e3b5; }
.map-pref.has-creatures { fill: #e6f1d8; }
.map-pref.has-creatures:hover { fill: #a7d08a; }
.map-label { font-size: 9px; fill: var(--ink); pointer-events: none; user-select: none; }

/* 地方ブロックボタン */
.region-btn {
  border: 1.6px solid var(--ink);
  background: #fff8e8;
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: background 120ms ease;
}
.region-btn:hover { background: #c9e3b5; }
.region-btn.active { background: var(--moss); color: #fff; border-color: var(--moss); }

/* 生体タイル */
.creature-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(43,43,43,.2);
  background: rgba(251,247,236,.4);
  aspect-ratio: 1 / 1;
  display: block;
}
.creature-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 300ms ease;
}
.creature-tile:hover img { transform: scale(1.04); }
.creature-tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 5px 6px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.3), transparent);
  pointer-events: none;
}
.creature-tile .cap .shop {
  font-size: 10px;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.creature-tile .cap .tag {
  display: inline-block;
  background: rgba(255,255,255,.85);
  color: var(--ink);
  font-size: 9px;
  padding: 0 5px;
  border-radius: 9999px;
  margin-right: 3px;
  margin-top: 2px;
  line-height: 1.4;
}

/* 課金枠のプレースホルダ（Phase3実装までコメントアウトで非表示） */
.sponsored-slot {
  border: 2px dashed var(--clay);
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--clay);
  font-size: 11px;
  background: rgba(201,122,91,.05);
}
