.tigerchat-studio {
  --tc-black: #0b0c0e;
  --tc-gold: #c9a24d;
  --tc-gold-2: #d4b574;
  --tc-gold-3: #f1dda8;
  --tc-gold-4: #80602f;
  --tc-paper: #f7f7f7;
  --tc-ink: #0b0c0e;
  --tc-muted: rgba(241, 221, 168, 0.72);
  min-height: 100vh;
  margin: 0;
  background: var(--tc-black);
  color: var(--tc-paper);
  font-family: "Plus Jakarta Sans", Manrope, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

.tigerchat-studio[data-theme="light"] {
  background: var(--tc-paper);
  color: var(--tc-ink);
}

.tigerchat-studio * { box-sizing: border-box; }

.tigerchat-studio ::selection {
  background: rgba(201, 162, 77, 0.35);
  color: inherit;
}

.tc-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.tc-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.tc-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tc-title span,
.tc-word strong span { color: var(--tc-gold-2); }

.tc-theme {
  border: 1px solid rgba(212, 181, 116, 0.55);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
}

.tc-theme:focus-visible,
.tc-btn:focus-visible,
.tc-mini:focus-visible {
  outline: 2px solid var(--tc-gold-2);
  outline-offset: 3px;
}

.tc-stage {
  position: relative;
  border-radius: 22px;
  background: var(--tc-black);
  color: var(--tc-paper);
  border: 1px solid rgba(212, 181, 116, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  min-height: min(68vh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 24px;
}

.tc-stage canvas,
.tc-disc canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.tc-hero {
  width: min(100%, 760px);
  height: min(52vh, 460px);
}

.tc-word {
  margin: 8px 0 0;
  text-align: center;
}

.tc-word strong {
  display: block;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.tc-word small {
  display: block;
  margin-top: 6px;
  color: var(--tc-muted);
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.tc-hello {
  max-width: 46ch;
  margin: 14px auto 0;
  text-align: center;
  color: rgba(247, 247, 247, 0.78);
  font-size: 0.95rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.tc-modes,
.tc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.tc-btn,
.tc-mini {
  border: 1px solid rgba(212, 181, 116, 0.55);
  background: transparent;
  color: var(--tc-gold-3);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.84rem;
  letter-spacing: 0;
  cursor: pointer;
}

.tc-btn[aria-pressed="true"],
.tc-mini[aria-pressed="true"] {
  background: rgba(201, 162, 77, 0.16);
  color: var(--tc-gold-3);
}

.tc-btn:hover,
.tc-mini:hover,
.tc-theme:hover { border-color: var(--tc-gold-3); }

.tc-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

.tc-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 26px;
  align-items: flex-end;
}

.tc-shot { text-align: center; }

.tc-shot figcaption {
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--tc-gold-2);
}

.tc-disc {
  margin: 0 auto;
  background: var(--tc-black);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(11, 12, 14, 0.35), 0 0 0 1px rgba(212, 181, 116, 0.38);
  overflow: hidden;
}

.tc-disc.is-32 { width: 32px; height: 32px; }
.tc-disc.is-40 { width: 40px; height: 40px; }
.tc-disc.is-60 { width: 60px; height: 60px; }
.tc-disc.is-60:hover { transform: translateY(-2px); }

.tc-listen {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 18px;
  background: var(--tc-black);
  border: 1px solid rgba(212, 181, 116, 0.28);
  overflow: hidden;
}

.tc-meter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.84rem;
  letter-spacing: 0;
}

.tc-meter span { color: var(--tc-gold-2); }
.tc-meter b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tigerchat-studio[data-theme="light"] .tc-meter span,
.tigerchat-studio[data-theme="light"] .tc-shot figcaption {
  color: var(--tc-gold-4);
}

.tigerchat-studio[data-theme="light"] .tc-mini,
.tigerchat-studio[data-theme="light"] .tc-theme {
  color: var(--tc-ink);
  border-color: rgba(128, 96, 47, 0.55);
}

@media (max-width: 800px) {
  .tc-page { width: min(100% - 20px, 1120px); padding-top: 18px; }
  .tc-row { grid-template-columns: 1fr; }
  .tc-hero { height: 320px; }
  .tc-stage { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-disc.is-60:hover { transform: none; }
}

.tt-chat-widget .tt-chat-launcher {
  width: 66px;
  height: 66px;
  background: #0b0c0e;
  box-shadow: 0 14px 32px rgba(11, 12, 14, 0.28);
}

.tt-chat-widget .tt-chat-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 77, 0.75);
  pointer-events: none;
  animation: tt-tiger-ring 4.8s ease-in-out infinite;
}

.tt-chat-widget .tt-chat-glyph {
  width: 58px;
  height: 58px;
}

.tt-tiger-launcher {
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  transform-origin: center;
  transition: opacity 0.35s var(--tt-ease, ease);
  animation: tt-tiger-breath 5.8s ease-in-out infinite;
}

.tt-tiger-badge {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 3;
  min-width: 16px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #c9a24d;
  color: #0b0c0e;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}

.tt-chat-widget.is-open .tt-tiger-badge,
.tt-chat-widget.is-open .tt-tiger-launcher,
.tt-chat-widget.is-open .tt-tiger-launcher-canvas { opacity: 0; }

.tt-chat-widget.is-open .tt-chat-launcher::after { animation: none; opacity: 0.4; }

.tt-chat-widget .tt-chat-glyph .tt-glyph-x {
  width: 26px;
  height: 26px;
  left: 50%;
  top: 50%;
  color: #c9a24d;
  transform: translate(-50%, -50%) rotate(-70deg) scale(0.7);
}

.tt-chat-widget.is-open .tt-chat-glyph .tt-glyph-x {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.tt-tiger-launcher-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

.tt-chat-launcher.is-alive .tt-tiger-launcher-canvas { display: block; }
.tt-chat-launcher.is-alive .tt-tiger-launcher { opacity: 0; animation: none; }

.tt-tiger-hello {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(248px, calc(100vw - 32px));
  z-index: 2;
}

.tt-tiger-hello[hidden] { display: none !important; }

.tt-tiger-hello-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 32px 12px 14px;
  border: 1px solid rgba(201, 162, 77, 0.55);
  border-radius: 16px 16px 6px 16px;
  background: rgba(247, 247, 247, 0.88);
  color: #0b0c0e;
  text-align: left;
  box-shadow: 0 14px 32px rgba(11, 12, 14, 0.14);
  backdrop-filter: blur(14px);
}

.tt-tiger-hello-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.tt-tiger-pill {
  padding: 1px 5px;
  border-radius: 999px;
  background: #c9a24d;
  color: #0b0c0e;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.tt-tiger-hello-open strong {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.tt-tiger-hello-open small {
  display: block;
  margin-top: 2px;
  color: #80602f;
  font-size: 0.72rem;
}

.tt-tiger-hello-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0b0c0e;
  display: grid;
  place-items: center;
  padding: 0;
}

.tt-tiger-hello-x svg { width: 14px; height: 14px; }

.tt-tiger-hello.is-in { animation: tt-tiger-hello-in 0.4s ease; }
.tt-tiger-hello.is-out { animation: tt-tiger-hello-out 0.36s ease forwards; }

html[data-theme="dark"] .tt-tiger-hello-open {
  background: rgba(11, 12, 14, 0.92);
  color: #f7f7f7;
}

html[data-theme="dark"] .tt-tiger-hello-open small,
html[data-theme="dark"] .tt-tiger-hello-x { color: #d4b574; }

@keyframes tt-tiger-breath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.028); }
}

@keyframes tt-tiger-ring {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes tt-tiger-hello-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes tt-tiger-hello-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(6px); }
}

@media (hover: hover) and (pointer: fine) {
  .tt-chat-widget:not(.is-open) .tt-chat-launcher:hover {
    transform: scale(1.04);
    box-shadow: 0 16px 34px rgba(11, 12, 14, 0.3), 0 0 22px rgba(201, 162, 77, 0.28);
  }

  .tt-chat-widget:not(.is-open) .tt-chat-launcher:hover::after {
    box-shadow: inset 0 0 0 1.5px #d4b574;
    opacity: 1;
  }

  .tt-chat-widget:not(.is-open) .tt-chat-launcher:hover .tt-tiger-launcher {
    animation-play-state: paused;
  }
}

.tt-chat-widget.is-open .tt-tiger-launcher {
  opacity: 0;
  transform: rotate(70deg) scale(0.7);
}

.tt-chat-tagline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tt-tiger-slot {
  position: relative;
  flex: 0 0 auto;
  background: #0b0c0e url("../img/tigerchat-mark.png") center / 100% no-repeat;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.tt-tiger-slot.is-header {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.tt-tiger-slot.is-header img,
.tt-tiger-slot.is-header canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tt-tiger-slot.is-live > img { visibility: hidden; }

.tt-tiger-slot.is-welcome {
  width: 124px;
  height: 124px;
  margin: 0 auto 2px;
  border-radius: 0;
  background: radial-gradient(circle at 50% 46%, rgba(11, 12, 14, 0.28) 0%, rgba(11, 12, 14, 0) 68%);
  box-shadow: none;
}

html[data-theme="dark"] .tt-tiger-slot.is-welcome {
  background: radial-gradient(circle at 50% 46%, rgba(212, 181, 116, 0.16) 0%, rgba(212, 181, 116, 0) 70%);
}

.tt-tiger-slot.is-typing {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.tt-tiger-slot.is-live:not(.is-welcome) {
  background-image: none;
}

.tt-chat-widget.is-open .tt-tiger-launcher { animation: none; }

.tt-tiger-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.tt-chat-avatar {
  width: 32px;
  height: 32px;
  background: #0b0c0e url("../img/tigerchat-mark.png") center / 100% no-repeat;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.tt-chat-widget .tt-chat-place {
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 14px;
  gap: 10px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.tt-chat-widget .tt-chat-place-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(201, 162, 77, 0.14);
  color: #80602f;
  overflow: hidden;
}

.tt-chat-widget .tt-chat-place-mark svg,
.tt-chat-widget .tt-chat-place-go { width: 16px; height: 16px; }

.tt-chat-widget .tt-chat-place-mark img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
}

.tt-chat-widget .tt-chat-place-copy { flex: 1; }
.tt-chat-widget .tt-chat-place-go { color: #c9a24d; flex: 0 0 auto; }

.tt-chat-widget .tt-chat-place:hover { transform: translateX(2px); }

.tt-chat-widget .tt-chat-offers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-chat-widget .tt-chat-offer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(201, 162, 77, 0.45);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.tt-chat-widget .tt-chat-offer svg { width: 14px; height: 14px; color: #c9a24d; }

.tt-chat-widget .tt-chat-offer.is-flash svg { animation: tt-tiger-flash 2.4s ease-in-out infinite; }

.tt-chat-widget .tt-chat-discover-copy small:empty { display: none; }

.tt-chat-widget .tt-chat-suggest-label { font-size: 0.72rem; letter-spacing: 0.01em; }

@keyframes tt-tiger-flash {
  0%, 100% { opacity: 0.55; }
  45% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-tiger-launcher,
  .tt-chat-widget .tt-chat-launcher::after,
  .tt-tiger-hello,
  .tt-chat-widget .tt-chat-offer.is-flash svg { animation: none; }
  .tt-chat-widget .tt-chat-place:hover,
  .tt-chat-widget .tt-chat-launcher:hover { transform: none; }
}
