/* ../tmp/dreamable-publish-1795473011456-l7k9kg/src/index.css */
:root {
  --bg: #0b0d14;
  --surface: #141826;
  --border: #262c42;
  --text: #eef1fb;
  --text-dim: #8b93b0;
  --orange: #ff8c1a;
  --blue: #2fa8ff;
  --danger: #ff4d5e;
  --font-display: "Bangers", cursive;
  --font-text: "Rajdhani", sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
}
body {
  margin: 0;
  background:
    radial-gradient(
      1200px 700px at 50% -10%,
      #1a2036 0%,
      var(--bg) 60%);
  color: var(--text);
  font-family: var(--font-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  -webkit-font-smoothing: antialiased;
}
.display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.game-shell {
  width: min(1024px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  touch-action: none;
}
.hud-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hud-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn {
  font-family: var(--font-text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}
.btn:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background:
    linear-gradient(
      180deg,
      #ffa040,
      #ff7a00);
  border-color: #ffb35c;
  color: #1a0e00;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.overlay-card {
  background: rgba(10, 12, 20, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  text-align: center;
  max-width: min(80vw, 460px);
  max-height: 80%;
  overflow: auto;
  animation: pop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.overlay-instr {
  margin-top: 20px;
}
.touch-controls {
  display: none;
}
@media (max-width: 820px), (pointer: coarse) {
  .touch-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
  }
  .touch-controls .tc {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 12px 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }
  .touch-controls .tc:active {
    background: var(--orange);
    color: #1a0e00;
  }
  .overlay-instr {
    display: none;
  }
  .overlay-card {
    padding: 16px 18px;
  }
  .overlay-card h1 {
    font-size: 2.2rem !important;
  }
  .overlay-card h2 {
    font-size: 2.6rem !important;
  }
  .overlay-card p {
    font-size: 0.85rem !important;
  }
  .overlay-wrap {
    align-items: flex-start;
    padding-top: 10px;
  }
  .overlay-wrap .overlay-card {
    max-width: min(80vw, 340px);
    padding: 10px 14px;
  }
  .overlay-wrap .overlay-card h1 {
    font-size: 1.5rem !important;
  }
  .overlay-wrap .overlay-card p {
    font-size: 0.72rem !important;
  }
  .overlay-wrap .overlay-card .btn {
    padding: 7px 14px;
    font-size: 0.72rem;
  }
  .overlay-wrap .overlay-card .mt-5 {
    margin-top: 0.5rem !important;
  }
  body {
    align-items: stretch;
    padding: 10px;
  }
  .game-shell {
    min-height: 100dvh;
    justify-content: center;
  }
  canvas {
    width: auto;
    max-width: 100%;
    height: min(58dvh, 62vw * 0.5625 * 10);
    max-height: 58dvh;
    margin: 0 auto;
  }
  .touch-controls {
    padding-bottom: 2px;
  }
  .touch-controls .tc {
    padding: 10px 4px;
    font-size: 0.75rem;
  }
  .kbd-hints {
    display: none !important;
  }
}
@media (max-width: 820px) {
  .overlay-card {
    padding: 14px 18px;
    max-width: min(70vw, 380px);
  }
  .overlay-card h1 {
    font-size: 2rem !important;
  }
  .overlay-card h2 {
    font-size: 2.4rem !important;
  }
  .overlay-card p {
    font-size: 0.8rem !important;
  }
  .overlay-card .btn {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
  .overlay-card .mt-5 {
    margin-top: 0.75rem !important;
  }
  .overlay-card .mb-5 {
    margin-bottom: 0.75rem !important;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hud-fill,
  .btn,
  .overlay-card {
    transition: none;
    animation: none;
  }
}
