.wheel-navigation {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.4vw, 1rem);
  padding: clamp(0.6rem, 1.4vw, 1rem);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  margin-bottom: clamp(0.9rem, 2.5vw, 1.5rem);
  max-width: 100%;
}

.wheel-nav-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: clamp(0.45rem, 1.1vw, 0.7rem) clamp(0.9rem, 2vw, 1.3rem);
  background: linear-gradient(to bottom, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 1));
  color: white;
  text-decoration: none;
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: 600;
  font-size: clamp(0.72rem, 1.1vw, 0.92rem);
  letter-spacing: 0.05em;
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
  transition: color 0.6s ease, transform 0.2s ease;
  position: relative;
  text-align: center;
}

.wheel-nav-link:active {
  transform: translateY(1px);
}

.wheel-nav-link:hover {
  color: #ffd700;
  animation: colorShift 0.6s ease forwards;
}

@keyframes colorShift {
  0% {
    color: white;
  }
  50% {
    color: #ff6b6b;
  }
  100% {
    color: #ffd700;
  }
}

@media (max-width: 900px) {
  .wheel-nav-link {
    flex: 1 1 clamp(180px, 32vw, 220px);
  }
}

@media (max-width: 640px) {
  .wheel-navigation {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
  }

  .wheel-navigation::-webkit-scrollbar {
    display: none;
  }

  .wheel-nav-link {
    flex: 0 0 auto;
    min-width: 160px;
  }
}

/* wheel-control extends .control base class - inherits all base styles */
/* Map wheel-control specific classes to base control classes for Stimulus compatibility */
.wheel-control__toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease;
}

.wheel-control.collapsed .wheel-control__toggle {
  transform: rotate(-90deg);
}

.wheel-control__collapsible {
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
}

.wheel-control.collapsed .wheel-control__collapsible {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

.wheel-control__name {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-family: 'Cinzel', 'Georgia', serif;
  color: #333;
  text-align: center;
}

.wheel-control__date-form {
  margin-bottom: 15px;
}

.wheel-control__date-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.wheel-control__date-row select {
  flex: 1;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  min-width: 0;
}

.wheel-control__submit {
  width: 100%;
  padding: 8px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: 600;
  transition: background 0.2s ease;
}

.wheel-control__submit:hover {
  background: #0056b3;
}

.celestial-adder__call-to-subscribe {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
}

.celestial-adder__call-to-subscribe__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f2e7ff;
  background: linear-gradient(135deg, rgba(119, 0, 255, 0.9), rgba(255, 0, 221, 0.9));
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 20px rgba(153, 0, 255, 0.45),
    inset 0 0 12px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.celestial-adder__call-to-subscribe__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 60%),
              radial-gradient(circle at 80% 0%, rgba(119, 0, 255, 0.3), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.celestial-adder__call-to-subscribe__link:hover {
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(135deg, rgba(160, 20, 255, 0.95), rgba(255, 60, 221, 0.95));
  box-shadow:
    0 0 26px rgba(170, 50, 255, 0.6),
    inset 0 0 16px rgba(255, 255, 255, 0.24);
  color: #fff8ff;
}

.celestial-adder__call-to-subscribe__link:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 0 18px rgba(120, 0, 190, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.celestial-adder__call-to-subscribe__icon {
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.celestial-adder__call-to-subscribe__text {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.celestial-adder__call-to-subscribe__text-line {
  display: block;
  text-align: center;
}

.celestial-adder__call-to-subscribe__text-subline {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
  margin-top: -0.2rem;
  margin-bottom: -0.2rem;
}

/* Reading Type Buttons */
.wheel-control__reading-type-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.wheel-control__reading-type-button {
  padding: 10px;
  text-align: center;
  background: #f5f5f5;
  color: #333;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wheel-control__reading-type-button:hover {
  background: #e8e8e8;
  border-color: #bbb;
}

.wheel-control__reading-type-button.active {
  background: #007bff;
  color: white;
  border-color: #0056b3;
}

/* Date Range Selector */
.wheel-control__date-range {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.wheel-control__date-range-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wheel-control__date-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wheel-control__date-range-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  min-width: 40px;
}

.wheel-control__date-range-input {
  flex: 1;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
}

.wheel-control__celestial-name {
  width: 93%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
}

.wheel-control__reading-type {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.wheel-control__reading-type-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.wheel-control__reading-type-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.wheel-control__celestials {
  margin-bottom: 15px;
}

.wheel-control__celestials-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.wheel-control__celestials-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.wheel-control__invite {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.wheel-control__invite-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.wheel-control__invite-icon {
  font-size: 20px;
}

.wheel-control__invite-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #503ceb;
  font-weight: 600;
  text-decoration: none;
}

.wheel-control__invite-link:hover {
  text-decoration: underline;
}

.wheel-control__invite-text {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Cinzel', 'Georgia', serif;
}

.wheel-control__invite-label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  display: block;
}

.wheel-control__invite-description {
  margin: 0;
  margin-top: 8px;
  color: #555;
  font-size: 14px;
}

.wheel-control__invite-title {
  margin: 0;
  font-size: 16px;
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: 700;
}

.wheel-control__invite-form {
  display: grid;
  gap: 16px;
}

.wheel-control__invite-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wheel-control__invite-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.wheel-control__invite-hint {
  font-size: 12px;
  color: #777;
  margin: 0;
}

.wheel-control__invite-error {
  color: #b2151b;
  font-size: 13px;
  margin: 0;
}

.wheel-control__invite-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wheel-control__invite-submit {
  padding: 10px 18px;
  background-color: #503ceb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: 600;
  transition: background 0.2s ease;
}

.wheel-control__invite-submit:hover {
  background-color: #3826b8;
}

.wheel-control__invite-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wheel-control__invite-note {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.wheel-control__invite-link--inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #503ceb;
  text-decoration: underline;
}


.transiting {
  box-shadow: 0 0 15px 5px #fff, 0 0 25px 10px #f0f, 0 0 35px 15px #0ff;
  border: 2px solid #fff;
  border-radius: 10px;
}

.current-cards-view {
  margin: 0 auto 16px;
  padding: 0.75rem;
  padding-top: 1.5rem;
  background: var(--interface-panel-muted, #f5f5f5);
  border-radius: 18px;
}

.current-cards-column {
  display: flex;
  flex-direction: column;
  gap: clamp(0.125rem, 0.15vh, 0.5rem);
  margin: 0;
  height: 95vh;
  overflow: hidden;
}

.current-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(0.1rem, 0.15vh, 0.4rem);
}

.current-card__header {
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
}

.current-card__title {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.current-card__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.current-card__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.current-card__image {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  background: none;
  background-color: transparent;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.current-card__image--fly {
  will-change: transform, opacity;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

/* Override for column rings view */
.column-rings-view .current-card {
  background: transparent;
  padding: 0;
}

.column-rings-view .current-card__body {
  background: transparent;
}

.current-card__reading {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2e2e2e;
  line-height: 1;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-card-empty {
  text-align: center;
  margin: 40px 0;
  color: #666;
  font-size: 1.05rem;
}
