:root {
  --color-bg:          #ffffff;
  --color-surface:     #f7f7f8;
  --color-text-strong: #0d0d12;
  --color-text-muted:  #8a8a99;
  --color-accent:      #fe2c55;
  --color-accent-fg:   #ffffff;
  --color-deny-fg:     #8a8a99;
  --color-icon-teal:   #25d1d1;
  --color-icon-pink:   #fe2c55;
  --radius-btn:  14px;
  --radius-card: 20px;
  --btn-height:    56px;
  --max-width:     420px;
  --h-padding:     24px;
}
.av, .av *, .av *::before, .av *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.av {
  background: var(--color-bg);
  color: var(--color-text-strong);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.av-on, .av-on body {
  height: 100%;
  overscroll-behavior: none;
}

/* WKWebView: lock age gate fullscreen, cover safe areas */
html.wkwv .av {
  position: fixed;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 9999;
  overflow-y: auto;
}
html.wkwv .lp {
  display: none;
}
html.wkwv.av-done .av {
  display: none;
}
html.wkwv.av-done .lp {
  display: block;
}
.av .page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
               env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.av .page__inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 var(--h-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.av .topbar {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--h-padding) 0;
  text-align: center;
}
.av .topbar__label {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-strong);
  letter-spacing: -0.02em;
}
.av .illustration {
  width: clamp(280px, 84vw, 400px);
  height: auto;
}
.av .copy {
  margin-top: clamp(24px, 5vh, 36px);
  text-align: center;
}
.av .copy__heading {
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text-strong);
}
.av .copy__sub {
  margin-top: 10px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.av .cta {
  width: 100%;
  max-width: var(--max-width);
  padding: 24px var(--h-padding) calc(env(safe-area-inset-bottom, 0px) + 84px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.av .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--btn-height);
  background: var(--color-accent);
  color: var(--color-accent-fg);
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: transform 80ms ease, opacity 80ms ease;
  text-decoration: none;
}
.av .btn-primary:active {
  transform: scale(0.97);
  opacity: 0.9;
}
.av #screen-step2, .av #screen-step3 {
  display: none;
}
.av .hidden {
  display: none !important;
}
.av #screen-step2 {
  grid-template-rows: auto 1fr;
  align-items: stretch;
  justify-content: initial;
  height: 100dvh;
}
.av .s2-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--h-padding);
  overflow-y: auto;
}
.av .s2-cake {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.av .s2-heading {
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text-strong);
  text-align: center;
  width: 100%;
}
.av .s2-sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
  width: 100%;
}
.av .s2-date-row {
  margin-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e4e4ea;
  font-size: 17px;
  color: var(--color-text-strong);
  letter-spacing: -0.01em;
  width: 100%;
  flex-shrink: 0;
}
.av .s2-main .btn-primary {
  margin-top: 14px;
  flex-shrink: 0;
}
.av .s2-picker {
  margin-top: 20px;
  width: 100%;
  height: 308px;
  flex-shrink: 0;
  position: relative;
}
.av .s2-picker__highlight {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: var(--h-padding);
  right: var(--h-padding);
  height: 44px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}
.av .s2-picker__cols {
  display: flex;
  height: 308px;
  padding: 0 var(--h-padding);
  -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.7) 6%,
        black 18%,
        black 72%,
        rgba(0,0,0,0.5) 88%,
        transparent 100%
      );
  mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.7) 6%,
        black 18%,
        black 72%,
        rgba(0,0,0,0.5) 88%,
        transparent 100%
      );
}
.av .s2-picker__col {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.av .s2-picker__col::-webkit-scrollbar {
  display: none;
}
.av .s2-picker__item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-size: 18px;
  color: #b0b0ba;
  user-select: none;
  -webkit-user-select: none;
}
.av .s2-picker__item.is-sel {
  color: var(--color-text-strong);
  font-weight: 600;
}
.av .s3-inner {
  justify-content: center;
  gap: 0;
}
.av .s3-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #4cd6a0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 24px;
}
.av .s3-heading {
  font-size: clamp(22px,6vw,26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text-strong);
  text-align: center;
  margin: 0 0 10px;
}
.av .s3-text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}
.av .s3-text--first {
  margin: 0 0 6px;
}
