/* Shadowscope web quiz. Colors match the app's theme. */
:root {
  --gold: #e3b26a;
  --gold-bright: #f2cf84;
  --gold-soft: #e9c27a;
  --ivory: #f3e6cc;
  --soft: #d9cbb0;
  --muted: #a8998a;
  --dim: #6b5a40;
  --ink: #050302;
  --card: rgba(18, 13, 9, 0.92);
  --line: rgba(227, 178, 106, 0.45);
  --u: 3.9px; /* 1% of the stage width; set by app.js */
  --k: 0.546; /* frame scale on the profile page; set by app.js */
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --caps: 'Cinzel', 'Trajan Pro', Georgia, serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body { overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; -webkit-user-drag: none; user-select: none; }
.noscript { padding: 24px; text-align: center; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---------- Screens and the stage ---------- */
#app { position: fixed; inset: 0; }
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
  animation: screen-in 0.38s ease both;
}
.screen.leaving { animation: screen-out 0.3s ease both; pointer-events: none; }
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes screen-out { from { opacity: 1; } to { opacity: 0; } }

/* Blurred copy of the artwork fills any space around the stage. */
.backdrop {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.32) saturate(1.1);
  transform: scale(1.08);
}

/* The stage keeps the artwork's own proportions (714 x 1554), so every card
   lands exactly in the slot painted for it. Positions inside are in %. */
.stage {
  position: relative;
  height: 100%;
  max-height: calc(100vw * 1554 / 714);
  aspect-ratio: 714 / 1554;
  flex: none;
}
.stage > .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.abs { position: absolute; }
.center-x { left: 0; right: 0; margin: 0 auto; text-align: center; }

/* ---------- Ornament label: ── TEXT ── ---------- */
.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  font-family: var(--caps);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}
.orn::before, .orn::after {
  content: '';
  flex: 0 1 2.6em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.orn::after { background: linear-gradient(270deg, transparent, var(--gold)); }

/* ---------- Gold pill button ---------- */
.btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  border-radius: 999px;
  font-family: var(--caps);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #2a1a08;
  background: linear-gradient(180deg, #f6d796 0%, #e3b26a 48%, #c48a3e 100%);
  box-shadow: 0 0 0 1px rgba(255, 230, 170, 0.55) inset, 0 6px 22px rgba(227, 178, 106, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-gold:active { transform: scale(0.97); filter: brightness(1.08); }
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--caps);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  background: rgba(5, 3, 2, 0.78);
  box-shadow: 0 0 0 3px rgba(5, 3, 2, 0.9), 0 0 0 4px rgba(227, 178, 106, 0.35), 0 0 24px rgba(227, 178, 106, 0.18);
  transition: transform 0.15s ease;
}
.btn-outline:active { transform: scale(0.97); }

/* ---------- Landing ---------- */
.landing .title-art {
  left: 12%;
  width: 76%;
  top: 47.3%;
  aspect-ratio: 1342 / 622;
}
.landing .title-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.landing .title-art .letters { filter: drop-shadow(0 0 calc(var(--u) * 1.4) rgba(255, 236, 190, 0.35)); }
.landing .tagline { top: 62.4%; width: 92%; font-family: var(--caps); font-weight: 600; font-size: calc(var(--u) * 3.05); letter-spacing: 0.16em; color: var(--gold); }
.landing .lede { top: 68.2%; width: 80%; font-size: calc(var(--u) * 3.75); line-height: 1.32; color: var(--ivory); }
.landing .begin { left: 9%; width: 82%; top: 74.6%; height: 5.1%; font-size: calc(var(--u) * 3.35); }
.landing .resume { left: 15%; width: 70%; top: 81.6%; height: 3.6%; font-size: calc(var(--u) * 2.75); }
.landing .meta { top: 86.1%; width: 84%; font-family: var(--caps); font-size: calc(var(--u) * 2.45); letter-spacing: 0.14em; color: var(--muted); }
.landing .getapp { top: 89.4%; width: 70%; font-family: var(--caps); font-size: calc(var(--u) * 2.45); letter-spacing: 0.12em; color: var(--gold); text-decoration: none; }

/* ---------- Quiz ---------- */
.q-title {
  top: 18%;
  width: 96%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 1.8);
}
.q-title h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(var(--u) * 7.05);
  line-height: 1;
  color: var(--ivory);
  white-space: nowrap;
  text-shadow: 0 0 calc(var(--u) * 2.4) rgba(227, 178, 106, 0.45), 0 1px 2px #000;
}
.q-title .fl { width: calc(var(--u) * 11.8); aspect-ratio: 3 / 1; flex: none; }
.q-text {
  top: 22.9%;
  width: 76%;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: calc(var(--u) * 3.95);
  line-height: 1.3;
  color: var(--ivory);
  text-shadow: 0 1px 2px #000;
}
.card {
  position: absolute;
  border-radius: calc(var(--u) * 0.8);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.2), filter 0.3s ease, opacity 0.3s ease;
  animation: card-in 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.card img { width: 100%; height: 100%; object-fit: fill; border-radius: inherit; }
.card .label {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--caps);
  font-weight: 600;
  font-size: calc(var(--u) * 3.05);
  letter-spacing: 0.09em;
  color: var(--ivory);
  text-shadow: 0 0 4px #000, 0 1px 2px #000, 0 0 10px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
.q1 .card .label { color: var(--gold-soft); }
.card:active { transform: scale(0.97); }
.card.chosen {
  transform: scale(1.045);
  filter: brightness(1.12) drop-shadow(0 0 calc(var(--u) * 2.6) rgba(242, 207, 132, 0.75));
  z-index: 2;
}
.cards.picked .card:not(.chosen) { opacity: 0.38; filter: blur(1px) grayscale(0.4); transform: scale(0.97); }
@keyframes card-in { from { opacity: 0; transform: translateY(calc(var(--u) * 2)) scale(0.96); } to { opacity: 1; transform: none; } }

.dots {
  top: 86.75%;
  height: 1.25%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 1.7);
}
.q6 .dots { top: 82.5%; }
.dot { width: calc(var(--u) * 1.8); height: calc(var(--u) * 1.8); border-radius: 999px; background: var(--dim); flex: none; }
.dot.done { background: var(--gold); }
.dot.now {
  width: calc(var(--u) * 4.6);
  background: var(--gold);
  box-shadow: 0 0 calc(var(--u) * 1.5) rgba(227, 178, 106, 0.67);
  animation: dot-grow 0.6s ease both;
}
@keyframes dot-grow { from { width: calc(var(--u) * 1.8); } }
.progress {
  top: 88.9%;
  height: 3.7%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 3.1);
}
.q6 .progress { top: 84.6%; }
.back {
  width: calc(var(--u) * 7.2);
  height: calc(var(--u) * 7.2);
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex: none;
  animation: back-in 0.45s ease both;
}
.back svg { width: 46%; height: 46%; }
.back:active { transform: scale(0.92); }
@keyframes back-in { from { opacity: 0; transform: translateX(calc(var(--u) * 3)) scale(0.8); } }
.counter {
  font-family: var(--caps);
  font-size: calc(var(--u) * 3.35);
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  padding: 0.15em 2.2em;
  background: linear-gradient(90deg, transparent, rgba(5, 3, 2, 0.96) 25%, rgba(5, 3, 2, 0.96) 75%, transparent);
}
.progress .spacer { width: calc(var(--u) * 7.2); flex: none; }

/* ---------- Reveal ---------- */
.reveal .heading { top: 14.6%; width: 92%; font-size: calc(var(--u) * 3.25); }
.reveal .sub { top: 18.9%; width: 88%; font-family: var(--display); font-style: italic; font-size: calc(var(--u) * 3.6); color: var(--muted); }
.reveal .grid { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.rcard {
  position: absolute;
  border: 1px solid rgba(227, 178, 106, 0.55);
  border-radius: calc(var(--u) * 0.6);
  overflow: hidden;
  background: #0b0806;
  transition: filter 0.25s ease, box-shadow 0.25s ease, opacity 0.6s ease, border-color 0.25s ease;
  filter: brightness(0.55) saturate(0.85);
  will-change: transform;
}
.rcard img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.rcard .rlabel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18% 0 6%;
  text-align: center;
  font-family: var(--caps);
  font-weight: 600;
  font-size: calc(var(--u) * 2.45);
  letter-spacing: 0.1em;
  color: var(--soft);
  background: linear-gradient(transparent, rgba(5, 3, 2, 0.95) 60%);
  transition: opacity 0.4s ease;
}
.rcard.lit {
  filter: brightness(1.12) saturate(1.05);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px var(--gold-bright), 0 0 calc(var(--u) * 4) rgba(242, 207, 132, 0.6);
}
.rcard.lit .rlabel { color: var(--gold-bright); }
.rcard.gone { opacity: 0; }
.rcard.winner { filter: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 calc(var(--u) * 7) rgba(227, 178, 106, 0.45); }
.rcard.winner img { object-fit: contain; object-position: center; }
.rcard.winner .rlabel { opacity: 0; }
.rcard .shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, 0.34) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.rcard.winner .shine { animation: shine 2.6s ease-in-out 0.9s infinite; }
@keyframes shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.reveal .status { top: 60.4%; width: 84%; font-family: var(--display); font-style: italic; font-size: calc(var(--u) * 3.9); color: var(--soft); min-height: 1.4em; transition: opacity 0.25s ease; }
.reveal .bar { top: 64.4%; left: 24%; width: 52%; height: 1px; background: rgba(227, 178, 106, 0.18); }
.reveal .bar i { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: linear-gradient(90deg, transparent, var(--gold-bright)); transition: width 0.3s ease; }
.reveal .bar i::after { content: '✦'; position: absolute; right: -0.45em; top: -0.62em; font-size: calc(var(--u) * 2.6); color: var(--gold-bright); }
.reveal .name { top: 57.6%; width: 92%; font-family: var(--caps); font-weight: 600; font-size: calc(var(--u) * 6.3); letter-spacing: 0.1em; color: var(--gold-bright); text-shadow: 0 0 calc(var(--u) * 3) rgba(227, 178, 106, 0.55); opacity: 0; transform: translateY(calc(var(--u) * 2)); transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s; }
.reveal .star { top: 62.6%; width: 20%; color: var(--gold); font-size: calc(var(--u) * 3); opacity: 0; transition: opacity 0.6s ease 0.45s; }
.reveal .star::before, .reveal .star::after { content: ''; display: inline-block; vertical-align: middle; width: 32%; height: 1px; margin: 0 6%; background: var(--line); }
.reveal .under { top: 65.6%; width: 88%; font-family: var(--display); font-style: italic; font-size: calc(var(--u) * 3.9); color: var(--muted); opacity: 0; transition: opacity 0.7s ease 0.55s; }
.reveal.landed .name, .reveal.landed .star, .reveal.landed .under { opacity: 1; transform: none; }
.reveal.landed .status, .reveal.landed .bar { opacity: 0; transition: opacity 0.4s ease; }
.reveal .cta { left: 11%; width: 78%; top: 81.6%; height: 5.2%; font-size: calc(var(--u) * 2.75); opacity: 0; transform: translateY(calc(var(--u) * 4)); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); pointer-events: none; }
.reveal.ready .cta { opacity: 1; transform: none; pointer-events: auto; }
.reveal .burst { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 236, 190, 0.85), rgba(227, 178, 106, 0.35) 35%, transparent 70%); opacity: 0; }
.reveal .burst.go { animation: burst 0.95s ease-out both; }
@keyframes burst { 0% { opacity: 0; transform: scale(0.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(2.6); } }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Profile (scrolling page inside the gold frame) ---------- */
body.scroll { overflow: auto; }
.profile-screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; animation: screen-in 0.45s ease both; }
.frame {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(714px * var(--k));
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
  border-style: solid;
  border-width: calc(206px * var(--k)) calc(46px * var(--k)) calc(178px * var(--k));
  border-image: url('../img/art/result_bg_topbar.webp') 206 46 178 / calc(206px * var(--k)) calc(46px * var(--k)) calc(178px * var(--k)) stretch round;
}
.frame-fill { position: fixed; inset: 0; background: var(--ink); z-index: -1; }
.frame-side { position: fixed; top: 0; bottom: 0; background: var(--ink); z-index: 6; pointer-events: none; }
.profile {
  position: relative;
  width: calc(714px * var(--k));
  margin: 0 auto;
  padding: calc(206px * var(--k) + 14px) calc(46px * var(--k) + 16px) calc(178px * var(--k) + 24px);
}
.profile .orn { font-size: 12.5px; }
.symbol {
  position: relative;
  width: 78%;
  margin: 8px auto 20px;
  aspect-ratio: 1;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--gold), 0 0 46px rgba(227, 178, 106, 0.32);
  overflow: hidden;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.symbol img { width: 100%; height: 100%; }
.symbol .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, 0.28) 50%, transparent 65%); animation: shine 3.4s ease-in-out 1.2s infinite; transform: translateX(-120%); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
.p-title { margin: 4px 0 0; text-align: center; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.08; color: var(--ivory); text-shadow: 0 0 14px rgba(227, 178, 106, 0.53); }
.p-sub { margin: 6px 0 0; text-align: center; font-size: 16px; color: var(--gold-bright); }
.pill { display: table; margin: 10px auto 0; padding: 5px 13px; border-radius: 20px; border: 0.8px solid rgba(227, 178, 106, 0.6); background: rgba(0, 0, 0, 0.6); font-family: var(--caps); font-size: 10.5px; letter-spacing: 0.12em; color: var(--gold); }
.pill.pure { border: 1.2px solid var(--gold-bright); background: rgba(227, 178, 106, 0.2); color: var(--gold-bright); }
.essence { margin: 12px 0 0; text-align: center; font-size: 15.5px; line-height: 1.32; color: var(--ivory); }
.pcard {
  margin: 22px 0 0;
  padding: 16px 16px 17px;
  border-radius: 12px;
  border: 1px solid rgba(227, 178, 106, 0.4);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.pcard h2 { margin: 0 0 10px; font-family: var(--caps); font-weight: 600; font-size: 12.5px; letter-spacing: 0.16em; color: var(--gold); line-height: 1.45; }
.pcard p { margin: 0; font-size: 16.5px; line-height: 1.42; color: var(--soft); }
.pcard p + p { margin-top: 10px; }
.pcard .muted { color: var(--muted); font-size: 15px; }
.pcard .gift { color: var(--gold-bright); font-size: 15.5px; }
.pcard ul { margin: 2px 0 0; padding: 0; list-style: none; }
.pcard li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.4; color: var(--soft); }
.pcard li + li { margin-top: 9px; }
.pcard li::before { content: '✦'; position: absolute; left: 0; top: 0.08em; font-size: 11px; color: var(--gold); }
.weights { display: grid; gap: 9px; }
.w-row { display: grid; grid-template-columns: 6.6em 1fr 2.8em; align-items: center; gap: 10px; font-family: var(--caps); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); }
.w-row.top { color: var(--gold-bright); }
.w-bar { height: 7px; border-radius: 9px; background: rgba(227, 178, 106, 0.12); overflow: hidden; }
.w-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a6a3a, var(--gold)); width: 0; transition: width 1.1s cubic-bezier(0.2, 0.8, 0.3, 1); }
.w-row.top .w-bar i { background: linear-gradient(90deg, #c48a3e, var(--gold-bright)); box-shadow: 0 0 10px rgba(242, 207, 132, 0.6); }
.w-pct { text-align: right; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(227, 178, 106, 0.55);
  background: rgba(5, 3, 2, 0.7);
  font-family: var(--caps);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ivory);
  transition: transform 0.15s ease, background 0.15s ease;
}
.share-btn svg { width: 19px; height: 19px; flex: none; }
.share-btn:active { transform: scale(0.97); background: rgba(227, 178, 106, 0.14); }
.share-btn[disabled] { opacity: 0.55; }
.share-preview { display: block; width: 46%; margin: 4px auto 14px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(227, 178, 106, 0.5), 0 8px 26px rgba(0, 0, 0, 0.6); aspect-ratio: 9 / 16; background: #0b0806; }
.app-cta .btn-gold { width: 100%; min-height: 50px; font-size: 13px; margin-top: 14px; text-decoration: none; }
.app-cta .btn-gold.soon { filter: saturate(0.6) brightness(0.8); cursor: default; }
.retake { display: block; margin: 22px auto 0; padding: 10px 18px; font-family: var(--caps); font-size: 12px; letter-spacing: 0.14em; color: var(--gold); }
.fineprint { margin: 18px 4px 0; text-align: center; font-size: 13px; line-height: 1.4; color: var(--muted); }
.inapp-hint { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(227, 178, 106, 0.45); font-size: 14px; line-height: 1.38; color: var(--soft); }
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.fade-up.in { opacity: 1; transform: none; }

/* ---------- Share sheet (fallback when the phone cannot share files) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.72); animation: screen-in 0.25s ease both; }
.sheet {
  width: min(100%, 480px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(227, 178, 106, 0.5);
  border-bottom: 0;
  background: #120d09;
  animation: sheet-up 0.32s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet h3 { margin: 0 0 4px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ivory); }
.sheet p { margin: 6px 0 0; text-align: center; font-size: 15px; line-height: 1.4; color: var(--soft); }
.sheet img { width: 52%; margin: 14px auto; border-radius: 8px; box-shadow: 0 0 0 1px rgba(227, 178, 106, 0.5); -webkit-touch-callout: default; user-select: auto; }
.sheet .row { display: grid; gap: 10px; margin-top: 12px; }
.sheet .btn-gold, .sheet .btn-outline { min-height: 48px; border-radius: 12px; font-size: 12.5px; text-decoration: none; }
.sheet .close { display: block; margin: 12px auto 0; padding: 8px 16px; font-family: var(--caps); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); max-width: 86vw; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(227, 178, 106, 0.55); background: #1a130c; font-size: 15px; color: var(--ivory); animation: screen-in 0.2s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
}

/* ---------- Profile details matching the app ---------- */
.pcard { position: relative; box-shadow: inset 0 0 0 4px rgba(18, 13, 9, 0.92), inset 0 0 0 5px rgba(227, 178, 106, 0.22), 0 10px 30px rgba(0, 0, 0, 0.45); }
.pcard::before, .pcard::after { content: '\2726'; position: absolute; left: 50%; transform: translate(-50%, -50%); font-size: 12px; line-height: 1; color: var(--gold); background: var(--ink); padding: 0 6px; }
.pcard::before { top: 0; }
.pcard::after { top: 100%; }
.pcard .label-line { margin: 14px 0 6px; font-family: var(--caps); font-size: 11.5px; letter-spacing: 0.16em; color: var(--gold); }
.w-bar i { background: var(--c, var(--gold)); opacity: 0.85; }
.w-row.top .w-bar i { background: var(--c, var(--gold-bright)); opacity: 1; box-shadow: 0 0 10px rgba(242, 207, 132, 0.55); }
.w-row.top { padding: 3px 4px; margin: 0 -4px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(227, 178, 106, 0.55); }
.medal { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: -4px auto 16px; }
.medal-img { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(227, 178, 106, 0.35); }
.medal-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.chip { padding: 2px 10px; border-radius: 9px; background: rgba(227, 178, 106, 0.85); color: #1c1208; font-family: var(--caps); font-weight: 700; font-size: 10px; letter-spacing: 0.12em; }
.chip.small { background: transparent; color: var(--gold); border: 1px solid var(--gold); font-weight: 600; font-size: 9px; }
.reveal .name { top: 55.6%; }
.reveal .star { top: 60.3%; }
.reveal .under { top: 62.9%; }
