/* 7xstudio Tavla Stylesheet */

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;
}

.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%); /* Gold/wood radial background gradient */
  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;
  }
}

.partner-panel-layout {
  position: relative !important;
  width: 100% !important;
  height: 64px !important;
  background: rgba(6, 5, 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;
}

.partner-panel-layout-bottom {
  position: relative !important;
  width: 100% !important;
  height: 64px !important;
  background: rgba(6, 5, 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-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;
}

/* Gameplay HUD customization */
.hud-layer {
  display: flex !important;
}

.hud-layer.hidden {
  display: none !important;
}

.hud-fullscreen-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: color 0.2s;
}

.hud-fullscreen-btn:hover {
  color: #fff;
}

.hud-fullscreen-btn svg {
  width: 16px;
  height: 16px;
}

/* Overlays and menus */
.overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(3, 3, 8, 0.85);
  backdrop-filter: blur(8px);
}

.overlay-layer.hidden {
  display: none !important;
}

.overlay-card {
  width: 82%;
  max-width: 340px;
  background: rgba(20, 15, 10, 0.65); /* Golden tint glassmorphism */
  border: 1px solid rgba(236, 226, 19, 0.08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.menu-brand-header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 15px;
  padding: 0 10px;
}

.brand-logo {
  height: 24px;
  border: none;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  margin: 15px 0;
  letter-spacing: 2px;
}

.title-line-1 {
  color: #fff;
}

.title-line-2 {
  color: #ece213; /* Golden yellow */
}

/* Spinner styling */
.lobby-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(36,191,174,0.1);
  border-top-color: #24bfae;
  border-radius: 50%;
  margin: 15px auto;
  animation: spin 1s linear infinite;
}

/* World Record Trophy styling */
.trophy-container {
  font-size: 40px;
  text-align: center;
  margin-bottom: -15px;
  margin-top: -10px;
  animation: float 2s ease-in-out infinite;
}

.trophy-container.hidden {
  display: none !important;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

/* Card layout & spacing fixes */
.overlay-card > * {
  flex-shrink: 0;
}

.button-row-double {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 5px !important;
  margin-bottom: 12px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.button-row-double .menu-btn {
  flex: 1 !important;
  margin-bottom: 0 !important;
}

.score-board-box {
  margin: 15px 0 20px 0;
  width: 100%;
}

.overlay-card .menu-btn {
  margin-bottom: 12px;
  flex-shrink: 0 !important;
}

.home-link-pill {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: color 0.2s ease;
  margin: 8px 0;
  display: inline-block;
}

.home-link-pill:hover {
  color: #fff !important;
}
