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

@font-face {
  font-family: HeroUi;
  src: url("../memory/fonts/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --gold: #f7b733;
  --orange: #f36c21;
  --green: #7dff6a;
  --cyan: #54d9ff;
  --ink: #050607;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(247, 183, 51, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 217, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(247, 183, 51, 0.18), transparent 38%),
    #030506;
  background-size: 32px 32px, 32px 32px, cover, cover;
  color: #fff8dc;
  font-family: HeroUi, Arial, sans-serif;
}

.shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, transparent 54%, rgba(0, 0, 0, 0.52));
}

canvas {
  width: min(100vw, calc(100vh * 4 / 3));
  height: min(100vh, calc(100vw * 3 / 4));
  image-rendering: pixelated;
  background: #050607;
  box-shadow:
    0 0 0 2px rgba(247, 183, 51, 0.34),
    0 0 36px rgba(247, 183, 51, 0.22),
    0 0 80px rgba(84, 217, 255, 0.14);
}

.gameboy-frame {
  position: relative;
  width: min(100vw, calc(100vh * 160 / 144));
  height: min(100vh, calc(100vw * 144 / 160));
  background: #050607;
  image-rendering: pixelated;
  box-shadow:
    0 0 0 2px rgba(247, 183, 51, 0.34),
    0 0 36px rgba(247, 183, 51, 0.22),
    0 0 80px rgba(84, 217, 255, 0.14);
}

.gameboy-frame canvas,
.gameboy-frame video {
  image-rendering: pixelated;
}

.hidden {
  display: none !important;
}

.qr {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 8;
  padding: 10px;
  border: 2px solid var(--gold);
  background: #fff;
  box-shadow: 0 0 30px rgba(247, 183, 51, 0.5);
}

.lightning-modal {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.78);
}

.lightning-modal__panel {
  width: min(430px, calc(100vw - 32px));
  padding: 22px;
  border: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(11, 16, 15, 0.98), rgba(5, 6, 7, 0.98));
  box-shadow: 0 0 44px rgba(247, 183, 51, 0.28);
  text-align: center;
}

#lightning-status,
#lightning-timer,
.lightning-modal__cancel {
  font-family: HeroDisplay, Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lightning-modal__qr {
  display: inline-grid;
  place-items: center;
  min-width: 244px;
  min-height: 244px;
  padding: 10px;
  background: #fff;
}

#lightning-timer {
  margin-top: 14px;
  min-height: 22px;
  color: rgba(235, 250, 255, 0.86);
  font-size: 16px;
}

#lightning-status {
  min-height: 48px;
  margin-top: 14px;
  color: var(--gold);
  white-space: pre-line;
  font-size: 24px;
}

.lightning-modal__cancel {
  margin-top: 14px;
  min-height: 42px;
  padding: 8px 24px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: #030506;
  color: #fff8dc;
  font-size: 20px;
}
