:root {
  --os-cyan: #46d7d7;
  --os-bone: #dfcfaa;
  --os-iron: #11191e;
  --os-line: #365158;
  --os-red: #cf6666;
}

[hidden] { display: none !important; }
.game-shell { max-width: 1200px; }
.ossuary-cabinet {
  width: min(100%, 1152px);
  margin: 1rem auto 0;
  padding: 8px;
  border: 1px solid #287f82;
  background: linear-gradient(180deg, #11191d, #050809);
  box-shadow: 0 0 28px rgba(0, 204, 204, .16), inset 0 0 24px #000;
}
.ossuary-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 310px) 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.ossuary-toolbar label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  color: #9dc7c8;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ossuary-toolbar input {
  min-width: 0;
  padding: .45rem .55rem;
  border: 1px solid #2c7276;
  background: #030708;
  color: #fff;
  font: inherit;
  text-transform: none;
}
.ossuary-toolbar input[aria-invalid="true"] { border-color: var(--os-red); }
.ossuary-toolbar p { margin: 0; color: #9ab0b3; text-align: center; font-size: .82rem; }
.fullscreen-control {
  display: grid;
  justify-items: stretch;
  gap: 3px;
}
.fullscreen-control small {
  color: #8fb6b8;
  font-size: .66rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ossuary-toolbar button,
.keeper-lock button {
  border: 1px solid #2d9ca0;
  background: #102428;
  color: #d9ffff;
  padding: .55rem .8rem;
  font: 700 .78rem Cinzel, serif;
  cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer;
}
.ossuary-toolbar button:hover,
.keeper-lock button:hover { background: #18383b; box-shadow: 0 0 12px rgba(70,215,215,.25); }
.ossuary-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #24383e;
  background: #070b0e;
}
#gameFrame { display: block; width: 100%; height: 100%; border: 0; background: #090d12; }
.keeper-lock {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 4;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 2rem;
  background: radial-gradient(circle, rgba(13,34,37,.86), rgba(2,5,7,.96) 68%);
  text-align: center;
}
.keeper-lock strong { color: var(--os-bone); font: 700 clamp(1.35rem, 3vw, 2.2rem) Cinzel, serif; letter-spacing: .08em; }
.keeper-lock span { color: #a9c6c6; }
.credits { width: min(100%, 1152px); margin: 1rem auto 0; color: #9fb8b9; font-size: .85rem; }
.credits summary { color: #bceced; }
.game-divider { margin: 2rem 0 1.25rem; border: 0; border-top: 1px solid rgba(70,215,215,.35); }
.leaderboard h2 { color: #b8eeee; text-align: center; }
.leaderboard > p { color: #8eabad; text-align: center; }
#ossuaryBoard { width: 100%; border-collapse: collapse; border: 1px solid #2b7478; background: rgba(3,10,12,.85); }
#ossuaryBoard th, #ossuaryBoard td { padding: .58rem; border: 1px solid #25585c; text-align: left; }
#ossuaryBoard th { background: rgba(50,174,176,.12); color: #b9eded; }
#ossuaryBoard td:first-child { width: 3rem; text-align: center; }
#ossuaryBoard td:nth-child(n+3) { text-align: right; }
.empty-cell { color: #779396; font-style: italic; text-align: center !important; }

@media (max-width: 900px) {
  .ossuary-toolbar { grid-template-columns: 1fr auto; }
  .ossuary-toolbar p { grid-column: 1 / -1; grid-row: 2; }
}
