html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.control-panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000 url("assets/generic-bg.png") center/cover no-repeat;
  color: var(--ink);
}

.panel-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30% 2px 1fr;
  gap: 3%;
  height: 100%;
  padding: 12% 4% 12%;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(18px, 1.6vw, 36px);
  letter-spacing: 0.2em;
}

.section-title.align-right {
  text-align: right;
}

.divider {
  background: rgba(255, 255, 255, 0.65);
  align-self: stretch;
  margin: 6% 0 10%;
}

.station-grid {
  display: grid;
  gap: 18px;
}

.reg-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.station-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(72px, 15vh, 120px);
  border: 2px solid #f4f4f4;
  color: #f4f4f4;
  font-size: clamp(18px, 2vw, 30px);
  letter-spacing: 0.1em;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, 84% 0, 100% 18%, 100% 100%, 0 100%);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.station-btn:hover,
.station-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
  outline: none;
}

.reg-btn {
  border-color: #f4f4f4;
  color: #f4f4f4;
}

.reg-btn:hover,
.reg-btn.is-active {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.game-btn {
  border-color: #f5a623;
  color: #f5a623;
}

.game-btn:hover {
  background: rgba(245, 166, 35, 0.15);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.35);
}

.panel-footer {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 9%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  z-index: 1;
}

.footer-left {
  font-size: clamp(12px, 1.6vw, 22px);
  justify-self: start;
}

.footer-center {
  font-size: clamp(20px, 2.6vw, 40px);
  text-align: center;
}

.footer-right {
  font-size: clamp(12px, 1.8vw, 24px);
  justify-self: end;
}

@media (max-width: 980px) {
  .panel-content {
    grid-template-columns: 1fr;
    padding: 18% 6% 16%;
    gap: 24px;
  }

  .divider {
    display: none;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
