* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  touch-action: none;
}
#grid {
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  user-select: none;
}
.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  contain: layout style;
  will-change: transform;
  transition: transform 0.3s ease-out;
}
#top-bar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#open-github, #toggle {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-family: system-ui, sans-serif;
  font-size: 13px;
  text-decoration: none;
  line-height: 1;
}
#open-github:hover, #toggle:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.65);
}
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5);
  padding: 8px 16px;
}
#footer .social {
  display: flex;
  gap: 10px;
  align-items: center;
}
#footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  vertical-align: middle;
}
#footer a:hover {
  color: rgba(255,255,255,0.9);
}
#footer svg {
  vertical-align: middle;
}
#spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  background: radial-gradient(circle 700px at 50% 50%, transparent 0%, rgba(17,17,17,0.85) 100%);
  -webkit-backdrop-filter: none;
  will-change: background;
  z-index: 1;
}
