@font-face {
  font-family: 'BureauGrotesque';
  src: url('./fonts/BureauGrotesque/BureauGrotesque.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'EppoInter';
  src: url('./fonts/Inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'EppoInter';
  src: url('./fonts/Inter/Inter-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'EppoInter';
  src: url('./fonts/Inter/Inter-Thin.woff2') format('woff2');
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: 'EppoInter';
  src: url('./fonts/Inter/Inter-SemiBold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'EppoInter';
  src: url('./fonts/Inter/Inter-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #010709;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'EppoInter', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body::before {
  content: '';
  position: fixed;
  inset: -3vmax;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 28%, rgba(125, 249, 255, 0.12), transparent 34%),
    linear-gradient(rgba(0, 8, 10, 0.58), rgba(0, 0, 0, 0.88)),
    url('./assets/char_select.png') center 45% / cover no-repeat;
  filter: blur(4px) saturate(0.9);
  opacity: 0.68;
  transform: scale(1.04);
}

.shell {
  --arcade-safe-inset: clamp(10px, 2vmin, 30px);
  position: relative;
  width: min(
    calc(100vw - (var(--arcade-safe-inset) * 2)),
    calc((100vh - (var(--arcade-safe-inset) * 2)) * 4 / 3)
  );
  height: min(
    calc(100vh - (var(--arcade-safe-inset) * 2)),
    calc((100vw - (var(--arcade-safe-inset) * 2)) * 3 / 4)
  );
  width: min(
    calc(100dvw - (var(--arcade-safe-inset) * 2)),
    calc((100dvh - (var(--arcade-safe-inset) * 2)) * 4 / 3)
  );
  height: min(
    calc(100dvh - (var(--arcade-safe-inset) * 2)),
    calc((100dvw - (var(--arcade-safe-inset) * 2)) * 3 / 4)
  );
  max-width: calc(100vw - (var(--arcade-safe-inset) * 2));
  max-height: calc(100vh - (var(--arcade-safe-inset) * 2));
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
  image-rendering: auto;
  background: rgba(0, 0, 0, 0.9);
  border: 0;
  outline: 1px solid rgba(125, 249, 255, 0.5);
  box-shadow:
    0 0 0 5px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(125, 249, 255, 0.2);
}

.qr {
  position: absolute;
  box-sizing: border-box;
  left: 50%;
  top: 50%;
  width: 28%;
  aspect-ratio: 1 / 1;
  height: auto;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 2px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.55),
    0 0 0 5px rgba(255, 255, 255, 0.96),
    0 0 0 8px rgba(125, 249, 255, 0.58);
}

.qr.qr--lobby {
  left: 50%;
  top: 51.5%;
  width: 32.25%;
}

.qr.qr--payout {
  left: 50%;
  top: 54%;
  width: 32.25%;
}

.qr.hidden {
  display: none;
}

.qr img,
.qr canvas {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 0;
}

.qr.blurred img,
.qr.blurred canvas {
  filter: blur(14px);
  transform: scale(0.98);
}

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -36px;
  text-align: center;
  color: rgba(222, 246, 245, 0.68);
  font-size: 11px;
  letter-spacing: 0;
  font-family: 'EppoInter', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(125, 249, 255, 0.45);
}
