@font-face {
  font-family: Inter;
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  --background: #000;
  --card: #151515;
  --text: #fff;
  --muted: #888899;
  --border: #222;
  --primary: #ff8538;
  --orange: #ff5c1a;
  --card-edge: rgb(255 133 56 / 45%);
  --glow: 0 0 8px rgb(255 133 56 / 55%), 0 0 16px rgb(255 133 56 / 30%);
  --gradient: linear-gradient(135deg, var(--primary), var(--orange));
  background: var(--background);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, figure { margin: 0; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
:where(a, button):focus-visible { outline: 3px solid #ffe4ae; outline-offset: 2px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon {
  flex: none;
  display: block;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 50;
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: var(--card);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.banner {
  position: relative;
  width: 100%;
  height: 12rem;
  isolation: isolate;
  background: var(--card);
}
.banner-picture, .banner::before, .banner::after { position: absolute; inset-inline: 0; width: 100%; }
.banner-picture { inset-block: 0; height: 100%; object-fit: cover; }
.banner::before, .banner::after { content: ""; pointer-events: none; z-index: 1; }
.banner::before { top: 0; height: 7rem; background: linear-gradient(to bottom, rgb(0 0 0 / 75%), transparent); }
.banner::after { bottom: 0; height: 4rem; background: linear-gradient(to bottom, transparent, var(--background)); }

.page { position: relative; width: 100%; max-width: 32rem; margin-inline: auto; }
.identity { position: relative; margin-top: -3rem; padding-inline: 1rem; }
.profile-heading { display: flex; align-items: flex-end; gap: .75rem; }
.avatar {
  flex: none;
  width: 5rem;
  height: 5rem;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--orange), #ff6b00);
  box-shadow: var(--glow);
  object-fit: cover;
}
.identity-text { min-width: 0; padding-bottom: .25rem; }
.identity-text h1 { display: flex; align-items: center; gap: .375rem; font-size: 1.125rem; font-weight: 700; line-height: 1.75rem; }
.identity-text h1 .icon, .verified { width: 1rem; height: 1rem; flex: none; fill: var(--primary); stroke: #fff; }
.handle { color: var(--muted); font-size: .75rem; line-height: 1rem; }
.stats { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem 1rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.stats li { display: inline-flex; align-items: center; gap: .375rem; color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.stats strong { color: var(--text); font-weight: 600; }
.stats .icon { color: var(--primary); }
.bio { margin-top: .5rem; font-size: .875rem; line-height: 1.625; }
.divider { height: 1px; margin: 2.5rem 1rem 0; background: linear-gradient(90deg, transparent, var(--primary), var(--orange), transparent); }

.showcase { padding-block: .25rem; }
.rail {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 7rem; scroll-snap-align: start; scroll-snap-stop: always; }
.rail img { -webkit-user-drag: none; user-select: none; }
.profile-tile, .more-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  border-radius: .75rem;
  background: var(--card);
  box-shadow: var(--glow);
}
.tile-cover { width: 100%; height: 100%; object-fit: cover; }
.portrait-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; mask-image: linear-gradient(to bottom, black 48%, transparent 97%); }
.profile-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 90%), rgb(0 0 0 / 25%), transparent); }
.tile-caption { position: absolute; z-index: 1; inset: auto 0 .625rem; display: flex; flex-direction: column; align-items: center; }
.tile-avatar {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--primary), var(--orange), #ff6b00, #ffe14d, var(--primary));
}
.tile-avatar img { width: 100%; height: 100%; object-fit: cover; border: 2px solid var(--background); border-radius: 50%; }
.rank {
  position: absolute;
  bottom: -.375rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .125rem .375rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 80%);
  color: var(--primary);
  font-weight: 700;
  font-size: .5625rem;
  line-height: 1.5;
}
.tile-name { display: block; width: 100%; margin-top: .75rem; padding-inline: .375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: .6875rem; line-height: 1.5; }
.more-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; border-style: dashed; background: rgb(255 133 56 / 6%); color: var(--primary); font-size: .75rem; font-weight: 700; }
.more-tile .icon { width: 2rem; height: 2rem; padding: .45rem; border: 1px solid rgb(255 133 56 / 50%); border-radius: 50%; }

.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tab-pair { display: contents; }
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: .5rem;
  min-width: 0;
  padding: .75rem .125rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--primary); border-bottom-color: currentColor; }
.panel { padding: 1rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; }
.post {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--card-edge);
  border-radius: .75rem;
  background: var(--card);
  box-shadow: var(--glow);
}
.post img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 55%);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.play .icon { fill: currentColor; stroke: none; transform: translateX(1px); }
.more-posts {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  padding: .375rem 1rem;
  border: 1px solid var(--card-edge);
  border-radius: 999px;
  background: transparent;
  box-shadow: var(--glow);
  color: var(--primary);
  text-align: center;
  font-size: .6875rem;
  font-weight: 500;
}
.profiles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.profiles-grid .tile-caption { bottom: .75rem; }
.profiles-grid .tile-avatar { width: 3.5rem; height: 3.5rem; }
.profiles-grid .tile-name { margin-top: .875rem; font-size: .75rem; }
.profiles-grid .rank { bottom: -.5rem; padding-inline: .5rem; font-size: .625rem; }

.offer { width: min(20rem, calc(100% - 2rem)); margin: 2rem auto 0; padding: 1.25rem; border: 1px solid var(--card-edge); border-radius: 1rem; background: var(--card); box-shadow: var(--glow); text-align: center; }
.offer h2 { display: inline-block; padding: .375rem 1rem; color: var(--primary); background: rgb(255 133 56 / 10%); border: 1px solid rgb(255 133 56 / 30%); border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.offer p { margin-block: 1rem; font-size: .875rem; }
.offer-link { display: block; width: 100%; padding: .875rem .625rem; border-radius: .75rem; background: linear-gradient(90deg, var(--primary), var(--orange)); color: #fff; font-weight: 700; }
.site-footer { max-width: 48rem; margin: 0 auto 6rem; padding: 3rem 1rem 1rem; text-align: center; font-size: .75rem; line-height: 1rem; color: var(--muted); }
.site-footer small, .site-footer nav { display: block; margin-top: .25rem; font-size: .625rem; }
.site-footer nav { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }

.mobile-join {
  position: fixed;
  z-index: 5;
  inset: auto 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .875rem 1.25rem;
  border-radius: 1rem;
  background: var(--gradient);
  box-shadow: 0 8px 32px rgb(255 133 56 / 45%);
  color: #fff;
}
.mobile-join strong { display: block; font-size: .8125rem; font-weight: 900; text-transform: uppercase; letter-spacing: .025em; line-height: 1.25; }
.mobile-join small { display: block; margin-top: .125rem; color: rgb(255 255 255 / 87%); font-size: .6875rem; font-weight: 500; }
.mobile-join > .icon { width: 1.75rem; height: 1.75rem; padding: .425rem; border-radius: .5rem; background: rgb(255 255 255 / 15%); }
.mobile-badge { position: absolute; top: -.875rem; right: 1rem; padding: .25rem .75rem; border-radius: 999px; background: linear-gradient(135deg, #22c55e, #16a34a); font-size: .6875rem; line-height: 1.5; font-weight: 700; }
@media (max-width: 23rem) {
  .stats { column-gap: .625rem; }
  .stats li { gap: .25rem; font-size: .78rem; }
}
@media (min-width: 48rem) {
  .page { max-width: 42rem; }
  .site-footer { margin-bottom: 1rem; }
  .mobile-join { display: none; }
}
@media (min-width: 64rem) {
  .page { max-width: 48rem; }
  .bio { min-height: 2lh; }
}
@media (prefers-reduced-motion: no-preference) {
  .post img { transition: transform .3s ease; }
  .tab { transition: color .18s, border-color .18s; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .post:hover img { transform: scale(1.05); }
  .offer-link:hover, .mobile-join:hover { filter: brightness(1.08); }
}
