* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
}

body {
  overflow-x: hidden;
}

.rules-page {
  width: 100%;
  min-height: 100vh;
  background: #000;
}

.rules-board {
  position: relative;
  width: min(100vw, 1920px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.rules-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* ===== RETURN TO ARCHIVE DEBUG BUTTON ===== */

.archive-debug-btn {
  position: absolute;
  z-index: 5;
  left: 4.4%;
  top: 90.0%;
  width: 17.4%;
  height: 5.4%;
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
}

.archive-debug-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  aspect-ratio: 1 / 1;
  background: url("/assets/Icons/crossroads_compass.png") center / contain no-repeat;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.archive-debug-btn:hover::after,
.archive-debug-btn:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
