.pd {
  --pd-bg: #05060c;
  --pd-panel: #0a0b14;
  --pd-panel-2: #0e0f1b;
  --pd-line: rgba(221, 178, 101, .22);
  --pd-gold: #e4b665;
  --pd-cream: #fff7e9;
  --pd-muted: #b9b7c5;
  position: relative;
  width: min(1180px, calc(100% - 24px));
  margin: 24px auto 36px;
  color: var(--pd-cream);
  font-family: var(--font-sans, system-ui, sans-serif);
}

.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
.pd h2, .pd h3, .pd p { margin-top: 0; }
.pd button, .pd input, .pd select { font: inherit; }

.pd-kicker {
  display: inline-block;
  color: var(--pd-gold);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .18em;
}

.pd-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(231, 186, 105, .28);
  border-radius: 28px 28px 10px 10px;
  background: #04050a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 80px rgba(58, 38, 90, .16);
}

.pd-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.pd-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 3, 9, .96) 0%, rgba(2, 3, 9, .72) 37%, rgba(2, 3, 9, .13) 72%),
    linear-gradient(0deg, rgba(2, 3, 9, .8) 0%, transparent 52%);
}

.pd-hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(28px, 6vw, 78px);
  bottom: clamp(34px, 8vw, 84px);
  width: min(510px, calc(100% - 56px));
}

.pd-hero-copy h2 {
  margin: 14px 0 18px;
  max-width: 500px;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(44px, 5.6vw, 75px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.pd-hero-copy > p {
  max-width: 470px;
  margin-bottom: 24px;
  color: #dfdce6;
  font-size: 17px;
  line-height: 1.62;
}

.pd-hero-points { display: flex; flex-wrap: wrap; gap: 9px; }
.pd-hero-points span {
  padding: 8px 12px;
  border: 1px solid rgba(235, 190, 109, .34);
  border-radius: 999px;
  background: rgba(6, 7, 14, .66);
  color: #f5ead6;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(7px);
}
.pd-hero-points span::before { content: '✦'; margin-right: 7px; color: var(--pd-gold); }

.pd-body {
  padding: clamp(20px, 4vw, 52px);
  border: 1px solid rgba(217, 174, 99, .18);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 80% 4%, rgba(94, 57, 126, .12), transparent 32%),
    linear-gradient(180deg, #080910, #05060b);
}

.pd-form {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--pd-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18, 16, 28, .98), rgba(7, 8, 15, .98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

.pd-form::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 168, 83, .17), transparent 68%);
  pointer-events: none;
}

.pd-form-head { position: relative; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 22px; max-width: 790px; }
.pd-form-head h2 {
  margin: 7px 0 8px;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(32px, 4vw, 47px);
  font-weight: 500;
  line-height: 1.02;
}
.pd-form-head p { margin: 0; color: var(--pd-muted); line-height: 1.58; }

.pd-form-mark, .pd-result-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(231, 185, 104, .42);
  border-radius: 50%;
  color: var(--pd-gold);
  font-family: Georgia, serif;
}
.pd-form-mark::before, .pd-form-mark::after, .pd-result-seal::before, .pd-result-seal::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(231, 185, 104, .18);
  border-radius: 50%;
}
.pd-form-mark::after, .pd-result-seal::after { inset: -6px; border-style: dashed; }
.pd-form-mark b { font-size: 25px; font-weight: 400; }

.pd-fields { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 14px; margin: 30px 0 18px; }
.pd-fields label { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pd-fields label > span { color: #e7d4b4; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.pd-fields input, .pd-fields select {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(213, 176, 111, .24);
  border-radius: 11px;
  outline: 0;
  background: #080910;
  color: #fff9ef;
  color-scheme: dark;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pd-fields input:focus, .pd-fields select:focus { border-color: rgba(235, 187, 98, .72); box-shadow: 0 0 0 3px rgba(235, 187, 98, .1); }
.pd-fields small { color: #8f8e9c; font-size: 11px; line-height: 1.4; }
.pd-city select { cursor: pointer; }

.pd-submit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid #e9bd6f;
  border-radius: 12px;
  background: linear-gradient(100deg, #c98c3e, #efc878 52%, #bd7636);
  color: #160d05;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(194, 125, 49, .2);
}
.pd-submit i { font-style: normal; font-size: 22px; }
.pd-submit:hover { filter: brightness(1.06); }
.pd-submit:disabled { cursor: wait; opacity: .76; }
.pd-form-note { margin: 11px 0 0; color: #777683; font-size: 11px; text-align: center; }

.pd-loader {
  display: none;
  position: absolute;
  z-index: 4;
  inset: 0;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 26px;
  background: rgba(6, 7, 14, .96);
  text-align: center;
}
.pd-form.is-loading .pd-loader { display: grid; }
.pd-loader > span { position: relative; display: grid; place-items: center; width: 86px; height: 86px; border: 1px solid rgba(231, 185, 104, .34); border-radius: 50%; }
.pd-loader > span::before, .pd-loader > span::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(231, 185, 104, .14); border-radius: 50%; }
.pd-loader > span::after { inset: -7px; border-top-color: var(--pd-gold); animation: pd-spin 1.15s linear infinite; }
.pd-loader > span b { color: var(--pd-gold); font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.pd-loader strong { max-width: 360px; color: #f4e4ca; font-family: var(--font-display, Georgia, serif); font-size: 22px; font-weight: 500; }

.pd-error { margin: 18px 0 0; padding: 13px 16px; border: 1px solid rgba(227, 105, 100, .42); border-radius: 10px; background: rgba(123, 40, 48, .16); color: #ffd7d4; }

.pd-result { margin-top: 34px; outline: 0; }
.pd-result-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(23px, 4vw, 42px); border: 1px solid var(--pd-line); border-radius: 22px; background: linear-gradient(125deg, #12101c, #080912); }
.pd-result-head h2 { margin: 8px 0 10px; max-width: 790px; font-family: var(--font-display, Georgia, serif); font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: 1.02; text-wrap: balance; }
.pd-result-head p { margin: 0; color: var(--pd-muted); }
.pd-result-seal { width: 96px; height: 96px; }
.pd-result-seal b { font-family: Georgia, serif; font-size: 31px; font-weight: 400; }
.pd-result-seal small { position: absolute; top: calc(100% + 9px); width: 130px; color: #8d8996; font-family: var(--font-sans, sans-serif); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-align: center; text-transform: uppercase; }

.pd-precision { display: flex; gap: 14px; margin-top: 16px; padding: 15px 18px; border: 1px solid rgba(154, 135, 206, .26); border-radius: 12px; background: rgba(72, 51, 113, .12); }
.pd-precision > span { color: #bba6ee; font-size: 25px; }
.pd-precision strong { color: #e0d3ff; }
.pd-precision p { margin: 3px 0 0; color: #aaa5b6; font-size: 13px; line-height: 1.5; }

.pd-orbit { margin-top: 18px; overflow: hidden; border: 1px solid rgba(211, 168, 95, .18); border-radius: 22px; background: radial-gradient(circle at 50% 49%, rgba(119, 76, 157, .14), transparent 32%), linear-gradient(180deg, #090a13, #05060b); }
.pd-orbit-svg { display: block; width: min(760px, 100%); height: auto; margin: 0 auto; overflow: visible; }
.pd-orbit-glow { fill: url(#pdCore); }
.pd-orbit-line { fill: none; stroke: rgba(224, 180, 101, .19); stroke-width: 1; stroke-dasharray: 3 7; }
.pd-orbit-line.is-tilted { transform-origin: 260px 200px; transform: rotate(-28deg); stroke: rgba(139, 116, 190, .2); }
.pd-orbit-link { fill: none; stroke: rgba(229, 183, 99, .42); stroke-width: 1.2; }
.pd-orbit-core { fill: #0b0b14; stroke: rgba(228, 182, 101, .34); }
.pd-orbit-core-main, .pd-orbit-core-sub { fill: #e5bd76; text-anchor: middle; }
.pd-orbit-core-main { font-family: Georgia, serif; font-size: 25px; }
.pd-orbit-core-sub { font-family: system-ui, sans-serif; font-size: 7px; font-weight: 800; letter-spacing: 2px; }
.pd-orbit-halo { fill: var(--pd-planet); opacity: .1; }
.pd-orbit-node { fill: #0a0b13; stroke: var(--pd-planet); stroke-width: 1.5; }
.pd-orbit-glyph { fill: var(--pd-planet); font-family: Georgia, serif; font-size: 38px; text-anchor: middle; }
.pd-orbit-rank { fill: var(--pd-planet); font: 800 10px system-ui, sans-serif; }
.pd-orbit-name { fill: #f8efe0; font: 600 14px Georgia, serif; text-anchor: middle; }
.pd-orbit-score { fill: #8f8c99; font: 700 8px system-ui, sans-serif; letter-spacing: .8px; text-anchor: middle; }

.pd-podium { display: grid; gap: 16px; margin-top: 18px; }
.pd-planet-card { overflow: hidden; border: 1px solid color-mix(in srgb, var(--pd-planet) 32%, transparent); border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--pd-planet) 8%, #0b0c15), #07080e 65%); }
.pd-planet-card > header { display: grid; grid-template-columns: 36px 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 22px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.pd-rank { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--pd-planet); border-radius: 50%; color: var(--pd-planet); font-size: 12px; font-weight: 900; }
.pd-glyph { color: var(--pd-planet); font-family: Georgia, serif; font-size: 48px; line-height: 1; text-align: center; text-shadow: 0 0 28px color-mix(in srgb, var(--pd-planet) 45%, transparent); }
.pd-planet-card h3 { margin: 0 0 5px; font-family: var(--font-display, Georgia, serif); font-size: clamp(28px, 4vw, 42px); font-weight: 500; }
.pd-planet-card header p { margin: 0; color: #aaa7b5; font-size: 13px; }
.pd-planet-card header > strong { color: var(--pd-planet); font-family: var(--font-display, Georgia, serif); font-size: 24px; font-weight: 600; text-align: right; }
.pd-planet-card header > strong small { display: block; margin-top: 4px; color: #8e8b99; font-family: var(--font-sans, sans-serif); font-size: 9px; letter-spacing: .06em; }
.pd-core { margin: 0; padding: 22px 22px 16px; color: #f1e7d9; font-family: var(--font-display, Georgia, serif); font-size: clamp(19px, 2.4vw, 25px); line-height: 1.42; }
.pd-planet-lenses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 22px 22px; }
.pd-planet-lenses > div { padding: 15px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.pd-planet-lenses small { color: var(--pd-planet); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.pd-planet-lenses p { margin: 7px 0 0; color: #b8b5c1; font-size: 13px; line-height: 1.56; }

.pd-planet-card details { border-top: 1px solid rgba(255, 255, 255, .07); }
.pd-planet-card summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; color: #e6d8c3; font-size: 12px; font-weight: 800; letter-spacing: .05em; cursor: pointer; list-style: none; }
.pd-planet-card summary::-webkit-details-marker { display: none; }
.pd-planet-card details[open] summary span { transform: rotate(45deg); }
.pd-breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 22px 22px; }
.pd-breakdown > section { padding: 15px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: #07080e; }
.pd-breakdown section > header { display: flex; justify-content: space-between; gap: 10px; color: #d9cfbf; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.pd-breakdown section > header b { color: var(--pd-planet); }
.pd-breakdown section > i, .pd-ranking li div > i { display: block; height: 4px; margin: 10px 0; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.pd-breakdown section > i b, .pd-ranking li div > i b { display: block; height: 100%; border-radius: inherit; background: var(--pd-planet); }
.pd-breakdown ul { margin: 0; padding: 0; list-style: none; }
.pd-breakdown li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); color: #a9a6b3; font-size: 11px; line-height: 1.4; }
.pd-breakdown li:last-child { border-bottom: 0; }
.pd-breakdown li b { flex: 0 0 auto; color: #d9c4a2; }
.pd-breakdown section > p { margin: 8px 0 0; color: #777581; font-size: 11px; }

.pd-synthesis { margin-top: 18px; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(218, 172, 94, .28); border-radius: 20px; background: radial-gradient(circle at 90% 0, rgba(211, 155, 72, .11), transparent 32%), linear-gradient(135deg, #15101b, #080911); }
.pd-synthesis h2, .pd-ranking h2, .pd-method h2 { margin: 8px 0 13px; font-family: var(--font-display, Georgia, serif); font-size: clamp(30px, 4vw, 45px); font-weight: 500; line-height: 1.05; }
.pd-formula { max-width: 920px; margin-bottom: 14px; color: #fbecd2; font-family: var(--font-display, Georgia, serif); font-size: clamp(21px, 3vw, 30px); line-height: 1.4; }
.pd-synthesis > p:not(.pd-formula) { max-width: 850px; color: #b7b3c0; line-height: 1.62; }
.pd-ruler-note { display: flex; align-items: center; gap: 15px; margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(155, 132, 202, .24); border-radius: 12px; background: rgba(73, 56, 110, .12); }
.pd-ruler-note span { color: #c9b2fb; font-family: Georgia, serif; font-size: 30px; }
.pd-ruler-note p { margin: 0; color: #c5becf; font-size: 13px; line-height: 1.52; }

.pd-ranking { margin-top: 18px; padding: clamp(22px, 4vw, 38px); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; background: #080911; }
.pd-ranking > header { display: grid; grid-template-columns: 1fr minmax(260px, 420px); align-items: end; gap: 24px; }
.pd-ranking > header p { margin: 0 0 10px; color: #9693a1; font-size: 12px; line-height: 1.55; }
.pd-ranking ol { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.pd-ranking li { display: grid; grid-template-columns: 24px 35px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; background: rgba(255, 255, 255, .015); }
.pd-ranking li > span { color: #777481; font-size: 10px; font-weight: 800; }
.pd-ranking li > b { color: var(--pd-planet); font-family: Georgia, serif; font-size: 27px; font-weight: 400; text-align: center; }
.pd-ranking li div { min-width: 0; }
.pd-ranking li div strong { color: #e8dfd2; font-size: 13px; }
.pd-ranking li div small { display: block; overflow: hidden; color: #817f8b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pd-ranking li div > i { margin: 7px 0 0; }
.pd-ranking li > em { color: #c6b18d; font-size: 12px; font-style: normal; font-weight: 800; }

.pd-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pd-actions button, .pd-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 0 17px; border: 1px solid rgba(226, 180, 99, .38); border-radius: 9px; background: #0d0e17; color: #f0dfc3; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.pd-actions button:first-child { border-color: #ddb25f; background: linear-gradient(100deg, #b77a35, #dcae60); color: #150d05; }
.pd-actions a { border-color: rgba(255, 255, 255, .12); color: #aaa7b3; }
.pd-status { min-height: 20px; margin: 10px 0 0; color: #bdab89; font-size: 11px; text-align: center; }

.pd-method { display: grid; grid-template-columns: minmax(240px, .9fr) 1.4fr; gap: clamp(24px, 5vw, 60px); margin-top: 22px; padding: clamp(25px, 5vw, 52px); border: 1px solid rgba(199, 157, 89, .18); border-radius: 22px; background: linear-gradient(135deg, #0d0d16, #06070c); }
.pd-method header > p { color: #aaa7b4; line-height: 1.62; }
.pd-method ol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pd-method li { display: flex; gap: 13px; padding: 16px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: rgba(255, 255, 255, .018); }
.pd-method li > b { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid rgba(227, 179, 97, .38); border-radius: 50%; color: var(--pd-gold); font-size: 10px; }
.pd-method li strong { display: block; margin-bottom: 5px; color: #e8d8bd; font-size: 12px; text-transform: uppercase; }
.pd-method li small { color: #8e8b98; font-size: 11px; line-height: 1.5; }
.pd-method > p { grid-column: 1 / -1; margin: -10px 0 0; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .06); color: #767480; font-size: 11px; text-align: center; }
.pd-disclaimer { max-width: 760px; margin: 14px auto 0; color: #696873; font-size: 10px; line-height: 1.5; text-align: center; }

@keyframes pd-spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .pd-fields { grid-template-columns: 1fr 1fr; }
  .pd-city { grid-column: 1 / -1; }
  .pd-ranking > header { grid-template-columns: 1fr; gap: 0; }
  .pd-method { grid-template-columns: 1fr; }
  .pd-method > p { grid-column: auto; }
}

@media (max-width: 620px) {
  .pd { width: min(100% - 12px, 1180px); margin-top: 12px; }
  .pd-hero { min-height: 585px; border-radius: 20px 20px 8px 8px; }
  .pd-hero > img { object-position: 60% center; }
  .pd-hero-veil { background: linear-gradient(0deg, rgba(2, 3, 9, .98) 0%, rgba(2, 3, 9, .82) 46%, rgba(2, 3, 9, .2) 82%), linear-gradient(90deg, rgba(2, 3, 9, .35), transparent); }
  .pd-hero-copy { left: 22px; bottom: 28px; width: calc(100% - 44px); }
  .pd-hero-copy h2 { font-size: clamp(39px, 12.5vw, 53px); }
  .pd-hero-copy > p { font-size: 14px; line-height: 1.55; }
  .pd-hero-points { gap: 6px; }
  .pd-hero-points span { padding: 7px 9px; font-size: 10px; }
  .pd-body { padding: 14px; border-radius: 0 0 20px 20px; }
  .pd-form { padding: 20px 16px; border-radius: 16px; }
  .pd-form-head { grid-template-columns: 54px 1fr; gap: 14px; }
  .pd-form-mark { width: 52px; height: 52px; }
  .pd-form-mark b { font-size: 20px; }
  .pd-fields { grid-template-columns: 1fr; margin-top: 24px; }
  .pd-city { grid-column: auto; }
  .pd-result-head { grid-template-columns: 1fr; padding: 23px 18px 28px; }
  .pd-result-head h2 { font-size: 38px; }
  .pd-result-seal { display: none; }
  .pd-orbit-svg { width: 118%; margin-left: -9%; }
  .pd-planet-card > header { grid-template-columns: 30px 46px 1fr; gap: 9px; padding: 17px 14px; }
  .pd-rank { width: 28px; height: 28px; }
  .pd-glyph { font-size: 38px; }
  .pd-planet-card h3 { font-size: 29px; }
  .pd-planet-card header > strong { grid-column: 2 / -1; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 18px; text-align: left; }
  .pd-planet-card header > strong small { display: inline; margin-left: 7px; }
  .pd-core { padding: 18px 15px 13px; font-size: 19px; }
  .pd-planet-lenses { grid-template-columns: 1fr; padding: 0 15px 16px; }
  .pd-planet-card summary { padding: 15px; }
  .pd-breakdown { grid-template-columns: 1fr; padding: 0 15px 16px; }
  .pd-synthesis, .pd-ranking, .pd-method { padding: 22px 17px; border-radius: 16px; }
  .pd-ranking ol { grid-template-columns: 1fr; }
  .pd-method ol { grid-template-columns: 1fr; }
  .pd-actions { display: grid; grid-template-columns: 1fr; }
  .pd-actions button, .pd-actions a { width: 100%; }
}

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