*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #101114;
  --paper: #efe6d4;
  --ink: #16140f;
  --mute: #8a8376;
  --line: rgba(239, 230, 212, 0.12);
  --coral: #ff5a36;
  --mint: #c6f34d;
  --sky: #3aa8ff;
  --max: 430px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: Sora, "Segoe UI", sans-serif;
  color: var(--paper);
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(255, 90, 54, 0.18), transparent 50%),
    radial-gradient(70% 40% at 0% 20%, rgba(198, 243, 77, 0.08), transparent 45%),
    var(--bg);
  padding: 0 0 108px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0b0c0e;
  color: var(--mint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: ticker 22s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pass {
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px 28px 22px 22px;
  padding: 20px 20px 16px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pass-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.stamp {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  border: 1.5px dashed #16140f;
  padding: 5px 8px;
  transform: rotate(-2deg);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e23b22;
  box-shadow: 0 0 0 4px rgba(226, 59, 34, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(1.2); opacity: 0.7; }
}

.pass-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d675b;
}

.pass-amount {
  font-family: Unbounded, sans-serif;
  font-size: clamp(3rem, 15vw, 4.3rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 6px 0 8px;
}

.pass-amount em {
  font-style: normal;
  color: var(--coral);
}

.pass-sub {
  font-size: 0.95rem;
  color: #4a463d;
}

.pass-tear {
  height: 18px;
  margin: 22px -20px 14px;
  background:
    radial-gradient(circle at 10px 0, var(--bg) 10px, transparent 11px) 0 0 / 20px 18px repeat-x;
}

.pass-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 72px;
  gap: 10px;
  align-items: end;
}

.pass-foot small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d675b;
}

.pass-foot strong {
  font-size: 0.82rem;
}

.barcode {
  height: 36px;
  background: repeating-linear-gradient(
    90deg,
    #16140f 0 2px,
    transparent 2px 4px,
    #16140f 4px 5px,
    transparent 5px 8px,
    #16140f 8px 11px,
    transparent 11px 13px
  );
}

.dock {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
}

.gauge,
.clock {
  background: #18191d;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.gauge {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.gauge svg {
  width: 88%;
  transform: rotate(-90deg);
}

.gauge-track,
.gauge-ring {
  fill: none;
  stroke-width: 8;
}

.gauge-track { stroke: #2a2c32; }
.gauge-ring {
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-dasharray: 267;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.6s ease;
}

.gauge-core {
  position: absolute;
  text-align: center;
}

.gauge-core strong {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.gauge-core span {
  font-size: 0.62rem;
  color: var(--mute);
}

.clock {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clock > p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.clock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.clock-row div {
  background: #101114;
  border-radius: 12px;
  text-align: center;
  padding: 8px 0 6px;
}

.clock-row b {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.clock-row small {
  color: var(--mute);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clock-note {
  font-size: 0.72rem;
  color: #b7b1a4;
}

.editorial,
.flow,
.quotes {
  padding: 4px 4px 0;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 8px;
}

.editorial h2 {
  font-family: Unbounded, sans-serif;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.editorial p {
  color: #c8c2b4;
  font-size: 0.94rem;
  line-height: 1.6;
}

.editorial em {
  font-style: normal;
  color: var(--paper);
  font-weight: 700;
}

.flow ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.flow li:last-child { border-bottom: 1px solid var(--line); }

.flow span {
  font-family: Unbounded, sans-serif;
  font-size: 0.85rem;
  color: var(--coral);
}

.flow p {
  font-size: 0.95rem;
  color: #ddd6c6;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(180deg, #1b1c21, #141518);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.metrics div {
  padding: 14px 8px;
  text-align: center;
}

.metrics div + div {
  border-left: 1px solid var(--line);
}

.metrics b {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.metrics span {
  display: block;
  font-size: 0.62rem;
  color: var(--mute);
  line-height: 1.3;
}

.quotes article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Unbounded, sans-serif;
  font-size: 0.72rem;
  background: #2a231c;
  color: var(--mint);
}

.quotes header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.quotes header span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  color: var(--mute);
}

.quotes article p {
  color: #c8c2b4;
  font-size: 0.88rem;
  line-height: 1.5;
}

.warn {
  text-align: center;
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 8px 8px;
}

.cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  max-width: calc(var(--max) - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sky);
  color: #061018;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 18px 16px 22px;
  font-family: Unbounded, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(58, 168, 255, 0.32);
}

.cta i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #061018 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233aa8ff' stroke-width='2.4'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}

@media (min-width: 462px) {
  .cta { left: 0; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .live i { animation: none; }
}
