    /* 어나더 지오엑스 — 퀴즈 모듈 (공통 토큰은 shared/tokens.css) */

    :root {
      --content-max: min(100%, var(--max-width));
      --content-gutter: var(--space-md);
      --content-inset: calc(100% - 2 * var(--content-gutter));
      --section-title-size: 22px;
      --section-lead-size: 15px;
      --press-scale-hover: 1.03;
      --press-scale-active: 0.95;
    }

    /* 콘텐츠 폭·정렬 */
    .start-shell,
    .start-main-menu,
    .stage-accordion,
    .blank-quiz-setup-panel,
    .goldenbell-setup-panel,
    .dojo-mission-panel {
      width: 100%;
      max-width: var(--content-max);
      box-sizing: border-box;
    }

    .game-overlay.quiz-compact .header,
    .game-overlay.quiz-compact .question-box,
    .game-overlay.quiz-compact .natural-quiz-setup,
    .game-overlay.quiz-compact .answer-input-container,
    .game-overlay.quiz-compact .mcq-choice-panel,
    .game-overlay.quiz-compact .natural-answer-recap,
    .game-overlay.quiz-compact .natural-geo-result {
      width: var(--content-max);
      max-width: var(--content-inset);
    }

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

    html {
      height: 100%;
      height: -webkit-fill-available;
      -webkit-text-size-adjust: 100%;
    }

    body {
      font-family: var(--font);
      font-size: 17px;
      font-weight: 400;
      line-height: 1.5;
      min-height: 100%;
      min-height: 100dvh;
      min-height: -webkit-fill-available;
      overflow: hidden;
      color: var(--text-primary);
      background: var(--bg-page);
      -webkit-font-smoothing: antialiased;
    }

    #map {
      position: fixed;
      top: var(--site-header-height, 44px);
      left: 0;
      width: 100%;
      max-width: 100vw;
      height: calc(100vh - var(--site-header-height, 44px));
      height: calc(100dvh - var(--site-header-height, 44px));
      min-height: calc(100dvh - var(--site-header-height, 44px));
      z-index: 0;
      touch-action: none;
    }

    /* 지도 게임·탐험: 하단 직사각형 뷰포트(세계 지도 가로 비율) */
    body.map-view-rect #map {
      top: auto;
      bottom: 0;
      left: 50%;
      right: auto;
      transform: translateX(-50%);
      width: min(100%, var(--content-max));
      max-width: 100vw;
      height: auto;
      min-height: 0;
      aspect-ratio: var(--map-game-aspect, 16 / 9);
      max-height: calc(
        100dvh - var(--site-header-height, 44px) - var(--map-game-ui-reserve, 220px)
      );
      padding-bottom: env(safe-area-inset-bottom, 0px);
      box-sizing: border-box;
      overflow: hidden;
      border: 1px solid var(--separator);
      border-bottom: none;
      border-radius: var(--radius-card) var(--radius-card) 0 0;
      box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.1);
    }

    body.map-view-rect #map .leaflet-container {
      width: 100% !important;
      height: 100% !important;
      border-radius: inherit;
    }

    body.map-view-rect .leaflet-control-zoom {
      margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    /*
      모바일·저높이: UI 아래 남는 영역을 지도가 채움.
      (하단 16:9 띠 + 고정 220px 예약은 실제 패널 높이보다 작아 빈 공간이 생김)
    */
    @media (max-width: 900px), (max-height: 520px) {
      body.map-view-rect #map {
        top: calc(var(--site-header-height, 44px) + var(--map-game-ui-reserve, 220px));
        bottom: 0;
        left: 0;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 100vw;
        height: auto;
        min-height: 120px;
        aspect-ratio: unset;
        max-height: none;
      }

      body.map-view-rect .game-overlay:not(.quiz-compact) {
        bottom: auto;
        height: auto;
        max-height: none;
        display: block;
        overflow: visible;
      }

      body.map-view-rect .game-overlay.game-overlay--ex4 {
        bottom: auto;
        height: auto;
        max-height: none;
        min-height: 0;
        display: block;
        overflow: visible;
      }

      body.map-view-rect .game-overlay:not(.quiz-compact) .game-overlay-inner {
        flex: 0 1 auto;
        overflow-y: visible;
        pointer-events: none;
      }

      body.map-view-rect .game-overlay:not(.quiz-compact) .game-overlay-inner > * {
        pointer-events: auto;
      }
    }

    .game-overlay {
      position: fixed;
      top: var(--site-header-height, 44px);
      left: 0;
      width: 100%;
      z-index: 1000;
      pointer-events: none;
    }

    .game-overlay .header {
      margin-top: var(--space-sm);
    }

    .game-overlay > * {
      pointer-events: auto;
    }

    /*
      지도 위 게임(백지도·수도·나라 이름·type4 등): quiz-compact 가 아닐 때
      패널이 길어지면 body overflow:hidden 에 잘림 → 모바일·저높이에서 inner 만 스크롤.
    */
    @media (max-width: 900px), (max-height: 520px) {
      .game-overlay:not(.quiz-compact):not(.game-overlay--ex4) {
        top: var(--site-header-height, 44px);
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - var(--site-header-height, 44px));
        height: calc(100dvh - var(--site-header-height, 44px));
        max-height: calc(100dvh - var(--site-header-height, 44px));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
        box-sizing: border-box;
      }

      .game-overlay:not(.quiz-compact):not(.game-overlay--ex4) .game-overlay-inner {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y pinch-zoom;
        padding-top: 0;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
      }
    }

    /* 지리골든벨(지도 없이 풀이) 전용 컴팩트 레이아웃 */
    .game-overlay-inner {
      width: 100%;
    }

    .game-overlay.quiz-compact {
      top: var(--site-header-height, 44px);
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      display: flex;
      flex-direction: column;
      height: calc(100vh - var(--site-header-height, 44px));
      height: calc(100dvh - var(--site-header-height, 44px));
      max-height: calc(100vh - var(--site-header-height, 44px));
      max-height: calc(100dvh - var(--site-header-height, 44px));
      min-height: 0;
      overflow: hidden;
      background: var(--bg-page);
    }

    /* 모바일(iOS/Android): flex 자식 스크롤(데스크톱·일부 브라우저용) */
    .game-overlay.quiz-compact .game-overlay-inner {
      flex: 1 1 0%;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      touch-action: pan-y pinch-zoom;
      padding: 14px 0 calc(22px + env(safe-area-inset-bottom, 0px));
    }

    /*
      골든벨: iOS/Android WebKit에서 'fixed 안 overflow 자식' 스크롤이 자주 죽음 →
      동일 상태(html.bell-quiz-compact)에서는 body가 스크롤되게 전환(네이티브 터치 스크롤).
    */
    html.bell-quiz-compact body {
      overflow-x: hidden;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    html.bell-quiz-compact .game-overlay.quiz-compact {
      position: relative;
      top: auto;
      right: auto;
      bottom: auto;
      left: auto;
      width: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      max-height: none;
      height: auto;
      display: block;
      overflow: visible;
    }

    html.bell-quiz-compact .game-overlay.quiz-compact .game-overlay-inner {
      flex: none;
      min-height: 0;
      overflow: visible;
      display: block;
      touch-action: auto;
    }

    /* 스크롤 영역 안에서 하단 고정 해제 — 정답 카드·임베드가 자연스럽게 이어짐 */
    .game-overlay.quiz-compact .natural-geo-result {
      position: relative;
      left: auto;
      right: auto;
      bottom: auto;
      transform: none;
    }

    .game-overlay.quiz-compact .header,
    .game-overlay.quiz-compact .question-box,
    .game-overlay.quiz-compact .natural-quiz-setup,
    .game-overlay.quiz-compact .answer-input-container,
    .game-overlay.quiz-compact .mcq-choice-panel,
    .game-overlay.quiz-compact .natural-answer-recap,
    .game-overlay.quiz-compact .natural-geo-result {
      margin-left: auto;
      margin-right: auto;
    }

    .game-overlay.quiz-compact .header {
      position: sticky;
      top: 0;
      z-index: 30;
      border-radius: var(--radius-card);
      margin-bottom: var(--space-sm);
      box-shadow: var(--shadow-card);
      flex-wrap: wrap;
      row-gap: 8px;
      column-gap: 8px;
      align-items: center;
      background: var(--bg-card);
    }

    .header-score-next-cluster {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
      flex: 1;
      min-width: 0;
    }

    .game-overlay.quiz-compact .header .natural-quiz-action-row {
      justify-content: flex-end;
      width: 100%;
      flex-wrap: wrap;
    }

    .game-overlay.quiz-compact .header .natural-next-btn {
      font-size: 0.78rem;
      font-weight: 700;
      padding: 7px 12px;
      border-radius: 10px;
      white-space: nowrap;
    }

    .game-overlay.quiz-compact .header .natural-map-check-btn {
      font-size: 0.78rem;
      padding: 7px 12px;
    }

    .game-overlay.quiz-compact .question-box {
      margin-top: 0;
      margin-bottom: 14px;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    }

    .game-overlay.quiz-compact .answer-input-container {
      margin-top: 0;
      margin-bottom: 14px;
    }

    .game-overlay.quiz-compact .natural-quiz-setup,
    .game-overlay.quiz-compact .natural-answer-recap,
    .game-overlay.quiz-compact .natural-geo-result {
      margin-bottom: 14px;
    }

    .header {
      background: var(--bg-card);
      width: var(--content-max);
      max-width: var(--content-inset);
      margin-left: auto;
      margin-right: auto;
      padding: var(--space-sm) var(--space-md);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--space-sm);
      box-shadow: var(--shadow-card);
      border: 1px solid var(--separator);
      border-radius: var(--radius-card);
      box-sizing: border-box;
    }

    .header-nav-group {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      min-width: 0;
    }

    .game-nav-btn {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      padding: 0;
      border-radius: 50%;
      border: none;
      background: rgba(118, 118, 128, 0.12);
      color: var(--text-secondary);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.22s var(--ease-spring), background 0.2s ease, color 0.2s ease;
    }

    .game-nav-btn:hover {
      background: rgba(118, 118, 128, 0.2);
      color: var(--text-primary);
      transform: scale(var(--press-scale-hover));
    }

    .game-nav-btn:active {
      transform: scale(var(--press-scale-active));
    }

    .game-nav-btn:focus-visible {
      outline: 2px solid var(--ios-blue);
      outline-offset: 2px;
    }

    .game-nav-btn svg {
      width: 22px;
      height: 22px;
      display: block;
    }

    .score-display {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .score-line {
      display: flex;
      gap: 10px;
      flex-wrap: nowrap;
    }

    .score-pill {
      padding: 4px 8px;
      border-radius: var(--radius-pill);
      background: rgba(15, 23, 42, 0.04);
      font-size: 0.8rem;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .question-box {
      background: var(--bg-card);
      width: var(--content-max);
      max-width: var(--content-inset);
      margin: var(--space-sm) auto;
      padding: var(--space-md) var(--space-lg);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-card);
      border: 1px solid var(--separator);
      box-sizing: border-box;
    }

    .question-box-main {
      min-width: 0;
    }

    .ex4-villain-portrait {
      display: none;
    }

    .question-label {
      font-size: 0.85rem;
      color: var(--text-tertiary);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .question-text {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--text-primary);
    }

    .answer-input-container {
      width: var(--content-max);
      max-width: var(--content-inset);
      margin: 0 auto var(--space-sm);
      padding: 12px 16px;
      box-sizing: border-box;
      border-radius: var(--radius-field);
      background: rgba(15, 23, 42, 0.78);
      color: #e5e7eb;
      display: none;
      align-items: center;
      gap: 10px;
    }

    .answer-input-label {
      font-size: 0.85rem;
      white-space: nowrap;
    }

    .answer-input {
      flex: 1;
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid #4b5563;
      background: #111827;
      color: #f9fafb;
      font-size: 0.9rem;
    }

    .answer-input::placeholder {
      color: #6b7280;
    }

    .answer-submit-btn {
      padding: 8px 14px;
      border-radius: 10px;
      border: none;
      font-size: 0.9rem;
      font-weight: 500;
      background: var(--accent);
      color: #f9fafb;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.15s ease, transform 0.1s ease;
    }

    .answer-submit-btn:hover {
      background: var(--accent-strong);
      transform: translateY(-1px);
    }

    .answer-submit-btn:active {
      transform: translateY(0);
    }

    .short-answer-block {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      flex: 1;
      min-width: 0;
    }

    .answer-input-container.is-mcq {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      /* 질문 카드·헤더와 맞춘 밝은 톤 */
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 252, 0.99) 100%);
      border: 1px solid var(--separator);
      box-shadow: var(--shadow-soft);
      color: var(--text-primary);
    }

    .mcq-choice-panel {
      width: 100%;
      display: none;
      flex-direction: column;
      gap: 10px;
    }

    .mcq-choice-grid {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
    }

    .mcq-choice-btn {
      padding: 14px 16px;
      border-radius: var(--radius-card);
      border: 1px solid var(--separator);
      background: var(--bg-card);
      color: #1e293b;
      font-size: 1.05rem;
      text-align: left;
      cursor: pointer;
      line-height: 1.45;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      box-shadow: var(--shadow-soft);
      transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    }

    .mcq-choice-btn:hover {
      background: var(--bg-soft);
      border-color: rgba(0, 122, 255, 0.35);
      box-shadow: 0 4px 14px rgba(0, 122, 255, 0.12);
      transform: translateY(-1px);
    }

    .mcq-choice-btn:active {
      transform: translateY(0);
    }

    .mcq-choice-btn:focus-visible {
      outline: 2px solid rgba(0, 122, 255, 0.55);
      outline-offset: 2px;
    }

    .mcq-choice-num {
      flex-shrink: 0;
      font-weight: 800;
      font-size: 1rem;
      color: var(--accent);
      min-width: 1.75em;
    }

    .mcq-choice-text {
      flex: 1;
      min-width: 0;
    }

    .mcq-choice-grid.mcq-choice-grid--locked .mcq-choice-btn {
      opacity: 0.5;
      pointer-events: none;
    }

    .start-screen {
      position: fixed;
      top: var(--site-header-height, 44px);
      left: 0;
      width: 100%;
      height: calc(100% - var(--site-header-height, 44px));
      min-height: calc(100dvh - var(--site-header-height, 44px));
      background: transparent;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      z-index: 2000;
      transition: opacity 0.5s ease;
      padding: var(--space-md) var(--space-md) max(var(--space-xl), env(safe-area-inset-bottom, 0px));
      overflow: auto;
      -webkit-overflow-scrolling: touch;
      box-sizing: border-box;
    }

    .start-screen-bg {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      opacity: 1;
    }

    .start-screen-bg::after {
      content: none;
    }

    .start-screen > *:not(.start-screen-bg) {
      position: relative;
      z-index: 1;
    }

    .start-shell {
      margin: 0 auto;
    }

    .start-header {
      position: relative;
      text-align: center;
      padding-bottom: var(--space-lg);
    }

    .copyright-header {
      width: 100%;
      display: flex;
      justify-content: flex-end;
      box-sizing: border-box;
      margin: 0 0 var(--space-sm);
      padding: 0 2px 0 var(--space-sm);
    }

    .copyright-header-inner {
      text-align: right;
      max-width: min(100%, 26rem);
    }

    .copyright-header-line {
      margin: 0;
      font-size: 0.72rem;
      font-weight: 500;
      line-height: 1.45;
      color: var(--text-tertiary);
      letter-spacing: -0.01em;
      word-break: keep-all;
      overflow-wrap: anywhere;
    }

    .copyright-header-line + .copyright-header-line {
      margin-top: 3px;
    }

    .title-section {
      --title-section-stack-gap: 10px;
      --title-section-leading: 1.32;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--title-section-stack-gap);
      padding: var(--space-lg) var(--space-md);
      background: var(--bg-card);
      border-radius: var(--radius-card);
      border: 1px solid var(--separator);
      box-shadow: var(--shadow-card);
      text-align: center;
    }

    .title-section-tagline {
      margin: 0;
      max-width: 100%;
      font-size: 14px;
      font-weight: 400;
      line-height: var(--title-section-leading);
      color: var(--text-secondary);
      letter-spacing: -0.01em;
    }

    .title-section-brand {
      margin: 0;
      font-size: clamp(30px, 5.5vw, 40px);
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: var(--title-section-leading);
      color: var(--geopus-brown);
    }

    .title-section-series {
      margin: 0;
      font-size: 18px;
      font-weight: 700;
      line-height: var(--title-section-leading);
      color: var(--ios-blue);
      letter-spacing: -0.02em;
    }

    .title-section-emojis {
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      gap: clamp(10px, 3.5vw, 18px);
      margin: 0;
      padding: 0;
      font-size: clamp(22px, 6vw, 30px);
      line-height: var(--title-section-leading);
      user-select: none;
    }

    .title-section-emoji {
      display: inline-block;
      filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
    }

    .visitor-stats-inline {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 6px 10px;
      margin: var(--space-sm) 0 0;
      min-height: 1.35rem;
      width: 100%;
      font-size: 0.72rem;
      color: var(--text-tertiary);
    }

    .visitor-stats-item {
      display: inline-flex;
      align-items: baseline;
      gap: 4px;
    }

    .visitor-stats-sep {
      color: var(--text-tertiary);
      opacity: 0.6;
    }

    .visitor-stats-label {
      font-size: 0.62rem;
      letter-spacing: 0.06em;
      font-weight: 600;
      color: var(--text-tertiary);
    }

    .visitor-stats-value {
      display: inline-block;
      min-width: 1.5em;
      font-size: 0.82rem;
      line-height: 1.1;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: var(--text-primary);
      text-align: center;
    }

    .start-screen.hidden {
      opacity: 0;
      pointer-events: none;
      /* 게임 오버레이(1000)보다 아래로 내려 투명 레이어가 UI를 가리지 않게 함 */
      z-index: 500;
    }

    @media (max-width: 480px) {
      .header {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
      }

      .header-nav-group {
        flex: 1 1 auto;
        min-width: 0;
        align-items: center;
      }

      .header-score-next-cluster {
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: 6px;
      }

      .score-display {
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px 6px;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .score-display::-webkit-scrollbar {
        display: none;
      }

      .score-line {
        display: contents;
      }

      .score-pill {
        font-size: 0.68rem;
        padding: 3px 6px;
      }

      .skip-btn {
        flex-shrink: 0;
        min-height: 44px;
        padding: 8px 12px;
        align-items: center;
        display: inline-flex;
        justify-content: center;
        white-space: nowrap;
        font-size: 0.82rem;
      }

      .ex4-timer-pill,
      .survival-hud {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.8rem;
      }

      .survival-hud {
        padding: 0.3rem 0.55rem;
        gap: 0.45rem;
      }

      .quiz-question-timer {
        margin-left: 0;
        flex-shrink: 0;
        font-size: 12px;
        padding: 5px 10px;
      }

      /* iOS: 입력 포커스 시 자동 확대 방지(16px 이상) */
      .answer-input,
      textarea.answer-input {
        font-size: 16px;
      }

      .answer-submit-btn {
        min-height: 44px;
        padding: 10px 16px;
        flex-shrink: 0;
      }

      .answer-input-container:not(.is-mcq) .short-answer-block {
        flex-wrap: wrap;
        row-gap: 8px;
      }

      .answer-input-container:not(.is-mcq) .answer-input-label {
        flex: 0 0 100%;
      }

      .answer-input-container:not(.is-mcq) .answer-input {
        flex: 1 1 100px;
        min-width: 0;
      }

      .question-box {
        max-width: calc(100% - 2 * var(--space-sm));
        padding: var(--space-md);
      }

      .question-text {
        font-size: 1.22rem;
        line-height: 1.35;
        word-break: keep-all;
      }

      .game-nav-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
      }

      .game-nav-btn svg {
        width: 20px;
        height: 20px;
      }
      .title-section {
        padding: var(--space-md);
      }
      .title-section-series {
        font-size: 16px;
      }
      .main-menu-btn {
        padding: 14px 16px 16px;
        font-size: 0.98rem;
      }
      .main-menu-btn-label {
        font-size: 1rem;
      }
    }

    @media (max-width: 420px) {
      .blank-quiz-setup-panel .continent-btns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .ex4-toggle-btn,
      .golden-type-btn,
      .ex4-num-btn,
      .ex4-time-select {
        min-height: 44px;
        touch-action: manipulation;
      }
    }

    .difficulty-section {
      margin-bottom: 32px;
      text-align: center;
    }

    .continent-section {
      margin-bottom: 26px;
      text-align: center;
    }

    /* start-screen에서만 더 미니멀하게 */
    .blank-quiz-setup-panel .difficulty-section {
      margin-bottom: 0;
    }
    .blank-quiz-setup-panel .continent-section {
      margin-bottom: 0;
    }
    .goldenbell-setup-panel .natural-bell-panel {
      margin-top: 0;
    }

    .difficulty-label {
      font-size: 0.9rem;
      color: #6b7280;
      margin-bottom: 12px;
      font-weight: 500;
    }

    .continent-label {
      font-size: 0.9rem;
      color: #6b7280;
      margin-bottom: 12px;
      font-weight: 500;
    }

    /* blank-quiz-setup 패널은 섹션 간격 통일(아이폰 느낌) */
    .blank-quiz-setup-panel .difficulty-label,
    .blank-quiz-setup-panel .continent-label {
      margin-bottom: 14px;
    }

    /* 대륙: 가로 스크롤 없이 그리드로 줄바꿈 */
    .blank-quiz-setup-panel .continent-btns {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
    }

    .blank-quiz-setup-panel .continent-btn {
      padding: 9px 6px;
      border-radius: 12px;
      font-size: 0.78rem;
      font-weight: 600;
      line-height: 1.25;
      white-space: normal;
      text-align: center;
      justify-content: center;
      border-width: 1px;
      width: 100%;
      min-height: 40px;
    }

    .blank-quiz-setup-panel .mode-panel {
      width: 100%;
    }

    .blank-quiz-setup-panel .start-btn {
      width: 100%;
      min-height: auto;
      padding: 10px 12px;
      border-radius: 14px;
      font-size: clamp(0.76rem, 2.1vw + 0.35rem, 0.88rem);
      font-weight: 800;
      box-sizing: border-box;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1.35;
    }

    .difficulty-btns {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .continent-btns {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .difficulty-btn {
      padding: 10px 20px;
      border-radius: var(--radius-field);
      border: 1px solid var(--separator);
      background: var(--bg-card);
      color: #374151;
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

    .difficulty-btn:hover {
      border-color: var(--ios-blue);
      background: var(--ios-blue-soft);
    }

    .difficulty-btn.active {
      border-color: var(--ios-blue);
      background: var(--ios-blue);
      color: #fff;
    }

    .continent-btn {
      padding: 10px 16px;
      border-radius: var(--radius-field);
      border: 1px solid var(--separator);
      background: var(--bg-card);
      color: #374151;
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      user-select: none;
    }

    .continent-btn:hover {
      border-color: var(--ios-blue);
      background: var(--ios-blue-soft);
    }

    .continent-btn.active {
      border-color: var(--ios-blue);
      background: var(--ios-blue);
      color: #fff;
    }

    .start-btn {
      padding: 14px 28px;
      font-size: 17px;
      font-weight: 600;
      font-family: inherit;
      color: #fff;
      background: var(--ios-blue);
      border: none;
      border-radius: var(--radius-pill);
      cursor: pointer;
      box-shadow: var(--shadow-soft);
      transition: transform 0.22s var(--ease-spring), background 0.2s ease;
    }

    .start-btn:hover {
      transform: scale(var(--press-scale-hover));
      background: var(--ios-blue-pressed);
    }

    .start-btn:active {
      transform: scale(var(--press-scale-active));
    }

    .start-btn:focus-visible {
      outline: 2px solid var(--ios-blue);
      outline-offset: 2px;
    }

    .feedback-toast {
      position: fixed;
      bottom: 32px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      padding: 16px 28px;
      border-radius: var(--radius-field);
      font-size: 1.1rem;
      font-weight: 600;
      z-index: 1500;
      opacity: 0;
      transition: transform 0.3s ease, opacity 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.22);
    }

    .feedback-toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    .feedback-toast.correct {
      background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
      color: #fff;
      box-shadow: 0 8px 30px rgba(22, 163, 74, 0.38);
    }

    .feedback-toast.wrong {
      background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
      color: #fff;
      box-shadow: 0 8px 30px rgba(220, 38, 38, 0.34);
    }

    /*
      지리골든벨: 고정 토스트를 상단에 두어 하단 '다음 문제'(sticky)와 겹치지 않게 함.
      html.bell-quiz-compact 는 setGoldenBellCompactLayout 과 동기화(모바일에서 ~ 선택자 대비).
    */
    html.bell-quiz-compact .feedback-toast {
      bottom: auto;
      top: max(8px, calc(var(--site-header-height, 44px) + 8px));
      left: 50%;
      right: auto;
      width: max-content;
      max-width: calc(100vw - 20px);
      box-sizing: border-box;
      transform: translateX(-50%) translateY(-14px);
    }

    html.bell-quiz-compact .feedback-toast.show {
      transform: translateX(-50%) translateY(0);
    }

    @media (max-width: 480px) {
      html.bell-quiz-compact .feedback-toast {
        font-size: 0.95rem;
        padding: 12px 16px;
        max-height: min(38vh, 240px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
    }

    .feedback-toast .distance {
      font-size: 0.9rem;
      opacity: 0.9;
      margin-top: 4px;
    }

    .global-back-btn {
      position: fixed;
      top: calc(var(--site-header-height, 44px) + 10px);
      left: 14px;
      z-index: 1600;
      padding: 10px 16px;
      border-radius: var(--radius-pill);
      border: none;
      font-family: inherit;
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
      background: var(--bg-card);
      box-shadow: var(--shadow-card);
      border: 1px solid var(--separator);
      cursor: pointer;
      transition: transform 0.22s var(--ease-spring);
    }

    .global-back-btn:hover {
      transform: scale(var(--press-scale-hover));
    }

    .global-back-btn:active {
      transform: scale(var(--press-scale-active));
    }

    .start-header .program-credit {
      position: static;
      z-index: auto;
      pointer-events: none;
    }

    /* 게임 화면: 크레딧을 body로 옮겨 우하단 고정 */
    body.program-credit-bottom .program-credit {
      position: fixed;
      top: auto;
      bottom: max(var(--space-md), env(safe-area-inset-bottom, 0px));
      right: max(var(--space-md), calc(50% - var(--max-width) / 2 + var(--space-md)));
      left: auto;
      z-index: 1100;
      max-width: min(26rem, var(--content-inset));
      padding: 0 2px 0 var(--space-sm);
      pointer-events: none;
      color: var(--text-tertiary);
      font-size: 0.72rem;
      font-weight: 500;
      line-height: 1.45;
      letter-spacing: -0.01em;
      text-align: right;
      word-break: keep-all;
      overflow-wrap: anywhere;
    }

    body.program-credit-bottom .program-credit .copyright-header-inner {
      max-width: min(26rem, var(--content-inset));
    }

    @media (max-width: 520px) {
      .copyright-header {
        padding-left: 0;
        margin-bottom: var(--space-md);
      }

      .copyright-header-inner {
        max-width: 100%;
      }

      .copyright-header-line {
        font-size: 0.7rem;
      }

      body.program-credit-bottom .program-credit {
        right: var(--space-md);
        max-width: calc(100vw - 2 * var(--space-md));
      }

      .start-header {
        padding-bottom: var(--space-md);
      }
    }

    .mode-panel {
      position: relative;
      left: auto;
      bottom: auto;
      z-index: auto;
      padding: 12px 16px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 6px 24px rgba(15, 23, 42, 0.25);
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 0.85rem;
      color: #111827;
    }

    .start-layout .start-main-menu {
      display: grid;
      gap: var(--space-md);
      grid-template-columns: 1fr;
      padding-top: 0;
      margin-bottom: 0;
    }

    @media (min-width: 640px) {
      .start-layout .start-main-menu {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .start-main-menu {
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);
      align-items: stretch;
      margin-top: 0;
      margin-bottom: var(--space-sm);
      padding-top: var(--space-sm);
    }

    .main-menu-btn {
      width: 100%;
      padding: var(--space-md);
      font-size: 18px;
      font-weight: 600;
      border-radius: var(--radius-card);
      cursor: pointer;
      border: 1px solid var(--separator);
      color: var(--text-primary);
      background: var(--bg-card);
      box-shadow: var(--shadow-card);
      transition: transform 0.22s var(--ease-spring), box-shadow 0.2s ease;
      text-align: left;
    }

    .main-menu-btn:hover {
      transform: scale(var(--press-scale-hover));
      box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    }

    .main-menu-btn:active {
      transform: scale(var(--press-scale-active));
    }

    .main-menu-btn:focus-visible {
      outline: 2px solid var(--ios-blue);
      outline-offset: 3px;
    }

    .main-menu-btn--map,
    .main-menu-btn--bell,
    .main-menu-btn--dojo,
    .main-menu-btn--escape {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: var(--space-xs);
      text-align: left;
      border-width: 1px;
      border-style: solid;
      background: var(--bg-card);
    }

    .main-menu-btn-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
      width: 100%;
    }

    .main-menu-btn-meta-trailing {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 10px;
      max-width: 100%;
    }

    .main-menu-btn-hint-inline {
      font-size: 0.68rem;
      font-weight: 700;
      line-height: 1.35;
      color: #64748b;
      word-break: keep-all;
      overflow-wrap: break-word;
    }

    .main-menu-btn--escape .main-menu-btn-hint-inline {
      color: #6d28d9;
      opacity: 0.88;
    }

    .main-menu-btn-tag {
      font-size: 0.68rem;
      font-weight: 900;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 3px 8px;
      border-radius: 8px;
      color: #fff;
    }

    .main-menu-btn-tag--stage {
      background: var(--ios-blue);
      box-shadow: none;
    }

    .main-menu-btn-tag--geo {
      background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    }

    .main-menu-btn-tag--arcade {
      background: linear-gradient(135deg, #d946ef, #ec4899);
      box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
    }

    .main-menu-btn-tag--timattack {
      background: linear-gradient(135deg, #f97316, #ea580c);
      box-shadow: 0 0 12px rgba(234, 88, 12, 0.38);
    }

    .main-menu-btn-tag--bell {
      background: linear-gradient(135deg, #f59e0b, #ea580c);
      box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
    }

    .main-menu-btn-tag--challenge {
      background: linear-gradient(135deg, #059669, #10b981);
      box-shadow: 0 0 12px rgba(16, 185, 129, 0.32);
    }

    .main-menu-btn-label {
      font-size: clamp(0.92rem, 2.5vw + 0.4rem, 1.05rem);
      font-weight: 600;
      line-height: 1.5;
      letter-spacing: -0.01em;
      word-break: keep-all;
      overflow-wrap: break-word;
    }

    .main-menu-btn-textstack {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      width: 100%;
    }

    .main-menu-btn-sublabel {
      font-size: 0.72rem;
      font-weight: 600;
      line-height: 1.35;
      color: #64748b;
      word-break: keep-all;
      overflow-wrap: break-word;
    }

    .main-menu-btn--map {
      border-left: 4px solid var(--ios-blue);
    }

    .main-menu-btn--bell {
      border-left: 4px solid #ff9500;
    }

    .main-menu-btn--dojo {
      border-left: 4px solid #34c759;
    }

    .main-menu-btn--escape {
      border-left: 4px solid #af52de;
    }

    @media (prefers-reduced-motion: reduce) {
      .main-menu-btn--map:hover,
      .main-menu-btn--bell:hover,
      .main-menu-btn--dojo:hover,
      .main-menu-btn--escape:hover,
      .main-menu-btn:hover {
        transform: none;
      }
    }

    /* 메인: 스테이지 버튼 유지 + 설정 패널 아코디언 */
    .stage-accordion {
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }

    .stage-accordion-panel {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.35s ease;
      overflow: hidden;
    }

    .stage-accordion.is-open .stage-accordion-panel {
      grid-template-rows: 1fr;
    }

    @media (prefers-reduced-motion: reduce) {
      .stage-accordion-panel {
        transition: none;
      }
    }

    .stage-accordion-panel-inner {
      min-height: 0;
      overflow: hidden;
    }

    .stage-accordion .blank-quiz-setup-panel,
    .stage-accordion .goldenbell-setup-panel,
    .stage-accordion .dojo-mission-panel {
      width: 100%;
      max-width: 100%;
      margin-top: 12px;
      margin-bottom: 0;
    }

    .dojo-mission-panel {
      padding: var(--space-md);
      border-radius: var(--radius-card);
      background: var(--bg-page);
      border: 1px solid var(--separator);
      box-shadow: none;
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);
    }

    .dojo-panel-title {
      font-size: 0.92rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      text-transform: none;
      color: #0f172a;
      text-shadow: none;
      text-align: center;
      margin-bottom: 0;
      padding: 4px 8px 10px;
      border-bottom: 1px solid rgba(15, 23, 42, 0.06);
      background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.08) 50%, transparent 100%);
    }

    .dojo-mission {
      padding: var(--space-md);
      border-radius: var(--radius-card);
      background: var(--bg-card);
      border: 1px solid var(--separator);
      box-shadow: var(--shadow-card);
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);
    }

    .dojo-mission-num {
      font-size: 0.68rem;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #059669;
    }

    .dojo-mission-body {
      margin: 0;
      font-size: 0.86rem;
      font-weight: 600;
      color: #334155;
      line-height: 1.55;
      word-break: keep-all;
    }

    .dojo-mission-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .dojo-mission-refresh-btn {
      flex: 1 1 auto;
      min-width: 0;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
      color: #475569;
      font-size: 0.76rem;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
      transition: background 0.15s, border-color 0.15s, transform 0.1s;
    }

    .dojo-mission-refresh-btn:hover {
      background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
      border-color: rgba(16, 185, 129, 0.35);
      color: #047857;
    }

    .dojo-mission-go-btn {
      flex: 1 1 auto;
      min-width: 0;
      padding: 10px 12px;
      border-radius: var(--radius-field);
      border: 0;
      background: var(--ios-blue);
      color: #fff;
      font-size: 0.76rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      box-shadow: var(--shadow-soft);
      transition: transform 0.22s var(--ease-spring), background 0.2s ease;
    }

    .dojo-mission-go-btn:hover {
      transform: scale(var(--press-scale-hover));
      background: var(--ios-blue-pressed);
    }

    .dojo-mission-go-btn:active {
      transform: scale(var(--press-scale-active));
    }

    .dojo-gauge-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .dojo-gauge-wrap {
      flex: 1;
      min-width: 0;
      height: 12px;
      border-radius: 999px;
      background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 100%);
      border: 1px solid rgba(15, 23, 42, 0.06);
      overflow: hidden;
      box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
    }

    .dojo-gauge-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, #34d399 0%, #4ade80 35%, #a3e635 70%, #bef264 100%);
      box-shadow:
        0 0 12px rgba(52, 211, 153, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.35) inset;
      transition: width 0.35s ease;
    }

    .dojo-gauge-reset-btn {
      flex-shrink: 0;
      width: 38px;
      height: 38px;
      border-radius: 12px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      color: #64748b;
      font-size: 1.05rem;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
      transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
    }

    .dojo-gauge-reset-btn:hover {
      color: #d97706;
      border-color: rgba(245, 158, 11, 0.45);
      background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    }

    .dojo-mission-count {
      font-size: 0.72rem;
      font-weight: 800;
      color: #64748b;
      text-align: right;
      letter-spacing: 0.02em;
    }

    .blank-quiz-setup-panel,
    .goldenbell-setup-panel {
      margin-top: var(--space-xs);
      margin-bottom: var(--space-sm);
      padding: var(--space-md);
      border-radius: var(--radius-card);
      background: var(--bg-page);
      border: 1px solid var(--separator);
      box-shadow: none;
      overflow: visible;
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);
    }

    .setup-banner {
      width: 100%;
      min-width: 0;
      border-radius: var(--radius-card);
      border: 1px solid var(--separator);
      background: var(--bg-card);
      padding: var(--space-md);
      box-shadow: var(--shadow-soft);
    }

    .setup-banner.setup-banner-start {
      padding: 14px 14px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }

    .goldenbell-setup-panel .setup-banner .mode-buttons {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .goldenbell-setup-panel .setup-banner .mode-btn {
      width: 100%;
    }

    .goldenbell-setup-panel .mode-title {
      font-size: 0.85rem;
      font-weight: 500;
      color: #6b7280;
      margin-bottom: 10px;
    }

    /* iPhone 느낌 통일: 패널 안 버튼 높이/반경/터치감 */
    .blank-quiz-setup-panel button {
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .blank-quiz-setup-panel .difficulty-btn,
    .blank-quiz-setup-panel .continent-btn,
    .blank-quiz-setup-panel .mode-btn {
      border-radius: 12px;
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: clamp(0.78rem, 2.1vw + 0.35rem, 0.9rem);
      padding: 8px 10px;
      line-height: 1.3;
      word-break: keep-all;
      overflow-wrap: break-word;
    }

    .blank-quiz-setup-panel .mode-btn {
      justify-content: flex-start;
      align-items: center;
      min-height: auto;
      padding: 10px 12px;
      white-space: normal;
      font-size: clamp(0.76rem, 2.1vw + 0.35rem, 0.88rem);
      display: flex;
      line-height: 1.35;
    }

    .blank-quiz-setup-panel .difficulty-btn {
      justify-content: center;
      min-height: 40px;
      padding: 8px 12px;
    }

    .blank-quiz-setup-panel .continent-btn {
      font-size: 0.78rem;
      font-weight: 600;
      justify-content: center;
      text-align: center;
      padding: 9px 6px;
      min-height: 40px;
    }

    .blank-quiz-setup-panel .difficulty-btns {
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    .blank-quiz-setup-panel .continent-btns {
      gap: 8px;
    }

    /* 세번째 페이지(지리골든벨) iPhone 느낌 통일 */
    .goldenbell-setup-panel .mode-btn {
      border-radius: 12px;
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      font-weight: 700;
      font-size: clamp(0.82rem, 2.2vw + 0.35rem, 0.92rem);
      padding: 10px 12px;
      line-height: 1.35;
      text-align: left;
      white-space: normal;
      word-break: keep-all;
    }

    .goldenbell-setup-panel .start-btn {
      border-radius: 14px;
      min-height: auto;
      padding: 10px 12px;
      font-size: clamp(0.76rem, 2.1vw + 0.35rem, 0.88rem);
      font-weight: 800;
      width: 100%;
      line-height: 1.35;
    }

    .goldenbell-setup-panel button {
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .mode-title {
      font-weight: 600;
      color: var(--text-secondary);
    }

    .mode-buttons {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .mode-btn {
      padding: 6px 10px;
      border-radius: var(--radius-field);
      border: 1px solid var(--separator);
      background: var(--bg-soft);
      color: var(--text-secondary);
      font-size: 0.8rem;
      cursor: pointer;
      text-align: left;
      transition: background 0.15s, border-color 0.15s, transform 0.1s;
    }

    .mode-btn:hover {
      background: var(--ios-blue-soft);
      border-color: var(--ios-blue);
      transform: scale(var(--press-scale-hover));
    }

    .mode-btn.active {
      background: var(--ios-blue);
      border-color: var(--ios-blue);
      color: #fff;
    }

    /* blank-quiz-setup(2nd page)에서 iPhone 느낌 통일 우선 적용 */
    .blank-quiz-setup-panel .mode-title {
      font-size: 0.85rem;
      font-weight: 500;
      color: #6b7280;
      margin-bottom: 10px;
    }

    .blank-quiz-setup-panel .mode-buttons {
      gap: 8px;
    }

    .skip-btn {
      padding: 8px 14px;
      border-radius: var(--radius-pill);
      border: 0;
      font-size: 0.9rem;
      font-weight: 500;
      background: rgba(148, 163, 184, 0.24);
      color: var(--text-secondary);
      cursor: pointer;
      transition: background 0.2s, transform 0.1s;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .skip-btn:hover {
      background: rgba(148, 163, 184, 0.34);
      transform: translateY(-1px);
    }

    .skip-btn:active {
      transform: translateY(0);
    }

    .natural-bell-panel {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(0, 122, 255, 0.15);
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(8px);
      width: 100%;
    }

    .natural-bell-title {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--ios-blue);
      margin-bottom: 8px;
    }

    .natural-cat-buttons {
      display: flex;
      gap: 8px;
      flex-wrap: nowrap;
      margin-bottom: 0;
    }

    .natural-setup-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      width: 100%;
    }

    .human-quiz-cat-row {
      flex-wrap: wrap;
      max-width: 100%;
    }

    .natural-cat-btn {
      padding: 8px 12px;
      border-radius: 999px;
      border: 2px solid #e5e7eb;
      background: #fff;
      color: #374151;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      user-select: none;
    }

    .natural-cat-btn.active {
      border-color: var(--ios-blue);
      background: var(--ios-blue);
      color: #fff;
    }

    .goldenbell-panel {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(0, 122, 255, 0.15);
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(8px);
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .natural-quiz-setup {
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(0, 122, 255, 0.15);
      border-radius: 14px;
      padding: 12px 14px;
      margin: 10px 0 0 0;
      pointer-events: auto;
    }

    .natural-setup-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 12px;
      margin-top: 0px;
      width: auto;
    }

    .natural-start-btn {
      padding: 10px 18px;
      border-radius: var(--radius-pill);
      border: 0;
      font-family: inherit;
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      background: var(--ios-blue);
      cursor: pointer;
      box-shadow: var(--shadow-soft);
      transition: transform 0.22s var(--ease-spring), background 0.2s ease;
    }

    .natural-start-btn:hover {
      background: var(--ios-blue-pressed);
      transform: scale(var(--press-scale-hover));
    }

    .natural-start-btn:active {
      transform: scale(var(--press-scale-active));
    }

    .natural-next-btn {
      padding: 8px 14px;
      border-radius: 10px;
      border: 0;
      font-size: 0.9rem;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(16, 185, 129, 0.26);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .natural-next-btn:active {
      transform: translateY(1px);
    }

    .natural-quiz-action-row {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 0;
      gap: 10px;
      flex-wrap: wrap;
    }

    .natural-map-check-btn {
      padding: 10px 16px;
      border-radius: var(--radius-pill);
      border: 0;
      font-size: 0.95rem;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
      cursor: pointer;
      box-shadow: 0 8px 22px rgba(91, 33, 182, 0.32);
    }

    .natural-map-check-btn:active {
      transform: translateY(1px);
    }

    .natural-next-btn-big {
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 500;
      box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
    }

    .natural-geo-result {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 18px;
      width: var(--content-max);
      max-width: var(--content-inset);
      padding: 12px 14px;
      border-radius: var(--radius-card);
      background: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(10px);
      border: 1px solid var(--separator);
      z-index: 1100;
      display: none;
      pointer-events: auto; /* 지도 iframe 상호작용 허용 */
      box-shadow: var(--shadow-card);
    }

    .natural-geo-result.show {
      display: block;
    }

    .natural-geo-result-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      margin-bottom: 8px;
    }

    .natural-geo-result-kind {
      font-size: 0.95rem;
      font-weight: 800;
      color: var(--text-primary);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .natural-geo-maps-link {
      pointer-events: auto;
      padding: 8px 12px;
      border-radius: var(--radius-pill);
      text-decoration: none;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      font-size: 0.9rem;
      box-shadow: 0 4px 16px rgba(0, 122, 255, 0.26);
    }

    .natural-geo-maps-link:active {
      transform: translateY(1px);
    }

    .natural-geo-result-frame-wrap {
      width: 100%;
      display: flex;
      justify-content: center;
    }

    .natural-geo-result-frame {
      width: 100%;
      height: 250px;
      border: 0;
      border-radius: var(--radius-field);
      overflow: hidden;
    }

    .natural-answer-recap {
      width: var(--content-max);
      max-width: var(--content-inset);
      margin: 0 auto var(--space-sm);
      padding: var(--space-md);
      box-sizing: border-box;
      border-radius: var(--radius-card);
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(10px);
      border: 1px solid var(--separator);
      box-shadow: var(--shadow-card);
      display: none;
      min-height: clamp(180px, 28vh, 320px);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      gap: 10px;
    }

    .natural-answer-recap-title {
      font-size: 1.05rem;
      font-weight: 900;
      color: var(--accent);
      letter-spacing: -0.2px;
    }

    .natural-answer-recap-kind {
      font-size: 0.95rem;
      font-weight: 800;
      color: var(--text-primary);
      opacity: 0.9;
    }

    .natural-answer-recap-answer {
      font-size: 1.35rem;
      font-weight: 950;
      color: var(--text-primary);
      line-height: 1.25;
    }

    .natural-answer-recap-hint {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-secondary);
      opacity: 0.95;
      white-space: pre-line;
    }

    .natural-answer-recap.show {
      display: flex;
    }

    .natural-answer-recap-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      align-items: center;
      margin-top: 4px;
    }

    .natural-answer-recap-map-btn {
      padding: 10px 16px;
      border-radius: var(--radius-pill);
      border: 0;
      font-size: 0.95rem;
      font-weight: 900;
      color: #78350f;
      background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(234, 179, 8, 0.28);
    }

    .natural-answer-recap-map-btn:active {
      transform: translateY(1px);
    }

    .natural-answer-recap-web-btn {
      padding: 10px 16px;
      border-radius: var(--radius-pill);
      border: 0;
      font-size: 0.95rem;
      font-weight: 900;
      color: #fff;
      background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(234, 88, 12, 0.26);
    }

    .natural-answer-recap-web-btn:active {
      transform: translateY(1px);
    }

    .stage-intro-modal {
      position: fixed;
      inset: 0;
      z-index: 2500;
      display: none;
      align-items: center;
      justify-content: center;
      padding: var(--space-md);
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: saturate(180%) blur(12px);
      -webkit-backdrop-filter: saturate(180%) blur(12px);
    }

    .stage-intro-modal.show {
      display: flex;
    }

    .stage-intro-card {
      width: min(380px, 100%);
      border-radius: var(--radius-game, 18px);
      padding: var(--space-lg) var(--space-md) var(--space-md);
      text-align: center;
      background: var(--bg-card);
      border: 2px solid var(--geopus-brown-soft, rgba(139, 94, 60, 0.12));
      box-shadow: var(--shadow-game, 0 5px 0 rgba(139, 94, 60, 0.22));
    }

    .stage-intro-kicker {
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-weight: 900;
      color: var(--geopus-gold, #d4a843);
      margin-bottom: 10px;
    }

    .stage-intro-title {
      font-size: 2rem;
      line-height: 1.1;
      font-weight: 900;
      color: var(--geopus-brown, #8b5e3c);
      margin-bottom: 8px;
    }

    .stage-intro-desc {
      font-size: 0.92rem;
      color: var(--text-secondary);
      margin-bottom: 12px;
    }

    .stage-intro-geopus {
      display: block;
      width: 80px;
      height: 80px;
      margin: 0 auto 14px;
      object-fit: contain;
      filter: none;
    }

    .quiz-timer-option {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      color: var(--text-secondary);
      cursor: pointer;
      user-select: none;
    }

    .quiz-timer-option input {
      width: 18px;
      height: 18px;
      accent-color: var(--geopus-green);
    }

    .quiz-question-timer {
      display: none;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: var(--radius-pill);
      background: var(--geopus-gold-soft);
      color: var(--geopus-brown);
      font-size: 13px;
      font-weight: 700;
      margin-left: auto;
    }

    .quiz-question-timer.is-active {
      display: inline-flex;
    }

    .quiz-question-timer--warn {
      background: #fff3cd;
      color: #856404;
    }

    .stage-intro-start-btn {
      border: 0;
      border-radius: 12px;
      width: 100%;
      min-height: 48px;
      cursor: pointer;
      font-family: inherit;
      font-size: 16px;
      font-weight: 800;
      letter-spacing: 0.06em;
      color: #fff;
      background: linear-gradient(180deg, var(--geopus-brown, #8b5e3c) 0%, var(--geopus-brown-pressed, #734e32) 100%);
      box-shadow: 0 4px 0 rgba(115, 78, 50, 0.35);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .stage-intro-start-btn:hover {
      transform: translateY(-1px);
    }

    .stage-intro-start-btn:active {
      transform: translateY(2px);
      box-shadow: 0 2px 0 rgba(115, 78, 50, 0.35);
    }

    .stage-result-modal {
      position: fixed;
      inset: 0;
      z-index: 2550;
      display: none;
      align-items: center;
      justify-content: center;
      padding: var(--space-md);
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: saturate(180%) blur(12px);
      -webkit-backdrop-filter: saturate(180%) blur(12px);
    }

    .stage-result-modal.show {
      display: flex;
    }

    .stage-result-card {
      width: min(420px, 100%);
      border-radius: var(--radius-card);
      padding: var(--space-lg) var(--space-md) var(--space-md);
      text-align: center;
      background: var(--bg-card);
      border: 1px solid var(--separator);
      box-shadow: var(--shadow-modal);
    }

    .stage-result-title {
      font-size: 1.45rem;
      font-weight: 900;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .stage-result-sub {
      font-size: 0.9rem;
      color: var(--text-secondary);
      margin-bottom: 14px;
    }

    .stage-result-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 14px;
    }

    .stage-result-item {
      border-radius: 12px;
      padding: 10px 8px;
      background: var(--bg-soft);
      border: 1px solid var(--separator);
    }

    .stage-result-item-label {
      font-size: 0.78rem;
      font-weight: 700;
      color: #64748b;
      margin-bottom: 4px;
    }

    .stage-result-item-value {
      font-size: 1.4rem;
      font-weight: 900;
      line-height: 1;
      color: #0f172a;
    }

    .stage-result-next-btn {
      border: 0;
      border-radius: 14px;
      width: 100%;
      min-height: 44px;
      cursor: pointer;
      font-size: 1rem;
      font-weight: 900;
      color: #fff;
      margin-bottom: 6px;
      background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
      box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
    }

    .stage-result-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      text-align: left;
    }

    .stage-result-action {
      border: 1px solid rgba(148, 163, 184, 0.28);
      border-radius: var(--radius-field);
      padding: 10px;
      background: var(--bg-soft);
    }

    .stage-result-retry-btn {
      border: 0;
      border-radius: var(--radius-field);
      width: 100%;
      min-height: 44px;
      cursor: pointer;
      font-size: 0.96rem;
      font-weight: 900;
      color: #3f2b00;
      background: linear-gradient(135deg, #fde68a 0%, #facc15 100%);
      box-shadow: 0 8px 18px rgba(202, 138, 4, 0.24);
      margin-bottom: 6px;
    }

    .stage-result-action-desc {
      font-size: 0.78rem;
      color: #64748b;
      line-height: 1.35;
      margin: 0;
    }

    .stage-result-action--exit {
      grid-column: 1 / -1;
      margin-top: 2px;
      border-color: rgba(248, 113, 113, 0.4);
      background: linear-gradient(180deg, #fffafa 0%, #fef2f2 100%);
    }

    .stage-result-exit-btn {
      border: 0;
      border-radius: var(--radius-field);
      width: 100%;
      min-height: 44px;
      cursor: pointer;
      font-size: 0.96rem;
      font-weight: 900;
      letter-spacing: 0.08em;
      color: #fff;
      background: linear-gradient(135deg, #f87171 0%, #ef4444 45%, #dc2626 100%);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 8px 22px rgba(220, 38, 38, 0.38);
      margin-bottom: 6px;
      transition: filter 0.15s ease, transform 0.1s ease;
    }

    .stage-result-exit-btn:hover {
      filter: brightness(1.06);
    }

    .stage-result-exit-btn:active {
      transform: scale(0.99);
      filter: brightness(0.96);
    }

    .stage-result-action--exit .stage-result-action-desc {
      color: #991b1b;
    }

    .stage-result-wrong-review-btn {
      border: 0;
      border-radius: var(--radius-pill);
      width: 100%;
      min-height: 44px;
      cursor: pointer;
      font-family: inherit;
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      background: var(--ios-blue);
      box-shadow: var(--shadow-soft);
      padding: 0 12px;
      margin-bottom: 6px;
      transition: transform 0.22s var(--ease-spring), background 0.2s ease;
    }

    .stage-result-wrong-review-btn:active {
      transform: scale(0.99);
    }

    .goldenbell-wrong-review-modal {
      position: fixed;
      inset: 0;
      z-index: 2600;
      display: none;
      align-items: center;
      justify-content: center;
      padding: var(--space-md);
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: saturate(180%) blur(12px);
      -webkit-backdrop-filter: saturate(180%) blur(12px);
    }

    .goldenbell-wrong-review-modal.show {
      display: flex;
    }

    .goldenbell-wrong-review-card {
      width: min(440px, 100%);
      max-height: min(78vh, 560px);
      border-radius: var(--radius-card);
      padding: var(--space-md);
      background: var(--bg-card);
      border: 1px solid var(--separator);
      box-shadow: var(--shadow-modal);
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);
    }

    .goldenbell-wrong-review-title {
      font-size: 1.15rem;
      font-weight: 900;
      color: #0f172a;
      text-align: center;
    }

    .goldenbell-wrong-review-section-title {
      font-size: 0.95rem;
      font-weight: 900;
      color: #1e293b;
      margin: 14px 0 8px;
      padding-bottom: 6px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.45);
      text-align: left;
    }

    .goldenbell-wrong-review-section-title:first-of-type {
      margin-top: 0;
    }

    .goldenbell-wrong-review-empty {
      font-size: 0.82rem;
      color: #64748b;
      margin: 0 0 12px;
      line-height: 1.4;
      text-align: left;
    }

    .goldenbell-wrong-review-list {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding-right: 4px;
      text-align: left;
    }

    .goldenbell-wrong-review-item {
      border-radius: var(--radius-field);
      padding: 10px 12px;
      background: var(--bg-soft);
      border: 1px solid rgba(148, 163, 184, 0.35);
    }

    .goldenbell-wrong-review-kind {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 800;
      color: var(--accent);
      background: rgba(99, 102, 241, 0.12);
      padding: 3px 8px;
      border-radius: 10px;
      margin-bottom: 6px;
    }

    .goldenbell-wrong-review-prompt {
      font-size: 0.86rem;
      color: #334155;
      line-height: 1.45;
      margin: 0 0 8px;
    }

    .goldenbell-wrong-review-answer {
      font-size: 0.84rem;
      color: #475569;
      margin: 0;
    }

    .goldenbell-wrong-review-close {
      border: 0;
      border-radius: 12px;
      width: 100%;
      min-height: 44px;
      cursor: pointer;
      font-size: 0.95rem;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(135deg, #64748b 0%, #475569 100%);
      box-shadow: 0 6px 18px rgba(71, 85, 105, 0.35);
      margin-top: 4px;
    }

    .ex4-setup-hint {
      font-size: 0.78rem;
      color: #64748b;
      margin: -4px 0 8px;
      line-height: 1.35;
    }

    .ex4-toggle-row,
    .golden-type-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .ex4-toggle-btn,
    .golden-type-btn {
      border: 1px solid rgba(99, 102, 241, 0.35);
      border-radius: 12px;
      padding: 8px 12px;
      font-size: 0.82rem;
      font-weight: 700;
      background: #fff;
      color: #334155;
      cursor: pointer;
    }

    .ex4-toggle-btn.active,
    .golden-type-btn.active {
      background: var(--ios-blue);
      color: #fff;
      border-color: transparent;
    }

    .ex4-num-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .ex4-num-btn {
      min-width: 52px;
      border-radius: 10px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      padding: 8px 10px;
      font-weight: 800;
      background: #f8fafc;
      cursor: pointer;
    }

    .ex4-num-btn.active {
      background: #1e293b;
      color: #fff;
      border-color: #1e293b;
    }

    .ex4-time-select-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .ex4-time-select {
      min-width: min(200px, 100%);
      max-width: 100%;
      border-radius: 10px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      padding: 10px 12px;
      font-size: 0.9rem;
      font-weight: 700;
      background: #f8fafc;
      color: #1e293b;
      cursor: pointer;
    }

    /* Ex4: 한 줄 — [학생] [게이지+문항칸] [강아지] (밝은 톤) */
    .ex4-escape-scene-wrap {
      display: none;
      flex: 0 0 auto;
      width: 100%;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      padding: 12px 12px 16px;
      padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
      background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #eef2ff 38%,
        #e0e7ff 72%,
        #e2e8f0 100%
      );
      border-top: 1px solid rgba(129, 140, 248, 0.35);
      box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
      box-sizing: border-box;
      max-height: min(60vh, 440px);
    }

    .ex4-escape-scene-wrap.is-visible {
      display: flex;
    }

    .ex4-escape-row {
      --ex4-progress: 0;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 16px;
      width: 100%;
      max-width: min(520px, calc(100% - 8px));
      margin: 0 auto;
      min-height: 104px;
    }

    .ex4-escape-avatar {
      flex: 0 0 auto;
      width: 88px;
      height: 88px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ex4-escape-avatar svg {
      width: 88px;
      height: 88px;
      display: block;
      overflow: visible;
    }

    .ex4-escape-avatar--student img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 50%;
      display: block;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    }

    .ex4-escape-avatar--dog img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 50%;
      display: block;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
      transition: transform 0.55s ease, filter 0.55s ease;
    }

    .ex4-escape-avatar--dog.ex4-scene--cleared img {
      transform: scale(1.08);
      filter: brightness(1.12) drop-shadow(0 0 16px rgba(22, 163, 74, 0.55));
    }

    .ex4-escape-avatar--student {
      transform: translateX(calc(var(--ex4-progress, 0) * 64px));
      transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
      will-change: transform;
    }

    .ex4-escape-track-wrap {
      flex: 1 1 auto;
      min-width: 48px;
      max-width: 100%;
    }

    .ex4-escape-track {
      position: relative;
      height: 36px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(148, 163, 184, 0.5);
      box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
      overflow: hidden;
    }

    .ex4-escape-track-fill {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, #a5b4fc 0%, #818cf8 35%, #34d399 100%);
      transition: width 0.7s cubic-bezier(0.33, 1, 0.68, 1);
      z-index: 0;
      box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
    }

    .ex4-escape-cells {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: row;
      z-index: 1;
      pointer-events: none;
    }

    .ex4-escape-cell {
      flex: 1 1 0;
      min-width: 0;
      height: 100%;
      box-sizing: border-box;
      border-right: 1px solid rgba(15, 23, 42, 0.14);
      background: transparent;
      transition:
        background 0.3s ease,
        box-shadow 0.25s ease;
    }

    .ex4-escape-cell:last-child {
      border-right: none;
    }

    .ex4-escape-cell.ex4-escape-cell--current {
      box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.55);
    }

    .ex4-escape-cell.ex4-escape-cell--correct {
      background: rgba(16, 185, 129, 0.28);
    }

    .ex4-escape-cell.ex4-escape-cell--wrong {
      background: rgba(239, 68, 68, 0.22);
    }

    .ex4-escape-cell.ex4-escape-cell--skip {
      background: rgba(245, 158, 11, 0.28);
    }

    .answer-input-container.answer-input-container--ex4-slot {
      display: flex !important;
      width: 100%;
      max-width: 100%;
      margin: 0 !important;
      flex-shrink: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      padding: 10px;
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.88);
      border: 1px solid rgba(196, 181, 253, 0.4);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
      color: #e2e8f0;
      position: relative;
      z-index: 2;
    }

    .answer-input-container.answer-input-container--ex4-slot .short-answer-block {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      width: 100%;
    }

    .answer-input-container.answer-input-container--ex4-slot .answer-input-label {
      color: #cbd5e1;
      white-space: normal;
      font-size: 0.8rem;
      font-weight: 800;
    }

    .answer-input-container.answer-input-container--ex4-slot .answer-input {
      width: 100%;
      background: #f8fafc;
      color: #0f172a;
      border-color: #94a3b8;
    }

    .answer-input-container.answer-input-container--ex4-slot .answer-submit-btn {
      width: 100%;
      margin-top: 0;
    }

    .answer-input-container.answer-input-container--ex4-slot.is-mcq {
      background: rgba(248, 250, 252, 0.97);
      color: #111827;
      border-color: rgba(99, 102, 241, 0.35);
    }

    .answer-input-container.answer-input-container--ex4-slot.is-mcq .mcq-choice-btn {
      font-size: 0.88rem;
      padding: 10px 12px;
    }

    .ex4-game-layout {
      display: none;
      flex-direction: column;
      flex: 1 1 auto;
      min-height: 0;
    }

    .game-overlay.game-overlay--ex4 .ex4-game-layout:not([hidden]) {
      display: flex;
    }

    .game-overlay.ex4-gl-layout-active .header {
      display: none !important;
    }

    .ex4-gl-topbar {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px 14px;
      padding: 10px 14px;
      margin: 6px 10px 0;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(235, 239, 248, 0.98) 100%);
      border: 1px solid rgba(99, 102, 241, 0.18);
      box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
      flex-shrink: 0;
    }

    .ex4-gl-nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .ex4-gl-mission {
      margin: 0;
      text-align: center;
      font-weight: 900;
      font-size: clamp(0.78rem, 2.1vw, 0.98rem);
      color: #1e1b4b;
      line-height: 1.35;
    }

    .ex4-gl-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .ex4-gl-body {
      display: grid;
      grid-template-columns: minmax(0, 1fr) min(240px, 30vw);
      gap: 12px;
      padding: 10px 12px 8px;
      flex: 1 1 auto;
      min-height: 0;
      overflow: hidden;
    }

    .ex4-gl-main {
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 0;
      overflow: hidden;
    }

    .ex4-gl-qanswer {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      flex-shrink: 0;
    }

    .ex4-gl-qanswer.ex4-gl-qanswer--mcq {
      grid-template-columns: minmax(0, 1fr);
    }

    .ex4-gl-answer-name-slot.ex4-gl-answer-name-slot--hidden {
      display: none;
    }

    .ex4-gl-question-slot .question-box,
    .ex4-gl-answer-name-slot .answer-input-container {
      margin: 0 !important;
    }

    .ex4-gl-stage-slot {
      flex: 1 1 auto;
      min-height: 100px;
      border-radius: 14px;
      border: 1px dashed rgba(99, 102, 241, 0.28);
      background: rgba(255, 255, 255, 0.14);
      padding: 8px;
      overflow: auto;
      -webkit-overflow-scrolling: touch;
    }

    .ex4-gl-stage-slot:empty {
      min-height: 72px;
    }

    .ex4-gl-main.ex4-gl-main--stage-idle .ex4-gl-stage-slot {
      min-height: 0;
      border-color: transparent;
      background: transparent;
      padding: 0;
      overflow: hidden;
    }

    .ex4-gl-main.ex4-gl-main--stage-idle .ex4-gl-stage-slot:empty {
      display: none;
    }

    .ex4-gl-sidebar {
      border-radius: 14px;
      padding: 12px 10px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.96) 100%);
      border: 1px solid rgba(99, 102, 241, 0.2);
      box-shadow: 0 6px 22px rgba(15, 23, 42, 0.1);
      min-height: 0;
      overflow: auto;
    }

    .ex4-gl-sidebar-title {
      font-size: 0.72rem;
      font-weight: 900;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #64748b;
      margin-bottom: 8px;
    }

    .ex4-gl-sidebar .header-score-next-cluster {
      align-items: stretch;
      width: 100%;
    }

    .ex4-gl-sidebar .score-display {
      width: 100%;
    }

    .ex4-gl-sidebar .score-line {
      flex-wrap: wrap;
      justify-content: flex-start;
    }

    /*
      Ex4: 오버레이가 뷰포트를 채우고 game-overlay-inner만 세로 스크롤.
      (나라 이름 모드는 quiz-compact가 꺼져 있어 기존엔 입력란이 화면 아래로 밀려 body overflow:hidden 에 잘리기 쉬움)
    */
    .game-overlay.game-overlay--ex4 {
      bottom: 0;
      right: 0;
      height: 100vh;
      height: 100dvh;
      max-height: 100dvh;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /*
      Ex4 지도형: inner가 뷰포트를 덮으면서 pointer-events:auto 이면
      빈 영역의 드래그·휠이 Leaflet 지도에 닿지 않고 내부 스크롤만 됨(Ctrl+휠로만 확대하는 느낌).
      inner는 통과시키고, 패널(헤더·문제·입력 등)만 클릭을 받게 함.
    */
    .game-overlay.game-overlay--ex4 .game-overlay-inner {
      margin-left: 0;
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      touch-action: pan-y pinch-zoom;
      padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
      pointer-events: none;
    }

    .game-overlay.game-overlay--ex4 .game-overlay-inner > * {
      pointer-events: auto;
    }

    .game-overlay.game-overlay--ex4 .header {
      flex-shrink: 0;
    }

    /* 타임어택(지도 클릭): 입력·객관식 패널은 항상 숨김 */
    .game-overlay.game-overlay--ex4 #answerInputContainer {
      display: none !important;
      visibility: hidden !important;
      pointer-events: none !important;
      height: 0 !important;
      min-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      border: 0 !important;
    }

    .game-overlay.game-overlay--ex4 .question-box {
      flex-shrink: 0;
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 14px;
    }

    .game-overlay.game-overlay--ex4 .ex4-villain-portrait {
      display: flex;
      flex-shrink: 0;
      align-items: flex-start;
      justify-content: center;
      margin-top: 2px;
    }

    .game-overlay.game-overlay--ex4 .ex4-villain-portrait img {
      width: 76px;
      height: 76px;
      object-fit: cover;
      border-radius: 50%;
      border: 3px solid rgba(30, 27, 75, 0.88);
      box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }

    .game-overlay.game-overlay--ex4 .question-box .question-box-main {
      flex: 1;
      min-width: 0;
    }

    /*
      골든벨용 html.bell-quiz-compact 가 .quiz-compact .game-overlay-inner 를 display:block 으로 덮어써
      Ex4 선택형에서 입력·보기 패널이 사라지는 문제가 생김 → Ex4일 때만 플렉스 레이아웃 복구
    */
    html.bell-quiz-compact .game-overlay.quiz-compact.game-overlay--ex4 {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      max-height: 100vh;
      max-height: 100dvh;
      height: 100dvh;
      display: flex !important;
      flex-direction: column;
      overflow: hidden;
    }

    html.bell-quiz-compact .game-overlay.quiz-compact.game-overlay--ex4 .game-overlay-inner {
      display: flex !important;
      flex-direction: column;
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      touch-action: pan-y pinch-zoom;
      padding: calc(10px + env(safe-area-inset-top, 0px)) 0 calc(18px + env(safe-area-inset-bottom, 0px));
      pointer-events: none;
    }

    html.bell-quiz-compact .game-overlay.quiz-compact.game-overlay--ex4 .game-overlay-inner > * {
      pointer-events: auto;
    }

    html.bell-quiz-compact .game-overlay.quiz-compact.game-overlay--ex4 > .ex4-escape-scene-wrap {
      flex-shrink: 0;
    }

    /* 선택형만 잠깐 밝은 패널 배경이 필요할 때 아래 클래스만 토글. */
    .game-overlay.game-overlay--ex4.game-overlay--ex4-mcq {
      background: var(--bg-page);
    }

    @media (max-width: 720px) {
      .ex4-escape-scene-wrap {
        max-height: min(56vh, 400px);
        padding: 10px 8px 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
      }

      .ex4-escape-row {
        max-width: 100%;
        gap: 12px;
        min-height: 92px;
      }

      .ex4-escape-avatar {
        width: 80px;
        height: 80px;
      }

      .ex4-escape-avatar svg {
        width: 80px;
        height: 80px;
      }

      .ex4-escape-avatar--student img,
      .ex4-escape-avatar--dog img {
        width: 100%;
        height: 100%;
      }

      .ex4-escape-avatar--student {
        transform: translateX(calc(var(--ex4-progress, 0) * 48px));
      }

      .ex4-escape-track {
        height: 32px;
      }

      .game-overlay.game-overlay--ex4 .game-overlay-inner {
        margin-left: 0;
      }

      .ex4-gl-body {
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
      }

      .ex4-gl-sidebar {
        order: -1;
      }

      .ex4-gl-qanswer {
        grid-template-columns: minmax(0, 1fr);
      }

      .ex4-gl-answer-name-slot.ex4-gl-answer-name-slot--hidden {
        display: none;
      }

      .ex4-gl-topbar {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
      }

      .ex4-gl-nav {
        justify-content: flex-start;
      }

      .ex4-gl-actions {
        justify-content: space-between;
        width: 100%;
      }

      /* 지도·객관식 영역이 너무 납작해지지 않도록 */
      .ex4-gl-stage-slot {
        min-height: min(36vh, 260px);
      }

      .game-overlay.game-overlay--ex4 .question-box {
        gap: 10px;
      }

      .game-overlay.game-overlay--ex4 .ex4-villain-portrait img {
        width: 64px;
        height: 64px;
      }
    }

    .ex4-timer-pill {
      display: none;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.9);
      color: #f8fafc;
      font-weight: 900;
      font-size: 0.95rem;
      letter-spacing: 0.04em;
      border: 1px solid rgba(248, 113, 113, 0.45);
    }

    .ex4-timer-pill.is-visible {
      display: inline-flex;
    }

    .ex4-timer-pill--warn {
      border-color: #fbbf24;
      color: #fef3c7;
    }

    .ex4-timer-pill--danger {
      animation: ex4Pulse 0.9s ease-in-out infinite;
      border-color: #f87171;
      color: #fecaca;
    }

    @keyframes ex4Pulse {
      0%,
      100% {
        opacity: 1;
      }
      50% {
        opacity: 0.65;
      }
    }

    .ex4-confirm-modal,
    .ex4-result-modal,
    .ex4-fail-modal {
      position: fixed;
      inset: 0;
      z-index: 2700;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(4px);
    }

    .ex4-review-modal {
      position: fixed;
      inset: 0;
      z-index: 2750;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(4px);
    }

    .ex4-confirm-modal.show,
    .ex4-result-modal.show,
    .ex4-fail-modal.show,
    .ex4-review-modal.show {
      display: flex;
    }

    .ex4-modal-card {
      width: min(400px, 100%);
      border-radius: var(--radius-card);
      padding: 22px 18px 16px;
      background: var(--bg-card);
      border: 1px solid var(--separator);
      box-shadow: 0 18px 48px rgba(15, 23, 42, 0.26);
      text-align: center;
    }

    .ex4-modal-title {
      font-size: 1.2rem;
      font-weight: 900;
      color: var(--text-primary);
      margin-bottom: 10px;
    }

    .ex4-modal-body {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.45;
      margin-bottom: 16px;
    }

    .ex4-result-modal .ex4-modal-card {
      width: min(420px, 100%);
    }

    .ex4-result-hero {
      margin: 4px auto 14px;
      max-width: min(200px, 52vw);
    }

    .ex4-result-hero img {
      width: 100%;
      height: auto;
      aspect-ratio: 1;
      display: block;
      object-fit: contain;
      border-radius: 50%;
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
    }

    .ex4-modal-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .ex4-modal-btn {
      border: 0;
      border-radius: var(--radius-field);
      min-height: 44px;
      font-weight: 800;
      cursor: pointer;
      font-size: 0.92rem;
    }

    .ex4-modal-btn--primary {
      background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
      color: #fff;
      box-shadow: 0 8px 18px rgba(22, 163, 74, 0.24);
    }

    .ex4-modal-btn--secondary {
      background: #e2e8f0;
      color: var(--text-primary);
      border: 1px solid var(--separator);
    }

    .ex4-modal-btn--danger {
      background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
      color: #fff;
      box-shadow: 0 8px 18px rgba(220, 38, 38, 0.26);
    }

    .ex4-modal-btn--muted {
      background: #f1f5f9;
      color: var(--text-secondary);
      border: 1px solid var(--separator);
    }
  
