/* =============================================
   TBoI Secret Finder — style.css
   Dark pixel-art inspired design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f1a;
  --bg-3: #13131f;
  --bg-card: #16162a;
  --bg-card-hover: #1c1c30;
  --border: rgba(139, 92, 246, 0.15);
  --border-bright: rgba(139, 92, 246, 0.35);

  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --secondary: #e74c3c;
  --accent: #f39c12;
  --gold: #f1c40f;
  --teal: #1abc9c;
  --blue: #3498db;

  --text: #e8e8f0;
  --text-muted: #8888aa;
  --text-dim: #4a4a6a;

  --secret-color: #a855f7;
  --super-secret-color: #f59e0b;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.2);
  --shadow-red-glow: 0 0 20px rgba(231, 76, 60, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* === Background Particles === */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0;
}

@keyframes float {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  from { filter: drop-shadow(0 0 6px #e74c3c); }
  50% { filter: drop-shadow(0 0 12px #8e44ad); }
  to { filter: drop-shadow(0 0 6px #e74c3c); }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #e74c3c, #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.03em;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.12);
}

/* === Hero === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 100px;
  font-size: 0.75rem;
  color: #e74c3c;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: rgba(231, 76, 60, 0.05);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(135deg, #e74c3c 0%, #8e44ad 50%, #3498db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #8b5cf6, #e74c3c);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.925rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border-bright);
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.925rem;
  transition: all 0.3s;
}

.btn-ghost:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary);
}

/* === Hero Visual / Mini Map === */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-preview {
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.map-preview-grid {
  display: grid;
  grid-template-columns: repeat(9, 28px);
  grid-template-rows: repeat(7, 28px);
  gap: 3px;
}

.preview-cell {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  transition: all 0.3s;
}

/* === Sections === */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.dark-section {
  background: var(--bg-2);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 60%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* === Finder Layout === */
.finder-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* === Control Panel === */
.control-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 88px;
}

.panel-section {
  margin-bottom: 1.75rem;
}

.panel-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.room-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.room-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.room-type-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
}

.room-type-btn.active {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.15);
  color: var(--text);
}

.type-preview {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.type-preview.normal { background: #374151; }
.type-preview.start { background: #166534; }
.type-preview.boss { background: #7f1d1d; }
.type-preview.treasure { background: #78350f; }
.type-preview.shop { background: #1e3a5f; }
.type-preview.devil { background: #3b0764; }
.type-preview.angel { background: #1e3a5f; }
.type-preview.curse { background: #4c0519; }
.type-preview.sacrifice { background: #3b1a00; }
.type-preview.erase { background: #374151; color: #9ca3af; }

/* Mode Toggle */
.mode-toggle {
  display: flex;
  background: var(--bg-3);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.mode-btn {
  flex: 1;
  padding: 0.45rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.mode-btn.active {
  background: var(--primary);
  color: white;
}

/* Action Buttons */
.action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #7c3aed, #b91c1c);
  color: white;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.action-btn.secondary {
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.action-btn.secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  box-shadow: none;
}

/* Legend */
.legend {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-color.normal { background: #374151; }
.legend-color.start { background: #166534; }
.legend-color.boss { background: #7f1d1d; }
.legend-color.treasure { background: #92400e; }
.legend-color.shop { background: #1e40af; }
.legend-color.devil { background: #4c1d95; }
.legend-color.angel { background: #1e3a5f; }
.legend-color.curse { background: #831843; }
.legend-color.sacrifice { background: #c2410c; }
.legend-color.secret-hint { background: #7c3aed; box-shadow: 0 0 6px rgba(124,58,237,0.8); }
.legend-color.super-hint { background: #d97706; box-shadow: 0 0 6px rgba(217,119,6,0.8); }

/* === Map Area === */
.map-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}

.map-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.map-stats {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
}

.map-wrapper {
  padding: 1.5rem;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(13, 44px);
  grid-template-rows: repeat(9, 44px);
  gap: 3px;
}

.map-cell {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  position: relative;
  overflow: hidden;
}

.map-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s;
}

.map-cell:hover::after {
  background: rgba(255,255,255,0.06);
}

.map-cell.empty-hover {
  border-color: rgba(139, 92, 246, 0.1);
  background: rgba(139, 92, 246, 0.02);
}

/* Room colors on map */
.map-cell[data-type="normal"] {
  background: #1f2937;
  border-color: #374151;
}
.map-cell[data-type="start"] {
  background: #14532d;
  border-color: #16a34a;
  box-shadow: inset 0 0 8px rgba(22, 163, 74, 0.2);
}
.map-cell[data-type="boss"] {
  background: #450a0a;
  border-color: #dc2626;
  box-shadow: inset 0 0 8px rgba(220, 38, 38, 0.2);
}
.map-cell[data-type="treasure"] {
  background: #451a03;
  border-color: #d97706;
  box-shadow: inset 0 0 8px rgba(217, 119, 6, 0.2);
}
.map-cell[data-type="shop"] {
  background: #1e3a8a;
  border-color: #3b82f6;
  box-shadow: inset 0 0 8px rgba(59, 130, 246, 0.2);
}
.map-cell[data-type="devil"] {
  background: #2e1065;
  border-color: #7c3aed;
  box-shadow: inset 0 0 8px rgba(124, 58, 237, 0.3);
}
.map-cell[data-type="angel"] {
  background: #0c4a6e;
  border-color: #38bdf8;
  box-shadow: inset 0 0 8px rgba(56, 189, 248, 0.2);
}
.map-cell[data-type="curse"] {
  background: #4a0519;
  border-color: #f43f5e;
  box-shadow: inset 0 0 8px rgba(244, 63, 94, 0.2);
}
.map-cell[data-type="sacrifice"] {
  background: #3b1a00;
  border-color: #f97316;
  box-shadow: inset 0 0 8px rgba(249, 115, 22, 0.2);
}

/* Hints */
.map-cell.secret-hint {
  background: rgba(124, 58, 237, 0.25) !important;
  border-color: #7c3aed !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6), inset 0 0 8px rgba(124, 58, 237, 0.2) !important;
  animation: pulse-secret 1.5s ease-in-out infinite !important;
}

.map-cell.super-hint {
  background: rgba(217, 119, 6, 0.25) !important;
  border-color: #d97706 !important;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.6), inset 0 0 8px rgba(217, 119, 6, 0.2) !important;
  animation: pulse-super 1.5s ease-in-out infinite !important;
}

@keyframes pulse-secret {
  0%, 100% { box-shadow: 0 0 8px rgba(124, 58, 237, 0.5), inset 0 0 6px rgba(124, 58, 237, 0.15); }
  50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.9), inset 0 0 12px rgba(124, 58, 237, 0.3); }
}

@keyframes pulse-super {
  0%, 100% { box-shadow: 0 0 8px rgba(217, 119, 6, 0.5), inset 0 0 6px rgba(217, 119, 6, 0.15); }
  50% { box-shadow: 0 0 20px rgba(217, 119, 6, 0.9), inset 0 0 12px rgba(217, 119, 6, 0.3); }
}

.cell-icon {
  font-size: 1rem;
  user-select: none;
}

/* Analysis Result */
.analysis-result {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(124, 58, 237, 0.05);
}

.result-icon { font-size: 1.8rem; }

.result-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.result-text strong {
  color: var(--primary);
}

/* === Room Cards === */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.room-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 30px rgba(139, 92, 246, 0.15);
}

.room-card.secret { border-top: 3px solid #7c3aed; }
.room-card.super-secret { border-top: 3px solid #d97706; }
.room-card.devil-room { border-top: 3px solid #dc2626; }
.room-card.angel-room { border-top: 3px solid #38bdf8; }
.room-card.curse-room { border-top: 3px solid #f43f5e; }
.room-card.sacrifice-room { border-top: 3px solid #a855f7; }

.room-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.room-card-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-radius: 10px;
}

.room-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.room-card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.room-card-badge {
  margin-left: auto;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(139, 92, 246, 0.3);
  white-space: nowrap;
}

.room-card-badge.gold {
  background: rgba(217, 119, 6, 0.15);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.3);
}

.room-card-badge.red {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
}

.room-card-badge.blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.room-card-badge.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.room-card-body {
  padding: 1.5rem;
}

.room-card-body > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rule-item strong { color: var(--text); }

.rule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.rule-dot.green { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.rule-dot.yellow { background: #eab308; box-shadow: 0 0 6px rgba(234,179,8,0.5); }
.rule-dot.red { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.rule-dot.blue { background: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,0.5); }

.room-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.reward-tag {
  padding: 0.25rem 0.6rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* === Tips === */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tip-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
}

.tip-card:hover::before {
  opacity: 1;
}

.tip-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(139, 92, 246, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
}

.tip-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.tip-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === Items Grid === */
.items-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.filter-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  color: var(--text);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.25s;
  cursor: default;
}

.item-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.item-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.item-emoji {
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-radius: 8px;
}

.item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.item-type-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 2px;
}

.item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Footer === */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .finder-layout {
    grid-template-columns: 1fr;
  }
  .control-panel {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .hero {
    flex-direction: column;
    min-height: auto;
    text-align: center;
  }
  .hero-cta { justify-content: center; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .map-grid {
    grid-template-columns: repeat(13, 32px);
    grid-template-rows: repeat(9, 32px);
  }
  .map-cell { width: 32px; height: 32px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .control-panel { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 2rem; }
}
