/* 7xstudio Bowling Stylesheet */

/* Center the game wrapper within the browser window */
html, body {
  height: 100%;
  height: -webkit-fill-available;
  background-color: #030308;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Override .game-wrapper from game.css to lock 9:16 aspect ratio and phone sizing */
.game-wrapper {
  position: relative;
  width: 100vw;
  width: 100dvw;
  height: 177.78vw;
  height: 177.78dvw;
  max-width: 450px;
  max-height: 800px;
  background: radial-gradient(circle at center, #1b160a 0%, #080603 100%); /* Wooden-slate theme */
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), inset 0 0 25px rgba(255, 255, 255, 0.01);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

@media (min-aspect-ratio: 9/16) {
  .game-wrapper {
    height: 100vh;
    height: 100dvh;
    width: 56.25vh;
    width: 56.25dvh;
  }
}

/* Ensure gameplay partner layer is relative and constrained inside wrapper */
.partner-panel-layout {
  position: relative !important;
  width: 100% !important;
  height: 64px !important;
  background: rgba(6, 4, 2, 0.9) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  z-index: 100 !important;
  top: 0 !important;
  left: 0 !important;
}

/* Ensure gameplay partner layer bottom is relative and constrained inside wrapper */
.partner-panel-layout-bottom {
  position: relative !important;
  width: 100% !important;
  height: 64px !important;
  background: rgba(6, 4, 2, 0.9) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  z-index: 100 !important;
  bottom: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.partner-panel-layout-bottom.hidden,
.layout-divider.hidden {
  display: none !important;
}

/* Partner Box formatting */
.partner-holder-top, .partner-holder-bottom {
  width: 320px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
}

/* Mock small partner container inside top and bottom slots */
.partner-mock-small {
  width: 320px;
  height: 50px;
  background: #211c0d; /* Warm brown-slate */
  border: 1px dashed #ece213; /* Yellow border */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.partner-mock-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

/* Ensure HUD is relative and fits exactly under the ad banner */
.hud-layer {
  position: relative !important;
  width: 100% !important;
  height: 45px !important;
  background: #262010 !important; /* Wooden Brown */
  border-bottom: 2px solid #ece213 !important; /* Yellow Accent Line */
  display: flex !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 99 !important;
  box-sizing: border-box !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* Canvas container fills the rest of the height */
.canvas-container {
  position: relative;
  width: 100% !important;
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden;
  background-color: #000;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #110e08; /* Dark wood lane background */
}

/* Nav button updates inside standard HUD */
.hud-layer .hud-back-btn {
  background: #2b8880 !important; /* Corporate Teal */
  color: #ece213 !important; /* Yellow text */
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  height: 100% !important;
  cursor: pointer !important;
  border: none !important;
  box-sizing: border-box !important;
  transition: background-color 0.2s ease !important;
}

.hud-layer .hud-back-btn:hover {
  background: #35a59b !important;
}

/* Fullscreen toggle button formatting inside HUD */
.hud-fullscreen-btn {
  background: none !important;
  border: none !important;
  color: #ece213 !important;
  cursor: pointer !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  outline: none !important;
  height: 100% !important;
}

.hud-fullscreen-btn:hover {
  transform: scale(1.15) !important;
  color: #ffffff !important;
}

.hud-fullscreen-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  display: block !important;
}

/* Overlay general updates - Dark Opaque Slate with Teal Border */
.overlay-layer {
  background: rgba(8, 6, 3, 0.9); /* Deep opaque dark background */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 90;
}

.overlay-card {
  background: rgba(20, 16, 10, 0.98); /* Solid dark wood background */
  border: 2px solid #ece213; /* Bold yellow outline border */
  border-radius: 20px;
  width: 90%;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Brand Header on top of Card */
.menu-brand-header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 15px;
  padding: 0 10px;
}

.brand-logo {
  height: 24px;
  filter: drop-shadow(0 0 10px rgba(236, 226, 19, 0.15));
  border: none;
}

/* Centered Title Styles */
.logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-align: center;
  text-transform: uppercase;
}

.title-line-1 {
  color: #ece213; /* Brand Yellow */
}

.title-line-2 {
  color: #24bfae; /* Teal Green */
}

.subtitle {
  color: #ece213 !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.info-box {
  background: #2a2211; /* Darker brown box for content info */
  border: 1px solid #ece213;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  font-size: 12px;
  padding: 12px;
  margin-bottom: 15px;
  line-height: 1.5;
  width: 100%;
  text-align: left;
}

.score-display {
  background: #2a2211;
  border: 1px solid #ece213;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Double Button Row Layout */
.button-row-double {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 5px;
}

/* Pill Shaped Custom Buttons */
.menu-btn {
  background: #2b8880 !important; /* Teal button base */
  color: #ffffff !important;
  border: none !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 30px !important;
  padding: 12px 16px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  text-transform: uppercase;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn:hover {
  background: #35a59b !important;
  transform: translateY(-1px);
}

.menu-btn:active {
  transform: translateY(0);
}

/* Full Width Primary Play Button */
.main-start-btn {
  width: 100% !important;
  margin-top: 5px;
  margin-bottom: 5px;
  flex: none;
  font-size: 14px;
}

/* Pill Shaped Transparent Outline Return Button */
.home-link-pill {
  background: transparent;
  border: 1.5px solid #2b8880;
  color: #24bfae !important;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 30px;
  padding: 10px 24px;
  transition: all 0.2s ease;
  margin-top: 12px;
  margin-bottom: 12px;
  display: inline-block;
  text-transform: uppercase;
  text-align: center;
}

.home-link-pill:hover {
  background: rgba(43, 136, 128, 0.08);
  border-color: #35a59b;
  color: #35a59b !important;
}

/* Score Rows for Game Over Screen */
.score-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  border-bottom: 1px solid rgba(236, 226, 19, 0.2);
  padding: 6px 0;
}

.score-row:last-child {
  border-bottom: none;
}

.highlight-val {
  color: #24bfae !important; /* Highlight teal */
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
}

/* Partner Promo Layout */
.partner-slot-wrapper {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0 !important;
}

.partner-label {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1.5px;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 800;
}

.partner-box-large {
  width: 320px;
  height: 250px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0 !important;
}

.partner-large-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.partner-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
}
