/* 小熊的家 */
.bear-home-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
  max-width: min(960px, 100%);
  margin: 0 auto;
  width: 100%;
}

.bear-home-stats {
  display: flex;
  gap: 8px;
  padding: 10px 16px 6px;
}

.bear-home-stat {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 12px;
}
.bear-home-stat strong { display: block; font-size: 16px; margin-top: 2px; }
.bear-home-stat.mood { background: linear-gradient(135deg, #FFF9E5, #FFE5EC); }
.bear-home-stat.intimacy { background: #FFF9E5; }
.bear-home-stat.clean { background: #E8F5E9; }

.bear-home-room-wrap {
  flex: 1;
  position: relative;
  margin: 0 8px 8px;
  width: calc(100% - 16px);
  align-self: center;
  aspect-ratio: 2732 / 1534;
  max-height: min(calc(100vh - var(--nav-h) - 200px), 72vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bear-home-room {
  position: absolute;
  inset: 0;
  background-color: #FFF8F0;
  background-image: url('/images/room.png?v=1');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.bear-home-furniture {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: grab;
  box-shadow: 0 3px 8px rgba(60,40,20,0.15);
  user-select: none;
  touch-action: none;
  z-index: 2;
}
.bear-home-furniture:active { cursor: grabbing; }
.bear-home-furniture.sofa { background: #D4A574; }
.bear-home-furniture.rocking_horse { background: #E8B896; }
.bear-home-furniture.vase { background: #9EC9A8; }
.bear-home-furniture.rug-icon { background: #C9A88C; }
.bear-home-furniture.lamp { background: #FFE5A0; }

.bear-home-bear-slot {
  position: absolute;
  width: 90px;
  height: 98px;
  z-index: 3;
  cursor: grab;
  overflow: visible;
  pointer-events: auto;
  touch-action: none;
}
.bear-home-bear-slot:active,
.bear-home-bear-slot.is-dragging {
  cursor: grabbing;
}

.bear-home-bear-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.bear-home-actions {
  display: flex;
  justify-content: space-evenly;
  padding: 8px 8px 16px;
  gap: 4px;
}

.bear-home-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border: none;
  background: transparent;
  font-size: 11px;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 10px;
}
.bear-home-action-btn:active { background: rgba(0,0,0,0.04); }
.bear-home-action-btn span:first-child { font-size: 20px; }

.bear-home-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.bear-home-header h1 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
