:root {
  color-scheme: dark;
  --font-display: "silicone", sans-serif;
  --font-body: "bouba-round-variable", sans-serif;
  --night: #2d216d;
  --night-deep: #39268f;
  --blue: #78a9e8;
  --violet: #765cf3;
  --lavender: #e0dcff;
  --pink: #f5c5ff;
  --mint: #d7fff7;
  --cream: #fff;
  --white: #fff;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.88);
  --dim: rgba(244, 240, 255, 0.72);
  --line: rgba(255, 255, 255, 0.34);
  --line-bright: rgba(255, 255, 255, 0.68);
  --glass: rgba(78, 56, 166, 0.52);
  --glass-deep: rgba(47, 34, 116, 0.68);
  --success: #d5fff0;
  --error: #ffd3dc;
  --aspect-conjunction: #f3edf9;
  --aspect-sextile: #c9bfe0;
  --aspect-square: #d49bdc;
  --aspect-trine: #9fa7dc;
  --aspect-opposition: #f1a092;
  --aspect-quincunx: #b68bd0;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --shadow: 0 32px 90px rgba(47, 28, 130, 0.25);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #7160ee;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 400;
}

.star-field,
.star-field::before,
.star-field::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-repeat: no-repeat;
}

.star-field {
  opacity: 1;
  background-image:
    linear-gradient(180deg, rgba(103, 77, 238, 0.10), rgba(94, 70, 218, 0.08)),
    url("/live-chart/star-field.png");
  background-position: center top;
  background-size: cover;
}

.star-field::before {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 33%, rgba(255, 255, 255, 0.10), transparent 34rem),
    linear-gradient(180deg, rgba(84, 61, 211, 0.06), rgba(64, 42, 167, 0.16));
}

.star-field::after {
  opacity: 0.22;
  background: linear-gradient(180deg, transparent 72%, #563cc8 100%);
}

h1,
h2,
h3,
.house-cusps-panel summary strong {
  font-family: var(--font-display);
  font-style: normal;
}

p {
  font-weight: 400;
  font-variation-settings: "wght" 400;
}

button,
input,
select {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.brand:hover {
  transform: scale(1.04);
}

.brand img {
  width: clamp(280px, 34vw, 440px);
  max-width: 78vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 16px rgba(61, 41, 158, 0.22));
}

main {
  padding: 36px 0 100px;
}

.hero {
  max-width: 1120px;
  margin: 0 0 42px;
  text-align: center;
}

.eyebrow,
.overline {
  margin: 0;
  color: var(--pink);
  font-size: 0.7rem;
  font-weight: 600;
  font-variation-settings: "wght" 650;
  text-transform: uppercase;
  letter-spacing: 0.19em;
}

.hero h1 {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.03);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.03);
  -webkit-text-stroke: 1.8px rgba(255, 255, 255, 0.82);
  font-size: clamp(4rem, 10.8vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: none;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.42))
    drop-shadow(0 0 14px rgba(224, 216, 255, 0.16));
  transform-origin: center;
  transition:
    transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1),
    filter 650ms ease;
}

.hero h1:hover {
  transform: scale(1.025);
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.50))
    drop-shadow(0 0 18px rgba(224, 216, 255, 0.22));
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.calculator-shell,
.results {
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 42%),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(25px);
}

.birth-form,
.results {
  padding: clamp(24px, 4vw, 42px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
}

.step-number {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--lavender);
  font-size: 0.85rem;
  font-variation-settings: "wght" 600;
}

.section-heading h2,
.mini-heading h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.info-disclosure {
  position: relative;
  flex: 0 0 auto;
}

.info-disclosure > summary,
.field-option > summary {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  font-style: italic;
  list-style: none;
}

.info-disclosure > summary::-webkit-details-marker,
.field-option > summary::-webkit-details-marker {
  display: none;
}

.info-disclosure[open] > summary,
.field-option[open] > summary {
  background: rgba(255, 255, 255, 0.18);
}

.info-disclosure > div {
  width: min(340px, calc(100vw - 58px));
  padding: 15px 17px;
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  background: rgba(52, 36, 124, 0.96);
  box-shadow: 0 18px 44px rgba(46, 27, 125, 0.30);
}

.info-disclosure p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.info-disclosure p + p {
  margin-top: 10px;
}

.field-option {
  position: relative;
  flex: 0 0 auto;
}

.field-option > summary {
  width: 26px;
  height: 26px;
  font-size: 0.78rem;
  font-style: normal;
}

.field-option-popover {
  width: max-content;
  min-width: 210px;
  padding: 14px;
  position: absolute;
  z-index: 22;
  top: calc(100% + 9px);
  right: 0;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  background: rgba(52, 36, 124, 0.97);
  box-shadow: 0 18px 44px rgba(46, 27, 125, 0.32);
}

.advanced-location-popover {
  width: min(440px, calc(100vw - 58px));
}

.form-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.field-heading {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-heading > label,
.field-label {
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 600;
  font-variation-settings: "wght" 600;
}

.field > span small {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 500;
}

.birth-date-field {
  min-width: 0;
}

.birth-date-field,
#birth-time-field {
  grid-template-rows: 26px 56px;
  align-content: start;
}

.birth-date-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.25fr);
  gap: 10px;
}

.date-part {
  min-width: 0;
  display: grid;
  gap: 0;
}

.date-part > span {
  color: var(--dim);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.date-part input {
  min-width: 0;
  text-align: center;
}

.birth-time-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.15fr);
  gap: 10px;
}

.birth-time-grid input,
.birth-time-grid select {
  min-width: 0;
  text-align: center;
}

.birth-date-grid input,
.birth-time-grid input,
.birth-time-grid select {
  height: 56px;
  min-height: 56px;
}

input[type="text"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="number"],
select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--text);
  background: rgba(46, 31, 113, 0.48);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  text-align-last: center;
}

select:invalid {
  color: rgba(255, 255, 255, 0.52);
}

select option {
  color: #fff;
  background: #4934a9;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

input:focus {
  border-color: var(--lavender);
  background: rgba(43, 28, 108, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.13);
}

select:focus {
  border-color: var(--lavender);
  outline: none;
  background: rgba(43, 28, 108, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.13);
}

.field.is-disabled > input {
  opacity: 0.42;
}

.unknown-time-option {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  white-space: nowrap;
}

.unknown-time-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--violet);
}

.unknown-time-option span {
  color: var(--cream);
  font-size: 0.8rem;
  font-variation-settings: "wght" 520;
}

.place-search-control {
  position: relative;
}

.place-search-results {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 330px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  background: #4934a9;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58);
}

.place-search-option {
  width: 100%;
  padding: 13px;
  display: grid;
  gap: 4px;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.place-search-option strong,
.place-search-option span {
  display: block;
}

.place-search-option span {
  color: var(--dim);
  font-size: 0.73rem;
}

.place-search-option:hover,
.place-search-option.active {
  background: rgba(203, 184, 255, 0.13);
}

.place-search-status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--dim);
  font-size: 0.76rem;
  line-height: 1.45;
}

.place-search-status:empty {
  display: none;
}

.place-search-status.success,
.form-status.success,
.copy-status.success {
  color: var(--success);
}

.place-search-status.error,
.form-status.error,
.copy-status.error {
  color: var(--error);
}

.place-search-status.loading {
  color: var(--lavender);
}

.field-help,
.place-attribution {
  color: var(--dim);
  font-size: 0.73rem;
  line-height: 1.45;
}

.place-attribution a {
  color: var(--muted);
  text-underline-offset: 2px;
}

.more-placements summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.advanced-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.privacy-note {
  margin-top: 30px;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(188, 235, 221, 0.18);
  border-radius: var(--radius-md);
  color: var(--mint);
  background: rgba(188, 235, 221, 0.045);
}

.privacy-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.form-footer {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.form-status {
  flex: 1;
}

.form-status:empty {
  display: none;
}

.form-status,
.copy-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
}

.primary-button,
.secondary-link,
.copy-button,
.text-button {
  cursor: pointer;
  transition:
    transform 360ms cubic-bezier(0.2, 0.75, 0.25, 1),
    border-color 300ms ease,
    background 300ms ease,
    box-shadow 300ms ease;
}

.primary-button {
  min-height: 54px;
  min-width: 230px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--white);
  background: rgba(157, 207, 255, 0.24);
  box-shadow: 0 13px 34px rgba(69, 43, 174, 0.18);
  backdrop-filter: blur(14px);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-button:hover {
  transform: scale(1.045);
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(174, 218, 255, 0.34);
  box-shadow: 0 17px 40px rgba(69, 43, 174, 0.24);
}

.secondary-link:hover,
.copy-button:hover {
  transform: scale(1.035);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.results {
  margin-top: 38px;
}

.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.results-meta {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.5;
}

.text-button {
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button:hover {
  color: var(--white);
}

.time-warning {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 196, 228, 0.26);
  border-radius: var(--radius-md);
  background: rgba(255, 196, 228, 0.065);
}

.time-warning strong {
  color: var(--pink);
}

.time-warning p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.big-three-section,
.chart-layout,
.house-cusps-panel,
.results-footer {
  margin-top: 38px;
}

.mini-heading h3 {
  font-size: 1.45rem;
}

.big-three {
  margin-top: 17px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.big-three-card {
  min-height: 152px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 218, 255, 0.27), transparent 8rem),
    rgba(108, 82, 211, 0.25);
}

.big-three-card:nth-child(2) {
  background:
    radial-gradient(circle at 92% 8%, rgba(192, 226, 255, 0.30), transparent 8rem),
    rgba(108, 82, 211, 0.25);
}

.big-three-card:nth-child(3) {
  background:
    radial-gradient(circle at 92% 8%, rgba(219, 255, 245, 0.26), transparent 8rem),
    rgba(108, 82, 211, 0.25);
}

.big-three-symbol {
  position: absolute;
  top: 12px;
  right: 17px;
  color: rgba(255, 255, 255, 0.17);
  font-family: var(--font-body);
  font-size: 3.6rem;
}

.big-three-label,
.big-three-card strong {
  display: block;
  position: relative;
}

.big-three-label {
  color: var(--pink);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.big-three-card strong {
  max-width: 85%;
  margin-top: 32px;
  font-family: var(--font-body);
  font-variation-settings: "wght" 520;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: start;
  gap: 18px;
}

.chart-layout.signs-only {
  grid-template-columns: 1fr;
}

.wheel-panel,
.placement-panel {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(45, 31, 109, 0.72);
}

.chart-wheel {
  width: 100%;
  margin-top: 12px;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.chart-wheel svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-wheel-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font-body);
}

.wheel-disc {
  fill: rgba(39, 27, 92, 0.74);
  stroke: rgba(255, 255, 255, 0.56);
  stroke-width: 2;
}

.zodiac-inner-ring,
.aspect-orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.aspect-orbit {
  stroke-dasharray: 3 8;
}

.sign-boundary {
  stroke: rgba(224, 204, 255, 0.28);
  stroke-width: 1.2;
}

.degree-tick {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.degree-tick-medium {
  stroke: rgba(255, 255, 255, 0.3);
}

.degree-tick-major {
  stroke: rgba(224, 204, 255, 0.46);
  stroke-width: 1.4;
}

.sign-glyph,
.body-glyph,
.sensitive-point-glyph {
  fill: var(--text);
  font-family:
    "Apple Symbols",
    "Segoe UI Symbol",
    "Times New Roman",
    serif;
  font-variant-emoji: text;
}

.sign-glyph {
  fill: var(--lavender);
  font-size: 29px;
}

.house-cusp {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.1;
}

.angle-axis {
  stroke: rgba(224, 204, 255, 0.5);
  stroke-width: 2;
}

.house-number {
  fill: var(--dim);
  font-family: var(--font-body);
  font-size: 19px;
  font-style: italic;
}

.angle-label {
  fill: var(--lavender);
  stroke: #2d216d;
  stroke-width: 6px;
  paint-order: stroke fill;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.aspect-line {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: 0.62;
}

.aspect-hit-target {
  stroke: transparent;
  stroke-width: 18;
  pointer-events: stroke;
}

.aspect-line-conjunction {
  stroke: var(--aspect-conjunction);
  stroke-width: 1.8;
}

.aspect-line-sextile {
  stroke: var(--aspect-sextile);
}

.aspect-line-square {
  stroke: var(--aspect-square);
  stroke-width: 1.7;
}

.aspect-line-trine {
  stroke: var(--aspect-trine);
}

.aspect-line-opposition {
  stroke: var(--aspect-opposition);
  stroke-width: 1.7;
}

.aspect-line-quincunx {
  stroke: var(--aspect-quincunx);
  stroke-dasharray: 5 5;
}

.aspect-line-applying {
  opacity: 0.8;
}

.aspect-line-exact {
  opacity: 1;
  stroke-width: 2.2;
}

.body-leader,
.sensitive-point-leader {
  vector-effect: non-scaling-stroke;
  stroke: rgba(224, 204, 255, 0.26);
  stroke-width: 1;
}

.body-marker-displaced .body-leader,
.sensitive-point-marker-displaced .sensitive-point-leader {
  stroke: rgba(224, 204, 255, 0.58);
}

.body-longitude-tick,
.sensitive-point-longitude-tick {
  vector-effect: non-scaling-stroke;
  stroke: var(--lavender);
  stroke-width: 1.4;
}

.body-glyph {
  fill: var(--text);
  stroke: #2d216d;
  stroke-width: 5px;
  paint-order: stroke fill;
  font-size: 27px;
}

.body-degree,
.sensitive-point-degree {
  fill: var(--muted);
  stroke: rgba(45, 33, 109, 0.94);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-size: 10.5px;
  font-weight: 700;
}

.body-degree {
  letter-spacing: 0.01em;
}

.body-motion {
  fill: var(--lavender);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: -0.04em;
  opacity: 0.9;
}

.sensitive-point-glyph {
  fill: var(--text);
  stroke: #2d216d;
  stroke-width: 5px;
  paint-order: stroke fill;
  font-size: 20px;
  font-weight: 800;
}

.center-disc {
  fill: #392a83;
  stroke: rgba(224, 204, 255, 0.24);
  stroke-width: 1.2;
}

.center-star {
  fill: var(--pink);
  font-size: 26px;
}

.chart-wheel .wheel-target {
  cursor: default;
}

.wheel-note {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 0.72rem;
  text-align: center;
}

.placement-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.copy-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--lavender);
  background: rgba(203, 184, 255, 0.07);
  font-size: 0.75rem;
  font-weight: 700;
}

.placement-list {
  margin-top: 17px;
  display: grid;
}

.placement-row {
  min-height: 58px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.placement-identity,
.placement-value {
  display: flex;
  align-items: center;
}

.placement-identity {
  gap: 10px;
}

.placement-symbol {
  width: 22px;
  color: var(--pink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  text-align: center;
}

.placement-identity strong {
  font-size: 0.82rem;
  font-weight: 680;
}

.placement-value {
  justify-content: flex-end;
  gap: 9px;
  color: var(--muted);
  font-size: 0.79rem;
  text-align: right;
}

.placement-value small {
  min-width: 34px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--lavender);
  font-size: 0.67rem;
  text-align: center;
}

.more-placements {
  margin-top: 18px;
}

.more-placements[open] summary {
  color: var(--lavender);
}

.placement-list.compact {
  margin-top: 8px;
}

.copy-status {
  margin-top: 15px;
  line-height: 1.4;
}

.house-cusps-panel {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(58, 40, 137, 0.42);
}

.house-cusps-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.house-cusps-panel > summary::-webkit-details-marker {
  display: none;
}

.house-cusps-panel summary strong,
.house-cusps-panel summary .overline {
  display: block;
}

.house-cusps-panel summary strong {
  margin-top: 5px;
  font-size: 1.25rem;
  font-weight: 400;
}

.summary-action {
  color: var(--lavender);
  font-size: 0.75rem;
}

.house-cusps-panel[open] .summary-action {
  font-size: 0;
}

.house-cusps-panel[open] .summary-action::after {
  content: "Hide houses";
  font-size: 0.75rem;
}

.house-cusps {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cusp-item {
  min-height: 76px;
  padding: 13px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.cusp-item strong {
  color: var(--pink);
  font-size: 0.72rem;
}

.cusp-item span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.results-footer {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.results-footer p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.secondary-link {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  color: var(--cream);
  background: rgba(203, 184, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

footer {
  padding: 30px 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--dim);
  text-align: center;
}

footer span {
  color: var(--pink);
}

footer p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .chart-layout {
    grid-template-columns: 1fr;
  }

  .wheel-panel,
  .placement-panel {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }

  .house-cusps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .brand img {
    width: min(76vw, 340px);
  }

  .header-label {
    display: none;
  }

  main {
    padding-top: 38px;
  }

  .hero {
    margin-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14.5vw, 5rem);
  }

  .calculator-shell,
  .results {
    border-radius: 24px;
  }

  .birth-form,
  .results {
    padding: 22px 17px;
  }

  .form-grid,
  .advanced-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .form-footer,
  .results-header,
  .results-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer {
    gap: 14px;
  }

  .primary-button {
    width: 100%;
  }

  .text-button {
    align-self: flex-start;
  }

  .big-three {
    grid-template-columns: 1fr;
  }

  .big-three-card {
    min-height: 124px;
  }

  .big-three-card strong {
    margin-top: 23px;
  }

  .wheel-panel,
  .placement-panel {
    padding: 18px 14px;
  }

  .placement-row {
    align-items: flex-start;
  }

  .placement-value {
    max-width: 58%;
    flex-wrap: wrap;
  }

  .house-cusps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .secondary-link {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
