:root {
  color-scheme: dark;
  --forest: #132319;
  --moss: #34543d;
  --leaf: #9bbf78;
  --paper: #f4eedf;
  --ink: #172019;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  background: var(--forest);
  color: var(--paper);
}
button, a { font: inherit; }
#experience {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
/* MindAR measures this parent and sizes camera video and projection together.
   Keep its calculated video width/height rather than stretching the video. */
#experience > video { z-index: 0 !important; }
a-scene {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}
.panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 15% 10%, rgba(155,191,120,.23), transparent 34%),
    linear-gradient(150deg, #1e3425, #0c1510 72%);
}
.panel[hidden], .hud[hidden] { display: none; }
.card {
  width: min(100%, 430px);
  max-height: 100%;
  overflow: auto;
  padding: 30px 26px;
  border: 1px solid rgba(244,238,223,.24);
  border-radius: 28px;
  background: rgba(244,238,223,.96);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.eyebrow {
  margin: 0 0 10px;
  color: #587044;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
}
h1, h2 { margin: 0 0 14px; line-height: 1.03; }
h1 { font-size: clamp(2.1rem, 9vw, 3.25rem); }
h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
p, li { line-height: 1.45; }
ol { padding-left: 22px; margin: 22px 0; }
button {
  width: 100%;
  min-height: 54px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
button:disabled { opacity: .42; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 3px solid #e0a83c; outline-offset: 3px; }
.secondary {
  margin-top: 10px;
  border: 1px solid currentColor;
  background: transparent;
}
.status { min-height: 1.45em; text-align: center; font-size: .86rem; color: #566158; }
.target-link {
  display: block;
  margin-top: 14px;
  color: #315b39;
  text-align: center;
  font-weight: 750;
}
.hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
}
.top-copy {
  width: min(100%, 440px);
  margin: auto;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(10,18,13,.76);
  backdrop-filter: blur(12px);
  text-align: center;
}
.top-copy p { margin: 0 0 3px; font-weight: 850; }
.top-copy span { color: #d7e7c8; font-size: .87rem; }
.finder {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 320px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.finder span { position: absolute; width: 54px; height: 54px; border-color: white; border-style: solid; }
.finder span:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 18px 0 0; }
.finder span:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 18px 0 0; }
.finder span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 18px; }
.finder span:nth-child(4) { bottom: 0; right: 0; border-width: 0 4px 4px 0; border-radius: 0 0 18px; }
.confirm, .hud > .secondary {
  position: absolute;
  left: 50%;
  width: min(calc(100% - 36px), 400px);
  transform: translateX(-50%);
  pointer-events: auto;
}
.confirm { bottom: calc(86px + env(safe-area-inset-bottom)); background: #edf3dc; color: #142219; }
.hud > .secondary { bottom: calc(20px + env(safe-area-inset-bottom)); background: rgba(10,18,13,.78); color: white; }
.success-card { text-align: center; }
.success-character { display: block; width: min(52%, 190px); margin: -8px auto 12px; }
