/* GS - GameScape Online: controller setup wizard (see controller.js) */
.gs-pad {
  position: fixed;
  inset: 0;
  z-index: 2450;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(3 2 10 / 72%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.gs-pad[hidden] { display: none; }
.gs-pad__panel {
  width: min(620px, 100%);
  max-height: 100%;
  overflow-y: auto;
  border: 1px solid rgb(34 228 255 / 45%);
  border-radius: 3px;
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / 10%) 0%, rgb(255 255 255 / 3%) 10%, transparent 11%),
    linear-gradient(180deg, rgb(16 12 44 / 97%), rgb(6 5 20 / 98%));
  box-shadow: 0 0 30px rgb(34 228 255 / 18%), 0 30px 80px rgb(0 0 0 / 70%);
  color: #e8ecff;
  font-family: "Exo 2", system-ui, sans-serif;
}
.gs-pad__head { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid rgb(120 140 255 / 20%); }
.gs-pad__head h2 { margin: 0; font: 800 19px/1 "Orbitron", system-ui, sans-serif; letter-spacing: .06em; color: #fff; text-shadow: 0 0 14px rgb(34 228 255 / 45%); }
.gs-pad__close {
  margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgb(120 140 255 / 30%); border-radius: 2px; background: transparent; color: #fff; font-size: 20px; cursor: pointer;
}
.gs-pad__close:hover, .gs-pad__close:focus-visible { border-color: #e03cff; outline: none; box-shadow: 0 0 12px rgb(224 60 255 / 40%); }
.gs-pad__body { display: grid; gap: 14px; padding: 20px; text-align: center; }
.gs-pad__big { font-size: 64px; filter: drop-shadow(0 0 16px rgb(34 228 255 / 60%)); animation: gs-pad-bob 2s ease-in-out infinite; }
.gs-pad__lead { margin: 0; font-size: 16px; color: #fff; }
.gs-pad__hint { margin: 0; font-size: 13px; color: rgb(215 222 255 / 65%); }
.gs-pad__step { margin: 0; font: 700 11px/1 "Orbitron", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #a9f3ff; }
.gs-pad__target {
  justify-self: center;
  min-width: 180px;
  padding: 18px 28px;
  border: 2px solid #22e4ff;
  border-radius: 3px;
  font: 800 34px/1 "Orbitron", system-ui, sans-serif;
  color: #fff;
  text-shadow: 0 0 16px rgb(34 228 255 / 70%);
  box-shadow: 0 0 24px rgb(34 228 255 / 35%), inset 0 0 18px rgb(224 60 255 / 20%);
  animation: gs-pad-pulse 1.4s ease-in-out infinite;
}
.gs-pad__info { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.gs-pad__info b { width: 100%; font-size: 15px; color: #fff; }
.gs-pad__tag { padding: 3px 8px; border: 1px solid rgb(224 60 255 / 50%); border-radius: 2px; font-size: 12px; color: #f3b3ff; }
.gs-pad__tag.ok { border-color: rgb(34 228 255 / 55%); color: #a9f3ff; }
.gs-pad__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.gs-pad__key {
  padding: 10px 0;
  border: 1px solid rgb(120 140 255 / 30%);
  border-radius: 2px;
  background: rgb(5 4 15 / 70%);
  font: 700 12px/1 "Orbitron", system-ui, sans-serif;
  color: rgb(215 222 255 / 70%);
  transition: background .08s, box-shadow .08s, color .08s;
}
.gs-pad__key.on { background: linear-gradient(90deg, #22e4ff, #e03cff); color: #fff; box-shadow: 0 0 14px rgb(34 228 255 / 60%); border-color: transparent; }
.gs-pad__sticks { display: flex; justify-content: center; gap: 30px; }
.gs-pad__stick { position: relative; width: 70px; height: 70px; border: 1px solid rgb(120 140 255 / 35%); border-radius: 50% !important; display: grid; place-items: center; }
.gs-pad__stick i { width: 18px; height: 18px; border-radius: 50% !important; background: #22e4ff; box-shadow: 0 0 10px #22e4ff; }
.gs-pad__stick small { position: absolute; bottom: -18px; font-size: 11px; color: rgb(215 222 255 / 60%); white-space: nowrap; }
.gs-pad__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.gs-pad__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1px solid rgb(120 140 255 / 30%); border-radius: 2px; background: rgb(5 4 15 / 70%);
  color: #fff; font: 600 14px/1 "Exo 2", system-ui, sans-serif; cursor: pointer;
}
.gs-pad__btn:hover, .gs-pad__btn:focus-visible { border-color: #22e4ff; box-shadow: 0 0 12px rgb(34 228 255 / 35%); outline: none; }
.gs-pad__btn--primary {
  border-color: transparent;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 14%) 0%, rgb(255 255 255 / 4%) 48%, transparent 50%), linear-gradient(90deg, #22e4ff, #4f7bff 45%, #e03cff);
  font-family: "Orbitron", system-ui, sans-serif; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
}
.gs-pad__bar { height: 4px; background: rgb(255 255 255 / 10%); }
.gs-pad__bar i { display: block; height: 100%; background: linear-gradient(90deg, #22e4ff, #e03cff); transition: width .2s; }
.gs-pad__summary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; text-align: left; }
.gs-pad__summary li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; border-left: 2px solid rgb(34 228 255 / 45%); background: rgb(5 4 15 / 50%); font-size: 13px; }
.gs-pad__summary b { color: #fff; }
.gs-pad__summary span { color: #a9f3ff; }
@keyframes gs-pad-bob { 50% { transform: translateY(-6px); } }
@keyframes gs-pad-pulse { 50% { box-shadow: 0 0 34px rgb(34 228 255 / 55%), inset 0 0 18px rgb(224 60 255 / 30%); } }
@media (width < 520px) { .gs-pad__grid { grid-template-columns: repeat(4, 1fr); } .gs-pad__summary { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gs-pad__big, .gs-pad__target { animation: none; } }
