:root {
  --ink: #202731;
  --muted: #5c6875;
  --line: rgba(32, 39, 49, 0.18);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #f7f9f7;
  --green: #7fb23c;
  --green-dark: #5c8f28;
  --blue: #cfe3f1;
  --cream: #f4efcf;
  --warning: #f1b84b;
  --danger: #d45d52;
  --screen-divider: #000;
  --screen-divider-highlight: rgba(214, 232, 246, 0.24);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #000;
  overflow: hidden;
}

.stage-viewport {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.app-shell {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1110px 810px;
  width: 1940px;
  height: 1100px;
  min-width: 1940px;
  min-height: 1100px;
  padding: 10px;
  overflow: hidden;
  background: #000;
  transform-origin: left top;
}

.cabin-region {
  position: relative;
  order: 2;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--cream);
  border: 0;
  border-left: 10px solid var(--screen-divider);
}

.cabin-region::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  border: 1px solid var(--screen-divider-highlight);
  content: "";
  pointer-events: none;
}

.region-title {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  gap: 8px;
  border: 0;
  color: #f4f6fb;
  background: #131e2f;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.region-title::before {
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: #20c997;
  content: "";
}

.environment-backdrop {
  position: absolute;
  inset: 0;
  transition: none;
}

.environment-backdrop::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
}

.env-highway-day,
.env-highway-night,
.env-highway-rain,
.env-city-day,
.env-city-rain,
.env-scenic-day,
.env-snow-day {
  background: #10151e;
}

.cabin-overlay {
  position: relative;
  display: grid;
  height: calc(100% - 28px);
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 28px;
  min-height: 0;
}

.scene-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scene-badges span {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 8px 13px;
  color: #17212a;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 28px rgba(20, 34, 44, 0.12);
  backdrop-filter: blur(10px);
}

.cabin-decision-card {
  width: min(720px, 100%);
  margin-top: 28px;
  justify-self: start;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 30px rgba(20, 34, 44, 0.12);
  backdrop-filter: blur(10px);
}

.car-cabin {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 420px;
  aspect-ratio: 0.75;
  margin: 0;
  border: 3px solid rgba(32, 39, 49, 0.42);
  border-radius: 76px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 244, 243, 0.88)),
    radial-gradient(circle at 50% 15%, rgba(108, 155, 180, 0.12), transparent 34%);
  box-shadow:
    inset 0 0 0 14px rgba(255, 255, 255, 0.4),
    0 22px 50px rgba(28, 43, 50, 0.22);
}

.car-cabin::before {
  position: absolute;
  inset: 9% 13% 18%;
  content: "";
  border: 2px dashed rgba(32, 39, 49, 0.12);
  border-radius: 44px;
}

.seat {
  position: absolute;
  width: 27%;
  aspect-ratio: 1;
  border: 2px solid rgba(32, 39, 49, 0.28);
  border-radius: 10px;
  color: var(--ink);
  cursor: default;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 24px rgba(28, 42, 48, 0.12);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.seat.correct {
  border-color: #6ba52c;
  background: rgba(244, 255, 232, 0.96);
  box-shadow:
    0 0 0 7px rgba(130, 197, 61, 0.34),
    0 0 26px rgba(130, 197, 61, 0.58),
    0 12px 24px rgba(28, 42, 48, 0.12);
}

.seat.sleeping {
  filter: saturate(0.55);
  opacity: 0.82;
}

.seat-laughing {
  animation: laugh 650ms ease 2;
}

.seat.activity-thinking,
.seat.activity-answering,
.seat.activity-asking,
.seat.activity-listening,
.seat.activity-acting {
  border-color: rgba(75, 126, 156, 0.72);
  background: rgba(239, 249, 255, 0.94);
  box-shadow:
    0 0 0 5px rgba(111, 174, 207, 0.16),
    0 12px 24px rgba(28, 42, 48, 0.12);
}

.seat.activity-celebrating {
  border-color: rgba(107, 165, 44, 0.82);
  background: rgba(245, 255, 232, 0.96);
  animation: passenger-celebrate 520ms ease 2;
}

.seat-rear-left {
  top: 20%;
  left: 18%;
}

.seat-rear-right {
  top: 20%;
  right: 18%;
}

.seat-front {
  bottom: 16%;
  left: 18%;
}

.seat-driver {
  right: 18%;
  bottom: 16%;
}

.seat strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.seat small {
  color: var(--muted);
  font-weight: 700;
}

.avatar {
  position: relative;
  display: block;
  width: 38%;
  aspect-ratio: 1;
  margin: 12% auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #28323c 0 3px, transparent 4px),
    radial-gradient(circle at 36% 40%, #28323c 0 3px, transparent 4px),
    radial-gradient(circle at 50% 68%, #b55d5a 0 7px, transparent 8px),
    linear-gradient(180deg, #f1c7a9 0 72%, #507b9d 73%);
}

.avatar::after {
  position: absolute;
  right: -8px;
  bottom: -7px;
  display: none;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(24, 36, 44, 0.18);
}

.avatar.friends {
  background:
    radial-gradient(circle at 50% 42%, #28323c 0 3px, transparent 4px),
    radial-gradient(circle at 36% 40%, #28323c 0 3px, transparent 4px),
    radial-gradient(circle at 50% 68%, #b55d5a 0 7px, transparent 8px),
    linear-gradient(180deg, #efc39c 0 72%, #d47b56 73%);
}

.avatar.elder {
  background:
    radial-gradient(circle at 50% 42%, #28323c 0 3px, transparent 4px),
    radial-gradient(circle at 36% 40%, #28323c 0 3px, transparent 4px),
    radial-gradient(circle at 50% 68%, #8f5652 0 6px, transparent 7px),
    linear-gradient(180deg, #e8c3a7 0 72%, #7d8790 73%);
}

.avatar.laugh {
  background:
    radial-gradient(ellipse at 50% 67%, #9d3d39 0 12px, transparent 13px),
    radial-gradient(circle at 36% 40%, #28323c 0 3px, transparent 4px),
    radial-gradient(circle at 58% 40%, #28323c 0 3px, transparent 4px),
    linear-gradient(180deg, #f1c7a9 0 72%, #507b9d 73%);
}

.avatar.laugh::after {
  display: flex;
  content: "笑";
  background: #d45d4f;
}

.avatar.quiet {
  background:
    linear-gradient(90deg, transparent 42%, #28323c 42% 58%, transparent 58%) 50% 65% / 26px 3px
      no-repeat,
    radial-gradient(circle at 36% 42%, #28323c 0 3px, transparent 4px),
    radial-gradient(circle at 58% 42%, #28323c 0 3px, transparent 4px),
    linear-gradient(180deg, #f1c7a9 0 72%, #507b9d 73%);
}

.avatar.quiet::after {
  display: flex;
  content: "静";
  background: #6d7884;
}

.avatar.tired {
  background:
    linear-gradient(90deg, transparent 28%, #28323c 28% 42%, transparent 42% 58%, #28323c 58% 72%, transparent 72%)
      50% 44% / 34px 3px no-repeat,
    radial-gradient(ellipse at 50% 68%, #8f5652 0 5px, transparent 6px),
    linear-gradient(180deg, #e8c3a7 0 72%, #7d8790 73%);
}

.avatar.tired::after {
  display: flex;
  content: "累";
  background: #7d8790;
}

.avatar.sleep {
  background:
    linear-gradient(90deg, transparent 28%, #28323c 28% 42%, transparent 42% 58%, #28323c 58% 72%, transparent 72%)
      50% 42% / 34px 3px no-repeat,
    radial-gradient(circle at 68% 20%, rgba(76, 94, 122, 0.85) 0 4px, transparent 5px),
    linear-gradient(180deg, #f1c7a9 0 72%, #7e8a99 73%);
}

.avatar.sleep::after {
  display: flex;
  content: "Zz";
  background: #526b86;
  font-size: 10px;
}

.avatar.activity-thinking,
.avatar.activity-answering {
  animation: passenger-thinking 900ms ease-in-out infinite alternate;
}

.avatar.activity-thinking::after,
.avatar.activity-answering::after {
  display: flex;
  content: "?";
  background: #4b7e9c;
  font-size: 15px;
}

.avatar.activity-asking,
.avatar.activity-listening {
  box-shadow: 0 0 0 5px rgba(111, 174, 207, 0.22);
}

.avatar.activity-asking::after,
.avatar.activity-listening::after {
  display: flex;
  content: "问";
  background: #4b7e9c;
}

.avatar.activity-celebrating {
  box-shadow: 0 0 0 6px rgba(130, 197, 61, 0.26);
}

.avatar.activity-celebrating::after {
  display: flex;
  content: "✓";
  background: #6fa536;
  font-size: 14px;
}

.speech-bubble {
  position: absolute;
  z-index: 3;
  bottom: 104%;
  left: 50%;
  display: none;
  width: 210px;
  min-height: 42px;
  padding: 10px 12px;
  border: 2px solid rgba(32, 39, 49, 0.22);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(24, 36, 42, 0.14);
  font-weight: 700;
  line-height: 1.35;
  transform: translateX(-50%);
}

.speech-bubble.visible {
  display: block;
}

.right-stack {
  order: 1;
  display: grid;
  grid-template-rows: 656px 1fr;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.game-region {
  position: relative;
  min-height: 0;
  overflow: hidden;
  color: #f9fbff;
  background: #111117;
}

.game-region::after,
.control-region::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  border: 1px solid var(--screen-divider-highlight);
  content: "";
  pointer-events: none;
}

.game-screen {
  position: relative;
  isolation: isolate;
  width: 1440px;
  height: 810px;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(13, 10, 23, 0.08), rgba(13, 10, 23, 0.08)),
    url("./assets/screen-default.png") center / cover no-repeat;
  box-shadow: 0 25px 43.75px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.7708333333);
  transform-origin: left top;
  transition: none;
}

.game-screen-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  pointer-events: none;
}

.summary-background-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.game-confetti-canvas {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.game-screen.screen-default,
.game-screen.screen-sunny,
.game-screen.screen-night,
.game-screen.screen-rain,
.game-screen.screen-snow {
  background:
    linear-gradient(180deg, rgba(13, 10, 23, 0.08), rgba(13, 10, 23, 0.08)),
    url("./assets/screen-default.png") center / cover no-repeat;
  box-shadow: 0 25px 43.75px -12px rgba(0, 0, 0, 0.25);
}

.game-screen.screen-default .game-screen-background,
.game-screen.screen-sunny .game-screen-background,
.game-screen.screen-night .game-screen-background,
.game-screen.screen-rain .game-screen-background,
.game-screen.screen-snow .game-screen-background {
  filter: none;
}

.game-screen::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 10, 23, 0.2) 0%, rgba(13, 10, 23, 0.03) 33%, rgba(13, 10, 23, 0.16) 100%),
    radial-gradient(circle at 42% 28%, rgba(255, 203, 116, 0.16), transparent 23%);
}

.pencil-game-icon {
  position: absolute;
  left: 31px;
  top: 39px;
  z-index: 4;
  width: 47px;
  height: 47px;
  overflow: hidden;
  border-radius: 10px;
  background: none;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
}

.pencil-title {
  position: absolute;
  left: 90px;
  top: 42px;
  z-index: 3;
  width: 171px;
  height: 42px;
  color: transparent;
  background: linear-gradient(0deg, #fff 0%, #e1c9ed 61.199%, #d4c1dc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 41px;
  opacity: 0.8;
  white-space: nowrap;
}

.pencil-progress-rail {
  position: absolute;
  left: calc(50% - 8px);
  transform: translateX(-50%);
  top: 51px;
  z-index: 1;
  width: 270px;
  height: 26px;
}

.pencil-rail-base,
.pencil-rail-fill {
  position: absolute;
  display: block;
  border-radius: 9999px;
}

.pencil-rail-base {
  left: 0;
  top: 8px;
  width: 100%;
  height: 10px;
  background: rgba(10, 10, 10, 0.3);
}

.pencil-rail-fill {
  left: 0;
  top: 8px;
  width: 20px;
  height: 10px;
  background: linear-gradient(90deg, #ffe175 0%, #ff95c6 33.333%, #a155d9 66.667%, #5d33a1 100%);
}

.pencil-progress-dots {
  position: absolute;
  inset: 0;
}

.pencil-progress-rail .dot {
  position: absolute;
  left: 20px;
  top: 5px;
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  transform: translateX(-50%);
  background: #6d30bd;
}

.pencil-progress-rail .dot-complete {
  top: 3px;
  width: 21px;
  height: 21px;
  background: #ffbfbf;
  box-shadow: 0 0 8.75px rgba(255, 255, 255, 0.8);
}

.pencil-progress-rail .dot-current {
  top: 0;
  width: 26px;
  height: 26px;
  background: #ff95c6;
  box-shadow: 0 0 8.75px rgba(255, 149, 198, 0.8);
}

.question-counter {
  position: absolute;
  left: 1178px;
  top: 31px;
  z-index: 2;
  display: flex;
  width: 231px;
  height: 57px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 8px 16px;
  color: #fff;
  background: rgba(78, 78, 78, 0.09);
  backdrop-filter: blur(9.625px);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ticket-mark {
  position: relative;
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 19px;
}

.ticket-mark::before {
  position: absolute;
  left: 4px;
  top: 1px;
  width: 29px;
  height: 24px;
  content: "";
  opacity: 0.8;
  background: #fff;
  clip-path: polygon(8% 0, 66% 0, 66% 62%, 100% 62%, 100% 100%, 28% 100%, 28% 84%, 16% 84%, 16% 30%, 0 30%, 0 10%);
}

.question-copy {
  color: #fff;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 41px;
  white-space: nowrap;
}

.question-copy strong {
  font-size: inherit;
  font-weight: inherit;
}

.round-pill {
  display: none;
}

.riddle-panel {
  position: absolute;
  left: 83px;
  top: 200px;
  z-index: 6;
  width: 793px;
  height: 516px;
  border-radius: 40px;
  color: rgba(0, 0, 0, 0.75);
  background: rgba(240, 244, 255, 0.5);
  box-shadow: 0 10px 43.75px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(26.25px);
}

.riddle-panel::before {
  position: absolute;
  inset: 31px 38px 50px 39px;
  z-index: 0;
  content: "";
  border-radius: 24px;
  opacity: 0.18;
  background: url("./assets/screen-default.png") center / cover no-repeat;
  filter: saturate(0.78) brightness(1.18);
  pointer-events: none;
}

.riddle-ribbon {
  position: absolute;
  left: 162px;
  top: -40px;
  z-index: 3;
  width: 468px;
  height: 113px;
}

.riddle-ribbon svg {
  position: absolute;
  left: 0;
  top: 21px;
  width: 468px;
  height: 74px;
  overflow: visible;
}

.riddle-ribbon path {
  fill: #633b99;
}

.riddle-ribbon span {
  position: absolute;
  left: 35px;
  top: 4px;
  display: flex;
  width: 400px;
  height: 108px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3.1px;
  line-height: 42px;
  text-align: center;
}

.riddle-panel h1 {
  position: absolute;
  left: 74px;
  top: 123px;
  display: flex;
  width: 645px;
  height: 240px;
  margin: 0;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: rgba(0, 0, 0, 0.75);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 80px;
  text-align: center;
  white-space: pre-line;
}

.riddle-panel h1.question-intro {
  color: rgba(0, 0, 0, 0.85);
  font-size: 70px;
  line-height: 80px;
  animation: question-number-pop 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes question-number-pop {
  from {
    opacity: 0;
    transform: scale(0.68);
  }
  72% {
    opacity: 1;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.riddle-panel p,
.clue-tags,
.hint-credit,
.game-mode,
.game-topbar {
  display: none;
}

.answer-reveal {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 90px;
  z-index: 3;
  transform: translateX(-50%);
  border: 2px solid rgba(99, 59, 153, 0.45);
  border-radius: 999px;
  padding: 10px 23px;
  color: #633b99;
  background: rgba(255, 255, 255, 0.88);
  font-size: 26px;
  font-weight: 700;
}

.answer-reveal.visible {
  display: none;
  animation: pop 260ms ease;
}

.reveal-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  color: rgba(0, 0, 0, 0.78);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: center;
}

.reveal-stars {
  position: absolute;
  left: 112px;
  top: -19px;
  width: 538px;
  height: 538px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 243, 152, 0.42) 0 8%, transparent 9%),
    radial-gradient(circle at 32% 38%, rgba(255, 246, 177, 0.5) 0 2%, transparent 4%),
    radial-gradient(circle at 71% 30%, rgba(255, 246, 177, 0.42) 0 1.5%, transparent 3.5%),
    radial-gradient(circle at 50% 50%, rgba(179, 106, 255, 0.34), transparent 45%);
  filter: blur(0.3px);
  opacity: 0.92;
  mix-blend-mode: screen;
}

.reveal-kicker {
  position: absolute;
  left: 347px;
  top: 133px;
  width: 146px;
  height: 59px;
  font-size: 32px;
  font-weight: 500;
  line-height: 59px;
}

.reveal-answer-text {
  position: absolute;
  left: 316px;
  top: 199px;
  width: 200px;
  height: 97px;
  color: #1f2937;
  font-size: 80px;
  font-weight: 700;
  line-height: 97px;
  white-space: nowrap;
}

.reveal-answer-text::before {
  position: absolute;
  left: -92px;
  top: -38px;
  z-index: -1;
  width: 344px;
  height: 168px;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 246, 158, 0.8), rgba(255, 212, 91, 0.34) 42%, transparent 70%);
  filter: blur(10px);
}

.reveal-seat-line {
  position: absolute;
  left: 265px;
  top: 371px;
  display: inline-grid;
  min-width: 281px;
  height: 58px;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 32px;
  font-weight: 500;
  line-height: 58px;
}

.reveal-seat-line strong {
  color: #6e42ad;
  font-weight: 800;
}

.host-bubble {
  position: absolute;
  left: 916px;
  top: 155px;
  z-index: 6;
  display: flex;
  width: 494px;
  height: 167px;
  align-items: flex-start;
  border-radius: 40px;
  padding: 22px 40px;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 8px 21px rgba(0, 0, 0, 0.15);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 52px;
  overflow: visible;
  overflow-wrap: anywhere;
  transition:
    top 180ms ease,
    height 180ms ease,
    font-size 180ms ease,
    line-height 180ms ease;
}

.host-bubble-text {
  display: block;
  width: 100%;
}

.host-bubble.medium-text {
  top: 132px;
  height: 190px;
  padding-top: 24px;
  font-size: 30px;
  line-height: 44px;
}

.host-bubble.long-text {
  top: 102px;
  height: 220px;
  padding-top: 26px;
  font-size: 26px;
  line-height: 38px;
}

.host-bubble.long-text .host-bubble-text {
  display: -webkit-box;
  max-height: 152px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.host-bubble.thinking {
  justify-content: center;
  align-items: center;
  color: #633b99;
  background:
    radial-gradient(circle at calc(50% - 67px) 50%, rgba(149, 73, 228, 0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 50%, rgba(149, 73, 228, 0.72) 0 6px, transparent 7px),
    radial-gradient(circle at calc(50% + 67px) 50%, rgba(149, 73, 228, 0.48) 0 6px, transparent 7px),
    rgba(255, 255, 255, 0.95);
  animation: host-thinking-pulse 900ms ease-in-out infinite alternate;
}

.host-bubble.thinking::before {
  content: "AI 思考中";
  margin-left: 126px;
  font-size: 23px;
  opacity: 0.78;
}

.host-bubble.thinking .host-bubble-text {
  display: none;
}

.host-bubble::after {
  position: absolute;
  left: 87px;
  top: calc(100% - 1px);
  width: 57px;
  height: 51px;
  content: "";
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.host-avatar {
  position: absolute;
  left: 922px;
  top: 287px;
  z-index: 0;
  display: block;
  width: 440px;
  height: 605px;
  margin: 0;
  pointer-events: none;
  overflow: visible;
}

.host-avatar img {
  position: absolute;
  left: 0;
  top: 0;
  width: 440px;
  height: 605px;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  filter: none;
  transition: filter 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.host-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.host-avatar canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 440px;
  height: 605px;
  max-width: none;
  display: block;
  background: transparent;
}

.host-avatar img[hidden],
.host-avatar canvas[hidden] {
  display: none;
}

.host-avatar.thinking img {
  animation: passenger-thinking 800ms ease-in-out infinite alternate;
}

.host-avatar[data-avatar-state="smile"] img {
  filter: brightness(1.04) saturate(1.06) drop-shadow(0 0 18px rgba(255, 237, 165, 0.18));
}

.host-avatar[data-avatar-state="awkward"] img {
  filter: saturate(0.92) hue-rotate(-4deg) drop-shadow(0 0 14px rgba(255, 189, 189, 0.14));
}

.host-avatar[data-avatar-state="excited"] img {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.03) saturate(1.08) drop-shadow(0 0 22px rgba(255, 234, 127, 0.28));
}

.host-avatar.thinking[data-avatar-state] img {
  transform: none;
  filter: none;
}

.remaining-questions {
  position: absolute;
  left: 300px;
  top: 413px;
  z-index: 2;
  color: #fff;
  filter: drop-shadow(0 0 0.438px rgba(0, 0, 0, 0.3));
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 42px;
  text-align: left;
  white-space: nowrap;
}

.summary-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #20242b;
}

.summary-title-asset {
  position: absolute;
  left: 201px;
  top: 21px;
  width: 625px;
  height: 196px;
  object-fit: contain;
}

.summary-light {
  position: absolute;
  left: 231px;
  top: 363px;
  width: 621px;
  height: 347px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 76%, rgba(255, 238, 117, 0.46), transparent 36%),
    radial-gradient(ellipse at 50% 42%, rgba(151, 92, 255, 0.26), transparent 54%);
  filter: blur(10px);
  mix-blend-mode: screen;
}

.summary-stats {
  position: absolute;
  left: 250px;
  top: 281px;
  z-index: 2;
  width: 528px;
  height: 53px;
  color: rgba(0, 0, 0, 0.78);
  font-size: 34px;
  font-weight: 700;
  line-height: 53px;
  text-align: center;
  white-space: pre;
}

.summary-mvp-asset {
  position: absolute;
  left: 419px;
  top: 351px;
  z-index: 2;
  width: 210px;
  height: 107px;
  object-fit: contain;
}

.summary-mvp-name {
  position: absolute;
  left: 450px;
  top: 452px;
  z-index: 3;
  width: 139px;
  height: 43px;
  color: #6d3eb2;
  font-size: 64px;
  font-weight: 700;
  line-height: 43px;
  text-align: center;
  white-space: nowrap;
}

.summary-continue {
  position: absolute;
  left: 232px;
  top: 633px;
  z-index: 4;
  width: 573px;
  height: 157px;
  border: 0;
  padding: 0;
  background: transparent;
}

.summary-continue img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-reveal .riddle-panel h1,
.screen-reveal .remaining-questions {
  display: none;
}

.screen-reveal .reveal-stage {
  display: block;
}

.screen-summary .pencil-game-icon,
.screen-summary .pencil-title,
.screen-summary .pencil-progress-rail,
.screen-summary .question-counter,
.screen-summary .round-pill,
.screen-summary .riddle-panel {
  display: none;
}

.screen-summary .summary-stage {
  display: block;
}

.screen-summary .host-bubble {
  top: 155px;
  height: 167px;
  padding: 22px 40px;
  font-size: 28px;
  line-height: 43px;
}

.screen-summary .host-bubble.medium-text,
.screen-summary .host-bubble.long-text {
  top: 135px;
  height: 187px;
  font-size: 25px;
  line-height: 38px;
}

.screen-summary .host-bubble.long-text .host-bubble-text {
  max-height: 152px;
}

.remaining-questions strong {
  color: #fff;
  font-size: 26px;
}

.control-region {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  overflow: hidden;
  border-top: 10px solid var(--screen-divider);
  padding: 0 24px 14px;
  color: #f4f6fb;
  background: #090711;
}

.control-region > .region-title {
  height: 32px;
  margin: 0 -24px;
  font-size: 14px;
}

.control-header {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 24px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(126, 150, 181, 0.2);
  padding: 2px 0 10px;
}

.scenario-meta {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0;
}

.scenario-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.scenario-line strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #35d9aa;
}

.control-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.control-label {
  color: #a5b5ca;
  font-size: 14px;
  font-weight: 850;
}

input,
select {
  min-height: 38px;
  border: 1px solid rgba(39, 45, 56, 0.2);
  border-radius: 7px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: #7551a1;
  box-shadow: 0 0 0 3px rgba(117, 81, 161, 0.14);
}

.ghost-button,
.reset-button,
#startTimeline,
#sendQuestion {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 16px;
  color: #f7f8fc;
  background: #27364b;
  font-size: 14px;
  font-weight: 850;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

#startTimeline.primary-start {
  min-width: 178px;
  min-height: 66px;
  border: 1px solid #fff;
  border-radius: 8px;
  color: #171923;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  font-size: 20px;
  font-weight: 850;
  transform-origin: center;
  animation: start-button-pulse 1.8s ease-in-out infinite;
}

#startTimeline.primary-start:hover,
#startTimeline.primary-start:focus-visible {
  animation-play-state: paused;
  transform: scale(1.04);
}

.ghost-button {
  color: #171923;
  background: #fff;
  border-color: #fff;
}

#switchScenario {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #20c997;
  color: #fff;
  background: #20c997;
}

#switchScenario:hover:not(:disabled) {
  border-color: #35d9aa;
  color: #fff;
  background: #35d9aa;
}

#pauseTimeline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #171923;
}

#pauseTimeline::before {
  width: 14px;
  content: "Ⅱ";
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.button-icon {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.ghost-button:hover:not(:disabled) {
  border-color: #dfe4ec;
  color: #171923;
  background: #edf1f6;
}

#pauseTimeline.is-paused {
  border-color: #9b6bff;
  color: #fff;
  background: #8657ed;
}

#pauseTimeline.is-paused::before {
  content: "▶";
  font-size: 11px;
}

.reset-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #20c997;
  color: #071710;
  background: #20c997;
}

.reset-button::before {
  width: 14px;
  content: "↺";
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.reset-button:hover:not(:disabled) {
  border-color: #35d9aa;
  color: #071710;
  background: #35d9aa;
}

.prestart-panel {
  display: grid;
  min-height: 238px;
  place-items: center;
  align-content: center;
  gap: 18px;
}

.prestart-panel p {
  margin: 0;
  color: #35d9aa;
  font-size: 15px;
  font-weight: 700;
}

#sendQuestion {
  min-width: 108px;
  color: #071710;
  background: #20c997;
}

#sendQuestion:hover:not(:disabled),
#startTimeline.primary-start:hover:not(:disabled) {
  background: #edf7f3;
}

#sendQuestion:hover:not(:disabled) {
  background: #35d9aa;
}

.decision-card {
  min-width: 0;
  border: 2px solid rgba(32, 39, 49, 0.12);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.5);
}

.panel-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.decision-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.decision-card div {
  min-width: 0;
}

.decision-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.decision-card dd {
  margin: 2px 0 0;
  color: #263545;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
}

.control-grid {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  overflow: hidden;
  padding: 3px 0 2px;
}

.control-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
  gap: 10px;
}

.environment-row {
  grid-template-columns: 92px 1fr;
  align-items: start;
}

.control-row:last-child {
  grid-template-columns: 92px 1fr;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip,
.event-button {
  min-height: 34px;
  border: 1px solid #33445b;
  border-radius: 7px;
  padding: 0 11px;
  color: #9cafc7;
  background: #111a29;
  font-size: 13px;
  font-weight: 800;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.chip:hover:not(:disabled) {
  border-color: #7553bb;
  color: #e8ddff;
  background: #1a1830;
}

.chip.active {
  border-color: #9b6bff;
  color: white;
  background: #8657ed;
  box-shadow: 0 4px 12px rgba(108, 67, 207, 0.3);
}

.event-button {
  border-color: #3b4d65;
  color: #c5d2e2;
  background: #1c293b;
}

.event-button:hover:not(:disabled) {
  border-color: #60738d;
  color: #fff;
  background: #293a50;
}

.event-button:disabled {
  border-color: #39404a;
  color: #7d8795;
  background: #202630;
}

.destination-input {
  width: 80px;
}

.ask-bar {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  min-height: 50px;
}

.fixed-speaker {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  border: 0;
  border-radius: 0;
  color: #f4f6fb;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.fixed-speaker::before {
  content: none;
}

.ask-bar input {
  min-width: 0;
}

.control-region input {
  border-color: #35465d;
  color: #f3f6fa;
  background: #0f1826;
}

.control-region input::placeholder {
  color: #697c96;
}

.control-region input:focus {
  border-color: #9063ed;
  box-shadow: 0 0 0 3px rgba(144, 99, 237, 0.18);
}

.control-ask-bar {
  align-self: end;
  align-items: center;
  border: 1px solid #2d3c51;
  border-radius: 8px;
  padding: 8px 9px;
  background: #0e1522;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.control-region button:focus-visible,
.control-region input:focus-visible {
  outline: 3px solid rgba(155, 107, 255, 0.3);
  outline-offset: 2px;
}

.control-region button:disabled,
.control-region input:disabled {
  opacity: 0.38;
  box-shadow: none;
}

.timeline-paused .control-region {
  background: #0d0a16;
}

.simulation-frozen *,
.simulation-frozen *::before,
.simulation-frozen *::after {
  animation-play-state: paused !important;
}

.simulation-frozen button:not(#pauseTimeline),
.simulation-frozen input {
  pointer-events: none;
}

.hidden {
  display: none !important;
}

body:not(.has-started) .control-grid,
body:not(.has-started) .control-ask-bar,
body:not(.has-started) #pauseTimeline,
body:not(.has-started) #resetScenario {
  display: none;
}

body.has-started #switchScenario,
body.has-started .prestart-panel {
  display: none;
}

@keyframes control-status-pulse {
  from {
    opacity: 0.48;
  }
  to {
    opacity: 1;
  }
}

@keyframes start-button-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 14px 32px rgba(32, 201, 151, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  #startTimeline.primary-start {
    animation: none;
  }
}

.is-paused .car-cabin {
  box-shadow:
    inset 0 0 0 14px rgba(255, 255, 255, 0.4),
    0 0 0 12px rgba(212, 93, 82, 0.2),
    0 22px 50px rgba(28, 43, 50, 0.22);
}

.is-victory .game-region {
  background: #111117;
}

@keyframes pop {
  from {
    transform: scale(0.92);
  }
  to {
    transform: scale(1);
  }
}

@keyframes laugh {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-6px) rotate(-2deg);
  }
  70% {
    transform: translateY(-2px) rotate(2deg);
  }
}

@keyframes passenger-thinking {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-4px);
  }
}

@keyframes host-thinking-pulse {
  from {
    box-shadow: 0 16px 34px rgba(38, 56, 64, 0.12);
  }

  to {
    box-shadow:
      0 16px 34px rgba(38, 56, 64, 0.12),
      0 0 0 6px rgba(80, 123, 157, 0.12);
  }
}

@keyframes passenger-celebrate {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* Figma Page 1 fidelity layer: all coordinates use the 1440 x 810 game canvas. */
.game-screen {
  background-image: url("./assets/screen-default.png");
  background-position: center;
  background-size: cover;
}

.screen-reveal {
  background-image: url("./assets/screen-default.png");
}

.screen-reveal .pencil-game-icon img {
  content: url("./assets/game-icon.png");
}

.screen-reveal .ticket-mark img {
  content: url("./assets/question-icon.svg");
}

.screen-reveal .riddle-ribbon > img {
  content: url("./assets/figma-reveal-ribbon.svg");
}

.screen-reveal .host-bubble-tail {
  content: url("./assets/bubble-tail.svg");
}

.screen-summary {
  background-image: url("./assets/screen-default.png");
}

.screen-summary .host-bubble-tail {
  content: url("./assets/bubble-tail.svg");
}

.game-screen::before {
  display: none;
}

.pencil-game-icon {
  background: none;
}

.pencil-game-icon img {
  display: block;
  width: 47px;
  height: 47px;
  object-fit: cover;
}

.ticket-mark::before {
  display: none;
}

.ticket-mark img {
  display: block;
  width: 29px;
  height: 24px;
  margin: 1px 0 0 4px;
}

.riddle-panel {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(240, 244, 255, 0.5);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(30px);
}

.riddle-ribbon {
  overflow: visible;
}

.riddle-ribbon svg {
  display: none;
}

.riddle-ribbon > img {
  position: absolute;
  left: -20px;
  top: 5px;
  width: 508px;
  height: 114px;
  max-width: none;
}

.riddle-ribbon span {
  left: 0;
  top: 15px;
  width: 468px;
  height: 42px;
  line-height: 42px;
}

.remaining-questions {
  top: 412px;
  font-size: 25px;
  line-height: 32px;
}

.remaining-questions strong {
  font-size: 32px;
  color: #facc15;
}

.host-bubble {
  box-shadow: 0 8px 10.5px rgba(0, 0, 0, 0.15);
}

.host-bubble::after {
  display: none;
}

.host-bubble-tail {
  position: absolute;
  left: 87px;
  top: 167px;
  display: block;
  width: 57px;
  height: 51px;
  pointer-events: none;
}

.reveal-ring {
  position: absolute;
  left: 224px;
  top: 158px;
  width: 344px;
  height: 168px;
  object-fit: fill;
  opacity: 0.4;
}

.reveal-stars {
  left: 111px;
  top: -20px;
  width: 538px;
  height: 538px;
  object-fit: fill;
  background: none;
  filter: none;
  opacity: 0.6;
  mix-blend-mode: normal;
}

.reveal-kicker {
  color: rgba(0, 0, 0, 0.65);
}

.reveal-answer-text {
  color: #633b99;
  text-shadow: 0 4px 70px #fff;
}

.reveal-answer-text::before {
  display: none;
}

.reveal-seat-line {
  left: 264px;
  top: 370px;
  width: 281px;
  min-width: 0;
  background: rgba(215, 188, 251, 0.3);
}

.reveal-seat-line strong {
  color: #facc15;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.reveal-seat-line span {
  color: rgba(0, 0, 0, 0.7);
}

.summary-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12.5px);
}

.summary-stage > * {
  position: absolute;
  z-index: 1;
}

.summary-beam-right {
  left: 937px;
  top: -435px;
  width: 1064px;
  height: 1064px;
}

.summary-beam-left {
  left: -505px;
  top: -284px;
  width: 942px;
  height: 942px;
}

.summary-beam-right img,
.summary-beam-left img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.summary-beam-right img {
  transform: scaleX(-1);
}

.summary-mosaic {
  left: 55px;
  top: 109px;
  width: 917px;
  height: 601px;
  object-fit: fill;
}

.summary-light-ring {
  left: 256px;
  top: 156px;
  width: 536px;
  height: 536px;
  object-fit: fill;
  opacity: 0.35;
  will-change: opacity;
  animation: summary-light-ring-breathe 4s ease-in-out infinite;
}

@keyframes summary-light-ring-breathe {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.8;
  }
}

.summary-light-base {
  left: 231px;
  top: 363px;
  width: 621px;
  height: 347px;
  object-fit: fill;
}

.summary-bright-light {
  left: 327px;
  top: 176px;
  width: 388px;
  height: 517px;
  object-fit: fill;
  opacity: 0.4;
}

.summary-confetti {
  left: -20px;
  top: -190px;
  width: 1489px;
  height: 1489px;
  object-fit: fill;
}

.summary-confetti-canvas {
  position: absolute;
  inset: 0;
  z-index: 25 !important;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.summary-title-asset {
  left: 231px;
  top: 51px;
  width: 565px;
  height: 136px;
  object-fit: fill;
  filter: drop-shadow(0 4px 30px #4f2c69);
}

.summary-stats {
  left: 250px;
  top: 281px;
  width: 528px;
  height: 53px;
  display: block;
  color: #fff;
  font-size: 48px;
  font-weight: 500;
  line-height: 53px;
  text-align: left;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.summary-stats strong {
  margin: 0 8px;
  color: transparent;
  background: linear-gradient(90deg, #facc15 0%, #f0c863 31.731%, #facc15 65.865%, #ffeb9a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 64px;
  font-weight: 700;
  line-height: 53px;
}

.summary-gap {
  display: inline-block;
  width: 42px;
}

.summary-mvp-asset {
  left: 419px;
  top: 351px;
  width: 209px;
  height: 106px;
  object-fit: fill;
}

.summary-mvp-name {
  left: 450px;
  top: 451px;
  width: 139px;
  height: 43px;
  color: transparent;
  background: linear-gradient(90deg, #facc15 0%, #f5e9b8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 64px;
  font-weight: 700;
  line-height: 43px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.summary-mvp-group {
  left: 419px;
  top: 351px;
  z-index: 10 !important;
  width: 209px;
  height: 143px;
  opacity: 0;
  transform-origin: 50% 48%;
  animation: summary-mvp-emphasis 1800ms cubic-bezier(0.22, 0.9, 0.32, 1) 3500ms both;
  will-change: transform;
}

.summary-mvp-group .summary-mvp-asset {
  left: 0;
  top: 0;
  width: 209px;
  height: 106px;
}

.summary-mvp-group .summary-mvp-name {
  left: 31px;
  top: 100px;
  width: 139px;
  height: 43px;
}

@keyframes summary-mvp-emphasis {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  18% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(2.6);
  }

  78%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.summary-continue {
  left: 257px;
  top: 658px;
  width: 523px;
  height: 107px;
  filter: drop-shadow(0 2px 25px #6d30bd);
}

.summary-continue img {
  width: 523px;
  height: 107px;
  object-fit: fill;
}

.screen-summary .host-avatar {
  z-index: 7;
}

.screen-summary .host-bubble {
  z-index: 8;
}

/* Last-order overrides: keep these after the Figma coordinate layer. */
.riddle-panel {
  isolation: isolate;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}

.riddle-panel::before {
  display: none;
}

.riddle-ribbon span {
  top: 16px;
  height: 42px;
  align-items: center;
  line-height: 42px;
}

.reveal-kicker,
.reveal-answer-text {
  left: 0;
  width: 100%;
  text-align: center;
}

.reveal-answer-text {
  -webkit-text-stroke: 5px rgba(255, 255, 255, 0.92);
  paint-order: stroke fill;
  text-shadow:
    0 4px 70px rgba(255, 255, 255, 0.95),
    0 0 2px rgba(255, 255, 255, 0.95);
}

.summary-stage::before {
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
}

.summary-stats {
  letter-spacing: 1.5px;
}

.summary-stats strong {
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.summary-mvp-name {
  text-align: center;
  -webkit-text-fill-color: transparent;
}

.host-bubble {
  overflow: visible;
  overflow-wrap: normal;
  word-break: break-all;
}

.host-bubble-text {
  min-width: 0;
  overflow: hidden;
}

.host-bubble.medium-text .host-bubble-text {
  display: -webkit-box;
  max-height: 132px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.host-bubble.medium-text .host-bubble-tail {
  top: 190px;
}

.host-bubble.long-text .host-bubble-tail {
  top: 220px;
}

.screen-summary .host-bubble.medium-text .host-bubble-tail,
.screen-summary .host-bubble.long-text .host-bubble-tail {
  top: 187px;
}

.host-avatar.thinking img {
  animation: none;
}

/* Game preparation state from Figma node 134:45. */
.ready-stage {
  display: none;
}

.screen-ready {
  background-image: url("./assets/screen-default.png");
}

.screen-ready::before {
  display: block;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
}

.screen-ready .pencil-game-icon,
.screen-ready .pencil-title,
.screen-ready .pencil-progress-rail,
.screen-ready .question-counter,
.screen-ready .round-pill,
.screen-ready .riddle-panel,
.screen-ready .summary-stage {
  display: none;
}

.screen-ready .ready-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  overflow: hidden;
}

.ready-stage > img,
.ready-stage > span,
.ready-stage > button {
  position: absolute;
}

.ready-sound-toggle {
  right: 40px;
  top: 30px;
  z-index: 6;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(43, 27, 69, 0.46);
  box-shadow: 0 6px 18px rgba(24, 12, 43, 0.24);
  cursor: pointer;
  backdrop-filter: blur(9px);
}

.ready-sound-toggle:hover {
  background: rgba(95, 54, 136, 0.68);
}

.ready-sound-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.ready-sound-icon {
  font-size: 27px;
  line-height: 1;
}

.ready-sound-toggle[aria-pressed="false"] {
  opacity: 0.72;
}

.game-sound-toggle {
  position: absolute;
  top: 111px;
  right: 31px;
  z-index: 7;
  display: none;
  background: rgba(78, 78, 78, 0.09);
}

.screen-playing .game-sound-toggle {
  display: grid;
}

.screen-reveal .game-sound-toggle {
  display: grid;
}

.game-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ready-beam-right {
  left: 937px;
  top: -435px;
  width: 1064px;
  height: 1064px;
}

.ready-ring-mosaic {
  left: 0;
  top: 34px;
  width: 1458px;
  height: 820px;
  opacity: 0.4;
  object-fit: fill;
}

.ready-panel-mosaic {
  left: 152px;
  top: 242px;
  width: 641px;
  height: 420px;
  object-fit: fill;
}

.ready-beam-left {
  left: -505px;
  top: -284px;
  width: 942px;
  height: 942px;
}

.ready-beam-right img,
.ready-beam-left img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.ready-beam-right img {
  transform: scaleX(-1);
}

.ready-logo {
  left: 202px;
  top: 123px;
  width: 641px;
  height: 219px;
  object-fit: fill;
}

.ready-rules {
  position: absolute;
  left: 167px;
  top: 360px;
  width: 693px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 62px;
  text-align: center;
}

.ready-rules p {
  margin: 0;
}

.ready-rules span {
  color: #facc15;
}

.ready-start-button {
  left: 252px;
  top: 603px;
  width: 523px;
  height: 107px;
  border: 0;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 2px 25px #6d30bd);
}

.ready-start-button img,
.summary-continue img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.ready-start-button span,
.summary-continue span {
  position: absolute;
  left: 0;
  top: 7px;
  width: 100%;
  height: 80px;
  color: #fff;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 80px;
  text-align: center;
  white-space: nowrap;
}

.screen-ready .host-avatar {
  z-index: 7;
}

.screen-ready .host-bubble {
  z-index: 8;
  height: 167px;
  padding: 32px;
  font-size: 36px;
  line-height: 43px;
}

.screen-ready .host-bubble-text {
  width: 418px;
  margin-left: 8px;
}

.summary-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.summary-continue span {
  z-index: 1;
}

/* Final Figma adjustments for the preparation page and shared host bubbles. */
.screen-ready::before {
  background: rgba(0, 0, 0, 0.8);
}

.screen-ready .ready-beam-left {
  transform-origin: 505px 284px;
  will-change: transform;
  animation: ready-beam-sway-left 2.5s ease-in-out infinite alternate;
}

.screen-ready .ready-beam-right {
  transform-origin: 503px 435px;
  will-change: transform;
  animation: ready-beam-sway-right 2.5s ease-in-out infinite alternate;
}

.screen-summary .summary-beam-left {
  transform-origin: 505px 284px;
  will-change: transform;
  animation: ready-beam-sway-left 2.5s ease-in-out infinite alternate;
}

.screen-summary .summary-beam-right {
  transform-origin: 503px 435px;
  will-change: transform;
  animation: ready-beam-sway-right 2.5s ease-in-out infinite alternate;
}

.game-screen.screen-summary {
  background-image: url("./assets/screen-scenic-sunset.png");
}

.game-screen.screen-summary .game-screen-background {
  filter: none;
}

@keyframes ready-beam-sway-left {
  from { transform: rotate(-10deg); }
  to { transform: rotate(10deg); }
}

@keyframes ready-beam-sway-right {
  from { transform: rotate(10deg); }
  to { transform: rotate(-10deg); }
}

.ready-panel-mosaic {
  left: 96px;
  top: 165px;
  width: 764px;
  height: 501px;
  opacity: 0.5;
}

.ready-logo {
  left: 193px;
  top: 124px;
  box-shadow: none;
  filter: drop-shadow(4px 4px 30px rgba(0, 0, 0, 0.6));
}

.ready-rules {
  top: 373px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 30px;
  line-height: 55px;
  text-shadow: 0 0 100px rgba(0, 0, 0, 0.6);
}

.ready-start-button {
  filter: none;
}

.summary-continue {
  filter: none;
}

.ready-start-button img,
.summary-continue img {
  filter: drop-shadow(0 2px 30px #6d30bd);
}

/* The Figma bubble tail is a 26 x 21 white inner icon inside a larger wrapper. */
.host-bubble-tail {
  display: none;
}

.host-bubble::after {
  display: block;
  position: absolute;
  left: 103px;
  top: calc(100% - 1px);
  width: 26px;
  height: 21px;
  content: "";
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 2;
}

/* V1.4 cabin presentation, matched to the 810 x 1080 Figma frame. */
.cabin-region {
  background: #10151e;
}

.cabin-region .environment-backdrop {
  position: absolute;
  inset: 0;
  background: url("./assets/cabin-env-scenic-sunset.png") center top / 810px 651px no-repeat;
  filter: none;
  transition: none;
}

.cabin-region .environment-backdrop-image {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 810px;
  height: 651px;
  object-fit: fill;
  object-position: center top;
  pointer-events: none;
}

.cabin-region .environment-backdrop::before {
  display: none;
}

.cabin-region .cabin-glass {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 810px;
  height: 654px;
  background: rgba(0, 0, 0, 0.004);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  pointer-events: none;
}

.cabin-region .cabin-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 810px;
  height: 1080px;
  padding: 0;
  overflow: hidden;
}

.cabin-region .scene-badges {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: block;
  pointer-events: none;
}

.cabin-region .scene-badges > span {
  position: absolute;
  top: 62px;
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 23px;
  padding: 0 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 11px rgba(255, 178, 243, 0.24);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
}

.cabin-region .scene-badges img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cabin-region .scene-badges b {
  font: inherit;
}

.cabin-region .environment-badge {
  left: 43px;
  width: 236px;
}

.cabin-region .destination-badge {
  left: 402px;
  width: 194px;
  font-size: 16px;
  font-weight: 500;
}

.cabin-region .speed-badge {
  left: 616px;
  width: 149px;
  font-weight: 500;
}

.cabin-region .cabin-decision-card {
  position: absolute;
  z-index: 9;
  left: 43px;
  top: 129px;
  width: 724px;
  height: 194px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 14px 1px rgba(255, 178, 243, 0.2);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
}

.cabin-region .cabin-decision-card .panel-kicker {
  position: absolute;
  left: 17px;
  top: 11px;
  display: block;
  width: 688px;
  height: 31px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
}

.cabin-region .cabin-decision-card dl {
  position: absolute;
  left: 17px;
  top: 49px;
  display: grid;
  width: 690px;
  grid-template-columns: 190px 190px 190px;
  column-gap: 57px;
  margin: 0;
}

.cabin-region .cabin-decision-card dl > div {
  position: relative;
  min-width: 0;
}

.cabin-region .cabin-decision-card dl > div.is-blocked {
  visibility: hidden;
}

.cabin-region .cabin-decision-card dl > div.has-content:not(:last-child)::after {
  position: absolute;
  right: -43px;
  top: 20px;
  color: #ffd56a;
  content: "→";
  font-size: 25px;
  font-weight: 900;
  line-height: 28px;
}

.cabin-region .cabin-decision-card dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
}

.cabin-region .decision-priority {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 11px;
  line-height: 17px;
  white-space: nowrap;
  color: #74e7cd;
  background: rgba(0, 0, 0, 0.18);
}

.cabin-region .decision-priority[hidden] { display: none; }
.cabin-region .decision-priority[data-priority="P0"] { color: #ff9294; }
.cabin-region .decision-priority[data-priority="P1"] { color: #ffd56a; }
.cabin-region .decision-priority[data-priority="P3"] { color: #a9d8ff; }
.cabin-region .decision-priority[data-priority="P4"] { color: #e5c1f5; }

.cabin-region .cabin-decision-card dd {
  display: block;
  max-height: 100px;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
}

.cabin-region .important-event {
  position: absolute;
  z-index: 10;
  left: 43px;
  top: 337px;
  display: flex;
  width: max-content;
  max-width: calc(100% - 86px);
  height: 56px;
  box-sizing: border-box;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 30px;
  padding: 0 20px;
  overflow: hidden;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 14px 1px rgba(255, 178, 243, 0.2);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  visibility: hidden;
}

.cabin-region .important-event.visible,
.cabin-region .important-event.hiding {
  visibility: visible;
}

.cabin-region .important-event.visible {
  animation: important-event-enter 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left center;
}

.cabin-region .important-event.hiding {
  animation: important-event-exit 320ms cubic-bezier(0.4, 0, 0.8, 0.2) both;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.cabin-region .important-event img {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cabin-region .important-event span {
  display: block;
  min-width: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  white-space: nowrap;
}

@keyframes important-event-enter {
  from {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left center;
  }
}

@keyframes important-event-exit {
  from {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left center;
  }
  to {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
  }
}

.cabin-region .car-cabin {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 810px;
  height: 1080px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: url("./assets/cabin-interior.png") center -5px / 811px 1085px no-repeat;
  box-shadow: none;
  pointer-events: none;
}

.cabin-region .car-cabin::before {
  display: none;
}

.cabin-region .seat {
  position: absolute;
  z-index: 3;
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff;
  cursor: default;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transition: none;
  animation: none !important;
}

.cabin-region .seat-rear-left {
  left: 36px;
  top: 398px;
  width: 415px;
  height: 341px;
}

.cabin-region .seat-rear-right {
  left: 354px;
  top: 398px;
  width: 415px;
  height: 341px;
}

.cabin-region .seat-front {
  left: -2px;
  top: 680px;
  width: 478px;
  height: 400px;
}

.cabin-region .seat-driver {
  left: 344px;
  top: 680px;
  width: 478px;
  height: 400px;
}

.cabin-region .seat-correct-light {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 69px;
  width: 415px;
  height: 295px;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 220ms ease,
    transform 320ms ease;
}

.cabin-region .seat-front .seat-correct-light,
.cabin-region .seat-driver .seat-correct-light {
  top: 62px;
  width: 478px;
  height: 340px;
}

.cabin-region .seat.ambient-on .seat-correct-light {
  opacity: 1;
  transform: scale(1);
  animation: cabin-light-bloom 800ms ease-out both;
}

.cabin-region .passenger-figure {
  position: absolute;
  z-index: 2;
  width: 220px;
  height: 220px;
  object-fit: contain;
  transition: none;
  animation: none !important;
}

.cabin-region .seat-rear-left .passenger-figure {
  left: 103px;
  top: 88px;
}

.cabin-region .seat-rear-right .passenger-figure {
  left: 103px;
  top: 79px;
}

.cabin-region .seat-front .passenger-figure {
  left: 97px;
  top: 67px;
  width: 282px;
  height: 282px;
}

.cabin-region .seat-driver .passenger-figure {
  left: 106px;
  top: 67px;
  width: 282px;
  height: 282px;
}

.cabin-region .seat.sleeping .passenger-figure {
  opacity: 1;
  filter: none;
}

.cabin-region .cabin-sleep-shade {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.cabin-sleep-shade-rear-left { left: 2px; top: 370px; }
.cabin-sleep-shade-rear-right { left: 292px; top: 375px; }
.cabin-sleep-shade-front { left: -47px; top: 633px; }
.cabin-sleep-shade-driver { left: 299px; top: 649px; }

.cabin-region .cabin-zone-comfort {
  position: absolute;
  z-index: 5;
  display: grid;
  width: 147px;
  height: 44px;
  grid-template-rows: 14px 14px;
  row-gap: 6px;
  border-radius: 10px;
  padding: 4px 11px 6px;
  color: #45e6b5;
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  text-align: left;
  -webkit-backdrop-filter: blur(3.5px);
  backdrop-filter: blur(3.5px);
  pointer-events: none;
}

.cabin-zone-comfort-rear-left { left: 170px; top: 635px; }
.cabin-zone-comfort-rear-right { left: 484px; top: 635px; }
.cabin-zone-comfort-front { left: 151px; top: 968px; }
.cabin-zone-comfort-driver { left: 509px; top: 968px; }

.cabin-zone-setting {
  display: grid;
  grid-template-columns: 14px 48px max-content;
  column-gap: 4px;
  align-items: center;
  white-space: nowrap;
}

.cabin-zone-setting b {
  color: #fff;
  font-weight: 500;
}

.cabin-sleep-shade[hidden],
.cabin-region .cabin-zone-comfort[hidden] {
  display: none;
}

.cabin-region .seat-info {
  position: absolute;
  z-index: 4;
  left: 118px;
  top: 281px;
  display: flex;
  width: 179px;
  height: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(101, 101, 101, 0.6);
  box-shadow: 0 5px 12px rgba(0, 8, 20, 0.22);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  backdrop-filter: blur(8px) saturate(115%);
}

.cabin-region .seat-rear-right .seat-info {
  left: 114px;
}

.cabin-region .seat-front .seat-info {
  left: 117px;
  top: 332px;
  width: 218px;
}

.cabin-region .seat-driver .seat-info {
  left: 129px;
  top: 332px;
  width: 218px;
}

.cabin-region .seat-info strong {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.cabin-region .seat-info small {
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.cabin-region .speech-bubble {
  position: absolute;
  z-index: 6;
  left: 32px;
  top: 0;
  bottom: auto;
  display: none;
  width: 256px;
  height: 104px;
  align-items: center;
  border: 0;
  border-radius: 20px;
  padding: 16px 24px;
  overflow: visible;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 8px 10.5px rgba(0, 0, 0, 0.15);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  text-align: left;
  transform: none;
}

.cabin-region .speech-bubble::after {
  position: absolute;
  left: calc(50% - 13px);
  bottom: -20px;
  width: 26px;
  height: 21px;
  background: url("./assets/cabin-bubble-tail.svg") center / contain no-repeat;
  content: "";
}

.cabin-region .seat-rear-right .speech-bubble {
  left: 141px;
}

.cabin-region .seat-front .speech-bubble {
  left: 20px;
}

.cabin-region .seat-driver .speech-bubble {
  left: 192px;
}

.cabin-region .speech-bubble.visible {
  display: flex;
}

@keyframes cabin-light-bloom {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  55% {
    opacity: 1;
    transform: scale(1.025);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Final Figma geometry: character files already contain their transparent canvas. */
.game-screen .host-avatar {
  left: 876px;
  top: 237px;
  z-index: 5;
  width: 564px;
  height: 572px;
  overflow: visible;
}

.game-screen.screen-ready .host-avatar,
.game-screen.screen-summary .host-avatar {
  z-index: 7;
}

.game-screen .host-avatar img,
.game-screen .host-avatar canvas {
  left: 0;
  top: 0;
  width: 564px;
  height: 572px;
  object-fit: fill;
  object-position: center;
}

/* Keep the sequence-frame canvas on a clean transparent compositing layer. */
.game-screen .host-avatar canvas {
  background: transparent;
  filter: none;
  mix-blend-mode: normal;
  transform: none;
}

.game-screen .host-avatar .host-media {
  width: 564px;
  height: 572px;
  overflow: visible;
}

.game-screen .host-bubble {
  z-index: 8;
}

/* Cabin state is represented by the selected asset only; do not tint or animate it. */
.cabin-region .seat,
.cabin-region .seat.sleeping,
.cabin-region .seat.seat-laughing,
.cabin-region .seat.activity-thinking,
.cabin-region .seat.activity-answering,
.cabin-region .seat.activity-asking,
.cabin-region .seat.activity-listening,
.cabin-region .seat.activity-acting,
.cabin-region .seat.activity-celebrating {
  filter: none;
  opacity: 1;
  animation: none !important;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.cabin-region .seat-rear-left .passenger-figure {
  left: 109px;
  top: 93px;
  width: 210px;
  height: 240px;
}

.cabin-region .seat-rear-right .passenger-figure {
  left: 94px;
  top: 93px;
  width: 210px;
  height: 240px;
}

.cabin-region .seat-front .passenger-figure,
.cabin-region .seat-driver .passenger-figure {
  top: 72px;
  width: 286px;
  height: 328px;
}

.cabin-region .seat-front .passenger-figure {
  left: 98px;
}

.cabin-region .seat-driver .passenger-figure {
  left: 90px;
}

/* The host character should overlap the speech bubble where their bounds meet. */
.game-screen .host-avatar,
.game-screen.screen-ready .host-avatar,
.game-screen.screen-summary .host-avatar {
  z-index: 9;
}

.game-screen .host-bubble {
  z-index: 8;
}

/* Center the ribbon label against the full purple banner height. */
.riddle-ribbon span {
  top: 5px;
  height: 114px;
  align-items: center;
}

.question-timer[hidden],
.answer-length-hint[hidden] {
  display: none;
}

.question-timer {
  position: absolute;
  top: 31px;
  right: 29px;
  z-index: 5;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: #633b99;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
}

.question-timer-ring {
  position: absolute;
  top: -1px;
  left: 15px;
  display: block;
  width: 46px;
  height: 46px;
}

.question-timer.is-urgent {
  color: #cf3345;
}

.remaining-questions strong {
  display: inline-block;
  transform-origin: center;
}

.remaining-questions strong.count-roll {
  animation: remaining-count-roll 420ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes remaining-count-roll {
  from {
    opacity: 0;
    transform: translateY(-65%) scale(0.88);
  }
  68% {
    opacity: 1;
    transform: translateY(9%) scale(1.05);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.screen-reveal-no-winner .reveal-seat-line strong {
  color: rgba(0, 0, 0, 0.7);
  font-weight: 500;
  text-shadow: none;
}

.screen-reveal-no-winner .reveal-seat-line span {
  display: none;
}

.game-screen.is-time-critical::after {
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 8px solid rgba(255, 45, 61, 0.94);
  box-shadow:
    inset 0 0 24px 4px rgba(255, 32, 48, 0.82),
    inset 0 0 68px rgba(255, 32, 48, 0.36);
  content: "";
  animation: screen-edge-red-flash 500ms ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes screen-edge-red-flash {
  from {
    opacity: 0.38;
  }
  to {
    opacity: 1;
  }
}

.answer-length-hint {
  position: absolute;
  top: 345px;
  left: 50%;
  z-index: 4;
  display: grid;
  min-width: 136px;
  height: 48px;
  padding: 0 22px;
  place-items: center;
  transform: translateX(-50%);
  animation: answer-hint-pop 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  border-radius: 999px;
  color: rgba(112, 71, 180, 0.74);
  background: rgba(255, 255, 255, 0.5);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

@keyframes answer-hint-pop {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.72);
  }
  72% {
    opacity: 1;
    transform: translateX(-50%) scale(2);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Summary entrance: reveal the stage in layers instead of switching every
   element on at the same time. */
.screen-summary .summary-stage::before {
  animation: none;
  background: transparent;
  backdrop-filter: none;
}

.screen-summary .game-screen-background {
  animation: none;
  opacity: 1;
}

.game-screen.screen-summary {
  background: transparent !important;
}

.game-screen.screen-summary .summary-background-layer {
  display: block;
  z-index: 1;
  opacity: 0;
  animation: summary-background-in 400ms ease-out 1400ms both;
}

.game-screen.screen-summary::before {
  display: block;
  z-index: 4;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  -webkit-backdrop-filter: blur(55px);
  backdrop-filter: blur(55px);
  animation: summary-backdrop-in 1600ms ease-out both;
}

.game-screen.screen-summary::after {
  display: none;
}

.screen-summary .summary-beam-left,
.screen-summary .summary-beam-right {
  animation: summary-beam-in 400ms cubic-bezier(0.22, 0.8, 0.32, 1) 1800ms both;
}

.screen-summary .summary-mosaic {
  animation: summary-background-in 2300ms ease-out 2000ms both;
}

.screen-summary .summary-light-ring {
  animation:
    summary-mvp-ring-zoom-in 300ms cubic-bezier(0.22, 0.9, 0.32, 1) 3500ms both,
    summary-light-ring-breathe 4s ease-in-out 5300ms infinite;
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}

.screen-summary .summary-bright-light {
  animation: summary-mvp-bright-zoom-in 300ms cubic-bezier(0.22, 0.9, 0.32, 1) 3500ms both;
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}

.screen-summary .summary-light-base {
  animation: summary-mvp-base-zoom-in 300ms cubic-bezier(0.22, 0.9, 0.32, 1) 3500ms both;
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}

.screen-summary .summary-confetti {
  opacity: 0;
  animation: none;
}

.screen-summary.summary-confetti-loop .summary-confetti {
  animation: summary-static-confetti-in 900ms ease-out both;
}

.screen-summary .summary-title-asset {
  animation: summary-title-in 500ms cubic-bezier(0.22, 0.8, 0.32, 1) 2000ms both;
}

.screen-summary .summary-stats {
  animation: summary-stats-emphasis 1200ms cubic-bezier(0.22, 0.9, 0.32, 1) 2500ms both;
}

.screen-summary .host-avatar {
  animation: none;
  opacity: 1;
  transform: none;
}

.screen-summary .host-bubble {
  animation: none;
}

.screen-summary.summary-host-speech-ready .host-bubble {
  animation: summary-bubble-in 520ms ease-out both;
}

.screen-summary .summary-continue {
  animation: summary-content-in 500ms cubic-bezier(0.22, 0.8, 0.32, 1) 5000ms both;
}

@keyframes summary-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes summary-background-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes summary-background-reveal {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes summary-beam-in {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes summary-light-ring-enter {
  from {
    transform: scale(0.88);
  }
  to {
    transform: scale(1);
  }
}

@keyframes summary-light-ring-after-mvp {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 0.35;
    transform: scale(1);
  }
}

@keyframes summary-mvp-ring-zoom-in {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
}

@keyframes summary-mvp-bright-zoom-in {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
}

@keyframes summary-mvp-base-zoom-in {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes summary-bright-light-after-mvp {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}

@keyframes summary-light-base-after-mvp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes summary-bright-light-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}

@keyframes summary-static-confetti-in {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes summary-title-in {
  from {
    opacity: 0;
    transform: translateY(-22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes summary-content-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes summary-stats-emphasis {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
  78%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes summary-host-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes summary-bubble-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .answer-length-hint,
  .remaining-questions strong.count-roll,
  .riddle-panel h1.question-intro,
  .game-screen.is-time-critical::after,
  .cabin-region .important-event.visible,
  .cabin-region .important-event.hiding {
    animation: none;
  }

  .screen-summary .summary-stage::before,
  .screen-summary .summary-beam-left,
  .screen-summary .summary-beam-right,
  .screen-summary .summary-mosaic,
  .screen-summary .summary-light-ring,
  .screen-summary .summary-bright-light,
  .screen-summary .summary-light-base,
  .screen-summary .summary-confetti,
  .screen-summary .summary-title-asset,
  .screen-summary .summary-stats,
  .screen-summary .summary-mvp-group,
  .screen-summary .host-avatar,
  .screen-summary .host-bubble,
  .screen-summary .summary-continue {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
