html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0d10;
  color: #e8eef6;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

#app {
  position: fixed;
  inset: 0;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

#hint {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: rgba(12, 14, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  font-size: 12px;
  letter-spacing: 0.3px;
  pointer-events: none;
}

#products-panel {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 360px;
  max-height: calc(100vh - 24px);
  pointer-events: auto;
  z-index: 10;
}
#products-panel .panel {
  background: rgba(15,18,22,.9);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
#products-panel .panel-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#products-panel h2 { margin: 0; font-size: 14px; font-weight: 600; color: #e8eef6; }
#products-panel .panel-body { padding: 10px; max-height: 70vh; overflow: auto; }
#products-panel .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card { display: block; background: #0f1318; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; text-decoration: none; color: #e8eef6; }
.card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.card .name { padding: 8px; font-size: 12px; line-height: 1.2; }
.card:hover { border-color: rgba(255,255,255,.2); }

.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: inline-flex; }

  #open-products {
    position: fixed;
    top: 12px;
    right: 12px;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(20,22,27,.7);
    color: #e8eef6;
    z-index: 20;
  }

  #products-panel {
    position: fixed;
    inset: 0;
    width: auto;
    max-height: none;
    display: none;
    background: rgba(0,0,0,.45);
    place-items: center;
  }
  #products-panel.mobile-open { display: grid; }
  #products-panel .panel { width: min(720px, 92vw); max-height: 84vh; }
  #products-panel .panel-body { max-height: 70vh; }
  #close-products { background: transparent; border: 0; color: #9fb3c8; font-size: 18px; margin-left: auto; }
}


