@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rye&display=swap');

:root {
  --bg: #ffffff;
  --ink: #4f4f52;
  --line: #6a6a6d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  padding: 2in 24px 24px;
}

.page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.game-shell {
  width: min(96vw, 900px);
  display: grid;
  place-items: center;
  gap: 12px;
}

#game {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border: 0;
  outline: none;
  touch-action: manipulation;
  display: none;
}

#start-link,
#end-link {
  display: none;
  color: var(--ink);
  text-decoration: none;
  font-family: "Press Start 2P", "Courier New", Courier, monospace;
  font-size: clamp(22px, 3vw, 44px);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  line-height: 1.2;
}

#countdown-word {
  display: none;
  margin: 8px 0 0;
  color: var(--ink);
  font-family: "Press Start 2P", "Courier New", Courier, monospace;
  font-size: clamp(16px, 2vw, 28px);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

#start-link:focus-visible,
#start-link:hover,
#end-link:focus-visible,
#end-link:hover {
  opacity: 0.7;
}
