.bortle-wrapper {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
  }

  .bortle-scene {
    --on-dark: #fff;

    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    background: var(--color-bg-deep, #050b14);
    border: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
  }

  @media (min-width: 768px) {
    .bortle-scene {
      aspect-ratio: 16 / 9;
    }
  }

  .bortle-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #02040a, #0b1026, #1e293b);
    z-index: 0;
  }

  .bortle-layer {
    position: absolute;
    inset: 0;
    transition: opacity 1s ease-in-out;
  }

  .layer-stars {
    z-index: 10;
    opacity: 1;
  }

  .stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .layer-milkyway {
    z-index: 20;
    mix-blend-mode: screen;
    opacity: 1;
  }

  .milkyway-image {
    position: absolute;
    inset: 0;
    background-image: url('/images/utilities/dark-sky/milky-way.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    scale: 1.25;
    mask-image: radial-gradient(closest-side, black 40%, transparent 100%);
  }

  .layer-pollution {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    top: 25%;
    z-index: 30;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

  .pollution-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-pollution-warm, #f97316), rgba(251, 191, 36, 0.4), transparent);
    mix-blend-mode: hard-light;
  }

  .layer-glow {
    z-index: 40;
    background: rgba(219, 234, 254, 0.1);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 1s ease-in-out;
  }

  .landscape-layer {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 50%;
    z-index: 50;
    pointer-events: none;
  }

  .landscape-image {
    position: absolute;
    inset: 0;
    background-image: url('/images/utilities/dark-sky/landscape-silhouette.webp');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
  }

  .landscape-fade {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, black, rgba(0, 0, 0, 0.8), transparent);
  }

  .bortle-info-overlay {
    position: absolute;
    top: 1.5rem;
    inset-inline: 1rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  @media (min-width: 768px) {
    .bortle-info-overlay {
      top: 2.5rem;
      inset-inline: auto;
      left: 2.5rem;
      align-items: flex-start;
    }
  }

  .bortle-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  @media (min-width: 768px) {
    .bortle-info-content {
      text-align: left;
    }
  }

  .bortle-title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--on-dark);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    margin: 0;
  }

  .bortle-badges {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  .bortle-class-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--on-dark);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .bortle-nelm-badge {
    color: var(--color-emerald, #34d399);
    font-weight: 700;
    font-size: 0.875rem;
  }

  .bortle-description {
    display: none;
    max-width: 24rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }

  @media (min-width: 768px) {
    .bortle-description {
      display: block;
    }
  }

  .bortle-description-mobile {
    position: absolute;
    bottom: 7rem;
    inset-inline: 1rem;
    z-index: 70;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    min-height: 3em;
  }

  @media (min-width: 768px) {
    .bortle-description-mobile {
      display: none;
    }
  }

  .bortle-controls {
    position: absolute;
    bottom: 2rem;
    inset-inline: 1rem;
    z-index: 70;
  }

  @media (min-width: 768px) {
    .bortle-controls {
      inset-inline: 3rem;
    }
  }

  .bortle-slider-track {
    position: relative;
    height: 4rem;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }

  .slider-gradient-bar {
    position: absolute;
    inset-inline: 1rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--color-emerald, #34d399), var(--color-amber, #f59e0b), var(--color-red, #ef4444));
    opacity: 0.8;
  }

  .bortle-slider-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 20;
  }

  .bortle-thumb {
    position: absolute;
    height: 2.5rem;
    width: 2.5rem;
    background: white;
    border: 4px solid var(--color-indigo, #6366f1);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: left 0.15s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .bortle-thumb-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-indigo, #6366f1);
    border-radius: 50%;
  }

  .bortle-tick-marks {
    position: absolute;
    inset-inline: 1rem;
    bottom: 0.5rem;
    top: 0.5rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 0;
  }

  .bortle-tick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 1rem;
    position: relative;
  }

  .tick-line {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
  }

  .tick-label {
    position: absolute;
    font-size: 0.625rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    top: calc(100% + 0.25rem);
  }

  .bortle-slider-hint {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
  }