html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #031F47;
  font-family: Helvetica, Arial, sans-serif;
  overflow: hidden;
}

#oceanCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#app {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  padding: 40px 20px;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.hidden { display: none !important; }

.msg {
  color: #fff;
  font-size: 20px;
}

.warnTitle {
  color: #FFD60A;
  font-size: 44px;
  margin: 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.topRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  width: 100%;
}

.questionCounter {
  color: rgba(255,255,255,0.85);
  font-weight: bold;
  font-size: 20px;
  margin: 0;
}

.timerBadge {
  position: absolute;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  border: 3px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  transition: color 0.2s, border-color 0.2s;
}
.timerBadge.low {
  color: #FF3B30;
  border-color: #FF3B30;
}

.categoryBadge {
  color: #5AC8FA;
  background: rgba(0,0,0,0.35);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: bold;
  font-size: clamp(16px, 2.4vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.questionText {
  color: #FFD60A;
  font-weight: bold;
  font-size: clamp(26px, 6vw, 60px);
  line-height: 1.15;
  text-shadow: 0 4px 6px rgba(0,0,0,0.6);
  margin: 0;
  padding: 0 10px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 900px;
}

.choiceBtn {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 2.8vw, 24px);
  color: #fff;
  background: rgba(0,0,0,0.35);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.choiceBtn:hover { background: rgba(0,0,0,0.55); }
.choiceBtn:active { background: rgba(0,0,0,0.7); }


.primaryBtn {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: bold;
  padding: 12px 26px;
  border-radius: 10px;
  border: none;
  background: #0A84FF;
  color: #fff;
  cursor: pointer;
}
.primaryBtn:disabled { opacity: 0.4; cursor: default; }
.primaryBtn:not(:disabled):hover { background: #2b95ff; }

.secondaryBtn {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.55);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.secondaryBtn:disabled { opacity: 0.35; cursor: default; }
.secondaryBtn:not(:disabled):hover { background: rgba(255,255,255,0.12); }

.feedbackDetail { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.label {
  color: rgba(255,255,255,0.8);
  font-weight: bold;
  font-size: 22px;
  margin: 8px 0 0;
}

.bigRed {
  color: #FF3B30;
  font-size: clamp(26px, 6vw, 60px);
  font-weight: bold;
  margin: 0;
}
.bigWhite {
  color: #fff;
  font-size: clamp(26px, 6vw, 60px);
  margin: 0;
}

.gameOverTitle {
  color: #FFD60A;
  font-size: 48px;
  text-shadow: 0 4px 6px rgba(0,0,0,0.6);
  margin: 0;
}

.scoreRow { display: flex; gap: 50px; }
.scoreRow > div { display: flex; flex-direction: column; align-items: center; }
.scoreRow p { color: #fff; margin: 2px 0 0; font-size: 18px; }
.bigGreen { color: #34C759; font-size: 56px; font-weight: bold; }
.bigRedStat { color: #FF3B30; font-size: 56px; font-weight: bold; }

.resultsList {
  background: rgba(0,0,0,0.3);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  max-height: 280px;
  overflow-y: auto;
}
.resultRow { display: flex; gap: 12px; margin-bottom: 10px; align-items: flex-start; }
.resultRow .q { color: #fff; font-weight: bold; font-size: 14px; margin: 0; }
.resultRow .a { color: rgba(255,255,255,0.75); font-size: 12.5px; margin: 2px 0 0; }

.buttonsRow { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.copyConfirm { color: rgba(255,255,255,0.8); font-size: 13px; margin: 0; }

@media (max-width: 600px) {
  #app { padding: 20px 12px; }
  .panel { gap: 12px; }
}
