:root {
  color-scheme: dark;
  font-family: "Baskerville Old Face", "Goudy Old Style", "Palatino Linotype", Georgia, serif;
  background: #050505;
  color: #ddd5c8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(63, 58, 53, 0.16), transparent 26%),
    linear-gradient(180deg, #0d0d0e 0%, #040404 100%);
}

body {
  min-height: 100vh;
}

button {
  font: inherit;
}

.app-shell {
  width: 100vw;
  height: 100vh;
}

.game-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: #060606;
}

.immersive-hud {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(236, 232, 224, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hud-left {
  left: 18px;
}

.hud-right {
  right: 18px;
}

.hud-corner strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: inherit;
}

.lives-display {
  display: flex;
  align-items: center;
  gap: 6px;
}

.life-icon {
  display: inline-block;
  font-size: 1.55rem;
  line-height: 1;
  color: #cf3f4f;
  text-shadow:
    0 0 8px rgba(207, 63, 79, 0.18),
    0 1px 0 rgba(255, 218, 223, 0.15);
}

.playfield-frame {
  width: 100%;
  height: 100%;
}

.game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

@media (max-width: 760px) {
  .immersive-hud {
    top: 10px;
  }

  .hud-left {
    left: 12px;
  }

  .hud-right {
    right: 12px;
  }

  .hud-corner {
    gap: 12px;
  }

  .hud-corner strong {
    font-size: 1.18rem;
  }

  .life-icon {
    font-size: 1.18rem;
  }
}
