@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&family=Onest:wght@400;500&family=Playfair+Display:ital@0;1&display=swap");

.cosmo-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 960;
  margin: 0;
  overflow: hidden;
  background: #050d4a;
  color: #fff;
  font-family: Onest, system-ui, sans-serif;
  pointer-events: none;
}
.cosmo-cover,
.cosmo-cover * { box-sizing: border-box; }
.cm-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 960px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #050d4a;
}

.cm-land,
.cm-copy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
}
@property --cm-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 12%;
}
.cm-land { transition: opacity 0.4s ease; }
.cm-copy {
  --cm-y: 12%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 var(--cm-y), transparent calc(var(--cm-y) + 9%));
  mask-image: linear-gradient(to bottom, #000 0%, #000 var(--cm-y), transparent calc(var(--cm-y) + 9%));
}
.cosmo-cover[data-scene="land"] .cm-land,
.cosmo-cover[data-scene="copy"] .cm-land,
.cosmo-cover[data-scene="press"] .cm-land { opacity: 1; }
.cosmo-cover[data-scene="copy"] .cm-copy {
  opacity: 1;
  animation: cm-reveal 0.75s linear both;
}
.cosmo-cover[data-scene="press"] .cm-copy {
  opacity: 1;
  animation: none;
  -webkit-mask-image: none;
  mask-image: none;
}
@keyframes cm-reveal {
  from { --cm-y: 12%; }
  to { --cm-y: 66%; }
}

.cm-eye-move {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.cm-eye {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: cm-spin 16s linear infinite;
}
@keyframes cm-spin { to { transform: rotate(360deg); } }
.cosmo-cover[data-scene="land"] .cm-eye-move {
  transform: translateY(-210px) scale(0.62);
}
.cosmo-cover:not([data-scene="eye"]):not([data-scene="land"]) .cm-eye-move {
  transform: translateY(-210px) scale(0.62);
  opacity: 0;
}

.cm-chart,
.cm-inside {
  position: absolute;
  inset: 0;
  background: #050d4a;
  opacity: 0;
  transition: opacity 0.65s ease;
}
.cosmo-cover[data-scene="chart"] .cm-chart,
.cosmo-cover[data-scene="values"] .cm-chart { opacity: 1; }
.cosmo-cover[data-scene="inside"] .cm-inside,
.cosmo-cover[data-scene="sun"] .cm-inside,
.cosmo-cover[data-scene="moon"] .cm-inside,
.cosmo-cover[data-scene="asc"] .cm-inside,
.cosmo-cover[data-scene="sections"] .cm-inside,
.cosmo-cover[data-scene="aspects"] .cm-inside,
.cosmo-cover[data-scene="cycles"] .cm-inside,
.cosmo-cover[data-scene="practice"] .cm-inside { opacity: 1; }

.cm-wheel-spin,
.cm-values {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 700px;
  height: 700px;
  margin: -350px 0 0 -350px;
}
.cm-wheel {
  display: block;
  width: 100%;
  height: 100%;
}
.cm-wheel-spin {
  transform-origin: 50% 50%;
}
.cosmo-cover[data-scene="chart"] .cm-wheel-spin,
.cosmo-cover[data-scene="values"] .cm-wheel-spin {
  animation: cm-turn 1.55s cubic-bezier(0.45, 0.02, 0.18, 1) both;
}
@keyframes cm-turn {
  from { transform: rotate(-110deg); }
  to { transform: rotate(360deg); }
}
.cm-values {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.cosmo-cover[data-scene="values"] .cm-values { opacity: 1; }

.cm-pointer,
.cm-cursor {
  position: absolute;
  z-index: 6;
  width: 22px;
  height: 22px;
  margin: -6px 0 0 -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f6e7a1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: scale(1);
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), top 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, transform 0.16s ease;
}
.cm-pointer { left: 860px; top: 470px; }
.cosmo-cover[data-scene="press"] .cm-pointer { left: 635px; top: 545px; opacity: 1; }
.cosmo-cover[data-scene="press"] .cm-pointer.is-down,
.cm-cursor.is-down { transform: scale(0.72); }

.cm-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 74% 36%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cosmo-cover[data-scene="sun"] .cm-zoom,
.cosmo-cover[data-scene="moon"] .cm-zoom,
.cosmo-cover[data-scene="asc"] .cm-zoom { transform: scale(1.42); }

.cm-block {
  width: 1088px;
  color: #fff;
}
.cm-block h2 {
  margin: 0;
  text-align: center;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.cm-block h2 em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #f6e7a1;
}
.cm-split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 56px;
  align-items: start;
  margin-top: 56px;
}
.cm-acc { border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cm-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 80px;
  padding: 20px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font: 400 24px/1.25 Onest, system-ui, sans-serif;
  text-align: left;
}
.cm-acc-item.is-on .cm-acc-btn { color: #fff; }
.cm-acc-item + .cm-acc-item { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cm-plus {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #f6e7a1;
  transition: transform 0.2s ease;
}
.cm-plus svg { width: 24px; height: 24px; }
.cm-acc-item.is-on .cm-plus { transform: rotate(45deg); }
.cm-acc-body {
  display: none;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
}
.cm-acc-item.is-on .cm-acc-body { display: block; }

.cm-panel {
  overflow: hidden;
  border: 1px solid rgba(246, 231, 161, 0.55);
  border-radius: 16px;
  background: #050d4a;
  padding: 20px;
}
.cm-panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(246, 231, 161, 0.2);
  font-size: 18px;
}
.cm-panel-h span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.cm-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cm-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
}
.cm-card-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.cm-g {
  font-family: "Noto Sans Symbols 2", "Apple Symbols", "Segoe UI Symbol", sans-serif;
  font-weight: 400;
  color: #f6e7a1;
}
.cm-card-h .cm-g { margin-right: 6px; }
.cm-sign {
  margin-left: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #f6e7a1;
}
.cm-sign .cm-g {
  margin-right: 4px;
  font-size: 13px;
  font-style: normal;
}
.cm-chev {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #f6e7a1;
  transition: transform 0.2s ease;
}
.cm-card.is-open .cm-chev { transform: rotate(180deg); }
.cm-body { display: none; margin-top: 10px; }
.cm-card.is-open .cm-body { display: block; }
.cm-body .cm-hl { margin: 0; color: #fff; font-size: 14px; font-weight: 400; }
.cm-body .cm-sum { margin: 8px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 12px; line-height: 1.625; }
.cm-body .cm-note { margin: 8px 0 0; color: rgba(255, 255, 255, 0.45); font-size: 12px; line-height: 1.625; }
.cm-body .cm-q { margin: 8px 0 0; color: rgba(255, 255, 255, 0.55); font-size: 12px; line-height: 1.625; }

.cm-groups { margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cm-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 12px;
}
.cm-group + .cm-group { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cm-group p { margin: 0; color: rgba(255, 255, 255, 0.45); line-height: 1.375; }
.cm-group b { font-weight: 400; color: rgba(255, 255, 255, 0.7); text-align: right; }
.cm-group .cm-g { margin-right: 4px; font-size: 13px; }

.cm-try {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.cm-try span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  border-radius: 999px;
  background: #f6e7a1;
  color: #0a1a3a;
  font-size: 20px;
  font-weight: 500;
}

.cosmo-cover[data-scene="sun"] .cm-cursor,
.cosmo-cover[data-scene="moon"] .cm-cursor,
.cosmo-cover[data-scene="asc"] .cm-cursor { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .cm-land, .cm-copy, .cm-eye, .cm-chart, .cm-inside, .cm-values, .cm-zoom, .cm-eye-move {
    animation: none;
    transition: none;
  }
}
