/* Hub */
.hub-header {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(11,13,20,0.95) 0%, rgba(11,13,20,0.6) 100%);
  position: relative;
  z-index: 10;
}

.hub-header h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
}

.hub-room {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 52px),
    linear-gradient(180deg, #0d101c 0%, #15182a 55%, #1a1e30 100%);
}

.hub-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(102,204,255,0.08) 0%, transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(255,170,51,0.05) 0%, transparent 25%);
}

.hub-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6%;
  background: linear-gradient(180deg, #1a1208 0%, #0d0a05 100%);
  border-top: 3px solid #3d2e1e;
  z-index: 1;
}

/* Window */
.hub-window {
  position: absolute;
  top: 5%;
  left: 4%;
  width: 150px;
  height: 210px;
  border-radius: 75px 75px 0 0;
  background: linear-gradient(180deg, #050a1a 0%, #0f1d3d 55%, #1a3260 100%);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.55), 0 0 0 5px #1f2438, 0 0 0 7px #0b0d14, 0 0 35px rgba(102,204,255,0.12);
}
.hub-window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.14) 0%, transparent 5%),
    radial-gradient(circle at 70% 18%, rgba(255,255,255,0.09) 0%, transparent 4%),
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.05) 0%, transparent 55%);
}
.hub-window-pane {
  position: absolute;
  background: #1f2438;
  z-index: 2;
}
.pane-v { top: 0; bottom: 0; left: 50%; width: 5px; transform: translateX(-50%); }
.pane-h { left: 0; right: 0; top: 55%; height: 5px; }

/* Shelves */
.hub-shelf {
  position: absolute;
  right: 4%;
  width: 120px;
  height: 8px;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  border-radius: 2px;
  box-shadow: 0 5px 0 #120d08;
}
.shelf-top { top: 12%; }
.shelf-bottom { top: 24%; }
.hub-shelf::before {
  content: '';
  position: absolute;
  left: 8px; right: 8px; top: -55px; bottom: 0;
  background: linear-gradient(90deg, #1f1710 0%, #2a1f14 50%, #1f1710 100%);
  z-index: -1;
  border-radius: 4px;
}
.hub-bottle {
  position: absolute;
  bottom: 6px;
  width: 13px;
  border-radius: 2px 2px 5px 5px;
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 -4px 6px rgba(0,0,0,0.35);
}
.bottle-red   { left: 16px; height: 30px; background: rgba(255, 80, 80, 0.25); }
.bottle-gold  { left: 38px; height: 36px; background: rgba(255, 200, 60, 0.25); }
.bottle-blue  { left: 64px; height: 28px; background: rgba(60, 130, 255, 0.25); }
.bottle-green { left: 20px; height: 32px; background: rgba(60, 220, 120, 0.25); }
.bottle-purple{ left: 50px; height: 28px; background: rgba(180, 90, 255, 0.25); }

/* Noticeboard */
.hub-noticeboard {
  position: absolute;
  top: 7%;
  left: 22%;
  width: 100px;
  height: 135px;
  background: linear-gradient(135deg, #2a2015 0%, #1f1710 100%);
  border: 4px solid #3d2e1e;
  border-radius: 6px;
  padding: 9px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  transform: rotate(-2deg);
}
.notice-row {
  height: 6px;
  background: rgba(154,160,184,0.25);
  border-radius: 2px;
  margin-bottom: 8px;
}
.notice-row.notice-gold { background: rgba(255,170,51,0.45); height: 8px; }
.notice-row.notice-short { width: 70%; }
.notice-pin {
  position: absolute;
  top: 6px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Central workbench */
.hub-workbench {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: 520px;
  height: 180px;
  z-index: 2;
}
.bench-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(180deg, #4a3522 0%, #3d2e1e 100%);
  border-radius: 6px;
  box-shadow: 0 5px 0 #2a1f14, 0 8px 16px rgba(0,0,0,0.4);
}
.bench-leg {
  position: absolute;
  top: 22px;
  width: 16px;
  height: 130px;
  background: linear-gradient(90deg, #2a1f14 0%, #3d2e1e 50%, #2a1f14 100%);
  border-radius: 0 0 3px 3px;
}
.leg-left { left: 30px; }
.leg-right { right: 30px; }
.bench-prop {
  position: absolute;
  top: -12px;
  border-radius: 50%;
}
.prop-mortar {
  left: 60px;
  width: 30px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #5c5c6a, #2a2a35);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.prop-ruler {
  right: 70px;
  width: 65px;
  height: 7px;
  background: linear-gradient(90deg, #8a7a5a 0%, #6b5b40 100%);
  border-radius: 2px;
  transform: rotate(-12deg);
}

/* Action objects */
.hub-object {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #f0e8d8;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  z-index: 3;
}
.hub-object:hover { filter: brightness(1.12); }
.hub-object:active { transform: translateY(3px); }
.hub-icon { font-size: 28px; }
.hub-label { text-shadow: 0 1px 3px rgba(0,0,0,0.6); }

.hub-plaque {
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 70px;
  background: linear-gradient(180deg, #5a4a2a 0%, #3d3015 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 5px 0 #2a200a, 0 7px 12px rgba(0,0,0,0.45);
  border: 2px solid #b89a4a;
  color: #ffeebb;
}

.hub-book {
  bottom: calc(6% + 158px);
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 80px;
  background: linear-gradient(180deg, #6b4c2a 0%, #4a341b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 5px 0 #2e200f, 0 7px 12px rgba(0,0,0,0.45);
  border: 2px solid #8a6a3d;
}
.hub-book:hover { transform: translateX(-50%) translateY(-2px); }
.hub-book:active { transform: translateX(-50%) translateY(2px); }

.hub-scroll {
  bottom: calc(6% + 158px);
  left: 27%;
  width: 110px;
  height: 80px;
  background: linear-gradient(180deg, #d4c4a0 0%, #a89470 100%);
  color: #3d3015;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 5px 0 #5e4f32, 0 7px 12px rgba(0,0,0,0.4);
  border: 2px solid #e8dcc0;
}

.hub-chest {
  bottom: calc(6% + 158px);
  right: 26%;
  width: 100px;
  height: 70px;
  background: linear-gradient(180deg, #4a3522 0%, #2e2114 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 5px 0 #1a1208, 0 7px 12px rgba(0,0,0,0.45);
  border: 2px solid #5c4530;
}

@media (max-width: 700px) {
  .hub-workbench { width: 340px; height: 180px; }
  .hub-object { transform: scale(0.85); }
  .hub-book { transform: translateX(-50%) scale(0.85); }
  .hub-book:hover { transform: translateX(-50%) translateY(-2px) scale(0.85); }
  .hub-book:active { transform: translateX(-50%) translateY(2px) scale(0.85); }
  .hub-scroll { left: 18%; }
  .hub-chest { right: 18%; }
  .hub-window { width: 120px; height: 170px; }
  .hub-noticeboard { left: 28%; width: 80px; height: 110px; }
}

/* Cards */
.card-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.type-competition { background: #5533aa; color: #e8d8ff; }
.type-activity { background: #2266aa; color: #d8eeff; }
.type-repeatable { background: #666; color: #eee; }
.type-fallback { background: #448855; color: #e0ffe8; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}

