/* Undead Forever pages: the game's blood-glass look (dark oxblood glass,
   ember light, gold ink, Georgia display type). Scoped to body.uf so the
   rest of bezhig.com keeps the studio theme. */

body.uf {
  --uf-bg: #0a0404;
  --uf-ink: #eadccb;
  --uf-heading: #fbf1e3;
  --uf-muted: #c4b19c;
  --uf-dim: #9a8774;
  --uf-gold: #f3d27a;
  --uf-gold-2: #e2b94f;
  --uf-gold-deep: #9c6f1c;
  --uf-blood: #b3261d;
  --uf-blood-hi: #e23a2f;
  --uf-ember: #ff7a3c;
  --uf-line: rgba(255, 150, 110, .16);
  --uf-line-strong: rgba(255, 160, 120, .3);
  --uf-glass: linear-gradient(180deg, rgba(44, 11, 8, .82), rgba(14, 5, 5, .9));
  --uf-glass-flat: rgba(20, 6, 6, .78);
  --uf-radius: 18px;
  --uf-shadow: 0 28px 80px rgba(0, 0, 0, .55);
  --uf-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --uf-wide: min(1200px, calc(100% - 48px));
  background: var(--uf-bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 85% -5%, rgba(196, 52, 30, .34), transparent 70%),
    radial-gradient(ellipse 55% 45% at -5% 35%, rgba(120, 18, 12, .32), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 75%, rgba(150, 40, 20, .22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 110%, rgba(90, 12, 8, .4), transparent 70%);
  background-attachment: fixed;
  color: var(--uf-ink);
}

body.uf ::selection { background: rgba(226, 58, 47, .55); color: #fff; }
body.uf a { color: var(--uf-gold); text-underline-offset: 3px; }
body.uf a:hover { color: #ffe3a1; }
body.uf :focus-visible { outline: 3px solid var(--uf-gold); outline-offset: 3px; border-radius: 6px; }
body.uf [id] { scroll-margin-top: 172px; }
body.uf #studio-atmosphere { --ambience-rgb: 255, 128, 64; --ambience-scale: 1.7; opacity: .7; }

/* ---------- shared header and footer, recoloured ---------- */
body.uf .site-header { background: rgba(10, 4, 4, .86); border-bottom: 1px solid rgba(226, 90, 60, .14); }
body.uf .nav-links > a, body.uf .nav-group > summary { color: #eadccb; }
body.uf .nav-links > a:hover, body.uf .nav-group > summary:hover { color: #fff; }
body.uf .nav-links > a:last-child { border-color: rgba(243, 210, 122, .35); }
body.uf .nav-dropdown { background: rgba(22, 7, 6, .97); border-color: rgba(226, 120, 90, .22); }
body.uf .nav-dropdown a { color: #f1e5d4; }
body.uf .nav-dropdown p { color: #b39a82; }
body.uf .menu-toggle:not([hidden]) { color: #f1e5d4; border-color: rgba(243, 210, 122, .35); }
body.uf .skip-link { background: var(--uf-gold); color: #1d1205; }
body.uf .site-footer { border-top: 1px solid rgba(226, 90, 60, .12); }
body.uf .footer-identity p, body.uf .footer-bottom { color: #a8927d; }
body.uf .footer-column h2 { color: #b39a82; }
body.uf .footer-column a, body.uf .footer-identity > a { color: #ecdcc9; }
body.uf .motion-toggle { color: #d9c4ad; border-color: rgba(243, 210, 122, .25); }

/* ---------- type ---------- */
.uf-display {
  font-family: var(--uf-serif);
  font-weight: 700;
  color: var(--uf-heading);
  letter-spacing: -.01em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 34px rgba(226, 58, 47, .32);
}
.uf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--uf-gold);
  font: 800 .75rem/1.3 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.uf-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--uf-blood-hi));
}
.uf-eyebrow.no-rule::before { display: none; }
.uf-lede { color: var(--uf-muted); font-size: 1.125rem; line-height: 1.7; max-width: 62ch; }
body.uf h2, body.uf h3 { color: var(--uf-heading); }
body.uf p, body.uf li { line-height: 1.7; }

/* ---------- buttons ---------- */
.uf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 12px;
  font: 800 .95rem/1.1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  isolation: isolate;
}
.uf-btn svg { width: 20px; height: 20px; flex: none; }
.uf-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.uf-btn--gold {
  color: #1f1305 !important;
  background: linear-gradient(180deg, #f6dc8c 0%, #e2b94f 46%, #a77a1f 100%);
  border: 1px solid #f9e3a0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(90, 55, 8, .45), 0 10px 28px rgba(180, 120, 30, .28);
  text-shadow: 0 1px 0 rgba(255, 240, 200, .5);
}
.uf-btn--blood {
  color: #fff4ea !important;
  background: linear-gradient(180deg, #d5463a 0%, #a8241b 50%, #66100b 100%);
  border: 1px solid #ef7a68;
  box-shadow: inset 0 1px 0 rgba(255, 200, 190, .4), inset 0 -3px 0 rgba(60, 5, 3, .5), 0 10px 30px rgba(180, 30, 20, .35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}
.uf-btn--ghost {
  color: var(--uf-heading) !important;
  background: rgba(20, 6, 6, .66);
  border: 1px solid rgba(243, 210, 122, .42);
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, .08);
  backdrop-filter: blur(8px);
}
.uf-btn--ghost:hover { border-color: var(--uf-gold); }
.uf-btn--sm { min-height: 40px; padding: 8px 16px; font-size: .85rem; border-radius: 10px; }

/* ---------- stamps (gold ink, tilted, as in the game) ---------- */
.uf-stamp {
  display: inline-block;
  padding: .18em .62em;
  border: 2px solid var(--uf-gold-2);
  border-radius: 4px;
  color: var(--uf-gold);
  background: rgba(36, 14, 4, .55);
  font: 900 .78rem/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 0 18px rgba(243, 210, 122, .08);
  text-shadow: 0 0 10px rgba(243, 210, 122, .25);
  white-space: nowrap;
}
.uf-stamp--blood { border-color: #e2584c; color: #ff9b8c; background: rgba(60, 8, 6, .55); }

/* ---------- layout ---------- */
.uf-main { position: relative; z-index: 1; }
.uf-wrap { width: var(--uf-wide); margin: 0 auto; }
.uf-section { width: var(--uf-wide); margin: 0 auto; padding: clamp(64px, 9vw, 112px) 0 0; }
.uf-section-head { max-width: 760px; margin-bottom: 40px; }
.uf-section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.05; margin: 0 0 18px; }
.uf-center { text-align: center; margin-inline: auto; }
.uf-center .uf-eyebrow::before { display: none; }

.uf-panel {
  position: relative;
  border-radius: var(--uf-radius);
  border: 1px solid var(--uf-line);
  background: var(--uf-glass);
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, .07), var(--uf-shadow);
  overflow: hidden;
}
.uf-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 210, 180, .05), transparent);
  pointer-events: none;
}

/* ---------- sub navigation (all Undead Forever pages) ---------- */
.uf-subnav {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: rgba(14, 5, 5, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 90, 60, .14);
}
.uf-subnav-inner { width: var(--uf-wide); margin: 0 auto; display: flex; align-items: center; gap: 18px; min-height: 58px; }
.uf-subnav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--uf-heading) !important; text-decoration: none; font: 700 1.02rem/1 var(--uf-serif); white-space: nowrap; }
.uf-subnav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.uf-subnav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.uf-subnav-links::-webkit-scrollbar { display: none; }
.uf-subnav-links a {
  color: #e2d0bb !important;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 9px;
  white-space: nowrap;
}
.uf-subnav-links a:hover { background: rgba(255, 140, 100, .08); color: #fff !important; }
.uf-subnav-links a[aria-current="page"] { color: var(--uf-gold) !important; background: rgba(243, 210, 122, .08); }

/* ---------- hero ---------- */
.uf-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 90, 60, .14);
}
.uf-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 4, 4, .97) 0%, rgba(10, 4, 4, .9) 34%, rgba(10, 4, 4, .45) 62%, rgba(10, 4, 4, .7) 100%),
    linear-gradient(0deg, rgba(10, 4, 4, 1) 0%, rgba(10, 4, 4, 0) 30%),
    url("/assets/undead-forever/bg-glass-hands-20261008.webp") right 18% center / min(980px, 78%) auto no-repeat,
    radial-gradient(ellipse at 75% 40%, #7a1a0e, #1a0505 70%);
}
.uf-hero-inner {
  position: relative;
  width: var(--uf-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 40px;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
}
.uf-hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  line-height: .9;
  margin: 6px 0 18px;
}
.uf-hero h1 span { display: block; color: transparent; background: linear-gradient(180deg, #fff3dc 0%, #f3d27a 55%, #c58a2c 100%); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)) drop-shadow(0 0 26px rgba(226, 58, 47, .35)); }
.uf-tagline { font: italic 400 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--uf-serif); color: #f0dcc4; margin: 0 0 18px; }
.uf-hero .uf-lede { margin: 0 0 30px; }
.uf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.uf-fineprint { color: var(--uf-dim); font-size: .88rem; margin: 0; }
.uf-live { display: inline-flex; align-items: center; gap: 8px; }
.uf-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 4px rgba(94, 224, 138, .16); }

/* phones */
.uf-phones { position: relative; height: clamp(460px, 52vw, 640px); }
.uf-phone {
  position: absolute;
  display: block;
  margin: 0;
  width: clamp(190px, 21vw, 270px);
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(160deg, #3a1a12, #120707 60%);
  border: 1px solid rgba(255, 150, 110, .28);
  box-shadow: 0 40px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 210, 180, .14);
}
/* The screen keeps the screenshot's own shape, so the frame never crops it. */
.uf-phone img { width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; border-radius: 27px; display: block; background: #120606; }
.uf-phones .uf-phone:nth-child(1) { left: 2%; top: 9%; transform: rotate(-8deg); }
.uf-phones .uf-phone:nth-child(2) { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; width: clamp(210px, 23vw, 296px); }
.uf-phones .uf-phone:nth-child(3) { right: 2%; top: 9%; transform: rotate(8deg); }
.uf-phone--solo { position: relative; inset: auto; transform: none !important; margin-inline: auto; }

/* ---------- at a glance ---------- */
.uf-glance { width: var(--uf-wide); margin: -34px auto 0; position: relative; z-index: 3; }
.uf-glance ul {
  list-style: none;
  margin: 0;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px 12px;
  align-items: center;
}
.uf-glance li { text-align: center; color: var(--uf-muted); font-size: .86rem; line-height: 1.25; }
.uf-glance b { display: block; font: 700 clamp(1.7rem, 3vw, 2.3rem)/1 var(--uf-serif); color: var(--uf-gold); margin-bottom: 6px; text-shadow: 0 0 22px rgba(243, 210, 122, .25); }

/* ---------- feature rows ---------- */
.uf-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.uf-feature.is-flipped { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.uf-feature.is-flipped .uf-feature-media { order: 2; }
.uf-feature-media { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.uf-feature-media .uf-phone { position: relative; inset: auto; width: min(270px, 44%); }
.uf-feature-media .uf-phone:nth-child(2) { margin-top: 48px; }
.uf-feature-copy h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 16px; }
.uf-feature-copy > p { color: var(--uf-muted); font-size: 1.06rem; }
.uf-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.uf-points li {
  position: relative;
  padding: 14px 16px 14px 48px;
  border-radius: 12px;
  border: 1px solid var(--uf-line);
  background: rgba(24, 7, 6, .6);
  color: var(--uf-ink);
}
.uf-points li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 35% 35%, #ff9d7a, #b3261d 55%, #5a0c0a);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 12px rgba(226, 58, 47, .45);
}
.uf-points strong { color: var(--uf-heading); }
.uf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.uf-tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(243, 210, 122, .25); color: #e7cf98; font-size: .82rem; background: rgba(40, 16, 6, .45); }

/* ---------- first night steps ---------- */
.uf-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: uf-step; }
.uf-steps li { counter-increment: uf-step; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.uf-steps li::before {
  content: counter(uf-step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font: 700 1.05rem/1 var(--uf-serif);
  color: #1f1305;
  background: radial-gradient(circle at 35% 30%, #fbe4a4, #d8a842 60%, #8a5d14);
  box-shadow: 0 0 0 3px rgba(243, 210, 122, .15), 0 6px 14px rgba(0, 0, 0, .4);
}
.uf-steps strong { display: block; color: var(--uf-heading); letter-spacing: .08em; font-size: .86rem; text-transform: uppercase; margin-top: 2px; }
.uf-steps span { color: var(--uf-muted); font-size: .95rem; }

/* ---------- resources ---------- */
.uf-resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.uf-resource { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 18px; align-items: start; }
.uf-resource img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.uf-resource h3 { margin: 2px 0 4px; font: 700 1.12rem/1.2 var(--uf-serif); }
.uf-resource p { margin: 0; color: var(--uf-muted); font-size: .92rem; line-height: 1.55; }

/* ---------- kill streak ladder ---------- */
.uf-ladder { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.uf-ladder li {
  --tier: #f1c64e;
  --tier-bg: rgba(0, 0, 0, .35);
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--tier) 70%, transparent);
  background: var(--tier-bg);
  color: var(--tier);
  font: 900 .74rem/1.15 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .1em;
  text-shadow: 0 0 12px color-mix(in srgb, var(--tier) 45%, transparent);
  white-space: nowrap;
}
.uf-ladder li small { display: block; font-weight: 700; letter-spacing: .04em; opacity: .8; margin-top: 2px; font-size: .68rem; }
.uf-ladder .t1 { --tier: #f1c64e; }
.uf-ladder .t2 { --tier: #ffd96a; --tier-bg: rgba(107, 74, 14, .45); }
.uf-ladder .t3 { --tier: #ffe08a; --tier-bg: linear-gradient(180deg, rgba(179, 38, 29, .7), rgba(86, 9, 7, .8)); }
.uf-ladder .t4 { --tier: #ffd0c4; --tier-bg: linear-gradient(180deg, rgba(110, 11, 16, .85), rgba(42, 3, 6, .9)); }
.uf-ladder .t5 { --tier: #fff2e6; --tier-bg: linear-gradient(180deg, #e23a2f, #7c0a0d); }
.uf-ladder .t6 { --tier: #f4f6f8; --tier-bg: linear-gradient(180deg, #767c84, #2e3238); }
.uf-ladder .t7 { --tier: #fffaf0; --tier-bg: linear-gradient(180deg, #9aa1a8, #40454b); }
.uf-ladder .t8 { --tier: #b8ff6e; --tier-bg: linear-gradient(180deg, #16240d, #050805); }
.uf-ladder .t9 { --tier: #e8d0ff; --tier-bg: linear-gradient(180deg, #40166c, #120420); }
.uf-ladder .t10 { --tier: #1b1d24; --tier-bg: linear-gradient(180deg, #eae6d8, #9e9a8a); text-shadow: none; }
.uf-ladder .t11 { --tier: #ff4f4f; --tier-bg: linear-gradient(180deg, #1d1719, #060405); }
.uf-ladder .t12 { --tier: #ffd45c; --tier-bg: linear-gradient(180deg, #140c03, #030201); }
.uf-ladder .t13 { --tier: #ffeaa8; --tier-bg: linear-gradient(120deg, #9e1511, #3b0405 45%, #9e1511 70%, #f1c64e); }

/* ---------- bosses ---------- */
.uf-bosses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.uf-boss { padding: 0 0 18px; text-align: center; }
.uf-boss-art { position: relative; height: 170px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(226, 58, 47, .45), transparent 62%); }
.uf-boss-art img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(243, 210, 122, .55); box-shadow: 0 0 0 6px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .6); }
.uf-boss h3 { font: 700 1.3rem/1.2 var(--uf-serif); margin: 4px 16px 6px; }
.uf-boss p { color: var(--uf-muted); font-size: .92rem; margin: 0 18px; }
.uf-boss .uf-stamp { margin-top: 12px; }

/* ---------- origins ---------- */
.uf-origins { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.uf-origin { padding: 24px 22px; border-top: 3px solid var(--origin, #e23a2f); }
.uf-origin img { width: 64px; height: 64px; margin-bottom: 10px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.uf-origin h3 { font: 700 1.35rem/1.2 var(--uf-serif); margin: 0 0 4px; color: var(--origin-ink, #ffb3a8); }
.uf-origin .uf-origin-role { color: var(--uf-gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; }
.uf-origin p { color: var(--uf-muted); font-size: .94rem; margin: 0; }
.uf-origin--hunter { --origin: #e23a2f; --origin-ink: #ffb3a8; }
.uf-origin--rot { --origin: #5cd06a; --origin-ink: #b9f5b8; }
.uf-origin--brood { --origin: #9b59d0; --origin-ink: #dcc1ff; }

/* ---------- relics, crests ---------- */
.uf-art-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px; margin-top: 22px; }
.uf-art-row figure { margin: 0; text-align: center; }
.uf-art-row img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); }
.uf-art-row figcaption { font-size: .72rem; color: var(--uf-dim); line-height: 1.3; margin-top: 4px; }

/* ---------- exchange board ---------- */
.uf-ticker { padding: 8px 0; }
.uf-ticker-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--uf-line); }
.uf-ticker-row:first-child { border-top: 0; }
.uf-ticker-code { font: 800 .95rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #8ff0a8; letter-spacing: .06em; }
.uf-ticker-name { color: var(--uf-heading); font-weight: 700; }
.uf-ticker-name small { display: block; color: var(--uf-dim); font-weight: 400; font-size: .85rem; margin-top: 2px; }
.uf-ticker svg { width: 90px; height: 30px; }

/* ---------- battle pass ---------- */
.uf-pass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(26px, 4vw, 44px);
  background:
    linear-gradient(180deg, rgba(20, 3, 3, .2), rgba(20, 3, 3, .92) 62%),
    url("/assets/undead-forever/bg-crimson-moon-20261008.webp") center top / cover no-repeat,
    #2a0605;
  border-color: rgba(255, 110, 90, .3);
}
.uf-pass h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; margin: 0 0 12px; letter-spacing: .03em; }
.uf-perks { list-style: none; padding: 0; margin: 18px 0 0; border: 1px solid rgba(255, 120, 100, .22); border-radius: 14px; background: rgba(18, 4, 4, .72); overflow: hidden; }
.uf-perks li { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid rgba(255, 120, 100, .14); }
.uf-perks li:first-child { border-top: 0; }
.uf-perks strong { display: block; color: var(--uf-heading); letter-spacing: .1em; font-size: .86rem; text-transform: uppercase; }
.uf-perks span { color: var(--uf-muted); font-size: .9rem; }

/* ---------- community ---------- */
.uf-community { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding: clamp(26px, 4vw, 44px); align-items: center; }
.uf-wire { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.uf-wire li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(30, 33, 40, .72); border-left: 3px solid var(--wire, #b3261d); }
.uf-wire li span:first-child { font-size: 1.35rem; line-height: 1.2; }
.uf-wire strong { color: #f2f3f5; display: block; font-size: .95rem; }
.uf-wire small { color: #b5bac1; font-size: .84rem; line-height: 1.45; display: block; }

/* ---------- gallery ---------- */
.uf-gallery { position: relative; }
.uf-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 22vw, 250px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 26px;
  scrollbar-color: #7a2a1c transparent;
}
.uf-gallery-track figure { margin: 0; scroll-snap-align: start; }
.uf-gallery-track button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 30px; }
.uf-gallery-track button:focus-visible { outline: 3px solid var(--uf-gold); outline-offset: 4px; }
.uf-gallery-track .uf-phone { position: relative; inset: auto; width: 100%; transform: none; transition: transform .25s ease; }
.uf-gallery-track button:hover .uf-phone { transform: translateY(-4px); }
.uf-gallery-track figcaption { margin-top: 12px; color: var(--uf-muted); font-size: .88rem; line-height: 1.45; }
.uf-gallery-track figcaption strong { display: block; color: var(--uf-heading); font: 700 1.02rem/1.25 var(--uf-serif); margin-bottom: 2px; }
.uf-gallery-nav { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 14px; }
.uf-gallery-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(243, 210, 122, .4); background: rgba(20, 6, 6, .7); color: var(--uf-gold); font-size: 1.1rem; cursor: pointer; }
.uf-gallery-nav button:hover { border-color: var(--uf-gold); }

dialog.uf-lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 520px); max-height: 96vh; overflow: visible; }
dialog.uf-lightbox::backdrop { background: rgba(5, 2, 2, .9); backdrop-filter: blur(6px); }
.uf-lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.uf-lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 28px; border: 1px solid rgba(255, 150, 110, .3); box-shadow: 0 30px 90px rgba(0, 0, 0, .8); }
.uf-lightbox figcaption { color: #eadccb; text-align: center; font-size: .95rem; max-width: 44ch; }
.uf-lightbox-bar { display: flex; gap: 10px; justify-content: center; }
.uf-lightbox-bar button { min-width: 46px; height: 46px; border-radius: 23px; border: 1px solid rgba(243, 210, 122, .45); background: rgba(20, 6, 6, .85); color: var(--uf-gold); font-weight: 700; cursor: pointer; padding: 0 16px; }

/* ---------- FAQ ---------- */
.uf-faq { display: grid; gap: 10px; }
.uf-faq details { border: 1px solid var(--uf-line); border-radius: 14px; background: rgba(22, 7, 6, .7); }
.uf-faq summary { cursor: pointer; padding: 18px 54px 18px 20px; font: 700 1.08rem/1.35 var(--uf-serif); color: var(--uf-heading); list-style: none; position: relative; }
.uf-faq summary::-webkit-details-marker { display: none; }
.uf-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--uf-gold); font: 400 1.5rem/1 ui-sans-serif, system-ui, sans-serif; }
.uf-faq details[open] summary::after { content: "−"; }
.uf-faq details > div { padding: 0 20px 18px; color: var(--uf-muted); }
.uf-faq details > div p { margin: 0 0 10px; }

/* ---------- final call ---------- */
.uf-final {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(226, 58, 47, .45), transparent 60%),
    linear-gradient(180deg, rgba(40, 8, 6, .9), rgba(12, 4, 4, .95));
}
.uf-final h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.02; margin: 0 0 14px; }
.uf-final .uf-cta { justify-content: center; margin-top: 26px; }
.uf-final-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 22px; font-size: .92rem; }

/* ---------- guide index cards ---------- */
.uf-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.uf-guide-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit !important; transition: transform .18s ease, border-color .2s ease; }
.uf-guide-card:hover { transform: translateY(-3px); border-color: var(--uf-line-strong); }
.uf-guide-card-art { height: 150px; background-size: cover; background-position: center 30%; position: relative; }
.uf-guide-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 5, 5, 0) 30%, rgba(14, 5, 5, .95)); }
.uf-guide-card-body { padding: 0 20px 22px; margin-top: -10px; position: relative; display: block; }
.uf-guide-card-art { display: block; }
.uf-guide-card-icon { position: absolute; left: 18px; bottom: -14px; z-index: 1; width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .7)); border-radius: 50%; }
.uf-guide-card-body .uf-eyebrow { display: flex; margin-top: 22px; }
.uf-guide-card-body p { display: block; }
.uf-guide-card h3 { font: 700 1.3rem/1.2 var(--uf-serif); margin: 0 0 8px; color: var(--uf-heading); }
.uf-guide-card p { margin: 0; color: var(--uf-muted); font-size: .93rem; }
.uf-guide-card .uf-eyebrow { margin-bottom: 6px; font-size: .68rem; }

/* ---------- guide articles ---------- */
.uf-crumbs { width: var(--uf-wide); margin: 26px auto 0; font-size: .85rem; color: var(--uf-dim); }
.uf-crumbs a { color: var(--uf-muted); text-decoration: none; }
.uf-crumbs a:hover { color: var(--uf-gold); }
.uf-article-hero {
  width: var(--uf-wide);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 36px;
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
}
.uf-article-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1; margin: 0 0 16px; }
.uf-article-hero .uf-phone { position: relative; inset: auto; transform: rotate(3deg); width: min(250px, 100%); margin-inline: auto; }
.uf-article { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 0; }
.uf-article h2 { font: 700 clamp(1.7rem, 3.2vw, 2.25rem)/1.15 var(--uf-serif); margin: 52px 0 14px; color: var(--uf-heading); }
.uf-article h3 { font: 700 1.25rem/1.25 var(--uf-serif); margin: 30px 0 8px; color: #ffe2b8; }
.uf-article p, .uf-article li { color: var(--uf-ink); font-size: 1.04rem; }
.uf-article ul, .uf-article ol { padding-left: 1.3em; }
.uf-article li { margin: 6px 0; }
.uf-article li::marker { color: var(--uf-blood-hi); }
.uf-article strong { color: var(--uf-heading); }
.uf-article figure.uf-shots { display: flex; gap: 18px; justify-content: center; align-items: flex-start; margin: 28px 0; flex-wrap: wrap; }
.uf-article figure.uf-shots .uf-phone { position: relative; inset: auto; transform: none; width: min(230px, 44%); }
.uf-article figure.uf-shots figcaption { flex-basis: 100%; text-align: center; color: var(--uf-dim); font-size: .88rem; }
.uf-callout { margin: 26px 0; padding: 18px 20px 18px 22px; border-left: 3px solid var(--uf-gold); border-radius: 0 14px 14px 0; background: rgba(40, 16, 6, .5); }
.uf-callout p { margin: 0; }
.uf-callout strong:first-child { color: var(--uf-gold); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; display: block; margin-bottom: 4px; }
.uf-table-wrap { overflow-x: auto; margin: 22px 0; border-radius: 14px; border: 1px solid var(--uf-line); }
.uf-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: rgba(18, 6, 5, .72); }
.uf-table th { text-align: left; padding: 12px 16px; color: var(--uf-gold); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(60, 14, 8, .55); }
.uf-table td { padding: 12px 16px; border-top: 1px solid var(--uf-line); color: var(--uf-ink); vertical-align: top; }
.uf-table td:first-child { color: var(--uf-heading); font-weight: 700; white-space: nowrap; }
.uf-article-nav { display: flex; justify-content: space-between; gap: 16px; margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--uf-line); flex-wrap: wrap; }
.uf-article-nav a { text-decoration: none; font-weight: 700; }
.uf-updated { color: var(--uf-dim); font-size: .85rem; margin-top: 30px; }

/* legal pages keep their own structure inside the theme */
body.uf .policy-page, body.uf .page { position: relative; z-index: 1; }
body.uf.uf-legal .page-hero h1, body.uf.uf-legal .section-title h2 { font-family: var(--uf-serif); font-weight: 700; color: var(--uf-heading); letter-spacing: -.01em; }
body.uf.uf-legal .page-hero h1 { text-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 0 30px rgba(226, 58, 47, .3); }
body.uf.uf-legal .section-title p, body.uf.uf-legal .page-hero p { color: var(--uf-muted); }
body.uf.uf-legal .card, body.uf.uf-legal .contact-panel { background: var(--uf-glass); border: 1px solid var(--uf-line); box-shadow: inset 0 1px 0 rgba(255, 220, 180, .06); }
body.uf.uf-legal .card h3, body.uf.uf-legal .contact-panel h3 { font-family: var(--uf-serif); color: #ffe2b8; }
body.uf.uf-legal .card p, body.uf.uf-legal .content p, body.uf.uf-legal .content li { color: var(--uf-ink); }
body.uf.uf-legal .content li::marker { color: var(--uf-blood-hi); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .uf-hero-inner { grid-template-columns: 1fr; text-align: left; }
  .uf-phones { height: clamp(420px, 92vw, 560px); max-width: 560px; width: 100%; margin: 0 auto; }
  .uf-phone { width: clamp(150px, 36vw, 230px); }
  .uf-phones .uf-phone:nth-child(2) { width: clamp(170px, 40vw, 250px); }
  .uf-feature, .uf-feature.is-flipped, .uf-pass, .uf-community, .uf-article-hero { grid-template-columns: 1fr; }
  .uf-feature.is-flipped .uf-feature-media { order: 0; }
  .uf-subnav { top: 66px; }
  .uf-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .uf-subnav { top: 0; position: relative; }
}
@media (max-width: 600px) {
  body.uf { --uf-wide: calc(100% - 32px); }
  .uf-hero-bg { background:
    linear-gradient(180deg, rgba(10, 4, 4, .82) 0%, rgba(10, 4, 4, .95) 60%, #0a0404 100%),
    url("/assets/undead-forever/bg-glass-hands-20261008.webp") center top / cover no-repeat; }
  .uf-cta .uf-btn { width: 100%; }
  .uf-glance ul { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .uf-resources { grid-template-columns: 1fr; }
  .uf-feature-media .uf-phone { width: min(200px, 47%); }
  .uf-ticker-row { grid-template-columns: 58px 1fr; padding: 12px 16px; }
  .uf-ticker svg { display: none; }
  .uf-article { width: calc(100% - 32px); }
  .uf-subnav-brand, .uf-subnav-play { display: none; }
  .uf-subnav-links { justify-content: space-between; }
  .uf-subnav-links a { padding: 9px 8px; font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .uf-btn, .uf-guide-card, .uf-gallery-track .uf-phone { transition: none; }
}
