/*! 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. */
/* Solitaire start menu (index.html).
   Built on the shared panel/button art every game's menu uses
   (/assets/shared/games_menu/), cut down to one button like Blockz's.

   The accent is the table trim gold. Keep it in step with --game-accent in
   game.css. */

:root {
  --sol-accent: #ffd23f;
  --sol-accent-rgb: 255, 210, 63;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* The Solitz! backdrop (assets/img/solitz_backdrop.webp, 4:3 with a gold
   frame round the edge). It sits on the menu area under the site header (on
   body the header would cover the crown). Areas wider than 4:3 show the whole
   frame and fill the sides with the art's own edge navy; narrower ones (phones
   upright) fill the area and lose the frame's sides instead of shrinking to a
   strip -- see the aspect test in the media query below. */
body {
  background: #000f4c;
}

.sol-menu-page {
  background:
    url("../assets/img/solitz_backdrop.webp") center / contain no-repeat,
    radial-gradient(ellipse at center, #06246e 0%, #000f4c 70%, #01072a 100%);
}

/* The menu area is the viewport minus the ~70px header; 4/3 on the whole
   viewport is close enough to switch over. */
@media (max-aspect-ratio: 4/3) {
  .sol-menu-page { background-size: cover, auto; }
}

.sol-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). */
.sol-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. */
.sol-menu-wordmark--boxed {
  width: auto;
  max-width: min(440px, 88vw);
  height: min(22vh, 180px);
  max-height: none;
  border-radius: 18px;
}
.sol-menu-page { flex-direction: column; }

.sol-menu-panel {
  position: relative;
  /* Height hugs the title + 1 button; 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.554));
  aspect-ratio: 1 / 0.554;
  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(--sol-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;
}

.sol-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;
}

.sol-menu-home img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.sol-menu-home:hover,
.sol-menu-home:focus-visible {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.sol-menu-logo {
  position: absolute;
  top: 8.1%;
  left: 50%;
  width: 62%;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.sol-menu-buttons {
  position: absolute;
  inset: 0;
}

/* Same pill thickness as BAMO's buttons (21.6% of its taller panel). */
.sol-menu-btn {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 60.1%;
  height: 28.2%;
  width: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.sol-menu-btn:hover,
.sol-menu-btn:focus-visible {
  filter: brightness(1.18) drop-shadow(0 0 10px rgba(var(--sol-accent-rgb), 0.55));
  transform: translateX(-50%) translateY(-1px);
}

.sol-menu-btn:active {
  transform: translateX(-50%) translateY(0);
  filter: brightness(0.95);
}

.sol-menu-btn:focus-visible {
  outline: 2px solid var(--sol-accent);
  outline-offset: 3px;
}

.sol-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) {
  .sol-menu-home::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
}
