:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #111315;
  color: #f8f4e8;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
}

button {
  font: inherit;
}

.shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 214, 94, 0.22), transparent 28%),
    radial-gradient(circle at 78% 4%, rgba(97, 203, 178, 0.18), transparent 26%),
    linear-gradient(145deg, #141316 0%, #1f2324 48%, #101214 100%);
}

.game-card {
  position: relative;
  width: min(100%, 980px);
  height: min(680px, calc(100vh - 36px));
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 214, 0.18);
  border-radius: 8px;
  background: #151719;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: none;
}

.hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.hud > div {
  min-width: 92px;
  padding: 9px 12px 10px;
  border: 1px solid rgba(255, 244, 214, 0.18);
  border-radius: 8px;
  background: rgba(15, 16, 18, 0.56);
  backdrop-filter: blur(12px);
}

.label {
  display: block;
  margin-bottom: 2px;
  color: rgba(248, 244, 232, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.hud strong {
  color: #fff2a8;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1;
}

.banner {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(9, 10, 12, 0.46);
  backdrop-filter: blur(8px);
}

.banner.is-hidden {
  display: none;
}

.banner h1 {
  margin: 0;
  color: #fff3b0;
  font-size: clamp(46px, 12vw, 108px);
  line-height: 0.9;
}

.banner p {
  max-width: 520px;
  margin: 0;
  color: rgba(248, 244, 232, 0.78);
  font-size: clamp(15px, 3vw, 20px);
  line-height: 1.45;
}

.banner button {
  min-width: 150px;
  border: 0;
  border-radius: 8px;
  padding: 13px 24px;
  color: #141414;
  background: #ffe66f;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(255, 230, 111, 0.28);
  cursor: pointer;
}

.banner button:focus-visible {
  outline: 3px solid #59d3bd;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .shell {
    padding: 0;
  }

  .game-card {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .hud {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .hud > div {
    min-width: 0;
    flex: 1;
    padding: 8px 9px;
  }
}
