    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Papyrus', 'Copperplate', Georgia, serif;
      /* DESERT SUNSET - Soft, painterly, impressionist style */
      background:
        /* Parchment overlay for card readability */
        linear-gradient(180deg,
          rgba(255, 248, 220, 0.12) 0%,
          rgba(255, 248, 220, 0.08) 50%,
          rgba(255, 248, 220, 0.15) 100%),
        /* Hazy atmosphere layer */
        radial-gradient(ellipse 120% 80% at 50% 20%,
          rgba(255, 215, 0, 0.15) 0%,
          transparent 60%),
        /* Main sunset gradient - soft and dreamy */
        linear-gradient(180deg,
          #483D8B 0%,           /* Deep purple sky top */
          #6B5B95 8%,           /* Soft lavender */
          #9370DB 15%,          /* Muted purple */
          #DDA0DD 22%,          /* Plum pink haze */
          #FFB6C1 30%,          /* Soft pink */
          #FFDAB9 38%,          /* Peach */
          #FFCC99 45%,          /* Soft orange */
          #FFD700 52%,          /* Golden horizon glow */
          #F4A460 58%,          /* Sandy orange */
          #E6C9A8 65%,          /* Light sand */
          #DEB887 72%,          /* Burly wood */
          #D4B896 80%,          /* Warm sand */
          #C9AD8A 88%,          /* Dune shadow */
          #F4EBD0 100%);        /* Pale sand base */
      min-height: 100vh;
      margin: 0;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* MOBILE FIXES - Fixed background, prevent text selection */
      background-attachment: fixed;
      background-size: cover;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-touch-callout: none;
    }

    /* DESERT SUNSET - Subtle dune silhouette overlay */
    body::before {
      content: '';
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 35%;
      background:
        /* Distant dune - very soft */
        radial-gradient(ellipse 200% 100% at 30% 100%,
          rgba(210, 180, 140, 0.25) 0%,
          transparent 50%),
        /* Closer dune curve */
        radial-gradient(ellipse 180% 80% at 70% 100%,
          rgba(222, 184, 135, 0.2) 0%,
          transparent 45%),
        /* Horizon haze */
        linear-gradient(180deg,
          transparent 0%,
          rgba(255, 215, 0, 0.08) 30%,
          rgba(244, 235, 208, 0.15) 100%);
      pointer-events: none;
      z-index: 0;
    }

    h1 {
      color: #FFD700;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
      margin: 0 0 15px 0;
      font-size: 2.5rem;
      letter-spacing: 4px;
      /* DESERT SUNSET - Ensure title above dune overlay */
      position: relative;
      z-index: 1;
    }

    #game-container {
      max-width: 700px;
      width: 100%;
      /* DESERT SUNSET - Ensure content above dune overlay */
      position: relative;
      z-index: 1;
      /* MOBILE FIXES - Prevent text selection and tap highlight */
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    /* Score and Stats Bar */
    #top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      padding: 8px 12px;
      background: rgba(139, 69, 19, 0.6);
      border-radius: 8px;
      border: 2px solid #FFD700;
    }

    #score-section {
      display: flex;
      flex-direction: column;
    }

    #score-display {
      color: #FFD700;
      font-size: 1.6rem;
      font-weight: bold;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    #stats-display {
      color: #FFD700;
      font-size: 0.8rem;
      font-weight: bold;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }

    .help-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      background: rgba(255, 215, 0, 0.2);
      border: 2px solid #FFD700;
      border-radius: 50%;
      color: #FFD700;
      font-size: 1rem;
      font-weight: bold;
      text-decoration: none;
      transition: background 0.15s;
    }

    .help-link:hover {
      background: rgba(255, 215, 0, 0.4);
    }

    #difficulty-container {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    #difficulty-container label {
      color: #FFD700;
      font-size: 0.9rem;
    }

    #difficulty-select {
      padding: 6px 12px;
      font-size: 0.9rem;
      border: 2px solid #FFD700;
      border-radius: 6px;
      background: #8B4513;
      color: #FFD700;
      cursor: pointer;
      font-family: inherit;
    }

    #difficulty-select:hover {
      background: #A0522D;
    }

    /* Pyramid Section */
    #pyramid {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 25px;
    }

    .pyramid-row {
      display: flex;
      justify-content: center;
      margin-bottom: 5px;
      /* MOBILE FIXES - Prevent text selection */
      -webkit-user-select: none;
      user-select: none;
    }

    /* Card Styles - Parchment Theme */
    /* CARD SYMBOL FIX - Standard playing card display */
    /* MOBILE FIXES - Bolder numbers, touch improvements */
    .card {
      width: 50px;
      height: 70px;
      background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 50%, #DEB887 100%);
      border: 2px solid #8B4513;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      /* MOBILE FIXES - Extra bold, larger font for visibility (50% larger) */
      font-size: 2.1rem;
      font-weight: 900;
      -webkit-text-stroke: 0.5px currentColor;
      margin: 0 3px;
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(139, 69, 19, 0.1);
      transition: transform 0.15s, box-shadow 0.15s;
      /* MOBILE FIXES - Prevent text selection and improve touch */
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-touch-callout: none;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      position: relative;
      line-height: 1;
    }

    .card:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(139, 69, 19, 0.1);
    }

    /* CARD SYMBOL FIX - Standard playing card suit colors */
    /* MOBILE FIXES - Bolder colors and stronger shadows for visibility */
    .card.hearts, .card.diamonds {
      color: #B01030;
      text-shadow: 0 0 4px rgba(255, 255, 255, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .card.clubs, .card.spades {
      color: #000000;
      text-shadow: 0 0 4px rgba(255, 255, 255, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .card.facedown {
      background: linear-gradient(135deg, #8B4513 0%, #654321 50%, #3E2723 100%);
      color: #FFD700;
      cursor: default;
      border-color: #FFD700;
      font-size: 1.5rem;
    }

    .card.facedown::before {
      content: '🂠';
    }

    .card.facedown:hover {
      transform: none;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .card.removed {
      visibility: hidden;
    }

    .card.selected {
      outline: 3px solid #FFD700;
      transform: translateY(-5px);
      box-shadow: 0 6px 12px rgba(255, 215, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.3);
    }

    .card.wild {
      background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 50%, #FFE4B5 100%);
      border-color: #FFD700;
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.2);
    }

    .card.wild.selected {
      box-shadow: 0 6px 12px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
    }

    /* Pair animation */
    .card.pairing {
      animation: pairGlow 0.4s ease-out;
    }

    @keyframes pairGlow {
      0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
      50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.5); transform: scale(1.1); }
      100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); opacity: 0; transform: scale(0.8) translateY(-20px); }
    }

    /* Draw flip animation */
    .card.flipping {
      animation: cardFlip 0.3s ease-out;
    }

    @keyframes cardFlip {
      0% { transform: rotateY(0deg); }
      50% { transform: rotateY(90deg); }
      100% { transform: rotateY(0deg); }
    }

    /* Stock, Next, Draw Section - Consistent button row */
    #stock-waste {
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 8px;
      margin-bottom: 15px;
    }

    .pile-container {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .pile-label {
      color: #FFD700;
      font-size: 0.7rem;
      margin-bottom: 3px;
      text-transform: uppercase;
      letter-spacing: 1px;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Draw button styled to match card piles */
    #stock-waste #draw-btn {
      width: 50px;
      height: 70px;
      padding: 0;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #stock {
      position: relative;
    }

    #stock .card {
      background: linear-gradient(135deg, #8B4513 0%, #654321 50%, #3E2723 100%);
      border-color: #FFD700;
      color: #FFD700;
    }

    #stock .card.empty {
      background: rgba(139, 69, 19, 0.3);
      border: 2px dashed rgba(255, 215, 0, 0.4);
      cursor: default;
    }

    #stock .card.empty:hover {
      transform: none;
    }

    .stock-badge {
      position: absolute;
      top: -8px;
      right: -8px;
      background: #FFD700;
      color: #8B4513;
      font-size: 0.75rem;
      font-weight: bold;
      padding: 2px 6px;
      border-radius: 10px;
      min-width: 20px;
      text-align: center;
    }

    #waste .card.empty {
      background: rgba(139, 69, 19, 0.3);
      border: 2px dashed rgba(255, 215, 0, 0.4);
      cursor: default;
    }

    #waste .card.empty:hover {
      transform: none;
    }

    /* Status Bar */
    #status {
      background: rgba(139, 69, 19, 0.7);
      color: #FFD700;
      padding: 12px 20px;
      border-radius: 8px;
      text-align: center;
      margin-bottom: 20px;
      font-size: 1rem;
      border: 2px solid #FFD700;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    #status.win {
      background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
      color: #8B4513;
      font-weight: bold;
      text-shadow: none;
    }

    #status.lose {
      background: #8B0000;
      font-weight: bold;
    }

    /* Feedback Message */
    #feedback {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      padding: 12px 24px;
      border-radius: 8px;
      font-weight: bold;
      opacity: 0;
      transition: opacity 0.3s;
      z-index: 100;
      border: 2px solid;
    }

    #feedback.show {
      opacity: 1;
    }

    #feedback.success {
      background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
      color: #8B4513;
      border-color: #8B4513;
    }

    #feedback.error {
      background: #8B0000;
      color: #FFD700;
      border-color: #FFD700;
    }

    #feedback.info {
      background: rgba(139, 69, 19, 0.9);
      color: #FFD700;
      border-color: #FFD700;
    }

    /* Buttons - Uniform size for bottom control row */
    #controls {
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 6px;
      flex-wrap: nowrap;
    }

    /* Base button style for controls row */
    #controls button,
    #controls .audio-btn,
    #controls #difficulty-select {
      height: 40px;
      min-width: 50px;
      padding: 0 10px;
      font-size: 0.85rem;
      font-weight: bold;
      border: 2px solid #FFD700;
      border-radius: 6px;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
      font-family: inherit;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #controls button:hover,
    #controls .audio-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    #controls button:active {
      transform: translateY(0);
    }

    #new-game-btn {
      background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
      color: #8B4513;
    }

    #draw-btn {
      background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
      color: #FFD700;
    }

    #draw-btn:disabled {
      background: #666;
      border-color: #888;
      color: #aaa;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    #undo-btn {
      background: linear-gradient(135deg, #654321 0%, #8B4513 100%);
      color: #FFD700;
    }

    #undo-btn:disabled {
      background: #666;
      border-color: #888;
      color: #aaa;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .undo-badge {
      display: inline-block;
      background: #FFD700;
      color: #8B4513;
      font-size: 0.6rem;
      padding: 1px 3px;
      border-radius: 4px;
      margin-left: 2px;
    }

    /* Audio Controls - Same size as other controls */
    .audio-btn {
      background: linear-gradient(135deg, #654321 0%, #8B4513 100%);
      font-size: 1rem;
    }

    .audio-btn.active {
      background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    }

    .audio-btn.muted {
      opacity: 0.5;
    }

    /* Difficulty selector styling */
    #difficulty-container {
      display: flex;
      align-items: center;
    }

    #difficulty-container label {
      display: none;
    }

    #difficulty-select {
      background: #8B4513;
      color: #FFD700;
    }

    /* Win Overlay Modal */
    #win-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }

    #win-overlay.show {
      display: flex;
    }

    .win-modal {
      background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
      border: 4px solid #FFD700;
      border-radius: 16px;
      padding: 40px;
      text-align: center;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
      animation: modalAppear 0.5s ease-out;
    }

    @keyframes modalAppear {
      0% { transform: scale(0.5); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }

    .win-modal h2 {
      color: #FFD700;
      font-size: 2.5rem;
      margin: 0 0 10px 0;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .win-modal .pharaoh-icon {
      font-size: 4rem;
      margin: 15px 0;
    }

    .win-modal .final-score {
      color: #FFD700;
      font-size: 1.8rem;
      margin: 20px 0;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .win-modal .score-breakdown {
      color: #DEB887;
      font-size: 1rem;
      margin: 15px 0;
      line-height: 1.6;
    }

    .win-modal button {
      margin-top: 20px;
      padding: 15px 40px;
      font-size: 1.2rem;
    }

    /* Mobile Responsive */
    /* MOBILE FIXES - Flattened layout for mobile */
    @media (max-width: 500px) {
      body {
        padding: 8px;
        /* DESERT SUNSET - iOS fix for background-attachment: fixed */
        background-attachment: scroll;
      }

      /* DESERT SUNSET - Hide dune overlay on small screens for performance */
      body::before {
        display: none;
      }

      h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
        margin-bottom: 8px;
      }

      #top-bar {
        padding: 6px 10px;
        margin-bottom: 8px;
      }

      #score-display {
        font-size: 1.3rem;
      }

      #stats-display {
        font-size: 0.7rem;
      }

      #pyramid {
        margin-bottom: 15px;
      }

      /* MOBILE FIXES - Responsive card sizing with extra bold font (50% larger) */
      /* 10% bigger cards to prevent number overlap */
      .card {
        width: 48px;
        height: 66px;
        font-size: 1.8rem;
        font-weight: 900;
        margin: 0 2px;
      }

      .card.facedown {
        font-size: 1.3rem;
      }

      #stock-waste {
        gap: 6px;
        margin-bottom: 10px;
      }

      #stock-waste #draw-btn {
        width: 48px;
        height: 66px;
        font-size: 0.75rem;
      }

      .pile-label {
        font-size: 0.6rem;
        margin-bottom: 2px;
      }

      #status {
        padding: 8px 12px;
        margin-bottom: 10px;
        font-size: 0.85rem;
      }

      #controls {
        gap: 4px;
      }

      #controls button,
      #controls .audio-btn,
      #controls #difficulty-select {
        height: 36px;
        min-width: 44px;
        padding: 0 8px;
        font-size: 0.75rem;
      }

      #controls .audio-btn {
        font-size: 0.85rem;
      }

      .win-modal {
        padding: 20px;
      }

      .win-modal h2 {
        font-size: 1.6rem;
      }

      .win-modal .pharaoh-icon {
        font-size: 2.5rem;
      }
    }

    /* MOBILE FIXES - Extra small screens */
    @media (max-width: 400px) {
      h1 {
        font-size: 1.4rem;
      }

      .card {
        width: 44px;
        height: 59px;
        font-size: 1.6rem;
        font-weight: 900;
      }

      .card.facedown {
        font-size: 1.4rem;
      }

      #stock-waste #draw-btn {
        width: 44px;
        height: 59px;
      }

      #controls button,
      #controls .audio-btn,
      #controls #difficulty-select {
        height: 32px;
        min-width: 38px;
        padding: 0 6px;
        font-size: 0.7rem;
      }

      #controls .audio-btn {
        font-size: 0.75rem;
      }
    }

    /* QUALITY BOOST: Tutorial Modal */
    #tutorial-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      z-index: 1001;
      justify-content: center;
      align-items: center;
    }

    #tutorial-modal.show {
      display: flex;
    }

    .tutorial-content {
      background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
      border: 4px solid #FFD700;
      border-radius: 16px;
      padding: 30px;
      text-align: center;
      max-width: 360px;
      width: 90%;
      box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
      animation: modalAppear 0.5s ease-out;
    }

    .tutorial-content h2 {
      color: #FFD700;
      font-size: 1.8rem;
      margin: 0 0 15px 0;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .tutorial-rules {
      text-align: left;
      color: #FFF8DC;
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 20px;
    }

    .tutorial-rules p {
      margin: 10px 0;
    }

    .tutorial-rules .highlight {
      color: #FFD700;
      font-weight: bold;
      font-size: 1.1rem;
    }

    .tutorial-content button {
      padding: 12px 30px;
      font-size: 1.1rem;
      background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
      color: #8B4513;
      border: 2px solid #FFD700;
      border-radius: 8px;
      cursor: pointer;
      font-family: inherit;
      font-weight: bold;
      transition: transform 0.15s;
    }

    .tutorial-content button:hover {
      transform: translateY(-2px);
    }

    .tutorial-link {
      margin-top: 15px;
      font-size: 0.85rem;
    }

    .tutorial-link a {
      color: #FFD700;
      text-decoration: none;
    }

    .tutorial-link a:hover {
      text-decoration: underline;
    }

    /* QUALITY BOOST: Confetti */
    #confetti-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 999;
      overflow: hidden;
      display: none;
    }

    #confetti-container.active {
      display: block;
    }

    .confetti-piece {
      position: absolute;
      top: -10px;
      width: 10px;
      height: 10px;
      opacity: 0.9;
      animation: confettiFall 3s ease-out forwards;
    }

    @keyframes confettiFall {
      0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
      }
      100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
      }
    }

    /* Mobile adjustments for tutorial */
    @media (max-width: 500px) {
      .tutorial-content {
        padding: 20px;
      }

      .tutorial-content h2 {
        font-size: 1.4rem;
      }

      .tutorial-rules {
        font-size: 0.85rem;
      }

      .tutorial-content button {
        padding: 10px 25px;
        font-size: 1rem;
      }
    }

    /* QUALITY 9.5+ BOOST: Hint button styling */
    #hint-btn {
      background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
      color: #FFF;
    }

    #hint-btn:disabled {
      background: #666;
      border-color: #888;
      color: #aaa;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* QUALITY 9.5+ BOOST: Hint highlighting on cards */
    .card.hint {
      outline: 3px solid #32CD32;
      animation: hintPulse 0.6s ease-in-out infinite;
      box-shadow: 0 0 20px rgba(50, 205, 50, 0.7), 0 0 30px rgba(50, 205, 50, 0.4);
    }

    @keyframes hintPulse {
      0%, 100% { box-shadow: 0 0 15px rgba(50, 205, 50, 0.6); }
      50% { box-shadow: 0 0 25px rgba(50, 205, 50, 0.9), 0 0 35px rgba(50, 205, 50, 0.5); }
    }

    /* QUALITY 9.5+ BOOST: Keyboard focus styles for accessibility */
    .card:focus {
      outline: 3px solid #1E90FF;
      outline-offset: 2px;
      box-shadow: 0 0 10px rgba(30, 144, 255, 0.6);
    }

    .card:focus:not(:focus-visible) {
      outline: none;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(139, 69, 19, 0.1);
    }

    .card:focus-visible {
      outline: 3px solid #1E90FF;
      outline-offset: 2px;
      box-shadow: 0 0 10px rgba(30, 144, 255, 0.6);
    }

    button:focus-visible,
    select:focus-visible,
    a:focus-visible {
      outline: 3px solid #1E90FF;
      outline-offset: 2px;
    }

    /* QUALITY 9.5+ BOOST: Enhanced gold celebration effect for win */
    .win-modal.gold-celebration {
      animation: goldGlow 0.5s ease-out, goldPulse 1s ease-in-out 0.5s infinite;
    }

    @keyframes goldGlow {
      0% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.5); }
      50% { box-shadow: 0 0 100px rgba(255, 215, 0, 1), 0 0 150px rgba(255, 165, 0, 0.7); }
      100% { box-shadow: 0 0 70px rgba(255, 215, 0, 0.8); }
    }

    @keyframes goldPulse {
      0%, 100% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 165, 0, 0.3); }
      50% { box-shadow: 0 0 80px rgba(255, 215, 0, 0.9), 0 0 120px rgba(255, 165, 0, 0.5); }
    }

    .win-modal.gold-celebration h2 {
      animation: textShimmer 2s ease-in-out infinite;
    }

    @keyframes textShimmer {
      0%, 100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.5); }
      50% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 165, 0, 0.6); }
    }

    /* QUALITY 9.5+ BOOST: Skip link for accessibility (hidden until focused) */
    .skip-link {
      position: absolute;
      top: -40px;
      left: 0;
      background: #FFD700;
      color: #8B4513;
      padding: 8px 16px;
      z-index: 2000;
      font-weight: bold;
      text-decoration: none;
      border-radius: 0 0 8px 0;
    }

    .skip-link:focus {
      top: 0;
    }
