:root {
  color-scheme: light;
  --ink: #161715;
  --yellow: #f5c400;
  --paper: #f7f5ef;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { overflow: hidden; background: var(--paper); color: var(--ink); }
a { color: inherit; }

.gateway {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}

.artwork {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, calc(100svh * 1.59879032258));
  height: max(100svh, calc(100vw / 1.59879032258));
  aspect-ratio: 1586 / 992;
  overflow: hidden;
  isolation: isolate;
  transform: translate(-50%, -50%);
}

.artwork > img {
  display: block;
  width: 100%;
  height: 100%;
}

.artwork::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(17, 17, 15, 0) 35%,
    rgba(17, 17, 15, .14) 60%,
    rgba(17, 17, 15, .34) 80%,
    rgba(17, 17, 15, .62) 100%);
  box-shadow: inset 0 0 112px rgba(17, 17, 15, .38);
  content: "";
  pointer-events: none;
}

.desktop-choices {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.hotspot {
  position: absolute;
  display: block;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.hotspot::before {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(245, 196, 0, 0);
  content: "";
  pointer-events: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.hotspot--md { top: 22.2%; left: 3.2%; width: 23.8%; height: 11.5%; }
.hotspot--ua { top: 40.3%; left: 3.2%; width: 23.8%; height: 11.5%; }

@media (hover: hover) and (pointer: fine) {
  .hotspot:hover::before {
    border-color: var(--yellow);
    background: rgba(245, 196, 0, .12);
    box-shadow: 0 0 0 4px rgba(245, 196, 0, .18);
  }
}

.hotspot:focus-visible::before,
.hotspot:active::before {
  border-color: var(--yellow);
  background: rgba(245, 196, 0, .16);
  box-shadow: 0 0 0 4px rgba(245, 196, 0, .2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.mobile-choices { display: none; }

@media (min-aspect-ratio: 1.5988/1) {
  .artwork { top: 0; transform: translateX(-50%); }
}

@media (max-aspect-ratio: 1.59879/1) {
  .artwork { left: 0; transform: translateY(-50%); }
}

@media (max-width: 760px) {
  .artwork {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    aspect-ratio: auto;
    transform: none;
  }

  .artwork > img {
    object-fit: cover;
    object-position: 68% 47%;
  }

  .artwork::after {
    background: radial-gradient(ellipse at center,
      rgba(17, 17, 15, .04) 28%,
      rgba(17, 17, 15, .24) 65%,
      rgba(17, 17, 15, .58) 100%);
    box-shadow: inset 0 0 104px rgba(17, 17, 15, .42);
  }

  .gateway::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 15, .08) 20%, rgba(17, 17, 15, 0) 42%, rgba(17, 17, 15, .72) 100%);
    content: "";
    pointer-events: none;
  }

  .desktop-choices { display: none; }

  .mobile-choices {
    position: absolute;
    z-index: 2;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    display: grid;
    gap: 12px;
  }

  .mobile-choice {
    display: grid;
    min-height: 76px;
    grid-template-columns: 52px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 3px;
    background: rgba(247, 245, 239, .94);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
    color: var(--ink);
    text-decoration: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
  }

  .mobile-choice:hover,
  .mobile-choice:focus-visible,
  .mobile-choice:active {
    border-color: var(--yellow);
    outline: none;
    background: rgba(255, 248, 215, .98);
    transform: translateY(-2px);
  }

  .mobile-flag {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: 31px;
    line-height: 1;
  }

  .mobile-code {
    font-size: 31px;
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1;
  }

  .mobile-arrow { width: 32px; height: 32px; }
  .mobile-arrow path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
}

@media (max-width: 380px) {
  .mobile-choices { gap: 9px; }
  .mobile-choice { min-height: 70px; grid-template-columns: 46px minmax(0, 1fr) 38px; gap: 8px; padding: 10px 14px; }
  .mobile-flag { font-size: 28px; }
  .mobile-code { font-size: 28px; }
  .mobile-arrow { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
