/* PULP site: the game's palette and pixel faces. Ink, cream, one orange. Flat, square, chunky; no gradients, no shadows but the
   game's hard drop shadow. Works without JavaScript. */
@font-face { font-family: "Press Start 2P"; src: url(fonts/PressStart2P-400-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(fonts/Silkscreen-400-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(fonts/Silkscreen-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --ink: #0b0c10; --ink2: #14161d; --ink3: #1d2029; --cream: #f6efe2; --dim: #8b8e9a; --orange: #ff5a1f;
  --px: "Press Start 2P", "Silkscreen", "Courier New", monospace;
  --sk: "Silkscreen", "Press Start 2P", "Courier New", monospace;
  --body: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--cream); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--body); background: var(--ink); }
a { color: var(--cream); text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--orange); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* header: the wordmark, chunky, with the game's hard up-left shadow */
header { padding: 28px 0 8px; }
.mark { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; }
.mark b { font: 28px/1 var(--px); color: var(--cream); text-shadow: -4px -4px 0 var(--ink3), 4px 4px 0 #000; letter-spacing: 2px; }
.mark i { font: 700 11px/1 var(--sk); color: var(--orange); letter-spacing: 3px; font-style: normal; text-transform: uppercase; }
nav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font: 700 12px/1 var(--sk); letter-spacing: 3px; text-transform: uppercase; }
nav a { text-decoration: none; color: var(--dim); }
nav a[aria-current] , nav a:hover { color: var(--cream); }

/* the intro, then one card per game (two apps: PULP and PULP 3D) */
.intro { padding: 36px 0 6px; }
.games { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 20px 0 6px; }
@media (min-width: 640px) { .games { grid-template-columns: 1fr 1fr; gap: 32px; } }
.game h2 { font: 24px/1.2 var(--px); margin: 22px 0 6px; letter-spacing: 1px; }
.game h2 em { color: var(--orange); font-style: normal; }
.game .tag { margin-bottom: 12px; }
.game p { margin: 0 0 18px; }
.fair { padding: 10px 0 0; }
.phone { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 9 / 16; border: 6px solid var(--ink3); border-radius: 26px;
  overflow: hidden; background: var(--ink2); box-shadow: 8px 8px 0 #000; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
h1 { font: 34px/1.15 var(--px); margin: 0 0 6px; letter-spacing: 1px; }
h1 em { color: var(--orange); font-style: normal; }
.tag { font: 700 13px/1.5 var(--sk); color: var(--dim); letter-spacing: 3px; text-transform: uppercase; margin: 0 0 22px; }
.lede { font-size: 18px; margin: 0 0 22px; max-width: 34em; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; }
.mode { background: var(--ink2); border: 2px solid var(--ink3); border-radius: 14px; padding: 14px; }
.mode b { display: block; font: 12px/1.3 var(--px); margin-bottom: 8px; }
.mode b span { color: var(--orange); }
.mode p { margin: 0; font-size: 14px; color: var(--dim); }

/* buttons: the game's cushion buttons (cream, sinking into a hard shadow) */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 12px/1 var(--px); letter-spacing: 1px; text-decoration: none; color: var(--ink); background: var(--cream);
  box-shadow: 0 5px 0 #b9ad98; transition: transform .06s, box-shadow .06s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b9ad98; }
.btn.alt { background: var(--ink3); color: var(--cream); box-shadow: 0 5px 0 #000; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.soon { font: 700 11px/1 var(--sk); color: var(--orange); letter-spacing: 3px; text-transform: uppercase; margin: 22px 0 0; text-align: center; }

/* the run squares (like the share text): pass, boosted, crash */
.run { display: flex; gap: 6px; margin: 34px 0 10px; }
.run i { width: 16px; height: 16px; background: var(--cream); }
.run i.b { background: var(--orange); } .run i.x { background: var(--ink3); outline: 2px solid var(--dim); outline-offset: -2px; }

/* text pages */
main.doc { padding: 22px 0 10px; }
.doc h1 { font-size: 22px; margin: 18px 0 8px; }
.doc h2 { font: 13px/1.4 var(--px); color: var(--orange); margin: 34px 0 8px; letter-spacing: 1px; }
.doc p, .doc li { max-width: 40em; }
.doc .meta { font: 700 12px/1.5 var(--sk); color: var(--dim); letter-spacing: 2px; text-transform: uppercase; }
.doc table { border-collapse: collapse; width: 100%; max-width: 46em; margin: 8px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--ink3); }
.doc th { font: 700 12px/1.4 var(--sk); letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.note { background: var(--ink2); border-left: 6px solid var(--orange); padding: 12px 16px; border-radius: 0 12px 12px 0; max-width: 40em; }
details { background: var(--ink2); border-radius: 12px; padding: 12px 16px; margin: 10px 0; max-width: 40em; }
summary { cursor: pointer; font-weight: 700; }

footer { margin-top: 48px; padding: 26px 0 40px; border-top: 2px solid var(--ink3); font: 700 11px/1.8 var(--sk); letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
footer a { color: var(--dim); text-decoration: none; margin-right: 16px; white-space: nowrap; display: inline-block; }
footer a:hover { color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- the studio page (saiko, /): one random logo, a line, the games. Nothing else ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.studio { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.studio main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px 24px; }
.logos { display: block; width: 100%; max-width: 520px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.logo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; }
.logo[hidden] { display: none; }
.logo b { font-weight: 400; line-height: 1; white-space: nowrap; position: relative; }
.logo i, .logo u, .logo s { font-style: normal; text-decoration: none; position: relative; }
.logo svg { width: 78%; height: auto; }
.by { font: 700 11px/1 var(--sk); color: var(--dim); letter-spacing: 4px; text-transform: uppercase; margin: 28px 0 0; }
.games { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.games li, .games a { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.games b { font: 14px/1 var(--px); color: var(--cream); }
.games span { font: 700 10px/1 var(--sk); color: var(--dim); letter-spacing: 2px; text-transform: uppercase; }
.games a:hover b { color: var(--orange); }
.games .soon b { color: var(--ink3); }
.studio-foot { border-top: 0; margin-top: 0; text-align: center; padding: 18px 16px 28px; font: 700 10px/1.8 var(--sk); color: var(--ink3); letter-spacing: 2px; text-transform: uppercase; }
.studio-foot a { color: var(--dim); text-decoration: none; }
.studio-foot a:hover { color: var(--cream); }

/* the logos */
.l-box { background: #d33a31; }                                                         /* white on red, leaning forward */
.l-box b { font: clamp(34px, 11vw, 60px)/1 var(--px); color: #fff; transform: skewX(-12deg); letter-spacing: -2px; }
.l-stamp { background: var(--cream); }                                                   /* a red stamp in a red frame */
.l-stamp b { font: clamp(26px, 8.5vw, 48px)/1 var(--px); color: #e3342b; border: 6px solid #e3342b; padding: 18px 20px 14px; }
.l-stripes { background: repeating-linear-gradient(135deg, #000 0 7px, transparent 7px 18px),          /* rainbow through black bars */
  linear-gradient(110deg, #ffe14d, #f08a3c, #e9483a, #ec4f8c, #d93ce8, #8a33f0, #3a3cf0, #3d8af5, #7af0f5); }
.l-stripes b { font: 700 clamp(44px, 15vw, 84px)/1 var(--sk); color: #fff; text-shadow: 4px 4px 0 #000; }
.l-kana { background: #000; } .l-kana svg { width: 62%; }                                 /* サイコ, in pixels */
.l-block { background: #6bd65a; }                                                        /* chunky blocks, thin counters */
.l-juice { background: var(--orange); }                                                  /* the house colours */
.l-juice b { font: clamp(34px, 11vw, 60px)/1 var(--px); color: var(--ink); text-shadow: 5px 5px 0 #b8380f; }
.l-lcd { background: #9bbc0f; }                                                          /* a pocket console's green LCD */
.l-lcd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 0 3px, #8bac0f55 3px) 0 0 / 100% 4px, linear-gradient(90deg, #0000 0 3px, #8bac0f55 3px) 0 0 / 4px 100%; }
.l-lcd b { font: clamp(30px, 10vw, 54px)/1 var(--px); color: #0f380f; text-shadow: 4px 4px 0 #306230; }
.l-lcd i { font: clamp(9px, 2.6vw, 13px)/1 var(--px); color: #306230; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.l-vhs { background: linear-gradient(#1a0533 0 30%, #6b1a7a 48%, #ff3d7f 60%, #ffb347 64%, #120326 64.5%); }   /* a synthwave sunset over a grid */
.l-vhs::before { content: ""; position: absolute; left: 50%; top: 20%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: repeating-linear-gradient(#ffd23f 0 9%, #ff4d8d 9% 12%); -webkit-mask: linear-gradient(#000 0 58%, #0000 0 62%, #000 0 70%, #0000 0 74%, #000 0); mask: linear-gradient(#000 0 58%, #0000 0 62%, #000 0 70%, #0000 0 74%, #000 0); }
.l-vhs::after { content: ""; position: absolute; left: -50%; right: -50%; bottom: 0; height: 36%; transform: perspective(120px) rotateX(55deg); transform-origin: bottom;
  background: linear-gradient(90deg, #ff3dcf 0 2px, #0000 2px) 0 0 / 28px 100%, linear-gradient(#ff3dcf 0 2px, #0000 2px) 0 0 / 100% 18px; }
.l-vhs b { font: italic 700 clamp(40px, 13vw, 72px)/1 var(--sk); background: linear-gradient(#fff 0 45%, #7ad7ff 50%, #fff 52%, #ffb3f0); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(3px 3px 0 #2b0a4a); z-index: 1; margin-top: -8%; }
.l-neon { background: #120d14; }                                                         /* a pink neon tube on a dark wall */
.l-neon b { font: clamp(40px, 13vw, 72px)/1 var(--sk); color: #ffe6f6; text-shadow: 0 0 4px #ff4fd8, 0 0 12px #ff4fd8, 0 0 28px #ff2fb0, 0 0 48px #ff2fb0; animation: hum 4s steps(1) infinite; }
@keyframes hum { 0%, 91%, 95% { opacity: 1; } 93%, 97% { opacity: .55; } }
.l-comic { background: radial-gradient(#f2b705 30%, #0000 32%) 0 0 / 10px 10px, #ffd84a; }  /* a comic panel's halftone and a shout */
.l-comic b { font: clamp(34px, 11vw, 60px)/1 var(--px); color: #e8261c; transform: rotate(-6deg) skewX(-8deg);
  text-shadow: -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000, 7px 7px 0 #000; }
.l-win { background: #008080; gap: 0; }                                                  /* an old desktop's dialog box */
.l-win i, .l-win b, .l-win u { width: 74%; background: #c0c0c0; }
.l-win i { font: 700 clamp(9px, 2.6vw, 13px)/1 var(--sk); color: #fff; background: linear-gradient(90deg, #000080, #1084d0); padding: 6px 8px; letter-spacing: 1px; box-shadow: inset 2px 2px #dfdfdf; }
.l-win b { font: clamp(26px, 8.5vw, 46px)/1 var(--px); color: #000; text-align: center; padding: 18px 0 10px; box-shadow: inset 2px 0 #dfdfdf, inset -2px 0 #404040; }
.l-win u { font: clamp(9px, 2.6vw, 12px)/1 var(--px); color: #000; text-align: center; padding: 4px 0 14px; box-shadow: inset 2px 0 #dfdfdf, inset -2px -2px #404040;
  background: linear-gradient(#c0c0c0, #c0c0c0) padding-box; }
.l-crawl { background: radial-gradient(#fff 1px, #0000 1.5px) 0 0 / 37px 29px, radial-gradient(#fff9 1px, #0000 1.5px) 13px 11px / 23px 31px, #000; perspective: 260px; }   /* a space opera's crawl */
.l-crawl b { font: clamp(36px, 12vw, 66px)/1 var(--px); color: #000; -webkit-text-stroke: 3px #ffe81f; paint-order: stroke; transform: rotateX(28deg); letter-spacing: 4px; }
.l-hanko { background: #f3ead8; }                                                        /* a red seal on paper */
.l-hanko svg { width: auto; height: 74%; padding: 3%; border: 5px solid #c8261d; border-radius: 10px; transform: rotate(-4deg); }
.l-hud { background: #000; gap: 14px; }                                                  /* an 8-bit game's top bar */
.l-hud i { font: clamp(10px, 3vw, 15px)/1 var(--px); color: #ff3d3d; }
.l-hud b { font: clamp(32px, 10.5vw, 58px)/1 var(--px); color: #fff; }
.l-hud s { font: clamp(16px, 5vw, 26px)/1 var(--px); color: #ff3d3d; letter-spacing: 6px; }
.l-tele { background: #000; align-items: flex-start; justify-content: flex-start; padding: 6% 7%; }   /* a teletext page */
.l-tele i { font: clamp(9px, 2.6vw, 13px)/1 var(--px); color: #fff; background: #0000c8; padding: 4px 6px; }
.l-tele b { font: clamp(36px, 12vw, 68px)/1 var(--px); color: #ffff00; background: #0000c8; padding: 10px 12px; margin-top: 12%; text-shadow: 4px 0 0 #00ffff; }
.l-chrome { background: linear-gradient(135deg, #c9b8ff, #ffd1f0 50%, #b8f0ff); }        /* millennium chrome bubbles */
.l-chrome b { font: 700 clamp(46px, 15vw, 86px)/1 var(--sk); background: linear-gradient(#fff 0 20%, #9aa3b5 45%, #3b4252 50%, #c9d0dc 62%, #fff 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #4a3d7a; filter: drop-shadow(4px 4px 0 #4a3d7a); }
@media (prefers-reduced-motion: reduce) { .l-lcd i, .l-neon b { animation: none; } }
