/* =========================================================
   Comandantes, Governadores e Equipamentos — v0.1.65
   ========================================================= */
.equipment-view {
  color:#2b1a0d;
}
.equipment-shell {
  display:grid;
  grid-template-columns:230px minmax(420px,1fr) 360px;
  gap:12px;
  min-height:calc(100vh - 220px);
}
.equipment-character-list,
.equipment-paperdoll,
.equipment-summary {
  border:2px solid #5a3a1e;
  border-radius:10px;
  background:linear-gradient(#e8d5a8,#caa66e 55%,#a17745);
  box-shadow:0 8px 20px #0008,inset 0 1px #fff8;
  padding:12px;
}
.equipment-character-list h3,
.equipment-summary h3 {
  margin:0 0 10px;
  color:#2c1b0d;
  font:900 17px Georgia,serif;
}
.equipment-character-btn {
  width:100%;
  min-height:68px;
  display:grid;
  grid-template-columns:38px 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  gap:2px 8px;
  margin-bottom:8px;
  padding:8px;
  border:1px solid #7d572b;
  border-radius:7px;
  background:linear-gradient(#f4e4bd,#b98b50);
  color:#2b1a0d;
  text-align:left;
  box-shadow:inset 0 1px #fff9,0 2px 6px #0005;
  cursor:pointer;
}
.equipment-character-btn span {
  grid-row:1/3;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #5a3619;
  border-radius:50%;
  background:#5b3920;
  color:#ffe8a0;
  font-size:20px;
}
.equipment-character-btn b { font-size:13px; }
.equipment-character-btn small { color:#5b3b1e; font-size:11px; font-weight:800; }
.equipment-character-btn.active {
  border-color:#f2d066;
  background:linear-gradient(#d43124,#8e1713);
  color:#fff3bd;
  box-shadow:0 0 0 2px #f2cf62,0 4px 10px #0008;
}
.equipment-character-btn.active small { color:#ffe3a3; }
.equipment-character-btn.active span { background:#f0d07b; color:#6c1e13; }
.equipment-hero-card {
  display:grid;
  grid-template-columns:96px 1fr;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
  padding:12px;
  border:1px solid #7d572b;
  border-radius:9px;
  background:linear-gradient(#6d4d2d,#3e2817);
  color:#fff0c2;
  box-shadow:inset 0 1px #fff3;
}
.equipment-hero-portrait {
  width:88px;
  height:104px;
  display:grid;
  place-items:center;
  border:2px solid #d3a84e;
  border-radius:9px 9px 36px 36px;
  background:radial-gradient(circle at 50% 30%,#957449,#27180e 70%);
  font-size:48px;
  box-shadow:inset 0 2px #fff4,0 4px 10px #0008;
}
.equipment-hero-card small {
  color:#e9c879;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.equipment-hero-card h2 { margin:2px 0 3px; color:#fff4ba; font:900 25px Georgia,serif; }
.equipment-hero-card p { margin:0; color:#d7c5a2; font-size:12px; }
.equipment-slots {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.equipment-slot {
  min-height:112px;
  padding:9px;
  border:2px solid #82613a;
  border-radius:8px;
  background:linear-gradient(#e9d5a8,#b89059);
  box-shadow:inset 0 1px #fff7;
}
.equipment-slot.filled { border-color:var(--rarity,#8c8f86); }
.equipment-slot-name {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
  color:#3b2410;
  font-size:12px;
  font-weight:900;
}
.equipment-empty-slot {
  height:58px;
  display:grid;
  place-items:center;
  border:1px dashed #8d6b42;
  border-radius:6px;
  color:#715437;
  background:#f2e0b975;
  font-weight:900;
}
.equipment-slot-item b,
.equipment-slot-item small { display:block; }
.equipment-slot-item b { color:#211207; font-size:12px; line-height:1.15; }
.equipment-slot-item small { color:var(--rarity,#6f6f6f); font-weight:900; }
.equipment-mini-btn {
  min-height:27px!important;
  margin-top:7px;
  padding:4px 8px!important;
  font-size:11px!important;
}
.equipment-summary-list {
  display:grid;
  gap:5px;
  margin-bottom:12px;
}
.equipment-summary-row {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:6px 8px;
  border:1px solid #9b7446;
  border-radius:5px;
  background:#ead6aa;
  font-size:12px;
}
.equipment-summary-row strong { color:#6d4120; }
.equipment-summary-row.has-value strong { color:#186b28; }
.equipment-inventory {
  display:grid;
  gap:8px;
  max-height:calc(100vh - 420px);
  min-height:160px;
  overflow:auto;
  padding-right:4px;
}
.equipment-item-card {
  position:relative;
  padding:8px;
  border:2px solid var(--rarity,#8c8f86);
  border-radius:8px;
  background:linear-gradient(#f3e1b8,#c39a62);
  box-shadow:inset 0 1px #fff8,0 2px 7px #0004;
}
.equipment-item-head {
  display:grid;
  grid-template-columns:38px 1fr;
  gap:8px;
  align-items:center;
}
.equipment-item-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #56351a;
  border-radius:6px;
  background:#4a2e19;
  color:#ffe29b;
  font-size:20px;
}
.equipment-item-card strong { display:block; color:#241408; font-size:12px; line-height:1.15; }
.equipment-item-card small { color:#5f4124; font-size:10px; font-weight:900; }
.equipment-stats {
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-top:7px;
}
.equipment-stat {
  color:#39230f;
  font-size:11px;
}
.equipment-stat b { color:#126328; }
.equipment-equipped-label {
  display:inline-block;
  margin-top:7px;
  padding:3px 7px;
  border-radius:999px;
  background:#3c7a28;
  color:#fff8d0;
  font-size:10px;
  font-weight:900;
}
.equipment-empty-inventory {
  display:grid;
  place-items:center;
  min-height:180px;
  padding:16px;
  border:1px dashed #86623a;
  border-radius:8px;
  color:#5c4328;
  background:#f1ddb680;
  text-align:center;
  font-size:13px;
  font-weight:800;
}

.gge-layout-active .equipment-view {
  background:linear-gradient(180deg,#314027cc,#202819ee);
}
.gge-layout-active .equipment-shell {
  min-height:calc(100vh - 230px);
}
.gge-layout-active .equipment-inventory {
  max-height:calc(100vh - 440px);
}
@media (max-width:1180px) {
  .equipment-shell { grid-template-columns:200px 1fr; }
  .equipment-summary { grid-column:1 / -1; }
  .equipment-inventory { max-height:280px; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* v0.1.67 — conjuntos oficiais de equipamento */
.equipment-set-tag {
  display:inline-flex;
  width:max-content;
  margin-top:4px;
  padding:2px 6px;
  border-radius:999px;
  background:color-mix(in srgb, var(--rarity) 20%, #0f141a);
  border:1px solid color-mix(in srgb, var(--rarity) 65%, #1c232b);
  color:#f7e7ba;
  font-size:10px;
  font-style:normal;
  font-weight:800;
}
.equipment-set-summary {
  margin:12px 0;
}
.equipment-set-summary h3 {
  margin-top:0;
}
.equipment-set-card {
  border:1px solid color-mix(in srgb, var(--set-color) 38%, #27313b);
  background:linear-gradient(135deg, color-mix(in srgb, var(--set-color) 12%, #121821), #0d1218 70%);
  border-radius:10px;
  padding:8px;
  margin-bottom:7px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.equipment-set-card strong {
  display:block;
  color:#f3d58e;
  font-size:12px;
}
.equipment-set-card small {
  display:block;
  margin-top:2px;
  color:#aeb8c5;
  font-size:10px;
  line-height:1.3;
}
.equipment-set-card.has-pieces {
  border-color:color-mix(in srgb, var(--set-color) 70%, #ffffff 5%);
}
.equipment-set-bonuses {
  display:grid;
  gap:3px;
  margin-top:7px;
}


/* v0.1.69 — Ferreiro / melhoria de equipamentos */
.equipment-smith-view .view-title { margin-bottom:12px; }
.equipment-smith-shell {
  display:grid;
  grid-template-columns:minmax(230px,300px) minmax(360px,1fr) minmax(220px,280px);
  gap:14px;
  min-height:calc(100vh - 235px);
}
.equipment-smith-list,
.equipment-smith-card,
.equipment-smith-upgrade,
.equipment-smith-empty-panel {
  border:1px solid #7b5a35;
  border-radius:14px;
  background:linear-gradient(180deg,#f3dfb6,#d7b982);
  box-shadow:0 8px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.4);
  color:#3e2b18;
}
.equipment-smith-list { padding:10px; overflow:auto; max-height:calc(100vh - 245px); }
.equipment-smith-list h3,
.equipment-smith-upgrade h3 { margin:0 0 10px; color:#3a2817; }
.equipment-smith-item {
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
  margin-bottom:8px;
  padding:8px;
  border:2px solid color-mix(in srgb, var(--rarity) 45%, #7b5a35);
  border-radius:10px;
  background:linear-gradient(135deg,#f8eac6,#cfaa6f);
  cursor:pointer;
  color:#3a2817;
}
.equipment-smith-item.active {
  outline:3px solid #f6c34d;
  box-shadow:0 0 0 3px rgba(65,44,20,.35), 0 0 18px color-mix(in srgb, var(--rarity) 40%, transparent);
}
.equipment-smith-item-icon {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#442b19;
  color:#ffe7a1;
  font-size:22px;
  flex:0 0 auto;
}
.equipment-smith-item b { display:block; font-size:12px; line-height:1.15; }
.equipment-smith-item small { display:block; margin-top:2px; font-size:10px; color:#6a4a27; line-height:1.2; }
.equipment-smith-card { padding:14px; border-color:color-mix(in srgb, var(--rarity) 50%, #7b5a35); }
.equipment-smith-selected {
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:12px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--rarity) 17%, #5b3c1e), #2e2015);
  color:#f7e6bd;
}
.equipment-smith-big-icon {
  width:76px;
  height:76px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#1d1510;
  border:2px solid color-mix(in srgb, var(--rarity) 60%, #f2d78d);
  font-size:42px;
  flex:0 0 auto;
}
.equipment-smith-selected small { color:#f0ca72; font-weight:900; }
.equipment-smith-selected h2 { margin:2px 0 3px; font-size:22px; }
.equipment-smith-selected p { margin:0; color:#e7d6b3; font-weight:800; }
.equipment-smith-levels {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:12px 0;
}
.equipment-smith-levels span,
.equipment-smith-chance,
.equipment-smith-cost {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border-radius:9px;
  background:#ead1a3;
  border:1px solid #b8894f;
  font-weight:900;
}
.equipment-smith-levels b,
.equipment-smith-chance strong { color:#8a2d16; font-size:19px; }
.equipment-smith-stats {
  display:grid;
  gap:7px;
  margin-top:10px;
}
.equipment-smith-stat {
  display:grid;
  grid-template-columns:minmax(140px,1fr) auto auto auto;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:9px;
  background:#fff2cf;
  border:1px solid #d0a264;
  font-weight:800;
}
.equipment-smith-stat strong { color:#694321; }
.equipment-smith-stat em { color:#1f7737; font-style:normal; font-weight:1000; }
.equipment-smith-upgrade { padding:12px; display:flex; flex-direction:column; gap:8px; }
.equipment-smith-upgrade .action-btn,
.equipment-smith-upgrade .secondary-btn { width:100%; justify-content:center; }
.equipment-smith-note { font-size:12px; line-height:1.35; font-weight:800; color:#5b3c1e; margin:6px 0; }
.equipment-smith-result {
  margin-top:12px;
  padding:10px;
  border-radius:9px;
  font-weight:900;
  border:1px solid currentColor;
}
.equipment-smith-result.success { color:#1b7535; background:#dff4d8; }
.equipment-smith-result.fail { color:#8a2d16; background:#f4d6c9; }
.equipment-smith-empty,
.equipment-smith-empty-panel {
  padding:18px;
  text-align:center;
  font-weight:900;
}
.equipment-smith-empty-panel { max-width:640px; margin:24px auto; }
@media (max-width:1200px) {
  .equipment-smith-shell { grid-template-columns:1fr; }
  .equipment-smith-list { max-height:260px; }
}
