  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', cursive;
    image-rendering: pixelated;
  }

  /* Screen reader only class for accessibility */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Atari-style Button Grid */
  .zodiac-button-grid, .compatibility-button-grid {
    margin: 15px 0;
    text-align: center;
  }

  .grid-title {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 2px;
  }

  .button-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .atari-button {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    border-top-color: #666;
    border-left-color: #666;
    border-bottom-color: #222;
    border-right-color: #222;
    color: #00ff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    padding: 8px 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 80px;
    height: 40px;
    position: relative;
    transition: all 0.1s ease;
    box-shadow: 
      inset 1px 1px 0 #555,
      inset -1px -1px 0 #111,
      2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .atari-button:hover {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
    transform: translateY(-1px);
    box-shadow: 
      inset 1px 1px 0 #666,
      inset -1px -1px 0 #222,
      3px 3px 6px rgba(0, 0, 0, 0.6);
  }

  .atari-button:active {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-top-color: #222;
    border-left-color: #222;
    border-bottom-color: #666;
    border-right-color: #666;
    transform: translateY(1px);
    box-shadow: 
      inset 1px 1px 0 #111,
      inset -1px -1px 0 #555,
      1px 1px 2px rgba(0, 0, 0, 0.7);
  }

  .atari-button.selected {
    background: linear-gradient(145deg, #004400, #002200);
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    border-color: #00ff00;
    box-shadow: 
      inset 1px 1px 0 #006600,
      inset -1px -1px 0 #001100,
      0 0 10px rgba(0, 255, 0, 0.3);
  }

  /* Why Button - Upper Left */
  .why-button {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1000;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    border-top-color: #666;
    border-left-color: #666;
    border-bottom-color: #222;
    border-right-color: #222;
    color: #00ff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    padding: 7px 11px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.1s ease;
    box-shadow: 
      inset 1px 1px 0 #555,
      inset -1px -1px 0 #111,
      2px 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-block;
    white-space: nowrap;
  }

  .why-button:hover {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
    transform: translateY(-1px);
    box-shadow: 
      inset 1px 1px 0 #666,
      inset -1px -1px 0 #222,
      3px 3px 6px rgba(0, 0, 0, 0.6);
  }

  .why-button:active {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-top-color: #222;
    border-left-color: #222;
    border-bottom-color: #666;
    border-right-color: #666;
    transform: translateY(1px);
    box-shadow: 
      inset 1px 1px 0 #111,
      inset -1px -1px 0 #555,
      1px 1px 2px rgba(0, 0, 0, 0.7);
  }

  .compatibility-instruction {
    color: #00ff88;
    text-shadow: 0 0 4px rgba(0, 255, 136, 0.4);
    font-size: 10px;
    margin-bottom: 15px;
    text-align: center;
  }

  /* Content Section for Info Pages */
  .content-section {
    text-align: left;
    max-width: 100%;
    margin: 0 auto;
  }

  .content-section h2 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
  }

  .content-section h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #00ff88;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
  }

  .content-section ul {
    text-align: left;
    display: block;
    color: #fff;
    font-size: 11px;
    line-height: 1.6;
    margin: 15px 0;
    padding-left: 20px;
  }

  .content-section li {
    margin-bottom: 10px;
  }

  .content-section li strong {
    color: #00ff88;
    text-shadow: 0 0 3px rgba(0, 255, 136, 0.5);
  }

  /* iPad Optimizations */
  @media (min-width: 768px) and (max-width: 1024px) {
    .home-button {
      padding: 0.15rem !important;
      top: 0.15rem !important;
      right: 0.15rem !important;
      gap: 0.08rem !important;
      opacity: 0.85 !important;
    }

    .home-crystal {
      width: 26px !important;
      height: 26px !important;
      opacity: 0.9 !important;
    }

    .home-tooltip {
      font-size: 0.4rem !important;
      padding: 0.2rem 0.35rem !important;
    }

    .home-url {
      font-size: 0.25rem !important;
      opacity: 0.9 !important;
      line-height: 1.1 !important;
    }

    .why-button {
      font-size: 5px !important;
      padding: 4px 7px !important;
      top: 0.15rem !important;
      left: 0.15rem !important;
    }
  }

  /* Responsive adjustments for smaller screens */
  @media (max-width: 768px) {
    .button-row {
      gap: 4px;
    }
    
    .atari-button {
      font-size: 6px;
      padding: 6px 8px;
      min-width: 60px;
      height: 35px;
    }
    
    .grid-title {
      font-size: 12px;
    }

    .home-button {
      padding: 0.12rem !important;
      top: 0.15rem !important;
      right: 0.15rem !important;
      gap: 0.06rem !important;
      opacity: 0.85 !important;
    }

    .home-crystal {
      width: 22px !important;
      height: 22px !important;
      opacity: 0.9 !important;
    }

    .home-tooltip {
      font-size: 0.35rem !important;
      padding: 0.18rem 0.3rem !important;
    }

    .home-url {
      font-size: 0.22rem !important;
      opacity: 0.9 !important;
      line-height: 1.1 !important;
    }

    .why-button {
      font-size: 5px !important;
      padding: 4px 7px !important;
      top: 0.15rem !important;
      left: 0.15rem !important;
    }
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(10, 10, 25, 0.8);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(10, 10, 25, 0.8);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  body {
    background: linear-gradient(to bottom, #0a0a15, #1a1a2e, #000000);
    color: #fff;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 40px;
  }

  /* Multiple star layers for depth */
  body::before,
  body::after,
  .stars-1,
  .stars-2,
  .stars-3 {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  /* First star layer - bright stars */
  body::before {
    background-image: 
      radial-gradient(1px 1px at 25% 25%, rgba(255, 255, 255, 0.9), transparent),
      radial-gradient(1px 1px at 75% 75%, rgba(255, 255, 255, 0.9), transparent),
      radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.9), transparent),
      radial-gradient(1px 1px at 10% 90%, rgba(255, 255, 255, 0.9), transparent);
    background-size: 400px 400px;
    background-repeat: repeat;
    animation: twinkle 4s ease-in-out infinite;
  }

  /* Second star layer - medium stars */
  body::after {
    background-image: 
      radial-gradient(1px 1px at 65% 15%, rgba(255, 255, 255, 0.7), transparent),
      radial-gradient(1px 1px at 35% 85%, rgba(255, 255, 255, 0.7), transparent),
      radial-gradient(1.5px 1.5px at 85% 35%, rgba(255, 255, 255, 0.7), transparent),
      radial-gradient(1.5px 1.5px at 15% 65%, rgba(255, 255, 255, 0.7), transparent);
    background-size: 300px 300px;
    background-repeat: repeat;
    animation: twinkle 6s ease-in-out infinite;
  }

  /* Additional star layers */
  .stars-1 {
    background-image: 
      radial-gradient(1px 1px at 45% 55%, rgba(255, 255, 255, 0.5), transparent),
      radial-gradient(1px 1px at 55% 45%, rgba(255, 255, 255, 0.5), transparent),
      radial-gradient(1px 1px at 95% 5%, rgba(255, 255, 255, 0.5), transparent),
      radial-gradient(1px 1px at 5% 95%, rgba(255, 255, 255, 0.5), transparent);
    background-size: 250px 250px;
    background-repeat: repeat;
    animation: twinkle 7s ease-in-out infinite;
  }

  .stars-2 {
    background-image: 
      radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.4), transparent),
      radial-gradient(1px 1px at 20% 90%, rgba(255, 255, 255, 0.4), transparent),
      radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.4), transparent),
      radial-gradient(1px 1px at 70% 30%, rgba(255, 255, 255, 0.4), transparent);
    background-size: 350px 350px;
    background-repeat: repeat;
    animation: twinkle 8s ease-in-out infinite;
  }

  .stars-3 {
    background-image: 
      radial-gradient(1px 1px at 40% 60%, rgba(255, 255, 255, 0.3), transparent),
      radial-gradient(1px 1px at 60% 40%, rgba(255, 255, 255, 0.3), transparent),
      radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.3), transparent),
      radial-gradient(1px 1px at 10% 90%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    animation: twinkle 9s ease-in-out infinite;
  }

  @keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
  }
  
  .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 15px;
    background-color: rgba(10, 10, 25, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
  }
  
  h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    font-size: 20px;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #00ff00 0%, #00aaff 50%, #00ff00 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
  }

  @keyframes shimmer {
    0% {
      background-position: -200% 0;
    }
    50% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
  
  h2 {
    margin-bottom: 12px;
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    font-size: 16px;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
  }

  /* Shimmer effect for selected zodiac sign title */
  h2.shimmer {
    background: linear-gradient(90deg, #00ff00 0%, #00aaff 50%, #00ff00 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
  }

  /* Zodiac Sign Title Colors */
  h2[data-sign="Aries"] {
    color: #FF4D4D;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
  }

  h2[data-sign="Taurus"] {
    color: #7EB356;
    text-shadow: 0 0 5px rgba(126, 179, 86, 0.5);
  }

  h2[data-sign="Gemini"] {
    color: #FFE74C;
    text-shadow: 0 0 5px rgba(255, 231, 76, 0.5);
  }

  h2[data-sign="Cancer"] {
    color: #7DD3FC;
    text-shadow: 0 0 5px rgba(125, 211, 252, 0.5);
  }

  h2[data-sign="Leo"] {
    color: #FFB347;
    text-shadow: 0 0 5px rgba(255, 179, 71, 0.5);
  }

  h2[data-sign="Virgo"] {
    color: #90EE90;
    text-shadow: 0 0 5px rgba(144, 238, 144, 0.5);
  }

  h2[data-sign="Libra"] {
    color: #FFB6C1;
    text-shadow: 0 0 5px rgba(255, 182, 193, 0.5);
  }

  h2[data-sign="Scorpio"] {
    color: #9D4EDD;
    text-shadow: 0 0 5px rgba(157, 78, 221, 0.5);
  }

  h2[data-sign="Sagittarius"] {
    color: #FF7F50;
    text-shadow: 0 0 5px rgba(255, 127, 80, 0.5);
  }

  h2[data-sign="Capricorn"] {
    color: #4A5568;
    text-shadow: 0 0 5px rgba(74, 85, 104, 0.5);
  }

  h2[data-sign="Aquarius"] {
    color: #4FD1C5;
    text-shadow: 0 0 5px rgba(79, 209, 197, 0.5);
  }

  h2[data-sign="Pisces"] {
    color: #88D5F7;
    text-shadow: 0 0 5px rgba(136, 213, 247, 0.5);
  }

  h3 {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.3;
    color: #00ff00;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.5);
  }
  
  select {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    margin: 0 auto 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    display: block;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    text-align: left;
    text-align-last: left;
    padding-right: 30px;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
  }

  /* iOS-specific styles */
  @supports (-webkit-touch-callout: none) {
    select {
      font-size: 16px; /* Prevent zoom on iOS */
      padding: 10px;
      padding-right: 30px;
    }
  }

  select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }

  select option {
    background-color: #0a0a15;
    color: #fff;
    padding: 10px;
    font-size: 14px;
  }
  
  #zodiac-info {
    text-align: center;
  }
  
  #zodiac-image {
    max-width: 250px;
    width: 250px;
    height: auto;
    margin: 0 auto 15px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    display: block;
    image-rendering: pixelated;
  }
  
  p {
    margin-bottom: 12px;
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
  }

  p strong {
    color: #B5E2FF;
    text-shadow: 0 0 3px rgba(181, 226, 255, 0.5);
  }

  .mythology-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .gemstone-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .gemstone-text {
    text-align: left;
    line-height: 1.6;
    font-style: normal;
    padding: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
  }

  .mythology-text {
    text-align: left;
    line-height: 1.3;
    font-style: normal;
    padding: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 12px;
    font-size: 12px;
  }

  .planet-info, .modality-info {
    font-style: normal;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 18px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    line-height: 1.6;
  }

  .compatibility-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .compatibility-text {
    text-align: left;
    line-height: 1.6;
    font-style: normal;
    padding: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.9);
    display: none;
    font-size: 12px;
  }

  .compatibility-text.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @media (max-width: 600px) {
    .container {
      padding: 12px;
    }
  
    h1 {
      font-size: 18px;
    }
  
    h2 {
      font-size: 16px;
    }

    h3 {
      font-size: 14px;
    }
  
    select {
      font-size: 11px;
      padding: 10px;
      background-position: right 10px top 50%;
      background-size: 10px auto;
    }

    p, .mythology-text, .planet-info, .modality-info, .compatibility-text {
      font-size: 11px;
      line-height: 1.5;
    }
    
    #zodiac-image {
      max-width: 100%;
    }

    .sun-sign-dates {
      font-size: 8px;
      margin-top: -12px;
      margin-bottom: 15px;
    }

    .home-button {
      padding: 0.1rem !important;
      top: 0.15rem !important;
      right: 0.15rem !important;
      gap: 0.05rem !important;
      opacity: 0.9 !important;
    }

    .home-crystal {
      width: 20px !important;
      height: 20px !important;
      opacity: 0.95 !important;
    }

    .home-tooltip {
      font-size: 0.32rem !important;
      padding: 0.12rem 0.25rem !important;
    }

    .home-url {
      font-size: 0.18rem !important;
      opacity: 0.95 !important;
      line-height: 1.0 !important;
    }

    .why-button {
      font-size: 4px !important;
      padding: 3px 6px !important;
      top: 0.15rem !important;
      left: 0.15rem !important;
    }
  }

  /* Home Button */
  .home-button {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    gap: 0.15rem;
  }

  .home-button:hover {
    background: transparent;
    transform: scale(1.05);
    box-shadow: none;
  }

  .home-crystal {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: all 0.3s ease;
  }

  .home-button:hover .home-crystal {
    transform: scale(1.1);
    filter: brightness(1.2);
  }

  .home-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }

  .home-button:hover .home-tooltip {
    opacity: 1;
  }

  .home-url {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.4rem;
    color: #ffffff;
    text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.8),
        0 0 6px rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .home-button:hover .home-url {
    color: #ffffff;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 0.8);
  }

  .sun-sign-dates {
    color: rgba(0, 255, 136, 0.7);
    font-size: 10px;
    margin-top: -15px;
    margin-bottom: 20px;
    text-shadow: 0 0 3px rgba(0, 255, 136, 0.3);
    font-family: 'Press Start 2P', cursive;
  }