:root {
  color-scheme: dark;
  --design-width: 1672;
  --design-height: 941;
  --accent: #ff243b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #020203;
}

body {
  overflow-x: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.site {
  position: relative;
  width: 100vw;
  aspect-ratio: 1672 / 941;
  margin: 0 auto;
  overflow: hidden;
  background: #050506;
}

.layout-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.icon-cover {
  position: absolute;
  z-index: 2;
  background: #09090a;
  pointer-events: none;
  border-radius: 6px;
}
.icon-cover::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 36, 59, .08), rgba(255, 36, 59, .02)),
    linear-gradient(135deg, rgba(255,255,255,.015), transparent 40%);
}
.icon-cover[hidden] { display: none !important; }

.hotspot {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transform: translateZ(0);
}

/*
  Подсветка рисуется ВНУТРИ реальной области кнопки.
  Использование inset box-shadow вместо CSS border исключает сдвиг
  на дробных масштабах экрана.
*/
.hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 36, 59, .045);
  box-shadow:
    inset 0 0 0 2px rgba(255, 48, 68, .92),
    inset 0 0 18px rgba(255, 36, 59, .08),
    0 0 18px rgba(255, 36, 59, .18);
  transition: opacity .16s ease;
}

.hotspot:hover::after,
.hotspot:focus-visible::after {
  opacity: 1;
}

.hotspot:focus-visible { outline: none; }

/* Exact coordinates measured from the 1672 × 941 reference image. */
.social { border-radius: 5px; }
.social-x {
  left: calc(1344 / 1672 * 100%);
  top: calc(14 / 941 * 100%);
  width: calc(50 / 1672 * 100%);
  height: calc(47 / 941 * 100%);
}
.social-telegram {
  left: calc(1406 / 1672 * 100%);
  top: calc(14 / 941 * 100%);
  width: calc(49 / 1672 * 100%);
  height: calc(47 / 941 * 100%);
}
.social-dex {
  left: calc(1468 / 1672 * 100%);
  top: calc(14 / 941 * 100%);
  width: calc(47 / 1672 * 100%);
  height: calc(47 / 941 * 100%);
}
.social-pump {
  left: calc(1526 / 1672 * 100%);
  top: calc(13 / 941 * 100%);
  width: calc(57 / 1672 * 100%);
  height: calc(51 / 941 * 100%);
}

.social-pump {
  left: calc(1526 / 1672 * 100%);
  top: calc(13 / 941 * 100%);
  width: calc(57 / 1672 * 100%);
  height: calc(51 / 941 * 100%);
}

.social-x-cover {
  left: calc(1344 / 1672 * 100%);
  top: calc(14 / 941 * 100%);
  width: calc(50 / 1672 * 100%);
  height: calc(47 / 941 * 100%);
}
.social-telegram-cover {
  left: calc(1406 / 1672 * 100%);
  top: calc(14 / 941 * 100%);
  width: calc(49 / 1672 * 100%);
  height: calc(47 / 941 * 100%);
}
.social-dex-cover {
  left: calc(1468 / 1672 * 100%);
  top: calc(14 / 941 * 100%);
  width: calc(47 / 1672 * 100%);
  height: calc(47 / 941 * 100%);
}
.social-pump-cover {
  left: calc(1526 / 1672 * 100%);
  top: calc(13 / 941 * 100%);
  width: calc(57 / 1672 * 100%);
  height: calc(51 / 941 * 100%);
}

.buy-button {
  left: calc(59 / 1672 * 100%);
  top: calc(382 / 941 * 100%);
  width: calc(232 / 1672 * 100%);
  height: calc(55 / 941 * 100%);
  border-radius: 6px;
}
.copy-button {
  left: calc(304 / 1672 * 100%);
  top: calc(382 / 941 * 100%);
  width: calc(171 / 1672 * 100%);
  height: calc(55 / 941 * 100%);
  border-radius: 6px;
}

.useful-pump {
  left: calc(1316 / 1672 * 100%);
  top: calc(818 / 941 * 100%);
  width: calc(263 / 1672 * 100%);
  height: calc(39 / 941 * 100%);
  border-radius: 4px;
}
.useful-dex {
  left: calc(1316 / 1672 * 100%);
  top: calc(861 / 941 * 100%);
  width: calc(263 / 1672 * 100%);
  height: calc(39 / 941 * 100%);
  border-radius: 4px;
}

.footer-site {
  left: calc(1251 / 1672 * 100%);
  top: calc(900 / 941 * 100%);
  width: calc(119 / 1672 * 100%);
  height: calc(25 / 941 * 100%);
  border-radius: 0;
}
.footer-x {
  left: calc(1390 / 1672 * 100%);
  top: calc(900 / 941 * 100%);
  width: calc(173 / 1672 * 100%);
  height: calc(25 / 941 * 100%);
  border-radius: 0;
}
.footer-site::after,
.footer-x::after {
  background: linear-gradient(180deg, transparent 72%, rgba(255, 36, 59, .26) 72%);
  box-shadow: none;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  color: #fff;
  background: rgba(9, 9, 11, .96);
  border: 1px solid rgba(255, 36, 59, .75);
  box-shadow: 0 0 28px rgba(255, 36, 59, .22);
  font-size: 12px;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-aspect-ratio: 1/1) {
  body { overflow-x: auto; }
  .site {
    width: 1080px;
    min-width: 1080px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot::after,
  .toast { transition: none; }
}
