:root {
  color-scheme: dark;
  --ink: #040713;
  --panel: rgba(11, 18, 38, 0.74);
  --panel-strong: rgba(14, 23, 49, 0.92);
  --line: rgba(246, 213, 143, 0.22);
  --line-blue: rgba(123, 188, 255, 0.26);
  --text: #f7efe3;
  --muted: #bdb5ca;
  --gold: #f2c878;
  --gold-soft: #b99356;
  --blue: #6ebdff;
  --violet: #8a6dff;
  --pink: #ef7cff;
  --danger: #ff9b9b;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}

body {
  color: var(--text);
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.4rem, 8vw, 6.8rem);
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
}

h3 {
  margin-bottom: 0.45rem;
}

p {
  color: var(--muted);
  line-height: 1.78;
}

.app-shell,
.screen {
  min-height: 100svh;
}

.screen {
  position: relative;
  overflow: hidden;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-screen {
  display: grid;
  padding: clamp(1rem, 2.5vw, 2rem);
  background:
    radial-gradient(circle at 50% 18%, rgba(96, 155, 255, 0.24), transparent 28%),
    radial-gradient(circle at 50% 66%, rgba(147, 83, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #030612 0%, #071125 48%, #02030a 100%);
}

.home-screen::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 18% 82%, rgba(0, 0, 0, 0.72)),
    radial-gradient(ellipse at 50% 100%, rgba(243, 200, 120, 0.16), transparent 42%);
  pointer-events: none;
}

.home-dome {
  position: absolute;
  top: -16vw;
  left: 50%;
  z-index: 1;
  width: min(1050px, 110vw);
  aspect-ratio: 1.85;
  border: 1px solid rgba(246, 213, 143, 0.25);
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 48% 58%, rgba(255, 238, 182, 0.22), transparent 3%),
    radial-gradient(circle at 22% 55%, rgba(95, 183, 255, 0.26), transparent 6%),
    radial-gradient(circle at 72% 46%, rgba(139, 107, 255, 0.2), transparent 8%),
    radial-gradient(ellipse at 50% 42%, rgba(6, 18, 50, 0.92), rgba(2, 5, 15, 0.65) 62%, transparent 72%);
  box-shadow: inset 0 -18px 70px rgba(105, 176, 255, 0.2), 0 0 80px rgba(0, 0, 0, 0.55);
}

.gold-orbit {
  position: absolute;
  left: 50%;
  top: 54%;
  border: 1px solid rgba(246, 213, 143, 0.66);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--rotate)) scaleY(0.26);
  filter: drop-shadow(0 0 12px rgba(242, 200, 120, 0.45));
  animation: slow-spin 22s linear infinite;
}

.orbit-a {
  --rotate: -12deg;
  width: 56%;
  height: 56%;
}

.orbit-b {
  --rotate: 28deg;
  width: 42%;
  height: 42%;
  animation-duration: 29s;
}

.orbit-c {
  --rotate: 72deg;
  width: 68%;
  height: 68%;
  animation-duration: 35s;
}

.topbar,
.page-header {
  display: flex;
  position: relative;
  z-index: 3;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-layout {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(1180px, 100%);
  margin: auto;
  padding: 5rem 0 3rem;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy p {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-status-strip,
.progression-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.hero-status-strip span,
.progression-meta span,
.feature-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-story-card {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(246, 213, 143, 0.18);
  border-radius: 24px;
  background: rgba(7, 17, 36, 0.58);
}

.hero-story-card strong {
  color: var(--text);
  font-size: 1.1rem;
}

.hero-story-card p,
.hero-story-card small {
  margin: 0;
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-actions,
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, #f5d18a, #b98f4e);
  color: #140c05;
  font-weight: 800;
  box-shadow: 0 10px 32px rgba(242, 200, 120, 0.25);
}

.secondary-button,
.ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.danger-button {
  border-color: rgba(255, 155, 155, 0.36);
  background: rgba(255, 90, 90, 0.1);
  color: var(--danger);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.orb-portal {
  position: relative;
  display: grid;
  width: min(430px, 72vw);
  aspect-ratio: 1;
  margin: auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 48px 55px rgba(0, 0, 0, 0.64));
}

.orb-glow,
.orb-surface,
.orb-stars {
  position: absolute;
  border-radius: 50%;
}

.orb-glow {
  inset: -8%;
  background: radial-gradient(circle, rgba(110, 189, 255, 0.34), rgba(138, 109, 255, 0.2) 38%, transparent 72%);
  filter: blur(16px);
  animation: pulse 4.8s ease-in-out infinite;
}

.orb-surface {
  inset: 7%;
  border: 1px solid rgba(223, 239, 255, 0.34);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 231, 189, 0.76), transparent 10%),
    radial-gradient(circle at 65% 28%, rgba(66, 183, 255, 0.76), transparent 18%),
    radial-gradient(circle at 36% 74%, rgba(162, 235, 255, 0.62), transparent 22%),
    radial-gradient(circle at 70% 68%, rgba(219, 82, 255, 0.42), transparent 26%),
    radial-gradient(circle, rgba(43, 61, 179, 0.82), rgba(7, 16, 54, 0.96) 70%);
  box-shadow:
    inset 22px 22px 52px rgba(234, 249, 255, 0.22),
    inset -42px -50px 70px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(110, 189, 255, 0.38);
}

.orb-stars {
  inset: 14%;
  background:
    radial-gradient(circle at 20% 42%, white 0 1px, transparent 2px),
    radial-gradient(circle at 55% 26%, #ffe8ad 0 1px, transparent 2px),
    radial-gradient(circle at 72% 54%, #b7e8ff 0 1px, transparent 2px),
    radial-gradient(circle at 46% 70%, white 0 1px, transparent 2px);
  background-size: 90px 90px;
  opacity: 0.8;
  animation: star-drift 18s linear infinite;
}

.page-screen {
  min-height: 100svh;
  padding: clamp(1rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 18% 14%, rgba(138, 109, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(110, 189, 255, 0.2), transparent 22%),
    linear-gradient(145deg, #030713, #08152d 54%, #080713);
}

.page-header {
  align-items: flex-start;
  width: min(1180px, 100%);
  margin: 0 auto 1.4rem;
}

.page-header h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.9rem, 4.5vw, 4.2rem);
}

.page-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.panel,
.progress-card,
.astrolabe-panel,
.divination-shell,
.mini-game {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-card,
.panel {
  padding: clamp(1.15rem, 2.5vw, 1.7rem);
}

.feature-card.is-mastered {
  border-color: rgba(246, 213, 143, 0.32);
}

.feature-card.is-locked {
  opacity: 0.82;
}

.feature-meta {
  margin-top: 0.9rem;
  justify-self: start;
}

.feature-card::before,
.panel::before,
.mini-game::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 20% 0%, rgba(246, 213, 143, 0.14), transparent 32%);
  pointer-events: none;
}

.card-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 1.1rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold);
  font-size: 1.6rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.proof-grid p,
.node-tags span,
.memory-chips span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.proof-grid p {
  margin: 0;
  padding: 1rem;
}

.progression-panel {
  display: grid;
  gap: 1rem;
}

.objective-card {
  border-color: rgba(126, 188, 255, 0.28);
  background: linear-gradient(135deg, rgba(80, 139, 255, 0.12), rgba(255, 255, 255, 0.055));
}

.journey-dashboard {
  display: grid;
  gap: 1.2rem;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-head p {
  max-width: 720px;
}

.dashboard-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(120px, 0.9fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(5, 14, 31, 0.58);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.dashboard-row:hover {
  border-color: rgba(246, 213, 143, 0.34);
  transform: translateY(-1px);
}

.dashboard-row span {
  display: grid;
  gap: 0.25rem;
}

.dashboard-row small,
.dashboard-row em,
.objective-summary span,
.achievement-panel > p {
  color: var(--text-soft);
  font-style: normal;
}

.dashboard-row i {
  position: relative;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(126, 188, 255, 0.8), rgba(246, 213, 143, 0.92));
  box-shadow: 0 0 18px rgba(126, 188, 255, 0.24);
}

.objective-summary {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(246, 213, 143, 0.18);
  border-radius: 22px;
  background: rgba(246, 213, 143, 0.06);
}

.achievement-panel {
  display: grid;
  gap: 1rem;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.achievement-card {
  display: grid;
  gap: 0.45rem;
  min-height: 148px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.achievement-card span {
  justify-self: start;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.achievement-card strong {
  color: var(--text);
  font-size: 1.1rem;
}

.achievement-card p {
  margin: 0;
  color: var(--text-soft);
}

.achievement-card.is-done {
  border-color: rgba(246, 213, 143, 0.34);
  background: linear-gradient(135deg, rgba(246, 213, 143, 0.12), rgba(126, 188, 255, 0.05));
  box-shadow: inset 0 0 24px rgba(246, 213, 143, 0.08);
}

.achievement-card.is-done span {
  border-color: rgba(246, 213, 143, 0.38);
  color: var(--gold);
}

.chapter-map-panel {
  display: grid;
  gap: 1.1rem;
}

.chapter-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.chapter-node {
  position: relative;
  display: grid;
  gap: 0.5rem;
  min-height: 170px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(5, 14, 31, 0.64));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.chapter-node::after {
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.chapter-node:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.chapter-node:not(:disabled):hover {
  border-color: rgba(126, 188, 255, 0.38);
  transform: translateY(-1px);
}

.chapter-node span {
  width: fit-content;
  padding: 0.25rem 0.62rem;
  border: 1px solid rgba(246, 213, 143, 0.22);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.chapter-node strong {
  font-size: 1.08rem;
}

.chapter-node small {
  color: var(--text-soft);
  line-height: 1.55;
}

.chapter-node.is-active {
  border-color: rgba(126, 188, 255, 0.42);
  box-shadow: inset 0 0 28px rgba(126, 188, 255, 0.08);
}

.chapter-node.is-selected {
  box-shadow: 0 0 0 1px rgba(246, 213, 143, 0.16), 0 0 24px rgba(246, 213, 143, 0.12);
}

.chapter-node.is-done {
  border-color: rgba(246, 213, 143, 0.36);
  background: linear-gradient(145deg, rgba(246, 213, 143, 0.13), rgba(5, 14, 31, 0.66));
}

.chapter-node.is-done::after {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(246, 213, 143, 0.58);
}

.chapter-detail-panel,
.chapter-detail-grid,
.chapter-entry-list,
.chapter-entry-card,
.chapter-entry-head,
.chapter-detail-card,
.chapter-level-list,
.chapter-level-item,
.chapter-entry-rating,
.level-rating-panel,
.rating-badge-list,
.route-rating-summary,
.guide-card {
  display: grid;
}

.chapter-detail-panel,
.chapter-entry-list,
.chapter-level-list,
.chapter-entry-rating,
.level-rating-panel {
  gap: 0.9rem;
}

.chapter-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.chapter-detail-card,
.chapter-entry-card,
.level-rating-panel {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.chapter-detail-card span,
.chapter-entry-head span,
.route-rating-summary span,
.guide-card > span {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.chapter-detail-card strong,
.chapter-entry-head strong,
.level-rating-panel strong {
  color: var(--text);
  font-size: 1.05rem;
}

.chapter-detail-card p,
.chapter-entry-head p,
.chapter-entry-meta em {
  color: var(--text-soft);
  font-style: normal;
}

.chapter-entry-card {
  gap: 0.95rem;
}

.chapter-entry-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.chapter-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chapter-level-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(110, 189, 255, 0.18);
  border-radius: 18px;
  background: rgba(5, 14, 31, 0.52);
  color: var(--text);
  text-align: left;
}

.chapter-level-item:hover {
  border-color: rgba(246, 213, 143, 0.34);
}

.chapter-level-item.is-done {
  border-color: rgba(246, 213, 143, 0.38);
}

.chapter-level-item div {
  display: grid;
  gap: 0.2rem;
}

.chapter-level-item span {
  color: var(--text-soft);
}

.rating-badge-list,
.chapter-entry-rating {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: start;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.rating-badge {
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.82rem;
  white-space: nowrap;
}

.rating-badge.is-earned {
  border-color: rgba(246, 213, 143, 0.36);
  background: rgba(246, 213, 143, 0.12);
  color: #fff3c9;
}

.route-rating-summary {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.route-rating-summary span {
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.level-rating-panel {
  margin-top: 0.9rem;
  background: rgba(110, 189, 255, 0.05);
}

.guide-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(3, 7, 16, 0.78);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.guide-card {
  gap: 0.8rem;
  width: min(560px, 100%);
  padding: 1.4rem;
  border: 1px solid rgba(246, 213, 143, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(126, 188, 255, 0.18), transparent 44%),
    rgba(6, 14, 31, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.guide-card h2 {
  margin: 0;
}

.guide-card p {
  margin: 0;
  color: var(--text-soft);
}

.guide-dots {
  display: flex;
  gap: 0.45rem;
}

.guide-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.guide-dots i.is-active {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(246, 213, 143, 0.42);
}

.daily-quest-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-quest-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.daily-quest-list li.is-done {
  border-color: rgba(246, 213, 143, 0.28);
  box-shadow: inset 0 0 0 1px rgba(246, 213, 143, 0.16);
}

.daily-quest-list strong {
  color: var(--text);
}

.daily-quest-list span,
.memory-reward-note {
  color: var(--text-soft);
}

.memory-reward-note {
  margin-top: 0.9rem;
}

.astrolabe-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  min-height: 420px;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.astrolabe-wheel {
  position: relative;
  width: min(420px, 80vw);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(246, 213, 143, 0.22), transparent 8%),
    radial-gradient(circle, transparent 34%, rgba(110, 189, 255, 0.14) 35% 36%, transparent 37%),
    radial-gradient(circle, transparent 58%, rgba(246, 213, 143, 0.24) 59% 60%, transparent 61%);
  box-shadow: inset 0 0 55px rgba(110, 189, 255, 0.18), 0 0 40px rgba(0, 0, 0, 0.42);
}

.astrolabe-wheel span {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(246, 213, 143, 0.32);
  border-radius: 50%;
  transform: rotate(var(--r)) scaleY(0.42);
}

.astrolabe-wheel span:nth-child(1) { --r: 16deg; }
.astrolabe-wheel span:nth-child(2) { --r: 68deg; }
.astrolabe-wheel span:nth-child(3) { --r: 126deg; }

.node-tags,
.memory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.node-tags span,
.memory-chips span {
  padding: 0.45rem 0.7rem;
  color: var(--muted);
}

.route-progress-stars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0 0.25rem;
}

.route-progress-stars span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(110, 189, 255, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.04);
  color: rgba(255, 246, 219, 0.62);
  font-size: 0.82rem;
  font-weight: 700;
}

.route-progress-stars span.is-lit {
  border-color: rgba(246, 213, 143, 0.66);
  background:
    radial-gradient(circle at 50% 48%, rgba(246, 213, 143, 0.78), rgba(246, 213, 143, 0.08) 46%, transparent 68%),
    rgba(110, 189, 255, 0.06);
  color: #fff6d0;
  box-shadow: 0 0 18px rgba(246, 213, 143, 0.2);
}

.progress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.progress-ring {
  display: grid;
  flex: 0 0 auto;
  width: 118px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0a1227 56%, transparent 58%),
    conic-gradient(var(--gold) calc(var(--progress) * 1turn), rgba(255, 255, 255, 0.1) 0);
}

.progress-ring strong {
  font-size: 2rem;
}

.progress-ring span {
  color: var(--muted);
}

.sun-path {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 0.8rem;
  overflow: visible;
  padding-bottom: 0.5rem;
}

.sun-node {
  min-width: 0;
  min-height: 250px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
}

.sun-node span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(246, 213, 143, 0.12);
  color: var(--gold);
}

.sun-node.is-done {
  border-color: rgba(246, 213, 143, 0.6);
  box-shadow: inset 0 0 30px rgba(246, 213, 143, 0.12);
}

.sun-node.is-locked {
  opacity: 0.48;
}

.sun-node button {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  white-space: normal;
}

.mini-game {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.mini-board {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line-blue);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 44%, rgba(110, 189, 255, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.16);
}

.mini-board > span,
.mini-board > div,
.mini-board > button {
  position: absolute;
}

.mini-board.is-complete {
  border-color: rgba(246, 213, 143, 0.72);
  box-shadow: inset 0 0 50px rgba(246, 213, 143, 0.12), 0 0 35px rgba(246, 213, 143, 0.12);
}

.mini-game.wands .mini-board {
  min-height: 430px;
}

.mini-game.zodiac .mini-board,
.mini-game.house .mini-board {
  min-height: clamp(620px, 64vh, 760px);
}

.mini-game.planet.astrology-challenge .mini-board {
  min-height: clamp(560px, 58vh, 680px);
}

.mini-game.planet.astrology-challenge .planet-panel {
  height: 100%;
}

.playfield {
  position: absolute;
  inset: 0;
}

.playfield-aura {
  inset: 18%;
  border: 1px solid rgba(246, 213, 143, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(60deg, transparent 49.7%, rgba(246, 213, 143, 0.2) 50%, transparent 50.3%),
    linear-gradient(-60deg, transparent 49.7%, rgba(246, 213, 143, 0.2) 50%, transparent 50.3%);
}

.mini-choice {
  display: grid;
  min-width: 86px;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(246, 213, 143, 0.42);
  border-radius: 999px;
  background: rgba(6, 14, 32, 0.78);
  color: #fff6c8;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(110, 189, 255, 0.18);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.mini-choice:hover {
  transform: translateY(-2px) scale(1.03);
}

.mini-choice.is-picked {
  background: rgba(246, 213, 143, 0.26);
  box-shadow: 0 0 26px rgba(246, 213, 143, 0.32);
}

.choice-1 { top: 14%; left: 12%; }
.choice-2 { top: 18%; right: 16%; }
.choice-3 { bottom: 18%; right: 18%; }
.choice-4 { bottom: 16%; left: 18%; }

.major .choice-1 { top: 13%; left: 14%; border-radius: 18px; min-width: 34%; min-height: 30%; }
.major .choice-2 { top: 13%; right: 14%; border-radius: 18px; min-width: 34%; min-height: 30%; }
.major .choice-3 { bottom: 13%; left: 14%; border-radius: 18px; min-width: 34%; min-height: 30%; }
.major .choice-4 { bottom: 13%; right: 14%; border-radius: 18px; min-width: 34%; min-height: 30%; }

.cups .choice-1,
.cups .choice-2,
.cups .choice-3 {
  bottom: 18%;
  min-width: 86px;
  min-height: 170px;
  border-radius: 18px 18px 30px 30px;
  align-items: end;
  padding-bottom: 1rem;
}
.cups .choice-1 { left: 18%; background: linear-gradient(180deg, rgba(6, 14, 32, 0.8) 36%, rgba(110, 189, 255, 0.72) 37%); }
.cups .choice-2 { left: 43%; background: linear-gradient(180deg, rgba(6, 14, 32, 0.8) 52%, rgba(239, 124, 255, 0.72) 53%); }
.cups .choice-3 { right: 18%; background: linear-gradient(180deg, rgba(6, 14, 32, 0.8) 28%, rgba(246, 213, 143, 0.72) 29%); }

.wands .choice-1,
.wands .choice-2,
.wands .choice-3 {
  border-radius: 18px;
  background: rgba(126, 74, 39, 0.88);
}
.wands .choice-1 { top: 18%; left: 16%; min-width: 32%; min-height: 22%; }
.wands .choice-2 { top: 44%; right: 15%; min-width: 32%; min-height: 22%; }
.wands .choice-3 { bottom: 14%; left: 22%; min-width: 32%; min-height: 22%; }
.wands .playfield::after {
  position: absolute;
  top: 47%;
  left: 18%;
  width: 58%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a512b, var(--gold));
  content: "";
}

.swords .choice-1 { top: 20%; left: 34%; }
.swords .choice-2 { top: 44%; left: 48%; }
.swords .choice-3 { bottom: 18%; left: 34%; }
.swords .playfield::before {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 20px;
  height: 160px;
  border-radius: 999px;
  background: linear-gradient(180deg, white, var(--blue));
  box-shadow: 0 0 24px var(--blue);
  content: "";
}

.mini-result-seal {
  position: absolute;
  display: grid;
  right: 1rem;
  bottom: 1rem;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(246, 213, 143, 0.6);
  border-radius: 50%;
  background: rgba(246, 213, 143, 0.16);
  color: var(--gold);
  font-weight: 800;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.mini-result-seal.is-visible {
  opacity: 1;
  transform: scale(1);
}

.mini-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.mini-progress strong {
  color: var(--gold);
  font-size: 1.4rem;
}

.gameplay-help {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(110, 189, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(110, 189, 255, 0.1), rgba(246, 213, 143, 0.06));
}

.gameplay-help strong {
  color: #fff6c8;
}

.gameplay-help-list {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255, 246, 219, 0.78);
  line-height: 1.55;
}

.gameplay-help-list li::marker {
  color: var(--gold);
  font-weight: 800;
}

.astrology-route-map {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.route-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 54px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(110, 189, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 246, 219, 0.78);
  text-align: left;
}

.route-step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(246, 213, 143, 0.24);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 800;
}

.route-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-step.is-current {
  border-color: rgba(110, 189, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(110, 189, 255, 0.12), 0 0 22px rgba(110, 189, 255, 0.12);
}

.route-step.is-done {
  border-color: rgba(246, 213, 143, 0.58);
  background:
    radial-gradient(circle at 24px 50%, rgba(246, 213, 143, 0.22), transparent 36%),
    rgba(255, 255, 255, 0.055);
  color: #fff6d0;
}

.astrology-reward-pulse {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(246, 213, 143, 0.45);
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 50%, rgba(246, 213, 143, 0.28), transparent 36%),
    rgba(8, 18, 36, 0.74);
  box-shadow: 0 0 24px rgba(246, 213, 143, 0.14);
}

.astrology-reward-pulse strong {
  color: var(--gold);
}

.astrology-reward-pulse span {
  color: rgba(255, 246, 219, 0.82);
  line-height: 1.45;
}

.mini-hint {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.pentacle-arena {
  position: absolute;
  inset: 1rem;
  overflow: hidden;
  border: 1px solid rgba(246, 213, 143, 0.24);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 20%, rgba(246, 213, 143, 0.12), transparent 35%);
}

.mini-control-row {
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 2;
}

.laser {
  top: 52%;
  left: 14%;
  width: 72%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--blue), transparent);
  transform: rotate(-18deg);
  box-shadow: 0 0 18px var(--gold);
}

.star {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 18px var(--blue);
}

.s1 { top: 24%; left: 34%; }
.s2 { top: 66%; left: 70%; }
.mirror {
  width: 70px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}
.m1 { top: 42%; left: 42%; transform: rotate(35deg); }
.m2 { top: 58%; left: 58%; transform: rotate(-28deg); }

.socket,
.lamp,
.coin,
.vial {
  border-radius: 50%;
}

.socket {
  top: 46%;
  left: 12%;
  width: 50px;
  height: 50px;
  background: var(--gold);
}

.lamp {
  top: 40%;
  right: 12%;
  width: 70px;
  height: 70px;
  background: var(--blue);
  box-shadow: 0 0 40px var(--blue);
}

.wire {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  box-shadow: 0 0 16px var(--blue);
}

.w1 { top: 50%; left: 24%; width: 28%; transform: rotate(-12deg); }
.w2 { top: 47%; left: 51%; width: 29%; transform: rotate(18deg); }

.tile {
  width: 38%;
  height: 38%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 213, 143, 0.22), rgba(138, 109, 255, 0.18));
}
.t1 { top: 10%; left: 10%; }
.t2 { top: 14%; right: 12%; }
.t3 { bottom: 13%; left: 14%; }
.t4 { bottom: 10%; right: 10%; }

.vial {
  bottom: 16%;
  width: 70px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0 0 30px 30px;
  background: linear-gradient(180deg, transparent 36%, rgba(110, 189, 255, 0.75) 37%);
}
.vial.a { left: 20%; }
.vial.b { left: 43%; background: linear-gradient(180deg, transparent 52%, rgba(239, 124, 255, 0.72) 53%); }
.vial.c { right: 20%; background: linear-gradient(180deg, transparent 28%, rgba(246, 213, 143, 0.72) 29%); }

.block,
.wand {
  border-radius: 16px;
  background: rgba(246, 213, 143, 0.18);
}
.block { width: 32%; height: 22%; }
.b1 { top: 18%; left: 16%; }
.b2 { top: 44%; right: 15%; }
.b3 { bottom: 14%; left: 22%; }
.wand {
  top: 42%;
  left: 18%;
  width: 58%;
  height: 18px;
  background: linear-gradient(90deg, #8a512b, var(--gold));
}

.sword {
  top: 36%;
  left: 46%;
  width: 20px;
  height: 130px;
  border-radius: 999px;
  background: linear-gradient(180deg, white, var(--blue));
  box-shadow: 0 0 24px var(--blue);
}
.wind {
  width: 72%;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.wind.a { top: 28%; left: 12%; }
.wind.b { bottom: 28%; right: 12%; }

.coin {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 2px solid var(--gold);
  background: radial-gradient(circle, rgba(246, 213, 143, 0.9), rgba(112, 76, 30, 0.9));
  box-shadow: 0 0 30px rgba(246, 213, 143, 0.3);
}
.c1 { top: 24%; left: 24%; }
.c2 { top: 48%; left: 46%; }
.c3 { bottom: 18%; right: 18%; }

.divination-shell {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mode-tabs button {
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.mode-tabs .is-active {
  background: rgba(246, 213, 143, 0.18);
  color: var(--gold);
}

.question-box {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
  color: var(--gold);
}

.question-box textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 1rem;
}

.card-spread {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reading-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.reading-card img {
  width: min(190px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.reading-card p {
  margin: 0.8rem 0 0.2rem;
  color: var(--gold);
}

.reading-card span,
.disclaimer {
  color: var(--muted);
  font-size: 0.92rem;
}

.memory-chips .is-lit {
  border-color: rgba(246, 213, 143, 0.58);
  color: var(--gold);
  box-shadow: inset 0 0 18px rgba(246, 213, 143, 0.14);
}

.profile-builder,
.profile-summary-panel,
.profile-archive-panel,
.academy-teaser,
.archive-intelligence-panel {
  display: grid;
  gap: 1.1rem;
}

.profile-summary-panel,
.profile-archive-panel,
.academy-teaser,
.archive-intelligence-panel {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr) auto;
  align-items: center;
}

.profile-form-grid,
.profile-reading-grid,
.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.profile-form-grid label {
  display: grid;
  gap: 0.45rem;
  color: var(--gold);
  font-weight: 700;
}

.profile-form-grid input,
.profile-form-grid select {
  min-height: 48px;
  border: 1px solid rgba(246, 213, 143, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.profile-form-grid select option {
  background: #11182f;
}

.profile-status {
  justify-self: end;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
}

.profile-status.is-saved {
  border-color: rgba(246, 213, 143, 0.52);
  color: var(--gold);
  background: rgba(246, 213, 143, 0.12);
}

.profile-preview-card,
.profile-signature,
.academy-lesson {
  border: 1px solid rgba(246, 213, 143, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.profile-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
}

.profile-signature,
.academy-lesson {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 18px;
}

.profile-signature strong,
.academy-module h2,
.profile-oracle-card h2 {
  color: var(--gold);
}

.profile-signature em {
  color: rgba(255, 246, 219, 0.72);
  font-style: normal;
}

.academy-hero {
  align-items: center;
}

.academy-module {
  align-content: start;
}

.academy-module > span {
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(246, 213, 143, 0.2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
}

.academy-module.is-done {
  border-color: rgba(246, 213, 143, 0.38);
  background:
    radial-gradient(circle at 20% 0, rgba(246, 213, 143, 0.12), transparent 32%),
    var(--panel);
}

.stat-card span {
  display: block;
  color: var(--gold);
  font-size: 2.6rem;
  font-weight: 800;
}

.reading-record {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reading-record strong {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  color: var(--gold);
}

.reading-record small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.settings-panel {
  display: grid;
  gap: 1rem;
  max-width: 620px;
}

.settings-group {
  display: grid;
  gap: 0.55rem;
}

.settings-group p,
.settings-note {
  margin: 0;
}

.settings-note {
  color: rgba(247, 239, 227, 0.7);
  font-size: 0.92rem;
}

.click-fx-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.click-spark {
  position: fixed;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  animation: click-pop 0.72s ease-out forwards;
}

.click-spark span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  transform-origin: 0 0;
}

.click-spark span:nth-child(1) { transform: rotate(0deg) translateY(-18px); }
.click-spark span:nth-child(2) { transform: rotate(72deg) translateY(-16px); }
.click-spark span:nth-child(3) { transform: rotate(144deg) translateY(-18px); }
.click-spark span:nth-child(4) { transform: rotate(216deg) translateY(-16px); }
.click-spark span:nth-child(5) { transform: rotate(288deg) translateY(-18px); }

.click-spark.is-gold {
  color: rgba(246, 213, 143, 0.95);
}

.click-spark.is-violet {
  color: rgba(138, 109, 255, 0.95);
}

.click-spark.is-rose {
  color: rgba(255, 155, 155, 0.92);
}

@keyframes click-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.9);
  }
}

.oracle-screen {
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 18%, rgba(246, 213, 143, 0.13), transparent 22%),
    linear-gradient(180deg, rgba(4, 7, 19, 0.2), rgba(4, 7, 19, 0.78)),
    var(--oracle-bg, #092f35);
}

.oracle-plum {
  --oracle-bg: #2a0d27;
}

.oracle-teal {
  --oracle-bg: #07333a;
}

.oracle-screen::before {
  position: fixed;
  inset: 1.2rem;
  z-index: 1;
  content: "";
  border: 2px solid rgba(246, 213, 143, 0.55);
  border-inline-width: 4px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 0 0, rgba(246, 213, 143, 0.8) 0 20px, transparent 21px),
    radial-gradient(circle at 100% 0, rgba(246, 213, 143, 0.8) 0 20px, transparent 21px),
    radial-gradient(circle at 0 100%, rgba(246, 213, 143, 0.8) 0 20px, transparent 21px),
    radial-gradient(circle at 100% 100%, rgba(246, 213, 143, 0.8) 0 20px, transparent 21px);
  pointer-events: none;
  opacity: 0.52;
}

.oracle-header,
.oracle-frame {
  z-index: 3;
}

.oracle-frame {
  display: grid;
  gap: 1.2rem;
  min-height: calc(100svh - 160px);
  align-content: center;
}

.oracle-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 4vw, 3rem);
  width: min(900px, 100%);
  margin: 0 auto;
  justify-items: center;
}

.oracle-entry {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(4, 7, 19, 0.34);
  text-align: center;
  box-shadow: var(--shadow);
}

.oracle-entry p {
  width: min(28ch, 100%);
  margin-inline: auto;
}

.oracle-card-back {
  display: grid;
  width: min(230px, 58vw);
  aspect-ratio: 0.66;
  place-items: center;
  border: 3px solid rgba(246, 213, 143, 0.55);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(246, 213, 143, 0.9), transparent 14%),
    radial-gradient(circle, transparent 28%, rgba(246, 213, 143, 0.32) 29% 30%, transparent 31%),
    linear-gradient(145deg, rgba(89, 14, 66, 0.95), rgba(9, 49, 56, 0.92));
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.42);
}

.oracle-entry.teal .oracle-card-back {
  background:
    radial-gradient(circle, rgba(246, 213, 143, 0.95), transparent 14%),
    radial-gradient(circle, transparent 28%, rgba(246, 213, 143, 0.32) 29% 30%, transparent 31%),
    linear-gradient(145deg, #083f46, #061a21);
}

.oracle-card-back span {
  width: 70px;
  height: 70px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(246, 213, 143, 0.45);
}

.oracle-note {
  width: min(820px, 100%);
  margin: 0 auto;
}

.oracle-choice-panel {
  display: grid;
  gap: 1rem;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(246, 213, 143, 0.2);
  border-radius: 24px;
  background: rgba(7, 14, 31, 0.42);
}

.oracle-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.oracle-mode-card {
  display: grid;
  gap: 0.45rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 1rem;
  text-align: left;
  border: 1px solid rgba(246, 213, 143, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff6d0;
}

.oracle-mode-card strong {
  font-size: 1.08rem;
  color: #fff4bf;
}

.oracle-mode-card span,
.oracle-mode-hint {
  color: rgba(255, 246, 219, 0.74);
  line-height: 1.5;
}

.oracle-mode-card.is-active {
  border-color: rgba(246, 213, 143, 0.62);
  box-shadow: 0 0 0 2px rgba(246, 213, 143, 0.12), 0 16px 28px rgba(0, 0, 0, 0.24);
  background: linear-gradient(180deg, rgba(123, 21, 77, 0.3), rgba(8, 28, 47, 0.4));
}

.spread-template-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.spread-template-preview > div {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(246, 213, 143, 0.18);
  background: rgba(0, 0, 0, 0.16);
}

.spread-template-preview strong {
  color: #fff6d0;
  line-height: 1.5;
}

.daily-preview,
.question-ready-grid {
  display: grid;
  position: relative;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  align-items: end;
  gap: clamp(1rem, 3vw, 2rem);
  width: min(860px, 100%);
  margin: 0 auto;
}

.daily-preview::before,
.question-ready-grid::before,
.spread-board::before {
  position: absolute;
  inset: 8% 14%;
  z-index: -1;
  content: "";
  background:
    linear-gradient(68deg, transparent 49.7%, rgba(246, 213, 143, 0.22) 50%, transparent 50.3%),
    linear-gradient(-68deg, transparent 49.7%, rgba(246, 213, 143, 0.22) 50%, transparent 50.3%),
    radial-gradient(circle at 50% 10%, rgba(246, 213, 143, 0.34) 0 10px, transparent 11px),
    radial-gradient(circle at 50% 96%, rgba(246, 213, 143, 0.34) 0 10px, transparent 11px);
  opacity: 0.65;
}

.oracle-deck {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

.oracle-deck img,
.question-ready-grid img {
  width: min(210px, 100%);
  aspect-ratio: 0.66;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.48);
}

.oracle-deck.is-wide img,
.question-ready-grid .rainbow-ready {
  aspect-ratio: 1.82;
  width: min(420px, 100%);
}

.oracle-deck h2 {
  color: #fff5c7;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.38);
}

.ornate-button {
  display: inline-flex;
  justify-self: center;
  min-width: min(420px, 80vw);
  min-height: 78px;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 0;
  padding: 0.8rem 2rem;
  border: 4px solid #e0a53d;
  border-radius: 30px;
  background: linear-gradient(180deg, #a51d5e, #7d174d);
  color: #fff6c8;
  cursor: pointer;
  font-size: clamp(1.7rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.32);
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.2), 0 22px 45px rgba(0, 0, 0, 0.34);
}

.ornate-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  filter: saturate(0.7);
}

.oracle-entry .ornate-button {
  width: min(280px, 100%);
  min-width: 0;
  min-height: 64px;
  padding: 0.75rem 1.25rem;
  font-size: clamp(1.45rem, 4vw, 2.4rem);
}

.question-input-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(246, 213, 143, 0.36);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 65%, rgba(246, 213, 143, 0.2), transparent 24%),
    linear-gradient(145deg, rgba(126, 87, 47, 0.8), rgba(77, 48, 33, 0.8));
  box-shadow: var(--shadow);
}

.question-input-card label {
  display: grid;
  gap: 0.8rem;
  color: #fff6c8;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 700;
}

.question-input-card small {
  color: rgba(255, 246, 200, 0.76);
  font-size: 0.55em;
}

.question-input-card textarea {
  min-height: 160px;
  resize: vertical;
  border: 1px solid rgba(246, 213, 143, 0.35);
  border-radius: 18px;
  background: rgba(255, 246, 220, 0.08);
  color: #fff6d0;
  padding: 1rem;
  font-size: 1.1rem;
}

.form-error {
  color: var(--danger);
}

.question-ready-grid {
  grid-template-columns: repeat(3, minmax(90px, 1fr));
}

.question-ready-grid .rainbow-ready {
  grid-column: 1 / -1;
  justify-self: center;
}

.question-result-text {
  margin: 0 auto;
  width: min(880px, 100%);
  color: #fff6c8;
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-align: center;
}

.result-summary {
  display: grid;
  gap: 0.9rem;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(246, 213, 143, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 26, 52, 0.82), rgba(10, 18, 38, 0.72));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.result-note {
  margin: 0;
  color: rgba(255, 246, 219, 0.82);
  text-align: center;
  line-height: 1.6;
}

.result-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.result-chip {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 213, 143, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #fff6d0;
  font-size: 0.92rem;
}

.reading-sections {
  display: grid;
  gap: 1.4rem;
}

.spread-section {
  display: grid;
  gap: 1rem;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(246, 213, 143, 0.16);
  border-radius: 30px;
  background: rgba(8, 16, 34, 0.5);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #fff6d0;
}

.spread-board {
  display: grid;
  position: relative;
  gap: 1.4rem;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 5vw, 4rem);
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(246, 213, 143, 0.06), transparent 45%);
}

.spread-lines {
  position: absolute;
  inset: 10% 15%;
  z-index: -1;
  background:
    linear-gradient(60deg, transparent 49.7%, rgba(246, 213, 143, 0.2) 50%, transparent 50.3%),
    linear-gradient(-60deg, transparent 49.7%, rgba(246, 213, 143, 0.2) 50%, transparent 50.3%),
    linear-gradient(90deg, transparent 49.8%, rgba(246, 213, 143, 0.22) 50%, transparent 50.2%);
}

.spread-group {
  display: grid;
  position: relative;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  align-items: start;
  gap: clamp(0.8rem, 2.2vw, 1.5rem);
  padding-left: clamp(1.2rem, 4vw, 4rem);
  padding-block: 0.6rem;
}

.spread-board.daily .spread-group {
  grid-template-columns: minmax(160px, 260px);
  justify-content: center;
}

.vertical-label {
  position: absolute;
  left: 0;
  top: 50%;
  color: #fff6c8;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.32);
  transform: translate(0, -50%);
  writing-mode: vertical-rl;
}

.oracle-result-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.15rem;
  padding: 1rem 0.8rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(10, 18, 34, 0.32));
  border: 1px solid rgba(246, 213, 143, 0.14);
}

.oracle-result-card img {
  width: min(210px, 100%);
  aspect-ratio: 0.58;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.45);
}

.oracle-result-card p,
.oracle-result-card h3 {
  color: #fff6c8;
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.32);
}

.oracle-result-card p {
  margin: 0.8rem 0 0.2rem;
}

.oracle-result-card small {
  color: rgba(255, 246, 219, 0.72);
  line-height: 1.45;
}

.result-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.result-keywords i {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(246, 213, 143, 0.18);
  border-radius: 999px;
  color: #fff4bf;
  background: rgba(246, 213, 143, 0.08);
  font-size: 0.76rem;
  font-style: normal;
}

.rainbow-message {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 18, 34, 0.36));
  border: 1px solid rgba(246, 213, 143, 0.14);
  text-align: center;
}

.rainbow-message img {
  width: min(430px, 100%);
  aspect-ratio: 1.82;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.42);
}

.rainbow-message strong {
  color: #fff6c8;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.oracle-guide {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 1.1rem 1.2rem;
  border: 1px dotted rgba(246, 213, 143, 0.34);
  border-radius: 22px;
  background: rgba(7, 14, 29, 0.36);
  color: #fff6c8;
  text-align: center;
}

.oracle-guide p {
  color: rgba(255, 246, 200, 0.82);
}

.oracle-actions {
  justify-content: center;
}

@keyframes pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes slow-spin {
  to { transform: translate(-50%, -50%) rotate(calc(var(--rotate) + 360deg)) scaleY(0.26); }
}

@keyframes star-drift {
  to { background-position: 120px 60px; }
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 1200px) {
  .mini-game {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .mini-copy {
    order: 2;
  }

  .mini-board {
    order: 1;
  }

  .mini-game.zodiac .mini-board,
  .mini-game.house .mini-board {
    min-height: 720px;
  }

  .mini-game.cups .mini-board,
  .mini-game.wands .mini-board,
  .mini-game.swords .mini-board,
  .mini-game.pentacles .mini-board {
    min-height: 620px;
  }

  .mini-game.pentacles .mini-board {
    min-height: 700px;
  }

  .mini-game.wands .mini-board,
  .mini-game.swords .mini-board {
    min-height: 620px;
  }

  .mini-result-seal {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-layout,
  .astrolabe-panel,
  .mini-game {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    gap: 0.85rem;
  }

  .mini-copy {
    order: 1;
  }

  .mini-board {
    order: 2;
  }

  .astrology-route-map {
    max-height: 230px;
    overflow: auto;
    padding-right: 0.25rem;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
    mask-image: linear-gradient(180deg, #000 82%, transparent);
  }

  .cards-3,
  .proof-grid,
  .dashboard-bars,
  .achievement-grid,
  .chapter-detail-grid,
  .chapter-map,
  .card-spread {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    align-items: stretch;
    text-align: center;
  }

  .dashboard-row {
    text-align: center;
  }

  .dashboard-row span,
  .dashboard-row em {
    justify-self: center;
  }

  .dashboard-row i {
    width: 100%;
  }

  .chapter-node {
    min-height: auto;
    text-align: center;
  }

  .chapter-entry-head,
  .chapter-level-item,
  .profile-summary-panel,
  .profile-archive-panel,
  .academy-teaser,
  .archive-intelligence-panel,
  .profile-preview-card {
    grid-template-columns: 1fr;
  }

  .chapter-node span {
    justify-self: center;
  }

  .hero-copy {
    text-align: center;
  }

  .profile-status {
    justify-self: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-status-strip,
  .progression-meta {
    justify-content: center;
  }

  .home-dome {
    top: -8rem;
    width: 160vw;
  }

  .page-header {
    align-items: center;
  }

  .spread-board {
    padding-inline: 0;
  }

  .spread-group,
  .spread-board.daily .spread-group {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .vertical-label {
    position: static;
    transform: none;
    writing-mode: horizontal-tb;
    text-align: center;
  }

  .oracle-result-card img {
    width: min(220px, 72vw);
  }

  .oracle-home {
    grid-template-columns: 1fr;
    width: min(440px, 100%);
  }
}

@media (max-width: 560px) {
  .topbar,
  .page-header {
    gap: 0.5rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .ghost-button {
    min-height: 40px;
    padding: 0.55rem 0.7rem;
  }

  .hero-layout {
    padding-top: 2rem;
  }

  .orb-portal {
    width: min(330px, 84vw);
  }

  .sun-path {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .progress-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .oracle-entry {
    padding: 1.1rem 0.9rem 1.4rem;
    border-radius: 24px;
  }

  .oracle-card-back {
    width: min(210px, 72vw);
  }

  .oracle-entry .ornate-button {
    width: min(240px, 100%);
    min-height: 58px;
    font-size: 1.9rem;
  }

  .oracle-choice-panel {
    width: 100%;
    padding-inline: 0.8rem;
  }

  .oracle-mode-grid {
    grid-template-columns: 1fr;
  }
}

.planet-panel {
  display: grid;
  gap: 1rem;
}

.planet-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.planet-score {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(246, 213, 143, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.planet-score strong {
  font-size: 1.8rem;
  color: var(--gold);
}

.planet-status {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(246, 213, 143, 0.18);
  border-radius: 16px;
  background: rgba(12, 24, 48, 0.64);
  color: rgba(255, 246, 219, 0.92);
  font-size: 0.96rem;
  line-height: 1.5;
}

.planet-status.is-hint {
  border-color: rgba(110, 189, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(110, 189, 255, 0.08);
}

.planet-status.is-success {
  border-color: rgba(246, 213, 143, 0.42);
  box-shadow: 0 0 18px rgba(246, 213, 143, 0.12);
}

.planet-status.is-error {
  border-color: rgba(255, 145, 145, 0.42);
  color: #ffe4de;
  background: rgba(64, 20, 20, 0.38);
  box-shadow: 0 0 18px rgba(255, 145, 145, 0.12);
}

.planet-clues {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem 1rem 1rem 1.5rem;
  border: 1px solid rgba(246, 213, 143, 0.18);
  border-radius: 18px;
  background: rgba(8, 18, 36, 0.52);
  color: rgba(255, 246, 219, 0.9);
}

.planet-clues li {
  line-height: 1.5;
}

.zodiac-clues,
.house-clues {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
  padding: 0.9rem 1rem 0.9rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(246, 213, 143, 0.16);
  background: rgba(6, 18, 36, 0.48);
}

.zodiac-clues li,
.house-clues li {
  line-height: 1.45;
  color: rgba(255, 246, 219, 0.88);
}

.zodiac-status,
.house-status {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(246, 213, 143, 0.18);
  background: rgba(8, 18, 36, 0.6);
}

.zodiac-status.is-hint {
  border-color: rgba(110, 189, 255, 0.26);
}

.zodiac-status.is-success {
  border-color: rgba(246, 213, 143, 0.42);
  box-shadow: 0 0 18px rgba(246, 213, 143, 0.12);
}

.zodiac-status.is-error {
  border-color: rgba(255, 145, 145, 0.42);
  color: #ffe4de;
  background: rgba(64, 20, 20, 0.38);
}

.zodiac-probe,
.house-probe {
  justify-self: start;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 246, 219, 0.82);
  font-size: 0.92rem;
}

.zodiac-insight {
  justify-self: start;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(110, 189, 255, 0.18);
  background: rgba(10, 24, 46, 0.6);
  color: rgba(255, 246, 219, 0.86);
}

.zodiac-insight strong {
  color: #fff6d0;
}

.planet-board {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(110, 189, 255, 0.25);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 45%, rgba(110, 189, 255, 0.14), transparent 35%), rgba(7, 17, 36, 0.52);
}

.planet-orbit,
.planet-trace {
  position: absolute;
  border-radius: 999px;
}

.planet-orbit {
  border: 1px solid rgba(246, 213, 143, 0.18);
}

.orbit-1 { inset: 18% 30%; }
.orbit-2 { inset: 12% 22%; }
.orbit-3 { inset: 8% 14%; }
.orbit-4 { inset: 4% 6%; }

.planet-trace {
  height: 3px;
  background: linear-gradient(90deg, rgba(246, 213, 143, 0.9), rgba(110, 189, 255, 0.9));
  box-shadow: 0 0 12px rgba(110, 189, 255, 0.4);
}

.trace-1 { top: 52%; left: 25%; width: 18%; transform: rotate(-10deg); }
.trace-2 { top: 43%; left: 41%; width: 16%; transform: rotate(-8deg); }
.trace-3 { top: 36%; left: 55%; width: 14%; transform: rotate(8deg); }
.trace-4 { top: 44%; left: 67%; width: 14%; transform: rotate(18deg); }

.planet-node {
  position: absolute;
  display: grid;
  min-width: 78px;
  min-height: 78px;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(246, 213, 143, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), rgba(99, 86, 219, 0.75));
  box-shadow: 0 0 26px rgba(110, 189, 255, 0.2);
  color: #fff6db;
}

.planet-node.is-linked {
  border-color: rgba(246, 213, 143, 0.88);
  box-shadow: 0 0 28px rgba(246, 213, 143, 0.32);
}

.planet-node.is-current,
.planet-node.is-next {
  border-color: rgba(110, 189, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(110, 189, 255, 0.14), 0 0 30px rgba(110, 189, 255, 0.32);
  transform: scale(1.04);
}

.planet-node span,
.house-legend span,
.house-status span,
.house-status strong,
.cups-sources .cups-source,
.cups-source span,
.cups-pour-guide span,
.cups-pour-guide strong,
.cups-targets .cups-target,
.cups-targets .cups-target span,
.major-header span,
.major-header strong,
.major-grid,
.major-grid .major-tile,
.major-grid .major-gap,
.wand-block span,
.wand-block .wand-controls,
.wand-block .wand-controls button,
.wand-status span,
.wand-status strong,
.wand-control-dock span,
.wand-control-dock .wand-dpad,
.wand-dpad button,
.sword-status span,
.sword-status strong,
.sword-forecast span,
.sword-forecast b,
.sword-round-track span,
.sword-flight-lanes .sword-lane,
.sword-lane .lane-name,
.sword-lane .lane-state,
.sword-lane .sword-icon,
.sword-lane .lane-trail,
.pentacle-summary div,
.pentacle-queue,
.pentacle-queue span,
.pentacle-columns .pentacle-column,
.pentacle-column .pentacle-column-label,
.pentacle-column .pentacle-column-state,
.pentacle-column .pentacle-stack,
.pentacle-column .pentacle-column-hint,
.pentacle-stack .pentacle-token {
  position: relative !important;
}

.planet-1 { left: 12%; top: 43%; width: 104px; height: 104px; background: radial-gradient(circle at 35% 30%, rgba(255, 246, 200, 0.92), rgba(236, 171, 53, 0.9)); color: #43280a; }
.planet-2 { left: 31%; top: 38%; width: 72px; height: 72px; background: radial-gradient(circle at 35% 30%, rgba(205, 230, 255, 0.92), rgba(76, 153, 232, 0.92)); }
.planet-3 { left: 47%; top: 31%; width: 76px; height: 76px; background: radial-gradient(circle at 35% 30%, rgba(249, 221, 196, 0.92), rgba(177, 120, 79, 0.92)); }
.planet-4 { left: 63%; top: 34%; width: 70px; height: 70px; background: radial-gradient(circle at 35% 30%, rgba(255, 211, 211, 0.92), rgba(204, 88, 74, 0.92)); }
.planet-5 { right: 10%; top: 44%; width: 88px; height: 88px; background: radial-gradient(circle at 35% 30%, rgba(252, 229, 202, 0.92), rgba(160, 110, 57, 0.92)); }
.planet-6 { right: 5%; top: 26%; width: 76px; height: 76px; background: radial-gradient(circle at 35% 30%, rgba(188, 232, 255, 0.92), rgba(70, 99, 178, 0.92)); }
.planet-7 { right: 4%; top: 12%; width: 70px; height: 70px; background: radial-gradient(circle at 35% 30%, rgba(190, 252, 244, 0.92), rgba(52, 157, 174, 0.92)); }
.planet-8 { right: 10%; bottom: 10%; width: 78px; height: 78px; background: radial-gradient(circle at 35% 30%, rgba(174, 211, 255, 0.92), rgba(61, 88, 172, 0.92)); }
.planet-9 { left: 50%; bottom: 7%; width: 74px; height: 74px; background: radial-gradient(circle at 35% 30%, rgba(225, 198, 255, 0.92), rgba(117, 77, 174, 0.92)); }
.planet-10 { left: 20%; bottom: 8%; width: 68px; height: 68px; background: radial-gradient(circle at 35% 30%, rgba(214, 206, 196, 0.92), rgba(96, 84, 82, 0.92)); }

.zodiac-board,
.house-board,
.cups-board,
.wands-board,
.swords-board,
.pentacles-board,
.major-board {
  position: absolute;
  inset: 0;
}

.wands-board {
  --wand-zone-top: 5.9rem;
  --wand-zone-bottom: 5.9rem;
}

.major-header {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(5, 12, 28, 0.78);
  color: #fff6d7;
}

.major-grid {
  position: absolute;
  inset: 5.9rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.major-tile,
.major-gap {
  min-height: 88px;
  border-radius: 22px;
}

.major-tile {
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 213, 143, 0.35);
  background:
    radial-gradient(circle at 50% 28%, rgba(246, 213, 143, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(20, 33, 66, 0.92), rgba(9, 17, 36, 0.88));
  color: #fff6cb;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.major-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 213, 143, 0.72);
  box-shadow: 0 0 18px rgba(246, 213, 143, 0.15);
}

.major-gap {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.zodiac-board {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
}

.zodiac-top,
.house-top,
.sword-top {
  display: grid;
  gap: 0.7rem;
}

.zodiac-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-start;
}

.zodiac-scene,
.house-scene,
.wand-scene {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(110, 189, 255, 0.18);
  border-radius: 22px;
  background: rgba(6, 16, 34, 0.34);
  overflow: hidden;
}

.zodiac-svg,
.house-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.zodiac-track,
.house-wire {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
  stroke-linecap: round;
}

.zodiac-track.is-trace {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-dasharray: 4 6;
}

.zodiac-track.is-lit,
.house-wire.is-live {
  stroke: rgba(246, 213, 143, 0.95);
  filter: drop-shadow(0 0 8px rgba(110, 189, 255, 0.55));
}

.zodiac-track.is-fail {
  stroke: rgba(255, 120, 120, 0.92);
  filter: drop-shadow(0 0 8px rgba(255, 120, 120, 0.38));
}

.house-wire.main-wire {
  stroke-width: 2.6;
}

.house-wire.noise-wire {
  stroke: rgba(255, 110, 110, 0.32);
  stroke-dasharray: 5 6;
}

.house-wire.noise-wire.is-live {
  stroke: rgba(255, 138, 138, 0.96);
  filter: drop-shadow(0 0 10px rgba(255, 110, 110, 0.55));
}

.zodiac-star,
.zodiac-target {
  fill: rgba(255, 255, 255, 0.3);
}

.zodiac-star.is-lit,
.zodiac-target.is-lit {
  fill: rgba(246, 213, 143, 1);
  filter: drop-shadow(0 0 12px rgba(110, 189, 255, 0.65));
}

.mirror-toggle {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(246, 213, 143, 0.42);
  border-radius: 18px;
  background: rgba(8, 18, 36, 0.88);
  color: var(--gold);
  gap: 0.15rem;
  transform: translate(-50%, -50%);
}

.mirror-toggle span {
  font-size: 0.74rem;
  color: rgba(255, 246, 219, 0.72);
}

.mirror-toggle strong {
  font-size: 1.5rem;
}

.mirror-toggle.is-touched,
.house-edge-toggle.is-touched {
  border-color: rgba(110, 189, 255, 0.95);
  box-shadow:
    0 0 0 3px rgba(110, 189, 255, 0.16),
    0 0 24px rgba(110, 189, 255, 0.32),
    inset 0 0 18px rgba(246, 213, 143, 0.08);
}

.mirror-toggle.is-touched::after,
.house-edge-toggle.is-touched::after {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(110, 189, 255, 0.5);
  border-radius: inherit;
  pointer-events: none;
  content: "";
  animation: touchRipple 0.85s ease-out both;
}

.zodiac-submit {
  justify-self: center;
  margin-top: auto;
  min-width: min(280px, 82%);
  min-height: 58px;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(246, 213, 143, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 83, 130, 0.95), rgba(12, 40, 80, 0.95));
  color: #fff6d0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.26);
}

.house-node {
  position: absolute;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(246, 213, 143, 0.4);
  border-radius: 50%;
  background: rgba(7, 17, 36, 0.94);
  color: #fff3c3;
}

.house-node.is-live {
  border-color: rgba(246, 213, 143, 0.92);
  box-shadow: 0 0 18px rgba(110, 189, 255, 0.22);
}

.node-power { left: 8%; top: 46%; }
.node-asc { left: 30%; top: 20%; }
.node-home { left: 54%; top: 54%; }
.node-lamp { right: 8%; top: 28%; }

.house-legend {
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.55rem;
}

.house-legend-chip,
.house-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 12, 28, 0.76);
  color: #fff6d7;
}

.house-legend-chip.is-main {
  border-color: rgba(246, 213, 143, 0.35);
}

.house-legend-chip.is-noise {
  border-color: rgba(255, 110, 110, 0.4);
  color: #ffd9d9;
}

.house-status {
  right: 1rem;
  bottom: 1rem;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 20px;
}

.house-status strong {
  color: #fff6cb;
}

.house-status.is-warning {
  border-color: rgba(255, 110, 110, 0.45);
  color: #ffd4d4;
}

.house-status.is-clear {
  border-color: rgba(246, 213, 143, 0.45);
  box-shadow: 0 0 20px rgba(246, 213, 143, 0.12);
}

.house-board {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr);
  gap: 0.8rem;
  padding: 1rem;
}

.house-edge-toggle {
  position: absolute;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(7, 17, 36, 0.84);
  color: #fff3c3;
}

.house-edge-toggle.is-main {
  border-color: rgba(246, 213, 143, 0.28);
}

.house-edge-toggle.is-noise {
  border-color: rgba(255, 110, 110, 0.28);
  color: #ffd9d9;
}

.house-edge-toggle.is-live {
  border-color: rgba(246, 213, 143, 0.95);
  box-shadow: 0 0 18px rgba(246, 213, 143, 0.2);
}

.house-edge-toggle.is-noise.is-live {
  border-color: rgba(255, 138, 138, 0.96);
  box-shadow: 0 0 18px rgba(255, 110, 110, 0.22);
}

@keyframes touchRipple {
  from {
    opacity: 0.95;
    transform: scale(0.92);
  }

  to {
    opacity: 0;
    transform: scale(1.18);
  }
}

.edge-a { left: 20%; top: 32%; }
.edge-b { left: 44%; top: 38%; }
.edge-c { left: 68%; top: 44%; }
.edge-d { left: 28%; top: 62%; }
.edge-e { left: 56%; top: 18%; }

.cups-sources,
.cups-targets,
.pentacle-columns {
  position: absolute;
  display: grid;
  gap: 1rem;
  left: 1.2rem;
  right: 1.2rem;
}

.cups-sources {
  top: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cups-pour-guide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 84px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(246, 213, 143, 0.18);
  border-radius: 24px;
  background: rgba(7, 17, 36, 0.54);
  color: #fff6d7;
  text-align: center;
}

.cups-pour-guide.is-armed {
  border-color: rgba(110, 189, 255, 0.45);
  box-shadow: 0 0 18px rgba(110, 189, 255, 0.15);
}

.cups-pour-guide.is-success {
  border-color: rgba(246, 213, 143, 0.4);
}

.cups-pour-guide.is-spill {
  border-color: rgba(255, 124, 124, 0.45);
  color: #ffd7d7;
}

.cups-guide-droplet {
  width: 16px;
  height: 22px;
  border-radius: 50% 50% 60% 60%;
  transform: rotate(18deg);
  background: rgba(110, 189, 255, 0.9);
  box-shadow: 0 0 16px rgba(110, 189, 255, 0.35);
}

.cups-guide-droplet.source-violet {
  background: rgba(208, 123, 255, 0.92);
  box-shadow: 0 0 16px rgba(208, 123, 255, 0.32);
}

.cups-guide-droplet.source-gold {
  background: rgba(246, 213, 143, 0.95);
  box-shadow: 0 0 16px rgba(246, 213, 143, 0.32);
}

.cups-water-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.cups-board {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.cups-water-grid button,
.cups-water-grid span {
  position: relative;
}

.cups-vessel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  min-height: 206px;
  padding: 0.9rem 0.65rem;
  border: 1px solid rgba(246, 213, 143, 0.35);
  border-radius: 24px 24px 34px 34px;
  background: rgba(7, 17, 36, 0.82);
  color: #fff5cb;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cups-vessel::after {
  position: absolute;
  inset: 10px 10px auto;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
}

.cups-vessel.is-selected {
  border-color: rgba(110, 189, 255, 0.92);
  box-shadow: 0 0 20px rgba(110, 189, 255, 0.18);
  transform: translateY(-3px);
}

.cups-vessel.is-solved {
  border-color: rgba(246, 213, 143, 0.9);
  box-shadow: 0 0 24px rgba(246, 213, 143, 0.2);
}

.cups-vessel-name,
.cups-vessel-state {
  z-index: 1;
}

.cups-vessel-state {
  color: rgba(255, 246, 203, 0.72);
  font-size: 0.82rem;
}

.cups-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.3rem;
  min-height: 132px;
  margin-top: auto;
  padding: 0.7rem 0.45rem 0.2rem;
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08));
}

.cups-layer {
  display: block;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.cups-layer.is-blue {
  background: linear-gradient(180deg, rgba(149, 214, 255, 0.98), rgba(77, 157, 236, 0.88));
  box-shadow: 0 0 12px rgba(110, 189, 255, 0.2);
}

.cups-layer.is-violet {
  background: linear-gradient(180deg, rgba(228, 177, 255, 0.98), rgba(180, 106, 235, 0.88));
  box-shadow: 0 0 12px rgba(208, 123, 255, 0.2);
}

.cups-layer.is-gold {
  background: linear-gradient(180deg, rgba(255, 238, 181, 0.98), rgba(232, 190, 92, 0.88));
  box-shadow: 0 0 12px rgba(246, 213, 143, 0.2);
}

.cups-layer.is-empty {
  background: rgba(255, 255, 255, 0.03);
}

.cups-targets {
  bottom: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.cups-source,
.cups-target {
  border: 1px solid rgba(246, 213, 143, 0.35);
  background: rgba(7, 17, 36, 0.88);
  color: #fff5cb;
}

.cups-source {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-height: 78px;
  border-radius: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cups-source.source-blue {
  box-shadow: inset 0 -18px 0 rgba(110, 189, 255, 0.08);
}

.cups-source.source-violet {
  box-shadow: inset 0 -18px 0 rgba(208, 123, 255, 0.08);
}

.cups-source.source-gold {
  box-shadow: inset 0 -18px 0 rgba(246, 213, 143, 0.08);
}

.cups-source.is-selected {
  border-color: rgba(246, 213, 143, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(246, 213, 143, 0.22);
}

.cups-source-note {
  color: rgba(255, 246, 203, 0.72);
  font-size: 0.82rem;
}

.cups-target {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  min-height: 180px;
  padding: 0.85rem 0.7rem;
  border-radius: 24px 24px 34px 34px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cups-target::before {
  position: absolute;
  inset: 40% 0 0;
  background: var(--fill);
  content: "";
}

.cups-target::after {
  position: absolute;
  inset: 10px 10px auto;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
}

.cups-target.is-targeted {
  border-color: rgba(110, 189, 255, 0.9);
  box-shadow: 0 0 20px rgba(110, 189, 255, 0.16);
}

.cups-target.is-correct {
  border-color: rgba(246, 213, 143, 0.95);
  box-shadow: 0 0 22px rgba(246, 213, 143, 0.18);
}

.cups-target.is-wrong {
  border-color: rgba(255, 124, 124, 0.9);
  box-shadow: 0 0 22px rgba(255, 124, 124, 0.14);
}

.cups-target span {
  position: relative;
  z-index: 1;
}

.cups-target-state {
  color: rgba(255, 246, 203, 0.74);
  font-size: 0.82rem;
}

.wand-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.wand-grid span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.wand-exit {
  position: absolute;
  right: 0.7rem;
  top: 30%;
  width: 8px;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(246, 213, 143, 0.25), rgba(246, 213, 143, 0.95));
}

.wand-block {
  position: absolute;
  left: calc(var(--x) * (100% / 4));
  top: calc(var(--y) * (100% / 4));
  width: calc(var(--w) * (100% / 4) - 0.45rem);
  height: calc(var(--h) * (100% / 4) - 0.45rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.55rem;
  border: 1px solid rgba(246, 213, 143, 0.45);
  border-radius: 18px;
  background: rgba(111, 73, 42, 0.88);
  color: #fff2d5;
}

.wand-block small {
  opacity: 0.78;
  font-size: 0.78rem;
}

.wand-block.goal {
  background: linear-gradient(90deg, rgba(138, 81, 43, 0.95), rgba(246, 213, 143, 0.82));
  color: #2a1805;
}

.wand-block.is-selected {
  border-color: rgba(110, 189, 255, 0.95);
  box-shadow: 0 0 22px rgba(110, 189, 255, 0.18);
  transform: translateY(-2px);
}

.wand-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(5, 12, 28, 0.76);
  color: #fff6d7;
}

.wand-control-dock {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(5, 12, 28, 0.8);
  color: #fff6d7;
}

.wand-control-dock small {
  color: rgba(255, 246, 215, 0.74);
  line-height: 1.45;
}

.wand-dpad {
  display: flex;
  gap: 0.55rem;
}

.wand-dpad button {
  min-width: 88px;
}

.wand-dpad button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.wand-dpad button {
  min-width: 52px;
  min-height: 44px;
  border: 1px solid rgba(246, 213, 143, 0.36);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff6cb;
  font-size: 1.1rem;
}

.wand-controls {
  display: flex;
  gap: 0.35rem;
}

.wand-controls button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
}

.wands-board {
  display: grid;
  grid-template-rows: auto auto minmax(320px, 1fr);
  gap: 0.8rem;
  padding: 1rem;
}

.sword-lane {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(7, 17, 36, 0.8);
  color: #fff8dd;
  overflow: hidden;
}

.sword-lane.is-active {
  border-color: rgba(110, 189, 255, 0.92);
  box-shadow: 0 0 20px rgba(110, 189, 255, 0.18);
}

.sword-lane.is-open {
  background: linear-gradient(90deg, rgba(110, 189, 255, 0.14), rgba(7, 17, 36, 0.82));
}

.sword-lane.is-blocked {
  background: linear-gradient(90deg, rgba(255, 104, 104, 0.08), rgba(7, 17, 36, 0.84));
}

.sword-lane.is-hit {
  border-color: rgba(255, 124, 124, 0.92);
}

.sword-lane.is-cleared {
  border-color: rgba(246, 213, 143, 0.92);
}

.sword-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(5, 12, 28, 0.76);
  color: #fff6d7;
}

.sword-status.is-safe {
  border-color: rgba(246, 213, 143, 0.42);
}

.sword-status.is-hit {
  border-color: rgba(255, 124, 124, 0.45);
  color: #ffd4d4;
}

.sword-forecast {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.sword-forecast span {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(9, 18, 36, 0.74);
  color: rgba(255, 246, 203, 0.82);
  font-size: 0.82rem;
}

.sword-forecast b {
  color: var(--gold);
}

.sword-round-track {
  position: relative;
  display: flex;
  gap: 0.45rem;
}

.sword-round-dot {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.sword-round-dot.is-current {
  background: rgba(110, 189, 255, 0.8);
}

.sword-round-dot.is-cleared {
  background: rgba(246, 213, 143, 0.95);
}

.sword-flight-lanes {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.lane-state {
  color: rgba(255, 246, 203, 0.78);
  font-size: 0.82rem;
}

.sword-icon {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
}

.wind-wall {
  position: absolute;
  right: 0.8rem;
  width: 28%;
  height: 54%;
  border-radius: 999px;
}

.wind-wall.is-danger {
  background: linear-gradient(90deg, rgba(255, 104, 104, 0.35), rgba(255, 104, 104, 0.85));
}

.wind-wall.is-open {
  background: linear-gradient(90deg, rgba(110, 189, 255, 0.18), rgba(110, 189, 255, 0.42));
}

.lane-trail {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.sword-round-indicator,
.pentacle-next {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(246, 213, 143, 0.25);
  border-radius: 999px;
  background: rgba(7, 17, 36, 0.82);
  color: #fff6cb;
}

.sword-round-indicator {
  position: relative;
  bottom: auto;
  left: auto;
  justify-self: center;
  transform: none;
}

.swords-board {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.8rem;
  padding: 1rem;
}

.mini-game.pentacles .mini-board {
  min-height: 760px;
}

.mini-game.pentacles .mini-result-seal {
  display: none;
}

.pentacle-next {
  position: relative;
  left: auto;
  justify-self: start;
  transform: none;
}

.pentacle-summary {
  position: relative;
  display: grid;
  gap: 0.6rem;
}

.pentacle-highest,
.pentacle-feed {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 17, 36, 0.82);
  color: #fff6cb;
}

.pentacle-feed.is-merge {
  border-color: rgba(246, 213, 143, 0.42);
  box-shadow: 0 0 18px rgba(246, 213, 143, 0.14);
}

.pentacle-feed.is-drop {
  border-color: rgba(110, 189, 255, 0.38);
}

.pentacle-feed.is-blocked {
  border-color: rgba(255, 124, 124, 0.42);
  color: #ffd6d6;
}

.pentacle-queue {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.pentacle-columns {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.pentacles-board {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.85rem;
  padding: 1rem;
}

.pentacle-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem;
  border: 1px solid rgba(246, 213, 143, 0.24);
  border-radius: 22px;
  background: rgba(7, 17, 36, 0.88);
  color: #fff6cb;
}

.pentacle-column.is-active {
  border-color: rgba(110, 189, 255, 0.7);
  box-shadow: 0 0 22px rgba(110, 189, 255, 0.14);
}

.pentacle-column.is-merge {
  border-color: rgba(246, 213, 143, 0.84);
  box-shadow: 0 0 22px rgba(246, 213, 143, 0.14);
}

.pentacle-column-state,
.pentacle-column-hint {
  color: rgba(255, 246, 203, 0.76);
  font-size: 0.82rem;
}

.pentacle-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.45rem;
  min-height: 180px;
}

.pentacle-stack.has-stack {
  padding-top: 0.35rem;
}

.pentacle-token {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 999px;
  color: #2f1e00;
  font-weight: 700;
}

.pentacle-token.is-next {
  box-shadow: 0 0 0 2px rgba(246, 213, 143, 0.4), 0 0 18px rgba(246, 213, 143, 0.2);
}

.level-1 { background: linear-gradient(90deg, #f6d58f, #d2a04a); }
.level-2 { background: linear-gradient(90deg, #d4c9ff, #8f7dff); color: #130c38; }
.level-3 { background: linear-gradient(90deg, #a6f2ff, #4ca7ff); color: #041b34; }
.level-4,
.level-5,
.level-6 { background: linear-gradient(90deg, #ffe2a4, #ff8d4d); }

@media (max-width: 900px) {
  .planet-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .planet-board {
    min-height: 360px;
  }

  .planet-score {
    width: 72px;
    height: 72px;
  }

  .mirror-toggle {
    width: 58px;
    height: 58px;
  }

  .zodiac-scene,
  .house-scene,
  .wand-scene {
    min-height: 360px;
  }

  .zodiac-scene,
  .house-scene {
    min-height: 240px;
  }

  .zodiac-board,
  .house-board {
    grid-template-rows: auto minmax(220px, 1fr) auto;
  }

  .zodiac-clues,
  .house-clues {
    font-size: clamp(0.92rem, 3.2vw, 1rem);
    line-height: 1.55;
  }

  .zodiac-status,
  .house-status {
    font-size: 0.95rem;
  }

  .house-node {
    width: 68px;
    height: 68px;
    font-size: 0.85rem;
  }

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

  .major-header,
  .wand-status,
  .sword-status {
    flex-direction: column;
    align-items: flex-start;
  }

  .major-grid {
    inset: 6.8rem 0.9rem 1rem;
    gap: 0.55rem;
  }

  .major-tile,
  .major-gap {
    min-height: 76px;
  }

  .wands-board {
    --wand-zone-top: 6.6rem;
    --wand-zone-bottom: 7rem;
  }

  .wand-control-dock {
    align-items: center;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wand-dpad {
    justify-content: center;
    width: 100%;
  }

  .mini-game.wands .mini-board {
    min-height: 620px;
  }

  .mini-game.zodiac .mini-board,
  .mini-game.house .mini-board {
    min-height: 760px;
  }

  .mini-game.cups .mini-board {
    min-height: 660px;
  }

  .mini-game.swords .mini-board {
    min-height: 620px;
  }

  .mini-game.pentacles .mini-board {
    min-height: 700px;
  }

  .cups-vessel {
    min-height: 160px;
  }

  .cups-stack {
    min-height: 104px;
  }

  .sword-forecast {
    grid-template-columns: 1fr;
  }

  .sword-round-track {
    gap: 0.3rem;
  }

  .sword-flight-lanes {
    gap: 0.6rem;
  }

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

  .pentacle-stack {
    min-height: 126px;
  }
}
