/* jickdohnson.com — Classic Navy / Chrome Split */

@font-face {
  font-family: "Audiowide";
  src: url("/assets/fonts/audiowide-latin.woff2?v=e21fd195dd") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Share Tech Mono";
  src: url("/assets/fonts/share-tech-mono-latin.woff2?v=41e6b9f297") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --panel: #111827;
  --panel-2: #0c1220;
  --line: #2f3d56;
  --line-2: #4a5f86;
  --line-hi: #8cc3ff;
  --text: #b6c2d4;
  --text-hi: #ffffff;
  --text-dim: #7d8ca3;
  --link: #5fb0ff;
  --glow: #4da3ff;
  --gold: #ffcf5a;
  --ok: #53f28a;
  --f-display: "Audiowide", "Arial Black", Verdana, sans-serif;
  --f-body: Verdana, Tahoma, "Segoe UI", sans-serif;
  --f-mono: "Share Tech Mono", Consolas, "Courier New", monospace;
  --side: 290px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.55 var(--f-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--line-hi); outline-offset: 2px; }
h1, h2, h3, p, ul { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 8px 14px; background: var(--panel); color: var(--text-hi);
  border: 1px solid var(--line-hi); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- background scene ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg .stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 14%, #fff, transparent),
    radial-gradient(1px 1px at 22% 40%, #cfe, transparent),
    radial-gradient(1px 1px at 37% 9%, #fff, transparent),
    radial-gradient(1px 1px at 51% 30%, #fff, transparent),
    radial-gradient(1px 1px at 66% 12%, #cfe, transparent),
    radial-gradient(1px 1px at 79% 36%, #fff, transparent),
    radial-gradient(1px 1px at 92% 18%, #fff, transparent),
    radial-gradient(1px 1px at 14% 62%, #cfe, transparent),
    radial-gradient(1px 1px at 86% 58%, #fff, transparent),
    radial-gradient(ellipse at 50% 0, #1b2c4a, transparent 60%);
}
.bg .hgrid {
  position: absolute; left: -20%; right: -20%; bottom: -6vh; height: 52vh;
  background:
    linear-gradient(#4da3ff40 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, #4da3ff40 1px, transparent 1px) 0 0 / 70px 100%;
  transform: perspective(420px) rotateX(58deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(transparent, #000 50%);
  mask-image: linear-gradient(transparent, #000 50%);
}

/* ---------- page frame ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px var(--gutter-r) 18px var(--gutter);
  display: grid;
  gap: 10px;
}
@media (min-width: 761px) { .wrap { padding-left: max(40px, var(--gutter)); padding-right: max(40px, var(--gutter-r)); } }

.chrome { color: #e6eefb; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome {
    background: linear-gradient(180deg, #ffffff 0%, #dfe6ee 34%, #5f6e7f 49%, #eef2f6 53%, #9aa9b9 78%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* ---------- banner ---------- */
.ban {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 130px;
  padding: 14px 30px 14px 30px;
  border: 1px solid #3d4c66;
  background: linear-gradient(180deg, #1a2436, #0c1220);
  overflow: hidden;
}
.ban::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 3px);
}
.ban .brand { position: relative; display: grid; gap: 6px; text-decoration: none; min-width: 0; }
.ban .name {
  display: block;
  font: 400 clamp(30px, 6.4vw, 66px)/1 var(--f-display);
  letter-spacing: .01em;
  filter: drop-shadow(0 0 10px #4da3ff88);
  white-space: nowrap;
}
.ban .tag {
  color: var(--glow);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.orb {
  position: relative;
  display: block;
  flex: none;
  width: 104px; height: 104px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #5f6e7f 48%, #e9eef3 52%, #7a8898);
  box-shadow: 0 0 16px #4da3ff66;
}
.orb img { width: 100%; height: 100%; border-radius: 50%; background: var(--panel-2); object-fit: cover; }

/* ---------- nav ---------- */
.navbar { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 2px; min-height: 32px; }
.navbar a {
  display: grid; place-items: center;
  padding: 6px 8px;
  font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: #e6eefb;
  background: linear-gradient(#3c4f72, #1a2640);
  border: 1px solid var(--line-2);
}
.navbar a:hover { background: linear-gradient(#4a6290, #22325a); }
.navbar a[aria-current="page"] { background: linear-gradient(#5fa8ff, #1f5fb8); border-color: var(--line-hi); }
.clock {
  display: grid; place-items: center;
  min-width: 96px; padding: 0 14px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--ok);
  font: 400 14px var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.clock[hidden] { display: none; }

/* ---------- windows ---------- */
.win {
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: 0 0 0 1px #000, 0 14px 30px #000b;
}
.tb {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 22px; padding: 0 4px 0 8px;
  font: 700 11px var(--f-body);
  color: var(--text-hi);
  background: linear-gradient(#56657f, #2a3449);
  border-bottom: 1px solid #000;
}
.tb .bx { display: flex; gap: 2px; }
.tb .bx i {
  width: 15px; height: 14px; display: grid; place-items: center;
  font: 700 9px/1 var(--f-body); font-style: normal;
  color: #1a2640; background: linear-gradient(#eef2f6, #9aa9b9); border: 1px solid #1a2640;
}
.tb .tbr { display: flex; gap: 10px; align-items: center; }
.tb .ch { font: 400 13px var(--f-mono); color: var(--ok); letter-spacing: .1em; }
.in { padding: 12px 14px; }

/* ---------- chrome split buttons ---------- */
.split {
  display: inline-flex;
  justify-self: start;
  align-self: center;
  width: max-content;
  max-width: 100%;
  height: 36px;
  border: 1px solid #05080e;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 0 #05080e, 0 0 12px #4da3ff33;
  white-space: nowrap;
}
.split a, .chip-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 0 16px;
  font: 700 12px var(--f-body);
  text-decoration: none;
  color: #0f1d33;
  background: linear-gradient(#ffffff, #dfe6ee 45%, #b9c5d2 55%, #e8eef4);
  text-shadow: 0 1px 0 #fff;
}
.split a + a { border-left: 1px solid #6f7f91; color: #1f3d66; }
.split a:hover, .chip-btn:hover { background: linear-gradient(#ffffff, #eef3f8 45%, #cdd8e3 55%, #f4f7fa); }
.split a:focus-visible { outline: 2px solid var(--line-hi); outline-offset: -3px; }
.split.sm { height: 28px; }
.split.sm a { padding: 0 12px; font-size: 11px; }
.chip-btn {
  height: 28px; padding: 0 12px; font-size: 11px;
  border: 1px solid #05080e; border-radius: 4px;
  box-shadow: 0 2px 0 #05080e;
}

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: var(--side) 1fr; gap: 12px; align-items: stretch; }
.side { display: grid; grid-template-rows: 1fr 1fr auto; gap: 10px; min-width: 0; }
.tile { text-decoration: none; color: inherit; }
.tile .pic { position: relative; flex: 1 1 0; min-height: 110px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.tile .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.tile .lbl { padding: 6px 10px 8px; }
.tile .lbl b { display: block; font: 400 17px/1.3 var(--f-display); color: var(--text-hi); }
.tile .lbl small { color: var(--link); font-weight: 700; font-size: 11px; }
.tile:hover, .tile.sel { border-color: var(--line-hi); box-shadow: 0 0 0 1px #000, 0 0 18px #4da3ff66; }
.tile.sel > .tb { background: linear-gradient(#5fa8ff, #1f5fb8); }
.quick .in { display: grid; gap: 8px; }
.quick .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.quick .row b { color: var(--text-hi); font-size: 13px; }

.preview { min-height: 540px; }
.pv { display: none; flex: 1; flex-direction: column; min-height: 0; }
.pv.cur { display: flex; }
.pv > .tb { display: none; }
.pv .pic { position: relative; flex: 1 1 0; min-height: 200px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.pv .pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.pv .pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, #00000014 0 1px, transparent 1px 3px);
}
.pv .info { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 12px 16px 14px; }
.pv h2 { font: 400 22px/1.2 var(--f-display); color: var(--text-hi); margin-bottom: 2px; }
.pv p { font-size: 12px; max-width: 460px; }
.pv .slop { margin-bottom: 2px; }

.art-links, .art-about {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7%;
  background: radial-gradient(ellipse at 50% 130%, #1f5fb8, var(--panel-2) 70%);
}
.art-about { background: radial-gradient(ellipse at 50% 120%, #2a3c5e, var(--panel-2) 70%); }
.art-links i {
  display: grid; place-items: center;
  width: min(18%, 150px); aspect-ratio: 1;
  border-radius: 50%; border: 3px solid #9aa9b9;
  font: 400 clamp(20px, 3.4vw, 44px) var(--f-display); font-style: normal; color: #fff;
  box-shadow: 0 0 18px #4da3ff55;
}
.art-about .orb { width: min(62%, 300px); height: auto; aspect-ratio: 1; padding: 6px; }
.ic-casino { background: radial-gradient(circle at 35% 30%, #ff9aa3, #c8102e 60%, #4d0010); }
.ic-rs { background: radial-gradient(circle at 35% 30%, #ffd08a, #ff6a3d 55%, #7a1f4d); }
.ic-chips { background: radial-gradient(circle at 35% 30%, #ffe08a, #d4a017 60%, #5c4200); color: #2a1d00; }
.ic-gh { background: radial-gradient(circle at 35% 30%, #6b7a90, #1d2533 70%); }

.slop { display: block; font: 400 15px/1.3 var(--f-display); color: var(--gold); text-shadow: 0 0 10px #ff9a0055; }

/* ---------- projects ---------- */
.pj { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.app { scroll-margin-top: 16px; }
.app .shot { border-bottom: 1px solid var(--line); background: var(--panel-2); }
.app .shot img { width: 100%; aspect-ratio: 1400 / 800; object-fit: cover; object-position: left top; }
.app .in { display: grid; gap: 10px; }
.app h2 { font: 400 24px/1.2 var(--f-display); color: var(--text-hi); }
.app .req { color: var(--text-dim); font-size: 11px; }
ul.f { padding-left: 18px; display: grid; gap: 3px; }
ul.f li::marker { color: var(--glow); }

/* ---------- links ---------- */
.lk { display: grid; grid-template-columns: 1fr 310px; gap: 16px; align-items: start; }
.sec {
  padding: 6px 12px;
  font: 700 10px var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--glow); background: var(--panel-2);
  border-bottom: 1px solid #1f2a3d;
}
.sec + .lrows, .lrows + .sec { border-top: 1px solid #1f2a3d; }
.lrows { list-style: none; padding: 0; }
.lrow {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid #1f2a3d;
  color: inherit; text-decoration: none;
}
.lrows li:last-child .lrow { border-bottom: 0; }
.lrow:hover { background: #16203a; }
.lrow:hover .chip-btn { background: linear-gradient(#ffffff, #eef3f8 45%, #cdd8e3 55%, #f4f7fa); }
.lrow .ic {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 400 15px var(--f-display); color: #fff;
  border: 1px solid #5a6f8f;
}
.lrow b { display: block; color: var(--text-hi); font-size: 14px; }
.lrow small { color: var(--text-dim); font-size: 11px; overflow-wrap: anywhere; }
.aboutw .in { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 20px 14px; }
.aboutw .orb { width: 150px; height: 150px; padding: 6px; }
.aboutw .site { font: 400 22px/1.2 var(--f-display); }

/* ---------- games ---------- */
.games { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 16px; align-items: start; }
.gside { display: grid; gap: 16px; min-width: 0; }
.glist { list-style: none; margin: 0; padding: 0; }
.gitem {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #1f2a3d;
  color: inherit; text-decoration: none;
}
.glist li:last-child .gitem { border-bottom: 0; }
a.gitem:hover { background: #16203a; }
.gitem.sel { background: linear-gradient(#2c4470, #1a2c4a); box-shadow: inset 3px 0 var(--line-hi); }
.gitem.soon { opacity: .55; }
.gitem .ic {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 400 16px var(--f-display); color: #fff; border: 1px solid #5a6f8f;
}
.gitem b { display: block; color: var(--text-hi); font-size: 14px; }
.gitem small { color: var(--text-dim); font-size: 11px; }
.gmain .in { display: grid; gap: 14px; justify-items: center; }
.gmain jd-button { width: 100%; }
.ghow { justify-self: stretch; color: var(--text-dim); font-size: 12px; }
.games jd-button {
  max-width: 600px;
  --jd-bg: var(--panel-2);
  --jd-line: var(--line-2);
  --jd-fg: var(--text);
  --jd-dim: var(--text-dim);
  --jd-accent: var(--glow);
  --jd-jick: #5fa8ff;
  --jd-slug: #ff5e9c;
  --jd-font: var(--f-body);
  --jd-display-font: var(--f-display);
  --jd-mono: var(--f-mono);
}

/* ---------- 404 ---------- */
.err { max-width: 520px; margin: 30px auto; }
.err .in { display: grid; gap: 12px; justify-items: start; }
.err h1 { font: 400 26px/1.2 var(--f-display); color: var(--text-hi); }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px;
  padding-top: 6px;
  font-size: 11px; color: #6d7c93;
}

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) {
  :root { --side: 240px; }
  .preview { min-height: 480px; }
  .pv .info { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 760px) {
  .ban { grid-template-columns: 1fr auto; min-height: 0; padding: 14px 16px; gap: 12px; }
  .ban .tag { font-size: 10px; letter-spacing: .14em; }
  .orb { width: 68px; height: 68px; padding: 4px; }
  .navbar { grid-template-columns: repeat(4, 1fr); }
  .navbar a { min-height: 40px; padding: 6px 2px; letter-spacing: .04em; }
  .clock { display: none; }

  /* Home: no hover on phones, so every channel shows as its own card. */
  .home { grid-template-columns: 1fr; }
  .side { display: none; }
  .preview { min-height: 0; border: 0; background: none; box-shadow: none; display: grid; gap: 12px; }
  .preview > .tb { display: none; }
  .pv, .pv.cur {
    display: flex;
    border: 1px solid var(--line-2);
    background: var(--panel);
    box-shadow: 0 0 0 1px #000, 0 14px 30px #000b;
  }
  .pv > .tb { display: flex; }
  .pv .pic { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .pv .info { grid-template-columns: 1fr; padding: 12px 14px 14px; }

  .pj, .lk, .games { grid-template-columns: 1fr; }
  .gmain { order: -1; }
  .split { height: 40px; }
  .split a { padding: 0 14px; }
}

@media (max-width: 380px) {
  .ban .name { font-size: 26px; }
  .orb { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
