/* FS-051: Ant Survival page. Colours follow Docs/UI-KIT.md. */
:root {
  --ink: #060e16; --card: #0a141d; --surface: #111f2b; --track: #263847;
  --lime: #c9f54c; --cyan: #29cfd9; --text: #edf5f0; --muted: #80a3b2; --danger: #ff5e40;
}
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
#ant-game { position: fixed; inset: 0; }
#ant-canvas { display: block; width: 100%; height: 100%; background: var(--ink); outline: none; }

.ant-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--ink); }
.ant-overlay[hidden] { display: none; }
.ant-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--track); padding: 28px 28px 24px; box-sizing: border-box; }
.ant-title { margin: 0 0 4px; font-size: 34px; font-weight: 800; letter-spacing: .08em; color: var(--lime); }
.ant-sub { margin: 0 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--cyan); }
.ant-bar { height: 8px; background: var(--surface); overflow: hidden; }
.ant-bar-fill { height: 100%; width: 0; background: var(--lime); }
.ant-status { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ant-note { margin: 16px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ant-note[hidden] { display: none; }
.ant-error-title { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: .06em; color: var(--danger); }
.ant-error-text { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--text); }
.ant-detail { margin: 0 0 20px; font-size: 12px; line-height: 1.4; color: var(--muted); word-break: break-word; }
.ant-button { appearance: none; border: 0; cursor: pointer; padding: 12px 22px; font: inherit; font-size: 14px; font-weight: 800;
  letter-spacing: .12em; color: var(--ink); background: var(--lime); }
.ant-button:hover { filter: brightness(1.08); }
.ant-button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ant-link { margin-left: 12px; font-size: 13px; color: var(--cyan); }
