:root { --purple: #6b4ead; }

* { box-sizing: border-box; }

html { background: #000; }

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
}

.layout {
  position: relative;
  width: min(100%, 810px);
  aspect-ratio: 1080 / 2000;
  margin: 0 auto;
  background: #000;
}

#layout-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#hero-video {
  position: absolute;
  z-index: 1;
  left: 11.7%;
  top: 1.15%;
  width: 76.9%;
  height: 23.55%;
  border-radius: clamp(26px, 6vw, 48px);
  clip-path: inset(0 round clamp(26px, 6vw, 48px));
  object-fit: cover;
  overflow: hidden;
  transform: translateZ(0);
}

.loop-window {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: #000;
}

.loop-window video {
  position: absolute;
  left: -25%;
  top: 0;
  width: 150%;
  height: 100%;
  object-fit: fill;
}

.surroundings-window {
  left: 8.5%;
  top: 43.8%;
  width: 20.5%;
  height: 17.7%;
}

.damage-window {
  left: 69.8%;
  top: 43.8%;
  width: 20.7%;
  height: 18.1%;
}

.prayer-window {
  left: 8.2%;
  top: 63.2%;
  width: 21.5%;
  height: 18.4%;
}

.neighborhood-window {
  left: 69.5%;
  top: 63.2%;
  width: 21.3%;
  height: 18.4%;
}

.sound-dot {
  position: absolute;
  z-index: 3;
  top: 2.05%;
  right: 12.7%;
  display: grid;
  place-items: center;
  width: clamp(23px, 4.1vw, 32px);
  height: clamp(23px, 4.1vw, 32px);
  padding: 0;
  border: 1.5px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 1px 5px rgba(0,0,0,.55);
  cursor: pointer;
}

.sound-dot svg {
  width: 56%;
  height: 56%;
  fill: #f7f3ff;
}

.sound-dot[aria-pressed="true"] svg { fill: #d8c9ff; }

.hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 999px;
}

.hotspot:focus-visible, .sound-dot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.usdt { left: 39%; top: 49.7%; width: 22%; height: 3.2%; }
.ethereum { left: 39%; top: 55.4%; width: 22%; height: 3.2%; }
.tiktok { left: 39%; top: 67.2%; width: 22%; height: 3.2%; }
.telegram { left: 38.4%; top: 72.3%; width: 23.2%; height: 3.2%; }
.instagram { left: 38%; top: 77.45%; width: 24%; height: 3.2%; }
.verified { left: 21.5%; top: 84.05%; width: 58%; height: 5.2%; border-radius: 0; }
.back { left: 38.1%; top: 89.15%; width: 24.7%; height: 4.6%; }

.wallet-card {
  position: fixed;
  z-index: 10;
  inset: 50% auto auto 50%;
  width: min(92vw, 560px);
  max-height: 92vh;
  overflow: auto;
  padding: 18px;
  border: 7px solid var(--purple);
  border-radius: 26px;
  background: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -48%) scale(.97);
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.82);
}

.wallet-card:target {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.wallet-card img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 7px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  text-decoration: none;
  font: 700 34px/32px Arial, sans-serif;
}

.copy-address {
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--purple);
  color: #fff;
  font: 800 15px Arial, sans-serif;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .wallet-card { transition: none; }
}
