/* nowicanpee.com: a public restroom wall, and you can pee on it (site.js). One committed look, bright as a tiled wall under
   strip lights: glossy white tile, flush blue, stream gold, sharpie. Bagel Fat One shouts, Permanent Marker scrawls, Archivo
   reads, IBM Plex Mono keeps score. All fonts are served from this site. */
:root {
  --ink: #141a3a; --ink-2: #39406a; --muted: #5d668c;
  --tile: #f4f8fc; --tile-2: #e6eef7; --grout: #c9d6e6; --card: #ffffff;
  --blue: #2f5bea; --blue-d: #1b2f8f; --gold: #ffcf33; --gold-d: #e89a12; --pink: #ff5c9a; --caution: #ffd400;
  --navy: #1b2350; --marker: #1c2260; --red: #e2382c;
  --shout: "Bagel Fat One", "Bitter", Impact, sans-serif; --scrawl: "Permanent Marker", "Comic Sans MS", cursive;
  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif; --mono: "IBM Plex Mono", Menlo, Consolas, monospace; --display: "Bitter", Georgia, serif;
  --gutter: clamp(16px, 4vw, 40px); --wide: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.6 var(--ui); -webkit-touch-callout: none;
  background-color: var(--tile);
  /* tiles: a grout grid, and a soft shine across every tile */
  background-image: linear-gradient(var(--grout) 3px, transparent 3px), linear-gradient(90deg, var(--grout) 3px, transparent 3px), linear-gradient(135deg, rgba(255,255,255,.9) 0 18%, transparent 18% 100%), linear-gradient(var(--tile), var(--tile-2));
  background-size: 96px 96px, 96px 96px, 96px 96px, 96px 96px;
}
body.peeing { user-select: none; -webkit-user-select: none; cursor: crosshair; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
h2 { font: 400 clamp(34px, 5.4vw, 60px)/1 var(--shout); letter-spacing: .005em; margin: 0 0 20px; text-wrap: balance; color: var(--ink); }
h3 { font: 400 26px/1.1 var(--shout); margin: 0 0 8px; }
section { padding-block: clamp(44px, 7vw, 88px); position: relative; }

/* ---- the layer you pee on ---- */
#pee { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }
#hud { position: fixed; z-index: 60; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; pointer-events: none; opacity: 0; transition: opacity .3s; }
#hud.on { opacity: 1; }
#score { font: 400 34px/1 var(--shout); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
#score.gain b { animation: gain .2s ease-out; display: inline-block; }
#score em { font: 700 14px var(--ui); font-style: normal; background: var(--gold); color: #1a1204; -webkit-text-stroke: 0; padding: 4px 8px; border-radius: 8px; transform: rotate(-7deg); box-shadow: 0 2px 0 var(--ink); }
#score em.hot { background: linear-gradient(#ffb02e, #ff4a2a); color: #fff; }
@keyframes gain { 40% { transform: scale(1.18); } }
#tank { width: 86px; height: 14px; border-radius: 8px; border: 3px solid var(--ink); background: #fff; overflow: hidden; position: relative; }
#tank i { display: block; height: 100%; width: 100%; background: linear-gradient(#ffe46a, #f2b400); }
#tank span { position: absolute; inset: 0; font: 700 8px/8px var(--mono); text-align: center; color: var(--ink); letter-spacing: .1em; }
#mute { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
#feed { position: fixed; z-index: 60; right: 0; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 78%; pointer-events: none; }
#feed span { font: 600 12px/1.2 var(--mono); color: #fff; background: rgba(12,14,22,.82); border-right: 4px solid #7ee07e; border-radius: 9px 0 0 9px; padding: 6px 10px; animation: feedin .3s cubic-bezier(.2,.9,.3,1); transition: opacity .4s, transform .4s; max-width: 100%; }
#feed span.gold { border-right-color: var(--gold); color: #ffe9a0; } #feed span.warn { border-right-color: #ffb02e; color: #ffdc9a; } #feed span.bad { border-right-color: #ff4a3a; background: rgba(96,16,10,.9); } #feed span.hot { border-right-color: #ff5a2a; background: rgba(150,40,12,.92); }
#feed span.out { opacity: 0; transform: translateX(40%); }
@keyframes feedin { from { opacity: 0; transform: translateX(100%); } }
#shout { position: fixed; z-index: 61; left: 0; right: 0; top: 30%; text-align: center; font: 400 clamp(38px, 8vw, 84px)/1 var(--shout); color: var(--gold); -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; pointer-events: none; opacity: 0; padding-inline: 12px; }
#shout.go { animation: shout 1.3s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes shout { 0% { opacity: 0; transform: scale(.3) rotate(-5deg); } 15% { opacity: 1; transform: scale(1.15) rotate(-5deg); } 28% { transform: scale(1) rotate(-5deg); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) rotate(-5deg); } }
#hint { position: fixed; z-index: 55; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font: 600 12px/1.3 var(--mono); letter-spacing: .08em; color: #1a1204; background: var(--gold); border: 3px solid var(--ink); border-radius: 999px; padding: 9px 16px; box-shadow: 0 4px 0 var(--ink); pointer-events: none; animation: hint 1.1s ease-in-out infinite alternate; text-align: center; max-width: calc(100% - 32px); transition: opacity .4s; }
#hint.gone { opacity: 0; }
#hint .touch { display: none; } @media (hover: none) { #hint .desk { display: none; } #hint .touch { display: inline; } }
@keyframes hint { to { transform: translateX(-50%) translateY(-7px); } }
#flush { position: fixed; z-index: 58; right: 10px; top: 42%; width: 58px; padding: 10px 0 8px; border: 3px solid var(--ink); border-radius: 14px; background: linear-gradient(#f4f6fa, #c4ccd8); box-shadow: 0 5px 0 var(--ink); cursor: pointer; display: grid; justify-items: center; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .1s; }
#flush.on { opacity: 1; pointer-events: auto; }
#flush:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
#flush .lever { width: 12px; height: 38px; border-radius: 6px; background: linear-gradient(90deg, #8d97a8, #f2f5f9 45%, #7d8798); border: 2px solid var(--ink); transform-origin: 50% 10%; transition: transform .25s; }
#flush.pull .lever { transform: rotate(38deg); }
#flush .lbl { font: 700 9px var(--mono); letter-spacing: .12em; color: var(--ink); }
.wave { position: fixed; z-index: 57; left: 0; right: 0; top: -40vh; height: 40vh; pointer-events: none; background: linear-gradient(transparent, rgba(90,170,255,.55) 40%, rgba(230,245,255,.95) 92%, #fff); animation: wave 1.1s cubic-bezier(.5,0,.7,1) forwards; }
@keyframes wave { to { top: 110vh; } }
#fly { position: absolute; z-index: 40; left: 0; top: 0; width: 26px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #3a4a42, #0c120f 70%); transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .4s; will-change: transform; }
#fly::after { content: ""; position: absolute; left: -7px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #7a1208; box-shadow: inset -2px -2px 0 #3a0804; }
#fly i { position: absolute; top: -8px; width: 16px; height: 12px; border-radius: 50%; background: rgba(210,230,255,.75); border: 1px solid rgba(20,26,58,.5); }
#fly i:first-child { left: 2px; transform: rotate(-24deg); } #fly i:last-child { left: 10px; transform: rotate(18deg); }
#fly.held i { animation: buzz .05s linear infinite alternate; } @keyframes buzz { to { transform: rotate(40deg) scaleY(.4); } }
#fly.gone { opacity: 0; }

/* ---- top ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 22px/1 var(--shout); color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--ink); }
.top nav { display: flex; gap: 16px; align-items: center; font: 700 14px var(--ui); }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a.play { background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; }

/* ---- hero ---- */
.hero { padding-block: clamp(28px, 5vw, 60px) clamp(60px, 9vw, 120px); }
.kicker { font: 600 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-d); margin: 0 0 14px; }
h1 { font: 400 clamp(64px, 15.5vw, 210px)/.86 var(--shout); margin: 0; letter-spacing: -.01em; display: flex; flex-wrap: wrap; gap: 0 .22em; max-width: 9em; }
h1 .w { display: inline-flex; white-space: nowrap; }
h1 .l { --f: 0%; display: inline-block; color: transparent; -webkit-text-stroke: clamp(3px, .5vw, 7px) var(--ink); paint-order: stroke fill; background: linear-gradient(to top, var(--gold) var(--f), #fff var(--f)); -webkit-background-clip: text; background-clip: text; transition: transform .15s; }
h1 .l.done { background: linear-gradient(to top, var(--gold-d), var(--gold) 60%, #fff0a8); -webkit-background-clip: text; background-clip: text; animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
h1 .l.q { transform: rotate(9deg); transform-origin: 40% 80%; }
@keyframes pop { 40% { transform: scale(1.22) rotate(-4deg); } }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 33em; margin: 26px 0 28px; }
.lede mark { background: var(--gold); color: #1a1204; padding: 1px 6px; border-radius: 5px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 999px; font: 700 17px var(--ui); text-decoration: none; border: 3px solid var(--ink); color: var(--ink); background: var(--card); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 0 var(--ink); }
.btn.primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); }
.btn.soon { border-style: dashed; color: var(--muted); cursor: default; background: rgba(255,255,255,.7); }
.btn.soon small { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #b82763; }
.sign { position: absolute; right: var(--gutter); top: 8px; background: #fff; border: 4px solid var(--ink); border-radius: 10px; padding: 12px 18px 8px; transform: rotate(4deg); text-align: center; box-shadow: 0 6px 0 rgba(20,26,58,.2); }
.sign b { display: block; font: 400 clamp(20px, 3vw, 34px)/1 var(--shout); color: var(--red); }
.sign span { font: 500 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sign::before, .sign::after { content: ""; position: absolute; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #9aa6b8; border: 1px solid var(--ink); } .sign::before { left: 6px; } .sign::after { right: 6px; }
.scrawl { position: absolute; font: 400 clamp(17px, 2.2vw, 26px)/1.15 var(--scrawl); color: var(--marker); opacity: .85; }
.scrawl.s1 { right: clamp(16px, 8vw, 120px); bottom: 26%; transform: rotate(-7deg); }
.scrawl.s2 { right: clamp(30px, 18vw, 300px); bottom: 5%; transform: rotate(3deg); color: #a31d2a; }

/* ---- three urinals ---- */
.stalls { background: linear-gradient(rgba(27,35,80,.06), transparent 30%); }
.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 36px); }
.urinal { text-align: center; }
.urinal p { margin: 0; color: var(--ink-2); font-size: 16px; text-align: left; }
.bowl { position: relative; width: min(100%, 190px); aspect-ratio: 10 / 14; margin: 0 auto 18px; background: linear-gradient(100deg, #fff 30%, #dfe7f1); border: 4px solid var(--ink); border-radius: 46% 46% 50% 50% / 22% 22% 42% 42%; box-shadow: inset 0 -26px 30px rgba(27,35,80,.16), inset 14px 0 18px rgba(255,255,255,.9), 0 8px 0 rgba(20,26,58,.18); }
.bowl::before { content: ""; position: absolute; left: 16%; right: 16%; top: 20%; bottom: 12%; border-radius: 44% 44% 50% 50% / 20% 20% 44% 44%; background: linear-gradient(#cfd9e6, #f6f9fc 70%); box-shadow: inset 0 10px 16px rgba(27,35,80,.25); }
.bowl::after { content: ""; position: absolute; left: 50%; top: -30px; width: 16px; height: 30px; transform: translateX(-50%); background: linear-gradient(90deg, #8d97a8, #f2f5f9 45%, #7d8798); border: 3px solid var(--ink); border-bottom: 0; border-radius: 5px 5px 0 0; }
.cake { position: absolute; left: 50%; bottom: 19%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffc2dc, var(--pink) 60%, #c2306c); border: 3px solid var(--ink); z-index: 1; transition: transform .2s; }
.urinal.hit .cake { transform: translateX(-50%) scale(.9); }
.bag { position: absolute; inset: 8% -6% 6%; z-index: 1; display: grid; place-items: center; font: 400 clamp(16px, 2.4vw, 24px)/1.05 var(--scrawl); font-style: normal; color: var(--red); background: rgba(225,232,240,.78); border: 3px dashed var(--ink-2); border-radius: 18px; transform: rotate(-4deg); backdrop-filter: blur(1px); }

/* ---- the stall door with the story on it ---- */
.door { background: var(--navy); background-image: linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px), linear-gradient(rgba(0,0,0,.18), transparent 20%, transparent 80%, rgba(0,0,0,.25)); background-size: 120px 100%, 100% 100%; border-block: 6px solid var(--ink); }
.door::before { content: ""; position: absolute; right: clamp(16px, 6vw, 90px); top: 50%; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9aa6b8 60%, #5a6478); border: 3px solid #0b1030; }
.door::after { content: "OCCUPIED"; position: absolute; right: clamp(8px, 5vw, 78px); top: calc(50% + 56px); font: 700 10px var(--mono); letter-spacing: .12em; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 4px; }
.note { max-width: 40em; color: #eef2ff; padding-right: clamp(0px, 8vw, 120px); }
.note h2 { color: var(--gold); }
.note p { margin: 0 0 16px; font-size: 18px; }
.note .big { font: 400 clamp(24px, 3.4vw, 38px)/1.25 var(--scrawl); color: #fff; }
.note .sig { font: 400 22px var(--scrawl); color: var(--gold); transform: rotate(-2deg); }

/* ---- polaroids ---- */
.polas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); align-items: start; }
.pola { margin: 0; background: #fff; border: 2px solid var(--ink); padding: 10px 10px 14px; transform: rotate(var(--r, 0deg)); box-shadow: 0 14px 24px -12px rgba(20,26,58,.5); position: relative; transition: transform .2s; }
.pola:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }
.pola::before { content: ""; position: absolute; left: 50%; top: -14px; width: 84px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,212,0,.72); border: 1px solid rgba(20,26,58,.25); }
.pola img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; border: 2px solid var(--ink); }
.pola figcaption { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); margin-top: 10px; }
.pola figcaption b { display: block; font: 400 19px/1.15 var(--scrawl); color: var(--marker); margin-bottom: 4px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 60px); background: #0c1024; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 0 rgba(20,26,58,.25); }
.board div { padding: 20px 12px; text-align: center; border-right: 2px solid #232a52; } .board div:last-child { border-right: 0; }
.board b { display: block; font: 400 clamp(36px, 6vw, 68px)/1 var(--shout); color: var(--gold); text-shadow: 0 0 18px rgba(255,200,40,.55); font-variant-numeric: tabular-nums; }
.board span { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #9aa5cf; }

/* ---- laminated rules ---- */
.laminate { max-width: 760px; margin-inline: auto; background: #fffdf4; border: 4px solid var(--ink); border-radius: 12px; padding: clamp(22px, 4vw, 40px); transform: rotate(-1.2deg); box-shadow: inset 0 0 0 8px rgba(255,255,255,.7), inset 0 0 40px rgba(120,170,255,.18), 0 16px 30px -16px rgba(20,26,58,.5); position: relative; }
.laminate::before, .laminate::after { content: ""; position: absolute; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: #9aa6b8; border: 2px solid var(--ink); } .laminate::before { left: 12px; } .laminate::after { right: 12px; }
.laminate h2 { color: var(--red); text-align: center; }
.laminate ol { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; color: var(--ink-2); }
.laminate li::marker { font: 400 20px var(--shout); color: var(--ink); }

/* ---- wet floor ---- */
.floor { background: var(--caution); background-image: repeating-linear-gradient(135deg, #141a3a 0 22px, transparent 22px 64px); background-size: 100% 26px; background-repeat: no-repeat; background-position: top; border-top: 4px solid var(--ink); padding-top: clamp(60px, 8vw, 100px); }
.floor .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 5vw, 60px); align-items: center; }
.floor p { max-width: 34em; font-size: 18px; color: #2a2006; margin: 0 0 24px; }
.floor .btn.primary { background: var(--ink); }
.floor .btn.soon { background: rgba(255,255,255,.5); color: #4a3800; }
.wet { width: clamp(120px, 18vw, 190px); aspect-ratio: 10 / 15; background: linear-gradient(100deg, #ffe34d, #f2b800); border: 4px solid var(--ink); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); display: grid; align-content: center; text-align: center; padding: 10% 14% 24%; filter: drop-shadow(0 8px 0 rgba(20,26,58,.3)); }
.wet b { font: 400 clamp(15px, 2.2vw, 24px)/1 var(--shout); color: var(--ink); } .wet span { font: 700 clamp(10px, 1.3vw, 14px)/1.2 var(--ui); color: var(--ink); margin-top: 6px; }

footer { background: var(--caution); padding-block: 8px 44px; font-size: 14px; color: #4a3800; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; border-top: 2px solid rgba(20,26,58,.25); padding-top: 18px; }
footer nav { display: flex; gap: 18px; } footer a { color: var(--ink); }

/* ---- plain pages: privacy, support, 404 ---- */
.page { padding-block: 24px 72px; max-width: 46em; background: rgba(255,255,255,.86); border: 3px solid var(--ink); border-radius: 16px; margin-block: 8px 56px; padding-inline: clamp(18px, 4vw, 44px); box-shadow: 0 8px 0 rgba(20,26,58,.18); }
.page h1 { font: 400 clamp(40px, 7vw, 72px)/1 var(--shout); margin: 12px 0 8px; display: block; max-width: none; }
.page h2 { font-size: 28px; margin: 34px 0 8px; }
.page p, .page li, .page td { color: var(--ink-2); }
.page .meta { font: 500 13px var(--mono); color: var(--muted); margin: 0 0 24px; }
.page .scroll { overflow-x: auto; }
.page table { border-collapse: collapse; width: 100%; font-size: 15px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--grout); }
.page th { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }


@media (max-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 40px; } .urinal p { text-align: center; max-width: 30em; margin-inline: auto; }
  .polas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .board div:nth-child(2) { border-right: 0; } .board div:nth-child(-n+2) { border-bottom: 2px solid #232a52; }
  .floor .wrap { grid-template-columns: minmax(0, 1fr); } .wet { width: 120px; }
  .sign { position: static; display: inline-block; margin-bottom: 18px; }
  .scrawl { position: static; display: inline-block; margin: 26px 18px 0 0; }
  .top nav a:not(.play) { display: none; }
  #flush { top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); right: 6px; width: 50px; }
}
@media (prefers-reduced-motion: reduce) { #hint, #fly.held i, #score em.hot { animation: none; } html { scroll-behavior: auto; } .pola, .laminate, .sign { transform: none; } }

/* ================= second pass: contrast, a better wet floor sign, and what things do when the stream hits them ================= */

/* the urinals hang on a flush-blue tiled wall, so the white porcelain stands out */
.stalls { background-color: var(--blue); background-image: linear-gradient(rgba(255,255,255,.22) 3px, transparent 3px), linear-gradient(90deg, rgba(255,255,255,.22) 3px, transparent 3px), linear-gradient(135deg, rgba(255,255,255,.16) 0 18%, transparent 18%), linear-gradient(#3a68f6, #2347c8); background-size: 96px 96px, 96px 96px, 96px 96px, 100% 100%; border-block: 6px solid var(--ink); }
.stalls h2 { color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; }
.stalls h3 { color: var(--gold); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; font-size: 30px; }
.urinal p { color: #fff; background: rgba(12,18,52,.62); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; }
.bowl { box-shadow: inset 0 -26px 30px rgba(27,35,80,.22), inset 14px 0 18px rgba(255,255,255,.95), 0 12px 0 rgba(8,12,40,.45), 0 0 0 6px rgba(255,255,255,.12); }

/* the photos are taped to an aqua wall, punched up and framed hard */
.wall { background-color: #18b7d8; background-image: linear-gradient(rgba(255,255,255,.3) 3px, transparent 3px), linear-gradient(90deg, rgba(255,255,255,.3) 3px, transparent 3px), linear-gradient(135deg, rgba(255,255,255,.2) 0 18%, transparent 18%), linear-gradient(#2fd0ee, #0f9fc0); background-size: 96px 96px, 96px 96px, 96px 96px, 100% 100%; border-bottom: 6px solid var(--ink); }
.wall h2 { color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; }
.pola { border: 3px solid var(--ink); padding: 10px 10px 16px; box-shadow: 0 18px 0 -8px rgba(8,12,40,.35), 0 22px 30px -10px rgba(8,12,40,.6); transform-origin: 50% -6px; }
.pola img { border: 3px solid var(--ink); filter: contrast(1.22) saturate(1.35) brightness(.97); }
.pola figcaption { color: var(--ink); font-size: 15px; }
.pola figcaption b { font-size: 21px; color: var(--blue-d); }
.pola::before { background: #ffd400; border: 2px solid var(--ink); height: 28px; width: 92px; }
.board { border-width: 5px; box-shadow: 0 10px 0 rgba(8,12,40,.45); }

/* the floor: dark checker tile, so the yellow sign is the brightest thing on it */
.floor { background-color: #0e1330; background-image: repeating-linear-gradient(135deg, #ffd400 0 22px, #141a3a 22px 44px), conic-gradient(#1a2150 25%, #0e1330 0 50%, #1a2150 0 75%, #0e1330 0); background-size: 100% 22px, 120px 120px; background-repeat: no-repeat, repeat; background-position: top, 0 22px; border-top: 6px solid var(--ink); color: #fff; }
.floor h2 { color: var(--gold); }
.floor p { color: #e6ebff; }
.floor .btn.primary { background: var(--blue); border-color: #fff; box-shadow: 0 6px 0 #000; }
.floor .btn.soon { background: rgba(255,255,255,.08); color: #c9d1f0; border-color: rgba(255,255,255,.45); } .floor .btn.soon small { color: #ff9cc3; }
footer { background: #0e1330; color: #9aa5cf; } footer .wrap { border-top-color: rgba(255,255,255,.18); } footer a { color: #fff; }
.page ~ footer { background: transparent; color: var(--muted); } .page ~ footer a { color: var(--ink); } .page ~ footer .wrap { border-top-color: rgba(20,26,58,.2); }

/* the sign: a proper folding A-frame, with a handle, a warning triangle with a drop in it, feet, and its shadow on the floor */
.wetwrap { position: relative; width: clamp(150px, 20vw, 230px); padding-bottom: 26px; }
.wetwrap::after { content: ""; position: absolute; left: 4%; right: -8%; bottom: 8px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); z-index: 0; }
.wet { position: relative; z-index: 1; width: 100%; aspect-ratio: 10 / 15; clip-path: none; filter: none; padding: 16% 12% 12%; display: grid; align-content: start; justify-items: center; gap: 4%; text-align: center; color: var(--ink);
  background: linear-gradient(100deg, #fff06a 0%, #ffd400 38%, #f0a800 100%); border: 5px solid var(--ink); border-radius: 14px 14px 6px 6px; transform: perspective(700px) rotateX(9deg); transform-origin: 50% 100%; box-shadow: inset -10px 0 0 rgba(180,110,0,.35), inset 8px 0 0 rgba(255,255,255,.35), 0 0 40px rgba(255,212,0,.35); transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.wet::before { content: ""; position: absolute; left: 50%; top: -18px; width: 46%; height: 22px; transform: translateX(-50%); border: 5px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; background: #f0a800; }
.wet::after { content: ""; position: absolute; left: -5px; right: -5px; bottom: -16px; height: 14px; background: linear-gradient(90deg, var(--ink) 0 16%, transparent 16% 84%, var(--ink) 84%); border-radius: 0 0 4px 4px; }
.wet b { font: 400 clamp(17px, 2.5vw, 28px)/1 var(--shout); background: var(--ink); color: #ffd400; padding: 6px 10px 4px; border-radius: 6px; letter-spacing: .04em; }
.wet .tri { position: relative; width: 58%; aspect-ratio: 1.12; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); display: block; }
.wet .tri::before { content: ""; position: absolute; inset: 13% 12% 7%; background: #ffd400; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.wet .tri u { position: absolute; left: 50%; top: 52%; width: 22%; aspect-ratio: 1; transform: translate(-50%, 0) rotate(45deg); background: var(--ink); border-radius: 0 50% 50% 50%; }
.wet span { font: 700 clamp(15px, 2.1vw, 24px)/1 var(--ui); letter-spacing: .02em; margin: 0; }
.wet em { font: 400 clamp(13px, 1.6vw, 19px)/1 var(--scrawl); color: #a31d2a; transform: rotate(-5deg); font-style: normal; }
.wet.down { transform: perspective(700px) rotateX(78deg) rotateZ(-8deg); transition: transform .45s cubic-bezier(.5,0,.9,.6); }

/* ---- hit reactions (site.js react): restart by toggling .fx ---- */
.pola.fx { animation: swing 1.1s cubic-bezier(.3,.6,.4,1); } @keyframes swing { 0% { transform: rotate(var(--r)); } 20% { transform: rotate(calc(var(--r) + 9deg)); } 45% { transform: rotate(calc(var(--r) - 6deg)); } 70% { transform: rotate(calc(var(--r) + 3deg)); } 100% { transform: rotate(var(--r)); } }
.sign.fx { animation: spin 0.9s cubic-bezier(.2,.8,.3,1); transform-origin: 50% 12px; } @keyframes spin { from { transform: rotate(4deg); } 60% { transform: rotate(372deg); } 80% { transform: rotate(356deg); } to { transform: rotate(364deg); } }
.urinal.ooo.fx .bag { animation: shudder .6s linear; } @keyframes shudder { 0%, 100% { transform: rotate(-4deg); } 15% { transform: rotate(-9deg) translateX(-4px); } 35% { transform: rotate(2deg) translateX(5px); } 55% { transform: rotate(-7deg) translateX(-3px); } 75% { transform: rotate(0deg) translateX(3px); } }
.board.fx b { animation: glow .65s ease-out; } @keyframes glow { 30% { text-shadow: 0 0 34px rgba(255,220,80,1), 0 0 8px #fff; transform: scale(1.06); } }
.laminate { overflow: hidden; } .laminate.fx::before { background: #9aa6b8; }
.laminate.fx { animation: wipe .65s ease-out; } @keyframes wipe { 30% { box-shadow: inset 0 0 0 8px rgba(255,255,255,.7), inset 0 0 90px rgba(120,190,255,.6), 0 16px 30px -16px rgba(20,26,58,.5); } }
.wet.fx:not(.down) { animation: wobble .6s ease-out; } @keyframes wobble { 25% { transform: perspective(700px) rotateX(9deg) rotateZ(5deg); } 60% { transform: perspective(700px) rotateX(9deg) rotateZ(-4deg); } }

/* more bite everywhere else */
.sign { border-width: 5px; box-shadow: 0 8px 0 rgba(8,12,40,.3); }
.scrawl { opacity: 1; }
.lede { color: var(--ink); }
.btn.soon { color: var(--ink-2); border-color: var(--ink-2); background: #fff; }
.laminate { border-width: 5px; box-shadow: inset 0 0 0 8px rgba(255,255,255,.7), inset 0 0 40px rgba(120,170,255,.18), 0 12px 0 -4px rgba(8,12,40,.25), 0 24px 30px -14px rgba(20,26,58,.55); }
.laminate ol { color: var(--ink); }
@media (max-width: 860px) { .wetwrap { width: 150px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .fx, .fx * { animation: none !important; } .wet { transform: none; } }

/* the fly can be clicked: a bigger target than the fly itself, and the flush lever nudges you after the mess */
#fly { cursor: pointer; } #fly::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; }
#flush.nudge { animation: nudge .5s ease-in-out 6; } @keyframes nudge { 50% { transform: translateX(-8px) scale(1.12); box-shadow: 0 5px 0 var(--ink), 0 0 0 6px rgba(255,207,51,.7); } }

/* the story's archive footage: four frames of a silent film, black and white, with sprocket holes, grain and a flicker */
.reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 48px); background: #050505; border: 4px solid #000; border-radius: 8px; padding: 26px 10px 28px; margin-bottom: 44px; position: relative; transform: rotate(-1deg); box-shadow: 0 18px 30px -12px rgba(0,0,0,.7);
  background-image: repeating-linear-gradient(90deg, #f2f2f2 0 14px, transparent 14px 34px); background-size: 100% 12px; background-repeat: no-repeat; background-position: 10px 7px; }
.reel::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 12px; background: repeating-linear-gradient(90deg, #f2f2f2 0 14px, transparent 14px 34px); }
.cell { margin: 0; padding: 0 5px; }
.cell svg { display: block; width: 100%; height: auto; border: 2px solid #2a2a2a; filter: grayscale(1) contrast(1.15); animation: flicker 2.6s steps(1) infinite; }
.cell:nth-child(2) svg { animation-delay: -.7s; } .cell:nth-child(3) svg { animation-delay: -1.4s; } .cell:nth-child(4) svg { animation-delay: -2s; }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .86; } 10% { opacity: 1; } 47% { opacity: .92; } 49% { opacity: 1; } 80% { opacity: .88; } 82% { opacity: 1; } }
.rl-ha { font: 400 25px "Permanent Marker", cursive; fill: #111; } .rl-ha2 { font: 400 20px "Permanent Marker", cursive; fill: #111; }
.rl-th { font: 400 13px "Permanent Marker", cursive; fill: #111; }
.rl-k { font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .3em; fill: #bdbdbd; }
.rl-t { font: italic 700 24px "Bitter", Georgia, serif; fill: #f2f2f2; }
.rl-s { font: italic 400 12px "Bitter", Georgia, serif; fill: #a8a8a8; }
.reel-cap { position: absolute; top: 100%; right: 4px; left: 4px; margin: 12px 0 0; font: 400 15px/1.3 "Permanent Marker", cursive; color: #cfcfcf; text-align: right; }
.note { max-width: none; padding-right: 0; } .note > p, .note > h2 { max-width: 40em; }
@media (max-width: 860px) { .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; transform: none; } .reel::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .cell svg { animation: none; } }

/* ---- final touches ---- */
html, body { overflow-x: clip; }
h1 { overflow-wrap: anywhere; }
.page { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.page h1, .page h2 { color: var(--ink); -webkit-text-stroke: 0; }
.page h2 { font: 400 28px/1.1 var(--shout); }
.urinal.lost { float: right; width: 150px; margin: -70px 0 10px 20px; } .urinal.lost .bag { font-size: 17px; }
.top .brand span { white-space: nowrap; }
@media (max-width: 860px) { #hint { font-size: 10.5px; padding: 8px 12px; } .urinal.lost { float: none; margin: 44px auto 18px; } }
@media (max-width: 420px) { .brand { font-size: 19px; } .btn { min-height: 52px; padding: 0 20px; font-size: 16px; } }
@media print { #pee, #hud, #feed, #shout, #flush, #hint, #fly { display: none !important; } }

/* the fly's routine (site.js stage): s1 umbrella up, s2 umbrella inside out, s3 taking on water */
#fly { transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .4s, background-color .4s; }
#fly.s1, #fly.s2, #fly.s3 { transition: transform .12s linear, opacity .4s, background-color .4s; }
#fly .brolly { position: absolute; left: 50%; bottom: 100%; width: 54px; height: 27px; margin: 0 0 8px -27px; border-radius: 54px 54px 0 0; background: repeating-conic-gradient(from -90deg at 50% 100%, #ff5c9a 0 30deg, #fff 30deg 60deg); border: 3px solid #141a3a; transform: scale(0); transform-origin: 50% 140%; transition: transform .25s cubic-bezier(.3,1.7,.5,1); }
#fly .brolly::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 16px; margin-left: -1.5px; background: #141a3a; }
#fly.s1 .brolly { transform: scale(1); }
#fly.s2 .brolly, #fly.s3 .brolly { transform: scale(1) translateY(-14px) scaleY(-1) rotate(8deg); background: repeating-conic-gradient(from -90deg at 50% 100%, #c2306c 0 30deg, #ddd 30deg 60deg); }
#fly.s3 .brolly { opacity: 0; transition: opacity .3s; }
#fly .say { position: absolute; left: 50%; bottom: 100%; margin-bottom: 46px; transform: translateX(-50%) scale(calc(1 / var(--puff, 1))); transform-origin: 50% 100%; white-space: nowrap; font: 400 15px/1 "Permanent Marker", cursive; font-style: normal; color: #141a3a; background: #fff; border: 3px solid #141a3a; border-radius: 12px; padding: 6px 9px 5px; opacity: 0; transition: opacity .15s; pointer-events: none; }
#fly .say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #141a3a; }
#fly.s1 .say, #fly.s2 .say, #fly.s3 .say { opacity: 1; }
#fly.s3 { background: radial-gradient(circle at 30% 30%, #fff3a8, #ffcf33 55%, #e89a12); box-shadow: 0 0 0 2px #141a3a; }
#fly.s3 .say { margin-bottom: 20px; }
