:root {
  --bg: #03080e;
  --cyan: #5ce1ff;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
  color: var(--cyan);
  touch-action: none;
}

.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    #00000022 3px 4px
  );
  z-index: 2;
}

.grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(#5ce1ff22 1px, transparent 1px),
    linear-gradient(90deg, #5ce1ff22 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 18%, transparent 72%);
  z-index: 1;
}

.holo-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(120% 70% at 50% 92%, #0a3a4888, transparent 55%),
    radial-gradient(80% 50% at 50% 20%, #08304055, transparent 60%),
    var(--bg);
}

#holo {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.holo-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  text-align: center;
  color: var(--cyan);
  font-family: Consolas, "Cascadia Mono", monospace;
  letter-spacing: 0.28em;
  font-size: 11px;
  opacity: 0.55;
  pointer-events: none;
}

#subs {
  position: fixed;
  left: 50%;
  bottom: 158px;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 0 18px;
  max-width: min(42rem, 86vw);
  text-align: center;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: clamp(15px, 2.3vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #d4f6ff;
  text-shadow: 0 0 14px #5ce1ffaa, 0 0 2px #031018;
  pointer-events: none;
}

#dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  touch-action: manipulation;
}

#qr {
  width: 92px;
  height: 92px;
  padding: 4px;
  background: #03080e;
  box-shadow: 0 0 16px #5ce1ff44;
  line-height: 0;
}

#qr img,
#qr canvas,
#qr table {
  display: block;
  width: 92px !important;
  height: 92px !important;
}

#pin {
  margin: 0;
  padding: 0;
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 500;
  letter-spacing: 0.62em;
  color: var(--cyan);
  opacity: 0.72;
  text-shadow: 0 0 14px #5ce1ff99, 0 0 2px #fff8;
  user-select: text;
  -webkit-user-select: text;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
