* {
  box-sizing: border-box;
}

:root {
  --ink: #090909;
  --paper: #f7f7f2;
  --paper-2: #ecece5;
  --green: #19b94b;
  --red: #eb2828;
  --blue: #2c6ecb;
  --yellow: #ffe24a;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-width: 100%;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

.notranslate {
  translate: no;
}

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 3px solid var(--ink);
  background: rgba(247, 247, 242, .94);
  backdrop-filter: blur(9px);
}

.brand {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.topbar__links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-link {
  padding: 6px 8px;
  border: 2px solid var(--ink);
  background: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.mini-link:nth-child(3) {
  background: var(--green);
}

.mini-link:nth-child(4) {
  background: var(--blue);
  color: #fff;
}

.is-disabled {
  opacity: .28;
  filter: grayscale(1);
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 49px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 6vw;
  padding: 8vh 6vw;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 49.5%, rgba(0,0,0,.035) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 0 49.5%, rgba(0,0,0,.035) 49.5% 50.5%, transparent 50.5%),
    var(--paper);
  background-size: 42px 42px;
}

.hero::after {
  content: "bad entry";
  position: absolute;
  right: 4vw;
  bottom: 2vh;
  color: rgba(9,9,9,.08);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(52px, 10vw, 150px);
  font-weight: 900;
  transform: rotate(-5deg);
  pointer-events: none;
}

.hero__paper {
  position: relative;
  width: min(58vw, 720px);
  justify-self: center;
  padding: 14px;
  border: 3px solid var(--ink);
  background: white;
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotate(-2deg);
}

.hero__paper.is-shaking {
  animation: paperShake .35s steps(2, end) 2;
}

.hero__art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.tape {
  position: absolute;
  z-index: 3;
  width: 90px;
  height: 23px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255, 226, 74, .82);
}

.tape--a {
  left: -24px;
  top: 23px;
  transform: rotate(-13deg);
}

.tape--b {
  right: -25px;
  bottom: 30px;
  transform: rotate(9deg);
}

.pin {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
}

.pin--green {
  left: 52%;
  top: 49%;
  background: var(--green);
}

.pin--red {
  left: 58%;
  top: 78%;
  background: var(--red);
}

.hero__copy {
  position: relative;
  z-index: 4;
  min-width: 0;
}

.label {
  display: inline-block;
  padding: 5px 7px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 900;
}

h1,
h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-style: normal;
  font-stretch: normal;
  letter-spacing: 0;
  font-kerning: none;
  font-variant-ligatures: none;
  text-rendering: auto;
  -webkit-text-stroke: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(72px, 10vw, 158px);
  line-height: .78;
}

.hero__line {
  margin: 28px 0 0;
  padding-left: 12px;
  border-left: 6px solid var(--red);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(17px, 1.8vw, 27px);
  font-weight: 900;
  line-height: 1.08;
}

.hero__actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.action {
  min-height: 46px;
  padding: 9px 12px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 900;
}

.action--buy {
  display: grid;
  place-items: center;
  background: var(--green);
}

.action--ca {
  display: grid;
  gap: 2px;
  max-width: min(430px, 100%);
  background: #fff;
  cursor: pointer;
}

.action--ca span {
  display: block;
  overflow: hidden;
  max-width: 380px;
  font-size: 8px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action--ca:disabled {
  opacity: .32;
  cursor: default;
}

.panic-button {
  position: absolute;
  z-index: 8;
  right: 22px;
  top: 82px;
  width: 72px;
  height: 72px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transform: rotate(7deg);
}

.bad-timing {
  position: relative;
  padding: 10vh 8vw 12vh;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--yellow);
}

.bad-timing__stamp {
  position: absolute;
  top: 22px;
  right: 6vw;
  padding: 5px 8px;
  border: 2px dashed var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 900;
  transform: rotate(3deg);
}

.bad-timing__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 7vw;
  align-items: start;
}

.section-id {
  display: inline-block;
  margin-bottom: 15px;
  padding: 4px 6px;
  border: 2px solid var(--ink);
  background: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 900;
}

.bad-timing h2 {
  font-size: clamp(58px, 8vw, 128px);
  line-height: .83;
}

.bad-timing__receipt {
  padding: 18px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 10px 10px 0 var(--ink);
  font-family: "Courier New", Courier, monospace;
}

.receipt-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(0,0,0,.45);
}

.receipt-row span {
  font-weight: 900;
}

.receipt-row b {
  font-weight: 400;
}

.receipt-row--total {
  border-bottom: 0;
  color: var(--red);
}

.chart-room {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 10vh 7vw;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

.chart-room.is-bought {
  animation: blueCrash .45s ease;
}

.chart-room.is-sold {
  animation: greenFlash .45s ease;
}

.chart-room__words {
  position: absolute;
  left: -2vw;
  top: 50%;
  color: rgba(255,255,255,.09);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(100px, 20vw, 320px);
  font-weight: 900;
  line-height: .65;
  transform: translateY(-50%);
  pointer-events: none;
}

.chart-room__console {
  position: relative;
  z-index: 2;
  width: min(720px, 92vw);
  padding: 26px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}

.console-tag {
  display: inline-block;
  padding: 4px 6px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  font-weight: 900;
}

.chart-room__console p {
  min-height: 70px;
  margin: 24px 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.05;
}

.console-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.console-buttons button {
  flex: 1 1 180px;
  padding: 12px;
  border: 3px solid var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
}

#buySim {
  background: var(--green);
}

#sellSim {
  background: var(--red);
  color: #fff;
}

.exit {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 7vw;
  align-items: center;
  padding: 10vh 8vw;
  background: var(--paper-2);
  border-top: 3px solid var(--ink);
}

.exit__note > span {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 6px;
  border: 2px solid var(--ink);
  background: var(--red);
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 900;
}

.exit h2 {
  font-size: clamp(54px, 7vw, 118px);
  line-height: .86;
}

.exit__links {
  display: grid;
  gap: 10px;
}

.big-link {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 3px solid var(--ink);
  background: var(--green);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 6px 6px 0 var(--ink);
}

.big-link--dex {
  background: var(--blue);
  color: #fff;
}

.big-link--social {
  background: #fff;
}

.big-link small {
  font-size: 7px;
  font-weight: 400;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-top: 3px solid var(--ink);
  background: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 22px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: .14s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cursor-note {
  position: fixed;
  z-index: 9999;
  display: none;
  padding: 4px 6px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  font-weight: 900;
  pointer-events: none;
  transform: translate(12px, 12px) rotate(-2deg);
}

@keyframes paperShake {
  0% { transform: translate(0,0) rotate(-2deg); }
  25% { transform: translate(-7px,4px) rotate(-3deg); }
  50% { transform: translate(5px,-3px) rotate(-1deg); }
  75% { transform: translate(-3px,-5px) rotate(-2.5deg); }
  100% { transform: translate(0,0) rotate(-2deg); }
}

@keyframes blueCrash {
  0%,100% { background: var(--blue); }
  50% { background: var(--red); }
}

@keyframes greenFlash {
  0%,100% { background: var(--blue); }
  50% { background: var(--green); }
}

@media (max-width: 900px) {
  .hero,
  .bad-timing__grid,
  .exit {
    grid-template-columns: 1fr;
  }

  .hero__paper {
    width: min(86vw, 680px);
  }

  .hero__copy {
    text-align: center;
  }

  .hero__line {
    width: min(620px, 92vw);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .hero__actions {
    justify-content: center;
  }

  .bad-timing__left {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    padding: 8px;
  }

  .brand {
    font-size: 17px;
  }

  .topbar__links {
    max-width: 64vw;
  }

  .mini-link {
    padding: 5px 6px;
    font-size: 8px;
  }

  .hero {
    padding: 8vh 15px 7vh;
  }

  h1 {
    font-size: 18vw;
    line-height: .82;
  }

  .panic-button {
    right: 12px;
    top: 72px;
    width: 58px;
    height: 58px;
    font-size: 8px;
  }

  .bad-timing,
  .chart-room,
  .exit {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bad-timing h2,
  .exit h2 {
    font-size: 15vw;
  }

  .receipt-row {
    grid-template-columns: 78px 1fr;
    gap: 10px;
  }

  footer {
    flex-direction: column;
  }
}
