/* FACESHOPPING · faceshopping.co.uk
   Catherine's art as the wallpaper, the poster's MS Paint spray lettering on top (tiny PNGs blown up without
   smoothing), and the poster's Y2K pop-ups rebuilt as real windows with real buttons. */

:root {
  --pink: #FF2D8E; --gum: #FF7AC6; --body: #FFD6EC; --face: #FFE6F3; --dark: #5A2A66; --dim: #B08AA6;
  --blue: #4193B5; --sky: #75BAD2; --blue-body: #DDF1FA; --blue-face: #EEF9FD; --blue-dark: #174958; --blue-dim: #8AAFC0;
  --black: #0E0A14; --white: #FFFFFF; --acid: #B8F23A;
  --ui: Verdana, Tahoma, Geneva, "DejaVu Sans", sans-serif;
  --raised: inset 1px 1px 0 var(--white), inset -2px -2px 0 var(--dk, var(--dark));
  --sunken: inset 2px 2px 0 var(--dk, var(--dark)), inset -1px -1px 0 var(--white);
}
* { box-sizing: border-box; }
html {
  background: #C45A98; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px;
  cursor: url(img/cursors/arrow-1x.png) 0 0, auto;
  cursor: -webkit-image-set(url(img/cursors/arrow-1x.png) 1x, url(img/cursors/arrow-2x.png) 2x) 0 0, auto;
  cursor: image-set(url(img/cursors/arrow-1x.png) 1x, url(img/cursors/arrow-2x.png) 2x) 0 0, auto;
}
a, button, .pop .bar { cursor: url(img/cursors/hand-1x.png) 9 1, pointer;
  cursor: -webkit-image-set(url(img/cursors/hand-1x.png) 1x, url(img/cursors/hand-2x.png) 2x) 9 1, pointer;
  cursor: image-set(url(img/cursors/hand-1x.png) 1x, url(img/cursors/hand-2x.png) 2x) 9 1, pointer; }
html.busy, html.busy * { cursor: url(img/cursors/busy-1x.png) 0 0, wait !important;
  cursor: -webkit-image-set(url(img/cursors/busy-1x.png) 1x, url(img/cursors/busy-2x.png) 2x) 0 0, wait !important; }
body { margin: 0; background: transparent; color: var(--black); font: 15px/1.5 var(--ui); padding-bottom: calc(50px + env(safe-area-inset-bottom)); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated; }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* the wallpaper: Catherine's art, panning slowly across as you scroll (site.js sizes and moves it) */
.art { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; z-index: -1; background: #C45A98; }
/* the art only exists at 420 × 594 pixels, so it's blown up without smoothing: chunky pixels on purpose, not blur */
.art img { position: absolute; left: 0; top: 0; max-width: none; width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; will-change: transform; image-rendering: pixelated; }
.art::after { content: ""; position: absolute; inset: 0; background: url(img/grain.png); opacity: .22; mix-blend-mode: overlay; pointer-events: none; }

main { position: relative; width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 24px; }

/* hero: the poster's lettering */
.hero { position: relative; padding: 6px 0 4px; }
.hero h1, .hero h2, .hero p { margin: 0; font-size: 0; line-height: 0; }
.title { margin: 0 -9px !important; }
.title img { width: 100%; }
.sub { width: 100%; margin: 0 0 4% !important; }
.lineup { display: flex; flex-direction: column; align-items: center; }
.lineup .dirt { width: 94%; transform: rotate(-4deg); margin-left: -3%; }
.lineup .ex { width: 12%; margin: -2.5% 0 -1.5%; }
.lineup .space { width: 82%; transform: rotate(1.5deg); animation: jolt 5s steps(1) infinite; }
@keyframes jolt { 0%, 90%, 100% { transform: rotate(1.5deg); filter: none; } 91% { transform: rotate(1.5deg) translateX(5px) skewX(-10deg); }
  93% { transform: rotate(1.5deg) translateX(-4px); filter: hue-rotate(60deg); } 95% { transform: rotate(1.5deg) translateX(2px) skewX(6deg); } }
/* the bars carry an 11-pixel sprayed margin on every side, so they're sized by their 262-pixel bar and allowed to overhang */
.bars { width: min(100%, 440px); margin: 7% auto 0; }
.bars img { width: calc(100% * 284 / 262); max-width: none; margin: calc(-100% * 11 / 262) 0 calc(-100% * 11 / 262 + 9px) calc(-100% * 11 / 262); }
.bars img:nth-child(1) { transform: rotate(-1.2deg); }
.bars img:nth-child(2) { transform: rotate(.7deg); }
.bars img:nth-child(3) { transform: rotate(-.5deg); }
.bars img:nth-child(4) { transform: rotate(1deg); }
/* the big money buttons (Lou, 16 Oct: "I don't want people to have to scroll to see them") */
.cta { position: relative; display: flex; gap: 16px; margin: 20px 3px 18px; }
.bigbtn { position: relative; isolation: isolate; flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 62px; padding: 10px 8px 12px; text-decoration: none; transform: rotate(-1.5deg); }
.bigbtn.don { transform: rotate(1.2deg); }
.bigbtn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acid);
  box-shadow: 0 0 0 3px var(--black), inset 3px 3px 0 rgba(255, 255, 255, .75), inset -4px -4px 0 rgba(14, 10, 20, .3); }
.bigbtn.don::before { background: var(--pink); }
.bigbtn::after { content: ""; position: absolute; inset: -3px; z-index: -2; transform: translate(8px, 8px); opacity: .8;
  background: repeating-conic-gradient(var(--black) 0 25%, transparent 0 50%) 0 0 / 4px 4px; }
.bigbtn .lbl { height: 31px; width: auto; }
.bigbtn .ico { height: 27px; width: auto; }
.bigbtn:hover::before { filter: brightness(1.07) saturate(1.1); }
.bigbtn:active { transform: translate(2px, 3px); }
.bigbtn:active::before { box-shadow: 0 0 0 3px var(--black), inset 4px 4px 0 rgba(14, 10, 20, .3), inset -2px -2px 0 rgba(255, 255, 255, .6); }
.bigbtn:active::after { transform: translate(5px, 5px); }
.bigbtn:focus-visible { outline: 3px dotted var(--white); outline-offset: 6px; }
.tap { position: absolute; width: 30px; left: calc(50% - 46px); bottom: -24px; pointer-events: none; animation: tap 1.1s steps(2) infinite; }
@keyframes tap { 50% { transform: translate(-3px, -6px); } }
.btn.go-tix { background: var(--acid); font-weight: 700; }
.btn.go-don { background: var(--pink); color: var(--white); font-weight: 700; text-shadow: 1px 1px 0 var(--black); }

.spark { position: absolute; width: 11%; pointer-events: none; animation: twinkle 2.4s steps(2) infinite; }
.s1 { right: -4%; top: -2%; }
.s2 { left: -5%; top: 34%; width: 8%; animation-delay: -.8s; }
.s3 { right: -2%; top: 50%; width: 7%; animation-delay: -1.6s; }
@keyframes twinkle { 0% { transform: scale(1) rotate(0); } 50% { transform: scale(.6) rotate(45deg); } }

/* windows */
.win {
  --a: var(--pink); --b: var(--gum); --bg: var(--body); --fc: var(--face); --dk: var(--dark); --dm: var(--dim);
  position: relative; isolation: isolate; margin: 34px 0; padding: 3px 4px 5px 3px;
}
/* the face and bevel sit on ::before and the dithered Windows shadow on ::after, both behind the content, so the
   window works the same whether or not it's its own stacking context (pop-ups and the toast are) */
.win::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); box-shadow: var(--raised); pointer-events: none; }
.win::after { content: ""; position: absolute; inset: 0; z-index: -2; transform: translate(8px, 8px); opacity: .75;
  background: repeating-conic-gradient(var(--black) 0 25%, transparent 0 50%) 0 0 / 4px 4px; pointer-events: none; }
.win.blue { --a: var(--blue); --b: var(--sky); --bg: var(--blue-body); --fc: var(--blue-face); --dk: var(--blue-dark); --dm: var(--blue-dim); }
.bar { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 3px 3px 3px 6px; background: linear-gradient(90deg, var(--a), var(--b)); color: var(--white); user-select: none; -webkit-user-select: none; }
.bar h2, .bar .t { flex: 1; min-width: 0; margin: 0; font: 700 15px/1.2 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pent { width: 19px; height: 19px; flex: none; }
.ctls { display: flex; gap: 3px; }
.ctl { width: 25px; height: 23px; display: grid; place-items: center; padding: 0 0 2px; border: 0; background: var(--fc); color: var(--black); font: 700 14px/1 var(--ui); box-shadow: var(--raised); }
.ctl:active { box-shadow: var(--sunken); }
.content { display: flex; gap: 14px; align-items: flex-start; padding: 16px 12px 6px 10px; }
.big { width: 46px; flex: none; margin-top: 2px; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 12px 10px 12px; }
.btn { display: inline-block; min-width: 112px; padding: 9px 16px 10px; border: 0; background: var(--fc); color: var(--black); text-align: center; text-decoration: none; font: 15px/1.2 var(--ui); box-shadow: var(--raised); }
.btn.default { outline: 2px solid var(--black); outline-offset: 0; }
.btn:active { box-shadow: var(--sunken); transform: translate(1px, 1px); }
.btn:focus-visible, .ctl:focus-visible { outline: 1px dotted var(--black); outline-offset: -5px; }
.btn.default:focus-visible { outline: 2px solid var(--black); box-shadow: var(--raised), inset 0 0 0 5px var(--fc), inset 0 0 0 6px var(--black); }
.btn[disabled] { color: var(--dm); text-shadow: 1px 1px 0 var(--white); }
.win.min > :not(.bar) { display: none; }
.note { font-size: 13px; color: var(--dk); margin-top: 6px; }
.prog { height: 24px; margin-top: 10px; padding: 3px; background: var(--white); box-shadow: var(--sunken); overflow: hidden; }
.prog i { display: block; width: 36%; height: 100%; background: repeating-linear-gradient(90deg, var(--a) 0 10px, transparent 10px 13px); animation: marquee 2.6s steps(26) infinite; }
.prog.fixed i { width: 0; animation: none; transition: width 1.6s steps(12); }
@keyframes marquee { from { transform: translateX(-100%); } to { transform: translateX(280%); } }

/* Notepad */
.menu { display: flex; gap: 16px; padding: 4px 8px 5px; font-size: 14px; }
.menu span::first-letter { text-decoration: underline; }
.paper { margin: 0 1px 1px; padding: 14px 14px 16px; background: var(--white); box-shadow: var(--sunken); font-size: 15px; line-height: 1.6; font-weight: 700; }
.loud { font-weight: 700; line-height: 1.6; }
.content.solo { padding-bottom: 16px; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--black); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* the players: in the page on a phone, pinned down the right-hand side on a wide screen */
.media { display: flex; flex-direction: column; gap: 24px; margin: 34px 0; }
.media .win { margin: 0; }
.win.mini .bar { min-height: 27px; }
.win.mini .bar h2 { font-size: 13px; }
.win.mini .ctl { width: 22px; height: 20px; font-size: 12px; }
.screen { margin: 3px 1px 1px; padding: 2px; background: var(--black); box-shadow: var(--sunken); }
.screen iframe { display: block; width: 100%; border: 0; }
.sc iframe { height: 300px; }
.bc iframe { height: 120px; }
.sp iframe { height: 152px; }

/* desktop icons, straight on the wallpaper */
.desktop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 6px; margin: 40px -6px 20px; }
.dicon { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 2px; border: 0; background: none; color: var(--white); font: 12px/1.25 var(--ui); text-align: center; }
.dicon img { height: 40px; width: auto; filter: drop-shadow(2px 2px 0 rgba(14, 10, 20, .55)); }
.dicon span { padding: 1px 3px; overflow-wrap: break-word; text-shadow: 1px 1px 0 var(--black), -1px 1px 0 var(--black), 1px -1px 0 var(--black), -1px -1px 0 var(--black), 0 2px 6px rgba(14, 10, 20, .6); }
.dicon:hover span, .dicon:focus-visible span { background: var(--pink); text-shadow: none; outline: 1px dotted var(--white); }
.dicon:focus { outline: none; }
.dicon:active img { filter: drop-shadow(2px 2px 0 rgba(14, 10, 20, .55)) brightness(.8) sepia(1) hue-rotate(270deg) saturate(3); }

footer { padding: 18px 0 8px; text-align: center; color: var(--white); font-size: 13px; text-shadow: 1px 1px 0 var(--black), -1px 1px 0 var(--black), 1px -1px 0 var(--black), -1px -1px 0 var(--black); }
footer .qcc { width: min(78%, 330px); margin: 0 auto 10px; transform: rotate(-1.5deg); }

/* pop-ups */
#pops { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.pop { position: absolute; width: min(400px, calc(100vw - 24px)); margin: 0; pointer-events: auto; animation: popin .2s steps(3) both; }
.pop .bar { touch-action: none; }
.pop .content { padding-top: 18px; }
@keyframes popin { from { transform: scale(.55); opacity: .3; } to { transform: none; opacity: 1; } }
.procs { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.procs td { padding: 3px 4px; }
.procs td:first-child { font-family: "Lucida Console", Monaco, "Courier New", monospace; white-space: nowrap; }
.procs td:last-child { width: 55%; }
.procs .prog { height: 16px; margin: 0; padding: 2px; }
.procs .prog i { animation: none; }
.burst { position: fixed; width: 26px; pointer-events: none; z-index: 70; animation: float .9s steps(6) forwards; }
@keyframes float { to { transform: translate(var(--dx), -90px); opacity: 0; } }
.shake { animation: shake .5s steps(5); }
@keyframes shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 4px); } }

/* toast */
.toast { position: fixed; right: 10px; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 45; width: min(330px, calc(100vw - 20px)); margin: 0; animation: slidein .35s steps(5) both; }
.toast .content { padding: 12px 10px 12px; gap: 12px; }
.toast .big { width: 38px; }
.toast button.open { all: unset; display: block; flex: 1; font-size: 14px; line-height: 1.4; }
.toast b { display: block; }
@keyframes slidein { from { transform: translateX(110%); } to { transform: none; } }

/* taskbar and Start menu */
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 5px;
  padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); background: var(--body); box-shadow: inset 0 1px 0 var(--white), inset 0 2px 0 var(--face), 0 -1px 0 var(--dim); --dk: var(--dark); }
.start, .task { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border: 0; background: var(--face); color: var(--black); font: 700 15px/1 var(--ui); text-decoration: none; box-shadow: var(--raised); }
.start { flex: none; }
.start img { height: 21px; width: auto; }
.start[aria-expanded="true"] { box-shadow: var(--sunken); }
/* the taskbar's money buttons: on screen all the time, on every device */
.task { flex: 0 1 150px; min-width: 0; justify-content: center; white-space: nowrap; background: var(--acid); }
.task.don { background: var(--pink); color: var(--white); text-shadow: 1px 1px 0 var(--black); }
.task img { height: 18px; width: auto; flex: none; }
.task span { overflow: hidden; text-overflow: ellipsis; }
.task:active { box-shadow: var(--sunken); }
.spacer { flex: 1; }
.tray { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; font-size: 13px; white-space: nowrap; box-shadow: inset 1px 1px 0 var(--dim), inset -1px -1px 0 var(--white); }
.tray img { height: 18px; width: auto; }
.startmenu { position: fixed; left: 5px; bottom: calc(46px + env(safe-area-inset-bottom)); z-index: 60; display: flex; min-width: 262px; padding: 3px;
  background: var(--body); --dk: var(--dark); box-shadow: var(--raised), 6px 6px 0 rgba(14, 10, 20, .35); }
.startmenu[hidden] { display: none; }
.side { display: flex; align-items: flex-end; justify-content: center; width: 32px; padding: 10px 0; background: linear-gradient(0deg, var(--pink), var(--dark)); color: var(--white); }
.side span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 19px/1 var(--ui); letter-spacing: .02em; }
.side b { font-weight: 400; color: var(--face); }
.startmenu ul { flex: 1; margin: 0; padding: 2px; list-style: none; }
.startmenu a, .startmenu li > button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 14px 9px 8px; border: 0; background: none; color: var(--black); text-align: left; text-decoration: none; font: 15px/1.2 var(--ui); }
.startmenu a:hover, .startmenu a:focus-visible, .startmenu li > button:hover, .startmenu li > button:focus-visible { background: var(--pink); color: var(--white); outline: none; }
.startmenu img { width: 28px; height: auto; }
.sep { height: 2px; margin: 4px 3px; box-shadow: inset 0 1px 0 var(--dim), inset 0 -1px 0 var(--white); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* a desktop-sized window: the icons line up down the left edge like a real desktop */
@media (min-width: 1100px) {
  .desktop { position: fixed; left: 14px; top: 14px; z-index: 5; width: 210px; margin: 0; grid-template-columns: repeat(2, 1fr); gap: 16px 4px; }
  .media { position: fixed; right: 14px; top: 14px; z-index: 5; width: 320px; max-height: calc(100vh - 66px); margin: 0; gap: 16px; overflow-y: auto; padding: 0 8px 8px 0; }
  .sc iframe { height: clamp(166px, calc(100vh - 560px), 330px); }
  /* the column sits between the icons (238px) and the players (362px), narrowing when the window is tight */
  main { padding-top: 22px; width: min(560px, calc(100% - 600px)); margin-left: calc(238px + (100% - 600px - min(560px, calc(100% - 600px))) / 2); margin-right: 0; }
}
@media (max-width: 420px) {
  .cta { gap: 12px; }
  .bigbtn { min-height: 56px; }
  .bigbtn .ico { display: none; }
  .bigbtn .lbl { height: 25px; }
  .task { font-size: 14px; padding: 0 10px; }
  .task img, .tray img { display: none; }
  .tray { padding: 0 8px; }
  /* thumb-sized on phones */
  .start, .task, .tray { height: 42px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .startmenu { bottom: calc(52px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .btn { min-width: 96px; }
  .task .pent { display: none; }
}
/* on laptops and desktops the hero shrinks with the window's height, so the big buttons always land above the fold
   (measured with the three-line NHS block: the buttons' bottom sits about 1.34 × the hero's width + 232px below its top) */
@media (min-width: 700px) {
  .hero { width: min(100%, calc((100vh - 338px) / 1.3375)); margin-inline: auto; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .desktop { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
