@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

html,
body {
  margin: 0;
  background: #0f042b;
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
}

body.event {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
}

.pads {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.pads[hidden] {
  display: none;
}

.pad-group {
  display: flex;
  gap: 10px;
}

.pads button {
  pointer-events: auto;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(22, 5, 84, 0.7);
  color: #fff;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pads button b {
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.pads button span {
  font-size: 12px;
  opacity: 0.8;
}

.pads button.is-down {
  background: #ff1a97;
  border-color: #ff1a97;
}

.home {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(22, 5, 84, 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.home:hover,
.home:focus-visible {
  border-color: #ff1a97;
  color: #ff1a97;
}

/* Hub page */

.hub {
  min-height: 100vh;
  background: linear-gradient(#0f042b, #160554) fixed;
  line-height: 1.5;
}

.hub main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

.hub .kicker {
  margin: 0 0 8px;
  color: #00ffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub h1 {
  margin: 0;
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 9vw, 84px);
  line-height: 1;
}

.hub .lede {
  max-width: 34em;
  margin: 18px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.events {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.events a {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 4, 43, 0.6);
  color: #fff;
  text-decoration: none;
}

.events a:hover,
.events a:focus-visible {
  border-color: #ff1a97;
  outline: none;
}

.events .num {
  font-family: "Archivo Black", "Archivo", sans-serif;
  color: #ff1a97;
  font-size: 15px;
}

.events h2 {
  margin: 6px 0 8px;
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-weight: 400;
  font-size: 28px;
}

.events p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.8);
}

.events .best {
  margin-bottom: 12px;
  color: #00ffff;
  font-weight: 700;
  font-size: 14px;
}

.events .play {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 8px;
  background: #ff1a97;
  font-weight: 700;
}

.hub footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.hub footer a {
  color: #fff;
}
