/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/poppins-v24-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/poppins-v24-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/oswald-v57-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/oswald-v57-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
:root {
    --heading: rgb(99,78,66);
    --text: rgb(40,30,40);
    --yellow: rgb(222,220,0);
    --brown: rgb(99,78,66);
    --light-bg: #faf8f5;
    --card-bg: #ffffff;
    --correct: #2d7a3a;
    --wrong: #b33a2a;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--light-bg);
    min-height: 100vh;
  }

  h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    color: var(--heading);
  }

  /* ===== HEADER ===== */
  .site-header {
    background: #ffffff;
    padding: 18px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10); border-bottom: 1px solid #e8e0d5;
  }
  .site-header img {
    max-width: 280px;
    height: auto;
  }

  /* ===== PROGRESS BAR ===== */
  .progress-bar-wrap {
    background: #e0d8cf;
    height: 6px;
  }
  .progress-bar-fill {
    height: 6px;
    background: var(--yellow);
    transition: width 0.5s ease;
  }

  /* ===== SCREENS ===== */
  .screen { display: none; }
  .screen.active { display: block; }

  /* ===== INTRO SCREEN ===== */
  #intro-screen {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px;
  }
  .intro-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--brown);
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 2px;
    margin-bottom: 24px;
  }
  #intro-screen h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 16px;
  }
  .intro-subtitle {
    font-size: 1.15rem;
    color: var(--heading);
    font-weight: 500;
    margin-bottom: 24px;
    font-family: 'Oswald', sans-serif;
  }
  .intro-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 32px;
    max-width: 680px;
  }
  .intro-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  .stat-box {
    background: #fff;
    border: 2px solid #e8e0d5;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    min-width: 120px;
  }
  .stat-num {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--brown);
    display: block;
  }
  .stat-label {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* ===== BUTTONS ===== */
  .btn {
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 4px;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
  .btn:active { transform: translateY(0); }
  .btn-yellow { background: var(--yellow); color: var(--brown); }
  .btn-brown { background: var(--brown); color: #fff; }
  .btn-outline { background: transparent; color: var(--brown); border: 2px solid var(--brown); }

  /* ===== QUIZ SCREEN ===== */
  #quiz-screen {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 24px;
  }
  .station-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  .station-num {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
  }
  .station-pill {
    background: var(--yellow);
    color: var(--brown);
    font-size: 0.75rem;
    font-family: 'Oswald', sans-serif;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
  }
  .station-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    margin-bottom: 20px;
    line-height: 1.2;
  }
  .station-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    border-left: 4px solid var(--yellow);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  }
  .station-card p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text);
  }
  .station-card p + p { margin-top: 12px; }

  .question-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 24px;
  }
  .question-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .question-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: var(--heading);
    margin-bottom: 20px;
    line-height: 1.35;
  }
  .multi-hint {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 18px;
    font-style: italic;
  }

  /* ===== ANSWER OPTIONS ===== */
  .answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .answer-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid #e0d8cf;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #faf8f5;
    position: relative;
  }
  .answer-option:hover:not(.locked) {
    border-color: var(--brown);
    background: #f5efe8;
  }
  .answer-option.selected {
    border-color: var(--brown);
    background: #f0e8df;
  }
  .answer-option.correct {
    border-color: var(--correct);
    background: #e8f5ea;
  }
  .answer-option.wrong {
    border-color: var(--wrong);
    background: #fdf0ee;
  }
  .answer-option.correct-missed {
    border-color: var(--correct);
    background: #e8f5ea;
    opacity: 0.7;
  }
  .check-box {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    transition: all 0.2s;
  }
  .answer-option.selected .check-box,
  .answer-option.correct .check-box,
  .answer-option.wrong .check-box {
    border-color: var(--brown);
    background: var(--brown);
  }
  .answer-option.correct .check-box { border-color: var(--correct); background: var(--correct); }
  .answer-option.wrong .check-box { border-color: var(--wrong); background: var(--wrong); }
  .answer-option.correct-missed .check-box { border-color: var(--correct); background: var(--correct); }
  .answer-text { font-size: 0.95rem; line-height: 1.5; }

  /* ===== EXPLANATION ===== */
  .explanation-box {
    background: #f5efe8;
    border-left: 4px solid var(--brown);
    border-radius: 8px;
    padding: 18px;
    margin-top: 20px;
    font-size: 0.88rem;
    line-height: 1.65;
    display: none;
  }
  .explanation-box.visible { display: block; }
  .explanation-box strong {
    font-family: 'Oswald', sans-serif;
    color: var(--brown);
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
  }

  /* ===== QUIZ CONTROLS ===== */
  .quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .score-live {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: #999;
  }
  .score-live span {
    color: var(--brown);
    font-size: 1.2rem;
  }

  /* ===== RESULT SCREEN ===== */
  #result-screen {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
  }
  .diploma-icon {
    font-size: 4rem;
    margin-bottom: 20px;
  }
  .result-score-big {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--brown);
    line-height: 1;
    margin-bottom: 8px;
  }
  .result-score-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
  }
  .result-message {
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .diploma-form {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 28px;
    text-align: left;
  }
  .diploma-form h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
  }
  .diploma-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0d8cf;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
  }
  .diploma-form input:focus { border-color: var(--brown); }
  .result-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

  /* ===== LOADING / TRANSITION ===== */
  .fade-in { animation: fadeIn 0.4s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }


  /* ===== MAP OVERLAY ===== */
  .map-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(40,30,40,0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .map-overlay.open { display: flex; }
  .map-modal {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
  }
  .map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--brown);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .map-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
  }
  .map-modal iframe {
    width: 100%;
    height: 65vh;
    border: none;
    display: block;
  }
  @media (max-width: 600px) {
    .intro-stats { gap: 12px; }
    .stat-box { min-width: 90px; }
    .quiz-controls { flex-direction: column; align-items: flex-start; }
  }