:root {
  --bg: #745757;
  --key: #343434;
  --key-border: #909090;
  --teal: #34ac90;
  --mustard: #ceac74;
  --mustard-light: #ffce74;
  --white: #ffffff;
  --container-width: 900px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  font-family: Consolas, monospace;
  color: var(--white);
  background-color: var(--bg);
}

.wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px 40px;
}

header {
  text-align: left;
  padding: 16px 0 6px;
}

.back-link {
  margin: 0;
  font-weight: bold;
}

.back-link a {
  padding: 2px 4px;
}

a { color: var(--mustard-light); }
a:hover { background: var(--mustard-light); color: var(--bg); }

.hero {
  text-align: center;
  margin: 10px 0 30px;
}

.hero img {
  max-width: 646px;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 672;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 3px solid var(--key-border);
}

.hero .tagline {
  margin-top: 16px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--mustard-light);
}

.panel {
  background: var(--key);
  border: 2px solid var(--key-border);
  padding: 20px 24px;
  margin: 0 0 24px;
  text-align: left;
}

.panel h2 {
  margin-top: 0;
  color: var(--teal);
  border-bottom: 1px solid var(--key-border);
  padding-bottom: 8px;
}

.panel p { line-height: 1.55; }

.tile-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
  justify-content: center;
}

.tile {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
  border: 2px solid var(--key-border);
  border-radius: 4px;
}

.tile.teal { background: var(--teal); color: var(--white); }
.tile.mustard { background: var(--mustard); color: var(--white); }
.tile.grey { background: var(--key-border); color: var(--white); }

.panel-shot {
  margin: 18px 0 4px;
  text-align: center;
}

.panel-shot img {
  max-width: 644px;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 672;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 2px solid var(--key-border);
}

.panel-shot figcaption {
  margin-top: 8px;
  font-size: 0.8em;
  color: var(--mustard-light);
}

table.controls {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table.controls th, table.controls td {
  border: 1px solid var(--key-border);
  padding: 8px 10px;
  text-align: left;
  font-size: 0.92em;
}

table.controls th {
  background: var(--teal);
  color: #0d2a22;
}

#download-section {
  text-align: center;
}

.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: var(--teal);
  color: var(--bg);
  font-weight: bold;
  text-decoration: none;
  border: 2px solid var(--key-border);
}

.download-btn:hover {
  background: var(--mustard);
  color: var(--bg);
}

.download-count {
  margin-top: 10px;
  font-size: 0.85em;
  opacity: 0.85;
}

footer {
  text-align: center;
  padding: 20px 0 10px;
  font-size: 0.9em;
}

footer hr {
  border: none;
  border-top: 1px solid var(--key-border);
  margin-bottom: 14px;
}

@media (max-width: 700px) {
  .panel { padding: 16px; }
}

.word-green { color: var(--teal); font-weight: bold; }
.word-yellow { color: var(--mustard-light); font-weight: bold; }
