/* CSNY in the Wild — styles for the Meta Ray-Ban Display HUD.
   Display rules from /docs/develop/webapps/build/:
   - 600x600 viewport, 1:1 square
   - Dark/black backgrounds are rendered TRANSPARENT on the additive lens
   - Bright vivid colors are most visible
   - Body text 16+ px, primary content 20-24+ px
   - No scrolling
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 600px;
  height: 600px;
  background: #000;          /* pure black = fully transparent on HUD */
  color: #FFFFFF;
  font-family: 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  user-select: none;
}

#app {
  position: relative;
  width: 600px;
  height: 600px;
}

/* ----- Screen system ----- */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.screen.active { display: flex; }

/* ----- Typography ----- */
.title {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFE066;            /* bright warm yellow — visible on HUD */
  margin-bottom: 32px;
}

.subtitle {
  font-size: 22px;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 48px;
  max-width: 480px;
}

.hint {
  font-size: 20px;
  color: #B3B3B3;
}

.meta {
  font-size: 16px;
  color: #808080;
  margin-top: 16px;
}

.key {
  display: inline-block;
  padding: 2px 10px;
  background: #FFE066;
  color: #000;               /* black text on yellow chip = legible */
  border-radius: 6px;
  font-weight: 700;
  font-size: 18px;
}

/* ----- Walking screen ----- */
.status-bar {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 600;
  color: #FFE066;
}

.walking-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----- Cafe card ----- */
#cafe-screen { padding: 24px; }

.cafe-image {
  max-width: 440px;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 24px;
  /* CSNY illustrations ship as black ink on white paper. On the additive HUD:
     - white pixels render as bright glowing white (the "paper")
     - black pixels are transparent (real world shows through the "ink" lines)
     The result reads as a drawing on bright white paper, with reality bleeding
     through the line work — closer to the original ink-on-paper aesthetic. */
}

.cafe-info {
  text-align: center;
  margin-bottom: 16px;
}

.cafe-name {
  font-size: 36px;
  font-weight: 800;
  color: #FFE066;
  margin-bottom: 8px;
}

.cafe-counter {
  font-size: 20px;
  color: #FFFFFF;
}

/* ----- Map screen ----- */
.map-body {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 8px 0;
}

#leaflet-map {
  width: 560px;
  height: 460px;
  background: #000;
}

/* Hide Leaflet's default attribution + controls — too much chrome for HUD */
.leaflet-control-attribution,
.leaflet-control-zoom {
  display: none !important;
}

/* Cafe pins (Leaflet circleMarker + divIcon labels) */
.cafe-marker-label {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Helvetica Neue', system-ui, sans-serif;
  white-space: nowrap;
  text-shadow: 0 0 4px #000, 0 0 2px #000;
}
.cafe-marker-label.collected { color: #00FF88; }

.user-marker {
  position: relative;
  width: 22px;
  height: 22px;
}
.user-marker::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255,255,255,0.9);
}
.user-marker::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  opacity: 0.6;
  animation: user-pulse 1.4s ease-out infinite;
}
@keyframes user-pulse {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.footer-hint {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 16px;
  color: #808080;
}

/* ----- Collection gallery ----- */
.gallery-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
}

.gallery-image {
  max-width: 420px;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  /* Same additive-HUD behaviour as the cafe card: white paper glows,
     black ink lines go transparent so reality shows through the linework. */
}

.gallery-name {
  font-size: 32px;
  font-weight: 800;
  color: #FFE066;
  margin-bottom: 6px;
}

.gallery-position {
  font-size: 18px;
  color: #FFFFFF;
}

.gallery-empty {
  display: none;
  font-size: 22px;
  line-height: 1.4;
  color: #B3B3B3;
}

.gallery-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}

.gallery-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
}

.gallery-dots .dot.active {
  background: #FFE066;
}

/* Diagnostic strip: shows last input key + collected count.
   Temporary, used to verify Neural Band input on real device. */
.gallery-debug {
  display: block;
  font-size: 12px;
  color: #FFE066;
  margin-bottom: 6px;
  font-family: 'Courier New', monospace;
}

/* ----- Collected confirmation ----- */
.collected-badge {
  font-size: 160px;
  line-height: 1;
  color: #00FF88;            /* bright green = positive feedback */
  font-weight: 800;
  margin-bottom: 16px;
}

.collected-text {
  font-size: 32px;
  color: #00FF88;
  font-weight: 700;
}

/* ----- Error ----- */
.error-icon {
  font-size: 120px;
  color: #FF4D6D;
  font-weight: 800;
  margin-bottom: 24px;
}

.error-text {
  font-size: 24px;
  color: #FFFFFF;
  margin-bottom: 32px;
  max-width: 480px;
}
