/* ===================================================================
   TAZRIRT tent - "View it in your space" (AR). Same colours and fonts
   as the tent builder (tzt.css). 2026-11-04.
   =================================================================== */
.tza-entry, .tza-dlg {
  --cream: #FAF7F2; --sand: #EFE3D3; --terracotta: #98452F; --terra-dark: #7D3A26;
  --dark: #241F1A; --ink: #3B332B; --muted: #5A5045; --line: #E4D8C8; --ok: #2F6B3F;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  font-family: var(--font-body); color: var(--ink);
}
.tza-entry { margin: 4px 0 6px; }
.tza-entry .tza-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 18px; border: 1.5px solid var(--terracotta); border-radius: 4px; background: #FFFFFF; color: var(--terracotta); font-family: var(--font-body); transition: background .15s ease, color .15s ease; }
.tza-entry .tza-btn:hover { background: var(--cream); color: var(--terra-dark); }
.tza-entry .tza-btn:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; }
.tza-btn__ic { flex: 0 0 auto; width: 30px; height: 30px; }
.tza-btn__txt { display: flex; flex-direction: column; gap: 2px; text-align: left; line-height: 1.25; }
.tza-btn__txt b { font-weight: 600; font-size: 16px; }
.tza-btn__txt small { font-size: 12.5px; color: var(--muted); }
.tza-btn__new { margin-left: auto; flex: 0 0 auto; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #FFFFFF; background: var(--terracotta); border-radius: 999px; padding: 3px 9px; }

.tzt .tza-tool { font-weight: 600; }

/* the window */
html.tza-lock, html.tza-lock body { overflow: hidden; }
.tza-dlg { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; }
.tza-dlg[hidden] { display: none; }
.tza-dlg *, .tza-dlg *::before, .tza-dlg *::after { box-sizing: border-box; }
.tza-dlg__bg { position: absolute; inset: 0; background: rgba(36, 31, 26, .62); }
.tza-dlg__box { position: relative; display: flex; flex-direction: column; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); background: var(--cream); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.tza-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.tza-head p, .tza-head h2 { margin: 0; }
.tza-eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.tza-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--dark); }
.tza-sub { margin-top: 4px !important; font-size: 14px; color: var(--muted); }
.tza-x { all: unset; cursor: pointer; flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--dark); }
.tza-x:hover { background: var(--sand); }
.tza-x:focus-visible { outline: 3px solid var(--dark); }
.tza-modes { display: flex; gap: 6px; padding: 0 20px 12px; flex-wrap: wrap; }
.tza-modes button { all: unset; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; font-family: var(--font-body); font-size: 14px; color: var(--ink); }
.tza-modes button[hidden] { display: none; }
.tza-modes button[aria-checked="true"] { background: var(--dark); border-color: var(--dark); color: #FFFFFF; }
.tza-modes button:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.tza-stage { position: relative; flex: 1 1 auto; min-height: 300px; height: 52vh; height: 52dvh; background: linear-gradient(180deg, #F1E9DD 0%, #E6D8C3 100%); }
.tza-stage model-viewer { width: 100%; height: 100%; display: block; background: transparent; --poster-color: transparent; --progress-bar-color: transparent; }
.tza-hidden { display: none !important; }
.tza-load { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: var(--muted); background: linear-gradient(180deg, #F1E9DD 0%, #E6D8C3 100%); text-align: center; padding: 16px; }
.tza-load[hidden] { display: none; }
.tza-spin { width: 34px; height: 34px; border: 3px solid rgba(152, 69, 47, .2); border-top-color: var(--terracotta); border-radius: 50%; animation: tza-spin .9s linear infinite; }
@keyframes tza-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tza-spin { animation-duration: 3s; } }
.tza-hs { pointer-events: none; background: rgba(36, 31, 26, .86); color: #FFFFFF; font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; transform: translateY(-50%); }
.tza-foot { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.tza-foot p { margin: 0; }
.tza-go[hidden], .tza-qr[hidden], .tza-note[hidden] { display: none; }
.tza-go { display: flex; flex-direction: column; gap: 8px; }
.tza-cam { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px; border-radius: 4px; background: var(--terracotta); color: #FFFFFF; font-family: var(--font-body); font-weight: 600; font-size: 17px; }
.tza-cam:hover { background: var(--terra-dark); }
.tza-cam:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; }
.tza-cam svg { width: 26px; height: 26px; }
.tza-help { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tza-qr { display: flex; gap: 16px; align-items: center; padding: 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; line-height: 1.5; }
.tza-qr__code { flex: 0 0 auto; width: 132px; height: 132px; }
.tza-qr__code svg { width: 100%; height: 100%; display: block; }
.tza-qr__t { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--dark); margin-bottom: 2px !important; }
.tza-note { padding: 12px 14px; background: #FFFFFF; border: 1px solid var(--line); border-left: 3px solid var(--terracotta); border-radius: 4px; font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.tza-link-btn { all: unset; cursor: pointer; display: inline-block; margin: 0 8px 0 0; padding: 7px 14px; border: 1px solid var(--terracotta); border-radius: 4px; color: var(--terracotta); font-family: var(--font-body); font-weight: 600; font-size: 14px; }
.tza-link-btn:hover { background: var(--cream); }
.tza-fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tza-fine a { color: var(--terracotta); text-decoration: underline; }

@media (max-width: 640px) {
  .tza-dlg__box { width: 100vw; max-height: none; height: 100%; border-radius: 0; }
  .tza-head { padding: max(14px, env(safe-area-inset-top, 0px)) 16px 8px; }
  .tza-title { font-size: 26px; }
  .tza-modes { padding: 0 16px 10px; }
  .tza-stage { height: auto; min-height: 0; }
  .tza-foot { flex: 0 0 auto; padding: 12px 16px max(16px, env(safe-area-inset-bottom, 0px)); }
  .tza-btn__new { display: none; }
}

/* Steps shown before the camera opens (2026-11-04) */
.tza-dlg [hidden] { display: none !important; }
.tza-howto { all: unset; cursor: pointer; color: var(--terracotta); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tza-howto:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.tza-guide { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.tza-guide p, .tza-guide h3, .tza-guide ol { margin: 0; }
.tza-guide__head { display: flex; flex-direction: column; gap: 4px; }
.tza-guide__t { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--dark); }
.tza-guide__time { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.tza-guide__time span { padding: 4px 10px; background: var(--sand); border-radius: 999px; }
.tza-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tza-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 6px; }
.tza-steps__ic { position: relative; flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; color: var(--terracotta); background: var(--cream); border-radius: 50%; }
.tza-steps__ic svg { width: 34px; height: 34px; }
.tza-steps__ic i { position: absolute; top: -4px; left: -4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--terracotta); color: #FFFFFF; font-style: normal; font-size: 12px; font-weight: 700; }
.tza-steps b { display: block; font-size: 15.5px; color: var(--dark); margin-bottom: 2px; }
.tza-steps p { font-size: 14px; line-height: 1.5; color: var(--ink); }
.tza-steps p b { display: inline; font-size: inherit; margin: 0; }
.tza-guide__tips { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-left: 3px solid var(--terracotta); background: #FFFFFF; border-radius: 4px; font-size: 13.5px; line-height: 1.5; }
.tza-guide__go { display: flex; flex-direction: column; gap: 10px; position: sticky; bottom: -18px; padding: 12px 0 4px; background: var(--cream); }
.tza-skip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.tza-skip input { width: 18px; height: 18px; accent-color: var(--terracotta); }
.tza-back { all: unset; cursor: pointer; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--font-body); font-size: 14px; color: var(--ink); background: #FFFFFF; }
.tza-back:hover { background: var(--sand); }
.tza-back:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; }
@media (max-width: 640px) {
  .tza-guide { padding: 2px 16px max(16px, env(safe-area-inset-bottom, 0px)); }
  .tza-guide__t { font-size: 21px; }
  .tza-steps li { padding: 10px; gap: 12px; }
  .tza-steps__ic { width: 44px; height: 44px; }
  .tza-steps__ic svg { width: 28px; height: 28px; }
}
