/* ============================================================
   SPLIT STAGE & CHALLENGE CARD (2 COLUMNS)
   ============================================================ */
.game-split-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

/* ============================================================
   LEFT COLUMN: GAME STAGE (THREE.JS 2.5D RUNNER)
   ============================================================ */
.stage-column {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* HUD Overlay on top of canvas (hiển thị trên đỉnh khi đang chơi) */
.stage-hud {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.game:not(.running) .stage-hud {
  opacity: 0;
  pointer-events: none;
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-pill {
  pointer-events: auto;
  border-radius: 99px;
  padding: 6px 14px;
  font: 700 12px "Space Mono", monospace;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hud-score {
  background: rgba(19, 69, 45, 0.94);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.hud-score strong {
  color: #6ef0a4;
  font-size: 14px;
}

.hud-combo {
  background: var(--color-terracotta);
  color: #ffffff;
  animation: pulse-hud-combo 0.5s ease-in-out infinite alternate;
}

@keyframes pulse-hud-combo {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hud-speed {
  background: rgba(245, 176, 65, 0.95);
  color: #3b2a05;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hud-timer-pill {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-timer-pill .circular-timer-wrapper {
  width: 46px;
  height: 46px;
}

.hud-timer-pill .timer-num {
  font-size: 14px;
}

.hud-timer-pill .timer-unit {
  font-size: 7px;
  margin-top: 1px;
}

/* 3D/2D Scene Viewport */
.scene {
  height: 400px;
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
  flex: 1;
}

/* Overlay Bảng điểm + nút Bắt đầu chơi & Cách chơi nằm ngay giữa khung trò chơi */
.stage-action-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(15, 36, 25, 0.24);
  backdrop-filter: blur(2px);
  transition: opacity 0.2s ease;
  padding: 16px;
}

.stage-action-overlay.hidden {
  display: none !important;
}

.overlay-scoreboard {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(19, 69, 45, 0.96);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 12px 26px;
  box-shadow: 0 8px 24px rgba(15, 36, 25, 0.35);
}

.overlay-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.overlay-score-label {
  font: 700 10.5px "Space Mono", monospace;
  letter-spacing: 0.08em;
  color: #a8dfbc;
}

.overlay-score-value {
  font: 800 24px "Space Mono", monospace;
  color: #6ef0a4;
  line-height: 1.1;
}

.overlay-score-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
}

.overlay-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stage-start-btn {
  padding: 13px 28px;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(19, 69, 45, 0.38);
}

.stage-howto-btn {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-green-dark);
  border: 1.5px solid rgba(19, 69, 45, 0.22);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.stage-howto-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

/* Bottom Bar of Stage (Thay phần Tuyến Bạch Đằng - Chùa Cầu bằng Định nghĩa & Giải thích + Micro) */
.stage-footer-bar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-subtle);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: #4b6653;
  z-index: 5;
}

.footer-definition-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.footer-word-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-word-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-toggle-temp {
  border: 1px dashed #9cb3a3;
  background: #f2f7ef;
  color: #3b5946;
  border-radius: 99px;
  padding: 4px 12px;
  font: 700 11px "Space Mono", monospace;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-toggle-temp:hover {
  background: #e4efe0;
  border-color: var(--color-green-dark);
  color: var(--color-green-dark);
}

.dialect-word-inline {
  font-size: 21px;
  font-weight: 800;
  color: var(--color-green-dark);
  letter-spacing: -0.01em;
}

.voice-synonyms-inline {
  font: 700 12px "Space Mono", monospace;
  color: #cf6238;
}

.footer-hint-row {
  font-size: 13.5px;
  line-height: 1.45;
  color: #3d3931;
  background: #fffdf8;
  border: 1px solid #ebdccb;
  border-radius: 8px;
  padding: 7px 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-hint-row strong {
  color: #cf6238;
  margin-right: 4px;
}

.footer-voice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.footer-voice-box .voice-status-pill {
  margin-bottom: 0;
  width: auto;
  max-width: 310px;
}

.voice-mic-wrapper.compact-mic {
  width: 50px;
  height: 50px;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ============================================================
   RIGHT COLUMN: CHALLENGE CARD (VOICE & QUESTION)
   ============================================================ */
.challenge-column {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.below-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2eb;
}

.below-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.below-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: center;
}

.challenge-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.challenge-type-badge {
  background: #fdf2ec;
  border: 1px solid #f6d8ca;
  color: #cf6238;
  border-radius: 99px;
  padding: 4px 12px;
  font: 700 11px "Space Mono", monospace;
  letter-spacing: 0.05em;
  display: inline-block;
}

.challenge-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}

/* Circular Timer Widget */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.circular-timer-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
}

.circular-timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: #f1f3ee;
  stroke-width: 4;
}

.timer-progress {
  fill: none;
  stroke: var(--color-terracotta);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s linear, stroke 0.3s ease;
}

.timer-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.timer-num {
  font: 800 18px "Space Mono", monospace;
  color: var(--color-terracotta);
}

.timer-unit {
  font: 700 8.5px "Space Mono", monospace;
  color: #92a498;
  margin-top: 2px;
}

.timer-sub-tag {
  font: 700 9.5px "Space Mono", monospace;
  color: #7b9182;
  letter-spacing: 0.04em;
  margin-top: 4px;
  text-align: center;
}

/* Middle: Dialect Word Box */
.dialect-box {
  background: #f6f8f4;
  border: 1px solid #dce4d9;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0;
}

.dialect-region-label {
  font: 700 11px "Space Mono", monospace;
  letter-spacing: 0.08em;
  color: #637c6d;
  text-transform: uppercase;
}

.dialect-word {
  font-size: 25px;
  font-weight: 800;
  color: var(--color-green-dark);
  letter-spacing: -0.01em;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dialect-hint-box {
  background: #fffdf8;
  border: 1px solid #ebdccb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #4a453c;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dialect-hint-box strong {
  color: #cf6238;
}

/* Khối tạm: Chọn nhanh đặt bên dưới khối trò chơi */
.temp-choice-panel {
  background: #f7faf5;
  border: 1.5px dashed #bfd0b8;
  border-radius: var(--card-radius);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.temp-choice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.temp-choice-badge {
  font: 700 11px "Space Mono", monospace;
  letter-spacing: 0.05em;
  color: #5b7564;
  background: #e9f1e5;
  border: 1px solid #cfe0c8;
  border-radius: 99px;
  padding: 4px 12px;
}

.temp-speech-status {
  margin-bottom: 0;
}

/* Mode Switcher (Voice vs Quick Choice) */
.input-mode-switch {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  background: #f1f5ee;
  border: 1px solid #dce4d9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 0;
}

.mode-btn {
  border: none;
  background: transparent;
  color: #556f60;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: var(--color-green-dark);
}

.mode-btn.active {
  background: #ffffff;
  color: var(--color-green-dark);
  box-shadow: 0 2px 6px rgba(19, 69, 45, 0.1);
}

/* Bottom: Voice & Quick-Choice Interaction Zone */
.voice-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  text-align: center;
  width: 100%;
}

.voice-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

/* 4-Column Quick-Choice Grid in Temporary Panel */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 0;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbfcf9;
  border: 1.5px solid #d4ded3;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.choice-btn:hover:not(:disabled) {
  background: #eef6ec;
  border-color: var(--color-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(19, 69, 45, 0.1);
}

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

.choice-btn:disabled {
  cursor: default;
}

.choice-key {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e6efe3;
  color: var(--color-green-dark);
  font: 700 11.5px "Space Mono", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.choice-btn.correct {
  background: #13452d;
  border-color: #13452d;
  color: #ffffff;
}

.choice-btn.correct .choice-key {
  background: #276e4b;
  color: #ffffff;
}

.choice-btn.wrong {
  background: #fdf0ed;
  border-color: #d64531;
  color: #a82e1e;
  animation: choice-shake 0.32s ease;
}

@keyframes choice-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.voice-mic-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
}

.voice-mic-btn {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-terracotta);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(235, 133, 94, 0.4);
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

.voice-mic-btn:hover {
  background: var(--color-terracotta-dark);
  transform: scale(1.05);
}

.voice-mic-btn:active {
  transform: scale(0.96);
}

/* Pulsing Ripple Rings when Mic is listening */
.mic-ripple-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(235, 133, 94, 0.5);
  pointer-events: none;
  opacity: 0;
}

.voice-mic-wrapper.listening .mic-ripple-ring {
  animation: mic-ripple-anim 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes mic-ripple-anim {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.voice-status-pill {
  background: var(--color-green-dark);
  color: #ffffff;
  border-radius: 99px;
  padding: 7px 16px;
  font: 600 12.5px -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(19, 69, 45, 0.2);
  transition: background 0.3s ease;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.voice-status-pill.error {
  background: #c93b3b;
}

.voice-synonyms-note {
  font-size: 12px;
  color: #637c6d;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.synonyms-list {
  font-weight: 700;
  color: var(--color-green-dark);
}

/* ============================================================
   2D FALLBACK / OBSTACLE STYLES
   ============================================================ */
.dino {
  position: absolute;
  bottom: 37px;
  left: 14%;
  font-size: 65px;
  line-height: 1;
  z-index: 2;
}

.dino svg,
.obstacle svg {
  display: block;
  width: 100%;
  height: 100%;
}

.obstacle {
  position: absolute;
  bottom: 34px;
  right: 18%;
  font-size: 53px;
  z-index: 2;
}

.obstacle small {
  display: block;
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font: 700 12px "Space Mono", monospace;
  color: #3b5946;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.obstacle small:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 45%;
  border: 6px solid transparent;
  border-top-color: white;
  border-bottom: 0;
  transition: border-top-color 0.18s ease;
}

.obstacle small.correct {
  background: #1ea858;
  color: #ffffff;
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 5px 16px rgba(30, 168, 88, 0.45);
}

.obstacle small.correct:after {
  border-top-color: #1ea858;
}

/* 2D Keyframe Animations & 3D Position Drivers */
.game.running .dino {
  animation: run 0.18s ease-in-out infinite alternate;
}

.game.running .dino.jump {
  animation: jump 0.8s ease;
}

.game.running .obstacle {
  animation: approach 8s linear forwards;
}

.game.running .cloud {
  animation: cloudmove 12s linear infinite;
}

.game.running .hill {
  animation: hillsmove 4s ease-in-out infinite alternate;
}

.game.running .ground {
  background: repeating-linear-gradient(
    90deg,
    transparent 0 48px,
    #93ac92 49px 62px,
    transparent 63px 100px
  );
  height: 4px;
  animation: groundmove 0.6s linear infinite;
}

@keyframes cloudmove {
  from {
    left: 100%;
  }
  to {
    left: -15%;
  }
}

@keyframes hillsmove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-6%);
  }
}

@keyframes groundmove {
  to {
    background-position: -100px 0;
  }
}

@keyframes run {
  from {
    transform: translateY(0) rotate(-3deg);
  }
  to {
    transform: translateY(-6px) rotate(3deg);
  }
}

@keyframes approach {
  from {
    right: -10%;
  }
  to {
    right: 82%;
  }
}

@keyframes jump {
  50% {
    transform: translateY(-90px);
  }
}

/* ============================================================
   RESPONSIVE LAYOUT (TABLET & MOBILE OPTIMIZATION)
   ============================================================ */
@media (max-width: 960px) {
  .game-split-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stage-footer-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
  }
  .footer-voice-box {
    justify-content: space-between;
  }
  .footer-voice-box .voice-status-pill {
    max-width: 100%;
    flex: 1;
  }
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .scene {
    height: 300px;
  }
}

@media (max-width: 650px) {
  .stage-hud {
    top: 8px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }
  .hud-left,
  .hud-right {
    gap: 5px;
  }
  .hud-pill {
    padding: 4px 10px;
    font-size: 10.5px;
  }
  .hud-score strong {
    font-size: 12px;
  }
  .hud-timer-pill .circular-timer-wrapper {
    width: 38px;
    height: 38px;
  }
  .hud-timer-pill .timer-num {
    font-size: 12px;
  }
  .hud-timer-pill .timer-unit {
    font-size: 6px;
  }
  .scene {
    height: 235px;
  }
  .stage-action-overlay {
    padding: 12px;
    gap: 10px;
  }
  .overlay-scoreboard {
    padding: 8px 18px;
    gap: 14px;
    border-radius: 12px;
  }
  .overlay-score-label {
    font-size: 9.5px;
  }
  .overlay-score-value {
    font-size: 19px;
  }
  .overlay-score-divider {
    height: 24px;
  }
  .overlay-buttons-row {
    gap: 8px;
  }
  .stage-start-btn {
    padding: 10px 20px;
    font-size: 13.5px;
  }
  .stage-howto-btn {
    padding: 9px 16px;
    font-size: 12.5px;
  }
  .stage-footer-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .dialect-region-label {
    font-size: 10px;
  }
  .dialect-word-inline {
    font-size: 18px;
  }
  .footer-hint-row {
    font-size: 12.5px;
    padding: 6px 10px;
  }
  .temp-choice-panel {
    padding: 10px 12px;
    gap: 8px;
  }
  .temp-choice-header {
    gap: 8px;
  }
  .temp-choice-badge {
    font-size: 10px;
    padding: 3px 9px;
  }
  .mode-btn {
    font-size: 11.5px;
    padding: 6px 8px;
  }
  .choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .choice-btn {
    padding: 9px 10px;
    font-size: 12.5px;
    gap: 7px;
    touch-action: manipulation;
  }
  .choice-key {
    width: 20px;
    height: 20px;
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .hud-speed {
    display: none;
  }
}

/* GÔM brand palette and accessible play controls. */
:root{--bg-primary:#f4ead6;--bg-dots:#ead8bb;--color-ink:#40241e;--color-muted:#715449;--color-terracotta:#851923;--color-terracotta-dark:#68121a;--color-green-dark:#68121a;--color-green-light:#f1e1c4;--color-gold:#d4b273;--border-subtle:#d3b995;--card-bg:#f4ead6}
body{background:#f4ead6;background-image:none;font-family:Arial,sans-serif;color:var(--color-ink)}
main{padding:12px;max-width:1220px}.stage-column,.temp-choice-panel{background:#f4ead6;border-color:#d4b273;border-radius:14px}
.overlay-scoreboard,.hud-score{background:rgba(104,18,26,.94)}.overlay-score-label,.overlay-score-value,.hud-score strong{color:#f4ead6}.stage-action-overlay{background:rgba(68,15,24,.28)}
.btn-primary-action,.mode-btn.active,.choice-btn.correct{background:#851923;color:#fff;border-color:#851923}.btn-primary-action:hover{background:#68121a}.btn-pill,.mode-btn,.choice-btn{font-family:Arial,sans-serif}.choice-btn{color:#68121a}.footer-definition-box{color:#40241e}.dialect-word-inline{color:#851923}
.temp-choice-panel{margin-top:0}.temp-choice-badge{color:#68121a}.choice-grid{display:none}.game-active.choice-mode .choice-grid{display:grid}.voice-status-pill{white-space:normal;overflow:visible;text-overflow:clip;height:auto;min-height:42px;color:#40241e}
.game-stop{min-height:44px;margin-top:12px;padding:10px 18px;border:1px solid #851923;background:transparent;color:#851923;border-radius:40px;font-weight:700;cursor:pointer}.game-stop:hover{background:#851923;color:#fff}
button:focus-visible{outline:3px solid #c98927;outline-offset:3px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.temp-speech-status{background:#f4ead6!important;color:#40241e!important;border:1px solid #c8a982!important;box-shadow:none!important}
.voice-error-modal{background:rgba(49,13,19,.72)}
.voice-error-modal .modal-card{background:#f4ead6;border-color:#d4b273;max-width:540px}
.voice-error-modal .modal-header h3{color:#851923}
.voice-error-modal .modal-body{color:#40241e;line-height:1.55}
.voice-error-modal .modal-body p{margin:0 0 10px}
.voice-error-modal .modal-body p:last-child{margin-bottom:0}
.voice-error-modal .modal-footer{gap:10px;flex-wrap:wrap}
.voice-error-modal .modal-footer button{min-height:44px}
@media(max-width:520px){.voice-error-modal .modal-footer{flex-direction:column}.voice-error-modal .modal-footer button{width:100%}}

/* The scene, definition and controls form one continuous game surface. */
.stage-column{gap:0}.stage-column .temp-choice-panel{border:0;border-top:1px solid #ddc8aa;border-radius:0;background:#f4ead6;padding:14px 18px 18px;gap:10px;box-shadow:none}
.stage-action-overlay .temp-choice-header{display:flex;flex-direction:column;gap:8px;justify-content:center;width:100%}
.stage-action-overlay .temp-choice-badge{background:transparent;border:0;color:#fff;padding:0;text-shadow:0 1px 6px #250a0a}
.stage-action-overlay .input-mode-switch{background:rgba(244,234,214,.95);border-color:#d4b273;max-width:100%}
.stage-action-overlay .mode-btn{min-height:40px;color:#68121a}
.stage-action-overlay .mode-btn.active{background:#851923;color:#fff}
.stage-column .temp-speech-status{margin:0}
.stage-column .game-stop{align-self:flex-start;margin-top:0}
@media(max-width:760px){.stage-column .temp-choice-panel{padding:12px}.stage-action-overlay{gap:10px}.stage-action-overlay .temp-choice-header{gap:5px}.stage-action-overlay .mode-btn{font-size:12px;padding:7px 8px}}
