/* Center the whole game on the page */
body {
  background: #111;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Main game wrapper */
.maingame {
  width: 384px;        /* recommended width */
  text-align: center;
}

/* Main GIF: perfect square */
.main {
  width: 100%;
  height: 384px;       /* same as width = 1:1 */
  display: block;
}

/* UI bar: same width, short height (3:1 ratio) */
.ui {
  width: 100%;
  height: 128px;       /* 384 / 3 = 128 */
  background: black;
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Timing GIF fills the UI bar */
.uiGif {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Action button */
button {
  margin-top: 20px;
  font-family: 'VT323', monospace;
  font-size: 28px;
  padding: 10px 20px;
  background: #222;
  color: #00ff00;
  border: 2px solid #00ff00;
  cursor: pointer;
}

button:hover {
  background: #333;
}
