:root {
  --accent: #6ee7b7;
  --accent-dark: #34d399;
  --bg: #0a0a12;
  --fog: #0a0a12;
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: #fff;
}

#canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 1;
  touch-action: none;
}

/* Loading */
#loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a12 70%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-inner {
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-inner p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

/* HUD */
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hud-header {
  position: absolute;
  top: 24px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.subtitle {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.hint kbd {
  display: inline-block;
  padding: 2px 7px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 11px;
  font-family: inherit;
}

.booth-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 40px));
  padding: 6px 16px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.hidden {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

/* Product Panel */
.product-panel {
  position: fixed;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  width: 340px;
  padding: 28px;
  background: rgba(15, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  z-index: 20;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-panel:not(.hidden) {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.product-panel.hidden {
  opacity: 0;
  transform: translateY(-50%) translateX(20px);
}

.panel-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.panel-close:hover {
  color: #fff;
}

.panel-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

#panel-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

#panel-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.panel-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.panel-meta span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 13px;
}

#panel-price {
  color: #fbbf24;
  font-weight: 600;
}

.panel-action {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: 8px;
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.panel-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Promo LED screen — projected HTML overlay (YouTube iframe) */
.promo-video-overlay {
  position: fixed;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
}

.promo-video-overlay__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0c0c14;
}

.promo-video-overlay__iframe {
  display: block;
  border: none;
  pointer-events: auto;
  background: #000;
}

.promo-video-overlay__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: none;
  background: linear-gradient(180deg, #14141e 0%, #0a0a12 100%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s;
}

.promo-video-overlay__fallback:hover {
  background: linear-gradient(180deg, #1c1c2a 0%, #101018 100%);
}

.promo-video-overlay__fallback-icon {
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}
