
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #070714;
    color: white;
    font-family: Arial, sans-serif;
}

.game {
    width: 92%;
    max-width: 900px;
    text-align: center;
}

h1 {
    font-size: clamp(38px, 8vw, 65px);
    letter-spacing: 8px;
}

h1 span {
    color: #00eaff;
}

.subtitle {
    color: #888;
    letter-spacing: 5px;
    margin: 12px 0 35px;
    font-size: 12px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #00eaff;
    letter-spacing: 2px;
}

canvas {
    display: block;
    width: 100%;
    background: #101027;
    border: 2px solid #00eaff;
    border-radius: 12px;
    box-shadow: 0 0 30px #00eaff33;
}

#message {
    margin: 22px 0;
    color: #aaa;
}

button {
    padding: 15px 40px;
    background: #00eaff;
    border: none;
    color: #070714;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: white;
    box-shadow: 0 0 25px #00eaff;
    transform: translateY(-3px);
}

.hint {
    margin-top: 25px;
    color: #666;
    font-size: 12px;
    letter-spacing: 2px;
}

.game-info { gap: 14px; flex-wrap: wrap; font-size: clamp(9px, 2vw, 14px); }
.game-info span { white-space: nowrap; }
.game-info b { color: #fff; }
.game-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.game-actions button { min-height: 48px; border-radius: 999px; }
#pauseButton { border: 1px solid #00eaff; background: transparent; color: #00eaff; }
#pauseButton:hover:not(:disabled) { background: #00eaff; color: #070714; }
#pauseButton:disabled { opacity: .4; cursor: not-allowed; }
canvas { aspect-ratio: 2 / 1; touch-action: manipulation; }
@media (max-width: 600px) {
  body { align-items: flex-start; padding: 13vh 0 80px; }
  .game { width: calc(100% - 28px); }
  h1 { letter-spacing: 4px; }
  .subtitle { margin: 8px 0 25px; letter-spacing: 3px; }
  .game-info { justify-content: space-around; margin-bottom: 10px; letter-spacing: 1px; }
  canvas { border-radius: 8px; }
  #message { min-height: 38px; margin: 15px 0 8px; font-size: 12px; line-height: 1.5; }
  .game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .game-actions button { padding: 13px 10px; font-size: 10px; letter-spacing: 1px; }
  .hint { margin-top: 17px; font-size: 9px; line-height: 1.7; letter-spacing: 1px; }
}
