:root {
  color-scheme: dark;
  --ink: #f5f1e7;
  --ember: #ff3e21;
  --gold: #ffd45a;
  --black: #030303;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(107, 184, 255, 0.32), transparent 34%),
    linear-gradient(180deg, #89d6ff 0%, #256cb5 50%, #07111e 100%);
  color: var(--ink);
  font-family: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

body {
  display: grid;
  place-items: center;
}

.shell {
  position: relative;
  width: min(100vw, 56.25vh);
  height: min(177.7778vw, 100vh);
  overflow: hidden;
  background: #030303;
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.2),
    0 26px 90px rgba(0, 0, 0, 0.7);
  transform-origin: center center;
  animation: opening-zoom 2s cubic-bezier(.18, .82, .18, 1) both;
}

#game {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.ig-backdrop {
  position: absolute;
  z-index: 0;
  left: 3.2407%;
  top: 44.2708%;
  width: 93.5185%;
  height: 52.6042%;
  overflow: hidden;
  background:
    radial-gradient(circle at 23% 18%, rgba(255, 255, 255, 0.86) 0 4%, transparent 12%),
    radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.74) 0 5%, transparent 15%),
    linear-gradient(180deg, #8bdcff 0%, #45a9ed 48%, #1971c7 100%);
}

.toast {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  max-width: 78%;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff9e9;
  font-size: clamp(14px, 3.8vw, 24px);
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@keyframes opening-zoom {
  0% {
    transform: scale(0.82);
    filter: saturate(0.7) brightness(0.72);
  }
  100% {
    transform: scale(1);
    filter: saturate(1) brightness(1);
  }
}
