/* Koi V3 launch notice r2: B2-native radius and progressive choices. */
.koi-v3-launch {
  --koi-v3-ink: #242426;
  --koi-v3-muted: #66666b;
  --koi-v3-line: #e8e8eb;
  --koi-v3-red: #df3038;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.koi-v3-launch.is-visible { opacity: 1; }

.koi-v3-launch__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 15, .66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.koi-v3-launch__dialog {
  position: relative;
  width: min(100%, 480px);
  box-sizing: border-box;
  padding: 34px 34px 30px;
  overflow: hidden;
  color: var(--koi-v3-ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--b2radius, 4px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3), 0 2px 10px rgba(0, 0, 0, .08);
  transform: translateY(10px) scale(.985);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.koi-v3-launch.is-visible .koi-v3-launch__dialog { transform: translateY(0) scale(1); }

.koi-v3-launch__dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 3px;
  background: var(--koi-v3-red);
}

.koi-v3-launch__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #727278;
  font: 400 27px/1 system-ui, sans-serif;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.koi-v3-launch__close:hover { color: var(--koi-v3-ink); background: #f5f5f6; }

.koi-v3-launch__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 50px 20px 0;
  color: #55555a;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .04em;
}

.koi-v3-launch__mark {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.koi-v3-launch__brand-name {
  display: inline-flex;
  align-items: center;
  height: 36px;
  line-height: 1;
}

.koi-v3-launch h2 {
  margin: 0;
  max-width: 360px;
  color: var(--koi-v3-ink);
  font: 700 clamp(24px, 5vw, 30px)/1.24 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -.025em;
}

.koi-v3-launch p {
  margin: 15px 0 24px;
  color: var(--koi-v3-muted);
  font: 400 15px/1.75 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.koi-v3-launch__choices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.koi-v3-launch__choice {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: #55555a;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.koi-v3-launch__choice--nested {
  margin-left: 29px;
  animation: koi-v3-choice-reveal 160ms ease-out;
}

.koi-v3-launch__choice[hidden] { display: none; }

@keyframes koi-v3-choice-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.koi-v3-launch__choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.koi-v3-launch__check {
  position: relative;
  width: 19px;
  height: 19px;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid #c7c7cc;
  border-radius: 6px;
  transition: background 150ms ease, border-color 150ms ease;
}

.koi-v3-launch__choice input:checked + .koi-v3-launch__check {
  background: var(--koi-v3-red);
  border-color: var(--koi-v3-red);
}

.koi-v3-launch__choice input:checked + .koi-v3-launch__check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.koi-v3-launch__choice input:focus-visible + .koi-v3-launch__check,
.koi-v3-launch button:focus-visible {
  outline: 3px solid rgba(223, 48, 56, .26);
  outline-offset: 3px;
}

.koi-v3-launch__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.koi-v3-launch__actions button {
  min-height: 46px;
  padding: 0 18px;
  font: 650 14px/1 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  border-radius: var(--b2radius, 4px);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.koi-v3-launch__actions button:active { transform: translateY(1px); }

.koi-v3-launch__later {
  color: #5d5d62;
  background: #fff;
  border: 1px solid var(--koi-v3-line);
}

.koi-v3-launch__later:hover { color: var(--koi-v3-ink); background: #f7f7f8; border-color: #d9d9dc; }

.koi-v3-launch__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: var(--koi-v3-ink);
  border: 1px solid var(--koi-v3-ink);
  box-shadow: 0 8px 20px rgba(36, 36, 38, .16);
}

.koi-v3-launch__primary:hover { background: #0f0f10; border-color: #0f0f10; }

@media (max-width: 560px) {
  .koi-v3-launch { align-items: end; padding: 12px; }
  .koi-v3-launch__dialog { width: 100%; padding: 30px 22px 22px; border-radius: var(--b2radius, 4px); }
  .koi-v3-launch h2 { font-size: 25px; }
  .koi-v3-launch__actions { flex-direction: column-reverse; }
  .koi-v3-launch__actions button { width: 100%; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .koi-v3-launch,
  .koi-v3-launch__dialog,
  .koi-v3-launch__actions button { transition: none; }
  .koi-v3-launch__choice--nested { animation: none; }
}
