* { box-sizing: border-box; }
:root {
  --bg: #eef0f6;
  --ink: #272733;
  --soft-ink: #777789;
  --shell: #f8f8fc;
  --shell-edge: #c8c9d4;
  --lavender: #dcd8ee;
  --pink: #e6cfdc;
  --lcd: #b9c7c9;
  --lcd-ink: #253034;
}
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  background:
    radial-gradient(circle at 15% 10%, rgb(255 255 255 / .88) 0 1px, transparent 1.5px) 0 0 / 18px 18px,
    radial-gradient(circle at 82% 76%, rgb(203 198 225 / .4), transparent 28%),
    linear-gradient(145deg, #f6f7fb, var(--bg));
}
.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 44px 18px 28px;
  overflow: hidden;
  position: relative;
}
.home-link {
  position: fixed;
  top: 18px;
  left: 22px;
  color: #8a8997;
  text-decoration: none;
  letter-spacing: .22em;
  font-size: 11px;
}

.toy {
  width: min(430px, 92vw);
  position: relative;
  filter: drop-shadow(0 30px 34px rgb(64 64 84 / .22));
}
.strap-loop {
  position: absolute;
  z-index: 0;
  width: 74px;
  height: 62px;
  right: 34px;
  top: -35px;
  border: 10px solid #c8c9d4;
  border-bottom-color: #b8bac7;
  border-radius: 45% 55% 50% 50%;
  transform: rotate(12deg);
  background: transparent;
}
.strap-loop span {
  position: absolute;
  inset: 4px;
  border: 2px solid rgb(255 255 255 / .85);
  border-radius: inherit;
}
.shell {
  position: relative;
  z-index: 1;
  min-height: 520px;
  padding: 42px 42px 34px;
  border: 1px solid #bbbcc9;
  border-radius: 46% 54% 48% 52% / 42% 42% 58% 58%;
  background:
    radial-gradient(circle at 35% 18%, rgb(255 255 255 / .96), transparent 19%),
    linear-gradient(145deg, #ffffff 0%, var(--shell) 38%, #ececf4 100%);
  box-shadow:
    inset 10px 10px 20px rgb(255 255 255 / .92),
    inset -13px -16px 24px rgb(157 158 178 / .18),
    0 2px 0 #fff,
    0 0 0 7px rgb(225 225 235 / .56);
}
.shell::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgb(148 147 169 / .23);
  border-radius: inherit;
  pointer-events: none;
}
.shell-glint {
  position: absolute;
  width: 140px;
  height: 50px;
  top: 14px;
  left: 52px;
  border-top: 2px solid rgb(255 255 255 / .9);
  border-radius: 50%;
  opacity: .9;
}

.brand {
  height: 62px;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: 34px 18px;
  align-items: end;
  margin: 0 8px 10px;
  color: #5d5b6a;
}
.brand .mark {
  width: 50px;
  grid-row: 1 / 3;
  align-self: center;
}
.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  letter-spacing: .18em;
}
.brand small {
  align-self: start;
  color: #9896a5;
  font-size: 8px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.screen-bezel {
  position: relative;
  padding: 18px 18px 26px;
  border: 1px solid #babcc8;
  border-radius: 31% 35% 26% 28% / 19% 22% 20% 20%;
  background:
    linear-gradient(145deg, #dadbe5, #f3f3f8 47%, #c9cad7 100%);
  box-shadow:
    inset 2px 2px 3px rgb(255 255 255 / .9),
    inset -3px -4px 7px rgb(99 101 121 / .18),
    0 3px 8px rgb(78 78 98 / .16);
}
.lcd-glass {
  position: relative;
  padding: 10px;
  border: 4px solid #777984;
  border-radius: 12px;
  background: #53565f;
  box-shadow: inset 0 0 0 2px #25272d, 0 1px 0 #fff;
}
.lcd-glass::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background: linear-gradient(125deg, rgb(255 255 255 / .15), transparent 28% 72%, rgb(255 255 255 / .07));
  mix-blend-mode: screen;
}
#lcd {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  image-rendering: auto;
  background: var(--lcd);
  border: 1px solid #657277;
}

.speaker {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 11px 8px 0;
}
.speaker i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9a9baa;
  box-shadow: inset 0 1px 1px rgb(67 67 80 / .45);
}
.controls {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 28px;
  margin-top: 24px;
  padding: 0 10px;
}
.hardware-button {
  appearance: none;
  width: 58px;
  height: 47px;
  border: 1px solid #9d98b5;
  border-bottom-width: 5px;
  border-radius: 50%;
  color: #555161;
  font: 700 12px/1 ui-monospace, monospace;
  background:
    radial-gradient(circle at 36% 24%, rgb(255 255 255 / .86), transparent 24%),
    linear-gradient(160deg, #ebe7f6, #d8d1ea 60%, #c7bedb);
  box-shadow:
    0 7px 9px rgb(77 75 98 / .22),
    inset 1px 1px 1px rgb(255 255 255 / .95),
    inset -2px -3px 4px rgb(99 92 129 / .16);
  cursor: pointer;
  transform: translateY(0);
  transition: transform .07s ease, border-bottom-width .07s ease, box-shadow .07s ease;
}
.hardware-button:nth-child(2) { margin-top: 13px; }
.hardware-button:active,
.hardware-button.is-pressed {
  transform: translateY(4px);
  border-bottom-width: 1px;
  box-shadow: 0 2px 3px rgb(77 75 98 / .2), inset 1px 2px 4px rgb(86 80 112 / .17);
}
.hardware-button span { opacity: .76; }
.button-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 8px;
  color: #a09eab;
  font-size: 7px;
  letter-spacing: .12em;
}
.button-legend span { width: 56px; text-align: center; }

.sound-toggle {
  position: absolute;
  right: 42px;
  bottom: 31px;
  padding: 4px 8px;
  border: 1px solid #c6c5d0;
  border-radius: 999px;
  background: #f1f1f6;
  color: #9795a3;
  font: 7px/1 ui-monospace, monospace;
  letter-spacing: .1em;
  cursor: pointer;
}
.sound-toggle[aria-pressed="true"] { background: #d4d0e5; color: #5e5b6a; }
.serial {
  position: absolute;
  left: 44px;
  bottom: 35px;
  color: #aaa8b4;
  font-size: 6px;
  letter-spacing: .12em;
}
.hint {
  margin: 0;
  color: #8e8c99;
  font-size: 9px;
  letter-spacing: .12em;
  text-align: center;
}
@media (max-width: 520px) {
  .stage { padding-top: 52px; gap: 14px; }
  .toy { width: min(365px, 92vw); }
  .shell { min-height: 475px; padding: 36px 34px 30px; }
  .brand { height: 54px; }
  .brand span { font-size: 27px; }
  .controls { gap: 22px; margin-top: 20px; }
  .hardware-button { width: 54px; height: 44px; }
  .button-legend { gap: 26px; }
  .hint { max-width: 92vw; line-height: 1.8; }
  .serial { left: 34px; }
  .sound-toggle { right: 34px; }
}
@media (max-height: 690px) and (min-width: 521px) {
  .toy { transform: scale(.82); margin-block: -50px; }
}
@media (prefers-reduced-motion: reduce) {
  .hardware-button { transition: none; }
}
