@font-face {
  font-family: 'NyghtSerif';
  src: local('css/NyghtSerif-Regular');
  font-weight: 300;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --panel-bg: rgba(8, 8, 10, 0.82);
  --panel-border: rgba(255,255,255,0.08);
  --panel-border-hover: rgba(255,255,255,0.18);
  --text-primary: rgba(255,255,255,0.92);
  --text-muted: rgba(255,255,255,0.38);
  --text-dim: rgba(255,255,255,0.55);
  --accent: #e8e0ff;
  --track-bg: rgba(255,255,255,0.1);
  --thumb-color: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #3D4FA2;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

canvas#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ── Layout ── */
.app {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 5;
  pointer-events: none;
}

.left-col {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 100px 56px 60px;
  pointer-events: none;
  overflow-y: auto;
  max-height: 100vh;
  scrollbar-width: none;
}
.left-col::-webkit-scrollbar { display: none; }

.right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}

/* ── Wordmark ── */
.wordmark {
  position: fixed;
  top: 32px;
  left: 56px;
  font-size: 20px;
  font-weight: 5300;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  user-select: none;
  z-index: 10;
  pointer-events: none;
}
.wordmark .star { color: var(--accent); margin-right: 6px; }

/* ── Left content ── */
.left-content {
  pointer-events: all;
  width: 100%;
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 380px;
}

/* ── Birth input card ── */
.birth-card {
  background: rgba(255,255,255,0.55);
  opacity: 75%;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 28px;
  max-width: 420px;
}

.birth-card-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10,10,20,0.55);
  margin-bottom: 16px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.birth-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.birth-inputs select {
  flex: 1;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  color: rgba(10,10,20,0.85);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(0,0,0,0.35)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.birth-inputs select:hover {
  border-color: rgba(0,0,0,0.25);
  background-color: rgba(0,0,0,0.08);
}
.birth-inputs select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

.reveal-btn {
  width: 100%;
  padding: 13px;
  background: rgba(10,10,30,0.12);
  border: 1px solid rgba(10,10,30,0.2);
  border-radius: var(--radius-sm);
  color: rgba(10,10,30,0.75);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.reveal-btn:hover {
  background: rgba(10,10,30,0.2);
  border-color: rgba(232, 224, 255, 0.45);
  transform: translateY(-1px);
}
.reveal-btn:active { transform: translateY(0); }

/* ── Result card ── */
.result-card {
  background: rgba(255,255,255,0.55);
  opacity: 85%;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 20px 24px;
  max-width: 420px;
  width: 100%;
  display: none;
  margin-top: 12px;
}
.result-card.visible { display: block; }

.result-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.result-row + .result-row {
  border-top: 1px solid rgba(10,10,20,0.55);
}
.result-emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.result-info { flex: 1; }
.result-type {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10,10,20,0.55);
  margin-bottom: 3px;
}
.result-name {
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.01em;
}
.result-dates {
  font-size: 11px;
  color: rgba(10,10,20,0.55);
  margin-top: 2px;
}

/* ── Right: Zodiac canvas ── */
.zodiac-wrap {
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#zodiacCanvas {
  display: block;
  cursor: pointer;
}

.zodiac-caption {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Tooltip ── */
.tooltip {
  position: fixed;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
  max-width: 200px;
}
.tooltip.visible { opacity: 1; }
.tooltip-sign {
  font-size: 18px;
  margin-bottom: 4px;
}
.tooltip-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.tooltip-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Reset link ── */
.reset-link {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: rgba(10,10,30,0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  text-align: center;
  width: 100%;
}
.reset-link:hover { color: rgba(10,10,30,0.7); }

/* ── Combined reading card ── */
.combined-card {
  background: rgba(255,255,255,0.55);
  opacity: 85%;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 20px 24px;
  max-width: 420px;
  width: 100%;
  display: none;
  margin-top: 12px;
}
.combined-card.visible { display: block; }
.combined-section-label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10,10,20,0.55);
  margin-bottom: 9px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.combined-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.combined-tag {
  font-size: 11px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: rgba(10,10,20,0.55);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(10,10,20,0.55);
  border-radius: 100px;
  padding: 4px 12px;
}
.combined-divider {
  height: 1px;
  background: rgba(10,10,20,0.55);
  margin: 0 0 14px;
}
.combined-lucky {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}
.combined-lucky-group { flex: 1; }
.combined-lucky-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.combined-fortune {
  font-size: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: rgba(10,10,20,0.55);
  line-height: 1.75;
  font-style: italic;
}

/* ── Sign detail panel ── */
.sign-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease;
}
.sign-panel-overlay.visible {
  pointer-events: all;
  opacity: 1;
}

.sign-panel {
  position: fixed;
  top: 50%;
  right: 40px;
  transform: translateY(-50%) translateX(20px);
  width: 300px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 51;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}
.sign-panel.visible {
  pointer-events: all;
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sign-panel-header {
  padding: 20px 20px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sign-panel-icon { font-size: 36px; line-height: 1; flex-shrink: 0; }
.sign-panel-meta { flex: 1; }
.sign-panel-type {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.sign-panel-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.1;
}
.sign-panel-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.sign-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.sign-panel-close:hover { color: var(--text-primary); }

.sign-panel-body {
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sign-panel-divider {
  height: 1px;
  background: var(--panel-border);
  margin: 0 -20px;
}
.sign-panel-section-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.sign-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sign-panel-tag {
  font-size: 11px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--panel-border);
  border-radius: 100px;
  padding: 3px 10px;
}
.sign-panel-attr-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sign-panel-attr {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sign-panel-attr-label {
  font-size: 11px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
}
.sign-panel-attr-bar-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.sign-panel-attr-bar {
  height: 100%;
  background: rgba(232,224,255,0.55);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.sign-panel-lucky {
  display: flex;
  gap: 14px;
}
.sign-panel-lucky-group { flex: 1; }
.sign-panel-lucky-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.sign-panel-fortune {
  font-size: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-dim);
  line-height: 1.7;
  font-style: italic;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 56px;
  z-index: 15;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  pointer-events: all;
}

.nav-links a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  pointer-events: all;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
/* Hamburger → X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61, 79, 162, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-drawer.open {
  display: flex;
  opacity: 1;
}
.nav-drawer a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.nav-drawer a:hover { color: var(--accent); transform: translateX(4px); }
.nav-drawer-close {
  position: absolute;
  top: 24px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  pointer-events: all;
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: 60px;
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Toggle button ── */
.toggle-btn {
  position: fixed;
  bottom: 32px;
  right: 36px;
  z-index: 20;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: all;
}
.toggle-btn:hover { border-color: var(--panel-border-hover); }
.toggle-btn .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Control panel ── */
.panel {
  position: fixed;
  bottom: 84px;
  right: 36px;
  width: 300px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 10;
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: all;
}
.panel.hidden {
  opacity: 0;
  transform: scale(0.94) translateY(8px);
  pointer-events: none;
  visibility: hidden;
}

.panel-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title {
  font-size: 11px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.panel-reset {
  font-size: 10px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.panel-reset:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.panel-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 18px; }

.control { display: flex; flex-direction: column; gap: 8px; }

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.control-label {
  font-size: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.control-value {
  font-size: 11px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--track-bg);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--thumb-color);
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.2); }
input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--thumb-color);
  border: none;
  cursor: pointer;
}

.color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.color-control { display: flex; flex-direction: column; gap: 6px; }
.color-label {
  font-size: 11px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.color-swatch-wrap {
  position: relative;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.color-swatch-wrap:hover { border-color: var(--panel-border-hover); }
.color-swatch-wrap input[type=color] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 1;
}

.divider {
  height: 1px;
  background: var(--panel-border);
  margin: 0 -20px;
}

.section-label {
  font-size: 10px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: -6px;
}

/* ── Desktop/mobile visibility ── */
.mobile-only  { display: none; }
.desktop-only { display: block; }
/* When result/combined cards have desktop-only but no .visible, keep them hidden */
.result-card.desktop-only   { display: none; }
.combined-card.desktop-only { display: none; }
.result-card.desktop-only.visible   { display: block; }
.combined-card.desktop-only.visible { display: block; }
.mobile-reveal {
  display: none;
  width: 100%;
  max-width: 480px;
  flex-direction: column;
  gap: 12px;
}

/* ══════════════════════════════════════
   RESPONSIVE — tablet & mobile (≤ 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Body scrollable on mobile */
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100%;
  }

  /* App becomes a scrollable column:
     order: title (wordmark fixed) → hero-sub + birth-card (left-col) → rings (right-col) → results (mobile-reveal) */
  .app {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 88px 20px 120px;
    gap: 32px;
    min-height: 100vh;
  }

  /* Left col full-width, centered — order 1 (after wordmark, before rings) */
  .left-col {
    width: 100%;
    max-width: 560px;
    padding: 0;
    overflow-y: visible;
    max-height: none;
    justify-content: flex-start;
    flex-shrink: unset;
    order: 1;
  }

  .left-content {
    width: 100%;
  }

  .hero-sub {
    font-size: 15px;
    text-align: center;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .birth-card {
    max-width: 100%;
  }

  .birth-inputs {
    flex-wrap: wrap;
  }

  .birth-inputs select {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  /* Hide desktop result cards inside left-col on mobile */
  .desktop-only { display: none !important; }

  /* Right col: zodiac rings — order 2 (after input, before results) */
  .right-col {
    order: 2;
    width: 100%;
    max-width: 600px;
    flex: none;
  }

  /* Mobile reveal section — order 3 (after rings) */
  .mobile-reveal {
    display: flex;
    order: 3;
  }

  /* Show mobile-only cards only when .visible */
  .result-card.mobile-only   { display: none; max-width: 100%; margin-top: 0; }
  .combined-card.mobile-only { display: none; max-width: 100%; margin-top: 0; }
  .result-card.mobile-only.visible   { display: block; }
  .combined-card.mobile-only.visible { display: block; }

  /* Wordmark centered on mobile, keep larger */
  .wordmark {
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    top: 18px;
  }

  /* Sign panel: centered modal on mobile instead of side panel */
  .sign-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -40%) scale(0.96);
    width: calc(100vw - 40px);
    max-width: 380px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .sign-panel.visible {
    transform: translate(-50%, -50%) scale(1);
  }

  /* Overlay becomes a dim backdrop on mobile */
  .sign-panel-overlay.visible {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  /* Tooltip disabled on touch — hide it */
  .tooltip { display: none !important; }

  /* Toggle btn stays fixed bottom-right */
  .toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 200;
  }

  /* Control panel stays fixed above toggle btn */
  .panel {
    position: fixed;
    bottom: 76px;
    right: 20px;
    width: calc(100vw - 40px);
    max-width: 300px;
    z-index: 199;
  }
}

@media (max-width: 480px) {
  .birth-inputs select {
    flex: 1 1 100%;
  }
}