:root {
  color-scheme: dark;
  --panel: rgba(10, 18, 14, 0.86);
  --line: rgba(255, 214, 97, 0.34);
  --text: #f4f7df;
  --gold: #f7cc4d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0a1110;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.demo-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #0b1512;
  background-size: 32px 32px;
}

#demoCanvas {
  width: min(100%, calc(100vh * 1.6 - 72px));
  max-width: 1024px;
  aspect-ratio: 16 / 10;
  display: block;
  border: 2px solid rgba(248, 210, 92, 0.52);
  border-radius: 6px;
  background: #c5763d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  image-rendering: pixelated;
}

#demoCanvas:focus {
  outline: 2px solid rgba(255, 230, 120, 0.72);
  outline-offset: 3px;
}

.demo-hud {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 210, 92, 0.24);
  border-radius: 6px;
  background: var(--panel);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.demo-hud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(248, 210, 92, 0.4);
  border-radius: 5px;
  color: #071014;
  background: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .demo-shell {
    padding: 10px;
  }

  .demo-hud {
    left: 14px;
    right: 14px;
    bottom: 12px;
  }
}
