:root {
  --paper: #ffffff;
  --cream: #fff3e6;
  --ink: #1a1a1a;
  --orange: #ff8c2a;
  --deep: #ff5a1f;
  --yellow: #ffc23a;
  --peach: #ffd6ae;
  --dim: #7a6a5e;
  --danger: #e8452c;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: linear-gradient(var(--paper), var(--cream)) fixed;
  color: var(--ink);
  font-family: 'Zen Maru Gothic', 'Yu Gothic UI', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  line-height: 1.7;
  overflow-x: hidden;
}
[hidden] { display: none !important; }

/* 背景の水玉(端に半分はみ出す) */
.dot {
  position: fixed;
  z-index: 0;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
}
.dot.d1 { width: 180px; height: 180px; top: -70px; right: -80px; }
.dot.d2 { width: 120px; height: 120px; bottom: 6vh; left: -92px; background: var(--yellow); }

main {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.status {
  margin: 0 0 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--peach);
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
  max-width: 100%;
}
.status.live { background: var(--ink); color: #fff; }

h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.3;
}
h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 900; }
.lead { margin: 0 0 16px; }
.lead b { color: var(--deep); font-weight: 900; }
.note { margin: 8px 0 0; font-size: 0.8rem; color: var(--dim); min-height: 1.2em; }
.note.err { color: var(--danger); font-weight: 700; }

.terms {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
  font-size: 0.92rem;
}
.terms li { padding: 10px 0; border-bottom: 1px dashed #c9b8a8; }
.terms b { display: block; font-size: 0.78rem; font-weight: 700; color: var(--dim); }

/* 主役のボタンだけステッカー(黒ぶち+ずらし影) */
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  text-shadow: -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.hero:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.hero:disabled { background: #f1e8df; border-color: #b9a898; color: #a89888; text-shadow: none; box-shadow: none; cursor: default; }
.sub {
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.agree-area { position: relative; padding-bottom: 64px; }
.runaway {
  position: absolute;
  left: 0;
  bottom: 8px;
  padding: 6px 12px;
  border: 1px solid #c9b8a8;
  border-radius: 999px;
  background: #fff;
  color: var(--dim);
  font-size: 0.85rem;
  transition: left 0.18s cubic-bezier(0.3, 1.6, 0.6, 1), bottom 0.18s cubic-bezier(0.3, 1.6, 0.6, 1);
}
.runaway:disabled { border-style: dashed; cursor: default; }

.field { display: block; margin: 0 0 4px; }
.field span { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.field input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 1.05rem;
}
#join { margin-top: 20px; }

#card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-1.5deg);
  margin: 4px 0 24px;
}
.row { display: flex; gap: 10px; align-items: stretch; }
.row .hero { flex: 1; }

.prod { margin-top: 40px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.term {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--peach);
  font: 500 0.85rem/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  white-space: pre-wrap;
}
.deploy { background: var(--deep); }

.pop { animation: pop 0.32s cubic-bezier(0.3, 1.6, 0.6, 1); }
@keyframes pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .pop { animation: none; }
  .runaway, .hero { transition: none; }
}
