/* fukulate.com: the Museum of Fine F-ART. No inline styles or scripts (the CSP allows neither). */
@font-face { font-family: 'Bangers'; src: url('fonts/bangers.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sacramento'; src: url('fonts/sacramento.woff2') format('woff2'); font-display: swap; }
:root {
  --ink: #1a1a1a; --pink: #ff4fc3; --pink-hot: #ffe3f6; --blue: #7fe8ff; --cyan: #7fe8ff; --gold: #ffd23f;
  --red: #d62828; --cream: #f7f3e9; --night: #120e16;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Bangers', Impact, sans-serif; letter-spacing: .03em; color: var(--cream); background: var(--night); overflow-x: hidden; }
img { max-width: 100%; display: block; image-rendering: auto; }
a { color: inherit; }

/* The "by fukulate" tube, in CSS: pink stroke glow, a dodgy k and a. */
.neon { font-family: 'Sacramento', cursive; color: var(--pink-hot); letter-spacing: 0; line-height: 1;
  text-shadow: 0 0 2px #fff, 0 0 6px var(--pink), 0 0 14px var(--pink), 0 0 28px var(--pink), 0 0 50px rgba(255,79,195,.6); }
.neon .k { animation: dodgy 5.2s infinite steps(1); }
.neon .a { animation: dodgy 3.7s .8s infinite steps(1); }
@keyframes dodgy { 0%, 62%, 66%, 70%, 100% { opacity: 1; } 63%, 67% { opacity: .15; } 64% { opacity: .6; } }
/* Pull cord with a roach on it (the corner sign's). */
.cord { position: absolute; right: 10px; top: 88%; width: 4px; height: 70px;
  background: repeating-linear-gradient(#b8bec4 0 4px, transparent 4px 7px); border-radius: 2px; }
.cord::after { content: ''; position: absolute; left: -4px; bottom: -10px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe08a, #c8961e); }
.roach { position: absolute; left: -6px; width: 16px; height: 20px; animation: climb 6s ease-in-out infinite; }
@keyframes climb { 0%, 100% { top: 50px; } 45% { top: -2px; } 55% { top: -2px; transform: rotate(25deg); } 60% { transform: rotate(-25deg); } }

/* Junkyard-arcade plate button, like the game's. */
.plate { display: inline-flex; align-items: center; justify-content: center; gap: .3em; position: relative; text-decoration: none; color: #111; font-size: 1.5rem;
  /* line-height 1 so the fallback font under the arrow can't make one plate taller; Bangers' ink sits a hair high, so a touch more on top. */
  line-height: 1; padding: .5em 1.1em .44em;
  border: 3px solid var(--ink); border-radius: 10px; background: var(--c, var(--gold));
  box-shadow: 0 6px 0 var(--ink), inset 0 4px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.18); transition: transform .06s, box-shadow .06s; }
.plate::before, .plate::after { content: ''; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #b8bec4; box-shadow: 0 0 0 1.5px var(--ink); }
.plate::before { left: 6px; } .plate::after { right: 6px; }
.plate:hover { box-shadow: 0 6px 0 var(--ink), 0 0 0 3px var(--pink), 0 0 18px var(--pink), inset 0 4px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(0,0,0,.18); }
.plate:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink), inset 0 4px 0 rgba(255,255,255,.35); }

/* The box: shakes now and then; click it and it bursts open. */
.box { cursor: pointer; position: relative; width: 210px; height: 150px; border: 0; padding: 0; background: none; font: inherit; color: inherit; }
.box .crate { position: absolute; inset: 30px 0 0; background: #b07a3c; border: 4px solid var(--ink); border-radius: 6px;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 22px), radial-gradient(circle at 30% 70%, rgba(80,50,20,.45) 0 22px, transparent 23px);
  display: grid; place-items: center; font-size: 1.6rem; color: #2a1a0a; text-shadow: 0 1px 0 rgba(255,255,255,.3); }
.box .lid { position: absolute; left: -6px; right: -6px; top: 18px; height: 22px; background: #c68a4a; border: 4px solid var(--ink); border-radius: 5px; transform-origin: 8% 100%; transition: transform .25s cubic-bezier(.3,1.8,.5,1); }
.box { animation: rattle 7s infinite; }
@keyframes rattle { 0%, 88%, 100% { transform: none; } 90% { transform: rotate(-4deg) translateY(-3px); } 92% { transform: rotate(4deg); } 94% { transform: rotate(-3deg) translateY(-2px); } 96% { transform: rotate(2deg); } }
.box:hover .lid, .box:focus-visible .lid { transform: rotate(-38deg) translateY(-8px); }
.box .pop { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 40px) scale(.6); opacity: 0; transition: .3s cubic-bezier(.3,1.8,.5,1);
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: .3em .7em; white-space: nowrap; font-size: 1.15rem; pointer-events: none; }
.box:hover .pop, .box:focus-visible .pop { opacity: 1; transform: translate(-50%, -6px) scale(1); }
.fine { font-family: system-ui, sans-serif; letter-spacing: 0; font-size: .95rem; line-height: 1.5; }
.tag { display: inline-block; background: #111; color: var(--gold); padding: .1em .5em; border-radius: 4px; }

/* The museum */
/* The Museum of Fine F-ART: red velvet walls, gilded frames, brass placards. */
body { color: #f3e6c8; background:
  radial-gradient(ellipse at 50% -10%, rgba(255,210,120,.25), transparent 50%),
  repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 3px, transparent 3px 26px),
  linear-gradient(#5a1022, #3a0a16 50%, #1a0610); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px 60px; }
header { text-align: center; padding: 50px 0 10px; }
.museum { font-size: clamp(1.4rem, 3.4vw, 2.1rem); color: var(--gold); letter-spacing: .18em; text-shadow: 2px 2px 0 #000; }
.museum b { display: block; font-size: 2.1em; letter-spacing: .06em; line-height: 1; }
.rope { height: 34px; margin: 30px auto 0; max-width: 820px; position: relative;
  background: radial-gradient(ellipse at 50% 0, transparent 60%, #b0213a 61%, #b0213a 70%, transparent 71%) 0 0 / 120px 34px repeat-x; }

.frame { position: relative; padding: 18px; background: linear-gradient(135deg, #f7d774, #b8862b 40%, #f2c86a 60%, #8a5f17);
  border: 4px solid #3a2608; box-shadow: inset 0 0 0 4px #6b4a12, inset 0 0 0 9px #e6be5c, 0 14px 30px #000a; }
.frame img { border: 4px solid #2a1a06; background: #111; width: 100%; }
.placard { margin: 12px auto 0; max-width: 360px; background: linear-gradient(#e9d7a8, #c8ad6c); color: #2a1a06; border: 3px solid #5a3e10; border-radius: 4px;
  padding: 8px 12px; text-align: center; box-shadow: 0 4px 0 #0007; }
.placard b { display: block; font-size: 1.25rem; }
.placard span { font-family: Georgia, serif; font-style: italic; letter-spacing: 0; font-size: .9rem; }
.placard .vs { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(90,62,16,.45);
  font-family: Georgia, serif; letter-spacing: 0; font-size: .78rem; line-height: 1.35; }

.centerpiece { margin: 40px auto 0; max-width: 980px; }
.centerpiece .play { display: flex; justify-content: center; margin-top: 20px; }

h2 { text-align: center; color: var(--gold); font-size: clamp(2.2rem, 6vw, 3.4rem); text-shadow: 3px 3px 0 #000; margin: 90px 0 6px; }
.lede { text-align: center; max-width: 720px; margin: 0 auto 34px; font-size: 1.1rem; color: #f3e6c8; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 40px; align-items: start; max-width: 960px; margin: 0 auto; }
.gallery figure { margin: 0; }
.gallery .frame img { aspect-ratio: 1; object-fit: contain; background: radial-gradient(circle, #34384a, #16171e); }
.gallery figure:nth-child(3n+2) { transform: translateY(26px); }

.artist { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; max-width: 900px; margin: 0 auto;
  background: rgba(0,0,0,.35); border: 3px solid #8a5f17; border-radius: 12px; padding: 26px; }
.artist .pin { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 1.5rem; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff1b0, #f2c230 45%, #9c6a10); color: #3a2608; border: 5px solid #3a2608; box-shadow: 0 0 0 4px #e6be5c, 0 8px 0 #000a; transform: rotate(-8deg); }

.rules { max-width: 780px; margin: 0 auto; background: linear-gradient(#e9d7a8, #c8ad6c); color: #2a1a06; border: 5px solid #5a3e10; border-radius: 8px; padding: 22px 30px; box-shadow: 0 10px 0 #0008; }
.rules h3 { margin: 0 0 10px; font-size: 2rem; text-align: center; }
.rules ol { margin: 0; padding-left: 22px; }
.rules li { margin: 6px 0; }

.crate-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 36px; margin-top: 90px; }
.crate-row p { max-width: 380px; font-size: 1.5rem; }
footer { text-align: center; margin-top: 50px; color: #c9b38a; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; } .artist { grid-template-columns: 1fr; justify-items: center; text-align: center; } .gallery figure:nth-child(3n+2) { transform: none; } }

.plate.go { --c: #06d6a0; }
.plate.filth { --c: #ff4fa3; }
.box { display: block; text-decoration: none; }
.box .pop, .box .lid, .box .crate { display: block; }
.play { gap: 18px; flex-wrap: wrap; }
.museum-intro { text-align: center; max-width: 640px; margin: 18px auto 0; font-size: 1.05rem; color: #f3e6c8; }

/* The "tell Maurice" form that comes out of the crate. */
.tell { max-width: 520px; width: calc(100% - 32px); padding: 0; border: 5px solid #5a3e10; border-radius: 10px; color: #2a1a06;
  background: linear-gradient(#f1e2b8, #d6bd80); box-shadow: 0 14px 0 #000a; }
.tell::backdrop { background: rgba(10, 2, 6, .7); }
.tell form { padding: 22px 24px 20px; display: grid; gap: 8px; }
.tell h3 { margin: 0; font-size: 2.2rem; color: var(--red); text-shadow: 2px 2px 0 #fff6; }
.tell p { margin: 0 0 6px; }
.tell label { font-weight: 600; }
.tell textarea, .tell input { font: 1rem system-ui, sans-serif; color: #111; background: #fffbe8; border: 3px solid var(--ink); border-radius: 6px; padding: 8px 10px; width: 100%; }
.tell textarea:focus, .tell input:focus { outline: 3px solid var(--pink); outline-offset: 1px; }
.tell .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tell-status { min-height: 1.4em; font-weight: 600; }
.tell-status.bad { color: var(--red); }
.tell-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.tell-buttons .plate { font-size: 1.25rem; cursor: pointer; font-family: inherit; }
.plate.close { --c: #dddddd; }
.plate[disabled] { opacity: .6; cursor: progress; }

/* The "...MORE TO COME?" trash bag: rustles now and then; something's home on hover. */
.bag { position: relative; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit; animation: rustle 6.5s infinite; transform-origin: 50% 90%; }
.bag svg { display: block; overflow: visible; }
.bag .bag-label { font-family: 'Bangers', Impact, sans-serif; font-size: 16px; fill: #1a1a1a; letter-spacing: .5px; }
.bag .eyes { opacity: 0; transition: opacity .2s; }
.bag:hover .eyes, .bag:focus-visible .eyes { opacity: 1; }
.bag:hover .pop, .bag:focus-visible .pop { opacity: 1; transform: translate(-50%, -6px) scale(1); }
.bag .pop { position: absolute; left: 50%; bottom: 96%; transform: translate(-50%, 40px) scale(.6); opacity: 0; transition: .3s cubic-bezier(.3,1.8,.5,1);
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: .3em .7em; white-space: nowrap; font-size: 1.15rem; pointer-events: none; z-index: 1; }
.bag:focus-visible { outline: 3px solid var(--pink); outline-offset: 6px; border-radius: 12px; }
@keyframes rustle { 0%, 88%, 100% { transform: none; } 90%, 94% { transform: scale(1.06, .95); } 92%, 96% { transform: scale(.97, 1.03); } }

/* The maker's mark: the same "by fukulate" tube as the game and the Hall of Filth, k and a on the blink,
   hung in the page's top-right corner from two ball chains off the top edge (swaying a little, as in
   the game), with the roach's pull cord. */
.hang { position: absolute; z-index: 5; top: 34px; right: 22px; transform-origin: 50% -34px; animation: sway 4.6s ease-in-out infinite; }
.hang::before, .hang::after { content: ''; position: absolute; top: -34px; width: 6px; height: 36px;
  background: radial-gradient(circle, #b8bec4 0 1.7px, var(--ink) 1.8px 2.6px, transparent 2.7px) 0 0 / 6px 5px repeat-y; }
.hang::before { left: 16%; }
.hang::after { right: 16%; }
@keyframes sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
.bymark { display: inline-block; position: relative; padding: 0 16px 6px; border: 2px solid rgba(255,79,195,.35); border-radius: 16px;
  background: rgba(20,16,24,.92); box-shadow: 0 6px 0 #000, 0 0 30px rgba(255,79,195,.18) inset;
  font: 54px/1.1 'Sacramento', cursive; letter-spacing: 0; color: var(--pink-hot); text-decoration: none;
  text-shadow: 0 0 2px #fff, 0 0 6px var(--pink), 0 0 14px var(--pink), 0 0 28px var(--pink), 0 0 50px rgba(255,79,195,.6); }
.bymark .k { animation: dodgy 5.2s infinite steps(1); }
.bymark .a { animation: dodgy 3.7s .8s infinite steps(1); }
.bymark:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.bymark .cord { right: 14px; top: 92%; height: 64px; }
.bymark .cord::after { box-shadow: 0 0 0 1.5px var(--ink); }
.bymark .roach { animation-name: climb-short; }
@keyframes climb-short { 0%, 100% { top: 44px; } 45% { top: -2px; } 55% { top: -2px; transform: rotate(25deg); } 60% { transform: rotate(-25deg); } }
@media (max-width: 900px) { header { padding-top: 120px; } .bymark { font-size: 40px; } .hang { right: 14px; } }
@media (max-width: 480px) { header { padding-top: 130px; } .bymark { font-size: 32px; padding: 0 12px 4px; } .hang { right: 10px; top: 26px; } .hang::before, .hang::after { top: -26px; height: 28px; } }

/* The Study Wing: the Director of F-ART's pencil, and what the game did to it. Drag to compare. */
.wing-note { text-align: center; margin: -18px auto 30px; font-size: 1.05rem; color: var(--gold); }
.studies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 44px; max-width: 1000px; margin: 0 auto; }
.study { margin: 0; }
.compare { --cut: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 4px solid #2a1a06; background: #f4efe4;
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; background: none; pointer-events: none; -webkit-user-drag: none; }
.compare .before { background: #f4efe4; }
.compare .after { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #34384a, #16171e); clip-path: inset(0 0 0 var(--cut)); }
.compare .knob { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 4px; margin-left: -2px; background: var(--gold); box-shadow: 0 0 0 2px var(--ink), 0 0 14px rgba(255,210,63,.7); pointer-events: none; }
.compare .knob::after { content: '\25C0\25B6'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 6px 7px 4px; border-radius: 999px;
  font: 15px/1 'Bangers', Impact, sans-serif; letter-spacing: 1px; color: var(--ink); background: var(--gold); border: 3px solid var(--ink); white-space: nowrap; }
.compare .corner { position: absolute; top: 8px; padding: 2px 8px; border-radius: 4px; font-size: .95rem; letter-spacing: .06em; pointer-events: none; }
.compare .corner.l { left: 8px; background: #fffbe8; color: #2a1a06; border: 2px solid #2a1a06; }
.compare .corner.r { right: 8px; background: var(--ink); color: var(--cyan); border: 2px solid var(--cyan); }
.lever { display: block; width: 100%; margin: 14px 0 0; accent-color: var(--gold); height: 26px; cursor: ew-resize; }
.lever:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.stages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.stage { font: 1rem 'Bangers', Impact, sans-serif; letter-spacing: .05em; color: #2a1a06; padding: 4px 12px 2px; cursor: pointer;
  background: linear-gradient(#e9d7a8, #c8ad6c); border: 2px solid #5a3e10; border-radius: 4px; box-shadow: 0 3px 0 #0007; }
.stage[aria-pressed="true"] { background: var(--ink); color: var(--gold); border-color: var(--gold); }
.stage:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.study .placard { max-width: 440px; }
@media (max-width: 700px) { .studies { grid-template-columns: 1fr; gap: 46px; } }

@media (prefers-reduced-motion: reduce) {
  .hang, .bymark .k, .bymark .a, .roach, .bag, .neon .k, .neon .a { animation: none; }
}

/* New this season: a gold star pinned to the frame. */
.gallery figure.new .frame::after { content: '\2605  NEW'; position: absolute; top: -12px; right: -10px; padding: 3px 9px 1px; border-radius: 999px; transform: rotate(8deg);
  font-size: 1rem; letter-spacing: .05em; color: var(--ink); background: var(--gold); border: 3px solid var(--ink); box-shadow: 0 3px 0 #0008; }
