/* ============================================================================
 * RoomStamp - RoomStamp-home.css
 *
 * Purpose:
 * Home entry (`/`) — aligned to mock-01 / mock-02 glass cards and glows.
 *
 * Layer: pages
 * Last updated: 2026-04-24T12:00:00Z
 * ============================================================================ */

@import "../components/room-mock-stack-core.css";

/* Home: slightly taller top bar + larger wordmark logo */
.rs-app.rs-app--home-brand-header {
  --rs-app-header-h: 60px;
}

.rs-app.rs-app--home-brand-header .rs-app-header__brand-img {
  max-height: 46px;
  max-width: min(218px, calc(100vw - 200px));
}

/* Home hero mock: logo reads from the left like the reference frame. */
.rs-page--home .rs-app-header__scan-link {
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  border-color: transparent;
}

.rs-page--home .rs-app-header__scan-link.is-rs-header-scan-visible {
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  border-color: transparent;
}

.rs-page--home .rs-app-header__brand {
  left: calc(10px + env(safe-area-inset-left, 0px));
  right: auto;
  transform: translateY(-50%);
}

/* Document canvas + network motifs: layouts/roomstamp-app-site-tone.css (all app pages). */

.rs-home,
.rs-tab-hub {
  width: min(calc(100% - 28px), var(--rs-app-canvas-max));
  margin-left: auto;
  margin-right: auto;
}

.rs-home {
  padding: 1.05rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.rs-tab-hub {
  padding: 0.35rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rs-tab-hub .rs-home__hero {
  padding-top: 0.25rem;
}

.rs-home__hero {
  text-align: center;
  padding: 0.35rem 0 0;
}

.rs-home__hero img {
  display: none !important;
}

.rs-home__kicker {
  margin: 0 auto;
  max-width: min(25ch, 100%);
  font-family: var(--font-sans);
  font-size: clamp(1.34rem, 4.35vw, 1.9rem);
  font-weight: 600;
  color: rgb(34 44 96);
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.rs-home__lede {
  margin: 0.58rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 500;
  color: rgb(71 85 105);
  line-height: 1.45;
  max-width: min(48ch, 100%);
  margin-left: auto;
  margin-right: auto;
}

.rs-scan-meta--flush {
  margin-top: 0;
}

@media (max-width: 390px) {
  .rs-home__kicker {
    font-size: 1.28rem;
  }

  .rs-home__lede {
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .rs-home__kicker {
    font-size: 1.24rem;
  }

  .rs-home__lede {
    font-size: 0.88rem;
  }
}

@media (min-width: 768px) {
  .rs-home__actions {
    gap: 18px;
  }

  .rs-home__card {
    padding: 1.55rem 1.6rem;
  }

  .rs-home__card-title {
    font-size: 1.22rem;
  }

  .rs-home__card-desc {
    font-size: 0.98rem;
  }

  .rs-home__past-title {
    font-size: 1.12rem;
  }

  .rs-home__past-sub {
    font-size: 0.88rem;
  }

  .rs-past-card {
    flex: 0 0 min(338px, 80vw);
    min-height: 268px;
    padding: 0.95rem 0.95rem 0.88rem;
    gap: 0.58rem;
  }

  .rs-past-card--cover {
    min-height: 276px;
  }

  .rs-past-card--cover .rs-past-card__title {
    font-size: 1.12rem;
  }

  .rs-past-card--cover .rs-past-card__meta {
    font-size: 0.92rem;
  }

  .rs-past-card__icon {
    width: 2.2rem;
    height: 2.2rem;
  }

  .rs-past-card__icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (min-width: 900px) {
  .rs-home__lede {
    max-width: min(56ch, 100%);
    font-size: 1.12rem;
  }

  .rs-home__kicker {
    font-size: clamp(2rem, 3.4vw, 2.65rem);
  }

  .rs-home__card {
    padding: 1.75rem 1.85rem;
  }

  .rs-home__card-title {
    font-size: 1.32rem;
  }

  .rs-home__card-desc {
    font-size: 1.05rem;
  }

  .rs-home__past-title {
    font-size: 1.22rem;
  }

  .rs-past-card {
    flex: 0 0 min(368px, 44vw);
    min-height: 288px;
  }

  .rs-past-card--cover {
    min-height: 296px;
  }
}

.rs-home__actions {
  display: grid;
  gap: 14px;
}

.rs-home__free-note {
  margin: 0.15rem auto 0;
  max-width: 36ch;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgb(71 85 105);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
 * Home — tech-forward chrome (indigo secondaries, tighter radii, calmer depth)
 * -------------------------------------------------------------------------- */
body.rs-page--home .rs-home__kicker {
  color: rgb(30 41 85);
  letter-spacing: -0.02em;
}

body.rs-page--home .rs-home-join-card {
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 92%) inset,
    0 6px 20px rgb(15 23 42 / 4%),
    0 1px 6px rgb(15 23 42 / 3%);
}

body.rs-page--home .rs-home-join-card__icon {
  border-radius: 9px;
}

body.rs-page--home .rs-home-join-card__enter {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--rs-logo-blue) 0%, #1d4ed8 52%, #1e3a8a 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 28%),
    0 2px 6px rgba(30, 58, 138, 0.35);
  transition: filter 0.12s ease, box-shadow 0.12s ease, transform 0.1s ease;
}

body.rs-page--home .rs-home-gradient-cta {
  border-radius: 14px;
  box-shadow: none;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

/* Scan / Create fills: --rs-cta-scan-gradient + --rs-cta-create-gradient (variables.css). */

/* Join strip + CTAs: ../components/room-mock-stack-core.css (shared with room-entry dialog). */

html.rs-room-theme--light body.rs-page--home {
  --rs-card: rgba(255, 255, 255, 0.96);
  --rs-glass-surface: rgba(255, 255, 255, 0.92);
  --rs-brand-muted: rgba(45, 121, 255, 0.12);
  --rs-brand-border: rgba(45, 121, 255, 0.22);
}

html.rs-room-theme--light body.rs-page--home .rs-page-footer {
  margin-top: 0.65rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e2e8f0;
}

html.rs-room-theme--light body.rs-page--home .rs-page-footer .rs-legal {
  color: #64748b;
}

html.rs-room-theme--light body.rs-page--home .rs-page-footer .rs-legal a {
  color: var(--rs-tab-create-icon);
}

html.rs-room-theme--light body.rs-page--home .rs-page-footer .rs-legal a:hover {
  color: var(--rs-tab-create-icon-active);
}

.rs-home__past {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.75rem;
}

.rs-home__past-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.rs-home__past-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--rs-text);
  font-weight: 800;
}

.rs-home__past-sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--rs-text-secondary);
}

.rs-home__past-sub--retry {
  margin-top: 0.35rem;
}

.rs-home__carousel {
  position: relative;
  overflow: visible;
  border-radius: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Past events: RoomStamp carousel (see roomstamp-home-past-events.js) */
.rs-home-past-carousel.rs-carousel {
  width: 100%;
  padding: 0.18rem 0 0.38rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rs-home-past-carousel.rs-carousel::-webkit-scrollbar {
  display: none;
}

.rs-home-past-carousel .rs-carousel__track {
  align-items: stretch;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  transition: none;
  will-change: auto;
}

.rs-home-past-carousel .rs-carousel__slide {
  width: min(360px, 82vw);
  height: auto;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  /* No `transform: translateZ(0)` / `backface-visibility: hidden` here.
     The RoomStamp carousel rail already scrolls natively, so
     the slides don't need their own GPU layer. Forcing one rasterizes the
     card text and produces blurry/jagged glyph edges on non-retina displays. */
}

.rs-home-past-carousel .rs-past-card {
  width: 100%;
  flex: 1 1 auto;
}

.rs-home-past-carousel .rs-home__past-sub {
  align-self: center;
  padding: 0.35rem 0.25rem;
}

/* Past cards — gradient ring + soft tinted interior (readable; avoids RoomStamp carousel/WebKit backdrop bugs) */

.rs-past-card {
  /* Slightly narrower tiles for faster, denser scroll flow */
  flex: 1 1 auto;
  width: 100%;
  max-width: 360px;
  min-height: 248px;
  scroll-snap-align: start;
  border-radius: 8px;
  border: 0;
  /* Muted ring palette — thin masked border, not a loud frame */
  --rs-past-ring-w: 2.5px;
  --rs-past-ring-scan-a: rgba(45, 121, 255, 0.4);
  --rs-past-ring-scan-b: rgba(14, 165, 233, 0.34);
  --rs-past-ring-create-a: rgba(14, 165, 233, 0.32);
  --rs-past-ring-create-b: rgba(45, 121, 255, 0.28);
  background: transparent;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  padding: 0.82rem 0.82rem 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* Border ring: gradient exists only in the ring (no full-card color wash) */
.rs-past-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-sizing: border-box;
  padding: var(--rs-past-ring-w);
  background: conic-gradient(
    var(--rs-past-ring-scan-a),
    var(--rs-past-ring-scan-b),
    var(--rs-past-ring-create-a),
    var(--rs-past-ring-create-b),
    var(--rs-past-ring-scan-a)
  );
  opacity: 0.72;
  z-index: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.rs-past-card:nth-child(even)::before {
  background: conic-gradient(
    var(--rs-past-ring-create-a),
    var(--rs-past-ring-create-b),
    var(--rs-past-ring-scan-a),
    var(--rs-past-ring-scan-b),
    var(--rs-past-ring-create-a)
  );
}

/* Inner fill: soft “glass” tint only — no backdrop-filter here. Carousel slides can
   combine with isolation/overflow in WebKit and sometimes
   samples the wrong layer and blurs the card’s own text when ::after blurs. */
.rs-past-card::after {
  content: "";
  position: absolute;
  inset: var(--rs-past-ring-w);
  border-radius: calc(8px - var(--rs-past-ring-w));
  z-index: 1;
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.82) 42%,
    rgba(248, 250, 252, 0.86) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.rs-past-card > * {
  position: relative;
  z-index: 2;
}

.rs-past-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06), 0 0 12px rgba(45, 121, 255, 0.12);
}

.rs-past-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rs-past-card--cover {
  min-height: 252px;
  justify-content: flex-end;
}

.rs-past-card--cover.rs-past-card--startup {
  --rs-past-accent-a: #6366f1;
  --rs-past-accent-b: #2563eb;
}

.rs-past-card--cover.rs-past-card--tech {
  --rs-past-accent-a: #3b82f6;
  --rs-past-accent-b: #06b6d4;
}

.rs-past-card--cover.rs-past-card--healthcare {
  --rs-past-accent-a: #0d9488;
  --rs-past-accent-b: #06b6d4;
}

.rs-past-card--cover.rs-past-card--finance {
  --rs-past-accent-a: #4a90e2;
  --rs-past-accent-b: #6366f1;
}

.rs-past-card__cover-fade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Slightly stronger veil on cover tiles so titles stay legible over glass */
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0) 58%);
  opacity: 0.34;
  pointer-events: none;
  z-index: 3;
}

.rs-past-card__cover-head,
.rs-past-card__cover-main,
.rs-past-card__cover-icons,
.rs-past-card__stats {
  position: relative;
  z-index: 4;
}

.rs-past-card__cover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}

.rs-past-card__cover-main {
  text-align: center;
  padding: 0.2rem 0;
}

.rs-past-card--cover .rs-past-card__title {
  font-size: 1.05rem;
}

.rs-past-card--cover .rs-past-card__meta {
  font-size: 0.86rem;
  color: var(--rs-text-secondary);
}

.rs-past-card__cover-icons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 0.15rem 0 0.35rem;
  opacity: 1;
}

.rs-past-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.rs-past-card__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rs-past-card__icon--people svg {
  stroke: #60a5fa;
}

.rs-past-card__icon--link svg {
  stroke: #0ea5e9;
}

.rs-past-card__icon--calendar svg {
  stroke: #4a90e2;
}

.rs-past-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4f8ff7;
}

.rs-past-card__ago {
  font-size: 0.72rem;
  color: var(--rs-text-secondary);
}

.rs-past-card__title {
  margin: 0;
  color: var(--rs-text);
  font-size: 0.95rem;
  line-height: 1.32;
  font-weight: 800;
}

.rs-past-card__location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.1rem auto 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-size: 0.73rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: calc(100% - 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.rs-past-card__meta {
  margin: 0;
  color: var(--rs-text-secondary);
  font-size: 0.75rem;
  line-height: 1.45;
}

.rs-past-card__desc {
  margin: 0;
  color: var(--rs-text-secondary);
  font-size: 0.76rem;
  line-height: 1.5;
}

.rs-past-card__stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.rs-past-card__stat {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 0.18rem;
  min-height: 4.65rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.55rem 0.4rem;
  overflow: hidden;
}

.rs-past-card__stat-label {
  margin: 0;
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rs-text-muted);
  line-height: 1;
  min-height: 0;
  display: block;
  width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rs-past-card__stat-label--tight {
  font-size: 0.54rem;
  line-height: 1;
  min-height: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  letter-spacing: 0.005em;
}

@media (min-width: 768px) {
  .rs-past-card__stat-label--tight {
    font-size: 0.5rem;
  }
}

.rs-past-card__stat-value {
  margin: 0;
  font-size: 1.08rem;
  color: var(--rs-text);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.rs-home__card {
  display: block;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--rs-card);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(45, 121, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rs-home__card:hover {
  border-color: rgba(45, 121, 255, 0.26);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1), 0 0 36px rgba(45, 121, 255, 0.12);
  transform: translateY(-2px);
}

.rs-home__card-title {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--rs-text);
}

.rs-home__card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rs-text-secondary);
  line-height: 1.45;
}

.rs-home__join-hint {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--rs-card);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.88rem;
  color: var(--rs-text-secondary);
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rs-home__join-hint strong {
  color: var(--rs-text);
  font-weight: 800;
}

.rs-home__join-hint code {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--rs-brand-hover);
  word-break: break-all;
  font-family: ui-monospace, monospace;
}

.rs-page-footer {
  width: min(calc(100% - 28px), var(--rs-app-canvas-max));
  margin: 0.45rem auto 0;
  padding: 0 0.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ============================================================================
 * Dark site theme — home + create (glass like event room; fixes past-card contrast)
 * When `<html>` lacks `rs-room-theme--light`. Manual toggle sets the same boundary.
 * ============================================================================ */

html:not(.rs-room-theme--light) body.rs-page--home .rs-home__kicker {
  color: #f1f5f9;
  text-shadow: none;
}

html:not(.rs-room-theme--light) body.rs-page--create .rs-home__kicker {
  color: #e8ecff;
  text-shadow: 0 1px 22px rgba(99, 102, 241, 0.35);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-home__lede,
html:not(.rs-room-theme--light) body.rs-page--create .rs-home__lede {
  color: #cbd5e1;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-home__free-note,
html:not(.rs-room-theme--light) body.rs-page--create .rs-home__free-note {
  color: #94a3b8;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-home-join-card,
html:not(.rs-room-theme--light) body.rs-page--create .rs-home-join-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(165deg, rgba(33, 45, 69, 0.96) 0%, rgba(24, 34, 54, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(45, 121, 255, 0.14);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-home-join-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(45, 121, 255, 0.14);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-home-join-card__label,
html:not(.rs-room-theme--light) body.rs-page--create .rs-home-join-card__label {
  color: #e2e8f0;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-home-join-card__input,
html:not(.rs-room-theme--light) body.rs-page--create .rs-home-join-card__input {
  color: #f1f5f9;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-home-join-card__input::placeholder,
html:not(.rs-room-theme--light) body.rs-page--create .rs-home-join-card__input::placeholder {
  color: #94a3b8;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-home__join-hint,
html:not(.rs-room-theme--light) body.rs-page--create .rs-home__join-hint {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card::after {
  background: linear-gradient(
    158deg,
    rgba(30, 41, 59, 0.96) 0%,
    rgba(22, 28, 48, 0.94) 45%,
    rgba(15, 23, 42, 0.92) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__cover-fade {
  background: radial-gradient(120% 90% at 50% 0%, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0) 62%);
  opacity: 0.55;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 121, 255, 0.14);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(45, 121, 255, 0.2);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__stat {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__stat-label {
  color: #94a3b8;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__stat-value {
  color: #f1f5f9;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__icon {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__badge {
  color: #7dd3fc;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__ago {
  color: #94a3b8;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card--cover .rs-past-card__meta {
  color: #cbd5e1;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__title {
  color: #f8fafc;
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__location {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.78);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html:not(.rs-room-theme--light) body.rs-page--home .rs-past-card__meta {
  color: #cbd5e1;
}

/* /home/ route uses rs-page--home-landing; mirror dark past-card contract. */
html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card::after {
  background: linear-gradient(
    158deg,
    rgba(30, 41, 59, 0.96) 0%,
    rgba(22, 28, 48, 0.94) 45%,
    rgba(15, 23, 42, 0.92) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__cover-fade {
  background: radial-gradient(120% 90% at 50% 0%, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0) 62%);
  opacity: 0.55;
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 121, 255, 0.14);
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(45, 121, 255, 0.2);
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__stat {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__stat-label {
  color: #94a3b8;
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__stat-value {
  color: #f1f5f9;
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__icon {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__badge {
  color: #7dd3fc;
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__ago {
  color: #94a3b8;
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card--cover .rs-past-card__meta {
  color: #cbd5e1;
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__title {
  color: #f8fafc;
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__location {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.78);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html:not(.rs-room-theme--light) body.rs-page--home-landing .rs-past-card__meta {
  color: #cbd5e1;
}
