/* fonts */
@font-face {
  font-family: "Titan Fallback";
  src: local("Arial Rounded MT Bold"), local("Arial Black");
  size-adjust: 98.3%;
}

:root {
  --violet: #3f3570;
  --lavender: #8a6fc0;
  --pink: #f08cc0;
  --ink: #1b1426;
  --cream: #fff6ec;
  --wood: #d9a066;
  --plum: #3a1f6b;
  --hot-pink: #e8559c;
  --display: "Titan One", "Titan Fallback", sans-serif;
  --body: "Literata", Georgia, serif;
}

/* base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font: 400 1.125rem/1.6 var(--body);
  background: var(--violet);
  overflow-x: hidden;
}

/* one fixed gradient for the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--violet) 0%, #5d4f9a 30%, var(--lavender) 55%, #c48ac0 78%, var(--pink) 100%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

a,
button,
[role="button"],
summary,
label {
  cursor: pointer;
}

/* header */
.topbar {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 4px 0 var(--ink);
}

.topbar-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 6px;
  color: var(--ink);
  font: 1rem var(--display);
  text-decoration: none;
}

.topbar-home img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.sound-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--cream);
  background: var(--plum);
  transition: transform 0.15s, background-color 0.15s;
}

.sound-btn:hover {
  transform: scale(1.08);
  background: var(--hot-pink);
}

.sound-btn:focus-visible,
.ca-box:focus-visible,
.topbar-home:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

.sound-off {
  display: none;
}

.is-muted .sound-waves {
  display: none;
}

.is-muted .sound-off {
  display: inline;
}

/* hero */
.hero {
  --stage-w: min(94vw, 1180px, calc((100svh - 190px) * 1.6));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(64px, 9vh, 96px) 16px 24px;
  overflow: hidden;
}

.title {
  position: relative;
  z-index: 0;
  font-size: clamp(64px, 13vw, 200px);
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--cream);
  -webkit-text-stroke: 0.06em var(--plum);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.07em 0 var(--hot-pink);
}

.scene {
  position: relative;
  z-index: 1;
  width: var(--stage-w);
  /* the ears come up over the bottom of the name */
  margin-top: calc(var(--stage-w) / -1.6 * 0.14);
}

.stage {
  position: relative;
  aspect-ratio: 1586 / 992;
}

.layer {
  position: absolute;
  max-width: none;
}

.table {
  inset: 0;
  width: 100%;
}

/* layer boxes are measured on the 1586 x 992 master scene */
.paw-left {
  left: 35.498%;
  top: 60.786%;
  width: 14.502%;
  transform-origin: 8% 20%;
}

.paw-right {
  left: 50%;
  top: 60.786%;
  width: 7.251%;
  transform-origin: 92% 20%;
}

.paw-raised {
  left: 32.346%;
  top: 31.149%;
  width: 12.989%;
  opacity: 0;
  /* above the face patches, which carry the chair and whiskers with soft edges */
  z-index: 2;
  transform-origin: 30% 100%;
}

.controller {
  left: 55.359%;
  top: 60.181%;
  width: 21.564%;
  transform-origin: 50% 90%;
}

.eyes-shut {
  left: 32.598%;
  top: 7.56%;
  width: 37.453%;
  opacity: 0;
}

.face-glare {
  left: 29.445%;
  top: 5.948%;
  width: 40.605%;
  opacity: 0;
}

/* the waiting tap, one paw at a time */
.paw-left.is-tapping {
  animation: tap-left 0.36s cubic-bezier(0.3, 0, 0.3, 1);
}

.paw-right.is-tapping {
  animation: tap-right 0.36s cubic-bezier(0.3, 0, 0.3, 1);
}

@keyframes tap-left {
  0% { transform: none; }
  30% { transform: translateY(-8%) rotate(-5deg); }
  52% { transform: translateY(1%) scale(1.02, 0.97); }
  70%, 100% { transform: none; }
}

@keyframes tap-right {
  0% { transform: none; }
  30% { transform: translateY(-8%) rotate(5deg); }
  52% { transform: translateY(1%) scale(1.02, 0.97); }
  70%, 100% { transform: none; }
}

.is-blinking .eyes-shut {
  animation: blink 0.22s steps(1, end);
}

@keyframes blink {
  0%, 99% { opacity: 1; }
  100% { opacity: 0; }
}

/* the slam: wind up, hit, shake */
.is-slamming {
  animation: shake 1.2s linear;
}

.is-slamming .paw-left {
  animation: slam-paw 1.2s linear;
}

.is-slamming .paw-raised {
  animation: slam-raise 1.2s linear;
}

.is-slamming .controller {
  animation: hop 1.2s linear;
}

.is-slamming .face-glare {
  animation: glare 1.2s linear;
}

.is-slamming .eyes-shut {
  animation: none;
}

@keyframes slam-raise {
  0% { opacity: 0; transform: translateY(30%) scale(0.9); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  6% { opacity: 1; }
  25% { opacity: 1; transform: translateY(-14%) rotate(-8deg); animation-timing-function: cubic-bezier(0.6, 0, 1, 0.6); }
  32% { opacity: 1; transform: translateY(26%) rotate(4deg); }
  33%, 100% { opacity: 0; transform: translateY(26%); }
}

@keyframes slam-paw {
  0%, 31% { opacity: 0; transform: none; }
  32.5% { opacity: 1; transform: translateY(4%) scale(1.1, 0.8); }
  40% { transform: translateY(-2%) scale(0.97, 1.04); }
  50%, 100% { opacity: 1; transform: none; }
}

@keyframes hop {
  0%, 32% { transform: none; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  44% { transform: translateY(-16%) rotate(-7deg); animation-timing-function: cubic-bezier(0.6, 0, 1, 0.5); }
  54% { transform: translateY(0) rotate(1deg); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  60% { transform: translateY(-5%) rotate(-2deg); animation-timing-function: cubic-bezier(0.6, 0, 1, 0.5); }
  66%, 100% { transform: none; }
}

@keyframes glare {
  0%, 8% { opacity: 0; }
  12%, 85% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes shake {
  0%, 32% { transform: none; }
  34% { transform: translate(0.8%, 1.4%) rotate(0.4deg); }
  37% { transform: translate(-0.9%, -0.6%) rotate(-0.5deg); }
  41% { transform: translate(0.6%, 0.5%) rotate(0.3deg); }
  45% { transform: translate(-0.4%, -0.3%); }
  50% { transform: translate(0.2%, 0.2%); }
  56%, 100% { transform: none; }
}

/* the countdown, set on the table in front of his paws */
.clock {
  position: absolute;
  left: 13.5%;
  top: 70.5%;
  width: 40%;
  z-index: 2;
  text-align: center;
  color: var(--ink);
}

.clock-row {
  display: flex;
  justify-content: center;
  gap: 4%;
}

.clock-unit {
  position: relative;
  display: flex;
  padding-bottom: 0.34em;
  font: calc(var(--stage-w) * 0.062) / 1 var(--display);
}

.clock-unit + .clock-unit::before {
  content: ":";
  position: absolute;
  left: -0.22em;
  top: -0.02em;
  color: var(--ink);
  opacity: 0.45;
}

.clock-unit small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font: 600 0.2em/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.digit {
  position: relative;
  display: grid;
  width: 0.66em;
  height: 1em;
  overflow: hidden;
  color: var(--cream);
  -webkit-text-stroke: 0.07em var(--ink);
  paint-order: stroke fill;
}

.digit > span {
  grid-area: 1 / 1;
  text-align: center;
}

.digit-now.is-in {
  animation: digit-in 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.digit-old {
  animation: digit-out 0.3s cubic-bezier(0.5, 0, 0.8, 0.5) forwards;
}

@keyframes digit-in {
  from { opacity: 0; transform: translateY(-70%) scale(0.8); }
  to { opacity: 1; transform: none; }
}

@keyframes digit-out {
  to { opacity: 0; transform: translateY(70%) scale(0.8); }
}

.clock.is-jolted {
  animation: jolt 0.5s 0.39s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes jolt {
  0% { transform: none; }
  20% { transform: translateY(-7%) rotate(-1.5deg); }
  45% { transform: translateY(2%) rotate(0.8deg); }
  70% { transform: translateY(-1%); }
  100% { transform: none; }
}

.until {
  margin: 0.2em 0 0;
  font: italic 400 calc(var(--stage-w) * 0.0165) / 1.2 var(--body);
  color: var(--ink);
}

.is-released .until {
  font-style: normal;
  font-weight: 600;
}

/* intro card */
.intro {
  position: fixed;
  left: 24px;
  top: 24px;
  z-index: 30;
  width: min(92vw, 340px);
  animation: intro-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.intro-card {
  margin: 0;
  padding: 18px 22px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 6px 0 var(--ink);
  font: 400 1.1rem/1.45 var(--body);
  text-align: center;
}

.intro.is-closing {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.25s, transform 0.25s;
}

@keyframes intro-in {
  from { opacity: 0; transform: translateY(-30px); }
}

/* section titles */
.story-title,
.queue h2,
.meme h2 {
  margin-bottom: 0.4em;
  font-size: clamp(44px, 6vw, 84px);
  color: var(--cream);
  -webkit-text-stroke: 0.06em var(--plum);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.07em 0 var(--hot-pink);
}

/* my week: a sticky screen, the chapters scroll past it */
.story {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.story-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
}

.story-screen {
  position: sticky;
  top: calc(50vh - min(34vw, 68vh) * 1.25 / 2);
  align-self: start;
  width: min(100%, min(34vw, 68vh));
  aspect-ratio: 820 / 1025;
  justify-self: end;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(27, 20, 38, 0.7), 0 0 0 1px rgba(255, 246, 236, 0.18);
}

.story-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.story-shot.is-on {
  opacity: 1;
}

.story-chapters {
  --progress: 0;
  position: relative;
  margin: 0;
  padding: 0 0 0 36px;
  list-style: none;
}

/* the line fills as you read */
.story-chapters::before,
.story-chapters::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 246, 236, 0.18);
}

.story-chapters::after {
  background: var(--cream);
  transform: scaleY(var(--progress));
  transform-origin: top;
}

.chapter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72vh;
  opacity: 0.32;
  transition: opacity 0.5s ease;
}

.chapter.is-active {
  opacity: 1;
}

.chapter-time {
  margin: 0 0 14px;
  font: 500 0.9rem/1 "Sono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd6ec;
}

.chapter-text {
  margin: 0;
  max-width: 24em;
  font: 400 clamp(1.3rem, 2.1vw, 1.75rem)/1.45 var(--body);
}

/* the queue */
.queue {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 32px;
}

.queue-intro {
  max-width: 40em;
}

.queue-intro p {
  margin: 0 0 1em;
  font-size: 1.15rem;
}

.queue-desk {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 24px;
  margin: 32px 0;
}

.ticket,
.draw-card {
  position: relative;
  padding: 28px;
  border-radius: 22px;
}

/* a queue ticket: cream paper with notches on the sides */
.ticket {
  color: var(--ink);
  background:
    radial-gradient(circle at 0 50%, transparent 14px, var(--cream) 15px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 14px, var(--cream) 15px) right / 51% 100% no-repeat;
  filter: drop-shadow(0 18px 30px rgba(27, 20, 38, 0.45));
}

.ticket-label {
  margin: 0 0 6px;
  font: 500 0.8rem/1 "Sono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.ticket-number {
  margin: 0;
  font: clamp(64px, 9vw, 112px)/1 var(--display);
  color: var(--plum);
  letter-spacing: 0.02em;
}

.has-ticket .ticket-number {
  color: var(--hot-pink);
  -webkit-text-stroke: 0.04em var(--plum);
  paint-order: stroke fill;
}

.ticket-wallet {
  margin: 10px 0 18px;
  font: 500 clamp(11px, 2.9vw, 15px)/1.4 "Sono", monospace;
  overflow-wrap: anywhere;
}

.ticket-btn,
.board-more {
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  background: var(--plum);
  font: 1.15rem var(--display);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.15s;
}

.ticket-btn:hover,
.board-more:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
  background: var(--hot-pink);
}

.ticket-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.ticket-note {
  margin: 16px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.draw-card {
  background: rgba(27, 20, 38, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 236, 0.2);
}

.draw-date {
  margin: 0 0 14px;
  font: 1.6rem/1.2 var(--display);
}

.draw-when {
  display: block;
  margin-top: 6px;
  font: 500 1rem "Sono", monospace;
  color: #ffd6ec;
}

.draw-line {
  margin: 0 0 12px;
}

.draw-proof {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
  overflow-wrap: anywhere;
}

.draw-proof a,
.footer-x {
  color: var(--cream);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.is-drawn .draw-line {
  font: 1.35rem/1.35 var(--display);
  overflow-wrap: anywhere;
}

/* the board */
.board {
  padding: 28px;
  border-radius: 22px;
  background: rgba(27, 20, 38, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 236, 0.16);
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 16px;
}

.board h3 {
  margin: 0;
  font: 1.8rem var(--display);
  text-transform: uppercase;
}

.board-count {
  margin: 0;
  font: 500 0.95rem "Sono", monospace;
}

.board-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  max-height: 440px;
  margin: 0 0 16px;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.board-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 246, 236, 0.08);
  font: 500 0.95rem "Sono", monospace;
}

.board-n {
  color: #ffd6ec;
}

.board-row.is-mine {
  color: var(--ink);
  background: var(--cream);
}

.board-row.is-mine .board-n {
  color: var(--hot-pink);
}

/* wallet picker */
.wallet-picker {
  width: min(92vw, 380px);
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 8px 0 var(--ink);
}

.wallet-picker::backdrop {
  background: rgba(27, 20, 38, 0.6);
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.picker-head p {
  margin: 0;
  font: 1.4rem var(--display);
}

.picker-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--cream);
  background: var(--plum);
}

.wallet-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font: 1.05rem var(--display);
  text-decoration: none;
}

.wallet-option:hover {
  background: #ffe6f2;
}

.wallet-option img {
  border-radius: 8px;
}

.wallet-none p {
  margin: 0;
}

/* meme coin */
.meme {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px 64px;
}

.meme-art {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(27, 20, 38, 0.7), 0 0 0 1px rgba(255, 246, 236, 0.18);
}

.meme-text p {
  margin: 0 0 1em;
}

.fine-print {
  font-size: 0.85rem;
  opacity: 0.85;
}

.ca-box {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 8px 0 20px;
  padding: 16px 18px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 6px 0 var(--ink);
  text-align: left;
  transition: transform 0.12s, box-shadow 0.12s;
}

.ca-box:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--ink);
}

.ca-label {
  font: 1.3rem var(--display);
  color: var(--plum);
}

.ca-address {
  font: 500 clamp(11px, 3.2vw, 17px) / 1.35 "Sono", monospace;
  overflow-wrap: anywhere;
}

.ca-status {
  font: 600 0.85rem var(--body);
  color: var(--hot-pink);
}

/* footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 16px 40px;
  text-align: center;
}

.footer img {
  width: 72px;
  height: 72px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.footer p {
  margin: 0;
}

.footer p:first-of-type {
  font: 1.4rem var(--display);
  margin-top: 8px;
}

/* tablets */
@media (max-width: 900px) {
  .meme,
  .queue-desk {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* phones: the stage is wider than the screen so the cat stays big, the clock moves under the table */
@media (max-width: 700px) {
  .hero {
    --stage-w: 168vw;
    padding-top: 84px;
  }

  .title {
    font-size: 17vw;
  }

  .scene {
    width: 100vw;
    margin-top: calc(168vw / -1.6 * 0.12);
  }

  .stage {
    width: 168vw;
    margin-left: -34vw;
  }

  .clock {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    margin-top: -1vw;
    padding: 0 16px;
  }

  .clock-unit {
    font-size: 13vw;
  }

  .until {
    font-size: 1.05rem;
    color: var(--cream);
  }

  .clock-unit small {
    color: var(--cream);
  }

  .story-body {
    display: block;
  }

  .story-screen {
    top: 76px;
    z-index: 2;
    width: min(100%, 40svh * 0.8);
    margin: 0 auto;
  }

  .story-chapters {
    padding-left: 22px;
  }

  .chapter {
    justify-content: flex-start;
    min-height: 62svh;
    padding-top: 28px;
    opacity: 0.06;
  }

  .chapter-text {
    font-size: 1.25rem;
  }

  .ticket,
  .draw-card,
  .board {
    padding: 22px 18px;
  }

  .meme {
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 404 */
.lost {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}

.lost img {
  border: 5px solid var(--ink);
  border-radius: 6px;
  transform: rotate(-1deg);
}

.lost h1 {
  font-size: clamp(48px, 12vw, 96px);
  color: var(--cream);
  -webkit-text-stroke: 0.06em var(--plum);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.07em 0 var(--hot-pink);
}

.lost p {
  margin: 0;
}

.lost-btn {
  padding: 14px 24px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 5px 0 var(--ink);
  font: 1.15rem var(--display);
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}

.lost-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}

@media (max-width: 700px) {
  .intro {
    left: 50%;
    top: 84px;
    margin-left: max(-46vw, -170px);
  }
}

/* the moving layers are painted as backgrounds so screen readers skip them */
.paw-left { background: url("/images/paw-left.webp") 0 0 / 100% 100% no-repeat; aspect-ratio: 230 / 94; }
.paw-right { background: url("/images/paw-right.webp") 0 0 / 100% 100% no-repeat; aspect-ratio: 115 / 100; }
.paw-raised { background: url("/images/paw-raised.webp") 0 0 / 100% 100% no-repeat; aspect-ratio: 206 / 373; }
.controller { background: url("/images/controller.webp") 0 0 / 100% 100% no-repeat; aspect-ratio: 342 / 246; }
.eyes-shut { background: url("/images/eyes-shut.webp") 0 0 / 100% 100% no-repeat; aspect-ratio: 594 / 481; }
.face-glare { background: url("/images/face-glare.webp") 0 0 / 100% 100% no-repeat; aspect-ratio: 644 / 497; }

/* header and footer links to X */
.topbar-x {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--ink);
  transition: transform 0.15s, background-color 0.15s;
}

.topbar-x:hover {
  transform: scale(1.08);
  background: var(--hot-pink);
}

.footer-x {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 600;
}

.ticket-number.is-empty {
  padding: 0.3em 0;
  font-size: clamp(32px, 4.4vw, 52px);
  opacity: 0.55;
}

.draw-wallet {
  display: block;
  margin-top: 8px;
  font: 500 clamp(11px, 2.9vw, 15px)/1.4 "Sono", monospace;
  overflow-wrap: anywhere;
}

/* the camera moves in on the cat before the slam */
.scene,
.title {
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.65s ease;
}

.scene {
  transform-origin: 50% 42%;
}

.hero.is-zoomed .scene {
  transform: scale(1.42);
}

.hero.is-zoomed .title {
  opacity: 0.25;
  transform: translateY(-14%) scale(0.94);
}

@media (max-width: 700px) {
  .hero.is-zoomed .scene {
    transform: scale(1.3);
  }
}

/* the CA slot on the first screen: empty and the same size until ca-live fills it (site-rules 3.6) */
.ca-slot {
  min-height: 80px;
  margin-top: 10px;
}

.ca-box--hero {
  gap: 2px;
  margin: 0;
  padding: 9px 14px;
  border-width: 2px;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  text-align: center;
}

.ca-box--hero .ca-address {
  font-size: clamp(11px, 1.05vw, 14px);
}

.ca-box--hero .ca-status {
  font-size: 0.75rem;
}

@media (max-width: 700px) {
  .ca-slot {
    min-height: 80px;
  }

  .ca-box--hero .ca-address {
    font-size: clamp(11px, 3.2vw, 14px);
  }
}

/* short phones: a little less air on top so the CA slot stays on the first screen */
@media (max-width: 700px) and (max-height: 700px) {
  .hero {
    padding-top: 62px;
  }

  .clock-unit {
    font-size: 11.5vw;
  }

  .until {
    margin-top: 0;
    font-size: 0.95rem;
  }
}
