:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0c0d11;
  color: #f7f1df;
  --bg: #0c0d11;
  --panel: #15161b;
  --panel-2: #1d1f25;
  --line: #6f727b;
  --muted: #c8c2b3;
  --text: #f7f1df;
  --gold: #f2c75c;
  --gold-strong: #ffe18a;
  --ink: #16120a;
  --danger: #db7c71;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-wrap: anywhere;
  background:
    radial-gradient(circle at 50% -10%, #2b271d 0, #131419 38rem),
    var(--bg);
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-right: max(14px, env(safe-area-inset-right));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  padding-left: max(14px, env(safe-area-inset-left));
}

.experience,
.panel {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid #5e6067;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(18, 19, 24, 0.97);
  box-shadow: 0 24px 70px var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.lede {
  max-width: 58ch;
  margin-bottom: 0;
  color: #ddd6c6;
  font-size: 1rem;
  line-height: 1.6;
}

.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;
}

/* Opening cinematic */
.experience--story {
  min-height: min(760px, calc(100dvh - 28px));
  display: grid;
  grid-template-rows: minmax(300px, 54vh) auto;
}

.story-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-bottom: 1px solid #5e6067;
  background:
    radial-gradient(circle at 50% 25%, rgba(118, 106, 78, 0.2), transparent 32%),
    linear-gradient(#101117, #090a0d);
}

.sanctuary-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sanctuary-backdrop::before,
.sanctuary-backdrop::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 40%;
  height: 76%;
  background: linear-gradient(110deg, #19191c, #0b0c0f 70%);
  opacity: 0.92;
}

.sanctuary-backdrop::before {
  left: 0;
  clip-path: polygon(0 0, 62% 18%, 100% 100%, 0 100%);
}

.sanctuary-backdrop::after {
  right: 0;
  transform: scaleX(-1);
  clip-path: polygon(0 0, 62% 18%, 100% 100%, 0 100%);
}

.window-cross {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 92px;
  height: 148px;
  transform: translateX(-50%);
  border: 8px solid #363637;
  border-radius: 48px 48px 8px 8px;
  background: #15161a;
  box-shadow: 0 0 0 1px #050506;
}

.window-cross::before,
.window-cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16%;
  background: #49494a;
  transform: translateX(-50%);
}

.window-cross::before {
  width: 8px;
  height: 70%;
}

.window-cross::after {
  width: 58%;
  height: 8px;
  top: 40%;
}

.pew {
  position: absolute;
  bottom: 8%;
  width: 33%;
  height: 34px;
  background: #30261d;
  border-top: 5px solid #55412e;
  box-shadow: 0 18px 0 -10px #201912;
  opacity: 0.85;
}

.pew--left {
  left: 4%;
  transform: perspective(300px) rotateY(10deg) skewY(3deg);
}

.pew--right {
  right: 4%;
  transform: perspective(300px) rotateY(-10deg) skewY(-3deg);
}

.player-silhouette,
.demon-silhouette,
.angel-silhouette,
.gold-wave,
.divine-scroll {
  position: absolute;
  opacity: 0;
}

.player-silhouette {
  left: 48%;
  bottom: 11%;
  width: 38px;
  height: 82px;
  border-radius: 45% 45% 18% 18%;
  background: #060709;
  transform: translateX(-50%) rotate(4deg);
}

.player-silhouette::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #060709;
}

.demon-silhouette {
  right: 14%;
  bottom: 12%;
  width: 66px;
  height: 120px;
  background: #040406;
  border-radius: 58% 42% 20% 20%;
  transform: skewX(-7deg);
}

.demon-silhouette::before,
.demon-silhouette::after {
  content: "";
  position: absolute;
  top: -24px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 35px solid #040406;
}

.demon-silhouette::before {
  left: 5px;
  transform: rotate(-22deg);
}

.demon-silhouette::after {
  right: 5px;
  transform: rotate(22deg);
}

.gold-wave {
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 229, 149, 0.94), rgba(242, 199, 92, 0.32) 28%, transparent 62%);
  transform: scale(0.2);
}

.divine-scroll {
  left: 50%;
  top: 44%;
  width: 150px;
  min-height: 86px;
  padding: 22px;
  transform: translate(-50%, -50%) scale(0.9);
  border: 2px solid #ffe6a1;
  border-radius: 15px 4px 15px 4px;
  background: linear-gradient(135deg, #c8922f, #f4d273 45%, #9f6f1f);
  color: #211606;
  text-align: center;
  font-size: 2rem;
  box-shadow: 0 0 40px rgba(255, 213, 105, 0.7);
}

.angel-silhouette {
  left: 50%;
  bottom: 7%;
  width: 48px;
  height: 120px;
  transform: translateX(-50%);
  border-radius: 46% 46% 20% 20%;
  background: linear-gradient(#fff8d7, #d0aa58);
  box-shadow: 0 0 46px rgba(255, 224, 146, 0.72);
}

.angel-silhouette::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 11px;
  width: 26px;
  height: 26px;
  border: 3px solid #ffe69a;
  border-radius: 50%;
  box-shadow: 0 -12px 0 -9px #ffe69a;
}

.wing {
  position: absolute;
  top: 14px;
  width: 80px;
  height: 72px;
  border: 2px solid #f6e7ba;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(208,170,88,0.3));
}

.wing--left {
  right: 32px;
  border-radius: 90% 15% 70% 20%;
  transform: rotate(-18deg);
}

.wing--right {
  left: 32px;
  border-radius: 15% 90% 20% 70%;
  transform: rotate(18deg);
}

.story-visual--fall .player-silhouette,
.story-visual--sanctuary .player-silhouette,
.story-visual--prayer .player-silhouette,
.story-visual--attack .player-silhouette,
.story-visual--intervention .player-silhouette,
.story-visual--message .player-silhouette,
.story-visual--arrival .player-silhouette {
  opacity: 1;
}

.story-visual--fall .sanctuary-backdrop {
  animation: flee-shake 2.2s ease-in-out infinite;
}

.story-visual--sanctuary .window-cross {
  box-shadow: 0 0 30px rgba(242, 199, 92, 0.08);
}

.story-visual--prayer .player-silhouette {
  transform: translateX(-50%) translateY(22px) rotate(72deg) scaleY(0.75);
}

.story-visual--attack .demon-silhouette {
  opacity: 1;
  animation: demon-enter 1.8s ease-out both;
}

.story-visual--intervention .demon-silhouette,
.story-visual--message .demon-silhouette {
  opacity: 0.45;
}

.story-visual--intervention .gold-wave,
.story-visual--message .gold-wave,
.story-visual--arrival .gold-wave {
  opacity: 1;
  animation: divine-pulse 2.4s ease-out infinite;
}

.story-visual--message .divine-scroll {
  opacity: 1;
  animation: scroll-float 2.8s ease-in-out infinite;
}

.story-visual--arrival .angel-silhouette {
  opacity: 1;
  animation: angel-descend 2.2s ease-out both;
}

.story-visual.is-paused *,
.story-visual.is-paused *::before,
.story-visual.is-paused *::after {
  animation-play-state: paused !important;
}

.story-copy {
  padding: 24px;
}

.story-progress {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.story-dot {
  display: block;
  width: 22px;
  height: 5px;
  border: 1px solid #8d8b84;
  border-radius: 999px;
  background: transparent;
}

.story-dot--active {
  border-color: var(--gold-strong);
  background: var(--gold-strong);
}

.story-controls,
.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

/* Shared controls */
.button {
  width: 100%;
  min-width: 44px;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #a5a39e;
  border-radius: 12px;
  background: #23252b;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.button:hover:not(:disabled) {
  background: #2c2f37;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button:focus-visible,
.combatant:focus-visible,
.text-button:focus-visible,
summary:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.button:disabled,
.combatant:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button--primary {
  background: #e8e8e3;
  color: #111217;
  font-weight: 800;
}

.button--primary:hover:not(:disabled) {
  background: #ffffff;
}

.button--gold {
  border-color: #ffe59a;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.button--gold:hover:not(:disabled) {
  background: #ffe18a;
}

.button--quiet {
  background: transparent;
}

.button-title,
.button-detail {
  display: block;
}

.button-title {
  font-weight: 800;
}

.button-detail {
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.82;
}

.is-tutorial {
  box-shadow: 0 0 0 3px rgba(255, 225, 138, 0.28);
}

.text-button {
  min-width: 44px;
  min-height: 44px;
  margin-top: 14px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #e4dcc8;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Battle */
.experience--battle {
  padding: 20px;
}

.battle-header {
  display: grid;
  gap: 14px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid #555860;
}

.battle-header h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 8vw, 3.6rem);
}

.phase-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #777a83;
  border-radius: 12px;
  background: #202228;
}

.phase-badge span {
  color: var(--muted);
}

.phase-badge strong {
  color: var(--gold-strong);
  text-transform: capitalize;
}

.battle-status {
  min-height: 48px;
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: #22231f;
  color: #f4edda;
  line-height: 1.45;
}

.battle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.arena-card {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #686a72;
  border-radius: 18px;
  background:
    linear-gradient(rgba(12, 13, 17, 0.12), rgba(12, 13, 17, 0.88)),
    radial-gradient(circle at 50% 76%, rgba(241, 202, 102, 0.24), transparent 28%),
    linear-gradient(145deg, #28251f, #101116 56%);
}

.arena-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(242, 199, 92, 0.1) 50%, transparent 50.5%),
    linear-gradient(180deg, transparent 42%, rgba(255,255,255,0.04) 42.5%, transparent 43%);
}

.arena-light {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 60%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(241, 203, 109, 0.09);
  filter: blur(10px);
}

.enemy-row {
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.combatant {
  position: relative;
  min-width: 0;
  min-height: 176px;
  padding: 14px;
  border: 1px solid #7f8189;
  border-radius: 16px;
  background: rgba(27, 29, 35, 0.92);
  color: var(--text);
}

button.combatant {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.combatant--demon.is-selected {
  border: 2px solid var(--gold-strong);
  box-shadow: 0 0 0 2px rgba(255, 225, 138, 0.16);
}

.combatant.is-defeated {
  opacity: 0.58;
}

.combatant--angel {
  z-index: 1;
  width: min(300px, 100%);
  min-height: 190px;
  justify-self: center;
  border-color: #c7a95f;
  background: linear-gradient(145deg, rgba(58, 49, 30, 0.94), rgba(26, 27, 31, 0.96));
}

.combatant-portrait {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.5rem;
}

.angel-mark {
  color: #ffe6a1;
  background: radial-gradient(circle, rgba(255, 232, 164, 0.25), transparent 70%);
}

.demon-mark {
  color: #e49a90;
  background: #2c1919;
}

.combatant-name,
.combatant-role,
.defeated-label {
  display: block;
}

.combatant-name {
  font-weight: 800;
}

.combatant-role {
  margin-top: 2px;
  color: #d7cfbc;
  font-size: 0.8rem;
}

.combatant-order {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #a5a39e;
  border-radius: 50%;
  background: #111217;
  color: #fff;
  font-weight: 800;
}

.defeated-label {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hp-group {
  margin-top: 12px;
}

.hp-label-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.72rem;
}

.hp-progress {
  display: block;
  width: 100%;
  height: 11px;
  overflow: hidden;
  border: 1px solid #a4a49d;
  border-radius: 999px;
  background: #25272d;
  accent-color: #f0d383;
}

.hp-progress::-webkit-progress-bar {
  background: #25272d;
}

.hp-progress::-webkit-progress-value {
  background: #f0d383;
}

.hp-progress::-moz-progress-bar {
  background: #f0d383;
}

.versus-line {
  z-index: 1;
  width: 70%;
  height: 1px;
  justify-self: center;
  background: linear-gradient(90deg, transparent, #797b82, transparent);
}

.battle-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.intent-panel,
.command-panel,
.result-panel {
  padding: 18px;
  border: 1px solid #696b73;
  border-radius: 16px;
  background: #1a1c21;
}

.section-heading h2 {
  margin-bottom: 0;
}

.intent-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.intent-list li {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid #50525a;
}

.intent-list span,
.cooldown-note {
  color: #d8d1c0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.cooldown-note {
  margin: 12px 0 0;
}

.result-panel--victory {
  border-color: #c4a65d;
  background: linear-gradient(145deg, #312a1c, #1a1c21);
}

.result-panel .button {
  margin-top: 10px;
}

.battle-log {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #565860;
  border-radius: 12px;
  color: #ddd6c6;
}

.battle-log summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}

.battle-log ol {
  margin-bottom: 4px;
  padding-left: 22px;
  line-height: 1.5;
}

/* Sanctuary respite */
.experience--respite {
  display: grid;
  min-height: min(700px, calc(100dvh - 28px));
}

.respite-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-bottom: 1px solid #60626a;
  background: linear-gradient(#201e19, #101116);
}

.window-cross--lit {
  box-shadow: 0 0 90px rgba(242, 199, 92, 0.34);
  background: #3b3321;
}

.respite-glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 70%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 207, 114, 0.3), transparent 62%);
}

.respite-copy {
  padding: 24px;
}

.fellowship-card,
.next-call {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #766f5d;
  border-radius: 16px;
  background: #1d1d1c;
}

.fellowship-card h2,
.fellowship-card p {
  margin-bottom: 0;
}

.card-kicker {
  display: block;
  margin-bottom: 4px;
  color: #d9c98f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ffe18a;
  border-radius: 10px 3px 10px 3px;
  background: #c89533;
  color: #211606;
  font-size: 1.4rem;
}

.next-call strong,
.next-call span {
  display: block;
}

.next-call span {
  margin-top: 3px;
  color: #d5cebd;
  line-height: 1.4;
}

.respite-copy > .button {
  margin-top: 22px;
}

.test-results {
  margin-top: 24px;
}

.test-result {
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px solid #74767d;
  border-radius: 10px;
  background: #22242a;
}

.test-result--fail {
  border-width: 2px;
  border-color: var(--danger);
}

@keyframes flee-shake {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(-8px); }
  55% { transform: translateX(6px); }
}

@keyframes demon-enter {
  from { transform: translateX(90px) skewX(-7deg); opacity: 0; }
  to { transform: translateX(0) skewX(-7deg); opacity: 1; }
}

@keyframes divine-pulse {
  0% { transform: scale(0.25); opacity: 0.3; }
  65% { transform: scale(1.15); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0.15; }
}

@keyframes scroll-float {
  0%, 100% { transform: translate(-50%, -50%) scale(0.96); }
  50% { transform: translate(-50%, calc(-50% - 10px)) scale(1); }
}

@keyframes angel-descend {
  from { transform: translate(-50%, -190px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (min-width: 600px) {
  .app-shell {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  .story-copy,
  .respite-copy {
    padding: 34px;
  }

  .story-controls,
  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battle-header {
    grid-template-columns: 1fr auto;
  }

  .phase-badge {
    min-width: 260px;
  }

  .experience--battle {
    padding: 28px;
  }
}

@media (min-width: 820px) {
  .experience--story,
  .experience--respite {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    grid-template-rows: 1fr;
  }

  .story-visual,
  .respite-visual {
    min-height: 680px;
    border-right: 1px solid #5e6067;
    border-bottom: 0;
  }

  .story-copy,
  .respite-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .battle-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  }

  .arena-card {
    min-height: 620px;
  }
}

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

@media (forced-colors: active) {
  .story-dot--active,
  .gold-wave,
  .arena-light,
  .respite-glow {
    forced-color-adjust: none;
  }

  .button,
  .combatant,
  .intent-panel,
  .command-panel,
  .result-panel,
  .battle-status {
    border: 1px solid CanvasText;
  }
}

/* Fellowship teaching, Divine Message mission, and first expedition increment. */
.experience--fellowship,
.experience--mission,
.experience--ally {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.fellowship-layout,
.fellowship-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.fellowship-card--large {
  align-content: center;
  min-height: 220px;
}

.tutorial-card,
.mission-copy {
  padding: clamp(18px, 5vw, 30px);
  border: 1px solid #6f6652;
  border-radius: 18px;
  background: rgba(20, 20, 24, 0.94);
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.tab-button {
  min-width: 44px;
  min-height: 48px;
  border: 1px solid #83765d;
  border-radius: 12px;
  background: #222127;
  color: #f4f0e7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.is-active {
  border-color: #e4c46b;
  background: #3a3020;
}

.tab-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.ability-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.ability-list article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #5d584d;
  border-radius: 12px;
  background: #1c1b20;
}

.member-overview {
  min-height: 150px;
  line-height: 1.6;
}

.experience--mission {
  display: grid;
  gap: 18px;
  align-items: center;
}

.mission-scroll {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px solid #8a7441;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(243, 205, 100, 0.27), rgba(22, 20, 17, 0.94) 58%);
  color: #f4d778;
  font-size: clamp(4rem, 18vw, 9rem);
  box-shadow: inset 0 0 70px rgba(225, 179, 64, 0.12);
}

.mission-facts {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.mission-facts div {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.5fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #4b473f;
}

.mission-facts dt {
  color: #c9c2b2;
  font-weight: 700;
}

.mission-facts dd {
  margin: 0;
}

.party-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.combatant--ally {
  text-align: left;
}

.combatant--ally.is-spent {
  opacity: 0.66;
}

.healer-mark {
  color: #f0d882;
}

.arena-card--field {
  background:
    linear-gradient(to bottom, rgba(61, 48, 39, 0.28), rgba(15, 17, 19, 0.92)),
    repeating-linear-gradient(105deg, transparent 0 52px, rgba(120, 98, 68, 0.06) 53px 55px);
}

.experience--ally .respite-copy {
  max-width: 820px;
}

@media (min-width: 700px) {
  .fellowship-layout,
  .fellowship-pair,
  .experience--mission {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .party-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mission-scroll,
  .combatant--ally,
  .tab-button {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* Daily login reward prototype */
.experience--login {
  display: grid;
  place-items: center;
  min-height: 100%;
}

.login-panel {
  width: min(100%, 880px);
  padding: clamp(20px, 5vw, 48px);
  border: 1px solid #6f613e;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28, 27, 24, 0.98), rgba(15, 16, 20, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.login-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.login-reward {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #514b3d;
  border-radius: 16px;
  background: #17181d;
}

.login-reward.is-current {
  border-width: 3px;
  border-color: #f2c75c;
}

.login-reward.is-bonus {
  grid-column: 1 / -1;
  background: radial-gradient(circle at top, rgba(242, 199, 92, 0.17), #17181d 68%);
}

.login-reward strong {
  font-size: 1.05rem;
}

.login-bonus-note {
  color: #f4d778;
  font-weight: 700;
}

.login-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 12px 0;
  border-top: 1px solid #4b473f;
  border-bottom: 1px solid #4b473f;
}

@media (min-width: 700px) {
  .login-rewards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .login-reward.is-bonus {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-reward {
    transition-duration: 0.01ms !important;
  }
}
