/* =============================================================
   CAMINHO DO DAO — RPG WUXIA
   Stylesheet Principal v1.0
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=IM+Fell+English:ital@0;1&family=Noto+Serif+SC:wght@300;400;700&display=swap');

/* ─── RESET & VARIÁVEIS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:     #060810;
  --bg-dark:     #0c0f1a;
  --bg-panel:    #111425;
  --bg-card:     #161b30;
  --bg-hover:    #1e2540;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #8B6914;
  --jade:        #2ECC8E;
  --red-blood:   #8B0000;
  --red-light:   #E74C3C;
  --purple:      #9B59B6;
  --blue-qi:     #2196F3;
  --text-main:   #E8E0D0;
  --text-dim:    #8A9AC0;
  --text-muted:  #4A5578;
  --border:      #1E2850;
  --border-gold: #3D2E0A;
  --shadow-gold: rgba(201,168,76,0.15);
  --radius:      8px;
  --radius-lg:   14px;
  --chat-h:      calc(100vh - 160px);
  --panel-w:     260px;
}

html, body {
  height: 100%;
  font-family: 'IM Fell English', Georgia, serif;
  background: var(--bg-deep);
  color: var(--text-main);
  overflow: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ─── AUTENTICAÇÃO ───────────────────────────────────────────── */
.page-auth {
  overflow: auto;
  background: var(--bg-deep);
}

.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 20%, #1a1030 0%, #060810 60%),
              url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.8) 0%, transparent 70%);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0%   { transform: translate(0, 100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translate(calc(var(--dx,0) * 1px), -20vh) scale(1.5); opacity: 0; }
}

.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-symbol {
  font-family: 'Noto Serif SC', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,168,76,0.6), 0 0 80px rgba(201,168,76,0.3);
  animation: symbol-glow 3s ease-in-out infinite alternate;
}

@keyframes symbol-glow {
  from { text-shadow: 0 0 20px rgba(201,168,76,0.5); filter: brightness(1); }
  to   { text-shadow: 0 0 60px rgba(201,168,76,0.9), 0 0 100px rgba(201,168,76,0.4); filter: brightness(1.2); }
}

.logo-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.logo-subtitle {
  font-family: 'Noto Serif SC', serif;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  letter-spacing: 0.15em;
}

.auth-card {
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(201,168,76,0.1);
  backdrop-filter: blur(10px);
}

.auth-card h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--shadow-gold);
}

.form-group input::placeholder { color: var(--text-muted); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { color: var(--text-muted); font-size: 0.8rem; }

.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.8rem; }

/* ─── BOTÕES ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--bg-deep);
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  box-shadow: 0 6px 25px rgba(201,168,76,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}
.btn-outline:hover {
  background: var(--shadow-gold);
  border-color: var(--gold);
}

.btn-full { width: 100%; }
.btn-large { padding: 1rem 2rem; font-size: 1rem; }

/* ─── ALERTAS ───────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-error   { background: rgba(183,28,28,0.2); border: 1px solid #c62828; color: #ef9a9a; }
.alert-success { background: rgba(27,94,32,0.2);  border: 1px solid #2e7d32; color: #a5d6a7; }

/* ─── CRIAÇÃO DE PERSONAGEM ─────────────────────────────────── */
.page-create-char { overflow: auto; }

.create-char-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.create-char-header {
  text-align: center;
  margin-bottom: 2rem;
}
.create-char-header h1 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 2rem;
}
.create-char-header p { color: var(--text-dim); margin-top: 0.5rem; }

.create-char-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-sections { display: flex; flex-direction: column; gap: 1.5rem; }

.form-section {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.form-section h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-gold);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.profissoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
}

.profissao-card {
  cursor: pointer;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.profissao-card:hover { border-color: var(--gold); }
.profissao-card input[type=radio] { margin-top: 4px; accent-color: var(--gold); }
.profissao-card input[type=radio]:checked + .profissao-info { color: var(--gold); }
.profissao-card:has(input:checked) { border-color: var(--gold); background: rgba(201,168,76,0.05); }

.profissao-info { display: flex; flex-direction: column; gap: 0.25rem; }
.profissao-info strong { font-size: 0.9rem; }
.profissao-info small  { font-size: 0.75rem; color: var(--text-dim); }

.badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 20px;
  font-size: 0.7rem; font-family: 'Cinzel', serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-combate   { background: rgba(183,28,28,0.3); color: #ef9a9a; }
.badge-artesanato{ background: rgba(121,85,72,0.3); color: #d7ccc8; }
.badge-suporte   { background: rgba(27,94,32,0.3);  color: #a5d6a7; }
.badge-comercio  { background: rgba(230,119,0,0.3); color: #ffe082; }
.badge-medicinal { background: rgba(0,131,143,0.3); color: #80deea; }
.badge-espionagem{ background: rgba(74,20,140,0.3); color: #ce93d8; }
.badge-principal { background: rgba(183,28,28,0.3); color: #ef9a9a; }
.badge-secundaria{ background: rgba(45,85,155,0.3); color: #90caf9; }
.badge-seita     { background: rgba(74,20,140,0.3); color: #ce93d8; }
.badge-diaria    { background: rgba(27,94,32,0.3);  color: #a5d6a7; }
.badge-evento    { background: rgba(230,119,0,0.3); color: #ffe082; }
.badge-segredo   { background: rgba(0,0,0,0.5);     color: #b0bec5; }

.create-char-info-box {
  background: rgba(201,168,76,0.06);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.create-char-info-box h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.create-char-info-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.create-char-info-box li { color: var(--text-dim); font-size: 0.9rem; }
.create-char-info-box strong { color: var(--text-main); }

/* ─── GAME LAYOUT ───────────────────────────────────────────── */
.game-body { overflow: hidden; }

.game-layout {
  display: grid;
  grid-template-columns: var(--panel-w) 1fr var(--panel-w);
  height: 100vh;
  gap: 0;
  background: var(--bg-deep);
}

/* ─── PAINEL ESQUERDO ───────────────────────────────────────── */
.panel-left {
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0.5rem;
}

.char-header {
  padding: 1.25rem 1rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
}

.char-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  background: var(--bg-dark);
  position: relative;
  transition: box-shadow 0.5s;
}
.char-avatar-letter {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  color: var(--gold);
}
.gm-badge {
  position: absolute; bottom: -4px; right: -4px;
  background: var(--red-light); color: #fff;
  font-family: 'Cinzel', serif; font-size: 0.6rem; font-weight: 700;
  padding: 2px 5px; border-radius: 3px;
}

.char-name {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 600;
}
.char-title {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 0.2rem;
}
.char-stage {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.char-stage-chinese {
  font-size: 0.75rem;
  opacity: 0.7;
}
.char-level {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Barras de Status */
.char-stats {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-bar-group { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--text-dim);
}

.stat-bar {
  height: 8px;
  background: var(--bg-dark);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.hp-bar .stat-bar-fill  { background: linear-gradient(90deg, #8B0000, #E74C3C); }
.qi-bar .stat-bar-fill  { background: linear-gradient(90deg, #0d47a1, #2196F3); }
.xp-bar .stat-bar-fill  { background: linear-gradient(90deg, #4a148c, #9c27b0); }
.dao-bar .stat-bar-fill { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }

/* Info block */
.char-info-block {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.4rem;
}

.info-row {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-dim);
}
.info-row.indent { padding-left: 1rem; }
.info-icon { font-size: 0.9rem; }

.tag-pvp {
  background: rgba(183,28,28,0.7);
  color: #ff5252;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

/* Moedas */
.char-currency {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem;
}

.currency-item {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.5rem;
}
.currency-icon { font-size: 1rem; }
.currency-item > div { display: flex; flex-direction: column; }
.currency-item small { font-size: 0.6rem; color: var(--text-muted); line-height: 1; }
.currency-item span  { font-size: 0.78rem; font-weight: bold; color: var(--gold-light); }

/* Navegação */
.char-nav {
  padding: 0.75rem 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}

.nav-btn {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.nav-btn:hover { background: var(--bg-hover); color: var(--gold); border-color: var(--border-gold); }
.nav-btn-danger:hover { border-color: #b71c1c; color: #ef9a9a; }

/* ─── PAINEL CENTRAL DE CHAT ─────────────────────────────────── */
.panel-center {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

/* Tabs */
.chat-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
}

.chat-tab {
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.chat-tab:hover { color: var(--text-main); }
.chat-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.chat-tab.tab-gm { color: #ef9a9a; }
.chat-tab.tab-gm.active { border-bottom-color: var(--red-light); color: var(--red-light); }

/* Área de mensagens */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(46,140,142,0.03) 0%, transparent 50%);
}

.chat-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; gap: 1rem; color: var(--text-muted); font-style: italic;
}

/* Mensagens individuais */
.msg {
  display: flex;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.1s;
  line-height: 1.55;
}
.msg:hover { background: rgba(255,255,255,0.02); }

.msg-time  { color: var(--text-muted); font-size: 0.7rem; white-space: nowrap; padding-top: 3px; flex-shrink: 0; }
.msg-body  { flex: 1; font-size: 0.88rem; }
.msg-who   { font-weight: 600; margin-right: 0.4rem; cursor: pointer; }
.msg-who:hover { text-decoration: underline; }
.msg-text  { }

/* Tipos de mensagem */
.msg-dialogo   .msg-text  { color: #E8E0D0; }
.msg-narracao  .msg-text  { color: #C9A84C; font-style: italic; font-size: 0.92rem; }
.msg-narracao  .msg-who   { display: none; }
.msg-acao      .msg-text  { color: #B39DDB; font-style: italic; }
.msg-acao      .msg-who   { color: #9575CD; }
.msg-sussurro  .msg-text  { color: #80CBC4; font-style: italic; }
.msg-sussurro  .msg-who   { color: #4DB6AC; }
.msg-sistema   .msg-who   { display: none; }
.msg-sistema   .msg-text  { color: #4FC3F7; font-size: 0.82rem; white-space: pre-line; font-family: 'Courier New', monospace; }
.msg-ooc       .msg-text  { color: #90A4AE; font-size: 0.82rem; }
.msg-ooc       .msg-who   { color: #78909C; }
.msg-pensamento .msg-text { color: #CE93D8; font-style: italic; }
.msg-grito     .msg-text  { color: #EF5350; font-weight: 600; font-size: 0.95rem; }
.msg-gm-badge  {
  background: rgba(183,28,28,0.7); color: #ff5252;
  font-size: 0.65rem; padding: 1px 5px; border-radius: 3px;
  font-family: 'Cinzel', serif; vertical-align: middle; margin-left: 4px;
}

/* Input de chat */
.chat-input-area {
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 0.75rem;
  flex-shrink: 0;
}

.chat-commands-hint {
  font-size: 0.78rem;
  color: var(--gold);
  padding: 0.25rem 0.5rem;
  min-height: 1.2rem;
  font-style: italic;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.chat-tipo-selector select {
  height: 40px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0 0.5rem;
  cursor: pointer;
  outline: none;
}

#chat-input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}
#chat-input:focus { border-color: var(--gold); }
#chat-input::placeholder { color: var(--text-muted); font-style: italic; }

.btn-send {
  width: 44px; height: 40px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none; border-radius: var(--radius);
  color: var(--bg-deep);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.btn-send:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); transform: scale(1.05); }
.btn-send:active { transform: scale(0.95); }

.chat-input-tips {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.4rem;
}
.chat-input-tips span { font-size: 0.7rem; color: var(--text-muted); }
.gm-tip { color: #ef9a9a !important; }

kbd {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--gold);
}

/* ─── PAINEL DIREITO ─────────────────────────────────────────── */
.panel-right {
  background: var(--bg-panel);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.panel-section {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.panel-section h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.panel-section h4 small { color: var(--text-muted); font-size: 0.75rem; }

.panel-empty { color: var(--text-muted); font-size: 0.8rem; font-style: italic; }
.panel-empty small { display: block; margin-top: 0.25rem; font-size: 0.75rem; }

/* Habilidades */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.skill-btn {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.15s;
  gap: 0.2rem;
}
.skill-btn:hover { background: var(--bg-hover); transform: translateY(-2px); }
.skill-icon { font-size: 1.3rem; }
.skill-name { font-size: 0.68rem; text-align: center; line-height: 1.2; color: var(--text-dim); }
.skill-qi   { font-size: 0.65rem; color: var(--blue-qi); }

/* Jogadores online */
.player-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.player-item:last-child { border-bottom: none; }

.player-aura {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.player-info {
  flex: 1; display: flex; flex-direction: column; gap: 0.1rem;
}
.player-info strong { font-size: 0.82rem; color: var(--text-main); }
.player-info small  { font-size: 0.7rem; color: var(--text-muted); }
.player-stage       { color: var(--text-muted) !important; }

.gm-tag {
  display: inline-block;
  background: rgba(183,28,28,0.7); color: #ff5252;
  font-size: 0.6rem; padding: 1px 4px;
  border-radius: 3px; font-family: 'Cinzel', serif;
  font-weight: 700; margin-left: 4px; vertical-align: middle;
}

.btn-whisper {
  background: transparent; border: none;
  cursor: pointer; font-size: 0.9rem;
  opacity: 0.6; transition: opacity 0.2s;
}
.btn-whisper:hover { opacity: 1; }

/* Missões */
.missions-list { display: flex; flex-direction: column; gap: 0.5rem; }

.mission-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--text-muted);
}
.mission-principal { border-left-color: var(--gold); }
.mission-seita     { border-left-color: var(--purple); }
.mission-diaria    { border-left-color: var(--jade); }
.mission-evento    { border-left-color: #ff9800; }

.mission-title { font-size: 0.82rem; color: var(--text-main); }
.mission-meta  { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; font-size: 0.72rem; color: var(--text-muted); }

/* Viajar */
.travel-list { display: flex; flex-direction: column; gap: 0.4rem; }

.travel-btn {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.travel-btn:hover { border-color: var(--jade); color: var(--jade); }
.travel-btn small  { color: var(--text-muted); font-size: 0.7rem; }

/* ─── MODAL DE COMBATE ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.combat-window {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 60px rgba(201,168,76,0.3);
}

.combat-window h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 1rem;
  text-align: center;
}

.combat-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1rem; justify-content: center;
}

/* ─── QI SPINNER ─────────────────────────────────────────────── */
.qi-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FICHA E INVENTÁRIO ─────────────────────────────────────── */
.page-sheet { overflow: auto; }

.sheet-container {
  max-width: 900px; margin: 0 auto; padding: 2rem 1rem;
}

.sheet-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.sheet-header h1 {
  font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.8rem;
}
.sheet-header .subtitle { color: var(--text-dim); font-style: italic; }

.sheet-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.sheet-block {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem;
}
.sheet-block h3 {
  font-family: 'Cinzel', serif; color: var(--gold); font-size: 0.95rem;
  margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-gold);
}
.attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.attr-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0.6rem; background: var(--bg-card); border-radius: 6px;
}
.attr-label { font-size: 0.8rem; color: var(--text-dim); }
.attr-value { font-weight: 700; color: var(--gold-light); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .panel-left  { display: none; }
  .panel-right { display: none; }
}

/* ─── ANIMAÇÕES ──────────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes acSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg { animation: fadeSlideIn 0.2s ease; }

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 8px rgba(201,168,76,0.3); }
  50%       { box-shadow: 0 0 20px rgba(201,168,76,0.7); }
}

.char-avatar { animation: pulse-gold 4s ease-in-out infinite; }

/* ─── AUTOCOMPLETE DROPDOWN ──────────────────────────────────── */
#ac-dropdown {
  display: none;
  position: fixed;
  z-index: 9000;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.08);
  max-height: 340px;
  overflow-y: auto;
  animation: acSlideUp 0.15s ease;
  backdrop-filter: blur(12px);
  min-width: 360px;
}

#ac-dropdown::-webkit-scrollbar { width: 4px; }
#ac-dropdown::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

.ac-group {
  padding: 0.3rem 0.75rem 0.1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}
.ac-group:first-child { border-top: none; margin-top: 0; }

.ac-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background 0.1s;
  border-radius: 0;
  white-space: nowrap;
  overflow: hidden;
}
.ac-item:hover,
.ac-item.ac-selected {
  background: rgba(201,168,76,0.1);
  outline: none;
}
.ac-item.ac-selected { background: rgba(201,168,76,0.15); }

.ac-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
}
.ac-cmd {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
  flex-shrink: 0;
}
.ac-args {
  font-size: 0.78rem;
  color: var(--blue-qi);
  font-style: italic;
  flex-shrink: 0;
}
.ac-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: auto;
  padding-left: 0.5rem;
}

/* ─── HINT DE COMANDO ────────────────────────────────────────── */
.chat-commands-hint {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  min-height: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hint-cmd {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
}
.hint-arg {
  color: var(--blue-qi);
  font-style: italic;
  font-size: 0.78rem;
}
.hint-tip {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ─── BOTÕES DE AÇÃO RÁPIDA ──────────────────────────────────── */
#quick-actions {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}

.quick-btn {
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.quick-btn:hover { transform: translateY(-1px); }

.quick-cultivo { border-color: rgba(33,150,243,.4); color: #90caf9; }
.quick-cultivo:hover { background: rgba(33,150,243,.15); color: #90caf9; }

.quick-info { border-color: rgba(201,168,76,.3); color: var(--gold); }
.quick-info:hover { background: rgba(201,168,76,.1); }

.quick-acao { border-color: rgba(46,204,142,.3); color: var(--jade); }
.quick-acao:hover { background: rgba(46,204,142,.12); }

.quick-social { border-color: rgba(156,39,176,.4); color: #ce93d8; }
.quick-social:hover { background: rgba(156,39,176,.12); }

.quick-gm { border-color: rgba(183,28,28,.4); color: #ef9a9a; }
.quick-gm:hover { background: rgba(183,28,28,.15); }

/* ─── KEYBOARD HINT NA BARRA DE CHAT ────────────────────────── */
.chat-keyboard-hints {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}
kbd {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.65rem;
  font-family: monospace;
  color: var(--gold);
}

