/* 0xHiTek — chibi anime pixel-art site. Night neon palette, PixelLab art, lots of motion (calmed by prefers-reduced-motion). */
@font-face { font-family: 'HiTek'; src: url('/assets/fonts/hitek.woff2') format('woff2'), url('/assets/fonts/hitek.ttf') format('truetype'); font-display: swap; }
/* Pixelify Sans, self-hosted (scripts/self-host-fonts.py) */
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pixelify-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pixelify-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/pixelify-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/pixelify-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #0b0820; --night: #140f33; --indigo: #1f1750; --violet: #352574; --lilac: #b9a6ff;
  --cyan: #5ff4ff; --pink: #ff5fb8; --gold: #ffd84d; --mint: #7be0a6; --text: #f4ecff; --muted: #b7a9df;
  --display: 'HiTek', 'Pixelify Sans', monospace; --body: 'Pixelify Sans', ui-rounded, system-ui, sans-serif;
  --px: 4px; --radius: 6px; --glow-c: 0 0 6px var(--cyan), 0 0 18px #5ff4ff88; --glow-p: 0 0 6px var(--pink), 0 0 18px #ff5fb888;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--text); font: 18px/1.55 var(--body); overflow-x: clip; -webkit-font-smoothing: none; }
img, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--cyan); text-decoration: none; }
h1, h2, h3, .display { font-family: var(--display); font-weight: normal; letter-spacing: 0.02em; margin: 0; }
p { margin: 0 0 0.8em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.fx { position: absolute; pointer-events: none; z-index: 60; image-rendering: pixelated; }
.trail { position: fixed; inset: 0; pointer-events: none; z-index: 999; }
::selection { background: var(--pink); color: var(--ink); }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 14px 0; transition: background 0.3s, padding 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: #0b0820e6; backdrop-filter: blur(6px); padding: 8px 0; box-shadow: 0 2px 0 var(--violet), 0 6px 24px #000a; }
.nav .wrap { display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 28px; color: var(--text); text-shadow: -2px 0 var(--ink), 2px 0 var(--ink), 0 -2px var(--ink), 0 2px var(--ink); }
.logo img { width: 40px; height: 40px; animation: bob 2.4s ease-in-out infinite; }
.logo b { color: var(--cyan); text-shadow: var(--glow-c); font-weight: normal; }
.logo:hover img { animation: wiggle 0.5s steps(4) infinite; }
.links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.links a { text-shadow: -2px 0 var(--ink), 2px 0 var(--ink), 0 -2px var(--ink), 0 2px var(--ink); display: flex; align-items: center; gap: 6px; padding: 6px 12px; color: var(--text); font-family: var(--display); font-size: 18px; border-radius: 4px; transition: transform 0.15s; }
.links a img { width: 28px; height: 28px; }
.links a:hover { transform: translateY(-3px); color: var(--cyan); text-shadow: var(--glow-c); }
.links a:hover img { animation: wiggle 0.4s steps(3) infinite; }
.iconbtn { background: none; border: 2px solid var(--violet); color: var(--text); border-radius: 6px; padding: 6px 10px; font: 16px var(--display); cursor: pointer; }
.iconbtn:hover { border-color: var(--cyan); box-shadow: var(--glow-c); }
#sound::before { content: '♪ off'; } [data-sound='on'] #sound::before { content: '♪ on'; color: var(--cyan); }
#menu { display: none; }

/* ---------------------------------------------------------------- buttons (PixelLab art as 9-slice frames) */
.btn { --c: var(--pink); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px 16px; font: 22px var(--display); color: #fff; cursor: pointer;
  border: 14px solid transparent; border-image: url('/assets/ui/button.png') 14 22 fill / 14px 22px stretch; background: none; text-shadow: 0 2px 0 #9c1b62;
  transition: transform 0.12s, filter 0.2s; animation: breathe 2.2s ease-in-out infinite; }
.btn.alt { border-image-source: url('/assets/ui/button2.png'); text-shadow: 0 2px 0 #0b7a86; animation-delay: 0.6s; }
.btn:hover { transform: translateY(-4px) scale(1.04); filter: brightness(1.15) drop-shadow(0 0 10px var(--c)); }
.btn:active { transform: translateY(2px) scale(0.97); }
.btn .tri { width: 0; height: 0; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; filter: drop-shadow(0 2px 0 #9c1b62); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.layer { position: absolute; inset: 0; background-repeat: repeat-x; image-rendering: pixelated; will-change: transform; }
.sky { background: url('/assets/bg/sky.webp') center / cover; inset: -4%; }
.city { background-image: url('/assets/bg/city.webp'); background-size: auto 62%; background-position: 0 100%; bottom: 12%; inset-inline: -10%; animation: drift 120s linear infinite; }
.roofs { background-image: url('/assets/bg/roofs.webp'); background-size: auto 46%; background-position: 0 100%; inset-inline: -10%; bottom: -2%; animation: drift 60s linear infinite; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--ink)); z-index: 5; }
#stars, #petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#petals { z-index: 6; }
.hero-in { position: absolute; inset: 0; z-index: 7; display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; padding-top: 70px; }
.title { font-size: clamp(46px, 7.4vw, 124px); line-height: 0.95; display: flex; flex-wrap: nowrap; white-space: nowrap; }
.title span { display: inline-block; animation: wave 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.09s); text-shadow: -3px 0 var(--ink), 3px 0 var(--ink), 0 -3px var(--ink), 0 3px var(--ink), -3px -3px var(--ink), 3px 3px var(--ink), -3px 3px var(--ink), 3px -3px var(--ink), 0 9px 0 #2a1a63, 0 0 24px #ff5fb866; }
.title span.c { color: var(--cyan); text-shadow: -3px 0 var(--ink), 3px 0 var(--ink), 0 -3px var(--ink), 0 3px var(--ink), -3px -3px var(--ink), 3px 3px var(--ink), -3px 3px var(--ink), 3px -3px var(--ink), 0 9px 0 #0b5560, var(--glow-c); }
.title span.p { color: var(--pink); text-shadow: -3px 0 var(--ink), 3px 0 var(--ink), 0 -3px var(--ink), 0 3px var(--ink), -3px -3px var(--ink), 3px 3px var(--ink), -3px 3px var(--ink), 3px -3px var(--ink), 0 9px 0 #6b1446, var(--glow-p); }
.title:hover span { animation-duration: 0.6s; }
.sub { display: inline-block; font-family: var(--display); font-size: clamp(18px, 2.2vw, 28px); margin: 22px 0 30px; min-height: 1.5em; color: #fff; background: #0b0820c8; padding: 6px 16px; border-radius: 8px; box-shadow: 0 0 0 3px #352574, 0 6px 0 #0007; }
.sub .cursor { display: inline-block; width: 0.55em; height: 1em; background: var(--cyan); vertical-align: -0.12em; margin-left: 4px; animation: blink 0.8s steps(1) infinite; box-shadow: var(--glow-c); }
.ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.stage { position: relative; height: 100%; display: grid; place-items: end center; padding-bottom: 12vh; }
.tek { position: relative; cursor: pointer; filter: drop-shadow(0 8px 0 #0006); transition: transform 0.2s; }
.tek:hover { transform: scale(1.04); }
.tek canvas { display: block; }
.tek .shadow { position: absolute; left: 50%; bottom: 6px; width: 46%; height: 18px; translate: -50% 0; background: #000a; border-radius: 50%; filter: blur(3px); z-index: -1; animation: shadow 2.4s ease-in-out infinite; }
.float { animation: float 3.6s ease-in-out infinite; }
.bubble { position: absolute; top: 4%; left: 50%; translate: -50% 0; z-index: 3; white-space: nowrap; background: #fff; color: var(--ink); font: 18px var(--display); padding: 8px 16px; border-radius: 8px;
  box-shadow: 0 4px 0 #b9a6ff, 0 0 0 3px var(--ink); opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.3, 1.8, 0.6, 1); }
.bubble.show { opacity: 1; transform: scale(1); }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -12px; border: 8px solid transparent; border-top-color: #fff; translate: -50% 0; }
.hint { position: absolute; bottom: 4vh; left: 50%; translate: -50% 0; z-index: 8; font: 15px var(--display); color: var(--muted); animation: bob 1.6s ease-in-out infinite; }
.walker { position: absolute; z-index: 6; cursor: pointer; }
.shake { animation: shake 0.35s steps(6); }
.flash { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: radial-gradient(circle, #5ff4ffaa, transparent 70%); animation: flash 0.5s ease-out forwards; }

/* ---------------------------------------------------------------- sections */
section { position: relative; padding: 110px 0; }
.kicker { font: 16px var(--display); color: var(--pink); letter-spacing: 0.15em; display: flex; align-items: center; gap: 10px; }
.kicker img { width: 32px; height: 32px; animation: bob 2s ease-in-out infinite; }
.h2 { font-size: clamp(40px, 6vw, 72px); margin: 6px 0 14px; text-shadow: 0 5px 0 #2a1a63; }
.h2 em { font-style: normal; color: var(--cyan); text-shadow: 0 5px 0 #0b5560, var(--glow-c); }
.lead { color: var(--muted); max-width: 640px; font-size: 20px; }
.pop { opacity: 0; transform: translateY(40px) scale(0.92); transition: opacity 0.6s var(--d, 0ms), transform 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) var(--d, 0ms); }
.pop.in { opacity: 1; transform: none; }

/* arcade (games) */
.arcade { background: linear-gradient(var(--ink), #0b0820cc 18%, #0b0820dd 82%, var(--ink)), url('/assets/bg/arcade.webp') center / cover fixed; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 44px; }
.card { position: relative; display: block; color: var(--text); border: 22px solid transparent; border-image: url('/assets/ui/card.png') 30 fill / 22px stretch; padding: 4px; transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), filter 0.25s; }
.card:hover { filter: drop-shadow(0 0 16px var(--cc, var(--cyan))); }
.screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #000; box-shadow: inset 0 0 0 3px #0008; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 6s ease-out, opacity 0.4s; image-rendering: auto; }
.screen img.b { position: absolute; inset: 0; opacity: 0; }
.card:hover .screen img.a { transform: scale(1.08) translateY(-4%); }
.card:hover .screen img.b { opacity: 1; transform: scale(1.04); }
.screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 3px, #0003 3px 4px); pointer-events: none; }
.screen .shine { position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, #ffffff55 50%, transparent 60%); transform: translateX(-100%); z-index: 2; }
.card:hover .shine { animation: shine 0.9s ease-out; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 3; font: 14px var(--display); padding: 4px 10px; border-radius: 4px; color: var(--ink); background: var(--bc); box-shadow: 0 3px 0 #0007; animation: bob 2s ease-in-out infinite; }
.badge.mint { --bc: var(--mint); } .badge.pink { --bc: var(--pink); color: #fff; } .badge.gold { --bc: var(--gold); } .badge.cyan { --bc: var(--cyan); }
.card h3 { font-size: 28px; margin: 14px 4px 2px; color: var(--cc, var(--text)); text-shadow: 0 3px 0 #0008; }
.card .genre { font: 14px var(--display); color: var(--lilac); margin: 0 4px 6px; }
.card p { margin: 0 4px 12px; color: var(--muted); font-size: 17px; }
.card .row { display: flex; gap: 10px; align-items: center; margin: 0 4px 6px; }
.chip { font: 15px var(--display); padding: 8px 14px; border-radius: 6px; background: var(--violet); color: var(--text); border: 2px solid #ffffff22; transition: transform 0.12s, background 0.2s; }
.chip.go { background: var(--pink); box-shadow: 0 3px 0 #9c1b62; }
.chip:hover { transform: translateY(-2px); background: var(--cyan); color: var(--ink); }
.peek { position: absolute; right: -10px; bottom: 54px; z-index: 4; pointer-events: none; transform: translateY(30px) scale(0.8); opacity: 0; transition: transform 0.35s cubic-bezier(0.3, 1.8, 0.5, 1), opacity 0.2s; }
.card:hover .peek { transform: none; opacity: 1; }
.orient { font: 13px var(--display); color: var(--muted); margin-left: auto; }

/* parade */
.parade { padding: 70px 0 0; overflow: hidden; }
.street { position: relative; height: 230px; margin-top: 26px; background: url('/assets/bg/ground.webp') 0 100% / auto 120px repeat-x; animation: drift 40s linear infinite reverse; }
.street-in { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; }
.parade .walker { bottom: 70px; }
.name-tag { position: absolute; left: 50%; top: 10px; translate: -50% 0; font: 13px var(--display); background: #0b0820cc; padding: 2px 8px; border-radius: 4px; color: var(--cyan); opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.walker:hover .name-tag { opacity: 1; }

/* future */
.future .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.panel { position: relative; display: block; color: var(--text); padding: 26px 24px; background: linear-gradient(160deg, #241a5ccc, #120d33e6); border-radius: 6px;
  box-shadow: 0 0 0 3px var(--cyan), 0 0 0 6px var(--ink), 0 0 0 9px #352574, 0 0 26px #5ff4ff44, 0 12px 0 #0008; transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.25s; }
.panel::before, .panel::after { content: ''; position: absolute; width: 18px; height: 18px; border: 4px solid var(--pink); }
.panel::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }
.panel:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 0 0 3px var(--pink), 0 0 0 6px var(--ink), 0 0 0 9px #352574, 0 0 30px #ff5fb866, 0 16px 0 #0008; }
.panel img.ic { width: 64px; height: 64px; animation: float 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
.panel h3 { font-size: 26px; margin: 10px 0 6px; color: var(--cyan); }
.panel p { color: var(--muted); margin: 0; }
.panel .soon { position: absolute; top: -6px; right: -6px; font: 13px var(--display); background: var(--gold); color: var(--ink); padding: 3px 8px; border-radius: 4px; transform: rotate(6deg); }

/* about */
.about { background: linear-gradient(var(--ink), #0b0820b0 20%, #0b0820c8 80%, var(--ink)), url('/assets/bg/lab.webp') center / cover; }
.about .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.about .duo { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 420px; }
.about .text { background: #0b0820d9; border: 3px solid var(--violet); border-radius: 10px; padding: 30px; box-shadow: 0 0 0 3px var(--ink), 0 10px 0 #0006; }
.about .text p { color: var(--muted); }
.about .text strong { color: var(--text); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.socials a { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; background: var(--violet); border-radius: 8px; color: var(--text); font: 16px var(--display); transition: transform 0.15s; }
.socials a img { width: 36px; height: 36px; }
.socials a:hover { transform: translateY(-3px) rotate(-2deg); background: var(--pink); }

/* footer */
footer { position: relative; padding: 40px 0 26px; border-top: 3px solid var(--violet); background: #08061a; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
footer .cat { position: absolute; top: -66px; left: 0; z-index: 3; }
.termlink { font-family: ui-monospace, monospace; color: var(--muted); margin-right: 14px; padding: 2px 6px; border: 2px solid var(--violet); border-radius: 4px; }
.termlink:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-c); }
.termlink::after { content: '_'; animation: blink 1s steps(1) infinite; display: inline-block; }

/* ---------------------------------------------------------------- game page */
.gp-hero { padding: 120px 0 30px; background: linear-gradient(#0b0820aa, var(--ink)), url('/assets/bg/arcade.webp') center / cover; }
.gp-hero h1 { font-size: clamp(44px, 7vw, 92px); color: var(--cc); text-shadow: 0 6px 0 #0008, 0 0 30px color-mix(in srgb, var(--cc) 50%, transparent); }
.gp-hero .tag { font: clamp(20px, 2.4vw, 28px) var(--display); color: var(--text); margin: 6px 0 14px; }
.gp-hero .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gp-hero .badge { position: static; animation: none; }
.gp { display: grid; grid-template-columns: auto 1fr; gap: 50px; padding: 40px 0 90px; align-items: start; }
.device { position: sticky; top: 90px; justify-self: center; }
.phone { position: relative; width: 375px; height: 740px; border: 14px solid #1c1446; border-radius: 44px; box-shadow: 0 0 0 4px var(--cyan), 0 0 0 8px var(--ink), 0 0 0 11px var(--pink), 0 0 40px #5ff4ff55, 0 20px 0 #0007; }
.phone::before { content: ''; position: absolute; top: -6px; left: 50%; translate: -50% 0; width: 110px; height: 22px; background: #1c1446; border-radius: 0 0 14px 14px; z-index: 3; }
.phone::after { content: ''; position: absolute; right: -22px; top: 120px; width: 6px; height: 70px; background: var(--pink); border-radius: 3px; }
.phone .scr, .monitor .scr { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; background: #000; }
.monitor { position: relative; width: min(760px, 62vw); aspect-ratio: 16 / 9; border: 14px solid #241a55; border-radius: 14px; box-shadow: 0 0 0 4px var(--cyan), 0 0 30px #5ff4ff55, 0 18px 0 #0007; }
.monitor .scr { border-radius: 2px; }
.scr iframe { width: 100%; height: 100%; border: 0; display: block; }
.start { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; cursor: pointer; background: center top / cover; }
.start::before { content: ''; position: absolute; inset: 0; background: #0b0820a0; }
.start .btn { z-index: 1; }
.device .tools { display: flex; gap: 10px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.info { min-width: 0; }
.info h2 { font-size: 34px; color: var(--cyan); margin: 26px 0 10px; }
.info h2:first-child { margin-top: 0; }
.info ul { padding-left: 0; list-style: none; }
.info li { padding-left: 34px; position: relative; margin: 8px 0; color: var(--muted); }
.info li::before { content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; background: url('/assets/icons/star.png') center / contain; }
.box { background: #140f33; border: 3px solid var(--violet); border-radius: 10px; padding: 18px 20px; }
.box.test { border-color: var(--gold); }
.box.test b { color: var(--gold); font-family: var(--display); font-weight: normal; }
form.fb { display: grid; gap: 12px; }
form.fb label { font: 15px var(--display); color: var(--lilac); }
form.fb input, form.fb textarea, form.fb select { width: 100%; font: 17px var(--body); color: var(--text); background: var(--ink); border: 2px solid var(--violet); border-radius: 6px; padding: 10px 12px; }
form.fb input:focus, form.fb textarea:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-c); }
.stars { display: flex; gap: 4px; }
form.fb .stars input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; }
.stars label { position: relative; }
.stars label img { width: 40px; height: 40px; filter: grayscale(1) brightness(0.6); transition: transform 0.12s, filter 0.12s; cursor: pointer; }
.stars label.on img { filter: none; transform: scale(1.1); }
.more { display: flex; gap: 16px; overflow-x: auto; padding: 10px 2px 20px; }
.more a { flex: 0 0 200px; }
.more .screen { aspect-ratio: 3 / 4; }
.mobile-play { display: none; }

/* ---------------------------------------------------------------- keyframes */
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes shadow { 50% { transform: scaleX(0.82); opacity: 0.7; } }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-14px) rotate(-3deg); } 40% { transform: translateY(2px) rotate(2deg); } }
@keyframes wiggle { 50% { transform: rotate(-10deg) scale(1.1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drift { to { background-position-x: -1280px; } }
@keyframes breathe { 50% { filter: brightness(1.12); } }
@keyframes shine { to { transform: translateX(100%); } }
@keyframes shake { 0%, 100% { translate: 0 0; } 20% { translate: -8px 4px; } 40% { translate: 7px -5px; } 60% { translate: -6px 3px; } 80% { translate: 5px -2px; } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* ---------------------------------------------------------------- phone */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .links { position: fixed; inset: 64px 12px auto; flex-direction: column; align-items: stretch; background: #0b0820f2; border: 3px solid var(--violet); border-radius: 10px; padding: 10px; display: none; }
  .menu-open .links { display: flex; }
  #menu { display: block; margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 96px; text-align: center; }
  .title { justify-content: center; }
  .ctas { justify-content: center; }
  .stage { padding-bottom: 8vh; }
  .about .wrap, .gp { grid-template-columns: 1fr; }
  .about .duo { min-height: 280px; }
  .device { position: static; display: none; }
  .mobile-play { display: block; }
  section { padding: 80px 0; }
  .grid { grid-template-columns: 1fr; }
  .arcade { background-attachment: scroll; }
}
@media (hover: none) { .peek { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pop { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Daily Outage banner (home) */
.dailyban { display: flex; align-items: center; gap: 18px; margin: 10px 0 34px; padding: 16px 22px; border-radius: 8px; color: var(--text);
  background: linear-gradient(100deg, #ff3b5c33, #352574cc 45%, #1f1750); box-shadow: 0 0 0 3px #ff3b5c, 0 0 0 6px var(--ink), 0 0 26px #ff3b5c66; transition: transform 0.15s; }
.dailyban:hover { transform: translateY(-4px) rotate(-0.5deg); }
.dailyban img { width: 64px; height: 64px; animation: wiggle 1.2s steps(3) infinite; }
.dailyban b { display: block; font: 28px var(--display); font-weight: normal; } .dailyban b em { font-style: normal; color: var(--pink); }
.dailyban span { color: var(--muted); }
.dailyban .go { margin-left: auto; white-space: nowrap; font: 20px var(--display); color: #fff; background: var(--pink); padding: 10px 18px; border-radius: 6px; box-shadow: 0 4px 0 #9c1b62; }
.nsban { margin-top: -14px; background: linear-gradient(100deg, #3be8ff2e, #352574cc 45%, #1f1750); box-shadow: 0 0 0 3px #3be8ff, 0 0 0 6px var(--ink), 0 0 26px #3be8ff55; }
.nsban b em { color: var(--cyan, #3be8ff); } .nsban .go { color: var(--ink); background: var(--cyan, #3be8ff); box-shadow: 0 4px 0 #1b8a9c; }
@media (max-width: 700px) { .dailyban { flex-wrap: wrap; } .dailyban .go { margin-left: 0; } .dailyban img { width: 48px; height: 48px; } }

/* the logo cat is the mouse pointer everywhere (engine.js draws the star trail from its center);
   text fields keep the I-beam and the Net Scope heatmap keeps its crosshair */
html, body, *, *::before, *::after {
  cursor: url(/assets/ui/cursor-cat.png) 16 16, auto !important;
  cursor: -webkit-image-set(url(/assets/ui/cursor-cat.png) 1x, url(/assets/ui/cursor-cat@2x.png) 2x) 16 16, auto !important;
}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]):not([type=file]), textarea, [contenteditable=true] { cursor: text !important; }
.heatwrap canvas { cursor: crosshair !important; }

/* animated cat cursor (engine.js catCursor): hides the system cursor while the cat element follows the mouse */
html.catcur-on, html.catcur-on * { cursor: none !important; }
html.catcur-on .heatwrap canvas { cursor: crosshair !important; }
.catcur { position: fixed; left: 0; top: 0; width: 32px; height: 32px; z-index: 2147483647; pointer-events: none; opacity: 0; transition: opacity 0.12s; will-change: transform; }
.catcur img { display: block; width: 32px; height: 32px; image-rendering: pixelated; transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1), filter 0.18s; }
.catcur.hot img { transform: scale(1.35); filter: drop-shadow(0 0 3px #5ff4ff) drop-shadow(0 0 7px #ff6fc8aa); animation: catwiggle 0.55s ease-in-out infinite; }
.catcur.press img { animation: none; transform: scale(0.8) rotate(-6deg); }
@keyframes catwiggle { 0%, 100% { transform: scale(1.35) rotate(-10deg); } 50% { transform: scale(1.35) rotate(10deg) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .catcur.hot img { animation: none; } }

/* reserve sprite canvas sizes before the scripts run (no layout shift); must match the scales in home.js / simple.js */
.tek #tekc { width: 480px; height: 480px; }
@media (max-width: 1099px) { .tek #tekc { width: 384px; height: 384px; } }
@media (max-width: 599px) { .tek #tekc { width: 288px; height: 288px; } }
#who { min-height: 384px; }
@media (max-width: 599px) { #who { min-height: 269px; } }
@media (max-width: 379px) { #who { min-height: 192px; } }
/* bigger tap areas for footer links on phones */
footer a { display: inline-block; padding-block: 6px; }
.funband { padding: 0 0 70px; } .cards.learn { margin-top: 10px; }
.funban { margin: 0; background: linear-gradient(100deg, #ffd84d26, #352574cc 45%, #1f1750); box-shadow: 0 0 0 3px #ffd84d, 0 0 0 6px var(--ink), 0 0 26px #ffd84d44; }
.funban .go { color: var(--ink); background: #ffd84d; box-shadow: 0 4px 0 #a8871c; }
.gamespage { padding-top: 120px; }
.learnsec { background: linear-gradient(var(--ink), #0b0820c4 18%, #0b0820d6 82%, var(--ink)), url('/assets/bg/noc.webp') center / cover fixed; }

/* accessibility: links inside running text are underlined (not color alone); readable text on pink chips */
:is(p, li, dd, .lead) a:not(.btn):not(.chip):not(.go) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.chip.go { color: #1a0f3d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
