html, body { margin: 0; height: 100%; overflow: hidden; background: #1a0b10;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #fff;
  -webkit-user-select: none; user-select: none; touch-action: none; }
#game { position: fixed; inset: 0; }
#game canvas { display: block; width: 100%; height: 100%; }

.ek-hud { position: fixed; top: 0; left: 0; right: 0; display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; pointer-events: none; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ek-hud .ek-stat { background: rgba(0,0,0,.35); border-radius: 10px; padding: 6px 12px; font-size: 15px; }
.ek-hud .ek-spacer { flex: 1; }
.ek-hud a { pointer-events: auto; color: #fff; opacity: .8; font-size: 13px; text-decoration: none; }

.ek-actions { position: fixed; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.ek-btn { pointer-events: auto; border: 0; border-radius: 14px; padding: 12px 18px; font-size: 16px; font-weight: 800;
  color: #fff; background: #2E7D5F; box-shadow: 0 4px 0 #0d4d27; cursor: pointer; position: relative; overflow: hidden;
  min-width: 120px; }
.ek-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #0d4d27; }
.ek-btn[disabled] { filter: grayscale(.8) brightness(.7); cursor: default; }
.ek-btn .ek-cool { position: absolute; left: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.7); }
.ek-btn.blue { background: #2563eb; box-shadow: 0 4px 0 #1e3a8a; }

.ek-toast { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); font-size: 26px; font-weight: 900;
  pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,.7); transition: opacity .4s, transform .4s; opacity: 0; }
.ek-toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }

.ek-overlay { position: fixed; inset: 0; background: rgba(10,4,6,.78); display: flex; align-items: center;
  justify-content: center; padding: 16px; z-index: 10; }
.ek-panel { background: #fff; color: #12231b; border-radius: 18px; max-width: 520px; width: 100%;
  max-height: 92vh; overflow: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ek-panel h1 { margin: 0 0 4px; font-size: 26px; }
.ek-panel h2 { margin: 16px 0 6px; font-size: 17px; }
.ek-panel p, .ek-panel li { font-size: 15px; line-height: 1.5; }
.ek-panel .ek-sub { color: #55675e; margin-top: 0; }
.ek-panel .ek-big { font-size: 38px; font-weight: 900; color: #2E7D5F; margin: 6px 0; }
.ek-panel .ek-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ek-panel .ek-btn { box-shadow: none; }
.ek-panel .ek-btn.ghost { background: #eef4f1; color: #12231b; }
.ek-panel .ek-cta { background: #d1fae5; border-radius: 14px; padding: 14px; margin-top: 14px; }
.ek-panel .ek-cta .ek-btn { display: block; text-align: center; text-decoration: none; margin-top: 8px; }
.ek-panel .ek-fiction { background: #f3e8ff; border-left: 4px solid #7c3aed; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.ek-panel .ek-src { font-size: 12px; color: #55675e; }
.ek-panel .ek-disc { font-size: 12px; color: #55675e; margin-top: 14px; }

.ek-meter { position: relative; width: min(46vw, 260px); height: 30px; border-radius: 10px; overflow: hidden;
  background: rgba(0,0,0,.35); }
.ek-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #34d399; transition: width .15s; }
.ek-meter-fill.danger { background: #f87171; }
.ek-meter-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: .85; }
.ek-meter-text { position: relative; display: block; line-height: 30px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
