/* WireEx design tokens
   palette: blazer red #E63329 / paper white #FFFFFF / cash green #2ECC71 / ink #1A1A1A / label grey #6B6B6B
   type: Fredoka 600/700 (poster headers) + Manrope 500/700/800 (ticker digits, body)
   radius: 0 (flat cartoon poster, matches the avatar's bold outline art, no rounding/soft shadow)
   motion: one live setInterval ticker, nothing else
*/

@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/fredoka-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/fredoka-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --red: #E63329;
  --white: #FFFFFF;
  --green: #2ECC71;
  --ink: #1A1A1A;
  --label: #6B6B6B;
  --paper: #FFF9F2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--white);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, sans-serif;
  overflow-x: hidden;
}

.scene {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 56px);
  padding: clamp(16px, 3vh, 40px) clamp(16px, 4vw, 64px);
}

.portrait {
  flex: 0 1 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait__img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  filter: drop-shadow(10px 10px 0 rgba(26, 26, 26, 0.08));
}

.slip {
  flex: 0 1 480px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--red);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(18px, 2.6vw, 26px);
  position: relative;
}

.slip__status {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--label);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C9C4B8;
}
.dot.is-live {
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.slip__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
}

.slip__title {
  margin: 0 0 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.06;
  color: var(--ink);
}

.slip__sub {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--label);
  max-width: 40ch;
}

.ticker {
  background: var(--ink);
  color: var(--white);
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 3px solid var(--ink);
}
.ticker__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #B9B4A6;
  margin-bottom: 4px;
}
.ticker__value {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 52px);
  color: var(--green);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.ticker__caption {
  margin: 8px 0 0;
  font-size: 13px;
  color: #DCD8CC;
  min-height: 2.6em;
}

.rows {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed #D8D0BE;
  padding-bottom: 6px;
}
.row dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--label);
}
.row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}
.row--ca .ca {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  color: var(--ink);
  background: #F1ECDF;
  padding: 4px 8px;
  border: 1px solid #D8D0BE;
}
.row--ca .ca:hover,
.row--ca .ca:focus-visible {
  border-color: var(--red);
  outline: none;
}
.row--ca .ca.is-copied {
  color: var(--green);
  border-color: var(--green);
}

.actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}
.btn {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 3px solid var(--ink);
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  flex: 1;
}
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--icon {
  background: var(--white);
  color: var(--ink);
  width: 48px;
  padding: 0;
  flex: 0 0 auto;
}
.btn--icon:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }

.slip__foot {
  margin: 0;
  font-size: 12.5px;
  color: var(--label);
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .dot.is-live { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 920px) {
  .scene {
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .portrait { flex: 0 0 auto; }
  .portrait__img { max-width: 220px; }
  .slip { flex: 0 0 auto; width: 100%; max-width: 460px; padding: 16px 18px 14px; }
  .slip__sub { margin-bottom: 14px; }
  .ticker { padding: 14px 16px; margin-bottom: 14px; }
  .rows { margin-bottom: 14px; gap: 6px; }
}

@media (max-width: 400px) {
  .slip__title { font-size: 22px; }
  .slip__sub { font-size: 13px; }
  .ticker__value { font-size: 28px; }
  .portrait__img { max-width: 170px; }
  .row dd, .row--ca .ca { font-size: 12.5px; }
}
