:root {
  --ink: #f2f5fa;
  --accent: #ffb454;
  --accent-2: #4fd0e3;
  --target: #ffd166;
  --panel: rgba(14, 17, 22, 0.82);
  --mono: "Cinzel", "Trajan Pro", Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }   /* make the hidden attribute win over display:grid/flex */
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #05070a; color: var(--ink);
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
#cam {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #05070a; z-index: 0;
}

/* wrist statue stage — a small transparent 3D canvas moved to the wrist */
.stage {
  position: fixed; top: 0; left: 0;
  width: 200px; height: 240px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 10; pointer-events: none;
  will-change: transform;
}
.stage canvas { width: 100%; height: 100%; display: block; }

.find-wrist {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 9; background: var(--panel); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 12px 18px; font-size: 14px; text-align: center;
}

.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  background: linear-gradient(180deg, rgba(5,7,10,.7), transparent);
}
.back { color: var(--ink); text-decoration: none; font-size: 14px; opacity: .9; }
.bar-mid { font-size: 11px; color: #9fb0c2; }

.info {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(env(safe-area-inset-bottom) + 14px);
  background: linear-gradient(0deg, rgba(5,7,10,.85), transparent); text-align: center;
}
.info-dir { font-size: 13px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.info-target { font-size: 18px; margin: 3px 0; }
.info-sub { font-size: 12px; color: #9fb0c2; }

.btn {
  font-family: var(--mono); cursor: pointer;
  background: var(--accent); color: #241706; border: none;
  border-radius: 10px; padding: 14px 30px; font-size: 16px; font-weight: 600;
}
.btn.big { padding: 15px 34px; font-size: 17px; }

.start {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 50% -10%, #16202c 0%, transparent 60%), #0a0d12;
}
.start-card { max-width: 430px; text-align: center; }
.start .mark { font-size: 46px; }
.start h1 { margin: 8px 0 14px; font-size: 26px; font-family: "Iowan Old Style", Palatino, Georgia, serif; }
.start h1 span { color: var(--accent); }
.start p { color: #c2ccd8; font-size: 14px; line-height: 1.55; }
.start .fine { font-size: 11px; color: #7f8d9a; margin-top: 14px; }
.start .link { display: inline-block; color: var(--accent-2); text-decoration: none; }
.start .btn { margin-top: 18px; }

.disclaimer {
  position: fixed; z-index: 55;
  left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 46px);
  margin: 0 auto; max-width: 460px;
  background: rgba(120, 26, 26, 0.9); border: 1px solid #e0736d;
  color: #ffe2e0; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; text-align: center; line-height: 1.4;
}
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px);
  transform: translateX(-50%); z-index: 60;
  background: var(--panel); border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px; padding: 10px 16px; font-size: 13px; max-width: 88vw; text-align: center;
}
