/* Carved Stone × Forged Brass × Voxel Drafting Table UI
 * Guided by DESIGN.md, antislop-ui, antislop-layoutmobile, audit-ai-design-slop,
 * better-ui, better-motion, better-colors, and better-typography:
 * - Zero frosted glassmorphism (no backdrop-filter blur)
 * - Architectural 2px–3px beveled carved-stone geometry (zero puffy SaaS pill cards)
 * - Restrained 3-core + 1-magic palette: Slate Stone, Parchment Ivory, Forged Brass, Shadow-Core Cyan
 * - Glow reserved strictly for active magic states (Guard/Parry, Boss Phase 2, Stagger/Riposte, Interact Ready)
 * - Hover gated behind @media (hover: hover); press scale 0.96 over 150ms; explicit transitions only
 */

:root {
  /* Carved Slate Stone (Base) */
  --stone-ink: #0f1218;
  --stone-base: #171a22;
  --stone-deep: #10131a;
  --stone-raised: #232834;
  --stone-edge: #2d3342;
  --stone-bevel-top: rgba(240, 231, 213, 0.14);
  --stone-ledge: #080a0f;

  /* Warm Parchment Ivory (Ink) */
  --ink-main: #f0e7d5;
  --ink-muted: #9c9689;
  --ink-dim: #6f6a5f;

  /* Forged Brass (Structural Craft Accent) */
  --brass: #d6a646;
  --brass-bright: #e7be6a;
  --brass-dim: #7d5f28;
  --brass-dark: #4f3b16;

  /* Shadow-Core Cyan (Active Magic Signal Only) */
  --soul-cyan: #3bd8ec;

  /* Restrained Combat Signals */
  --vital-green: #45b870;
  --vital-amber: #cf8a32;
  --crimson: #cc4444;
  --crimson-enrage: #e8485c;
  --xp-slate: #8870c9;
  --trap-rust: #e07b39;
  --chest-gem: #d45cc8;

  /* Radii & Motion */
  --radius-outer: 3px;
  --radius-inner: 2px;
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

/* Guarantee HTML [hidden] always wins over display: flex / inline-flex / grid */
[hidden],
.sig-badge[hidden],
.ft-sig-badge[hidden],
.milestone-tag[hidden] {
  display: none !important;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--stone-ink);
  color: var(--ink-main);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Segoe UI", sans-serif;
  line-height: 1.45;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: none;
}

#game-canvas {
  display: block;
  width: 100vw;
  height: var(--vh, 100vh);   /* 実際に見えている高さ（src/ui/viewport.js） */
  cursor: default;
  touch-action: none;
}
