﻿@import url("https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Noto+Serif+SC:wght@400;600&display=swap");

:root {
  --bg-1: #fff4e2;
  --bg-2: #f9e3c5;
  --ink: #2f2a24;
  --accent: #e07a3f;
  --accent-2: #3b7c6c;
  --card: #fffdf7;
  --border: #efd7b4;
  --shadow: 0 18px 40px rgba(46, 42, 37, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Serif SC", "STSong", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(255, 208, 150, 0.45), transparent 55%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

#app {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

h1 {
  font-family: "ZCOOL KuaiLe", "Noto Serif SC", serif;
  letter-spacing: 1px;
}

button {
  font-family: "ZCOOL KuaiLe", "Noto Serif SC", serif;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 42, 37, 0.12);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.hike-app {
  display: grid;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.werewolf-app {
  display: grid;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.hike-header {
  display: grid;
  gap: 6px;
}

.hike-title {
  font-family: "ZCOOL KuaiLe", "Noto Serif SC", serif;
  font-size: 32px;
}

.hike-sub {
  color: #6b5d4b;
  font-size: 13px;
}

.hike-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: floatIn 0.35s ease;
}

.hike-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 229, 197, 0.4), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.hike-card > * {
  position: relative;
  z-index: 1;
}

.stat-card {
  background: linear-gradient(120deg, rgba(255, 243, 225, 0.9), rgba(255, 255, 255, 0.9));
}

.stat-card.compact {
  padding: 12px;
}

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-stats {
  margin-top: 8px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tiny-btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0d7b7;
  font-size: 12px;
}

.stat-pill strong {
  font-size: 14px;
}

.card-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.inventory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px dashed #e1b98a;
  background: #fff4e1;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.chip.dead {
  opacity: 0.5;
  text-decoration: line-through;
}

.chip.player {
  border-color: var(--accent);
  background: rgba(224, 122, 63, 0.12);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.shop-item {
  background: #fff;
  border: 1px solid #efd7b4;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.shop-name {
  font-weight: 600;
}

.shop-meta {
  font-size: 12px;
  color: #6b5d4b;
}

.option-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.option-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e8cfa9;
  background: #fff;
  font-size: 14px;
}

.option-btn.disabled {
  opacity: 0.55;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.option-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 999px;
  border: 1px solid rgba(224, 122, 63, 0.4);
  background: rgba(224, 122, 63, 0.12);
  color: #8d4a23;
}

.option-cost {
  font-size: 11px;
  color: #8a6f52;
  margin-top: 4px;
}

.quick-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quick-section {
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed #e3c39b;
  background: rgba(255, 255, 255, 0.7);
}

.quick-title {
  font-size: 12px;
  color: #6a5a47;
  margin-bottom: 6px;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scene-lines {
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 1.6;
}

.event-card {
  border: 1px solid rgba(225, 163, 122, 0.7);
  background: linear-gradient(160deg, rgba(255, 250, 242, 0.98), rgba(255, 235, 214, 0.92));
  box-shadow: 0 16px 32px rgba(215, 128, 96, 0.16);
}

.event-card .card-title {
  font-size: 18px;
}

.event-card .scene-lines {
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .event-card {
    padding: 18px;
  }

  .option-btn {
    font-size: 15px;
    padding: 14px 16px;
  }

  .stat-pill {
    font-size: 11px;
  }
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
}

.ghost-btn {
  background: transparent;
  border: 1px solid #d3b38b;
  color: #6b5d4b;
}

.small-btn {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
}

.result-line {
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent-2);
}

.flash-note {
  margin-top: 10px;
  font-size: 13px;
  color: #5a4a37;
  background: rgba(255, 245, 230, 0.8);
  border: 1px solid #edd2aa;
  padding: 8px 10px;
  border-radius: 10px;
}

.summary-card {
  background: linear-gradient(135deg, rgba(255, 249, 240, 0.95), rgba(255, 239, 220, 0.9));
}

.summary-grid {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #4a4035;
}

.share-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #e2b77f;
  background: rgba(255, 255, 255, 0.8);
}

.share-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.share-text {
  font-size: 13px;
  line-height: 1.5;
  color: #3b332b;
}

.badge-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.badge-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 243, 235, 0.9);
  border: 1px solid rgba(232, 146, 122, 0.5);
  box-shadow: 0 10px 22px rgba(230, 132, 102, 0.12);
}

.badge-title {
  font-family: "ZCOOL KuaiLe", "Noto Serif SC", serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: #8c2f1c;
}

.badge-desc {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(110, 54, 44, 0.9);
}

.report-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 239, 230, 0.9);
  border: 1px solid rgba(230, 140, 108, 0.6);
  box-shadow: 0 12px 26px rgba(224, 120, 94, 0.12);
}

.summary-detail {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(219, 174, 132, 0.6);
  background: rgba(255, 250, 244, 0.9);
}

.summary-detail summary {
  cursor: pointer;
  font-weight: 600;
  color: #8c6042;
  margin-bottom: 8px;
}

.muted {
  color: #7b6a56;
  font-size: 12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  #app {
    padding: 24px 16px 40px;
  }

  .hike-title {
    font-size: 26px;
  }

  button {
    width: 100%;
  }

  .stat-grid {
    flex-direction: column;
  }
}
