:root {
  color-scheme: light dark;
  --page: #f7f7fb;
  --text: #202333;
  --muted: #595e74;
  --card: #ffffff;
  --border: #e8e9f2;
  --brand: #5c68d0;
  --soft: #eef0fc;
  --warn: #fff1dc;
  --warn-text: #6b3a00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #101119;
    --text: #f0f1fa;
    --muted: #b6bcd2;
    --card: #1b1d2a;
    --border: #303449;
    --brand: #5c68d0;
    --soft: #282d4a;
    --warn: #3d2d16;
    --warn-text: #ffd49a;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page {
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 32px 20px;
  text-align: center;
}
.brand {
  color: var(--brand);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}
.rings {
  width: 126px;
  height: 80px;
  margin: 0 auto 26px;
  position: relative;
}
.rings span {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 76px;
  border: 5px solid #7984e1;
  border-radius: 50%;
}
.rings span + span {
  left: 48px;
  border-color: #b3b9ee;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
}
.intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.box {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
}
.box h2 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
  margin: 0 0 4px;
}
.muted {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.event {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}
.event strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
}
.event p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.notice {
  text-align: left;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
  background: var(--soft);
}
.notice.warn {
  background: var(--warn);
  color: var(--warn-text);
}
.grid-head,
.person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 64px;
  align-items: center;
  column-gap: 4px;
}
.grid-head {
  margin-top: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--muted);
}
.grid-head span {
  text-align: center;
}
.person {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.person:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.person strong {
  font-size: 16px;
  line-height: 1.35;
  display: block;
  overflow-wrap: anywhere;
}
.person small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.cell {
  display: flex;
  justify-content: center;
}
.choice {
  appearance: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cdd0e0;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.dot svg {
  width: 12px;
  height: 12px;
  opacity: 0;
}
.choice[aria-pressed="true"] .dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--soft);
}
.choice[aria-pressed="true"] svg {
  opacity: 1;
}
.none {
  display: block;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--muted);
}
.button {
  appearance: none;
  cursor: pointer;
  display: block;
  width: 100%;
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 650;
}
.button.secondary {
  background: var(--card);
  color: var(--brand);
  border: 1px solid var(--border);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.hint {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 16px 8px 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.4;
}
.summary-row strong {
  overflow-wrap: anywhere;
}
footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
[hidden] {
  display: none !important;
}
@media (min-width: 700px) {
  .page {
    max-width: 520px;
    padding: 56px 24px 40px;
  }
  .brand {
    margin-bottom: 52px;
  }
  h1 {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  .brand,
  .button.secondary {
    color: #a6afff;
  }
}
.date-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--warn);
  color: var(--warn-text);
  margin-top: 8px;
}
