@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

* { box-sizing: border-box; font-family: 'MedievalSharp', cursive; }

body {
  margin: 0;
  background: radial-gradient(circle at top, #1b0f0a, #040100);
  color: #f5e6c8;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
}

.game-wrapper {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 5px;
  width: 100%;
  max-width: 900px;
}

/* Společný styl pro všechny sidebary */
.sidebar {
  background: linear-gradient(145deg, #2a1e0f, #1e1408);
  border: 3px solid #ffd700;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 30px rgba(255,215,0,0.3);
}

/* Levé menu – ovládání */
.sidebar.controls {
  width: 160px;
  font-size: 14px;
  color: #ffe799;
}
.sidebar.controls h2 {
  font-size: 16px;
  color: #ffd700;
  text-shadow: 0 0 4px #000;
  margin-bottom: 8px;
}
.sidebar.controls ul {
  padding-left: 15px;
  margin: 0;
}
.sidebar.controls li {
  margin-bottom: 6px;
}

/* Pravý sidebar – Next pieces */
.sidebar.next-pieces {
  width: 110px;
}
.sidebar.next-pieces h2 {
  font-size: 16px;
  color: #ffd700;
  text-shadow: 0 0 4px #000;
  margin-top: 0;
}
.sidebar.next-pieces canvas {
  background: radial-gradient(circle at center, #0a0502, #000);
  border: 2px solid #8b5a2b;
  margin-bottom: 5px;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  box-shadow: inset 0 0 12px rgba(255,200,100,0.4);
}

/* Hlavní herní panel */
.game-panel {
  background: linear-gradient(145deg, #2a160c, #3c2310);
  border: 4px solid #ffd700;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.5), 0 0 120px rgba(255, 200, 100, 0.2) inset;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

h1 { 
  font-size: 32px; 
  margin-bottom: 10px; 
  color: #ffd700; 
  text-shadow: 0 0 12px #ffcc00, 0 0 20px #ff9f00;
  animation: glow 2s infinite alternate;
}
@keyframes glow {
  0% { text-shadow: 0 0 12px #ffcc00, 0 0 20px #ff9f00; }
  100% { text-shadow: 0 0 25px #ffd700, 0 0 40px #ffcc00; }
}

.info { 
  display: flex; 
  justify-content: space-between; 
  width: 100%; 
  font-size: 14px; 
  margin-bottom: 8px; 
  text-shadow: 0 0 4px #000;
}

canvas#game {
  background: radial-gradient(circle at center, #0a0502, #000000);
  border: 3px solid #ffd700;
  box-shadow: inset 0 0 25px rgba(255, 200, 50, 0.6);
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 20;
  max-height: 80vh;
  border-radius: 8px;
}

button {
  margin-top: 8px; 
  padding: 10px 20px;
  background: linear-gradient(145deg, #5f3b10, #3b1f06);
  color: #ffd700; 
  border: 2px solid #ffd700; 
  border-radius: 12px;
  font-size: 16px; 
  cursor: pointer; 
  box-shadow: 0 0 12px rgba(255, 200, 50, 0.7);
  transition: all 0.2s ease-in-out;
}
button:hover { 
  background: linear-gradient(145deg, #8a5e2c, #5b3210);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 180, 0, 0.7) inset;
  transform: translateY(-2px) scale(1.05);
}

/* Mobilní ovládání */
.mobile-controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
}
.mobile-controls button {
  flex: 1;
  margin: 2px;
  padding: 12px;
  font-size: 18px;
  border-radius: 8px;
  border: 2px solid #ffd700;
  background: linear-gradient(145deg, #5f3b10, #3b1f06);
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255,200,50,0.5);
}
@media (min-width:768px) { .mobile-controls { display: none; } }

