* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font: 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #c9d6ee; -webkit-user-select: none; user-select: none; }
canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; cursor: pointer; }
.overlay { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 14px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  pointer-events: none; transition: opacity .6s ease; }
.overlay.hidden { opacity: 0; }
.where { min-width: 0; max-width: 60%; text-shadow: 0 1px 3px #000; }
#place { font-weight: 600; color: #e6edf9; overflow-wrap: anywhere; }
#when { opacity: .8; font-variant-numeric: tabular-nums; }
#event { margin-top: 2px; color: #9fc2ff; opacity: .9; }
#note { margin-top: 4px; color: #f2c97a; opacity: .9; }
.pair { display: flex; align-items: center; gap: 10px; text-align: right; }
#qr { width: 64px; height: 64px; background: #fff; border-radius: 6px; padding: 2px; opacity: .85; flex: none; }
#qr svg { width: 100%; height: 100%; display: block; }
.label { font-size: 11px; opacity: .7; }
.code { font: 600 20px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: #fff; }
.url { font-size: 11px; opacity: .7; }
.hint { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #c9d6ee; pointer-events: none; transition: opacity .6s ease; }
.hint.gone { opacity: 0; }
@media (max-width: 420px) { .pair .label, .pair .url { display: none; } #qr { width: 52px; height: 52px; } }
