:root {
  --background: #ffffff;
  --foreground: #171717;
  --accent: #ea580c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Hiragino Sans", "Yu Gothic", Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

.demo-badge {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #171717;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 6px 8px;
  letter-spacing: 0.02em;
}

.screen {
  min-height: 100vh;
  padding-top: 34px;
  display: none;
  flex-direction: column;
  align-items: center;
}

.screen.active {
  display: flex;
}

.card {
  max-width: 420px;
  width: 100%;
  margin: 24px auto;
  padding: 0 20px;
  text-align: center;
}

h1 {
  font-size: 22px;
  margin: 12px 0;
}

p.lead {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 16px;
}

.btn.ghost {
  background: none;
  color: #888;
  border: 1px solid #ccc;
  font-weight: normal;
  font-size: 13px;
  padding: 8px 16px;
}

.qr-frame {
  width: 220px;
  height: 220px;
  margin: 24px auto;
  border: 3px solid var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #fff7ed,
    #fff7ed 10px,
    #ffedd5 10px,
    #ffedd5 20px
  );
  font-size: 13px;
  color: #9a3412;
  animation: qr-pulse 1.4s ease-in-out infinite;
}

@keyframes qr-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.3); }
  50% { box-shadow: 0 0 0 14px rgba(234, 88, 12, 0); }
}

/* ===== 押印演出（実アプリ app/globals.css の該当ブロックをそのまま移植） ===== */
@keyframes stamp-land {
  from { transform: scale(2.4) rotate(var(--stamp-rotate, 0deg)); opacity: 0; }
  to { transform: scale(1) rotate(var(--stamp-rotate, 0deg)); opacity: 1; }
}
@keyframes board-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}
@keyframes dust-burst {
  from { transform: translate(0, 0) scale(1); opacity: 0.8; }
  to { transform: translate(var(--dust-x, 0), var(--dust-y, 0)) scale(0); opacity: 0; }
}
.stamp-land-animation { animation: stamp-land 220ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.board-shake-animation { animation: board-shake 220ms ease-out 220ms; }
.dust-particle { animation: dust-burst 400ms ease-out 200ms forwards; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: #fff;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  max-width: 320px;
}

.stamp-img-wrap { position: relative; }

.dust-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fcd34d;
}

/* ===== スタンプ帳（地図） ===== */
.map-wrap {
  position: relative;
  width: min(92vw, 380px);
  margin: 12px auto;
}
.map-wrap img.map-base {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}
.map-wrap img.ward-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.map-wrap img.ward-fill.filled {
  opacity: 1;
}
.ward-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #d1d5db;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}
.ward-dot.done {
  background: var(--accent);
}
.progress-line {
  font-size: 14px;
  color: #444;
  margin: 8px 0 0;
}
.ward-info {
  min-height: 60px;
  font-size: 13px;
  color: #333;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 10px;
  width: min(92vw, 380px);
}

.footer-note {
  color: #999;
  font-size: 11px;
  margin: 28px 0 40px;
}
