* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a130b;
  font-family: "Share Tech Mono", monospace;
  color: #f4e6c4;
}

canvas#game {
  display: block;
  position: fixed;
  inset: 0;
}

.screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(30, 18, 6, 0.55), rgba(10, 6, 2, 0.88));
  padding: 16px;
  z-index: 10;
}
.screen.visible { display: flex; }

.panel {
  max-width: 640px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  padding: 28px 30px;
  border: 2px solid #c9953f;
  background: linear-gradient(180deg, rgba(48, 34, 14, 0.94), rgba(26, 18, 8, 0.94));
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5), 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: pop 0.35s ease-out;
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }

h1 {
  font-family: "Black Ops One", Impact, sans-serif;
  font-weight: normal;
  font-size: clamp(38px, 9vw, 72px);
  letter-spacing: 3px;
  color: #f3c766;
  text-shadow: 3px 3px 0 #7a3b0e, 6px 6px 0 rgba(0, 0, 0, 0.5);
  line-height: 1;
}
h1 span { color: #e8562a; }
h2 {
  font-family: "Black Ops One", Impact, sans-serif;
  font-weight: normal;
  font-size: clamp(30px, 7vw, 52px);
  color: #f3c766;
  text-shadow: 3px 3px 0 #7a3b0e;
  margin-bottom: 12px;
}
h2.bad { color: #ff6a4a; }

.sub {
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c9a46a;
  margin: 8px 0 18px;
  font-size: 14px;
}

.brief { text-align: left; font-size: 15px; line-height: 1.5; margin-bottom: 16px; }
.brief b { color: #ffd27a; }
.brief ol { margin: 8px 0 0 24px; }

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  text-align: left;
  font-size: 13px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(201, 149, 63, 0.35);
  margin-bottom: 12px;
}
@media (max-width: 520px) { .controls { grid-template-columns: 1fr; } }

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 5px;
  margin-right: 2px;
  font-family: inherit;
  font-size: 12px;
  text-align: center;
  color: #1a130b;
  background: #e9d3a3;
  border-radius: 3px;
  box-shadow: 0 2px 0 #8a6a35;
}

.tip { font-size: 13px; color: #c9a46a; margin-bottom: 18px; line-height: 1.5; }

.stats { font-size: 17px; line-height: 1.8; margin: 10px 0 20px; }
.stats b { color: #ffd27a; }

button {
  font-family: "Black Ops One", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: #1a130b;
  background: linear-gradient(180deg, #f3c766, #d68f2a);
  border: none;
  padding: 12px 30px;
  cursor: pointer;
  box-shadow: 0 4px 0 #7a3b0e;
  transition: transform 0.1s;
}
button:hover { transform: translateY(-2px); }
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #7a3b0e; }
button small { font-family: "Share Tech Mono", monospace; font-size: 12px; letter-spacing: 0; }
