@font-face {
  font-family: "Berkelium II HGR";
  src: url("assets/fonts/BerkeliumIIHGR.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.page-desktop {
  --desktop-display-font: "Berkelium II HGR", "Courier New", monospace;
  --desktop-pixel-font: "Fusion Pixel", monospace;
  --desktop-body-font: var(--body-font);
  --desktop-border: 2px solid var(--blue);
  --desktop-icon-scale: calc(64 / 204);
  --desktop-icon-slot-height: 59.3px;
  --desktop-icon-title-gap: 7.23px;
  --desktop-icon-column-gap: 20px;
  --calendar-stack-gap: 14px;
  --calendar-cell-gap: 3px;
  --calendar-month-width: 322.4px;
  --calendar-grid-width: 158px;
  --calendar-card-space: 16px;
  background: var(--pink);
  color: var(--blue);
}

.desktop-scroll {
  background: var(--pink);
}

.desktop-stage {
  position: relative;
  min-height: calc(100svh - var(--header-occupied-h));
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px 24px 18px;
  background: linear-gradient(to bottom, var(--pink) 0 62%, #000 62% 100%);
  isolation: isolate;
}

.desktop-canvas {
  position: relative;
  width: 646.5px;
  aspect-ratio: 1941 / 1803;
  container-type: inline-size;
  flex: 0 0 auto;
}

.desktop-device {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.desktop-device--mobile,
.desktop-mobile-keypad,
.desktop-mobile-controls {
  display: none;
}

.desktop-icons {
  position: absolute;
  z-index: 2;
  left: calc(50% - 8px);
  top: 19.5%;
  width: max-content;
  height: 34.5%;
  display: grid;
  grid-template-columns: repeat(4, 72px);
  grid-template-rows: repeat(2, max-content);
  column-gap: var(--desktop-icon-column-gap);
  align-items: start;
  row-gap: 24px;
  transform: translateX(-50%);
}

.desktop-icon {
  appearance: none;
  min-width: 0;
  width: 72px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-rows: var(--desktop-icon-slot-height) 16px;
  align-items: center;
  justify-items: center;
  row-gap: var(--desktop-icon-title-gap);
  background: transparent;
  color: var(--cream);
  font-family: var(--desktop-pixel-font);
  font-size: 13px;
  line-height: 1;
  cursor: default;
  touch-action: manipulation;
}

.desktop-icon img {
  display: block;
  width: var(--desktop-icon-width, 64px);
  height: auto;
  max-width: none;
  object-fit: contain;
  align-self: center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.desktop-icon:nth-child(1) { --desktop-icon-width: 64px; }
.desktop-icon:nth-child(2) { --desktop-icon-width: 65.88px; }
.desktop-icon:nth-child(3) { --desktop-icon-width: 64px; }
.desktop-icon:nth-child(4) { --desktop-icon-width: 64px; }
.desktop-icon:nth-child(5) { --desktop-icon-width: 56.47px; }
.desktop-icon:nth-child(6) { --desktop-icon-width: 61.18px; }
.desktop-icon:nth-child(7) { --desktop-icon-width: 64px; }
.desktop-icon:nth-child(8) { --desktop-icon-width: 71.53px; }

.desktop-icon span {
  display: inline-block;
  max-width: 100%;
  padding: 0 2px;
  align-self: end;
  overflow: hidden;
  color: var(--cream);
  text-overflow: clip;
  white-space: nowrap;
  pointer-events: none;
}

.desktop-icon.is-selected span {
  background: var(--pink);
  color: var(--cream);
}

.desktop-icon:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: -2px;
}

.desktop-window {
  position: absolute;
  z-index: 8;
  width: min(430px, calc(100vw - 24px));
  min-height: 180px;
  max-height: min(670px, calc(100svh - var(--header-occupied-h) - 24px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--desktop-border);
  background: var(--cream);
  color: var(--blue);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .7);
  user-select: text;
  -webkit-user-select: text;
}

.desktop-window[hidden] {
  display: none;
}

.desktop-window[data-window-app="calendar"] {
  width: 538.4px;
  height: 460px;
  min-height: 0;
  max-height: none;
}

.desktop-window[data-window-app="credit"] {
  width: 322px;
  min-height: 0;
  max-height: none;
}

.desktop-window[data-window-app="video"] {
  width: 484px;
  min-height: 0;
}

.desktop-window[data-window-app="video"][data-video-shape="portrait"] {
  width: 378px;
}

.video-app__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-video-frame {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.desktop-video-frame.is-portrait { aspect-ratio: 3 / 4; }
.desktop-video-frame video { width: 100%; height: 100%; object-fit: cover; }
.desktop-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, .65);
}
.desktop-video-toggle {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: 400 15px/1 var(--desktop-pixel-font);
  cursor: pointer;
}
.desktop-video-toggle:focus-visible { outline: 2px solid var(--cream); }
.desktop-video-progress { width: 100%; min-width: 0; accent-color: var(--cream); cursor: pointer; }

@media (min-width: 849px) {
  .desktop-window[data-window-app="video"] { max-height: none; }
  .desktop-window[data-window-app="video"] .desktop-window__content {
    flex: 0 0 auto;
    overflow: visible;
  }
}

.desktop-window[data-window-app="photo"],
.desktop-window[data-window-app="products"],
.desktop-window[data-window-app="archive"],
.desktop-window[data-window-app="master-tt"],
.desktop-window[data-window-app="milk"] {
  width: clamp(500px, 50vw, 610px);
  height: min(455px, calc(100svh - var(--header-occupied-h) - 42px));
  background: #000;
}

.desktop-window__bar {
  position: relative;
  z-index: 2;
  flex: 0 0 34px;
  height: 34px;
  min-height: 34px;
  padding: 0 8px 0 13px;
  border-bottom: var(--desktop-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--pink);
  color: var(--blue);
  font-family: var(--desktop-pixel-font);
  cursor: move;
  touch-action: none;
}

.desktop-window[data-bar-tone="blue"] .desktop-window__bar {
  background: var(--blue);
  color: var(--cream);
}

.desktop-window__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font: 400 13px/1 var(--desktop-pixel-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-language="zh"] .desktop-window__title,
html[data-language="ja"] .desktop-window__title,
html[data-language="ko"] .desktop-window__title {
  font-size: 12px;
}

.desktop-window__title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 2px;
}

.desktop-window__controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.desktop-window__close,
.desktop-window__expand {
  position: relative;
  appearance: none;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: currentColor;
  color: currentColor;
  font-size: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.desktop-window__expand {
  display: none;
}

.desktop-window__close::before,
.desktop-window__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 2px;
  background: currentColor;
}

.desktop-window__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.desktop-window__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.desktop-window__expand::before,
.desktop-window__expand::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  box-sizing: border-box;
}

.desktop-window__expand::before {
  left: 6px;
  top: 9px;
}

.desktop-window__expand::after {
  left: 10px;
  top: 5px;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.desktop-window__close:focus-visible,
.desktop-window__expand:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.desktop-window__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
}

.empty-app {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font: 400 20px/1 var(--desktop-pixel-font);
}

/* Calendar */
.calendar-app {
  padding: 20px 18px 24px;
  display: grid;
  grid-template-columns: var(--calendar-month-width) var(--calendar-grid-width);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: 18px;
  row-gap: var(--calendar-stack-gap);
}

@media (min-width: 849px) {
  .calendar-app { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
  .calendar-app__events { min-height: 0; align-self: stretch; align-content: start; overflow-y: auto; }
}

.calendar-app__month-nav {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  width: var(--calendar-month-width);
  grid-template-columns: 38px 230.4px 38px;
  align-items: center;
  gap: 8px;
}

.calendar-app__month-nav h2 {
  margin: 0;
  color: var(--pink);
  font: 400 24px/1 var(--desktop-display-font);
  text-align: center;
  white-space: nowrap;
}

.calendar-app__month-nav button,
.photo-app__nav button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pink);
  font: 400 28px/1 var(--desktop-display-font);
  cursor: pointer;
}

.calendar-app__month-nav button:first-child {
  text-align: left;
}

.calendar-app__month-nav button:last-child {
  text-align: right;
}

.calendar-app__month-nav button:focus-visible,
.photo-app__nav button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.calendar-app__layout {
  display: contents;
}

.calendar-app__events {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  display: grid;
  gap: var(--calendar-stack-gap);
}

.calendar-event,
.calendar-event--empty {
  position: relative;
  display: grid;
  grid-template-rows: auto 12px;
  color: var(--cream);
  font-family: var(--desktop-pixel-font);
}

.calendar-event__body {
  min-height: calc(3lh + 42px);
  padding: 14px var(--calendar-card-space);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: stretch;
  background: var(--blue);
  font-size: 13px;
  line-height: 1.1;
}

.calendar-event__footer {
  background: var(--pink);
}

.calendar-event--empty {
  display: grid;
}

.calendar-event--message {
  min-height: 0;
}

.calendar-event--message .calendar-event__body {
  place-items: center;
  color: var(--cream);
}

.calendar-event__message {
  font-size: 16px;
}

.calendar-event__left {
  padding-right: var(--calendar-card-space);
  border-right: 1px solid var(--cream);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  text-align: center;
}

.calendar-event__date {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 13px;
  line-height: 1;
}

.calendar-event__city {
  display: grid;
  justify-items: center;
  gap: 2px;
  white-space: nowrap;
  line-height: 1.15;
}

.calendar-event__date-connector {
  width: 1px;
  height: 8px;
  background: currentColor;
}

.calendar-event__details {
  padding-left: var(--calendar-card-space);
  min-width: 0;
  overflow-wrap: anywhere;
  display: grid;
  align-content: start;
  gap: 7px;
  font-size: 13px;
  line-height: 1.3;
}

.calendar-app__side {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  width: var(--calendar-grid-width);
  gap: var(--calendar-stack-gap);
}

.calendar-grid {
  display: grid;
  gap: var(--calendar-stack-gap);
  color: var(--blue);
}

.calendar-grid__weekdays,
.calendar-grid__days {
  display: grid;
  grid-template-columns: repeat(7, 20px);
}

.calendar-grid__weekdays {
  column-gap: var(--calendar-cell-gap);
  font: 400 16px/1 var(--desktop-display-font);
}

.calendar-grid__days {
  gap: var(--calendar-cell-gap);
  font: 400 12px/1 var(--desktop-pixel-font);
}

.calendar-grid__weekday {
  color: var(--blue);
  text-align: center;
}

.calendar-grid__weekday:first-child,
.calendar-grid__weekday:last-child {
  color: var(--pink);
}

.calendar-grid__day {
  width: 20px;
  height: 20px;
  border: 1px solid var(--blue);
  display: grid;
  place-items: center;
  color: var(--blue);
  line-height: 1;
}

.calendar-grid__day.is-weekend {
  border-color: var(--pink);
  color: var(--pink);
}

.calendar-grid__day.is-outside {
  opacity: 0;
}

.calendar-grid__day.has-event {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--cream);
}

.calendar-app__illustration {
  min-height: 157px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.calendar-app__illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.calendar-app__illustration.is-empty {
  min-height: 157px;
  background: transparent;
  border: 1px solid var(--pink);
}

/* Credit */
.credit-app {
  min-height: 0;
  padding: 18px 26px 26px;
}

.credit-person {
  padding: 16px 0;
  border-bottom: 1px solid var(--pink);
}

.credit-person:last-child {
  border-bottom: 0;
}

.credit-person__toggle {
  appearance: none;
  width: max-content;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.credit-person__portrait {
  position: relative;
  width: 96px;
  aspect-ratio: 1;
}

.credit-person__portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 80ms steps(1, end);
}

.credit-person__portrait .credit-person__photo,
.credit-person.is-open .credit-person__portrait .credit-person__illustration {
  opacity: 0;
}

.credit-person.is-open .credit-person__portrait .credit-person__photo {
  opacity: 1;
}

.credit-person__name {
  display: block;
  width: auto;
  height: 28px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.credit-person__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px auto;
  align-items: end;
  gap: 12px;
}

.credit-person__identity-divider {
  width: 1px;
  height: 42px;
  background: var(--blue);
}

.credit-person__meta {
  display: grid;
  gap: 0;
  text-align: right;
}

.credit-person--beerblanket .credit-person__name {
  height: 16px;
}

.credit-person--beerblanket .credit-person__toggle {
  align-items: flex-end;
}

.credit-person.is-open .credit-person__toggle {
  width: 100%;
  align-items: flex-end;
}

.credit-person.is-open .credit-person__portrait {
  align-self: flex-end;
}

.credit-person:not(.is-open) .credit-person__identity {
  display: block;
}

.credit-person:not(.is-open) .credit-person__meta,
.credit-person:not(.is-open) .credit-person__identity-divider {
  display: none;
}

.credit-person--beerblanket:not(.is-open) .credit-person__identity-divider {
  background: #000;
}

.credit-person--beerblanket .credit-person__identity {
  display: block;
}

.credit-person__details {
  height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--blue);
  text-align: right;
  font-family: var(--desktop-body-font);
  transition: height 170ms cubic-bezier(.22, .68, .24, 1), opacity 80ms linear;
}

.credit-person.is-open .credit-person__details {
  opacity: 1;
}

.credit-person__details-inner {
  padding-top: 13px;
}

.credit-person__role,
.credit-person__description {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: var(--body-text-line-height);
}

.credit-person__role {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 4px solid var(--blue);
}

.credit-person__description {
  margin-top: 3px;
}

.credit-person--beerblanket .credit-person__details {
  color: var(--ink);
}

.credit-person--beerblanket .credit-person__role {
  border-top-color: var(--ink);
}

/* Photo */
.photo-app {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #000;
  color: var(--cream);
}

.photo-app__figure {
  position: relative;
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}

.photo-app__figure.is-media-pending img.photo-app__media { visibility: hidden; }
.desktop-media-status {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--cream);
  background: #000;
  font: 600 13px/1.3 var(--ui-font);
}
.desktop-media-play { color: inherit; background: transparent; font: inherit; cursor: pointer; }

.photo-app__media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  -webkit-user-drag: none;
}

.photo-app__figure .desktop-video-frame {
  min-height: 0;
  justify-self: center;
  align-self: center;
}

.photo-app__footer {
  min-height: 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-app__caption {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font: 400 13px/1.2 var(--desktop-pixel-font);
  overflow-wrap: anywhere;
}

.photo-app__nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
}

.photo-app__nav button {
  width: 30px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font: 600 12px/14px var(--ui-font);
}

.archive-vote {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content;
  height: 40px;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 3px solid var(--pink);
  background: rgba(0, 0, 0, .58);
  color: var(--cream);
  font: 400 12px/1 var(--desktop-pixel-font);
  cursor: pointer;
  z-index: 1;
  white-space: nowrap;
  transition: background-color 140ms ease, transform 140ms ease;
}

.archive-vote__labels { display: grid; }
.archive-vote__labels > span { grid-area: 1 / 1; white-space: nowrap; }
.archive-vote__measure { visibility: hidden; }
.archive-vote__label { justify-self: center; }

.archive-vote__heart {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}
.archive-vote__heart img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; filter: brightness(0) invert(1); }
.archive-vote__heart-filled { opacity: 0; }
.archive-vote:hover:not(:disabled),
.archive-vote.is-voted { background: var(--pink); }
.archive-vote:hover:not(:disabled) { transform: translateY(-1px); }
.archive-vote:hover:not(:disabled) .archive-vote__heart-outline,
.archive-vote.is-voted .archive-vote__heart-outline { opacity: 0; }
.archive-vote:hover:not(:disabled) .archive-vote__heart-filled,
.archive-vote.is-voted .archive-vote__heart-filled { opacity: 1; }
.archive-vote:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.archive-vote:disabled { cursor: default; }
.archive-vote__notice {
  position: absolute;
  top: 60px;
  right: 12px;
  z-index: 1;
  padding: 3px 5px;
  background: #000;
  color: var(--cream);
  font: 400 11px/1.2 var(--desktop-pixel-font);
}

@media (max-width: 848px) {
  .archive-vote { top: 7px; right: 7px; height: 31px; padding: 3px 7px; border-width: 2px; }
  .archive-vote__heart { flex-basis: 14px; width: 14px; height: 14px; }
  .archive-vote__notice { top: 43px; right: 7px; font-size: 10px; }
}

.desktop-expand-hint {
  position: fixed;
  z-index: 1000;
  display: block;
  width: max-content;
  padding: 3px 5px;
  background: #000;
  color: var(--cream);
  font: 400 11px/1.2 "Fusion Pixel", monospace;
  white-space: nowrap;
  pointer-events: none;
}
.desktop-expand-hint[hidden] { display: none; }
.desktop-expand-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--hint-tip-left);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--cream);
}

@media (max-width: 848px) {
  .page-desktop {
    background: var(--blue);
    overflow-x: hidden;
  }

  .desktop-scroll {
    min-height: calc(100dvh - var(--mobile-header-total));
    overflow: visible;
    background: var(--blue);
  }

  .page-desktop:not(.desktop-short-viewport) {
    height: 100dvh;
    overflow-y: hidden;
  }

  .desktop-stage {
    min-height: calc(100dvh - var(--mobile-header-total));
    place-items: start center;
    padding: 12px 12px 0;
    overflow: visible;
    background: linear-gradient(to bottom, var(--pink) 0 calc(41% + 24px), var(--blue) calc(41% + 24px) 100%);
  }

  .page-desktop.desktop-short-viewport .desktop-stage {
    min-height: calc(var(--desktop-mobile-canvas-height, 739px) + 12px);
  }

  .desktop-canvas {
    width: clamp(365px, calc(100vw - 24px), 430px);
    aspect-ratio: 1293 / 2217;
    --mobile-screen-left: 5.8%;
    --mobile-screen-top: 16.33%;
    --mobile-screen-width: 87.08%;
    --mobile-screen-height: 35.18%;
    --mobile-screen-center: 49.30%;
    --mobile-window-keypad-gap: 3.72093cqw;
    --mobile-keypad-width: 92.11cqw;
    --mobile-keypad-height: 65.49cqw;
  }

  .desktop-device--computer {
    display: none;
  }

  .desktop-device--mobile {
    display: block;
  }

  .desktop-mobile-keypad {
    position: absolute;
    z-index: 2;
    left: 3.245%;
    top: calc(var(--mobile-screen-top) + var(--mobile-screen-height) + var(--mobile-window-keypad-gap));
    display: block;
    width: var(--mobile-keypad-width);
    height: auto;
    pointer-events: none;
    transition: opacity 80ms steps(1, end);
  }

  .desktop-mobile-controls {
    position: absolute;
    z-index: 3;
    left: 3.245%;
    top: calc(var(--mobile-screen-top) + var(--mobile-screen-height) + var(--mobile-window-keypad-gap));
    display: block;
    width: var(--mobile-keypad-width);
    aspect-ratio: 1191 / 843;
    transition: opacity 80ms steps(1, end);
  }

  .desktop-mobile-control {
    position: absolute;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    touch-action: manipulation;
  }

  .desktop-mobile-control:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 2px;
  }

  .desktop-mobile-control:active { background: rgba(241, 120, 175, .2); }
  .desktop-mobile-control--left { left: 20.5%; top: 6%; width: 8%; height: 16%; }
  .desktop-mobile-control--right { left: 31.7%; top: 6%; width: 8%; height: 16%; }
  .desktop-mobile-control--ok { left: 43.3%; top: 5%; width: 14.6%; height: 19%; }
  .desktop-mobile-control--up { left: 63%; top: 6%; width: 8%; height: 16%; }
  .desktop-mobile-control--down { left: 73%; top: 6%; width: 8%; height: 16%; }

  .desktop-canvas.is-window-expanded .desktop-mobile-keypad,
  .desktop-canvas.is-window-expanded .desktop-mobile-controls {
    opacity: 0;
    visibility: hidden;
    transition: none;
  }

  .desktop-icons {
    left: var(--mobile-screen-left);
    top: var(--mobile-screen-top);
    width: var(--mobile-screen-width);
    height: var(--mobile-screen-height);
    padding-inline: 1.86cqw;
    grid-template-columns: repeat(4, 16.75cqw);
    grid-template-rows: repeat(2, max-content);
    align-content: center;
    column-gap: 4.18605cqw;
    justify-content: center;
    row-gap: 5.5814cqw;
    transform: none;
  }

  .desktop-icon {
    width: 16.75cqw;
    display: grid;
    grid-template-rows: 13.7907cqw 3.72093cqw;
    align-items: center;
    justify-items: center;
    row-gap: 1.6814cqw;
    padding-top: 0;
    font-size: 3.02326cqw;
  }

  .desktop-icon img {
    width: var(--mobile-icon-width, 14.884cqw);
    height: auto;
    max-width: none;
  }

  .desktop-icon span {
    align-self: center;
  }

  .desktop-icon:nth-child(1) { --mobile-icon-width: 14.884cqw; }
  .desktop-icon:nth-child(2) { --mobile-icon-width: 15.321cqw; }
  .desktop-icon:nth-child(3) { --mobile-icon-width: 14.884cqw; }
  .desktop-icon:nth-child(4) { --mobile-icon-width: 14.884cqw; }
  .desktop-icon:nth-child(5) { --mobile-icon-width: 13.133cqw; }
  .desktop-icon:nth-child(6) { --mobile-icon-width: 14.228cqw; }
  .desktop-icon:nth-child(7) { --mobile-icon-width: 14.884cqw; }
  .desktop-icon:nth-child(8) { --mobile-icon-width: 16.635cqw; }

  .desktop-window,
  .desktop-window[data-window-app="calendar"],
  .desktop-window[data-window-app="credit"],
  .desktop-window[data-window-app="video"],
  .desktop-window[data-window-app="video"][data-video-shape="portrait"],
  .desktop-window[data-window-app="photo"],
  .desktop-window[data-window-app="products"],
  .desktop-window[data-window-app="archive"],
  .desktop-window[data-window-app="master-tt"],
  .desktop-window[data-window-app="milk"] {
    display: flex;
    flex-direction: column;
    left: var(--mobile-screen-left) !important;
    top: var(--mobile-screen-top) !important;
    width: var(--mobile-screen-width);
    height: var(--mobile-screen-height);
    min-height: 0;
    max-height: none;
    border: 0;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .72);
  }

  .desktop-window[hidden],
  .desktop-window[data-window-app][hidden] {
    display: none;
  }

  .desktop-window.is-expanded,
  .desktop-window[data-window-app="calendar"].is-expanded,
  .desktop-window[data-window-app="credit"].is-expanded,
  .desktop-window[data-window-app="video"].is-expanded,
  .desktop-window[data-window-app="photo"].is-expanded,
  .desktop-window[data-window-app="products"].is-expanded,
  .desktop-window[data-window-app="archive"].is-expanded,
  .desktop-window[data-window-app="master-tt"].is-expanded,
  .desktop-window[data-window-app="milk"].is-expanded {
    top: var(--mobile-screen-top) !important;
    height: calc(var(--mobile-screen-height) + var(--mobile-window-keypad-gap) + var(--mobile-keypad-height));
  }

  .desktop-window[data-window-app="photo"] .photo-app,
  .desktop-window[data-window-app="products"] .photo-app,
  .desktop-window[data-window-app="archive"] .photo-app,
  .desktop-window[data-window-app="master-tt"] .photo-app,
  .desktop-window[data-window-app="milk"] .photo-app {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .desktop-window[data-window-app="photo"] .photo-app__figure,
  .desktop-window[data-window-app="products"] .photo-app__figure,
  .desktop-window[data-window-app="archive"] .photo-app__figure,
  .desktop-window[data-window-app="master-tt"] .photo-app__figure,
  .desktop-window[data-window-app="milk"] .photo-app__figure {
    min-height: 0;
  }

  .desktop-window__bar {
    flex-basis: 31px;
    height: 31px;
    min-height: 31px;
    padding-left: 9px;
    border-bottom: var(--desktop-border);
    cursor: default;
  }

  .desktop-window__title {
    font-size: 13px;
  }

  .desktop-window__expand {
    display: grid;
  }

  .desktop-window__close,
  .desktop-window__expand {
    width: 25px;
    height: 25px;
  }

  .empty-app {
    min-height: 100%;
    font-size: 17px;
  }

  .calendar-app {
    --calendar-card-space: 12px;
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .calendar-app__month-nav {
    width: 100%;
    margin-bottom: 0;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }

  .calendar-app__month-nav h2 {
    font-size: min(24px, 5.581cqw);
  }

  .calendar-app__month-nav button {
    font-size: 23px;
  }

  .calendar-app__layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 14px;
  }

  .calendar-app__side {
    order: -1;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) var(--calendar-grid-width);
    align-items: stretch;
    gap: 12px;
  }

  .calendar-app__illustration {
    order: -1;
    position: relative;
    min-width: 0;
    overflow: hidden;
  }

  .calendar-grid__weekdays {
    font-size: 13px;
  }

  .calendar-grid__days {
    gap: var(--calendar-cell-gap);
    font-size: 12px;
  }

  .calendar-grid {
    gap: 8px;
  }

  .calendar-app__illustration,
  .calendar-app__illustration.is-empty {
    min-height: 0;
  }

  .calendar-app__illustration img {
    position: absolute;
    left: 50%;
    top: 0;
    width: auto;
    max-width: none;
    height: 100%;
    transform: translateX(-50%);
  }

  .calendar-event,
  .calendar-event--empty {
    min-height: 100px;
    grid-template-rows: minmax(88px, auto) 12px;
  }

  .calendar-event__body {
    min-height: 88px;
    padding: 12px var(--calendar-card-space) 6px;
  }

  .calendar-event__date,
  .calendar-event__details,
  .calendar-event__city {
    font-size: 12px;
  }

  .credit-app {
    padding: 12px 16px 20px;
  }

  .credit-person {
    padding: 10px 0 13px;
  }

  .credit-person__toggle {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px 96px;
    grid-template-areas: "identity divider portrait";
    align-items: center;
    gap: 14px;
  }

  .credit-person__toggle::before {
    content: "";
    grid-area: divider;
    width: 1px;
    height: 74px;
    background: var(--blue);
  }

  .credit-person__portrait {
    grid-area: portrait;
    width: 96px;
  }

  .credit-person__identity {
    grid-area: identity;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 7px;
  }

  .credit-person:not(.is-open) .credit-person__identity,
  .credit-person--beerblanket .credit-person__identity {
    display: grid;
    justify-items: end;
  }

  .credit-person__identity-divider {
    display: none;
  }

  .credit-person__meta {
    order: 2;
    font-size: 12px;
    line-height: 16px;
  }

  .credit-person__name {
    justify-self: end;
    height: 28px;
    max-width: 100%;
    max-height: none;
  }

  .credit-person--beerblanket .credit-person__name {
    height: 17px;
    max-width: 100%;
  }

  .credit-person__details-inner {
    padding-top: 0;
  }

  .credit-person__role {
    margin-top: 11px;
  }

  /* BEER.BLANKET alone keeps its whole caption beside the portrait. */
  .credit-person--beerblanket.is-open {
    position: relative;
    padding-top: 28px;
  }

  .credit-person--beerblanket.is-open .credit-person__toggle {
    display: block;
    width: calc(100% - 125px);
    margin-left: 0;
  }

  .credit-person--beerblanket.is-open .credit-person__toggle::before {
    position: absolute;
    top: 23px;
    right: 110px;
    bottom: 10px;
    height: auto;
  }

  .credit-person--beerblanket.is-open .credit-person__portrait {
    position: absolute;
    top: 18px;
    right: 0;
  }

  .credit-person--beerblanket.is-open .credit-person__identity::after {
    content: "";
    width: 109px;
    height: 4px;
    margin-top: 5px;
    justify-self: end;
    background: #000;
  }

  .credit-person--beerblanket.is-open .credit-person__details {
    width: calc(100% - 125px);
  }

  .credit-person--beerblanket.is-open .credit-person__role {
    margin-top: 0;
    border-top: 0;
  }

  .credit-person--beerblanket:not(.is-open) .credit-person__toggle {
    align-items: center;
  }

  .credit-person--beerblanket .credit-person__toggle::before {
    background: #000;
  }

  .credit-person--beerblanket:not(.is-open) .credit-person__identity {
    display: grid;
    align-items: center;
  }

  .credit-person__meta,
  .credit-person__role,
  .credit-person__description {
    font-size: 12px;
  }

  .photo-app {
    padding: 0;
  }

  .photo-app__footer {
    padding-inline: 14px;
  }

  .photo-app__caption {
    font-family: var(--desktop-pixel-font);
    font-size: 12px;
  }
}

@media (max-width: 389px) {
  .desktop-stage {
    padding-inline: 0;
  }

  .desktop-canvas {
    transform-origin: top center;
    transform: scale(calc((100vw - 8px) / 365px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .credit-person__portrait img,
  .credit-person__details,
  .desktop-mobile-keypad {
    transition: none;
  }
}
