:root {
  --pn-black: #18191a;
  --pn-darkred: #8b2323;
  --pn-red: #b23a48;
  --pn-white: #f5f5f5;
  --pn-panel: rgba(24, 25, 26, 0.82);
  --pn-glass: rgba(24, 25, 26, 0.55);
  --pn-radius: 18px;
  --pn-shadow: 0 8px 32px #0006;
  --pn-border: 1.5px solid #8b2323;
  --pn-border-red: 1.5px solid #b23a48;
  --pn-gradient: linear-gradient(90deg, #8b2323 0%, #b23a48 100%);
  --pn-gradient-rev: linear-gradient(90deg, #b23a48 0%, #8b2323 100%);
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #18191a 0%, #232325 100%);
  color: var(--pn-white);
  overflow-x: hidden;
}

.menu-container {
  position: fixed;
  inset: 0;
  background: rgba(24,25,26,0.35);
  backdrop-filter: blur(18px) saturate(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: pesFadeIn 0.4s;
}

.menu-content {
  background: var(--pn-panel);
  border-radius: var(--pn-radius);
  padding: 2.2rem 1.6rem 1.6rem 1.6rem;
  max-width: 420px;
  width: 94vw;
  text-align: center;
  box-shadow: var(--pn-shadow);
  border: var(--pn-border);
  animation: pesSlideUp 0.5s;
  /* Hafif doku efekti için */
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 8px);
}

.game-title {
  font-size: 2.2rem;
  color: var(--pn-red);
  margin-bottom: 0.7rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #0007;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: var(--pn-white);
  letter-spacing: 2px;
  text-shadow: 0 2px 12px #0007;
}

.menu-btn {
  margin: 2px;
  padding: 1rem 2rem;
  background: var(--pn-gradient);
  border: none;
  border-radius: var(--pn-radius);
  color: var(--pn-white);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.13s, box-shadow 0.13s, background 0.18s;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-shadow: 0 2px 12px #8b232344;
  outline: none;
  border-bottom: 2px solid #b23a4855;
  filter: drop-shadow(0 0 8px #8b232333);
  backdrop-filter: blur(2px);
}
.menu-btn.primary {
  background: var(--pn-gradient-rev);
  color: #fff;
  border-bottom: 2px solid var(--pn-red);
}
.menu-btn:hover, .menu-btn.primary:hover {
  transform: scale(1.03);
  background: linear-gradient(90deg, #b23a48 60%, #8b2323 100%);
  box-shadow: 0 4px 24px #8b232333;
  filter: brightness(1.05);
  color: #fff;
}

.menu-footer {
  color: #f5f5f5cc;
  font-size: 1em;
  margin-top: 2.2rem;
  text-shadow: 0 1px 8px #0008;
}

/* Skor Paneli */
#scoreDisplay.ui-panel {
   position: fixed;
  bottom: 38px;
  right: 38px;
  transform: translateX(-50%);
  background: var(--pn-glass);
  color: var(--pn-white);
  font-size: 1.12em;
  font-weight: bold;
  border-radius: var(--pn-radius);
  padding: 12px 22px;
  box-shadow: var(--pn-shadow);
  letter-spacing: 1.1px;
  z-index: 20;
  position: absolute;
  border: var(--pn-border);
  text-shadow: 0 2px 8px #0008;
  backdrop-filter: blur(8px) saturate(1.1);
}

/* Güç Barı */
#powerBarContainer {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(180px, 50vw, 320px);
  height: 32px;
  background: rgba(139, 35, 35, 0.13);
  border-radius: 16px;
  box-shadow: 0 2px 16px #8b232355;
  overflow: hidden;
  z-index: 10;
  backdrop-filter: blur(8px) saturate(1.1);
}
#powerBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8b23233b 0%, #b23a4875 100%);
    border-radius: 16px;
    box-shadow: 0 0 10px #8b232355, 0 0 8px #b23a4855 inset;
    transition: width 0.1s linear, box-shadow 0.2s;
    opacity: 3.93;
    position: relative;
    overflow: visible;
}
#powerBar::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  border-radius: 16px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 10%, rgba(255,255,255,0.01) 80%);
  mix-blend-mode: lighten;
  opacity: 0.3;
}

/* Target (Futbol Topu PNG veya SVG ile) */
#target {
  position: fixed;
  width: 28px;
  height: 28px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 20;
  pointer-events: none;
  background: rgba(255,255,255,0.08);
 border: 1.5px solid #b23a48; 
  border-radius: 50%;
   box-shadow: none;  
   backdrop-filter: blur(1px);
  transition: box-shadow 0.2s;
  animation: pesTargetPulse 1.2s infinite alternate;
  overflow: visible;
}
@keyframes pesTargetPulse {
  0% { box-shadow: 0 0 8px 2px #8b232355;}
  100% { box-shadow: 0 0 18px 6px #b23a4855;}
}

/* Bildirim */
#notification {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translate(-50%, -50%);
  min-width: 180px;
  padding: 16px 28px;
  border-radius: var(--pn-radius);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pn-white);
  background: rgba(24, 25, 26, 0.19);
  box-shadow: 0 2px 8px #18191a55;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.3s, transform 0.3s;
  text-shadow: 0 2px 8px #0008;
}

/* VR Butonu */
#VRButton {
  display: block !important;
  position: fixed;
  bottom: 38px;
  left: 38px;
  z-index: 9999;
  font-size: 1.1em;
  padding: 12px 22px;
  background: var(--pn-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.97;
  box-shadow: 0 2px 12px #8b232355;
  border-bottom: 2px solid #b23a48;
  font-weight: bold;
  letter-spacing: 1.1px;
  transition: background 0.18s, transform 0.13s;
  backdrop-filter: blur(2px);
}
#VRButton:hover {
  background: var(--pn-gradient-rev);
  transform: scale(1.04);
}

/* Animasyonlar */
@keyframes pesFadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}
@keyframes pesSlideUp {
  from { transform: translateY(50px); opacity: 0;}
  to { transform: translateY(0); opacity: 1;}
}
@keyframes pesZoomIn {
  from { transform: scale(0.8); opacity: 0;}
  to { transform: scale(1); opacity: 1;}
}

/* Mobil Uyumluluk */
@media (max-width: 700px) {
  .menu-content { padding: 1.1rem !important; max-width: 99vw !important; }
  .menu-btn { font-size: 1em !important; padding: 0.9em 1.2em !important; }
  #powerBarContainer { height: 40px !important; min-width: 120px; max-width: 99vw; border-radius: 18px; bottom: 90px;}
  #powerBar, #powerBar::after { border-radius: 18px !important; height: 38px !important; }
  #target { width: 36px !important; height: 36px !important; border-width: 2px !important; }
  #notification { font-size: 1em; padding: 12px 8px; min-width: 120px; }
  #scoreDisplay.ui-panel { font-size: 1em; padding: 8px 12px; }
}