/* The pixel look. The clans' characters are pixel art, and so is everything around them now: the
   same colours, pixel fonts (Departure Mono for reading, Silkscreen for buttons and labels; both SIL OFL),
   stepped corners instead of round ones, square dots, segmented bars. Each page loads this after
   its own styles. The stepped outlines are clip-paths (generated by scripts/gen_pixelcss.mjs);
   a frame is the same outline drawn 2px in, as a ring, in --frame. Regenerate: node scripts/gen_pixelcss.mjs */
@font-face { font-family:"Departure Mono"; src:url(/assets/fonts/DepartureMono-Regular.woff2) format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:Silkscreen; src:url(/assets/fonts/Silkscreen-400-latin.woff2) format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:Silkscreen; src:url(/assets/fonts/Silkscreen-700-latin.woff2) format("woff2"); font-weight:700; font-display:swap; }
:root {
  /* the brand (peeps.bot): white paper and one blue, the mark's #347efc; the greys are that blue thinned
     with the paper. Green and red stay: they say up and down. */
  --bg:#ffffff; --s1:#f3f6fe; --s2:#e7eefd; --line:#d7e2fb; --edge:rgba(52,126,252,.18);
  --ink:#10234f; --quiet:#2a4b93; --dim:#5b78b8; --mute:#8ea3d1;
  --acc:#347efc;
  --font: "Departure Mono", ui-monospace, monospace;
  --label: Silkscreen, "Departure Mono", monospace;
  --frame: #c6d7fb;
  --notch: polygon(0px 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0px, calc(100% - 4px) 0px, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0px calc(100% - 4px));
  --notch-sm: polygon(0px 2px, 2px 2px, 2px 0px, calc(100% - 2px) 0px, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0px calc(100% - 2px));
  --ring: polygon(evenodd, 0px 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0px, calc(100% - 4px) 0px, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0px calc(100% - 4px), 0px 4px, 2px 6px, 4px 6px, 4px 4px, 6px 4px, 6px 2px, calc(100% - 6px) 2px, calc(100% - 6px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 6px, calc(100% - 2px) 6px, calc(100% - 2px) calc(100% - 6px), calc(100% - 4px) calc(100% - 6px), calc(100% - 4px) calc(100% - 4px), calc(100% - 6px) calc(100% - 4px), calc(100% - 6px) calc(100% - 2px), 6px calc(100% - 2px), 6px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 6px), 2px calc(100% - 6px), 2px 6px);
  --ring-sm: polygon(evenodd, 0px 2px, 2px 2px, 2px 0px, calc(100% - 2px) 0px, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0px calc(100% - 2px), 0px 2px, 2px 4px, 4px 4px, 4px 2px, calc(100% - 4px) 2px, calc(100% - 4px) 4px, calc(100% - 2px) 4px, calc(100% - 2px) calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) calc(100% - 2px), 4px calc(100% - 2px), 4px calc(100% - 4px), 2px calc(100% - 4px), 2px 4px);
}
html, body { font-family:var(--font); }
/* one weight, upright: no faux bold or italic (smeared pixels are what made text hard to read);
   emphasis is colour. No ligatures either. */
* { font-synthesis:none; font-variant-ligatures:none; font-feature-settings:"liga" 0, "clig" 0; }
body { -webkit-font-smoothing:antialiased; }

/* panels: stepped corners and a 2px pixel frame */
.intro, .day, .board, .info, .card, .stat, .rcard, .warn, #toast, .col, .acard, .hero .meter, .chead .k, .sheet-card {
  position:relative; border-radius:0 !important; clip-path:var(--notch); box-shadow:none !important; }
.intro::after, .day::after, .board::after, .info::after, .card::after, .stat::after, .rcard::after, .warn::after, #toast::after, .col::after, .acard::after {
  content:""; position:absolute; inset:0; background:var(--frame); clip-path:var(--ring); pointer-events:none; z-index:2; }
.rcard:hover::after, .acard:hover::after { background:var(--acc); }
.rcard.top1::after { background:#f5c542; }
.rcard.top2::after { background:#9aa2b1; }
.rcard.top3::after { background:#c98a58; }
.intro::after { background:color-mix(in srgb, var(--acc) 40%, var(--frame)); }
.warn::after { background:color-mix(in srgb, var(--down) 50%, var(--frame)); }

/* small things: a one-step corner */
.deal, .badge, .status, #newpill, .fund input, code.key, .mouse .who, .mouse .tip, .tc .vd, .reply {
  border-radius:0 !important; clip-path:var(--notch-sm); }

/* pictures: characters, clan marks, coins */
.logo, .char, .mark, .deal img, .deal .coin, .row img, .row .coin, .cl img, .cl i.ph, .tc .ti, .podium .logo, .note .char, .five .logo {
  border-radius:0 !important; clip-path:var(--notch-sm); }
.char.big, .card .top .char, .rcard .char, .reveal .char, .clanrow .logo, .chead .logo, .mark, .hd .logo { clip-path:var(--notch); }

/* buttons: the corner lines are square brackets now, in the label face, in the brand's blue */
.k { --kc:var(--acc); }
.k, .k::before { border-radius:0 !important; }
.k { font-family:var(--label); font-weight:700; letter-spacing:.02em; }
.k.sm { font-size:.74em; }
.tabs .k, nav .k { font-size:.74em; }

/* the label face: titles, section heads, badges, small caps */
.ttl > b, .sect h3, .sub h4, .badge, .col h5, .spot h6, .status, .clanrow .rk, .rcard .rk, .podium .pl, .steps .n {
  font-family:var(--label); letter-spacing:.02em; }
.ttl > b { font-weight:700; font-size:1.05em; }
/* an agent's name starts with "@", and Silkscreen's "@" reads as an "e": names use the reading face */
#handle, .mouse .who { font-family:var(--font); letter-spacing:0; }
#handle { font-size:1.12em; }
.cl .ca { clip-path:var(--notch-sm); }
.hero h2, .card .who b, .chead .cn > b, .info .big, .rcard .rm > b, .money b, #today, #handle { letter-spacing:0; }

/* dots and bars: square pixels */
.live, .status i, .cl .dot, .steps .n { border-radius:0 !important; }
.meter, .meter i, .cl .bar, .cl .bar i { border-radius:0 !important; }
.meter i, .cl .bar i { background:repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 6px); color:var(--acc); }
.cl .bar i.late { background:repeating-linear-gradient(90deg, #f5c542 0 4px, transparent 4px 6px); }

/* the agent's mouse and its click: a pixel arrow, a square ring */
.mouse svg { width:1em; height:1.55em; filter:drop-shadow(2px 2px 0 rgba(0,0,0,.55)); }
.ring::after { border-radius:0 !important; }

/* the terminal's coin cards */
.tc .sp { shape-rendering:crispEdges; }
/* the logo: the blob on nothing, so it sits on the paper like the clans' marks */
img.brand { object-fit:contain; background:transparent; }
.mark:has(img.brand) { width:3.3em; background:transparent; }
.hd img.brand { width:32px; height:32px; clip-path:var(--notch-sm); }
.col h5 span, .col h5 i { font-family:var(--font); letter-spacing:0; }
/* Departure Mono is monospaced, so wider than the old face: long text a touch smaller, time columns wider */
.ln.system span { font-style:normal; }
.text { font-size:.9em; line-height:1.5; }
.reply { font-size:.74em; }
.ln { grid-template-columns:5.6em minmax(0, 1fr) !important; font-size:.76em !important; line-height:1.55 !important; }
.tr { grid-template-columns:5.6em 2.8em minmax(0, 1fr) auto !important; font-size:.76em !important; }
.plan p { font-size:.8em; line-height:1.6; }
.race { font-size:.74em; }
.tc .vd { font-size:.62em; padding:0 .25em; }
.ph { font-size:.78em; }
/* the wider pixel tabs leave the race line less room: "today" goes up to X's nominal width */
@media (max-width: 520px) { .wide-only { display:none; } }
@media (max-width: 520px) { .roomy { display:none; } }   /* up to X's 480 frame: "OpenClaw -1.0%" */
.clanrow .go svg { width:.5em; height:.7em; display:block; }
.tc .sp path { stroke-linejoin:miter; }
