/* ——— page-level layout ——— */
.game-shell {
  max-width: 1200px;       /* match other pages */
  margin: 0 auto;
  position: relative;
}

/* decorative runestones (hide on mobile) */
.orb-left,
.orb-right {
  position: absolute;
  top: 40%;
  width: 300px;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .9;
}
/* moved half-inside the container instead of fully outside */
.orb-left  { left: 50px; }
.orb-right { right: 50px; }

@media (max-width: 900px) {
  .orb-left,
  .orb-right {
    display: none;
  }
}

/* ——— UI bar ——— */
#ui-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
#ui-bar input {
  font: inherit;
  font-size: 1rem;
  padding: 6px 12px;
  width: 200px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #111;
  color: #e6e6e6;
}
#ui-bar input::placeholder {
  color: #555;
}
#ui-bar button {
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  padding: 8px 22px;
  border: 1px solid #00d6d6;
  border-radius: 4px;
  background: #013535;
  color: #00d6d6;
  cursor: pointer;
  transition: background .15s, color .15s;
}
#ui-bar button:hover:not(:disabled) {
  background: #00d6d6;
  color: #000;
}
#ui-bar button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ——— game frame ——— */
#gameCanvas {
  display: block;
  margin: 0 auto;
  border: 4px double #00d6d6;
  border-radius: 6px;
  box-shadow: inset 0 0 10px rgba(0,214,214,.4);
  background: #000;
}

/* ——— How-to panel (matches Crypt Sweeper) ——— */
.game-info {
  max-width: 440px;
  margin: 22px auto;
  background: rgba(15,15,15,.9);
  border: 1px solid #00d6d6;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,214,214,.25);
}
.game-info h3 {
  margin: 0 0 6px;
  color: #00d6d6;
  font-size: 1.3rem;
}
.game-info p {
  margin: 0 0 10px;
  color: #a0a0a0;
  font-style: italic;
  font-size: .95rem;
}
.game-info ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
  font-size: .9rem;
  line-height: 1.3;
}
.game-info li {
  margin-bottom: 4px;
}

/* ——— leaderboard ——— */
#lbTable {
  width: 100%;
  max-width: 360px;
  margin: 18px auto 40px;
  border-collapse: collapse;
  font-size: .9rem;
  background: rgba(17,17,17,.92);
  border: 1px solid #00d6d6;
}
#lbTable th,
#lbTable td {
  padding: 8px 10px;
  border: 1px solid #013535;
}
#lbTable th {
  background: #00d6d6;
  color: #000;
  font-weight: 700;
}
#lbTable tr:nth-child(even) {
  background: rgba(255,255,255,.04);
}

/* ——— mobile scaling ——— */
@media (max-width: 600px) {
  .game-shell {
    padding: 0 10px;
  }
  #gameCanvas {
    width: 100%;
    height: auto;
  }
}
