﻿/* ─────────────────────────────────────────────
   Inanna Proto-IA — Cordel 2.0
   ───────────────────────────────────────────── */
:root {
  --bg: #0a0c0f;
  --glass: rgba(18, 22, 28, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --primary: #f97316;
  --primary-glow: rgba(249, 115, 22, 0.35);
  --secondary: #8b5cf6;
  --accent: #10b981;
  --danger: #ef4444;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 8px;
  --t: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── Esferas de fundo ────────────────────────────────────────────── */
.glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -1;
  opacity: 0.45;
  animation: float 22s infinite alternate ease-in-out;
}

.sphere-1 {
  background: var(--primary);
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
}

.sphere-2 {
  background: var(--secondary);
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -150px;
  animation-delay: -7s;
}

.sphere-3 {
  background: #3b82f6;
  width: 350px;
  height: 350px;
  top: 40%;
  left: 35%;
  opacity: 0.2;
  animation-delay: -13s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -50px) scale(1.08);
  }

  100% {
    transform: translate(-30px, 50px) scale(0.92);
  }
}

/* ── Container principal ─────────────────────────────────────────── */
.app {
  max-width: 1100px;
  margin: 32px auto;
  padding: 28px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Header ──────────────────────────────────────────────────────── */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo-wrap {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--primary-glow);
  transform: rotate(-5deg);
  transition: var(--t);
  padding: 3px;
}

.logo-wrap:hover {
  transform: rotate(0deg) scale(1.05);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

h1 {
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
  max-width: 420px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.header-session-btn {
  min-width: 170px;
  justify-content: center;
}

/* Toggles */
.glass-pill {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
}

.mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 99px;
  transition: var(--t);
}

.mode-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mode-toggle input {
  display: none;
}

.toggle-track {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  position: relative;
  transition: var(--t);
}

.toggle-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: var(--t);
}

.mode-toggle input:checked+.toggle-track {
  background: var(--accent);
}

.mode-toggle input:checked+.toggle-track .toggle-thumb {
  left: 19px;
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.mode-toggle input:checked~.toggle-label {
  color: var(--text);
}

/* Métricas mini */
.metrics-mini {
  display: flex;
  gap: 10px;
}

.metric-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 8px 14px;
}

.metric-trigger {
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.metric-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.18), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.metric-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.metric-mini span {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
}

.metric-time {
  min-width: 132px;
}

.metric-time span {
  font-size: 18px;
  letter-spacing: 0.4px;
}

.metric-mini small {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.metric-mini.highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.metric-mini.highlight span {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* ── Barra de progresso ──────────────────────────────────────────── */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: var(--t);
  cursor: default;
}

.step-indicator.current {
  opacity: 1;
}

.step-indicator.done {
  opacity: 0.7;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  transition: var(--t);
}

.step-indicator.current .step-num {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.2);
  color: var(--primary);
}

.step-indicator.done .step-num {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
}

.step-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.step-indicator.current .step-lbl {
  color: var(--text);
}

.steps-connector {
  flex: 1;
  height: 2px;
  min-width: 60px;
  max-width: 120px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 8px;
  margin-bottom: 22px;
}

/* ── Etapas do jogo ──────────────────────────────────────────────── */
.game-step {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: stepIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.game-step.active {
  display: flex;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  text-align: center;
}

.step-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 6px;
}

.step-desc code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary);
  font-size: 14px;
}

.step-desc em {
  color: var(--text);
  font-style: italic;
}

.step-desc strong {
  color: var(--primary);
}

/* ── Etapa 1: Grade de temas ─────────────────────────────────────── */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.theme-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 20px 14px;
  cursor: pointer;
  transition: var(--t);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-sans);
  animation: fadeUp 0.4s backwards;
}

.theme-card:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.theme-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* staggered animation */
.theme-card:nth-child(1) {
  animation-delay: 0.02s;
}

.theme-card:nth-child(2) {
  animation-delay: 0.06s;
}

.theme-card:nth-child(3) {
  animation-delay: 0.10s;
}

.theme-card:nth-child(4) {
  animation-delay: 0.14s;
}

.theme-card:nth-child(5) {
  animation-delay: 0.18s;
}

.theme-card:nth-child(6) {
  animation-delay: 0.22s;
}

.theme-card:nth-child(7) {
  animation-delay: 0.26s;
}

.theme-card:nth-child(8) {
  animation-delay: 0.30s;
}

.theme-card:nth-child(9) {
  animation-delay: 0.34s;
}

.theme-card:nth-child(10) {
  animation-delay: 0.38s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-emoji {
  font-size: 38px;
  line-height: 1;
}

.theme-name {
  font-size: 15px;
  font-weight: 700;
}

.theme-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Etapa 2: Verso incompleto ───────────────────────────────────── */
.history-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-lg);
  padding: 14px;
  border: 1px solid var(--glass-border);
  min-height: 56px;
}

.history-inline:empty::after {
  content: "Os versos que você completar vão aparecer aqui…";
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.histItem {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  animation: fadeUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  position: relative;
  overflow: hidden;
}

.histItem::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.histItem.custom::before {
  background: var(--accent);
}

.hist-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.hist-source {
  font-weight: 600;
  color: var(--text);
}

.hist-line {
  font-size: 15px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.verse-input-area {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-row {
  display: flex;
  gap: 12px;
}

.input-row input,
#customInput {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  color: var(--text);
  transition: var(--t);
}

.input-row input:focus,
#customInput:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.input-row input:focus-visible,
#customInput:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.85);
  outline-offset: 2px;
}

.verse-hint {
  font-size: 13px;
  color: var(--muted);
}

.round-status {
  margin-top: -10px;
  margin-bottom: 4px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #d1fae5;
  font-size: 13px;
  font-weight: 600;
}

.form-hint {
  min-height: 18px;
  text-align: center;
}

.start-identity {
  min-height: 72px;
}

.start-identity__card {
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  line-height: 1.5;
}

.start-identity__card strong {
  color: #fff7ed;
}

.start-identity__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.start-identity__card--success {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.start-identity__card--warning {
  border-color: rgba(249, 115, 22, 0.32);
  background: rgba(249, 115, 22, 0.08);
}

.verse-build-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(249, 115, 22, 0.28);
  min-height: 58px;
}

.preview-muted {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-stem {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
}

/* ── Botões ──────────────────────────────────────────────────────── */
.btn {
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:not(:disabled):hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.btn-custom {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-custom:not(:disabled):hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ── Etapa 3: Previsões ──────────────────────────────────────────── */
.verse-preview-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
}

.verse-preview-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.verse-preview-text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  font-family: var(--font-mono);
}

.blank-placeholder {
  display: inline-block;
  background: rgba(249, 115, 22, 0.2);
  color: var(--primary);
  border: 2px dashed var(--primary);
  border-radius: 6px;
  padding: 0 12px;
  font-weight: 800;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

.blank-placeholder.fixed {
  min-width: 58px;
  text-align: center;
}

.context-tag {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.context-tag span {
  color: var(--primary);
  font-weight: 800;
}

.predictions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.predictions-grid.simple {
  grid-template-columns: minmax(0, 1fr);
}

.pred-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.predList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.predOption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.predBtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t);
  color: var(--text);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.35s backwards;
}

.predOption:nth-child(1) .predBtn {
  animation-delay: 0.05s;
}

.predOption:nth-child(2) .predBtn {
  animation-delay: 0.12s;
}

.predOption:nth-child(3) .predBtn {
  animation-delay: 0.19s;
}

.predOption:nth-child(4) .predBtn {
  animation-delay: 0.26s;
}

.predBtn:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: var(--primary);
  transform: translateX(4px);
}

.predBtn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transition: var(--t);
}

.predBtn:hover::before {
  transform: scaleY(1);
}

.pred-token {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
}

.pred-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(249, 115, 22, 0.15);
  padding: 4px 10px;
  border-radius: 99px;
}

.vectorBtn {
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t);
}

.vectorBtn:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #d1fae5;
}

.custom-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.custom-divider::before,
.custom-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.custom-input-row {
  display: flex;
  gap: 10px;
}

#customInput {
  border-radius: var(--r-md);
}

.prediction-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.28);
  border-left: 3px solid rgba(16, 185, 129, 0.45);
}

/* Barras */
.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.barRow {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  gap: 10px;
  align-items: center;
}

.bar-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 99px;
  overflow: hidden;
}

.barFill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 99px;
  width: 0%;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px var(--primary-glow);
}

.bar-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}

.explain-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
  min-height: 80px;
  font-weight: 500;
}

.step3-actions {
  display: flex;
  justify-content: flex-start;
}

/* ── Seção de poema completo ─────────────────────────────────────── */
.poem-section {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 32px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--r-xl);
}

.poem-section.visible {
  display: flex;
  animation: stepIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.poem-trophy {
  font-size: 56px;
  line-height: 1;
}

.poem-header h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.poem-header p {
  color: var(--muted);
  font-size: 15px;
}

.quadra {
  font-family: var(--font-mono);
  font-size: 19px;
  line-height: 1.9;
  background: rgba(0, 0, 0, 0.5);
  padding: 28px 36px;
  border-radius: var(--r-lg);
  color: var(--secondary);
  text-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
  white-space: pre-wrap;
  text-align: left;
  width: 100%;
  border: 1px dashed rgba(139, 92, 246, 0.3);
}

.poem-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.workspace-panel {
  display: none;
  animation: stepIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.workspace-panel.active {
  display: block;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.workspace-kicker {
  margin-bottom: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.workspace-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
}

.workspace-select,
.workspace-input,
.workspace-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  transition: var(--t);
}

.workspace-select:focus,
.workspace-input:focus,
.workspace-textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.workspace-input[readonly],
.workspace-textarea[readonly] {
  background: rgba(255, 255, 255, 0.025);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 244, 231, 0.92);
}

.workspace-select {
  max-width: 280px;
  cursor: pointer;
}

.workspace-textarea {
  resize: vertical;
  line-height: 1.6;
}

.workspace-feedback,
.workspace-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.workspace-empty.workspace-empty--skeleton {
  display: grid;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
}

.skeleton-card,
.skeleton-metric {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.skeleton-card::after,
.skeleton-metric::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: skeletonSweep 1.25s ease-in-out infinite;
}

.skeleton-metric {
  min-height: 92px;
}

.skeleton-card {
  min-height: 176px;
  padding: 20px;
}

.skeleton-card__line {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.skeleton-card__line--title {
  width: 54%;
  height: 22px;
}

.skeleton-card__line--short {
  width: 34%;
}

.skeleton-card__line--mid {
  width: 68%;
}

.skeleton-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.skeleton-card__chip {
  width: 118px;
  height: 30px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
}

.skeleton-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skeleton-card__button {
  width: 124px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes skeletonSweep {
  to {
    transform: translateX(100%);
  }
}

.track-chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.track-card {
  padding: 24px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 44%),
    rgba(12, 14, 19, 0.84);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.track-card--warm {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 44%),
    rgba(16, 11, 8, 0.88);
}

.track-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
}

.track-card h3 {
  font-size: 24px;
  font-weight: 800;
}

.track-card p {
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}

.dashboard-metric {
  padding: 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-metric span {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.dashboard-metric small {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-metric--wide span {
  font-size: 18px;
}

.text-list,
.folheto-list,
.version-list {
  display: grid;
  gap: 14px;
}

.text-card,
.folheto-card,
.version-card {
  padding: 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.version-card--selected {
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.text-card__head,
.version-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.text-card__title,
.version-card__title {
  font-size: 20px;
  font-weight: 700;
}

.text-card__meta,
.version-card__meta {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.status-badge.status-rascunho { background: rgba(249, 115, 22, 0.14); color: #fdba74; }
.status-badge.status-em-revisao { background: rgba(6, 182, 212, 0.14); color: #67e8f9; }
.status-badge.status-concluida { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.status-badge.status-compartilhada-com-educador { background: rgba(234, 179, 8, 0.14); color: #fde047; }
.status-badge.status-selecionada-para-antologia { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; }
.status-badge.status-arquivada { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }

.indicator-list,
.text-card__indicators,
.version-card__indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.indicator-chip {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  font-size: 12px;
  color: #fed7aa;
  line-height: 1.3;
}

.indicator-panel--ai {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 48%),
    rgba(16, 11, 8, 0.82);
}

.ai-feedback-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: rgba(249, 115, 22, 0.08);
  color: var(--text);
  line-height: 1.7;
}

.ai-feedback-card strong {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-feedback-card p {
  color: #fde7cf;
}

.ai-feedback-card--idle {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.ai-feedback-card--idle p {
  color: var(--muted);
}

.ai-feedback-card--error {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(127, 29, 29, 0.16);
}

.ai-feedback-card--error p {
  color: #fecaca;
}

.ai-feedback-card--loading {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.08));
  position: relative;
  overflow: hidden;
}

.ai-feedback-card--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: aiFeedbackSweep 1.8s ease-in-out infinite;
}

.ai-feedback-card--loading p {
  color: #fde7cf;
}

@keyframes aiFeedbackSweep {
  to {
    transform: translateX(100%);
  }
}

.text-card__actions,
.version-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.folheto-card {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.folheto-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fdba74;
}

.folheto-card__summary {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.folheto-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.folheto-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
}

.folheto-card__meta {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.editor-form,
.editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editor-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.editor-form-grid--single {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.editor-verses {
  display: grid;
  gap: 14px;
}

.editor-verses__intro {
  display: grid;
  gap: 4px;
}

.editor-verses__intro-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-actions {
  align-items: center;
}

.indicator-panel--companion {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 48%),
    rgba(8, 13, 22, 0.84);
}

.inanna-companion {
  display: grid;
  gap: 14px;
}

.inanna-companion__media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  padding: 10px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at center, rgba(125, 211, 252, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(125, 211, 252, 0.16);
}

.inanna-companion__avatar {
  width: min(100%, 210px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.45));
}

.inanna-companion__copy {
  display: grid;
  gap: 8px;
}

.inanna-companion__copy strong {
  font-size: 18px;
}

.verse-scheme-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.verse-field {
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.1), transparent 46%),
    rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 10px;
}

.verse-field--locked {
  border-style: dashed;
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.02);
}

.verse-field__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.verse-field__number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.verse-rhyme-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 240, 216, 0.86);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: var(--t);
}

.verse-rhyme-badge--active {
  border-color: rgba(251, 191, 36, 0.62);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(251, 191, 36, 0.24));
  color: #fef3c7;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.22), 0 0 20px rgba(250, 204, 21, 0.16);
  animation: rhymeBadgePulse 1.6s ease-in-out infinite;
}

.verse-rhyme-badge--pending {
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(249, 115, 22, 0.08);
  color: #fdba74;
}

@keyframes rhymeBadgePulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.22), 0 0 18px rgba(250, 204, 21, 0.16);
  }

  50% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.28), 0 0 24px rgba(34, 197, 94, 0.24);
  }
}

.verse-textarea {
  min-height: 86px;
  margin: 0;
}

.verse-meter {
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.verse-meter:focus-visible {
  outline: none;
}

.verse-meter:focus-visible .verse-meter__track {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.verse-meter__track {
  position: relative;
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.verse-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.6), rgba(59, 130, 246, 0.85));
  transition: width 160ms ease, background 160ms ease, opacity 160ms ease;
}

.verse-meter__label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.verse-meter--warning .verse-meter__fill {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.72), rgba(249, 115, 22, 0.92));
}

.verse-meter--warning .verse-meter__label {
  color: #fdba74;
}

.verse-meter--muted .verse-meter__fill {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.58), rgba(100, 116, 139, 0.88));
  opacity: 0.88;
}

.verse-meter--muted .verse-meter__label {
  color: #cbd5e1;
}

.workspace-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.workspace-check input {
  accent-color: var(--primary);
}

.workspace-check input:disabled {
  opacity: 0.7;
}

.indicator-panel {
  padding: 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.indicator-panel--muted {
  background: rgba(255, 255, 255, 0.025);
}

.version-card pre {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.38);
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.7;
  font-family: var(--font-mono);
}

#versionComparePanel {
  margin-bottom: 16px;
}

.version-compare {
  padding: 18px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.version-compare--empty {
  display: grid;
  gap: 16px;
}

.version-compare__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.version-compare__selection {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.version-compare__pill,
.version-compare__hint {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.version-compare__pill {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.24);
  color: #fed7aa;
}

.version-compare__hint {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.version-compare__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.version-compare__summary-card {
  padding: 16px;
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.version-compare__verses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.version-compare__cell {
  min-height: 108px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.version-compare__cell--changed {
  border-color: rgba(249, 115, 22, 0.34);
  background: rgba(249, 115, 22, 0.08);
}

.version-compare__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.version-compare__cell p {
  white-space: pre-wrap;
  line-height: 1.7;
}

.workspace-empty {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--muted);
  text-align: center;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 22, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  color: var(--text);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  animation: toastIn 180ms ease forwards;
}

.toast--success {
  border-color: rgba(16, 185, 129, 0.26);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(8, 13, 22, 0.96));
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(8, 13, 22, 0.96));
}

.toast--muted {
  border-color: rgba(148, 163, 184, 0.22);
}

.toast--closing {
  animation: toastOut 180ms ease forwards;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.social-postcard-shell {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 760px;
  pointer-events: none;
  opacity: 0;
}

.social-postcard {
  position: relative;
  width: 720px;
  min-height: 900px;
  padding: 48px 46px 40px;
  overflow: hidden;
  color: #24160c;
  background:
    linear-gradient(180deg, rgba(245, 224, 184, 0.96), rgba(217, 185, 138, 0.94)),
    #d4aa73;
  border: 18px solid #4a2a14;
  box-shadow: inset 0 0 0 2px rgba(91, 46, 19, 0.34);
}

.social-postcard__texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 247, 222, 0.32), transparent 20%),
    radial-gradient(circle at 84% 14%, rgba(120, 60, 28, 0.12), transparent 28%),
    repeating-linear-gradient(45deg, rgba(74, 42, 20, 0.08) 0 8px, transparent 8px 18px);
  mix-blend-mode: multiply;
  opacity: 0.48;
}

.social-postcard__header,
.social-postcard__body,
.social-postcard__footer {
  position: relative;
  z-index: 1;
}

.social-postcard__header {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 2px solid rgba(74, 42, 20, 0.3);
}

.social-postcard__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c2d12;
}

.social-postcard__header h3 {
  font-size: 42px;
  line-height: 1.1;
}

.social-postcard__theme {
  font-size: 18px;
  color: #6b3f20;
}

.social-postcard__body {
  display: grid;
  gap: 20px;
  padding-top: 28px;
}

.social-postcard__seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 247, 222, 0.72);
  border: 1px solid rgba(91, 46, 19, 0.18);
  font-size: 14px;
  font-weight: 700;
}

.social-postcard__seal-avatar {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.social-postcard__author {
  font-size: 24px;
  font-weight: 700;
}

.social-postcard__verses {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 247, 222, 0.58);
  border: 1px solid rgba(91, 46, 19, 0.18);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 29px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.social-postcard__footer {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 2px solid rgba(74, 42, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 17px;
  font-weight: 700;
  color: #6b3f20;
}

.social-postcard__footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-postcard__footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}

.social-postcard__footer-brand span {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.social-postcard__footer-signature {
  text-align: right;
}

@media (max-width: 900px) {
  .version-compare__head,
  .version-compare__summary,
  .version-compare__verses {
    grid-template-columns: 1fr;
  }

  .version-compare__head {
    display: grid;
  }

  .toast-region {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }

  .social-postcard__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-postcard__footer-signature {
    text-align: left;
  }
}

/* ── Footer ──────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 16px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.foot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.legal-note {
  display: grid;
  gap: 4px;
  text-align: center;
  max-width: 760px;
}

.legal-note p {
  margin: 0;
}

.cordel-logo {
  height: 70px;
  object-fit: contain;
  opacity: 0.75;
  transition: var(--t);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.08));
  cursor: pointer;
}

.cordel-logo:hover {
  opacity: 1;
  transform: scale(1.06) rotate(2deg);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.2));
}

.inanna-footer-embed-wrap {
  width: 100%;
  border-radius: calc(var(--r-lg) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 8, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.inanna-footer-embed {
  display: block;
  width: 100%;
  height: 118px;
  border: 0;
  background: transparent;
}

/* ── Responsivo ──────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .app {
    margin: 12px;
    padding: 18px;
    border-radius: var(--r-lg);
    backdrop-filter: none;
    background: #0a0c0f;
    border: none;
    box-shadow: none;
  }

  .glow-sphere {
    display: none;
  }

  .top {
    flex-direction: column;
  }

  .header-right {
    align-items: stretch;
    width: 100%;
  }

  .header-session-btn {
    width: 100%;
  }

  .glass-pill {
    justify-content: center;
  }

  .metrics-mini {
    justify-content: center;
  }

  .predictions-grid {
    grid-template-columns: 1fr;
  }

  .input-row {
    flex-direction: column;
  }

  .predOption {
    grid-template-columns: 1fr;
  }

  .vectorBtn {
    min-height: 44px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .barRow {
    grid-template-columns: 65px 1fr 45px;
  }

  .steps-connector {
    min-width: 30px;
  }

  .track-chooser-grid,
  .dashboard-metrics,
  .editor-layout,
  .editor-form-grid {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .workspace-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-select {
    max-width: none;
  }

  .quadra {
    padding: 18px 16px;
    font-size: 16px;
  }

  .vector-modal-head {
    flex-direction: column;
  }
}

/* ── Layout e Placar ────────────────────────────────────────────── */
.game-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.editor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ranking-area {
  width: 320px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.ranking-openable {
  cursor: pointer;
  transition: var(--t);
}

.ranking-openable:hover {
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.ranking-openable:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.85);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .game-layout {
    flex-direction: column;
  }

  .ranking-area {
    width: 100%;
  }
}

.placar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.placar-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.placar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.placar-pos {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.placar-pontos {
  font-size: 11px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.placar-autor {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.placar-verso {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.placar-quadra {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.34);
  border-radius: 12px;
  border: 1px dashed rgba(249, 115, 22, 0.22);
}

.placar-quadra-empty {
  text-align: center;
  color: var(--muted);
}

.placar-line {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.08);
}

.placar-line:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.placar-line-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.78);
}

.placar-line-body {
  min-width: 0;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.placar-line-body-empty {
  color: rgba(148, 163, 184, 0.55);
}

.placar-line-rhyme {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 2px;
}

.placar-line-ending {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.24);
}

.placar-line-punctuation {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
}

/* ── Avatar da Inanna ────────────────────────────────────────────── */
.inanna-avatar {
  max-width: 140px;
  max-height: 140px;
  margin: 0 auto 15px;
  display: block;
  animation: floatCat 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

@keyframes floatCat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ── Modal de Regras ────────────────────────────────────────────── */
.rules-modal {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  max-width: 480px;
  width: 90%;
  border: 1px solid var(--glass-border);
}

.rules-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

.rules-content {
  padding: 24px 30px;
}

.rules-content h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
}

.vector-modal {
  max-width: 760px;
}

.vector-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.vector-modal-head h3 {
  text-align: left;
  margin-bottom: 0;
}

.vector-modal-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
}

.vector-summary-box {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  margin-bottom: 18px;
}

.vector-probability {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}

.vector-probability strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
}

.vector-summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.pedagogy-inline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.pedagogy-inline-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.pedagogy-inline-copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.vector-pipeline-box {
  margin-bottom: 18px;
}

.vector-pipeline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.vector-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.vector-arrow {
  color: var(--accent);
  font-weight: 900;
}

.vector-math-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.vector-math-card,
.pedagogy-panel {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vector-card-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.vector-code,
.pedagogy-math {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: #d8f3ff;
  white-space: pre-wrap;
}

.vector-card-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.vector-equation-box,
.stochastic-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vector-equation {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}

.vector-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.vector-dimension {
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vector-dimension-head,
.vector-dimension-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.vector-dimension-head {
  margin-bottom: 12px;
  font-size: 13px;
}

.vector-dimension-head span,
.vector-dimension-meta span {
  color: var(--muted);
  font-size: 12px;
}

.vector-dimension-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 10px;
}

.vector-dimension-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.vector-dimension-meta {
  margin-bottom: 10px;
}

.vector-dimension-reason {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}

.stochastic-head {
  margin-bottom: 12px;
}

.stochastic-summary {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.stochastic-list {
  display: grid;
  gap: 10px;
}

.stochastic-item {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stochastic-item.is-highlighted {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15) inset;
}

.stochastic-item-head,
.stochastic-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stochastic-item-head {
  margin-bottom: 8px;
  font-size: 13px;
}

.stochastic-item-head span,
.stochastic-item-meta span {
  color: var(--muted);
  font-size: 12px;
}

.stochastic-item-meta {
  margin-top: 8px;
  flex-wrap: wrap;
}

.stochastic-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.stochastic-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #10b981);
}

.vector-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.pedagogy-modal {
  max-width: 920px;
}

.pedagogy-panel + .pedagogy-panel {
  margin-top: 14px;
}

.pedagogy-panel h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
}

.pedagogy-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.pipeline-strip {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #d1fae5;
}

.pedagogy-grid {
  margin-top: 14px;
}

.pedagogy-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.pedagogy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 13px;
}

.pedagogy-table th,
.pedagogy-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.pedagogy-table th {
  color: var(--text);
  font-weight: 800;
}

.pedagogy-table td {
  color: var(--muted);
}

.pedagogy-quote {
  margin: 12px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.stochastic-list-compact .stochastic-item {
  padding: 12px 14px;
}

@media (max-width: 700px) {
  .pedagogy-inline-card {
    flex-direction: column;
    align-items: stretch;
  }

  .vector-modal-actions {
    justify-content: stretch;
  }

  .vector-modal-actions .btn,
  .pedagogy-inline-card .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer */
.foot-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cordel-logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.cordel-logo-link:hover {
  transform: scale(1.05);
}
