:root {
  color-scheme: dark;
  --bw-bg: #05050c;
  --bw-accent: #e94560;
  --bw-glass: rgba(21, 21, 42, 0.55);
  --bw-border: rgba(138, 138, 196, 0.4);
}

@font-face {
  font-family: "Unbounded";
  src: url("vendor/fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("vendor/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bw-bg);
  font-family: "Space Grotesk", "Segoe UI", "Helvetica Neue", sans-serif;
}

#game {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 12px;
}

#game canvas {
  display: block;
  /* !important overrides Phaser's inline canvas.style (set to the game's
     HiDPI pixel size); the backing store stays BAKE_SCALE x for crispness. */
  width: 500px !important;
  height: 800px !important;
}

#bw-wrap {
  position: relative;
  width: 500px;
  height: 800px;
  transform-origin: center center;
}

.bw-submit-input {
  position: absolute;
  left: 40px;
  top: 748px;
  width: 300px;
  height: 40px;
  background: var(--bw-glass);
  border: 1px solid var(--bw-border);
  border-radius: 10px;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 0 12px;
}

.bw-submit-input::placeholder {
  color: #6a6a9a;
}

.bw-submit-input:focus {
  outline: none;
  border-color: var(--bw-accent);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.35);
}

.bw-submit-button {
  position: absolute;
  left: 360px;
  top: 748px;
  width: 100px;
  height: 40px;
  background: rgba(233, 69, 96, 0.14);
  border: 1px solid var(--bw-accent);
  border-radius: 10px;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: box-shadow 120ms ease, background 120ms ease;
}

.bw-submit-button:hover {
  background: rgba(233, 69, 96, 0.28);
  box-shadow: 0 0 14px rgba(233, 69, 96, 0.45);
}

.bw-submit-button:active {
  transform: scale(0.97);
}

.bw-mute {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bw-glass);
  border: 1px solid var(--bw-border);
  border-radius: 12px;
  color: #c9c9e0;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.bw-mute svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bw-mute .bw-mute-slash {
  display: none;
}

.bw-mute.is-muted .bw-mute-waves {
  display: none;
}

.bw-mute.is-muted .bw-mute-slash {
  display: block;
}

.bw-mute:hover {
  border-color: var(--bw-accent);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.35);
}
