:root {
  --bg-a: #08121f;
  --bg-b: #0f2238;
  --panel: rgba(7, 16, 29, 0.78);
  --line: rgba(143, 189, 242, 0.32);
  --text: #e9f2ff;
  --muted: rgba(214, 229, 255, 0.7);
  --accent: #55b3ff;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, var(--bg-b), var(--bg-a) 58%);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  margin-top: 0 !important;
}

body.admin-bar {
  margin-top: 0 !important;
}

#wpadminbar {
  display: none !important;
}

#app.avatar-layout {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 14px 10px 18px;
  box-sizing: border-box;
}

.scene-wrap {
  position: relative;
  width: min(430px, 92vw);
  height: clamp(420px, 66dvh, 760px);
  border-radius: 22px;
  border: 1px solid rgba(143, 189, 242, 0.22);
  background: linear-gradient(180deg, rgba(26, 56, 88, 0.32), rgba(7, 16, 29, 0.12));
  overflow: hidden;
}

#c {
  display: block;
  width: 100%;
  height: 100%;
}

.status {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(2, 9, 19, 0.6);
  border: 1px solid rgba(143, 189, 242, 0.3);
  color: var(--muted);
}

.composer-wrap {
  width: min(430px, 92vw);
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.tts-row.main-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

#tts-input {
  width: 100%;
  min-height: 66px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(143, 189, 242, 0.35);
  background: rgba(5, 12, 22, 0.82);
  color: var(--text);
  font-size: clamp(17px, 2.3vw, 22px);
  outline: none;
  box-sizing: border-box;
}

#tts-input::placeholder {
  color: rgba(220, 235, 255, 0.5);
}

#tts-input:focus {
  border-color: rgba(114, 189, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(85, 179, 255, 0.2);
}

#tts-send {
  min-height: 66px;
  padding: 0 30px;
  border-radius: 14px;
  border: 1px solid rgba(118, 197, 255, 0.95);
  background: linear-gradient(180deg, #5fc0ff, #2f97e4);
  color: #eaf6ff;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

#tts-send:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#tts-send:active {
  transform: translateY(1px);
}

.tts-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 760px) {
  #app.avatar-layout {
    gap: 12px;
    padding: 10px 8px 12px;
  }

  .scene-wrap {
    width: min(420px, 94vw);
    height: clamp(340px, 60dvh, 620px);
    border-radius: 14px;
  }

  .composer-wrap {
    width: min(420px, 94vw);
    padding: 10px;
    border-radius: 14px;
  }

  .tts-row.main-row {
    grid-template-columns: 1fr;
  }

  #tts-send {
    width: 100%;
  }
}

.neon-highlight {
  outline: 2px solid rgba(120, 255, 220, 0.8);
  outline-offset: 2px;
  box-shadow:
    0 0 12px rgba(120, 255, 220, 0.45),
    0 0 24px rgba(120, 255, 220, 0.35);
}
