/* DIGZ brand tokens — direction B «16-bit» (SNES mine palette), type as Rig: Jersey 10 / VT323 / DotGothic16.
   One place for the name, the fee and the quote asset. Fonts are files in ./fonts, no CDN. */

@font-face { font-family: "Jersey 10"; src: url("fonts/Jersey10-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "VT323"; src: url("fonts/VT323-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "DotGothic16"; src: url("fonts/DotGothic16-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }

:root {
  --name: "DIGZ";
  --domain: "digz.fun";
  --handle: "@digzfun";
  --fee: "2.5%";
  --quote: "ZEC";

  /* darkness and cold shadows */
  --void: #06070e;
  --night: #0a0c18;
  --shade-1: #0e1328;
  --shade-2: #161d3c;
  --shade-3: #20284f;
  /* rock, from shadow to lamp light */
  --rock-1: #30304f; --rock-2: #462f42; --rock-3: #5f3934; --rock-4: #7d4a31; --rock-5: #9e6238;
  --rock-6: #c08046; --rock-7: #dca25f; --rock-8: #f0c584; --rock-9: #fde4b4;
  /* lamp */
  --lamp: #ff9a2e; --lamp-deep: #c4601a; --lamp-hot: #fff2c8;
  /* ZEC ore */
  --ore: #f4b728; --ore-hi: #ffd866; --ore-deep: #a8770f;
  /* HUD windows (blue dialog boxes) */
  --win-1: #2b3c96; --win-2: #243384; --win-3: #1e2a70; --win-4: #19225c; --win-line: #6b7cc4;
  --cream: #f3e9cf; --cream-dim: #b9b4c9; --ink: #120a10;
  --dot: #161d3c;              /* dot grid on dark cards */

  --f-display: "Jersey 10", "VT323", monospace;   /* headlines, uppercase */
  --f-num: "VT323", monospace;                     /* numbers, counters */
  --f-body: "DotGothic16", "VT323", monospace;     /* body text, captions */
}

.name::before { content: var(--name); }
.domain::before { content: var(--domain); }
.handle::before { content: var(--handle); }
.fee::before { content: var(--fee); }
.quote::before { content: var(--quote); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--night); color: var(--cream); overflow: hidden; }
body { font-family: var(--f-body); -webkit-font-smoothing: none; }
svg { display: block; shape-rendering: crispEdges; }

/* dark card with a dot grid (post images, OG) */
.card { position: relative; overflow: hidden; background-color: var(--night);
  background-image: radial-gradient(var(--dot) 2.2px, transparent 2.6px); background-size: 48px 48px; background-position: 24px 24px; }

/* type */
.h { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .01em; color: var(--cream); }
.h em { font-style: normal; color: var(--ore); }
.num { font-family: var(--f-num); line-height: 1; color: var(--cream); }
.num small { font-family: var(--f-body); font-size: .5em; color: var(--cream-dim); margin-left: .2em; }
.label { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--cream-dim); line-height: 1; }
.body { font-family: var(--f-body); color: var(--cream); line-height: 1.3; }
.dim { color: var(--cream-dim); }

/* HUD window: dark rim, cream frame, blue fill in steps (no smooth gradient) */
.win { --n: 8px; position: relative; padding: 4px; background: var(--ink);
  clip-path: polygon(var(--n) 0, calc(100% - var(--n)) 0, 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, 0 calc(100% - var(--n)), 0 var(--n)); }
.win > .in { --m: 4px; position: relative; height: 100%; border: 4px solid var(--cream);
  background: linear-gradient(180deg, var(--win-1) 0 22%, var(--win-2) 22% 48%, var(--win-3) 48% 76%, var(--win-4) 76% 100%);
  clip-path: polygon(var(--m) 0, calc(100% - var(--m)) 0, 100% var(--m), 100% calc(100% - var(--m)), calc(100% - var(--m)) 100%, var(--m) 100%, 0 calc(100% - var(--m)), 0 var(--m)); }
.win > .in::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--win-line); pointer-events: none; }

/* meter of pixel blocks (load cap etc.) */
.meter { display: flex; gap: 4px; }
.meter i { flex: 1; height: 26px; background: var(--shade-3); }
.meter i.on { background: var(--ore); }

/* ---- post images (added for post-*.html / og / article cover) ---- */
.post { width: 1600px; height: 900px; padding: 60px 80px 56px; display: flex; flex-direction: column; }
.post .top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.post .tagline { font-family: var(--f-display); font-size: 32px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim); line-height: 1; }
.post .tagline b { font-weight: 400; color: var(--ore); }
.post h1.h { font-size: 120px; margin: 34px 0 30px; }
.post .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-family: var(--f-body); font-size: 32px; line-height: 1.25; color: var(--cream-dim); }
.post .foot b { font-weight: 400; color: var(--cream); }
.btn-start { position: relative; display: inline-block; font-family: var(--f-display); font-size: 56px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  background: var(--lamp); border: 4px solid var(--ink); border-bottom-width: 12px; border-bottom-color: var(--lamp-deep); padding: 12px 44px 10px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
