Spaces:
Running
Running
Download 404.html from AkshithSurya/spherex-projects: direct link, hf CLI and curl.
- Browser
- Download file 68 kB
-
https://huggingface.co/spaces/AkshithSurya/spherex-projects/resolve/main/404.html
- Command line
-
hf download hf://spaces/AkshithSurya/spherex-projects/404.html
-
curl -L -o 404.html https://huggingface.co/spaces/AkshithSurya/spherex-projects/resolve/main/404.html
68 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Lost in the Cosmic Doodleverse | SPHEREx</title>
<link rel="icon" type="image/png" href="/logo-light.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Caveat:wght@500;600;700&family=Patrick+Hand&family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/tokens.css">
<style>
:root {
--doodle-bg: #07131e;
--doodle-bg-alt: #0a1b2b;
--doodle-chalk: #f0f6fc;
--doodle-blue: #58c0ff;
--doodle-cyan: #38e1ff;
--doodle-yellow: #fed156;
--doodle-orange: #ff9b50;
--doodle-coral: #ff6584;
--doodle-mint: #4ee095;
--doodle-purple: #c084fc;
--doodle-grid: rgba(88, 192, 255, 0.08);
--doodle-border: #58c0ff;
--doodle-muted: #8ea7bc;
--font-doodle: 'Caveat', cursive, sans-serif;
--font-hand: 'Patrick Hand', 'Architects Daughter', cursive, sans-serif;
--font-sketch: 'Architects Daughter', cursive, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--font-ui: 'Inter', system-ui, sans-serif;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:focus-visible,
button:focus-visible,
input:focus-visible,
a:focus-visible {
outline: 2px dashed var(--doodle-yellow) !important;
outline-offset: 3px !important;
box-shadow: 0 0 0 3px rgba(10, 27, 43, 0.9), 0 0 0 5px rgba(254, 209, 86, 0.35) !important;
}
body {
background-color: var(--doodle-bg);
color: var(--doodle-chalk);
font-family: var(--font-hand);
min-height: 100vh;
overflow-x: hidden;
line-height: 1.5;
position: relative;
background-image:
radial-gradient(circle at 50% 12%, rgba(56, 225, 255, 0.09) 0%, transparent 60%),
radial-gradient(circle at 85% 80%, rgba(255, 101, 132, 0.07) 0%, transparent 50%),
linear-gradient(var(--doodle-grid) 1px, transparent 1px),
linear-gradient(90deg, var(--doodle-grid) 1px, transparent 1px);
background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
cursor: default;
}
#doodleCanvas {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 45;
}
#doodleCanvas.active {
pointer-events: auto;
z-index: 85;
cursor: crosshair;
}
.doodle-banner {
position: fixed;
top: 18px;
left: 50%;
transform: translateX(-50%) translateY(-150%);
background: rgba(10, 27, 43, 0.95);
border: 2px solid var(--doodle-yellow);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
padding: 8px 20px;
font-family: var(--font-doodle);
font-size: 1.25rem;
font-weight: 700;
color: var(--doodle-yellow);
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 3px 3px 0 var(--doodle-yellow);
z-index: 95;
pointer-events: none;
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.doodle-banner.visible {
transform: translateX(-50%) translateY(0);
}
.page-wrapper {
position: relative;
z-index: 20;
max-width: 1240px;
margin: 0 auto;
padding: 20px 24px 40px;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.doodle-box {
border: 2px solid var(--doodle-border);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
background: rgba(10, 27, 43, 0.82);
backdrop-filter: blur(12px);
box-shadow: 4px 5px 0px rgba(0, 0, 0, 0.6);
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.doodle-box:hover {
box-shadow: 6px 8px 0px rgba(88, 192, 255, 0.3);
border-color: var(--doodle-cyan);
}
@keyframes doodleWiggle {
0% { transform: rotate(0deg) translate(0, 0); }
25% { transform: rotate(-1.5deg) translate(-1px, 1px); }
50% { transform: rotate(1.2deg) translate(1px, -1px); }
75% { transform: rotate(-1deg) translate(0.5px, 0.5px); }
100% { transform: rotate(0deg) translate(0, 0); }
}
@keyframes floatyBob {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes orbitPulse {
0%, 100% { transform: scale(1); opacity: 0.8; }
50% { transform: scale(1.05); opacity: 1; }
}
@keyframes starTwinkle {
0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.6; }
50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}
.wiggle-hover:hover {
animation: doodleWiggle 0.4s infinite alternate;
}
.doodle-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 22px;
margin-bottom: 24px;
position: relative;
}
.brand-group {
display: inline-flex;
align-items: center;
gap: 14px;
text-decoration: none;
color: var(--doodle-chalk);
}
.logo-badge {
width: 44px;
height: 44px;
border: 2px dashed var(--doodle-yellow);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: rgba(254, 209, 86, 0.12);
transform: rotate(-4deg);
transition: transform 0.3s ease;
}
.brand-group:hover .logo-badge {
transform: rotate(12deg) scale(1.1);
}
.brand-logo-img {
width: 28px;
height: 28px;
object-fit: contain;
}
.brand-titles {
display: flex;
flex-direction: column;
}
.brand-name {
font-family: var(--font-doodle);
font-size: 1.7rem;
font-weight: 700;
letter-spacing: 0.5px;
color: var(--doodle-chalk);
line-height: 1.1;
}
.brand-sub {
font-family: var(--font-hand);
font-size: 0.95rem;
color: var(--doodle-blue);
letter-spacing: 0.5px;
}
.header-actions {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.doodle-toggle-btn {
font-family: var(--font-doodle);
font-size: 1.25rem;
font-weight: 700;
color: var(--doodle-bg);
background: var(--doodle-yellow);
border: 2px solid #ffffff;
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
padding: 6px 18px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
box-shadow: 3px 3px 0 #000;
transition: all 0.15s ease;
}
.doodle-toggle-btn:hover {
transform: translateY(-2px) scale(1.03);
box-shadow: 4px 5px 0 #000;
background: #ffe072;
}
.doodle-toggle-btn.active {
background: var(--doodle-coral);
color: #fff;
animation: doodleWiggle 0.5s infinite alternate;
}
.status-tag {
font-family: var(--font-mono);
font-size: 0.8rem;
color: var(--doodle-coral);
background: rgba(255, 101, 132, 0.12);
border: 1.5px dashed var(--doodle-coral);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
padding: 5px 12px;
transform: rotate(2deg);
display: inline-flex;
align-items: center;
gap: 6px;
}
.main-grid {
display: grid;
grid-template-columns: 1.15fr 0.85fr;
gap: 40px;
align-items: center;
margin: auto 0;
padding: 20px 0;
}
@media (max-width: 920px) {
.main-grid {
grid-template-columns: 1fr;
gap: 32px;
}
}
.narrative-card {
padding: 36px 36px 32px;
position: relative;
}
.washi-tape {
position: absolute;
top: -14px;
left: 45px;
width: 120px;
height: 28px;
background: rgba(254, 209, 86, 0.45);
border-left: 2px dashed rgba(255, 255, 255, 0.4);
border-right: 2px dashed rgba(255, 255, 255, 0.4);
transform: rotate(-3deg);
box-shadow: 0 2px 5px rgba(0,0,0,0.25);
pointer-events: none;
}
.washi-tape.right {
left: auto;
right: 40px;
top: -12px;
width: 100px;
background: rgba(56, 225, 255, 0.35);
transform: rotate(4deg);
}
.hero-404-wrapper {
display: flex;
align-items: baseline;
gap: 16px;
margin-bottom: 8px;
}
.doodle-404-art {
width: 100%;
max-width: 440px;
height: auto;
filter: drop-shadow(4px 6px 0px rgba(0,0,0,0.5));
}
.hand-title {
font-family: var(--font-doodle);
font-size: 2.35rem;
font-weight: 700;
color: var(--doodle-yellow);
line-height: 1.15;
margin-top: 10px;
margin-bottom: 12px;
}
.hand-subtitle {
font-size: 1.15rem;
color: var(--doodle-muted);
margin-bottom: 18px;
line-height: 1.5;
}
.path-scribble {
display: inline-block;
font-family: var(--font-mono);
font-size: 0.92rem;
background: rgba(88, 192, 255, 0.15);
border: 1.5px solid var(--doodle-blue);
border-radius: 180px 10px 170px 10px / 10px 170px 10px 180px;
padding: 2px 10px;
color: var(--doodle-cyan);
word-break: break-all;
margin: 0 4px;
}
.speech-bubble {
position: relative;
background: rgba(254, 209, 86, 0.12);
border: 2px dashed var(--doodle-yellow);
border-radius: 255px 25px 225px 25px / 25px 225px 25px 255px;
padding: 12px 18px;
margin-bottom: 26px;
font-size: 1.05rem;
color: #fff2c4;
display: flex;
align-items: center;
gap: 12px;
box-shadow: 2px 3px 0 rgba(0,0,0,0.4);
}
.speech-bubble::before {
content: "";
position: absolute;
bottom: -12px;
left: 36px;
border-width: 12px 10px 0;
border-style: solid;
border-color: var(--doodle-yellow) transparent;
display: block;
width: 0;
}
.speech-bubble-icon {
flex-shrink: 0;
width: 28px;
height: 28px;
color: var(--doodle-yellow);
}
.button-row {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 30px;
}
.btn-doodle {
font-family: var(--font-doodle);
font-size: 1.35rem;
font-weight: 700;
text-decoration: none;
padding: 10px 24px;
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
display: inline-flex;
align-items: center;
gap: 10px;
cursor: pointer;
transition: all 0.18s ease;
letter-spacing: 0.3px;
}
.btn-doodle-primary {
background: var(--doodle-blue);
color: #04101c;
border: 2px solid #ffffff;
box-shadow: 4px 5px 0px #04101c;
}
.btn-doodle-primary:hover {
background: var(--doodle-cyan);
transform: translate(-2px, -3px);
box-shadow: 6px 8px 0px #04101c;
}
.btn-doodle-primary:active {
transform: translate(2px, 2px);
box-shadow: 2px 2px 0px #04101c;
}
.btn-doodle-secondary {
background: rgba(255, 255, 255, 0.05);
color: var(--doodle-chalk);
border: 2px dashed var(--doodle-muted);
box-shadow: 3px 4px 0px rgba(0, 0, 0, 0.5);
}
.btn-doodle-secondary:hover {
background: rgba(88, 192, 255, 0.15);
border-color: var(--doodle-blue);
color: #ffffff;
transform: translate(-2px, -2px);
box-shadow: 5px 6px 0px rgba(0, 0, 0, 0.5);
}
.target-search-box {
background: rgba(6, 17, 28, 0.6);
border: 1.5px solid var(--doodle-grid);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
padding: 14px 18px;
margin-bottom: 24px;
}
.target-search-label {
font-family: var(--font-sketch);
font-size: 0.95rem;
color: var(--doodle-yellow);
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.target-form {
display: flex;
gap: 8px;
}
.target-input {
flex: 1;
background: rgba(10, 27, 43, 0.8);
border: 1.5px solid var(--doodle-blue);
border-radius: 120px 8px 110px 8px / 8px 110px 8px 120px;
color: #ffffff;
font-family: var(--font-hand);
font-size: 1.05rem;
padding: 6px 14px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}
.target-input:focus {
border-color: var(--doodle-yellow);
box-shadow: 0 0 10px rgba(254, 209, 86, 0.3);
}
.target-submit-btn {
background: var(--doodle-mint);
color: #04180f;
border: 2px solid #ffffff;
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
font-family: var(--font-doodle);
font-size: 1.15rem;
font-weight: 700;
padding: 6px 18px;
cursor: pointer;
box-shadow: 3px 3px 0 #000;
display: inline-flex;
align-items: center;
gap: 6px;
transition: transform 0.15s, box-shadow 0.15s;
}
.target-submit-btn:hover {
transform: translate(-1px, -2px);
box-shadow: 4px 5px 0 #000;
background: #6bf2ad;
}
.routes-sketch-container {
border-top: 2px dashed rgba(88, 192, 255, 0.25);
padding-top: 18px;
}
.routes-sketch-title {
font-family: var(--font-doodle);
font-size: 1.25rem;
color: var(--doodle-blue);
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 8px;
}
.routes-doodle-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
@media (max-width: 600px) {
.routes-doodle-grid {
grid-template-columns: 1fr;
}
}
.route-doodle-item {
text-decoration: none;
display: flex;
flex-direction: column;
background: rgba(14, 34, 52, 0.5);
border: 1.5px solid rgba(88, 192, 255, 0.25);
border-radius: 200px 10px 190px 10px / 10px 190px 10px 200px;
padding: 8px 14px;
transition: all 0.2s ease;
}
.route-doodle-item:hover {
background: rgba(88, 192, 255, 0.12);
border-color: var(--doodle-yellow);
transform: translateY(-2px);
box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.4);
}
.route-path-code {
font-family: var(--font-mono);
font-size: 0.82rem;
color: var(--doodle-cyan);
font-weight: 600;
display: flex;
align-items: center;
gap: 6px;
}
.route-desc-text {
font-family: var(--font-hand);
font-size: 0.88rem;
color: var(--doodle-muted);
}
.illustration-stage {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
}
.illustration-card {
width: 100%;
padding: 30px;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
background: radial-gradient(circle at center, rgba(16, 42, 66, 0.8) 0%, rgba(8, 22, 36, 0.95) 75%);
}
.space-doodle-scene {
width: 100%;
max-width: 360px;
height: 340px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.svg-scene-master {
width: 100%;
height: 100%;
overflow: visible;
}
.sticky-note-doodle {
position: absolute;
bottom: -18px;
right: -10px;
background: #fed156;
color: #1a1608;
padding: 12px 16px;
border-radius: 3px;
font-family: var(--font-doodle);
font-size: 1.15rem;
font-weight: 700;
line-height: 1.25;
transform: rotate(5deg);
box-shadow: 4px 6px 12px rgba(0,0,0,0.5);
border-bottom-right-radius: 18px 6px;
max-width: 190px;
transition: transform 0.2s ease;
cursor: pointer;
}
.sticky-note-doodle:hover {
transform: rotate(2deg) scale(1.06);
}
.sticky-tape-mini {
position: absolute;
top: -8px;
left: 30%;
width: 50px;
height: 14px;
background: rgba(255, 255, 255, 0.4);
border-left: 1px dashed rgba(0,0,0,0.2);
border-right: 1px dashed rgba(0,0,0,0.2);
}
.telemetry-ribbon {
margin-top: 24px;
font-family: var(--font-mono);
font-size: 0.82rem;
color: var(--doodle-cyan);
background: rgba(4, 16, 26, 0.85);
border: 1.5px dashed var(--doodle-border);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
padding: 6px 16px;
display: flex;
align-items: center;
gap: 10px;
box-shadow: 2px 3px 0 rgba(0,0,0,0.4);
}
.telemetry-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--doodle-mint);
animation: orbitPulse 1.4s infinite ease-in-out;
}
.doodle-palette-bar {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
background: rgba(8, 24, 38, 0.95);
border: 2px solid var(--doodle-yellow);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
padding: 8px 18px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 4px 5px 0 var(--doodle-yellow);
display: flex;
align-items: center;
gap: 12px;
z-index: 100;
backdrop-filter: blur(14px);
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
flex-wrap: wrap;
justify-content: center;
max-width: 95vw;
}
.doodle-palette-bar.hidden-bar {
transform: translateX(-50%) translateY(140%);
opacity: 0;
pointer-events: none;
}
.bar-label {
font-family: var(--font-doodle);
font-size: 1.25rem;
font-weight: 700;
color: var(--doodle-yellow);
display: flex;
align-items: center;
gap: 6px;
}
.tools-mode-group {
display: flex;
align-items: center;
gap: 6px;
border-right: 1px dashed rgba(255, 255, 255, 0.25);
padding-right: 10px;
}
.tool-mode-btn {
background: rgba(255, 255, 255, 0.08);
border: 1.5px solid rgba(255, 255, 255, 0.25);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
color: #ffffff;
padding: 5px 10px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 5px;
font-family: var(--font-hand);
font-size: 0.9rem;
transition: all 0.15s ease;
}
.tool-mode-btn:hover {
background: rgba(255, 255, 255, 0.2);
}
.tool-mode-btn.active {
background: var(--doodle-blue);
color: #04101c;
border-color: #ffffff;
font-weight: 700;
}
.color-swatches {
display: flex;
align-items: center;
gap: 8px;
}
.swatch-btn {
width: 22px;
height: 22px;
border-radius: 50%;
border: 2px solid #ffffff;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s;
}
.swatch-btn:hover {
transform: scale(1.25);
}
.swatch-btn.active {
transform: scale(1.3);
box-shadow: 0 0 10px currentColor;
outline: 2px dashed #ffffff;
}
.size-btns {
display: flex;
align-items: center;
gap: 6px;
border-left: 1px dashed rgba(255, 255, 255, 0.25);
border-right: 1px dashed rgba(255, 255, 255, 0.25);
padding: 0 10px;
}
.size-btn {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 4px;
color: #fff;
font-family: var(--font-hand);
font-size: 0.85rem;
padding: 3px 8px;
cursor: pointer;
transition: background 0.15s;
}
.size-btn.active {
background: rgba(88, 192, 255, 0.3);
border-color: var(--doodle-blue);
color: var(--doodle-cyan);
}
.stickers-group {
display: flex;
align-items: center;
gap: 6px;
padding-right: 6px;
border-right: 1px dashed rgba(255, 255, 255, 0.25);
}
.sticker-btn {
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 6px;
color: var(--doodle-yellow);
cursor: pointer;
padding: 4px 6px;
display: inline-flex;
align-items: center;
justify-content: center;
transition: transform 0.15s, background 0.15s;
}
.sticker-btn:hover {
transform: scale(1.2) rotate(-5deg);
background: rgba(255, 255, 255, 0.2);
}
.sticker-btn.active {
background: var(--doodle-yellow);
color: #000;
border-color: #fff;
}
.palette-actions {
display: flex;
align-items: center;
gap: 8px;
}
.palette-action-btn {
background: rgba(255, 255, 255, 0.08);
border: 1.5px solid rgba(255, 255, 255, 0.25);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
color: #ffffff;
font-family: var(--font-doodle);
font-size: 1.1rem;
padding: 4px 10px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 5px;
transition: all 0.15s ease;
}
.palette-action-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-1px);
}
.palette-action-btn.btn-clear:hover {
background: rgba(255, 101, 132, 0.3);
border-color: var(--doodle-coral);
color: var(--doodle-coral);
}
.doodle-sparkle-svg {
position: fixed;
pointer-events: none;
z-index: 99;
width: 32px;
height: 32px;
user-select: none;
animation: sparklePop 0.75s forwards cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes sparklePop {
0% {
opacity: 1;
transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
}
50% {
transform: translate(-50%, -70%) scale(1.25) rotate(25deg);
}
100% {
opacity: 0;
transform: translate(-50%, -100%) scale(0.9) rotate(50deg);
}
}
.doodle-footer {
border-top: 2px dashed rgba(88, 192, 255, 0.2);
padding: 20px 10px 0;
margin-top: 30px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
font-family: var(--font-hand);
font-size: 0.95rem;
color: var(--doodle-muted);
}
.footer-links-list {
display: flex;
gap: 16px;
align-items: center;
}
.footer-links-list a {
color: var(--doodle-blue);
text-decoration: none;
border-bottom: 1px dotted var(--doodle-blue);
display: inline-flex;
align-items: center;
gap: 4px;
transition: color 0.15s, border-color 0.15s;
}
.footer-links-list a:hover {
color: var(--doodle-yellow);
border-bottom-style: solid;
}
</style>
</head>
<body>
<canvas id="doodleCanvas"></canvas>
<div class="doodle-banner" id="doodleBanner">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 20h9"></path>
<path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>
</svg>
<span>Doodle Mode Active: Click & drag anywhere to sketch!</span>
</div>
<div class="page-wrapper">
<header class="doodle-header doodle-box">
<div class="washi-tape"></div>
<a href="/" class="brand-group" title="Return to SPHEREx Sky Map">
<div class="logo-badge">
<img src="/logo-light.png" alt="SPHEREx Mission Logo" class="brand-logo-img">
</div>
<div class="brand-titles">
<span class="brand-name">SPHEREx Explorer</span>
<span class="brand-sub">Cosmic Doodle Edition</span>
</div>
</a>
<div class="header-actions">
<span class="status-tag">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="8" x2="12" y2="12"></line>
<line x1="12" y1="16" x2="12.01" y2="16"></line>
</svg>
404: SECTOR_EMPTY
</span>
<button type="button" class="doodle-toggle-btn" id="toggleDrawBtn" title="Draw with your mouse or stylus on this page!">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
<path d="M3 21h18"></path>
</svg>
<span id="drawBtnText">Doodle On Page</span>
</button>
</div>
</header>
<main class="main-grid">
<section class="narrative-card doodle-box">
<div class="washi-tape right"></div>
<div class="hero-404-wrapper">
<svg class="doodle-404-art" viewBox="0 0 420 130" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="Doodle 404 Header">
<g class="wiggle-hover" style="cursor: pointer;">
<path d="M75 18 L20 82 H85 M58 45 V110" stroke="#58c0ff" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M77 15 L22 80 H88 M60 42 V112" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" opacity="0.8"/>
<path d="M82 12 Q88 6 95 14 T105 10" stroke="#ffd152" stroke-width="2.5" stroke-linecap="round" stroke-dasharray="3 3"/>
<g transform="translate(100, 2) rotate(40) scale(0.65)">
<path d="M10 0 C15 10 15 25 10 35 C5 25 5 10 10 0 Z" fill="#ff6584" stroke="#ffffff" stroke-width="2"/>
<path d="M4 25 L-2 36 L6 33 Z" fill="#ffd152"/>
<path d="M16 25 L22 36 L14 33 Z" fill="#ffd152"/>
<circle cx="10" cy="15" r="3" fill="#ffffff"/>
</g>
</g>
<g class="wiggle-hover" style="cursor: pointer;">
<circle cx="205" cy="65" r="42" fill="#0c253d" stroke="#ffd152" stroke-width="6"/>
<circle cx="205" cy="65" r="42" stroke="#ffffff" stroke-width="1.8" stroke-dasharray="8 4"/>
<path d="M172 58 Q205 72 238 58" stroke="#ffd152" stroke-width="3" stroke-linecap="round" opacity="0.7"/>
<path d="M178 74 Q205 88 232 74" stroke="#ff9b50" stroke-width="2.5" stroke-linecap="round" opacity="0.6"/>
<ellipse cx="205" cy="65" rx="68" ry="18" stroke="#38e1ff" stroke-width="4" fill="none" transform="rotate(-18 205 65)" stroke-dasharray="140 10 20 5"/>
<ellipse cx="205" cy="65" rx="64" ry="15" stroke="#ffffff" stroke-width="1.5" fill="none" transform="rotate(-18 205 65)"/>
<circle cx="196" cy="54" r="3.5" fill="#ffffff"/>
<circle cx="214" cy="54" r="3.5" fill="#ffffff"/>
<path d="M200 62 Q205 67 210 62" stroke="#ffffff" stroke-width="2" stroke-linecap="round"/>
<path d="M188 58 Q192 61 190 64" stroke="#ff6584" stroke-width="2"/>
<path d="M220 58 Q224 61 222 64" stroke="#ff6584" stroke-width="2"/>
</g>
<g class="wiggle-hover" style="cursor: pointer;">
<path d="M345 18 L290 82 H355 M328 45 V110" stroke="#58c0ff" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M347 15 L292 80 H358 M330 42 V112" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" opacity="0.8"/>
<text x="358" y="32" font-family="'Caveat', cursive" font-size="28" font-weight="700" fill="#fed156" transform="rotate(12 358 32)">?</text>
<text x="382" y="24" font-family="'Caveat', cursive" font-size="20" font-weight="700" fill="#ff6584" transform="rotate(25 382 24)">?</text>
</g>
</svg>
</div>
<h1 class="hand-title">Whoops! We sketched off the edge of the sky.</h1>
<p class="hand-subtitle">
The coordinate <span class="path-scribble" id="requested-path">/unknown</span> does not exist in the SPHEREx all-sky spectroscopic catalog. Perhaps it drifted into a cosmic black hole!
</p>
<div class="speech-bubble">
<svg class="speech-bubble-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M13 2 L3 14h9l-1 8 10-12h-9l1-8z"></path>
</svg>
<div>
<strong>SPHEREx Flight Computer:</strong> "No photons found at this address. Did you mistype or want to doodle your own galaxy?"
</div>
</div>
<div class="target-search-box">
<div class="target-search-label">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
<span>Jump to a known astronomical target:</span>
</div>
<form class="target-form" onsubmit="event.preventDefault(); jumpToTarget();">
<input type="text" id="targetInput" class="target-input" placeholder="e.g. M31, Orion, Crab Nebula, Vega..." autocomplete="off">
<button type="submit" class="target-submit-btn">
<span>Explore Sky</span>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<line x1="5" y1="12" x2="19" y2="12"></line>
<polyline points="12 5 19 12 12 19"></polyline>
</svg>
</button>
</form>
</div>
<div class="button-row">
<a href="/" class="btn-doodle btn-doodle-primary">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"></path>
<path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"></path>
<path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"></path>
<path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"></path>
</svg>
<span>Return to Sky Map Explorer</span>
</a>
<a href="/AUDIT.md" class="btn-doodle btn-doodle-secondary">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path>
<rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>
<path d="M9 14l2 2 4-4"></path>
</svg>
<span>System Diagnostics</span>
</a>
</div>
<nav class="routes-sketch-container" aria-label="Valid Explorer Routes">
<div class="routes-sketch-title">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>
</svg>
<span>Known Flight Coordinates (Clickable Routes):</span>
</div>
<div class="routes-doodle-grid">
<a href="/" class="route-doodle-item">
<span class="route-path-code">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="3"/></svg>
/ (Root)
</span>
<span class="route-desc-text">Interactive Aladin Sky Map & Spectra</span>
</a>
<a href="/AUDIT.md" class="route-doodle-item">
<span class="route-path-code">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
/AUDIT.md
</span>
<span class="route-desc-text">Engineering Audit & Cache Metrics</span>
</a>
<a href="/api/bands" class="route-doodle-item">
<span class="route-path-code">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"/><circle cx="12" cy="12" r="3"/></svg>
/api/bands
</span>
<span class="route-desc-text">102 SPHEREx Spectral Channels (0.75-5.0µm)</span>
</a>
<a href="/api/footprints" class="route-doodle-item">
<span class="route-path-code">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polygon points="3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21"/></svg>
/api/footprints
</span>
<span class="route-desc-text">Survey Orbit Coverage & Target Overlays</span>
</a>
</div>
</nav>
</section>
<section class="illustration-stage">
<div class="illustration-card doodle-box">
<div class="washi-tape"></div>
<div class="space-doodle-scene" id="interactiveDoodleScene">
<svg class="svg-scene-master" viewBox="0 0 360 340" fill="none" xmlns="http://www.w3.org/2000/svg">
<g stroke="rgba(88, 192, 255, 0.3)" stroke-width="1.5" stroke-dasharray="4 4">
<line x1="30" y1="40" x2="80" y2="70" />
<line x1="80" y1="70" x2="130" y2="30" />
<line x1="130" y1="30" x2="190" y2="55" />
<line x1="260" y1="280" x2="310" y2="250" />
<line x1="310" y1="250" x2="330" y2="300" />
</g>
<g fill="#ffd152" style="animation: starTwinkle 3s infinite ease-in-out;">
<path d="M30 40 L33 46 L39 48 L33 50 L30 56 L27 50 L21 48 L27 46 Z" />
<path d="M80 70 L82 74 L87 75 L82 77 L80 81 L78 77 L73 75 L78 74 Z" />
<path d="M190 55 L193 60 L198 62 L193 64 L190 69 L187 64 L182 62 L187 60 Z" />
<path d="M320 60 L323 66 L329 68 L323 70 L320 76 L317 70 L311 68 L317 66 Z" fill="#ff6584" />
<path d="M50 280 L52 284 L57 286 L52 288 L50 292 L48 288 L43 286 L48 284 Z" fill="#38e1ff" />
</g>
<g transform="translate(40, 95) scale(0.85)" class="wiggle-hover" style="cursor: pointer;">
<polygon points="45,30 10,90 80,90" fill="rgba(78, 224, 149, 0.12)" stroke="rgba(78, 224, 149, 0.4)" stroke-dasharray="3 3"/>
<path d="M30 20 A 15 15 0 0 1 60 20 Z" fill="rgba(88, 192, 255, 0.3)" stroke="#58c0ff" stroke-width="2"/>
<circle cx="45" cy="18" r="6" fill="#4ee095" stroke="#ffffff" stroke-width="1.5"/>
<circle cx="43" cy="17" r="1.5" fill="#000"/>
<circle cx="47" cy="17" r="1.5" fill="#000"/>
<ellipse cx="45" cy="24" rx="30" ry="8" fill="#1b4162" stroke="#ffd152" stroke-width="2.5"/>
<circle cx="28" cy="25" r="2" fill="#ff6584"/>
<circle cx="45" cy="26" r="2" fill="#ffd152"/>
<circle cx="62" cy="25" r="2" fill="#4ee095"/>
<text x="50" y="8" font-family="'Caveat', cursive" font-size="14" fill="#4ee095" font-weight="700">"beep?"</text>
</g>
<g style="animation: floatyBob 4s infinite ease-in-out;" class="wiggle-hover" transform="translate(140, 110)">
<path d="M80 10 A 15 15 0 0 1 80 40" stroke="#38e1ff" stroke-width="2" fill="none" stroke-linecap="round" stroke-dasharray="4 2"/>
<path d="M88 4 A 25 25 0 0 1 88 46" stroke="#58c0ff" stroke-width="2" fill="none" stroke-linecap="round" stroke-dasharray="4 2"/>
<path d="M60 25 L75 25" stroke="#ffffff" stroke-width="2"/>
<ellipse cx="60" cy="25" rx="4" ry="10" fill="#ffd152" stroke="#ffffff" stroke-width="1.5"/>
<g transform="translate(-65, 30) rotate(-15)">
<rect x="0" y="0" width="45" height="26" rx="3" fill="#134169" stroke="#38e1ff" stroke-width="2"/>
<line x1="15" y1="0" x2="15" y2="26" stroke="#38e1ff" stroke-width="1" stroke-dasharray="2 2"/>
<line x1="30" y1="0" x2="30" y2="26" stroke="#38e1ff" stroke-width="1" stroke-dasharray="2 2"/>
<line x1="0" y1="13" x2="45" y2="13" stroke="#38e1ff" stroke-width="1"/>
<line x1="45" y1="13" x2="60" y2="13" stroke="#ffffff" stroke-width="2"/>
</g>
<g transform="translate(50, 20) rotate(15)">
<line x1="0" y1="13" x2="15" y2="13" stroke="#ffffff" stroke-width="2"/>
<rect x="15" y="0" width="45" height="26" rx="3" fill="#134169" stroke="#38e1ff" stroke-width="2"/>
<line x1="30" y1="0" x2="30" y2="26" stroke="#38e1ff" stroke-width="1" stroke-dasharray="2 2"/>
<line x1="45" y1="0" x2="45" y2="26" stroke="#38e1ff" stroke-width="1" stroke-dasharray="2 2"/>
<line x1="15" y1="13" x2="60" y2="13" stroke="#38e1ff" stroke-width="1"/>
</g>
<polygon points="10,25 45,15 50,55 15,65" fill="#0d2842" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round"/>
<path d="M15 15 L-5 -30 L55 -30 L45 15 Z" fill="#1a3b5c" stroke="#ffd152" stroke-width="2.5" stroke-linejoin="round"/>
<ellipse cx="25" cy="-30" rx="30" ry="10" fill="#081827" stroke="#ffd152" stroke-width="2.5"/>
<ellipse cx="25" cy="-30" rx="22" ry="7" fill="#030b14" stroke="#38e1ff" stroke-width="1.5"/>
<path d="M12 -32 Q25 -27 38 -32" stroke="#ffffff" stroke-width="2" stroke-linecap="round"/>
<circle cx="26" cy="40" r="3" fill="#ffd152"/>
<circle cx="38" cy="38" r="3" fill="#ffd152"/>
<path d="M30 48 Q33 52 38 47" stroke="#ffffff" stroke-width="2" stroke-linecap="round"/>
<ellipse cx="23" cy="44" rx="3" ry="1.5" fill="#ff6584" opacity="0.8"/>
<ellipse cx="42" cy="42" rx="3" ry="1.5" fill="#ff6584" opacity="0.8"/>
<text x="16" y="30" font-family="'JetBrains Mono', monospace" font-size="7" font-weight="600" fill="#58c0ff">SPHEREx</text>
</g>
<g transform="translate(190, 210) rotate(-10)" class="wiggle-hover" style="cursor: pointer;">
<path d="M-30 -20 Q -10 10 -5 30" stroke="#ffffff" stroke-width="2" stroke-dasharray="3 3" fill="none"/>
<rect x="0" y="20" width="36" height="42" rx="14" fill="#e2edfa" stroke="#07131e" stroke-width="2.5"/>
<rect x="5" y="30" width="26" height="18" rx="4" fill="#0c253d" stroke="#58c0ff" stroke-width="1.5"/>
<circle cx="18" cy="14" r="18" fill="#ffffff" stroke="#07131e" stroke-width="2.5"/>
<ellipse cx="18" cy="14" rx="13" ry="10" fill="#ffd152" stroke="#07131e" stroke-width="1.5"/>
<path d="M10 11 Q18 7 26 11" stroke="#ffffff" stroke-width="2" stroke-linecap="round"/>
<g transform="translate(28, 38) rotate(35)">
<polygon points="0,0 20,0 16,6 0,6" fill="#fed156" stroke="#07131e" stroke-width="1"/>
<polygon points="20,0 26,3 20,6" fill="#f0c090" stroke="#07131e" stroke-width="1"/>
<polygon points="24,2 26,3 24,4" fill="#000000"/>
<rect x="-4" y="0" width="4" height="6" fill="#ff6584"/>
</g>
<text x="-15" y="75" font-family="'Caveat', cursive" font-size="16" fill="#ffffff" font-weight="700">"Drawing a way back!"</text>
</g>
<g transform="translate(230, 20) rotate(140)">
<line x1="0" y1="0" x2="60" y2="0" stroke="#ffd152" stroke-width="2.5" stroke-linecap="round" stroke-dasharray="8 4 2 4"/>
<circle cx="0" cy="0" r="3.5" fill="#ffffff"/>
</g>
</svg>
</div>
<div class="sticky-note-doodle" onclick="toggleDoodleMode();" title="Click to start drawing!">
<div class="sticky-tape-mini"></div>
<div style="display: flex; align-items: center; gap: 5px; margin-bottom: 2px;">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
<span>Field Note:</span>
</div>
Tap "Doodle On Page" & sketch your own stars across the void!
</div>
<div class="telemetry-ribbon" id="telemetryRibbon">
<span class="telemetry-dot"></span>
<span id="coordsDisplay">RA 04h 04m 00s · DEC -40° 40′ 00″</span>
</div>
</div>
</section>
</main>
<footer class="doodle-footer">
<div>
<span>SPHEREx All-Sky Spectral Survey (0.75 – 5.0 µm) · NASA Astrophysics</span>
</div>
<div class="footer-links-list">
<a href="/">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polygon points="12 8 8 12 12 16 12 8"/></svg>
Sky Viewer
</a>
<a href="/AUDIT.md">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
Diagnostics
</a>
<a href="javascript:void(0);" onclick="stampRandomSticker();">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>
Drop Sticker
</a>
<a href="javascript:void(0);" onclick="window.scrollTo({top: 0, behavior: 'smooth'});">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>
Back to Top
</a>
</div>
</footer>
</div>
<div class="doodle-palette-bar hidden-bar" id="doodlePaletteBar">
<div class="bar-label">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="13.5" cy="6.5" r=".5" fill="currentColor"></circle>
<circle cx="17.5" cy="10.5" r=".5" fill="currentColor"></circle>
<circle cx="8.5" cy="7.5" r=".5" fill="currentColor"></circle>
<circle cx="6.5" cy="12.5" r=".5" fill="currentColor"></circle>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"></path>
</svg>
<span>Doodle Kit:</span>
</div>
<div class="tools-mode-group">
<button type="button" class="tool-mode-btn active" id="modePenBtn" onclick="setDrawTool('pen');" title="Draw with Pen">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"/></svg>
<span>Pen</span>
</button>
<button type="button" class="tool-mode-btn" id="modeEraserBtn" onclick="setDrawTool('eraser');" title="Erase Strokes">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><path d="m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21"/><path d="M22 21H7"/><path d="m5 11 9 9"/></svg>
<span>Eraser</span>
</button>
</div>
<div class="color-swatches" id="colorSwatches">
<button type="button" class="swatch-btn active" data-color="#58c0ff" style="background: #58c0ff;" title="Neon Blue"></button>
<button type="button" class="swatch-btn" data-color="#ffd152" style="background: #ffd152;" title="Solar Yellow"></button>
<button type="button" class="swatch-btn" data-color="#ff6584" style="background: #ff6584;" title="Cosmic Pink"></button>
<button type="button" class="swatch-btn" data-color="#4ee095" style="background: #4ee095;" title="Aurora Mint"></button>
<button type="button" class="swatch-btn" data-color="#ffffff" style="background: #ffffff;" title="Chalk White"></button>
</div>
<div class="size-btns" id="sizeBtns">
<button type="button" class="size-btn" data-size="2" title="Fine Stroke">Fine</button>
<button type="button" class="size-btn active" data-size="4" title="Medium Stroke">Med</button>
<button type="button" class="size-btn" data-size="9" title="Bold Marker">Bold</button>
</div>
<div class="stickers-group">
<button type="button" class="sticker-btn" onclick="stampVectorSticker('star');" title="Stamp Hand-Drawn Star">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>
</svg>
</button>
<button type="button" class="sticker-btn" onclick="stampVectorSticker('rocket');" title="Stamp Hand-Drawn Rocket">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2">
<path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"></path>
<path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"></path>
</svg>
</button>
<button type="button" class="sticker-btn" onclick="stampVectorSticker('planet');" title="Stamp Hand-Drawn Planet">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2">
<circle cx="12" cy="12" r="7"></circle>
<ellipse cx="12" cy="12" rx="11" ry="3" transform="rotate(-20 12 12)"></ellipse>
</svg>
</button>
<button type="button" class="sticker-btn" onclick="stampVectorSticker('ufo');" title="Stamp Hand-Drawn UFO">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2">
<ellipse cx="12" cy="14" rx="9" ry="3.5"></ellipse>
<path d="M8 12a4 4 0 0 1 8 0"></path>
<line x1="8" y1="17.5" x2="6" y2="21"></line>
<line x1="16" y1="17.5" x2="18" y2="21"></line>
</svg>
</button>
<button type="button" class="sticker-btn" onclick="stampVectorSticker('satellite');" title="Stamp Hand-Drawn SPHEREx">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2">
<rect x="9" y="9" width="6" height="6"></rect>
<line x1="3" y1="9" x2="9" y2="9"></line>
<line x1="3" y1="15" x2="9" y2="15"></line>
<line x1="15" y1="9" x2="21" y2="9"></line>
<line x1="15" y1="15" x2="21" y2="15"></line>
<line x1="12" y1="9" x2="12" y2="4"></line>
</svg>
</button>
</div>
<div class="palette-actions">
<button type="button" class="palette-action-btn" id="btnUndoDoodle" title="Undo Last Stroke (Ctrl+Z)">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><path d="M3 7v6h6"/><path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13"/></svg>
Undo
</button>
<button type="button" class="palette-action-btn btn-clear" id="btnClearDoodle" title="Clear All Doodles">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>
Clear
</button>
<button type="button" class="palette-action-btn" id="btnSaveDoodle" onclick="downloadDoodle();" title="Download Canvas Drawing as PNG">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
Save
</button>
<button type="button" class="palette-action-btn" onclick="toggleDoodleMode();" title="Exit Doodle Mode">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
Done
</button>
</div>
</div>
<script>
(function () {
'use strict';
const pathEl = document.getElementById('requested-path');
if (pathEl) {
pathEl.textContent = window.location.pathname || '/lost-coordinate';
}
window.jumpToTarget = function () {
const input = document.getElementById('targetInput');
if (!input) return;
const target = input.value.trim();
if (target) {
window.location.href = `/?search=${encodeURIComponent(target)}`;
} else {
window.location.href = '/';
}
};
const coordsDisplay = document.getElementById('coordsDisplay');
window.addEventListener('mousemove', function (e) {
if (!coordsDisplay) return;
const raH = String(Math.floor((e.clientX / window.innerWidth) * 24)).padStart(2, '0');
const raM = String(Math.floor(((e.clientX / window.innerWidth) * 24 * 60) % 60)).padStart(2, '0');
const raS = String(Math.floor(((e.clientX / window.innerWidth) * 24 * 3600) % 60)).padStart(2, '0');
const decVal = Math.floor((1 - (e.clientY / window.innerHeight) * 2) * 90);
const decSign = decVal >= 0 ? '+' : '';
const decM = String(Math.floor(Math.abs(Math.cos(e.clientY) * 60))).padStart(2, '0');
coordsDisplay.textContent = `RA ${raH}h ${raM}m ${raS}s · DEC ${decSign}${decVal}° ${decM}′`;
});
const sparkleSvgTemplates = [
'<svg viewBox="0 0 24 24" fill="currentColor"><polygon points="12 2 15 9 22 12 15 15 12 22 9 15 2 12 9 9 12 2"/></svg>',
'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><line x1="12" y1="2" x2="12" y2="22"/><line x1="2" y1="12" x2="22" y2="12"/><line x1="5" y1="5" x2="19" y2="19"/><line x1="5" y1="19" x2="19" y2="5"/></svg>',
'<svg viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="3"/><circle cx="12" cy="3" r="1.5"/><circle cx="12" cy="21" r="1.5"/><circle cx="3" cy="12" r="1.5"/><circle cx="21" cy="12" r="1.5"/></svg>'
];
window.addEventListener('pointerdown', function (e) {
if (drawMode) return;
if (e.target.closest('button, a, input, select')) return;
const container = document.createElement('div');
container.className = 'doodle-sparkle-svg';
container.style.left = e.clientX + 'px';
container.style.top = e.clientY + 'px';
const color = ['#58c0ff', '#ffd152', '#ff6584', '#4ee095', '#ffffff'][Math.floor(Math.random() * 5)];
container.style.color = color;
container.innerHTML = sparkleSvgTemplates[Math.floor(Math.random() * sparkleSvgTemplates.length)];
document.body.appendChild(container);
setTimeout(() => {
container.remove();
}, 750);
});
const canvas = document.getElementById('doodleCanvas');
const ctx = canvas.getContext('2d');
const toggleBtn = document.getElementById('toggleDrawBtn');
const drawBtnText = document.getElementById('drawBtnText');
const paletteBar = document.getElementById('doodlePaletteBar');
const doodleBanner = document.getElementById('doodleBanner');
const modePenBtn = document.getElementById('modePenBtn');
const modeEraserBtn = document.getElementById('modeEraserBtn');
let isDrawing = false;
let drawMode = false;
let activeTool = 'pen';
let currentColor = '#58c0ff';
let currentSize = 4;
let strokes = [];
let currentStroke = null;
function resizeCanvas() {
const dpr = window.devicePixelRatio || 1;
const w = window.innerWidth;
const h = window.innerHeight;
canvas.width = Math.floor(w * dpr);
canvas.height = Math.floor(h * dpr);
canvas.style.width = w + 'px';
canvas.style.height = h + 'px';
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
redrawAll();
}
window.addEventListener('resize', resizeCanvas);
resizeCanvas();
window.setDrawTool = function (tool) {
activeTool = tool;
if (tool === 'eraser') {
modeEraserBtn.classList.add('active');
modePenBtn.classList.remove('active');
} else {
modePenBtn.classList.add('active');
modeEraserBtn.classList.remove('active');
}
};
window.toggleDoodleMode = function () {
drawMode = !drawMode;
if (drawMode) {
canvas.classList.add('active');
toggleBtn.classList.add('active');
drawBtnText.textContent = 'Exit Doodle Mode';
paletteBar.classList.remove('hidden-bar');
doodleBanner.classList.add('visible');
setTimeout(() => doodleBanner.classList.remove('visible'), 3200);
} else {
canvas.classList.remove('active');
toggleBtn.classList.remove('active');
drawBtnText.textContent = 'Doodle On Page';
paletteBar.classList.add('hidden-bar');
doodleBanner.classList.remove('visible');
}
};
if (toggleBtn) {
toggleBtn.addEventListener('click', window.toggleDoodleMode);
}
function getCoordinates(e) {
const rect = canvas.getBoundingClientRect();
return {
x: e.clientX - rect.left,
y: e.clientY - rect.top
};
}
canvas.addEventListener('pointerdown', function (e) {
if (!drawMode) return;
isDrawing = true;
const pos = getCoordinates(e);
currentStroke = {
tool: activeTool,
color: currentColor,
size: activeTool === 'eraser' ? currentSize * 3 : currentSize,
points: [pos]
};
ctx.save();
if (activeTool === 'eraser') {
ctx.globalCompositeOperation = 'destination-out';
ctx.beginPath();
ctx.arc(pos.x, pos.y, currentSize * 1.5, 0, Math.PI * 2);
ctx.fill();
} else {
ctx.globalCompositeOperation = 'source-over';
ctx.strokeStyle = currentColor;
ctx.fillStyle = currentColor;
ctx.beginPath();
ctx.arc(pos.x, pos.y, currentSize / 2, 0, Math.PI * 2);
ctx.fill();
}
ctx.restore();
});
canvas.addEventListener('pointermove', function (e) {
if (!isDrawing || !drawMode || !currentStroke) return;
const pos = getCoordinates(e);
currentStroke.points.push(pos);
const pts = currentStroke.points;
const len = pts.length;
if (len < 2) return;
ctx.save();
if (currentStroke.tool === 'eraser') {
ctx.globalCompositeOperation = 'destination-out';
ctx.strokeStyle = 'rgba(0,0,0,1)';
ctx.lineWidth = currentStroke.size;
} else {
ctx.globalCompositeOperation = 'source-over';
ctx.strokeStyle = currentStroke.color;
ctx.lineWidth = currentStroke.size;
}
ctx.lineCap = 'round';
ctx.lineJoin = 'round';
ctx.beginPath();
if (len === 2) {
ctx.moveTo(pts[0].x, pts[0].y);
ctx.lineTo(pts[1].x, pts[1].y);
} else {
const p1 = pts[len - 2];
const p2 = pts[len - 1];
const midX = (p1.x + p2.x) / 2;
const midY = (p1.y + p2.y) / 2;
const prevMidX = (pts[len - 3].x + p1.x) / 2;
const prevMidY = (pts[len - 3].y + p1.y) / 2;
ctx.moveTo(prevMidX, prevMidY);
ctx.quadraticCurveTo(p1.x, p1.y, midX, midY);
}
ctx.stroke();
ctx.restore();
});
function stopStroke() {
if (!isDrawing) return;
isDrawing = false;
if (currentStroke && currentStroke.points.length > 0) {
strokes.push(currentStroke);
}
currentStroke = null;
}
canvas.addEventListener('pointerup', stopStroke);
canvas.addEventListener('pointercancel', stopStroke);
function redrawAll() {
ctx.clearRect(0, 0, window.innerWidth, window.innerHeight);
for (let i = 0; i < strokes.length; i++) {
const item = strokes[i];
ctx.save();
if (item.type === 'vector-sticker') {
ctx.globalCompositeOperation = 'source-over';
drawVectorSticker(item.sticker, item.x, item.y, item.size, item.color);
ctx.restore();
continue;
}
if (item.tool === 'eraser') {
ctx.globalCompositeOperation = 'destination-out';
ctx.strokeStyle = 'rgba(0,0,0,1)';
ctx.lineWidth = item.size;
} else {
ctx.globalCompositeOperation = 'source-over';
ctx.strokeStyle = item.color;
ctx.lineWidth = item.size;
}
ctx.lineCap = 'round';
ctx.lineJoin = 'round';
const pts = item.points;
if (pts.length === 1) {
ctx.beginPath();
ctx.fillStyle = item.tool === 'eraser' ? 'rgba(0,0,0,1)' : item.color;
ctx.arc(pts[0].x, pts[0].y, item.size / 2, 0, Math.PI * 2);
ctx.fill();
} else if (pts.length > 1) {
ctx.beginPath();
ctx.moveTo(pts[0].x, pts[0].y);
for (let j = 1; j < pts.length - 1; j++) {
const midX = (pts[j].x + pts[j + 1].x) / 2;
const midY = (pts[j].y + pts[j + 1].y) / 2;
ctx.quadraticCurveTo(pts[j].x, pts[j].y, midX, midY);
}
ctx.lineTo(pts[pts.length - 1].x, pts[pts.length - 1].y);
ctx.stroke();
}
ctx.restore();
}
}
function drawVectorSticker(sticker, cx, cy, size, color) {
ctx.save();
ctx.translate(cx, cy);
ctx.strokeStyle = color;
ctx.fillStyle = color;
ctx.lineWidth = 2.5;
ctx.lineCap = 'round';
ctx.lineJoin = 'round';
if (sticker === 'star') {
ctx.beginPath();
const spikes = 5;
const outerR = size;
const innerR = size * 0.45;
let rot = (Math.PI / 2) * 3;
let step = Math.PI / spikes;
ctx.moveTo(0, -outerR);
for (let i = 0; i < spikes; i++) {
let x = Math.cos(rot) * outerR;
let y = Math.sin(rot) * outerR;
ctx.lineTo(x, y);
rot += step;
x = Math.cos(rot) * innerR;
y = Math.sin(rot) * innerR;
ctx.lineTo(x, y);
rot += step;
}
ctx.closePath();
ctx.globalAlpha = 0.2;
ctx.fill();
ctx.globalAlpha = 1;
ctx.stroke();
ctx.beginPath();
ctx.moveTo(outerR + 4, 0); ctx.lineTo(outerR + 10, 0);
ctx.moveTo(-outerR - 4, 0); ctx.lineTo(-outerR - 10, 0);
ctx.moveTo(0, outerR + 4); ctx.lineTo(0, outerR + 10);
ctx.stroke();
} else if (sticker === 'rocket') {
ctx.beginPath();
ctx.moveTo(0, -size);
ctx.bezierCurveTo(size * 0.6, -size * 0.4, size * 0.6, size * 0.5, 0, size * 0.8);
ctx.bezierCurveTo(-size * 0.6, size * 0.5, -size * 0.6, -size * 0.4, 0, -size);
ctx.stroke();
ctx.beginPath();
ctx.arc(0, -size * 0.15, size * 0.25, 0, Math.PI * 2);
ctx.stroke();
ctx.beginPath();
ctx.moveTo(-size * 0.4, size * 0.3); ctx.lineTo(-size * 0.8, size * 0.9); ctx.lineTo(-size * 0.2, size * 0.7);
ctx.moveTo(size * 0.4, size * 0.3); ctx.lineTo(size * 0.8, size * 0.9); ctx.lineTo(size * 0.2, size * 0.7);
ctx.stroke();
ctx.beginPath();
ctx.moveTo(-size * 0.2, size * 0.8);
ctx.lineTo(0, size * 1.3);
ctx.lineTo(size * 0.2, size * 0.8);
ctx.stroke();
} else if (sticker === 'planet') {
ctx.beginPath();
ctx.arc(0, 0, size * 0.6, 0, Math.PI * 2);
ctx.globalAlpha = 0.2;
ctx.fill();
ctx.globalAlpha = 1;
ctx.stroke();
ctx.beginPath();
ctx.ellipse(0, 0, size * 1.2, size * 0.35, -0.3, 0, Math.PI * 2);
ctx.stroke();
} else if (sticker === 'ufo') {
ctx.beginPath();
ctx.arc(0, -size * 0.15, size * 0.45, Math.PI, 0);
ctx.stroke();
ctx.beginPath();
ctx.ellipse(0, size * 0.05, size * 0.95, size * 0.32, 0, 0, Math.PI * 2);
ctx.globalAlpha = 0.2;
ctx.fill();
ctx.globalAlpha = 1;
ctx.stroke();
ctx.beginPath();
ctx.arc(-size * 0.5, size * 0.05, 2, 0, Math.PI * 2);
ctx.arc(0, size * 0.15, 2, 0, Math.PI * 2);
ctx.arc(size * 0.5, size * 0.05, 2, 0, Math.PI * 2);
ctx.fill();
} else if (sticker === 'satellite') {
ctx.beginPath();
ctx.rect(-size * 0.35, -size * 0.35, size * 0.7, size * 0.7);
ctx.stroke();
ctx.beginPath();
ctx.rect(-size * 1.1, -size * 0.25, size * 0.6, size * 0.5);
ctx.rect(size * 0.5, -size * 0.25, size * 0.6, size * 0.5);
ctx.stroke();
ctx.beginPath();
ctx.arc(0, -size * 0.55, size * 0.25, Math.PI, 0);
ctx.moveTo(0, -size * 0.35); ctx.lineTo(0, -size * 0.55);
ctx.stroke();
}
ctx.restore();
}
window.stampVectorSticker = function (stickerName) {
if (!drawMode) window.toggleDoodleMode();
const randX = Math.floor(window.innerWidth * (0.35 + Math.random() * 0.3));
const randY = Math.floor(window.innerHeight * (0.3 + Math.random() * 0.35));
strokes.push({
type: 'vector-sticker',
sticker: stickerName,
x: randX,
y: randY,
size: 28,
color: currentColor
});
redrawAll();
};
window.stampRandomSticker = function () {
const types = ['star', 'rocket', 'planet', 'ufo', 'satellite'];
const chosen = types[Math.floor(Math.random() * types.length)];
window.stampVectorSticker(chosen);
};
const swatchBtns = document.querySelectorAll('.swatch-btn');
swatchBtns.forEach(btn => {
btn.addEventListener('click', function () {
swatchBtns.forEach(b => b.classList.remove('active'));
this.classList.add('active');
currentColor = this.getAttribute('data-color');
setDrawTool('pen');
});
});
const sizeBtns = document.querySelectorAll('.size-btn');
sizeBtns.forEach(btn => {
btn.addEventListener('click', function () {
sizeBtns.forEach(b => b.classList.remove('active'));
this.classList.add('active');
currentSize = parseInt(this.getAttribute('data-size'), 10);
});
});
const btnUndo = document.getElementById('btnUndoDoodle');
if (btnUndo) {
btnUndo.addEventListener('click', function () {
if (strokes.length > 0) {
strokes.pop();
redrawAll();
}
});
}
const btnClear = document.getElementById('btnClearDoodle');
if (btnClear) {
btnClear.addEventListener('click', function () {
strokes = [];
redrawAll();
});
}
window.downloadDoodle = function () {
const tempCanvas = document.createElement('canvas');
tempCanvas.width = canvas.width;
tempCanvas.height = canvas.height;
const tCtx = tempCanvas.getContext('2d');
tCtx.fillStyle = '#07131e';
tCtx.fillRect(0, 0, tempCanvas.width, tempCanvas.height);
tCtx.drawImage(canvas, 0, 0);
const link = document.createElement('a');
link.download = 'spherex-cosmic-doodle.png';
link.href = tempCanvas.toDataURL('image/png');
link.click();
};
window.addEventListener('keydown', function (e) {
if (e.target.tagName === 'INPUT') return;
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'z') {
if (strokes.length > 0) {
strokes.pop();
redrawAll();
}
} else if (e.key.toLowerCase() === 'd') {
window.toggleDoodleMode();
} else if (e.key.toLowerCase() === 'c' && drawMode) {
strokes = [];
redrawAll();
}
});
})();
</script>
</body>
</html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Lost in the Cosmic Doodleverse | SPHEREx</title>
<link rel="icon" type="image/png" href="/logo-light.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Caveat:wght@500;600;700&family=Patrick+Hand&family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/tokens.css">
<style>
:root {
--doodle-bg: #07131e;
--doodle-bg-alt: #0a1b2b;
--doodle-chalk: #f0f6fc;
--doodle-blue: #58c0ff;
--doodle-cyan: #38e1ff;
--doodle-yellow: #fed156;
--doodle-orange: #ff9b50;
--doodle-coral: #ff6584;
--doodle-mint: #4ee095;
--doodle-purple: #c084fc;
--doodle-grid: rgba(88, 192, 255, 0.08);
--doodle-border: #58c0ff;
--doodle-muted: #8ea7bc;
--font-doodle: 'Caveat', cursive, sans-serif;
--font-hand: 'Patrick Hand', 'Architects Daughter', cursive, sans-serif;
--font-sketch: 'Architects Daughter', cursive, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--font-ui: 'Inter', system-ui, sans-serif;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:focus-visible,
button:focus-visible,
input:focus-visible,
a:focus-visible {
outline: 2px dashed var(--doodle-yellow) ;
outline-offset: 3px ;
box-shadow: 0 0 0 3px rgba(10, 27, 43, 0.9), 0 0 0 5px rgba(254, 209, 86, 0.35) ;
}
body {
background-color: var(--doodle-bg);
color: var(--doodle-chalk);
font-family: var(--font-hand);
min-height: 100vh;
overflow-x: hidden;
line-height: 1.5;
position: relative;
background-image:
radial-gradient(circle at 50% 12%, rgba(56, 225, 255, 0.09) 0%, transparent 60%),
radial-gradient(circle at 85% 80%, rgba(255, 101, 132, 0.07) 0%, transparent 50%),
linear-gradient(var(--doodle-grid) 1px, transparent 1px),
linear-gradient(90deg, var(--doodle-grid) 1px, transparent 1px);
background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
cursor: default;
}
#doodleCanvas {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 45;
}
#doodleCanvas.active {
pointer-events: auto;
z-index: 85;
cursor: crosshair;
}
.doodle-banner {
position: fixed;
top: 18px;
left: 50%;
transform: translateX(-50%) translateY(-150%);
background: rgba(10, 27, 43, 0.95);
border: 2px solid var(--doodle-yellow);
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
padding: 8px 20px;
font-family: var(--font-doodle);
font-size: 1.25rem;
font-weight: 700;
color: var(--doodle-yellow);
display: flex;
align-items: center;