@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #17211b;
  --muted: #647069;
  --paper: #f7f3e8;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(23, 33, 27, 0.14);
  --yellow: #ffcf40;
  --orange: #ff7138;
  --green: #1a7f5a;
  --shadow: 0 24px 80px rgba(45, 38, 20, 0.12);
  --radius: 28px;
  --page-max: 1120px;
}

[data-theme="dark"] {
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --paper: #0f1713;
  --card: rgba(22, 32, 26, 0.88);
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 207, 64, 0.34), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(255, 113, 56, 0.16), transparent 30rem),
    var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 207, 64, 0.12), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(255, 113, 56, 0.1), transparent 30rem),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

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

.mono {
  font-family: "DM Mono", ui-monospace, monospace;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: #17211b;
}

.skip-link:focus {
  top: 16px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 232, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 19, 0.88);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(23, 33, 27, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand span span {
  color: var(--orange);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.desktop-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .desktop-nav a:hover,
[data-theme="dark"] .desktop-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
}

[data-theme="dark"] .signal {
  background: rgba(255, 255, 255, 0.04);
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 127, 90, 0.12);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.signal-change.up {
  color: var(--green);
}

.signal-change.down {
  color: #c43c2c;
}

.signal-change.flat {
  color: var(--muted);
}

#dogePrice.is-ticking {
  display: inline-block;
  animation: price-tick 0.55s ease;
}

.pill {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 750;
}

[data-theme="dark"] .pill {
  background: rgba(255, 255, 255, 0.05);
}

.theme-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

/* —— Live rail (matches dogesoft.io/build marquee) —— */
.live-rail {
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  padding: 0;
  border-block: 1px solid rgba(23, 33, 27, 0.18);
  background: var(--orange);
  transform: rotate(-1deg);
}

[data-theme="dark"] .live-rail {
  border-color: rgba(255, 255, 255, 0.12);
}

.live-rail__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 42s linear infinite;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.live-rail__track span {
  padding: 14px 18px;
}

.live-rail__track span::after {
  margin-left: 36px;
  color: var(--yellow);
  content: "✦";
}

/* —— Layout —— */
main {
  width: min(100% - 32px, var(--page-max));
  margin: 0 auto;
  padding-bottom: 64px;
}

.hero {
  padding: 48px 0 28px;
  text-align: left;
}

.hero-ethos {
  margin: 0 0 14px;
  color: var(--orange);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: ethos-glow 3.6s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.search {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 640px;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
}

[data-theme="dark"] .search-input {
  background: rgba(255, 255, 255, 0.04);
}

.search-input:focus {
  border-color: rgba(255, 113, 56, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 113, 56, 0.12);
}

.search-btn {
  flex: 0 0 auto;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--yellow);
  color: #17211b;
  font-weight: 800;
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 80px;
  top: calc(100% + 8px);
  z-index: 20;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-suggest button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 0.88rem;
}

.search-suggest button:hover {
  background: rgba(255, 113, 56, 0.1);
}

.hero-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* —— Vitals —— */
.vitals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 48px;
}

.vital {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(10px);
  animation: breathe 5.2s ease-in-out infinite;
}

.vital:nth-child(2) {
  animation-delay: -1.2s;
}

.vital:nth-child(3) {
  animation-delay: -2.4s;
}

.vital:nth-child(4) {
  animation-delay: -3.6s;
}

.vital-k {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vital-v {
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.vital-h {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.vital--live .vital-v {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
}

.breathe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(26, 127, 90, 0.45);
  animation: live-ping 1.8s ease-out infinite;
}

/* —— Sections —— */
.section {
  margin-bottom: 72px;
}

.section-head {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head--sub {
  margin-top: 36px;
  margin-bottom: 14px;
}

.section-sub {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

/* —— Flight Stage dock —— */
.flight-dock {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.flight-coin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.flight-coin img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(23, 33, 27, 0.06);
}

.flight-coin span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.flight-coin em {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 113, 56, 0.16);
  color: var(--orange);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flight-coin.is-live {
  border-color: rgba(255, 113, 56, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 113, 56, 0.12);
  animation: soft-float 4.8s ease-in-out infinite;
}

.flight-coin:hover {
  transform: translateY(-3px);
}

.coin-tick-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.coin-card--flight {
  border: 1px solid rgba(255, 113, 56, 0.22);
}

.stream-thumb--coin {
  object-fit: cover;
  background: transparent;
}

.stream-thumb--video {
  object-fit: cover;
  background: #000;
}

/* —— Media surfaces —— */
.media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}

.media-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 52px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(145deg, #1c2620, #0d1210);
}

.media-ph--audio {
  font-size: 1.4rem;
}

.doginal-card .media-fill,
.doginal-card .media-ph,
.doginal-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.doginal-card {
  position: relative;
}

.doginal-card--video .media-fill,
.doginal-card--video video {
  object-fit: cover;
}

.detail-media {
  margin: 12px 0;
  max-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  min-height: 120px;
}

.detail-media .media-fill,
.detail-media video,
.detail-media img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #000;
}

.detail-media .media-ph {
  min-height: 140px;
}

.media-audio {
  width: 100%;
  margin: 8px 0;
}

.media-frame {
  width: 100%;
  min-height: 220px;
  border: 0;
  background: #fff;
}

.media-frame--text {
  background: #f7f3e8;
}

.detail-ins-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-ins-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.detail-ins-prev {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.detail-ins-prev .stream-thumb,
.detail-ins-prev .media-ph,
.detail-ins-prev video {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.detail-actions a.chip-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* —— Stream —— */
.stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stream-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stream-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stream-row.is-new {
  animation: pop-in 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  box-shadow: 0 0 0 2px rgba(255, 113, 56, 0.35);
}

.stream-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stream-badge--drc {
  background: rgba(255, 113, 56, 0.14);
  color: var(--orange);
}

.stream-badge--ins {
  background: rgba(255, 207, 64, 0.35);
  color: #17211b;
}

[data-theme="dark"] .stream-badge--ins {
  color: var(--yellow);
  background: rgba(255, 207, 64, 0.12);
}

.stream-title {
  font-weight: 750;
  letter-spacing: -0.02em;
}

.stream-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.stream-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #111;
}

.stream-thumb--ph {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stream-empty,
.doginal-empty,
.coin-empty {
  padding: 28px 18px;
  border-radius: 18px;
  background: var(--card);
  color: var(--muted);
  text-align: center;
}

/* —— Doginals stage —— */
.doginal-stage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.doginal-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #111;
  aspect-ratio: 1;
  cursor: pointer;
  animation: soft-float 5.8s ease-in-out infinite;
}

.doginal-card:nth-child(3n) {
  animation-delay: -1.6s;
}

.doginal-card:nth-child(4n) {
  animation-delay: -3.2s;
}

.doginal-card.is-new {
  animation: pop-in 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  outline: 2px solid rgba(255, 207, 64, 0.85);
}

.doginal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doginal-card__ph {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 700;
  background: linear-gradient(145deg, #1c2620, #0d1210);
}

.doginal-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* —— Coin river —— */
.coin-river {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.coin-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
  cursor: pointer;
  animation: soft-float 6.2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.coin-card:nth-child(2n) {
  animation-delay: -2s;
}

.coin-card.is-new {
  animation: pop-in 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  box-shadow: 0 0 0 2px rgba(255, 113, 56, 0.4);
}

.coin-card:hover {
  transform: translateY(-3px);
}

.coin-op {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 113, 56, 0.12);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.coin-tick {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.coin-amt {
  margin-top: 4px;
  font-family: "DM Mono", monospace;
  font-size: 0.92rem;
}

.coin-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* —— Blocks —— */
.block-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}

.block-chip {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
}

.block-chip strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.block-chip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-wrap {
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
}

.chart-wrap canvas {
  width: 100% !important;
  height: auto !important;
}

/* —— Detail —— */
.detail {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 60;
  max-width: 720px;
  max-height: min(70vh, 640px);
  margin: 0 auto;
  overflow: auto;
  padding: 20px 20px 24px;
  border-radius: 24px;
  background: #17211b;
  color: #f4f1ea;
  box-shadow: var(--shadow);
  animation: pop-in 0.4s ease both;
}

.detail[hidden] {
  display: none !important;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.detail-top h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.detail-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
}

.detail-body {
  color: rgba(244, 241, 234, 0.78);
  font-size: 0.92rem;
}

.detail-body pre {
  overflow: auto;
  max-height: 280px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-media {
  margin: 12px 0;
  max-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.detail-media img {
  max-height: 220px;
  margin: 0 auto;
  object-fit: contain;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-btn {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.chip-btn:hover {
  background: rgba(255, 207, 64, 0.2);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* —— Toast —— */
.live-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 360px);
  padding: 12px 14px;
  border-radius: 16px;
  color: #fff;
  background: #17211b;
  box-shadow: var(--shadow);
  font-weight: 700;
  animation: pop-in 0.45s ease both;
}

.live-toast[hidden] {
  display: none !important;
}

.live-toast img,
.live-toast__glyph {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
  flex: 0 0 auto;
}

.live-toast__glyph {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--yellow), var(--orange));
  color: #17211b;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.live-toast strong {
  display: block;
  font-size: 0.92rem;
}

.live-toast span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  margin-top: 48px;
  padding: 64px max(20px, calc((100vw - 1280px) / 2)) 28px;
  color: #fff;
  background: #0f1713;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}

.footer-main h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.footer-main h2 span {
  color: var(--yellow);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px 28px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
}

/* —— Motion —— */
@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.75;
  }
}

@keyframes live-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 127, 90, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(26, 127, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 127, 90, 0);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes price-tick {
  0% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-4px);
    color: var(--orange);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes ethos-glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

@media (min-width: 980px) {
  .signal {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .vitals {
    grid-template-columns: 1fr 1fr;
  }

  .stream-row {
    grid-template-columns: 72px 1fr;
  }

  .stream-row .stream-thumb,
  .stream-row .stream-thumb--ph {
    grid-column: 2;
    justify-self: end;
  }

  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .search {
    flex-direction: column;
  }

  .search-suggest {
    right: 0;
  }

  .detail {
    inset: auto 10px 10px 10px;
  }
}

@media (max-width: 560px) {
  .vitals {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-rail__track,
  .signal-dot,
  .breathe-dot,
  .vital,
  .doginal-card,
  .coin-card,
  .stream-row.is-new,
  .doginal-card.is-new,
  .coin-card.is-new,
  .live-toast,
  #dogePrice.is-ticking,
  .hero-ethos {
    animation: none !important;
  }
}
