:root { --mag: #e3207b; --gap: 0.55vmin; --radius: 0.9vmin; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #07080b; color: #fff; cursor: none; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bg { position: fixed; inset: -20%; background:
  radial-gradient(40% 40% at 20% 30%, rgba(227,32,123,.22), transparent 70%),
  radial-gradient(35% 35% at 80% 70%, rgba(120,40,220,.18), transparent 70%),
  radial-gradient(30% 30% at 60% 20%, rgba(0,170,255,.10), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6%, -4%) rotate(8deg); } }

.grid { position: fixed; inset: 0; display: grid; gap: var(--gap); padding: var(--gap); transition: filter 1s ease, transform 1.2s ease; }
.grid.dim { filter: brightness(.35) saturate(.7) blur(2px); transform: scale(.985); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: #12151b; box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset; }
.tile > .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.tile > .layer.in { opacity: 1; }
.tile.hot { visibility: hidden; }
.tile .vbadge { position: absolute; left: .8vmin; bottom: .8vmin; width: 3.2vmin; height: 3.2vmin; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; font-size: 1.5vmin; z-index: 2; }

.backdrop { position: fixed; inset: 0; opacity: 0; pointer-events: none; background-size: cover; background-position: center; z-index: 5; }
.backdrop::before { content: ""; position: absolute; inset: -60px; background: inherit; filter: blur(60px) brightness(.45) saturate(1.3); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.1), rgba(0,0,0,.65)); }

.zoom { position: fixed; z-index: 10; overflow: hidden; border-radius: var(--radius); background: #000;
  box-shadow: 0 0 0 .25vmin rgba(227,32,123,.95), 0 0 5vmin rgba(227,32,123,.55), 0 2vmin 8vmin rgba(0,0,0,.8); will-change: left, top, width, height; }
.zoom > img, .zoom > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.zoom > video { opacity: 0; transition: opacity .5s ease; }
.zoom > video.on { opacity: 1; }
.zoom.kb > img { animation: kb 12s ease-out forwards; }
@keyframes kb { to { transform: scale(1.045); } }
.byline { position: fixed; z-index: 11; left: 50%; transform: translate(-50%, 1vmin); bottom: 2.2vmin; padding: .9vmin 2.2vmin; border-radius: 4vmin;
  background: rgba(10,10,14,.72); backdrop-filter: blur(8px); font-size: 2.4vmin; font-weight: 700; letter-spacing: .02em; opacity: 0; transition: opacity .6s ease, transform .6s ease; white-space: nowrap; }
.byline.on { opacity: 1; transform: translate(-50%, 0); }
.byline b { color: #ff6fae; }

.brand { position: fixed; z-index: 20; right: 1.6vmin; bottom: 1.6vmin; display: flex; align-items: center; gap: 1.4vmin; padding: 1.2vmin 1.8vmin 1.2vmin 1.2vmin;
  background: rgba(12,12,16,.86); border-radius: 2vmin; backdrop-filter: blur(10px);
  box-shadow: 0 0 0 .2vmin rgba(227,32,123,.85), 0 0 3.5vmin rgba(227,32,123,.45); animation: glow 3.5s ease-in-out infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 0 .2vmin rgba(227,32,123,1), 0 0 6vmin rgba(227,32,123,.7); } }
.brand .qr { width: 15vmin; height: 15vmin; background: #fff; border-radius: 1vmin; padding: .6vmin; }
.brand .qr svg, .eqr svg { width: 100%; height: 100%; display: block; }
.btxt { display: flex; flex-direction: column; align-items: center; gap: .8vmin; width: 15vmin; text-align: center; }
.blogo { width: 7.5vmin; filter: drop-shadow(0 0 1.2vmin rgba(227,32,123,.6)); }
.btxt span { font-size: 2.1vmin; line-height: 1.15; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }

.empty { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2vmin; }
.empty h1 { margin: 0; font-size: 9vmin; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.empty h1 span { color: var(--mag); text-shadow: 0 0 4vmin rgba(227,32,123,.7); }
.empty p { margin: 0; font-size: 3vmin; color: #c9cdd6; }
.elogo { width: 18vmin; filter: drop-shadow(0 0 4vmin rgba(227,32,123,.6)); }
.eqr { width: 32vmin; height: 32vmin; background: #fff; border-radius: 2vmin; padding: 1.2vmin; box-shadow: 0 0 6vmin rgba(227,32,123,.6); }
body.is-empty .brand, body.is-empty .grid { display: none; }
[hidden] { display: none !important; }
