:root {
  --bg: #fff8f1;
  --text: #382a22;
  --muted: #766255;
  --orange: #e9793d;
  --orange-deep: #bf5b2d;
  --line: rgba(104, 64, 43, .15);
  --shadow: rgba(104, 64, 43, .13);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 11% -4%, rgba(246, 173, 107, .29), transparent 35rem),
    radial-gradient(circle at 93% 10%, rgba(244, 152, 107, .18), transparent 34rem),
    linear-gradient(180deg, #fff9f4 0%, #fffdf8 65%, #faf5ec 100%);
  line-height: 1.5;
}
a { color: inherit; }
.page-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.welcome { padding: 47px 0 37px; text-align: center; }
.avatar-link { display: inline-block; border-radius: 50%; line-height: 0; }
.avatar {
  width: clamp(112px, 13vw, 150px);
  height: clamp(112px, 13vw, 150px);
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, .98);
  outline: 2px solid rgba(235, 127, 65, .23);
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(112, 72, 42, .19);
  transition: transform .22s ease;
}
.avatar-link:hover .avatar, .avatar-link:focus-visible .avatar { transform: translateY(-3px); }
.eyebrow {
  margin: 25px 0 7px;
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: .7rem;
  font-weight: 850;
  color: #a55c34;
}
.sparkle { color: #dc914c; margin: 0 .55em; }
h1 { margin: 0; font-size: clamp(2.35rem, 6vw, 4.25rem); line-height: 1.13; letter-spacing: -.055em; font-weight: 850; }
.intro { color: var(--muted); margin: 15px auto 0; max-width: 670px; font-size: clamp(1rem, 2vw, 1.16rem); }
.invitation { color: #895f4b; font-size: .95rem; margin: 19px 0 0; font-weight: 700; }
.destinations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; align-items: stretch; }
.destination {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255,253,250,.96);
  border: 1px solid rgba(131, 77, 49, .16);
  border-radius: 27px;
  box-shadow: 0 18px 48px rgba(109, 70, 42, .11);
  transition: transform .23s ease, box-shadow .23s ease, border-color .23s ease;
}
.destination:hover, .destination:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(213, 111, 57, .4);
  box-shadow: 0 24px 55px rgba(109, 70, 42, .18);
  outline: none;
}
.destination:focus-visible { outline: 3px solid #cf793e; outline-offset: 4px; }
.destination-art { height: 330px; position: relative; overflow: hidden; isolation: isolate; flex: 0 0 auto; }
.gift-art {
  background:
    radial-gradient(circle at 52% 55%, rgba(255, 242, 207, .9), transparent 58%),
    linear-gradient(145deg, #fff2df 0%, #fbe0c7 48%, #f6c499 100%);
}
.warm-halo { position: absolute; inset: 0; pointer-events: none; }
.halo-gifts { background: radial-gradient(circle at 50% 56%, rgba(255, 255, 255, .72), transparent 40%); }
.card-fan { position: relative; height: 100%; width: min(100%, 430px); margin: 0 auto; }
.trading-card {
  position: absolute;
  top: 38px;
  width: 160px;
  aspect-ratio: 1467 / 2048;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(128,72,36,.2);
  box-shadow: 0 7px 13px rgba(56, 37, 29, .26), 0 17px 29px rgba(56,37,29,.17), 0 31px 52px rgba(56,37,29,.1);
  display: grid;
  place-items: center;
  animation: float-card 6.5s ease-in-out infinite;
  will-change: translate;
  transform-origin: center;
}
.trading-card-one { left: 14%; top: 68px; transform: rotate(-13deg); z-index: 1; background: linear-gradient(155deg, #fff0d4, #eda46c, #dc7841); animation-delay: -.3s; }
.trading-card-two { left: 33%; top: 24px; transform: rotate(5deg); z-index: 2; background: linear-gradient(155deg, #f9d5b8, #e98d65, #ca633d); animation-delay: -2s; }
.trading-card-three { left: 51%; top: 65px; transform: rotate(15deg); z-index: 3; background: linear-gradient(155deg, #f6bf65, #e68c4b, #c35e32); animation-delay: -1.1s; }
.card-symbol { color: rgba(255, 255, 255, .95); font-size: 1.18rem; font-weight: 800; letter-spacing: .05em; }
.trading-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.trading-card img[hidden] { display: none; }
.art-tag {
  position: absolute; z-index: 4; left: 21px; bottom: 16px;
  border-radius: 999px; background: rgba(255, 253, 249, .87); border: 1px solid rgba(129,77,43,.15);
  padding: 7px 12px; color: #9a5d39; font-weight: 800; font-size: .63rem; letter-spacing: .12em;
  box-shadow: 0 7px 15px rgba(112, 75, 45, .08);
}
@keyframes float-card { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.mosaic-art { background: linear-gradient(130deg, #fce9d4, #efaa79); }
.mosaic-fallback {
  position: absolute; inset: 0; opacity: .86;
  background-image:
    linear-gradient(110deg, transparent 20%, rgba(255,255,255,.3) 50%, transparent 75%),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(255,255,255,.5) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(255,255,255,.5) 13px 14px),
    linear-gradient(135deg,#d7774f,#e4a15d 35%,#8fc3b0 60%,#7ba9bc 85%);
  background-size: auto, auto, auto, auto;
}
.mosaic-feature {
  position: relative;
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}
.destination:hover .mosaic-feature { transform: scale(1.045); }
.mosaic-feature[hidden] { display: none; }
.mosaic-caption {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  background: rgba(255,251,245,.94); padding: 8px 12px; border-radius: 999px;
  color: #674631; font-weight: 800; font-size: .73rem;
  box-shadow: 0 5px 16px rgba(72,45,33,.17);
}
.destination-copy { padding: 25px 27px 28px; display: flex; flex-direction: column; flex: 1; }
.destination-kicker { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .15em; font-size: .68rem; font-weight: 850; color: #b26740; }
h2 { font-size: clamp(1.5rem, 3vw, 1.93rem); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 10px; }
.destination-copy > p:not(.destination-kicker) { margin: 0; font-size: .95rem; color: #76675e; max-width: 470px; }
.destination-action {
  margin-top: auto; align-self: flex-start; padding: 12px 17px; border-radius: 12px;
  display: inline-flex; gap: 12px; align-items: center; justify-content: space-between;
  color: #fffaf5; background: linear-gradient(120deg,#ee8b45,#d96e37);
  box-shadow: 0 7px 16px rgba(198, 95, 44, .2);
  font-weight: 800; font-size: .85rem;
}
.destination-copy > p:not(.destination-kicker) + .destination-action { margin-top: 24px; }
.destination-action span { font-size: 1.1rem; }
.footer { text-align: center; padding: 37px 0 32px; color: #9a7c67; font-size: .8rem; }
.footer p { margin: 0 0 8px; }
.footer a { color: #b55c35; font-weight: 750; text-underline-offset: 3px; }
@media (max-width: 900px) { .destinations { gap: 17px; } .destination-art { height: 280px; } .trading-card { width: 135px; } .card-fan { width: min(100%, 370px); } .destination-copy { padding: 22px; } }
@media (max-width: 650px) {
  .page-shell { width: min(100% - 28px, 460px); }
  .welcome { padding: 32px 0 30px; }
  .destinations { grid-template-columns: 1fr; gap: 21px; }
  .destination-art { height: 310px; }
  .card-fan { width: min(100%, 400px); }
  .trading-card { width: 152px; }
  .destination-copy { padding: 23px; }
  .footer { padding: 33px 0; }
}
@media (max-width: 400px) { .trading-card { width: 137px; } .destination-art { height: 290px; } .card-fan { width: min(100%, 330px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Collectr showcase tile */
/* Spans the two-column grid, then takes one card's width and centers itself. */
.destination-collectr {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 25px) / 2);
}
.collectr-art {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 65%, #805cf0 0%, #5c2ddf 46%, #34147d 100%);
}
.collectr-art::before,
.collectr-art::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 214px;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 19px;
  top: 55px;
  transform: rotate(-17deg) translateX(-70px);
  box-shadow: 0 16px 25px rgba(24,8,70,.12);
}
.collectr-art::after { transform: rotate(17deg) translateX(70px); }
.collectr-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255,255,255,.15), transparent 43%);
}
.collectr-mark-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: translateY(-5px);
  filter: drop-shadow(0 16px 22px rgba(25,7,77,.28));
}
.collectr-mark {
  display: block;
  width: 145px;
  height: 145px;
  border-radius: 32px;
}
.collectr-wordmark {
  color: #fff;
  font-weight: 850;
  font-size: 2.7rem;
  letter-spacing: -.065em;
  line-height: 1;
}
.collectr-art-tag { color: #542a9b; }
@media (max-width: 900px) {
  .destination-collectr { width: calc((100% - 17px) / 2); }
  .collectr-mark { width: 123px; height: 123px; }
}
@media (max-width: 650px) {
  .destination-collectr { width: 100%; }
  .collectr-mark { width: 145px; height: 145px; }
}


/* QUEST PROFILE HEADER */
/* Same compact circular-social treatment as the mosaic gallery; no additional image assets. */
.csq-profile-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.csq-social-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.96);
  border: 1px solid #efd9c7;
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(111,74,43,.13);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.csq-social-icon:hover, .csq-social-icon:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(111,74,43,.20);
  border-color: #e8b994;
}
.csq-social-icon:focus-visible { outline: 3px solid #cf793e; outline-offset: 4px; }
.csq-social-icon svg { display: block; width: 30px; height: 30px; }
@media (max-width: 650px) {
  .csq-profile-social-row { gap: 15px; }
  .csq-social-icon { flex-basis: 44px; width: 44px; height: 44px; }
  .csq-social-icon svg { width: 26px; height: 26px; }
}
