    /* Custom Mailchimp form styling to match site theme */
    #mc_embed_signup {
      background: rgba(20, 20, 20, 0.7) !important;
      border-radius: 16px;
      padding: 24px;
      margin: 0 auto 24px auto;
      max-width: 500px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      color: #ffffff;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      width: 100%;
    }
    
    #mc_embed_signup h2 {
      color: white;
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 20px;
    }
    
    #mc_embed_signup .mc-field-group label {
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
    }
    
    #mc_embed_signup .mc-field-group input {
      width: 100%;
      padding: 12px 16px;
      border-radius: 8px;
      border: 2px solid #333;
      background: rgba(30, 30, 30, 0.8);
      color: white;
      font-size: 16px;
    }
    
    #mc_embed_signup .mc-field-group input:focus {
      border-color: #FE0000;
      outline: none;
      box-shadow: 0 0 0 2px rgba(254, 0, 0, 0.2);
    }
    
    #mc_embed_signup .button {
      background: #FE0000 !important;
      color: white;
      border: none;
      border-radius: 30px !important;
      padding: 14px 28px;
      font-weight: 600;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s;
      margin-top: 8px;
      min-width: 200px;
      height: auto !important;
      line-height: normal !important;
    }
    
    #mc_embed_signup .button:hover {
      background: #E00000 !important;
    }
    
    #mc_embed_signup .button:active {
      transform: scale(0.97);
    }
    
    #mc_embed_signup div.mce_inline_error {
      background-color: rgba(239, 68, 68, 0.2) !important;
      color: #ef4444 !important;
      border-radius: 8px;
    }
    
    #mc_embed_signup .indicates-required {
      color: rgba(255, 255, 255, 0.6);
    }
    
    #mc_embed_signup .asterisk {
      color: #FE0000;
    }
    
    /* RESET & GLOBAL STYLES */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }
    
    html, body {
      width: 100%;
      min-height: 100vh;
      overflow-x: hidden;
      /* Safari safe area handling for iPhones */
      padding-top: env(safe-area-inset-top);
      padding-bottom: env(safe-area-inset-bottom);
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      color: #ffffff;
      /* Default: a dark gradient for mobile/smaller devices */
      background: linear-gradient(135deg, #000000 0%, #1e1e1e 100%);
    }
    
    .app-container {
      display: flex;
      flex-direction: column;
      width: 100%;
      min-height: 100vh;
      position: relative;
    }

    /* WELCOME SCREEN */
    .welcome-screen {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      background: #000000;
      gap: 20px;
      padding: 16px;
      width: 100%;
      min-height: 100vh;
      z-index: 100;
      /* Fade/slide in */
      opacity: 0;
      transform: translateY(10%);
      animation: welcomeFadeIn 0.6s ease forwards;
      transition: opacity 0.6s, transform 0.6s;
    }
    
    @keyframes welcomeFadeIn {
      0% {
        opacity: 0;
        transform: translateY(10%);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Hidden state for welcome screen */
    .welcome-screen.hidden {
      opacity: 0;
      transform: translateY(-100%);
      pointer-events: none;
      display: none !important;
    }

    .logo-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 20px;
      position: relative;
    }
    
    /* Logo animation */
    @keyframes logoSproing {
      0% {
        opacity: 0;
        transform: scale(0.5);
      }
      60% {
        opacity: 1;
        transform: scale(1.2);
      }
      80% {
        transform: scale(0.9);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }
    
    .grizzly-logo {
      width: 220px;
      max-width: 80%;
      margin-bottom: 16px;
      opacity: 0;
      animation: logoSproing 1.2s ease-in-out forwards 0.3s;
      position: relative;
      z-index: 5;
      filter: drop-shadow(0 0 10px rgba(254, 0, 0, 0.4));
    }
    
    .logo-text {
      font-size: 32px;
      font-weight: 800;
      color: #FE0000;
      text-transform: uppercase;
      letter-spacing: -0.02em;
      margin-bottom: 4px;
    }
    
    .logo-tagline {
      font-size: 18px;
      font-weight: 700;
      color: #ffffff;
      text-transform: uppercase;
      letter-spacing: 1.5px;
    }
    
    .welcome-text {
      margin-bottom: 16px;
      font-size: 16px;
      font-weight: 500;
      color: #ffffff;
      max-width: 320px;
      margin: 0 auto;
    }
    
    .start-button {
      background: #FE0000;
      color: #fff;
      border: none;
      font-size: 18px;
      font-weight: 600;
      padding: 16px 32px;
      border-radius: 30px;
      cursor: pointer;
      box-shadow: 0 6px 15px rgba(254, 0, 0, 0.3);
      transition: all 0.3s;
      animation: simplePulse 2s infinite;
      min-width: 200px;
      min-height: 54px;
    }
    
    @keyframes simplePulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
    }
    
    .start-button:active {
      transform: scale(0.95);
      background-color: #E00000;
    }

    /* GAME CONTAINER */
    .game-container {
      display: none;
      background-color: rgba(30, 30, 30, 0.8);
      border-radius: 0;
      box-shadow: none;
      width: 100%;
      margin: 0 auto;
      flex: 1;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      box-sizing: border-box;
      padding-bottom: 40px; /* some extra space at the bottom */
    }
    
    .game-container.active {
      display: flex;
      animation: fadeInUp 0.6s ease forwards;
    }
    
    @keyframes fadeInUp {
      0% {
        opacity: 0;
        transform: translateY(20px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .header {
      text-align: center;
      margin: 16px auto 8px auto;
      padding: 0 16px;
      max-width: 100%;
    }
    
    .header-logo {
      color: #FE0000;
      font-size: 24px;
      font-weight: 800;
      margin-bottom: 2px;
      text-transform: uppercase;
    }
    
    .header-tagline {
      color: #FE0000;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-weight: 600;
    }

    /* QUESTION SECTION */
    #question-section {
      width: 100%;
      padding: 0 16px;
      box-sizing: border-box;
    }

    .question-container {
      margin-bottom: 20px;
      width: 100%;
    }
    
    .question {
      font-size: 18px;
      font-weight: 600;
      color: #ffffff;
      margin-bottom: 20px;
      line-height: 1.4;
      padding: 16px;
      background-color: rgba(0, 0, 0, 0.3);
      border-radius: 14px;
      animation: fadeIn 0.5s ease-in forwards;
      opacity: 0;
      width: 100%;
      box-sizing: border-box;
    }
    
    @keyframes fadeIn {
      to {
        opacity: 1;
      }
    }
    
    .option {
      background-color: rgba(20, 20, 20, 0.8);
      border: 2px solid #333;
      border-radius: 14px;
      padding: 16px;
      margin-bottom: 12px;
      cursor: pointer;
      transition: all 0.3s;
      font-weight: 500;
      min-height: 54px;
      font-size: 16px;
      display: flex;
      align-items: center;
      width: 100%;
      box-sizing: border-box;
    }

    /* Remove .option:active forced color so we can highlight with JS immediately */
    .option:active {
      transform: scale(0.98);
    }
    
    .option.correct {
      background: rgba(16, 185, 129, 0.2);
      border-color: #10b981;
    }
    
    .option.incorrect {
      background: rgba(239, 68, 68, 0.2);
      border-color: #ef4444;
    }
    
    .next-button {
      background: #FE0000;
      color: white;
      border: none;
      border-radius: 30px;
      padding: 16px 28px;
      font-weight: 600;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s;
      display: none;
      min-width: 180px;
      min-height: 54px;
    }
    
    .next-button:active {
      transform: scale(0.95);
      background-color: #E00000;
    }

    /* RESULTS SECTION */
    #results-section {
      width: 100%;
      padding: 0 16px;
      box-sizing: border-box;
      text-align: center;
      display: none;
      flex-direction: column;
      flex: 1;
      z-index: 10;
      margin-top: 20px;
    }
    
    .emoji {
      font-size: 56px;
      margin-bottom: 16px;
      animation: popIn 0.6s ease-in-out;
    }
    
    @keyframes popIn {
      0% {
        transform: scale(0.5);
        opacity: 0.5;
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }
    
    .rating {
      font-size: 28px;
      font-weight: 800;
      margin-bottom: 10px;
      color: #FE0000;
    }
    
    .description {
      color: #ffffff;
      margin-bottom: 24px;
      font-size: 16px;
      line-height: 1.5;
    }
    
    .score-card {
      background: rgba(30, 30, 30, 0.8);
      border-radius: 16px;
      padding: 20px;
      margin: 0 auto 24px auto;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
      width: 100%;
      max-width: 400px;
    }
    
    .final-score {
      font-size: 42px;
      font-weight: 800;
      color: #FE0000;
      margin-bottom: 6px;
    }
    
    .restart-button {
      background: #FE0000;
      color: white;
      border: none;
      border-radius: 30px;
      padding: 16px 32px;
      font-weight: 600;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s;
      margin-bottom: 24px;
      min-width: 200px;
      min-height: 54px;
    }
    
    .restart-button:active {
      transform: scale(0.95);
      background-color: #E00000;
    }

    .sponsor-logo {
      max-width: 220px;
      margin: 16px auto;
      display: block;
      opacity: 0;
      animation: fadeSponsor 1s forwards 0.5s;
    }
    
    @keyframes fadeSponsor {
      to {
        opacity: 1;
      }
    }
    
    /* Snarky comment styles */
    .snarky-comment {
      display: none;
      background-color: rgba(0, 0, 0, 0.7);
      border-radius: 12px;
      padding: 14px;
      margin: 10px 0 20px 0;
      font-size: 16px;
      font-weight: 500;
      line-height: 1.4;
      text-align: center;
      animation: slideUp 0.4s ease-out forwards;
      position: relative;
    }
    
    .snarky-comment.correct {
      border-left: 4px solid #10b981;
    }
    
    .snarky-comment.incorrect {
      border-left: 4px solid #ef4444;
    }
    
    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* SHARE CONTAINER STYLES */
    .share-container {
      margin-top: 20px;
    }
    .share-container p {
      margin-bottom: 12px;
      font-size: 16px;
      font-weight: 600;
    }
    .share-button {
      display: inline-block;
      background: #444;
      color: #fff;
      padding: 10px 16px;
      margin: 6px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 500;
      transition: background 0.3s;
    }
    .share-button:hover {
      background: #555;
    }

    /* Media Queries for small screens */
    @media (max-width: 360px) {
      .logo-text {
        font-size: 28px;
      }
      .logo-tagline {
        font-size: 16px;
      }
      .welcome-text {
        font-size: 15px;
      }
      .question {
        font-size: 16px;
        padding: 14px;
      }
      .option {
        padding: 14px;
        font-size: 15px;
      }
      .start-button, .restart-button {
        min-width: 180px;
        font-size: 16px;
      }
      .snarky-comment {
        font-size: 14px;
        padding: 12px;
      }
    }
    
    @media (min-width: 768px) {
      .header-logo {
        font-size: 28px;
      }
      .header-tagline {
        font-size: 16px;
      }
      .question {
        font-size: 20px;
      }
      .option {
        font-size: 17px;
      }
      .snarky-comment {
        font-size: 18px;
        padding: 16px;
      }
    }
    
    /* Enhanced Desktop Styles */
    @media (min-width: 992px) {
      body {
        background:
          url("flagback.jpg") center center / cover no-repeat;
        background-attachment: fixed; 
      }
      .welcome-screen {
        padding: 40px;
      }
      .welcome-text {
        max-width: 500px;
        font-size: 18px;
        margin-bottom: 24px;
      }
      .game-container {
        width: 700px;
        margin: 0 auto;
        background-color: rgba(30, 30, 30, 0.8);
      }
      .header-logo {
        font-size: 32px;
      }
      .header-tagline {
        font-size: 18px;
      }
      .question {
        font-size: 22px;
        padding: 24px;
        margin-bottom: 30px;
      }
      .option {
        font-size: 18px;
        padding: 18px 24px;
        margin-bottom: 16px;
      }
      .option:hover {
        border-color: #555;
        background-color: rgba(40, 40, 40, 0.8);
      }
      .next-button {
        font-size: 18px;
        min-width: 200px;
      }
      .rating {
        font-size: 36px;
      }
      .description {
        font-size: 18px;
        margin: 0 auto 30px;
      }
      .score-card {
        padding: 24px;
      }
      .final-score {
        font-size: 48px;
      }
      .sponsor-logo {
        max-width: 260px;
      }
    }

    /* Additional fix for older iOS devices (constant() usage) */
    @supports (padding: constant(safe-area-inset-top)) {
      body {
        padding-top: constant(safe-area-inset-top);
        padding-bottom: constant(safe-area-inset-bottom);
        padding-left: constant(safe-area-inset-left);
        padding-right: constant(safe-area-inset-right);
      }
    }

    /* MAPLE LEAF OVERLAY */
    .maple-leaf-overlay {
      position: fixed;
      top: 0; 
      left: 0;
      width: 100vw; 
      height: 100vh;
      display: none; /* hidden by default */
      align-items: center; 
      justify-content: center;
      z-index: 9999; /* on top of everything */
      pointer-events: none;
      background: transparent;
    }

    .maple-leaf {
      width: 80px;
      height: 80px;
      opacity: 0;
      transform: scale(0);
    }

    /* Keyframe that zooms leaf in and out */
    @keyframes leafZoom {
      0% {
        transform: scale(0);
        opacity: 0.7;
      }
      45% {
        transform: scale(12);
        opacity: 1;
      }
      55% {
        transform: scale(12);
        opacity: 1;
      }
      100% {
        transform: scale(0);
        opacity: 0.7;
      }
    }
