* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #020713;
  color: #f8fbff;
  font-family: "Courier New", Courier, monospace;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.game-shell {
  position: relative;
  width: min(100vw, 1536px);
  height: min(100vh, 960px);
  display: grid;
  grid-template-rows: 1fr auto;
  background: #030816;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #020714;
}

.controls {
  min-height: 32px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-top: 2px solid #083a76;
  background: #050b18;
  color: #8fdfff;
  font-size: clamp(10px, 1.4vw, 14px);
  line-height: 1.2;
  text-align: center;
  flex-wrap: wrap;
}

.desktop-only-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(2, 7, 19, 0.28), rgba(2, 7, 19, 0.68)),
    url("../assets/refined/thinkai-playable-bg.png") center / cover no-repeat,
    #020713;
}

.desktop-only-message {
  width: min(92vw, 620px);
  padding: 28px 30px 30px;
  border: 2px solid rgba(45, 238, 255, 0.72);
  background: rgba(2, 8, 22, 0.78);
  box-shadow:
    0 0 0 1px rgba(143, 223, 255, 0.24) inset,
    0 0 34px rgba(0, 217, 255, 0.34),
    0 18px 56px rgba(0, 0, 0, 0.52);
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 217, 255, 0.45);
}

.desktop-only-kicker {
  margin: 0 0 12px;
  color: #2deeff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.desktop-only-message h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(24px, 7vw, 42px);
  line-height: 1.08;
}

.desktop-only-message p {
  margin: 16px 0 0;
  color: #b9eaff;
  font-size: 16px;
  line-height: 1.45;
}

.desktop-only-message a {
  display: inline-block;
  margin-top: 22px;
  color: #2deeff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(45, 238, 255, 0.76);
}

.desktop-only-message a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

body.mobile-blocked {
  overflow: hidden;
}

body.mobile-blocked canvas,
body.mobile-blocked .controls {
  visibility: hidden;
}

body.mobile-blocked .desktop-only-overlay {
  display: grid;
}
