/* =========================================================================
   SENSEI WHISKERS: THE TEMPLE  —  temple.css
   Self-contained scene styles. Does NOT use meme-theme.css so changes to the
   marketing site never break the Temple experience.
   ========================================================================= */

:root {
  --navy: #070b16;
  --navy-2: #0c1322;
  --stone: #161f33;
  --stone-2: #1d2942;
  --gold: #e8c66b;
  --gold-soft: #f0d98a;
  --accent: #ff4d6d;       /* existing red/pink accent */
  --accent-2: #ff7a98;
  --text: #ece9e1;
  --muted: #94a0b6;
  --line: rgba(232, 198, 107, 0.18);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --font-display: "Bangers", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body { overflow-x: hidden; }

a { color: var(--gold-soft); }

/* ---------- Background scene ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, #16203a 0%, transparent 60%),
    linear-gradient(180deg, #05080f 0%, #0a1020 45%, #0c1322 100%);
}
.scene .moon {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7e0, #f3e2a8 55%, #d8c074 100%);
  box-shadow: 0 0 60px 18px rgba(243, 226, 168, 0.35);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.scene .moon:hover { transform: scale(1.05); }
.scene .moon:focus-visible { outline: 2px solid var(--gold); }
.scene .stars { position: absolute; inset: 0; }
.scene .star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 4s infinite ease-in-out;
}
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: .9; } }

.scene .mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background:
    linear-gradient(180deg, transparent, rgba(8,12,22,0.6)),
    conic-gradient(from 200deg at 20% 100%, #0a1120 0deg, #0e1626 40deg, #0a1120 80deg) ,
    conic-gradient(from 200deg at 70% 100%, #0c1424 0deg, #101a2e 50deg, #0c1424 100deg);
  clip-path: polygon(0 60%, 12% 35%, 26% 55%, 40% 25%, 55% 50%, 70% 28%, 85% 52%, 100% 38%, 100% 100%, 0 100%);
  opacity: 0.9;
}
.scene .fog {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(120,140,180,0.08) 40%, rgba(160,180,210,0.14));
  filter: blur(8px);
  animation: drift 18s infinite alternate ease-in-out;
}
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

.lantern {
  position: absolute;
  width: 26px; height: 38px;
  border-radius: 50% / 40%;
  background: radial-gradient(circle at 50% 40%, #ffcaa0, #ff7a3c 70%, #b23a17);
  box-shadow: 0 0 26px 8px rgba(255, 140, 70, 0.45);
  cursor: pointer;
  animation: sway 5s infinite ease-in-out;
  transition: transform .3s ease;
}
.lantern:hover { transform: scale(1.1); }
.lantern:focus-visible { outline: 2px solid var(--gold); }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- Particles ---------- */
.particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.particle {
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  background: var(--gold-soft);
  border-radius: 50%;
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .6; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* ---------- Layout ---------- */
.temple-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 80px;
}

.temple-topbar {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232,198,107,0.35);
}
.brand small { display:block; font-family: var(--font-body); font-size: 11px; color: var(--muted); letter-spacing: 2px; }

.btn {
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--line);
  background: rgba(20,28,46,0.7);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.btn:focus-visible { outline: 2px solid var(--gold); }
.btn-gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1a1206; border: none; font-weight: 700; }
.btn-ghost { background: transparent; }

/* Leave Temple button — styled to match the chat page's "← Home" (.home-btn)
   pill: cyan, rounded, Bangers font, uppercase. */
.leave-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: #000;
  background: #00E5FF;
  box-shadow: 0 0 20px rgba(0,229,255,0.25);
  transition: all 0.3s ease;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}
.leave-btn:hover { transform: scale(1.08); box-shadow: 0 0 30px rgba(0,229,255,0.45); color: #000; }

/* ---------- Sensei stage ---------- */
.stage {
  margin-top: 4vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.zen {
  position: relative;
  width: 240px; height: auto; min-height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.zen:focus-visible { outline: 2px solid var(--gold); border-radius: 16px; }

/* glow ring under Sensei */
.zen .halo {
  position: absolute;
  bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 60px;
  background: radial-gradient(ellipse at center, rgba(232,198,107,0.35), transparent 70%);
  filter: blur(6px);
  animation: breathe 5s infinite ease-in-out;
}
@keyframes breathe { 0%,100% { transform: translateX(-50%) scale(1); opacity:.7;} 50% { transform: translateX(-50%) scale(1.08); opacity:1;} }

/* Sensei character (PNG) */
.sensei-img {
  position: relative;
  width: auto;
  height: auto;
  max-width: 230px;
  max-height: 60vh;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,0.55));
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease;
  animation: idle 5s infinite ease-in-out;
}
@keyframes idle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* AWAKE state */
.zen.awake .sensei-img {
  transform: translateY(-10px) scale(1.04);
  animation: none;
  filter: drop-shadow(0 0 28px rgba(255,180,120,0.55)) drop-shadow(0 14px 26px rgba(0,0,0,0.55));
}
.zen.awake .halo { background: radial-gradient(ellipse at center, rgba(255,180,120,0.5), transparent 70%); }

.status-text {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 1px;
  min-height: 22px;
  transition: opacity .4s ease;
}
.hint {
  font-size: 13px; color: var(--gold-soft);
  opacity: .85; animation: pulse 2.5s infinite ease-in-out;
}
@keyframes pulse { 0%,100% { opacity:.4;} 50% { opacity:1;} }

/* hidden scroll secret */
.hidden-scroll {
  position: absolute;
  bottom: 40px; left: 18px;
  width: 30px; height: 40px;
  background: linear-gradient(180deg, #e8d49a, #c8a85f);
  border-radius: 4px;
  opacity: .12;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 0 14px rgba(232,198,107,0.5);
}
.hidden-scroll:hover { opacity: .9; transform: scale(1.1) rotate(-4deg); }
.hidden-scroll:focus-visible { outline: 2px solid var(--gold); opacity:.9; }

/* hidden paw print */
.paw {
  position: absolute;
  bottom: 120px; right: 30px;
  font-size: 26px;
  opacity: .12;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease;
  transform: rotate(-15deg);
}
.paw:hover { opacity: .9; transform: scale(1.15) rotate(-15deg); }
.paw:focus-visible { outline: 2px solid var(--gold); opacity: .9; }

/* ---------- Temple navigation ---------- */
.temple-nav {
  width: 100%;
  max-width: 1100px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}
.temple-nav.show { opacity: 1; transform: none; pointer-events: auto; }

.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22,31,51,0.85), rgba(12,19,34,0.9));
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-align: left;
}
.room-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.room-card:focus-visible { outline: 2px solid var(--gold); }
.room-card .icon { font-size: 30px; }
.room-card .rname { font-family: var(--font-display); font-size: 20px; color: var(--gold); letter-spacing: 1px; }
.room-card .rdesc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.room-card .badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: rgba(232,198,107,0.15); color: var(--gold-soft);
  border: 1px solid var(--line);
}
.room-card .badge.done { background: rgba(80,220,140,0.15); color: #8af0b0; }

/* ---------- Modal rooms ---------- */
.room-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4,7,14,0.82);
  backdrop-filter: blur(4px);
}
.room-modal.open { display: flex; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.room-panel {
  width: 100%;
  max-width: 760px;
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--stone), var(--navy-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.room-panel h2 {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 1px;
  margin: 0 0 6px;
}
.room-panel .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.room-close {
  float: right;
  font-size: 22px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
}
.room-close:hover { color: var(--text); }

/* Meditation room */
.wisdom-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: radial-gradient(600px 200px at 50% 0%, rgba(232,198,107,0.08), transparent);
  text-align: center;
}
.wisdom-quote { font-size: 20px; line-height: 1.5; color: var(--text); font-style: italic; }
.wisdom-qm { color: var(--gold); font-size: 30px; }
.wisdom-meta { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* Scrolls */
.chapter {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.chapter summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--gold-soft);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chapter summary::-webkit-details-marker { display: none; }
.chapter .body { padding: 0 16px 16px; color: var(--muted); line-height: 1.6; font-size: 14px; text-align: left; }
.chapter .body p { margin: 0 0 12px; }
.chapter .body p:last-child { margin-bottom: 0; }
.chapter.locked { border-style: dashed; opacity: 0.78; }
.chapter.locked .lock-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-weight: 600; color: var(--muted);
}
.chapter.locked .lock-body {
  padding: 0 16px 14px; color: var(--muted); font-size: 13px; font-style: italic;
}

/* Training / profile */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  background: rgba(12,19,34,0.6);
}
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 22px; color: var(--gold-soft); font-weight: 700; }
.xpbar { height: 14px; border-radius: 999px; background: rgba(0,0,0,0.4); overflow: hidden; border: 1px solid var(--line); }
.xpbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width .6s ease; }

.quest, .ach {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: center;
}
.quest.done, .ach.done { border-color: rgba(80,220,140,0.4); background: rgba(80,220,140,0.06); }
.quest .qicon, .ach .aicon { font-size: 24px; }
.quest .qbody, .ach .abody { flex: 1; }
.quest .qtitle, .ach .atitle { font-weight: 600; }
.quest .qdesc, .ach .adesc { font-size: 12px; color: var(--muted); }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(232,198,107,0.15); color: var(--gold-soft); }
.tag.done { background: rgba(80,220,140,0.18); color: #8af0b0; }

.nick-input {
  width: 100%; max-width: 280px;
  font-size: 16px; /* >=16px prevents mobile zoom */
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.3); color: var(--text);
}
.nick-input:focus-visible { outline: 2px solid var(--gold); }

/* Meme dojo */
.meme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.meme-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.25); }
.meme-grid img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.meme-grid figcaption { font-size: 11px; color: var(--muted); padding: 6px 8px; }

/* Meme submission form */
.meme-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 16px; }
.meme-file-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: rgba(0,0,0,0.3); color: var(--text);
  transition: border-color .2s ease;
}
.meme-file-btn:hover { border-color: var(--gold); }
.meme-cap { flex: 1 1 180px; max-width: 320px; }
.meme-status { font-size: 12px; color: var(--gold-soft); min-width: 0; }
.meme-preview { margin: 0 0 16px; }
.meme-preview img {
  max-height: 160px; border-radius: 12px; border: 1px solid var(--line);
  display: block; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Meme lightbox (fullscreen viewer) */
.meme-lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,5,10,0.92);
  padding: 40px;
}
.meme-lightbox[hidden] { display: none; }
.meme-lightbox .ml-stage { max-width: 90vw; max-height: 78vh; display: flex; align-items: center; justify-content: center; }
.meme-lightbox .ml-img {
  max-width: 90vw; max-height: 78vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain; cursor: default;
}
.meme-lightbox .ml-cap {
  position: absolute; bottom: 56px; left: 0; right: 0; text-align: center;
  color: var(--muted); font-size: 13px; padding: 0 24px;
}
.meme-lightbox .ml-counter {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: var(--gold-soft); font-size: 12px; letter-spacing: 1px;
}
.meme-lightbox .ml-close, .meme-lightbox .ml-nav {
  position: absolute; border: 1px solid var(--line); background: rgba(0,0,0,0.5);
  color: var(--text); cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.meme-lightbox .ml-close { top: 18px; right: 18px; width: 42px; height: 42px; font-size: 18px; }
.meme-lightbox .ml-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.meme-lightbox .ml-prev { left: 18px; }
.meme-lightbox .ml-next { right: 18px; }
.meme-lightbox .ml-close:hover, .meme-lightbox .ml-nav:hover {
  border-color: var(--gold); color: var(--gold); box-shadow: 0 0 18px rgba(245,158,11,0.35);
}
@media (max-width: 600px) {
  .meme-lightbox .ml-nav { width: 40px; height: 40px; font-size: 22px; }
  .meme-lightbox .ml-prev { left: 6px; }
  .meme-lightbox .ml-next { right: 6px; }
}

/* ---------- Dialogue overlay (from dialogue.js) ---------- */
.sw-dialogue-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: flex-end; justify-content: center;
  padding: 20px;
  background: rgba(4,7,14,0.55);
}
.sw-dialogue-overlay.open { display: flex; }
.sw-dialogue {
  width: 100%; max-width: 720px;
  background: linear-gradient(180deg, #10182b, #0a1120);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 18px 20px 22px;
  box-shadow: var(--shadow);
  position: relative;
  animation: pop .3s ease;
}
@keyframes pop { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sw-dialogue-name {
  font-family: var(--font-display); color: var(--gold);
  letter-spacing: 1px; margin-bottom: 8px;
}
.sw-dialogue-text { font-size: 17px; line-height: 1.6; min-height: 48px; outline: none; }
.sw-dialogue-skip {
  position: absolute; right: 14px; bottom: 12px;
  background: rgba(232,198,107,0.12); border: 1px solid var(--line);
  color: var(--gold-soft); border-radius: 999px; padding: 4px 12px; cursor: pointer;
}

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: linear-gradient(180deg, var(--stone-2), var(--stone));
  border: 1px solid var(--gold); border-radius: 12px;
  padding: 12px 16px; min-width: 220px; box-shadow: var(--shadow);
  animation: toastIn .3s ease;
}
.toast .t-title { color: var(--gold); font-weight: 700; font-size: 14px; }
.toast .t-desc { color: var(--muted); font-size: 12px; }
@keyframes toastIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .temple-nav { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
  .scene .moon { width: 80px; height: 80px; top: 6%; right: 8%; }
  .zen { width: min(220px, 66vw); min-height: 0; }
  .sensei-img { max-width: 66vw; max-height: 46vh; }
  /* push the Sensei stage clear of the top bar + browser chrome so it isn't clipped */
  .stage { margin-top: 48px; }
  .brand { font-size: 18px; }
  .room-panel { padding: 20px; }
  /* Move the floating account button to bottom-left on phones so it no longer
     covers the "Leave Temple" back button in the top-right of the topbar. */
  .profile-fab {
    top: auto; bottom: 16px; left: 16px; right: auto;
  }
}
@media (max-width: 420px) {
  .temple-nav { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05ms !important; }
}

/* profile floating button */
.profile-fab {
  position: fixed; right: 16px; top: 16px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer;
  background: linear-gradient(180deg, var(--stone-2), var(--stone));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.profile-fab:focus-visible { outline: 2px solid var(--gold); }

/* ---------- Breathing exercise ---------- */
.breath-wrap {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.breath-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(0, 229, 255, 0.25), rgba(0, 229, 255, 0.05) 70%);
  border: 2px solid var(--line);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.15) inset;
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
  transform: scale(0.7);
}
.breath-circle.breathing {
  animation: breathe 16s ease-in-out infinite;
}
@keyframes breathe {
  0%   { transform: scale(0.7); box-shadow: 0 0 18px rgba(0, 229, 255, 0.12) inset; }
  25%  { transform: scale(1.1); box-shadow: 0 0 38px rgba(0, 229, 255, 0.28) inset; }
  50%  { transform: scale(1.1); box-shadow: 0 0 38px rgba(0, 229, 255, 0.28) inset; }
  75%  { transform: scale(0.7); box-shadow: 0 0 18px rgba(0, 229, 255, 0.12) inset; }
  100% { transform: scale(0.7); box-shadow: 0 0 18px rgba(0, 229, 255, 0.12) inset; }
}
.breath-status {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  max-width: 320px;
  min-height: 18px;
}

/* ---------- Temple mastery meter ---------- */
.mastery {
  height: 12px;
  border-radius: 999px;
  background: var(--stone-2);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 6px 0 4px;
}
.mastery > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 0.5s ease;
}
