* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

body {
  background: #11141a;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding: 12px;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #f7d02c;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span {
  font-size: 10px;
  background: #f80000;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.controls-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 11px;
  color: #94a3b8;
  background: #1e293b;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #334155;
}

.mute-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  font-size: 14px;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mute-btn:hover {
  background: #334155;
}

.game-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: calc(100vh - 90px);
  max-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px #334155;
  overflow: hidden;
  background: #4ec0ca;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.game-footer {
  margin-top: 8px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.game-footer strong {
  color: #e2e8f0;
}

@media (max-height: 600px) {
  .game-header, .game-footer {
    display: none;
  }
  .game-container {
    max-height: 100vh;
    border-radius: 0;
  }
}
