/* tokens, locked off the approved art:
   ink #0a0a0a bg, paper #f2f0ea, lime #ccff00 (the cat's eyes), brass #b8892b (the plate)
   type: Anton (display shout) + IBM Plex Mono (engraved / data), a deliberate duo
   spacing scale: 8 / 12 / 20 / 32 / 56px. corners: 0 everywhere except the pill chips. motion: one flick idiom. */

@font-face {
  font-family: 'Anton';
  src: url('assets/fonts/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('assets/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('assets/fonts/plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('assets/fonts/plex-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --ink-2: #131313;
  --paper: #f2f0ea;
  --line: rgba(242, 240, 234, 0.16);
  --lime: #ccff00;
  --brass: #b8892b;
  --brass-dark: #6e4e18;
  --brass-hi: #eccf8b;
  --dim: #8f8d86;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Plex Mono', ui-monospace, monospace;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.wordmark {
  font-family: 'Anton', sans-serif;
  font-size: clamp(20px, 3.2vw, 30px);
  letter-spacing: 0.02em;
  color: var(--paper);
}

.ticker {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--lime);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
}

.vault {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 16px;
}

.vault-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: #000;
}

.vault-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.tail-sprite {
  position: absolute;
  left: 30.133%;
  top: 59%;
  width: 10.533%;
  height: 27%;
  transform-origin: 87% 11%;
  pointer-events: none;
  user-select: none;
}

.tail-sprite.flick {
  animation: tailflick 0.5s ease-out 1;
}

@keyframes tailflick {
  0%   { transform: rotate(0deg); }
  28%  { transform: rotate(-11deg); }
  55%  { transform: rotate(7deg); }
  78%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

.dial-hit {
  position: absolute;
  left: 53%;
  top: 67%;
  width: max(46px, 8.267%);
  height: max(46px, 24.8%);
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dial-hit:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 50%;
}

.dial-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: filter 0.15s ease;
}

.dial-hit:hover .dial-sprite,
.dial-hit:focus-visible .dial-sprite {
  filter: drop-shadow(0 0 6px rgba(204, 255, 0, 0.55));
}

.dial-sprite.spin {
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}

.plate {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 45%, var(--brass-dark));
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 6px 0 rgba(0,0,0,0.35);
  padding: 12px 16px;
}

.ca-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #241a08;
  font-family: 'Plex Mono', monospace;
  text-align: left;
  min-width: 0;
}

.ca-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #4a3410;
  flex: none;
}

.ca-value {
  font-weight: 600;
  font-size: clamp(12px, 2.6vw, 15px);
  letter-spacing: 0.01em;
  word-break: break-all;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.readout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  color: #241a08;
  min-width: 0;
}

.readout-line {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.readout-sub {
  font-size: 11px;
  color: #4a3410;
}

.lede {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 0 24px;
  text-align: center;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.6;
}

.chrome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 0 16px;
}

.chips {
  display: flex;
  gap: 10px;
}

.network-line {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  font-family: 'Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover, .chip:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

@media (max-width: 560px) {
  .plate {
    flex-direction: column;
    align-items: stretch;
  }
  .readout { text-align: left; }
}

@media (min-width: 920px) {
  .lede { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .tail-sprite.flick { animation: none; }
  .dial-sprite.spin { transition: none; }
  .chip { transition: none; }
}
