/* ===== Satyrshade Run – page‑specific stylesheet v1.8 ===== */

body {
  font-family: "Cinzel", serif;
}

/* ----- Layout Container ----- */
.game-shell {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* ----- Back Link ----- */
.back-link {
  display: inline-block;
  margin: 15px 0;
  color: #00cccc;
  text-decoration: none;
  font-weight: bold;
}
.back-link:hover {
  color: #00ffff;
}

/* ----- How to Play Panel ----- */
.game-info {
  max-width: 440px;
  margin: 20px auto;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid #00cccc;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 214, 214, 0.25);
}
.game-info h3 {
  margin: 0 0 6px;
  color: #00cccc;
  font-size: 1.3rem;
}
.game-info ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
}
.game-info li {
  margin-bottom: 4px;
}
.game-info kbd {
  background: #222;
  border: 1px solid #444;
  border-radius: 3px;
  padding: 2px 4px;
}

/* ----- Start UI Bar ----- */
#ui-bar {
  margin: 12px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
#ui-bar input {
  padding: 6px 8px;
  font-size: 1rem;
  background: #111;
  color: #eee;
  border: 1px solid #444;
  border-radius: 4px;
}
#ui-bar button {
  padding: 6px 14px;
  font-weight: bold;
  background: #013535;
  color: #00cccc;
  border: 1px solid #00cccc;
  border-radius: 4px;
  cursor: pointer;
}
#ui-bar button:hover {
  background: #00cccc;
  color: #000;
}

/* ----- Game Canvas ----- */
#game-canvas {
  /* internal res 592×272, display dynamically on mobile */
  width: 1184px;
  height: auto;
  aspect-ratio: 592/272;
  background: #000;
  border: 4px double #00cccc;
  border-radius: 6px;
  display: block;
  margin: 0 auto 12px;
}

/* ----- Mobile Jump Button ----- */
.touch-pad {
  display: none; /* Hidden since tap-to-jump is used */
}

/* ----- Game Over Message ----- */
#gameover {
  margin-top: 12px;
  color: #e6e6e6;
}
#gameover.hidden {
  display: none;
}

/* ----- Section Header (Top Scores) ----- */
.section-title {
  font-size: 1.3rem;
  color: #e6e6e6;
  font-weight: 700;
  text-align: center;
  margin-top: 20px;
}

/* ----- Leaderboard Table ----- */
#lbTable {
  width: 100%;
  max-width: 360px;
  margin: 18px auto 40px;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00cccc;
}
#lbTable th,
#lbTable td {
  padding: 6px 10px;
  border: 1px solid #013535;
  color: #e6e6e6;
}
#lbTable th {
  background: #00cccc;
  color: #000;
}

/* ----- Orientation Prompt ----- */
#orientation-prompt {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: #00cccc;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  text-align: center;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* ----- Mobile Adjustments ----- */
@media (max-width: 900px) {
  #game-canvas {
    width: 100%;
    max-width: none;
    height: auto;
  }
  .game-shell {
    padding: 10px;
  }
  .game-info {
    max-width: 90%;
  }
  #ui-bar {
    flex-direction: column;
    align-items: center;
  }
  #ui-bar input,
  #ui-bar button {
    width: 80%;
    max-width: 300px;
  }
}