/*
  Arcade Layer hidden mini-game styling.
  Pixel-inspired UI is intentionally scoped to the game page.
*/
:root {
  --pixel-bg: #090d1d;
  --pixel-panel: #141a33;
  --pixel-line: #30457f;
  --pixel-ink: #e9efff;
  --pixel-muted: #b8c5f0;
  --pixel-accent: #5de0ff;
  --pixel-accent-2: #8a5eff;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: "Courier New", "Lucida Console", monospace;
  color: var(--pixel-ink);
  background: radial-gradient(circle at 16% 8%, rgba(93, 224, 255, 0.11), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(138, 94, 255, 0.16), transparent 35%),
    var(--pixel-bg);
}

.game-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
}

.game-top {
  border: 2px solid var(--pixel-line);
  background: linear-gradient(160deg, rgba(21, 27, 53, 0.93), rgba(13, 18, 40, 0.93));
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 30px rgba(93, 224, 255, 0.07);
}

h1,
h2 {
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
}

h1 {
  font-size: clamp(1.4rem, 3.8vw, 2rem);
}

h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p {
  margin: 0.35rem 0;
  color: var(--pixel-muted);
}

.game-ui {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.45rem;
  align-items: center;
}

.btn {
  font-family: inherit;
  border: 2px solid var(--pixel-line);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  color: var(--pixel-ink);
  text-decoration: none;
  background: linear-gradient(145deg, #182246, #1c2a59);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--pixel-accent);
  transform: translateY(-1px);
}

.notice {
  font-size: 0.92rem;
}

canvas {
  width: 100%;
  max-width: 960px;
  border: 2px solid var(--pixel-line);
  border-radius: 8px;
  display: block;
  image-rendering: pixelated;
  background: linear-gradient(180deg, #0b1231, #0a1024);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 18, 0.78);
  backdrop-filter: blur(2px);
}

.overlay.hidden {
  display: none;
}

.overlay-panel {
  width: min(92vw, 560px);
  border-radius: 12px;
  border: 2px solid var(--pixel-line);
  background: linear-gradient(160deg, rgba(16, 23, 52, 0.96), rgba(11, 16, 38, 0.96));
  box-shadow: 0 0 24px rgba(93, 224, 255, 0.15);
  padding: 1rem;
}

.complete-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.mobile-note {
  opacity: 0.86;
}

@media (max-width: 760px) {
  .mobile-note {
    display: block;
  }
}
