:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #0c0b18;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, #28234d 0, #17142d 36%, #090812 82%),
    #090812;
}

.game-shell {
  width: min(96vw, 1280px);
  text-align: center;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid #f6d365;
  border-radius: 10px;
  background: #73c8f2;
  box-shadow: 0 24px 70px rgb(0 0 0 / 55%);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
}

.runtime-note {
  margin: 10px 0 0;
  color: #aaa6c9;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.inferno-auth-dialog {
  width: min(92vw, 520px);
  padding: 0;
  color: #f7f3ff;
  border: 2px solid #ff765f;
  border-radius: 20px;
  background: linear-gradient(145deg, #17142d, #0b0d1d 72%);
  box-shadow: 0 28px 90px rgb(0 0 0 / 70%), 0 0 34px rgb(255 101 79 / 24%);
}

.inferno-auth-dialog::backdrop {
  background: rgb(3 5 14 / 82%);
  backdrop-filter: blur(6px);
}

.inferno-auth-form {
  display: grid;
  gap: 14px;
  padding: 32px;
}

.inferno-auth-eyebrow,
.inferno-auth-description,
.inferno-auth-status {
  margin: 0;
}

.inferno-auth-eyebrow {
  color: #ff9c8d;
  font: 900 13px/1.2 "Courier New", monospace;
  letter-spacing: 0.12em;
}

.inferno-auth-form h2 {
  margin: 0;
  font-size: 28px;
}

.inferno-auth-description {
  color: #bdb9d2;
  font-size: 14px;
  line-height: 1.7;
}

.inferno-auth-input {
  width: 100%;
  padding: 14px 16px;
  color: #fff;
  border: 1px solid #655f86;
  border-radius: 12px;
  outline: none;
  background: #0a0d1b;
  font: 700 18px/1.2 "Courier New", monospace;
  letter-spacing: 0.08em;
}

.inferno-auth-input:focus {
  border-color: #ff765f;
  box-shadow: 0 0 0 3px rgb(255 101 79 / 18%);
}

.inferno-auth-status {
  min-height: 20px;
  color: #a8b3c7;
  font-size: 13px;
}

.inferno-auth-status[data-state="error"] {
  color: #ff8f9f;
}

.inferno-auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.inferno-auth-button {
  min-width: 112px;
  padding: 11px 18px;
  border: 1px solid #655f86;
  border-radius: 999px;
  color: #e8e4f3;
  background: #302b49;
  cursor: pointer;
  font: 800 14px/1.2 "Microsoft YaHei", sans-serif;
}

.inferno-auth-submit {
  color: #2d100c;
  border-color: #ffd0c8;
  background: linear-gradient(135deg, #ff9c8d, #ff654f);
}

.inferno-auth-button:disabled {
  cursor: wait;
  opacity: 0.55;
}
