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

html {
  font-size: 20px;
  color: #ddd;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/SourceCodePro.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  height: 100%;
  font-family: "Source Code Pro", monospace;
}

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

ul {
  list-style: none;
}

img {
  display: block;
}

.icon {
  width: 30px;
  height: auto;
  filter: invert(1);
  object-fit: contain;
}

.icon.ig-verify {
  width: 25px;
  filter: none;
}

.icon.share-button {
  width: 25px;
  height: 25px;
}

.icon.martini {
  width: 30%;
  height: auto;
}

/* ── FULL-BLEED BLURRED BG ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg img{
  object-fit: cover;
  filter: blur(2px) brightness(0.8) saturate(0.9);
  height: 100%;
  width: 100%;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
}

/* ── PAGE — centers the card ── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px 40px;
}

/* PAGE WRAPPER */
.page_wrapper {
  margin-top: 3rem;
  min-width: 300px;
  max-width: 400px;
  border-radius: 30px;
  overflow: clip;
  background: #000;
  position: relative;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* hero photo — top half of the card, portrait crop */
.page_wrapper-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.page_wrapper-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

/* gradient fade into card body */
.page_wrapper-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(0, 0, 0, 0.55) 70%,
    #000 100%
  );
}

/* ── CARD BODY ── */
.card-body {
  padding: 0 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: #000;
}

/* ── IDENTITY ── */
.identity {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.name p{
  display: block;
  width: max-content;
}
.username {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* ── SOCIAL ICONS ── */
.socials {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 10px 0 0.5rem;
}

/* ── BIO-BLOCK ROW ── */
.bio-block {
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-align: center;
}

.quote {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #ddd;
  text-align: center;
  padding: 14px 20px 0;
  line-height: 1.6;
}

/* ── STICKY TOP BAR ── */
.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.sticky-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-bar_avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.sticky-bar_avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sticky-bar_name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sticky-bar_name img {
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

/* url-block */
.url-block {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  text-decoration: none;
  color: #fff;
  margin-bottom: 10px;
}

.url-block:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.url-block_hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0e0e0e;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.url-block_footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1a1a1a;
}

.url-block_thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.url-block_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.url-block_label {
  flex: 1;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 768px) {
  .page_wrapper {
    margin-top: 1rem;
    max-width: 350px;
  }
}

