/* Infinite-zoom home page HUD. Shares tokens with style.css. */
.zoom-page { overflow: hidden; height: 100vh; height: 100dvh; overscroll-behavior: none; touch-action: none; background: #07061a; }
#zoom { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; opacity: 0; transition: opacity 1.2s ease; }
.ready #zoom { opacity: 1; }
.zfx { position: fixed; inset: 0; pointer-events: none; }
.zvig { background: radial-gradient(ellipse at center, transparent 55%, rgba(4, 3, 16, 0.55) 100%); }
.zgrain {
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ztop {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px;
  background: linear-gradient(180deg, rgba(7, 6, 26, 0.75), transparent);
}
.ztop .brand { flex-shrink: 0; }
.zmeter { text-align: center; font-variant-numeric: tabular-nums; line-height: 1.25; }
.zmeter #zmag { display: block; font: 700 15px/1.2 var(--mono); color: var(--ink); letter-spacing: 0.02em; text-shadow: 0 0 12px rgba(54, 227, 255, 0.6); }
.zmeter #zdepth { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.zbtns { display: flex; gap: 8px; flex-shrink: 0; }
.zpill {
  display: inline-flex; align-items: center; gap: 7px; font: 600 13px Inter, system-ui, sans-serif; color: var(--ink-2);
  padding: 8px 13px; border-radius: 999px; background: rgba(22, 18, 50, 0.6); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); cursor: pointer; transition: border-color .2s, color .2s;
}
.zpill:hover { color: var(--ink); border-color: var(--cyan); text-decoration: none; }
.zpill[aria-pressed="true"] { color: #0b0820; background: linear-gradient(135deg, var(--pink), var(--cyan)); border-color: transparent; }
.zpill svg { width: 15px; height: 15px; }

.zrail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: 10px; }
.zrail button {
  position: relative; width: 14px; height: 14px; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); border: 2px solid var(--pc); transition: transform .2s, background .2s, box-shadow .2s;
}
.zrail button:hover, .zrail button:focus-visible { transform: scale(1.35); }
.zrail button[aria-current="true"] { background: var(--pc); box-shadow: 0 0 14px var(--pc); transform: scale(1.3); }
.zrail button span {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
  font: 600 12px Inter, system-ui, sans-serif; color: var(--ink); background: rgba(22, 18, 50, 0.9); border: 1px solid var(--line-2);
  padding: 4px 9px; border-radius: 8px; opacity: 0; transition: opacity .15s;
}
.zrail button:hover span, .zrail button:focus-visible span { opacity: 1; }

.zcard {
  position: fixed; left: 20px; bottom: 20px; z-index: 10; width: min(430px, calc(100vw - 40px));
  padding: 20px 22px 18px; border-radius: 20px; background: rgba(16, 13, 40, 0.72); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--c1, #ff3d8b) 45%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--c1, #ff3d8b) 18%, transparent);
  opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease;
}
.zcard.on { opacity: 1; transform: none; }
.zcard::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c1); box-shadow: 0 0 12px var(--c1); }
.zk { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c1); }
.zcard h1, .zcard h2 { font-size: 26px; font-weight: 800; margin: 8px 0 8px; line-height: 1.15; }
.zcard p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.zstats { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zstats li { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 8px 10px; }
.zstats strong { display: block; font-size: 17px; font-variant-numeric: tabular-nums; color: color-mix(in srgb, #fff 75%, var(--c2)); }
.zstats span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }
.zlinks { display: flex; gap: 8px; flex-wrap: wrap; }
.zbtn {
  display: inline-flex; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #0b0820;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 22px color-mix(in srgb, var(--c1) 40%, transparent);
}
.zbtn:hover { text-decoration: none; filter: brightness(1.1); }
.zbtn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }

.zctl { position: fixed; right: 18px; bottom: 20px; z-index: 10; display: flex; flex-direction: column; gap: 8px; }
.zctl button {
  width: 42px; height: 42px; border-radius: 50%; font: 700 20px/1 Inter, system-ui, sans-serif; color: var(--ink); cursor: pointer;
  background: rgba(22, 18, 50, 0.7); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
}
.zctl button:hover { border-color: var(--cyan); }

@media (max-width: 760px) {
  .ztop { padding: 12px 12px; }
  .ztop .brand-text, .zpill span, .zmeter #zdepth { display: none; }
  .zpill { padding: 8px 10px; }
  .zrail { right: 10px; gap: 8px; }
  .zrail button { width: 12px; height: 12px; }
  .zcard { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 14px 16px 14px; }
  .zcard h1, .zcard h2 { font-size: 20px; }
  .zcard p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .zstats { display: none; }
  .zctl { display: none; }
}
@media (max-height: 560px) { .zstats { display: none; } }
