/* peek. — minimal, square, bordered, no shadows */

:root {
  --bg: #f5f4f0;
  --surface: #fbfaf7;
  --fg: #111111;
  --muted: #767470;
  --border: #d9d7d0;
  --accent: #2f5bff;
  --black: #111111;
  --white: #ffffff;
  --skeleton: #e6e4dd;
  --skeleton-hi: #efede6;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --maxw: 1100px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #141414;
  --surface: #1a1a1a;
  --fg: #f0efeb;
  --muted: #9a9892;
  --border: #2e2e2e;
  --black: #f0efeb;
  --white: #141414;
  --skeleton: #222222;
  --skeleton-hi: #2a2a2a;
  color-scheme: dark;
}

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

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
code { font-family: var(--mono); font-size: 0.9em; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--black); color: var(--white); padding: 8px 12px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  z-index: 100;
}
.skip-link:focus { top: var(--gutter); }

/* ---------- global chrome ---------- */

.theme-toggle {
  position: fixed; top: var(--gutter); right: var(--gutter); z-index: 50;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--bg); color: var(--fg);
}
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

main { flex: 1; width: 100%; }

.footer {
  border-top: 1px solid var(--border);
  padding: 20px var(--gutter);
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--muted); text-align: center;
}
.footer p { margin: 4px 0; }
.footer a { text-decoration: none; color: var(--fg); }
.dot { color: var(--accent); }

/* ---------- landing ---------- */

.landing { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter) 48px; }

.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 60px 0;
}

.tagline {
  margin: 0 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}

.wordmark {
  margin: 0; font-family: var(--mono); font-weight: 700;
  font-size: clamp(56px, 12vw, 96px); line-height: 1; letter-spacing: -.04em;
  text-transform: lowercase;
}

.subtitle { margin: 16px 0 24px; color: var(--muted); font-size: 15px; }

.platform-switch {
  display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--black);
  margin-bottom: 14px;
}
.platform-switch button {
  padding: 8px 18px; min-width: 120px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg); background: transparent; border-right: 1px solid var(--black);
}
.platform-switch button:last-child { border-right: 0; }
.platform-switch button[aria-checked="true"] { background: var(--black); color: var(--white); }
.platform-switch button:focus-visible { outline-offset: -3px; }

.search { display: flex; width: 100%; max-width: 520px; }
.input-wrap { position: relative; flex: 1; min-width: 0; }
.input-wrap input {
  width: 100%; height: 48px; margin: 0;
  padding: 0 44px 0 14px;
  border: 1px solid var(--border); border-right: 0;
  background: var(--surface); color: var(--fg);
  font-family: var(--sans); font-size: 15px; border-radius: 0; appearance: none;
}
.input-wrap input::placeholder { color: var(--muted); }
.input-wrap input:focus { outline: none; border-color: var(--accent); }
.paste-btn {
  position: absolute; top: 1px; right: 0; bottom: 1px; width: 40px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.paste-btn:hover { color: var(--fg); }
.view-btn {
  height: 48px; padding: 0 18px; flex: none;
  background: var(--black); color: var(--white);
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid var(--black);
}
.view-btn[disabled] { opacity: .6; cursor: wait; }

.search-error {
  margin: 10px 0 0; font-size: 13px; color: #c62828; max-width: 520px;
}
html[data-theme="dark"] .search-error { color: #ff6b6b; }

.ig-note {
  margin: 10px 0 0; max-width: 520px; width: 100%;
  border: 1px solid var(--border); padding: 8px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted);
}

.quicklinks {
  margin-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.quicklinks a { text-decoration: none; color: var(--fg); }
.quicklinks a:hover { color: var(--accent); }

.section { border-top: 1px solid var(--border); padding: 32px 0; }
.section p { margin: 0 0 12px; color: var(--fg); }
.section p:last-child { margin-bottom: 0; }

.section-label, .label {
  margin: 0 0 14px; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: none; padding-top: 2px; }

details { border: 1px solid var(--border); margin-bottom: -1px; }
details summary {
  cursor: pointer; padding: 12px 14px; font-weight: 500; list-style: none; position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 14px; top: 10px;
  font-family: var(--mono); color: var(--muted);
}
details[open] summary::after { content: "–"; }
details > p, details > .stats-body { padding: 0 14px 14px; margin: 0; color: var(--muted); }

/* ---------- profile ---------- */

.profile { max-width: var(--maxw); margin: 0 auto; padding: var(--gutter); }

.back-link {
  display: inline-block; margin-bottom: 20px; text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.back-link:hover { color: var(--accent); }

.card-profile {
  border: 1px solid var(--border); background: var(--surface);
  padding: 20px; display: flex; gap: 20px; align-items: flex-start;
}
.avatar {
  width: 96px; height: 96px; flex: none; object-fit: cover;
  border: 1px solid var(--border); background: var(--skeleton);
}
.profile-main { min-width: 0; flex: 1; }
.nickname { margin: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.verified { color: var(--accent); display: inline-flex; }
.uniqueid { margin: 2px 0 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-all; }
.bio { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; }
.bio-link { font-size: 13px; color: var(--accent); word-break: break-all; }

.counts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-top: 0; }
.counts.counts-3 { grid-template-columns: repeat(3, 1fr); }
.counts div { padding: 12px 10px; border-right: 1px solid var(--border); text-align: center; }
.counts div:last-child { border-right: 0; }
.counts strong { display: block; font-family: var(--mono); font-size: 16px; font-weight: 700; }
.counts span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.notice {
  border: 1px solid var(--border); border-top: 0; padding: 12px 14px; font-size: 14px; color: var(--muted);
}

.setup-panel {
  border: 1px solid var(--border); background: var(--surface); padding: 40px 20px; text-align: center;
}
.setup-kicker {
  margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.setup-text { margin: 0 0 18px; font-size: 15px; }

.stats { margin-top: 20px; }
.stats summary { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stats-note { margin-left: 10px; letter-spacing: 0; text-transform: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border: 1px solid var(--border); }
.stats-grid div { padding: 10px 12px; border-right: 1px solid var(--border); min-width: 0; }
.stats-grid div:last-child { border-right: 0; }
.stats-grid dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats-grid dd { margin: 4px 0 0; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-grid dd button { font-family: var(--mono); font-weight: 700; color: var(--accent); text-decoration: underline; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); margin-top: 20px; }
.tabs.tabs-4 { grid-template-columns: repeat(4, 1fr); }
.tab {
  padding: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-right: 1px solid var(--border); border-bottom: 2px solid transparent;
}
.tab:last-child { border-right: 0; }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tab:focus-visible { outline-offset: -2px; }

.grid-head { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 10px; }
.grid-head .label { margin: 0; }
.grid-hint { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.grid {
  display: grid; gap: 2px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 calc(-1 * var(--gutter));
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(5, 1fr); } }

.card {
  position: relative; display: block; aspect-ratio: 9 / 16; background: var(--skeleton);
  overflow: hidden; text-decoration: none; color: #fff;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card:focus-visible { outline-offset: -3px; }
.badge {
  position: absolute; top: 6px; left: 6px; padding: 3px 6px;
  background: rgba(0,0,0,.72); color: #fff; font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
}
.badge-pinned { left: auto; right: 6px; background: var(--accent); text-transform: uppercase; }
.card-views {
  position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 6px; background: rgba(0,0,0,.72); color: #fff; font-family: var(--mono); font-size: 11px;
}
.card-photo { position: absolute; right: 6px; bottom: 6px; padding: 3px 5px; background: rgba(0,0,0,.72); color: #fff; display: inline-flex; }

/* ---------- Instagram grids ---------- */

.ig-grid {
  display: grid; gap: 2px; grid-template-columns: repeat(3, 1fr);
  margin: 0 calc(-1 * var(--gutter));
}
@media (min-width: 640px) { .ig-grid { margin: 0; } }

.ig-card {
  position: relative; display: block; aspect-ratio: 1 / 1; background: var(--skeleton);
  overflow: hidden; text-decoration: none; color: #fff;
}
.ig-card-reel { aspect-ratio: 9 / 16; }
.ig-card img { width: 100%; height: 100%; object-fit: cover; }
.ig-card:focus-visible { outline-offset: -3px; }
.ig-badge {
  position: absolute; top: 6px; right: 6px; padding: 4px; display: inline-flex;
  background: rgba(0,0,0,.72); color: #fff;
}
.ig-card-meta {
  position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 6px; background: rgba(0,0,0,.72); color: #fff; font-family: var(--mono); font-size: 11px;
}

.story-strip {
  display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.story-tile {
  position: relative; flex: none; width: 180px; aspect-ratio: 9 / 16; background: var(--skeleton);
  overflow: hidden; color: #fff; scroll-snap-align: start; border: 1px solid var(--border);
}
.story-tile img { width: 100%; height: 100%; object-fit: cover; }
.story-tile:focus-visible { outline-offset: -3px; }
.skeleton-story { flex: none; width: 180px; }

.hl-row {
  display: grid; gap: 2px; grid-template-columns: repeat(3, 1fr);
  margin: 0 calc(-1 * var(--gutter));
}
@media (min-width: 640px) { .hl-row { grid-template-columns: repeat(5, 1fr); margin: 0; } }
@media (min-width: 1024px) { .hl-row { grid-template-columns: repeat(7, 1fr); } }
.hl-tile { display: block; width: 100%; text-align: left; color: inherit; }
.hl-cover {
  position: relative; display: block; aspect-ratio: 1 / 1; background: var(--skeleton); overflow: hidden;
  border: 1px solid var(--border);
}
.hl-cover img { width: 100%; height: 100%; object-fit: cover; }
.hl-count {
  position: absolute; right: 6px; bottom: 6px; padding: 2px 6px;
  background: rgba(0,0,0,.72); color: #fff; font-family: var(--mono); font-size: 10px;
}
.hl-title {
  display: block; padding: 6px 4px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg);
}
.hl-tile:hover .hl-title { color: var(--accent); }
.hl-tile:focus-visible { outline-offset: -3px; }

.skeleton-card { aspect-ratio: 9 / 16; background: var(--skeleton); position: relative; overflow: hidden; }
.skeleton-sq { aspect-ratio: 1 / 1; }
.skeleton-card::after, .sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--skeleton-hi), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
.sk { background: var(--skeleton); position: relative; overflow: hidden; }
.sk-avatar { width: 96px; height: 96px; flex: none; }
.sk-line { height: 14px; margin-bottom: 10px; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }
@keyframes shimmer { to { transform: translateX(100%); } }

.empty, .error-box {
  border: 1px solid var(--border); padding: 32px 16px; text-align: center; color: var(--muted); font-size: 14px;
}
.error-box { color: var(--fg); }
.error-box p { margin: 0 0 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; text-decoration: none;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--black); background: var(--black); color: var(--white);
}
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--fg); }
.btn[disabled] { opacity: .5; cursor: wait; }

.load-more { display: flex; justify-content: center; padding: 20px 0; }
.sentinel { height: 1px; }

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; z-index: 90; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.modal-panel {
  position: absolute; inset: 0; margin: auto;
  width: min(100%, 1000px); height: 100%;
  background: var(--bg); border: 1px solid var(--border);
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: 100%;
}
@media (min-width: 900px) { .modal-panel { height: min(100%, 90vh); } }
.modal-media {
  background: #000; display: flex; align-items: center; justify-content: center; min-height: 0; position: relative;
}
.modal-media video { width: 100%; height: 100%; max-height: 100%; object-fit: contain; background: #000; }
.modal-media > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.modal-media .media-loading { color: #888; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.modal-info { padding: 20px; overflow: auto; border-left: 1px solid var(--border); font-size: 14px; }
.modal-author { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-author img { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--border); }
.modal-author strong { display: block; font-size: 14px; }
.modal-author span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.modal-caption { margin: 0 0 12px; white-space: pre-wrap; word-break: break-word; }
.modal-music { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.modal-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); margin-bottom: 8px; }
.modal-stats.modal-stats-2 { grid-template-columns: repeat(2, 1fr); }
.modal-stats div { padding: 8px 4px; text-align: center; border-right: 1px solid var(--border); }
.modal-stats div:last-child { border-right: 0; }
.modal-stats strong { display: block; font-family: var(--mono); font-size: 14px; }
.modal-stats span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.modal-date { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.modal-actions { display: flex; flex-direction: column; gap: 8px; }
.modal-actions .btn { width: 100%; }

.modal-close {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--fg); border: 1px solid var(--border);
}
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.modal-prev { left: 8px; }
.modal-next { right: 348px; }
.modal-nav[hidden] { display: none; }

.carousel { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.carousel img { max-width: 100%; max-height: 100%; object-fit: contain; }
.carousel video { width: 100%; height: 100%; object-fit: contain; }
.carousel-bar {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; align-items: center;
  background: rgba(0,0,0,.7); color: #fff; font-family: var(--mono); font-size: 12px; padding: 4px 6px;
}
.carousel-bar button, .carousel-bar a { color: #fff; padding: 4px 8px; text-decoration: none; border: 1px solid rgba(255,255,255,.3); display: inline-flex; }

.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.25);
  font-family: var(--mono); font-size: 14px;
}
.slide-btn[disabled] { opacity: .3; cursor: default; }
.slide-prev { left: 56px; }
.slide-next { right: 10px; }
.carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px 8px; background: rgba(0,0,0,.6);
}
.carousel-dots button { width: 8px; height: 8px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6); }
.carousel-dots button.on { background: #fff; }

@media (max-width: 899px) {
  .modal-panel { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .modal-media { max-height: 62vh; min-height: 40vh; }
  .modal-info { border-left: 0; border-top: 1px solid var(--border); max-height: 60vh; }
  .modal-next { right: 8px; }
  .modal-stats { grid-template-columns: repeat(4, 1fr); }
  .modal-stats.modal-stats-2 { grid-template-columns: repeat(2, 1fr); }
  .slide-prev { left: 10px; }
}

/* ---------- story viewer ---------- */

.story { position: fixed; inset: 0; z-index: 95; }
.story[hidden] { display: none; }
.story-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.92); }
.story-stage {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%; max-width: calc(100vh * 9 / 16); max-width: calc(100dvh * 9 / 16);
  background: #000; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: none; outline: none;
}
.story-bars {
  position: absolute; top: 8px; left: 8px; right: 8px; z-index: 4; display: flex; gap: 3px;
}
.story-bar { flex: 1; height: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 0; background: #fff; }
.story-head {
  position: absolute; top: 18px; left: 8px; right: 8px; z-index: 4;
  display: flex; align-items: center; gap: 10px; color: #fff; padding: 4px 0;
}
.story-head img { width: 28px; height: 28px; object-fit: cover; border: 1px solid rgba(255,255,255,.4); }
.story-who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.story-who strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-who span { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.7); }
.story-close {
  width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.3);
}
.story-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.story-media img, .story-media video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.story-msg {
  color: #ccc; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; padding: 0 24px;
}
.story-msg p { margin: 0 0 14px; }
.story-paused {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  padding: 6px 12px; background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.3);
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; pointer-events: none;
}
.story-paused[hidden] { display: none; }
.story-foot {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff;
}
.story-count { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.7); }
.story-tools { display: flex; gap: 6px; }
.story-tool {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; text-decoration: none;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.35);
}
.story-tool:hover { border-color: #fff; }
.story-tool[aria-pressed="true"] { background: #fff; color: #000; }

/* ---------- responsive ---------- */

@media (max-width: 639px) {
  .card-profile { padding: 14px; gap: 14px; }
  .avatar, .sk-avatar { width: 72px; height: 72px; }
  .nickname { font-size: 17px; }
  .counts { grid-template-columns: repeat(2, 1fr); }
  .counts div:nth-child(2) { border-right: 0; }
  .counts div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .counts.counts-3 { grid-template-columns: repeat(3, 1fr); }
  .counts.counts-3 div:nth-child(2) { border-right: 1px solid var(--border); }
  .counts.counts-3 div:nth-child(-n+2) { border-bottom: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(2) { border-right: 0; }
  .stats-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .tab { padding: 10px 6px; font-size: 11px; letter-spacing: .08em; }
  .view-btn { padding: 0 14px; }
  .platform-switch button { min-width: 100px; padding: 8px 12px; }
  .story-tile, .skeleton-story { width: 140px; }
  .story-stage { max-width: none; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }
body.modal-open { overflow: hidden; }
