:root {
  --lcd:#B9F08F;
  --num:"Silkscreen",ui-monospace,monospace;
  --lilac:#C9B8E8;
  --paper:#F5F0FF;
  --ink:#2E2350;
  --ink-2:#4A3B7A;
  --blue:#9CC3F0;
  --blue-d:#5E8FD0;
  --ginger:#E8752A;
  --px:"Pixelify Sans",ui-monospace,monospace;
  --panel:240px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
  background: #A8DD8C;
  color: var(--ink);
  font-family: var(--px);
  -webkit-font-smoothing: antialiased;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.view {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #A8DD8C;
}
.world {
  position: absolute;
  left: 0;
  top: 0;
  width: 2000px;
  height: 1116px;
  transform-origin: 0 0;
  background: #A8DD8C url(/stock/i/town.webp) 0 0/100% 100% no-repeat;
  will-change: transform;
}
.pin {
  position: absolute;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  padding: 0;
  border: 0;
  background: none;
  z-index: 1500;
}
.pin i {
  position: absolute;
  inset: 10px;
  background: var(--ink);
  box-shadow: 0 0 0 5px var(--paper), 6px 6px 0 5px rgba(46, 35, 80, .35);
  transition: background .15s, transform .15s;
}
.pin i::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 9px;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent var(--paper);
}
.pin::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 4px solid var(--paper);
  opacity: 0;
  animation: ping 2.6s steps(6) infinite;
}
.pin:nth-child(2n)::before {
  animation-delay: 1.3s;
}
.pin:hover i {
  background: var(--ginger);
  transform: scale(1.08);
}
@keyframes ping {
  0% {
    transform: scale(.8);
    opacity: .9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
.lionel {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.lionel .shadow {
  position: absolute;
  left: -28px;
  top: -9px;
  width: 56px;
  height: 16px;
  border-radius: 50%;
  background: rgba(46, 35, 80, .28);
}
.lionel .body {
  position: absolute;
  left: -36px;
  top: -134px;
  width: 72px;
  height: 136px;
  background: url(/stock/i/walk.png) 0 0/600% 100% no-repeat;
}
.lionel.left .body {
  transform: scaleX(-1);
}
.lionel.down .body {
  transform: rotate(-90deg) translate(-40px, 20px);
}
.lionel.down.left .body {
  transform: scaleX(-1) rotate(-90deg) translate(-40px, 20px);
}
.lionel.down .shadow {
  left: -60px;
  width: 120px;
}
.lionel .pop {
  position: absolute;
  left: 0;
  top: -176px;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .06em;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 0 0 4px var(--ink), 6px 6px 0 4px rgba(46, 35, 80, .3);
  opacity: 0;
  pointer-events: none;
}
.lionel.left .pop {
  transform: translateX(-50%);
}
.lionel .pop.on {
  animation: rise 2.6s steps(10) forwards;
}
.lionel .pop.down {
  background: var(--ginger);
  color: var(--paper);
  opacity: 1;
  animation: none;
}
@keyframes rise {
  0% {
    opacity: 0;
    margin-top: 20px;
  }
  10% {
    opacity: 1;
    margin-top: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    margin-top: -28px;
  }
}
.bubble {
  position: absolute;
  z-index: 2000;
  width: 180px;
  height: 320px;
  padding: 0;
  background: var(--paper);
  box-shadow:
    0 0 0 8px var(--paper),
    0 0 0 14px var(--ink),
    14px 14px 0 14px rgba(46, 35, 80, .3);
  cursor: pointer;
  transform-origin: 50% 50%;
}
.bubble[hidden] {
  display: none;
}
.bubble video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bubble.pop {
  animation: pop .32s steps(4) both;
}
@keyframes pop {
  0% {
    transform: scale(.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.sign {
  position: absolute;
  left: 470px;
  top: 384px;
  z-index: 1400;
  width: 660px;
  padding: 24px 32px 22px;
  background: var(--paper);
  box-shadow: 0 0 0 8px var(--ink), 14px 14px 0 8px rgba(46, 35, 80, .3);
  text-align: left;
}
.sign h1 {
  margin: 0;
  font-weight: 700;
  font-size: 54px;
  line-height: .95;
  letter-spacing: .005em;
  color: var(--ink);
}
.tick {
  margin: 8px 0 0;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .14em;
  color: var(--ginger);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.meter {
  display: grid;
  grid-template-columns: 1.15fr 1.5fr 1fr 1fr;
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px #1d1636;
}
.meter .cell {
  position: relative;
  min-width: 0;
  padding: 8px 10px 9px;
  background: #3A2E63;
  color: var(--lcd);
}
.meter label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #B7A9DC;
}
.meter b {
  display: block;
  margin-top: 3px;
  font-family: var(--num);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
}
.meter .gear b {
  display: inline-block;
  vertical-align: middle;
}
.meter em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lcd);
  white-space: nowrap;
}
.pips {
  display: inline-flex;
  gap: 3px;
  margin-left: 10px;
  vertical-align: middle;
}
.pips i {
  width: 10px;
  height: 14px;
  background: #56497F;
}
.pips i.on {
  background: var(--lcd);
}
.meter.flash .cell {
  animation: flash .9s steps(3) 2;
}
@keyframes flash {
  50% {
    background: #5B4C92;
  }
}
.push {
  flex: 1 1 auto;
  min-width: 0;
  height: 62px;
  padding: 0 18px;
  border: 0;
  background: var(--ginger);
  color: var(--paper);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, .18), 0 0 0 4px var(--ink);
  transition: background .15s;
}
.push:hover {
  background: #F48B44;
}
.push:active,
.push.pressed {
  transform: translate(2px, 2px);
}
.push.soon {
  background: #C98A5F;
}
.push.busy {
  background: var(--ink-2);
  cursor: progress;
}
.push:disabled {
  cursor: progress;
}
.say {
  margin: 10px 0 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.say a,
.terms a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terms {
  margin: 10px 0 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
}
.ico.play {
  border: 0;
  padding: 0;
}
.play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  shape-rendering: crispEdges;
}
.links {
  display: flex;
  gap: 12px;
}
.ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .28);
}
.ico:hover {
  background: var(--ink-2);
}
.ico svg {
  width: 24px;
  height: 24px;
}
.ico img {
  width: 26px;
  height: 26px;
  display: block;
}
.ico.shut {
  opacity: .5;
}
.ca {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  height: 56px;
  padding: 0 18px;
  background: #fff;
  box-shadow: 0 0 0 4px var(--ink);
  min-width: 0;
}
.ca.real {
  padding: 0 6px 0 16px;
}
.ca .v {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: .02em;
}
.ca:not(.real) .v {
  letter-spacing: .3em;
  color: var(--ink-2);
}
.ca button {
  flex: none;
  height: 42px;
  padding: 0 16px;
  border: 0;
  background: var(--blue);
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .15);
}
.ca button:hover {
  background: var(--blue-d);
  color: var(--paper);
}
.tall .view {
  bottom: var(--panel);
}
.tall .sign {
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  width: auto;
  padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 0 var(--ink);
  z-index: 100;
}
.tall .sign h1 {
  font-size: 30px;
}
.tall .tick {
  font-size: 14px;
  margin-top: 4px;
}
.tall .row {
  margin-top: 10px;
  gap: 8px;
}
.tall .push {
  height: 44px;
  padding: 0 10px;
  font-size: 19px;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .18), 0 0 0 3px var(--ink);
}
.tall .play svg {
  width: 16px;
  height: 16px;
}
.tall .meter {
  margin-top: 10px;
  gap: 3px;
  padding: 3px;
  grid-template-columns: 1fr 1.25fr .95fr .95fr;
}
.tall .meter .cell {
  padding: 5px 6px 6px;
}
.tall .meter label {
  font-size: 10px;
  letter-spacing: .08em;
}
.tall .meter b {
  font-size: 15px;
  margin-top: 2px;
}
.tall .meter em {
  font-size: 10px;
  letter-spacing: .02em;
}
.tall .pips {
  margin-left: 5px;
  gap: 2px;
}
.tall .pips i {
  width: 5px;
  height: 9px;
}
.tall .say {
  margin-top: 8px;
  font-size: 13px;
}
.tall .terms {
  margin-top: 8px;
  font-size: 11px;
}
.tall .lionel .pop {
  font-size: 26px;
}
.tall .links {
  gap: 8px;
}
.tall .ico {
  width: 44px;
  height: 44px;
}
.tall .ico svg {
  width: 18px;
  height: 18px;
}
.tall .ico img {
  width: 20px;
  height: 20px;
}
.tall .ca {
  height: 40px;
  margin-top: 8px;
  padding: 0 14px;
  box-shadow: 0 0 0 3px var(--ink);
}
.tall .ca.real {
  padding: 0 4px 0 10px;
}
.tall .ca .v {
  font-size: 14px;
  letter-spacing: 0;
}
.tall .ca button {
  height: 34px;
  padding: 0 10px;
  font-size: 14px;
}
.say {
  min-height: 1.3em;
}
@media (max-width: 760px) {
  .say {
    white-space: normal;
    text-overflow: clip;
    font-size: 15px;
    min-height: 2.6em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pin::before {
    animation: none;
  }
  .bubble.pop {
    animation: none;
  }
  .meter.flash .cell {
    animation: none;
  }
}
.film {
  position: fixed;
  z-index: 1600;
  right: clamp(20px, 5vw, 96px);
  top: calc(50% + 30px);
  transform: translateY(-50%);
}
.film .pf {
  --pw:min(300px,calc((100vh - 270px) * 9 / 16));
}
.tall .film {
  top: 62px;
  right: 10px;
  transform: none;
}
.tall .film .pf.mini {
  --pw:84px;
}
.lionel.hop .body {
  animation: hop .5s steps(4);
}
@keyframes hop {
  0%, 100% {
    margin-top: 0;
  }
  40% {
    margin-top: -26px;
  }
  70% {
    margin-top: -8px;
  }
}
.print {
  position: absolute;
  z-index: 3;
  width: 26px;
  height: 14px;
  margin: -7px 0 0 -13px;
  background: var(--ink);
  border-radius: 50% 50% 45% 45%;
  opacity: .5;
  pointer-events: none;
  animation: print 6s steps(12) forwards;
}
@keyframes print {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  8% {
    transform: scale(1);
    opacity: .6;
  }
  100% {
    opacity: 0;
  }
}
.ring {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 5px solid var(--ginger);
  pointer-events: none;
  animation: ring 1.1s steps(6) forwards;
}
@keyframes ring {
  to {
    transform: scale(5);
    opacity: 0;
  }
}
.home .hd .nav {
  margin-left: auto;
}
@media (prefers-reduced-motion: reduce) {
  .lionel.hop .body,
  .print,
  .ring {
    animation: none;
  }
}
