/* 7xstudio Satranç (Chess) 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, #11141a 0%, #050608 100%); /* Clean dark neutral gradient */
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95);
  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, 8, 12, 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, 8, 12, 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, 4, 6, 0.88);
  backdrop-filter: blur(8px);
}

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

/* Matte Flat Card Styling - No Neon Glows! */
.overlay-card {
  width: 85%;
  max-width: 340px;
  background: rgba(18, 22, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

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

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

/* Matte flat buttons - strictly no glowing/neon shadows */
.menu-btn {
  width: 100%;
  max-width: 280px;
  height: 44px;
  background: #208b7d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}

.menu-btn:hover {
  background: #24bfae;
}

.menu-btn:active {
  transform: scale(0.98);
}

/* Draw/Resign button style */
.game-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.game-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Promotion Modal Choice Buttons */
.promo-choice-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
