.decision-game {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #080d16;
  color: #f4f6f8;
  font-family: "SuisseIntl-Regular", sans-serif;
}

#decision-run-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#decision-run-scene canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.game-brand {
  font-family: "GT America LCG Ext Rg", "SuisseIntl-Regular", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
}

.game-score {
  font-family: "SuisseIntl-Regular", sans-serif;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-score strong {
  font-family: "GT America LCG Ext Rg", "SuisseIntl-Regular", sans-serif;
  color: #ffffff;
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-left: 4px;
}

.game-score small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.divider {
  color: rgba(255, 255, 255, 0.15);
}

.game-intro {
  position: absolute;
  top: 105px;
  left: 5%;
  width: min(510px, 43%);
}

.game-intro h1 {
  font-family: "GT America LCG Ext Rg", "SuisseIntl-Regular", sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
}

.question-panel {
  padding: 24px;
  background: rgba(16, 26, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.question-panel > span {
  font-family: "SuisseIntl-Regular", sans-serif;
  color: #d7ff68;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.question-panel h2 {
  font-family: "SuisseIntl-Regular", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.game-play-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.answer-panel {
  position: absolute;
  top: 270px;
  right: 5%;
  width: min(330px, 30%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-heading {
  font-family: "SuisseIntl-Regular", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(11, 20, 33, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-family: "SuisseIntl-Regular", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.answer-option:hover {
  border-color: rgba(215, 255, 104, 0.4);
  background: rgba(11, 20, 33, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.answer-option.selected {
  border-color: #d7ff68;
  background: rgba(215, 255, 104, 0.12);
  box-shadow: 0 0 0 1px rgba(215, 255, 104, 0.3), 0 8px 24px rgba(215, 255, 104, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.answer-option b {
  font-family: "GT America LCG Ext Rg", "SuisseIntl-Regular", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.answer-colour {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 0 8px currentColor;
}

.red { background: #ff6577; }
.lime { background: #d7ff68; }
.cyan { background: #63d9ed; }

.primary-button {
  font-family: "GT America LCG Ext Rg", "SuisseIntl-Regular", sans-serif;
  padding: 16px 32px;
  background: #d7ff68;
  color: #080d16;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 16px rgba(215, 255, 104, 0.3);
}

.primary-button:hover {
  background: #e6ff7a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(215, 255, 104, 0.4);
}

.toast {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(214, 255, 99, 0.08);
  border: 1px solid rgba(215, 255, 104, 0.4);
  padding: 20px 40px;
  font-family: "SuisseIntl-Regular", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #d7ff68;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(215, 255, 104, 0.2);
  animation: toastFade 2s ease forwards;
}

.result-screen {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 17, 0.95) 0%, rgba(7, 10, 17, 0.78) 43%, rgba(7, 10, 17, 0.08) 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.result-screen h1 {
  font-family: "GT America LCG Ext Rg", "SuisseIntl-Regular", sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0 0 24px;
  color: #ffffff;
}

.result-screen p {
  font-family: "SuisseIntl-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin: 0 auto 32px;
  letter-spacing: 0.01em;
}

.result-score {
  margin: 30px 0;
}

.result-score span {
  font-family: "SuisseIntl-Regular", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 12px;
}

.result-score strong {
  font-family: "GT America LCG Ext Rg", "SuisseIntl-Regular", sans-serif;
  font-size: 56px;
  color: #d7ff68;
  display: block;
  letter-spacing: -0.03em;
  line-height: 1;
}

.result-breakdown {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 32px 0;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.result-breakdown div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-breakdown span {
  font-family: "SuisseIntl-Regular", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.result-breakdown b {
  font-family: "GT America LCG Ext Rg", "SuisseIntl-Regular", sans-serif;
  font-size: 24px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.countdown {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "GT America LCG Ext Rg", "SuisseIntl-Regular", sans-serif;
  font-size: 140px;
  color: #d7ff68;
  letter-spacing: -0.05em;
  animation: countdownPulse 1s ease forwards;
  text-shadow: 0 0 40px rgba(215, 255, 104, 0.4);
}

.hidden {
  display: none !important;
}

.hearts {
  font-size: 14px;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

@keyframes countdownPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 760px) {
  .decision-game {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .game-header {
    padding: 0 20px;
    height: 60px;
  }

  .game-brand {
    font-size: 10px;
  }

  .game-score {
    font-size: 8px;
    gap: 12px;
  }

  .game-score strong {
    font-size: 13px;
  }

  .game-intro {
    top: 80px;
    left: 20px;
    right: 20px;
    width: auto;
  }

  .game-intro h1 {
    font-size: 24px;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
  }

  .question-panel {
    padding: 16px;
  }

  .question-panel h2 {
    font-size: 13px;
    line-height: 1.5;
  }

  .answer-panel {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    gap: 6px;
  }

  .answer-heading {
    font-size: 8px;
    margin-bottom: 4px;
  }

  .answer-option {
    min-height: 48px;
    padding: 12px;
    font-size: 11px;
    gap: 10px;
  }

  .answer-option b {
    font-size: 10px;
  }

  .answer-colour {
    width: 9px;
    height: 9px;
  }

  .result-screen h1 {
    font-size: 32px;
    letter-spacing: -0.04em;
  }

  .result-screen p {
    font-size: 14px;
  }

  .result-score strong {
    font-size: 38px;
  }

  .result-breakdown {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .result-breakdown b {
    font-size: 18px;
  }

  .result-actions {
    flex-direction: column;
    gap: 10px;
  }

  .primary-button {
    width: 100%;
    padding: 12px 20px;
  }

  .countdown {
    font-size: 90px;
  }
}

/* UI Layering Fix */
#decision-run-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.game-header,
.game-intro,
#game-play-ui {
  z-index: 5;
}

.result-screen {
  z-index: 15;
}

.countdown {
  z-index: 20;
}

.toast {
  z-index: 25;
}
