#app, #app *{ margin: 0; padding: 0; box-sizing: border-box; }
#app{ font-family: "BIZ UDゴシック", "BIZ UDGothic", "BIZ UD Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; background-color: #000; color: #fff; overflow: hidden; }
#app .vn-root{ display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
#app .vn-stage-container{ flex: 1; display: flex; align-items: center; justify-content: center; background-color: #000; padding: 20px; }
#app .vn-stage-container.fixed-size{ background-color: #000; }
#app .vn-stage-container.fixed-size .vn-stage{ width: 1100px; height: 619px; max-width: none; }
#app .vn-stage{ width: 100%; max-width: 1400px; aspect-ratio: 16 / 9; position: relative; background-color: #1a1a1a; box-shadow: 0 0 30px rgba(0, 0, 0, 0.8); }
#app .vn-bg{ position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
#app .vn-stage > *:not(.vn-bg){ z-index: 1; }
#app .vn-menu-btn{ position: absolute; top: 20px; left: 20px; width: 55px; height: 55px; background-color: rgba(0, 0, 0, 0.75); color: white; border: 3px solid rgba(255, 255, 255, 0.35); border-radius: 10px; font-size: 1.7rem; font-weight: 300; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s; z-index: 100; }
#app .vn-menu-btn:hover{ background-color: rgba(0, 0, 0, 0.92); border-color: rgba(255, 255, 255, 0.65); transform: scale(1.05); }
#app .vn-character-wrap{ position: absolute; bottom: 0 !important; left: 0 !important; z-index: 5; pointer-events: none; height: 100%; }
#app .vn-character-transform{ transform-origin: left bottom; opacity: 1; transition: opacity 0.25s ease-out; }
#app .vn-character{ display: block; max-width: none !important; max-height: 58% !important; height: 58% !important; width: auto !important; object-fit: contain; opacity: 0; transform: translateY(20px); transform-origin: left bottom; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
#app .vn-character.vn-visible{ opacity: 1; transform: translateY(0); }
#app .vn-textbox{ position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.88)); padding: 25px 50px; border-top: 4px solid #d4af37; z-index: 10; max-height: 75vh; overflow-y: auto; opacity: 0; transition: opacity 0.5s; }
#app .vn-textbox.vn-visible{ opacity: 1; }
#app .vn-speaker{ font-size: 1.2rem; font-weight: 700; color: #d4af37; margin-bottom: 10px; text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9); }
#app .vn-text{ font-size: 1.2rem; line-height: 1.8; color: #fff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); min-height: 50px; }
#app .vn-text .vn-truefalse-btn,
#app .vn-text .vn-letter-box,
#app .vn-text .vn-letter-input,
#app .vn-text .vn-quiz-action-btn,
#app .vn-text .vn-timeline-item,
#app .vn-text .vn-match-right,
#app .vn-text .match-left{ text-shadow: none; }
#app .vn-next{ position: absolute; bottom: 35px; right: 45px; font-size: 2.8rem; color: #d4af37; cursor: pointer; z-index: 15; text-shadow: 0 0 20px rgba(212, 175, 55, 0.9); user-select: none; opacity: 0; }
#app .vn-next.vn-visible{ opacity: 1; animation: vnBlink 1.6s ease-in-out infinite; }
@keyframes vnBlink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
#app .vn-choices{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 15px; width: 85%; max-width: 800px; max-height: 80vh; overflow-y: auto; z-index: 20; opacity: 0; padding: 20px; }
#app .vn-choices.vn-visible{ opacity: 1; }
#app .vn-quiz-layer{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 25; padding: 30px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#app .vn-quiz-layer.vn-visible{ opacity: 1; pointer-events: auto; }
#app .vn-quiz-card{ background: rgba(255, 255, 255, 0.96); color: #1e3a5f; border: 4px solid #d4af37; border-radius: 16px; padding: 22px 26px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); max-width: 900px; width: min(90%, 900px); }
#app .vn-quiz-card .vn-truefalse-btn,
#app .vn-quiz-card .vn-letter-box,
#app .vn-quiz-card .vn-letter-input,
#app .vn-quiz-card .vn-quiz-action-btn,
#app .vn-quiz-card .vn-timeline-item,
#app .vn-quiz-card .vn-match-right,
#app .vn-quiz-card .match-left{ text-shadow: none; }
#app .vn-choice-btn{ background: linear-gradient(135deg, rgba(30, 58, 95, 0.96), rgba(45, 90, 143, 0.96)); color: white; padding: 20px 30px; border: 4px solid #d4af37; border-radius: 12px; font-size: 1.3rem; font-weight: 500; cursor: pointer; transition: all 0.35s; text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); line-height: 1.5; }
#app .vn-choice-btn:hover{ transform: translateX(10px) scale(1.02); border-color: #e5c158; }
#app .vn-truefalse{ display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
#app .vn-truefalse-btn{ width: 160px; height: 160px; font-size: 4rem; font-weight: 700; border-radius: 18px; border: 5px solid #d4af37; background: rgba(255, 255, 255, 0.95); color: #1e3a5f; font-family: inherit; cursor: pointer; }
#app .vn-letter-boxes{ display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 15px; }
#app .vn-letter-box{ width: 44px; height: 52px; border: 3px solid #d4af37; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; background: rgba(255, 255, 255, 0.95); color: #1e3a5f; }
#app .vn-letter-input{ width: 100%; padding: 12px 15px; font-size: 1.1rem; border: 3px solid #d4af37; border-radius: 8px; background: rgba(255, 255, 255, 0.95); color: #333; font-family: inherit; }
#app .vn-quiz-action-btn{ padding: 10px 24px; font-size: 1rem; font-weight: 600; border-radius: 8px; border: 2px solid #1e3a5f; background: #ffffff; color: #1e3a5f; cursor: pointer; }
#app .vn-quiz-action-primary{ background: linear-gradient(135deg, #d4af37, #e5c158); border-color: #d4af37; color: #1e3a5f; }
#app .vn-timeline-item{ padding: 12px 16px; background: #ffffff; color: #1e3a5f; border: 2px solid #d4af37; border-radius: 8px; cursor: move; font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
#app .vn-timeline-handle{ color: #4a4a4a; font-size: 0.95rem; }
#app .vn-match-right{ padding: 18px 20px; background: #ffffff; color: #1e3a5f; border: 4px solid #d4af37; border-radius: 12px; cursor: pointer; font-size: 1.3rem; text-align: center; font-weight: 700; min-height: 70px; display: flex; align-items: center; justify-content: center; }
#app .vn-map-wrapper{ position: relative; display: inline-block; max-width: 100%; }
#app .vn-map-image{ width: 100%; max-height: 350px; object-fit: contain; border-radius: 8px; border: 2px solid #d4af37; display: block; }
#app .vn-map-click-container{ overflow: hidden; }
#app .vn-map-lines{ position: absolute; inset: 0; pointer-events: none; z-index: 2; }
#app .vn-map-line{ position: absolute; background: rgba(255, 255, 255, 0.85); pointer-events: none; }
#app .vn-map-line-v{ top: 0; bottom: 0; width: 2px; transform: translateX(-1px); }
#app .vn-map-line-h{ left: 0; right: 0; height: 2px; transform: translateY(-1px); }
#app .vn-map-click-layer{ position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; }
#app .vn-map-selection-overlay{ position: absolute; pointer-events: none; border: 2px solid transparent; background: transparent; z-index: 1; transition: all 0.18s ease; }
#app .vn-map-selection-overlay.is-selected{ background: rgba(255, 230, 100, 0.35); border-color: rgba(255, 193, 7, 0.95); }
#app .vn-map-selection-overlay.is-correct{ background: rgba(76, 175, 80, 0.36); border-color: #2e7d32; }
#app .vn-map-selection-overlay.is-wrong{ background: rgba(229, 57, 53, 0.34); border-color: #c62828; }
#app .vn-map-click-layer{ z-index: 3; }
#app .vn-map-drag-handles{ position: absolute; inset: 0; z-index: 4; pointer-events: none; display: none; }
#app .vn-map-click-container.is-editing .vn-map-drag-handles{ display: block; pointer-events: auto; }
#app .vn-map-tools{ margin-top: 10px; }
#app .vn-map-edit-btn{ padding: 6px 12px; font-size: 0.9rem; border: 1px solid #1e3a5f; border-radius: 6px; background: #ffffff; color: #1e3a5f; cursor: pointer; }
#app .vn-cross-handle{ position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1e3a5f; background: #ffd54f; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); transform: translate(-50%, -50%); cursor: grab; }
#app .vn-cross-handle:active{ cursor: grabbing; }
#app .vn-line-handle-x,
#app .vn-line-handle-y{ position: absolute; border: 0; background: transparent; cursor: grab; }
#app .vn-line-handle-x{ top: 0; bottom: 0; width: 22px; transform: translateX(-50%); }
#app .vn-line-handle-y{ left: 0; right: 0; height: 22px; transform: translateY(-50%); }
#app .vn-line-handle-x:active,
#app .vn-line-handle-y:active{ cursor: grabbing; }
#app .vn-map-selection-info{ margin-top: 10px; font-size: 0.95rem; color: #1e3a5f; font-weight: 600; }
#app .vn-correct-overlay{ position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); display: flex; align-items: center; justify-content: center; z-index: 30; animation: vnCorrectFade 0.35s ease-out; }
#app .vn-correct-card{ background: rgba(255, 255, 255, 0.95); color: #1e3a5f; border: 4px solid #4caf50; border-radius: 16px; padding: 28px 36px; text-align: center; min-width: 320px; max-width: 70%; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); animation: vnCorrectPop 0.5s ease-out; }
#app .vn-correct-title{ font-size: 2.2rem; font-weight: 700; color: #2e7d32; margin-bottom: 8px; }
#app .vn-correct-subtitle{ font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: #1e3a5f; }
#app .vn-correct-feedback{ font-size: 1rem; color: #1e3a5f; line-height: 1.6; }
@keyframes vnCorrectPop { 0% { transform: scale(0.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes vnCorrectFade { from { opacity: 0; } to { opacity: 1; } }
#app .vn-incorrect-overlay{ position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 30; animation: vnIncorrectFade 0.35s ease-out; }
#app .vn-incorrect-card{ background: rgba(255, 255, 255, 0.95); color: #5f1e1e; border: 4px solid #e57373; border-radius: 16px; padding: 28px 36px; text-align: center; min-width: 320px; max-width: 70%; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); animation: vnIncorrectPop 0.5s ease-out; }
#app .vn-incorrect-title{ font-size: 2.1rem; font-weight: 700; color: #d32f2f; margin-bottom: 8px; }
#app .vn-incorrect-subtitle{ font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: #5f1e1e; }
#app .vn-incorrect-feedback{ font-size: 1rem; color: #5f1e1e; line-height: 1.6; white-space: pre-line; }
@keyframes vnIncorrectPop { 0% { transform: scale(0.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes vnIncorrectFade { from { opacity: 0; } to { opacity: 1; } }
#app .vn-placeholder{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #666; font-size: 1.8rem; text-align: center; }
#app .vn-hidden{ display: none !important; }
@media (max-width: 1024px) { #app .vn-stage-container { padding: 10px; } #app .vn-stage { max-width: 1200px; } }
@media (max-width: 768px) { #app .vn-stage { max-width: 960px; } }


/* ========================================
   UI IMPROVEMENT PATCH 2026-06-01
   電子黒板・小学生操作向け：ボタン位置、入力欄、サイドバー、下部テキストを調整
   ======================================== */
body{background:#eef4fb;color:#1f2a36;}
.vn-header{padding:.55rem .9rem;gap:10px;background:linear-gradient(135deg,#0f4f72 0%,#1687a7 100%);} 
.vn-title{font-size:1rem;white-space:nowrap;}
.vn-header-controls{margin-left:auto;justify-content:flex-end;gap:.35rem;}
.vn-header-controls .vn-btn{min-height:38px;padding:.45rem .75rem;border-radius:999px;font-weight:700;}
.vn-panel-left{width:280px;}
.vn-panel-right{width:360px;}
.vn-panel-header{padding:12px 16px;background:linear-gradient(135deg,#0f4f72 0%,#1687a7 100%);} 
.vn-panel-content{padding:14px;}
.vn-scene-card{padding:11px 12px;margin-bottom:9px;border-radius:12px;}
.vn-scene-card:hover{transform:translateX(2px);} 
.vn-scene-title{font-size:.98rem;line-height:1.45;}
.vn-stage-container{padding:16px;background:linear-gradient(180deg,#f4f8fc 0%,#e8eff7 100%);} 
.vn-stage{border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(15,79,114,.28);}
.vn-main-container.play-mode .vn-stage-container{padding:20px;}
.vn-main-container.play-mode .vn-stage{max-width:min(1400px,96vw);}
.vn-character-wrap{left:4%;bottom:24%;}
.vn-character{max-width:min(30vw,420px);max-height:70vh;filter:drop-shadow(0 10px 18px rgba(0,0,0,.28));}
.vn-textbox{left:3%;right:3%;bottom:3%;border-radius:18px;border:3px solid rgba(255,255,255,.75);border-top:5px solid #d4af37;background:linear-gradient(180deg,rgba(18,43,64,.93),rgba(8,20,34,.96));padding:20px 128px 22px 28px;max-height:34%;box-shadow:0 10px 26px rgba(0,0,0,.38);} 
.vn-speaker{font-size:1.08rem;margin-bottom:6px;}
.vn-text{font-size:1.08rem;line-height:1.75;}
.vn-next{right:5%;bottom:5.2%;width:108px;height:52px;border-radius:999px;background:linear-gradient(135deg,#d4af37,#f2d46b);color:#102b43;border:3px solid rgba(255,255,255,.78);box-shadow:0 8px 18px rgba(0,0,0,.35);font-size:0;display:flex;align-items:center;justify-content:center;text-shadow:none;}
.vn-next::before{content:'次へ ▶';font-size:1.05rem;font-weight:800;letter-spacing:.03em;}
.vn-next.vn-visible{animation:vnPulseBtn 1.5s ease-in-out infinite;}
@keyframes vnPulseBtn{0%,100%{transform:translateY(0);filter:brightness(1)}50%{transform:translateY(-2px);filter:brightness(1.08)}}
.vn-menu-btn,.vn-screen-toggle{top:16px;width:50px;height:50px;border-radius:14px;background:rgba(6,24,40,.76);} 
.vn-exit-btn{top:16px;right:84px;height:50px;border-radius:999px;background:rgba(212,175,55,.92);}
.vn-quiz-layer{align-items:flex-end;justify-content:center;padding:24px 28px 34px;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.36));}
.vn-quiz-card{width:min(94%,980px);max-height:82vh;overflow:auto;border-radius:20px;padding:20px 24px;background:rgba(255,255,255,.97);box-shadow:0 14px 34px rgba(0,0,0,.36);} 
.vn-question-header{margin-bottom:12px;padding:12px 14px;border-radius:14px;background:#eef7ff;}
.vn-question-title{font-size:1.18rem;line-height:1.65;}
.vn-question-hint{background:#fff8df;border-left:5px solid #d4af37;border-radius:12px;padding:10px 12px;color:#5a4612;margin:10px 0 12px;}
.vn-letter-boxes{justify-content:center;gap:10px;margin:12px 0;}
.vn-letter-box{width:54px;height:60px;font-size:1.75rem;border-radius:14px;background:#fffef8;}
.vn-letter-input{font-size:1.35rem;padding:16px 18px;border-radius:14px;text-align:center;font-weight:700;ime-mode:active;}
.vn-keyword-actions{display:flex;gap:12px;margin-top:14px;justify-content:center;}
.vn-quiz-action-btn{min-height:52px;padding:12px 28px;font-size:1.08rem;border-radius:999px;font-weight:800;}
.vn-quiz-action-primary{min-width:220px;}
.vn-keyword-note{margin-top:10px;text-align:center;font-size:.94rem;color:#526477;}
.vn-choice-btn{padding:17px 24px;border-radius:16px;font-size:1.18rem;}
.vn-correct-card,.vn-incorrect-card{border-radius:22px;max-width:min(84%,760px);} 
.vn-graph-image,.vn-map-image{max-height:300px;background:#fff;}
@media (max-width:1100px){.vn-panel-left{width:240px}.vn-panel-right{width:310px}.vn-title{display:none}.vn-header-controls .vn-btn{font-size:.78rem;padding:.4rem .55rem}.vn-textbox{padding-right:110px}.vn-next{width:96px}}
@media (max-width:820px){.vn-main-container{display:block;overflow:auto}.vn-panel{width:100%;max-height:38vh}.vn-stage-container{min-height:56vh}.vn-textbox{left:2%;right:2%;bottom:2%;padding:14px 92px 14px 16px}.vn-text{font-size:.95rem}.vn-next{right:4%;bottom:4%;width:82px;height:44px}.vn-next::before{font-size:.9rem}.vn-quiz-layer{padding:12px}.vn-quiz-card{width:98%;padding:16px}.vn-letter-box{width:42px;height:50px}}


/* ========================================
   MATERIAL SCENE FIX 2026-06-01
   資料画像の二重表示を防ぎ、説明文は下部の短い帯にする
   ======================================== */
#app .vn-stage.vn-scene-material .vn-textbox,
.vn-stage.vn-scene-material .vn-textbox{
  left: 4% !important;
  right: 4% !important;
  bottom: 3% !important;
  max-height: 48% !important;
  padding: 16px 128px 16px 24px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(8,22,34,.70), rgba(6,16,26,.82)) !important;
  border: 2px solid rgba(255,255,255,.55) !important;
  border-top: 4px solid #d4af37 !important;
  overflow-y: auto !important;
}
#app .vn-stage.vn-scene-material .vn-speaker,
.vn-stage.vn-scene-material .vn-speaker{
  font-size: 1.05rem !important;
  margin-bottom: 4px !important;
}
#app .vn-stage.vn-scene-material .vn-text,
.vn-stage.vn-scene-material .vn-text{
  min-height: 0 !important;
  font-size: 1.02rem !important;
  line-height: 1.55 !important;
}
#app .vn-material-inline-image,
.vn-material-inline-image{
  display: block;
  max-width: 100%;
  max-height: 42vh;
  margin: 0 auto 12px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.8);
}
#app .vn-stage.vn-scene-material .vn-next,
.vn-stage.vn-scene-material .vn-next{
  bottom: 4.5% !important;
}


/* ========================================
   NEXT BUTTON COMPACT PATCH 2026-06-01
   「次へ」が大きく表示される問題を修正
   ======================================== */
#app .vn-textbox{ padding-right: 96px !important; }
#app .vn-next,
.vn-next{
  right: 4.2% !important;
  bottom: 4.2% !important;
  width: 72px !important;
  height: 38px !important;
  min-width: 72px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: rgba(212,175,55,.92) !important;
  border: 2px solid rgba(255,255,255,.72) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.30) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
#app .vn-next::before,
.vn-next::before{
  content: '次へ' !important;
  color: #102b43 !important;
  font-size: .86rem !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  line-height: 1 !important;
}
#app .vn-next::after,
.vn-next::after{
  content: '▶' !important;
  color: #102b43 !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  margin-left: 4px !important;
  line-height: 1 !important;
}
#app .vn-next.vn-visible,
.vn-next.vn-visible{ animation: vnPulseBtnSmall 1.7s ease-in-out infinite !important; }
@keyframes vnPulseBtnSmall{0%,100%{transform:translateY(0);filter:brightness(1)}50%{transform:translateY(-1px);filter:brightness(1.05)}}
#app .vn-stage.vn-scene-material .vn-textbox,
.vn-stage.vn-scene-material .vn-textbox{ padding-right: 96px !important; }
#app .vn-stage.vn-scene-material .vn-next,
.vn-stage.vn-scene-material .vn-next{
  right: 4.6% !important;
  bottom: 4.0% !important;
}
@media (max-width:820px){
  #app .vn-textbox{ padding-right: 78px !important; }
  #app .vn-next,.vn-next{ width:62px !important;height:34px !important;min-width:62px !important;min-height:34px !important; }
  #app .vn-next::before,.vn-next::before{ font-size:.78rem !important; }
  #app .vn-next::after,.vn-next::after{ font-size:.70rem !important; margin-left:3px !important; }
}

/* 背景クリック表示トグル */
#app .vn-textbox-peek{ opacity: 0 !important; pointer-events: none !important; transition: opacity 0.2s !important; }
#app .vn-quiz-bg-hidden{ opacity: 0 !important; pointer-events: none !important; transition: opacity 0.2s !important; }

/* ========================================
   IMAGE CHOICE カルーセル
   ======================================== */
#app .vn-image-choice-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 20px !important;
}
#app .vn-image-choice-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
#app .vn-image-choice-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
#app .vn-image-choice-img {
  max-width: 100%;
  max-height: 55vh;
  border-radius: 8px;
  border: 2px solid rgba(212,175,55,.5);
  object-fit: contain;
}
#app .vn-image-choice-counter {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
}
#app .vn-image-nav {
  background: rgba(212,175,55,.85);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  color: #102b43;
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 800;
  transition: background .15s;
}
#app .vn-image-nav:hover { background: rgba(212,175,55,1); }
#app .vn-image-choice-submit {
  margin-top: 4px;
  padding: 10px 32px !important;
  font-size: 1rem !important;
}

/* ========================================
   画像付きクイズ選択肢レイアウト
   ======================================== */
#app .vn-quiz-image-choice-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 16px !important;
  max-height: 92vh;
  overflow-y: auto;
}
#app .vn-quiz-inline-image {
  width: 100%;
  max-height: 42vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid rgba(212,175,55,.4);
}
#app .vn-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
#app .vn-choice-btn-grid {
  padding: 12px 8px !important;
  font-size: .9rem !important;
  border-radius: 10px !important;
  min-height: 48px;
  text-align: center;
}

/* ========================================
   エンディング得点オーバーレイ
   ======================================== */
@keyframes vnFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== image_order ===== */
.vn-image-order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.vn-image-order-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 3px solid #c0cfe0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  overflow: hidden;
}
.vn-image-order-photo {
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: #eef3f8;
}
.vn-image-order-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.vn-image-order-text {
  font-size: 1rem;
  text-align: center;
  line-height: 1.35;
  color: #1e3a5f;
  font-weight: 700;
}
.vn-image-order-cell:hover {
  border-color: #d4af37;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.vn-image-order-cell.vn-image-order-selected {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px #d4af37, 0 4px 12px rgba(212,175,55,0.35);
}
.vn-image-order-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 30px;
  height: 30px;
  background: #d4af37;
  color: #1e3a5f;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.vn-image-order-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.97);
  padding: 10px 0 4px;
}

/* --- 米作りの盛んな地域 第１次 用の追加スタイル --- */
/* narration の payload.mission（ミッション文）表示 */
.vn-mission-line {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(212, 175, 55, 0.16);
  border: 2px dashed #d4af37;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #ffe9a8;
  line-height: 1.5;
}

/* reflection の payload.keywords（書く手がかり）表示 */
.vn-keyword-hints {
  margin-top: 10px;
}
.vn-keyword-hints-label {
  font-size: 0.85rem;
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 6px;
}
.vn-keyword-hints-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vn-keyword-chip {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #fff;
}
