.vfp-first-prep {
  position: fixed;
  z-index: 2147483600;
  inset: 0;
  color: #eef7fb;
  font-family: "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease-out, visibility 240ms ease-out;
}

.vfp-first-prep.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.vfp-first-prep-active,
html.vfp-first-prep-active body {
  overscroll-behavior: none;
}

html.vfp-first-prep-active body {
  overflow: hidden !important;
}

html.vfp-first-prep-active .vfp-footer-sticky {
  display: none !important;
}

.vfp-first-prep-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vfp-first-prep-shade {
  fill: rgba(1, 6, 12, .82);
}

.vfp-first-prep-highlight {
  position: fixed;
  z-index: 1;
  border: 1px solid rgba(105, 211, 255, .82);
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(105, 211, 255, .12), 0 0 28px rgba(50, 186, 231, .28), inset 0 0 22px rgba(50, 186, 231, .08);
  pointer-events: none;
  transition: left 300ms ease-out, top 300ms ease-out, width 300ms ease-out, height 300ms ease-out, opacity 160ms ease-out;
}

.vfp-first-prep-panel {
  position: fixed;
  z-index: 2;
  width: min(390px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 22px 23px 20px;
  border: 1px solid rgba(113, 203, 242, .34);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(12, 27, 43, .98), rgba(3, 10, 18, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .58), 0 0 36px rgba(50, 186, 231, .08);
  backdrop-filter: blur(16px);
  opacity: 1;
  transition: opacity 160ms ease-out, transform 240ms ease-out;
}

.vfp-first-prep-panel.is-changing {
  opacity: .15;
}

.vfp-first-prep-panel.is-centered {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.vfp-first-prep-step {
  margin: 0 0 10px;
  color: rgba(126, 211, 248, .68);
  font: 800 9px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .22em;
}

.vfp-first-prep-title {
  margin: 0;
  color: #f4fbff;
  font: 800 23px/1.15 "Bahnschrift Condensed", "Arial Narrow", ui-monospace, monospace;
  letter-spacing: .08em;
}

.vfp-first-prep-copy {
  margin: 15px 0 0;
  color: rgba(225, 239, 247, .88);
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: .025em;
}

.vfp-first-prep-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 21px;
}

.vfp-first-prep-actions[hidden] {
  display: none;
}

.vfp-first-prep-panel.is-centered .vfp-first-prep-actions {
  justify-content: center;
}

.vfp-first-prep-next,
.vfp-first-prep-skip,
.vfp-first-prep-choices button,
.vfp-first-prep-choices a {
  border: 0;
  color: inherit;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  cursor: pointer;
}

.vfp-first-prep-next {
  min-width: 118px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(99, 205, 250, .72);
  border-radius: 10px;
  background: rgba(50, 186, 231, .16);
  color: #e5f8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.vfp-first-prep-next:hover,
.vfp-first-prep-next:focus-visible {
  border-color: #c8f1ff;
  background: rgba(50, 186, 231, .26);
  outline: 2px solid rgba(105, 211, 255, .32);
  outline-offset: 3px;
}

.vfp-first-prep-skip {
  padding: 8px 2px;
  background: transparent;
  color: rgba(194, 215, 225, .65);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
}

.vfp-first-prep-skip:hover,
.vfp-first-prep-skip:focus-visible {
  color: #fff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.vfp-first-prep-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}

.vfp-first-prep-choices[hidden] {
  display: none;
}

.vfp-first-prep-choices button,
.vfp-first-prep-choices a {
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid rgba(105, 211, 255, .42);
  border-radius: 10px;
  background: rgba(50, 186, 231, .12);
  color: #e7f8ff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  display: grid;
  place-items: center;
}

.vfp-first-prep-choices button:hover,
.vfp-first-prep-choices button:focus-visible,
.vfp-first-prep-choices a:hover,
.vfp-first-prep-choices a:focus-visible {
  border-color: rgba(202, 242, 255, .9);
  background: rgba(50, 186, 231, .22);
  outline: 2px solid rgba(105, 211, 255, .28);
  outline-offset: 2px;
}

.vfp-first-prep-choices button.is-quiet {
  grid-column: 1 / -1;
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: rgba(210, 226, 234, .7);
}

:root[data-theme="light"] .vfp-first-prep-panel {
  border-color: rgba(21, 143, 193, .28);
  background: linear-gradient(145deg, rgba(252, 254, 255, .99), rgba(231, 245, 251, .98));
  color: #102633;
  box-shadow: 0 24px 70px rgba(4, 31, 46, .3), 0 0 34px rgba(50, 186, 231, .12);
}

:root[data-theme="light"] .vfp-first-prep-title { color: #0a2635; }
:root[data-theme="light"] .vfp-first-prep-copy { color: rgba(13, 43, 58, .82); }
:root[data-theme="light"] .vfp-first-prep-step { color: rgba(9, 126, 174, .72); }
:root[data-theme="light"] .vfp-first-prep-next,
:root[data-theme="light"] .vfp-first-prep-choices button,
:root[data-theme="light"] .vfp-first-prep-choices a { color: #073149; background: rgba(50, 186, 231, .13); }
:root[data-theme="light"] .vfp-first-prep-skip,
:root[data-theme="light"] .vfp-first-prep-choices button.is-quiet { color: rgba(13, 57, 78, .65); }

.first-prep-trigger-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(50, 186, 231, .48);
  border-radius: 50%;
  color: #32bae7;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.nav-drawer #first-prep-trigger {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(50, 186, 231, .2);
  background: rgba(50, 186, 231, .06);
  cursor: pointer;
}

.nav-drawer #first-prep-trigger:hover,
.nav-drawer #first-prep-trigger:focus-visible {
  border-color: rgba(105, 211, 255, .5);
  background: rgba(50, 186, 231, .12);
  outline: none;
}

.first-prep-trigger-label {
  display: block;
  min-width: 0;
  text-align: left;
}

.nav-drawer #first-prep-trigger .first-prep-trigger-label strong {
  margin: 0;
  font-size: 15px;
}

.first-prep-trigger-label small {
  display: block;
  margin-top: 2px;
  color: rgba(122, 201, 232, .72);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}

:root[data-theme="light"] .nav-drawer #first-prep-trigger {
  border-color: rgba(21, 143, 193, .24);
  background: rgba(50, 186, 231, .08);
}

@media (max-width: 760px) {
  .vfp-first-prep-panel,
  .vfp-first-prep-panel.is-centered {
    left: 12px !important;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    top: auto !important;
    width: auto;
    padding: 18px 18px 16px;
    transform: none !important;
    text-align: left;
  }

  .vfp-first-prep-title { font-size: 20px; }
  .vfp-first-prep-copy { margin-top: 11px; font-size: 11px; line-height: 1.68; }
  .vfp-first-prep-actions,
  .vfp-first-prep-panel.is-centered .vfp-first-prep-actions { justify-content: space-between; margin-top: 15px; }
  .vfp-first-prep-next { min-height: 40px; }
  .vfp-first-prep-choices { margin-top: 15px; }
}

@media (max-width: 360px) {
  .vfp-first-prep-panel,
  .vfp-first-prep-panel.is-centered {
    left: 9px !important;
    right: 9px;
    padding: 15px 15px 13px;
  }
  .vfp-first-prep-title { font-size: 18px; }
  .vfp-first-prep-copy { font-size: 10.5px; }
  .vfp-first-prep-choices { grid-template-columns: 1fr; }
  .vfp-first-prep-choices button.is-quiet { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .vfp-first-prep,
  .vfp-first-prep-panel,
  .vfp-first-prep-highlight {
    transition: none !important;
  }
}
