.charioot-scene-runtime {
  --charioot-accent-start: #0e3a5f;
  --charioot-accent-end: #1c7c7d;
  --charioot-surface-top: #fbfcfe;
  --charioot-surface-bottom: #f3f6fa;
  --charioot-text: #152033;
  position: relative;
  max-width: 430px;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--charioot-text);
  isolation: isolate;
}

.charioot-scene-runtime-floating {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.charioot-scene-runtime-inline {
  width: min(100%, 430px);
}

.charioot-scene-floating-launcher,
.charioot-scene-floating-drawer {
  --charioot-accent-start: #0e3a5f;
  --charioot-accent-end: #1c7c7d;
  --charioot-surface-top: #fbfcfe;
  --charioot-surface-bottom: #f3f6fa;
  --charioot-text: #152033;
  position: fixed;
  z-index: 99999;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--charioot-text);
  isolation: isolate;
}

.charioot-scene-runtime :where(*, *::before, *::after),
.charioot-scene-floating-launcher :where(*, *::before, *::after),
.charioot-scene-floating-drawer :where(*, *::before, *::after) {
  box-sizing: border-box;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.charioot-scene-runtime :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dd, figure, blockquote),
.charioot-scene-floating-launcher :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dd, figure, blockquote),
.charioot-scene-floating-drawer :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dd, figure, blockquote) {
  margin: 0;
  padding: 0;
}

.charioot-scene-runtime :where(ul, ol),
.charioot-scene-floating-launcher :where(ul, ol),
.charioot-scene-floating-drawer :where(ul, ol) {
  list-style: none;
}

.charioot-scene-runtime :where(a),
.charioot-scene-floating-launcher :where(a),
.charioot-scene-floating-drawer :where(a) {
  color: inherit;
  text-decoration: none;
}

.charioot-scene-runtime :where(button, input, textarea, select),
.charioot-scene-floating-launcher :where(button, input, textarea, select),
.charioot-scene-floating-drawer :where(button, input, textarea, select) {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
}

.charioot-scene-runtime :where(img, svg, canvas, video),
.charioot-scene-floating-launcher :where(img, svg, canvas, video),
.charioot-scene-floating-drawer :where(img, svg, canvas, video) {
  display: block;
  max-width: none;
  border: 0;
}

.charioot-scene-runtime [hidden],
.charioot-scene-floating-launcher [hidden],
.charioot-scene-floating-drawer [hidden],
.charioot-scene-floating-backdrop [hidden],
#charioot-scene-modal-layer [hidden] {
  display: none !important;
}

#charioot-scene-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  pointer-events: none;
}

.charioot-scene-floating-launcher {
  bottom: 24px;
  pointer-events: none;
}

.charioot-scene-floating-launcher .charioot-scene-launch {
  pointer-events: auto;
}

.charioot-scene-floating-drawer {
  bottom: 96px;
  width: min(430px, calc(100vw - 32px));
  pointer-events: none;
}

.charioot-scene-floating-drawer .charioot-scene-panel {
  margin-top: 0;
  max-height: min(78vh, 760px);
  pointer-events: auto;
  overflow: hidden;
}

.charioot-scene-position-right {
  right: 24px !important;
  left: auto !important;
}

.charioot-scene-position-left {
  left: 24px !important;
  right: auto !important;
}

.charioot-scene-inline-left {
  margin-right: auto;
}

.charioot-scene-inline-right {
  margin-left: auto;
}

.charioot-scene-launch,
.charioot-scene-choice,
.charioot-scene-cta-link,
.charioot-scene-voice-toggle,
.charioot-scene-close,
.charioot-scene-input-send,
.charioot-scene-game-log-toggle,
.charioot-scene-game-assist-toggle,
.charioot-scene-game-log-close,
.charioot-scene-game-assist-close,
.charioot-scene-close-confirm-cancel,
.charioot-scene-close-confirm-submit {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  min-width: 0;
  min-height: 0;
  font: inherit !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: normal;
  vertical-align: middle;
  cursor: pointer;
  background-clip: padding-box;
}

.charioot-scene-launch::-moz-focus-inner,
.charioot-scene-choice::-moz-focus-inner,
.charioot-scene-voice-toggle::-moz-focus-inner,
.charioot-scene-close::-moz-focus-inner,
.charioot-scene-input-send::-moz-focus-inner,
.charioot-scene-game-log-toggle::-moz-focus-inner,
.charioot-scene-game-assist-toggle::-moz-focus-inner,
.charioot-scene-game-log-close::-moz-focus-inner,
.charioot-scene-game-assist-close::-moz-focus-inner,
.charioot-scene-close-confirm-cancel::-moz-focus-inner,
.charioot-scene-close-confirm-submit::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.charioot-scene-launch {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(135deg, var(--charioot-accent-start) 0%, var(--charioot-accent-end) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 18px 40px rgba(11, 34, 56, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  overflow: visible;
}

.charioot-scene-style-icon-only .charioot-scene-launch {
  width: 64px;
  height: 64px;
  padding: 0;
  min-width: 64px;
  border-radius: 50%;
}

.charioot-scene-style-icon-only .charioot-scene-launch::after {
  display: none;
}

.charioot-scene-style-icon-only .charioot-scene-launch-copy {
  display: none;
}

.charioot-scene-style-icon-only .charioot-scene-launch-copy small {
  display: none;
}

.charioot-scene-style-compact-pill .charioot-scene-launch-copy small {
  display: none;
}

.charioot-scene-style-full-pill .charioot-scene-launch-copy small {
  display: inline-block;
}

.charioot-scene-size-small .charioot-scene-launch {
  padding: 10px 14px;
}

.charioot-scene-size-small .charioot-scene-launch-avatar {
  width: 42px;
  height: 42px;
}

.charioot-scene-size-small .charioot-scene-launch-copy strong {
  font-size: 14px;
}

.charioot-scene-size-large .charioot-scene-launch {
  padding: 14px 20px;
}

.charioot-scene-size-large .charioot-scene-launch-avatar {
  width: 54px;
  height: 54px;
}

.charioot-scene-size-large .charioot-scene-launch-copy strong {
  font-size: 16px;
}

.charioot-scene-launch::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 68%);
  opacity: 0.65;
  animation: charioot-scene-launch-pulse 2.6s ease-in-out infinite;
}

.charioot-scene-launch::after {
  content: "Chat";
  position: absolute;
  top: -10px;
  right: 14px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--charioot-accent-start);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.charioot-scene-launch:hover,
.charioot-scene-choice:hover,
.charioot-scene-voice-toggle:hover,
.charioot-scene-cta-link:hover {
  transform: translateY(-1px);
}

.is-character-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 92px;
  height: 92px;
  min-width: 92px;
  padding: 0;
  border-radius: 50%;
}

.is-character-launch .charioot-scene-launch-copy {
  display: none;
}

.is-character-launch .charioot-scene-launch-avatar {
  width: 58px;
  height: 58px;
}

.is-character-launch::after {
  top: -10px;
  right: -2px;
}

.charioot-scene-launch-avatar {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--charioot-accent-end) 0%, var(--charioot-accent-start) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.charioot-scene-launch-copy {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.15;
  gap: 4px;
}

.charioot-scene-launch-copy strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.charioot-scene-launch-copy small {
  opacity: 0.86;
  font-size: 12px;
}

.charioot-scene-runtime[data-scene-open="1"] .charioot-scene-launch {
  opacity: 0.96;
  box-shadow: 0 20px 46px rgba(11, 34, 56, 0.32);
}

.charioot-scene-floating-launcher[data-scene-open="1"] .charioot-scene-launch {
  opacity: 0.96;
  box-shadow: 0 20px 46px rgba(11, 34, 56, 0.32);
}

.charioot-scene-panel {
  margin-top: 12px;
  border-radius: 28px;
  border: 1px solid rgba(209, 214, 226, 0.92);
  background:
    radial-gradient(circle at top right, rgba(72, 184, 165, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 24%),
    linear-gradient(180deg, #fdfefe 0%, #f2f6fb 100%);
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: hidden;
  animation-duration: 260ms;
  animation-fill-mode: both;
  backdrop-filter: blur(14px);
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
}

.charioot-scene-panel-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(52, 211, 153, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 30%);
}

.charioot-scene-close-confirm {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 12, 24, 0.54);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.charioot-scene-close-confirm-dialog {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.96) 0%, rgba(8, 13, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f7fbff;
  position: relative;
  pointer-events: auto;
}

.charioot-scene-close-confirm-dialog strong {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.charioot-scene-close-confirm-dialog p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(242, 247, 255, 0.82);
}

.charioot-scene-close-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.charioot-scene-close-confirm-cancel,
.charioot-scene-close-confirm-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  user-select: none;
}

.charioot-scene-close-confirm-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.charioot-scene-close-confirm-submit {
  background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

.charioot-scene-close-confirm-cancel:hover,
.charioot-scene-close-confirm-cancel:focus,
.charioot-scene-close-confirm-cancel:focus-visible,
.charioot-scene-close-confirm-submit:hover,
.charioot-scene-close-confirm-submit:focus,
.charioot-scene-close-confirm-submit:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.charioot-scene-close-confirm-cancel:hover,
.charioot-scene-close-confirm-cancel:focus,
.charioot-scene-close-confirm-cancel:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.charioot-scene-close-confirm-submit:hover,
.charioot-scene-close-confirm-submit:focus,
.charioot-scene-close-confirm-submit:focus-visible {
  background: linear-gradient(135deg, #ff5875 0%, #fb7185 100%);
  box-shadow:
    0 18px 34px rgba(244, 63, 94, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.charioot-scene-close-confirm-cancel:active,
.charioot-scene-close-confirm-submit:active {
  transform: translateY(0);
}

@media (max-width: 782px) {
  .charioot-scene-close-confirm {
    padding: 18px;
  }

  .charioot-scene-close-confirm-dialog {
    width: min(100%, 360px);
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
  }

  .charioot-scene-close-confirm-actions {
    flex-direction: column;
  }

  .charioot-scene-close-confirm-cancel,
  .charioot-scene-close-confirm-submit {
    width: 100%;
  }
}

.charioot-scene-panel[data-entry-effect="fade"] {
  animation-name: charioot-scene-fade-in;
}

.charioot-scene-panel[data-entry-effect="slide-up"] {
  animation-name: charioot-scene-slide-up;
}

.charioot-scene-panel[data-entry-effect="pulse"] {
  animation-name: charioot-scene-pulse-in;
}

.charioot-scene-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(216, 221, 231, 0.84);
}

.charioot-scene-heading {
  display: grid;
  gap: 8px;
}

.charioot-scene-title {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.charioot-scene-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf0f7;
  color: #45627d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.charioot-scene-status[data-tone="live"] {
  background: #dff8ef;
  color: #127151;
}

.charioot-scene-status[data-tone="busy"] {
  background: #fff0cf;
  color: #8b5e00;
}

.charioot-scene-status[data-tone="done"] {
  background: #dbeafe;
  color: #245cb6;
}

.charioot-scene-status[data-tone="danger"] {
  background: #fde4e1;
  color: #af2d2d;
}

.charioot-scene-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.charioot-scene-voice-toggle {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--charioot-text);
  font-size: 12px;
  font-weight: 700;
}

.charioot-scene-voice-toggle[aria-pressed="false"] {
  background: #eceef2;
  color: #6a7280;
}

.charioot-scene-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  color: var(--charioot-text);
  border: 0;
  cursor: pointer;
}

.charioot-scene-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.charioot-scene-stage {
  display: grid;
  gap: 12px;
  flex: 0 0 auto;
}

.charioot-scene-stage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 224, 234, 0.95);
  color: var(--charioot-text);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.charioot-scene-stage-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.charioot-scene-stage-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--charioot-accent-end) 0%, var(--charioot-accent-start) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.15),
    0 12px 24px rgba(14, 58, 95, 0.18);
  flex: 0 0 auto;
}

.charioot-scene-stage-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.charioot-scene-stage-copy strong {
  font-size: 18px;
  line-height: 1.15;
}

.charioot-scene-stage-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.8;
}

.charioot-scene-stage-badges {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.charioot-scene-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 58, 95, 0.08);
  color: var(--charioot-accent-start);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.charioot-scene-turn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--charioot-accent-start) 0%, var(--charioot-accent-end) 100%);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.charioot-scene-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(214, 224, 236, 0.86);
  overflow: hidden;
}

.charioot-scene-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.charioot-scene-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 224, 234, 0.96);
  color: #41566f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.charioot-scene-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.charioot-scene-progress-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--charioot-accent-start);
  text-transform: uppercase;
}

.charioot-scene-progress-note {
  font-size: 12px;
  color: #66758a;
}

.charioot-scene-progress-bar {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--charioot-accent-end) 0%, var(--charioot-accent-start) 100%);
  transition: width 220ms ease;
}

.charioot-scene-speaker {
  color: var(--charioot-text);
}

.charioot-scene-log-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.charioot-scene-speaker-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 224, 234, 0.92);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.charioot-scene-speaker-avatar,
.charioot-scene-bubble-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--charioot-accent-end) 0%, var(--charioot-accent-start) 100%);
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex: 0 0 auto;
}

.charioot-scene-speaker-meta,
.charioot-scene-bubble-meta {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.charioot-scene-speaker-meta strong,
.charioot-scene-bubble-meta strong {
  font-size: 13px;
  line-height: 1.2;
}

.charioot-scene-speaker-meta small,
.charioot-scene-bubble-meta small {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}

.charioot-scene-transcript {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 6px;
  overscroll-behavior: contain;
}

.charioot-scene-transcript::-webkit-scrollbar {
  width: 8px;
}

.charioot-scene-transcript::-webkit-scrollbar-thumb {
  background: rgba(146, 163, 184, 0.56);
  border-radius: 999px;
}

.charioot-scene-empty {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgba(146, 163, 184, 0.42);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--charioot-text);
}

.charioot-scene-empty strong {
  font-size: 14px;
}

.charioot-scene-empty p,
.charioot-scene-empty small {
  margin: 0;
  line-height: 1.6;
}

.charioot-scene-bubble {
  max-width: 92%;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.charioot-scene-bubble.is-scene {
  justify-self: start;
  background: #fff;
  border-top-left-radius: 12px;
  border: 1px solid rgba(221, 229, 238, 0.95);
}

.charioot-scene-bubble.is-user {
  justify-self: end;
  background: linear-gradient(135deg, var(--charioot-accent-start) 0%, var(--charioot-accent-end) 100%);
  color: #fff;
  border-top-right-radius: 12px;
}

.charioot-scene-bubble.is-system {
  justify-self: center;
  background: #fce8e6;
  color: #9b2c2c;
  text-align: center;
}

.charioot-scene-bubble-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.charioot-scene-bubble-chip,
.charioot-scene-bubble-caption {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}

.charioot-scene-bubble-body {
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
}

.charioot-scene-bubble.is-user .charioot-scene-bubble-chip,
.charioot-scene-bubble.is-user .charioot-scene-bubble-caption {
  opacity: 0.8;
}

.charioot-scene-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.charioot-scene-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--charioot-accent-end);
  animation: charioot-scene-typing 900ms infinite ease-in-out;
}

.charioot-scene-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.charioot-scene-typing span:nth-child(3) {
  animation-delay: 240ms;
}

.charioot-scene-footer,
.charioot-scene-choices,
.charioot-scene-cta {
  display: grid;
  gap: 10px;
}

.charioot-scene-footer {
  flex: 0 0 auto;
}

.charioot-scene-footer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
}

.charioot-scene-footer-head strong {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charioot-accent-start);
}

.charioot-scene-footer-head span {
  font-size: 12px;
  color: #617289;
}

.charioot-scene-choice {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 224, 234, 0.96);
  color: var(--charioot-text);
  text-align: left;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.charioot-scene-choice span {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
}

.charioot-scene-choice small {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.68;
  justify-self: end;
}

.charioot-scene-choice:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 14px 28px rgba(30, 55, 84, 0.12);
}

.charioot-scene-choice.is-primary {
  background: linear-gradient(135deg, var(--charioot-accent-start) 0%, var(--charioot-accent-end) 100%);
  color: #fff;
  border-color: transparent;
}

.charioot-scene-choice.is-primary small {
  opacity: 0.74;
}

.charioot-scene-cta-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.68) 100%);
  border: 1px solid rgba(209, 214, 226, 0.9);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.charioot-scene-inputbar {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.charioot-scene-input-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 224, 234, 0.96);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.charioot-scene-input-field {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  color: var(--charioot-text);
  font-size: 14px;
  outline: none;
}

.charioot-scene-input-field::placeholder {
  color: #7b8a9b;
}

.charioot-scene-input-send {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  min-height: 46px;
  background: linear-gradient(135deg, var(--charioot-accent-start) 0%, var(--charioot-accent-end) 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(14, 58, 95, 0.18);
}

.charioot-scene-input-send[disabled] {
  opacity: 0.6;
  cursor: default;
}

.charioot-scene-input-hint {
  padding: 0 2px;
  color: #66758a;
  line-height: 1.5;
}

.charioot-scene-cta-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charioot-accent-start);
  font-weight: 700;
}

.charioot-scene-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--charioot-accent-start) 0%, var(--charioot-accent-end) 100%);
  color: #fff;
  padding: 12px 16px;
  box-sizing: border-box;
}

.charioot-scene-cta-link::after {
  content: ">";
  font-size: 16px;
}

@media (max-width: 640px) {
  .charioot-scene-runtime {
    max-width: 100%;
  }

  .charioot-scene-floating-launcher,
  .charioot-scene-floating-drawer {
    left: 12px !important;
    right: 12px !important;
  }

  .charioot-scene-floating-launcher {
    bottom: 12px !important;
  }

  .charioot-scene-floating-drawer {
    bottom: 12px !important;
    width: auto;
  }

  .charioot-scene-runtime-inline {
    width: 100%;
  }

  .charioot-scene-panel {
    border-radius: 28px;
  }

  .charioot-scene-floating-drawer .charioot-scene-panel {
    height: min(calc(100vh - 24px), 760px);
    max-height: min(calc(100vh - 24px), 760px);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }

  .charioot-scene-header {
    padding: 14px;
  }

  .charioot-scene-title {
    font-size: 20px;
  }

  .charioot-scene-body {
    padding: 14px;
  }

  .charioot-scene-stage-card {
    flex-direction: column;
    align-items: stretch;
  }

  .charioot-scene-stage-badges {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .charioot-scene-log-shell {
    gap: 10px;
  }

  .charioot-scene-progress-copy {
    display: grid;
    gap: 4px;
  }

  .charioot-scene-bubble {
    max-width: 100%;
  }

  .charioot-scene-transcript {
    max-height: none;
  }

  .charioot-scene-footer-head {
    display: grid;
    gap: 4px;
  }

  .charioot-scene-input-shell {
    grid-template-columns: 1fr;
  }

  .charioot-scene-input-send {
    width: 100%;
  }

  .charioot-scene-launch::after {
    top: -8px;
    right: 12px;
  }

  .is-character-launch {
    width: 78px;
    height: 78px;
    min-width: 78px;
  }

  .is-character-launch .charioot-scene-launch-avatar {
    width: 50px;
    height: 50px;
  }

  .is-character-launch::after {
    right: -4px;
  }
}

.charioot-scene-floating-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99989;
  pointer-events: none;
}

.charioot-scene-floating-backdrop .charioot-scene-game-backdrop {
  pointer-events: auto;
}

.charioot-scene-game-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 22, 0.58);
  backdrop-filter: blur(10px) saturate(0.88);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay {
  inset: 0;
  width: 100vw;
  height: 100vh;
  bottom: auto;
  left: 0 !important;
  right: 0 !important;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-panel {
  max-height: none;
  pointer-events: auto;
}

.charioot-scene-floating-launcher.charioot-scene-presentation-game_novel_overlay[data-scene-open="1"] {
  pointer-events: none;
}

.charioot-scene-floating-launcher.charioot-scene-presentation-game_novel_overlay[data-scene-open="1"] .charioot-scene-launch {
  opacity: 0;
  transform: translateY(10px);
}

.charioot-scene-panel-game {
  width: min(1120px, calc(100vw - 72px));
  height: min(78vh, 760px);
  max-height: min(78vh, 760px);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.66) 0%, rgba(8, 12, 20, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 42px 120px rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px) saturate(1.08);
}

.charioot-scene-panel-game .charioot-scene-panel-glow {
  opacity: 0.4;
}

.charioot-scene-panel-game :where(button, input, a) {
  appearance: none;
  text-transform: none;
  letter-spacing: inherit;
}

.charioot-scene-game-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 0;
}

.charioot-scene-game-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 0;
}

.charioot-scene-game-brand {
  display: grid;
  gap: 6px;
}

.charioot-scene-game-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.charioot-scene-panel-game .charioot-scene-title {
  color: #fff;
  font-size: 30px;
  line-height: 1.05;
}

.charioot-scene-panel-game .charioot-scene-status {
  width: fit-content;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.charioot-scene-game-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.charioot-scene-game-menu button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.charioot-scene-game-menu button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.charioot-scene-game-menu .charioot-scene-close {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.charioot-scene-game-stage {
  min-height: 0;
  padding: 14px 22px 22px;
}

.charioot-scene-game-scene {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at top left, rgba(71, 129, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(10, 18, 30, 0.22) 0%, rgba(4, 10, 20, 0.54) 100%);
}

.charioot-scene-game-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.04) 0%, rgba(4, 10, 20, 0.2) 55%, rgba(4, 10, 20, 0.64) 100%);
  pointer-events: none;
}

.charioot-scene-game-stage-head {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.charioot-scene-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.charioot-scene-panel-game .charioot-scene-meta-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.charioot-scene-game-character {
  position: absolute;
  bottom: 178px;
  left: 42px;
  z-index: 2;
  width: min(38%, 380px);
  max-height: calc(100% - 210px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.charioot-scene-game-character-right {
  left: auto;
  right: 42px;
}

.charioot-scene-standing-image {
  display: block;
  max-width: 100%;
  max-height: min(540px, 100%);
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.38));
}

.charioot-scene-standing-fallback {
  width: min(320px, 100%);
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.charioot-scene-standing-fallback .charioot-scene-stage-avatar {
  width: 92px;
  height: 92px;
  border-radius: 30px;
}

.charioot-scene-standing-fallback .charioot-scene-stage-name,
.charioot-scene-standing-fallback .charioot-scene-stage-text {
  color: #fff;
}

.charioot-scene-game-dialogue {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  display: grid;
  gap: 14px;
  padding: 18px 20px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.92) 0%, rgba(10, 18, 30, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.charioot-scene-game-advance {
  appearance: none;
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #fff;
  cursor: pointer;
}

.charioot-scene-game-nameplate {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(57, 125, 255, 0.34) 0%, rgba(44, 207, 185, 0.2) 100%);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.charioot-scene-game-text {
  color: #fff;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.86;
  letter-spacing: 0.01em;
  min-height: 4.8em;
  max-height: 10.4em;
  overflow-y: auto;
  padding-right: 6px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.charioot-scene-game-hint {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.76;
}

.charioot-scene-game-actions[hidden],
.charioot-scene-game-log[hidden],
.charioot-scene-game-assist[hidden] {
  display: none !important;
}

.charioot-scene-game-actions {
  display: grid;
  gap: 10px;
}

.charioot-scene-game-dialogue .charioot-scene-choices {
  display: grid;
  gap: 10px;
}

.charioot-scene-game-dialogue .charioot-scene-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.charioot-scene-game-dialogue .charioot-scene-choice:hover {
  background: rgba(255, 255, 255, 0.14);
}

.charioot-scene-game-dialogue .charioot-scene-choice small {
  color: rgba(255, 255, 255, 0.72);
}

.charioot-scene-game-dialogue .charioot-scene-choice.is-primary {
  background: linear-gradient(135deg, var(--charioot-accent-start) 0%, var(--charioot-accent-end) 100%);
  border-color: transparent;
}

.charioot-scene-game-dialogue .charioot-scene-cta-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.charioot-scene-game-dialogue .charioot-scene-cta-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.charioot-scene-game-dialogue .charioot-scene-cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.charioot-scene-game-dialogue .charioot-scene-cta-link::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
}

.charioot-scene-game-assist,
.charioot-scene-game-log {
  position: absolute;
  z-index: 7;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.96) 0%, rgba(10, 16, 28, 0.98) 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.charioot-scene-game-assist {
  right: 22px;
  bottom: 244px;
  width: min(360px, calc(100% - 44px));
  padding: 16px;
}

.charioot-scene-game-assist-head,
.charioot-scene-game-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.charioot-scene-game-assist-head {
  margin-bottom: 14px;
}

.charioot-scene-game-assist-close,
.charioot-scene-game-log-close {
  appearance: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.charioot-scene-game-assist .charioot-scene-inputbar {
  display: grid;
  gap: 10px;
}

.charioot-scene-game-assist .charioot-scene-input-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.charioot-scene-game-assist .charioot-scene-input-field {
  border: 0;
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #102033;
}

.charioot-scene-game-assist .charioot-scene-input-send {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--charioot-accent-start) 0%, var(--charioot-accent-end) 100%);
  color: #fff;
  font-weight: 700;
}

.charioot-scene-game-assist .charioot-scene-input-hint {
  color: rgba(255, 255, 255, 0.7);
}

.charioot-scene-game-log {
  inset: 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 16px;
}

.charioot-scene-game-log .charioot-scene-log-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 0;
}

.charioot-scene-game-log .charioot-scene-speaker-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.charioot-scene-game-log .charioot-scene-transcript {
  min-height: 0;
  padding-right: 6px;
}

.charioot-scene-game-log .charioot-scene-bubble {
  max-width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.charioot-scene-game-log .charioot-scene-bubble.is-user {
  background: linear-gradient(135deg, rgba(57, 125, 255, 0.26) 0%, rgba(44, 207, 185, 0.18) 100%);
}

.charioot-scene-game-log .charioot-scene-bubble-meta strong,
.charioot-scene-game-log .charioot-scene-bubble-body,
.charioot-scene-game-log .charioot-scene-bubble-caption,
.charioot-scene-game-log .charioot-scene-bubble-chip {
  color: inherit;
}

@media (max-width: 782px) {
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay {
    padding: 8px;
    place-items: stretch;
  }

  .charioot-scene-panel-game {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 24px;
  }

  .charioot-scene-game-topbar {
    padding: 14px 14px 0;
    gap: 12px;
  }

  .charioot-scene-panel-game .charioot-scene-title {
    font-size: 26px;
  }

  .charioot-scene-game-menu {
    gap: 8px;
  }

  .charioot-scene-game-menu button {
    padding: 9px 12px;
    font-size: 13px;
  }

  .charioot-scene-game-stage {
    padding: 12px 14px 14px;
  }

  .charioot-scene-game-stage-head {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .charioot-scene-game-character,
  .charioot-scene-game-character-right {
    left: 50%;
    right: auto;
    bottom: 214px;
    width: min(74%, 300px);
    max-height: calc(100% - 250px);
    transform: translateX(-50%);
  }

  .charioot-scene-standing-image {
    max-height: 34vh;
  }

  .charioot-scene-standing-fallback {
    min-height: 220px;
  }

  .charioot-scene-game-dialogue {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px 16px 16px;
  }

  .charioot-scene-game-text {
    font-size: 16px;
    min-height: 5em;
    max-height: 7.6em;
  }

  .charioot-scene-game-assist {
    left: 14px;
    right: 14px;
    width: auto;
    bottom: 214px;
  }

  .charioot-scene-game-log {
    inset: 14px;
    padding: 14px;
  }

  .charioot-scene-game-assist .charioot-scene-input-shell {
    grid-template-columns: 1fr;
  }

  .charioot-scene-game-assist .charioot-scene-input-send {
    min-height: 46px;
  }
}

@keyframes charioot-scene-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes charioot-scene-slide-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes charioot-scene-pulse-in {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }

  70% {
    opacity: 1;
    transform: scale(1.015);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes charioot-scene-typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes charioot-scene-launch-pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.82;
  }
}

/* Game presentation v2 overrides */
.charioot-scene-floating-backdrop.charioot-scene-presentation-game_novel_overlay {
  z-index: 100060;
}

.charioot-scene-floating-backdrop.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-backdrop {
  background:
    radial-gradient(circle at top center, rgba(36, 82, 132, 0.18), transparent 32%),
    rgba(3, 7, 16, 0.68);
  backdrop-filter: blur(14px) saturate(0.76);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay {
  inset: 0;
  width: 100vw;
  height: 100vh;
  bottom: auto;
  left: 0 !important;
  right: 0 !important;
  display: grid;
  place-items: center;
  padding: 28px;
  z-index: 100070;
  pointer-events: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-panel {
  pointer-events: auto;
  margin: 0;
}

.charioot-scene-panel-game,
.charioot-scene-panel-game :where(*, *::before, *::after) {
  box-sizing: border-box;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.charioot-scene-panel-game :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, button, a, input, textarea, small, strong, span) {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

.charioot-scene-panel-game :where(ul, ol) {
  list-style: none;
}

.charioot-scene-panel-game :where(button, a, input, textarea) {
  appearance: none;
  outline: none;
}

.charioot-scene-panel-game {
  width: min(1180px, calc(100vw - 56px));
  height: min(84vh, 820px);
  max-height: min(84vh, 820px);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 28, 39, 0.92) 0%, rgba(13, 18, 27, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 54px 120px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #f4f7fb;
  backdrop-filter: blur(8px) saturate(1.02);
  isolation: isolate;
}

.charioot-scene-panel-game .charioot-scene-panel-glow {
  background:
    radial-gradient(circle at top right, rgba(44, 198, 179, 0.18), transparent 28%),
    radial-gradient(circle at top left, rgba(68, 118, 255, 0.12), transparent 24%);
  opacity: 0.75;
}

.charioot-scene-panel-game .charioot-scene-title {
  font-size: clamp(30px, 2.3vw, 40px);
  font-weight: 800;
  line-height: 1.02;
  color: #ffffff;
}

.charioot-scene-panel-game .charioot-scene-status {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.charioot-scene-game-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 0;
}

.charioot-scene-game-topbar {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
}

.charioot-scene-game-brand {
  display: grid;
  gap: 8px;
}

.charioot-scene-game-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.56);
}

.charioot-scene-game-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.charioot-scene-game-menu button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f8fc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.charioot-scene-game-menu button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.charioot-scene-game-menu .charioot-scene-close {
  width: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}

.charioot-scene-game-stage {
  position: relative;
  min-height: 0;
  padding: 16px 24px 24px;
}

.charioot-scene-game-stage-frame {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(80, 134, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(13, 21, 34, 0.4) 0%, rgba(6, 10, 18, 0.58) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.charioot-scene-game-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.04) 0%, rgba(5, 8, 13, 0.18) 54%, rgba(5, 8, 13, 0.62) 100%);
  pointer-events: none;
}

.charioot-scene-game-stage-head {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.charioot-scene-game-scene-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.charioot-scene-game-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.charioot-scene-panel-game .charioot-scene-meta-pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5f8fc;
  box-shadow: none;
}

.charioot-scene-game-character {
  position: absolute;
  right: 42px;
  bottom: 188px;
  z-index: 2;
  width: min(34%, 360px);
  max-height: calc(100% - 222px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.charioot-scene-game-character-left {
  right: auto;
  left: 42px;
}

.charioot-scene-standing-image {
  display: block;
  max-width: 100%;
  max-height: min(540px, 100%);
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.42));
  transform: translateY(0);
  transition: transform 220ms ease, opacity 220ms ease;
}

.charioot-scene-standing-fallback {
  width: min(320px, 100%);
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.charioot-scene-standing-fallback .charioot-scene-stage-avatar {
  width: 96px;
  height: 96px;
  border-radius: 30px;
}

.charioot-scene-standing-fallback .charioot-scene-stage-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.charioot-scene-standing-fallback .charioot-scene-stage-text {
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.charioot-scene-game-bottom-rail {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 6;
  display: grid;
  gap: 14px;
}

.charioot-scene-game-dialogue-shell {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(4, 9, 17, 0.92) 0%, rgba(8, 14, 24, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.charioot-scene-game-advance {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 22px 24px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #fff;
  cursor: pointer;
}

.charioot-scene-game-nameplate {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(57, 125, 255, 0.36) 0%, rgba(44, 207, 185, 0.22) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.charioot-scene-game-text {
  font-size: clamp(18px, 1.42vw, 24px);
  line-height: 1.92;
  color: #f9fbff;
  min-height: 5.8em;
  max-height: 10.6em;
  overflow-y: auto;
  padding-right: 8px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.charioot-scene-game-text::-webkit-scrollbar {
  width: 8px;
}

.charioot-scene-game-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.charioot-scene-game-hint {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.68);
}

.charioot-scene-game-choices-panel[hidden],
.charioot-scene-game-log[hidden],
.charioot-scene-game-assist[hidden] {
  display: none !important;
}

.charioot-scene-game-choices-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(5, 10, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.charioot-scene-game-choices-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

.charioot-scene-panel-game .charioot-scene-choices {
  display: grid;
  gap: 10px;
}

.charioot-scene-panel-game .charioot-scene-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.charioot-scene-panel-game .charioot-scene-choice:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.charioot-scene-panel-game .charioot-scene-choice small {
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

.charioot-scene-panel-game .charioot-scene-choice.is-primary {
  background: linear-gradient(135deg, var(--charioot-accent-start) 0%, var(--charioot-accent-end) 100%);
  border-color: transparent;
  box-shadow: 0 18px 32px rgba(9, 52, 83, 0.28);
}

.charioot-scene-game-action-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.9) 0%, rgba(10, 16, 28, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.charioot-scene-game-action-copy {
  display: grid;
  gap: 6px;
  align-content: center;
}

.charioot-scene-game-action-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.58);
}

.charioot-scene-game-action-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.charioot-scene-game-action-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.charioot-scene-game-cta {
  min-width: 260px;
  align-self: stretch;
}

.charioot-scene-game-cta:empty {
  display: none;
}

.charioot-scene-panel-game .charioot-scene-cta-card {
  display: block;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.charioot-scene-panel-game .charioot-scene-cta-kicker {
  display: none;
}

.charioot-scene-panel-game .charioot-scene-cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
  border-radius: 18px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(9, 52, 83, 0.28);
}

.charioot-scene-game-log,
.charioot-scene-game-assist {
  position: absolute;
  z-index: 8;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(5, 9, 17, 0.96) 0%, rgba(9, 14, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
}

.charioot-scene-game-log {
  inset: 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 18px;
}

.charioot-scene-game-assist {
  right: 22px;
  bottom: 208px;
  width: min(390px, calc(100% - 44px));
  padding: 18px;
}

.charioot-scene-game-log-head,
.charioot-scene-game-assist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.charioot-scene-game-log-head strong,
.charioot-scene-game-assist-head strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.charioot-scene-game-log-close,
.charioot-scene-game-assist-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.charioot-scene-game-log .charioot-scene-log-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  gap: 12px;
}

.charioot-scene-game-log .charioot-scene-speaker {
  display: none;
}

.charioot-scene-game-log .charioot-scene-transcript {
  min-height: 0;
  padding-right: 6px;
}

.charioot-scene-game-log .charioot-scene-bubble {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.charioot-scene-game-log .charioot-scene-bubble.is-user {
  background: linear-gradient(135deg, rgba(57, 125, 255, 0.26) 0%, rgba(44, 207, 185, 0.18) 100%);
}

.charioot-scene-game-log .charioot-scene-bubble.is-system {
  background: rgba(164, 42, 42, 0.28);
  color: #fff6f6;
}

.charioot-scene-game-assist .charioot-scene-inputbar {
  display: grid;
  gap: 10px;
}

.charioot-scene-game-assist .charioot-scene-input-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.charioot-scene-game-assist .charioot-scene-input-field {
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #102033;
}

.charioot-scene-game-assist .charioot-scene-input-send {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  min-height: 48px;
}

.charioot-scene-game-assist .charioot-scene-input-hint {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 782px) {
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay {
    padding: 10px;
    place-items: stretch;
  }

  .charioot-scene-panel-game {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 24px;
  }

  .charioot-scene-game-topbar {
    padding: 16px 16px 0;
  }

  .charioot-scene-game-menu {
    gap: 8px;
  }

  .charioot-scene-game-menu button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .charioot-scene-game-stage {
    padding: 12px 16px 16px;
  }

  .charioot-scene-game-stage-head {
    left: 14px;
    right: 14px;
    top: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .charioot-scene-game-meta {
    justify-content: flex-start;
  }

  .charioot-scene-game-character,
  .charioot-scene-game-character-left {
    left: 50%;
    right: auto;
    bottom: 266px;
    width: min(72%, 320px);
    max-height: calc(100% - 316px);
    transform: translateX(-50%);
  }

  .charioot-scene-standing-image {
    max-height: 34vh;
  }

  .charioot-scene-standing-fallback {
    min-height: 220px;
  }

  .charioot-scene-game-bottom-rail {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 12px;
  }

  .charioot-scene-game-advance {
    padding: 18px 18px 16px;
  }

  .charioot-scene-game-text {
    font-size: 16px;
    min-height: 6.2em;
    max-height: 8.6em;
  }

  .charioot-scene-game-action-dock {
    grid-template-columns: 1fr;
  }

  .charioot-scene-game-cta {
    min-width: 0;
  }

  .charioot-scene-game-choices-panel {
    padding: 14px;
  }

  .charioot-scene-game-log {
    inset: 12px;
    padding: 14px;
  }

  .charioot-scene-game-assist {
    left: 14px;
    right: 14px;
    width: auto;
    bottom: 238px;
  }

  .charioot-scene-game-assist .charioot-scene-input-shell {
    grid-template-columns: 1fr;
  }

  .charioot-scene-game-assist .charioot-scene-input-send {
    width: 100%;
  }
}

/* Game presentation v3: full-page stage with bottom dialogue rail */
body.charioot-scene-game-open {
  overflow: hidden;
}

.charioot-scene-floating-backdrop.charioot-scene-presentation-game_novel_overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482000 !important;
  display: none !important;
  pointer-events: none !important;
}

.charioot-scene-floating-backdrop.charioot-scene-presentation-game_novel_overlay[data-scene-open="1"] {
  display: block !important;
  pointer-events: auto !important;
}

.charioot-scene-floating-backdrop.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-backdrop {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(38, 108, 180, 0.14), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(48, 207, 186, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(5, 9, 16, 0.38) 0%, rgba(5, 9, 16, 0.56) 100%) !important;
  backdrop-filter: blur(14px) saturate(0.88);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482001 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  display: block !important;
  pointer-events: none !important;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-panel {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-panel-glow,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-overlay,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-scene-label {
  display: none !important;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-shell {
  position: relative;
  height: 100vh;
  pointer-events: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-topbar {
  position: absolute;
  top: clamp(18px, 3.8vh, 38px);
  left: clamp(18px, 4.5vw, 56px);
  right: clamp(18px, 4.5vw, 56px);
  z-index: 24;
  padding: 0 !important;
  align-items: flex-start;
  pointer-events: auto;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-brand {
  display: grid;
  gap: 8px;
  max-width: min(42vw, 520px);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-kicker {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.2em;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-title {
  font-size: clamp(30px, 3vw, 54px);
  font-weight: 900;
  line-height: 0.98;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-status {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-menu {
  gap: 10px;
  pointer-events: auto;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-menu button {
  min-height: 46px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-stage,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-stage-frame {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  pointer-events: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-stage-head {
  position: absolute;
  left: clamp(18px, 4.5vw, 56px);
  right: clamp(18px, 4.5vw, 56px);
  bottom: clamp(214px, 25vh, 278px);
  z-index: 16;
  justify-content: flex-start;
  pointer-events: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-meta {
  gap: 10px;
  justify-content: flex-start;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-meta-pill {
  padding: 8px 14px;
  background: rgba(5, 10, 18, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-character {
  position: absolute;
  right: clamp(18px, 6vw, 108px);
  bottom: clamp(178px, 24vh, 264px);
  z-index: 10;
  width: min(32vw, 420px);
  max-height: calc(100vh - 210px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-character-left {
  right: auto;
  left: clamp(18px, 6vw, 108px);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-standing-image {
  max-width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.34));
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-standing-fallback {
  width: min(210px, 24vw);
  min-height: 0 !important;
  padding: 14px !important;
  gap: 10px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(10, 18, 31, 0.7) 0%, rgba(10, 18, 31, 0.3) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-standing-fallback .charioot-scene-stage-avatar {
  width: 82px;
  height: 82px;
  border-radius: 24px;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-standing-fallback .charioot-scene-stage-name {
  color: #ffffff;
  font-size: 21px;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-standing-fallback .charioot-scene-stage-text {
  display: none !important;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-bottom-rail {
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  right: clamp(16px, 4vw, 56px);
  bottom: calc(max(env(safe-area-inset-bottom), 0px) + 18px);
  z-index: 20;
  display: grid;
  gap: 12px;
  pointer-events: auto;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-dock {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell {
  border-radius: 22px 22px 16px 16px;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.78) 0%, rgba(5, 8, 14, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance {
  min-height: 168px;
  padding: 20px 28px 18px !important;
  gap: 15px;
  min-width: 0;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance:hover,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance:focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance:focus-visible,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell:hover,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell:focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell:focus-visible {
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.78) 0%, rgba(5, 8, 14, 0.92) 100%) !important;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transform: none !important;
  filter: none !important;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-nameplate {
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(56, 120, 245, 0.26) 0%, rgba(44, 207, 185, 0.16) 100%);
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-text {
  font-size: clamp(18px, 1.18vw, 22px) !important;
  line-height: 1.82 !important;
  min-height: 4.6em !important;
  max-height: 8.6em !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
  color: #f7fbff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-hint {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-panel.is-request-pending .charioot-scene-game-hint {
  color: rgba(255, 255, 255, 0.92);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel {
  display: grid;
  gap: 10px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

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

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice {
  position: relative;
  flex: 1 1 220px;
  min-height: 82px;
  padding: 18px 62px 18px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 30, 50, 0.98) 0%, rgba(10, 18, 31, 0.98) 100%);
  border: 1px solid rgba(143, 212, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 32px rgba(0, 0, 0, 0.24);
  min-width: 0;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice::after {
  content: '›';
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice span,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice small {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice small {
  justify-self: start;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.66);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice:hover,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice:focus-visible {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(24, 40, 66, 0.99) 0%, rgba(13, 24, 41, 0.99) 100%);
  border-color: rgba(143, 212, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 36px rgba(0, 0, 0, 0.28);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-primary {
  background: linear-gradient(135deg, rgba(32, 105, 154, 0.98) 0%, rgba(35, 164, 150, 0.98) 100%);
  border-color: rgba(135, 240, 222, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 36px rgba(6, 60, 92, 0.3);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-primary small {
  color: rgba(255, 255, 255, 0.82);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-continue {
  min-height: 88px;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-continue::after {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.18);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-loading,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance.is-loading {
  opacity: 1;
  cursor: progress;
  pointer-events: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-loading {
  background:
    linear-gradient(135deg, rgba(26, 86, 139, 0.98) 0%, rgba(37, 146, 151, 0.98) 100%);
  border-color: rgba(176, 239, 235, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 40px rgba(6, 60, 92, 0.34);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-loading::before,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: charioot-scene-loading-sheen 1.1s ease-in-out infinite;
  pointer-events: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-loading::after {
  content: '...';
  font-size: 16px;
  letter-spacing: 0.08em;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell.is-loading {
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(92, 195, 244, 0.18);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell.is-loading .charioot-scene-game-advance {
  position: relative;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell.is-loading .charioot-scene-game-advance::after {
  content: '読み込み中…';
  position: absolute;
  right: 22px;
  bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-text {
  transition: opacity 0.24s ease, filter 0.24s ease, transform 0.24s ease;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-text.is-revealing {
  opacity: 1;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-text.is-typewriter::after {
  content: '▌';
  display: inline-block;
  margin-left: 0.14em;
  color: rgba(255, 255, 255, 0.86);
  animation: charioot-scene-text-caret-blink 0.9s steps(1) infinite;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-text.is-reveal-done::after {
  display: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-text.is-fade-reveal {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(8px);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-text.is-fade-reveal.is-reveal-done {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@keyframes charioot-scene-text-caret-blink {
  0%, 49% {
    opacity: 0.95;
  }

  50%, 100% {
    opacity: 0.14;
  }
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-dock {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(4, 9, 16, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-copy,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-copy > * {
  min-width: 0;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-kicker {
  color: rgba(255, 255, 255, 0.58);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-title {
  font-size: 15px;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-text {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-cta {
  min-width: min(320px, 36vw);
  min-width: 0;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-cta-link {
  min-height: 68px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-log,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-assist {
  position: absolute;
  top: clamp(76px, 12vh, 108px);
  right: clamp(16px, 4vw, 48px);
  z-index: 28;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 220px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.96) 0%, rgba(8, 12, 22, 0.98) 100%);
  backdrop-filter: blur(16px);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-log {
  inset: auto clamp(16px, 4vw, 48px) clamp(126px, 18vh, 188px) auto;
  width: min(460px, calc(100vw - 32px));
  padding: 18px;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-assist {
  bottom: clamp(136px, 18vh, 202px);
  padding: 18px;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-log .charioot-scene-transcript,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-log .charioot-scene-log-shell {
  min-height: 0;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-log .charioot-scene-transcript {
  overflow-y: auto;
}

@media (max-width: 782px) {
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-topbar {
    top: 10px;
    left: 12px;
    right: 12px;
    gap: 12px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-brand {
    max-width: 62vw;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-title {
    font-size: clamp(28px, 9vw, 42px);
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-status {
    padding: 6px 12px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-menu {
    gap: 8px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-menu button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-stage-head {
    left: 12px;
    right: 12px;
    bottom: 206px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-character,
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-character-left {
    left: 50%;
    right: auto;
    bottom: 224px;
    width: min(78vw, 340px);
    max-height: 48vh;
    transform: translateX(-50%);
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-standing-image {
    max-height: 46vh;
    object-position: center bottom;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-standing-fallback {
    width: min(196px, 60vw);
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-bottom-rail {
    left: 10px;
    right: 10px;
    bottom: calc(max(env(safe-area-inset-bottom), 0px) + 10px);
    gap: 10px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell,
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel,
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-dock {
    width: 100%;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance {
    min-height: 148px;
    padding: 16px 18px 16px !important;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-text {
    font-size: 16px !important;
    line-height: 1.72 !important;
    min-height: 5.6em !important;
    max-height: 9.2em !important;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choices {
    display: grid;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice {
    flex: 1 1 auto;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-dock {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-cta {
    min-width: 0;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-log,
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-assist {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-log {
    top: 64px;
    bottom: 182px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-assist {
    top: auto;
    bottom: 176px;
  }
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance:hover,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance:focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-advance:focus-visible,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell:hover,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell:focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-dialogue-shell:focus-visible {
  color: #ffffff !important;
  transition: none !important;
  transform: none !important;
  filter: none !important;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice:hover,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice:focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice:focus-visible {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #ffffff !important;
  text-align: left;
  text-decoration: none !important;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-nav {
  min-height: 92px;
  background: linear-gradient(135deg, rgba(23, 93, 149, 0.98) 0%, rgba(34, 170, 150, 0.98) 100%);
  border-color: rgba(160, 238, 227, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 36px rgba(5, 44, 72, 0.34);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-nav::after {
  content: '▶';
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  font-size: 14px;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-nav span {
  font-size: 20px;
  font-weight: 900;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-nav small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.06em;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-action-focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-action-focus:hover,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-action-focus:focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-action-focus:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(197, 245, 255, 0.8) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 2px rgba(123, 227, 255, 0.28),
    0 0 36px rgba(56, 203, 255, 0.26),
    0 22px 38px rgba(7, 59, 93, 0.34) !important;
  animation: charioot-scene-primary-action-pulse 1.6s ease-in-out infinite;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-cta-link.is-action-focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-cta-link.is-action-focus:hover,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-cta-link.is-action-focus:focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-cta-link.is-action-focus:focus-visible {
  border-color: rgba(189, 247, 237, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(90, 223, 201, 0.22),
    0 0 34px rgba(60, 207, 182, 0.24),
    0 18px 32px rgba(6, 52, 70, 0.3) !important;
  animation: charioot-scene-primary-action-pulse 1.6s ease-in-out infinite;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-action-dock.has-action-focus {
  border-color: rgba(177, 239, 232, 0.24);
  box-shadow:
    0 0 0 1px rgba(94, 225, 210, 0.16),
    0 18px 32px rgba(0, 0, 0, 0.22),
    0 0 26px rgba(46, 201, 192, 0.12);
}

@keyframes charioot-scene-primary-action-pulse {
  0%, 100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.12) brightness(1.04);
  }
}

@media (max-width: 782px) {
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-character,
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-character-left {
    bottom: 258px;
    width: min(74vw, 320px);
    max-height: 54vh;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-standing-image {
    width: auto;
    max-width: 100%;
    max-height: 52vh;
    object-fit: contain;
    object-position: center bottom;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-standing-fallback {
    width: min(206px, 64vw);
  }
}

@keyframes charioot-scene-loading-sheen {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel {
  display: grid !important;
  gap: 14px;
  padding: 16px 18px !important;
  background:
    linear-gradient(180deg, rgba(9, 16, 28, 0.82) 0%, rgba(6, 12, 22, 0.72) 100%) !important;
  border: 1px solid rgba(119, 200, 242, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 38px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(43, 154, 219, 0.04) !important;
  position: relative;
  overflow: hidden;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(69, 145, 255, 0) 0%, rgba(93, 205, 255, 0.82) 48%, rgba(69, 145, 255, 0) 100%);
  opacity: 0.88;
  pointer-events: none;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-title {
  display: inline-flex !important;
  align-items: center;
  align-self: start;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(34, 59, 92, 0.68);
  border: 1px solid rgba(122, 199, 245, 0.2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92) !important;
  text-transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-title::before {
  content: 'CHOICE';
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(150, 221, 255, 0.84);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choices {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice {
  min-height: 104px;
  padding: 20px 64px 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(135, 192, 234, 0.18);
  background:
    radial-gradient(circle at top right, rgba(86, 176, 255, 0.14) 0%, rgba(86, 176, 255, 0) 38%),
    linear-gradient(180deg, rgba(20, 31, 51, 0.98) 0%, rgba(11, 19, 33, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(90, 165, 255, 0.14);
  border: 1px solid rgba(124, 211, 255, 0.18);
  color: rgba(183, 232, 255, 0.92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card span {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: rgba(201, 231, 255, 0.8);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  justify-self: end;
  align-self: center;
  background: linear-gradient(135deg, rgba(45, 98, 149, 0.72) 0%, rgba(31, 162, 153, 0.64) 100%);
  border: 1px solid rgba(163, 237, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 22px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.96);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card:hover,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card:focus,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(159, 224, 255, 0.34);
  background:
    radial-gradient(circle at top right, rgba(100, 198, 255, 0.22) 0%, rgba(100, 198, 255, 0) 42%),
    linear-gradient(180deg, rgba(23, 39, 64, 0.98) 0%, rgba(12, 24, 42, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(114, 209, 255, 0.08);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card:hover .charioot-scene-choice-arrow,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card:focus .charioot-scene-choice-arrow,
.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card:focus-visible .charioot-scene-choice-arrow {
  transform: translateX(2px) scale(1.04);
  background: linear-gradient(135deg, rgba(58, 123, 186, 0.92) 0%, rgba(42, 193, 174, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 26px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(79, 206, 255, 0.18);
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-multi-choice {
  border-color: rgba(138, 211, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 42px rgba(0, 0, 0, 0.28),
    0 0 40px rgba(56, 139, 255, 0.08) !important;
}

.charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel.is-continue-choice {
  gap: 10px;
}

@media (max-width: 782px) {
  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-game-choices-panel {
    padding: 14px 14px 16px !important;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choices {
    grid-template-columns: 1fr;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice {
    min-height: 94px;
    padding: 18px 58px 16px 16px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card span {
    font-size: 19px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice.is-decision-card em {
    font-size: 11px;
  }

  .charioot-scene-floating-drawer.charioot-scene-presentation-game_novel_overlay .charioot-scene-choice-arrow {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}
