/*! Copyright (c) 2026 BamByte (bambyte.net). All rights reserved.
 * Proprietary code: no copying, redistribution, or use to train or prompt
 * AI / machine-learning systems without written permission from BamByte. */
/* Blinkz! start menu (index.html).
   Built on the shared panel/button art every game's menu uses
   (/assets/shared/games_menu/).

   The accent is the console's electric blue. Keep it in step with
   --game-accent in game.css. */

:root {
  --blz-accent: #35b8ff;
  --blz-accent-rgb: 53, 184, 255;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* The backdrop art paints in the body's own box, BELOW the site header (a
   background on <html> stops the body's spreading under the fixed nav). */
html { background: #000; }

/* Blinkz!'s backdrop art (assets/img/blinkz_backdrop.webp, owner 2026-11-10)
   behind the panel exactly as painted -- no overlay. */
body {
  background: url("../assets/img/blinkz_backdrop.webp") center / cover no-repeat, #0d0620;
}

.blz-menu-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}


/* The game's logo over the panel, the way Bubblitz! has it (owner,
   2026-11-10: the backdrop art has no logo painted in). */
.blz-menu-wordmark {
  display: block;
  width: min(440px, 88vw);
  max-height: min(22vh, 180px);
  object-fit: contain;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5));
  user-select: none;
  pointer-events: none;
}
.blz-menu-page { flex-direction: column; }

.blz-menu-panel {
  position: relative;
  /* Height hugs the title + 2 buttons (BAMO's panel); the third width term
     keeps the whole panel on screen on short viewports. */
  width: min(440px, calc(var(--bb-screen-w, 100vw) * 0.92),
               calc((var(--bb-screen-h, 100dvh) - 48px - min(24vh, 200px)) / 0.722));
  aspect-ratio: 1 / 0.722;
  border-radius: 32px;
  border: 6px solid #1c1c1c;
  outline: 2px solid rgba(255, 255, 255, 0.08);
  outline-offset: -8px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 2px rgba(var(--blz-accent-rgb), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: #3a3a3a url("/assets/shared/PK_menu_gray.png") center / cover no-repeat;
}

.blz-menu-home {
  position: absolute;
  top: 8.1%;
  left: 5%;
  width: 11%;
  z-index: 5;
  display: block;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.blz-menu-home img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.blz-menu-home:hover,
.blz-menu-home:focus-visible {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.blz-menu-logo {
  position: absolute;
  top: 6.2%;
  left: 50%;
  width: 62%;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.blz-menu-buttons {
  position: absolute;
  inset: 0;
}

/* Same panel, pill thickness and placing as BAMO's two buttons. */
.blz-menu-btn {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  height: 21.6%;
  width: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.blz-menu-btn--online { top: 46.1%; }
.blz-menu-btn--single { top: 69.4%; }

.blz-menu-btn:hover,
.blz-menu-btn:focus-visible {
  filter: brightness(1.18) drop-shadow(0 0 10px rgba(var(--blz-accent-rgb), 0.55));
  transform: translateX(-50%) translateY(-1px);
}

.blz-menu-btn:active {
  transform: translateX(-50%) translateY(0);
  filter: brightness(0.95);
}

.blz-menu-btn:focus-visible {
  outline: 2px solid var(--blz-accent);
  outline-offset: 3px;
}

.blz-menu-btn-art {
  display: block;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  user-select: none;
}

/* Touch screens: pad the small Home icon's hit area past 44px. */
@media (pointer: coarse) {
  .blz-menu-home::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
}
