.card {
  margin: 12px 16px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rules p + p, .rules ol { margin-top: 8px; }
.rules p, .rules li { line-height: 1.65; color: #3a4150; font-size: 14px; }
.rules ol { margin-bottom: 0; padding-left: 1.2em; }
.rules li + li { margin-top: 8px; }

.btn-primary, .btn-ghost {
  height: 48px;
  border-radius: 24px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
}
.btn-primary { width: 100%; background: var(--brand); color: #fff; }
.btn-primary:disabled { opacity: 0.5; }
.btn-ghost { background: var(--brand-soft); color: var(--brand-deep); }
.link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font-size: inherit;
}
.buy-line, .hint {
  margin: 10px 16px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.action-wrap { margin: 16px 16px 0; }
.enroll-form { margin: 4px 24px 24px; }
.enroll-form .btn-primary { margin-top: 16px; }
.enroll-form .hint { margin: 12px 0 0; }
.enroll-body .btn-primary { margin-top: 16px; }

.banner-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px;
}
.banner-scroller::-webkit-scrollbar { display: none; }
.banner {
  flex: 0 0 82%;
  scroll-snap-align: center;
  min-height: 176px;
  border: 0;
  border-radius: 18px;
  padding: 20px;
  text-align: left;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}
.banner strong { font-size: 22px; line-height: 1.3; }
.banner-kicker { font-size: 12px; opacity: 0.85; }
.banner-summary { font-size: 13px; line-height: 1.5; opacity: 0.95; }
.tone-violet { background: linear-gradient(145deg, #5b4fe0, #9a8cff); }
.tone-teal { background: linear-gradient(145deg, #148f7c, #67d0bf); }
.tone-amber { background: linear-gradient(145deg, #de8524, #f2c14e); }
.tone-blue { background: linear-gradient(145deg, #2f66d6, #7aa2ff); }
.tone-rose { background: linear-gradient(145deg, #d14b78, #f0a3bc); }
.tone-gold { background: linear-gradient(145deg, #c4962c, #f0dfb0); color: #2c2414; }

.rank h3 { font-size: 16px; margin-bottom: 12px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.rank-no { width: 28px; font-weight: 700; color: var(--brand); }
.rank-name { flex: 1; }
.rank-hours { color: var(--muted); font-size: 13px; }
.rank-row.is-self { background: var(--brand-soft); margin: 0 -8px; padding: 10px 8px; border-radius: 10px; }

.mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mask-dialog { z-index: 30; }
.mask-placeholder { z-index: 40; }
.dialog, .placeholder {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px 16px;
}
.dialog h2, .placeholder h2 { text-align: center; font-size: 17px; margin-bottom: 12px; }
.dialog-body { text-align: center; line-height: 1.6; color: #3a4150; font-size: 14px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 18px; }
.dialog-actions .btn-primary, .dialog-actions .btn-ghost { width: auto; flex: 1; height: 40px; font-size: 14px; }
.fail-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.qmark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  padding: 0;
  line-height: 16px;
  font-size: 12px;
}
.placeholder-box {
  height: 220px;
  margin: 8px 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.placeholder .btn-ghost { width: 100%; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(28, 31, 38, 0.88);
  color: #fff;
  font-size: 14px;
}

.field {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fff;
}
.enroll-body, .launch-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}
.launch-copy { text-align: center; font-size: 18px; line-height: 1.7; font-weight: 600; }
.launch-count { margin-top: 16px; text-align: center; color: var(--muted); }

.metrics { display: flex; gap: 8px; }
.metrics .cell { flex: 1; text-align: center; }
.metrics .value { font-size: 18px; font-weight: 700; }
.metrics .value.is-paused { font-size: 14px; color: var(--brand-deep); }
.metrics .label { margin-top: 4px; font-size: 12px; color: var(--muted); }
.bar { height: 8px; margin-top: 16px; border-radius: 99px; background: #eceaf8; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); }
.bar-goal { margin-top: 6px; text-align: right; font-size: 12px; color: var(--muted); }
.pause-note { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #5c6570; }
.started-copy, .init-caption { text-align: center; line-height: 1.7; }
.started-copy { margin: 12px 8px 4px; font-size: 16px; }
.init-caption { margin-top: 4px; font-size: 16px; color: #1f2430; }
.init-caption + .init-caption { margin-top: 2px; }
.init-time {
  margin: 28px 0 20px;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1px;
}

.ring { position: relative; width: 168px; height: 168px; margin: 12px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track, .ring-value { fill: none; stroke-width: 8; }
.ring-track { stroke: #eceaf8; }
.ring-value { stroke: var(--brand); stroke-linecap: round; }
.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}
.result-corner { text-align: right; font-size: 13px; color: #5c6570; }
.result-corner p + p { margin-top: 4px; }
.result-main { text-align: center; padding: 28px 8px 8px; }
.result-title { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.result-title.bad { color: var(--danger); }
.result-title.ok { color: var(--brand); }
.result-copy { margin-bottom: 4px; font-size: 14px; line-height: 1.65; color: #3a4150; text-align: left; }
.result-main .btn-primary { margin-top: 8px; }
.result-main .hint { margin-left: 0; margin-right: 0; }
.order-pop {
  width: calc(100vw - 32px);
  max-width: 420px;
  max-height: 86vh;
  overflow: auto;
}
.order-pop .order-guide { padding-bottom: 0; }
.order-pop .order-step { margin: 12px 0 0; }
.order-pop .btn-ghost { width: 100%; margin-top: 16px; }
.order-guide { padding-bottom: 24px; }
.order-step { margin: 16px 16px 0; }
.order-step h2 { font-size: 16px; font-weight: 700; line-height: 1.5; text-align: left; }
.order-step img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 12px;
  background: #fff;
}
