@font-face {
  font-family: 'Bebas Neue';
  src: url('./fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lilita One';
  src: url('./fonts/LilitaOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  color-scheme: dark;
  --void: #030508;
  --cyan: #2de7ff;
  --violet: #a64cff;
  --amber: #ffcb45;
  --text: #f5f8ff;
}

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

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

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

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

.tournament-qr {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  width: 220px;
  height: 220px;
  padding: 11px;
  box-sizing: border-box;
  background: #fff;
  border: 4px solid #ffcb45;
  box-shadow: 0 0 24px rgba(255, 138, 22, 0.58), 0 18px 36px rgba(0, 0, 0, 0.62);
  transform: translate(-50%, -50%);
}

.tournament-qr.hidden {
  display: none;
}

.tournament-qr__code {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tournament-qr img,
.tournament-qr canvas,
.tournament-qr__code img,
.tournament-qr__code canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

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

.lightning-modal {
  --lightning-modal-bg: linear-gradient(transparent, transparent);
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(3, 5, 8, 0.62), rgba(3, 5, 8, 0.74)),
    var(--lightning-modal-bg),
    rgba(3, 5, 8, 0.72);
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(1px);
}

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

.lightning-modal__panel {
  width: min(570px, calc(100% - 44px));
  min-height: 294px;
  box-sizing: border-box;
  padding: 52px 86px 48px;
  color: var(--text);
  text-align: center;
  background:
    linear-gradient(rgba(10, 4, 0, 0.12), rgba(10, 4, 0, 0.12)),
    url('./assets/attract/modal-frame-wide.png?v=20260612-modal-frame-layout') center / 100% 100% no-repeat;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.66));
}

.lightning-modal__qr {
  display: inline-block;
  padding: 8px;
  background: #fbfdff;
  border: 3px solid #f2a821;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(35, 12, 0, 0.9), 0 10px 20px rgba(0, 0, 0, 0.42);
}

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

#lightning-status {
  margin-top: 14px;
  color: #ffe6a7;
  font: 400 18px 'Bebas Neue', Impact, sans-serif;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #2b1200, 0 0 10px rgba(255, 177, 43, 0.45);
  white-space: pre-line;
}

#lightning-timer {
  min-height: 18px;
  margin-top: 6px;
  color: rgba(245, 248, 255, 0.78);
  font: 600 12px 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
}

.lightning-modal--payout.lightning-modal--qr-locked .lightning-modal__qr img,
.lightning-modal--payout.lightning-modal--qr-locked .lightning-modal__qr canvas {
  filter: blur(12px);
}

.lightning-modal__cancel {
  display: none;
  margin-top: 14px;
  padding: 8px 18px;
  color: var(--text);
  font: 400 13px 'Lilita One', Arial, sans-serif;
  text-transform: uppercase;
  background: linear-gradient(#9a4a12, #3f1704);
  border: 1px solid #f0b542;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 231, 155, 0.34), 0 4px 0 #160602;
}

.lightning-modal__cancel:disabled {
  opacity: 0.48;
}
