:root {
  --gold: #b08d3f;
  --gold-light: #d9c08a;
  --ink: #e8dfca;
  --ink-dim: #a99b78;
  --glass: rgba(12, 10, 7, 0.52);
  --glass-strong: rgba(10, 8, 5, 0.68);
  --edge: rgba(196, 164, 92, 0.30);
  --edge-faint: rgba(196, 164, 92, 0.18);
  --blood: #c0392b;
}

* { box-sizing: border-box; }

html { scrollbar-color: rgba(196, 164, 92, 0.4) rgba(8, 6, 4, 0.9); }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Alegreya", "IM Fell English", Georgia, "Times New Roman", serif;
  background: #0d0a07 url("/static/img/fundo.jpg") top center / 100% auto no-repeat fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(176, 141, 63, 0.55); color: #fff; }

.wrap { max-width: 1460px; margin: 0 auto; padding: clamp(84px, 11vh, 132px) 16px 16px; }

.site-footer {
  text-align: center;
  color: rgba(217, 192, 138, 0.55);
  padding: 26px 0 34px;
  letter-spacing: 0.18em;
  font-size: 13px;
}

/* ---------- painÃƒÆ’Ã‚Â©is ---------- */

.panel {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 6px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    inset 0 0 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 22px;
  margin-bottom: 20px;
  position: relative;
}

.panel h2 {
  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.09em;
  margin: 0 0 14px;
  color: var(--gold-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--edge-faint);
  padding-bottom: 8px;
}

.intro .lore { margin: 4px 0; line-height: 1.65; }
.panel .lore { margin: 4px 0 14px; line-height: 1.6; }

.empty { color: var(--ink-dim); font-style: italic; }
.error { color: #ff7a6b; font-weight: bold; }
.hint { color: var(--ink-dim); font-style: italic; font-size: 13px; }
a { color: #d9c08a; }

.zone { color: rgba(217, 192, 138, 0.75); font-size: 13px; letter-spacing: 0.06em; }

/* ---------- layout de jogo (3 colunas) ---------- */

/* paginas com o grid do jogo ocupam a tela inteira, com respiro simetrico */
.wrap:has(.game-shell) { max-width: none; }

.game-shell {
  display: grid;
  grid-template-columns: clamp(255px, 20vw, 285px) minmax(0, 1fr) clamp(305px, 23vw, 345px);
  gap: 18px;
  align-items: start;
}

.side-left, .side-right { position: sticky; top: 12px; }

.col-center { min-width: 0; }

@media (max-width: 1250px) {
  .game-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .side-right {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .chronicle .log { height: 320px !important; }
}

@media (max-width: 900px) {
  .game-shell { grid-template-columns: 1fr; }
  .side-right { grid-template-columns: 1fr; }
  .side-left, .side-right { position: static; }
}

/* ---------- botÃƒÆ’Ã‚Âµes ---------- */

.btn {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, rgba(66, 54, 30, 0.75), rgba(28, 22, 12, 0.82));
  border: 1px solid rgba(214, 180, 104, 0.42);
  color: #ecdfba;
  padding: 11px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55), 0 6px 14px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: filter 0.15s ease, transform 0.05s ease;
}

.btn:hover { filter: brightness(1.25); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55); }
.btn[disabled] { filter: grayscale(0.9); opacity: 0.55; cursor: not-allowed; }

.btn-small { padding: 6px 14px; font-size: 13px; }
.btn-tiny { padding: 3px 8px; font-size: 11.5px; letter-spacing: 0.03em; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }

.btn-danger {
  background: linear-gradient(180deg, rgba(142, 38, 32, 0.85), rgba(74, 12, 10, 0.88));
  color: #ffd9cd; border-color: rgba(255, 120, 100, 0.4);
}
.btn-danger:active { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55); }

.btn-evolve {
  width: 100%;
  font-size: 17px;
  animation: glow 1.9s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55), 0 0 10px rgba(217, 192, 138, 0.35); }
  50%      { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55), 0 0 28px rgba(217, 192, 138, 0.8); }
}

.inline { display: inline; margin: 0; }

/* ---------- menu lateral esquerdo ---------- */

.side-nav .nav-btn {
  display: block;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #d8cba4;
  background: rgba(255, 240, 200, 0.05);
  border: 1px solid rgba(214, 180, 104, 0.25);
  border-radius: 4px;
  padding: 11px 16px;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: all 0.15s ease;
}

.side-nav .nav-btn:hover {
  transform: translateX(3px);
  border-color: rgba(232, 205, 130, 0.75);
  color: #f4ead0;
  background: rgba(255, 236, 180, 0.12);
}

.side-nav .nav-btn.active {
  background: rgba(176, 141, 63, 0.28);
  border-color: rgba(240, 212, 138, 0.8);
  color: #fdf3d5;
  box-shadow: inset 0 0 18px rgba(176, 141, 63, 0.22), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.side-nav .nav-btn.back { border-style: dashed; opacity: 0.85; }

/* ---------- criaÃƒÆ’Ã‚Â§ÃƒÆ’Ã‚Â£o de herÃƒÆ’Ã‚Â³i ---------- */

.name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.name-row label { font-family: Cinzel, Georgia, serif; font-weight: 700; }

.name-row input {
  flex: 1;
  min-width: 220px;
  font-family: inherit;
  font-size: 17px;
  padding: 10px 14px;
  border: 1px solid rgba(214, 180, 104, 0.4);
  border-radius: 4px;
  background: rgba(255, 245, 220, 0.07);
  color: var(--ink);
}

.name-row input::placeholder { color: rgba(232, 223, 202, 0.4); }
.name-row input:focus, .class-card:focus-within { outline: none; }
.name-row input:focus { border-color: var(--gold-light); box-shadow: 0 0 10px rgba(176, 141, 63, 0.45); }

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.class-card {
  cursor: pointer;
  border: 1px solid rgba(214, 180, 104, 0.3);
  border-radius: 6px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: rgba(255, 240, 200, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
}

.class-card:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); background: rgba(255, 240, 200, 0.08); }

.class-card input { position: absolute; opacity: 0; }

.class-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 240, 200, 0.09);
  box-shadow: inset 0 0 0 2px var(--accent), 0 6px 14px rgba(0, 0, 0, 0.4);
}

.cc-icon { font-size: 42px; text-align: center; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6)); }
.cc-name { font-family: Cinzel, Georgia, serif; font-weight: 800; text-align: center; font-size: 19px; color: var(--accent); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.cc-stats { text-align: center; font-size: 14px; color: #d8cba4; }
.cc-skill { text-align: center; font-size: 13.5px; color: #ecd9a8; font-weight: bold; }
.cc-desc { text-align: center; font-size: 12.5px; font-style: italic; color: var(--ink-dim); line-height: 1.4; }

.btn-forge { display: block; margin: 4px auto 0; font-size: 17px; padding: 12px 34px; }

/* ---------- hall da fama ---------- */

.hall { width: 100%; border-collapse: collapse; font-size: 15px; }

.hall th {
  font-family: Cinzel, Georgia, serif;
  text-align: left;
  color: var(--gold-light);
  border-bottom: 1px solid var(--edge);
  padding: 6px 10px;
  letter-spacing: 0.05em;
}

.hall td { padding: 8px 10px; border-bottom: 1px dashed var(--edge-faint); }
.hall tbody tr:hover { background: rgba(255, 240, 200, 0.06); }

.hero-link { color: #ecdfba; font-weight: bold; text-decoration: none; border-bottom: 1px dotted rgba(214, 180, 104, 0.5); }
.hero-link:hover { color: #ff8a7a; }

/* ---------- identidade (sidebar) ---------- */

.identity-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }

.portrait {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(140, 116, 64, 0.55), rgba(24, 19, 11, 0.85));
  border: 2px solid rgba(214, 180, 104, 0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.hero-name { font-family: Cinzel, Georgia, serif; font-weight: 800; font-size: 21px; line-height: 1.15; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.hero-name.sm { font-size: 19px; }
.hero-class { font-weight: bold; margin-top: 2px; font-size: 15px; }
.hero-level { color: var(--gold-light); margin-top: 2px; font-size: 14px; }
.hero-level b { font-size: 16px; }

/* ---------- barras ---------- */

.bar-label { display: flex; justify-content: space-between; font-size: 13px; color: #cfc2a0; margin-top: 8px; }

.bar {
  height: 16px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(196, 164, 92, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0 4px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

.bar i { display: block; height: 100%; width: 0; transition: width 0.6s ease; }
.bar.slim { height: 12px; margin-top: 7px; }
.bar.micro { height: 9px; width: 90px; margin: 2px 0 0; display: inline-block; vertical-align: middle; }

.fill-hp  { background: linear-gradient(180deg, #6fc763, #2e6b28); }
.fill-en  { background: linear-gradient(180deg, #8cc3ef, #2b5f9e); }
.fill-xp  { background: linear-gradient(180deg, #e3bc55, #96700f); }
.fill-foe { background: linear-gradient(180deg, #e06a5a, #8c1c1c); }

/* ---------- atributos ---------- */

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 10px; }

.stat {
  background: rgba(255, 240, 200, 0.05);
  border: 1px solid rgba(255, 240, 200, 0.12);
  border-radius: 4px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.st-icon { font-size: 12px; }
.st-name { font-size: 10px; color: #cfc2a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { margin-left: auto; font-size: 12px; font-family: Cinzel, Georgia, serif; }
.stat small.gear { color: #79aaea; font-weight: bold; margin-left: 2px; font-size: 9px; }

.potion-panel {
  margin-top: 10px;
  padding: 6px 5px;
  border: 1px solid rgba(255, 240, 200, 0.10);
  border-radius: 5px;
  background: rgba(100, 200, 120, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.potion-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.potion-head {
  display: flex;
  align-items: center;
  gap: 3px;
}

.potion-group-icon { font-size: 12px; }

.potion-group-name {
  font-size: 10px;
  color: #cfc2a0;
  min-width: 26px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.potion-slider {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 240, 200, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.potion-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.hp-slider::-webkit-slider-thumb { background: #e85656; }
.mana-slider::-webkit-slider-thumb { background: #5688e8; }

.potion-pct {
  font-size: 9px;
  color: #cfc2a0;
  min-width: 20px;
  text-align: right;
  font-family: Cinzel, Georgia, serif;
}

.potion-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 5px;
  padding-left: 2px;
}

.potion-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 240, 200, 0.06);
  border: 1px solid rgba(255, 240, 200, 0.08);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 9px;
  color: #cfc2a0;
}

.potion-chip-qty {
  font-weight: bold;
  color: #f3ead2;
}

.potion-chip.empty {
  opacity: 0.35;
}

.potion-chip .gi.pot {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.misc { margin-top: 12px; font-size: 13px; color: #cfc2a0; border-top: 1px dashed var(--edge-faint); padding-top: 10px; line-height: 1.7; }

/* ---------- evoluÃƒÆ’Ã‚Â§ÃƒÆ’Ã‚Â£o ---------- */

.evolution p { margin: 4px 0; line-height: 1.5; font-size: 14px; }
.evo-req { color: var(--ink-dim); font-size: 13.5px; }
.evo-ready-text { font-style: italic; color: #ecd9a8; margin-bottom: 10px !important; }

/* ---------- arena (centro) ---------- */

.fighters {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 30px;
  padding: 18px 0 10px;
  min-height: 190px;
}

.fighters.big { min-height: 240px; }

.fighter {
  flex: 1;
  max-width: 320px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 268px;
}

/* linhas de altura fixa: a tela nunca "se mexe" */
.f-name {
  font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: 18px; margin-top: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 250px; height: 26px; line-height: 26px;
}
.big .f-name { font-size: 21px; height: 30px; line-height: 30px; }
.f-tags {
  min-height: 24px; margin-top: 3px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.f-stats-row {
  min-height: 26px; margin-top: 4px;
  display: flex; align-items: center; justify-content: center;
}
.f-stats-row .foe-stats { margin: 0; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; letter-spacing: 0.05em;
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; opacity: 0.92;
}
.hero-tag img.gi { width: 15px; height: 15px; }

/* faixa de habilidades sob o HP do herói */
.ab-strip {
  min-height: 46px; margin-top: 8px;
  display: flex; gap: 7px; align-items: center; justify-content: center;
}
.ab-strip.ghost { visibility: hidden; }
.ab-slot {
  position: relative; width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid rgba(233, 220, 186, 0.3);
  background: rgba(9, 11, 15, 0.6);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.ab-slot img.gi { width: 32px; height: 32px; }
.ab-slot.mini { width: 34px; height: 34px; border-radius: 9px; }
.ab-slot.mini img.gi { width: 25px; height: 25px; }
.cd-mask {
  position: absolute; inset: 0; z-index: 1;
  transform: scaleX(-1); /* espelha o leque => gira no sentido anti-horário */
  background: conic-gradient(from 0deg, rgba(5, 7, 11, 0.85) var(--pct), transparent 0);
}
.cd-num {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #f3e6c2;
  text-shadow: 0 1px 3px #000, 0 0 8px #000;
}
.ab-slot.cooling { filter: saturate(0.35) brightness(0.72); }

.big .f-icon { font-size: 88px; }
.f-icon { font-size: 64px; line-height: 1.1; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.6)); }
.f-sub { font-style: italic; color: var(--ink-dim); font-size: 13.5px; margin-top: 4px; }
.vs { font-size: 40px; color: #e0563f; align-self: center; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }

.dead-state .f-icon { opacity: 0.85; }

.boss .f-icon { animation: pulse 1.7s ease-in-out infinite; }

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

.boss-tag {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(112, 18, 18, 0.9);
  color: #ffe9b3;
  font-family: Cinzel, Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 2px 12px;
  border: 1px solid rgba(255, 110, 90, 0.4);
  border-radius: 10px;
  z-index: 2;
}

.foe-kind {
  font-family: Cinzel, Georgia, serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.skill-line {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #d8cba4;
  border-top: 1px dashed var(--edge-faint);
  padding-top: 10px;
}

/* ---------- equipado (arena) ---------- */

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

.item-card.mini {
  flex: 1;
  min-width: 170px;
  max-width: 220px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.item-card.mini .ic-icon { font-size: 26px; }
.item-card.mini .ic-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-card.mini .ic-bonus { font-size: 12px; }

/* ---------- inventÃƒÆ’Ã‚Â¡rio ---------- */

.inv-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.item-card {
  border: 1px solid var(--rar, rgba(214, 180, 104, 0.4));
  border-radius: 6px;
  background: rgba(10, 8, 5, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 12px 10px 10px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.item-card:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255,255,255,0.08); }

.item-card.locked { opacity: 0.62; filter: saturate(0.6); }

.slot-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 24, 14, 0.95);
  color: #ffe9b3;
  font-family: Cinzel, Georgia, serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  padding: 1px 9px;
  border: 1px solid rgba(214, 180, 104, 0.4);
  border-radius: 8px;
  white-space: nowrap;
}

.eq-badge {
  position: absolute;
  top: -9px;
  right: 6px;
  background: rgba(46, 107, 40, 0.95);
  color: #eaffdd;
  font-family: Cinzel, Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 1px 7px;
  border-radius: 8px;
}

.ic-icon { font-size: 32px; line-height: 1.15; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); }
.ic-name { font-weight: bold; font-size: 13.5px; line-height: 1.25; }
.ic-rar { font-family: Cinzel, Georgia, serif; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.ic-bonus { font-size: 12.5px; color: #8fce7a; font-weight: bold; min-height: 17px; }
.ic-req { font-size: 11px; color: #9a8f74; }
.ic-req.bad { color: #ff7a6b; font-weight: bold; }

.item-actions { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin-top: 3px; }

/* ---------- forja ---------- */

.forge-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.forge-table th {
  font-family: Cinzel, Georgia, serif;
  text-align: left;
  color: var(--gold-light);
  border-bottom: 1px solid var(--edge);
  padding: 6px 8px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.forge-table td { padding: 8px; border-bottom: 1px dashed var(--edge-faint); vertical-align: middle; }
.forge-table tbody tr:hover { background: rgba(255, 240, 200, 0.06); }

.f-item { font-weight: bold; }
.f-item .ic-icon { font-size: 20px; margin-right: 4px; }
.eq-dot { margin-left: 4px; }
.f-lvl b { color: #ffc86b; font-size: 15px; }
.chance-cell span { font-weight: bold; font-size: 13px; }
.chance-cell .fail-pen { display: block; color: #ff6b6b; font-size: 11px; margin-top: 2px; }
.stone-req { font-size: 13px; white-space: nowrap; }
.stone-req.zero { color: #ff6b6b; }
.stone-free { color: var(--txt-dim); }
.f-actions form { display: inline-block; margin-right: 4px; }

/* ---------- crÃƒÆ’Ã‚Â´nicas (log) e legenda ---------- */

.log {
  height: min(56vh, 540px);
  min-height: 320px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.38);
  border: 1px dashed rgba(196, 164, 92, 0.35);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  scroll-behavior: smooth;
}

.log::-webkit-scrollbar { width: 10px; }
.log::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.log::-webkit-scrollbar-thumb { background: rgba(196, 164, 92, 0.4); border-radius: 5px; }

.entry { margin: 3px 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.entry .t { color: rgba(217, 192, 138, 0.55); font-size: 12px; }

.k-system      { color: #a89a78; font-style: italic; }
.k-player_hit  { color: #9ada85; }
.k-skill       { color: #85bdF5; font-weight: bold; }
.k-crit        { color: #ff7060; font-weight: bold; }
.k-heal        { color: #62dd92; font-weight: bold; }
.k-monster_hit { color: #eda06a; }
.k-miss        { color: #958e7d; font-style: italic; }
.k-victory     { color: #7ce888; font-weight: bold; }
.k-death       { color: #ff5548; font-weight: bold; }
.k-levelup     { color: #ffd94d; font-weight: bold; }
.k-evolve      { color: #c49bf7; font-weight: bold; }
.k-drop        { color: #ffbf5e; font-weight: bold; }
.k-forge       { color: #9db1e0; font-weight: bold; }

.legend .chip-row { margin-bottom: 10px; }

.legend .chip {
  display: inline-block;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  font-size: 12.5px;
  color: #ffeec9;
  background: linear-gradient(180deg, var(--c, #666), rgba(20, 15, 8, 0.9));
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 3px 12px;
  margin-bottom: 3px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.legend small { color: var(--ink-dim); display: block; line-height: 1.35; }

/* ---------- icones svg (game-icons.net) ---------- */

img.gi {
  height: 1.05em;
  width: 1.05em;
  object-fit: contain;
  vertical-align: -0.14em;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.75));
}

img.gi.png { image-rendering: pixelated; }

.portrait img.gi { width: 44px; height: 44px; }
.cc-icon img.gi { width: 48px; height: 48px; }
.ic-icon img.gi { width: 34px; height: 34px; }
.item-card.mini .ic-icon img.gi { width: 28px; height: 28px; }
.f-icon img.gi { width: 72px; height: 72px; }
.big .f-icon img.gi { width: 98px; height: 98px; }
.legend .chip img.gi { filter: none; }
.btn img.gi { width: 1.2em; height: 1.2em; }

/* ---------- landing / auth ---------- */

.lp-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(14px, 3vw, 34px);
  z-index: 50;
}
.lp-online {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(10, 8, 5, 0.62);
  border: 1px solid rgba(120, 200, 120, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  color: #cfe6c4;
  font-size: 14px;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.lp-online i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #58d158;
  box-shadow: 0 0 0 0 rgba(88, 209, 88, 0.65);
  animation: pulse-dot 2.1s infinite;
}
.lp-online b { color: #a8e69c; font-size: 15px; }
.lp-online:hover { border-color: rgba(160, 230, 150, 0.7); }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(88, 209, 88, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(88, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 209, 88, 0); }
}
.lp-actions { display: flex; gap: 10px; align-items: center; }
.btn-sm { padding: 9px 20px; font-size: 14.5px; margin-top: 0; }

.hero-landing { max-width: 1060px; margin: 0 auto; }
.hero-card { text-align: center; padding: clamp(28px, 6vw, 64px) 24px; }
.logo-gap { height: clamp(1px, calc(24vw - 189px), 141px); }
.hero-kicker {
  font-style: italic;
  letter-spacing: 0.22em;
  color: #b08d3f;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hero-card h1 {
  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-weight: 800;
  font-size: clamp(44px, 9vw, 92px);
  letter-spacing: 0.14em;
  margin: 0;
  color: #f0d78c;
  text-shadow: 0 2px 24px rgba(240, 215, 140, 0.35), 0 4px 14px rgba(0, 0, 0, 0.8);
}
.hero-sub {
  max-width: 620px;
  margin: 18px auto 26px;
  color: #d8cba8;
  line-height: 1.65;
  font-size: 17px;
}
.hero-sub b { color: #f0d78c; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-gold {
  background: linear-gradient(180deg, rgba(214, 178, 96, 0.95), rgba(150, 112, 42, 0.95));
  border-color: rgba(255, 231, 160, 0.85);
  color: #241a06;
  font-weight: bold;
  padding: 12px 30px;
}
.btn-gold:hover { filter: brightness(1.12); box-shadow: 0 4px 22px rgba(214, 178, 96, 0.35); }

.lp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  text-align: center;
  padding: 18px 14px;
}
.lp-stats b {
  display: block;
  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-size: clamp(22px, 3.2vw, 34px);
  color: #f0d78c;
  line-height: 1.15;
}
.lp-stats span { color: #a99b78; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

.feat { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.feat:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 212, 138, 0.65);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(214, 178, 96, 0.18) inset;
}

.mid-cta { margin-top: 26px; text-align: center; padding: 40px 20px; }
.mid-cta h2 { margin: 6px 0 10px; }
.mid-cta p { color: #c9bc99; margin: 0 0 22px; }
.mid-cta .orn { color: #b08d3f; letter-spacing: 0.7em; font-size: 13px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.btn-ghost { background: rgba(12, 10, 7, 0.55); padding: 12px 30px; }
.hero-count { margin-top: 20px; color: #8d8065; font-style: italic; font-size: 14.5px; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.feat h3 { margin: 0 0 8px; color: #d9c08a; letter-spacing: 0.05em; font-size: 16.5px; }
.feat h3 img.gi { width: 26px; height: 26px; vertical-align: -6px; margin-right: 9px; }
.feat p { margin: 0; color: #bfb393; line-height: 1.55; font-size: 14.5px; }

.auth-wrap { display: grid; place-items: center; min-height: 62vh; }
.auth-card { width: min(420px, 92vw); display: grid; gap: 13px; padding: 26px; }
.auth-card h2 { margin: 0 0 4px; color: #d9c08a; text-align: center; letter-spacing: 0.06em; }
.auth-card label { display: grid; gap: 6px; color: #cbbf9e; font-size: 15px; }
.auth-card input {
  background: rgba(9, 7, 4, 0.72);
  border: 1px solid rgba(196, 164, 92, 0.38);
  border-radius: 6px;
  color: #efe6cc;
  padding: 11px 13px;
  font: inherit;
}
.auth-card input:focus {
  outline: none;
  border-color: #d9c08a;
  box-shadow: 0 0 0 2px rgba(217, 192, 138, 0.18);
}
.auth-alt { margin: 2px 0 0; text-align: center; font-size: 14px; color: #a99b78; }
.auth-alt a { color: #e3c877; }
.auth-card .cf-turnstile { justify-self: center; min-height: 65px; }

.salao-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 10, 7, 0.5);
  border: 1px solid rgba(196, 164, 92, 0.32);
  border-radius: 999px;
  padding: 5px 7px 5px 15px;
  color: #d8cba8;
  font-size: 14.5px;
}

/* ---------- habilidades da arma ---------- */

.skillbox { display: none; margin-top: 14px; border-top: 1px solid rgba(196, 164, 92, 0.25); padding-top: 11px; }
.sb-head {
  color: #d9c08a;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.skill-line { margin: 0 0 8px; }
.skill-line b {
  display: block;
  color: #f0d78c;
  font-size: 13.5px;
}
.skill-line span { color: #a99b78; font-size: 12.5px; line-height: 1.4; display: block; }
img.gi.sk {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  vertical-align: -5px;
  object-fit: cover;
}

/* ---- Bancada de CriaÃƒÆ’Ã‚Â§ÃƒÆ’Ã‚Â£o (materiais + receitas) ---- */
.mat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.chip-mat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border: 1px solid rgba(233,220,186,.16);
  border-radius: 999px; background: rgba(255,255,255,.03);
  font-size: .85rem; color: #cfc4a4;
}
.chip-mat b { color: #e9dcba; }
.chip-mat.zero { opacity: .45; }

.recipe-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 14px;
}
.recipe-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border: 1px solid rgba(233,220,186,.16);
  border-radius: 14px; background: rgba(255,255,255,.03);
}
.recipe-card h3 {
  display: flex; align-items: center; gap: 9px;
  margin: 0; font-size: 1rem;
}
.recipe-card ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px; font-size: .88rem; color: #cfc4a4;
}
.recipe-card li { display: flex; align-items: center; gap: 7px; }
.recipe-card li small { margin-left: auto; opacity: .6; }
.recipe-card li.missing { color: #d06a5a; }
.recipe-card button { margin-top: auto; }
.recipe-card button:disabled { opacity: .45; cursor: not-allowed; }

/* ---- Forja de Grimhild (2 passos: tipo → item específico + aprimorar) ---- */
.forja-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.forja-title h2 { margin: 0; }
.forja-balance {
  font-size: 16px; color: #e9dcba;
  background: rgba(140,110,40,.15); border: 1px solid rgba(196,164,92,.35);
  border-radius: 8px; padding: 5px 14px; white-space: nowrap;
}
.forja-balance b { color: #ffe8a0; font-size: 18px; }

.forja-crumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 4px 0 12px;
}
.forja-crumb .crumb-here {
  display: inline-flex; align-items: center; gap: 7px;
  color: #ffe8a0; font-weight: bold; font-size: 15px;
}

.forge-cats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.forge-cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 14px; text-align: center; text-decoration: none;
  border: 1px solid rgba(233,220,186,.16); border-radius: 14px;
  background: rgba(255,255,255,.03); color: #e3d7b6;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.forge-cat:hover {
  transform: translateY(-3px); color: #ffe8a0;
  border-color: rgba(196,164,92,.55);
  box-shadow: 0 10px 22px rgba(0,0,0,.5), 0 0 18px rgba(196,164,92,.12);
}
.forge-cat .fc-icon { font-size: 44px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.forge-cat b { font-size: 15px; }
.forge-cat small { color: #8a7e6a; font-size: 12px; }
.forge-cat .fc-go {
  margin-top: 4px; font-size: 12px; font-weight: bold;
  color: #c9a84c; letter-spacing: .06em;
}

/* ---- seleção de itens da forja em tabelas por pool ---- */
.forge-subtabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px;
}
.forge-subtabs .fst {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: bold;
  color: #cfc4a4; text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(233,220,186,.14);
  transition: transform .15s, border-color .15s, color .15s;
}
.forge-subtabs .fst:hover {
  color: #ffe8a0; border-color: rgba(196,164,92,.55); transform: translateY(-1px);
}
.forge-subtabs .fst small { color: #8a7e6a; font-size: 11px; }

.forge-table-sec { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.forge-tbl {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.forge-tbl th {
  text-align: left; color: #8a7e6a; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid rgba(196,164,92,.25);
}
.forge-tbl td { padding: 8px 10px; border-bottom: 1px solid rgba(233,220,186,.07); vertical-align: middle; }
.forge-tbl tbody tr { transition: background .12s; }
.forge-tbl tbody tr:hover { background: rgba(255,255,255,.04); }
.forge-tbl tr.ft-lock { opacity: .45; }
.forge-tbl tr.ft-ok .ft-name { color: #e3d7b6; }
.forge-tbl .ft-name { font-weight: bold; color: #e3d7b6; white-space: nowrap; }
.forge-tbl .ft-name .ic-icon { margin-right: 7px; font-size: 22px; vertical-align: -4px; }
.forge-tbl .ft-lock-ic { margin-right: 4px; opacity: .9; }
.forge-tbl .dim { color: #8a7e6a; font-size: 12.5px; }
.forge-tbl .nv { color: #c9a84c; font-weight: bold; white-space: nowrap; }
.forge-tbl .mats-cell { line-height: 1.6; white-space: nowrap; }
.mat-pip {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(233,220,186,.12);
  border-radius: 10px; padding: 1px 7px; margin-right: 4px; font-size: 12px; color: #cfc4a4;
}
.mat-pip .ic-icon { font-size: 15px; }
.mat-pip.missing { color: #d06a5a; border-color: rgba(208,106,90,.4); }
.gold-cell { color: #ffe8a0; font-weight: bold; white-space: nowrap; }
.gold-cell.missing { color: #d06a5a; }
.forge-tbl .ft-act { text-align: right; white-space: nowrap; }
.forge-tbl .ft-act form { margin: 0; }
.forge-tbl .ft-act .btn:disabled { opacity: .4; cursor: not-allowed; }

.forge-group {
  color: #c9a84c; margin: 20px 0 8px; font-size: 14px;
  border-bottom: 1px dashed rgba(196,164,92,.2); padding-bottom: 4px;
}
.forge-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 12px; }
.forge-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border: 1px solid rgba(233,220,186,.14); border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.forge-item.lock { opacity: .45; }
.forge-item .fi-icon { font-size: 32px; min-width: 38px; text-align: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.forge-item .fi-main { flex: 1; min-width: 0; }
.forge-item .fi-main b { color: #e3d7b6; display: block; }
.forge-item .fi-main small { color: #8a7e6a; font-size: 11.5px; }
.forge-item ul.fi-cust {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: grid; gap: 2px; font-size: .8rem; color: #cfc4a4;
}
.forge-item ul.fi-cust li { display: flex; align-items: center; gap: 5px; }
.forge-item ul.fi-cust li.missing { color: #d06a5a; }
.forge-item button { align-self: flex-end; white-space: nowrap; }

.forge-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.forge-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; border: 1px solid rgba(233,220,186,.16); border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.forge-card .fc-head { display: flex; align-items: center; gap: 10px; }
.forge-card .fc-head > .ic-icon { font-size: 34px; min-width: 38px; text-align: center; }
.forge-card .fc-name { flex: 1; min-width: 0; }
.forge-card .fc-name b { color: #e3d7b6; }
.forge-card .fc-name small { display: block; font-size: 12px; }
.forge-card .f-lvl {
  margin-left: auto; white-space: nowrap; font-size: 13px; color: #c9a84c;
}
.forge-card .f-bonus { font-size: 12.5px; color: #9fd0a0; }
.forge-card .f-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.forge-card .f-chance { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #e3d7b6; }
.forge-card .f-chance.max { color: #ffb347; font-weight: bold; }
.forge-card .f-cost { display: inline-flex; align-items: center; gap: 8px; }
.forge-card .f-cost b { color: #ffe8a0; font-size: 13px; }
.forge-card .f-actions { display: flex; gap: 8px; justify-content: flex-end; }
.forge-card .f-actions form { margin: 0; }

/* ---- Dungeons ---- */
section.panel.arena {
  position: relative;
  background-image: var(--dg-bg, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
section.panel.arena::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,.82), rgba(10,8,6,.55) 45%, rgba(10,8,6,.9));
  z-index: 0;
}
section.panel.arena > * { position: relative; z-index: 1; }

.dg-panel h2 { margin-bottom: 10px; }
.dg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.dg-form { display: contents; }
.dg-card {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid rgba(233,220,186,.16);
  border-radius: 9px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}
.dg-card img {
  width: 100%; height: 44px;
  object-fit: cover; display: block;
  filter: saturate(.85);
  transition: filter .15s ease;
}
.dg-card:hover img { filter: saturate(1.15) brightness(1.08); }
.dg-card.cur { border-color: #e9b84a; box-shadow: 0 0 0 1px #e9b84a, 0 0 10px rgba(233,184,74,.3); }
.dg-card.lock img { filter: grayscale(1) brightness(.5); }
.dg-lock { position: absolute; top: 3px; left: 4px; font-size: .65rem; }
.dg-current {
  margin-top: 10px;
  font-size: .82rem;
  color: #cfc4a4;
  border-top: 1px solid rgba(233,220,186,.1);
  padding-top: 9px;
}
.dg-current small { opacity: .6; }

.dg-stars {
  display: flex; align-items: center;
  gap: 5px; margin-top: 9px;
}
.dg-stars small {
  color: #a99b78; font-size: .66rem;
  text-transform: uppercase; letter-spacing: .09em;
  margin-right: 2px;
}
.dg-stars button {
  background: none;
  border: 1px solid rgba(233,220,186,.16);
  border-radius: 6px;
  color: #cfc4a4; font-size: .64rem;
  padding: 3px 7px; cursor: pointer;
}
.dg-stars button:hover { border-color: #c9a44a; }
.dg-stars button.on {
  border-color: #e9b84a; color: #e9b84a;
  box-shadow: 0 0 8px rgba(233,184,74,.25);
}

.dg-desc { margin-top: 4px; }

.dg-city-hint {
  margin-top: 9px;
  font-size: .72rem;
  color: #a99b78;
  background: rgba(0,0,0,.18);
  border: 1px dashed rgba(233,220,186,.16);
  border-radius: 7px;
  padding: 6px 9px;
  text-align: center;
}
.dg-city-hint a { color: #e9b84a; }

/* ---- EsboÃƒÆ’Ã‚Â§o do HerÃƒÆ’Ã‚Â³i (paperdoll) ---- */
.doll-panel h2 { margin-bottom: 12px; }
.paperdoll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  grid-template-areas:
    "lvl  cap  bols"
    "amu  arm  bra"
    "mp   cal  ms"
    "anel bot  .";
}
.a-cap { grid-area: cap; }   .a-amu { grid-area: amu; }
.a-anel { grid-area: anel; } .a-mp { grid-area: mp; }
.a-ms { grid-area: ms; }     .a-cal { grid-area: cal; }
.a-arm { grid-area: arm; }   .a-bot { grid-area: bot; }
.a-bols { grid-area: bols; } .a-bra { grid-area: bra; }
.pd-retr { grid-area: lvl; }

.pd-slot {
  position: relative;
  min-height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(233,220,186,.22);
  border-radius: 9px;
  background: rgba(255,255,255,.02);
}
.pd-slot.filled {
  border-style: solid;
  border-color: var(--rar, rgba(233,220,186,.35));
  box-shadow: inset 0 0 10px rgba(0,0,0,.45);
}
.pd-slot img.gi { width: 24px; height: 24px; }
.pd-slot:not(.filled) img.gi {
  opacity: .35;
  filter: grayscale(.5);
}
.pd-retr {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  border-style: solid;
  border-color: rgba(233,220,186,.14);
  background: radial-gradient(circle at 50% 28%, rgba(233,220,186,.09), transparent 72%);
}
.pd-retr img.gi { width: 32px !important; height: 32px !important; }
.pd-lvl { font-size: .64rem; color: #e9dcba; letter-spacing: .05em; }

/* ---- CrÃƒÆ’Ã‚Â´nicas (discreta) ---- */
.chronicle.subtle {
  background: none;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(233,220,186,.08);
}
.chronicle.subtle .log { font-size: 12.5px; line-height: 1.45; }
.chronicle.subtle .entry { opacity: .82; margin: 2px 0; }
.chronicle.subtle .entry .t { font-size: 11px; opacity: .75; }

/* ---- Habilidades (sÃƒÆ’Ã‚Â³ ÃƒÆ’Ã‚Â­cones + tooltip) ---- */
.skill-icons {
  display: flex; flex-wrap: wrap;
  gap: 8px; margin-top: 7px;
}
.skill-icons .sk-ic { display: inline-flex; cursor: help; }
.skill-icons .sk-ic img.gi { width: 28px; height: 28px; }
.skill-icons .sk-ic img.gi.sk {
  width: 36px; height: 36px;
  border-radius: 6px;
}
.chron-title {
  margin: 0 0 8px;
  font-family: "Alegreya", "IM Fell English", serif;
  font-size: .78rem;
  font-weight: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a99b78;
}

/* raridade de monstros */
.rar-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 999px;
  padding: 1px 9px;
  margin-top: 3px;
}
/* ---------------- painel admin ---------------- */
.adm-shell { max-width: 1180px; margin: 0 auto; display: grid; gap: 16px; }
.wrap:has(.adm-shell) { max-width: 1240px; }
.adm-head h1 { font-family: 'Cinzel', serif; letter-spacing: 0.04em; }
.adm-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.adm-nav a {
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(233, 220, 186, 0.22);
  background: rgba(10, 14, 20, 0.55); color: var(--tinta, #cfc4a4); text-decoration: none;
  font-size: 13px; letter-spacing: 0.06em;
}
.adm-nav a.active { border-color: #e9dcba; color: #f3ead2; background: rgba(233, 220, 186, 0.12); }
.adm-nav .adm-spacer { flex: 1; }
.flash { padding: 10px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.flash-ok { border-color: rgba(87, 194, 94, 0.5); background: rgba(87, 194, 94, 0.08); color: #a9e6ad; }
.flash-erro { border-color: rgba(255, 99, 99, 0.5); background: rgba(255, 99, 99, 0.08); color: #ffb0b0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat {
  border: 1px solid rgba(233, 220, 186, 0.18); border-radius: 14px; padding: 12px;
  background: rgba(10, 14, 20, 0.45); text-align: center;
}
.stat b { display: block; font-size: 26px; font-family: 'Cinzel', serif; color: #f3ead2; }
.stat span { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.65; padding: 6px 8px; border-bottom: 1px solid rgba(233, 220, 186, 0.25);
}
.adm-table td { padding: 7px 8px; border-bottom: 1px solid rgba(233, 220, 186, 0.09); vertical-align: middle; }
.adm-strong { color: #f3ead2; font-weight: 600; }
.adm-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.adm-actions form, .adm-inline { display: flex; gap: 6px; align-items: center; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; }
.adm-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.adm-grid-6 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.adm-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.9; }
.adm-grid input, .adm-grid select {
  background: rgba(8, 11, 17, 0.7); border: 1px solid rgba(233, 220, 186, 0.25);
  border-radius: 10px; color: #efe6cd; padding: 8px 10px; font-size: 14px; width: 100%;
}
.adm-grid small { text-transform: none; letter-spacing: 0; opacity: 0.55; }
.adm-checks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13.5px; }
.adm-checks label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.adm-savebar { margin-top: 16px; display: flex; gap: 10px; }
.adm-sub { margin-top: 22px; font-family: 'Cinzel', serif; font-size: 15px; letter-spacing: 0.05em; color: #d9cba6; }
.adm-toolbar { display: flex; gap: 10px; margin-bottom: 6px; }
.adm-bonus { white-space: nowrap; color: #9fd6a2; }
.adm-mats label img.gi { width: 16px; height: 16px; vertical-align: -2px; }
.adm-dg { border-top: 1px dashed rgba(233, 220, 186, 0.18); padding: 12px 0; }
.adm-dg:first-of-type { border-top: none; }
.adm-dg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.adm-tag {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(233, 220, 186, 0.3); border-radius: 999px; padding: 1px 9px; opacity: 0.85;
}
/* atividade offline */
.dg-offline {
  margin-top: 6px; font-size: 12.5px; letter-spacing: 0.03em;
  color: #b9c7d6; opacity: 0.9;
}
.dg-offline b { color: #dfe8f2; font-variant-numeric: tabular-nums; }
.dg-offline.empty { color: #a06b6b; }
.dg-offline.empty b { color: #c98383; }
/* combate: hp / nivel / dano do monstro */
.foe-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin: 4px 0 5px;
}
.foe-nv, .foe-hp, .foe-dmg {
  font-size: 11.5px; letter-spacing: 0.04em;
  border-radius: 999px; padding: 1px 9px;
  font-variant-numeric: tabular-nums;
}
.foe-nv { border: 1px solid rgba(233,220,186,.35); color: #d8cfae; }
.foe-hp { border: 1px solid rgba(196,110,110,.45); color: #e0b3a6; background: rgba(120,40,40,.12); }
.foe-dmg { border: 1px solid rgba(233,220,186,.25); color: #c9a86a; }

/* habilidades ativas no menu esquerdo (== rotação do card) */
.act-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: 8px;
  border: 1px solid rgba(233,220,186,.14);
  background: rgba(9,11,15,.35); margin-bottom: 5px;
}
.act-row img.gi { width: 22px; height: 22px; }
.act-n { flex: 1; text-align: left; font-size: 12.5px; color: #e3d7b6; letter-spacing: .02em; }

/* ---------- cidade ---------- */

.city-panel { width: 100%; margin: 0; }
.city-map { position: relative; width: 100%; border-radius: 8px; overflow: hidden; margin: 12px 0; border: 2px solid rgba(196,164,92,.25); }
.city-bg { width: 100%; display: block; filter: brightness(.85) contrast(1.05); }

.city-npc {
  position: absolute; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; text-decoration: none; z-index: 2;
  opacity: .6;
  transition: transform .15s, opacity .15s;
}
.city-npc:hover { transform: translate(-50%,-50%) scale(1.12); opacity: 1; }
.npc-icon {
  font-size: 28px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7));
  background: transparent; border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none;
}
.npc-label {
  font-size: 11px; font-weight: bold; color: #ffe8a0; text-align: center;
  text-shadow: 0 1px 4px #000, 0 0 8px rgba(0,0,0,.8);
  line-height: 1.2; pointer-events: none;
}
.npc-label small { font-weight: normal; color: #c8b88a; font-size: 10px; }
.npc-info { cursor: default; }
.npc-info:hover { transform: translate(-50%,-50%); }

.city-npcs-list { margin: 16px 0; }
.city-npcs-list h3 { color: #c9a84c; margin-bottom: 8px; font-size: 14px; }
.npc-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-bottom: 1px dashed rgba(196,164,92,.15);
}
.npc-card:last-child { border-bottom: none; }
.npc-icon-lg { font-size: 24px; min-width: 32px; text-align: center; }
.npc-card b { color: #e3d7b6; }
.npc-card small { color: #8a7e6a; }

.city-leave { text-align: center; margin: 16px 0 8px; }

.nav-btn.city-btn { background: rgba(196,164,92,.08); border-color: rgba(196,164,92,.25); color: #c9a84c; }
.nav-btn.city-active { background: rgba(196,164,92,.15); border-color: rgba(196,164,92,.4); color: #ffe8a0; font-weight: bold; }
.nav-btn.city-active::before { content: "▸ "; }
.nav-btn.dungeon-btn { background: none; border: 1px dashed rgba(196,164,92,.2); color: #8a7e6a; cursor: pointer; font: inherit; width: 100%; text-align: left; padding: 6px 10px; border-radius: 4px; }
.nav-btn.dungeon-btn:hover { color: #c9a84c; border-color: rgba(196,164,92,.4); }
.act-meta { font-size: 11px; color: #a99f82; font-variant-numeric: tabular-nums; white-space: nowrap; }
img.gi.mob { object-fit: contain; }

/* ---------- pedras de forja ---------- */
.stones-panel { padding: 8px; }
.stones-panel h2 { font-size: 13px; text-align: center; margin-bottom: 6px; color: #c9a84c; }
.stones-grid { display: flex; justify-content: center; gap: 16px; }
.stone-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 2px 4px; min-width: 70px;
}
.stone-img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.stone-qty { font-size: 15px; font-weight: bold; color: #ffe8a0; }

/* ---------- poções ---------- */
.potion-grid { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.potion-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid rgba(196,164,92,.15);
  border-radius: 8px; background: rgba(0,0,0,.25);
  transition: border-color .2s;
}
.potion-card.owned { border-color: rgba(196,164,92,.35); }
.potion-icon { font-size: 28px; min-width: 40px; text-align: center; }
.potion-info { flex: 1; color: #c8b88a; font-size: 13px; line-height: 1.5; }
.potion-info b { color: #ffe8a0; }
.potion-price { color: #c9a84c; font-weight: bold; }
.potion-owned { color: #8a7e6a; }
.potion-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.qty-row { display: flex; gap: 4px; align-items: center; }
.qty-input {
  width: 48px; text-align: center; font-size: 13px; padding: 3px 2px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(196,164,92,.25);
  border-radius: 4px; color: #ffe8a0;
}
.potion-note { text-align: center; color: #8a7e6a; margin-top: 8px; }

/* ---------- NPC drag handle ---------- */
.npc-drag-handle {
  position: absolute; top: -6px; right: -8px;
  font-size: 16px; color: #c9a84c; cursor: grab;
  background: rgba(0,0,0,.6); border-radius: 4px; padding: 0 3px;
  border: 1px solid rgba(196,164,92,.3); z-index: 5;
  user-select: none;
}
.npc-drag-handle:active { cursor: grabbing; }
.city-npc.dragging { opacity: .7; z-index: 10; }
.city-npc.dragging .npc-label { display: none; }

/* ---------- loja de gemas ---------- */
.shop-fab {
  position: fixed; top: 16px; right: 20px; z-index: 100;
  font-size: 22px; text-decoration: none;
  background: linear-gradient(135deg, rgba(60,30,120,.85), rgba(30,15,60,.9));
  border: 2px solid rgba(180,120,255,.5); border-radius: 50%;
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(150,80,255,.4), 0 4px 12px rgba(0,0,0,.5);
  transition: transform .15s, box-shadow .15s;
}
.shop-fab:hover { transform: scale(1.12); box-shadow: 0 0 28px rgba(150,80,255,.6), 0 4px 16px rgba(0,0,0,.6); }

.gem-bar {
  text-align: center; font-size: 14px; color: #c8a0ff; margin-bottom: 8px;
  padding: 4px 0; border-bottom: 1px solid rgba(180,120,255,.2);
}
.gem-bar b { color: #e0c0ff; font-size: 16px; }

.vip-bar {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 8px; padding: 5px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(196,164,92,.18), rgba(150,80,255,.12));
  border: 1px solid rgba(196,164,92,.4);
  color: #ffe8a0; font-size: 12px; font-weight: bold;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.vip-bar img.gi { width: 18px; height: 18px; }

.shop-panel { max-width: 900px; margin: 0 auto; }
.shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.shop-header h2 { margin: 0; }
.shop-balance {
  font-size: 16px; color: #c8a0ff;
  background: rgba(80,40,160,.2); border: 1px solid rgba(180,120,255,.3);
  border-radius: 6px; padding: 4px 12px;
}
.shop-balance b { color: #e0c0ff; font-size: 18px; }

.shop-grid { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.shop-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid rgba(180,120,255,.15);
  border-radius: 8px; background: rgba(0,0,0,.25);
  transition: border-color .2s;
}
.shop-card.owned { border-color: rgba(180,120,255,.35); }
.shop-icon { font-size: 28px; min-width: 40px; text-align: center; }
.shop-info { flex: 1; color: #c8b88a; font-size: 13px; line-height: 1.5; }
.shop-info b.shop-name { color: #ffe8a0; display: block; margin-bottom: 2px; }
.shop-price { text-align: right; min-width: 70px; }
.gem-cost { color: #c8a0ff; font-weight: bold; font-size: 15px; }
.shop-qty { color: #8a7e6a; display: block; }
.shop-note { text-align: center; color: #8a7e6a; margin-top: 8px; }
.shop-vip-dur {
  font-size: 11px; color: #ffe8a0; font-weight: bold;
  background: rgba(196,164,92,.18);
  border: 1px solid rgba(196,164,92,.4);
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ---- Miniatura de Inventário (sidebar) ---- */
.inv-mini-panel h2 { margin-bottom: 10px; }
.inv-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.inv-mini {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; min-height: 0;
  border: 1px solid rgba(233,220,186,.16);
  border-radius: 7px;
  background: rgba(0,0,0,.18);
  color: var(--rar, #cfc4a4);
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.inv-mini:hover {
  transform: translateY(-2px) scale(1.1);
  z-index: 2;
  border-color: var(--rar, #e9b84a);
  box-shadow: 0 0 8px rgba(233,184,74,.35);
}
.inv-mini-empty {
  grid-column: 1 / -1;
  font-size: .72rem; color: #a99b78;
  padding: 6px 0; text-align: center;
}

/* ---- Cidade: ações ---- */
.city-actions {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  flex-wrap: wrap; margin-top: 14px;
}
.city-actions form { margin: 0; }

/* ---- Portão das Dungeons ---- */
.dng-current {
  display: flex; gap: 14px; align-items: center;
  border: 1px solid rgba(233,184,74,.28);
  background: rgba(233,184,74,.06);
  border-radius: 12px; padding: 12px;
  margin: 12px 0 4px;
}
.dng-cur-img {
  width: 96px; height: 64px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0;
  border: 1px solid rgba(233,220,186,.2);
}
.dng-cur-name { font-size: 1rem; color: #e9b84a; font-weight: 700; }
.dng-cur-meta { font-size: .76rem; color: #a99b78; margin-top: 1px; }
.dng-cur-desc { font-size: .82rem; color: #cfc4a4; margin-top: 3px; line-height: 1.4; }
.dng-stars { margin-top: 7px; }
.dng-star-btn {
  background: none;
  border: 1px solid rgba(233,220,186,.16);
  border-radius: 6px;
  color: #cfc4a4; font-size: .7rem;
  padding: 3px 9px; cursor: pointer;
}
.dng-star-btn:hover { border-color: #c9a44a; }
.dng-star-btn.on {
  border-color: #e9b84a; color: #e9b84a;
  box-shadow: 0 0 8px rgba(233,184,74,.25);
}
.dng-sub { margin: 16px 0 10px; font-size: .95rem; color: #dfe3ee; }
.dng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dng-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid rgba(233,220,186,.16);
  border-radius: 12px; overflow: hidden;
  background: rgba(0,0,0,.22);
}
.dng-card.cur {
  border-color: #e9b84a;
  box-shadow: 0 0 0 1px #e9b84a, 0 0 14px rgba(233,184,74,.22);
}
.dng-card.lock .dng-img { filter: grayscale(1) brightness(.5); }
.dng-img { width: 100%; height: 84px; object-fit: cover; display: block; }
.dng-tag {
  position: absolute; top: 7px; right: 7px;
  background: #e9b84a; color: #1a1c26;
  font-size: .64rem; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
}
.dng-body {
  padding: 10px 11px 4px; flex: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.dng-title { font-weight: 700; color: #dfe3ee; font-size: .92rem; }
.dng-req { font-size: .68rem; color: #a99b78; }
.dng-desc { font-size: .76rem; color: #b9c0d0; line-height: 1.35; }
.dng-loot {
  font-size: .72rem; color: #9fd8a0;
  border-top: 1px dashed rgba(233,220,186,.12);
  padding-top: 5px; margin-top: 4px;
}
.dng-loot-label { color: #a99b78; }
.dng-pick { margin: 0; padding: 8px 11px 11px; }
.dng-pick .btn { width: 100%; }
.dng-pick button:disabled { cursor: not-allowed; opacity: .5; }
.dng-actions {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  flex-wrap: wrap; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(233,220,186,.12);
}
.dng-actions form { margin: 0; }
