@font-face {
  font-family: 'Orbitron';
  src: url('./fonts/Orbitron-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('./fonts/Orbitron-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('./fonts/Orbitron-800.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('./fonts/Rajdhani-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('./fonts/Rajdhani-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #030508;
  --panel: #111522;
  --panel-soft: #171d2d;
  --cyan: #39d8ff;
  --violet: #7c3cff;
  --lime: #a7ff83;
  --green: #28d4a2;
  --amber: #ffe66d;
  --orange: #ff9d5c;
  --red: #ff5d7d;
  --text: #f4f7ff;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020409;
  font-family: 'Orbitron', Arial, sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.01) 50%, transparent 50%),
    radial-gradient(circle at center, transparent 58%, rgba(0, 0, 0, 0.3));
  background-size: 100% 4px, cover;
  pointer-events: none;
  z-index: 2;
}

.shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  position: relative;
  z-index: 1;
  display: block;
}

.hint {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 10px;
  color: rgba(244, 247, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(57, 216, 255, 0.5);
}

.qr {
  position: fixed;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  padding: 16px;
  background: #f8fbff;
  border: 4px solid var(--cyan);
  box-shadow: 0 0 24px rgba(57, 216, 255, 0.58);
}

.qr--lobby {
  width: 160px;
  height: 160px;
  left: 50%;
  top: 61%;
  padding: 10px;
  border-width: 2px;
  box-shadow: 0 0 16px rgba(57, 216, 255, 0.34);
}

.qr--payout {
  width: 208px;
  height: 208px;
  padding: 10px;
  border-width: 2px;
  border-color: var(--amber);
  border-radius: 8px;
  background: #fbfdff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.78),
    0 0 18px rgba(255, 191, 56, 0.46),
    0 0 42px rgba(57, 216, 255, 0.18);
}

.qr.blurred {
  filter: blur(8px) brightness(0.76) saturate(0.82);
}

.lightning-modal {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 50%, transparent 50%),
    radial-gradient(circle at 50% 38%, rgba(57, 216, 255, 0.18), transparent 42%),
    radial-gradient(circle at 58% 54%, rgba(124, 60, 255, 0.16), transparent 44%),
    rgba(3, 5, 8, 0.9);
  background-size: 100% 4px, auto, auto, auto;
  backdrop-filter: blur(2px);
}

.lightning-modal.hidden {
  display: none;
}

.lightning-modal--lobby {
  background:
    radial-gradient(circle at 50% 42%, rgba(57, 216, 255, 0.055), transparent 38%),
    rgba(3, 5, 8, 0.28);
  backdrop-filter: none;
}

.lightning-modal__panel {
  width: 360px;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  color: var(--text);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(32, 216, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(7, 13, 27, 0.98), rgba(4, 6, 14, 0.99)),
    #0b101d;
  border: 2px solid rgba(84, 230, 255, 0.82);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 56px rgba(0, 0, 0, 0.72),
    0 0 32px rgba(84, 230, 255, 0.28);
}

.lightning-modal--lobby .lightning-modal__panel {
  width: 284px;
  padding: 16px 16px 14px;
  background:
    linear-gradient(180deg, rgba(3, 7, 15, 0.68), rgba(1, 3, 8, 0.76)),
    #03070f;
  border-width: 1px;
  border-color: rgba(84, 230, 255, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 14px 32px rgba(0, 0, 0, 0.34),
    0 0 14px rgba(84, 230, 255, 0.14);
}

.lightning-modal__qr {
  display: inline-block;
  padding: 10px;
  background: #fbfdff;
  border: 2px solid var(--cyan);
  border-radius: 8px;
  box-shadow:
    0 0 0 4px #fbfdff,
    0 0 22px rgba(84, 230, 255, 0.44),
    0 0 48px rgba(124, 60, 255, 0.22);
}

.lightning-modal--lobby .lightning-modal__qr {
  padding: 8px;
  border-width: 1px;
  box-shadow: 0 0 0 3px #fff, 0 0 14px rgba(84, 230, 255, 0.3);
}

.lightning-modal--lobby .lightning-modal__qr canvas,
.lightning-modal--lobby .lightning-modal__qr img {
  width: 196px !important;
  height: 196px !important;
}

.lightning-modal--lobby #lightning-status {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.22;
}

.lightning-modal--lobby .lightning-modal__cancel {
  margin-top: 12px;
  padding: 7px 13px;
  font-size: 11px;
}

.lightning-modal__qr img,
.lightning-modal__qr canvas {
  display: block;
}

#lightning-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.24;
  white-space: pre-line;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(84, 230, 255, 0.36);
}

#lightning-timer {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(244, 247, 255, 0.62);
}

.lightning-modal__cancel {
  margin-top: 16px;
  padding: 9px 16px;
  color: var(--text);
  font: 800 13px 'Orbitron', Arial, sans-serif;
  background: linear-gradient(180deg, rgba(124, 60, 255, 0.36), rgba(32, 216, 255, 0.14));
  border: 1px solid rgba(84, 230, 255, 0.66);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 16px rgba(124, 60, 255, 0.22);
}

.hidden {
  display: none;
}
