/* 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; }
[hidden] { display: none !important; }   /* the store buttons wait hidden until launch; a class's display must not show them */
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 picture { display: contents; }
.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; }

/* 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; }
.studio .games { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.studio .games li, .studio .games a { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.studio .games b { font: 14px/1 var(--px); color: var(--cream); }
.studio .games span { font: 700 10px/1 var(--sk); color: var(--dim); letter-spacing: 2px; text-transform: uppercase; }
.studio .games a:hover b { color: var(--orange); }
.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; } }

/* the games' own logos (one per game, in its look) */
.l-pulp { background: linear-gradient(161deg, #0000 0 61%, #2bff8a 61.4% 62.4%, #0000 63%), linear-gradient(161deg, #0000 0 70%, #2bff8a33 70% 76%, #0000 76%), #1b1d22; }   /* PULP: the neon rail down the dark corridor */
.l-pulp b { font: clamp(34px, 11vw, 60px)/1 var(--px); color: var(--cream); text-shadow: 4px 4px 0 #000; }
.l-pulp i { width: 46%; height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, #ff5a1f 0 12px, #f6efe2 12px 24px); box-shadow: 0 0 18px #2bff8a55; transform: rotate(-4deg); }   /* JUICE's striped board */
.l-pulp3d { background: radial-gradient(circle at 112% 50%, #ff5a1f 0 30%, #f6efe2 30% 31%, #0000 31%), repeating-radial-gradient(circle at 112% 50%, #0000 0 14px, #ff6a33cc 14px 16px), #14161a; }   /* PULP 3D: the striped rings */
.l-pulp3d b { font: clamp(34px, 11vw, 60px)/1 var(--px); color: var(--cream); text-shadow: 4px 4px 0 #000; margin-right: 18%; }
.l-baize { background: radial-gradient(circle at 74% 56%, #1a2b22 0 6%, #0000 6.4%), repeating-radial-gradient(circle at 74% 56%, #0000 0 9px, #2c5a42 9px 11px), #356a4f; }   /* Baize: green felt, a hole and its contours */
.l-baize b { font: clamp(34px, 11vw, 60px)/1 var(--px); color: #2b573f; text-shadow: 0 -2px 0 #1d3a2c, 0 2px 0 #6aa886; margin-right: 22%; }   /* the word pressed into the felt */
.l-baize i { position: absolute; left: 64%; top: 30%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: #f6efe2; box-shadow: inset -3px -3px 0 #d9cfbd; }   /* the cream ball on the lip */
.g-baize .mark i { color: #6aa886; }
.g-yardsale .mark i { color: #f26a1b; }   /* Yard Sale: the goggles' orange */   /* Baize: its accent is the felt, not the house orange */

/* ---------- coming soon (Baize, Fish Took My Boat): one picture and a few lines. The picture is sized by the screen's height
   as well as its width, so it fits whole on any phone, laptop or landscape screen; side by side from 760 px ---------- */
body.soon-page .wrap { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.soon-page main { flex: 1; display: flex; align-items: center; justify-content: center; }
body.soon-page footer { margin-top: 24px; }
.soon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding: 24px 0 8px; width: 100%; }
.soon .phone { flex: none; margin: 0; max-width: none; width: min(300px, 100%, calc(62vh * 9 / 16)); width: min(300px, 100%, calc(62svh * 9 / 16)); }
.soon .txt { max-width: 26em; }
.soon h1 { font-size: clamp(24px, 6vw, 34px); margin: 0 0 14px; }
.soon .lede { margin: 0 auto 18px; }
.soon .tag { margin: 0 0 18px; }
.soon .btns { justify-content: center; }
@media (min-width: 760px) {
  .soon:not(.logo-only) { flex-direction: row; justify-content: center; text-align: left; gap: 56px; }
  .soon:not(.logo-only) .lede { margin-left: 0; }
  .soon:not(.logo-only) .btns { justify-content: flex-start; }
}
.g-baize h1 em { color: #6aa886; }
.g-yardsale h1 em { color: #f26a1b; }

/* Fish Took My Boat: the game's neon sign (tools/ftmb-logo.mjs renders it from the game) on the arctic night. The lit B is
   its own small image over the sign's dark glass; it stutters every ~7 s, as in the game (for a beat: FISH TOOK MY OAT) */
.g-ftmb, .g-ftmb body { background: #040d17; }
.sign { position: relative; width: min(560px, 100%, calc(62vh * 1080 / 703)); width: min(560px, 100%, calc(62svh * 1080 / 703)); }
.sign img { display: block; width: 100%; height: auto; }
.sign .ftmb-b { position: absolute; left: 42.685%; top: 44.808%; width: 11.574%; animation: neon-buzz 7.3s step-end infinite; }
@keyframes neon-buzz { 0% { opacity: 1; } 78% { opacity: .08; } 78.6% { opacity: 1; } 79.1% { opacity: .08; } 80.3% { opacity: 1; }
  80.7% { opacity: .08; } 81% { opacity: 1; } 82.2% { opacity: .08; } 82.9% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sign .ftmb-b { animation: none; } }

/* the studio page's shelf: what's out, what's coming */
.studio .shelf { margin: 30px 0 0; display: flex; flex-direction: column; align-items: center; }
.studio .shelf h2 { font: 700 10px/1 var(--sk); color: var(--dim); opacity: .6; letter-spacing: 4px; text-transform: uppercase; margin: 0 0 14px; }
.studio .shelf .games { margin: 0; }
.studio .games .untitled b { color: var(--dim); }

/* the workshop: one line and a grid of 16 badges (3 across on a phone, the last one centred; 4 x 4 from 560 px); square tiles with the house hard shadow */
.workshop { width: 100%; max-width: 600px; text-align: center; }
.workshop p { font: 700 11px/1.7 var(--sk); color: var(--dim); letter-spacing: 1px; margin: 0 auto 20px; max-width: 30em; }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
.badges li:last-child { grid-column: 2; }
@media (min-width: 560px) { .badges { grid-template-columns: repeat(4, 1fr); gap: 24px 22px; } .badges li:last-child { grid-column: auto; } }
.workshop { max-width: 560px; }
.badges a { display: block; text-decoration: none; }
.badges svg { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; box-shadow: 4px 4px 0 #000; transition: transform .15s; }
.badges text { font-family: var(--px); }
.badges li:hover svg { transform: rotate(-3deg) translateY(-2px); }
.badges .more svg { box-shadow: none; }
.badges span { display: block; margin-top: 10px; font: 700 9px/1.2 var(--sk); color: var(--dim); letter-spacing: 1px; text-transform: uppercase; }
.badges .out span { color: var(--orange); }
.badges .next span { color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .badges svg { transition: none; } }
.l-ftmb { background: linear-gradient(#0d2d47, #040d17 70%); }                         /* Fish Took My Boat: red neon on the arctic night */
.l-ftmb b { font: clamp(40px, 13vw, 72px)/1 var(--sk); color: #ffe2d6; text-shadow: 0 0 3px #ff1222, 0 0 10px #ff1222, 0 0 26px #ff1222, 0 0 46px #ff122288; }
.l-ftmb i { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: radial-gradient(50% 70% at 50% 100%, #ff122230, #0000); }   /* its light on the sea */

.g-tangle .mark i, .g-tangle h1 em { color: #e0479b; }   /* Tanglecopter: the icon's Miami pink, darker to read on cream */
.g-taillights .mark i, .g-taillights h1 em { color: #d8324a; }   /* Tail Lights: the tail lights' red, darker to read on cream */
