:root {
  --qr-bg: #0b0c0f;
  --qr-fg: #f2f0ea;
  --qr-accent: #d8a24a;
  --qr-muted: #9a978e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--qr-bg);
  color: var(--qr-fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.qr-page { max-width: 640px; margin: 0 auto; padding: 16px; }
.qr-header h1 { font-size: 22px; margin: 0 0 4px; }
.qr-year, .qr-address { color: var(--qr-muted); margin: 0 0 2px; font-size: 14px; }
.qr-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}
.qr-fallback-photo, .qr-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.qr-ar-btn, .qr-rescan-btn {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: var(--qr-accent); color: #1a1204; border: none;
  padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.qr-hint {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.55); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px;
}
.qr-debug, .qr-debug-live {
  position: absolute; left: 8px;
  background: rgba(0,0,0,0.7); color: #7cff7c;
  padding: 6px 8px; border-radius: 6px; font-size: 11px; line-height: 1.4;
  margin: 0; white-space: pre; z-index: 10; max-width: 70%; overflow: auto;
  pointer-events: none;
}
.qr-debug-live { top: 8px; color: #ffd97c; max-height: 90px; }
.qr-debug { bottom: 8px; max-height: 140px; }
.qr-portal {
  position: absolute; top: 0; left: 0;
  width: 260px; height: 200px;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform;
}
.qr-portal--circle { border-radius: 50%; }
.qr-portal-photo {
  position: absolute;
  left: -20%; top: -20%;
  width: 140%; height: 140%;
  object-fit: cover;
  will-change: transform;
}
.qr-desc { line-height: 1.5; color: var(--qr-fg); }

.qr-map-page {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, #efe3c8 0%, #e3d3ac 100%);
  overflow: hidden;
}
#qrMapCanvas { position: absolute; inset: 0; cursor: crosshair; }

.admin-body { background: #14151a; color: #eee; font-family: sans-serif; padding: 24px; }
.admin-login, .admin-edit { max-width: 420px; margin: 40px auto; }
.admin-field { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-field input, .admin-field textarea { padding: 8px; border-radius: 6px; border: 1px solid #444; background: #1e1f24; color: #fff; }
.admin-btn { background: #d8a24a; color: #1a1204; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; }
.admin-btn-danger { background: #b3413a; color: #fff; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.admin-error { background: #4a1f1f; color: #ffb3b3; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px; border-bottom: 1px solid #333; }
.admin-thumb { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
