/*
Theme-side Charioot overrides.
Loaded after the Charioot public stylesheet so the game UI can be tuned per site.
*/

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel {
  width: min(100%, 1240px) !important;
  margin-inline: auto !important;
  padding: 18px 20px 22px !important;
  border: 1px solid rgba(126, 219, 255, 0.28) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(8, 27, 68, 0.96), rgba(13, 9, 34, 0.98)) !important;
  box-shadow:
    0 18px 46px rgba(5, 12, 30, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-hint,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-title {
  display: none !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choices {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 14px 18px !important;
  width: 100% !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-multi-choice .charioot-scene-choices {
  counter-reset: jr-charioot-choice;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-multi-choice .charioot-scene-choice.is-nav,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-multi-choice .charioot-scene-nav-controls {
  display: none !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel:not(.is-multi-choice):has(.charioot-scene-choice.is-secondary.is-nav) {
  display: none !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-dock.has-cta .charioot-scene-cta-secondary {
  display: none !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-primary,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-nav,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-continue,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-quick-reply,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 13px 54px 13px 66px !important;
  overflow: hidden !important;
  color: #ffffff !important;
  border: 2px solid rgba(245, 203, 103, 0.9) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, #06143f 0%, #0a4b87 50%, #07122f 100%) !important;
  box-shadow:
    0 13px 28px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(56, 189, 248, 0.22) !important;
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 24px 100%, 0 50%) !important;
  transform: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice::before {
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  z-index: 1 !important;
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  transform: translateY(-50%) !important;
  color: #06143f !important;
  border: 1px solid rgba(255, 255, 255, 0.54) !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #fff7d6, #e8bb45) !important;
  box-shadow: 0 0 18px rgba(245, 203, 103, 0.34) !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-multi-choice .charioot-scene-choice:not(.is-nav)::before {
  counter-increment: jr-charioot-choice;
  content: counter(jr-charioot-choice, upper-alpha) !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice::after {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center !important;
  content: "›" !important;
  transform: translateY(-50%) !important;
  color: #ffe9a8 !important;
  border: 1px solid rgba(255, 233, 168, 0.38) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice span,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice em,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice small,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice .charioot-scene-choice-copy {
  position: relative !important;
  z-index: 1 !important;
  color: inherit !important;
  letter-spacing: 0 !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice span {
  display: block !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42) !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice small,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice em,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice-kicker,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice-arrow {
  display: none !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice:hover,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice:focus-visible {
  transform: translateY(-2px) scale(1.01) !important;
  border-color: #fff1b8 !important;
  filter: saturate(1.12) !important;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.36),
    0 0 0 4px rgba(56, 189, 248, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 30px rgba(126, 219, 255, 0.34) !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-primary {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #0b538d 0%, #168fcf 48%, #8d1f3a 100%) !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-continue-choice .charioot-scene-choices,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-single-choice .charioot-scene-choices {
  grid-template-columns: minmax(220px, 360px) !important;
  justify-content: center !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-continue-choice .charioot-scene-choice,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-single-choice .charioot-scene-choice {
  min-height: 62px !important;
  padding-inline: 64px 48px !important;
}

body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-continue-choice .charioot-scene-choice::before,
body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-single-choice .charioot-scene-choice::before {
  content: "GO" !important;
  width: 36px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
}

@media (max-width: 680px) {
  body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choices {
    grid-template-columns: 1fr !important;
  }

  body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice,
  body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-primary,
  body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-nav,
  body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-continue,
  body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-quick-reply,
  body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card {
    min-height: 54px !important;
    padding: 10px 42px 10px 56px !important;
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%) !important;
  }

  body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice::before {
    left: 17px !important;
    width: 28px !important;
    height: 28px !important;
  }

  body .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice span {
    font-size: 0.92rem !important;
  }
}
