/* Casa — Fazenda & Estábulo · dark fantasy rural */

/* ── Fazenda ── */
.house-farm-scene {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0.75rem 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.15);
  background:
    linear-gradient(165deg, rgba(12, 18, 10, 0.97) 0%, rgba(8, 12, 8, 0.99) 45%, rgba(6, 10, 6, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.house-farm-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(74, 222, 128, 0.1), transparent 58%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(212, 175, 55, 0.06), transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.85;
  z-index: 0;
}

.house-farm-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(134, 239, 172, 0.35), transparent),
    radial-gradient(1px 1px at 78% 62%, rgba(212, 175, 55, 0.25), transparent);
  animation: house-farm-drift 36s linear infinite;
  opacity: 0.5;
  z-index: 0;
}

@keyframes house-farm-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-12px, -18px); }
}

.house-farm-scene > * {
  position: relative;
  z-index: 1;
}

.house-farm-head {
  text-align: center;
  margin-bottom: 0.85rem;
}

.house-farm-head .house-section-title {
  margin-bottom: 0.25rem;
  color: #86efac;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
}

.house-farm-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(74, 222, 128, 0.12);
}

@media (max-width: 520px) {
  .house-farm-status {
    grid-template-columns: repeat(2, 1fr);
  }
}

.house-farm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.house-farm-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  color: #d4af37;
}

.house-farm-stat--ready .house-farm-stat-val {
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.45);
}

.house-farm-stat-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(180, 180, 200, 0.65);
}

.house-plots-wrap {
  justify-content: stretch;
  padding: 0;
}

.house-farm-scene .house-plots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: none;
  width: 100%;
}

@media (min-width: 640px) {
  .house-farm-scene .house-plots {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .house-farm-scene .house-plots {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.house-farm-scene .house-plot {
  max-width: none;
  width: 100%;
  align-items: stretch;
  padding: 0.65rem 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 41, 20, 0.8);
  background:
    linear-gradient(180deg, rgba(35, 28, 18, 0.9) 0%, rgba(22, 16, 10, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.house-farm-scene .house-plot--ready {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow:
    0 0 20px rgba(74, 222, 128, 0.22),
    inset 0 0 24px rgba(74, 222, 128, 0.06);
  animation: house-plot-pulse 2.8s ease-in-out infinite;
}

@keyframes house-plot-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(74, 222, 128, 0.18), inset 0 0 20px rgba(74, 222, 128, 0.05); }
  50% { box-shadow: 0 0 28px rgba(74, 222, 128, 0.35), inset 0 0 32px rgba(74, 222, 128, 0.1); }
}

.house-farm-scene .house-plot h5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.12);
  font-size: 0.82rem;
  text-align: left;
  color: #c4b5a0;
}

.house-plot-badge {
  font-size: 0.58rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.15);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.25);
  white-space: nowrap;
}

.house-farm-scene .house-cell-grid {
  width: 100%;
  gap: 5px;
}

.house-farm-scene .house-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 52px;
  border-radius: 6px;
  border: 1px solid rgba(80, 55, 30, 0.7);
  background:
    linear-gradient(180deg, #4a3520 0%, #2d1f12 55%, #1f150c 100%);
  color: #c4a574;
  font-size: 0.58rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.house-farm-scene .house-cell:hover:not(:disabled) {
  transform: translateY(-1px);
}

.house-cell-soil {
  font-size: 1rem;
  opacity: 0.45;
}

.house-cell-sprout {
  font-size: 1.05rem;
  animation: house-sprout-sway 3s ease-in-out infinite;
}

@keyframes house-sprout-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}

.house-cell-time {
  font-size: 0.55rem;
  color: #fbbf24;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

.house-cell-ready-icon {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.6));
}

.house-cell-ready-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.house-farm-scene .house-cell--growing {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(180deg, #3d3018 0%, #2a2010 100%);
}

.house-farm-scene .house-cell--ready {
  border: 2px solid #4ade80;
  background: linear-gradient(180deg, #1a3d22 0%, #0f2818 100%);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.45);
  animation: house-cell-ready-glow 2s ease-in-out infinite;
}

@keyframes house-cell-ready-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(74, 222, 128, 0.35); }
  50% { box-shadow: 0 0 18px rgba(74, 222, 128, 0.55); }
}

.house-farm-scene .house-plot--locked {
  opacity: 0.55;
  filter: grayscale(0.3);
}

.house-unlock {
  margin-top: 0.45rem;
  width: 100%;
}

/* Estufa dentro da cena rural */
.house-greenhouse-scene {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(134, 239, 172, 0.15);
  background: linear-gradient(165deg, rgba(10, 20, 14, 0.97), rgba(6, 12, 8, 0.99));
}

.house-greenhouse-scene .house-tree-grid {
  max-width: none;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 640px) {
  .house-greenhouse-scene .house-tree-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

.house-greenhouse-scene .house-tree-slot {
  min-height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(61, 41, 20, 0.6);
  background: linear-gradient(180deg, #2a3820 0%, #1a2414 100%);
}

.house-greenhouse-scene .house-tree-slot--ready {
  border-color: #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.4);
  animation: house-cell-ready-glow 2.5s ease-in-out infinite;
}

/* ── Estábulo / Animais ── */
.house-stable-scene {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(165deg, rgba(16, 14, 10, 0.98), rgba(10, 8, 6, 1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.house-stable-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 30% 0%, rgba(212, 175, 55, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 80%, rgba(74, 222, 128, 0.06), transparent 50%);
  z-index: 0;
}

.house-stable-scene > * {
  position: relative;
  z-index: 1;
}

.house-stable-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .house-stable-layout {
    grid-template-columns: minmax(160px, 200px) 1fr;
    align-items: start;
  }
}

.house-stable-locs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .house-stable-locs {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

.house-stable-loc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(80, 60, 30, 0.5);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.house-stable-loc:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.house-stable-loc--on {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
}

.house-stable-loc-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.house-stable-loc-text strong {
  display: block;
  font-size: 0.78rem;
  color: #e8dcc8;
}

.house-stable-loc-text small {
  font-size: 0.62rem;
  color: rgba(180, 170, 150, 0.75);
}

.house-stable-main {
  min-width: 0;
}

.house-stable-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.house-stable-header h4 {
  margin: 0;
  font-size: 1rem;
  color: #d4af37;
}

.house-stable-capacity {
  font-size: 0.72rem;
  color: rgba(180, 180, 200, 0.7);
}

.house-stable-food-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

@media (min-width: 640px) {
  .house-stable-food-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.house-stable-food-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.house-stable-food-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.house-stable-food-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.house-stable-food-label {
  font-size: 0.72rem;
  color: rgba(180, 180, 200, 0.65);
}

.house-stable-food-qty {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e8dcc8;
}

.house-stable-food-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.house-stable-pen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 960px) {
  .house-stable-pen {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }
}

.house-stable-card {
  display: flex;
  flex-direction: column;
  border-radius: 11px;
  border: 1px solid rgba(80, 60, 30, 0.55);
  background: linear-gradient(180deg, rgba(28, 22, 14, 0.95), rgba(16, 12, 8, 0.98));
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.house-stable-card--drops {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.15);
  animation: house-stable-drops-pulse 2.5s ease-in-out infinite;
}

@keyframes house-stable-drops-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(74, 222, 128, 0.12); }
  50% { box-shadow: 0 0 20px rgba(74, 222, 128, 0.28); }
}

.house-stable-card--dead {
  opacity: 0.65;
  filter: grayscale(0.5);
  border-color: rgba(120, 80, 80, 0.4);
}

.house-stable-card--empty {
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-style: dashed;
  border-color: rgba(80, 60, 30, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(180, 170, 150, 0.45);
}

.house-stable-card--empty span {
  font-size: 1.5rem;
  opacity: 0.4;
}

.house-stable-card--empty small {
  font-size: 0.62rem;
  margin-top: 0.25rem;
}

.house-stable-card-visual {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(74, 222, 128, 0.08), transparent),
    rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.house-stable-card-visual img {
  max-height: 56px;
  max-width: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.house-stable-drops-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.58rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.house-stable-card-body {
  padding: 0.45rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.house-stable-card-name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e8dcc8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.house-stable-bars {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.house-stable-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
}

.house-stable-bar-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.house-stable-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.house-stable-bar-fill--hunger {
  background: linear-gradient(90deg, #ca8a04, #fbbf24);
}

.house-stable-bar-fill--life {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.house-stable-bar-fill--life.house-stable-bar-fill--ok {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

.house-stable-prod {
  font-size: 0.62rem;
  color: rgba(180, 180, 200, 0.75);
  line-height: 1.35;
  min-height: 2.2em;
}

.house-stable-prod--ready {
  color: #86efac;
}

.house-stable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: auto;
}

.house-stable-actions .btn-xs {
  flex: 1;
  min-width: 0;
  font-size: 0.62rem;
  padding: 0.2rem 0.35rem;
}

.house-stable-npc-hint {
  margin-top: 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.72rem;
  text-align: center;
  color: rgba(180, 180, 200, 0.7);
  background: rgba(212, 175, 55, 0.06);
  border: 1px dashed rgba(212, 175, 55, 0.2);
}

.house-panel--farm,
.house-panel--animals {
  max-width: none;
  width: 100%;
}

.house-feed-picker-grid {
  max-height: 50vh;
}

.house-feed-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  color: #e8f0e4;
}

.house-feed-pick-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.15);
}

.house-feed-pick-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.house-feed-pick-name {
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.2;
}

.profile-avatar-wrap--plain .dsk-status-dot {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .house-farm-scene::after,
  .house-farm-scene .house-plot--ready,
  .house-farm-scene .house-cell--ready,
  .house-greenhouse-scene .house-tree-slot--ready,
  .house-cell-sprout,
  .house-stable-card--drops {
    animation: none;
  }
}
