/* TRAPPERX bio — viewer styles. Matched to approved preview (trapperx-preview_2). */

:root {
  --ink: #080303;
  --glass: rgba(12, 4, 4, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.10);
  --text: #f6eee9;
  --muted: #cfa49e;
  --crimson: #e63946;
  --blood: #8b0f1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page { position: relative; min-height: 100dvh; }

/* --- background: pre-blurred cover + gradient veil --- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 1, 1, 0.45) 0%, rgba(4, 1, 1, 0.58) 45%, rgba(4, 1, 1, 0.86) 100%);
}

.wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 44px) 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrap-links {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 20px calc(env(safe-area-inset-bottom) + 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- hero --- */
.dp {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.dp-fallback {
  display: grid;
  place-items: center;
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-size: 44px;
  color: var(--crimson);
  background: #150708;
}

.name-logo {
  width: min(62%, 250px);
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 26px;
  filter: drop-shadow(0 3px 22px rgba(0, 0, 0, 0.65));
}

.name {
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(30px, 9vw, 40px);
  letter-spacing: 0.08em;
  margin-top: 26px;
  text-transform: uppercase;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.65);
}

.role {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  text-align: center;
}

.claim {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* --- socials --- */
.socials { display: flex; gap: 14px; margin-top: 20px; }

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.social-btn:hover { border-color: rgba(230, 57, 70, 0.5); }
.social-btn:active { transform: scale(0.9); }

/* --- ticker --- */
.ticker {
  width: 100vw;
  margin: 30px 0 26px;
  border-top: 1px solid rgba(230, 57, 70, 0.35);
  border-bottom: 1px solid rgba(230, 57, 70, 0.35);
  background: rgba(70, 6, 12, 0.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 8px 0;
}

.ticker-track { display: flex; width: max-content; animation: slide 22s linear infinite; }

.ticker span {
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crimson);
  white-space: nowrap;
  padding-right: 2.2em;
}

@keyframes slide { to { transform: translateX(-50%); } }

/* --- link cards --- */
.links { width: 100%; display: flex; flex-direction: column; gap: 14px; }

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, border-color 0.16s ease;
  min-height: 64px;
  width: 100%;
  position: relative;
  cursor: pointer;
}

.card:active { transform: scale(0.965); }
.card:hover { border-color: rgba(230, 57, 70, 0.5); }

.thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  flex: none;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blood), #2c0407);
}

.thumb-fallback {
  display: grid;
  place-items: center;
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-size: 20px;
  color: var(--text);
  opacity: 0.95;
}

.card-title {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  padding-right: 58px;
  word-break: break-word;
}

/* --- folders (same card language, chevron instead of the title-balancing pad) --- */
.folder { width: 100%; }

.folder-head { font: inherit; text-align: inherit; }

.folder-head .card-title { padding-right: 0; }

.folder-chevron {
  width: 58px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.folder-open .folder-chevron { transform: rotate(180deg); }

.folder-body { overflow: hidden; transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1); }

.folder-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 2px 16px;
}

.card-sub { min-height: 58px; }

.folder-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 4px;
}

/* --- preview mode --- */
.card-hidden { opacity: 0.45; }

.hidden-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffb4ba;
  background: rgba(139, 15, 26, 0.4);
  border: 1px solid rgba(230, 57, 70, 0.5);
  padding: 2px 7px;
  border-radius: 999px;
}

/* --- booking CTA --- */
.booking-cta {
  margin-top: 26px;
  display: inline-block;
  padding: 13px 42px;
  border-radius: 999px;
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #050203;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.booking-cta:hover { border-color: rgba(255, 255, 255, 0.45); }
.booking-cta:active { transform: scale(0.95); }

/* --- top bar: trapcult mark + share --- */
.topbar {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 5;
}

.tc-mark {
  display: block;
  opacity: 0.75;
  transition: opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tc-mark img { height: 20px; width: auto; display: block; }
.tc-mark:hover { opacity: 1; }

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.share-btn:hover { border-color: rgba(230, 57, 70, 0.5); }
.share-btn:active { transform: scale(0.9); }

.toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 4, 4, 0.9);
  border: 1px solid rgba(230, 57, 70, 0.4);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 50;
  animation: rise 0.25s ease;
}

/* --- footer --- */
.foot { margin-top: 44px; opacity: 0.4; display: flex; justify-content: center; }
.foot a { display: block; -webkit-tap-highlight-color: transparent; }
.foot img { width: 96px; height: auto; display: block; }
.foot a:active img { transform: scale(0.94); }

/* --- entrance animation --- */
.rise { opacity: 0; transform: translateY(14px); animation: rise 0.6s ease forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* --- skeleton / error --- */
.skeleton-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sk {
  border-radius: 14px;
  background: linear-gradient(100deg, #170a0c 40%, #23090d 50%, #170a0c 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.sk-dp { width: 116px; height: 116px; border-radius: 50%; }
.sk-line { height: 16px; }
.w60 { width: 60%; }
.w40 { width: 40%; }
.sk-card { width: 100%; height: 64px; border-radius: 18px; }

@keyframes shimmer { to { background-position: -200% 0; } }

.load-error { padding: 60px 20px; text-align: center; color: var(--muted); }
