/* ============================================================
   Ultra Label — reset, typography, base elements, utilities.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  color: var(--clr-text-primary);
  background: var(--clr-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.display-xl { font-size: var(--text-display-xl); }
.display-lg { font-size: var(--text-display-lg); }
.display-md { font-size: var(--text-display-md); }

:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }
.section { margin-block: var(--space-10); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.section__title { font-size: var(--text-display-md); }
.section__link { font-size: var(--text-sm); font-weight: 600; color: var(--clr-accent); white-space: nowrap; }

/* ---------- utilities ---------- */
.u-muted { color: var(--clr-text-secondary); }
.u-small { font-size: var(--text-sm); }
.u-xs { font-size: var(--text-xs); }
.u-bold { font-weight: 700; }
.u-center { text-align: center; }
.u-mt-2 { margin-top: var(--space-2); } .u-mt-4 { margin-top: var(--space-4); }
.u-mt-6 { margin-top: var(--space-6); } .u-mt-8 { margin-top: var(--space-8); }
.u-mb-4 { margin-bottom: var(--space-4); } .u-mb-6 { margin-bottom: var(--space-6); }
.u-flex { display: flex; align-items: center; gap: var(--space-3); }
.u-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.u-grow { flex: 1; }
.u-hide-mobile { display: none; }
@media (min-width: 768px) { .u-hide-mobile { display: initial; } .u-hide-desktop { display: none; } }

/* ---------- skeleton ---------- */
.skel {
  position: relative; overflow: hidden;
  background: var(--clr-surface-2); border-radius: var(--radius-sm);
}
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: skel-shimmer 1.3s infinite;
}
@keyframes skel-shimmer { 100% { transform: translateX(100%); } }

/* ---------- reveal ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s ease both; }

/* ---------- scroll rows ---------- */
.scroll-row {
  display: flex; gap: var(--space-3); overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--space-2);
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { scroll-snap-align: start; flex-shrink: 0; }
