/*! 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. */
/* Bunker Blitz 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 {
  --bkb-accent: #ffd21f;
  --bkb-accent-rgb: 255, 210, 31;
}

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:
   with no background on <html>, the body's would spread to the whole
   window and the fixed nav would cover the top of the art. (Owner,
   2026-11-10.) */
html { background: #000; }

/* The paintball park itself, filling the screen behind the panel the way
   Boom Boats' menu art does. This replaced a hand-mixed night-time wash of
   team-colour glows -- the art is a bright daylight field, so those glows
   would only have muddied it; all that is left over it is a vignette, dark
   enough that the grey panel still reads against the middle and light
   enough to leave the grass and sky alone. The flat green underneath is the
   art's own bottom-edge colour, for a viewport too wide or too tall for
   cover to reach. */
body {
  background:
    url("../assets/img/bunker_blitz_backdrop.webp") center / cover no-repeat,
    #3f6422;
}

.bkb-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). */
.bkb-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;
}
/* This logo is a boxed image (its own background, no transparency), so it
   gets rounded corners and shrinks to its own shape -- a badge, not a
   hard rectangle. Swap in a transparent export and drop this modifier. */
.bkb-menu-wordmark--boxed {
  width: auto;
  max-width: min(440px, 88vw);
  height: min(22vh, 180px);
  max-height: none;
  border-radius: 18px;
}
.bkb-menu-page { flex-direction: column; }

.bkb-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(--bkb-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;
}

.bkb-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;
}

.bkb-menu-home img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.bkb-menu-home:hover,
.bkb-menu-home:focus-visible {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.bkb-menu-logo {
  position: absolute;
  top: 6.2%;
  left: 50%;
  width: 62%;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.bkb-menu-buttons {
  position: absolute;
  inset: 0;
}

/* Same panel, pill thickness and placing as BAMO's two buttons. */
.bkb-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;
}
.bkb-menu-btn--online { top: 46.1%; }
.bkb-menu-btn--single { top: 69.4%; }

.bkb-menu-btn:hover,
.bkb-menu-btn:focus-visible {
  filter: brightness(1.18) drop-shadow(0 0 10px rgba(var(--bkb-accent-rgb), 0.55));
  transform: translateX(-50%) translateY(-1px);
}

.bkb-menu-btn:active {
  transform: translateX(-50%) translateY(0);
  filter: brightness(0.95);
}

.bkb-menu-btn:focus-visible {
  outline: 2px solid var(--bkb-accent);
  outline-offset: 3px;
}

.bkb-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) {
  .bkb-menu-home::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
}

/* The mode buttons are <button>s here (Single-Player opens a dialog). */
button.bkb-menu-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
}
.bkb-menu-btn:disabled {
  cursor: default;
  filter: grayscale(0.85) brightness(0.7);
}
.bkb-menu-btn:disabled:hover { transform: translateX(-50%); filter: grayscale(0.85) brightness(0.7); }
.bkb-menu-soon {
  position: absolute;
  right: -6%;
  top: -14%;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bkb-accent);
  color: #1a1030;
  font: 900 12px/1.2 "Arial Black", Arial, sans-serif;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transform: rotate(6deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
