/* shared/quiz.css
 * Internet Taste Test styling — used by /hiring/ and /test/.
 */

    /* ================= TASTE TEST ================= */
    .taste-wrap {
      background: #1a0033;
      border: 2px solid var(--hot);
      padding: 16px;
      margin-top: 8px;
    }
    .taste-wrap.intro-mode {
      cursor: pointer;
      transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    }
    .taste-wrap.intro-mode:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 0 var(--gold);
    }
    .taste-wrap.intro-mode:hover #start-taste {
      background: var(--hot);
      color: #fff;
    }
    .taste-wrap.intro-mode {
      min-height: 360px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .taste-intro { font-size: 18px; }
    .taste-stage { display: none; margin-top: 12px; }
    .taste-stage.active { display: block; }

    .taste-card {
      background: #0a0014;
      border: 1px solid var(--gold);
      padding: 16px;
      text-align: center;
    }
    .taste-card .teaser {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 22px;
      color: var(--gold);
      line-height: 1.2;
      margin-bottom: 6px;
      text-shadow: 2px 2px 0 var(--hot);
    }
    .taste-card .source {
      font-size: 14px;
      color: var(--cream);
      opacity: 0.7;
      margin-bottom: 10px;
    }
    .clip-link {
      display: inline-block;
      margin: 4px 0 14px;
      padding: 6px 12px;
      background: var(--gold);
      color: #1a0033;
      border: 1px solid #1a0033;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 12px;
      letter-spacing: 1px;
      text-decoration: none;
    }
    .clip-link:hover { background: var(--hot); color: #fff; }
    .clip-link.small {
      font-size: 10px;
      padding: 3px 8px;
      opacity: 0.85;
    }

    .embed-container {
      margin: 10px auto 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 200px;
      width: 100%;
      max-width: 540px;
    }
    .embed-container iframe {
      width: 100%;
      max-width: 540px;
      border: 0;
      background: #fff;
    }
    /* Instagram embeds use the official blockquote + embed.js pattern.
       embed.js converts each blockquote into an auto-sizing iframe via
       a postMessage handshake — no hardcoded height needed here.
       But embed.js sets min-width: 326px on the iframe regardless of
       container width, so on narrow mobile viewports the iframe bleeds
       past the right edge. Force it to honor the parent width. */
    iframe.instagram-media,
    iframe.instagram-media-rendered,
    iframe[src*="instagram.com"] {
      min-width: 0 !important;
      max-width: 100% !important;
      width: 100% !important;
    }
    .embed-container,
    .media-card {
      overflow: hidden;
    }
    .embed-container blockquote.twitter-tweet {
      width: 100% !important;
      max-width: 540px !important;
      margin: 0 auto !important;
    }
    .embed-fallback {
      padding: 28px 18px;
      text-align: center;
      background: #0a0014;
      border: 1px dashed var(--gold);
      width: 100%;
    }
    .embed-fallback .label {
      display: block;
      font-family: "VT323", monospace;
      font-size: 14px;
      color: var(--cream);
      opacity: 0.8;
      margin-bottom: 10px;
    }
    .embed-fallback a {
      display: inline-block;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 14px;
      color: #1a0033;
      background: var(--gold);
      padding: 10px 20px;
      border: 2px solid #1a0033;
      text-decoration: none;
    }
    .embed-fallback a:hover { background: var(--hot); color: #fff; }

    .apply-locked {
      background: #1a0033;
      border: 2px dashed var(--gold);
      padding: 28px 24px;
      text-align: center;
      margin: 22px 0;
    }
    .apply-locked .lock-icon {
      font-size: 44px;
      margin-bottom: 10px;
      line-height: 1;
    }
    .apply-locked .lock-msg {
      font-family: "Bungee", "Impact", sans-serif;
      color: var(--gold);
      font-size: 18px;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }
    .apply-locked .lock-sub {
      font-size: 17px;
      color: var(--cream);
      opacity: 0.9;
    }

    .taste-buttons { display: flex; gap: 12px; justify-content: center; }
    .taste-buttons.hidden { display: none; }
    .vote-btn {
      background: var(--gold);
      color: #1a0033;
      border: 2px solid #1a0033;
      padding: 8px 18px;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 14px;
      letter-spacing: 1px;
      cursor: pointer;
      box-shadow: 3px 3px 0 var(--hot);
    }
    .vote-btn:hover { background: var(--hot); color: #fff; }
    .vote-btn.cold { background: #2d7d8a; color: #fff; }
    .vote-btn.cold:hover { background: var(--hot); }

    .taste-reveal {
      display: none;
      margin-top: 14px;
      padding: 12px;
      background: #4a002a;
      border: 2px dashed var(--gold);
    }
    .taste-reveal.show { display: block; }
    .reveal-mark {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 22px;
      letter-spacing: 1px;
      margin-bottom: 6px;
    }
    .reveal-mark.correct { color: #b6ff8c; }
    .reveal-mark.wrong   { color: #ff8c8c; }
    .reveal-line {
      font-size: 17px;
      color: var(--cream);
      margin-bottom: 10px;
    }
    .next-btn {
      background: var(--hot);
      color: #fff;
      border: 2px solid #1a0033;
      padding: 6px 14px;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 13px;
      letter-spacing: 1px;
      cursor: pointer;
    }
    .next-btn:hover { background: var(--gold); color: #1a0033; }
    .taste-progress {
      font-size: 14px;
      color: var(--cream);
      opacity: 0.7;
      margin-top: 10px;
      text-align: center;
    }

    .taste-result {
      background: #0a0014;
      border: 3px double var(--gold);
      padding: 20px;
      text-align: center;
    }
    .taste-result h3 {
      font-family: "Bungee", "Impact", sans-serif;
      color: var(--hot);
      font-size: 22px;
      margin: 0 0 6px;
    }

    .cover {
      position: relative;
      background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 51, 153, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 204, 51, 0.14) 0%, transparent 60%),
        #0a0014;
      border: 4px solid var(--gold);
      box-shadow: 0 0 0 2px #000, 0 0 0 6px var(--hot), 0 0 40px rgba(255, 51, 153, 0.4);
      padding: 18px 18px 22px;
      text-align: center;
      max-width: 460px;
      margin: 0 auto;
    }
    .cover-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--gold);
      padding-bottom: 6px;
      margin-bottom: 12px;
    }
    .cover-eyebrow {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: clamp(16px, 2.4vmin, 22px);
      letter-spacing: 2px;
      color: var(--gold);
    }
    .cover-score-label {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: clamp(11px, 1.8vmin, 14px);
      letter-spacing: 3px;
      color: var(--cream);
      margin-top: 14px;
      opacity: 0.85;
    }
    .cover-top { justify-content: center; border-bottom: 1px solid var(--gold); }
    .cover-score-hero {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: clamp(80px, 18vmin, 160px);
      letter-spacing: 0;
      color: var(--hot);
      text-shadow:
        5px 5px 0 var(--gold),
        10px 10px 0 #4a002a;
      line-height: 1;
      margin: 14px 0 4px;
      -webkit-text-stroke: 2px #000;
      paint-order: stroke fill;
    }
    .cover-score-hero .score-slash {
      color: var(--gold);
      margin: 0 4px;
      -webkit-text-stroke: 2px #000;
    }
    .cover-score-hero .score-total {
      color: var(--cream);
    }
    /* 10/10 is 5 glyphs vs. 3 for single-digit scores — shrink so it doesn't bleed past the card. */
    .cover-score-hero.is-ten {
      font-size: clamp(60px, 13.5vmin, 120px);
    }
    .cover-emoji {
      font-size: clamp(40px, 8vmin, 64px);
      line-height: 1;
      margin: 8px 0 4px;
      filter: drop-shadow(0 4px 0 rgba(255, 51, 153, 0.4));
    }
    .cover-emoji .persona-image {
      width: clamp(120px, 22vmin, 200px);
      height: clamp(120px, 22vmin, 200px);
      object-fit: cover;
      border-radius: 50%;
      border: 4px solid var(--gold);
      box-shadow: 5px 5px 0 var(--hot);
      display: inline-block;
    }
    .cover-tagline {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 11px;
      letter-spacing: 2px;
      color: var(--cream);
      opacity: 0.85;
      margin-top: 4px;
    }
    .cover-name {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: clamp(22px, 5vmin, 38px);
      letter-spacing: 2px;
      color: var(--gold);
      text-shadow:
        2px 2px 0 var(--hot),
        4px 4px 0 #4a002a;
      line-height: 1;
      margin: 4px 0 10px;
      -webkit-text-stroke: 1px #000;
      paint-order: stroke fill;
    }
    .cover-line {
      font-family: "VT323", monospace;
      font-size: clamp(15px, 2.2vmin, 20px);
      color: var(--cream);
      line-height: 1.35;
      margin: 0 auto 14px;
      max-width: 380px;
    }
    .cover-stars {
      color: var(--gold);
      font-size: 18px;
      letter-spacing: 6px;
      margin: 8px 0 14px;
      text-shadow: 1px 1px 0 var(--hot);
    }
    #result-actions {
      margin-top: 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    #apply-section.embedded {
      margin: 18px -18px 14px;
      padding: 22px 24px 24px;
      background: linear-gradient(180deg, #1a0033 0%, #4a002a 100%);
      border-top: 3px dashed var(--gold);
      border-bottom: 3px dashed var(--gold);
      text-align: left;
      box-shadow: inset 0 0 50px rgba(255, 51, 153, 0.15);
    }
    #apply-section.embedded h2 {
      font-family: "Bungee", "Impact", sans-serif;
      color: var(--gold);
      font-size: clamp(20px, 4vmin, 32px);
      text-align: center;
      letter-spacing: 2px;
      line-height: 1.1;
      margin: 0 0 8px;
      text-shadow:
        2px 2px 0 var(--hot),
        4px 4px 0 #4a002a;
      -webkit-text-stroke: 1px #000;
      paint-order: stroke fill;
    }
    #apply-section.embedded > p {
      text-align: center;
      color: var(--cream);
      font-size: 16px;
      margin: 0 0 14px;
    }
    #apply-section.embedded .form-row label {
      color: var(--gold);
      font-size: 13px;
    }
    #apply-section.embedded .form-row input,
    #apply-section.embedded .form-row textarea {
      background: rgba(10, 0, 20, 0.7);
      border: 1px solid var(--hot);
      color: var(--cream);
    }
    #apply-section.embedded .form-row input::placeholder,
    #apply-section.embedded .form-row textarea::placeholder {
      color: rgba(246, 233, 193, 0.4);
    }
    #apply-section.embedded .submit-btn {
      background: var(--gold);
      box-shadow: 5px 5px 0 var(--hot);
      font-size: 18px;
      padding: 14px 32px;
    }
    #apply-section.embedded .submit-btn:hover {
      background: var(--hot);
      color: #fff;
      box-shadow: 5px 5px 0 var(--gold);
    }
    .apply-cta {
      display: inline-block;
      background: var(--gold);
      color: #1a0033;
      border: 3px solid #1a0033;
      padding: 14px 28px;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: clamp(15px, 2.2vmin, 18px);
      letter-spacing: 1.5px;
      text-decoration: none;
      box-shadow: 5px 5px 0 var(--hot);
      animation: cta-pulse 2.4s ease-in-out infinite;
    }
    .apply-cta:hover {
      background: var(--hot);
      color: #fff;
      transform: translate(-2px, -2px);
      box-shadow: 7px 7px 0 var(--gold);
    }
    .apply-cta.secondary {
      background: var(--hot);
      color: #fff;
      animation: none;
      box-shadow: 5px 5px 0 var(--gold);
    }
    .apply-cta.secondary:hover {
      background: var(--gold);
      color: #1a0033;
    }
    @keyframes cta-pulse {
      0%, 100% { transform: scale(1); }
      50%      { transform: scale(1.04); }
    }
    .coffee-note {
      font-size: 15px;
      color: var(--cream);
      opacity: 0.9;
      margin: 2px 0;
    }
    .coffee-note a {
      color: var(--gold);
      text-decoration: underline;
    }
    .coffee-note a:hover { color: var(--hot); }
    .next-btn.share-secondary {
      background: transparent;
      color: var(--cream);
      border: 1px solid var(--cream);
      font-size: 12px;
      padding: 4px 12px;
      opacity: 0.75;
    }
    .next-btn.share-secondary:hover {
      background: var(--cream);
      color: #1a0033;
      opacity: 1;
    }
    .taste-result .score {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 56px;
      color: var(--gold);
      text-shadow: 3px 3px 0 var(--hot);
      line-height: 1;
    }
    .taste-result .verdict {
      font-size: 18px;
      margin: 12px 0;
      color: var(--cream);
    }
    .taste-result .actions {
      display: flex;
      gap: 8px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 12px;
    }

