:root {
  --bg: #07060a;
  --pink: #e05a96;
  --ink: #f4e8ee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  height: 100%;
  overflow: hidden;
}
#wrap {
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--pink);
}
.bar a { color: var(--ink); text-decoration: none; }
.bar button {
  background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 16px;
}
#game {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #0b0a12;
  flex: 1;
  object-fit: contain;
}
#hud {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0.8rem 0.2rem;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--pink);
}
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,6,10,0.86);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 0.8rem;
  z-index: 5;
}
#overlay.show { display: flex; }
.title-cat { width: 140px; height: 140px; image-rendering: pixelated; border-radius: 8px; }
h1 { font-family: "Press Start 2P", monospace; font-size: 18px; line-height: 1.5; }
#overlay p { color: #cbb7c0; max-width: 26rem; }
#start {
  font-family: "Press Start 2P", monospace;
  background: var(--pink);
  color: #1a0b12;
  border: 0;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
}
.tiny { font-size: 12px; }
#pad {
  display: none;
  gap: 0.5rem;
  padding: 0.6rem;
  justify-content: center;
}
#pad button {
  min-width: 72px;
  min-height: 48px;
  background: #1b1520;
  color: var(--ink);
  border: 2px solid var(--pink);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}
@media (max-width: 800px) {
  #pad { display: flex; }
  #hint { display: none; }
  h1 { font-size: 14px; }
}
