/* Kawaii 8-bit Christmas photo booth
   --u is the size of one art pixel on screen. Every pixel sprite is drawn at a
   whole multiple of it, so the pixel art stays crisp at any screen size. */
:root {
  --u: 2;
  --v: 2; /* viewfinder scale, set from JS */
  --paper: #FDFBF7;
  --grid: #F1E6D8;
  --ink: #3D2C18;
  --text2: #8A7360;
  --butter: #FFF4CC;
  --blush: #F8BFAE;
  --beige: #F0C7B0;
  --sky: #BFE3FF;
  --mint: #BDF2D5;
  --salmon: #E2675B;
  --salmon-d: #C9544A;
  --salmon-l: #EE8478;
  --latte: #C99A6E;
  --px: calc(var(--u) * 1px);
}
@media (min-width: 700px) and (min-height: 640px) { :root { --u: 3; } }
@media (min-width: 1500px) and (min-height: 1000px) { :root { --u: 4; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "VT323", ui-monospace, Menlo, monospace;
  color: var(--ink);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
p, h1, ol { margin: 0; padding: 0; }
ol { list-style: none; }
img { display: block; }
.px { image-rendering: pixelated; width: calc(var(--w) * var(--px)); height: auto; }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; z-index: 0; }
.cam { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- screens ---------- */
.screen {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 16px 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.screen[hidden] { display: none; }
.fine { font-size: 17px; line-height: 1.1; color: var(--text2); text-align: center; }
.fine a { color: var(--salmon-d); text-decoration: none; border-bottom: 1px dashed currentColor; }
.fine a:focus-visible { outline: 2px dashed var(--salmon); outline-offset: 2px; }
.title .fine { line-height: 1.35; }

/* ---------- keycaps ---------- */
.key {
  --k: var(--butter);
  appearance: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: inherit; font-size: 26px; line-height: 1; letter-spacing: .04em; color: var(--ink);
  background: var(--k);
  border: calc(var(--px) * 1.5) solid var(--ink);
  border-radius: calc(var(--px) * 3);
  padding: .5em .9em .55em;
  box-shadow:
    0 calc(var(--px) * 3) 0 var(--ink),
    inset 0 calc(var(--px) * -2) 0 rgba(61, 44, 24, .16),
    inset 0 calc(var(--px) * 1.5) 0 rgba(255, 255, 255, .65);
  transition: transform .04s steps(1), box-shadow .04s steps(1);
}
.key:active:not(:disabled), .key.down {
  transform: translateY(calc(var(--px) * 3));
  box-shadow: 0 0 0 var(--ink), inset 0 calc(var(--px) * -1) 0 rgba(61, 44, 24, .16);
}
.key:disabled { opacity: .45; cursor: default; }
.key:focus-visible { outline: calc(var(--px) * 1.5) dashed var(--salmon); outline-offset: calc(var(--px) * 2); }
.key-go { --k: var(--salmon); color: #fff; font-size: 30px; }
.key-alt { --k: var(--paper); font-size: 20px; }
.key { position: relative; }
.key input[type="file"] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.key-mute {
  --k: var(--sky);
  position: fixed; z-index: 60; top: max(10px, env(safe-area-inset-top)); right: 10px;
  font-size: 16px; padding: .35em .6em .4em;
}
.key-mute[aria-pressed="true"] { --k: var(--paper); color: var(--text2); }
.key-mute.invite { --k: var(--butter); animation: bob 1.2s steps(1) infinite; }
.credit { position: fixed; z-index: 2; left: 10px; top: max(12px, env(safe-area-inset-top)); font-size: 15px; color: var(--text2); }
#app:not([data-screen="title"]) ~ .credit { display: none; }

/* ---------- 1. title ---------- */
.title { gap: calc(var(--px) * 3); padding-top: max(40px, env(safe-area-inset-top)); }
.kicker { font-size: calc(var(--px) * 13); letter-spacing: .22em; margin-right: -.22em; color: var(--salmon); line-height: 1; }
.caps { display: flex; flex-direction: column; gap: calc(var(--px) * 5); font-weight: 400; }
.caprow { display: flex; gap: calc(var(--px) * 3); justify-content: center; }
.caprow b {
  width: calc(var(--px) * 24); height: calc(var(--px) * 24);
  display: grid; place-items: center;
  font-weight: 400; font-size: calc(var(--px) * 22); line-height: 1;
  background: var(--butter);
  border: calc(var(--px) * 1.5) solid var(--ink);
  border-radius: calc(var(--px) * 3);
  box-shadow: 0 calc(var(--px) * 3) 0 var(--ink), inset 0 calc(var(--px) * -2) 0 rgba(61, 44, 24, .16), inset 0 calc(var(--px) * 1.5) 0 rgba(255, 255, 255, .65);
  animation: tap 3.2s steps(1) infinite;
}
.caprow b:nth-child(2) { background: var(--blush); animation-delay: .2s; }
.caprow b:nth-child(3) { background: var(--sky); animation-delay: .4s; }
.caprow b:nth-child(4) { background: var(--mint); animation-delay: .6s; }
.caprow b:nth-child(5) { background: var(--beige); animation-delay: .8s; }
.caprow:nth-child(2) b { animation-delay: 1s; }
.caprow:nth-child(2) b:nth-child(1) { background: var(--mint); }
.caprow:nth-child(2) b:nth-child(2) { background: var(--butter); animation-delay: 1.2s; }
.caprow:nth-child(2) b:nth-child(3) { background: var(--blush); animation-delay: 1.4s; }
.caprow:nth-child(2) b:nth-child(4) { background: var(--sky); animation-delay: 1.6s; }
.caprow:nth-child(2) b:nth-child(5) { background: var(--butter); animation-delay: 1.8s; }
@keyframes tap {
  0%, 6%, 100% { transform: none; box-shadow: 0 calc(var(--px) * 3) 0 var(--ink), inset 0 calc(var(--px) * -2) 0 rgba(61, 44, 24, .16), inset 0 calc(var(--px) * 1.5) 0 rgba(255, 255, 255, .65); }
  3% { transform: translateY(calc(var(--px) * 3)); box-shadow: 0 0 0 var(--ink), inset 0 calc(var(--px) * -1) 0 rgba(61, 44, 24, .16); }
}

.cast { position: relative; flex: 1 1 0; min-height: 0; width: 100%; max-width: 760px; margin-top: calc(var(--px) * 4); container-type: size; }
.duo { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.booth-art { flex: none; margin-right: calc(var(--px) * -16); }
/* Santa is half as wide as tall, and stands next to the booth (65 art pixels of it show),
   so he is never taller than twice the width that is left. */
.santa {
  height: 100%; width: auto; flex: none; position: relative; filter: drop-shadow(0 calc(var(--px) * 2) 0 rgba(61, 44, 24, .12));
  max-height: min(62svh, calc((100vw - 32px - var(--px) * 65) * 2));
  max-height: min(62svh, 100cqh, calc((100cqw - var(--px) * 65) * 2));
}
.st { position: absolute; animation: bob 1.6s steps(1) infinite; }
.s1 { left: 6%; top: 4%; }
.s2 { left: 27%; top: 19%; animation-delay: .4s; }
.s3 { left: 3%; top: 44%; animation-delay: .8s; }
.s4 { right: 3%; bottom: 6%; animation-delay: .2s; display: none; }
.s5 { left: 14%; bottom: 2%; animation-delay: 1s; display: none; }
.s6 { right: 16%; top: 46%; animation-delay: .6s; display: none; }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(calc(var(--px) * -2)); } }
.floor { position: relative; z-index: 2; width: min(100%, 760px); height: calc(var(--px) * 3); margin-top: calc(var(--px) * -6); background: var(--ink); border-radius: var(--px); flex: none; }
.key-start { margin-top: calc(var(--px) * 6); width: min(340px, 84vw); font-size: 34px; flex: none; }
.blink { animation: blink 1s steps(1) infinite; font-size: .6em; }
@keyframes blink { 50% { opacity: 0; } }
.title .fine { margin: calc(var(--px) * 5) 0 max(12px, env(safe-area-inset-bottom)); flex: none; }

/* the season, on a little ribbon under the logo */
.edition { flex: none; line-height: 1; margin-top: calc(var(--px) * 2); }
.edition span {
  position: relative; display: inline-block;
  font-size: calc(var(--px) * 9); letter-spacing: .22em; color: #fff;
  background: var(--salmon); border: calc(var(--px) * 1) solid var(--ink);
  padding: calc(var(--px) * 1.5) calc(var(--px) * 6) calc(var(--px) * 2) calc(var(--px) * 7);
  box-shadow: 0 calc(var(--px) * 2) 0 rgba(61, 44, 24, .16);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--px) * 4) 50%, 100% 100%, 0 100%, calc(var(--px) * 4) 50%);
}

/* how to play: three tiny tiles */
.howto { flex: none; display: flex; gap: calc(var(--px) * 4); width: min(100%, 360px); margin-top: calc(var(--px) * 6); }
.howto li {
  flex: 1 1 0; min-width: 0; text-align: center;
  font-size: 17px; line-height: 1; color: var(--ink);
  background: #fff; border: calc(var(--px) * 1) solid var(--ink); border-radius: calc(var(--px) * 3);
  padding: calc(var(--px) * 3) 2px calc(var(--px) * 3.5);
  box-shadow: 0 calc(var(--px) * 2) 0 rgba(61, 44, 24, .14);
}
.howto .step { display: flex; align-items: center; justify-content: center; gap: calc(var(--px) * 3); height: calc(var(--px) * 24); margin-bottom: calc(var(--px) * 2); }
.howto b {
  flex: none; display: grid; place-items: center; font-weight: 400;
  width: calc(var(--px) * 11); height: calc(var(--px) * 11); font-size: calc(var(--px) * 9);
  color: #fff; background: var(--salmon); border: calc(var(--px) * 1) solid var(--ink); border-radius: calc(var(--px) * 2);
}
.howto img { animation: bob 1.6s steps(1) infinite; }
.howto li:nth-child(2) img { animation-delay: .5s; }
.howto li:nth-child(3) img { animation-delay: 1s; }

/* ---------- 2. booth ---------- */
.booth { gap: 10px; }
.bar { display: flex; align-items: center; gap: 14px; flex: none; min-height: 34px; align-self: flex-start; }
.marq {
  font-size: 22px; letter-spacing: .18em; line-height: 1; color: var(--ink);
  background: var(--butter); border: calc(var(--px) * 1) solid var(--ink); border-radius: calc(var(--px) * 2);
  padding: .25em .6em .3em .78em;
}
.dots { display: flex; gap: 6px; }
.dots li { width: 14px; height: 14px; background: var(--paper); border: 2px solid var(--ink); }
.dots li.on { background: var(--salmon); }

.finder {
  position: relative; flex: none; line-height: 0;
  border: calc(var(--px) * 2) solid var(--ink);
  box-shadow: 0 0 0 calc(var(--px) * 3) var(--latte), 0 0 0 calc(var(--px) * 5) var(--ink), 0 calc(var(--px) * 8) 0 calc(var(--px) * 2) rgba(61, 44, 24, .14);
  margin: calc(var(--px) * 5) 0 calc(var(--px) * 7);
  background: var(--butter);
}
#view { display: block; width: calc(144px * var(--v)); height: calc(144px * var(--v)); image-rendering: pixelated; }
.idle {
  position: absolute; left: 0; right: 0; top: 10%; text-align: center;
  font-size: calc(9px * var(--v)); line-height: 1; letter-spacing: .12em; color: var(--ink);
}
.idle[hidden] { display: none; }
.count {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: calc(84px * var(--v)); line-height: 1; color: #fff;
  text-shadow: calc(2px * var(--v)) 0 0 var(--ink), calc(-2px * var(--v)) 0 0 var(--ink), 0 calc(2px * var(--v)) 0 var(--ink), 0 calc(-2px * var(--v)) 0 var(--ink), calc(2px * var(--v)) calc(4px * var(--v)) 0 var(--ink);
  pointer-events: none;
}
.count.pop { animation: pop .3s steps(3); }
@keyframes pop { 0% { transform: scale(1.5); } 100% { transform: none; } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .36s steps(4) forwards; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }

.shots { display: flex; gap: 10px; flex: none; }
.shots li {
  width: 52px; height: 52px; background: var(--paper) center / cover no-repeat;
  border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(61, 44, 24, .18);
  image-rendering: pixelated;
}
.shots li:nth-child(odd) { transform: rotate(-3deg); }
.shots li:nth-child(even) { transform: rotate(2deg); }

.desk {
  flex: 1 1 0; min-height: 0; width: 100%; max-width: 620px;
  display: flex; align-items: flex-end; gap: 10px;
}
.host { flex: none; height: 100%; max-height: 440px; width: auto; max-width: 40%; object-fit: contain; object-position: left bottom; align-self: flex-end; }
.side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.side .key { width: 100%; }
.side .key-go { font-size: 24px; padding-left: .4em; padding-right: .4em; }
.bubble {
  position: relative; font-size: 21px; line-height: 1.05; color: var(--ink);
  background: #fff; border: calc(var(--px) * 1) solid var(--ink); border-radius: calc(var(--px) * 3);
  padding: .5em .65em .55em; min-height: 3.1em;
  box-shadow: 0 calc(var(--px) * 2) 0 rgba(61, 44, 24, .14);
}
.bubble::before {
  content: ""; position: absolute; left: calc(var(--px) * -4); bottom: calc(var(--px) * 5);
  width: calc(var(--px) * 4); height: calc(var(--px) * 4); background: var(--ink);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
.bubble.big { font-size: 40px; display: grid; place-items: center; text-align: center; }
.pair { display: flex; gap: 10px; }
.side .pair .key { width: auto; flex: 1 1 0; min-width: 0; padding-left: .3em; padding-right: .3em; }

/* ---------- 3. result ---------- */
.result { gap: 8px; }
.printer { flex: none; display: flex; flex-direction: column; align-items: center; }
.slot {
  position: relative; z-index: 2;
  width: calc(var(--card-w) + 16px); height: 30px;
  background: var(--latte); border: calc(var(--px) * 1.5) solid var(--ink); border-radius: calc(var(--px) * 2);
  box-shadow: inset 0 -8px 0 var(--ink);
  display: grid; place-items: start center;
  font-size: 15px; letter-spacing: .3em; color: var(--paper); line-height: 18px;
}
.result { --card-h: min(50svh, calc((100vw - 76px) * 16 / 9)); --card-w: calc(var(--card-h) * 9 / 16); }
.paper { width: var(--card-w); height: var(--card-h); overflow: hidden; margin-top: -6px; }
.paper > canvas, .paper > img {
  display: block; width: 100%; height: 100%; image-rendering: pixelated;
  box-shadow: 0 0 0 2px var(--ink) inset;
  transform: translateY(-101%);
  -webkit-touch-callout: default; user-select: auto;
}
.paper.print > canvas, .paper.print > img { animation: print var(--print, 2.2s) steps(20) forwards; }
.paper.done > canvas, .paper.done > img { transform: none; animation: none; }
.paper.pop { animation: cardpop .3s steps(3); }
@keyframes print { to { transform: none; } }
/* a slow shine across the card once it is wrapped */
.paper { position: relative; }
.paper.shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%) no-repeat;
  background-size: 300% 100%; background-position: 130% 0;
  animation: shine 1.1s steps(11) .15s 1 forwards;
}
@keyframes shine { to { background-position: -30% 0; } }
.result[data-stage="done"] .paper { cursor: pointer; }
@keyframes cardpop { 0% { transform: scale(1.035); filter: brightness(1.6); } 100% { transform: none; filter: none; } }

/* the gift tag you fill in before the strip prints */
.tagcard {
  flex: none; position: relative; width: min(100%, 340px); margin-top: 46px;
  display: flex; flex-direction: column; gap: 9px;
  background: #fff; border: calc(var(--px) * 1.5) solid var(--ink); border-radius: calc(var(--px) * 4);
  padding: 30px 18px 16px;
  box-shadow: 0 calc(var(--px) * 3) 0 rgba(61, 44, 24, .16);
}
.tagcard::before {
  content: ""; position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px;
  border: calc(var(--px) * 1) solid var(--ink); border-radius: 50%; background: var(--paper);
}
.tagtitle { font-size: 30px; line-height: 1; letter-spacing: .08em; text-align: center; color: var(--salmon-d); }
.field { display: flex; align-items: baseline; gap: 10px; font-size: 24px; letter-spacing: .08em; }
.field span { flex: none; width: 3.2em; color: var(--text2); }
.field input {
  flex: 1 1 0; min-width: 0; font: inherit; font-size: 28px; line-height: 1.1; color: var(--ink); text-transform: uppercase;
  background: transparent; border: 0; border-bottom: 2px dashed var(--ink); border-radius: 0; padding: 2px 2px 3px; outline: none;
}
.field input::placeholder { color: #D9C9B6; }
#note, #gift { text-transform: none; font-size: 24px; }
.tagfine { text-align: left; font-size: 15px; margin-top: -4px; }
.field input:focus { border-bottom-color: var(--salmon); background: var(--butter); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.result .host { max-height: 400px; }

/* ---------- curtain ---------- */
.curtain i {
  position: fixed; z-index: 50; top: 0; bottom: 0; width: 50.5%;
  background:
    repeating-linear-gradient(90deg, var(--salmon) 0 calc(var(--px) * 12), var(--salmon-d) calc(var(--px) * 12) calc(var(--px) * 15), var(--salmon-l) calc(var(--px) * 15) calc(var(--px) * 18));
  transition: transform .64s steps(10);
}
.curtain i::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--px) * 8);
  background: repeating-linear-gradient(90deg, #F6D98B 0 calc(var(--px) * 4), var(--ink) calc(var(--px) * 4) calc(var(--px) * 5));
  border-top: calc(var(--px) * 1.5) solid var(--ink);
}
.curtain .l { left: 0; transform: translateX(-101%); border-right: calc(var(--px) * 2) solid var(--ink); }
.curtain .r { right: 0; transform: translateX(101%); border-left: calc(var(--px) * 2) solid var(--ink); }
.curtain.closed .l, .curtain.closed .r { transform: none; }

.nojs { position: fixed; inset: auto 0 0 0; z-index: 99; background: var(--butter); padding: 12px; text-align: center; font-size: 20px; }

/* ---------- wide screens: host on the left, controls on the right ----------
   Also near-square screens from 700px wide, like an unfolded Duo's inner screen.
   Keep this query the same as WIDE in js/app.js. */
@media (min-width: 900px) and (min-height: 560px), (min-width: 700px) and (min-height: 460px) and (min-aspect-ratio: 1/1) {
  .s6 { display: block; right: auto; left: 24%; top: 36%; }
  /* title: words on the left, the booth and Santa tall on the right */
  .title {
    display: grid; align-items: center; justify-items: center; column-gap: 4vw; row-gap: calc(var(--px) * 5);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: 1fr auto auto auto auto auto auto 1fr auto;
    grid-template-areas: ". cast" "kicker cast" "caps cast" "edition cast" "start cast" "howto cast" "fine cast" ". cast" ". floor";
    padding: max(5svh, 54px) max(5vw, calc((100vw - 1320px) / 2)) 7svh;
  }
  .kicker { grid-area: kicker; }
  .caps { grid-area: caps; }
  .key-start { grid-area: start; margin-top: calc(var(--px) * 6); }
  .edition { grid-area: edition; }
  .howto { grid-area: howto; margin-top: calc(var(--px) * 2); }
  .title .fine { grid-area: fine; margin: 0; }
  .cast { grid-area: cast; align-self: stretch; justify-self: stretch; max-width: none; margin: 0; }
  .floor { grid-area: floor; width: 100%; }
  .santa { max-height: 100%; max-height: min(100cqh, calc((100cqw - var(--px) * 65) * 2)); }
  .s2 { left: 31%; top: 9%; }
  .booth, .result {
    display: grid; align-items: center; justify-content: center; column-gap: 36px; row-gap: 10px;
    grid-template-columns: minmax(0, 320px) auto minmax(0, 320px);
    padding-bottom: 0;
  }
  .booth { grid-template-rows: auto 1fr auto; grid-template-areas: "bar bar bar" "host finder side" "host shots side"; }
  .result { grid-template-rows: 1fr; grid-template-areas: "host printer side"; }
  .desk { display: contents; }
  .bar { grid-area: bar; justify-self: center; align-self: center; }
  .finder { grid-area: finder; align-self: end; }
  .shots { grid-area: shots; justify-self: center; align-self: start; margin-bottom: 24px; }
  .printer { grid-area: printer; }
  .tagcard { grid-area: printer; margin-top: 0; width: 340px; }
  .host { grid-area: host; justify-self: end; align-self: end; height: auto; max-height: 74svh; max-width: 100%; object-position: right bottom; }
  .result .host { max-height: 74svh; }
  .side { grid-area: side; align-self: center; padding-bottom: 0; max-width: 320px; }
  .result { --card-h: min(84svh, 900px); }
  .bubble { font-size: 24px; }
  .bubble::before { display: none; }
}

/* ---------- wide but short (an open Duo, a browser with its bars): a smaller title ---------- */
@media (min-width: 900px) and (min-height: 560px) and (max-height: 700px), (min-width: 700px) and (min-height: 460px) and (max-height: 700px) and (min-aspect-ratio: 1/1) {
  .title { --u: 2; --px: calc(var(--u) * 1px); }
}
@media (min-width: 700px) and (max-height: 600px) and (min-aspect-ratio: 1/1) {
  .howto li { display: flex; align-items: center; justify-content: center; gap: 5px; text-align: left; padding: 6px 3px 7px; }
  .howto .step { height: auto; margin: 0; }
  .howto img { display: none; }
}

/* ---------- phones: keep the keys clear of the card ---------- */
@media (max-width: 899px) {
  .result .side .fine { display: none; }
  .result .bubble { min-height: 0; }
}

/* ---------- phones that are not tall: a smaller title and a one-line how-to ---------- */
@media (max-height: 720px) and (max-width: 899px) {
  .howto li { display: flex; align-items: center; justify-content: center; gap: 5px; text-align: left; padding: 6px 3px 7px; }
  .howto .step { height: auto; margin: 0; }
  .howto img { display: none; }
}
@media (max-height: 620px) and (max-width: 899px) and (max-aspect-ratio: 1/1) {
  .title { --u: 1.5; --px: calc(var(--u) * 1px); padding-top: 36px; }
}

/* ---------- short phones ---------- */
@media (max-height: 640px) and (max-width: 899px) {
  .host { max-height: 190px; }
  .shots li { width: 40px; height: 40px; }
  .side .fine { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .caprow b, .st, .blink, .count.pop, .key-mute.invite, .howto img { animation: none; }
  .curtain i { transition: none; }
  .paper.print > canvas, .paper.print > img { animation: none; transform: none; }
  .paper.shine::after { animation: none; }
  .paper.pop { animation: none; }
}
