/* The conversation, in the site's palette. */
.mr-app { max-width: 44rem; margin: 0 auto; padding: 1rem 1.25rem 2rem; display: flex; flex-direction: column; min-height: 80vh; }
.mr-lines { flex: 1; }
.mr-bubble { max-width: 86%; border-radius: 18px; padding: .75rem 1rem; margin-top: .6rem; line-height: 1.5; }
.mr-bubble.ragondin { background: rgba(255,255,255,.06); border-top-left-radius: 6px; }
.mr-bubble.traveller { background: #e8b76a; color: #2a1a0e; margin-left: auto; border-top-right-radius: 6px; }
.mr-bubble.with-card { max-width: 100%; }
.mr-bubble p { margin: .25rem 0; }
.mr-ring { width: 108px; height: 108px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; margin: .5rem auto; }
.mr-pillars { display: flex; gap: .5rem; justify-content: center; margin: .5rem 0; }
.mr-pillar { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .8rem; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 1.6rem; }
.mr-pillar.hot { outline: 1px solid #e8b76a; }
.mr-pillar small { font-size: .65rem; letter-spacing: .1em; opacity: .7; }
.mr-basis { font-size: .78rem; text-align: center; opacity: .75; }
.mr-bars { display: flex; flex-direction: column; gap: .4rem; margin: .5rem 0; }
.mr-bar { display: flex; align-items: center; gap: .6rem; }
.mr-bar .track { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); }
.mr-bar .fill { height: 100%; border-radius: 3px; }
.mr-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .4rem; }
.mr-chips button { border: 1px solid #e8b76a; color: #e8b76a; background: none; border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font: inherit; font-size: .85rem; }
.mr-chips button.gold { background: #e8b76a; color: #2a1a0e; border: none; }
.mr-input { display: flex; gap: .5rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .3rem .3rem .3rem 1rem; }
.mr-input input { flex: 1; background: none; border: none; color: inherit; font: inherit; outline: none; }
.mr-input button { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: none; background: #e8b76a; color: #2a1a0e; font-size: 1.1rem; cursor: pointer; }
.mr-privacy { text-align: center; font-size: .75rem; opacity: .6; margin-top: .8rem; }
.mr-linklike { background: none; border: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.el-wood { color: #6fc18a; } .el-fire { color: #e8745c; } .el-earth { color: #d8a24a; } .el-metal { color: #cdd3da; } .el-water { color: #5f93d8; }
.el-bg-wood { background: #6fc18a; } .el-bg-fire { background: #e8745c; } .el-bg-earth { background: #d8a24a; } .el-bg-metal { background: #cdd3da; } .el-bg-water { background: #5f93d8; }

/* The readings beneath the chart. */
.mr-deeper { margin: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }
.mr-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.mr-tabs button { background: none; border: 1px solid rgba(255,255,255,.18); color: inherit; border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .8rem; cursor: pointer; }
.mr-tabs button.on { border-color: #e8b76a; color: #e8b76a; }
.mr-locked { border: 1px dashed rgba(232,183,106,.5); border-radius: 14px; padding: 1rem; text-align: center; }
.mr-locked p { margin: 0 0 .8rem; font-size: .9rem; }
.mr-list { list-style: none; padding: 0; margin: .6rem 0; }
.mr-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .9rem; }
.mr-list li.now { color: #e8b76a; }
.mr-list strong { font-size: 1.1rem; }
.mr-reading { margin-top: 1rem; font-size: .92rem; line-height: 1.55; }
.mr-score { font-size: 1.1rem; }
.mr-score strong { font-size: 2rem; color: #e8b76a; }
.mr-error { color: #e8745c; font-size: .85rem; }
.mr-bonds-form { display: flex; flex-direction: column; gap: .5rem; }
.mr-name { background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .55rem 1rem; color: inherit; font: inherit; }

/* ---------------------------------------------------------------------------
   The theatre. The logic ported cleanly and the feel did not: flat bubbles
   appearing instantly read as a form with a chat skin. What follows is the
   app's timing, in CSS.
   --------------------------------------------------------------------------- */

/* Bubbles rise into place rather than blinking into existence. */
@keyframes mrRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mr-bubble { animation: mrRise .38s cubic-bezier(.22,.9,.3,1) both; }

/* The chat inherits the site's serif, so the ragondin speaks in the same
   voice here as on the landing. */
.mr-bubble p { font-family: var(--serif); font-size: 1.02rem; }
.mr-bubble.traveller p { font-family: var(--sans); }

/* Rings draw themselves in, the way a chart settles. */
@keyframes mrRingIn {
  from { opacity: 0; transform: scale(.86) rotate(-6deg); }
  to   { opacity: 1; transform: none; }
}
.mr-ring {
  animation: mrRingIn .7s cubic-bezier(.2,.8,.25,1) both .1s;
  box-shadow: 0 0 34px -8px currentColor, inset 0 0 24px -12px currentColor;
}
.mr-ring span { font-family: var(--serif); }

/* Pillars arrive one after another, left to right. */
@keyframes mrPillarIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.mr-pillar { animation: mrPillarIn .5s cubic-bezier(.2,.8,.25,1) both; font-family: var(--serif); }
.mr-pillar:nth-child(1) { animation-delay: .05s }
.mr-pillar:nth-child(2) { animation-delay: .15s }
.mr-pillar:nth-child(3) { animation-delay: .25s }
.mr-pillar:nth-child(4) { animation-delay: .35s }
.mr-pillar.hot { box-shadow: 0 0 20px -6px #e8b76a; }

/* Element bars fill rather than appear pre-filled. */
.mr-bar .fill { animation: mrFill .9s cubic-bezier(.2,.8,.25,1) both .2s; transform-origin: left; }
@keyframes mrFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* The considered pause. */
.mr-thinking { display: flex; gap: .34rem; align-items: center; padding: .9rem 1.1rem; }
.mr-thinking span { width: 6px; height: 6px; border-radius: 50%; background: #e8b76a; opacity: .45; animation: mrBreathe 1.25s ease-in-out infinite; }
.mr-thinking span:nth-child(2) { animation-delay: .18s }
.mr-thinking span:nth-child(3) { animation-delay: .36s }
@keyframes mrBreathe { 0%, 100% { opacity: .3; transform: translateY(0) } 50% { opacity: 1; transform: translateY(-3px) } }

/* The orb-flare: the one piece of theatre the app had and the web did not. */
.mr-flare { position: fixed; inset: 0; z-index: 50; background: #0b0605; display: grid; place-items: center; animation: mrFlareIn .35s ease both; }
.mr-flare-video { width: 100%; height: 100%; object-fit: cover; }
@keyframes mrFlareIn { from { opacity: 0 } to { opacity: 1 } }

/* Chips settle in, and lift when reached for. */
.mr-chips button { animation: mrRise .32s ease both; transition: background .18s ease, color .18s ease, transform .18s ease; }
.mr-chips button:hover { transform: translateY(-1px); background: rgba(232,183,106,.12); }
.mr-chips button.gold:hover { background: #f0c67e; }

.mr-input { transition: border-color .2s ease, box-shadow .2s ease; }
.mr-input:focus-within { border-color: rgba(232,183,106,.55); box-shadow: 0 0 0 4px rgba(232,183,106,.08); }
.mr-input button { transition: transform .15s ease; }
.mr-input button:hover { transform: scale(1.06); }

/* Nothing above is worth making anyone unwell. */
@media (prefers-reduced-motion: reduce) {
  .mr-bubble, .mr-ring, .mr-pillar, .mr-bar .fill, .mr-chips button, .mr-flare { animation: none; }
  .mr-thinking span { animation: none; opacity: .6; }
}

/* The companion chooser and the one download the app ever makes. */
.mr-chooser { border: 1px solid rgba(232,183,106,.3); border-radius: 16px; padding: 1rem; margin: .8rem 0; animation: mrRise .3s ease both; }
.mr-chooser-title { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #e8b76a; margin: 0 0 .6rem; }
.mr-choice { display: block; width: 100%; text-align: left; background: none; border: none; border-top: 1px solid rgba(255,255,255,.07); padding: .7rem .2rem; cursor: pointer; color: inherit; font: inherit; }
.mr-choice:first-of-type { border-top: none; }
.mr-choice:disabled { opacity: .4; cursor: default; }
.mr-choice-label { display: block; font-family: var(--serif); font-size: 1.02rem; }
.mr-choice-label em { color: #e8b76a; font-style: normal; font-size: .8rem; }
.mr-choice-blurb { display: block; font-size: .78rem; opacity: .65; margin-top: .15rem; }
.mr-choice.active .mr-choice-label { color: #e8b76a; }

.mr-loading { border: 1px solid rgba(232,183,106,.3); border-radius: 16px; padding: 1rem; margin: .8rem 0; animation: mrRise .3s ease both; }
.mr-loading p { margin: 0 0 .5rem; font-size: .9rem; }
.mr-progress { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.mr-progress div { height: 100%; background: #e8b76a; transition: width .3s ease; }
.mr-loading-note { font-size: .74rem; opacity: .6; margin-top: .6rem !important; }
.mr-loading-step { font-size: .75rem; opacity: .55; margin: .5rem 0 0 !important; font-variant-numeric: tabular-nums; }

/* The composer, pinned.

   The readings render above it, so once the tabs are open the composer would
   otherwise sit a full screen below the Ten Gods list and asking the ragondin
   anything would mean scrolling to the end of the page first. Scoped to the
   direct child of .mr-app: the Bonds form reuses .mr-input and must stay put. */
.mr-app > form.mr-input {
  position: sticky;
  bottom: .75rem;
  z-index: 5;
  background: rgba(38,24,17,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* The day's reading. Free, and above the paid tabs so the free tier has a
   reason to come back tomorrow rather than only on the first visit. */
.mr-today { margin: 1.5rem 0 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; animation: mrRise .35s ease both; }
.mr-today p { margin: .55rem 0; line-height: 1.55; }
.mr-today-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.mr-today-pillar { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: 1.5rem; padding: .5rem .7rem; border-radius: 12px; background: rgba(255,255,255,.05); }
.mr-today-label { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #e8b76a; margin: 0 !important; }
.mr-today-interaction { font-size: .85rem; opacity: .75; margin: .15rem 0 0 !important; text-transform: lowercase; }
.mr-today-quote { font-size: 1.05rem; font-style: italic; opacity: .95; }
.mr-today-reflect { opacity: .85; font-style: italic; }
.mr-today-step { border-left: 2px solid #e8b76a; padding-left: .75rem; }
.mr-today-story { opacity: .7; font-size: .9rem; }

/* The six chapters, personalised. Collapsed by default: six lessons opened at
   once would bury the paid readings and the composer under a wall of text. */
.mr-chapters{margin:1.5rem 0 0;border-top:1px solid rgba(255,255,255,.12);padding-top:1rem}
.mr-chapters-title{font-family:var(--sans);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:#e8b76a;margin:0 0 .7rem}
.mr-chapter-list{list-style:none;padding:0;margin:0;display:grid;gap:.4rem}
.mr-chapter-list > li{border:1px solid rgba(255,255,255,.14);border-radius:12px;overflow:hidden}
.mr-chapter-list > li.open{border-color:rgba(232,183,106,.45)}
.mr-chapter-list button{display:flex;align-items:center;gap:.75rem;width:100%;background:none;border:none;color:inherit;font:inherit;text-align:left;padding:.7rem .9rem;cursor:pointer}
.mr-chapter-num{color:#e8b76a;font-size:.78rem;letter-spacing:.1em;min-width:1.8em}
.mr-chapter-name{flex:1}
.mr-chapter-mark{color:#e8b76a;opacity:.7;font-size:1.1rem}
.mr-chapter-body{padding:0 .9rem .8rem;animation:mrRise .3s ease both}
.mr-chapter-body article{margin:0 0 1.1rem}
.mr-chapter-body h4{margin:.2rem 0 .3rem;font-size:1rem}
.mr-chapter-body p{margin:.3rem 0;line-height:1.55;font-size:.95rem}
.mr-chapter-glyph{font-size:1.9rem;line-height:1;color:#e8b76a;margin:0 0 .2rem !important}

/* The inner garden. Five beds, the day's one lit. */
.mr-garden-title{font-family:var(--sans);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:#e8b76a;margin:0 0 .5rem}
.mr-garden-lede{margin:0 0 .9rem;line-height:1.55}
.mr-garden-beds{display:grid;gap:.5rem;margin-bottom:1rem}
.mr-bed{border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:.6rem .75rem}
.mr-bed.sunlit{border-color:rgba(232,183,106,.55);background:rgba(232,183,106,.05)}
.mr-bed-head{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;font-size:.9rem}
.mr-bed-head span{opacity:.7;font-size:.8rem}
.mr-bed-track{height:6px;border-radius:3px;background:rgba(255,255,255,.1);margin:.45rem 0}
.mr-bed-fill{height:100%;border-radius:3px;transition:width .4s ease}
.mr-bed-foot{display:flex;justify-content:space-between;align-items:center;font-size:.78rem;opacity:.8}
.mr-bed-foot button{background:none;border:1px solid rgba(232,183,106,.5);color:#e8b76a;border-radius:999px;padding:.15rem .6rem;font:inherit;font-size:.75rem;cursor:pointer}
.mr-garden-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:.6rem}
.mr-garden-actions button{border:1px solid #e8b76a;color:#e8b76a;background:none;border-radius:999px;padding:.45rem .9rem;font:inherit;font-size:.85rem;cursor:pointer}
.mr-garden-actions button.gold{background:#e8b76a;color:#2a1a0e;border:none}
.mr-garden-done{margin:0;font-size:.85rem;opacity:.75}
.mr-garden-tally{margin:0 0 .4rem;font-size:.8rem;color:#e8b76a}
.mr-garden-bloom{margin:0;font-size:.9rem}
.mr-garden-fine{margin:0;font-size:.8rem;opacity:.65}
