/* DipzSpell portfolio — all styles. Hand-written, no frameworks. */

/* ════════ TOKENS ════════ */
:root {
  --px: 4px;
  --ink: #1B1830;
  --paper: #FDFBF2;
  --panel: #FFFFFF;
  --sun: #FFB92E;
  --rose: #EF4444;
  --mint: #2FBF8F;
  --sky: #3BA9E0;
  --dim: #6B6686;
  --line: rgba(27, 24, 48, .12);
}

html[data-theme="dark"] {
  --ink: #F2EFE4;
  --paper: #15131F;
  --panel: #1F1C2E;
  --dim: #9A94B4;
  --line: rgba(242, 239, 228, .14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background .2s ease-in, color .2s ease-in;
}

img {
  image-rendering: pixelated
}

/* display:grid on a hidden element would otherwise win over [hidden] */
[hidden] {
  display: none !important
}

h1,
h2,
h3,
h4 {
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5
}

/* graph-paper grid */
.grid-bg {
  background-size: var(--px) var(--px);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
}

/* ════════ PIXEL PRIMITIVES ════════ */
.pbtn {
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  background: var(--sun);
  color: #1B1830;
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 12px 20px;
  display: inline-block;
  text-decoration: none;
  transition: transform .1s steps(2), box-shadow .1s steps(2), background .1s steps(2);
  cursor: pointer;
  white-space: nowrap;
}

.pbtn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--ink)
}

.pbtn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 0 var(--ink)
}

.pbtn.ghost {
  background: var(--panel);
  color: var(--ink)
}

.pbtn svg {
  vertical-align: -4px;
  margin-right: 8px
}

.pbtn.rose {
  background: var(--rose);
  color: #FDFBF2
}

.pcard {
  border: 4px solid var(--ink);
  background: var(--panel);
  box-shadow: 8px 8px 0 0 var(--ink);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(20px)
  }

  100% {
    opacity: 1;
    transform: translateY(0)
  }
}

/* scroll reveal — a stepped top-to-bottom wipe, like a game tile loading */
/* card reveal — PixelCraft's pixelCardFadeIn: 20px rise over .3s in 8 hard steps.
   It rides `translate`, so the hover transform below never fights it. */
.anim {
  opacity: 0;
  translate: 0 20px;
  transition: opacity .3s steps(8), translate .3s steps(8);
  transition-delay: var(--d, 0ms)
}

.anim.in {
  opacity: 1;
  translate: 0 0
}

/* card hover — services and trophies lift, works grow */
.build,
.tro {
  transition: transform .2s cubic-bezier(.4, 0, .2, 1)
}

.build:hover,
.tro:hover {
  transform: translateY(-8px)
}

/* typing caret on section titles */
.caret {
  display: inline-block;
  width: .6em;
  height: .9em;
  background: var(--sun);
  box-shadow: 2px 2px 0 0 var(--ink);
  vertical-align: -.1em;
  margin-left: 6px;
  animation: blink .8s steps(1) infinite
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

/* XP bar = scroll progress */
#xp {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 850;
  pointer-events: none
}

#xpf {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--rose) 0 12px, transparent 12px 16px);
}

/* cursor trail + click burst */
.tp,
.bp {
  position: fixed;
  z-index: 899;
  pointer-events: none;
  display: block;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px
}

.tp {
  animation: tp .5s steps(5) forwards
}

@keyframes tp {
  to {
    opacity: 0;
    transform: translateY(12px) scale(.3)
  }
}

.bp {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid var(--ink);
  animation: bp .45s steps(6) forwards
}

@keyframes bp {
  70% {
    opacity: 1
  }

  to {
    transform: translate(var(--dx), var(--dy)) scale(.4);
    opacity: 0
  }
}

/* back to top, doubles as the XP counter */
#top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 820;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 10px 14px;
  opacity: 0;
  translate: 0 20px;
  pointer-events: none;
  transition: opacity .2s steps(3), translate .2s steps(3), transform .1s steps(2), box-shadow .1s steps(2)
}

#top.show {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto
}

/* scrollbar */
::-webkit-scrollbar {
  width: 16px;
  height: 16px
}

::-webkit-scrollbar-track {
  background: var(--paper);
  border-left: 4px solid var(--ink)
}

::-webkit-scrollbar-thumb {
  background: var(--sun);
  border: 4px solid var(--ink)
}

::selection {
  background: var(--rose);
  color: #FDFBF2
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--rose);
  outline-offset: 3px
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--sun);
  color: #1B1830;
  padding: 10px 16px;
  font-family: 'Silkscreen', monospace;
  font-size: 12px
}

.skip:focus {
  left: 0
}

/* ════════ CUSTOM CURSOR ════════ */
@media (hover:hover) and (pointer:fine) {

  html.cursor-on,
  html.cursor-on * {
    cursor: none !important
  }
}

#cur {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 900;
  pointer-events: none;
  width: 10px;
  height: 10px;
  background: var(--sun);
  border: 2px solid var(--ink);
  will-change: transform, width, height;
}

/* hover: square grows and turns into a diamond (rotation is eased in JS) */
/* size and rotation are animated frame by frame in JS, so they stay smooth
   even when the system has animations turned off */

/* ════════ HEADER ════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 16px 0;
  background: transparent;
  transition: padding .3s ease-in-out, background .3s ease-in-out, box-shadow .3s ease-in-out;
}

header.stuck {
  padding: 8px 0;
  background: var(--paper);
  box-shadow: 0 4px 0 0 var(--ink)
}

.hd {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Silkscreen', monospace;
  font-size: 15px;
  color: var(--ink)
}

.brand .a {
  color: var(--sun)
}

.brand svg {
  filter: drop-shadow(2px 2px 0 var(--ink));
  transition: transform .15s steps(2)
}

.brand:hover svg {
  transform: translateY(-4px)
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.nbtn {
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  text-decoration: none;
  background: var(--panel);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  width: 70px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform .1s steps(2), box-shadow .1s steps(2), background .1s steps(2);
}

.nbtn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--ink);
  background: var(--sun)
}

.nbtn.on {
  background: var(--sun)
}

.nbtn svg {
  display: block
}

#theme {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

/* ════════ LAYOUT ════════ */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px
}

section {
  padding: 64px 0
}

.h2 {
  font-size: 24px;
  margin-bottom: 12px
}

.lead {
  color: var(--dim);
  margin-bottom: 34px;
  max-width: 60ch
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px
}

.sec-head .lead {
  margin-bottom: 0
}

/* divider */
.div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 0
}

.div i {
  width: 8px;
  height: 8px;
  background: var(--ink);
  box-shadow: 2px 2px 0 0 var(--sun);
  display: block
}

.div b {
  width: 124px;
  height: 16px;
  background: var(--ink);
  box-shadow: 4px 4px 0 0 var(--sun);
  display: block
}

/* ════════ HERO ════════ */
.hero {
  padding-top: 132px;
  padding-bottom: 40px
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center
}

.hero-grid>*,
.hero-grid>*>* {
  min-width: 0
}

.badge {
  display: inline-block;
  background: var(--mint);
  color: #06281D;
  border: 3px solid var(--ink);
  padding: 7px 14px;
  font-family: 'Silkscreen', monospace;
  font-size: 11px
}

/* live clock beside the badge: my time and what I'm probably doing */
.hrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px
}

.now {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 7px 12px;
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  white-space: nowrap
}

.now time {
  font-variant-numeric: tabular-nums
}

.now em {
  font-style: normal;
  color: var(--dim)
}

.now .dot {
  width: 8px;
  height: 8px;
  background: #3DDC84;
  box-shadow: 0 0 0 2px var(--ink);
  animation: pulse 1.6s steps(2) infinite
}

.now.sleep .dot {
  background: #7AA2F7;
  animation: none
}

@keyframes pulse {
  50% {
    opacity: .25
  }
}

@media (prefers-reduced-motion:reduce) {
  .now .dot {
    animation: none
  }
}

@media(max-width:620px) {
  .now em {
    display: none
  }
}

.hero h1 {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.4;
  margin: 20px 0 16px;
  max-width: 19ch;
  overflow-wrap: break-word
}

.hero h1 .hl {
  color: var(--sun);
  text-shadow: 3px 3px 0 var(--ink)
}

.hero p {
  font-size: clamp(19px, 1.5vw, 23px);
  color: var(--dim);
  max-width: 44ch;
  margin-bottom: 28px
}

.cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.art-wrap {
  position: relative;
  padding: 18px;
  min-width: 0;
  max-width: 100%
}

.art-back {
  position: absolute;
  inset: 0;
  border: 4px solid var(--sun);
  background: transparent
}

/* the character — the artwork leans toward the cursor, the eyes follow it */
.photo {
  position: relative;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
  background: var(--panel);
  aspect-ratio: 1/1;
  overflow: hidden;
  isolation: isolate
}

.photo img,
.photo .eyes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block
}

.photo img {
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform, opacity;
  transition: opacity .35s steps(4)
}

/* the mood faces stack on the base one and cross-fade between them */
.photo img.off {
  opacity: 0
}

/* the hologram he is holding — a live chat laid over the one in the artwork.
   .stage carries the same lean as the picture, so the panel never drifts off it. */
.stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform
}

.holo {
  position: absolute;
  left: 7.2%;
  top: 51.6%;
  width: 32.4%;
  height: 29%;
  transform-origin: 0 0;
  /* maps the box exactly onto the tilted panel in the artwork */
  transform: matrix(.990, .142, .0219, 1, 0, 0);
  /* opaque, or the CODE/ART drawn on the original panel reads through it */
  background:
    repeating-linear-gradient(rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px),
    #4C1E9C;
  border: 2px solid #D6C6FF;
  box-shadow: 0 0 0 1px rgba(76, 30, 156, .9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Silkscreen', monospace;
  line-height: 1.35
}

.holo-top {
  display: flex;
  align-items: center;
  gap: .4em;
  background: rgba(214, 198, 255, .22);
  color: #EADCFF;
  padding: .25em .4em;
  flex: 0 0 auto
}

.holo-top i {
  width: .45em;
  height: .45em;
  background: #5BE08F;
  display: block
}

.holo-log {
  flex: 1;
  padding: .45em 1.15em .6em .9em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35em;
  overflow: hidden
}

.holo .holo-log p {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  color: #FFD24A
}

.holo .holo-log p.me {
  color: #FFFFFF;
  text-align: right
}

/* a caret sits on whichever line is still being typed */
.holo .holo-log p.typing::after {
  content: '';
  display: inline-block;
  width: .5em;
  height: .9em;
  background: currentColor;
  margin-left: .15em;
  vertical-align: -.1em;
  animation: caret .6s steps(1) infinite
}

@keyframes caret {
  50% { opacity: 0 }
}

/* the flash where the stylus meets the panel, one per keystroke */
.tap {
  position: absolute;
  left: 40.2%;
  top: 84.2%;
  width: 4%;
  height: 4%;
  margin: -2% 0 0 -2%;
  border-radius: 50%;
  background: #FFE49B;
  opacity: 0;
  transform: scale(.4)
}

.tap.hit {
  animation: tap .28s steps(4)
}

@keyframes tap {
  0% { opacity: .85; transform: scale(.3) }
  100% { opacity: 0; transform: scale(1.4) }
}

@media (prefers-reduced-motion:reduce) {
  .tap.hit { animation: none }
}

/* the pupils darken the lens instead of sitting on top of it, so they
   read as eyes behind tinted glass rather than stickers */
.photo .eyes {
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: transform
}

/* sticker avatar in the header */
.brand .mug {
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
  display: block;
  image-rendering: pixelated;
  background: var(--sun);
  transition: transform .15s steps(2)
}

.brand:hover .mug {
  transform: translateY(-4px)
}

.art {
  position: relative;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
  background: #120F22;
  display: grid;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  max-width: 100%
}

.art i {
  display: block
}

.float {
  position: absolute;
  z-index: 5;
  background: var(--panel);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 10px 14px;
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  line-height: 1.6;
}

.float.bl {
  left: -14px;
  bottom: -18px
}

.float.tr {
  right: -14px;
  top: -18px;
  background: var(--rose);
  color: #FDFBF2
}

/* ════════ ABOUT ════════ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center
}

.about p {
  margin-bottom: 14px;
  max-width: 60ch;
  color: var(--dim)
}

.about p b {
  color: var(--ink);
  font-weight: 400
}

/* links inside the intro read as part of the sentence */
.about p a,
#hp a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--sun)
}

.about p a:hover,
.about p a:focus-visible {
  color: var(--rose);
  text-decoration-color: var(--rose)
}

.skills {
  margin-top: 26px;
  display: grid;
  gap: 16px
}

.sk-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px
}

.sk-ico {
  background: var(--sun);
  color: #1B1830;
  border: 3px solid var(--ink);
  padding: 5px;
  display: flex
}

.sk-name {
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  flex: 1
}

.sk-lvl {
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  color: var(--dim)
}

.sk-track {
  height: 22px;
  background: var(--panel);
  border: 3px solid var(--ink);
  padding: 0
}

.sk-fill {
  height: 100%;
  background: var(--sun);
  width: 0;
  transition: width 1s steps(10)
}

.sk-fill.r {
  background: var(--rose)
}

.sk-fill.m {
  background: var(--mint)
}

.sk-fill.s {
  background: var(--sky)
}

/* ════════ THE ROOM (hero art) ════════ */
/* the room is square; the hero frame is 4:3 and shows the desk, the two
   screens and the boy. Everything inside is placed in % of the full room. */
.art.room-art {
  aspect-ratio: 4/3
}

.room {
  position: absolute;
  z-index: 2;
  left: -25%;
  top: -36.67%;
  width: 125%;
  aspect-ratio: 1/1
}

.room>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block
}

/* the window: daytime city in the light theme, the night picture in the dark one */
.room>img.day {
  inset: auto;
  left: 79.6875%;
  top: 9.375%;
  width: 20.3125%;
  height: 32.2266%;
  image-rendering: pixelated;
  transition: opacity .9s ease
}

html[data-theme="dark"] .room>img.day {
  opacity: 0
}

/* daytime: the room itself brightens and warms, sunlight pours in from the window.
   The screens and the neon board sit above this, so they keep their own glow. */
.room>img:first-child,
.hand img,
.sign,
.eye-cv {
  filter: brightness(1.32) contrast(.9) saturate(.85) sepia(.1);
  transition: filter .9s ease
}

/* screens in daylight: a touch of glare, but they still glow */
html:not([data-theme="dark"]) .scr {
  filter: brightness(1.06) contrast(.9) saturate(.9)
}

html:not([data-theme="dark"]) .scr:hover,
html:not([data-theme="dark"]) .scr:focus-visible {
  filter: brightness(1.22) contrast(.9) saturate(1)
}

.sunlit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 75% at 92% 28%, rgba(255, 240, 200, .5), transparent 72%),
    linear-gradient(rgba(255, 250, 235, .1), rgba(255, 250, 235, .1));
  mix-blend-mode: screen;
  transition: opacity .9s ease
}

html[data-theme="dark"] .room>img:first-child,
html[data-theme="dark"] .hand img,
html[data-theme="dark"] .sign,
html[data-theme="dark"] .eye-cv {
  filter: none
}

html[data-theme="dark"] .sunlit {
  opacity: 0
}

@media (prefers-reduced-motion:reduce) {

  .room>img.day,
  .room>img:first-child,
  .hand img,
  .sign,
  .sunlit {
    transition: none
  }
}

/* the hands are cut out of the same art and press down as each key is typed */
.hand {
  position: absolute;
  pointer-events: none;
  will-change: transform
}

.hand img {
  display: block;
  width: 100%;
  height: 100%
}

.hand.l {
  left: 41.5%;
  top: 69.53%;
  width: 11.72%;
  height: 8.59%
}

.hand.r {
  left: 50.78%;
  top: 63.96%;
  width: 10.74%;
  height: 7.32%
}

/* the key that was just hit lights up under the finger */
.kf {
  position: absolute;
  width: 1.6%;
  height: 1%;
  background: #E8FDFF;
  box-shadow: 0 0 .5em .2em rgba(103, 232, 249, .85);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none
}

/* the neon board: its top word flips between GAME and CODE with the cursor */
.sign {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 33px;
  transform-origin: 0 0;
  pointer-events: none;
  image-rendering: pixelated
}

/* the boy's eye, redrawn so it can look around */
.eye-cv {
  position: absolute;
  left: 69.140625%;
  top: 52.5390625%;
  width: 2.1484375%;
  height: 1.66015625%;
  pointer-events: none;
  image-rendering: pixelated
}

/* what he says when you bother him */
.talk {
  position: absolute;
  left: 77%;
  top: 34%;
  z-index: 3;
  max-width: 22%;
  background: #FDFBF2;
  color: #1B1830;
  border: 3px solid #1B1830;
  box-shadow: 3px 3px 0 0 #1B1830;
  padding: .45em .6em;
  font-family: 'Silkscreen', monospace;
  font-size: clamp(7px, .85vw, 11px);
  line-height: 1.4;
  transform-origin: 0 100%;
  pointer-events: none
}

.talk::after {
  content: '';
  position: absolute;
  left: -9px;
  bottom: 6px;
  width: 9px;
  height: 9px;
  background: #FDFBF2;
  border-left: 3px solid #1B1830;
  border-bottom: 3px solid #1B1830;
  transform: skewY(-35deg)
}

.talk[hidden] {
  display: none
}

/* keyboard sound toggle, bottom-right of the room */
.snd {
  position: absolute;
  z-index: 6;
  right: -14px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 8px 12px;
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  cursor: pointer
}

.snd[aria-pressed="true"] {
  background: var(--sun);
  color: #1B1830
}

.snd:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink)
}

.snd svg {
  fill: currentColor
}

@media(max-width:980px) {
  .snd {
    right: -6px;
    bottom: -14px
  }
}

@media(max-width:620px) {
  .snd {
    right: 0;
    bottom: -10px;
    font-size: 9px;
    padding: 7px 9px
  }
}

/* each screen is pinned to the four corners of the monitor it sits in (see
   ROOM_SCREENS in the script) — the monitors are drawn in perspective, so a
   flat box never quite fit. Sizes below are the screen's own design pixels. */
.scr {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition: filter .2s
}

.scr.code {
  width: 260px;
  height: 260px;
  background: #17112F;
  font-family: 'VT323', monospace;
  font-size: 19px;
  line-height: 1.12
}

.scr.game {
  width: 288px;
  height: 180px;
  background: #5CC4F0
}

.scr.sprite {
  width: 302px;
  height: 216px;
  background: #A9B9DA
}

/* glass: scanlines, a soft edge and a little glow so the screen reads as lit */
.scr::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(10, 4, 30, .16) 0 2px, transparent 2px 5px),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(20, 8, 50, .42) 100%);
  box-shadow: inset 0 0 18px rgba(103, 232, 249, .35)
}

.scr:hover,
.scr:focus-visible {
  filter: brightness(1.18) saturate(1.1)
}

.scr:focus-visible::after {
  box-shadow: inset 0 0 0 6px #FFB92E
}

.scr-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #E85FB0 55%, #58E1F0 55%);
  color: #2A0B3F;
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  padding: 4px 8px;
  flex: 0 0 auto
}

.scr-bar span {
  flex: 1;
  overflow: hidden;
  white-space: nowrap
}

.scr-bar i {
  width: 9px;
  height: 9px;
  background: #2A0B3F;
  display: block
}

.scr-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  padding: 6px 6px 0 0;
  border-left: 4px solid #C04BC6
}

.scr pre,
.mv-code pre {
  margin: 0;
  font: inherit;
  white-space: pre;
  color: #E4F2FF
}

.scr pre.gut,
.mv-code pre.gut {
  color: #58C9D6;
  text-align: right;
  padding: 0 8px 0 4px;
  flex: 0 0 auto
}

.scr pre .k, .mv-code .k { color: #FF8ED4 }
.scr pre .s, .mv-code .s { color: #8CE99A }
.scr pre .n, .mv-code .n { color: #FFC66D }
.scr pre .c, .mv-code .c { color: #7FD0DC }
.scr pre .f, .mv-code .f { color: #FFE08A }

.scr pre .caret,
.mv-code .caret {
  background: #E4F2FF;
  color: #140B2E
}

.scr canvas,
.mv-screen canvas {
  display: block;
  width: 100%;
  min-height: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges
}

.scr.game canvas {
  height: 100%
}

.scr.sprite canvas {
  flex: 1
}

.scr-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  background: #151A33;
  color: #F2F5FF;
  font-family: 'Silkscreen', monospace;
  font-size: 16px;
  padding: 2px 10px
}

.scr-foot b {
  font-weight: 400
}

/* little blinking hint on the game screen */
.play-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  background: #1B1830;
  color: #FFB92E;
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  padding: 3px 7px;
  animation: blink 1.1s steps(1) infinite
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

/* ---- the big monitor view, opened by clicking a screen ---- */
.mview .cview-box {
  width: min(780px, 100%)
}

.mv-screen {
  position: relative;
  background: #120F22;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none
}

.mv-screen canvas {
  height: auto;
  max-height: calc(100vh - 190px);
  margin: 0 auto;
  object-fit: contain
}

.mv-code {
  display: flex;
  background: #17112F;
  font-family: 'VT323', monospace;
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.15;
  padding: 16px 12px;
  min-height: min(420px, calc(100vh - 200px));
  overflow: auto
}

.mv-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: rgba(18, 15, 34, .55);
  color: #FDFBF2;
  font-family: 'Silkscreen', monospace;
  font-size: clamp(11px, 2vw, 15px);
  line-height: 1.9;
  pointer-events: none
}

.mv-msg b {
  color: #FFB92E;
  font-weight: 400
}

.mv-hud {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 4px solid var(--ink);
  font-family: 'Silkscreen', monospace;
  font-size: 11px
}

.mv-hud i {
  color: var(--rose);
  font-style: normal
}

@media (prefers-reduced-motion:reduce) {
  .play-tag {
    animation: none
  }
}

/* ════════ BUILD / SERVICES ════════ */
.builds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px
}

.build {
  padding: 22px
}

.build .ico {
  background: var(--sun);
  border: 3px solid var(--ink);
  padding: 10px;
  display: inline-flex;
  margin-bottom: 16px
}

.build h3 {
  font-size: 13px;
  margin-bottom: 9px
}

.build p {
  color: var(--dim)
}

/* ════════ WORKS ════════ */
.works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px
}

.work {
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.work {
  transition: scale .2s cubic-bezier(.4, 0, .2, 1)
}

.work:hover {
  scale: 1.02
}

.wname {
  transition: color .15s cubic-bezier(.4, 0, .2, 1)
}

.work:hover .wname {
  color: var(--sun)
}

.shot {
  position: relative;
  height: 190px;
  background: #120F22;
  display: grid;
  overflow: hidden;
  border-bottom: 4px solid var(--ink)
}

.shot i {
  display: block
}

.shot .thumb,
.art .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  image-rendering: pixelated
}

.art .thumb {
  object-position: 70% 50%
}

.veil {
  position: absolute;
  inset: 0;
  background: rgba(18, 15, 34, .72);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s steps(3)
}

.work:hover .veil,
.work:focus-within .veil {
  opacity: 1
}

.veil a {
  transform: translateY(16px);
  transition: transform .2s steps(3)
}

.work:hover .veil a,
.work:focus-within .veil a {
  transform: translateY(0)
}

.wbody {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.wtop {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px
}

.wname {
  font-family: 'Silkscreen', monospace;
  font-size: 14px
}

.pill {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  background: var(--mint);
  color: #06281D
}

.pill.d {
  background: var(--sky);
  color: #042B3D
}

.pill.l {
  background: var(--rose);
  color: #FDFBF2
}

.wdesc {
  color: var(--dim);
  margin-bottom: 14px;
  flex: 1
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px
}

.chip {
  background: var(--ink);
  color: var(--sun);
  font-size: 16px;
  padding: 2px 9px
}

.wlinks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto
}

.wl {
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--sun)
}

.wl:hover {
  background: var(--sun)
}

.wl.off {
  color: var(--dim);
  border-bottom-color: var(--dim);
  cursor: default
}

/* ════════ TROPHIES ════════ */
.tros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px
}

.tro {
  padding: 22px
}

.tro .when {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim);
  margin-bottom: 10px
}

.tro h3 {
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 11px;
  line-height: 1.6
}

.tro p {
  color: var(--dim);
  margin-bottom: 14px
}

.cert {
  display: block;
  border: 3px solid var(--ink);
  margin-bottom: 14px;
  aspect-ratio: 1400/990;
  overflow: hidden;
  background: var(--panel)
}

.cert img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* certificate stack — two certificates, the back one peeks out; click to swap */
.cstack {
  position: relative;
  aspect-ratio: 1400/990;
  margin: 24px 26px 28px 0;
  cursor: pointer
}

.cstack .cert {
  position: absolute;
  inset: 0;
  margin: 0;
  box-shadow: 4px 4px 0 0 var(--ink);
  will-change: transform;
  transition: transform .5s cubic-bezier(.34, 1.45, .5, 1), filter .4s ease-out, box-shadow .35s cubic-bezier(.34, 1.45, .5, 1)
}

.cstack .cert.front {
  z-index: 2;
  filter: none
}

.cstack .cert.back {
  z-index: 1;
  transform: translate(12px, -10px) rotate(3deg);
  filter: brightness(.8) saturate(.7)
}

.cstack:hover .cert.back,
.cstack:focus-visible .cert.back,
.cstack.peek .cert.back {
  transform: translate(34px, -10px) rotate(6deg);
  filter: none
}

.cstack:hover .cert.front,
.cstack:focus-visible .cert.front,
.cstack.peek .cert.front {
  transform: translate(-5px, -5px) rotate(-1.5deg);
  box-shadow: 9px 9px 0 0 var(--ink)
}

.cstack:active .cert.front {
  transform: translate(1px, 1px) scale(.985);
  box-shadow: 2px 2px 0 0 var(--ink);
  transition-duration: .12s
}

.cstack.pre .cert,
.cstack.pre .ctag {
  opacity: 0
}

.cstack:focus-visible {
  outline: 4px solid var(--rose);
  outline-offset: 6px
}

.cstack .cert::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .75) 48%, rgba(255, 236, 170, .5) 52%, transparent 65%);
  background-size: 250% 100%;
  background-position: 130% 0;
  opacity: 0
}

.cstack .cert.shine::after {
  animation: shine .9s cubic-bezier(.4, 0, .2, 1)
}

@keyframes shine {
  0% {
    opacity: 1;
    background-position: 130% 0
  }

  100% {
    opacity: 1;
    background-position: -30% 0
  }
}

.ctag {
  position: absolute;
  left: 10px;
  bottom: -14px;
  z-index: 3;
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 8px;
  pointer-events: none;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.34, 1.45, .5, 1)
}

.cstack:hover .ctag {
  transform: translate(-5px, -5px)
}

.ctag i {
  color: var(--sun);
  font-style: normal
}

.ctag span {
  display: inline-block
}

/* certificate viewer — opened by double-click on the stack or VIEW CERTIFICATES */
.cview {
  position: fixed;
  inset: 0;
  z-index: 880;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(18, 15, 34, .88)
}

.cview-box {
  width: min(920px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column
}

.cview-stage {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  aspect-ratio: 1400/990;
  max-height: calc(100vh - 170px);
  touch-action: pan-y
}

.cview-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none
}

.cview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-top: 4px solid var(--ink);
  flex-wrap: wrap
}

.cview-foot .pbtn {
  font-size: 10px;
  padding: 8px 12px
}

.cview-count {
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  text-align: center;
  flex: 1;
  min-width: 120px
}

.cview-count i {
  color: var(--rose);
  font-style: normal
}

.cview .wl {
  align-self: center
}

@media(max-width:620px) {
  .cview-foot .pbtn {
    font-size: 9px;
    padding: 7px 9px
  }
}

@media (prefers-reduced-motion:reduce) {

  .cstack .cert,
  .ctag {
    transition: none
  }

  .cstack .cert.shine::after {
    animation: none
  }
}

/* ════════ MESSAGE BOX ════════ */
.msg-grid {
  max-width: 620px
}

.msgbox {
  padding: 0
}

.boxtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  padding: 9px 12px
}

.xbtn {
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  background: var(--rose);
  color: #FDFBF2;
  border: 2px solid var(--paper);
  width: 22px;
  height: 22px;
  line-height: 1;
  cursor: pointer
}

.xbtn:hover {
  background: var(--sun);
  color: var(--ink)
}

.fields {
  padding: 22px
}

/* the box unrolls downward when opened */
#msgwrap {
  overflow: hidden
}

#msgwrap.opening {
  animation: unroll .35s cubic-bezier(.2, .9, .25, 1)
}

@keyframes unroll {
  from {
    opacity: 0;
    transform: translateY(-14px);
    max-height: 0
  }

  to {
    opacity: 1;
    transform: none;
    max-height: 900px
  }
}

@media (prefers-reduced-motion:reduce) {
  #msgwrap.opening {
    animation: none
  }
}

.fields {
  display: grid;
  gap: 16px
}

.msg-grid {
  margin-top: 26px
}

.fld span {
  display: block;
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  margin-bottom: 7px
}

.fld input,
.fld textarea {
  width: 100%;
  font-family: 'VT323', monospace;
  font-size: 19px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 9px 12px;
  resize: vertical
}

.fld textarea {
  min-height: 110px;
  line-height: 1.45
}

.fld input::placeholder,
.fld textarea::placeholder {
  color: var(--dim)
}

.fld input:focus,
.fld textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 0 var(--sun)
}

.fld input:focus-visible,
.fld textarea:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px
}

/* the spam trap must stay reachable to bots but invisible to people */
#botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0
}

/* ---- reviews ---- */
#botcheck2 {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0
}

#revwrap {
  overflow: hidden
}

#revwrap.opening {
  animation: unroll .35s cubic-bezier(.2, .9, .25, 1)
}

.fld span i {
  font-style: normal;
  color: var(--dim)
}

.stars-in {
  display: flex;
  gap: 6px
}

.stars-in button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 3px solid var(--ink);
  color: var(--dim);
  cursor: pointer;
  padding: 0
}

.stars-in button.on {
  background: var(--sun);
  color: #1B1830
}

.stars-in button:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px
}

.revwall {
  margin-top: 44px
}

.revh {
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  margin-bottom: 16px
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px
}

.rev {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.rev .rstars {
  color: var(--sun);
  display: flex;
  gap: 3px
}

.rev .rstars .off {
  color: var(--line, #D9D4C2)
}

.rev q {
  font-size: 20px;
  line-height: 1.45;
  quotes: '“' '”'
}

.rev .who {
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  line-height: 1.6
}

.rev .who span {
  display: block;
  color: var(--dim)
}

.rev-empty {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  line-height: 1.7
}

@media (prefers-reduced-motion:reduce) {
  #revwrap.opening {
    animation: none
  }
}

.send-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap
}

.note {
  color: var(--dim)
}

.note.ok {
  color: var(--mint)
}

.note.bad {
  color: var(--rose)
}



/* ════════ FOOTER ════════ */
footer {
  border-top: 4px solid var(--ink);
  padding: 30px 0 84px;
  margin-top: 20px
}

.ft {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap
}

.ft .left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--dim)
}

.ft .left {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px
}

.ft .copy,
.ftr span {
  font-size: 17px;
  color: var(--dim)
}

.ftr {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right
}

.ft .name {
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  color: var(--ink)
}

.socials {
  display: flex;
  gap: 10px
}

.soc {
  background: var(--panel);
  border: 3px solid var(--ink);
  padding: 8px;
  display: flex;
  transition: transform .15s steps(2), background .15s steps(2)
}

.soc:hover {
  transform: translateY(-3px);
  background: var(--sun)
}

/* ════════ PAGE LOAD SEQUENCE ════════ */
/* PixelCraft's own entrance values: short travel, .5s, slight spring overshoot */
html.js [data-ld] {
  opacity: 0;
  transform: var(--ld-from, translateY(20px));
  transition: opacity .5s ease-out, transform .5s cubic-bezier(.34, 1.3, .5, 1)
}

html.loading,
html.loading body {
  overflow-x: clip
}

html.js [data-ld].ld-in {
  opacity: 1;
  transform: none
}

[data-from="left"] {
  --ld-from: translateX(-50px)
}

[data-from="up"] {
  --ld-from: translateY(20px)
}

[data-from="down"] {
  --ld-from: translateY(-20px)
}

[data-from="pop"] {
  --ld-from: scale(.8)
}

[data-from="fade"] {
  --ld-from: none
}

/* ════════ RESPONSIVE ════════ */
@media(max-width:980px) {

  .hero-grid,
  .about,
  .works {
    grid-template-columns: 1fr
  }

  .hero {
    padding-top: 150px;
    padding-bottom: 20px
  }

  .hero h1 {
    max-width: 24ch
  }

  .art-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 14px
  }

  .art {
    aspect-ratio: 16/10
  }

  .float.bl {
    left: -6px;
    bottom: -14px
  }

  .float.tr {
    right: -6px;
    top: -14px
  }
}

@media(max-width:620px) {
  body {
    font-size: 19px
  }

  .wrap,
  .hd,
  .ft {
    padding-left: 16px;
    padding-right: 16px
  }

  section {
    padding: 46px 0
  }

  .hero {
    padding-top: 142px
  }

  .hero h1 {
    font-size: 21px;
    max-width: 100%;
    line-height: 1.5
  }

  .hero p {
    font-size: 19px
  }

  .h2 {
    font-size: 17px
  }

  .nbtn {
    width: 52px;
    height: 46px;
    font-size: 8px;
    gap: 3px
  }

  .nbtn svg {
    width: 15px;
    height: 15px
  }

  #theme {
    width: 38px;
    height: 38px
  }

  .brand {
    font-size: 12px
  }

  .brand .mug {
    width: 28px;
    height: 28px
  }

  .div b {
    width: 64px
  }

  .art-wrap {
    padding: 10px
  }

  .art {
    aspect-ratio: 3/2
  }

  .float {
    font-size: 9px;
    padding: 8px 10px
  }

  .float.bl {
    left: 0;
    bottom: -10px
  }

  .float.tr {
    right: 0;
    top: -10px
  }

  .pbtn {
    font-size: 11px;
    padding: 11px 15px
  }

  .shot {
    height: 150px
  }

  .ft {
    justify-content: center;
    text-align: center
  }

  .ft .left,
  .ftr {
    align-items: center;
    text-align: center
  }

  .cta {
    gap: 10px
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  /* entrance and reveal keep fading, just without the travel */
  html.js [data-ld] {
    transform: none;
    transition: opacity .45s ease-out
  }

  .anim {
    translate: none;
    transition: opacity .45s ease-out;
    transition-delay: var(--d, 0ms)
  }

  /* what actually has to stop: cursor particles, hover motion, blinking */
  .tp,
  .bp {
    display: none
  }

  .caret {
    animation: none
  }

  .build:hover,
  .tro:hover {
    transform: none
  }

  .work:hover {
    scale: 1
  }

  .sk-fill {
    transition: width .4s linear
  }

  .veil a {
    transform: none
  }
}
/* ════════ ACHIEVEMENTS ════════ */
#achbtn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 820;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 10px 14px
}

#achbtn svg {
  margin: 0;
  vertical-align: 0;
  color: var(--sun);
  filter: drop-shadow(1px 1px 0 var(--ink))
}

.ach-toasts {
  position: fixed;
  left: 22px;
  bottom: 84px;
  z-index: 890;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(340px, calc(100vw - 32px));
  pointer-events: none
}

.ach-toast {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  box-shadow: 6px 6px 0 0 var(--ink);
  pointer-events: auto;
  cursor: pointer;
  animation: achIn .32s steps(4) both
}

@keyframes achIn {
  from {
    opacity: 0;
    transform: translateX(-24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.ach-toast i,
.ach-toast b,
.ach-toast em {
  display: block;
  font-style: normal
}

.ach-toast i {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim)
}

.ach-toast b {
  font-family: 'Silkscreen', monospace;
  font-size: 13px
}

.ach-toast em {
  font-size: 17px;
  line-height: 1.2;
  color: var(--dim)
}

.ach-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--sun);
  color: #1B1830;
  border: 3px solid var(--ink)
}

.ach-box {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px)
}

.ach-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 10px;
  font-family: 'Silkscreen', monospace;
  font-size: 11px
}

.ach-bar {
  flex: 1;
  height: 16px;
  border: 3px solid var(--ink);
  background: var(--paper)
}

.ach-bar i {
  display: block;
  height: 100%;
  background: var(--mint);
  transition: width .4s steps(8)
}

.ach-list {
  list-style: none;
  overflow-y: auto;
  padding: 6px 18px 12px;
  display: grid;
  gap: 8px
}

.ach {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 3px solid var(--line)
}

.ach > span:nth-child(2) {
  flex: 1;
  min-width: 0
}

.ach b,
.ach em {
  display: block;
  font-style: normal
}

.ach b {
  font-family: 'Silkscreen', monospace;
  font-size: 12px
}

.ach em {
  font-size: 17px;
  line-height: 1.2;
  color: var(--dim)
}

.ach small {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim);
  white-space: nowrap
}

.ach:not(.on) .ach-ic {
  background: var(--paper);
  color: var(--dim);
  border-color: var(--line)
}

.ach:not(.on) b {
  color: var(--dim)
}

.ach.on {
  border-color: var(--ink)
}

.ach-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 18px 16px;
  font-size: 16px;
  color: var(--dim)
}

.ach-foot .wl {
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer
}

@media(max-width:620px) {
  #achbtn {
    left: 16px;
    bottom: 16px
  }

  .ach-toasts {
    left: 16px;
    top: 16px;
    bottom: auto
  }

  .ach-ic {
    width: 34px;
    height: 34px
  }
}

@media (prefers-reduced-motion:reduce) {
  .ach-toast {
    animation: none
  }
}

/* ════════ CASE STUDIES ════════ */
.case-btn {
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom-color: var(--mint);
  cursor: pointer;
  padding: 0
}

.case-btn span {
  display: inline-block;
  transition: transform .12s steps(2)
}

.case-btn:hover {
  background: var(--mint);
  color: #06281D
}

.case-btn:hover span {
  transform: translateX(3px)
}

.case-box {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px)
}

.case-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 8px;
  outline: none
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 18px
}

.case-shot {
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  background: var(--paper);
  aspect-ratio: 16/10;
  overflow: hidden
}

.case-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.case-name {
  font-size: 20px;
  margin: 0
}

.case-tag {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 14px
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 16px
}

.case-meta dt {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim)
}

.case-meta dd {
  font-size: 18px;
  line-height: 1.25
}

.case-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.case-sec {
  border-top: 3px dashed var(--line);
  padding: 14px 0
}

.case-sec h4 {
  font-size: 11px;
  color: var(--sun);
  text-shadow: 1px 1px 0 var(--ink);
  margin-bottom: 6px
}

html[data-theme="dark"] .case-sec h4 {
  text-shadow: none
}

.case-sec p {
  line-height: 1.4
}

.case-list {
  list-style: none;
  display: grid;
  gap: 6px
}

.case-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.35
}

.case-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--mint);
  box-shadow: 2px 2px 0 0 var(--ink)
}

.case-stack {
  list-style: none;
  display: grid;
  gap: 8px
}

.case-stack li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.3
}

.case-stack span:last-child {
  color: var(--dim)
}

.case-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px
}

.case-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px 16px;
  border-top: 4px solid var(--ink)
}

.case-nav .pbtn {
  font-size: 10px;
  padding: 8px 12px
}

.case-count {
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  color: var(--dim)
}

@media(max-width:720px) {
  .case-hero,
  .case-pair {
    grid-template-columns: 1fr
  }

  .case-body {
    padding: 16px 16px 4px
  }

  .case-shot {
    aspect-ratio: 5/2;
    box-shadow: 4px 4px 0 0 var(--ink)
  }

  .case-nav {
    padding: 10px 16px 12px
  }

  .case-tag {
    font-size: 20px
  }
}

/* ════════ LIVE FROM GITHUB ════════ */
.gh-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px
}

.gh-stat {
  padding: 14px 16px;
  box-shadow: 6px 6px 0 0 var(--ink)
}

.gh-stat b {
  display: block;
  font-family: 'Silkscreen', monospace;
  font-size: 22px;
  color: var(--sun);
  text-shadow: 2px 2px 0 var(--ink);
  line-height: 1.2
}

html[data-theme="dark"] .gh-stat b {
  text-shadow: 2px 2px 0 #000
}

.gh-stat span {
  display: block;
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim);
  margin-top: 6px;
  line-height: 1.5
}

.gh-cal {
  padding: 16px 18px 14px;
  margin-bottom: 30px
}

.gh-cal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  margin-bottom: 12px
}

.gh-read {
  color: var(--dim)
}

.gh-scroll {
  overflow-x: auto;
  padding-bottom: 6px
}

.gh-grid {
  --c: 13px;
  --g: 3px;
  width: max-content;
  margin: 0 auto
}

.gh-months,
.gh-cells {
  display: grid;
  grid-template-columns: repeat(var(--weeks, 53), var(--c));
  gap: var(--g)
}

.gh-months {
  font-family: 'Silkscreen', monospace;
  font-size: 8px;
  color: var(--dim);
  height: 14px;
  margin-bottom: 4px
}

.gh-months span {
  white-space: nowrap;
  overflow: visible
}

.gh-cells {
  grid-template-rows: repeat(7, var(--c));
  grid-auto-flow: column
}

.gh-cells i,
.gh-legend i {
  display: block;
  width: var(--c, 13px);
  height: var(--c, 13px);
  background: var(--line)
}

.gh-cells i.pad {
  background: none
}

.gh-cells i[data-d] {
  cursor: pointer
}

.gh-cells i.on {
  outline: 2px solid var(--sun);
  outline-offset: 1px
}

.gh .l1 {
  background: #9BE9A8
}

.gh .l2 {
  background: #40C463
}

.gh .l3 {
  background: #2FBF8F;
  filter: saturate(1.3) brightness(.85)
}

.gh .l4 {
  background: #216E39
}

html[data-theme="dark"] .gh .l1 {
  background: #0E4429
}

html[data-theme="dark"] .gh .l2 {
  background: #006D32
}

html[data-theme="dark"] .gh .l3 {
  background: #26A641;
  filter: none
}

html[data-theme="dark"] .gh .l4 {
  background: #39D353
}

.gh-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-family: 'Silkscreen', monospace;
  font-size: 8px;
  color: var(--dim)
}

.gh-legend i {
  --c: 11px
}

.gh-h {
  font-size: 13px;
  margin-bottom: 14px
}

.gh-repos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px
}

.gh-repo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  transition: transform .1s steps(2), box-shadow .1s steps(2)
}

.gh-repo:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 var(--ink)
}

.gh-rn {
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  overflow-wrap: anywhere
}

.gh-repo:hover .gh-rn {
  color: var(--sun)
}

.gh-rd {
  color: var(--dim);
  line-height: 1.3;
  flex: 1
}

.gh-rm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim)
}

.gh-rm i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border: 1px solid var(--ink)
}

.gh-foot {
  margin-top: 18px;
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim)
}

.gh-empty {
  color: var(--dim)
}

.gh-off {
  padding: 18px 20px
}

/* skeleton while loading */
.gh:not(.ready) .gh-stats::before {
  content: '';
  grid-column: 1 / -1;
  height: 84px;
  background: var(--line);
  animation: ghPulse 1s steps(2) infinite
}

@keyframes ghPulse {
  50% {
    opacity: .4
  }
}

@media(max-width:980px) {
  .gh-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:620px) {
  .gh-stats {
    gap: 12px
  }

  .gh-stat b {
    font-size: 17px
  }

  .gh-repos {
    grid-template-columns: 1fr
  }

  .gh-grid {
    --c: 11px;
    --g: 2px;
    margin: 0
  }
}

@media (prefers-reduced-motion:reduce) {
  .gh:not(.ready) .gh-stats::before {
    animation: none
  }
}

/* ════════ NOW PLAYING ════════ */
.nowplay {
  margin: 28px 0 6px;
  box-shadow: 6px 6px 0 0 var(--ink)
}

/* photo and Now Playing share the left column, so neither side leaves a gap */
.about:has(.about-side) {
  align-items: stretch
}

.about-side {
  min-width: 0
}

/* the text column stretches to match; the skill bars sit on the bottom line */
.about-side + div {
  display: flex;
  flex-direction: column
}

.about-side + div .skills {
  margin-top: auto;
  padding-top: 26px
}

/* one column: photo, then the intro and skills, then Now Playing */
@media(max-width:980px) {
  .about-side {
    display: contents
  }

  .about-side + div {
    order: 1
  }

  .about-side .nowplay {
    order: 2;
    margin-top: 0
  }
}

.np-top {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  padding: 8px 12px
}

.np-upd {
  margin-left: auto;
  color: var(--sun)
}

.np-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px
}

.np-eq i {
  width: 3px;
  height: 100%;
  background: var(--mint);
  transform-origin: bottom;
  animation: npEq .9s steps(4) infinite
}

.np-eq i:nth-child(2) {
  animation-duration: .7s;
  animation-delay: -.3s
}

.np-eq i:nth-child(3) {
  animation-duration: 1.1s;
  animation-delay: -.5s
}

.np-eq i:nth-child(4) {
  animation-duration: .8s;
  animation-delay: -.2s
}

@keyframes npEq {
  0%, 100% {
    transform: scaleY(.25)
  }

  50% {
    transform: scaleY(1)
  }
}

.np-list {
  display: grid;
  gap: 4px;
  padding: 12px 16px 4px
}

.np-list div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: baseline
}

.np-list dt {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim)
}

.np-list dd {
  line-height: 1.25
}

.np-list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--sun)
}

.np-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 16px 14px
}

.np-cta .pbtn {
  padding: 9px 14px
}

.np-cta .pbtn svg {
  vertical-align: -2px
}

@media(max-width:620px) {
  .np-list div {
    grid-template-columns: 1fr;
    gap: 0
  }
}

@media (prefers-reduced-motion:reduce) {
  .np-eq i {
    animation: none;
    transform: scaleY(.6)
  }
}

/* ════════ TERMINAL ════════ */
#termbtn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

#termbtn svg {
  margin: 0;
  vertical-align: 0
}

@media(max-width:620px) {
  #termbtn {
    width: 38px;
    height: 38px
  }
}

kbd {
  font-family: 'Silkscreen', monospace;
  font-size: .7em;
  padding: 1px 6px;
  border: 2px solid currentColor;
  box-shadow: 2px 2px 0 0 currentColor
}

.term-box {
  --t-bg: #0E0C17;
  --t-fg: #C8F7DC;
  --t-hi: #2FBF8F;
  width: min(780px, 100%);
  height: min(560px, calc(100vh - 48px));
  background: var(--t-bg)
}

.term-log {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 6px;
  color: var(--t-fg);
  font-size: 20px;
  line-height: 1.3;
  /* faint CRT scanlines */
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255, 255, 255, .025) 3px 4px)
}

.tl {
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.tl.cmd {
  margin-top: 8px;
  color: #FDFBF2
}

.tl.th {
  color: var(--sun)
}

.tl.ok {
  color: var(--t-hi)
}

.tl.err {
  color: #FF7A7A
}

.tl.dim {
  color: #8C88A8
}

.tl.kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px
}

.tl .tk {
  color: var(--t-hi)
}

.tl a {
  color: var(--sun)
}

.t-pr {
  color: var(--sun);
  white-space: nowrap
}

.term-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 2px dashed rgba(200, 247, 220, .18);
  font-size: 20px
}

.term-in input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #FDFBF2;
  font: inherit;
  font-family: 'VT323', monospace;
  caret-color: var(--t-hi)
}

.term-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 18px 14px
}

.term-chip {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  background: none;
  color: var(--t-fg);
  border: 2px solid rgba(200, 247, 220, .35);
  padding: 5px 9px;
  cursor: pointer
}

.term-chip:hover,
.term-chip:focus-visible {
  border-color: var(--t-hi);
  color: var(--t-bg);
  background: var(--t-hi)
}

@media(max-width:620px) {
  .term-log,
  .term-in {
    font-size: 18px;
    padding-left: 12px;
    padding-right: 12px
  }

  .term-chips {
    padding: 0 12px 12px
  }

  .tl.kv {
    grid-template-columns: 1fr;
    gap: 0
  }

  .term-in .t-pr {
    font-size: 15px
  }
}

/* ════════ LEADERBOARD (inside the game screen) ════════ */
.mv-board {
  list-style: none;
  margin: 8px auto 10px;
  width: min(260px, 100%);
  font-size: clamp(10px, 1.6vw, 13px);
  line-height: 1.7;
  text-align: left
}

.mv-board li {
  display: grid;
  grid-template-columns: 2.4em 1fr auto;
  padding: 0 8px
}

.mv-board li.dev {
  color: #8FE3C3
}

.mv-board li.me {
  background: #FFB92E;
  color: #1B1830;
  animation: mvBlink .5s steps(1) 4
}

@keyframes mvBlink {
  50% {
    background: transparent;
    color: #FFB92E
  }
}

.mv-name {
  pointer-events: auto;
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 10px
}

.mv-name span {
  display: flex;
  gap: 10px
}

.mv-name input {
  width: 4.2em;
  font-family: 'Silkscreen', monospace;
  font-size: 22px;
  text-align: center;
  letter-spacing: .25em;
  text-transform: uppercase;
  background: #1B1830;
  color: #FFB92E;
  border: 3px solid #FDFBF2;
  padding: 4px 0 4px .25em;
  outline: none
}

.mv-name input:focus {
  border-color: #FFB92E
}

.mv-name .pbtn {
  font-size: 11px;
  padding: 8px 14px
}

@media (prefers-reduced-motion:reduce) {
  .mv-board li.me {
    animation: none
  }
}

/* small screens: top 5, plus your own row if it is lower */
@media(max-width:620px) {
  .mv-board li:nth-child(n+6):not(.me) {
    display: none
  }

  .mv-name input {
    font-size: 18px
  }
}

/* ════════ DEVLOG ════════ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  transition: transform .1s steps(2), box-shadow .1s steps(2)
}

.dl-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 var(--ink)
}

.dl-meta {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim)
}

.dl-title {
  font-family: 'Silkscreen', monospace;
  font-size: 14px;
  line-height: 1.5
}

.dl-card:hover .dl-title {
  color: var(--sun)
}

.dl-sum {
  color: var(--dim);
  line-height: 1.3;
  flex: 1
}

.dl-go {
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  align-self: flex-start;
  border-bottom: 3px solid var(--mint)
}

.dl-go i {
  font-style: normal;
  display: inline-block;
  transition: transform .12s steps(2)
}

.dl-card:hover .dl-go i {
  transform: translateX(3px)
}

/* the devlog page */
.dl-page #hdr {
  position: sticky;
  top: 0
}

.dl-page .nav .pbtn {
  font-size: 10px;
  padding: 10px 14px
}

.dl-main {
  padding-top: 48px;
  padding-bottom: 72px;
  min-height: 70vh
}

.dl-main > .h2 {
  font-size: 24px
}

.dl-back {
  display: inline-block;
  margin-bottom: 24px
}

.dl-post {
  max-width: 70ch;
  margin: 0 auto
}

.dl-head {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--ink)
}

.dl-post h1 {
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.4;
  margin-top: 10px
}

.dl-body {
  font-size: 21px;
  line-height: 1.55
}

.dl-body p,
.dl-body ul,
.dl-body ol,
.dl-body blockquote,
.dl-body pre {
  margin-bottom: 18px
}

.dl-body h2,
.dl-body h3,
.dl-body h4 {
  margin: 34px 0 12px;
  font-size: 15px
}

.dl-body h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--mint);
  box-shadow: 2px 2px 0 0 var(--ink)
}

.dl-body ul,
.dl-body ol {
  padding-left: 26px
}

.dl-body li {
  margin-bottom: 6px
}

.dl-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--sun)
}

.dl-body a:hover {
  color: var(--rose);
  text-decoration-color: var(--rose)
}

.dl-body b {
  font-weight: 400;
  color: var(--ink);
  background: linear-gradient(transparent 60%, rgba(255, 185, 46, .45) 60%)
}

.dl-body code {
  font-family: 'VT323', monospace;
  background: var(--ink);
  color: var(--sun);
  padding: 0 6px
}

.dl-body pre {
  background: #0E0C17;
  color: #C8F7DC;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 18px;
  line-height: 1.35
}

.dl-body pre code {
  background: none;
  color: inherit;
  padding: 0
}

.dl-body blockquote {
  border-left: 6px solid var(--sun);
  padding: 8px 0 8px 18px;
  color: var(--dim);
  font-size: 22px
}

.dl-body img {
  max-width: 100%;
  border: 4px solid var(--ink)
}

.dl-body hr {
  border: 0;
  border-top: 3px dashed var(--line);
  margin: 28px 0
}

.dl-nav {
  max-width: 70ch;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.dl-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink)
}

.dl-nav a:last-child {
  text-align: right
}

.dl-nav i {
  font-style: normal;
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim)
}

.dl-nav a:hover {
  color: var(--sun)
}

@media(max-width:980px) {
  .dl-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:620px) {
  .dl-grid,
  .dl-nav {
    grid-template-columns: 1fr
  }

  .dl-nav a:last-child {
    text-align: left
  }

  .dl-body {
    font-size: 20px
  }

  .dl-main {
    padding-top: 28px
  }
}

/* ════════ VISITOR COUNTER ════════ */
.visits {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim)
}

.odo {
  display: inline-flex;
  gap: 2px
}

.odo i {
  font-style: normal;
  font-size: 13px;
  width: 16px;
  text-align: center;
  background: var(--ink);
  color: var(--sun);
  padding: 2px 0;
  box-shadow: inset 0 -6px 0 rgba(255, 255, 255, .06)
}

/* ════════ GUESTBOOK ════════ */
.gb {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: start
}

.gb-form {
  position: sticky;
  top: 110px
}

.gb-left {
  float: right;
  font-style: normal;
  color: var(--dim)
}

.gb-left.low {
  color: var(--rose)
}

.gb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0
}

.gb-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  align-content: start
}

.gb-note {
  --c: var(--sun);
  position: relative;
  margin: 0;
  padding: 18px 16px 12px;
  background: var(--panel);
  border: 4px solid var(--ink);
  border-top: 10px solid var(--c);
  box-shadow: 6px 6px 0 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .15s steps(3)
}

.gb-note:hover {
  transform: rotate(0deg) translateY(-3px)
}

/* a pixel pin */
.gb-note::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--rose);
  box-shadow: 2px 2px 0 0 var(--ink)
}

.gb-note.c-mint { --c: var(--mint) }
.gb-note.c-sky { --c: var(--sky) }
.gb-note.c-rose { --c: var(--rose) }

.gb-note blockquote {
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  margin-bottom: 10px
}

.gb-note figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: var(--dim)
}

.gb-note figcaption b {
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: anywhere
}

.gb-empty {
  color: var(--dim);
  grid-column: 1 / -1
}

.gb-more {
  grid-column: 1 / -1;
  justify-self: center;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer
}

.mv-scope {
  display: block;
  font-size: .75em;
  color: #8FE3C3;
  margin-top: 6px
}

@media(max-width:980px) {
  .gb {
    grid-template-columns: 1fr
  }

  .gb-form {
    position: static
  }
}

@media (prefers-reduced-motion:reduce) {
  .gb-note,
  .gb-note:hover {
    transform: none;
    transition: none
  }
}
