:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f2f0ec;
  color: #171717;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #f2f0ec; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(115deg, transparent 58%, rgba(210, 20, 35, .07) 58.1%, transparent 82%);
  pointer-events: none;
  z-index: 0;
}
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
#ui {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(300px, 620px) minmax(260px, 420px);
  align-content: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(24px, 5vw, 72px);
  pointer-events: none;
}
.hero, .controls, .notice { pointer-events: auto; }
.eyebrow { margin: 0 0 14px; letter-spacing: .22em; font-size: 12px; font-weight: 800; }
h1 { margin: 0; font-size: clamp(52px, 8vw, 112px); line-height: .84; letter-spacing: -.07em; font-weight: 950; }
h1 span { color: #d51123; display: block; }
.lead { margin: 30px 0 24px; font-size: clamp(15px, 1.6vw, 20px); line-height: 1.8; font-weight: 620; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
button {
  border: 0;
  min-width: 180px;
  padding: 15px 22px;
  border-radius: 3px;
  background: #d51123;
  color: #fff;
  font: inherit;
  font-weight: 900;
  letter-spacing: .05em;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(213, 17, 35, .2);
}
button.secondary { background: #1a1a1a; box-shadow: none; }
button:disabled { opacity: .38; cursor: not-allowed; }
.support { font-size: 12px; min-height: 1.5em; margin: 12px 0 0; color: #595959; }
.controls { display: grid; gap: 1px; background: rgba(20,20,20,.12); border: 1px solid rgba(20,20,20,.12); }
.controls div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 17px; background: rgba(255,255,255,.76); backdrop-filter: blur(12px); }
.controls b { font-size: 13px; }
.controls span { font-size: 13px; color: #4f4f4f; }
.notice {
  position: fixed;
  left: clamp(18px, 4vw, 58px);
  bottom: 18px;
  max-width: 670px;
  font-size: 11px;
  color: #555;
}
#desktop-hud { position: fixed; inset: 0; z-index: 4; pointer-events: none; color: #111; }
#desktop-status { position: absolute; left: 20px; top: 18px; padding: 10px 13px; background: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; }
.crosshair { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 24px; font-weight: 300; }
#fatal { position: fixed; z-index: 10; inset: 20px; padding: 24px; overflow: auto; background: #fff; color: #a00012; white-space: pre-wrap; font-family: ui-monospace, monospace; }
body.playing #ui { display: none; }
@media (max-width: 850px) {
  #ui { grid-template-columns: 1fr; align-content: start; overflow-y: auto; }
  .controls { max-width: 560px; }
  h1 { font-size: clamp(52px, 16vw, 88px); }
}
