/* Page frame only: where the wordmark, the LAUNCH sticker, the YOUR CARDS tab, the proof lip and the proof slip sit.
   The look of stickers, tabs, paper and stamps is in base.css. */

#app {
  display: block;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 16px 48px;
  min-height: 70vh;
}
@media (min-width: 900px) {
  #app {
    padding: 0 40px 72px;
  }
}

/* ── top row ─────────────────────────────────────────────────────────────── */
.chrome {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 16px 6px;
}
@media (min-width: 900px) {
  .chrome {
    padding: 22px 40px 8px;
  }
}
.chrome__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.86;
  color: var(--cream, #f4efe2);
  text-decoration: none;
}
.wordmark__name {
  font-family: var(--f-display, Anton, Impact, sans-serif);
  font-size: clamp(34px, 9vw, 64px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  /* riso misregistration: a hard second print, never a glow */
  text-shadow: 3px 3px 0 var(--ink, #111);
}
.wordmark__ticker {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--yellow, #ffd60a);
}
.wordmark:focus-visible {
  outline: 3px solid var(--yellow, #ffd60a);
  outline-offset: 6px;
}

/* the sound toggle is a punched hole in the backer */
.soundhole {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  background: none;
  border: 0;
  color: var(--cream, #f4efe2);
  cursor: pointer;
}
.soundhole__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink, #111);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.14);
}
.soundhole[aria-pressed='true'] .soundhole__dot {
  background: var(--yellow, #ffd60a);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.3), 0 0 0 2px var(--ink, #111);
}
.soundhole__label {
  font-size: 11px;
  letter-spacing: 0.08em;
}
@media (max-width: 520px) {
  .soundhole__label {
    display: none;
  }
}

/* ── the YOUR CARDS file tab, sticking out of the right edge ─────────────── */
.chrome__tab {
  position: fixed;
  z-index: 30;
  right: 0;
  top: 38vh;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px 10px 14px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-decoration: none;
  transform: translateX(6px);
  transition: transform 90ms steps(2);
}
.chrome__tab:hover,
.chrome__tab:focus-visible {
  transform: translateX(0);
}
.chrome__tab-text {
  font-family: var(--f-display, Anton, Impact, sans-serif);
  font-size: 15px;
  letter-spacing: 0.06em;
}
.chrome__tab-count {
  writing-mode: horizontal-tb;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 13px;
  background: var(--red, #d4202a);
  color: #fff;
  font-family: var(--f-mono, 'Space Mono', monospace);
  font-weight: 700;
  font-size: 13px;
  border: 2px solid var(--ink, #111);
}
.chrome__tab.has-cards {
  animation: tab-nudge 1.6s steps(2) infinite;
}
@keyframes tab-nudge {
  0%,
  80%,
  100% {
    transform: translateX(6px);
  }
  88% {
    transform: translateX(-2px);
  }
}
html[data-route='me'] .chrome__tab {
  display: none;
}

/* ── the proof lip (phones): the pad's last drop, always in view ─────────── */
.lip {
  position: fixed;
  z-index: 25;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 14px calc(8px + env(safe-area-inset-bottom));
  border: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
.lip__coin {
  font-weight: 700;
}
.lip__to {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lip__ago {
  opacity: 0.75;
}
.lip__proof {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lip.is-new {
  animation: lip-print 260ms steps(5);
}
@keyframes lip-print {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 899px) {
  .lip:not([hidden]) {
    display: flex;
  }
  html.has-lip body {
    padding-bottom: 64px;
  }
}
@media (max-width: 380px) {
  .lip__ago {
    display: none;
  }
}

/* ── the proof slip ──────────────────────────────────────────────────────── */
.proof-wrap {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
.proof {
  width: min(440px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
  outline: 0;
  animation: proof-feed 320ms steps(8);
}
@keyframes proof-feed {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.proof__head {
  font-size: 13px;
  letter-spacing: 0.06em;
}
.proof__big {
  margin: 6px 0 10px;
  font-family: var(--f-display, Anton, Impact, sans-serif);
  font-size: 30px;
  line-height: 1;
}
.proof__to,
.proof__time,
.proof__status {
  font-size: 13px;
  line-height: 1.7;
}
.proof__status {
  font-weight: 700;
}
.proof__list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.proof__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 13px;
}
.proof__k {
  opacity: 0.75;
}
.proof__v {
  font-weight: 700;
  color: inherit;
  word-break: break-all;
  text-align: right;
}
a.proof__v {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.proof__note {
  margin: 10px 0 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.proof__coin {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  text-underline-offset: 3px;
}
.proof__close {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 2px dashed currentColor;
  background: none;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .proof,
  .lip.is-new,
  .chrome__tab.has-cards {
    animation: none;
  }
}

/* ── small print on every page ───────────────────────────────────────────── */
.chrome__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 8px 16px 28px;
  text-align: center;
}
.chrome__links {
  display: inline-flex;
  gap: 14px;
}
.chrome__links a {
  color: inherit;
}

/* phones: the tab does not hang over the card. It sits on the proof lip like an index tab. */
@media (max-width: 899px) {
  .chrome__tab {
    top: auto;
    right: 10px;
    bottom: 0;
    min-height: 44px;
    padding: 8px 14px 6px;
    writing-mode: horizontal-tb;
    transform: none;
    animation: none;
  }
  html.has-lip .chrome__tab {
    bottom: calc(50px + env(safe-area-inset-bottom));
  }
  .chrome__tab:hover,
  .chrome__tab:focus-visible {
    transform: none;
  }
  .chrome__tab.has-cards {
    animation: tab-hop 1.6s steps(2) infinite;
  }
}
@keyframes tab-hop {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  88% {
    transform: translateY(-6px);
  }
}

/* Small printed lines must stay easy to read. The broken-ink look is for giant type only. */
.print:not(.print--xl) {
  -webkit-mask-image: none;
  mask-image: none;
}
