@font-face {
  font-family: 'Isis Parchment';
  src: url('./assets/fonts/isis-parchment.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Dela Gothic One';
  src: url('./assets/fonts/dela-gothic-one-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/manrope-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/manrope-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/manrope-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/manrope-extrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --burgundy-950: #240207;
  --burgundy-900: #370005;
  --burgundy-800: #52000f;
  --burgundy-700: #790103;
  --burgundy-600: #8d0027;
  --cream: #fff4da;
  --cream-2: #f7e6c3;
  --gold: #eece85;
  --gold-strong: #f7c947;
  --green-950: #013d18;
  --green-800: #006532;
  --green-600: #449964;
  --action-gradient: linear-gradient(95deg, var(--green-950), #408e5c);
  --ink: #3f0613;
  --shadow: 0 5px 10px rgba(33, 0, 8, .52);
  --radius-card: 17px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-width: 471px;
  --nav-height: 66px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: #090706;
  color: var(--cream);
  font-family: 'Manrope', sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: #090706;
  overscroll-behavior-y: none;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }

.app-shell {
  width: min(100%, var(--app-width));
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--burgundy-950);
  box-shadow: 0 0 50px rgba(0,0,0,.7);
  overflow-x: clip;
  position: relative;
}

.screen {
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  background-color: var(--burgundy-950);
  color: var(--cream);
  padding-bottom: calc(76px + var(--safe-bottom));
}
.screen.screen--nav { padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px); }

.velvet-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--burgundy-950) url('./assets/figma/1e067.png') center top / 100% auto no-repeat;
}

.velvet-screen::after {
  content: '';
  position: absolute;
  inset: 58% 0 0;
  z-index: -3;
  background: linear-gradient(#240207, #170105);
}

.page-content { padding: 18px 14px 28px; }
.page-content--under-header { padding-top: 236px; }

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--cream);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark::before,
.brand-mark::after {
  content: '';
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-strong));
}

.brand-mark::after { transform: scaleX(-1); }

.top-menu {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: url('./assets/figma/08083.svg') center / contain no-repeat;
  z-index: 12;
}

.top-back {
  position: absolute;
  top: 22px;
  left: 20px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: url('./assets/figma/6f7c4.svg') center / contain no-repeat;
  z-index: 12;
}

.display-title,
.section-title,
.level-name,
.button-label,
.message-title {
  font-family: 'Dela Gothic One', sans-serif;
  font-weight: 400;
}

.display-title {
  margin: 22px auto 16px;
  font-size: clamp(29px, 9vw, 42px);
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.section-title {
  margin: 20px 0 14px;
  font-size: clamp(24px, 7.2vw, 34px);
  line-height: 1.18;
  text-align: center;
  text-wrap: balance;
}

.gold-frame {
  --frame-rim: clamp(15px, 5.2vw, 25px);
  margin: 0 auto;
  border-style: solid;
  border-color: transparent;
  border-width: calc(var(--frame-rim) * 1.15) var(--frame-rim) calc(var(--frame-rim) * 1.08) calc(var(--frame-rim) * 1.22);
  border-image: url('./assets/figma/c4cda.png') 142 115 136 147 stretch;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.48));
}

.game-intro { margin-top: 12px; }
.game-intro__canvas {
  min-height: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(238, 206, 133, .55);
  background: #00291b;
  box-shadow: inset 0 0 18px rgba(0,0,0,.28);
}
.game-intro h2 { margin: 0 0 8px; text-align: center; font: 400 clamp(11px, 3.15vw, 14px)/1.3 'Dela Gothic One'; text-wrap: balance; }
.game-intro p { margin: 0; font-size: clamp(11px, 3.2vw, 13px); line-height: 1.42; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1.1fr;
  gap: 8px;
  margin: 16px 4px 8px;
}

.fact-pill,
.status-pill,
.level-pill,
.progress-pill {
  border: 1.5px solid var(--gold);
  background: rgba(55,0,5,.9);
  box-shadow: var(--shadow);
  border-radius: 999px;
  color: var(--cream);
  text-align: center;
}

.fact-pill {
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.2;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--gold-strong);
  text-underline-offset: 5px;
  padding: 9px 12px;
}

.how-link { display: block; margin: 4px auto 6px; font-size: 14px; }

.levels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  container-type: inline-size;
}

.level-card {
  min-width: 0;
  min-height: 205px;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  background: var(--burgundy-900);
  box-shadow: var(--shadow);
  position: relative;
}

.level-card__image {
  width: 100%;
  height: 124px;
  object-fit: cover;
  object-position: center;
}

.level-card--locked .level-card__image { filter: blur(4px) brightness(.58); transform: scale(1.04); }

.level-card__lock {
  position: absolute;
  width: 33px;
  height: 33px;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  background: url('./assets/figma/02216.svg') center / contain no-repeat;
  z-index: 2;
}

.level-card__diamond {
  position: absolute;
  top: 8px;
  right: 9px;
  font-size: 21px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
}

.level-card__body {
  min-height: 74px;
  position: relative;
  padding: 9px 6px 8px clamp(33px, 10.8cqw, 48px);
  background: linear-gradient(180deg, #6d0014, #420008);
}

.level-card__number {
  position: absolute;
  left: clamp(5px, 1.8cqw, 8px);
  top: 11px;
  width: clamp(24px, 8.1cqw, 34px);
  height: clamp(24px, 8.1cqw, 34px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: #4c0010;
  font: 400 clamp(11px, 3.3cqw, 14px)/1 'Dela Gothic One';
}

.level-card__name { margin: 0; font: 400 clamp(10px, 3.5cqw, 15px)/1.1 'Dela Gothic One'; overflow-wrap: anywhere; }
.level-card__world { margin: 3px 0 0; font-size: 11px; line-height: 1.25; }
.level-card__action { padding: 0 8px 9px; background: #420008; }

@container (max-width: 330px) {
  .level-card__body { padding-inline: 7px; }
  .level-card__number { top: -31px; left: 6px; }
}

.emerald-button,
.outline-button {
  min-height: 52px;
  width: 100%;
  border-radius: 999px;
  border: 2px solid var(--gold);
  padding: 10px 18px;
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.2);
  font-family: 'Dela Gothic One', sans-serif;
  font-size: clamp(16px, 4.4vw, 23px);
  line-height: 1.2;
  text-align: center;
}

.emerald-button {
  background: var(--action-gradient);
  color: var(--cream);
  box-shadow: none;
}
.button-label-end { white-space: nowrap; }
.button-arrow {
  display: inline-block;
  width: .84em;
  height: .72em;
  margin-inline-start: .36em;
  vertical-align: .02em;
  background: currentColor;
  clip-path: polygon(0 31%, 44% 31%, 44% 0, 100% 50%, 44% 100%, 44% 69%, 0 69%);
}

.emerald-button:active { transform: translateY(1px); filter: brightness(.95); }
.emerald-button:disabled { opacity: .5; cursor: not-allowed; }
.outline-button { background: rgba(55,0,5,.82); color: var(--cream); }
.compact-button { min-height: 30px; padding: 4px 7px; font-size: 10.5px; border-width: 1.5px; }

.bottom-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  width: min(100%, var(--app-width));
  height: calc(var(--nav-height) + var(--safe-bottom));
  margin-inline: auto;
  padding: 7px 12px var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #350509;
  border-top: 1.5px solid var(--gold);
}

.bottom-nav button {
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--cream);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  font-size: 12px;
  position: relative;
}

.bottom-nav button::before {
  content: '';
  width: 24px;
  height: 24px;
  background: var(--nav-icon) center / contain no-repeat;
}

.bottom-nav button.active { font-weight: 700; color: var(--cream); }
.bottom-nav button.active::after { content: ''; position: absolute; bottom: 0; width: 52px; height: 2px; border-radius: 2px; background: var(--gold); }
.nav-levels { --nav-icon: url('./assets/figma/36731.svg'); }
.nav-collection { --nav-icon: url('./assets/figma/c89ae.svg'); }
.nav-profile { --nav-icon: url('./assets/figma/09b76.svg'); }

/* Level detail */
.curved-header {
  position: absolute;
  inset: 0 0 auto;
  height: 122px;
  z-index: 5;
  background: url('./assets/figma/5bc59.png') center top / 108% 100% no-repeat;
  text-align: center;
  padding-top: 10px;
}

.curved-header .brand-mark { font-size: 12px; }
.curved-header h1 { margin: 7px 0 -3px; font: 400 clamp(38px, 12vw, 55px)/1 'Dela Gothic One'; }
.curved-header p { margin: 0; font-size: 19px; }

.level-detail {
  --offer-panel: #fdf0d6;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  background: #350509;
}
.level-detail .curved-header {
  height: 21.7cqw;
  padding-top: 2cqw;
  background-position: center -2px;
  background-size: 103% calc(100% + 2px);
}
.level-detail .brand-mark { font-size: 2.8cqw; margin: 0; }
.level-detail .top-back,
.level-detail .top-menu { top: calc(6.85cqw - 22px); width: 44px; height: 44px; }
.level-detail .top-back { left: calc(6.75cqw - 22px); background-size: 4.9cqw; }
.level-detail .top-menu { right: calc(7.25cqw - 22px); background-size: 5.1cqw; }
.level-detail .curved-header h1 { margin: 1.5cqw 0 1.4cqw; font-size: 7.2cqw; }
.level-detail .curved-header p { font-size: 2.9cqw; }
.level-detail__hero { height: 78cqw; flex: none; position: relative; overflow: hidden; }
.level-detail__hero img {
  position: absolute;
  inset: 14.4cqw 0 0;
  width: 100%;
  height: calc(100% - 14.4cqw);
  object-fit: cover;
  object-position: center 50%;
}
.level-detail--1 .level-detail__hero img { object-position: center 14%; }
.level-detail__hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 16cqw;
  background: linear-gradient(transparent, #350509);
}
.level-detail .level-pill {
  position: absolute;
  z-index: 6;
  top: 24.6cqw;
  left: 4.5cqw;
  display: grid;
  place-items: center;
  width: 30cqw;
  min-height: 8.1cqw;
  border-width: max(1.5px, .29cqw);
  background: var(--action-gradient);
  font: 400 2.55cqw/1.2 'Dela Gothic One';
}

.promise-card {
  margin: -4.5cqw 5cqw 3.2cqw;
  padding: 3.1cqw 4cqw 3.4cqw;
  position: relative;
  border: max(1.5px, .29cqw) solid var(--gold);
  border-radius: 4.7cqw;
  background: #590116 url('./assets/figma/e87ed.png') center / cover;
  text-align: center;
}

.promise-card h2 { margin: 0 0 1.9cqw; font: 400 4.05cqw/1.18 'Dela Gothic One'; text-wrap: balance; }
.promise-card p { margin: 0 auto; max-width: 29em; font-size: clamp(12px, 3.35cqw, 17px); line-height: 1.25; text-wrap: balance; }
.level-facts { display: grid; grid-template-columns: .73fr 1fr; gap: 2.7cqw; margin: 0 9cqw 3cqw; }
.level-facts .fact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1cqw;
  min-height: 8.1cqw;
  border-width: max(1.5px, .29cqw);
  background: transparent;
  box-shadow: none;
  font-size: clamp(10px, 3.15cqw, 15px);
  font-weight: 700;
}
.level-facts img { width: 3.7cqw; height: 3.7cqw; }

.result-card {
  margin: 0 5cqw 3.8cqw;
  border: max(1.5px, .29cqw) solid var(--gold);
  border-radius: 4cqw;
  padding: 3.1cqw 3.6cqw 3.5cqw;
  background: var(--offer-panel);
  color: #6a0019;
  text-align: center;
}

.result-card h2 { margin: 0 0 1.5cqw; font: 400 4.5cqw/1.18 'Dela Gothic One'; }
.result-card p { margin: 0 auto; font-size: clamp(12px, 3.45cqw, 17px); line-height: 1.37; text-wrap: balance; }
.level-detail--2 .result-card p:last-child,
.level-detail--3 .result-card p:last-child { max-width: 19em; }
.result-card .result-card__lead { margin-bottom: .35cqw; }
.level-detail__actions { display: grid; justify-items: center; gap: 2cqw; padding: 0 10cqw 5.2cqw; }
.level-detail__actions .emerald-button,
.offer-booked { width: 100%; min-height: max(44px, 11cqw); border-width: max(1.5px, .29cqw); }
.level-detail__actions .emerald-button { font-size: clamp(11px, 3.25cqw, 16px); text-transform: uppercase; }
.offer-booked { display: grid; place-items: center; margin: 0; padding: 7px 10px; border: solid var(--gold); border-radius: 999px; background: var(--green-950); text-align: center; font-weight: 700; }
.level-detail__actions .how-link { min-height: 44px; padding: 0 10px; border-bottom: 1px solid var(--gold); text-decoration: none; font-size: clamp(12px, 2.9cqw, 15px); }
.mag-days-screen { padding-top: 137px; }
.day-access { margin: 0 14px 20px; }
.day-access__title { margin: 20px 0 12px; font-size: clamp(19px, 5.5vw, 27px); }
.day-access__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.day-access__card {
  grid-column: span 2;
  min-width: 0;
  min-height: 86px;
  padding: 10px 4px;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(111, 0, 24, .94), rgba(48, 0, 8, .98));
  color: var(--cream);
  text-align: center;
  box-shadow: inset 0 0 16px rgba(255, 198, 76, .08);
}
.day-access__card span,
.day-access__card strong,
.day-access__card small { display: block; }
.day-access__card span { color: var(--gold); font: 700 10px/1.2 'Manrope'; }
.day-access__card strong { margin-top: 4px; font: 400 clamp(11px, 3vw, 15px)/1.15 'Dela Gothic One'; }
.day-access__card small { margin-top: 5px; font: 500 clamp(10px, 2.7vw, 13px)/1.25 'Manrope'; opacity: .84; overflow-wrap: anywhere; text-wrap: balance; }
.day-access__card:nth-child(4) { grid-column: 2 / span 2; }
.day-access__card:nth-child(5) { grid-column: 4 / span 2; }
.day-access__card.active { background: var(--green-950); box-shadow: 0 0 0 2px rgba(255, 204, 90, .24); }
.day-preview-content { padding: 18px 24px 28px; }
.day-preview-task { margin: 16px 0; }
.seal-video { margin-bottom: 16px; }

/* Goal and transitions */
.temple-exterior {
  background: #32170f url('./assets/figma/c4b70.png') center top / 100% auto no-repeat;
}

.temple-exterior::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 26%, rgba(48,0,10,.25) 40%, #4b0013 72%);
}

.screen-header-spacer { height: 222px; }

.guide-label {
  margin: 0 18px -3px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 4;
}

.guide-label__avatar {
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
  background: #5f3219;
  box-shadow: var(--shadow);
  z-index: 2;
}

.guide-label__name {
  margin-left: -12px;
  min-height: 45px;
  min-width: 210px;
  padding: 9px 18px 8px 28px;
  border: 1.5px solid var(--gold);
  border-radius: 0 22px 22px 22px;
  background: linear-gradient(90deg, #790103, #8f0030);
  box-shadow: var(--shadow);
  font: 400 18px/1.3 'Dela Gothic One';
}
.maat-guide .guide-label__avatar { flex: 0 0 72px; }
.maat-guide .guide-label__name { min-width: 0; font-size: clamp(13px, 4vw, 18px); }

.cream-panel,
.chat-bubble {
  background: linear-gradient(135deg, #fff9e9, #f4dcae);
  color: var(--ink);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.goal-panel { margin: 0 14px; padding: 18px 16px; }
.goal-panel p { margin: 0 0 13px; font-size: 16px; line-height: 1.42; }
.goal-options { display: grid; gap: 8px; margin: 11px 0; }
.answer-options { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 4px; }
.answer-options button {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(111, 0, 24, .08);
  color: var(--ink);
  font: 650 13px/1.2 'Manrope';
}
.answer-options button:active { background: var(--green-800); color: var(--cream); }
.goal-option {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg, #fff9e9, #f4dcae);
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}

.goal-option::before { content: ''; width: 19px; height: 19px; flex: 0 0 auto; border: 2px solid #6b0019; border-radius: 50%; }
.goal-option.selected { background: var(--green-950); color: var(--cream); }
.goal-option.selected::before { border-color: var(--cream); box-shadow: inset 0 0 0 4px #0b6f40; background: var(--cream); }
.goal-custom { width: 100%; min-height: 54px; border: 1.5px solid var(--gold); border-radius: 14px; padding: 12px 14px; background: var(--cream); color: var(--ink); resize: vertical; }
.goal-actions { margin-top: 12px; }

.video-stage {
  position: relative;
  margin-top: 96px;
  height: 360px;
  background: #1a100b;
  overflow: hidden;
}

.video-stage video { width: 100%; height: 100%; object-fit: cover; }
.video-sound {
  position: absolute;
  right: 13px;
  bottom: 14px;
  min-width: 46px;
  height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  background: rgba(55,0,5,.88);
}

.saved-flow { margin-top: -14px; padding: 0 24px 34px; position: relative; z-index: 3; }
.saved-message { padding: 17px 22px; font-size: 22px; margin: 0 0 16px; }
.goal-summary { overflow: hidden; margin: 0 0 16px; border: 1.5px solid var(--gold); border-radius: 18px; background: var(--cream); color: var(--ink); }
.goal-summary h2 { margin: 0; padding: 11px 16px; background: linear-gradient(90deg, #6f0018, #8d0027); color: var(--cream); text-align: center; font: 400 24px/1.2 'Dela Gothic One'; }
.goal-summary p { margin: 0; padding: 16px; font-size: 16px; line-height: 1.4; }
.temple-opened { margin: 15px 0; text-align: center; font-size: 19px; }
.saved-actions { display: grid; gap: 7px; }

/* Chat */
.chat-screen {
  min-height: 100dvh;
  padding-top: 0;
  padding-bottom: calc(104px + var(--safe-bottom));
  background: #26160e url('./assets/figma/539fe.png') center top / cover fixed no-repeat;
}

.chat-screen::after {
  content: '';
  position: fixed;
  inset: 0;
  max-width: 471px;
  margin: 0 auto;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(22,9,4,.05) 25%, rgba(20,8,3,.2) 72%, rgba(20,8,3,.55));
  z-index: -1;
}

.chat-header-space { height: 116px; }
.chat-content { padding: 7px 12px 25px; display: grid; gap: 13px; }
.mirror-timeline, .mirror-entry, .mirror-message { display: grid; gap: 13px; min-width: 0; }
.chat-guide { margin: 0 21px; }
.chat-guide .guide-label__avatar { width: 63px; height: 63px; }
.chat-guide .guide-label__name { min-height: 39px; font-size: 15px; }
.chat-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chat-meta .chat-guide { margin: 0; }
.chat-meta .guide-label__name { min-width: 0; padding-inline: 23px 12px; }
.progress-pill { margin-left: auto; padding: 7px 11px; font-size: 13px; white-space: nowrap; }

.embedded-video {
  width: calc(100% - 42px);
  aspect-ratio: 16 / 9;
  margin-left: 42px;
  border: 2px solid var(--cream);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background: #1a100b;
}
.embedded-video video { width: 100%; height: 100%; object-fit: cover; }
.embedded-video button { position: absolute; right: 7px; bottom: 7px; width: 34px; height: 30px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(55,0,5,.82); font-size: 15px; color: var(--cream); text-shadow: 0 2px 8px #000; }

.chat-bubble { padding: 15px 16px; font-size: 15px; line-height: 1.48; position: relative; }
.chat-bubble--guide { margin-left: 42px; }
.chat-bubble--guide::before { content: ''; position: absolute; left: -10px; top: 22px; border: 10px solid transparent; border-right-color: #fff3d8; border-left: 0; }
.chat-bubble--user { margin-left: 86px; background: linear-gradient(120deg, #790103, #9a0032); color: var(--cream); }
.chat-bubble--user::after { content: ''; position: absolute; right: -9px; bottom: 12px; border: 9px solid transparent; border-left-color: #960030; border-right: 0; }
.chat-bubble p { margin: 0 0 10px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble .question-copy { overflow-wrap: anywhere; }
.seal-followup { margin: 0 14px 14px 28px; }
.seal-micro-result { margin-bottom: 12px; }
.seal-micro-result p { overflow-wrap: anywhere; }
.anubis-closing-video video { object-fit: contain; }

.isis-scroll-intro { padding-bottom: 26px; }
.isis-scroll-closed, .isis-scroll-actions { width: min(92%, 420px); display: grid; gap: 10px; margin-inline: auto; }
.isis-scroll-trigger { display: block; padding: 0; border: 0; border-radius: 14px; background: transparent; }
.isis-scroll-trigger img { display: block; width: 100%; }
.isis-scroll-closed > img[hidden] { display: none; }
.isis-scroll-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#isis-scroll-instruction { margin: 0; text-align: center; font-size: 14px; font-weight: 700; }
.isis-scroll-screen {
  padding: 128px 7px calc(24px + var(--safe-bottom));
  background: linear-gradient(rgba(25, 10, 4, .55), rgba(25, 10, 4, .85)), url('./assets/figma/539fe.png') center top / cover fixed;
}
.isis-scroll-stage { container-type: inline-size; }
.isis-parchment {
  border-style: solid;
  border-color: transparent;
  border-width: 17.85cqw 0 21.44cqw;
  border-image: url('./assets/figma/blank-transformation-scroll.png') 214 0 257 0 fill / 1 / 0 stretch;
  padding: 0 17% 8px;
  color: #391b09;
  font: 400 clamp(15px, 4.4cqw, 20px)/1.35 'Isis Parchment', 'Manrope', sans-serif;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.isis-parchment--opening { animation: isis-unroll 250ms var(--ease-out, cubic-bezier(.23, 1, .32, 1)) both; }
@keyframes isis-unroll {
  from { clip-path: inset(0 0 max(0px, calc(100% - 17cqw))); opacity: .8; }
  to { clip-path: inset(0); opacity: 1; }
}
.isis-parchment h2 { margin: 0 0 12px; font-size: clamp(20px, 5.7cqw, 28px); font-weight: 400; line-height: 1.17; text-align: center; text-wrap: balance; scroll-margin-top: 18px; }
.isis-parchment h2:focus { outline: none; }
.isis-parchment__intro { margin: 0 0 16px; text-align: center; text-wrap: balance; }
.isis-parchment__fields, .isis-parchment__group, .isis-parchment__field { display: grid; min-width: 0; }
.isis-parchment__fields { gap: 17px; }
.isis-parchment__group { gap: 10px; }
.isis-parchment__field { gap: 3px; }
.isis-parchment textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 3px 4px;
  resize: none;
  border: 0;
  border-bottom: 1px solid #6a3c17;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: max(16px, 1em);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  scroll-margin-block: 20px;
}
.isis-parchment textarea:focus { outline: 2px solid #9b4f1f; outline-offset: 1px; background: #fff4d335; }
.isis-parchment__spell { white-space: pre-wrap; }
.isis-parchment__spell p { margin: 0 0 10px; }
.isis-parchment__spell p:last-child { margin-bottom: 0; }
.isis-parchment__edit textarea { min-height: 7em; }
.isis-scroll-after { margin: 14px 4% 0; padding: 15px; font-size: 15px; line-height: 1.45; }
.isis-scroll-after p { margin: 0 0 9px; }
.isis-scroll-after .isis-scroll-comment { margin-bottom: 0; padding-top: 10px; border-top: 1px solid var(--gold); }
.isis-scroll-hint { margin: 10px 5% 0; color: var(--cream); text-align: center; font-size: 13px; }
.isis-scroll-actions { margin-top: 14px; }
.isis-scroll-actions .emerald-button { font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .isis-parchment--opening { animation: none; }
}
.chat-bubble strong,
.cream-panel strong { font-weight: 800; color: #570414; }
.symbol-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.symbol-card {
  min-height: 116px;
  padding: 9px 5px 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1.5px solid #d7a832;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 28%, rgba(250,205,78,.18), transparent 42%), linear-gradient(145deg, #24060c, #630015);
  color: #fff0c8;
  box-shadow: inset 0 0 0 1px rgba(255,245,199,.12), 0 5px 12px rgba(59,0,12,.25);
  font: 700 10px/1.18 'Manrope';
  text-transform: uppercase;
  letter-spacing: .02em;
}
.symbol-card__icon { width: 72px; height: 72px; display: grid; place-items: center; }
.symbol-card__icon img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.42); filter: drop-shadow(0 2px 5px rgba(0,0,0,.58)); }
.symbol-card.selected { background: var(--green-950); border-color: #ffe59b; transform: translateY(-2px); box-shadow: 0 0 0 2px #ffe59b, 0 8px 18px rgba(1,66,34,.34); }
.symbol-picker__footer { display: grid; gap: 8px; margin-top: 10px; text-align: center; }
.symbol-picker__footer .emerald-button { min-height: 46px; padding: 10px 12px; font-size: 12px; }
.symbol-picker__footer .emerald-button:disabled { opacity: .45; filter: grayscale(.45); }
.door-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.door-card {
  display: block;
  min-width: 0;
  width: 100%;
  aspect-ratio: 941 / 1672;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  perspective: 900px;
}
.door-card__flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 280ms var(--ease-in-out, cubic-bezier(.77, 0, .175, 1));
}
.door-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  outline: 1px solid var(--gold);
  outline-offset: -1px;
  background: #513015;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.door-card__back,
.door-card[aria-pressed="true"] .door-card__flip { transform: rotateY(180deg); }
.door-card[aria-pressed="true"] img { outline-width: 2px; }
.door-card:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.door-card[aria-disabled="true"] { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .door-card__back,
  .door-card[aria-pressed="true"] .door-card__flip { transform: none; }
  .door-card__back,
  .door-card[aria-pressed="true"] .door-card__front { visibility: hidden; }
  .door-card[aria-pressed="true"] .door-card__back { visibility: visible; }
}
.sent-symbols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.sent-symbol { min-width: 0; display: grid; place-items: center; gap: 4px; padding: 8px 4px; border: 1px solid rgba(255,232,174,.65); border-radius: 12px; background: rgba(40,0,12,.24); text-align: center; }
.sent-symbol span { width: 48px; height: 48px; display: grid; place-items: center; }
.sent-symbol span img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.35); filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.sent-symbol strong { color: #fff3cf; font-size: 9px; line-height: 1.15; text-transform: uppercase; }
.followup-question { margin-top: -4px; }
.message-title { margin: 0 0 9px; font-size: 17px; line-height: 1.25; }
.typing-text::after { content: '▍'; animation: blink .75s steps(1) infinite; color: #8d0027; }
@keyframes blink { 50% { opacity: 0; } }

.help-button { margin-top: 11px; min-height: 34px; border: 0; border-radius: 18px; padding: 6px 14px; background: #f5d7a6; color: #72001c; box-shadow: var(--shadow); }
.help-panel { margin-top: 11px; padding: 12px; border-radius: 13px; background: #f5d7a6; font-style: italic; }

.reflection-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.reflection-actions .emerald-button { min-height: 42px; padding: 8px 7px; font-size: 12px; }

.composer {
  position: fixed;
  left: 50%;
  bottom: calc(8px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 40;
  width: min(calc(100% - 22px), 449px);
  min-height: 58px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 42px 42px;
  gap: 4px;
  align-items: end;
  border: 2px solid #7d0021;
  border-radius: 29px;
  background: var(--cream);
  box-shadow: 0 7px 20px rgba(33,0,8,.58);
}

.composer__attachment,
.composer__round {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
}

.composer__attachment { background-image: url('./assets/figma/4c786.svg'); background-size: 24px; border-right: 1px solid #7d0021; border-radius: 0; }
.composer__voice { background-image: url('./assets/figma/13e9c.svg'), var(--action-gradient); background-size: 21px, cover; }
.composer__send { background-image: url('./assets/figma/d39da.svg'), var(--action-gradient); background-size: 21px, cover; }
.composer__input { min-height: 40px; max-height: 120px; padding: 8px 5px; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font-size: 15px; line-height: 1.35; }
.composer__input::placeholder { color: #a66468; }
.composer__preview { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; }
.composer__preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 7px; }
.composer__preview--images { flex-wrap: wrap; }
.composer__preview-count { flex: 0 0 100%; font-weight: 750; }
.composer__thumb { position: relative; display: inline-grid; }
.composer__thumb button { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; padding: 0; border: 1px solid var(--gold); border-radius: 50%; background: #6f0018; color: var(--cream); line-height: 1; }
.recording { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.35); transform: scale(1.04); } }

/* Summary, collection and profile */
.summary-screen { padding-top: 128px; }
.summary-screen .seal-video {
  width: calc(100% - 36px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
  border-radius: 18px;
  background: #180e09;
  box-shadow: var(--shadow);
}
.summary-screen .seal-video video { object-fit: contain; }
.summary-scroll { margin: 0 18px; padding: 24px 22px; border-radius: 22px; background: linear-gradient(135deg, #fff8e6, #ecd09b); color: var(--ink); box-shadow: var(--shadow); }
.summary-scroll h1 { margin: 0 0 15px; text-align: center; font: 400 26px/1.2 'Dela Gothic One'; }
.summary-scroll p { font-size: 16px; line-height: 1.5; }
.seal-card { margin: 18px auto 13px; width: min(82%, 330px); text-align: center; }
.seal-card img { width: min(66vw, 250px); margin: 0 auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
.seal-card h2 { font: 400 21px/1.25 'Dela Gothic One'; }
.summary-actions { padding: 0 28px 20px; display: grid; gap: 8px; }
.summary-actions a.emerald-button { display: grid; place-items: center; text-decoration: none; }
.seal-template { margin: 20px 28px 12px; text-align: center; }
.seal-template img { width: min(100%, 260px); height: auto; margin: 0 auto; border: 1px solid var(--gold); border-radius: 12px; }
.seal-template figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; }
.mag-result-entry { margin-top: 20px; font-size: clamp(13px, 4vw, 18px); }
.mag-result__panel { margin: 14px 18px; padding: 18px; overflow-wrap: anywhere; }
.mag-result__panel .message-title { margin: 0 0 10px; }
.mag-result__panel p { margin: 0 0 12px; line-height: 1.5; }
.mag-result__panel p:last-child { margin-bottom: 0; }
.mag-result__panel .mag-result__note { font-size: 13px; }
.mag-result__actions { padding-inline: 18px; }
.mag-result__actions .section-title { margin: 15px 4px 5px; font-size: 19px; text-wrap: balance; }
.mag-result__section { font-size: 16px; line-height: 1.35; }

.collection-screen, .profile-screen { padding-top: 74px; }
.collection-card, .profile-card { margin: 14px; padding: 16px; border: 1.5px solid var(--gold); border-radius: 20px; background: rgba(74,0,14,.9); box-shadow: var(--shadow); }
.collection-head { display: flex; align-items: center; gap: 12px; }
.number-badge { width: 55px; height: 55px; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 50%; background: var(--green-950); font: 400 22px/1 'Dela Gothic One'; }
.collection-head h2 { margin: 0; font: 400 25px/1.1 'Dela Gothic One'; }
.collection-head p { margin: 2px 0 0; }
.artifacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 15px; }
.artifact { text-align: center; }
.artifact img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 12px; }
.artifact.locked img { filter: brightness(.55) sepia(.6); }
.artifact span { display: block; margin-top: 5px; font-size: 11px; }
.collection-list { display: grid; gap: 7px; margin: 14px; }
.collection-row { min-height: 48px; padding: 9px 12px; display: grid; grid-template-columns: 38px 1fr 34px; align-items: center; gap: 10px; border: 1.5px solid var(--gold); border-radius: 11px; background: rgba(91,0,15,.9); }
.collection-row strong { font: 400 15px/1.1 'Dela Gothic One'; }
.collection-row .number-badge { width: 34px; height: 34px; font-size: 13px; }

.profile-screen { padding-top: 18px; padding-bottom: 0; background: var(--burgundy-950) url('./assets/figma/e87ed.png') center top / 100% auto repeat-y; }
.profile-screen::before { background-color: transparent; mask-image: linear-gradient(#000 0 210px, transparent 540px); }
.profile-title { margin: 10px 0 14px; font-size: clamp(26px, 7vw, 37px); }
.profile-content { display: grid; gap: 16px; min-width: 0; margin: 0 12px 22px; }
.profile-content .profile-card { margin: 0; border-radius: 14px; background: #350407; box-shadow: none; }
.profile-user { display: flex; align-items: center; gap: 16px; padding: 10px 13px; }
.profile-avatar {
  position: relative;
  flex: 0 0 49px;
  height: 49px;
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #f3e5c6;
  color: #77563a;
}
.profile-avatar::before, .profile-avatar::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); background: currentColor; }
.profile-avatar::before { top: 14%; width: 35%; aspect-ratio: 1; border-radius: 50%; }
.profile-avatar::after { bottom: -18%; width: 62%; height: 54%; border-radius: 50% 50% 0 0; }
.profile-user h2 { margin: 0; font: 400 clamp(16px, 5.2vw, 23px)/1.1 'Dela Gothic One'; overflow-wrap: anywhere; }
.profile-user p { margin: 4px 0 0; font-size: 13px; }
.profile-section { display: grid; gap: 6px; min-width: 0; }
.profile-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 4px;
  font: 400 clamp(14px, 4.3vw, 20px)/1.25 'Dela Gothic One';
  text-align: center;
}
.profile-heading::before, .profile-heading::after { content: ''; width: 11px; height: 2px; flex: 0 0 11px; background: currentColor; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.stat { padding: 7px 4px; border: 1.5px solid var(--gold); border-radius: 11px; background: #350407; text-align: center; line-height: 1.3; }
.stat strong { display: block; font-size: clamp(11px, 3.2vw, 15px); }
.stat span { font-size: 11px; }
.profile-continue { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; padding: 0; }
.profile-continue img { position: absolute; inset: 0 auto 0 0; width: 50%; height: 100%; object-fit: cover; object-position: center 32%; }
.profile-continue__body { grid-column: 2; display: grid; justify-items: start; align-content: center; gap: 6px; padding: 8px; min-width: 0; min-height: 136px; }
.profile-continue__body h3 { margin: 0; font: 400 clamp(18px, 5vw, 27px)/1.1 'Dela Gothic One'; }
.profile-continue__body p { margin: 0; font-size: 12px; }
.profile-badge { display: inline-block; padding: 4px 9px; border: 1px solid var(--gold); border-radius: 999px; background: var(--green-950); font-size: 12px; font-weight: 800; white-space: nowrap; }
.profile-continue .emerald-button { width: 100%; min-height: 35px; padding: 6px; font-size: clamp(9px, 2.8vw, 13px); }
.profile-goal { padding: 10px 13px; border-radius: 13px; }
.profile-goal h2 { margin: 0 0 3px; font: 400 clamp(16px, 4.4vw, 21px)/1.2 'Dela Gothic One'; }
.profile-goal p { margin: 0 0 5px; font-size: 13px; overflow-wrap: anywhere; }
.profile-goal .text-link { min-height: 32px; padding: 0; color: #006147; text-align: left; font-weight: 800; }
.profile-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; }
.profile-booked { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.profile-notification { min-height: 48px; border-radius: 11px; }
.profile-notification p { margin: 0; font-size: 11px; }
.profile-switch { position: relative; flex: 0 0 40px; width: 40px; height: 23px; border: 0; border-radius: 999px; background: #766452; }
.profile-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--cream); }
.profile-switch[aria-checked="true"] { background: var(--green-950); }
.profile-switch[aria-checked="true"]::after { left: auto; right: 3px; }
.profile-list { display: grid; gap: 6px; }
.profile-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}
.profile-list button::after { content: ''; flex: 0 0 6px; height: 6px; border: solid var(--ink); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.profile-list .profile-delete { color: #a32428; }

.modal {
  width: min(calc(100% - 28px), 430px);
  max-height: 82dvh;
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 37px 20px 20px;
  background: linear-gradient(145deg, #690017, #2e0008);
  color: var(--cream);
  box-shadow: 0 24px 80px rgba(0,0,0,.65);
}
.modal::backdrop { background: rgba(5,0,1,.72); backdrop-filter: blur(4px); }
.modal__close { position: absolute; right: 10px; top: 7px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 28px; }
.modal h2 { margin: 0 0 12px; font: 400 clamp(17px, 5vw, 22px)/1.2 'Dela Gothic One'; overflow-wrap: anywhere; }
.modal p { line-height: 1.45; }
.modal .emerald-button { margin-top: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 100;
  transform: translate(-50%, 20px);
  width: min(calc(100% - 42px), 410px);
  padding: 11px 16px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: rgba(1,61,24,.96);
  color: var(--cream);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 370px) {
  .page-content { padding-inline: 10px; }
  .facts { gap: 5px; }
  .fact-pill { font-size: 9px; }
  .levels-grid { gap: 7px; }
  .level-card { min-height: 189px; }
  .level-card__image { height: 112px; }
  .level-card__world { font-size: 10px; }
  .composer { grid-template-columns: 37px minmax(0, 1fr) 39px 39px; width: calc(100% - 12px); }
  .composer__attachment, .composer__round { width: 37px; height: 37px; }
  .chat-bubble--guide { margin-left: 28px; }
  .chat-bubble--user { margin-left: 58px; }
}

.composer.composer--text-only { grid-template-columns: minmax(0, 1fr) auto; padding-left: 14px; }

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