@keyframes cw-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(13, 30, 59, 0.16); }
  50% { box-shadow: 0 12px 30px rgba(13, 30, 59, 0.24); }
}

@keyframes cw-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 116, 254, 0.4); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(0, 116, 254, 0); }
}

@keyframes cw-dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@keyframes cw-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cw-shine {
  0% { transform: translateX(-150%) skewX(-12deg); }
  55%, 100% { transform: translateX(260%) skewX(-12deg); }
}

.cw-root {
  position: fixed;
  inset: 0;
  z-index: 1040;
  pointer-events: none;
  font-family: Roboto, sans-serif;
}

.cw-root * {
  box-sizing: border-box;
}

.cw-root button,
.cw-root input {
  font-family: inherit;
}

.cw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 30, 59, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-root.is-full .cw-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.cw-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 396px;
  height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13, 30, 59, 0.28);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transform-origin: 100% 100%;
  pointer-events: none;
  transition:
    opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    right 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    bottom 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-root.is-open .cw-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cw-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 12px 12px 10px;
  border-bottom: 1px solid #eef1f6;
  box-sizing: border-box;
}

.cw-head--list {
  padding: 14px 12px 14px 16px;
  gap: 10px;
}

.cw-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.cw-icon-btn {
  flex: none;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6B7280;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-icon-btn:hover {
  background: #f1f4f9;
  color: #0d1e3b;
}

.cw-icon-btn--back {
  color: #6b7280;
  font-size: 20px;
  border: 1.5px solid #e1e6ef;
  background: #fff;
}

.cw-icon-btn--back:hover {
  border-color: #c5ccd8;
  background: #f1f4f9;
  color: #0d1e3b;
}

.cw-ava {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
}

.cw-ava img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
}

.cw-ava--lg {
  width: 40px;
  height: 40px;
}

.cw-ava--lg img {
  width: 40px;
  height: 40px;
}

.cw-ava__dot {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #fff;
}

.cw-head__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.cw-head__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #0d1e3b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-head__title--lg {
  font-size: 16px;
}

.cw-head__sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.2;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-full-btn {
  flex: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #f1f4f9;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-full-btn:hover {
  background: #c1f0ff;
  color: #0d1e3b;
}

.cw-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #f5f8fd;
  padding: 18px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}

.cw-body::-webkit-scrollbar {
  width: 6px;
}

.cw-body::-webkit-scrollbar-thumb {
  background: rgba(13, 30, 59, 0.16);
  border-radius: 3px;
}

.cw-body--list {
  padding: 12px 12px 4px;
  gap: 8px;
}

.cw-msg {
  flex: none;
  max-width: 86%;
  animation: cw-in 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cw-msg--agent {
  align-self: flex-start;
}

.cw-msg--user {
  align-self: flex-end;
}

.cw-bubble {
  padding: 13px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-line;
}

.cw-bubble--agent {
  background: #fff;
  border-radius: 18px 18px 18px 8px;
  color: #0d1e3b;
}

.cw-bubble--agent p {
  margin: 0 0 0.55em;
}

.cw-bubble--agent p:last-child {
  margin-bottom: 0;
}

.cw-bubble--agent ul,
.cw-bubble--agent ol {
  margin: 0.35em 0;
  padding-left: 1.2em;
}

.cw-bubble--user {
  background: #0074fe;
  border-radius: 18px 18px 8px 18px;
  color: #fff;
}

.cw-msg__meta {
  margin: 5px 0 0 4px;
  font-size: 11.5px;
  color: #6B7280;
}

.cw-typing {
  flex: none;
  align-self: flex-start;
  background: #fff;
  border-radius: 18px 18px 18px 8px;
  padding: 14px 16px;
  display: flex;
  gap: 4px;
}

.cw-typing span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #0074fe;
  animation: cw-dot 1.2s ease-in-out infinite;
}

.cw-typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.cw-typing span:nth-child(3) {
  animation-delay: 0.36s;
}

.cw-cars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
  max-width: 100%;
}

.cw-cars .ai-carcard {
  animation: cw-in 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cw-chips {
  flex: none;
  background: #f5f8fd;
  padding: 0 16px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cw-chips::-webkit-scrollbar {
  display: none;
}

.cw-chip {
  flex: none;
  padding: 8px 13px;
  border: 1px solid #e1e6ef;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-chip:hover {
  border-color: #0074fe;
  color: #0074fe;
  background: #fff;
  transform: none;
}

.cw-composer {
  flex: none;
  background: #fff;
  padding: 12px 14px 14px;
}

.cw-composer__row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  padding: 4px 4px 4px 16px;
}

.cw-composer__input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 14.5px;
  color: #0d1e3b;
  outline: none;
}

.cw-composer__send {
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #0074fe;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-composer__send:hover {
  background: #0a3687;
}

.cw-thread {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 15px;
  cursor: pointer;
  text-align: left;
  border: 0;
  width: 100%;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-thread:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 30, 59, 0.1);
}

.cw-thread__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cw-thread__name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0d1e3b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-thread__time {
  margin-left: auto;
  flex: none;
  font-size: 11.5px;
  color: #6B7280;
}

.cw-thread__preview {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cw-list-foot {
  flex: none;
  background: #f5f8fd;
  padding: 12px 12px 16px;
}

.cw-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #0074fe;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 116, 254, 0.3);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-primary:hover {
  background: #0a3687;
}

.cw-game {
  flex: none;
  align-self: stretch;
  background: #fff;
  border-radius: 18px;
  animation: cw-in 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cw-game__intro {
  padding: 20px 20px 0;
}

.cw-game__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0074fe;
}

.cw-game__title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #0d1e3b;
  text-wrap: pretty;
}

.cw-game__car {
  margin: 18px 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f5f8fd;
  border-radius: 14px;
  padding: 14px 16px;
}

.cw-game__car img {
  flex: none;
  width: 104px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: #e9edf4;
}

.cw-game__spec {
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
  white-space: pre-line;
}

.cw-game__slider {
  padding: 24px 20px 0;
}

.cw-game__guess-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cw-game__guess-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7280;
}

.cw-game__guess-value {
  font-size: 22px;
  font-weight: 700;
  color: #0d1e3b;
  white-space: nowrap;
}

.cw-game__range {
  margin-top: 16px;
  width: 100%;
  accent-color: #0074fe;
}

.cw-game__ends {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #6B7280;
}

.cw-game__actions {
  padding: 22px 20px 20px;
}

.cw-game__check {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 8px;
  background: #0074fe;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 116, 254, 0.3);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-game__check:hover {
  background: #0a3687;
  transform: translateY(-2px);
}

.cw-game__result {
  border-radius: 18px;
  background: #0d1e3b;
  padding: 22px 20px;
  animation: cw-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cw-game__result-eye {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6fb4ff;
}

.cw-game__result-price {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.cw-game__result-line {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  text-wrap: pretty;
}

.cw-game__result-btns {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-game__again,
.cw-game__view {
  height: 46px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-game__again {
  background: #0074fe;
  color: #fff;
}

.cw-game__again:hover {
  background: #2a8bff;
}

.cw-game__view {
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
}

.cw-game__view:hover {
  border-color: #0074fe;
  background: rgba(0, 116, 254, 0.16);
}

.cw-card {
  flex: none;
  align-self: stretch;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  animation: cw-in 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cw-card__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cw-card__row img {
  flex: none;
  width: 104px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: #e9edf4;
}

.cw-card__name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0d1e3b;
}

.cw-card__sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: #6b7280;
}

.cw-card__price {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 700;
  color: #0074fe;
}

.cw-card__open {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 2px solid #0074fe;
  border-radius: 8px;
  color: #0074fe;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-card__open:hover {
  background: #0074fe;
  color: #fff;
}

.cw-pill {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
  transform-origin: 100% 100%;
  transition:
    opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    right 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cw-root.is-pill .cw-pill,
.cw-root.is-face .cw-pill {
  opacity: 1;
  pointer-events: auto;
}

.cw-pill__inner {
  height: 52px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 26px;
  background: #fff;
  animation: cw-glow 4.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-root.is-pill .cw-pill__inner:hover,
.cw-root.is-face .cw-pill__inner:hover {
  transform: translateY(-2px);
}

.cw-pill__hide {
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #f1f4f9;
  color: #5b6472;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-pill__hide:hover {
  background: #e5eaf1;
  color: #0d1e3b;
}

.cw-pill__label {
  border: 0;
  background: transparent;
  font-size: 15.5px;
  font-weight: 500;
  color: #0d1e3b;
  white-space: nowrap;
  cursor: pointer;
  padding: 0;
}

.cw-pill__q {
  flex: none;
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #0074fe;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: cw-ring 4.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cw-pill__badge {
  position: absolute;
  right: -3px;
  top: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.cw-root.is-seen .cw-pill__badge {
  display: none;
}

.cw-face {
  position: absolute;
  right: 70px;
  bottom: 30px;
  z-index: 1;
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
}

.cw-face img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(13, 30, 59, 0.2);
}

.cw-root.is-face .cw-face {
  opacity: 1;
  transform: translateY(0);
  bottom: 56px;
  pointer-events: auto;
}

.cw-tease {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.94);
  transform-origin: 100% 100%;
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.cw-root.is-game .cw-tease {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cw-tease__box {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0074fe;
  box-shadow: 0 10px 26px rgba(0, 116, 254, 0.3);
  width: 100px;
  height: 100px;
  border-radius: 22px;
  transition:
    width 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    height 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cw-tease__box:hover {
  background: #0a3687;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 116, 254, 0.38);
}

.cw-root.is-tease-seed .cw-tease__box {
  width: 208px;
  height: 52px;
  border-radius: 26px;
}

.cw-root.is-tease-cube .cw-tease__box {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(0, 116, 254, 0.34);
}

.cw-root.is-tease-bar .cw-tease__box {
  width: 400px;
  height: 76px;
  border-radius: 16px;
}

.cw-tease__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  animation: cw-shine 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cw-root.is-tease-bar .cw-tease__shine {
  opacity: 0;
}

.cw-tease__cta {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  gap: 0;
  color: inherit;
  transition:
    padding 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    gap 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cw-root.is-tease-seed .cw-tease__cta {
  padding: 0 10px;
}

.cw-root.is-tease-cube .cw-tease__cta {
  padding: 14px 16px;
}

.cw-root.is-tease-bar .cw-tease__cta {
  padding: 0 12px;
  gap: 10px;
  justify-content: flex-start;
}

.cw-tease__price {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: scale(0.82);
  transition: transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cw-root.is-tease-cube .cw-tease__price {
  transform: scale(0.84);
}

.cw-root.is-tease-bar .cw-tease__price {
  transform: scale(0.92);
}

.cw-tease__rub {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.04em;
}

.cw-reels {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cw-reel-group {
  display: flex;
  gap: 1px;
}

.cw-reel {
  width: 10px;
  height: 15px;
  overflow: hidden;
}

.cw-reel__strip {
  transition: transform 0.05s linear;
}

.cw-reel__strip.is-locked {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.cw-reel__digit {
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.cw-tease__body {
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 10px;
  display: flex;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s,
    max-width 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cw-root.is-tease-bar .cw-tease__body {
  opacity: 1;
  max-width: 300px;
}

.cw-tease__body img {
  flex: none;
  width: 64px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.cw-tease__text {
  flex: 1;
  min-width: 0;
  padding-right: 14px;
  text-align: left;
}

.cw-tease__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-wrap: pretty;
}

.cw-tease__pills {
  margin-top: 5px;
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.cw-tease__pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.cw-tease__dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cw-root.is-tease-bar .cw-tease__dismiss {
  opacity: 1;
  pointer-events: auto;
}

.cw-tease__dismiss:hover {
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
}

.cw-strip {
  position: absolute;
  right: 24px;
  left: auto;
  bottom: 0;
  z-index: 6;
  height: 14px;
  width: 208px;
  max-width: calc(100vw - 48px);
  border: 0;
  border-radius: 12px 12px 0 0;
  background: #0074fe;
  box-shadow: 0 -4px 16px rgba(0, 116, 254, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scaleX(0.55);
  transform-origin: 100% 100%;
  transition:
    height 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-root.is-hidden .cw-strip,
.cw-root.is-collapsing .cw-strip {
  opacity: 1;
  pointer-events: auto !important;
  transform: translateY(0) scaleX(1);
}

.cw-root.is-hidden .cw-strip:hover,
.cw-root.is-collapsing .cw-strip:hover {
  height: 20px;
  box-shadow: 0 -6px 20px rgba(0, 116, 254, 0.45);
}

.cw-root.is-expanding .cw-strip {
  opacity: 0;
  pointer-events: none !important;
  transform: translateY(-18px) scaleX(1.05);
  height: 28px;
}

.cw-root.is-collapsing .cw-pill {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(18px) scale(0.42);
}

.cw-root.is-expanding .cw-pill {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1);
  animation: cw-pop 0.42s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

.cw-root.is-collapsing .cw-face,
.cw-root.is-expanding .cw-face,
.cw-root.is-expanding .cw-tease {
  opacity: 0 !important;
  pointer-events: none !important;
}

.cw-root.is-collapsing .cw-tease {
  pointer-events: none !important;
  animation: cw-tease-drop 0.38s cubic-bezier(0.5, 0, 0.75, 0) both;
}

.cw-root.is-collapsing .cw-tease__box {
  transform: none !important;
  transition: none !important;
}

@keyframes cw-tease-drop {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(26px) scale(0.42); opacity: 0; }
}

@keyframes cw-pop {
  0% { transform: translateY(14px) scale(0.55); opacity: 0; }
  70% { transform: translateY(-3px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.cw-root.is-hidden .cw-pill,
.cw-root.is-hidden .cw-face,
.cw-root.is-hidden .cw-tease,
.cw-root.is-hidden .cw-panel,
.cw-root.is-fs-open .cw-pill,
.cw-root.is-fs-open .cw-face,
.cw-root.is-fs-open .cw-tease,
.cw-root.is-fs-open .cw-panel,
.cw-root.is-fs-open .cw-strip,
.cw-root.is-fs-open .cw-backdrop {
  opacity: 0 !important;
  pointer-events: none !important;
}

.cw-root.is-hidden .cw-pill {
  transform: translateY(18px) scale(0.42);
}

body:not(.is-past-hero) .cw-root:not(.is-open) .cw-pill,
body:not(.is-past-hero) .cw-root:not(.is-open) .cw-face,
body:not(.is-past-hero) .cw-root:not(.is-open) .cw-tease,
body:not(.is-past-hero) .cw-root:not(.is-open) .cw-strip {
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
}

.cw-root.is-game,
.cw-root.is-face {
  z-index: 10050;
}

@media (max-width: 720px) {
  .cw-panel {
    right: 0;
    left: 0;
    top: max(8dvh, env(safe-area-inset-top, 0px));
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 18px 18px 0 0;
  }

  .cw-root.is-open .cw-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .cw-head {
    padding: 12px 12px 12px 10px;
    gap: 10px;
    min-height: 68px;
  }

  .cw-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .cw-icon-btn--back {
    font-size: 22px;
  }

  .cw-ava,
  .cw-ava img {
    width: 42px;
    height: 42px;
  }

  .cw-head__title {
    font-size: 16px;
  }

  .cw-head__sub {
    font-size: 13px;
  }

  .cw-full-btn {
    display: inline-flex;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .cw-body {
    padding: 16px 14px 12px;
    gap: 16px;
  }

  .cw-bubble {
    padding: 14px 16px;
    font-size: 15.5px;
  }

  .cw-chips {
    padding: 0 14px 12px;
    gap: 10px;
  }

  .cw-chip {
    padding: 11px 15px;
    font-size: 14px;
  }

  .cw-composer {
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .cw-composer__row {
    padding: 5px 5px 5px 16px;
  }

  .cw-composer__input {
    height: 44px;
    font-size: 16px;
  }

  .cw-composer__send {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .cw-pill,
  .cw-tease {
    right: 12px;
    left: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .cw-strip {
    right: 12px;
    left: auto;
    bottom: 0;
    width: min(220px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    height: calc(16px + env(safe-area-inset-bottom, 0px));
    min-height: 16px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
    transform: translateY(0) scaleX(0.55);
  }

  .cw-root.is-hidden .cw-strip,
  .cw-root.is-collapsing .cw-strip {
    transform: translateY(0) scaleX(1);
  }

  .cw-root.is-hidden .cw-strip:hover,
  .cw-root.is-collapsing .cw-strip:hover {
    height: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .cw-root.is-expanding .cw-strip {
    transform: translateY(-12px) scaleX(1.05);
    height: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .cw-face {
    right: 20px;
    bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }

  .cw-root.is-face .cw-face {
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  .cw-root.is-tease-bar .cw-tease {
    right: 10px;
    left: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .cw-root.is-tease-bar .cw-tease__box {
    width: 100%;
    height: 100px;
  }

  .cw-root.is-tease-bar .cw-tease__cta {
    padding: 0 12px;
    gap: 10px;
  }

  .cw-tease__title {
    font-size: 14px;
  }

  .cw-tease__body img {
    width: 68px;
    height: 46px;
  }

  .cw-tease__pills {
    flex-wrap: wrap;
  }

  .cw-tease__dismiss {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
    font-size: 14px;
  }

  .cw-primary {
    height: 52px;
    font-size: 16px;
  }
}
