@keyframes suggested-response-glow {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.88);
    background: rgba(10, 10, 10, 0.96);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.34), 0 10px 22px rgba(0, 0, 0, 0.24);
  }
  50% {
    border-color: rgba(254, 240, 138, 1);
    background: rgba(32, 25, 8, 0.99);
    box-shadow: 0 0 36px rgba(212, 175, 55, 0.82), 0 0 72px rgba(212, 175, 55, 0.34), 0 10px 26px rgba(0, 0, 0, 0.34);
  }
}

.suggested-response-button {
  animation: suggested-response-glow 1.55s ease-in-out infinite;
}

.suggested-response-button:hover,
.suggested-response-button:focus-visible {
  animation-play-state: paused;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.86), 0 0 82px rgba(212, 175, 55, 0.36), 0 12px 28px rgba(0, 0, 0, 0.34);
}

.suggested-response-list-muted .suggested-response-button {
  animation: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.system-hint-card[hidden] {
  display: none;
}

.composer-latency-note {
  color: rgba(163, 163, 163, 0.72);
}

.composer-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
}

.composer-meta-row .composer-latency-note {
  min-width: 0;
  text-align: center;
}

.composer-meta-row #char-count {
  min-width: 4.5rem;
}

@media (max-width: 640px) {
  .composer-latency-note {
    display: none;
  }

  .composer-meta-row {
    grid-template-columns: 1fr;
    justify-items: end;
  }
}

.response-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  opacity: 0.52;
  transition: opacity 160ms ease;
}

.max-w-3xl:hover > .response-feedback,
.response-feedback:focus-within {
  opacity: 1;
}

.response-feedback-button {
  display: grid;
  height: 1.55rem;
  width: 1.55rem;
  place-items: center;
  border: 1px solid rgba(115, 115, 115, 0.45);
  border-radius: 999px;
  color: rgba(212, 212, 212, 0.86);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.response-feedback-button svg {
  height: 0.9rem;
  width: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.response-feedback-button:hover,
.response-feedback-button:focus-visible,
.response-feedback-button.is-selected {
  border-color: rgba(253, 230, 138, 0.72);
  background: rgba(212, 175, 55, 0.12);
  color: #fde68a;
  outline: none;
}

.promo-notice-stack {
  position: fixed;
  right: 1.25rem;
  top: 5.25rem;
  z-index: 45;
  display: grid;
  width: min(21rem, calc(100vw - 2.5rem));
  gap: 0.75rem;
  pointer-events: none;
}

.promo-notice-blocker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(0.18rem);
}

.promo-notice-blocker[hidden],
.promo-notice-blocker:empty {
  display: none;
}

.promo-notice {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 0.5rem;
  background: rgba(10, 10, 10, 0.94);
  padding: 0.85rem 2.5rem 0.85rem 0.95rem;
  color: #f5f5f5;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 175, 55, 0.18);
  pointer-events: auto;
}

.promo-notice-modal {
  width: min(46rem, calc(100vw - 2rem));
  min-height: min(24rem, calc(100vh - 4rem));
  display: grid;
  align-content: center;
  padding: 3.25rem 4rem 3.25rem 3.25rem;
  font-size: 1.08rem;
  line-height: 1.5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), 0 0 46px rgba(212, 175, 55, 0.28);
}

.promo-notice-modal .promo-notice-title {
  font-size: 1.8rem;
  margin-bottom: 0.45rem;
}

.promo-notice-dismiss {
  position: absolute;
  right: 0.55rem;
  top: 0.5rem;
  display: grid;
  height: 1.65rem;
  width: 1.65rem;
  place-items: center;
  border-radius: 0.35rem;
  border: 1px solid rgba(115, 115, 115, 0.8);
  color: #d4d4d4;
  line-height: 1;
}

.promo-notice-dismiss:hover {
  border-color: rgba(212, 175, 55, 0.8);
  color: #fde68a;
}

.promo-notice-link {
  display: grid;
  gap: 0.35rem;
  color: #fde68a;
  text-decoration: none;
}

.promo-notice-link:hover {
  color: #fff7cc;
}

.promo-notice-cta {
  display: inline-grid;
  width: fit-content;
  min-width: 12rem;
  margin-top: 1rem;
  place-items: center;
  border-radius: 0.45rem;
  background: #f5f5f5;
  padding: 0.8rem 1.1rem;
  color: #050505;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.28);
}

.promo-notice-cta:hover {
  background: #fff7cc;
  color: #050505;
}

.end-game-feedback {
  position: fixed;
  inset: 0;
  z-index: 79;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(0.14rem);
}

.end-game-feedback[hidden] {
  display: none;
}

.end-game-feedback-card {
  position: relative;
  width: min(34rem, calc(100vw - 2rem));
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 0.5rem;
  background: rgba(10, 10, 10, 0.96);
  padding: 2rem;
  color: #f5f5f5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), 0 0 38px rgba(212, 175, 55, 0.22);
}

.end-game-feedback-close {
  position: absolute;
  right: 0.7rem;
  top: 0.65rem;
  display: grid;
  height: 1.8rem;
  width: 1.8rem;
  place-items: center;
  border: 1px solid rgba(115, 115, 115, 0.75);
  border-radius: 0.35rem;
  color: #d4d4d4;
  line-height: 1;
}

.end-game-feedback-close:hover {
  border-color: rgba(212, 175, 55, 0.8);
  color: #fde68a;
}

.end-game-feedback-kicker {
  width: fit-content;
  border: 1px solid rgba(253, 230, 138, 0.45);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.end-game-feedback-title {
  margin-top: 0.75rem;
  color: #fff7cc;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

.end-game-feedback-copy {
  margin-top: 0.65rem;
  color: rgba(245, 245, 245, 0.84);
  font-size: 0.95rem;
  line-height: 1.55;
}

.end-game-feedback-stars {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.end-game-feedback-star {
  display: grid;
  height: 2.35rem;
  width: 2.35rem;
  place-items: center;
  border: 1px solid rgba(115, 115, 115, 0.55);
  border-radius: 0.4rem;
  color: rgba(245, 245, 245, 0.45);
  font-size: 1.35rem;
  line-height: 1;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease;
}

.end-game-feedback-star:hover,
.end-game-feedback-star:focus-visible,
.end-game-feedback-star.is-selected {
  border-color: rgba(253, 230, 138, 0.82);
  background: rgba(212, 175, 55, 0.13);
  color: #fde68a;
  outline: none;
  transform: translateY(-1px);
}

.end-game-feedback-message {
  width: 100%;
  margin-top: 1rem;
  resize: vertical;
  min-height: 6rem;
  border: 1px solid rgba(115, 115, 115, 0.58);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.38);
  padding: 0.8rem;
  color: #f5f5f5;
  font-size: 0.9rem;
  line-height: 1.45;
  outline: none;
}

.end-game-feedback-message:focus {
  border-color: rgba(253, 230, 138, 0.75);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.16);
}

.end-game-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.end-game-feedback-submit,
.end-game-feedback-skip {
  border-radius: 0.45rem;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.end-game-feedback-submit {
  background: #f5f5f5;
  color: #050505;
}

.end-game-feedback-submit:hover {
  background: #fff7cc;
}

.end-game-feedback-skip {
  border: 1px solid rgba(115, 115, 115, 0.58);
  color: rgba(245, 245, 245, 0.78);
}

.end-game-feedback-skip:hover {
  border-color: rgba(253, 230, 138, 0.65);
  color: #fde68a;
}

.promo-notice-icon {
  display: inline-grid;
  height: 1.35rem;
  width: 1.35rem;
  margin-right: 0.45rem;
  place-items: center;
  vertical-align: -0.32rem;
  color: #fde68a;
}

.promo-notice-icon svg {
  height: 100%;
  width: 100%;
}

.promo-notice-lines {
  display: grid;
  gap: 0.5rem;
}

.promo-notice-title {
  display: block;
  color: #fff7cc;
  font-size: 0.9rem;
  line-height: 1.25;
}

.promo-notice-product {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(253, 230, 138, 0.48);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-notice-line {
  display: block;
}

.promo-notice-line .promo-notice-icon {
  margin: 0 0.2rem;
  vertical-align: -0.28rem;
}

.promo-notice-icon.inner-mode-icon {
  display: inline-block;
  height: 1.35rem;
  width: 1.35rem;
  background: #fde68a;
}

.nav-icon-button {
  display: grid;
  height: 2rem;
  width: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.92);
  color: #fde68a;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), 0 0 20px rgba(212, 175, 55, 0.18);
}

.nav-icon-button[hidden] {
  display: none;
}

.nav-icon-button:hover {
  border-color: rgba(253, 230, 138, 0.9);
  color: #fff7cc;
}

.scroll-top-button {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--composer-space) + var(--keyboard-inset) + 1rem);
  z-index: 44;
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.92);
  color: #fde68a;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), 0 0 20px rgba(212, 175, 55, 0.18);
}

.scroll-top-button[hidden] {
  display: none;
}

.scroll-top-button:hover {
  border-color: rgba(253, 230, 138, 0.9);
  color: #fff7cc;
}

.promo-notice-history {
  position: fixed;
  right: 1.25rem;
  top: 4.6rem;
  z-index: 46;
  width: min(21rem, calc(100vw - 2.5rem));
  max-height: min(24rem, calc(100vh - 6rem));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(115, 115, 115, 0.75) rgba(23, 23, 23, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 0.5rem;
  background: rgba(10, 10, 10, 0.96);
  padding: 0.65rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 175, 55, 0.18);
}

.promo-notice-history::-webkit-scrollbar {
  width: 0.45rem;
}

.promo-notice-history::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.55);
}

.promo-notice-history::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(115, 115, 115, 0.75);
}

.promo-notice-history::-webkit-scrollbar-thumb:hover {
  background: rgba(163, 163, 163, 0.9);
}

.promo-notice-history[hidden] {
  display: none;
}

.promo-history-item {
  width: 100%;
  border-radius: 0.4rem;
  padding: 0.7rem 0.75rem;
  text-align: left;
  color: #f5f5f5;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.promo-history-item:hover {
  background: rgba(212, 175, 55, 0.12);
}

.speaker-info-trigger {
  border-radius: 0.25rem;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.speaker-info-trigger:hover,
.speaker-info-trigger:focus-visible {
  color: #fde68a;
  outline: none;
}

.speaker-info-popover {
  position: fixed;
  z-index: 47;
  width: min(18rem, calc(100vw - 2rem));
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 0.5rem;
  background: rgba(10, 10, 10, 0.96);
  padding: 0.85rem 2.4rem 0.85rem 0.95rem;
  color: #f5f5f5;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 175, 55, 0.18);
}

.speaker-info-popover[hidden] {
  display: none;
}

.speaker-info-close {
  position: absolute;
  right: 0.55rem;
  top: 0.5rem;
  display: grid;
  height: 1.55rem;
  width: 1.55rem;
  place-items: center;
  border-radius: 0.35rem;
  border: 1px solid rgba(115, 115, 115, 0.8);
  color: #d4d4d4;
  line-height: 1;
}

.speaker-info-close:hover {
  border-color: rgba(212, 175, 55, 0.8);
  color: #fde68a;
}

.dialogue-options-panel {
  position: fixed;
  right: 1.5rem;
  top: 8rem;
  z-index: 20;
  width: 18rem;
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(64, 64, 64, 0.95);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.9);
  padding: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.dialogue-options-title {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4af37;
}

.dialogue-option-button {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(23, 23, 23, 0.95);
  padding: 0.65rem;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
  color: #f5f5f5;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.dialogue-option-button:hover {
  border-color: rgba(212, 175, 55, 0.95);
  background: rgba(64, 50, 18, 0.72);
  color: #fde68a;
}

.dialogue-option-icon {
  height: 1.45rem;
  width: 1.45rem;
  flex: 0 0 auto;
  color: #d4af37;
}

.dialogue-options-panel[hidden] {
  display: none;
}

.suggested-response-panel {
  top: auto;
  bottom: calc(var(--composer-space) + var(--keyboard-inset) + 0.75rem);
}

.suggested-response-panel .suggested-response-button {
  min-height: auto;
}

.suggested-response-panel-disabled {
  opacity: 0.48;
  filter: grayscale(0.7);
}

.suggested-response-panel-disabled .dialogue-options-title,
.suggested-response-panel-disabled .quick-reply-label,
.suggested-response-panel-disabled .quick-reply-label .auto-play-icon {
  color: rgba(163, 163, 163, 0.72);
}

.suggested-response-panel-disabled .suggested-response-button {
  animation: none;
  border-color: rgba(82, 82, 82, 0.62);
  background: rgba(23, 23, 23, 0.78);
  color: rgba(163, 163, 163, 0.8);
  box-shadow: none;
  cursor: not-allowed;
}

.suggested-response-panel-disabled .suggested-response-button:hover {
  border-color: rgba(82, 82, 82, 0.62);
  background: rgba(23, 23, 23, 0.78);
  color: rgba(163, 163, 163, 0.8);
}

.quick-reply-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f5f5f5;
}

.quick-reply-label .auto-play-icon {
  height: 0.95rem;
  width: 0.95rem;
  color: #d4af37;
}

@media (max-width: 640px) {
  .suggested-response-panel {
    left: 0;
    right: 0;
    bottom: calc(var(--composer-space) + var(--keyboard-inset));
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 0.55rem 0.75rem;
    gap: 0.45rem;
  }

  .suggested-response-panel .dialogue-options-title {
    padding: 0 0.15rem;
  }

  .suggested-response-panel .suggested-response-button {
    min-height: 2.15rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
  }

  .suggested-response-panel .suggested-response-button:nth-of-type(n + 3) {
    display: none;
  }
}
