/* Catálogo inferior de edifícios inspirado no fluxo de construção do GGE. */
.gge-build-backdrop {
  place-items:end center;
  padding:0 14px 10px;
  background:linear-gradient(transparent 22%,rgba(5,8,7,.16) 58%,rgba(5,8,7,.62));
  backdrop-filter:none;
}

.gge-build-modal {
  width:min(1120px,calc(100vw - 28px));
  max-height:none;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.gge-build-modal .modal-head,
.gge-build-modal .modal-actions {
  display:none;
}

.gge-build-modal .modal-body {
  padding:0;
}

.gge-building-dock {
  position:relative;
  border:3px solid #78613b;
  border-radius:10px 10px 4px 4px;
  background:linear-gradient(#ecdfbd,#cbb281 74%,#b79761);
  box-shadow:0 12px 28px #000a,inset 0 2px #fff9d9,inset 0 -3px #8d6a3e;
  color:#49351d;
  overflow:visible;
}

.gge-building-dock::before,
.gge-building-dock::after {
  content:"";
  position:absolute;
  top:7px;
  bottom:7px;
  width:10px;
  border:2px solid #8a6a3d;
  background:linear-gradient(90deg,#b28a51,#ead3a3,#9d7442);
  box-shadow:0 2px 5px #0007;
}

.gge-building-dock::before { left:-9px; border-radius:8px 0 0 8px; }
.gge-building-dock::after { right:-9px; border-radius:0 8px 8px 0; }

.gge-building-dock-header {
  min-height:43px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  padding:5px 48px 0 12px;
  border-bottom:2px solid #977443;
  background:linear-gradient(#d9c697,#b79562);
}

.gge-building-tabs {
  display:flex;
  align-items:flex-end;
  gap:4px;
  overflow-x:auto;
  scrollbar-width:none;
}
.gge-building-tabs::-webkit-scrollbar { display:none; }

.gge-build-tab {
  min-width:116px;
  height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:2px solid #795c34;
  border-bottom:0;
  border-radius:8px 8px 0 0;
  background:linear-gradient(#c8ae78,#a88753);
  color:#51391d;
  cursor:pointer;
  font:800 11px/1 Segoe UI,Arial,sans-serif;
  box-shadow:inset 0 1px #fff3c2;
}

.gge-build-tab span { font-size:17px; }
.gge-build-tab:hover { filter:brightness(1.08); }
.gge-build-tab.is-active {
  height:40px;
  background:linear-gradient(#fff3cf,#e2c58d);
  color:#3f2d18;
  box-shadow:0 -3px 8px #0004,inset 0 2px #fff;
}

.gge-building-close {
  position:absolute;
  top:-7px;
  right:-5px;
  z-index:4;
  width:38px;
  height:38px;
  border:2px solid #f3d39b;
  border-radius:8px;
  background:linear-gradient(#e8563e,#a91f1c);
  color:white;
  cursor:pointer;
  font:900 21px/1 Segoe UI,Arial,sans-serif;
  text-shadow:0 2px 2px #5b0b08;
  box-shadow:0 4px 8px #0008,inset 0 0 0 2px #7f1714;
}
.gge-building-close:hover { filter:brightness(1.12); }

.gge-building-carousel {
  display:grid;
  grid-template-columns:30px minmax(0,1fr) 30px;
  align-items:center;
  gap:6px;
  padding:6px 12px 4px;
}

.gge-build-arrow {
  width:30px;
  height:92px;
  align-self:center;
  border:2px solid #7c6037;
  border-radius:7px;
  background:linear-gradient(#f4dfad,#bb9258);
  color:#62441d;
  cursor:pointer;
  font:900 27px/1 Georgia,serif;
  box-shadow:inset 0 1px #fff6d6,0 3px 6px #0005;
}
.gge-build-arrow:hover { filter:brightness(1.1); }

.gge-build-track {
  min-height:154px;
  display:flex;
  align-items:stretch;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:#8d6a3d #d2b981;
  padding:1px 1px 4px;
}
.gge-build-track::-webkit-scrollbar { height:7px; }
.gge-build-track::-webkit-scrollbar-track { background:#d2b981; border-radius:999px; }
.gge-build-track::-webkit-scrollbar-thumb { background:#8d6a3d; border-radius:999px; }

.gge-build-card-slot {
  flex:0 0 154px;
  display:flex;
}
.gge-build-card-slot.is-hidden { display:none; }

.gge-build-card {
  position:relative;
  width:100%;
  min-height:150px;
  display:grid;
  grid-template-rows:70px 17px 14px 32px 15px;
  align-items:center;
  padding:4px 6px 3px;
  border:2px solid #8a6b3d;
  border-radius:5px;
  background:linear-gradient(#f1e5c6,#d8bf8e 67%,#bea06b);
  color:#443018;
  cursor:pointer;
  box-shadow:inset 0 1px #fff8df,0 3px 7px #0005;
  overflow:hidden;
}

.gge-build-card:hover:not(:disabled) {
  transform:translateY(-2px);
  border-color:#c78b24;
  filter:brightness(1.06);
  box-shadow:0 0 0 2px #ffd66580,0 6px 10px #0006,inset 0 1px #fff;
}

.gge-build-card-art {
  position:relative;
  height:70px;
  display:grid;
  place-items:center;
  margin:-3px -3px 1px;
  border-bottom:1px solid #aa8c5d;
  background:radial-gradient(ellipse at center,#eee4c5 0,#d0bd92 55%,#a98b5c 100%);
  overflow:hidden;
}

.gge-build-card-art::after {
  content:"";
  position:absolute;
  left:17%;
  right:17%;
  bottom:6px;
  height:10px;
  border-radius:50%;
  background:#2c261d55;
  filter:blur(4px);
}

.gge-build-card-art img {
  position:relative;
  z-index:1;
  width:104px;
  height:67px;
  object-fit:contain;
  object-position:center bottom;
  pointer-events:none;
  filter:drop-shadow(0 4px 3px #0007);
}

.gge-build-card-fallback {
  position:relative;
  z-index:1;
  font-size:43px;
}

.gge-build-card-name {
  display:block;
  min-width:0;
  margin-top:1px;
  overflow:hidden;
  color:#4a3218;
  font:900 11px/1.2 Segoe UI,Arial,sans-serif;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gge-build-card-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  color:#6d512c;
  font-size:8px;
}
.gge-build-card-meta em { font-style:normal; }

.gge-build-card-costs {
  width:100%;
  min-height:30px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:3px;
  overflow:visible;
}
.gge-build-card-costs .cost,
.gge-build-cost-chip {
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:2px 3px;
  border:1px solid #a77f43;
  border-radius:4px;
  background:linear-gradient(#fff5cf,#eacb8d);
  color:#3d2a12;
  font:900 10px/1 Segoe UI,Arial,sans-serif;
  text-shadow:0 1px #fff5cd;
  white-space:nowrap;
  box-shadow:inset 0 1px #fff8df;
}
.gge-build-card-costs .resource-icon,
.gge-build-card-costs .resource-svg-icon {
  width:14px;
  height:14px;
  flex:0 0 14px;
  margin:0;
}
.gge-build-cost-chip strong {
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:900;
}
.gge-build-card-costs .resource-svg-item {
  gap:2px;
}
.gge-build-card-costs .resource-svg-value {
  font-size:10px;
  font-weight:900;
}

.gge-build-card-status {
  display:block;
  align-self:end;
  padding-top:1px;
  border-top:1px solid #a98a58;
  color:#684616;
  font:900 8px/1 Segoe UI,Arial,sans-serif;
}

.gge-build-card.is-unaffordable .gge-build-card-costs,
.gge-build-card.is-unaffordable .gge-build-cost-chip { color:#a5221b; border-color:#b23d24; background:linear-gradient(#ffe7cc,#e9b889); }
.gge-build-card:disabled {
  cursor:not-allowed;
  filter:grayscale(.72) brightness(.75);
}
.gge-build-card-lock {
  position:absolute;
  top:6px;
  right:6px;
  z-index:3;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border:2px solid #e6c889;
  border-radius:50%;
  background:#4b3828e8;
  font-size:12px;
  box-shadow:0 2px 5px #0008;
}

.gge-building-hint {
  min-height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:3px 12px 4px;
  border-top:1px solid #9e7d4d;
  color:#5b421f;
  font-size:9px;
}
.gge-building-hint span { font-weight:900; text-transform:uppercase; }

@media (max-width:760px) {
  .gge-build-backdrop { padding:0 5px 7px; }
  .gge-build-modal { width:calc(100vw - 10px); }
  .gge-building-dock-header { padding-left:7px; }
  .gge-build-tab { min-width:74px; }
  .gge-build-tab b { display:none; }
  .gge-build-card-slot { flex-basis:142px; }
  .gge-build-card-costs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .gge-build-cost-chip { font-size:10px; padding-inline:2px; }
  .gge-build-card-costs .resource-svg-icon { width:14px; height:14px; flex-basis:14px; }
  .gge-building-carousel { grid-template-columns:28px minmax(0,1fr) 28px; padding-inline:6px; }
  .gge-build-arrow { width:28px; height:84px; font-size:24px; }
}


/* v0.1.135 — menu de construção compacto, custos legíveis e fluxo por posicionamento. */
