:root {
  --ink: #0b1220;
  --ink-soft: #334155;
  --paper: #f7f4ef;
  --paper-elevated: #fffdf9;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #0f766e;
  --accent-hot: #e11d48;
  --save: #0ea5e9;
  --shadow: 0 24px 60px rgba(11, 18, 32, 0.28);
  --nav-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background: #081018;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.is-hidden {
  display: none !important;
}

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px 32px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 80%, rgba(244, 63, 94, 0.16), transparent 50%),
    linear-gradient(160deg, #071018 0%, #122033 48%, #0a1520 100%);
}

.stage__glow {
  position: absolute;
  inset: auto auto 12% 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 68%);
  pointer-events: none;
  filter: blur(10px);
}

.stage__hint {
  position: absolute;
  bottom: 14px;
  margin: 0;
  color: rgba(226, 232, 240, 0.55);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.phone {
  width: min(100%, 420px);
  height: min(860px, calc(100dvh - 72px));
  background: var(--paper);
  border-radius: 36px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 28px;
  background: #05080f;
  border-radius: 999px;
  z-index: 5;
}

.phone__screen {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-top: 18px;
}

.screen {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 0 calc(var(--nav-h) + var(--safe-bottom) + 8px);
  scrollbar-width: none;
  animation: fadeUp 0.24s ease;
}

.screen::-webkit-scrollbar {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 32px 18px 12px;
  position: relative;
  z-index: 1;
  background: transparent;
}

.topbar__eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topbar h1,
.brand {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand {
  background: linear-gradient(120deg, #0f766e, #134e4a 45%, #be123c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
}

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

.api-note {
  margin: 0 18px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.api-note code {
  font-size: 11px;
  color: var(--accent);
}

.lesson-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1220;
}

.lesson-card__gallery {
  display: none;
}

.linkish {
  color: var(--accent);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.lesson-card__credit {
  margin: 12px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.lesson-card__credit a {
  color: var(--accent);
  font-weight: 600;
}

.story-viewer__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
}


.stories {
  padding: 4px 0 12px;
}

.stories__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stories__track::-webkit-scrollbar {
  display: none;
}

.story {
  flex: 0 0 auto;
  width: 74px;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.story__ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  display: block;
  flex-shrink: 0;
  background: linear-gradient(135deg, #14b8a6, #e11d48);
  box-sizing: border-box;
}

.story.is-seen .story__ring {
  background: #cbd5e1 !important;
}

.story__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
  box-shadow: inset 0 0 0 2.5px var(--paper);
}

.story__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  max-width: none;
}

.story__label {
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.otd-rail {
  padding: 2px 0 16px;
}

.otd-rail__head {
  padding: 0 18px 10px;
}

.otd-rail__head h2 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.otd-rail__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.otd-rail__track::-webkit-scrollbar {
  display: none;
}

.otd-chip {
  flex: 0 0 220px;
  width: 220px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 8px;
  text-align: left;
  padding: 0 0 4px;
  min-height: 228px;
}

.otd-chip__media {
  position: relative;
  display: block;
  width: 220px;
  height: 128px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

.otd-chip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.otd-chip__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 28px;
  background: linear-gradient(135deg, #d97706, #7c2d12);
}

.otd-chip__media em {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.otd-chip strong {
  font-size: 14px;
  line-height: 1.3;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.otd-chip > span:last-child {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.otd-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0b1220;
  -webkit-user-select: none;
  user-select: none;
}

.otd-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.discover-tile__fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.otd-card__year {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.otd-card__banner {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 160px;
  color: #fff;
  text-align: center;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

.otd-card__banner span {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.otd-card__banner em {
  font-style: normal;
  opacity: 0.85;
  font-size: 14px;
}

.feed {
  display: grid;
  gap: 22px;
  padding: 4px 0 12px;
}

.feed-sentinel {
  height: 1px;
  width: 100%;
}

.feed-loader {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 20px;
}

.feed-loader[hidden] {
  display: none !important;
}

.feed-loader__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: feedPulse 1s ease-in-out infinite;
}

.feed-loader__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.feed-loader__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes feedPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.lesson-card {
  background: var(--paper-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
  overflow: hidden;
}

.lesson-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.lesson-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.lesson-card__avatar .icon {
  display: block;
}

.lesson-card__meta {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.lesson-card__meta strong {
  font-size: 14px;
}

.lesson-card__meta span {
  font-size: 12px;
  color: var(--ink-soft);
}

.lesson-card__chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 999px;
  padding: 5px 9px;
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0b1220;
  -webkit-user-select: none;
  user-select: none;
}

.dbltap-heart {
  position: absolute;
  z-index: 8;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  pointer-events: none;
  color: #fff;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  animation: dbltapHeart 0.85s ease forwards;
}

.dbltap-heart svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: none;
}

@keyframes dbltapHeart {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  18% {
    opacity: 1;
    transform: scale(1.12);
  }
  40% {
    transform: scale(0.95);
  }
  70% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.icon-btn.like.is-pop {
  animation: likePop 0.35s ease;
}

@keyframes likePop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1);
  }
}

.carousel__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: #0b1220;
}

.carousel__slide img,
.carousel__slide video,
.lesson-card__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  background: #0b1220;
}

.title-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 28px 22px 32px;
  color: #fff;
  background: var(--title-color, #0f766e);
  background-image:
    radial-gradient(ellipse 90% 70% at 12% 8%, rgba(255, 255, 255, 0.24), transparent 55%),
    radial-gradient(ellipse 70% 55% at 100% 100%, rgba(0, 0, 0, 0.3), transparent 52%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.14), transparent 42%, rgba(0, 0, 0, 0.22));
}

.title-slide__subject {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-slide__subject .icon {
  flex-shrink: 0;
}

.title-slide__title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 5.6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 22ch;
}

.title-slide__hint {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.72;
}

.media-fact {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  z-index: 2;
  max-width: min(86%, 320px);
  padding: 10px 12px 11px;
  border-radius: 14px;
  color: #fff;
  background: rgba(8, 12, 20, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.media-fact__label {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-fact p {
  margin: 0;
  font-size: 13px;
  line-height: 1.38;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #134e4a, #0b1220);
}

.carousel__dots {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.carousel__dot.is-active {
  background: white;
}

.carousel__count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 11px;
  font-weight: 600;
}

.lesson-card__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 0;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.icon-btn:active {
  transform: scale(0.88);
}

.icon-btn.like.is-active {
  color: var(--accent-hot);
}

.icon-btn.save.is-active {
  color: var(--save);
}

.icon-btn.is-active svg {
  fill: currentColor;
}

.lesson-card__time {
  margin-left: auto;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.lesson-card__body {
  padding: 6px 16px 16px;
}

.lesson-card__caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.lesson-card__caption strong {
  margin-right: 6px;
  font-weight: 700;
  color: var(--ink);
}

.lesson-card__nugget {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.lesson-card__nugget::before {
  content: '✦ ';
  color: var(--accent);
  font-size: 11px;
}

.lesson-card__more {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

.lesson-card__more:active {
  color: var(--accent);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 8px 10px calc(10px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 4;
}

.bottom-nav__item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.bottom-nav__item.is-active {
  color: var(--ink);
}

.bottom-nav__item.is-active svg {
  stroke-width: 2.2;
}

.bottom-nav__badge {
  position: absolute;
  top: -2px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-hot);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.search {
  margin: 4px 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.05);
  color: #64748b;
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: var(--ink);
}

.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px;
}

.discover-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
}

.discover-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.discover-tile:active img {
  transform: scale(1.04);
}

.discover-tile__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 12, 20, 0.78));
}

.discover-tile__copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 4px;
  color: white;
}

.discover-tile__icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.discover-tile__copy strong {
  font-size: 16px;
}

.discover-tile__copy > span:last-child {
  font-size: 12px;
  opacity: 0.85;
}

.quick-picks {
  padding: 22px 0 8px;
}

.quick-picks h2 {
  margin: 0 0 12px;
  padding: 0 18px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
}

.quick-picks__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px;
  scrollbar-width: none;
}

.quick-picks__row::-webkit-scrollbar {
  display: none;
}

.quick-card {
  flex: 0 0 148px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.quick-card img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 16px;
}

.quick-card span {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.empty {
  margin: 48px 28px;
  text-align: center;
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.empty h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: 'Fraunces', serif;
}

.empty p {
  margin: 0;
  max-width: 240px;
  line-height: 1.45;
}

.primary-btn {
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 600;
  display: inline-block;
}

.profile__hero {
  margin: 8px 18px 18px;
  padding: 18px;
  border-radius: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(190, 18, 60, 0.08)),
    var(--paper-elevated);
  border: 1px solid var(--line);
}

.profile__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #0f766e, #be123c);
}

.profile__hero h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-family: 'Fraunces', serif;
}

.profile__hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 18px;
}

.stat {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 8px;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.stat strong {
  font-size: 18px;
}

.stat span {
  font-size: 11px;
  color: var(--ink-soft);
}

.interest-map {
  padding: 22px 18px 8px;
}

.interest-map h2 {
  margin: 0 0 12px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
}

.interest-map__list {
  display: grid;
  gap: 12px;
}

.interest-row {
  display: grid;
  grid-template-columns: 28px minmax(64px, 90px) 1fr 36px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.interest-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
}

.interest-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.interest-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.interest-row em {
  font-style: normal;
  color: var(--ink-soft);
  text-align: right;
}

.profile__note {
  margin: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.story-viewer {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #05080f;
  color: white;
  overflow: hidden;
  animation: fadeUp 0.2s ease;
}

.story-viewer__bars {
  position: absolute;
  top: 48px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 4px;
  z-index: 3;
}

.story-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.story-bar span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: white;
}

.story-viewer__close {
  position: absolute;
  top: 60px;
  right: 14px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
}

.story-viewer__pager {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.28s ease;
  will-change: transform;
}

.story-page {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(240px, 44%) minmax(0, 1fr);
  position: relative;
}

.story-page__media {
  position: relative;
  overflow: hidden;
  background: #0b1220;
  min-height: 240px;
}

.story-page__media img,
.story-page__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
}

.story-page__hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  z-index: 2;
}

.story-page__hit--left {
  left: 0;
}

.story-page__hit--right {
  right: 0;
}

.story-page__read {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 18px 28px;
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
}

.story-viewer__subject {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.story-page__read h2 {
  margin: 12px 0 8px;
  font-family: 'Fraunces', serif;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.story-page__hook {
  font-size: 16px;
  opacity: 0.92;
  margin: 0 0 10px;
}

.story-page__read p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.story-page__fact {
  margin: 8px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.45;
}

.story-page__fact span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2dd4bf;
}

.story-page__article {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  background: white;
  color: #0b1220;
  font-weight: 700;
  font-size: 14px;
}

.article-viewer {
  position: absolute;
  inset: 0;
  z-index: 30;
  background:
    linear-gradient(180deg, #fffdf9 0%, #f7f4ef 100%);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.2s ease;
}

.article-viewer__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 54px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
}

.article-viewer__back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  color: var(--accent);
  flex: 0 0 auto;
}

.article-viewer__top strong {
  flex: 1;
  min-width: 0;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-viewer__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  scrollbar-width: thin;
}

.article-viewer__loading {
  margin: 28px 22px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* —— Article reading surface —— */
.article-prose {
  padding: 22px 20px calc(48px + var(--safe-bottom));
  max-width: 40rem;
  margin: 0 auto;
  font-family: 'Outfit', sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: #1e293b;
  letter-spacing: 0.005em;
}

.article-prose > *:first-child {
  margin-top: 0;
}

.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4 {
  font-family: 'Fraunces', serif;
  color: #0b1220;
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 1.55em 0 0.55em;
}

.article-prose h1 {
  font-size: 1.85rem;
  margin-top: 0.2em;
}

.article-prose h2 {
  font-size: 1.38rem;
  padding-bottom: 0.28em;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.article-prose h3 {
  font-size: 1.15rem;
}

.article-prose h4 {
  font-size: 1.02rem;
  font-weight: 600;
}

.article-prose p {
  margin: 0 0 1.05em;
}

.article-prose p + p {
  margin-top: -0.15em;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

.article-prose li {
  margin: 0.35em 0;
  padding-left: 0.15em;
}

.article-prose li::marker {
  color: var(--accent);
}

.article-prose blockquote {
  margin: 1.2em 0;
  padding: 0.85em 1em 0.85em 1.05em;
  border-left: 3px solid var(--accent);
  background: rgba(15, 118, 110, 0.06);
  border-radius: 0 14px 14px 0;
  color: #334155;
  font-size: 0.98em;
}

.article-prose blockquote p:last-child {
  margin-bottom: 0;
}

.article-prose hr {
  border: 0;
  height: 1px;
  margin: 1.75em 0;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.14), transparent);
}

.article-prose strong,
.article-prose b {
  color: #0b1220;
  font-weight: 650;
}

.article-prose em,
.article-prose i {
  font-style: italic;
  color: #334155;
}

.article-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(15, 23, 42, 0.05);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

.article-prose pre {
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0b1220;
  color: #e2e8f0;
  font-size: 0.86em;
  line-height: 1.5;
  margin: 0 0 1.2em;
}

/* Images / figures */
.article-prose .article-figure,
.article-prose figure {
  margin: 1.35em 0 1.5em;
  padding: 0;
  border: 0;
  background: transparent;
}

.article-prose .article-img,
.article-prose img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 16px;
  background: #e2e8f0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 10px 28px rgba(11, 18, 32, 0.1);
}

.article-prose .article-caption,
.article-prose figcaption {
  margin-top: 0.55em;
  padding: 0 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
  text-align: left;
}

.article-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  max-width: 100%;
  margin: 0 0 1.25em;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-overflow-scrolling: touch;
}

.article-prose th,
.article-prose td {
  padding: 0.55em 0.7em;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  vertical-align: top;
}

.article-prose th {
  font-weight: 600;
  color: #0b1220;
  background: rgba(15, 23, 42, 0.03);
}

.article-prose dl {
  margin: 0 0 1.2em;
}

.article-prose dt {
  font-weight: 650;
  color: #0b1220;
  margin-top: 0.65em;
}

.article-prose dd {
  margin: 0.2em 0 0.4em;
  color: #475569;
}

.article-prose .mw-headline,
.article-prose .mw-heading {
  scroll-margin-top: 12px;
}

.article-prose .hatnote,
.article-prose .infobox,
.article-prose .navbox,
.article-prose .vertical-navbox,
.article-prose .mw-editsection,
.article-prose .reference,
.article-prose .noprint,
.article-prose .toc,
.article-prose .reflist,
.article-prose .sidebar,
.article-prose .metadata {
  display: none !important;
}

.article-prose .article-trim {
  margin-top: 1.5em;
  color: #64748b;
  font-size: 0.92em;
}

.article-prose a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  pointer-events: none;
}

/* Soft first-letter only on lead paragraph when it's the first p */
.article-prose > p:first-of-type {
  font-size: 1.05em;
  color: #0f172a;
}

@media (max-width: 520px) {
  .stage {
    padding: 0;
    background: var(--paper);
  }

  .stage__glow,
  .stage__hint,
  .phone__notch {
    display: none;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .phone__screen {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .topbar {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .article-viewer__top {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .story-viewer__bars {
    top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .story-viewer__close {
    top: calc(24px + env(safe-area-inset-top, 0px));
  }
}
