.anv2,
.anv2 * { box-sizing: border-box; }

.anv2 {
  --anv2-ink: #f8f3e8;
  --anv2-soft: #c8c9d9;
  --anv2-blue: #91d8ee;
  --anv2-gold: #dfc17d;
  --anv2-gold-2: #f5dfaa;
  --anv2-night: #050817;
  width: min(1180px, calc(100% - 24px));
  margin: 18px auto 44px;
  color: var(--anv2-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.anv2 [hidden] { display: none !important; }
.anv2 button,
.anv2 input { font: inherit; }
.anv2 button { -webkit-tap-highlight-color: transparent; }

.anv2-scene {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(223, 193, 125, .42);
  border-radius: 30px;
  background: #070a1b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.anv2-background,
.anv2-shade,
.anv2-stars { position: absolute; inset: 0; }

.anv2-background {
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) brightness(.72);
}

.anv2-shade {
  z-index: -3;
  background:
    radial-gradient(circle at 50% 38%, rgba(26, 66, 127, .08) 0 23%, rgba(3, 6, 20, .18) 48%, rgba(3, 5, 16, .9) 100%),
    linear-gradient(180deg, rgba(3, 5, 16, .18), rgba(3, 5, 16, .34) 38%, rgba(3, 5, 16, .92) 83%, #030510 100%);
}

.anv2-stars {
  z-index: -2;
  opacity: .34;
  background-image:
    radial-gradient(circle, rgba(255, 248, 219, .9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(145, 216, 238, .8) 0 1px, transparent 1.5px);
  background-size: 83px 83px, 127px 127px;
  background-position: 13px 7px, 31px 49px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.anv2-stars-b {
  opacity: .18;
  transform: scale(1.06) rotate(3deg);
  animation: anv2-drift 22s ease-in-out infinite alternate;
}

.anv2-start,
.anv2-casting,
.anv2-result { position: relative; z-index: 2; }

.anv2-start { padding: 66px 56px 48px; }

.anv2-intro {
  max-width: 780px;
  margin: 0 auto 310px;
  text-align: center;
  text-shadow: 0 3px 25px rgba(0, 0, 0, .9);
}

.anv2-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--anv2-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  line-height: 1.3;
  text-transform: uppercase;
}

.anv2-intro h2,
.anv2-reading > h2,
.anv2-guide h3,
.anv2-path-random h3 {
  margin: 0;
  color: var(--anv2-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.anv2-intro h2 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  text-wrap: balance;
}

.anv2-intro > p {
  max-width: 690px;
  margin: 22px auto 0;
  color: #e5e4eb;
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}

.anv2-paths {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 56px minmax(0, .92fr);
  align-items: stretch;
  max-width: 1010px;
  margin: 0 auto;
}

.anv2-path {
  position: relative;
  min-width: 0;
  padding: 32px;
  border: 1px solid rgba(223, 193, 125, .28);
  background: linear-gradient(145deg, rgba(6, 10, 29, .92), rgba(14, 17, 40, .86));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(17px);
}

.anv2-path-input { border-radius: 22px 7px 7px 22px; }
.anv2-path-random {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 7px 22px 22px 7px;
  text-align: center;
}

.anv2-path-mark {
  position: absolute;
  top: 17px;
  right: 20px;
  color: rgba(223, 193, 125, .42);
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: .14em;
}

.anv2-path-input > label {
  display: block;
  margin: 0 42px 12px 0;
  color: var(--anv2-gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.anv2-input-wrap { position: relative; }

.anv2-number-input {
  width: 100%;
  height: 76px;
  padding: 4px 62px 5px 21px;
  border: 1px solid rgba(145, 216, 238, .34);
  border-radius: 12px;
  outline: 0;
  background: rgba(2, 5, 18, .72);
  color: #fff9e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  letter-spacing: .12em;
  box-shadow: inset 0 0 24px rgba(19, 81, 129, .14);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.anv2-number-input::placeholder {
  color: rgba(225, 224, 233, .42);
  font-size: 21px;
  letter-spacing: .03em;
}

.anv2-number-input:focus {
  border-color: var(--anv2-blue);
  background: rgba(2, 6, 21, .92);
  box-shadow: 0 0 0 3px rgba(145, 216, 238, .12), inset 0 0 30px rgba(19, 81, 129, .22);
}

.anv2-number-input[aria-invalid="true"] { border-color: #f09ca2; }

.anv2-input-wrap > span {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--anv2-gold);
  font-size: 23px;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 8px rgba(223, 193, 125, .55));
}

.anv2-path-input > small {
  display: block;
  margin: 9px 2px 18px;
  color: #aaaebf;
  font-size: 12px;
  line-height: 1.5;
}

.anv2-error {
  margin: -8px 0 13px;
  color: #ffc1c5;
  font-size: 13px;
}

.anv2-primary,
.anv2-share,
.anv2-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .035em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.anv2-primary {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #e6ca88;
  background: linear-gradient(135deg, #f1d895, #b88b3f);
  color: #14101a;
  box-shadow: 0 9px 26px rgba(169, 122, 46, .26), inset 0 1px rgba(255, 255, 255, .65);
}

.anv2-primary > span,
.anv2-share > span,
.anv2-again > span { margin-right: 9px; font-size: 18px; }

.anv2-primary:hover,
.anv2-share:hover,
.anv2-again:hover { transform: translateY(-2px); }

.anv2-primary:focus-visible,
.anv2-share:focus-visible,
.anv2-again:focus-visible,
.anv2-common button:focus-visible {
  outline: 3px solid rgba(145, 216, 238, .72);
  outline-offset: 3px;
}

.anv2-common { margin-top: 18px; }
.anv2-common > span {
  display: block;
  margin-bottom: 9px;
  color: #9da1b4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.anv2-common > div { display: flex; flex-wrap: wrap; gap: 7px; }
.anv2-common button {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid rgba(145, 216, 238, .22);
  border-radius: 999px;
  background: rgba(145, 216, 238, .06);
  color: #d6eef5;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.anv2-common button:hover { border-color: rgba(145, 216, 238, .65); background: rgba(145, 216, 238, .13); }

.anv2-or { position: relative; z-index: 3; display: grid; place-items: center; }
.anv2-or::before {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(223, 193, 125, .42), transparent);
}
.anv2-or span {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(223, 193, 125, .42);
  border-radius: 50%;
  background: #0a0d21;
  color: var(--anv2-gold);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
}

.anv2-mini-orbit {
  position: relative;
  width: 96px;
  height: 96px;
  margin: -3px auto 16px;
}
.anv2-mini-orbit i,
.anv2-mini-orbit b {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.anv2-mini-orbit i { border: 1px solid rgba(223, 193, 125, .42); border-radius: 50%; }
.anv2-mini-orbit i:nth-child(1) { width: 92px; height: 92px; }
.anv2-mini-orbit i:nth-child(2) { width: 65px; height: 65px; border-color: rgba(145, 216, 238, .42); }
.anv2-mini-orbit i:nth-child(3) { width: 38px; height: 38px; }
.anv2-mini-orbit b { color: #fff2c7; font-size: 22px; filter: drop-shadow(0 0 12px #8ed8ec); }
.anv2-path-random .anv2-kicker { margin-bottom: 7px; }
.anv2-path-random h3 { font-size: 27px; line-height: 1.15; }
.anv2-path-random > p { margin: 13px auto 22px; color: #c6c7d3; font-size: 14px; line-height: 1.6; }

.anv2-casting {
  display: flex;
  min-height: 790px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.anv2-cast-orbit { position: relative; width: 330px; height: 330px; }
.anv2-cast-orbit i,
.anv2-cast-orbit strong { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.anv2-cast-orbit i { border: 1px solid rgba(223, 193, 125, .5); border-radius: 50%; }
.anv2-cast-orbit i:nth-child(1) { width: 320px; height: 320px; border-style: dashed; }
.anv2-cast-orbit i:nth-child(2) { width: 255px; height: 255px; border-color: rgba(145, 216, 238, .55); }
.anv2-cast-orbit i:nth-child(3) { width: 190px; height: 190px; border-style: dotted; }
.anv2-cast-orbit i:nth-child(4) { width: 135px; height: 135px; border-color: rgba(245, 223, 170, .72); box-shadow: 0 0 50px rgba(94, 151, 211, .26); }
.anv2-cast-orbit strong {
  color: #fff8e7;
  font-family: Georgia, serif;
  font-size: 51px;
  font-weight: 500;
  letter-spacing: .05em;
  text-shadow: 0 0 24px rgba(145, 216, 238, .72);
}
.anv2-casting p { margin: 26px 0 0; color: #d8d9e3; font-size: 15px; letter-spacing: .08em; }
.anv2-casting.is-casting .anv2-cast-orbit i:nth-child(1) { animation: anv2-spin 5s linear infinite; }
.anv2-casting.is-casting .anv2-cast-orbit i:nth-child(2) { animation: anv2-spin-reverse 3.8s linear infinite; }
.anv2-casting.is-casting .anv2-cast-orbit i:nth-child(3) { animation: anv2-pulse 1.1s ease-in-out infinite alternate; }

.anv2-result {
  display: grid;
  min-height: 790px;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.28fr);
  gap: 54px;
  align-items: center;
  padding: 62px;
  outline: 0;
  background: linear-gradient(90deg, rgba(3, 6, 20, .45), rgba(3, 6, 20, .92) 55%, rgba(3, 6, 20, .97));
}

.anv2-seal-column { min-width: 0; text-align: center; }
.anv2-result-kind { margin-bottom: 22px; color: var(--anv2-gold-2); }
.anv2-seal {
  position: relative;
  width: min(100%, 365px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(245, 223, 170, .78);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(223, 193, 125, .08), 0 0 0 11px rgba(223, 193, 125, .26), 0 26px 70px rgba(0, 0, 0, .42);
}

.anv2-root-art,
.anv2-seal-glass { position: absolute; inset: 0; }
.anv2-root-art {
  background-image: var(--anv2-atlas);
  background-repeat: no-repeat;
  background-size: 500% 200%;
  background-position: var(--anv2-x, 0%) var(--anv2-y, 0%);
  transform: scale(1.12);
  filter: saturate(.9) brightness(.78);
}
.anv2-seal-glass {
  background: radial-gradient(circle, rgba(5, 9, 27, .14) 0 24%, rgba(3, 6, 20, .33) 57%, rgba(3, 6, 20, .72) 100%);
}
.anv2-result-number {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 90%;
  color: #fff9e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .95), 0 0 30px rgba(145, 216, 238, .5);
  transform: translate(-50%, -50%);
}

.anv2-root-explain {
  max-width: 380px;
  margin: 27px auto 0;
  padding: 14px 16px;
  border-top: 1px solid rgba(223, 193, 125, .28);
  border-bottom: 1px solid rgba(223, 193, 125, .28);
}
.anv2-root-explain span { display: block; margin-bottom: 6px; color: #aeb1c1; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.anv2-root-explain b { color: #efe7d2; font-size: 13px; font-weight: 600; line-height: 1.5; }
.anv2-patterns { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 15px; }
.anv2-patterns span { padding: 6px 10px; border: 1px solid rgba(145, 216, 238, .24); border-radius: 999px; background: rgba(145, 216, 238, .06); color: #cce9f2; font-size: 11px; }

.anv2-reading { min-width: 0; }
.anv2-root-name { margin-bottom: 9px; }
.anv2-reading > h2 { font-size: clamp(38px, 5vw, 59px); line-height: 1.02; text-wrap: balance; }
.anv2-section { margin-top: 22px; }
.anv2-section h3 { margin: 0 0 7px; color: var(--anv2-gold-2); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.anv2-section p { margin: 0; color: #d9dae4; font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.anv2-essence { padding-bottom: 19px; border-bottom: 1px solid rgba(223, 193, 125, .22); }
.anv2-signal p { color: #f1eee6; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.55; }
.anv2-reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 22px; }
.anv2-reading-grid .anv2-section {
  position: relative;
  margin: 0;
  padding: 18px 17px 17px;
  border: 1px solid rgba(145, 216, 238, .14);
  border-radius: 13px;
  background: rgba(11, 18, 42, .55);
}
.anv2-reading-grid .anv2-section > span { position: absolute; top: 14px; right: 15px; color: rgba(145, 216, 238, .48); font-size: 20px; }
.anv2-watch { padding-left: 16px; border-left: 2px solid rgba(224, 137, 137, .55); }
.anv2-watch h3 { color: #eeb6b6; }

.anv2-action {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 23px;
  padding: 17px 18px;
  border: 1px solid rgba(223, 193, 125, .35);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(223, 193, 125, .13), rgba(145, 216, 238, .055));
}
.anv2-action > span { color: var(--anv2-gold); font-size: 22px; line-height: 1; }
.anv2-action b { display: block; margin-bottom: 5px; color: var(--anv2-gold-2); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.anv2-action p { margin: 0; color: #f3efe5; font-size: 15px; line-height: 1.55; }

.anv2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.anv2-share,
.anv2-again { min-height: 46px; padding: 10px 18px; }
.anv2-share { border: 1px solid #e5ca8a; background: linear-gradient(135deg, #ecd18d, #b88c42); color: #14101a; }
.anv2-again { border: 1px solid rgba(145, 216, 238, .34); background: rgba(145, 216, 238, .07); color: #d9f0f6; }
.anv2-share:disabled { cursor: wait; opacity: .62; transform: none; }
.anv2-share-status { min-height: 20px; margin: 10px 0 0; color: #acdce9; font-size: 12px; }

.anv2-guide {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(223, 193, 125, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(45, 91, 144, .2), transparent 34%),
    linear-gradient(145deg, #090d20, #050817);
  color: var(--anv2-ink);
}
.anv2-guide::after { position: absolute; right: -40px; bottom: -70px; width: 230px; height: 230px; content: ""; border: 1px solid rgba(223, 193, 125, .15); border-radius: 50%; box-shadow: 0 0 0 32px rgba(223, 193, 125, .035), 0 0 0 66px rgba(145, 216, 238, .025); }
.anv2-guide-intro { position: relative; z-index: 1; max-width: 760px; }
.anv2-guide h3 { font-size: 32px; line-height: 1.1; }
.anv2-guide-intro > p { margin: 13px 0 0; color: #c7c9d6; font-size: 14px; line-height: 1.65; }
.anv2-guide-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 27px; }
.anv2-guide-item { display: flex; gap: 13px; padding-top: 16px; border-top: 1px solid rgba(223, 193, 125, .24); }
.anv2-guide-item > span { color: var(--anv2-gold); font-family: Georgia, serif; font-size: 16px; }
.anv2-guide-item p { margin: 0; }
.anv2-guide-item b { display: block; margin-bottom: 6px; color: #f5f0e6; font-size: 13px; }
.anv2-guide-item small { display: block; color: #aeb1c0; font-size: 12px; line-height: 1.55; }

@keyframes anv2-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes anv2-spin-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes anv2-pulse { to { opacity: .48; transform: translate(-50%, -50%) scale(.92); } }
@keyframes anv2-drift { to { transform: scale(1.1) rotate(-2deg) translate3d(12px, -7px, 0); } }

@media (max-width: 900px) {
  .anv2-start { padding: 48px 30px 38px; }
  .anv2-intro { margin-bottom: 275px; }
  .anv2-paths { grid-template-columns: 1fr; max-width: 620px; }
  .anv2-path-input,
  .anv2-path-random { border-radius: 19px; }
  .anv2-or { height: 50px; }
  .anv2-or::before { top: 50%; right: 12%; bottom: auto; left: 12%; width: auto; height: 1px; }
  .anv2-result { grid-template-columns: 1fr; gap: 42px; padding: 48px 38px; }
  .anv2-seal { max-width: 330px; }
  .anv2-reading { max-width: 690px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .anv2 { width: min(100%, calc(100% - 12px)); margin-top: 10px; }
  .anv2-scene { min-height: 720px; border-radius: 21px; }
  .anv2-background { object-position: center top; }
  .anv2-shade { background: linear-gradient(180deg, rgba(3, 5, 16, .13), rgba(3, 5, 16, .38) 32%, rgba(3, 5, 16, .94) 63%, #030510 100%); }
  .anv2-start { padding: 38px 15px 20px; }
  .anv2-intro { margin-bottom: 220px; }
  .anv2-kicker { font-size: 10px; letter-spacing: .2em; }
  .anv2-intro h2 { font-size: clamp(33px, 11vw, 46px); }
  .anv2-intro > p { margin-top: 15px; font-size: 15px; line-height: 1.58; }
  .anv2-path { padding: 25px 20px; }
  .anv2-number-input { height: 68px; font-size: 31px; }
  .anv2-common > div { gap: 6px; }
  .anv2-common button { flex: 1 0 auto; }
  .anv2-mini-orbit { width: 78px; height: 78px; }
  .anv2-mini-orbit i:nth-child(1) { width: 76px; height: 76px; }
  .anv2-mini-orbit i:nth-child(2) { width: 54px; height: 54px; }
  .anv2-mini-orbit i:nth-child(3) { width: 32px; height: 32px; }
  .anv2-casting { min-height: 720px; }
  .anv2-cast-orbit { width: 260px; height: 260px; }
  .anv2-cast-orbit i:nth-child(1) { width: 250px; height: 250px; }
  .anv2-cast-orbit i:nth-child(2) { width: 200px; height: 200px; }
  .anv2-cast-orbit i:nth-child(3) { width: 150px; height: 150px; }
  .anv2-cast-orbit i:nth-child(4) { width: 108px; height: 108px; }
  .anv2-cast-orbit strong { font-size: 42px; }
  .anv2-result { min-height: 720px; padding: 40px 18px 34px; background: linear-gradient(180deg, rgba(3, 6, 20, .46), rgba(3, 6, 20, .94) 37%, rgba(3, 6, 20, .98)); }
  .anv2-result-kind { margin-bottom: 18px; }
  .anv2-seal { width: min(84vw, 310px); }
  .anv2-result-number { font-size: clamp(55px, 21vw, 84px); }
  .anv2-root-explain { margin-top: 24px; }
  .anv2-reading > h2 { font-size: clamp(37px, 12vw, 49px); }
  .anv2-signal p { font-size: 18px; }
  .anv2-reading-grid { grid-template-columns: 1fr; }
  .anv2-actions { flex-direction: column; }
  .anv2-share,
  .anv2-again { width: 100%; }
  .anv2-guide { padding: 28px 20px; border-radius: 20px; }
  .anv2-guide h3 { font-size: 28px; }
  .anv2-guide-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .anv2 *,
  .anv2 *::before,
  .anv2 *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
