/*! 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. */
/* BYNGO start menu (index.html).
   Built on the shared panel/button art every game's menu uses
   (/assets/shared/games_menu/). The accent is the card's gold; keep it in
   step with --game-accent in game.css. */

:root {
  --byn-accent: #ffc93a;
  --byn-accent-rgb: 255, 201, 58;
}

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 BYNGO menu art behind the panel (assets/img/byngo_menu_bg.webp),
   filling the whole screen the way Boom Boats' menu art does. */
body {
  background: url("../assets/img/byngo_menu_bg.webp") center / cover no-repeat, #2a0a5e;
}

.byn-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). */
.byn-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. */
.byn-menu-wordmark--boxed {
  width: auto;
  max-width: min(440px, 88vw);
  height: min(22vh, 180px);
  max-height: none;
  border-radius: 18px;
}
.byn-menu-page { flex-direction: column; }

.byn-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(--byn-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;
}

.byn-menu-logo {
  position: absolute;
  top: 6.2%;
  left: 50%;
  width: 62%;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.byn-menu-buttons {
  position: absolute;
  inset: 0;
}

/* Same panel, pill thickness and placing as BAMO's two buttons. */
.byn-menu-btn {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  height: 21.6%;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.byn-menu-btn--online { top: 46.1%; }
.byn-menu-btn--single { top: 69.4%; }

.byn-menu-btn:hover,
.byn-menu-btn:focus-visible {
  filter: brightness(1.18) drop-shadow(0 0 10px rgba(var(--byn-accent-rgb), 0.55));
  transform: translateX(-50%) translateY(-1px);
}

.byn-menu-btn:active {
  transform: translateX(-50%) translateY(0);
  filter: brightness(0.95);
}

.byn-menu-btn:focus-visible {
  outline: 2px solid var(--byn-accent);
  outline-offset: 3px;
}

.byn-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;
}
