/* Homepage redesign: a concise, product-first story. Legal and updates pages keep styles.css. */

.app-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  overflow: visible;
  fill: currentColor;
  shape-rendering: geometricPrecision;
}

.home-page {
  --home-bg: #100d1b;
  --home-bg-deep: #0b0912;
  --home-panel: #181426;
  --home-panel-soft: #201a31;
  --home-line: rgba(224, 216, 255, 0.12);
  --home-text: #f8f4ee;
  --home-muted: #b9b1c6;
  --home-violet: #6c4dc8;
  --home-violet-soft: #b49af1;
  --home-gold: #e4b354;
  --home-radius-lg: 24px;
  --home-radius-md: 16px;
  --home-shell: 1180px;
  min-width: 320px;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: 'Sora', sans-serif;
  overflow-x: hidden;
}

.home-page ::selection {
  background: rgba(180, 154, 241, 0.42);
  color: #fff;
}

.home-page ::-webkit-scrollbar {
  width: 10px;
}

.home-page ::-webkit-scrollbar-track {
  background: var(--home-bg-deep);
}

.home-page ::-webkit-scrollbar-thumb {
  border: 3px solid var(--home-bg-deep);
  border-radius: 999px;
  background: #4b3b6b;
}

.home-page::before {
  display: none;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 3px solid var(--home-gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--home-text);
  color: var(--home-bg-deep);
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.home-header.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  border: 0;
  background: linear-gradient(180deg, rgba(8, 7, 14, 0.72), transparent);
  backdrop-filter: none;
}

.home-header.site-header nav {
  max-width: var(--home-shell);
  min-height: 88px;
  padding: 18px 28px;
  flex-wrap: nowrap;
}

.home-header .brand,
.home-footer .brand {
  color: var(--home-text);
  font-size: 1.17rem;
  letter-spacing: 0.04em;
}

.home-header .brand:hover,
.home-footer .brand:hover {
  color: var(--home-text);
}

.home-header .links {
  gap: 30px;
  margin-left: auto;
  margin-right: 18px;
  font-size: 0.82rem;
  font-weight: 600;
}

.home-header .links a {
  position: relative;
  color: rgba(248, 244, 238, 0.68);
}

.home-header .links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--home-gold);
  transition: right 220ms var(--ease-out);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(248, 244, 238, 0.28);
  border-radius: 10px;
  color: var(--home-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 220ms var(--ease-out);
}

.nav-cta:active,
.primary-action:active {
  transform: translateY(1px) scale(0.98);
}

.home-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-shell {
  width: min(calc(100% - 56px), var(--home-shell));
  margin-inline: auto;
}

.home-hero {
  position: relative;
  min-height: 910px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 24%, rgba(112, 77, 201, 0.24), transparent 26%),
    radial-gradient(circle at 54% 100%, rgba(228, 179, 84, 0.07), transparent 30%),
    linear-gradient(145deg, #0b0912 0%, #171126 51%, #100d1b 100%);
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(410px, 0.98fr);
  align-items: center;
  gap: 50px;
  min-height: 910px;
  padding-top: 104px;
  padding-bottom: 74px;
}

.hero-message {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding-bottom: 26px;
}

.hero-message h1 {
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: clamp(3.7rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-message h1 em {
  color: var(--home-gold);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-lede {
  max-width: 570px;
  margin: 28px 0 0;
  color: rgba(248, 244, 238, 0.76);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 56px;
  padding: 0 20px 0 23px;
  border-radius: 10px;
  background: var(--home-violet);
  box-shadow: 0 16px 36px -20px rgba(116, 78, 210, 0.92), inset 0 1px rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, transform 240ms var(--ease-out), box-shadow 240ms ease;
}

.primary-action .app-icon {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.availability {
  color: rgba(248, 244, 238, 0.58);
  font-size: 0.75rem;
  letter-spacing: 0.035em;
}

.campaign-story {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.62fr);
  align-items: end;
  width: min(100%, 650px);
  margin: 0;
}

.campaign-feed-screen,
.campaign-proof-screen {
  border: 1px solid rgba(235, 224, 255, 0.16);
  overflow: hidden;
  background: #171220;
  box-shadow: 0 48px 82px -50px rgba(0, 0, 0, 0.94), inset 0 1px rgba(255, 255, 255, 0.12);
}

.campaign-feed-screen {
  position: relative;
  min-height: 420px;
  border-radius: var(--home-radius-lg);
}

.campaign-feed-screen > img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 68% center;
}

.campaign-feed-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(13, 10, 21, 0.16) 44%, rgba(13, 10, 21, 0.94) 100%);
  pointer-events: none;
}

.campaign-screen-bar {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: rgba(248, 244, 238, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
}

.campaign-screen-bar > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.campaign-screen-bar .app-icon {
  width: 0.76rem;
  height: 0.76rem;
}

.campaign-feed-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 23px 22px 22px;
}

.campaign-feed-copy p {
  margin: 0 0 5px;
  color: rgba(248, 244, 238, 0.69);
  font-size: 0.67rem;
  font-weight: 600;
}

.campaign-feed-copy h2,
.campaign-proof-screen h2 {
  margin: 0;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.32rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.campaign-kind,
.proof-status,
.campaign-proof-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.campaign-kind {
  margin-top: 14px;
  padding: 6px 8px;
  background: rgba(228, 179, 84, 0.16);
  color: #f3ca72;
}

.campaign-kind .app-icon,
.campaign-proof-type .app-icon {
  width: 0.76rem;
  height: 0.76rem;
}

.campaign-proof-screen {
  position: relative;
  z-index: 2;
  min-height: 310px;
  margin: 0 0 -28px -25px;
  padding: 60px 22px 22px;
  border-color: rgba(228, 179, 84, 0.25);
  border-radius: var(--home-radius-md);
  background:
    radial-gradient(circle at 92% 5%, rgba(228, 179, 84, 0.16), transparent 34%),
    linear-gradient(145deg, #231c33, #14101f);
}

.campaign-proof-screen .campaign-screen-bar {
  border-bottom: 1px solid rgba(225, 214, 242, 0.1);
  background: rgba(14, 11, 21, 0.24);
}

.campaign-proof-screen .proof-status {
  color: #c8ebce;
}

.campaign-proof-type {
  color: #e8bd68;
}

.campaign-proof-screen h2 {
  margin-top: 14px;
  font-size: clamp(1.28rem, 2.05vw, 1.75rem);
}

.proof-receipt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 11px;
  border: 1px solid rgba(156, 220, 175, 0.2);
  border-radius: 11px;
  background: rgba(90, 179, 126, 0.08);
}

.proof-receipt > .app-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #8ed7a2;
}

.proof-receipt span {
  display: grid;
  gap: 2px;
}

.proof-receipt strong {
  color: #e7f2e9;
  font-size: 0.7rem;
}

.proof-receipt small {
  color: #a8b7aa;
  font-size: 0.7rem;
}

.campaign-proof-link {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-top: 21px;
  color: #e4b354;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.campaign-proof-link .app-icon {
  width: 0.72rem;
  height: 0.72rem;
  transition: transform 180ms var(--ease-out);
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  perspective: 1200px;
}

.hero-stage::before {
  content: '';
  position: absolute;
  width: 510px;
  height: 510px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 80, 226, 0.34), rgba(90, 52, 156, 0.08) 52%, transparent 70%);
  filter: blur(12px);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(172, 142, 238, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: 176px;
  right: -170px;
  width: 650px;
  height: 650px;
}

.orbit-two {
  top: 264px;
  right: -46px;
  width: 410px;
  height: 410px;
}

.app-phone {
  position: relative;
  width: 348px;
  min-height: 692px;
  padding: 30px 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 46px;
  background: #0c0a13;
  box-shadow:
    0 60px 90px -40px rgba(0, 0, 0, 0.78),
    0 0 0 7px #211b2e,
    0 0 0 8px rgba(255, 255, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.hero-phone {
  z-index: 2;
  transform: rotate(2.25deg) translateY(16px);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: rotate(2.25deg) translateY(16px); }
  50% { transform: rotate(1.4deg) translateY(2px); }
}

.phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 18px;
  border-radius: 20px;
  background: #050408;
  transform: translateX(-50%);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 8px 18px;
}

.app-topbar > div:first-child,
.recipient-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.micro-label,
.recipient-row small,
.composer-field small {
  color: #777087;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-topbar strong {
  color: #f3eefb;
  font-family: 'Cinzel', serif;
  font-size: 1.03rem;
}

.top-avatar,
.friend-stack i {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #302648;
}

.top-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #8b6dd0;
  font-size: 1rem;
}

.feed-entry {
  margin-bottom: 12px;
  border: 1px solid rgba(213, 199, 239, 0.1);
  border-radius: 18px;
  background: #171320;
  overflow: hidden;
}

.featured-entry {
  box-shadow: 0 22px 44px -30px rgba(105, 71, 177, 0.88);
}

.entry-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
}

.entry-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
}

.entry-avatar.azure { background: linear-gradient(145deg, #365c8e, #704a93); }
.entry-avatar.ember { background: linear-gradient(145deg, #8b513e, #865177); }

.entry-meta > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.entry-meta strong {
  overflow: hidden;
  color: #e9e3f1;
  font-size: 0.61rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-meta small {
  color: #756e80;
  font-size: 0.53rem;
}

.entry-meta .feed-heart {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #a297b0;
  font-size: 1.05rem;
}

.proof-scene {
  position: relative;
  height: 230px;
  margin: 0 7px;
  border-radius: 13px;
  overflow: hidden;
}

.proof-hike {
  background:
    linear-gradient(180deg, #c58b73 0%, #735b80 42%, #272338 100%);
}

.proof-hike::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 222, 172, 0.08), transparent 48%, rgba(11, 10, 18, 0.36));
}

.scene-sun {
  position: absolute;
  top: 48px;
  right: 72px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5ce79;
  box-shadow: 0 0 40px 14px rgba(245, 188, 104, 0.28);
}

.scene-mountain {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -23%;
  height: 70%;
  background: #332d45;
  clip-path: polygon(0 66%, 18% 33%, 32% 54%, 51% 5%, 68% 54%, 78% 37%, 100% 70%, 100% 100%, 0 100%);
}

.mountain-back {
  bottom: 3%;
  background: #554761;
  opacity: 0.76;
}

.mountain-front {
  background: #201d2c;
}

.proof-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(16, 13, 27, 0.68);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.52rem;
  font-weight: 600;
}

.entry-copy {
  padding: 13px 13px 16px;
}

.quest-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9e96aa;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quest-kind .app-icon {
  width: 0.68rem;
  height: 0.68rem;
  font-size: 0.68rem;
}

.quest-kind.fast { color: #65d2c1; }
.quest-kind.long { color: #b58bed; }

.entry-copy h2 {
  margin: 4px 0;
  color: #f2edf7;
  font-family: 'Sora', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.entry-copy p {
  margin: 0;
  color: #7f778b;
  font-size: 0.59rem;
}

.compact-entry {
  padding-bottom: 11px;
}

.compact-entry .entry-meta {
  padding-bottom: 7px;
}

.cheer-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #c98ba5;
  font-size: 0.58rem;
  font-weight: 700;
}

.compact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
  padding: 10px;
  border-radius: 10px;
  background: #1e192b;
  color: #c9c2d1;
  font-size: 0.61rem;
  font-weight: 600;
}

.phone-nav {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  min-height: 61px;
  padding: 8px 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px 17px 30px 30px;
  background: rgba(20, 16, 29, 0.96);
  backdrop-filter: blur(12px);
}

.phone-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #625b6c;
  font-size: 0.42rem;
  font-weight: 600;
}

.phone-nav b,
.phone-nav > span > .app-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 0.9rem;
  font-weight: 400;
}

.phone-nav .active {
  color: var(--home-violet-soft);
}

.brand-tab-icon {
  overflow: hidden;
}

.brand-tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(42%) sepia(7%) saturate(903%) hue-rotate(229deg) brightness(89%);
  transform: scale(1.8);
}

.stage-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(26, 21, 40, 0.78);
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(15px);
  color: #aaa2b6;
  font-size: 0.55rem;
  line-height: 1.35;
}

.stage-note strong {
  display: block;
  color: #eee8f5;
  font-size: 0.62rem;
}

.note-left {
  left: -24px;
  top: 27%;
  transform: rotate(-4deg);
}

.note-right {
  right: -45px;
  bottom: 22%;
  transform: rotate(3deg);
}

.note-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(228, 179, 84, 0.13);
  color: var(--home-gold);
  font-size: 0.95rem;
}

.friend-stack {
  display: flex;
  padding-left: 8px;
}

.friend-stack i {
  width: 27px;
  height: 27px;
  margin-left: -8px;
  border: 2px solid #1b1628;
  font-size: 0.72rem;
  font-style: normal;
}

.home-section {
  position: relative;
  padding: 124px 0 148px;
}

.section-intro {
  max-width: 720px;
}

.section-intro h2,
.quest-world-copy h2,
.closing-copy h2 {
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: clamp(2.45rem, 4.6vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.section-intro > p:last-child,
.quest-world-copy > p,
.closing-copy > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.loop-section {
  background:
    radial-gradient(circle at 80% 12%, rgba(119, 78, 205, 0.11), transparent 28%),
    var(--home-bg);
}

.feed-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 22%, rgba(228, 179, 84, 0.1), transparent 26%),
    radial-gradient(circle at 18% 80%, rgba(115, 77, 205, 0.16), transparent 32%),
    #100d1b;
}

.feed-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  align-items: center;
  gap: clamp(52px, 9vw, 142px);
}

.feed-showcase-copy h2 {
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: clamp(2.45rem, 4.6vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.feed-showcase-copy p {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.feed-flow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: #d7c7f5;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 5px;
}

.feed-flow-link .app-icon {
  width: 0.92rem;
  height: 0.92rem;
  transition: transform 220ms var(--ease-out);
}

.feed-preview {
  width: min(100%, 600px);
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(235, 224, 255, 0.17);
  border-radius: var(--home-radius-lg);
  background: #171220;
  box-shadow: 0 38px 76px -46px rgba(0, 0, 0, 0.94), inset 0 1px rgba(255, 255, 255, 0.1);
}

.feed-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(235, 224, 255, 0.1);
  color: #a99fb9;
  font-size: 0.75rem;
  font-weight: 600;
}

.feed-preview-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: 1.12rem;
  font-weight: 600;
}

.feed-preview-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(189, 158, 247, 0.34);
  border-radius: 7px;
  background: rgba(115, 77, 205, 0.16);
}

.feed-preview-mark img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.feed-preview-list {
  padding: 7px 12px 12px;
}

.feed-preview .feed-entry {
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px 6px 17px;
}

.feed-preview .feed-entry + .feed-entry {
  border-top: 1px solid rgba(235, 224, 255, 0.09);
}

.feed-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 12px;
}

.feed-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.feed-avatar-mira { background: linear-gradient(145deg, #925c3e, #542e3f); }
.feed-avatar-avery { background: linear-gradient(145deg, #36666e, #293d54); }
.feed-avatar-noor { background: linear-gradient(145deg, #8d5068, #563a75); }

.feed-entry-person {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feed-entry-person strong {
  color: var(--home-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.feed-entry-person small {
  color: #a99fb9;
  font-size: 0.75rem;
  font-weight: 600;
}

.feed-entry > img {
  display: block;
  width: 100%;
  height: clamp(180px, 24vw, 250px);
  border-radius: var(--home-radius-md);
  object-fit: cover;
}

.feed-entry-legendary > img { object-position: 64% center; }
.feed-entry-explore > img { object-position: center 54%; }
.feed-entry-food > img { object-position: center 48%; }

.feed-entry h3 {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 12px 4px 0;
  color: #f5f0f8;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.42;
}

.feed-entry h3 .app-icon {
  flex: 0 0 auto;
  width: 0.94rem;
  height: 0.94rem;
  margin-top: 0.1em;
}

.feed-entry-legendary h3 .app-icon { color: #e4b354; }
.feed-entry-explore h3 .app-icon { color: #6f92e8; }
.feed-entry-food h3 .app-icon { color: #55cbbd; }

.feed-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 4px 0;
}

.feed-tier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #c7badf;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.feed-tier .app-icon {
  width: 0.8rem;
  height: 0.8rem;
}

.feed-entry-legendary .feed-tier { color: #e6bf71; }
.feed-entry-explore .feed-tier { color: #9cb4ed; }
.feed-entry-food .feed-tier { color: #83d7cc; }

.feed-entry time {
  flex: 0 0 auto;
  color: #a99fb9;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (hover: hover) {
  .feed-flow-link:hover {
    text-decoration: underline;
  }

  .feed-flow-link:hover .app-icon {
    transform: translateY(3px);
  }
}

.quest-loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 76px 0 0;
  padding: 0;
  list-style: none;
}

.quest-loop::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 154, 241, 0.42) 18%, rgba(180, 154, 241, 0.42) 82%, transparent);
}

.quest-loop li {
  position: relative;
  z-index: 1;
  min-height: 262px;
  margin: 0;
  padding: 0 54px 28px 0;
}

.quest-loop li + li {
  padding-left: 54px;
  border-left: 1px solid var(--home-line);
}

.loop-number {
  position: absolute;
  top: 28px;
  right: 24px;
  color: rgba(248, 244, 238, 0.12);
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-variant-numeric: tabular-nums;
}

.loop-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(181, 154, 241, 0.23);
  border-radius: 50%;
  background: var(--home-bg);
  box-shadow: 0 0 0 9px var(--home-bg);
  color: var(--home-violet-soft);
  font-family: Georgia, serif;
  font-size: 1.75rem;
  transition: transform 280ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}

.quest-loop h3 {
  margin: 32px 0 10px;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.quest-loop p {
  max-width: 285px;
  margin: 0;
  color: var(--home-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.quest-world {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 35%, rgba(115, 77, 205, 0.15), transparent 25%),
    radial-gradient(circle at 12% 85%, rgba(228, 179, 84, 0.07), transparent 28%),
    #100d1b;
}

.quest-world::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -120px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(182, 152, 245, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 74px rgba(182, 152, 245, 0.03), 0 0 0 148px rgba(182, 152, 245, 0.02);
  transform: translateY(-50%);
  pointer-events: none;
}

.quest-world-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: clamp(56px, 9vw, 126px);
}

.quest-world-copy > p {
  max-width: 480px;
}

.type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 450px;
  margin-top: 32px;
}

.type-list span,
.type-list .legendary-type-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(31, 25, 47, 0.7);
  color: #c3bccd;
  font-size: 0.72rem;
  font-weight: 600;
}

.type-list .legendary-type-link {
  border-color: rgba(228, 179, 84, 0.32);
  background: rgba(228, 179, 84, 0.045);
  color: #e9dfd1;
  text-decoration: none;
}

.legendary-type-link small {
  padding-left: 7px;
  border-left: 1px solid rgba(228, 179, 84, 0.27);
  color: #d9af62;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.type-list .app-icon {
  width: 0.84rem;
  height: 0.84rem;
  color: var(--type);
  font-size: 0.84rem;
  text-shadow: 0 0 12px var(--type);
}

.quest-journey {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  margin-top: 72px;
  padding: 0;
  list-style: none;
}

.quest-journey::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 154, 241, 0.45) 14%, rgba(180, 154, 241, 0.45) 86%, transparent);
}

.journey-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
}

.journey-index {
  display: grid;
  position: relative;
  z-index: 2;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 0 -11px 14px;
  border: 1px solid rgba(225, 214, 242, 0.15);
  border-radius: 50%;
  background: #1d172a;
  color: #e1d6f7;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.journey-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(225, 214, 242, 0.15);
  border-radius: var(--home-radius-md);
  background: #15111f;
  box-shadow: 0 28px 60px -42px rgba(0, 0, 0, 0.92), inset 0 1px rgba(255, 255, 255, 0.05);
}

.journey-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-invite > img {
  object-fit: contain;
  object-position: center;
  background: #0d0b17;
}

.journey-screen-bar,
.journey-proof-action,
.journey-approval,
.journey-feed-copy {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
}

.journey-screen-bar {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(13, 10, 21, 0.88), rgba(13, 10, 21, 0));
  color: #e9e2f0;
  font-size: 0.75rem;
  font-weight: 700;
}

.journey-screen-bar > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.journey-screen-bar .app-icon {
  width: 0.78rem;
  height: 0.78rem;
  color: #d6c5fa;
}

.journey-proof-action,
.journey-approval,
.journey-feed-copy {
  bottom: 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(13, 10, 21, 0), rgba(13, 10, 21, 0.96) 31%);
}

.journey-proof-action,
.journey-approval {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  color: #eae3f3;
  font-size: 0.75rem;
  font-weight: 700;
}

.journey-proof-action .app-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: #d5c3fa;
}

.journey-proof-action strong,
.journey-approval strong {
  grid-column: 1 / -1;
  display: block;
  margin-top: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #7354cd;
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
}

.journey-approval {
  grid-template-columns: 1fr;
}

.journey-approval span {
  color: #cfc4d9;
}

.journey-approval strong {
  background: #3b7359;
}

.journey-feed-copy {
  display: grid;
  gap: 4px;
  color: #f2edf5;
  font-size: 0.75rem;
  font-weight: 700;
}

.journey-feed-copy span {
  color: #d1c8d9;
  font-weight: 600;
  line-height: 1.35;
}

.journey-step h3 {
  margin: 18px 0 6px;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.journey-step p {
  margin: 0;
  color: #aaa0b8;
  font-size: 0.78rem;
  line-height: 1.58;
}

.legendary-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 26%, rgba(228, 179, 84, 0.13), transparent 24%),
    radial-gradient(circle at 10% 86%, rgba(112, 77, 201, 0.14), transparent 28%),
    #0d0a15;
}

.legendary-heading {
  max-width: 770px;
}

.legendary-heading h2 {
  max-width: 700px;
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: clamp(2.45rem, 4.6vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.legendary-heading > div:first-child > p {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.legendary-explorer {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  margin-top: 68px;
}

.legendary-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
}

.legendary-coming {
  margin: 18px 15px 0;
  color: #998d7d;
  font-size: 0.75rem;
  line-height: 1.55;
}

.legendary-tabs button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #9e96ab;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}

.legendary-tabs button .app-icon {
  color: var(--legendary-tone);
  font-size: 1.1rem;
  opacity: 0.62;
}

.legendary-tabs button[aria-selected='true'] {
  border-color: rgba(228, 179, 84, 0.38);
  background: rgba(228, 179, 84, 0.09);
  color: #f3e7d2;
}

.legendary-tabs button[aria-selected='true'] .app-icon {
  color: var(--legendary-tone);
  opacity: 1;
}

.legendary-tabs button:active {
  transform: scale(0.98);
}

.legendary-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.33fr) minmax(0, 0.67fr);
  min-height: 315px;
  border: 1px solid rgba(230, 220, 248, 0.12);
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 28, 49, 0.94), rgba(18, 14, 28, 0.98));
  box-shadow: 0 34px 76px -52px rgba(0, 0, 0, 0.95), inset 0 1px rgba(255, 255, 255, 0.05);
}

.legendary-panel[hidden] {
  display: none;
}

.legendary-emblem {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: var(--home-gold);
  font-size: clamp(3.5rem, 8vw, 6.6rem);
}

.draft-emblem,
.claim-emblem,
.swap-emblem { background: radial-gradient(circle, rgba(228, 179, 84, 0.2), transparent 64%); color: #e4b354; }

.legendary-panel-copy {
  display: flex;
  padding: 38px 38px 34px 0;
  flex-direction: column;
  justify-content: center;
}

.legendary-panel h3 {
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.legendary-panel-copy > p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.legendary-panel dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.legendary-panel dl div {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(224, 216, 255, 0.13);
}

.legendary-panel dt {
  color: #f0c875;
  font-size: 0.7rem;
  font-weight: 700;
}

.legendary-panel dd {
  margin: 5px 0 0;
  color: #c2bacd;
  font-size: 0.75rem;
  line-height: 1.45;
}

.quest-composer {
  position: relative;
  max-width: 510px;
  margin-left: auto;
  padding: 25px;
  border: 1px solid rgba(236, 225, 255, 0.15);
  border-radius: 30px;
  background: rgba(19, 15, 29, 0.92);
  box-shadow: 0 50px 90px -48px rgba(0, 0, 0, 0.9), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  transform: rotate(1deg);
}

.composer-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 25px;
}

.composer-head strong {
  color: #f4eff8;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
}

.back-glyph {
  color: #aaa0b6;
  font-size: 1.7rem;
}

.draft-label {
  justify-self: end;
  color: #746b7e;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipient-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0 19px;
  border-bottom: 1px solid var(--home-line);
}

.recipient-row > span:nth-child(2) {
  flex: 1;
}

.recipient-row strong {
  color: #ded6e7;
  font-size: 0.72rem;
}

.change-link {
  color: var(--home-violet-soft);
  font-size: 0.61rem;
  font-weight: 600;
}

.composer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  padding: 22px 0;
}

.composer-field strong {
  max-width: 380px;
  color: #f5f0f8;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
}

.difficulty-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.difficulty-picker > span {
  display: flex;
  min-height: 49px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: #1b1626;
  color: #7f7789;
  font: 600 0.64rem 'Sora', sans-serif;
}

.difficulty-picker > span.selected {
  border-color: rgba(132, 96, 215, 0.58);
  background: rgba(126, 85, 219, 0.16);
  color: #cdbaf7;
}

.difficulty-picker > span small {
  margin-top: 1px;
  color: #817398;
  font-size: 0.5rem;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  color: #8e8599;
  font-size: 0.61rem;
}

.composer-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.composer-footer .app-icon {
  width: 0.82rem;
  height: 0.82rem;
  color: var(--home-gold);
}

.send-quest-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--home-violet);
  color: white;
  font: 700 0.72rem 'Sora', sans-serif;
}

.send-quest-button .app-icon {
  width: 1rem;
  height: 1rem;
}

.secret-card {
  position: absolute;
  right: -82px;
  bottom: -46px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  width: 330px;
  padding: 14px;
  border: 1px solid rgba(218, 203, 242, 0.14);
  border-radius: 15px;
  background: rgba(34, 27, 49, 0.96);
  box-shadow: 0 24px 54px -32px rgba(0, 0, 0, 0.9);
  transform: rotate(-2.5deg);
}

.secret-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.secret-card strong {
  color: #e9e2f0;
  font-size: 0.63rem;
}

.secret-card small {
  color: #7f7689;
  font-size: 0.52rem;
}

.secret-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: #b787ed;
  font-size: 1.2rem;
}

.toggle {
  position: relative;
  width: 29px;
  height: 17px;
  border-radius: 20px;
  background: var(--home-violet);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: white;
}

.rewards-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(228, 179, 84, 0.08), transparent 24%),
    var(--home-bg-deep);
}

.rewards-intro {
  max-width: 830px;
}

.reward-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 20px;
  margin-top: 72px;
}

.showcase-card {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(230, 220, 248, 0.1);
  overflow: hidden;
}

.gear-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  border-radius: var(--home-radius-lg);
  background:
    radial-gradient(circle at 78% 85%, rgba(130, 86, 222, 0.24), transparent 36%),
    #171320;
}

.showcase-copy {
  position: relative;
  z-index: 2;
  max-width: 390px;
}

.showcase-copy h3 {
  margin: 0 0 9px;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  letter-spacing: -0.035em;
}

.showcase-copy p {
  max-width: 340px;
  margin: 0;
  color: var(--home-muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.gear-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 11px;
  margin-top: 34px;
}

.gear-item {
  display: flex;
  min-height: 196px;
  padding: 15px 14px;
  border: 1px solid rgba(225, 214, 242, 0.1);
  border-radius: 14px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: rgba(33, 27, 47, 0.72);
  transition: transform 260ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.gear-art {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: auto;
  border: 1px solid rgba(219, 202, 251, 0.22);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 32%, rgba(145, 107, 234, 0.2), rgba(12, 10, 18, 0.56));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  color: #cbb4f5;
}

.gear-art img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.gear-item strong {
  color: #eee8f3;
  font-size: 0.78rem;
}

.gear-item small {
  margin-top: 6px;
  color: #aaa0b8;
  font-size: 0.75rem;
  line-height: 1.5;
}

.profile-showcase {
  display: flex;
  padding: 35px 35px 39px;
  border-radius: var(--home-radius-lg);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 22%, rgba(228, 179, 84, 0.11), transparent 31%),
    #171320;
}

.profile-preview {
  width: 100%;
  text-align: center;
}

.profile-level {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 5px 8px;
  border: 1px solid rgba(228, 179, 84, 0.24);
  border-radius: 5px;
  color: var(--home-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.avatar-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  border: 2px solid #e4b354;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(228, 179, 84, 0.08), 0 0 32px rgba(228, 179, 84, 0.14);
}

.frame-glow {
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(228, 179, 84, 0.26);
  border-radius: 50%;
  clip-path: polygon(0 0, 50% 0, 50% 20%, 100% 20%, 100% 100%, 40% 100%, 40% 78%, 0 78%);
  animation: frameTurn 12s linear infinite;
}

@keyframes frameTurn {
  to { transform: rotate(360deg); }
}

.avatar-face {
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2e2643, #171321);
  font-size: 3rem;
}

.badge-pin {
  position: absolute;
  right: -8px;
  bottom: 1px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.badge-pin img,
.mini-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-preview h3 {
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
}

.profile-preview > p {
  margin: 2px 0 15px;
  color: #aaa0b8;
  font-size: 0.75rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 280px;
  margin: 0 auto;
  padding: 12px 0;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.profile-stats span {
  display: flex;
  flex-direction: column;
}

.profile-stats strong {
  color: #ede7f2;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.profile-stats small {
  color: #aaa0b8;
  font-size: 0.7rem;
}

.badge-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 285px;
  margin: 16px auto 0;
}

.mini-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.7rem;
}

.mini-badge.asset-badge {
  border-color: transparent;
  background: transparent;
}

.mini-badge .app-icon {
  font-size: 0.86rem;
}

.mini-badge.green { color: #61b594; }
.mini-badge.blue { color: #668fca; }
.mini-badge.violet { color: #a079d5; }
.mini-badge.gold { color: #d8a952; }
.mini-badge.badge-more {
  border-color: rgba(228, 179, 84, 0.45);
  background: rgba(228, 179, 84, 0.1);
  color: #f0ca7b;
  font-size: 0.7rem;
  font-weight: 700;
}

.profile-copy {
  width: 100%;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--home-line);
}

.profile-copy h3 {
  font-size: 1.55rem;
}

.badge-catalogue {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  margin-top: 20px;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(230, 220, 248, 0.11);
  border-radius: var(--home-radius-lg);
  background:
    radial-gradient(circle at 12% 86%, rgba(119, 82, 213, 0.17), transparent 33%),
    radial-gradient(circle at 86% 12%, rgba(228, 179, 84, 0.11), transparent 24%),
    #15111f;
}

.badge-catalogue-copy {
  max-width: 430px;
}

.badge-catalogue h3 {
  margin: 0;
  color: var(--home-text);
  font-family: 'Cinzel', serif;
  font-size: clamp(1.95rem, 3.3vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.badge-catalogue-copy > p {
  margin: 18px 0 0;
  color: var(--home-muted);
  font-size: 0.86rem;
  line-height: 1.72;
}

.badge-app-screen {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(228, 179, 84, 0.2);
  border-radius: var(--home-radius-md);
  background: linear-gradient(145deg, rgba(39, 31, 57, 0.96), rgba(22, 17, 33, 0.98));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.badge-screen-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 4px 15px;
  border-bottom: 1px solid rgba(225, 214, 242, 0.11);
}

.badge-screen-head span {
  color: #f4edf5;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
}

.badge-screen-head small {
  color: #a99fab;
  font-size: 0.7rem;
}

.badge-screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.catalogue-badge {
  display: grid;
  grid-template-rows: 62px 38px 18px;
  min-height: 151px;
  padding: 14px 8px;
  justify-items: center;
  align-content: center;
  row-gap: 4px;
  border: 1px solid rgba(225, 214, 242, 0.1);
  border-radius: 12px;
  background: rgba(13, 10, 20, 0.35);
  text-align: center;
}

.catalogue-badge-art {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
}

.catalogue-badge-art img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

/* SVG symbols otherwise resolve their percentage height against the tile grid. */
.catalogue-badge-art .app-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
}

.catalogue-badge strong {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 38px;
  color: #e8e1ed;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.catalogue-badge small {
  display: block;
  margin-top: 4px;
  color: #978ca1;
  font-size: 0.75rem;
}

.catalogue-badge-tiered {
  border-color: rgba(172, 130, 221, 0.37);
  background: transparent;
}

.catalogue-badge-tiered .catalogue-badge-art { color: #ac82dd; }
.catalogue-badge-legacy { border-color: rgba(228, 179, 84, 0.28); }
.catalogue-badge-legacy .catalogue-badge-art { color: #e4b354; }

.closing-section {
  position: relative;
  min-height: 610px;
  padding: 132px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 50%, rgba(128, 83, 222, 0.22), transparent 29%),
    radial-gradient(circle at 66% 83%, rgba(228, 179, 84, 0.1), transparent 23%),
    #0d0a15;
}

.closing-copy {
  position: relative;
  z-index: 2;
}

.closing-copy > p {
  margin-bottom: 30px;
}

.closing-art {
  position: absolute;
  top: 50%;
  right: 8%;
  width: 430px;
  height: 430px;
  transform: translateY(-50%);
}

.closing-ring {
  position: absolute;
  border: 1px solid rgba(183, 151, 243, 0.2);
  border-radius: 50%;
}

.ring-a { inset: 0; }
.ring-b { inset: 74px; }

.closing-star {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--home-gold);
  font-size: 4rem;
  text-shadow: 0 0 42px rgba(228, 179, 84, 0.48);
  transform: translate(-50%, -50%);
}

.home-footer.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 38px;
  max-width: none;
  padding: 40px max(28px, calc((100vw - var(--home-shell)) / 2));
  border-top: 1px solid var(--home-line);
  background: var(--home-bg-deep);
  color: #686170;
  font-size: 0.72rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand .brand {
  font-size: 0.9rem;
}

.footer-brand .mark {
  width: 1.45rem;
  height: 1.45rem;
  flex-basis: 1.45rem;
}

.home-footer nav {
  display: flex;
  gap: 20px;
  margin: 0;
}

.home-footer nav a {
  color: #8c8495;
  font-size: 0.72rem;
}

.home-footer nav a:hover {
  color: var(--home-text);
}

.js-reveal .home-page [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.js-reveal .home-page [data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

.quest-loop li:nth-child(2) { transition-delay: 80ms; }
.quest-loop li:nth-child(3) { transition-delay: 160ms; }
.reward-showcase .showcase-card:nth-child(2) { transition-delay: 110ms; }

@media (hover: hover) and (pointer: fine) {
  .home-header .links a:hover {
    color: var(--home-text);
  }

  .home-header .links a:hover::after {
    right: 0;
  }

  .nav-cta:hover {
    border-color: rgba(248, 244, 238, 0.7);
    background: rgba(248, 244, 238, 0.07);
    color: var(--home-text);
    transform: translateY(-2px);
  }

  .primary-action:hover {
    background: #7655d4;
    box-shadow: 0 20px 48px -20px rgba(138, 98, 232, 0.95), inset 0 1px rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
  }

  .campaign-proof-link:hover {
    color: #f3ca72;
  }

  .campaign-proof-link:hover .app-icon {
    transform: translateY(3px);
  }

  .legendary-type-link:hover {
    border-color: rgba(228, 179, 84, 0.62);
    background: rgba(228, 179, 84, 0.08);
    color: #fff2d4;
  }

  .legendary-tabs button:hover:not([aria-selected='true']) {
    background: rgba(255, 255, 255, 0.045);
    color: #e1d9ea;
    transform: translateX(3px);
  }
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 20px;
  }

  .hero-message h1 {
    font-size: clamp(3.4rem, 6vw, 4.9rem);
  }

  .stage-note.note-left {
    left: -45px;
  }

  .stage-note.note-right {
    right: -22px;
  }

  .secret-card {
    right: -20px;
  }

  .home-footer.site-footer {
    grid-template-columns: 1fr auto;
  }

  .home-footer > span:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .home-header .links {
    display: none;
  }

  .home-header .nav-cta {
    margin-left: auto;
  }

  .home-hero,
  .hero-layout {
    min-height: auto;
  }

  .home-hero {
    background:
      radial-gradient(circle at 56% 8%, rgba(120, 79, 216, 0.27), transparent 28%),
      linear-gradient(180deg, #110d1d 0%, var(--home-bg) 62%);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 168px;
    padding-bottom: 90px;
  }

  .hero-message {
    max-width: 720px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .hero-stage {
    min-height: 740px;
  }

  .campaign-story {
    margin-inline: auto;
  }

  .feed-showcase-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feed-showcase-copy {
    max-width: 700px;
  }

  .feed-preview {
    justify-self: start;
  }

  .note-left {
    left: calc(50% - 245px) !important;
  }

  .note-right {
    right: calc(50% - 250px) !important;
  }

  .quest-loop li {
    padding-right: 28px;
  }

  .quest-loop li + li {
    padding-left: 28px;
  }

  .quest-world-grid {
    grid-template-columns: 1fr;
  }

  .quest-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 20px;
    margin-top: 66px;
  }

  .quest-journey::before {
    display: none;
  }

  .journey-step {
    max-width: 330px;
  }

  .quest-world-copy {
    max-width: 700px;
  }

  .quest-composer {
    width: min(100%, 560px);
    margin: 10px auto 30px;
  }

  .reward-showcase {
    grid-template-columns: 1fr;
  }

  .legendary-heading,
  .legendary-explorer {
    grid-template-columns: 1fr;
  }

  .legendary-heading {
    gap: 28px;
  }

  .showcase-card {
    min-height: 520px;
  }

  .profile-showcase {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 36px;
  }

  .profile-copy {
    margin: 0;
    padding: 0 0 0 36px;
    border-top: 0;
    border-left: 1px solid var(--home-line);
  }

  .badge-catalogue {
    grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  }

  .closing-art {
    right: -160px;
    opacity: 0.7;
  }
}

@media (max-width: 660px) {
  .home-shell {
    width: min(calc(100% - 36px), var(--home-shell));
  }

  .home-header.site-header nav {
    min-height: 74px;
    padding: 14px 18px;
  }

  .home-header .brand {
    font-size: 1rem;
  }

  .nav-cta {
    min-height: 36px;
    padding-inline: 13px;
    font-size: 0.7rem;
  }

  .hero-layout {
    padding-top: 132px;
    padding-bottom: 70px;
  }

  .hero-message h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
    line-height: 1.02;
  }

  .hero-lede {
    max-width: 480px;
    margin-top: 24px;
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    gap: 14px;
  }

  .hero-stage {
    min-height: 720px;
    margin-top: 8px;
    margin-bottom: -10px;
  }

  .campaign-story {
    width: 100%;
    max-width: 460px;
    grid-template-columns: 1fr;
  }

  .campaign-feed-screen,
  .campaign-feed-screen > img {
    min-height: 390px;
    height: 390px;
  }

  .campaign-proof-screen {
    width: calc(100% - 24px);
    min-height: 248px;
    margin: -42px 0 0 auto;
    padding: 53px 19px 19px;
  }

  .campaign-proof-screen h2 {
    font-size: 1.35rem;
  }

  .proof-receipt {
    margin-top: 17px;
    padding: 9px;
  }

  .campaign-proof-link {
    margin-top: 16px;
  }

  .feed-showcase-layout {
    gap: 38px;
  }

  .feed-showcase-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .feed-showcase-copy p {
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .feed-preview {
    width: 100%;
  }

  .feed-preview-header {
    padding: 14px 15px;
  }

  .feed-preview-header > span:last-child {
    font-size: 0.75rem;
  }

  .feed-preview-list {
    padding: 5px 9px 10px;
  }

  .feed-entry {
    padding: 14px 3px 15px;
  }

  .feed-entry-header {
    padding-bottom: 10px;
  }

  .feed-entry h3 {
    font-size: 0.82rem;
  }

  .feed-entry-footer {
    flex-wrap: wrap;
    row-gap: 7px;
  }

  .app-phone {
    width: min(335px, calc(100vw - 44px));
  }

  .stage-note {
    display: none;
  }

  .home-section {
    padding: 92px 0 106px;
  }

  .section-intro h2,
  .quest-world-copy h2,
  .closing-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .section-intro > p:last-child,
  .quest-world-copy > p,
  .closing-copy > p {
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .quest-loop {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 52px;
  }

  .quest-loop::before {
    top: 40px;
    bottom: 44px;
    left: 39px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(180, 154, 241, 0.42) 14%, rgba(180, 154, 241, 0.42) 86%, transparent);
  }

  .quest-loop li,
  .quest-loop li + li {
    min-height: 170px;
    padding: 0 0 38px 108px;
    border-left: 0;
  }

  .loop-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 78px;
    height: 78px;
  }

  .loop-number {
    top: -5px;
    right: 0;
  }

  .quest-loop h3 {
    margin-top: 0;
    padding-top: 8px;
  }

  .quest-composer {
    padding: 20px;
    transform: none;
  }

  .secret-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% + 12px);
    margin: 13px -6px -30px;
    transform: rotate(-1deg);
  }

  .gear-showcase {
    padding: 30px 20px;
  }

  .gear-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gear-item {
    min-height: 180px;
  }

  .profile-showcase {
    display: flex;
    padding: 32px 24px;
  }

  .profile-copy {
    margin-top: 28px;
    padding: 22px 0 0;
    border-top: 1px solid var(--home-line);
    border-left: 0;
  }

  .badge-catalogue {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 20px;
  }

  .badge-screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-section {
    min-height: 540px;
    padding: 104px 0;
  }

  .closing-art {
    right: -260px;
  }

  .quest-journey {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
    gap: 50px;
  }

  .quest-journey::before {
    display: block;
    top: 30px;
    bottom: 30px;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(180, 154, 241, 0.42) 8%, rgba(180, 154, 241, 0.42) 92%, transparent);
  }

  .journey-step {
    max-width: none;
  }

  .journey-visual {
    aspect-ratio: 1 / 1.08;
  }

  .legendary-heading h2 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .legendary-heading > div:first-child > p {
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .legendary-explorer {
    margin-top: 50px;
    gap: 20px;
  }

  .legendary-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .legendary-tabs button {
    min-height: 74px;
    padding: 10px 7px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    text-align: center;
  }

  .legendary-tabs button .app-icon {
    font-size: 1rem;
  }

  .legendary-panel {
    grid-template-columns: 1fr;
    border-radius: 18px 6px 18px 18px;
  }

  .legendary-emblem {
    min-height: 130px;
    font-size: 4rem;
  }

  .legendary-panel-copy {
    padding: 24px 22px 27px;
  }

  .legendary-panel dl {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .legendary-panel dl div {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 8px;
    align-items: baseline;
  }

  .legendary-panel dd {
    margin: 0;
  }

  .home-footer.site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 18px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .home-footer nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .home-footer > span:last-child {
    grid-column: auto;
  }

  .js-reveal .home-page [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 390px) {
  .home-header .nav-cta {
    display: none;
  }

  .difficulty-picker {
    gap: 5px;
  }

  .difficulty-picker > span {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
