:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --acid: #d8ff63;
  --gold-pale: #d8ff63;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #050505; }
[hidden] { display: none !important; }
.ar-container { position: fixed; inset: 0; overflow: hidden; background: transparent; }
.ar-container > video {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 0 !important;
}
.ar-container a-scene {
  position: absolute !important;
  z-index: 1 !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}
.ar-container canvas { background: transparent !important; }
.a-enter-vr, .a-orientation-modal, .mindar-ui-overlay { display: none !important; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
.scanner-header {
  position: fixed; z-index: 20; top: max(16px, env(safe-area-inset-top)); right: 16px; left: 16px;
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 10px;
}
.icon-button {
  display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; background: rgba(17,16,15,.76); backdrop-filter: blur(12px);
  color: #fff; text-decoration: none; cursor: pointer; font-size: 20px;
}
.scanner-status {
  justify-self: center; display: inline-flex; min-height: 42px; align-items: center; gap: 9px;
  padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  background: rgba(17,16,15,.76); backdrop-filter: blur(12px); font-size: 13px; font-weight: 750;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.status-dot.live { background: var(--acid); box-shadow: 0 0 0 5px rgba(216,255,99,.16); }
.scan-guide {
  position: fixed; z-index: 18; top: 22%; right: 10%; bottom: 24%; left: 10%;
  max-width: 560px; margin: auto; pointer-events: none; transition: opacity 180ms ease;
}
.scan-guide.detected { opacity: 0; }
.corner { position: absolute; width: 54px; height: 54px; border-color: rgba(255,255,255,.9); border-style: solid; }
.corner-tl { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 18px 0 0; }
.corner-tr { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 18px 0 0; }
.corner-bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 18px; }
.corner-br { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-radius: 0 0 18px; }
.scan-hint, .detected-artwork {
  position: fixed; z-index: 20; right: 18px; bottom: max(24px, env(safe-area-inset-bottom)); left: 18px;
  max-width: 520px; margin: auto; border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; background: rgba(17,16,15,.82); backdrop-filter: blur(16px);
}
.scan-hint { display: grid; gap: 5px; padding: 16px 18px; text-align: center; }
.scan-hint span { color: #ccc7be; font-size: 13px; }
.detected-artwork { display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; padding: 15px 16px; }
.detected-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.detected-heading > div { display: grid; gap: 4px; }
.detected-label, .eyebrow { color: var(--acid); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.live-badge { padding: 7px 10px; border-radius: 999px; background: var(--acid); color: #141510; font-size: 12px; font-weight: 800; }
.artwork-experience-content { display: grid; gap: 8px; color: #e4dfd7; font-size: 13px; line-height: 1.45; }
.artwork-description, .artwork-experience-content details p { margin: 0; }
.artwork-experience-content details { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); }
.artwork-experience-content summary { cursor: pointer; color: var(--acid); font-weight: 750; }
.artwork-experience-content details p { padding-top: 8px; color: #ccc7be; }
.artwork-experience-content audio { width: 100%; }
.artwork-media-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.media-button { min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.start-panel, .error-panel {
  position: fixed; z-index: 30; inset: 0; display: grid; align-content: center; justify-items: center;
  padding: 28px; background: radial-gradient(circle at 50% 35%, #292d1e, #0d0c0b 55%); text-align: center;
}
.start-mark { display: grid; width: 64px; height: 64px; margin-bottom: 30px; place-items: center; border: 1px solid var(--acid); border-radius: 50%; color: var(--gold-pale); font-family: Georgia, serif; font-weight: 400; }
.start-panel h1, .error-panel strong, dialog h2 { max-width: 520px; margin: 8px 0 14px; font-family: Georgia, serif; font-size: clamp(38px, 10vw, 68px); font-weight: 400; line-height: .98; }
.start-panel > p:not(.eyebrow), .error-panel span { max-width: 420px; margin: 0 0 28px; color: #c8c3bb; font-size: 16px; line-height: 1.5; }
.primary-button {
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--acid); color: #151611; cursor: pointer; font-weight: 800;
}
.primary-button:disabled { opacity: .6; }
.back-link { margin-top: 20px; color: #fff; font-size: 14px; }
.error-panel strong { font-size: 38px; }
dialog { width: min(calc(100% - 32px), 460px); padding: 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: #1b1917; color: #fff; }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
dialog h2 { font-size: 38px; }
dialog ol { display: grid; gap: 14px; margin: 24px 0; padding-left: 22px; color: #d6d1c9; line-height: 1.45; }
dialog .primary-button { width: 100%; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: transparent; color: #fff; font-size: 22px; }
