/* DWAPPS home: modern game / dev / AI. Be Vietnam Pro, a dark glow by default, light when asked. */

@font-face {
  font-family: "Be Vietnam Pro";
  src: url(assets/fonts/bevietnampro-400-vietnamese.woff2) format("woff2");
  font-weight: 400;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url(assets/fonts/bevietnampro-400-latin.woff2) format("woff2");
  font-weight: 400;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url(assets/fonts/bevietnampro-600-vietnamese.woff2) format("woff2");
  font-weight: 600;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url(assets/fonts/bevietnampro-600-latin.woff2) format("woff2");
  font-weight: 600;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url(assets/fonts/bevietnampro-800-vietnamese.woff2) format("woff2");
  font-weight: 800;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url(assets/fonts/bevietnampro-800-latin.woff2) format("woff2");
  font-weight: 800;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
/* the banner lab's card keeps its button's font (the lab's HUD); a font is only fetched where it is used */
@font-face {
  font-family: "Chakra Petch";
  src: url(assets/fonts/chakrapetch-700-vietnamese.woff2) format("woff2");
  font-weight: 700;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url(assets/fonts/chakrapetch-700-latin.woff2) format("woff2");
  font-weight: 700;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
/* the pixel game's card keeps its own font */
@font-face {
  font-family: "VT323";
  src: url(assets/fonts/vt323-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url(assets/fonts/vt323-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}

:root {
  --bg: #0b0d17;
  --bg-2: #10131f;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #eceef7;
  --muted: #a1a9c2;
  --faint: #6f7898;
  --violet: #a78bfa;
  --violet-2: #7c5cff;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --orange: #fb923c;
  --pink: #f472b6;
  --glow-1: rgba(124, 92, 255, 0.32);
  --glow-2: rgba(34, 211, 238, 0.16);
  --glow-3: rgba(251, 146, 60, 0.14);
  --grid: rgba(255, 255, 255, 0.035);
  --grad: linear-gradient(110deg, #c4b5fd 0%, #a78bfa 25%, #22d3ee 65%, #34d399 100%);
  --btn: linear-gradient(135deg, #7c5cff, #22a8ee);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --term: #0a0d18;
  color-scheme: dark;
}
:root[data-theme="day"] {
  --bg: #f6f7fb;
  --bg-2: #eceef6;
  --surface: #ffffff;
  --surface-2: #f2f3f9;
  --line: #e2e5ef;
  --line-2: #cfd4e3;
  --text: #11142a;
  --muted: #535b78;
  --faint: #8189a6;
  --violet: #6d28d9;
  --violet-2: #6d4aff;
  --cyan: #0e7490;
  --green: #047857;
  --amber: #b45309;
  --orange: #c2410c;
  --pink: #be185d;
  --glow-1: rgba(124, 92, 255, 0.16);
  --glow-2: rgba(34, 211, 238, 0.12);
  --glow-3: rgba(251, 146, 60, 0.1);
  --grid: rgba(17, 20, 42, 0.045);
  --grad: linear-gradient(110deg, #6d28d9 0%, #7c3aed 30%, #0891b2 70%, #047857 100%);
  --shadow: 0 20px 50px rgba(30, 36, 70, 0.14);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="night"]) {
    --bg: #f6f7fb;
    --bg-2: #eceef6;
    --surface: #ffffff;
    --surface-2: #f2f3f9;
    --line: #e2e5ef;
    --line-2: #cfd4e3;
    --text: #11142a;
    --muted: #535b78;
    --faint: #8189a6;
    --violet: #6d28d9;
    --violet-2: #6d4aff;
    --cyan: #0e7490;
    --green: #047857;
    --amber: #b45309;
    --orange: #c2410c;
    --pink: #be185d;
    --glow-1: rgba(124, 92, 255, 0.16);
    --glow-2: rgba(34, 211, 238, 0.12);
    --glow-3: rgba(251, 146, 60, 0.1);
    --grid: rgba(17, 20, 42, 0.045);
    --grad: linear-gradient(110deg, #6d28d9 0%, #7c3aed 30%, #0891b2 70%, #047857 100%);
    --shadow: 0 20px 50px rgba(30, 36, 70, 0.14);
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
/* the glow and the grid stay put behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(900px 600px at 12% -8%, var(--glow-1), transparent 60%),
    radial-gradient(800px 520px at 100% 18%, var(--glow-2), transparent 60%),
    radial-gradient(700px 520px at 60% 110%, var(--glow-3), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 56px 56px, var(--bg);
}
main {
  flex: 1 0 auto;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}
.lu {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.18em;
}
.ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
  shape-rendering: crispEdges;
  flex: none;
}
.muted {
  color: var(--muted);
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--violet-2);
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* --- header -------------------------------------------------------------------------------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.hd-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 66px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: var(--btn);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.4);
}
.logo-mark .lu {
  width: 20px;
  height: 20px;
}
.logo-word b {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hd-links {
  display: flex;
  gap: 4px;
}
.hd-links a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.hd-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.hd-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.hd-icon,
.hd-lchip {
  display: inline-grid;
  place-items: center;
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 600 13px/1 "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  cursor: pointer;
}
.hd-icon:hover,
.hd-lchip:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.hd-lang {
  display: flex;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.hd-lang .hd-lchip {
  height: 30px;
  min-width: 34px;
  border: 0;
  background: transparent;
}
.hd-lchip[aria-current="true"] {
  color: #fff;
  background: var(--btn);
}
#theme .lu-moon {
  display: none;
}
:root[data-theme="day"] #theme .lu-sun {
  display: none;
}
:root[data-theme="day"] #theme .lu-moon {
  display: block;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="night"]) #theme .lu-sun {
    display: none;
  }
  :root:not([data-theme="night"]) #theme .lu-moon {
    display: block;
  }
}

/* --- buttons ------------------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  font: 600 16px/1 "Be Vietnam Pro", system-ui, sans-serif;
  color: #fff;
  text-decoration: none;
  background: var(--btn);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.45);
}
.btn-2 {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-2:hover {
  border-color: var(--line-2);
  box-shadow: none;
}

/* --- hero ---------------------------------------------------------------------------------- */
.hero {
  padding: 84px 0 56px;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 13px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
.eyebrow .lu {
  color: var(--violet);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 60ch;
  margin: 22px 0 30px;
  font-size: 18px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.stat b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}

/* the agent terminal: always dark, it is a terminal */
.term {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: var(--term);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124, 92, 255, 0.15), 0 30px 80px rgba(124, 92, 255, 0.18);
  color: #dfe3f2;
  font: 14px/1.6 ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.term-bar i + i {
  background: #febc2e;
}
.term-bar i + i + i {
  background: #28c840;
}
.term-bar span {
  margin-left: 10px;
  font-size: 12px;
  color: #8a93b2;
}
.term-lines {
  margin: 0;
  padding: 18px 18px 20px;
  list-style: none;
}
.term-lines li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  opacity: 0;
  animation: line-in 0.4s ease forwards;
}
.term-lines li:nth-child(1) { animation-delay: 0.1s; }
.term-lines li:nth-child(2) { animation-delay: 0.5s; }
.term-lines li:nth-child(3) { animation-delay: 0.9s; }
.term-lines li:nth-child(4) { animation-delay: 1.3s; }
.term-lines li:nth-child(5) { animation-delay: 1.7s; }
.term-lines li:nth-child(6) { animation-delay: 2.1s; }
.term-lines li:nth-child(7) { animation-delay: 2.6s; }
@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.t-cmd {
  color: #f4f6ff;
}
.t-prompt {
  color: #34d399;
}
.t-role {
  flex: none;
  width: 66px;
  padding: 2px 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
}
.r-ba { color: #c4b5fd; background: rgba(167, 139, 250, 0.14); }
.r-design { color: #f9a8d4; background: rgba(244, 114, 182, 0.14); }
.r-plan { color: #fcd34d; background: rgba(251, 191, 36, 0.14); }
.r-it { color: #67e8f9; background: rgba(34, 211, 238, 0.14); }
.r-qa { color: #6ee7b7; background: rgba(52, 211, 153, 0.14); }
.t-text {
  flex: 1;
  color: #b9c0d8;
}
.term-lines .lu {
  color: #34d399;
}
.t-done {
  margin-top: 8px;
  padding: 10px 12px !important;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 10px;
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.08);
}

/* --- sections ------------------------------------------------------------------------------ */
.sec {
  padding: 72px 0 24px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: 28px;
}
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sec-head p {
  color: var(--muted);
}
.sub-h {
  margin: 44px 0 16px;
  font-size: 20px;
  font-weight: 700;
}

/* --- game cards: each in its own game's style --------------------------------------------- */
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.gcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.gcard:hover {
  transform: translateY(-4px);
}
.gcard-art {
  position: relative;
  display: block;
  overflow: hidden;
}
.gcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}
.gtitle {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gtitle h3 a {
  text-decoration: none;
}
.gtitle p {
  font-size: 14px;
}
.gchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gactions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}
.gbadge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
}

/* Fishing Party: wood, cream and VT323 */
.gcard-pixel {
  font-family: "VT323", ui-monospace, monospace;
  font-size: 21px;
  line-height: 1.2;
  color: #2b1a10;
  background: #fdf6e4;
  border: 4px solid #2b1a10;
  box-shadow: inset 0 0 0 4px #8b5a2b, inset 0 0 0 8px #b27a42, 10px 10px 0 rgba(0, 0, 0, 0.35);
  -webkit-font-smoothing: none;
}
.gcard-pixel .gcard-art {
  margin: 12px 12px 0;
  border: 4px solid #2b1a10;
}
.gcard-pixel .gcard-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  image-rendering: pixelated;
}
.gcard-pixel .gcard-body {
  padding: 16px 22px 24px;
}
.gcard-pixel h3 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}
.gcard-pixel .gtitle p {
  font-size: 20px;
  color: #6d5640;
}
.gicon {
  width: 56px;
  height: 56px;
  border: 4px solid #2b1a10;
  box-sizing: content-box;
  image-rendering: pixelated;
}
.gcard-pixel .gbadge {
  padding: 0 10px 2px 8px;
  color: #fff;
  background: #3f9b4a;
  border: 3px solid #2b1a10;
  font-size: 20px;
}
.gcard-pixel .gchips li {
  padding: 2px 10px 4px;
  font-size: 19px;
  background: #f0e2c2;
}
.pbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 16px 10px;
  border: 4px solid #2b1a10;
  font: 400 24px/1 "VT323", ui-monospace, monospace;
  color: #fff8ec;
  text-decoration: none;
  background: #c2501a;
  box-shadow: inset 0 -5px 0 #8a3410, inset 0 4px 0 #e0703a;
}
.pbtn-2 {
  color: #2b1a10;
  background: #fdf6e4;
  box-shadow: inset 0 -5px 0 #f0e2c2;
}
.pbtn .ico {
  width: 22px;
  height: 22px;
}

/* Shipper Life: the game's flat UI over its 3D world */
.gcard-slcr {
  color: #1c2f55;
  background: #efece4;
  border-radius: 22px;
  box-shadow: 0 2px 6px rgba(28, 47, 85, 0.15), 0 24px 60px rgba(14, 20, 34, 0.35);
}
.gcard-slcr .gcard-art {
  aspect-ratio: 16 / 9;
  background: #c9d6e6;
}
.gcard-street {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gcard-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(239, 236, 228, 0.9) 100%);
  pointer-events: none;
}
.gcard-pixel .gcard-art::after {
  display: none;
}
.gcard-bike {
  position: absolute;
  right: 4%;
  bottom: -6%;
  z-index: 1;
  width: 52%;
  filter: drop-shadow(0 18px 18px rgba(14, 20, 34, 0.35));
  transition: transform 0.4s ease;
}
.gcard-slcr:hover .gcard-bike {
  transform: translateX(-10px) rotate(-2deg);
}
.gcard-slcr h3 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.gcard-slcr .gtitle p {
  color: #4d5560;
}
.gcard-slcr .gpitch {
  color: #2c3a58;
}
.gcard-slcr .gbadge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #e47124;
}
.gcard-slcr .gchips li {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1c2f55;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 47, 85, 0.12);
}
.sbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: #e47124;
  box-shadow: 0 6px 0 #c65f1c, 0 12px 24px rgba(228, 113, 36, 0.35);
}
.sbtn:hover {
  background: #ee7d2f;
}

/* --- how: the five roles ------------------------------------------------------------------ */
.roles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: role;
}
.role {
  position: relative;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.role:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -15px;
  width: 16px;
  height: 2px;
  background: var(--grad);
}
.role-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: #fff;
  background: var(--btn);
}
.role:nth-child(2) .role-ico { background: linear-gradient(135deg, #ec4899, #f472b6); }
.role:nth-child(3) .role-ico { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.role:nth-child(4) .role-ico { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.role:nth-child(5) .role-ico { background: linear-gradient(135deg, #10b981, #34d399); }
.role-n {
  position: absolute;
  top: 18px;
  right: 18px;
  font: 600 12px/1 ui-monospace, Consolas, monospace;
  color: var(--faint);
}
.role h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}
.role p {
  font-size: 14px;
  color: var(--muted);
}
.human {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--muted);
}
.human .lu {
  color: var(--green);
}
.guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.guide {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
/* --- the small web games: a list like an app store's (GameLoop's rows) -------------------------------------
   Three columns of rows: a square icon, the name, the genre, one fact, and the same small Play button on every row;
   the variety is the games' own art, not the chrome. The whole row is the link. */
.sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 18px;
}
.sub-head .sub-h {
  margin: 0;
}
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
  white-space: nowrap;
}
.see-all:hover {
  text-decoration: underline;
}
.minis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  margin: 0 -10px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.mini:hover {
  background: var(--surface-2);
}
.mini:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 0;
}
.mini img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.2s ease;
}
.mini img.px {
  image-rendering: pixelated;
}
.mini:hover img {
  transform: scale(1.05);
}
.mini-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mini-name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mini-genre {
  font-size: 13px;
  color: var(--muted);
}
.mini-fact {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--faint);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mini-fact .lu {
  flex: none;
  color: var(--violet);
}
.mini-play {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--violet) 60%, transparent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  transition: background 0.15s ease, color 0.15s ease;
}
.mini-play .lu-play {
  fill: currentColor;
}
.mini:hover .mini-play {
  color: #fff;
  background: var(--violet-2);
  border-color: var(--violet-2);
}
@media (prefers-reduced-motion: reduce) {
  .mini,
  .mini img,
  .mini-play {
    transition: none;
  }
}

/* --- the tools: a section of their own (the most visited page of the site), the card wide ------------------- */
/* the whole card is its link */
a.guide {
  color: inherit;
  text-decoration: none;
}
a.guide.tool {
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.guide.tool:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
a.guide.tool-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
a.guide.tool-wide .tool-art {
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
/* the art keeps its whole picture: centred on the same night as its own background when the words run taller */
a.guide.tool-wide .tool-art {
  display: flex;
  align-items: center;
}
a.guide.tool-wide .tool-body {
  align-items: flex-start;
  align-self: center;
  padding: 28px;
}
a.guide.tool-wide h3 {
  font-size: 21px;
}
a.guide.tool-wide p {
  font-size: 15px;
}
a.guide.tool:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
.tool-art {
  display: block;
  overflow: hidden;
  background: #080b10;
  border-bottom: 1px solid var(--line);
}
.tool-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}
a.guide.tool:hover .tool-art img {
  transform: scale(1.04);
}
.tool-body {
  display: flex;
  flex: 1;
  gap: 14px;
  padding: 18px;
}
/* the words fill the card's height, so the button (margin-top: auto) sits at its foot and a row's buttons line up */
.tool-body > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.tool-body .cbtn {
  margin-top: auto;
}
.guide-ico-img {
  overflow: hidden;
  background: none;
}
.guide-ico-img img {
  display: block;
  width: 44px;
  height: 44px;
}
.guide .card-meta {
  margin: -2px 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.card-chips li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  a.guide.tool,
  .tool-art img {
    transition: none;
  }
  a.guide.tool:hover {
    transform: none;
  }
}
/* the tool card's button in its tool's own style, as the big game cards do: the whole card is the link, so the
   button is a span that lights up with the card */
.cbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  line-height: 1;
  text-transform: uppercase;
  transition: filter 0.15s, transform 0.08s;
}
a.guide.tool:hover .cbtn {
  filter: brightness(1.08) saturate(1.05);
}
a.guide.tool:active .cbtn {
  transform: translateY(2px);
}
/* the banner lab: its own amber HUD button with cut corners (src/dws.css .btn) */
.cbtn-dws {
  padding: 13px 18px;
  font: 700 14px/1 "Chakra Petch", "Be Vietnam Pro", sans-serif;
  letter-spacing: 1.5px;
  color: #1d1200;
  background: linear-gradient(180deg, #ffe08a, #ffb627 48%, #f09300);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .cbtn {
    transition: none;
  }
}
.guide-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--violet);
  background: var(--surface-2);
}
.guide h3 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
}
.guide p {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
}
.cta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
}
.cta-line .lu {
  color: var(--violet);
}

/* --- GitHub projects ------------------------------------------------------------------------ */
.repos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.repo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.repo:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}
.repo-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.repo-top b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font: 600 14px/1.3 ui-monospace, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.repo-top .lu {
  color: var(--faint);
}
.repo-desc {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.repo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--faint);
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b93a7;
}
.dot-typescript { background: #3178c6; }
.dot-javascript { background: #f1e05a; }
.dot-python { background: #3572a5; }
.dot-html { background: #e34c26; }
.dot-c { background: #178600; }
.dot-java { background: #b07219; }
.dot-css { background: #663399; }
.more {
  margin-top: 22px;
}

/* --- about + timeline --------------------------------------------------------------------- */
.two {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
}
.about {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.about-me {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 2px solid transparent;
  background: var(--grad) border-box;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.3);
}
.about-me .eyebrow {
  margin-bottom: 8px;
}
.about-me h3 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}
.about-me .muted {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.about-text {
  color: var(--muted);
}
.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.about-cols .muted {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.offers,
.langs {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.offers li {
  display: flex;
  gap: 10px;
}
.offers .lu {
  margin-top: 3px;
  color: var(--green);
}
.langs li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #8b93a7;
}
.pct {
  font-size: 12px;
  text-align: right;
  color: var(--faint);
}
.w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; }
.w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; }
.w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; }
.w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }
.w0 { width: 3%; }
.timeline {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 82px;
  width: 2px;
  background: linear-gradient(var(--violet), var(--cyan), transparent);
  opacity: 0.5;
}
.timeline li {
  display: grid;
  grid-template-columns: 60px 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
}
.timeline time {
  padding-top: 6px;
  font: 600 13px/1.4 ui-monospace, Consolas, monospace;
  text-align: right;
  color: var(--faint);
}
.timeline img,
.tl-ico {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  border-radius: 10px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-ico {
  display: grid;
  place-items: center;
  color: #fff;
  background: #e47124;
}
.timeline a {
  font-weight: 700;
  text-decoration: none;
}
.timeline a:hover {
  color: var(--violet);
}
.timeline p {
  font-size: 14px;
  color: var(--muted);
}

/* --- 404 ---------------------------------------------------------------------------------- */
.nf-in {
  max-width: 760px;
}
.nf-code {
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.nf h1 span {
  color: var(--muted);
  font-weight: 600;
}
.nf .lead {
  margin-bottom: 6px;
}
.nf .actions {
  margin-top: 28px;
}

/* --- footer ------------------------------------------------------------------------------- */
.ft {
  margin-top: 80px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.ft-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.ft-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}
.ft-brand b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ft nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.ft nav a:hover {
  color: var(--text);
}
.ft-credits {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--faint);
}
.ft-credits a {
  margin-left: 6px;
}

/* --- responsive --------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .repos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .role::after {
    display: none;
  }
}
@media (max-width: 1080px) {
  .minis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 920px) {
  a.guide.tool-wide {
    grid-template-columns: 1fr;
  }
  a.guide.tool-wide .tool-art {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  a.guide.tool-wide .tool-body {
    padding: 20px;
  }
}
@media (max-width: 620px) {
  .minis {
    grid-template-columns: minmax(0, 1fr);
  }
  /* a phone has room for the whole name and fact on two lines rather than a cut */
  .mini-name,
  .mini-fact {
    white-space: normal;
  }
  .mini-fact {
    align-items: flex-start;
  }
  .mini-fact .lu {
    margin-top: 2px;
  }
}
@media (max-width: 920px) {
  .hero-in,
  .two,
  .games {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 56px;
  }
  .term {
    max-width: 560px;
  }
  .hd-links {
    display: none;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: min(1180px, 100% - 28px);
  }
  .hd-in {
    gap: 12px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roles,
  .guides,
  .repos,
  .about-cols {
    grid-template-columns: 1fr;
  }
  .lead {
    font-size: 17px;
  }
  .term {
    font-size: 12.5px;
  }
  .t-role {
    width: 56px;
  }
  .about {
    padding: 20px;
  }
  .about-me {
    align-items: flex-start;
  }
  .avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .gcard-pixel h3 {
    font-size: 34px;
  }
  .gcard-slcr h3 {
    font-size: 26px;
  }
  .timeline::before {
    left: 66px;
  }
  .timeline li {
    grid-template-columns: 48px 40px minmax(0, 1fr);
    gap: 10px;
  }
  .actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .term-lines li {
    opacity: 1;
  }
}
