html { background: #000008 url(images/stars.png); }
:root { color-scheme: dark; }
body { background: #000008 url(images/stars.png); min-height: 100vh; box-sizing: border-box; }
body { margin: 0; padding-block: 10px 34px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); color: #fff; font: 13px/1.5 Verdana, Geneva, Arial, sans-serif; text-align: center; }
.page { max-width: 612px; margin: 0 auto; }
a { color: #3dff7a; }
a:visited { color: #ff9de6; }
a:hover { color: #ffee00; }
a:focus-visible, button:focus-visible { outline: 2px dotted #ffee00; outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { position: static; }
img { border: 0; max-width: 100%; height: auto; vertical-align: top; }
.top { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 14px; font: 12px "Courier New", Courier, monospace; color: #b9b4ff; }
.name { margin: 0; font: italic 900 58px/1 "Arial Black", Impact, Arial, sans-serif; color: #ffee00; text-shadow: 3px 3px 0 var(--s1, #ff2bb3), 6px 6px 0 var(--s2, #5a2bff); letter-spacing: -1px; }
.role { margin: 16px 0 14px; font: bold 15px "Courier New", Courier, monospace; color: #3dff7a; letter-spacing: 3px; }
.rainbow { height: 6px; margin: 14px 0; border: 1px solid #000; background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #44f, #f0f, #f00, #f80, #ff0, #0f0, #0ff, #44f, #f0f, #f00); background-size: 200% 100%; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav li { flex: 1 1 100px; }
.btn, .nav a { display: block; padding: 6px 8px; font: bold 12px Verdana, Geneva, Arial, sans-serif; color: #ffee00; background: #2a0f8f; border: 3px outset #a48dff; text-decoration: none; cursor: pointer; }
.btn { display: inline-block; margin: 2px 4px 2px 0; }
.btn:visited, .nav a:visited { color: #ffee00; }
.btn:hover, .nav a:hover { background: #b0007a; color: #fff; }
.btn:active, .nav a:active, .nav .here { border-style: inset; background: #000; color: #fff; }
.ticker { margin: 12px 0; padding: 5px 0; overflow: hidden; white-space: nowrap; background: #000; border: 2px inset #a48dff; font: 13px "Courier New", Courier, monospace; color: #fff; }
.ticker p { display: inline-block; margin: 0; padding: 0 12px; }
.ticker b { color: #ff2bb3; }
.box { margin: 16px 0; padding: 14px 16px; background: #0d0636; border: 4px ridge #a48dff; }
h1, h2, h3 { font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Trebuchet MS", sans-serif; margin: 0; }
h1 { font-size: 25px; line-height: 1.2; color: #ffee00; }
h2, .cap { font: bold 17px "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Trebuchet MS", sans-serif; letter-spacing: 1px; color: #ff6fd0; margin: 0 0 12px; text-align: center; }
h2 a, h2 a:visited { color: #ff6fd0; }
h2::before, h2::after, .cap::before, .cap::after { content: "\2605" / ""; color: #ffee00; margin: 0 10px; }
h3 { font-size: 19px; color: #ffee00; margin: 8px 0 2px; }
h3 a, h3 a:visited { color: #ffee00; }
h4 { font: bold 14px Verdana, Geneva, Arial, sans-serif; color: #ff6fd0; margin: 16px 0 2px; }
p { margin: 6px 0; }
.label { font: 12px "Courier New", Courier, monospace; color: #8ff4ff; }
.pic { display: inline-block; border: 4px ridge #c8c8d8; background: #000; }
.trio { display: flex; gap: 10px; text-align: center; }
.trio > div { flex: 1 1 0; min-width: 0; padding: 8px; background: #050220; border: 2px inset #a48dff; }
.trio p { font-size: 12px; }
table { width: 100%; border-collapse: separate; border-spacing: 2px; border: 3px outset #a48dff; text-align: left; margin: 10px 0; }
th, td { padding: 6px 8px; border: 1px inset #a48dff; vertical-align: top; background: #050220; }
th, td.date { width: 1%; white-space: nowrap; font: bold 12px "Courier New", Courier, monospace; color: #3dff7a; }
.left { text-align: left; }
ul { margin: 6px 0; padding-left: 22px; }
code, pre { font: 12px "Courier New", Courier, monospace; color: #8ff4ff; }
pre { margin: 6px 0; padding: 8px; overflow-x: auto; background: #000; border: 2px inset #a48dff; }
.foot, .note { font-size: 12px; color: #b9b4ff; }
.btn[aria-pressed="true"] { border-style: inset; background: #000; color: #fff; }
.shot { margin: 12px 0 4px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo .shot { margin: 0; padding: 8px 8px 4px; background: #050220; border: 2px inset #a48dff; }
.duo .shot:last-child:nth-child(odd) { grid-column: 1 / -1; }
.row { display: flex; gap: 14px; align-items: flex-start; margin: 12px 0 0; padding: 8px; text-align: left; background: #050220; border: 2px inset #a48dff; }
.row .pic { flex: 0 1 224px; }
.row > div { flex: 1 1 0; min-width: 0; }
.row h3 { margin-top: 2px; }
.row .btn { margin-top: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stats div { flex: 1 1 110px; padding: 8px 4px; font-size: 12px; background: #050220; border: 2px inset #a48dff; }
.stats b { font: bold 23px "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Trebuchet MS", sans-serif; color: #ffee00; }
hr { height: 0; border: 0; border-top: 3px ridge #a48dff; margin: 14px 0; }
label { font: 12px "Courier New", Courier, monospace; color: #8ff4ff; }
.email { width: 100%; max-width: 320px; box-sizing: border-box; padding: 6px; font: 14px "Courier New", Courier, monospace; text-align: center; color: #3dff7a; background: #000; border: 2px inset #a48dff; }
.left h1 { margin-bottom: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .rainbow { animation: slide 5s linear infinite; }
  .ticker p { padding-left: 100%; animation: run 22s linear -9s infinite; }
  .ticker:hover p, .ticker:focus-within p { animation-play-state: paused; }
}
@keyframes slide { to { background-position: -200% 0; } }
@keyframes run { to { transform: translateX(-100%); } }
@media (max-width: 520px) {
  .name { font-size: 40px; text-shadow: 2px 2px 0 var(--s1, #ff2bb3), 4px 4px 0 var(--s2, #5a2bff); }
  .role { font-size: 13px; letter-spacing: 1px; }
  .top { font-size: 11px; white-space: nowrap; }
  .trio { display: block; }
  .trio > div { margin: 10px 0; }
  .duo { grid-template-columns: 1fr; }
  .row { display: block; text-align: center; }
  .pair { display: block; }
  .pair .box { margin: 16px 0; }
  .row .stage3d { --w: 62vw; }
  .row > div { margin-top: 8px; }
  .box { padding: 12px 10px; }
  .nav li { flex-basis: 30%; }
}

/* motion: a drifting, twinkling sky, spinning cubes, a colour-cycling name, rollovers */
.page { position: relative; z-index: 1; }
body::before, body::after { content: ""; position: fixed; top: 0; bottom: 0; left: 0; right: -260px; pointer-events: none; }
body::before { background-image: radial-gradient(circle at 30px 44px, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 150px 170px, #b9b4ff 0 1px, transparent 1.6px), radial-gradient(circle at 96px 110px, #fff 0 .8px, transparent 1.3px), radial-gradient(circle at 200px 22px, #8ff4ff 0 .8px, transparent 1.3px); background-size: 220px 220px; }
body::after { background-image: radial-gradient(circle at 60px 200px, #ffee00 0 1.4px, transparent 2.2px), radial-gradient(circle at 210px 70px, #fff 0 1.4px, transparent 2.2px), radial-gradient(circle at 130px 20px, #ff9de6 0 1.2px, transparent 2px); background-size: 260px 260px; }
.page::before { content: ""; position: fixed; z-index: -1; top: 10%; left: 100%; width: 120px; height: 2px; opacity: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); pointer-events: none; }
.sky { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.warp body::before { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.name i { display: inline-block; }
.led { display: inline-block; margin: 4px 0; padding: 2px 8px; overflow: hidden; font: bold 21px/1.2 "Courier New", Courier, monospace; letter-spacing: 2px; color: #3dff7a; background: #000; border: 2px inset #a48dff; text-shadow: 0 0 6px #3dff7a; vertical-align: top; }
.led i { display: inline-block; font-style: normal; }
.lamp { display: inline-block; width: 9px; height: 9px; margin-right: 7px; background: #3dff7a; box-shadow: 0 0 6px #3dff7a; }
.status div { flex: 1 1 150px; line-height: 1.6; }
.mast { display: flex; justify-content: center; align-items: center; gap: 20px; }
.cube { flex: none; position: relative; width: 36px; height: 36px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(32deg); }
.cube i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: 2px solid #3dff7a; }
.cube i:nth-child(1) { transform: translateZ(18px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(18px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(18px); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(18px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(18px); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(18px); }
h2::before, h2::after, .cap::before, .cap::after { display: inline-block; }
a.pic:hover, a.pic:focus { border-color: #ffee00; }
.pic.hot { padding: 5px; border: 0; background: #ffee00 linear-gradient(45deg, #ffee00 25%, #ff2bb3 25%, #ff2bb3 50%, #ffee00 50%, #ffee00 75%, #ff2bb3 75%) 0 0 / 20px 20px; }
.stage3d { --w: min(440px, 62vw); perspective: 1200px; padding: 16px 0 20px; }
.prism { --r: calc(var(--w) / 2 / tan(180deg / var(--n))); display: grid; width: var(--w); margin: 0 auto; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)); text-decoration: none; }
.n3 { --n: 3; }
.n4 { --n: 4; }
.face { grid-area: 1 / 1; display: flex; flex-direction: column; backface-visibility: hidden; border: 4px ridge #c8c8d8; background: #000; transform: rotateY(calc(360deg / var(--n) * var(--k))) translateZ(var(--r)); }
.face img { display: block; width: 100%; height: auto; aspect-ratio: var(--a); object-fit: contain; }
.face span { padding: 3px 0; font: 12px "Courier New", Courier, monospace; text-align: center; color: #8ff4ff; background: #000008; }
.hot .face { padding: 5px; border: 0; background: #ffee00 linear-gradient(45deg, #ffee00 25%, #ff2bb3 25%, #ff2bb3 50%, #ffee00 50%, #ffee00 75%, #ff2bb3 75%) 0 0 / 20px 20px; }
.row .stage3d { --w: 190px; flex: 0 0 256px; padding: 6px 0; perspective: 900px; }
.row .face { border-width: 3px; }
.row .face span { padding: 2px 0; font-size: 11px; }
.prism:focus-visible { outline-offset: 8px; }
.play { position: relative; }
.play video { display: block; max-width: 100%; height: auto; background: #000; }
.go { position: absolute; left: 10px; bottom: 10px; width: 46px; height: 36px; padding: 0; font: 15px/1 Arial, sans-serif; color: #ffee00; background: #2a0f8f; border: 3px outset #a48dff; cursor: pointer; }
.go:active { border-style: inset; }
.pair { display: flex; gap: 14px; margin: 16px 0; }
.pair .box { flex: 1 1 0; min-width: 0; margin: 0; }
.game { position: relative; display: inline-block; max-width: 100%; border: 3px inset #a48dff; background: #000 linear-gradient(rgba(61, 255, 122, .07) 1px, transparent 1px) 0 0 / 100% 4px; line-height: 0; }
.game canvas { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
.game canvas:focus-visible { outline: 2px dotted #ffee00; outline-offset: 3px; }
#snakeHint { position: absolute; top: 50%; left: 0; right: 0; margin: 0; transform: translateY(-50%); font: 12px/1.5 "Courier New", Courier, monospace; color: #8ff4ff; }
.deck { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 4px 0 8px; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 34px; padding: 3px 5px; background: #000; border: 2px inset #a48dff; }
.eq i { width: 5px; height: 3px; background: linear-gradient(#ff2bb3, #ffee00 45%, #3dff7a); }
input[type="range"] { width: 120px; max-width: 60%; accent-color: #ff2bb3; vertical-align: middle; }
/* CRT screen: a brightness lift under a shader that multiplies the page */
.crt-boost, .crt-glass { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.crt .crt-boost { display: block; z-index: 8; -webkit-backdrop-filter: brightness(1.22) saturate(1.18) contrast(1.05); backdrop-filter: brightness(1.22) saturate(1.18) contrast(1.05); }
.crt .crt-glass { display: block; z-index: 9; mix-blend-mode: multiply; image-rendering: pixelated; }
.crt-flat .crt-glass { background: radial-gradient(ellipse at center, #fff 50%, #8a8a8a 130%), repeating-linear-gradient(#fff 0, #fff 2px, #bcbcbc 2px, #bcbcbc 3px); background-blend-mode: multiply; }
.crt #main, .crt .foot, .crt .role { text-shadow: 0 0 5px rgba(255, 255, 255, .28); }
.spark { position: fixed; z-index: 5; width: 9px; height: 9px; margin: 8px 0 0 8px; pointer-events: none; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: fall .6s steps(6) forwards; }
.foot .btn { margin-top: 10px; font-size: 11px; padding: 3px 8px; }
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: drift 70s linear infinite; }
  body::after { animation: twinkle 2.4s steps(3) infinite alternate; }
  .page::before { animation: shoot 16s linear 3s infinite; }
  .cube { animation: cube 4s steps(32) infinite; }
  .cube.back { animation-direction: reverse; }
  .name { animation: fly .7s steps(10) backwards, glow 6s linear .7s infinite; }
  .came .name { animation: glow 6s linear infinite; }
  .name i { animation: bob 5s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * 70ms); }
  .lamp { animation: lamp 1s steps(1) infinite; }
  .led i { animation: roll .5s steps(5) backwards; animation-delay: calc(.4s + var(--i) * 80ms); }
  ::view-transition-old(root) { animation: none; }
  ::view-transition-new(root) { animation: blinds .5s steps(8) both; -webkit-mask-image: repeating-linear-gradient(#000 0, #000 var(--blind), transparent var(--blind), transparent 32px); mask-image: repeating-linear-gradient(#000 0, #000 var(--blind), transparent var(--blind), transparent 32px); }
  .still::view-transition-new(root) { -webkit-mask-image: none; mask-image: none; }
  h2::before, .cap::before { animation: turn 1.6s steps(8) infinite; }
  h2::after, .cap::after { animation: turn 1.6s steps(8) infinite reverse; }
  .ticker b { animation: blink 1s steps(1) infinite; }
  .hot .face { animation: chase .7s steps(2) infinite; }
  .turn.n4 { animation: carousel4 16s ease-in-out var(--d, 2s) infinite; }
  .turn.n3 { animation: carousel3 13s ease-in-out var(--d, 2s) infinite; }
  .stage3d:hover .prism, .prism:focus { animation-play-state: paused; }
  .btn:hover, .nav a:hover { animation: flash .24s steps(1) 2; }
}
.still *, .still *::before, .still *::after { animation: none !important; }
.still .ticker p { padding-left: 12px; }
@view-transition { navigation: auto; }
@property --blind { syntax: "<length>"; inherits: false; initial-value: 32px; }
@keyframes blinds { from { --blind: 0px; } to { --blind: 32px; } }
@keyframes bob { 0%, 14%, 100% { transform: none; } 7% { transform: translateY(-9px); } }
@keyframes lamp { 50% { background: #0a5a2a; box-shadow: none; } }
@keyframes roll { from { transform: translateY(-110%); } }
@keyframes carousel4 {
  0%, 19% { transform: translateZ(calc(var(--r) * -1)) rotateY(0deg); }
  25%, 44% { transform: translateZ(calc(var(--r) * -1)) rotateY(-90deg); }
  50%, 69% { transform: translateZ(calc(var(--r) * -1)) rotateY(-180deg); }
  75%, 94% { transform: translateZ(calc(var(--r) * -1)) rotateY(-270deg); }
  100% { transform: translateZ(calc(var(--r) * -1)) rotateY(-360deg); }
}
@keyframes carousel3 {
  0%, 26% { transform: translateZ(calc(var(--r) * -1)) rotateY(0deg); }
  33.3%, 59.3% { transform: translateZ(calc(var(--r) * -1)) rotateY(-120deg); }
  66.6%, 92.6% { transform: translateZ(calc(var(--r) * -1)) rotateY(-240deg); }
  100% { transform: translateZ(calc(var(--r) * -1)) rotateY(-360deg); }
}
@keyframes drift { to { transform: translateX(-220px); } }
@keyframes twinkle { from { opacity: .15; } to { opacity: 1; } }
@keyframes shoot { 0%, 90% { opacity: 0; transform: translate(0, 0) rotate(-18deg); } 90.1% { opacity: 1; transform: translate(0, 0) rotate(-18deg); } 100% { opacity: 1; transform: translate(-125vw, 41vw) rotate(-18deg); } }
@keyframes cube { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes fly { from { transform: translateX(-110vw) skewX(-20deg); } }
@keyframes glow { 0% { --s1: #ff2bb3; --s2: #5a2bff; } 33% { --s1: #5a2bff; --s2: #00c8ff; } 66% { --s1: #00c8ff; --s2: #ff2bb3; } 100% { --s1: #ff2bb3; --s2: #5a2bff; } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes blink { 50% { visibility: hidden; } }
@keyframes chase { to { background-position: 20px 0; } }
@keyframes flash { 50% { background: #ffee00; color: #000; } }
@keyframes fall { to { transform: translateY(24px) scale(.2); } }
@media (max-width: 520px) {
  .cube { display: none; }
}
