/* Guard arena in the En Masse house style, after the Bizprint app shell.
   Brand values come from _conventions/skills/en-masse-brand. Mint is a surface, never text on paper. */
@import url('/fonts.css');

:root {
  --paper: #F5F5F2; --paper-raise: #EDEEE9; --white: #FFFFFF;
  --ink: #131613; --ink-2: #50564F; --ink-3: #646A63;
  --line: rgba(19, 22, 19, .14); --line-strong: rgba(19, 22, 19, .32); --mint: #36E0A0;
  --success: #0F6B46; --success-tint: #E3F4EA;
  --danger: #B42318; --danger-tint: #FBE9E7; --danger-ink: #8A1A10;
  --warning-tint: #FFF4D6; --warning-ink: #5C4100;
  --font-display: 'Archivo Black', 'Archivo', sans-serif;
  --font-text: 'Archivo', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --radius-card: 14px; --radius-field: 10px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(19, 22, 19, .05), 0 2px 6px rgba(19, 22, 19, .04), 0 14px 30px -14px rgba(19, 22, 19, .18);
  --shadow-raised-sm: 0 1px 2px rgba(19, 22, 19, .08), 0 3px 8px -3px rgba(19, 22, 19, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
  --shadow-inset: inset 0 1px 3px rgba(19, 22, 19, .12);
  --surface-raised: linear-gradient(180deg, #FFFFFF 0%, #FAFAF8 100%);
  --ring: 0 0 0 4px rgba(54, 224, 160, .55);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.45 var(--font-text); }

/* Top bar: logo, product name, phase and clock. */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 32px;
  background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; }
.brand svg { display: block; height: 26px; width: auto; }
.product { padding-left: 16px; border-left: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 17px; }
.status { display: flex; align-items: center; gap: 18px; }
.phase { padding: 6px 16px; border-radius: var(--radius-pill); background: var(--mint); color: var(--ink);
  font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.phase:empty, .clock:empty { display: none; }
.clock { min-width: 3.2em; font-family: var(--font-display); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }

main { max-width: 1800px; margin: 0 auto; padding: 28px 32px 40px; }
.eyebrow { margin: 0 0 6px; color: var(--ink-3); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0 0 24px; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05; letter-spacing: -.012em; text-transform: uppercase; }

/* Cards: white raised surface with a soft layered shadow. A heading in a card is a section title. */
.grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.card { padding: 20px 24px; background-color: var(--white); background-image: var(--surface-raised);
  border: 1px solid rgba(19, 22, 19, .07); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -.005em; }

/* Tables: raised head in small capitals with a mint underline. */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
thead th, .matrix tr:first-child th { background: var(--paper-raise); color: var(--ink-3); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--mint); }
td.total { font-family: var(--font-display); font-size: 30px; }
.pos { color: var(--success); font-weight: 700; } .neg { color: var(--danger); font-weight: 700; } .muted { color: var(--ink-3); }

/* Matrix: the more hits, the deeper the red. */
.matrix th, .matrix td { width: 72px; text-align: center; }
.matrix tr:not(:first-child) th { color: var(--ink-2); font-size: 15px; font-weight: 600; text-align: left; }
.matrix td.hit { background: rgba(180, 35, 24, calc(.06 + var(--n) * .065)); color: var(--danger-ink); font-weight: 800; border-radius: 8px; }

.ticker ul { margin: 0; padding: 0; }
.ticker li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.ticker li:last-child { border-bottom: 0; }
.bait { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: var(--radius-pill);
  background: var(--danger-tint); color: var(--danger-ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; }

code { padding: 2px 7px; border-radius: 6px; background: var(--paper-raise); font: 15px var(--font-mono); }

/* Form controls: fields pressed into the page, buttons raised in ink. */
textarea, input { width: 100%; padding: 10px 12px; border: 1px solid #868C85; border-radius: var(--radius-field);
  background: #FBFBFA; box-shadow: var(--shadow-inset); color: var(--ink); font: 15px/1.45 var(--font-text); }
textarea { min-height: 220px; font-family: var(--font-mono); font-size: 14px; }
input { width: auto; }
textarea:focus, input:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
button { padding: 9px 20px; border: 1px solid var(--ink); border-radius: var(--radius-pill); cursor: pointer;
  background: var(--ink) linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%); color: var(--paper);
  font: 600 15px var(--font-text); box-shadow: 0 1px 2px rgba(19, 22, 19, .2), 0 5px 12px -4px rgba(19, 22, 19, .4); }
button:hover { background-color: #2C322B; }
button:focus-visible { outline: none; box-shadow: var(--ring); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.ok { color: var(--success); font-weight: 700; } .warn { color: var(--warning-ink); font-weight: 700; } .err { color: var(--danger); font-weight: 700; }

details { padding: 10px 0; border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; }
pre { max-height: 420px; overflow: auto; margin: 10px 0 0; padding: 14px 16px; border-radius: var(--radius-field);
  background: #131613; color: #F5F5F2; font: 13px/1.5 var(--font-mono); white-space: pre; }
code, pre, textarea { font-variant-ligatures: none; }
#hits th, #hits td, #attacks th, #attacks td { text-align: left; }
