:root {
  color-scheme: dark;
  --ink: #edf7ff;
  --muted: rgba(226, 237, 255, 0.68);
  --navy: #030714;
  --blue: #57c8ff;
  --violet: #9a77ff;
  --gold: #f7d78b;
  --warm: #ffe0a6;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(67, 133, 255, 0.12), transparent 34%),
    radial-gradient(circle at 12% 78%, rgba(141, 93, 255, 0.16), transparent 34%),
    linear-gradient(165deg, #071128 0%, #02050e 47%, #000106 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  box-shadow:
    0 0 0 1px rgba(236, 247, 255, 0.3),
    0 0 28px rgba(94, 214, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
  position: relative;
  width: min(100vw, 430px);
  height: 100svh;
  min-height: 0;
  margin: 0 auto;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 21%),
    radial-gradient(circle at 50% 45%, rgba(96, 204, 255, 0.16), transparent 34%),
    radial-gradient(circle at 54% 63%, rgba(247, 215, 139, 0.08), transparent 30%);
  animation: appFadeIn 1200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 42%, #000 0 34%, transparent 72%);
  opacity: 0.18;
}

.home-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  height: 100%;
  min-height: 0;
  padding: max(26px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom));
}

.screen-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  pointer-events: none;
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen-view.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.home-shell.screen-view {
  position: absolute;
}

.entry-shell {
  z-index: 4;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
  padding: max(26px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
}

.entry-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(96, 203, 255, 0.16), transparent 32%),
    radial-gradient(circle at 48% 70%, rgba(151, 113, 255, 0.13), transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(247, 215, 139, 0.07), transparent 28%);
}

.entry-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 348px;
}

.welcome-content {
  gap: 22px;
}

.entry-brand {
  margin: 0;
  color: rgba(244, 250, 255, 0.96);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 0 24px rgba(96, 210, 255, 0.36), 0 0 48px rgba(151, 119, 255, 0.24);
}

.entry-brand.small {
  font-size: 24px;
  margin-bottom: 10px;
}

.entry-avatar-wrap {
  position: relative;
  width: 116px;
  aspect-ratio: 1;
  margin: 2px 0 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(6, 12, 25, 0.72);
  box-shadow:
    0 0 0 1px rgba(184, 231, 255, 0.2),
    0 0 30px rgba(91, 216, 255, 0.34),
    0 0 62px rgba(142, 104, 255, 0.24),
    inset 0 0 22px rgba(255, 255, 255, 0.06);
  animation: breathe 4800ms ease-in-out infinite;
}

.entry-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(91, 216, 255, 0.2), transparent 68%);
  filter: blur(14px);
  z-index: -1;
}

.entry-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transform: scale(1.2);
}

.entry-message {
  max-width: 280px;
  margin: 0;
  color: rgba(226, 237, 255, 0.78);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 0 18px rgba(96, 202, 255, 0.16);
}

.entry-actions,
.auth-form {
  display: grid;
  width: 100%;
  gap: 12px;
}

.entry-actions {
  margin-top: 6px;
}

.entry-primary,
.entry-secondary,
.auth-switch {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 220ms ease, border-color 360ms ease, box-shadow 360ms ease, opacity 260ms ease;
}

.entry-primary {
  background:
    radial-gradient(circle at 48% 26%, rgba(255, 255, 255, 0.44), transparent 12%),
    linear-gradient(135deg, rgba(91, 211, 255, 0.92), rgba(91, 72, 194, 0.9) 58%, rgba(12, 20, 43, 0.96));
  color: rgba(250, 253, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(190, 235, 255, 0.18),
    0 0 24px rgba(84, 203, 255, 0.28),
    0 0 52px rgba(130, 95, 255, 0.2),
    inset 0 -12px 22px rgba(0, 0, 0, 0.24);
}

.entry-secondary,
.auth-switch {
  border: 1px solid rgba(247, 215, 139, 0.2);
  background:
    linear-gradient(135deg, rgba(247, 215, 139, 0.12), rgba(103, 209, 255, 0.07)),
    rgba(6, 12, 26, 0.64);
  color: rgba(249, 243, 226, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.entry-primary:active,
.entry-secondary:active,
.auth-switch:active {
  transform: scale(0.98);
}

.entry-primary:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: saturate(0.7);
  box-shadow: 0 0 0 1px rgba(190, 235, 255, 0.08), inset 0 -12px 22px rgba(0, 0, 0, 0.24);
}

.auth-content,
.terms-content {
  align-content: center;
}

.auth-title {
  margin: 0 0 20px;
  color: rgba(242, 248, 255, 0.94);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 22px rgba(96, 210, 255, 0.24);
}

.community-guidelines-subtitle {
  max-width: 292px;
  margin: -10px 0 16px;
  color: rgba(226, 237, 255, 0.68);
  font-size: 14px;
  line-height: 1.42;
  text-align: center;
  text-shadow: 0 0 18px rgba(96, 202, 255, 0.12);
}

.auth-field {
  display: grid;
  gap: 7px;
  width: 100%;
  color: rgba(226, 237, 255, 0.68);
  font-size: 13px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(190, 230, 255, 0.16);
  border-radius: 18px;
  outline: none;
  padding: 0 16px;
  background:
    linear-gradient(135deg, rgba(12, 25, 46, 0.82), rgba(9, 10, 24, 0.78)),
    radial-gradient(circle at 0% 0%, rgba(91, 216, 255, 0.12), transparent 46%);
  color: rgba(244, 249, 255, 0.94);
  font: inherit;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.2);
}

.auth-field input:focus {
  border-color: rgba(96, 213, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 26px rgba(85, 205, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.2);
}

.auth-submit {
  margin-top: 6px;
}

.auth-switch {
  margin-top: 14px;
  min-height: 44px;
  font-size: 14px;
}

.auth-inline-link {
  width: auto;
  min-height: 28px;
  margin: 2px auto 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: rgba(103, 209, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-shell.is-login .register-only {
  display: none;
}

.auth-shell:not(.is-login) .login-only,
.auth-form[hidden],
.password-recovery-form[hidden] {
  display: none;
}

.app-nav-item {
  position: relative;
  display: flex;
}

.home-account-cascade {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 5px;
  width: 132px;
  padding: 7px;
  border: 1px solid rgba(190, 230, 255, 0.15);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.9), rgba(13, 12, 32, 0.88)),
    rgba(7, 15, 31, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.account-cascade-button,
.account-panel-close {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(190, 230, 255, 0.15);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.76), rgba(13, 12, 32, 0.72)),
    rgba(7, 15, 31, 0.68);
  color: rgba(242, 248, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.account-panel {
  position: absolute;
  z-index: 8;
  top: max(84px, calc(env(safe-area-inset-top) + 76px));
  left: 18px;
  display: grid;
  gap: 12px;
  width: min(304px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(178, 224, 255, 0.15);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.86), rgba(13, 12, 32, 0.84)),
    radial-gradient(circle at 16% 0%, rgba(92, 211, 255, 0.12), transparent 42%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.account-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-panel-title {
  margin: 0;
  color: rgba(242, 248, 255, 0.94);
  font-size: 18px;
  font-weight: 700;
}

.account-panel-close {
  width: auto;
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.account-profile-view,
.account-form {
  display: grid;
  gap: 10px;
}

.account-profile-label,
.account-profile-value {
  margin: 0;
}

.account-profile-label {
  color: rgba(226, 237, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.account-profile-value {
  overflow-wrap: anywhere;
  color: rgba(242, 248, 255, 0.9);
  font-size: 15px;
  line-height: 1.35;
}

.account-form .auth-switch {
  margin-top: 0;
}

.account-message {
  min-height: 18px;
  margin: 0;
  color: rgba(226, 237, 255, 0.76);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.home-account-cascade[hidden],
.account-panel[hidden],
.account-profile-view[hidden],
.account-form[hidden] {
  display: none;
}

.terms-content {
  max-width: 360px;
}

.terms-panel {
  width: 100%;
  max-height: min(46svh, 360px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(178, 224, 255, 0.15);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.72), rgba(13, 12, 32, 0.72)),
    radial-gradient(circle at 15% 0%, rgba(92, 211, 255, 0.13), transparent 42%);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  scrollbar-width: none;
}

.terms-panel::-webkit-scrollbar {
  display: none;
}

.terms-panel p {
  margin: 0 0 12px;
  color: rgba(232, 241, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.terms-panel p:last-child {
  margin-bottom: 0;
}

.terms-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  margin: 16px 0 14px;
  color: rgba(242, 248, 255, 0.84);
  font-size: 14px;
  line-height: 1.4;
}

.terms-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #57c8ff;
}

.app-nav {
  position: absolute;
  z-index: 8;
  top: max(12px, env(safe-area-inset-top));
  right: 8px;
  left: 106px;
  display: none;
  justify-content: flex-end;
  gap: 2px;
}

.has-app-access .app-nav {
  display: flex;
}

.app-nav-button {
  min-height: 29px;
  padding: 0 clamp(3px, 1vw, 5px);
  border: 1px solid rgba(190, 230, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.62);
  color: rgba(232, 241, 255, 0.82);
  font-size: clamp(7.5px, 2.05vw, 9.5px);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 22px rgba(84, 203, 255, 0.08);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

.language-control {
  position: absolute;
  z-index: 9;
  top: max(12px, env(safe-area-inset-top));
  left: 8px;
}

.language-control select {
  min-height: 29px;
  width: 94px;
  max-width: 94px;
  border: 1px solid rgba(190, 230, 255, 0.14);
  border-radius: 999px;
  outline: none;
  padding: 0 18px 0 8px;
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.7), rgba(13, 12, 32, 0.68)),
    rgba(7, 15, 31, 0.62);
  color: rgba(232, 241, 255, 0.86);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 22px rgba(84, 203, 255, 0.08);
}

.community-guidelines-shell {
  z-index: 4;
  display: grid;
  place-items: center;
  height: 100%;
  padding: max(26px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
}

.recipient-shell {
  z-index: 6;
  display: grid;
  place-items: center;
  height: 100%;
  padding: max(26px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
}

.community-shell {
  z-index: 4;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  padding: max(56px, calc(env(safe-area-inset-top) + 24px)) 18px max(18px, env(safe-area-inset-bottom));
}

.report-shell {
  z-index: 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
  min-height: 0;
  padding: max(58px, calc(env(safe-area-inset-top) + 26px)) 18px max(18px, env(safe-area-inset-bottom));
}

.premium-shell {
  z-index: 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
  padding: max(58px, calc(env(safe-area-inset-top) + 26px)) 18px max(18px, env(safe-area-inset-bottom));
}

.help-shell {
  z-index: 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
  padding: max(58px, calc(env(safe-area-inset-top) + 26px)) 18px max(18px, env(safe-area-inset-bottom));
}

.community-shell::before,
.community-guidelines-shell::before,
.recipient-shell::before,
.report-shell::before,
.help-shell::before,
.premium-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 14%, rgba(96, 203, 255, 0.15), transparent 30%),
    radial-gradient(circle at 18% 70%, rgba(151, 113, 255, 0.13), transparent 32%),
    radial-gradient(circle at 80% 86%, rgba(247, 215, 139, 0.07), transparent 28%);
}

.premium-top,
.premium-card,
.report-top,
.report-country-list,
.report-disclaimer,
.community-top,
.community-actions,
.moderation-warning,
.community-feed {
  position: relative;
  z-index: 2;
}

.premium-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.report-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.help-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.help-top h1 {
  margin: 0;
  color: rgba(244, 250, 255, 0.96);
  font-size: 25px;
  line-height: 1.08;
  text-shadow: 0 0 24px rgba(96, 210, 255, 0.3);
}

.help-top p:last-child {
  margin: 5px 0 0;
  color: rgba(226, 237, 255, 0.68);
  font-size: 13px;
  line-height: 1.35;
}

.help-panel {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(178, 224, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 15, 31, 0.42);
}

.help-updates-space {
  min-height: 96px;
}

.report-top h1 {
  margin: 0;
  color: rgba(244, 250, 255, 0.96);
  font-size: 25px;
  line-height: 1.08;
  text-shadow: 0 0 24px rgba(96, 210, 255, 0.3);
}

.report-top p:last-child {
  margin: 5px 0 0;
  color: rgba(226, 237, 255, 0.68);
  font-size: 13px;
  line-height: 1.35;
}

.report-country-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
}

.report-country-list::-webkit-scrollbar {
  display: none;
}

.report-country-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(178, 224, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.72), rgba(13, 12, 32, 0.72)),
    radial-gradient(circle at 15% 0%, rgba(92, 211, 255, 0.12), transparent 42%);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
}

.report-country-name {
  color: rgba(242, 248, 255, 0.94);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.report-resource-list {
  display: grid;
  gap: 8px;
}

.report-resource-link,
.report-resource-note {
  display: grid;
  gap: 3px;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(178, 224, 255, 0.12);
  border-radius: 14px;
  background: rgba(7, 15, 31, 0.4);
  text-decoration: none;
}

.report-resource-link span,
.report-resource-note span {
  color: rgba(242, 248, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.report-resource-link small,
.report-resource-note small {
  color: rgba(226, 237, 255, 0.66);
  font-size: 13px;
  line-height: 1.34;
}

.report-resource-link:focus-visible {
  box-shadow:
    0 0 0 1px rgba(236, 247, 255, 0.3),
    0 0 28px rgba(94, 214, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.report-disclaimer {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(247, 215, 139, 0.18);
  border-radius: 16px;
  background: rgba(7, 15, 31, 0.42);
  color: rgba(226, 237, 255, 0.6);
  font-size: 12px;
  line-height: 1.42;
}

.recipient-card,
.recipient-privacy-notice {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 348px;
  border: 1px solid rgba(178, 224, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.82), rgba(13, 12, 32, 0.82)),
    radial-gradient(circle at 18% 0%, rgba(92, 211, 255, 0.12), transparent 42%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.recipient-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.recipient-card h1,
.recipient-privacy-notice h2 {
  margin: 0;
  color: rgba(244, 250, 255, 0.96);
  line-height: 1.1;
}

.recipient-card h1 {
  font-size: 26px;
}

.recipient-card p:not(.entry-brand),
.recipient-enhanced,
.recipient-privacy-notice p {
  margin: 0;
  color: rgba(226, 237, 255, 0.68);
  font-size: 14px;
  line-height: 1.44;
}

.recipient-actions {
  display: grid;
  gap: 10px;
}

.recipient-actions[hidden] {
  display: none;
}

.recipient-destination-link {
  display: grid;
  place-items: center;
  min-height: 48px;
  text-align: center;
  text-decoration: none;
}

.recipient-destination-link[hidden] {
  display: none;
}

.recipient-enhanced {
  min-height: 20px;
}

.report-link-button {
  justify-self: center;
  padding: 0;
  background: transparent;
  color: rgba(226, 237, 255, 0.56);
  font-size: 12px;
  text-decoration: underline;
}

.recipient-privacy-notice {
  position: absolute;
  top: max(22px, calc(env(safe-area-inset-top) + 14px));
  padding: 16px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 280ms ease, transform 280ms ease;
}

.recipient-privacy-notice.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.premium-badge {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 215, 139, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 30%, rgba(255, 255, 255, 0.24), transparent 20%),
    linear-gradient(135deg, rgba(247, 215, 139, 0.22), rgba(91, 216, 255, 0.12)),
    rgba(8, 17, 35, 0.72);
  color: rgba(255, 229, 160, 0.94);
  box-shadow: 0 0 26px rgba(247, 215, 139, 0.18), 0 0 42px rgba(91, 216, 255, 0.1);
}

.premium-badge svg {
  width: 22px;
  height: 22px;
}

.premium-kicker {
  margin: 0 0 3px;
  color: rgba(247, 215, 139, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.premium-top h1 {
  margin: 0;
  color: rgba(244, 250, 255, 0.96);
  font-size: 25px;
  line-height: 1.08;
  text-shadow: 0 0 24px rgba(96, 210, 255, 0.3);
}

.premium-top p:last-child {
  margin: 5px 0 0;
  color: rgba(226, 237, 255, 0.68);
  font-size: 13px;
  line-height: 1.35;
}

.premium-card {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(178, 224, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.76), rgba(13, 12, 32, 0.74)),
    radial-gradient(circle at 16% 0%, rgba(92, 211, 255, 0.12), transparent 42%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  scrollbar-width: none;
}

.premium-card::-webkit-scrollbar {
  display: none;
}

.premium-description {
  margin: 0;
  color: rgba(238, 246, 255, 0.84);
  font-size: 14px;
  line-height: 1.5;
}

.premium-price-panel {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(247, 215, 139, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 16%, rgba(247, 215, 139, 0.16), transparent 34%),
    rgba(5, 12, 25, 0.42);
  box-shadow: 0 0 28px rgba(247, 215, 139, 0.08);
}

.premium-price {
  margin: 0;
  color: rgba(255, 241, 203, 0.96);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.premium-trial {
  margin: 0;
  color: rgba(91, 216, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.premium-features {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.premium-features li {
  position: relative;
  padding-left: 24px;
  color: rgba(238, 246, 255, 0.84);
  font-size: 14px;
  line-height: 1.38;
}

.premium-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 215, 139, 0.9);
  box-shadow: 0 0 14px rgba(247, 215, 139, 0.42);
}

.location-check-tool {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(178, 224, 255, 0.12);
}

.location-check-heading {
  display: grid;
  gap: 5px;
}

.location-check-heading h2,
.location-check-info h3,
.location-result-card h3 {
  margin: 0;
  color: rgba(244, 250, 255, 0.94);
  line-height: 1.18;
}

.location-check-heading h2 {
  font-size: 20px;
}

.location-check-heading p:last-child,
.location-check-info p,
.location-check-disclaimer {
  margin: 0;
  color: rgba(226, 237, 255, 0.66);
  font-size: 13px;
  line-height: 1.42;
}

.location-check-info {
  display: grid;
  gap: 10px;
}

.location-check-info > div,
.location-result-card {
  padding: 12px;
  border: 1px solid rgba(178, 224, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 15, 31, 0.38);
}

.location-check-info h3,
.location-result-card h3 {
  font-size: 14px;
}

.location-check-form {
  display: grid;
  gap: 10px;
}

.location-plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.location-plan-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(178, 224, 255, 0.12);
  border-radius: 14px;
  background: rgba(7, 15, 31, 0.36);
  color: rgba(238, 246, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.location-plan-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #57c8ff;
}

.location-helper-text {
  margin: -2px 0 0;
  color: rgba(226, 237, 255, 0.58);
  font-size: 12px;
  line-height: 1.38;
}

.location-check-status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(178, 224, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 15, 31, 0.42);
}

.location-check-status.loading,
.location-check-status.ready,
.location-check-status.error {
  display: flex;
}

.location-check-status p {
  margin: 0;
  color: rgba(238, 246, 255, 0.86);
  font-size: 13px;
  line-height: 1.38;
}

.location-check-status a {
  display: block;
  margin-top: 4px;
  color: rgba(118, 218, 255, 0.9);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.verification-share-content,
.verification-share-actions {
  display: grid;
  gap: 8px;
}

.verification-link-value {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(178, 224, 255, 0.12);
  border-radius: 10px;
  background: rgba(2, 8, 18, 0.38);
  color: rgba(226, 237, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.verification-share-feedback {
  min-height: 18px;
  color: rgba(118, 218, 255, 0.92);
}

@media (min-width: 520px) {
  .verification-share-actions {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}

.location-spinner {
  width: 18px;
  aspect-ratio: 1;
  border: 2px solid rgba(178, 224, 255, 0.16);
  border-top-color: rgba(91, 216, 255, 0.92);
  border-radius: 50%;
  animation: spin 820ms linear infinite;
}

.location-check-results {
  display: grid;
  gap: 10px;
}

.location-result-card dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.location-result-card div {
  display: grid;
  gap: 2px;
}

.location-result-card dt {
  color: rgba(226, 237, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.location-result-card dd {
  margin: 0;
  color: rgba(238, 246, 255, 0.84);
  font-size: 13px;
  line-height: 1.36;
}

.location-check-disclaimer {
  padding: 10px 12px;
  border: 1px solid rgba(247, 215, 139, 0.16);
  border-radius: 14px;
  background: rgba(7, 15, 31, 0.36);
}

.premium-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.premium-secure-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 14px;
  color: rgba(191, 235, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.premium-secure-note p,
.premium-footnotes p {
  margin: 0;
}

.premium-secure-note span {
  color: rgba(247, 215, 139, 0.9);
  font-weight: 800;
}

.premium-footnotes {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: rgba(226, 237, 255, 0.56);
  font-size: 12px;
  line-height: 1.42;
}

.premium-disclosure-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.premium-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.premium-policy-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(247, 215, 139, 0.9);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.community-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
}

.community-mark {
  position: relative;
  width: 54px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(184, 231, 255, 0.2), 0 0 28px rgba(91, 216, 255, 0.32), 0 0 52px rgba(142, 104, 255, 0.18);
  animation: chatAvatarBreathe 5200ms ease-in-out infinite;
}

.community-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transform: scale(1.22);
}

.community-top h1 {
  margin: 0;
  color: rgba(244, 250, 255, 0.96);
  font-size: 27px;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(96, 210, 255, 0.3);
}

.community-top p {
  margin: 5px 0 0;
  color: rgba(226, 237, 255, 0.66);
  font-size: 13px;
  line-height: 1.35;
}

.community-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  padding-bottom: 12px;
}

.entry-primary.compact,
.entry-secondary.compact {
  min-height: 42px;
  font-size: 14px;
}

.moderation-warning {
  display: none;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 215, 139, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(247, 215, 139, 0.14), rgba(18, 24, 44, 0.76));
  color: rgba(255, 238, 199, 0.92);
  font-size: 13px;
  line-height: 1.38;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24), 0 0 28px rgba(247, 215, 139, 0.08);
}

.moderation-warning.visible {
  display: block;
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 0 18px;
  scrollbar-width: none;
}

.community-feed::-webkit-scrollbar {
  display: none;
}

.post-card,
.comment-card {
  border: 1px solid rgba(178, 224, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.72), rgba(13, 12, 32, 0.72)),
    radial-gradient(circle at 15% 0%, rgba(92, 211, 255, 0.12), transparent 42%);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.post-card {
  border-radius: 22px;
  padding: 14px;
  animation: messageIn 520ms ease both;
}

.post-header,
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 28%, rgba(255, 255, 255, 0.34), transparent 14%),
    linear-gradient(135deg, rgba(91, 211, 255, 0.52), rgba(91, 72, 194, 0.62));
  color: rgba(250, 253, 255, 0.94);
  font-size: 18px;
  box-shadow: 0 0 20px rgba(84, 203, 255, 0.18);
}

.post-author,
.comment-author {
  margin: 0;
  color: rgba(242, 248, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.post-time,
.comment-time {
  margin: 2px 0 0;
  color: rgba(226, 237, 255, 0.48);
  font-size: 12px;
}

.post-text {
  margin: 13px 0 0;
  color: rgba(238, 246, 255, 0.86);
  font-size: 14px;
  line-height: 1.48;
}

.image-placeholder {
  display: grid;
  gap: 8px;
  min-height: 132px;
  margin-top: 12px;
  border: 1px dashed rgba(184, 231, 255, 0.2);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(5, 12, 25, 0.42);
  color: rgba(226, 237, 255, 0.5);
  font-size: 13px;
}

.image-placeholder.is-empty {
  place-items: center;
}

.community-post-image,
.selected-image-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.community-image-label {
  padding: 0 12px 11px;
  color: rgba(226, 237, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.post-actions,
.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.reaction-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}

.post-actions button,
.comment-actions button,
.comment-submit,
.reaction-button {
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(232, 241, 255, 0.76);
  font-size: 17px;
  font-weight: 700;
}

.reaction-button,
.comment-icon-action,
.report-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  white-space: nowrap;
  filter: drop-shadow(0 0 7px rgba(84, 203, 255, 0.08));
  transition: transform 180ms ease, filter 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.reaction-button:active,
.comment-icon-action:active,
.report-action:active {
  transform: scale(0.98);
}

.reaction-button:hover,
.reaction-button.selected,
.comment-icon-action:hover,
.report-action:hover {
  background: rgba(91, 216, 255, 0.08);
  filter: drop-shadow(0 0 11px rgba(91, 216, 255, 0.34));
}

.reaction-button.selected {
  box-shadow: 0 0 0 1px rgba(190, 235, 255, 0.12), 0 0 18px rgba(91, 216, 255, 0.16);
}

.reaction-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  translate: -50% 4px;
  opacity: 0;
  pointer-events: none;
  padding: 5px 8px;
  border: 1px solid rgba(190, 230, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 12, 25, 0.86);
  color: rgba(242, 248, 255, 0.9);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 18px rgba(84, 203, 255, 0.08);
  transition: opacity 180ms ease, translate 180ms ease;
}

.reaction-button:hover .reaction-tooltip,
.reaction-button:focus-visible .reaction-tooltip,
.comment-icon-action:hover .reaction-tooltip,
.comment-icon-action:focus-visible .reaction-tooltip,
.report-action:hover .reaction-tooltip,
.report-action:focus-visible .reaction-tooltip {
  opacity: 1;
  translate: -50% 0;
}

.report-action {
  color: rgba(255, 225, 173, 0.9) !important;
}

.comment-submit {
  width: auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(190, 230, 255, 0.13);
  background: rgba(7, 15, 31, 0.56);
  font-size: 12px;
}

.comments-panel {
  display: none;
  margin-top: 12px;
  gap: 10px;
}

.comments-panel.visible {
  display: grid;
}

.comment-card {
  border-radius: 16px;
  padding: 11px;
}

.comment-text {
  margin: 8px 0 0;
  color: rgba(238, 246, 255, 0.82);
  font-size: 13px;
  line-height: 1.42;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.comment-identity {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(190, 230, 255, 0.1);
  border-radius: 15px;
  background: rgba(5, 12, 25, 0.28);
}

.comment-identity-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.comment-identity-toggle button,
.comment-anonymous-icons button {
  min-height: 30px;
  border: 1px solid rgba(190, 230, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.5);
  color: rgba(232, 241, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.comment-identity-toggle button.selected,
.comment-anonymous-icons button.selected {
  border-color: rgba(247, 215, 139, 0.28);
  color: rgba(255, 238, 199, 0.92);
  box-shadow: 0 0 18px rgba(247, 215, 139, 0.08);
}

.comment-anonymous-icons {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.comment-anonymous-icons.visible {
  display: grid;
}

.comment-anonymous-icons button {
  aspect-ratio: 1;
  min-height: 30px;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
}

.comment-anonymous-icons button[data-comment-avatar="choose"] {
  grid-column: span 2;
  aspect-ratio: auto;
  border-radius: 999px;
  font-size: 10px;
}

.comment-form input {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(190, 230, 255, 0.14);
  border-radius: 999px;
  outline: none;
  padding: 0 12px;
  background: rgba(5, 12, 25, 0.48);
  color: rgba(244, 249, 255, 0.9);
  font: inherit;
  font-size: 13px;
}

.community-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 2, 8, 0.58);
  backdrop-filter: blur(12px);
}

.community-modal.visible {
  display: grid;
}

.community-modal-card {
  width: 100%;
  max-width: 390px;
  max-height: calc(100svh - 42px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(178, 224, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.92), rgba(13, 12, 32, 0.9)),
    radial-gradient(circle at 15% 0%, rgba(92, 211, 255, 0.14), transparent 42%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44), 0 0 46px rgba(84, 203, 255, 0.12);
  scrollbar-width: none;
}

.community-modal-card::-webkit-scrollbar {
  display: none;
}

.community-modal-card h2 {
  margin: 0 0 14px;
  color: rgba(242, 248, 255, 0.94);
  font-size: 21px;
}

.modal-close {
  float: right;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.7);
  color: rgba(232, 241, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.community-form {
  display: grid;
  gap: 12px;
}

.community-form textarea {
  min-height: 118px;
  resize: vertical;
  border: 1px solid rgba(190, 230, 255, 0.16);
  border-radius: 18px;
  outline: none;
  padding: 14px;
  background: rgba(5, 12, 25, 0.5);
  color: rgba(244, 249, 255, 0.92);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.image-upload-mock {
  min-height: 46px;
  border: 1px dashed rgba(184, 231, 255, 0.22);
  border-radius: 16px;
  background: rgba(5, 12, 25, 0.38);
  color: rgba(226, 237, 255, 0.7);
  font-weight: 700;
}

.selected-image-preview {
  display: none;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(190, 230, 255, 0.13);
  border-radius: 18px;
  background: rgba(5, 12, 25, 0.38);
}

.selected-image-preview.visible {
  display: grid;
}

.selected-image-preview img {
  max-height: 180px;
}

.selected-image-preview p {
  margin: 0;
  color: rgba(226, 237, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.remove-image-button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(247, 215, 139, 0.2);
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.6);
  color: rgba(255, 238, 199, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.identity-fieldset {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(190, 230, 255, 0.12);
  border-radius: 16px;
  padding: 12px;
  color: rgba(226, 237, 255, 0.78);
}

.identity-fieldset legend {
  padding: 0 6px;
  color: rgba(242, 248, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.identity-fieldset label,
.community-form label {
  color: rgba(226, 237, 255, 0.78);
  font-size: 13px;
  line-height: 1.38;
}

.anonymous-choices {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.anonymous-choices.visible {
  display: grid;
}

.anonymous-choices button {
  min-height: 38px;
  aspect-ratio: 1;
  border: 1px solid rgba(190, 230, 255, 0.13);
  border-radius: 50%;
  background: rgba(7, 15, 31, 0.56);
  color: rgba(232, 241, 255, 0.76);
  font-size: 18px;
  font-weight: 700;
}

.anonymous-choices button[data-avatar="choose"] {
  aspect-ratio: auto;
  grid-column: span 2;
  border-radius: 999px;
  font-size: 11px;
}

.anonymous-choices button.selected {
  border-color: rgba(247, 215, 139, 0.34);
  color: rgba(255, 238, 199, 0.94);
  box-shadow: 0 0 24px rgba(247, 215, 139, 0.1);
}

.rules-card {
  max-height: min(80svh, 680px);
}

.rules-list {
  display: grid;
  gap: 9px;
}

.rules-list p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(190, 230, 255, 0.1);
  border-radius: 13px;
  background: rgba(5, 12, 25, 0.38);
  color: rgba(232, 241, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
}

.is-transitioning .home-shell.is-active {
  opacity: 0;
  transform: translateY(-12px) scale(0.985);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-area {
  display: grid;
  place-items: center;
  min-height: 58px;
}

.brand-name {
  margin: 0;
  color: rgba(244, 250, 255, 0.96);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(96, 210, 255, 0.34), 0 0 42px rgba(151, 119, 255, 0.2);
}

.avatar-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 366px;
}

.avatar-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(64vw, 252px);
  aspect-ratio: 0.72;
  margin: 0;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(105, 217, 255, 0.2), transparent 28%),
    radial-gradient(circle at 58% 68%, rgba(155, 107, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(10, 22, 44, 0.92), rgba(1, 3, 12, 0.98));
  box-shadow:
    0 0 18px rgba(91, 202, 255, 0.22),
    0 0 48px rgba(128, 99, 255, 0.24),
    0 28px 76px rgba(0, 0, 0, 0.44),
    inset 0 0 34px rgba(255, 255, 255, 0.08);
  animation: breathe 5200ms ease-in-out infinite, openingGlow 1900ms ease-out both;
}

.avatar-frame::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(212, 235, 255, 0.18);
  box-shadow: inset 0 0 22px rgba(107, 219, 255, 0.1);
  z-index: 3;
}

.avatar-frame::after {
  content: "";
  position: absolute;
  inset: -28%;
  background: conic-gradient(
    from 90deg,
    transparent 0 18%,
    rgba(86, 211, 255, 0.42) 23%,
    transparent 32%,
    rgba(247, 215, 139, 0.34) 52%,
    transparent 61%,
    rgba(162, 119, 255, 0.46) 76%,
    transparent 88%
  );
  filter: blur(22px);
  opacity: 0.2;
  animation: orbitLight 15000ms linear infinite;
  z-index: 0;
}

.avatar-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: inherit;
}

.avatar-image:not([src]),
.avatar-image[src=""] {
  display: none;
}

.avatar-image {
  background: transparent;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  background:
    radial-gradient(circle at 48% 36%, rgba(190, 242, 255, 0.52), transparent 12%),
    radial-gradient(circle at 50% 56%, rgba(85, 201, 255, 0.26), transparent 31%),
    radial-gradient(circle at 48% 70%, rgba(157, 116, 255, 0.22), transparent 39%);
}

.fallback-core {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95), transparent 9%),
    radial-gradient(circle, rgba(88, 211, 255, 0.95), rgba(106, 73, 255, 0.64) 54%, transparent 72%);
  filter: blur(0.2px);
  box-shadow: 0 0 34px rgba(89, 215, 255, 0.64), 0 0 58px rgba(156, 119, 255, 0.44);
}

.fallback-eye,
.fallback-mouth {
  position: absolute;
  z-index: 2;
  background: rgba(238, 249, 255, 0.84);
  box-shadow: 0 0 16px rgba(97, 220, 255, 0.72);
}

.fallback-eye {
  top: 45%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.left-eye {
  left: 42%;
}

.right-eye {
  right: 42%;
}

.fallback-mouth {
  top: 55%;
  width: 38px;
  height: 2px;
  border-radius: 999px;
}

.avatar-orbit {
  position: absolute;
  width: min(80vw, 336px);
  aspect-ratio: 0.82;
  border-radius: 38px;
  pointer-events: none;
}

.avatar-orbit::before,
.avatar-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 47%, rgba(88, 206, 255, 0.18), transparent 56%),
    radial-gradient(ellipse at 50% 50%, transparent 54%, rgba(88, 206, 255, 0.07), transparent 76%);
  filter: blur(10px);
  animation: softPulse 4300ms ease-in-out infinite;
}

.avatar-orbit::after {
  animation-delay: -1600ms;
  transform: scale(1.08);
  opacity: 0.7;
}

.ripple {
  position: absolute;
  inset: 2%;
  border-radius: 40px;
  border: 1px solid rgba(111, 222, 255, 0.18);
  opacity: 0;
  transform: scale(0.82);
}

.thread-field,
.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.thread {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82vw, 350px);
  height: min(82vw, 350px);
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid transparent;
  filter: drop-shadow(0 0 8px rgba(247, 211, 132, 0.28));
  animation: threadDrift 16000ms ease-in-out infinite;
}

.thread::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-top: 1px solid rgba(247, 215, 139, 0.64);
  border-right: 1px solid rgba(247, 215, 139, 0.22);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 66%, transparent);
}

.thread-two {
  width: min(74vw, 316px);
  height: min(74vw, 316px);
  animation-duration: 19000ms;
  animation-delay: -5200ms;
  rotate: 82deg;
}

.thread-three {
  width: min(91vw, 382px);
  height: min(91vw, 382px);
  animation-duration: 22000ms;
  animation-delay: -8700ms;
  rotate: -32deg;
  opacity: 0.78;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(198, 237, 255, 0.78);
  box-shadow: 0 0 12px rgba(106, 214, 255, 0.75);
  animation: floatParticle 9000ms ease-in-out infinite;
}

.p1 { left: 20%; top: 28%; animation-delay: -800ms; }
.p2 { left: 72%; top: 26%; width: 3px; height: 3px; animation-delay: -2400ms; }
.p3 { left: 14%; top: 56%; width: 2px; height: 2px; animation-delay: -3900ms; }
.p4 { left: 82%; top: 58%; animation-delay: -6100ms; }
.p5 { left: 30%; top: 76%; width: 3px; height: 3px; animation-delay: -1300ms; }
.p6 { left: 66%; top: 79%; width: 2px; height: 2px; animation-delay: -7100ms; }
.p7 { left: 50%; top: 18%; width: 2px; height: 2px; animation-delay: -5200ms; }
.p8 { left: 46%; top: 87%; width: 3px; height: 3px; animation-delay: -3400ms; }

.interaction-zone {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 14px;
  min-height: 240px;
}

.message-bubble {
  width: min(100%, 334px);
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(195, 229, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(16, 32, 58, 0.78), rgba(16, 12, 34, 0.74)),
    radial-gradient(circle at 20% 0%, rgba(99, 213, 255, 0.18), transparent 45%);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: rgba(242, 248, 255, 0.92);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 540ms ease, transform 540ms ease, border-color 540ms ease, box-shadow 540ms ease;
}

.message-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.message-bubble.comfort {
  border-color: rgba(247, 215, 139, 0.34);
  box-shadow: 0 18px 62px rgba(0, 0, 0, 0.34), 0 0 42px rgba(247, 211, 132, 0.12);
}

.mic-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 32%, rgba(255, 255, 255, 0.82), transparent 11%),
    radial-gradient(circle at 50% 48%, rgba(89, 205, 255, 0.92), rgba(85, 65, 183, 0.84) 58%, rgba(8, 17, 37, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(190, 235, 255, 0.22),
    0 0 24px rgba(84, 203, 255, 0.4),
    0 0 58px rgba(130, 95, 255, 0.28),
    inset 0 -12px 22px rgba(0, 0, 0, 0.32);
  transition: transform 220ms ease, box-shadow 420ms ease, filter 420ms ease;
}

.mic-button:active {
  transform: scale(0.96);
}

.mic-icon {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(232, 249, 255, 0.56));
}

.mic-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(103, 220, 255, 0.42);
  opacity: 0;
}

.presence-line {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 0 20px rgba(96, 202, 255, 0.15);
}

.stay-button {
  min-width: 154px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(247, 215, 139, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(247, 215, 139, 0.14), rgba(103, 209, 255, 0.07)),
    rgba(6, 12, 26, 0.66);
  color: rgba(249, 243, 226, 0.92);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 220ms ease, border-color 420ms ease, box-shadow 420ms ease, background 420ms ease;
}

.stay-button:active {
  transform: scale(0.98);
}

.ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(34px);
  opacity: 0.62;
  animation: ambientDrift 11000ms ease-in-out infinite;
}

.ambient-one {
  width: 220px;
  height: 220px;
  left: -110px;
  top: 18%;
  background: rgba(55, 175, 255, 0.18);
}

.ambient-two {
  width: 210px;
  height: 210px;
  right: -116px;
  top: 34%;
  background: rgba(143, 93, 255, 0.2);
  animation-delay: -4200ms;
}

.ambient-three {
  width: 230px;
  height: 230px;
  left: 25%;
  bottom: -150px;
  background: rgba(247, 203, 112, 0.09);
  animation-delay: -7200ms;
}

.is-listening .avatar-frame {
  box-shadow:
    0 0 28px rgba(91, 216, 255, 0.46),
    0 0 82px rgba(136, 102, 255, 0.34),
    0 28px 76px rgba(0, 0, 0, 0.44),
    inset 0 0 44px rgba(255, 255, 255, 0.11);
}

.is-listening .ripple {
  animation: rippleOut 2100ms ease-out infinite;
}

.is-listening .ring-two {
  animation-delay: 650ms;
}

.is-listening .ring-three {
  animation-delay: 1300ms;
}

.is-listening .thread {
  animation-duration: 7600ms;
}

.is-listening .mic-button,
.is-speaking .mic-button {
  animation: micPulse 1350ms ease-in-out infinite;
}

.is-listening .mic-ripple {
  animation: micRipple 1350ms ease-out infinite;
}

.is-speaking .avatar-frame {
  animation: breathe 3600ms ease-in-out infinite, speakingPulse 1900ms ease-in-out infinite;
  box-shadow:
    0 0 24px rgba(116, 213, 255, 0.3),
    0 0 62px rgba(255, 218, 158, 0.2),
    0 28px 76px rgba(0, 0, 0, 0.44),
    inset 0 0 42px rgba(255, 224, 166, 0.1);
}

.is-speaking .mic-button {
  animation-duration: 2600ms;
  filter: saturate(0.95) sepia(0.12);
  box-shadow:
    0 0 0 1px rgba(247, 215, 139, 0.24),
    0 0 24px rgba(247, 215, 139, 0.2),
    0 0 48px rgba(92, 203, 255, 0.2),
    inset 0 -12px 22px rgba(0, 0, 0, 0.32);
}

.is-comforting .stay-button {
  border-color: rgba(247, 215, 139, 0.48);
  background:
    linear-gradient(135deg, rgba(247, 215, 139, 0.22), rgba(103, 209, 255, 0.1)),
    rgba(10, 14, 26, 0.72);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.26), 0 0 36px rgba(247, 215, 139, 0.18);
}

.is-comforting .avatar-stage {
  filter: drop-shadow(0 0 28px rgba(247, 215, 139, 0.12));
}

.chat-shell {
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  padding: max(22px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.chat-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 14%, rgba(96, 203, 255, 0.15), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(152, 113, 255, 0.12), transparent 30%);
  opacity: 0.9;
}

.chat-top,
.chat-log,
.chat-compose {
  position: relative;
  z-index: 2;
}

.chat-top {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 2px;
  padding-bottom: 18px;
}

.chat-avatar-wrap {
  position: relative;
  width: 74px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  overflow: visible;
  background: rgba(6, 12, 25, 0.72);
  box-shadow:
    0 0 0 1px rgba(184, 231, 255, 0.2),
    0 0 26px rgba(91, 216, 255, 0.32),
    0 0 52px rgba(142, 104, 255, 0.22),
    inset 0 0 22px rgba(255, 255, 255, 0.06);
  animation: chatAvatarBreathe 5200ms ease-in-out infinite, chatAvatarDrift 9800ms ease-in-out infinite;
}

.chat-avatar-wrap::before,
.chat-avatar-wrap::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.chat-avatar-wrap::before {
  inset: -5px;
  border: 1px solid rgba(190, 235, 255, 0.2);
  box-shadow: inset 0 0 18px rgba(91, 216, 255, 0.12);
  z-index: 2;
}

.chat-avatar-wrap::after {
  inset: -24px;
  background: radial-gradient(circle, rgba(91, 216, 255, 0.22), transparent 68%);
  filter: blur(14px);
  z-index: -1;
  animation: chatAvatarAura 4200ms ease-in-out infinite;
}

.chat-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: inherit;
  transform: scale(1.24);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.18);
}

.chat-presence {
  margin: 0;
  color: rgba(226, 237, 255, 0.74);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 18px rgba(96, 202, 255, 0.18);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 2px 18px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.chat-log::-webkit-scrollbar {
  display: none;
}

.chat-message {
  max-width: min(78%, 310px);
  padding: 12px 14px;
  border-radius: 20px;
  color: rgba(244, 249, 255, 0.94);
  font-size: 14px;
  line-height: 1.45;
  animation: messageIn 520ms ease both;
}

.chat-message p {
  margin: 0;
}

.ia-message {
  align-self: flex-start;
  border-bottom-left-radius: 8px;
  border: 1px solid rgba(178, 224, 255, 0.15);
  background:
    linear-gradient(135deg, rgba(16, 33, 60, 0.78), rgba(13, 12, 32, 0.72)),
    radial-gradient(circle at 15% 0%, rgba(92, 211, 255, 0.16), transparent 42%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24), 0 0 28px rgba(84, 203, 255, 0.08);
}

.user-message {
  align-self: flex-end;
  border-bottom-right-radius: 8px;
  border: 1px solid rgba(247, 215, 139, 0.16);
  background:
    linear-gradient(135deg, rgba(76, 69, 156, 0.76), rgba(22, 35, 64, 0.78)),
    radial-gradient(circle at 85% 0%, rgba(247, 215, 139, 0.13), transparent 45%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.typing-message {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  min-width: 58px;
}

.typing-message span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(184, 235, 255, 0.82);
  box-shadow: 0 0 10px rgba(97, 220, 255, 0.42);
  animation: typingDot 1200ms ease-in-out infinite;
}

.typing-message span:nth-child(2) {
  animation-delay: 160ms;
}

.typing-message span:nth-child(3) {
  animation-delay: 320ms;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 58px;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}

.voice-status {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 7px;
  min-height: 20px;
  padding: 0 12px;
  border: 1px solid rgba(184, 231, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 17, 34, 0.46);
  color: rgba(226, 237, 255, 0.58);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms ease, transform 360ms ease, color 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
  pointer-events: none;
}

.voice-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(96, 213, 255, 0.72);
  box-shadow: 0 0 10px rgba(96, 213, 255, 0.42);
}

.chat-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 1px solid rgba(190, 230, 255, 0.16);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  background:
    linear-gradient(135deg, rgba(12, 25, 46, 0.82), rgba(9, 10, 24, 0.78)),
    radial-gradient(circle at 0% 0%, rgba(91, 216, 255, 0.12), transparent 46%);
  color: rgba(244, 249, 255, 0.94);
  font: inherit;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 30px rgba(0, 0, 0, 0.22);
}

.chat-input::placeholder {
  color: rgba(226, 237, 255, 0.48);
}

.chat-input:focus {
  border-color: rgba(96, 213, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 28px rgba(85, 205, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.22);
}

.chat-send,
.chat-mic {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.chat-send {
  width: 44px;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(247, 215, 139, 0.18), rgba(91, 216, 255, 0.13)),
    rgba(7, 15, 31, 0.78);
  box-shadow:
    0 0 0 1px rgba(220, 240, 255, 0.12),
    0 10px 26px rgba(0, 0, 0, 0.25);
}

.chat-send svg {
  width: 20px;
  height: 20px;
  color: rgba(240, 248, 255, 0.9);
}

.chat-mic {
  width: 58px;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 46% 32%, rgba(255, 255, 255, 0.8), transparent 11%),
    radial-gradient(circle at 50% 48%, rgba(89, 205, 255, 0.92), rgba(85, 65, 183, 0.84) 58%, rgba(8, 17, 37, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(190, 235, 255, 0.2),
    0 0 22px rgba(84, 203, 255, 0.34),
    0 0 48px rgba(130, 95, 255, 0.24),
    inset 0 -10px 18px rgba(0, 0, 0, 0.32);
  animation: micPulse 2600ms ease-in-out infinite;
}

.chat-mic svg {
  position: relative;
  z-index: 2;
  width: 25px;
  height: 25px;
}

.chat-mic-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(103, 220, 255, 0.4);
  opacity: 0;
}

.is-chat-listening .chat-mic {
  animation-duration: 1100ms;
  box-shadow:
    0 0 0 1px rgba(218, 246, 255, 0.32),
    0 0 30px rgba(84, 215, 255, 0.54),
    0 0 72px rgba(139, 103, 255, 0.4),
    inset 0 -10px 18px rgba(0, 0, 0, 0.32);
}

.is-chat-listening .chat-mic-ripple {
  animation: micRipple 1200ms ease-out infinite;
}

.is-voice-active .voice-status,
.is-chat-listening .voice-status,
.is-chat-speaking .voice-status {
  opacity: 1;
  transform: translateY(0);
}

.is-voice-active .voice-status {
  border-color: rgba(96, 213, 255, 0.2);
  color: rgba(226, 237, 255, 0.76);
  box-shadow: 0 0 22px rgba(84, 203, 255, 0.08);
}

.is-chat-listening .voice-status-dot {
  animation: micPulse 1000ms ease-in-out infinite;
}

.is-chat-listening .chat-avatar-wrap {
  animation: chatAvatarListening 2400ms ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(204, 242, 255, 0.32),
    0 0 38px rgba(91, 216, 255, 0.58),
    0 0 72px rgba(142, 104, 255, 0.38),
    inset 0 0 24px rgba(255, 255, 255, 0.08);
}

.is-chat-listening .chat-avatar-wrap::after {
  background:
    radial-gradient(circle, rgba(98, 220, 255, 0.34), transparent 58%),
    radial-gradient(circle, rgba(149, 113, 255, 0.18), transparent 72%);
  animation: chatAvatarListeningAura 1700ms ease-in-out infinite;
}

.is-chat-speaking .chat-avatar-wrap {
  animation: chatAvatarSpeaking 1850ms ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(247, 215, 139, 0.3),
    0 0 28px rgba(91, 216, 255, 0.24),
    0 0 78px rgba(255, 218, 158, 0.32),
    inset 0 0 26px rgba(255, 224, 166, 0.1);
}

.is-chat-speaking .chat-avatar-wrap::after {
  background:
    radial-gradient(circle, rgba(255, 218, 158, 0.3), transparent 58%),
    radial-gradient(circle, rgba(91, 216, 255, 0.12), transparent 76%);
  animation: chatAvatarSpeakingAura 1450ms ease-in-out infinite;
}

.is-chat-speaking .chat-mic {
  animation-duration: 3200ms;
  filter: saturate(0.95) sepia(0.1);
  box-shadow:
    0 0 0 1px rgba(247, 215, 139, 0.2),
    0 0 20px rgba(247, 215, 139, 0.16),
    0 0 38px rgba(84, 203, 255, 0.18),
    inset 0 -10px 18px rgba(0, 0, 0, 0.32);
}

.is-chat-responding .chat-avatar-wrap {
  animation: chatAvatarBreathe 3000ms ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(247, 215, 139, 0.18),
    0 0 30px rgba(91, 216, 255, 0.28),
    0 0 58px rgba(255, 218, 158, 0.16),
    inset 0 0 22px rgba(255, 255, 255, 0.06);
}

.is-chat-responding .chat-avatar-wrap::after {
  background:
    radial-gradient(circle, rgba(247, 215, 139, 0.16), transparent 60%),
    radial-gradient(circle, rgba(91, 216, 255, 0.2), transparent 74%);
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typingDot {
  0%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes chatAvatarBreathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1) saturate(1);
  }
  50% {
    transform: translateY(-1px) scale(1.035);
    filter: brightness(1.08) saturate(1.06);
  }
}

@keyframes chatAvatarDrift {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: 1.2deg;
  }
}

@keyframes chatAvatarAura {
  0%,
  100% {
    opacity: 0.56;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes chatAvatarListening {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1.08) saturate(1.08);
  }
  50% {
    transform: scale(1.055);
    filter: brightness(1.2) saturate(1.14);
  }
}

@keyframes chatAvatarListeningAura {
  0%,
  100% {
    opacity: 0.64;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes chatAvatarSpeaking {
  0%,
  100% {
    transform: scale(1.01);
    filter: brightness(1.05) saturate(1.04) sepia(0.04);
  }
  32% {
    transform: scale(1.065);
    filter: brightness(1.18) saturate(1.08) sepia(0.08);
  }
  62% {
    transform: scale(1.025);
    filter: brightness(1.11) saturate(1.06) sepia(0.06);
  }
}

@keyframes chatAvatarSpeakingAura {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(1);
  }
  45% {
    opacity: 0.96;
    transform: scale(1.18);
  }
}

@keyframes appFadeIn {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes openingGlow {
  from {
    filter: brightness(0.72);
    box-shadow: 0 0 0 rgba(91, 202, 255, 0), 0 0 0 rgba(128, 99, 255, 0);
  }
  to {
    filter: brightness(1);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes orbitLight {
  to {
    rotate: 360deg;
  }
}

@keyframes threadDrift {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(18deg) scale(1.04);
  }
}

@keyframes floatParticle {
  0%,
  100% {
    opacity: 0.34;
    transform: translate3d(0, 0, 0);
  }
  45% {
    opacity: 0.88;
    transform: translate3d(14px, -20px, 0);
  }
  75% {
    transform: translate3d(-8px, 12px, 0);
  }
}

@keyframes rippleOut {
  0% {
    opacity: 0;
    transform: scale(0.74);
  }
  18% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@keyframes micPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

@keyframes micRipple {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes speakingPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12) saturate(1.05);
  }
}

@keyframes ambientDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -18px, 0) scale(1.08);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-height: 720px) {
  .home-shell {
    grid-template-rows: auto minmax(284px, 1fr) auto;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .brand-area {
    min-height: 46px;
  }

  .avatar-stage {
    min-height: 304px;
  }

  .avatar-frame {
    width: min(58vw, 232px);
  }

  .interaction-zone {
    min-height: 214px;
    gap: 10px;
  }

  .mic-button {
    width: 64px;
  }

  .stay-button {
    min-height: 42px;
  }
}

@media (min-width: 431px) {
  body {
    background:
      radial-gradient(circle at 50% 18%, rgba(65, 153, 255, 0.18), transparent 28%),
      linear-gradient(165deg, #071128 0%, #02050e 47%, #000106 100%);
  }

  .phone-screen {
    height: min(100svh, 932px);
    min-height: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
