:root {
  --bg: #101218; --panel: #1a1d27; --panel2: #222634; --line: #2e3344; --ink: #f3f4f7; --muted: #a7acbb; --accent: #ff014f;
  --action: #ff014f; --adventure: #ffc531; --casual: #2fd3a2; --direct: #8fa2ff;
}
html, body { min-height: 100%; }
body {
  min-height: 100dvh; display: grid; grid-template-rows: auto 1fr;
  background: #090b12; color: var(--ink); font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}

/* the data center behind everything (welcome-scene.js) */
.scene-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 62% 55%, rgb(9 11 18 / .72), transparent 70%), radial-gradient(ellipse at 50% 50%, transparent 40%, rgb(5 6 10 / .75) 100%); }
.top, .stage { position: relative; z-index: 2; }
.holo-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.holo {
  position: absolute; padding: 10px 12px; border-radius: 10px; max-width: 220px;
  background: rgb(18 30 52 / .55); border: 1px solid rgb(120 190 255 / .32); color: #cfe6ff;
  font: 500 12px/1.35 'JetBrains Mono', monospace; backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgb(47 211 162 / .12), inset 0 0 0 1px rgb(255 255 255 / .03); opacity: .78;
}
.holo p { margin: 4px 0 0; }
.holo-k { color: #2fd3a2; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.holo-chat { right: 3%; top: 15%; }
.holo-deploy { right: 5%; bottom: 8%; }
.holo-deploy b { color: #2fd3a2; }
.holo-chart { left: 3%; top: 15%; }
.holo-code { left: 4%; bottom: 7%; color: #ffc531; }
.dots { display: inline-flex; gap: 4px; margin-top: 6px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #9fd0ff; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 50% { opacity: .2; transform: translateY(-2px); } }
.bar { height: 4px; margin-top: 8px; border-radius: 2px; background: rgb(255 255 255 / .1); overflow: hidden; }
.bar i { display: block; height: 100%; background: #2fd3a2; transform-origin: 0 50%; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 6px; }
.bars i { width: 12px; height: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #ff5a8a, #ff014f); transform-origin: 50% 100%; }
.speech { background: rgb(26 29 39 / .9); backdrop-filter: blur(8px); }


.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(14px, 3vw, 32px); }
.brand { font: 700 1.2rem/1 'Unbounded', sans-serif; letter-spacing: -.02em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions .jf-sound { min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; text-decoration: none; color: inherit; cursor: pointer; }
.btn.solid { background: var(--accent); color: #fff; }
.btn.ghost { border-color: var(--line); }

.stage {
  display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px);
  align-items: center; width: min(1240px, 100%); margin: 0 auto; padding: 12px clamp(16px, 4vw, 40px) 40px;
}
.host { width: 100%; max-width: 360px; justify-self: center; }

.talk { display: grid; gap: 22px; min-width: 0; }
.speech { position: relative; display: grid; gap: 10px; justify-items: start; padding: 26px 28px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 50px rgb(0 0 0 / .35); }
.speech::before { content: ''; position: absolute; left: -12px; top: 46px; width: 22px; height: 22px; background: var(--panel); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.who { margin: 0; color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.line { margin: 0; min-height: 3.2em; font: 600 clamp(1.25rem, 2.4vw, 1.85rem)/1.3 'Bricolage Grotesque', sans-serif; cursor: pointer; }
.speech.is-small .line { min-height: 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.next { margin-top: 6px; }

/* --- select mode: four cartridges with real screenshots --- */
.mode-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 400 .85rem/1 'Silkscreen', monospace; color: #9fb0d8; text-transform: uppercase; letter-spacing: .08em; }
.mode-title::before { content: ''; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blinkStart 1s steps(1) infinite; }
.style-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; perspective: 900px; }
.style {
  --c: var(--accent);
  position: relative; display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; text-align: left; cursor: pointer;
  border-radius: 16px; border: 1px solid rgb(255 255 255 / .1); background: rgb(14 17 26 / .82); color: var(--ink);
  backdrop-filter: blur(8px); transform-style: preserve-3d;
  box-shadow: 0 18px 40px rgb(0 0 0 / .45);
  transition: border-color .25s, box-shadow .25s;
}
.style:hover, .style:focus-visible { border-color: var(--c); outline: none; box-shadow: 0 0 0 1px var(--c), 0 0 34px color-mix(in srgb, var(--c) 45%, transparent), 0 24px 50px rgb(0 0 0 / .5); }
.style-action { --c: var(--action); } .style-adventure { --c: var(--adventure); } .style-casual { --c: var(--casual); } .style-direct { --c: var(--direct); }
.mode-art { position: relative; height: 128px; overflow: hidden; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--c) 45%, transparent), #0a0d16 70%); }
.mode-art img { position: absolute; left: 50%; top: 22px; width: 74%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; border: 2px solid rgb(255 255 255 / .85);
  box-shadow: 0 10px 22px rgb(0 0 0 / .5); translate: -50% 0; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.mode-art img:nth-child(1) { transform: rotate(-9deg) translate(-22%, 6px); }
.mode-art img:nth-child(2) { transform: rotate(8deg) translate(22%, 8px); }
.mode-art img:last-child { transform: rotate(0deg); z-index: 1; }
.style:hover .mode-art img:nth-child(1) { transform: rotate(-14deg) translate(-38%, 2px); }
.style:hover .mode-art img:nth-child(2) { transform: rotate(13deg) translate(38%, 4px); }
.style:hover .mode-art img:last-child { transform: translateY(-6px) scale(1.04); }
.mode-art::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(180deg, rgb(255 255 255 / .04) 0 1px, transparent 1px 3px); }
.mode-body { display: grid; align-content: start; gap: 6px; padding: 14px 14px 16px; border-top: 2px solid var(--c); }
.style-name { font: 400 1.15rem/1.05 'Pixelify Sans', sans-serif; color: #fff; }
.style-desc { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.style-count { margin-top: 4px; color: var(--c); font: 400 .7rem/1 'Silkscreen', monospace; text-transform: uppercase; }
.surprise { justify-self: start; margin-top: 16px; padding: 10px 16px; border: 1px dashed rgb(255 255 255 / .25); border-radius: 10px; background: rgb(14 17 26 / .6); color: var(--muted); font: 400 .78rem/1 'Silkscreen', monospace; text-transform: uppercase; cursor: pointer; }

.games-head { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.games-head h2 { margin: 0; font: 700 clamp(1.3rem, 2.6vw, 1.9rem)/1.1 'Unbounded', sans-serif; letter-spacing: -.03em; }
.back { min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; }
.game-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.game {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 3px; align-items: center;
  padding: 18px 20px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel); color: inherit; text-decoration: none;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), border-color .2s;
}
a.game:hover, a.game:focus-visible { transform: translateX(6px); border-color: var(--accent); outline: none; }
.game-name { font-size: 1.2rem; font-weight: 700; }
.game-desc { grid-row: 2; color: var(--muted); line-height: 1.4; }
.game-go { grid-row: 1 / 3; grid-column: 2; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; }
.game.is-soon { opacity: .6; }
.game.is-soon .game-go { background: var(--panel2); color: var(--muted); }

@media (max-width: 1180px) and (min-width: 821px) {
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .holo-layer { display: none; }
  .stage { grid-template-columns: 1fr; gap: 8px; padding-top: 0; }
  .host { max-width: 170px; }
  .speech::before { display: none; }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-art { height: 96px; }
  .style { min-height: 0; }
  .top .ghost { display: none; }
}

/* --- the arcade cabinet that shows the games of a style --- */
.cab { --c: #ff014f; position: relative; width: min(460px, 100%); margin: 0 auto; filter: drop-shadow(0 30px 60px rgb(0 0 0 / .6)); }
.cab-marquee {
  position: relative; padding: 14px 18px; border-radius: 22px 22px 6px 6px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 35%, #0b0d14), #0b0d14);
  box-shadow: inset 0 0 0 3px var(--c), 0 0 40px color-mix(in srgb, var(--c) 45%, transparent);
}
.cab-marquee h2 { margin: 0; font: 400 clamp(1.5rem, 3vw, 2rem)/1 'Lilita One', sans-serif; letter-spacing: .03em; color: #fff; text-shadow: 0 0 12px var(--c), 0 0 28px var(--c); }
.cab-bezel { padding: 16px; background: linear-gradient(90deg, #191c27, #232838 50%, #191c27); border-inline: 6px solid #10121a; }
.crt {
  position: relative; display: grid; gap: 8px; padding: 12px; overflow: hidden; border-radius: 18px / 22px;
  background: radial-gradient(ellipse at 50% 40%, #16203a, #070a12 80%); color: #e8f0ff;
  box-shadow: inset 0 0 40px rgb(0 0 0 / .8), inset 0 0 0 2px #000, 0 0 30px color-mix(in srgb, var(--c) 25%, transparent);
  transform-origin: 50% 50%;
}
.crt-head { display: flex; justify-content: space-between; font: 400 .78rem/1 'Silkscreen', monospace; color: var(--c); text-transform: uppercase; }
.crt-shot { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(0deg, #0d1220 0 3px, #111a2e 3px 6px); }
.crt-shot img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.crt-soon { position: absolute; inset: 0; display: grid; place-items: center; font: 400 1.1rem/1 'Silkscreen', monospace; color: #9fb0d8; text-transform: uppercase; animation: noise .2s steps(2) infinite; background: repeating-radial-gradient(circle at 30% 40%, rgb(255 255 255 / .05) 0 1px, transparent 1px 3px); }
@keyframes noise { 50% { background-position: 3px 2px; } }
/* on-screen arrows: they glow and nudge outwards so it is obvious there are more games */
.crt-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border: 2px solid var(--c); border-radius: 50%;
  background: rgb(0 0 0 / .6); cursor: pointer;
  box-shadow: 0 0 14px var(--c), inset 0 0 10px color-mix(in srgb, var(--c) 50%, transparent);
  animation: arrowGlow 1.6s ease-in-out infinite;
}
.crt-arrow::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-block: 9px solid transparent; filter: drop-shadow(0 0 4px #fff); }
.crt-arrow.left { left: 8px; --nudge: -4px; } .crt-arrow.left::after { border-right: 13px solid #fff; translate: -2px 0; }
.crt-arrow.right { right: 8px; --nudge: 4px; } .crt-arrow.right::after { border-left: 13px solid #fff; translate: 2px 0; }
.crt-arrow:hover, .crt-arrow:focus-visible { background: var(--c); outline: none; animation-play-state: paused; }
@keyframes arrowGlow {
  0%, 100% { box-shadow: 0 0 8px var(--c), inset 0 0 6px color-mix(in srgb, var(--c) 40%, transparent); transform: translateX(0); }
  50% { box-shadow: 0 0 22px var(--c), 0 0 40px color-mix(in srgb, var(--c) 60%, transparent), inset 0 0 12px var(--c); transform: translateX(var(--nudge)); }
}
/* one dot per game: shows how many there are and which one is on screen */
.crt-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
.crt-dot { width: 26px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgb(255 255 255 / .18); cursor: pointer; transition: background .2s, width .2s; }
.crt-dot[aria-current="true"] { width: 40px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.crt-dot:hover, .crt-dot:focus-visible { background: rgb(255 255 255 / .5); outline: none; }

/* Previous / Next game outside the cabinet */
.cab-row { --c: #ff014f; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--cab-w, 460px)) minmax(0, 1fr); align-items: center; gap: clamp(10px, 1.6vw, 24px); }
.cab-row .cab { width: 100%; }
.side-nav {
  display: grid; justify-items: center; gap: 6px; width: 112px; padding: 16px 10px; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--c) 70%, transparent); border-radius: 18px; color: #fff; text-align: center;
  background: linear-gradient(180deg, rgb(12 14 22 / .85), rgb(12 14 22 / .65)); backdrop-filter: blur(6px);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.side-nav.prev { justify-self: end; } .side-nav.next { justify-self: start; }
.side-arrow { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: 0 0 18px var(--c); }
.side-arrow::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-block: 9px solid transparent; }
.prev .side-arrow::after { border-right: 13px solid #fff; translate: -2px 0; }
.next .side-arrow::after { border-left: 13px solid #fff; translate: 2px 0; }
.side-label { font: 400 .8rem/1.15 'Silkscreen', monospace; text-transform: uppercase; }
.side-nav small { font-size: .78rem; line-height: 1.2; color: #b9c6e4; min-height: 2.4em; }
.side-nav:hover, .side-nav:focus-visible { outline: none; transform: translateY(-3px); background: color-mix(in srgb, var(--c) 30%, #0c0e16); box-shadow: 0 0 30px var(--c); }
.side-nav.next { animation: sideCall 2.2s ease-in-out infinite; }
.side-nav.next .side-arrow { animation: sideNudge 1.1s ease-in-out infinite; }
@keyframes sideCall { 0%, 100% { box-shadow: 0 0 14px color-mix(in srgb, var(--c) 30%, transparent); } 50% { box-shadow: 0 0 34px var(--c); } }
@keyframes sideNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.crt-name { margin: 2px 0 0; font: 400 1.5rem/1.1 'Pixelify Sans', sans-serif; color: #fff; text-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.crt-desc { margin: 0; color: #b9c6e4; font-size: .95rem; line-height: 1.35; min-height: 2.7em; }
.crt-start { margin: 2px 0 0; justify-self: center; font: 400 .95rem/1 'Silkscreen', monospace; color: var(--c); text-transform: uppercase; animation: blinkStart 1s steps(1) infinite; }
@keyframes blinkStart { 50% { opacity: .2; } }
.crt-scan { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 50%, transparent 60%, rgb(0 0 0 / .45));
}
.cab-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 26px;
  background: linear-gradient(180deg, #2a2f42, #171a25); border-inline: 6px solid #10121a;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}
/* joystick seen from the front: a flat base on the panel and the stick standing straight up out of it */
.stick-wrap { display: flex; align-items: center; gap: 4px; }
.stick-dir { width: 0; height: 0; border-block: 8px solid transparent; filter: drop-shadow(0 0 5px var(--c)); animation: dirBlink 1.2s ease-in-out infinite; }
.stick-dir.left { border-right: 11px solid var(--c); }
.stick-dir.right { border-left: 11px solid var(--c); animation-delay: .6s; }
@keyframes dirBlink { 50% { opacity: .35; } }
.stick { position: relative; width: 76px; height: 96px; padding: 0; border: 0; background: none; cursor: pointer; }
.stick::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 28px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, #05060a 0 22%, #2b3044 24%, #4a5170 70%, #2b3044 100%);
  box-shadow: 0 5px 0 #0c0e15, 0 8px 14px rgb(0 0 0 / .5);
}
.stick i {
  position: absolute; left: 50%; bottom: 22px; width: 10px; height: 52px; margin-left: -5px; border-radius: 5px 5px 3px 3px;
  background: linear-gradient(90deg, #6d7388, #e4e7ef 45%, #8a90a6); transform-origin: 50% 100%;
}
.stick i::after {
  content: ''; position: absolute; left: 50%; top: -28px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffd0de 0 8%, #ff7aa2 18%, var(--accent) 58%, #8c0030 100%);
  box-shadow: 0 6px 10px rgb(0 0 0 / .45);
}
.stick:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 12px; }
.cab-btns { display: flex; gap: 12px; }
.cab-btn { width: 74px; height: 74px; border: 0; border-radius: 50%; cursor: pointer; font: 400 .78rem/1 'Silkscreen', monospace; text-transform: uppercase; color: #fff; box-shadow: 0 6px 0 rgb(0 0 0 / .5), inset 0 -6px 10px rgb(0 0 0 / .25); }
.cab-btn:active:not(:disabled) { translate: 0 4px; box-shadow: 0 2px 0 rgb(0 0 0 / .5); }
.cab-btn.start { background: radial-gradient(circle at 40% 30%, #ff7aa2, #ff014f 60%, #a1003a); }
.cab-btn.back { background: radial-gradient(circle at 40% 30%, #9fb4ff, #4c62d8 60%, #26338a); }
.cab-btn:disabled { filter: grayscale(.8) brightness(.6); cursor: default; }
.cab-base { margin: 0 auto; width: 92%; padding: 16px 0 18px; text-align: center; background: linear-gradient(180deg, #151824, #0d0f17); border-radius: 0 0 14px 14px; border-inline: 6px solid #10121a; }
.cab-base span { display: inline-block; padding: 8px 14px; border-radius: 6px; background: #07080d; box-shadow: inset 0 0 0 2px #2a2f42; font: 400 .72rem/1 'Silkscreen', monospace; color: #ffc531; text-transform: uppercase; animation: blinkStart 1.4s steps(1) infinite; }
@media (max-width: 820px) {
  .cab-panel { padding: 14px 18px; }
  .stick { width: 64px; height: 84px; }
  .stick::before { height: 24px; }
  .stick i { bottom: 19px; height: 44px; }
  .stick i::after { width: 34px; height: 34px; margin-left: -17px; top: -24px; }
  .cab-btn { width: 62px; height: 62px; }
  .crt-name { font-size: 1.25rem; }
  /* phones: no room beside the cabinet, so Previous / Next sit in a bar right above it */
  .cab-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cab-row .cab { grid-column: 1 / -1; grid-row: 2; }
  .side-nav { width: 100%; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 2px 10px; padding: 8px 12px; text-align: left; }
  .side-nav.prev { justify-self: stretch; } .side-nav.next { justify-self: stretch; grid-template-columns: 1fr auto; justify-items: end; text-align: right; }
  .side-nav .side-arrow { grid-row: span 2; width: 34px; height: 34px; }
  .side-nav.next .side-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .side-nav small { min-height: 0; font-size: .72rem; }
  .side-label { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .crt-start, .cab-base span, .crt-soon, .crt-arrow, .side-nav, .side-arrow, .stick-dir { animation: none !important; } }
/* the objective tracker sits at the top centre: keep the speech bubble clear of it */
.stage { padding-top: 56px; }
.talk:has(#games:not([hidden])) .speech { padding: 16px 22px; }
.talk:has(#games:not([hidden])) .line { font-size: clamp(1rem, 1.6vw, 1.2rem); }

/* with the real 3D corridor the floating objects are part of the scene */
.has-3d .holo-layer { display: none; }

/* wide screens: the content grows with the room instead of floating small in the middle */
@media (min-width: 1600px) {
  .stage { width: min(1700px, 100%); grid-template-columns: minmax(300px, 470px) minmax(0, 1fr); }
  .host { max-width: 470px; }
  .line { font-size: 2.1rem; }
  .speech.is-small .line { font-size: 1.45rem; }
  .mode-art { height: 172px; }
  .style-name { font-size: 1.4rem; }
  .style-desc { font-size: 1rem; }
  .cab-row { grid-template-columns: minmax(0, 1fr) minmax(0, var(--cab-w, 560px)) minmax(0, 1fr); }
  .side-nav { width: 132px; }
}

/* Jef stands on the corridor floor: feet near the bottom of the screen, where the 3D floor is,
   with a contact shadow and a soft reflection, instead of floating in the middle */
@media (min-width: 821px) {
  body { min-height: 100dvh; }
  .stage { align-items: center; min-height: calc(100dvh - 76px); padding-bottom: 0; }
  .host { position: relative; align-self: end; width: clamp(240px, 24vw, 470px); max-width: none; margin-bottom: 2.5vh; }
  .host::before {
    content: ''; position: absolute; left: 8%; right: 8%; bottom: -1.2vh; height: 5vh; z-index: -1; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgb(0 0 0 / .75), rgb(0 0 0 / .35) 45%, transparent 70%);
  }
  .host::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4vh; height: 7vh; z-index: -2; border-radius: 50%; pointer-events: none;
    background: radial-gradient(ellipse at center, rgb(255 1 79 / .28), rgb(96 190 255 / .12) 45%, transparent 70%);
    filter: blur(6px);
  }
  .host .jef-shadow { opacity: .55; }
}

/* ===================== boot screen ===================== */
.is-booting { overflow: hidden; }
.boot {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(ellipse at 50% 45%, #0e1830, #05070d 70%); color: #cfe6ff; font-family: 'JetBrains Mono', monospace;
}
.boot::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(rgb(96 190 255 / .06) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgb(96 190 255 / .06) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.boot > * { position: relative; }
.boot-core { width: min(220px, 50vw); aspect-ratio: 1; }
.boot-core svg { width: 100%; height: 100%; overflow: visible; }
.boot-links line { stroke: #60beff; stroke-width: .8; opacity: .15; animation: link 2s ease-in-out infinite; }
@keyframes link { 50% { opacity: .75; stroke: #ff2a6a; } }
.boot-nodes circle { fill: #9fd0ff; animation: node 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes node { 50% { fill: #2fd3a2; transform: scale(1.5); } }
.boot-ring { fill: none; stroke: #ff014f; stroke-width: 2; stroke-dasharray: 60 480; stroke-linecap: round; transform-origin: 100px 100px; animation: spin 1.4s linear infinite; filter: drop-shadow(0 0 6px #ff014f); }
.boot-ring2 { fill: none; stroke: #2fd3a2; stroke-width: 1; stroke-dasharray: 4 10; opacity: .6; transform-origin: 100px 100px; animation: spin 9s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot-glyph { fill: #fff; font: 700 30px 'JetBrains Mono', monospace; filter: drop-shadow(0 0 8px #ff2a6a); }
.boot-pct { margin: 6px 0 0; font: 700 clamp(2.4rem, 6vw, 3.6rem)/1 'Unbounded', sans-serif; color: #fff; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.boot-pct span { display: inline-block; min-width: 2.2ch; text-align: right; }
.boot-bar { width: min(360px, 70vw); height: 3px; border-radius: 2px; background: rgb(255 255 255 / .1); overflow: hidden; }
.boot-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff014f, #ffc531, #2fd3a2); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px #ff2a6a; }
.boot-log { display: grid; gap: 4px; width: min(420px, 86vw); min-height: 9.5em; margin: 10px 0 0; padding: 0; list-style: none; font-size: .85rem; color: #8fe8c7; }
.boot-log li { animation: in .3s ease-out both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boot-log .cmd { color: #fff; }
.boot-log .wait { color: #9fb0d8; }
.boot-log .wait::after { content: '\2588'; margin-left: 4px; animation: blinkStart 1s steps(1) infinite; }
.boot-log .ok { color: #ff7aa2; }
@keyframes in { from { opacity: 0; transform: translateX(-8px); } }
/* the exit: the screen splits open like a blast door */
.boot-half { position: absolute; left: 0; right: 0; height: 50%; background: #05070d; transform: scaleY(0); }
.boot-half.top { top: 0; transform-origin: 50% 0; }
.boot-half.bottom { bottom: 0; transform-origin: 50% 100%; }
.boot.is-out { background: transparent; pointer-events: none; }
.boot.is-out::before, .boot.is-out > :not(.boot-half) { opacity: 0; transition: opacity .25s; }
.boot.is-out .boot-half { transform: scaleY(1); animation: door 1s cubic-bezier(.7, 0, .2, 1) .1s forwards; }
.boot.is-out .boot-half.top { box-shadow: 0 2px 0 #ff014f, 0 0 30px #ff014f; }
.boot.is-out .boot-half.bottom { box-shadow: 0 -2px 0 #ff014f, 0 0 30px #ff014f; }
@keyframes door { to { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) {
  .boot-links line, .boot-nodes circle, .boot-ring, .boot-ring2, .boot-log .wait::after { animation: none; }
  .boot.is-out .boot-half { animation-duration: .01s; }
}

/* ===================== below the arcade: plain text and links ===================== */
.home-more { position: relative; z-index: 2; padding: clamp(60px, 9vw, 120px) clamp(16px, 4vw, 40px) 40px; background: linear-gradient(180deg, transparent, rgb(7 8 11 / .92) 120px, #07080b); }
.home-more-inner { width: min(1100px, 100%); margin: 0 auto; }
.home-kicker { margin: 0 0 12px; color: #8fe8c7; font: 500 .78rem/1 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.home-more h2 { margin: 0 0 16px; max-width: 20ch; font: 600 clamp(2rem, 4.6vw, 3.6rem)/1.02 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.045em; }
.home-lead { margin: 0 0 26px; max-width: 62ch; color: #b4b2ad; font-size: 1.12rem; line-height: 1.55; }
.home-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 54px; }
.home-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .18); color: #f4f1ec; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.home-btn:hover { border-color: rgb(255 255 255 / .45); }
.home-btn.solid { background: #f4f1ec; color: #07080b; border-color: #f4f1ec; }
.home-btn.solid:hover { background: #fff; }
.home-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 34px; border-top: 1px solid rgb(255 255 255 / .08); }
.home-cols h3 { margin: 0 0 14px; font: 600 1.15rem/1.2 'Bricolage Grotesque', system-ui, sans-serif; }
.home-list { display: grid; gap: 2px; margin: 0 0 14px; padding: 0; list-style: none; }
.home-list a { display: block; padding: 8px 0; color: #cfcbc4; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .05); }
.home-list a:hover { color: #fff; }
nav .home-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.home-all { color: #ff8fb1; font-weight: 600; }
.home-foot { margin: 50px 0 0; color: #77756f; font-size: .9rem; text-align: center; }
@media (max-width: 760px) { .home-cols { grid-template-columns: 1fr; } }

/* Google reCAPTCHA badge (WordPress only): hidden, the contact forms say it in text */
.grecaptcha-badge { visibility: hidden !important; }

/* phones: the objective box sits under the top bar (it used to cover the name and Hire me), compact */
@media (max-width: 820px) {
  .jf-guide:not(.is-mounted) { top: 78px; min-width: 0; max-width: calc(100vw - 32px); padding: 6px 12px 7px; gap: 0; }
  .jf-guide:not(.is-mounted) .jf-guide-recap { display: none; }
  .jf-guide:not(.is-mounted) .jf-guide-text { font-size: .95rem; }
  .jf-guide:not(.is-mounted) .jf-guide-step { font-size: .72rem; }
  .stage { padding-top: 70px; }
}

/* the speech bubble keeps two lines of room while it types, so the cabinet below it does not jump */
@media (min-width: 821px) { .talk:has(#games:not([hidden])) .speech .line { min-height: 2.6em; } }

/* short computer screens (laptops, 720-860px tall): a compact cabinet so screen, joystick and Start all fit */
@media (min-width: 821px) and (max-height: 860px) {
  .stage { padding-top: 34px; }
  .talk:has(#games:not([hidden])) .speech { padding: 10px 18px; }
  .talk:has(#games:not([hidden])) .line { font-size: 1.02rem; }
  .cab-marquee { padding: 8px 14px; }
  .cab-marquee h2 { font-size: 1.45rem; }
  .cab-bezel { padding: 10px; }
  .crt { gap: 6px; padding: 10px; }
  .crt-desc { display: none; }
  .crt-name { font-size: 1.2rem; }
  .cab-panel { padding: 8px 22px; }
  .stick { width: 64px; height: 80px; }
  .stick::before { height: 24px; }
  .stick i { bottom: 19px; height: 42px; }
  .stick i::after { width: 34px; height: 34px; margin-left: -17px; top: -24px; }
  .cab-btn { width: 60px; height: 60px; }
  .cab-base { padding: 8px 0 10px; }
}
