:root {
  color-scheme: dark;
  --world-bg: #07111f;
  --world-bg-2: #0b1930;
  --panel: #101d2e;
  --panel-raised: #16263b;
  --panel-soft: rgba(14, 29, 48, .82);
  --parchment: #d9c89b;
  --gold: #c99b45;
  --gold-bright: #f0cf7a;
  --hp: #6fcb75;
  --exp: #58a8ef;
  --boss: #d45b56;
  --recovery: #8abf68;
  --ink: #f5f0df;
  --ink-muted: #9eabc0;
  --line: rgba(201, 155, 69, .42);
  --line-soft: rgba(182, 202, 224, .13);
  --shadow: 0 24px 60px rgba(0, 0, 0, .36);
  --display: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --body: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--world-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 14%, rgba(50, 90, 138, .20), transparent 34%),
    radial-gradient(circle at 20% 85%, rgba(112, 72, 30, .11), transparent 28%),
    linear-gradient(135deg, #050b14, var(--world-bg) 45%, #081628);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.75;
}

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

button {
  border: 0;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

svg {
  width: 1.4em;
  height: 1.4em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .75;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.ambient::before,
.ambient::after {
  position: absolute;
  border: 1px solid rgba(201, 155, 69, .10);
  border-radius: 50%;
  content: "";
}

.ambient::before {
  top: -180px;
  right: 12%;
  width: 620px;
  height: 620px;
  box-shadow:
    inset 0 0 0 80px rgba(201, 155, 69, .015),
    inset 0 0 0 160px rgba(201, 155, 69, .015);
}

.ambient::after {
  right: -90px;
  bottom: -240px;
  width: 520px;
  height: 520px;
}

.ambient-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(240, 207, 122, .6);
  box-shadow: 0 0 12px rgba(240, 207, 122, .6);
}

.star-a { top: 11%; left: 42%; }
.star-b { top: 29%; right: 9%; }
.star-c { bottom: 18%; left: 31%; }

.game-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 16px 22px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 27, 47, .97), rgba(5, 13, 23, .97)),
    var(--world-bg);
  box-shadow: 12px 0 40px rgba(0, 0, 0, .18);
}

.side-rail::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 155, 69, .16);
  content: "";
  pointer-events: none;
}

.brand {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0 10px;
  align-items: center;
  min-height: 68px;
  padding: 8px 6px 15px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(201, 155, 69, .17), transparent 70%);
  box-shadow: 0 0 24px rgba(201, 155, 69, .14);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-word {
  align-self: end;
  color: var(--parchment);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: .02em;
  line-height: 1;
}

.brand-sub {
  align-self: start;
  margin-top: 4px;
  color: #93a4bb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  white-space: nowrap;
}

.main-nav {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: #aeb9c9;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: .18s ease;
  white-space: nowrap;
}

.nav-item::before,
.nav-item::after {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
  opacity: 0;
  transition: inherit;
}

.nav-item::before {
  top: 5px;
  left: 5px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.nav-item::after {
  right: 5px;
  bottom: 5px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .025);
}

.nav-item.is-active {
  border-color: var(--line);
  color: var(--gold-bright);
  background:
    linear-gradient(90deg, rgba(62, 105, 158, .23), rgba(16, 34, 55, .7)),
    var(--panel);
  box-shadow: inset 3px 0 0 #4a85c6, 0 12px 24px rgba(0, 0, 0, .17);
}

.nav-item.is-active::before,
.nav-item.is-active::after {
  opacity: 1;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 3px;
  color: #07111f;
  font-size: 11px;
  background: var(--gold-bright);
}

.rail-footer {
  position: relative;
  margin-top: auto;
  padding: 18px 8px 0 50px;
  color: var(--ink-muted);
}

.rail-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.rail-footer p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}

.rail-footer strong {
  display: block;
  margin-top: 2px;
  color: var(--parchment);
  font-size: 11px;
}

.chapter-sigil {
  position: absolute;
  bottom: 0;
  left: 4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}

.chapter-sigil span {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  transform: rotate(-45deg);
}

.world {
  min-width: 0;
}

.player-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(270px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  min-height: 92px;
  padding: 13px clamp(18px, 2.4vw, 38px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 17, 31, .96), rgba(7, 17, 31, .88)),
    var(--world-bg);
  backdrop-filter: blur(16px);
}

.player-bar::after {
  position: absolute;
  right: 2%;
  bottom: -2px;
  left: 2%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(88, 168, 239, .34), transparent);
  content: "";
}

.player-identity {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.player-crest {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background:
    radial-gradient(circle, rgba(45, 94, 144, .38), rgba(6, 15, 28, .9) 70%);
  box-shadow:
    inset 0 0 0 4px rgba(201, 155, 69, .09),
    0 0 28px rgba(88, 168, 239, .13);
}

.player-crest svg {
  width: 31px;
  height: 31px;
}

.player-copy {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.player-copy .eyebrow {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.player-copy strong {
  overflow: hidden;
  margin: 2px 0 4px;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-copy strong small {
  margin-left: 7px;
  color: var(--gold-bright);
  font-size: 13px;
}

.player-copy > span:last-child {
  overflow: hidden;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vitals {
  display: grid;
  gap: 8px;
}

.vital-row {
  display: grid;
  grid-template-columns: 38px minmax(100px, 1fr) 74px;
  gap: 10px;
  align-items: center;
}

.vital-label {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hp-label { color: #9edf82; }
.exp-label { color: #77bdf7; }

.meter {
  position: relative;
  height: 9px;
  border: 1px solid rgba(201, 155, 69, .35);
  background: #030913;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45);
}

.meter::after {
  position: absolute;
  inset: 2px;
  border-top: 1px solid rgba(255, 255, 255, .19);
  content: "";
  pointer-events: none;
}

.meter i {
  display: block;
  height: 100%;
}

.hp-meter i {
  background: linear-gradient(90deg, #3b8749, #83d26c);
  box-shadow: 0 0 10px rgba(111, 203, 117, .3);
}

.exp-meter i {
  background: linear-gradient(90deg, #276da9, #66b8f6);
  box-shadow: 0 0 10px rgba(88, 168, 239, .35);
}

.vital-row strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 500;
}

.vital-row small {
  margin-left: 2px;
  color: var(--ink-muted);
  font-size: 11px;
}

.resource-strip {
  display: flex;
  gap: 8px;
}

.resource-strip > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .025);
}

.resource-strip strong {
  color: var(--parchment);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 500;
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #07111f;
  font-size: 11px;
}

.resource-icon.coin {
  border-radius: 50%;
  background: var(--gold-bright);
}

.resource-icon.crystal {
  color: #8ed8ff;
  background: transparent;
  text-shadow: 0 0 8px #58a8ef;
}

.utility-nav {
  display: flex;
  gap: 5px;
}

.utility-nav button {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #93a2b7;
  background: transparent;
  cursor: pointer;
}

.utility-nav button:hover {
  color: var(--gold-bright);
}

.utility-nav svg {
  width: 19px;
  height: 19px;
}

.utility-nav .has-dot::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--world-bg);
  border-radius: 50%;
  background: var(--boss);
  content: "";
}

.game-view {
  min-height: calc(100vh - 92px);
  padding: 24px clamp(18px, 2.4vw, 38px) 38px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.screen-title {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: .08em;
  line-height: 1.2;
}

.screen-lead {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.view-heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(20, 37, 58, .96), rgba(9, 21, 36, .97));
  box-shadow: var(--shadow);
}

.panel::before,
.panel::after {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  content: "";
  pointer-events: none;
}

.panel::before {
  top: 6px;
  left: 6px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.panel::after {
  right: 6px;
  bottom: 6px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.panel-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .06em;
}

.panel-title svg {
  width: 19px;
  height: 19px;
  color: var(--gold);
}

.panel-copy {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.adventure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, .9fr);
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
}

.campaign-panel {
  overflow: hidden;
  min-height: 384px;
}

.campaign-head {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 24px;
}

.campaign-head .chapter-label {
  display: block;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 25px);
  font-weight: 800;
  letter-spacing: .1em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.campaign-head small {
  display: block;
  margin-top: 2px;
  color: #9fb0c6;
  font-size: 12px;
  letter-spacing: .12em;
}

.map-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 55%, rgba(64, 109, 159, .27), transparent 18%),
    radial-gradient(circle at 83% 25%, rgba(139, 47, 52, .18), transparent 22%),
    linear-gradient(180deg, rgba(13, 31, 54, .72), rgba(6, 19, 33, .96)),
    #0b1b2d;
}

.map-scene::before {
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image:
    radial-gradient(circle at 15% 23%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 14%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 63% 34%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 17%, #fff 0 1px, transparent 1.5px);
  background-size: 180px 160px, 220px 200px, 260px 210px, 300px 240px;
  content: "";
}

.map-land {
  position: absolute;
  right: -4%;
  bottom: -40%;
  left: -5%;
  height: 88%;
  border: 1px solid rgba(111, 146, 119, .25);
  border-radius: 48% 46% 22% 28%;
  transform: rotate(-2deg);
  background:
    radial-gradient(circle at 28% 24%, rgba(93, 111, 69, .68), transparent 14%),
    radial-gradient(circle at 52% 18%, rgba(46, 79, 74, .72), transparent 18%),
    radial-gradient(circle at 68% 40%, rgba(58, 76, 72, .72), transparent 16%),
    linear-gradient(150deg, #31493d, #1d3d3c 35%, #102b34 72%);
  box-shadow: inset 0 18px 40px rgba(255, 255, 255, .04), 0 -22px 60px rgba(0, 0, 0, .36);
}

.map-mountain {
  position: absolute;
  z-index: 1;
  bottom: 31%;
  width: 130px;
  height: 104px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #36475a 0 48%, #1b2a39 49% 100%);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4));
}

.mountain-a { left: 44%; transform: scale(.82); opacity: .86; }
.mountain-b { left: 55%; bottom: 29%; transform: scale(1.18); }

.route-line {
  position: absolute;
  z-index: 3;
  right: 20%;
  bottom: 24%;
  left: 11%;
  height: 6px;
  transform: rotate(-7deg);
  background: repeating-linear-gradient(90deg, var(--gold-bright) 0 11px, transparent 11px 17px);
  filter: drop-shadow(0 0 5px rgba(240, 207, 122, .35));
}

.route-line.locked {
  right: 6%;
  left: 76%;
  bottom: 31%;
  height: 4px;
  transform: rotate(-18deg);
  opacity: .24;
  filter: none;
}

.map-node {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background: #0c1b2e;
  box-shadow: 0 0 0 5px rgba(5, 14, 25, .72), 0 0 18px rgba(201, 155, 69, .16);
}

.map-node svg {
  width: 19px;
  height: 19px;
}

.map-node small {
  position: absolute;
  top: 47px;
  left: 50%;
  width: max-content;
  max-width: 132px;
  color: #b9c5d4;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 6px #000;
  transform: translateX(-50%);
}

.map-node.is-cleared::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid #0c1b2e;
  border-radius: 50%;
  color: #092111;
  font-size: 10px;
  font-weight: 900;
  background: var(--hp);
  content: "✓";
}

.map-node.is-current {
  width: 54px;
  height: 54px;
  border-color: #86c9ff;
  color: #bfe5ff;
  box-shadow:
    0 0 0 5px rgba(5, 14, 25, .72),
    0 0 0 7px rgba(88, 168, 239, .28),
    0 0 28px rgba(88, 168, 239, .75);
}

.map-node.is-current small {
  top: 59px;
  color: #8ed4ff;
}

.node-a { left: 12%; bottom: 23%; }
.node-b { left: 32%; bottom: 30%; }
.node-c { left: 52%; bottom: 37%; }
.node-d { left: 69%; bottom: 31%; }

.boss-fortress {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 31%;
  width: 88px;
  height: 112px;
  opacity: .86;
  filter: drop-shadow(0 0 20px rgba(192, 55, 63, .22));
}

.boss-fortress::before {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 82px;
  clip-path: polygon(0 100%, 0 23%, 18% 23%, 18% 0, 33% 16%, 50% 0, 67% 16%, 82% 0, 82% 23%, 100% 23%, 100% 100%);
  background: linear-gradient(#0b0710, #020306);
  content: "";
}

.boss-fortress::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38px;
  clip-path: polygon(0 100%, 8% 30%, 22% 55%, 36% 0, 51% 48%, 64% 8%, 81% 58%, 92% 24%, 100% 100%);
  background: #020306;
  content: "";
}

.boss-marker {
  position: absolute;
  z-index: 6;
  right: 2.5%;
  bottom: 13%;
  width: 168px;
  color: #d8a29d;
  text-align: center;
}

.boss-marker span {
  display: block;
  color: #ef7770;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: .18em;
}

.boss-marker strong {
  display: block;
  margin: 2px 0 7px;
  color: #f0b2aa;
  font-family: var(--display);
  font-size: 12px;
}

.boss-meter {
  height: 7px;
  border: 1px solid rgba(212, 91, 86, .65);
  background: #13090b;
}

.boss-meter i {
  display: block;
  width: 32%;
  height: 100%;
  background: linear-gradient(90deg, #8c302f, #ef6f66);
  box-shadow: 0 0 10px rgba(212, 91, 86, .42);
}

.boss-marker em {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: normal;
}

.job-panel {
  display: flex;
  flex-direction: column;
  min-height: 384px;
  padding: 22px;
}

.job-arrow {
  display: grid;
  gap: 5px;
  justify-items: center;
  margin: 24px 0 18px;
}

.job-arrow span {
  color: #b5c0ce;
  font-size: 12px;
  font-weight: 700;
}

.job-arrow i {
  width: 1px;
  height: 19px;
  background: linear-gradient(var(--gold), transparent);
}

.job-arrow strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 29px);
  letter-spacing: .09em;
  text-align: center;
}

.requirement-list {
  display: grid;
  gap: 8px;
}

.requirement {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px 9px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .018);
}

.requirement-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #3f556f;
  border-radius: 50%;
  color: #7890aa;
}

.requirement.is-done .requirement-icon {
  border-color: #5d9e59;
  color: #8fd57b;
  background: rgba(111, 203, 117, .11);
}

.requirement-icon svg {
  width: 14px;
  height: 14px;
}

.requirement-copy {
  min-width: 0;
}

.requirement-copy strong {
  display: block;
  overflow: hidden;
  color: #dce3eb;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.requirement-copy small {
  display: block;
  overflow: hidden;
  color: #93a4bb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.requirement > b {
  color: var(--ink-muted);
  font-family: Georgia, serif;
  font-size: 12px;
}

.requirement.is-done > b {
  color: var(--hp);
}

.panel-link {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: auto;
  border: 1px solid var(--line);
  color: var(--parchment);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  background: rgba(201, 155, 69, .04);
  cursor: pointer;
}

.panel-link:hover {
  border-color: var(--gold-bright);
  background: rgba(201, 155, 69, .10);
}

.panel-link svg {
  width: 15px;
  height: 15px;
}

.quest-panel {
  padding: 18px;
}

.quest-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.quest-panel-head small {
  color: var(--ink-muted);
  font-size: 12px;
}

.quest-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 218px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(11, 20, 33, .14), rgba(7, 14, 25, .94)),
    radial-gradient(circle at 100% 0, var(--quest-glow), transparent 48%),
    #111d2d;
}

.quest-card::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .035);
  content: "";
  pointer-events: none;
}

.quest-card.main {
  --quest: #c66255;
  --quest-glow: rgba(142, 55, 49, .40);
  border-color: rgba(199, 93, 78, .48);
}

.quest-card.side {
  --quest: #4d8fc2;
  --quest-glow: rgba(45, 90, 132, .38);
  border-color: rgba(78, 143, 194, .42);
}

.quest-card.recovery {
  --quest: #7ca65c;
  --quest-glow: rgba(78, 110, 54, .42);
  border-color: rgba(124, 166, 92, .42);
}

.quest-type {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  align-self: flex-start;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--quest) 72%, transparent);
  color: color-mix(in srgb, var(--quest) 78%, white);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  background: color-mix(in srgb, var(--quest) 14%, transparent);
}

.quest-type svg {
  width: 13px;
  height: 13px;
}

.quest-card h3 {
  margin: 15px 0 7px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: .04em;
  line-height: 1.45;
}

.quest-card p {
  margin: 0;
  color: #a3b2c6;
  font-size: 13px;
  line-height: 1.7;
}

.quest-reward {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
}

.quest-reward span {
  display: grid;
  color: #75859b;
  font-size: 11px;
  letter-spacing: .1em;
}

.quest-reward strong {
  margin-top: 2px;
  color: #8dc8f7;
  font-family: Georgia, serif;
  font-size: 12px;
}

.quest-reward small {
  color: #aab6c6;
  font-size: 12px;
}

.quest-start {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 11px;
  border: 1px solid color-mix(in srgb, var(--quest) 72%, black);
  color: #f9f2df;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  background: color-mix(in srgb, var(--quest) 53%, #101a28);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: .16s ease;
}

.quest-start:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
}

.quest-start svg {
  width: 14px;
  height: 14px;
}

.support-panel {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 292px;
}

.party-card,
.camp-card {
  padding: 17px;
}

.companion-row {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.companion {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.companion-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 5px;
  border: 1px solid #415873;
  border-radius: 5px;
  color: #a9c2dc;
  font-family: Georgia, serif;
  font-weight: 700;
  background: linear-gradient(145deg, #243a52, #101d2d);
}

.companion strong,
.companion small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.companion strong {
  color: #cdd7e2;
  font-size: 13px;
}

.companion small {
  color: #93a4bb;
  font-size: 11px;
}

.camp-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 80%, rgba(202, 94, 33, .24), transparent 32%),
    linear-gradient(145deg, rgba(22, 38, 53, .98), rgba(12, 24, 34, .98));
}

.camp-flame {
  position: absolute;
  right: 22px;
  bottom: 12px;
  color: #e58f4a;
  opacity: .52;
}

.camp-flame svg {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 14px rgba(229, 143, 74, .35));
}

.camp-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.camp-hp {
  color: #a5df96;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.camp-summary p {
  max-width: 150px;
  margin: 0;
  color: #8291a4;
  font-size: 12px;
}

.mobile-nav {
  display: none;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid var(--gold);
  color: var(--parchment);
  background: rgba(8, 19, 33, .96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .2s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

/* Quest board */
.quest-board {
  display: grid;
  gap: 14px;
  max-width: 1260px;
  margin: 0 auto;
}

.quest-board-group {
  padding: 19px;
}

.board-group-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.board-rank {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: .08em;
  background: rgba(201, 155, 69, .07);
}

.board-group-head h2 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .05em;
}

.board-group-head p {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.board-count {
  color: var(--ink-muted);
  font-family: Georgia, serif;
  font-size: 11px;
}

.board-quest {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .018);
}

.board-quest-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.board-quest-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #4f6681;
  color: #9ab6d2;
  background: linear-gradient(145deg, #1d324b, #0b1829);
}

.board-quest-icon svg {
  width: 23px;
  height: 23px;
}

.board-quest-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .03em;
}

.board-quest-copy p {
  margin: 4px 0 0;
  color: #8090a5;
  font-size: 13px;
}

.quest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.meta-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  color: #9caabd;
  font-size: 12px;
  background: rgba(255, 255, 255, .018);
}

.meta-chip svg {
  width: 12px;
  height: 12px;
}

.board-actions {
  display: flex;
  gap: 8px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}

.primary-action {
  border: 1px solid #7f652f;
  color: #fff4d7;
  background: linear-gradient(#8f5a36, #653625);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 8px 20px rgba(0, 0, 0, .18);
}

.primary-action:hover {
  filter: brightness(1.12);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--parchment);
  background: rgba(201, 155, 69, .04);
}

.primary-action svg,
.secondary-action svg {
  width: 15px;
  height: 15px;
}

.backlog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 18px;
  color: var(--ink-muted);
  cursor: pointer;
}

.backlog-row strong {
  color: #bdc6d2;
  font-size: 11px;
}

/* Focus mode */
.focus-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .72fr);
  gap: 18px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.focus-hero {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: clamp(24px, 3vw, 42px);
  background:
    radial-gradient(circle at 70% 14%, rgba(84, 125, 169, .17), transparent 26%),
    linear-gradient(145deg, rgba(17, 34, 55, .98), rgba(7, 17, 29, .99));
}

.focus-breadcrumb {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.focus-breadcrumb svg {
  width: 13px;
  height: 13px;
}

.focus-hero h1 {
  max-width: 760px;
  margin: 52px 0 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(27px, 4vw, 46px);
  letter-spacing: .06em;
  line-height: 1.35;
}

.focus-reason {
  max-width: 690px;
  margin: 0;
  color: #9aabbe;
  font-size: 13px;
}

.focus-objective {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 13px;
  align-items: center;
  max-width: 720px;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(201, 155, 69, .035);
}

.focus-objective svg {
  width: 26px;
  height: 26px;
  color: var(--gold-bright);
}

.focus-objective span {
  display: block;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: .13em;
}

.focus-objective strong {
  color: var(--parchment);
  font-size: 13px;
}

.first-step {
  margin-top: 24px;
}

.first-step span {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.first-step p {
  max-width: 680px;
  margin: 6px 0 0;
  color: #d5dde7;
  font-size: 14px;
}

.focus-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 36px;
}

.focus-controls .primary-action {
  min-width: 190px;
  min-height: 48px;
}

.focus-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.timer-card,
.jarvis-card,
.material-card {
  padding: 19px;
}

.timer-display {
  margin: 15px 0 7px;
  color: var(--parchment);
  font-family: Georgia, serif;
  font-size: 42px;
  letter-spacing: .08em;
  line-height: 1;
}

.timer-card > small {
  color: var(--ink-muted);
  font-size: 12px;
}

.jarvis-card {
  background:
    radial-gradient(circle at 100% 0, rgba(57, 113, 172, .18), transparent 40%),
    linear-gradient(145deg, rgba(18, 40, 65, .98), rgba(8, 20, 34, .98));
}

.jarvis-orb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid #4d85bb;
  border-radius: 50%;
  color: #96d4ff;
  background: radial-gradient(circle, #285f91, #081a2d 70%);
  box-shadow: 0 0 24px rgba(88, 168, 239, .23);
}

.jarvis-orb svg {
  width: 23px;
  height: 23px;
}

.jarvis-card p {
  margin: 7px 0 14px;
  color: #8fa0b3;
  font-size: 12px;
}

.material-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.material-list span {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: #a8b4c4;
  font-size: 12px;
}

.material-list svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* Quest clear */
.clear-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
}

.clear-card {
  position: relative;
  width: min(760px, 100%);
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(88, 168, 239, .23), transparent 32%),
    linear-gradient(145deg, rgba(20, 40, 64, .99), rgba(6, 16, 28, .99));
}

.clear-card::after {
  position: absolute;
  top: -110px;
  left: 50%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(240, 207, 122, .24);
  transform: translateX(-50%) rotate(45deg);
  content: "";
}

.clear-sigil {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(201, 155, 69, .18), rgba(7, 17, 31, .92) 70%);
  box-shadow: 0 0 42px rgba(201, 155, 69, .22);
}

.clear-sigil svg {
  width: 45px;
  height: 45px;
}

.clear-card .clear-label {
  position: relative;
  z-index: 2;
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: clamp(28px, 5vw, 50px);
  letter-spacing: .18em;
  line-height: 1;
}

.clear-card h1 {
  position: relative;
  z-index: 2;
  margin: 18px 0 5px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(19px, 3vw, 29px);
  letter-spacing: .04em;
}

.clear-card > p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--ink-muted);
}

.reward-line {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0 22px;
}

.reward-item {
  padding: 14px 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .02);
}

.reward-item span {
  display: block;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: .1em;
}

.reward-item strong {
  display: block;
  margin-top: 4px;
  color: #8acafa;
  font-family: Georgia, serif;
  font-size: 17px;
}

.future-impact {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(111, 203, 117, .25);
  color: #b7d9b0;
  font-size: 11px;
  background: rgba(111, 203, 117, .055);
}

.clear-card .primary-action {
  position: relative;
  z-index: 2;
  min-width: 210px;
}

/* World map */
.world-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .62fr);
  gap: 16px;
  max-width: 1450px;
  margin: 0 auto;
}

.world-map-panel {
  overflow: hidden;
  min-height: 650px;
}

.world-map-panel .map-scene {
  inset: 68px 0 0;
}

.world-map-head {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 30, .94);
}

.map-progress {
  color: var(--ink-muted);
  font-size: 12px;
}

.map-progress strong {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 15px;
}

.world-map-panel .route-line {
  right: 16%;
  bottom: 28%;
  left: 8%;
}

.world-map-panel .node-a { left: 10%; bottom: 27%; }
.world-map-panel .node-b { left: 28%; bottom: 36%; }
.world-map-panel .node-c { left: 48%; bottom: 44%; }
.world-map-panel .node-d { left: 68%; bottom: 35%; }
.world-map-panel .boss-fortress { right: 4%; bottom: 40%; transform: scale(1.35); }
.world-map-panel .boss-marker { right: 1%; bottom: 16%; }

.boss-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-color: rgba(212, 91, 86, .46);
  background:
    radial-gradient(circle at 90% 15%, rgba(127, 32, 38, .22), transparent 32%),
    linear-gradient(145deg, rgba(35, 24, 35, .98), rgba(12, 15, 25, .99));
}

.boss-panel .section-kicker {
  color: #ef7a72;
}

.boss-title {
  margin: 7px 0 6px;
  color: #f0b5af;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .05em;
}

.boss-lore {
  margin: 0 0 20px;
  color: #9c8f9e;
  font-size: 12px;
}

.boss-phase-list {
  display: grid;
  gap: 10px;
}

.boss-phase {
  padding: 13px;
  border: 1px solid rgba(212, 91, 86, .18);
  background: rgba(255, 255, 255, .018);
}

.boss-phase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.boss-phase-head span {
  color: #d8c6c9;
  font-size: 12px;
  font-weight: 700;
}

.boss-phase-head strong {
  color: #ed9b94;
  font-family: Georgia, serif;
  font-size: 12px;
}

.phase-meter {
  height: 6px;
  background: #160d11;
}

.phase-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #843a38, #db7067);
}

.next-hit {
  margin-top: auto;
  padding-top: 24px;
}

.next-hit span {
  color: #b39aa0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.next-hit strong {
  display: block;
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: 12px;
}

/* Job change */
.job-screen {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.5fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.job-current {
  display: flex;
  flex-direction: column;
  min-height: 590px;
  padding: 26px;
  text-align: center;
}

.job-current-crest {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 34px auto 21px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background:
    radial-gradient(circle, rgba(46, 95, 145, .38), rgba(7, 17, 31, .95) 68%);
  box-shadow: 0 0 44px rgba(88, 168, 239, .19);
}

.job-current-crest svg {
  width: 59px;
  height: 59px;
}

.job-current h1 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: .06em;
}

.job-current .job-level {
  margin: 7px 0 18px;
  color: var(--gold);
  font-family: Georgia, serif;
  letter-spacing: .08em;
}

.job-current > p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.skill-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
  text-align: left;
}

.skill-row {
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  gap: 8px;
  align-items: center;
  color: #9caabd;
  font-size: 12px;
}

.skill-row .meter {
  height: 6px;
  border-color: rgba(88, 168, 239, .23);
}

.skill-row .meter i {
  background: linear-gradient(90deg, #2f6e9e, #73b7e5);
}

.job-road {
  padding: 26px;
}

.job-road-head {
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line-soft);
}

.job-road-head h2 {
  margin: 3px 0 4px;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 37px);
  letter-spacing: .07em;
}

.job-road-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.evidence-title {
  margin: 22px 0 10px;
  color: var(--parchment);
  font-size: 12px;
  font-weight: 700;
}

.evidence-list {
  display: grid;
  gap: 10px;
}

.evidence {
  display: grid;
  grid-template-columns: 44px 1fr 56px;
  gap: 13px;
  align-items: center;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .018);
}

.evidence-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #41536a;
  color: #93a4bb;
}

.evidence.is-done .evidence-mark {
  border-color: #5a9956;
  color: #88d47d;
  background: rgba(111, 203, 117, .08);
}

.evidence-mark svg {
  width: 20px;
  height: 20px;
}

.evidence h3 {
  margin: 0;
  color: #dce4ec;
  font-size: 12px;
}

.evidence p {
  margin: 3px 0 0;
  color: #93a4bb;
  font-size: 12px;
}

.evidence > strong {
  color: var(--ink-muted);
  font-family: Georgia, serif;
  font-size: 11px;
  text-align: right;
}

.evidence.is-done > strong {
  color: var(--hp);
}

.unlock-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(88, 168, 239, .25);
  background: rgba(88, 168, 239, .045);
}

.unlock-box span {
  color: #6f91ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.unlock-box p {
  margin: 5px 0 0;
  color: #b9d5e8;
  font-size: 12px;
}

/* Secondary preview pages */
.secondary-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

.secondary-screen > :only-child {
  grid-column: 1 / -1;
}

.secondary-hero,
.secondary-side {
  min-height: 520px;
  padding: 28px;
}

.secondary-hero h1 {
  margin: 6px 0 10px;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 30px;
}

.secondary-hero > p {
  max-width: 620px;
  color: var(--ink-muted);
}

.preview-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.preview-list article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .018);
}

.preview-list .preview-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #405671;
  color: #87add1;
}

.preview-list svg {
  width: 19px;
  height: 19px;
}

.preview-list strong {
  display: block;
  color: #d8e0e9;
  font-size: 11px;
}

.preview-list small {
  color: #93a4bb;
  font-size: 12px;
}

.preview-list b {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
}

.secondary-side {
  display: flex;
  flex-direction: column;
}

.secondary-side .camp-flame {
  opacity: .28;
}

.secondary-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 17px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-muted);
  font-size: 12px;
}

.secondary-stat strong {
  color: var(--parchment);
  font-family: Georgia, serif;
}

@media (max-width: 1320px) {
  .game-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .side-rail {
    padding-right: 11px;
    padding-left: 11px;
  }

  .brand {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding-right: 0;
    padding-left: 0;
  }

  .brand-mark {
    grid-row: auto;
  }

  .brand-word,
  .brand-sub,
  .nav-item span,
  .nav-count,
  .rail-footer {
    display: none;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .player-bar {
    grid-template-columns: minmax(230px, .9fr) minmax(250px, 1fr) auto;
    gap: 16px;
  }

  .resource-strip {
    display: none;
  }

  .adventure-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  }

  .quest-deck {
    grid-template-columns: 1fr;
  }

  .quest-card {
    min-height: 190px;
  }
}

@media (max-width: 880px) {
  .player-bar {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  .vitals {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
  }

  .utility-nav {
    grid-column: 2;
    grid-row: 1;
  }

  .adventure-layout,
  .world-map-layout,
  .job-screen,
  .focus-screen,
  .secondary-screen {
    grid-template-columns: 1fr;
  }

  .support-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .world-map-panel {
    min-height: 560px;
  }

  .job-current {
    min-height: 480px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .game-shell {
    display: block;
  }

  .side-rail {
    display: none;
  }

  .player-bar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 13px 10px;
    min-height: 120px;
    padding: 12px 14px 14px;
  }

  .player-identity {
    grid-template-columns: 46px 1fr;
  }

  .player-crest {
    width: 46px;
    height: 46px;
  }

  .player-crest svg {
    width: 25px;
    height: 25px;
  }

  .player-copy .eyebrow,
  .resource-strip,
  .utility-nav button:first-child,
  .utility-nav button:nth-child(2) {
    display: none;
  }

  .player-copy strong {
    font-size: 16px;
  }

  .player-copy > span:last-child {
    font-size: 9px;
  }

  .utility-nav {
    display: flex;
  }

  .utility-nav button {
    width: 31px;
    height: 31px;
  }

  .vitals {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .vital-row {
    grid-template-columns: 32px 1fr 65px;
    gap: 8px;
  }

  .game-view {
    min-height: auto;
    padding: 17px 13px 24px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(5, 13, 23, .97);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    display: grid;
    gap: 2px;
    place-items: center;
    align-content: center;
    color: #93a4bb;
    font-size: 8px;
    background: transparent;
  }

  .mobile-nav button.is-active {
    color: var(--gold-bright);
    background: linear-gradient(180deg, rgba(201, 155, 69, .09), transparent);
  }

  .mobile-nav svg {
    width: 21px;
    height: 21px;
  }

  .view-heading {
    align-items: start;
    margin-bottom: 14px;
  }

  .screen-title {
    font-size: 23px;
  }

  .screen-lead {
    font-size: 12px;
  }

  .adventure-layout {
    display: flex;
    flex-direction: column;
  }

  .campaign-panel {
    min-height: 360px;
    order: 2;
  }

  .job-panel {
    min-height: 0;
    order: 3;
  }

  .quest-panel {
    order: 1;
  }

  .support-panel {
    grid-template-columns: 1fr;
    order: 4;
  }

  .quest-deck {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
  }

  .quest-card {
    flex: 0 0 87%;
    min-height: 220px;
    scroll-snap-align: start;
  }

  .campaign-head {
    top: 17px;
    left: 18px;
  }

  .campaign-head .chapter-label {
    font-size: 17px;
  }

  .map-mountain {
    bottom: 38%;
    transform: scale(.7);
  }

  .mountain-b {
    transform: scale(.9);
  }

  .route-line {
    right: 14%;
    bottom: 27%;
    left: 7%;
  }

  .map-node {
    width: 34px;
    height: 34px;
  }

  .map-node.is-current {
    width: 44px;
    height: 44px;
  }

  .map-node small {
    top: 39px;
    max-width: 84px;
    font-size: 7px;
  }

  .map-node.is-current small {
    top: 49px;
  }

  .node-a { left: 8%; bottom: 26%; }
  .node-b { left: 29%; bottom: 34%; }
  .node-c { left: 51%; bottom: 40%; }
  .node-d { left: 69%; bottom: 32%; }

  .boss-fortress {
    right: 0;
    bottom: 39%;
    transform: scale(.78);
  }

  .boss-marker {
    right: 0;
    bottom: 11%;
    width: 133px;
  }

  .boss-marker strong {
    font-size: 9px;
  }

  .board-group-head {
    grid-template-columns: auto 1fr;
  }

  .board-count {
    display: none;
  }

  .board-quest {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .board-actions .primary-action {
    width: 100%;
  }

  .focus-hero {
    min-height: calc(100vh - 176px);
    padding: 23px 19px;
  }

  .focus-hero h1 {
    margin-top: 38px;
    font-size: 28px;
  }

  .focus-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .focus-controls .primary-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .timer-display {
    font-size: 35px;
  }

  .clear-screen {
    min-height: calc(100vh - 180px);
  }

  .clear-card {
    padding: 34px 18px;
  }

  .reward-line {
    grid-template-columns: 1fr;
  }

  .world-map-panel {
    min-height: 530px;
  }

  .world-map-head {
    align-items: start;
    flex-direction: column;
    justify-content: center;
  }

  .world-map-panel .map-scene {
    top: 78px;
  }

  .world-map-panel .node-a { left: 7%; }
  .world-map-panel .node-b { left: 26%; }
  .world-map-panel .node-c { left: 47%; }
  .world-map-panel .node-d { left: 67%; }
  .world-map-panel .boss-fortress { right: -6%; transform: scale(1); }
  .world-map-panel .boss-marker { bottom: 2%; }

  .job-current,
  .job-road,
  .secondary-hero,
  .secondary-side {
    min-height: 0;
    padding: 21px 17px;
  }

  .job-current-crest {
    width: 94px;
    height: 94px;
    margin-top: 20px;
  }

  .job-current-crest svg {
    width: 47px;
    height: 47px;
  }

  .evidence {
    grid-template-columns: 38px 1fr auto;
    padding: 10px;
  }

  .preview-list article {
    grid-template-columns: 38px 1fr;
  }

  .preview-list b {
    grid-column: 2;
  }

  .toast {
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 14px;
    max-width: none;
  }
}

/* Phase 38: explicit next-campaign activation */
.campaign-activation {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-color: rgba(108, 147, 190, .24);
  background:
    linear-gradient(135deg, rgba(10, 29, 48, .82), rgba(7, 12, 23, .94)),
    rgba(3, 9, 18, .92);
}

.campaign-activation.is-ready {
  border-color: rgba(221, 183, 88, .42);
  box-shadow: inset 0 0 34px rgba(221, 183, 88, .05);
}

.campaign-activation > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.campaign-activation > header h2,
.campaign-activation > header p,
.campaign-activation-confirm h3,
.campaign-activation-confirm p {
  margin: 0;
}

.campaign-activation > header h2 {
  margin-top: 4px;
  color: #e4e9ef;
  font-size: clamp(16px, 2vw, 24px);
}

.campaign-activation > header p {
  max-width: 760px;
  margin-top: 7px;
  color: #939ead;
  line-height: 1.7;
}

.campaign-activation > header > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(130, 149, 174, .24);
  color: #8490a1;
  font-size: 8px;
  letter-spacing: .14em;
}

.campaign-activation.is-ready > header > span {
  border-color: rgba(221, 183, 88, .46);
  color: #e0c375;
}

.campaign-activation-gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.campaign-activation-gate {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(130, 149, 174, .14);
  background: rgba(2, 8, 16, .46);
}

.campaign-activation-gate > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(130, 149, 174, .22);
  color: #6f7b8c;
}

.campaign-activation-gate > span svg {
  width: 14px;
  height: 14px;
}

.campaign-activation-gate small,
.campaign-activation-gate strong,
.campaign-activation-gate b {
  display: block;
}

.campaign-activation-gate small {
  color: #647083;
  font-size: 7px;
  letter-spacing: .12em;
}

.campaign-activation-gate strong {
  margin-top: 4px;
  color: #aeb8c5;
  font-size: 9px;
  line-height: 1.55;
}

.campaign-activation-gate b {
  grid-column: 1 / -1;
  color: #606b7a;
  font-size: 7px;
  letter-spacing: .12em;
}

.campaign-activation-gate.is-met {
  border-color: rgba(87, 175, 143, .3);
  background: rgba(30, 92, 75, .1);
}

.campaign-activation-gate.is-met > span,
.campaign-activation-gate.is-met b {
  color: #7dc7a8;
}

.campaign-activation-blockers {
  display: grid;
  gap: 7px;
}

.campaign-activation-blockers button {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(156, 113, 105, .2);
  background: rgba(47, 18, 20, .16);
  color: #b7a8a5;
  text-align: left;
}

.campaign-activation-blockers svg {
  width: 15px;
  height: 15px;
}

.campaign-activation-confirm {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(221, 183, 88, .4);
  background: rgba(42, 31, 9, .25);
}

.campaign-activation-confirm > small {
  color: #d9b760;
  letter-spacing: .16em;
}

.campaign-activation-confirm h3 {
  color: #f0dc9e;
  font-size: 15px;
}

.campaign-activation-confirm p,
.campaign-activation-confirm li {
  color: #b3b7ba;
  font-size: 9px;
  line-height: 1.65;
}

.campaign-activation-confirm ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
}

.campaign-activation-confirm > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.campaign-activation-request {
  justify-self: end;
}

.campaign-activation-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(87, 175, 143, .34);
  background: rgba(30, 92, 75, .12);
}

.campaign-activation-result > span {
  color: #7dc7a8;
}

.campaign-activation-result svg {
  width: 24px;
  height: 24px;
}

.campaign-activation-result small,
.campaign-activation-result strong,
.campaign-activation-result p {
  display: block;
  margin: 0;
}

.campaign-activation-result small { color: #7dc7a8; }
.campaign-activation-result strong { margin-top: 3px; color: #d8ebe3; }
.campaign-activation-result p { margin-top: 4px; color: #8ca49a; }

.campaign-activation-truth {
  margin: 0;
  color: #667285;
  font-size: 8px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .campaign-activation-gates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .campaign-activation {
    padding: 14px;
  }

  .campaign-activation > header,
  .campaign-activation-confirm > div {
    flex-direction: column;
    align-items: stretch;
  }

  .campaign-activation > header > span {
    align-self: flex-start;
  }

  .campaign-activation-gates {
    grid-template-columns: 1fr;
  }

  .campaign-activation-request,
  .campaign-activation-confirm button {
    width: 100%;
    justify-self: stretch;
  }
}

/* ============================================================
   Phase 30 — causal quest growth priority
   ============================================================ */
.quest-growth-priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(169, 188, 211, .16);
  background: rgba(5, 12, 23, .72);
  color: #aeb8c8;
  line-height: 1.15;
}

.quest-growth-priority small {
  color: inherit;
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .11em;
  white-space: nowrap;
}

.quest-growth-priority b {
  color: #c8ced8;
  font-size: 7px;
  font-weight: 600;
}

.quest-growth-priority.is-double_growth {
  border-color: rgba(229, 174, 82, .46);
  background: linear-gradient(90deg, rgba(125, 65, 19, .3), rgba(86, 45, 119, .24));
  color: #f0c36d;
  box-shadow: inset 0 0 14px rgba(222, 146, 45, .08);
}

.quest-growth-priority.is-boss_growth {
  border-color: rgba(218, 130, 67, .36);
  background: rgba(112, 51, 21, .18);
  color: #e5a16f;
}

.quest-growth-priority.is-job_growth {
  border-color: rgba(165, 116, 220, .38);
  background: rgba(73, 43, 111, .2);
  color: #c5a1ed;
}

.board-quest .quest-growth-priority {
  margin-top: 2px;
}

@media (max-width: 767px) {
  .quest-growth-priority {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .quest-growth-priority b {
    white-space: normal;
  }
}

/* ============================================================
   Phase 27 — complete next-job evolution roadmap
   ============================================================ */
.job-evolution-roadmap {
  display: grid;
  gap: 15px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0, rgba(122, 91, 201, .17), transparent 32%),
    radial-gradient(circle at 8% 100%, rgba(202, 155, 65, .09), transparent 30%),
    linear-gradient(145deg, rgba(12, 19, 35, .98), rgba(8, 12, 25, .99));
}

.job-evolution-roadmap > header,
.job-evolution-roadmap > footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.job-evolution-roadmap > header h2 {
  margin: 3px 0 4px;
  color: #eee7f7;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 27px);
  letter-spacing: .04em;
}

.job-evolution-roadmap > header p:last-child,
.job-evolution-roadmap > footer p {
  margin: 0;
  color: #97a3b5;
  font-size: 10px;
  line-height: 1.55;
}

.job-roadmap-summary {
  display: grid;
  flex: 0 0 150px;
  gap: 3px;
  text-align: right;
}

.job-roadmap-summary strong {
  color: #e2c774;
  font-family: var(--display);
  font-size: 21px;
}

.job-roadmap-summary span {
  color: #8f7bbd;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.job-roadmap-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 9px;
}

.job-roadmap-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(169, 188, 211, .12);
  background: rgba(3, 10, 20, .58);
}

.job-roadmap-stage.is-current {
  border-color: rgba(213, 174, 84, .45);
  box-shadow: inset 0 0 20px rgba(185, 132, 44, .08), 0 0 0 1px rgba(200, 160, 66, .08);
}

.job-roadmap-stage.is-current::before {
  position: absolute;
  top: -1px;
  right: 8px;
  padding: 3px 6px;
  color: #2a1d0b;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .12em;
  background: #d5ad58;
  content: "NEXT";
}

.job-roadmap-stage.is-cleared {
  border-color: rgba(84, 190, 138, .28);
  background: rgba(30, 93, 67, .12);
}

.job-roadmap-stage.is-conflict {
  border-color: rgba(223, 151, 93, .34);
  background: rgba(115, 55, 30, .12);
}

.job-roadmap-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(140, 113, 202, .35);
  border-radius: 50%;
  color: #b5a0e1;
  font-family: var(--display);
  font-size: 10px;
}

.job-roadmap-stage.is-cleared .job-roadmap-number {
  border-color: rgba(86, 203, 146, .42);
  color: #8bdbb0;
}

.job-roadmap-number svg {
  width: 12px;
  height: 12px;
}

.job-roadmap-stage-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.job-roadmap-stage-copy small {
  padding-right: 30px;
  color: #8d78b9;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .11em;
}

.job-roadmap-stage-copy strong {
  min-height: 30px;
  color: #d8e0e7;
  font-size: 9px;
  line-height: 1.45;
}

.job-roadmap-stage-copy p {
  margin: 0;
  color: #737f91;
  font-size: 7px;
  line-height: 1.45;
}

.job-roadmap-stage > b {
  grid-column: 1 / -1;
  color: #c7b36d;
  font-size: 9px;
  text-align: right;
}

.job-evolution-roadmap > footer {
  padding: 11px 12px;
  border: 1px solid rgba(169, 188, 211, .1);
  background: rgba(4, 11, 21, .47);
}

.job-evolution-roadmap > footer .primary-action,
.job-evolution-roadmap > footer .secondary-action {
  flex: 0 0 auto;
  min-width: 175px;
}

.job-roadmap-truth {
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(169, 188, 211, .08);
  color: #646b7a;
  font-size: 7px;
  line-height: 1.45;
  text-align: center;
}

.job-roadmap-empty {
  padding: 16px;
  border: 1px dashed rgba(169, 188, 211, .18);
  color: #8994a3;
  text-align: center;
}

.job-roadmap-empty p {
  margin: 4px 0 0;
  font-size: 8px;
}

@media (max-width: 767px) {
  .job-evolution-roadmap {
    padding: 13px;
  }

  .job-evolution-roadmap > header,
  .job-evolution-roadmap > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .job-roadmap-summary {
    flex-basis: auto;
    width: 100%;
    text-align: left;
  }

  .job-roadmap-stages {
    grid-template-columns: 1fr;
  }

  .job-roadmap-stage-copy strong {
    min-height: 0;
  }

  .job-evolution-roadmap > footer .primary-action,
  .job-evolution-roadmap > footer .secondary-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 26 — verified next-job training result
   ============================================================ */
.job-training-result {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(126, 99, 211, .34);
  background:
    radial-gradient(circle at 92% 0, rgba(130, 96, 218, .18), transparent 36%),
    linear-gradient(145deg, rgba(18, 14, 41, .94), rgba(8, 14, 27, .96));
}

.job-training-result > header,
.job-training-result > footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.job-training-result > header h2 {
  margin: 2px 0 0;
  color: #eee5ff;
  font-family: var(--display);
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: .04em;
}

.job-training-result > header > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(159, 128, 226, .36);
  color: #c3a9f1;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.job-training-result.is-ready > header > span {
  border-color: rgba(93, 211, 151, .38);
  color: #91dfb6;
}

.job-training-result > ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-training-result > ul > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(169, 188, 211, .12);
  background: rgba(3, 10, 20, .53);
}

.job-training-result > ul > li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(155, 123, 219, .34);
  border-radius: 50%;
  color: #b29ae2;
}

.job-training-result > ul > li.is-cleared > span {
  border-color: rgba(90, 201, 143, .4);
  color: #86d7aa;
}

.job-training-result > ul > li > span svg {
  width: 13px;
  height: 13px;
}

.job-training-result > ul > li > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.job-training-result > ul small {
  color: #9e83d4;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.job-training-result > ul strong {
  overflow: hidden;
  color: #d9e1e5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-training-result > ul b {
  color: #e0c774;
  font-size: 10px;
  white-space: nowrap;
}

.job-training-result > footer p {
  margin: 0;
  color: #a3a9b6;
  font-size: 9px;
  line-height: 1.55;
}

.job-training-result > footer .primary-action,
.job-training-result > footer .secondary-action {
  flex: 0 0 auto;
  min-width: 160px;
}

.job-training-result-truth {
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(169, 188, 211, .09);
  color: #666b7c;
  font-size: 7px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 767px) {
  .job-training-result {
    padding: 12px;
  }

  .job-training-result > header,
  .job-training-result > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .job-training-result > header > span {
    align-self: flex-start;
  }

  .job-training-result > ul > li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .job-training-result > ul > li > b {
    grid-column: 2;
    white-space: normal;
  }

  .job-training-result > ul strong {
    white-space: normal;
  }

  .job-training-result > footer .primary-action,
  .job-training-result > footer .secondary-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 28 — truth-gated job road stage clear
   ============================================================ */
.job-road-stage-clear {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(224, 190, 91, .4);
  background:
    radial-gradient(circle at 50% -15%, rgba(227, 195, 90, .24), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(119, 84, 204, .2), transparent 34%),
    linear-gradient(145deg, rgba(22, 18, 39, .98), rgba(6, 13, 26, .98));
  box-shadow: inset 0 0 34px rgba(226, 191, 83, .04), 0 12px 30px rgba(2, 6, 14, .28);
}

.job-road-stage-rays {
  position: absolute;
  top: -95px;
  left: 50%;
  width: 310px;
  height: 210px;
  background: repeating-conic-gradient(from 0deg, rgba(234, 207, 119, .1) 0 7deg, transparent 7deg 16deg);
  border-radius: 50%;
  opacity: .65;
  pointer-events: none;
  transform: translateX(-50%);
}

.job-road-stage-clear > header,
.job-road-stage-clear > footer,
.job-road-stage-clear > ul,
.job-road-stage-truth {
  position: relative;
}

.job-road-stage-clear > header,
.job-road-stage-clear > footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.job-road-stage-clear > header h2 {
  margin: 2px 0 3px;
  color: #f3d978;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: .08em;
  text-shadow: 0 0 20px rgba(231, 196, 91, .24);
}

.job-road-stage-clear > header p:last-child,
.job-road-stage-clear > footer p {
  margin: 0;
  color: #abb1bd;
  font-size: 10px;
  line-height: 1.55;
}

.job-road-stage-score {
  display: grid;
  flex: 0 0 135px;
  gap: 3px;
  text-align: right;
}

.job-road-stage-score strong {
  color: #f0d476;
  font-family: var(--display);
  font-size: 24px;
}

.job-road-stage-score span {
  color: #a88cd8;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.job-road-stage-clear > ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-road-stage-clear > ul > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(226, 195, 99, .22);
  background: rgba(4, 11, 22, .62);
}

.job-road-stage-clear > ul > li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(104, 219, 157, .42);
  border-radius: 50%;
  color: #8ce0b1;
  box-shadow: 0 0 15px rgba(84, 205, 142, .12);
}

.job-road-stage-clear > ul > li > span svg {
  width: 14px;
  height: 14px;
}

.job-road-stage-clear > ul > li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.job-road-stage-clear > ul small {
  color: #a789d8;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .13em;
}

.job-road-stage-clear > ul strong {
  overflow: hidden;
  color: #ece6d7;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-road-stage-clear > ul b {
  color: #e8cd71;
  font-size: 10px;
  white-space: nowrap;
}

.job-road-stage-clear > footer .primary-action,
.job-road-stage-clear > footer .secondary-action {
  flex: 0 0 auto;
  min-width: 170px;
}

.job-road-stage-truth {
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(226, 195, 99, .1);
  color: #696d7a;
  font-size: 7px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 767px) {
  .job-road-stage-clear {
    padding: 14px 12px;
  }

  .job-road-stage-clear > header,
  .job-road-stage-clear > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .job-road-stage-score {
    flex-basis: auto;
    text-align: left;
  }

  .job-road-stage-clear > ul > li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .job-road-stage-clear > ul > li > b {
    grid-column: 2;
    white-space: normal;
  }

  .job-road-stage-clear > ul strong {
    white-space: normal;
  }

  .job-road-stage-clear > footer .primary-action,
  .job-road-stage-clear > footer .secondary-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 29 — quest growth impact before starting
   ============================================================ */
.quest-growth-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.quest-growth-impact > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid rgba(154, 173, 199, .14);
  background: rgba(3, 10, 20, .48);
}

.quest-growth-impact > span.is-boss {
  border-color: rgba(224, 153, 84, .25);
  background: rgba(92, 45, 28, .13);
}

.quest-growth-impact > span.is-job {
  border-color: rgba(143, 109, 213, .26);
  background: rgba(65, 42, 112, .13);
}

.quest-growth-impact small {
  color: #8295ab;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .13em;
}

.quest-growth-impact .is-boss small {
  color: #d99b62;
}

.quest-growth-impact .is-job small {
  color: #a78bd6;
}

.quest-growth-impact strong {
  overflow: hidden;
  color: #dce4e8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-growth-impact b {
  color: #b0bdc8;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
}

.quest-card .quest-growth-impact {
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .quest-growth-impact {
    grid-template-columns: 1fr;
  }

  .quest-growth-impact strong {
    white-space: normal;
  }
}

/* ============================================================
   Phase 7 P1 — active quest resume / replacement guard
   ============================================================ */
.active-quest-resume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-color: rgba(104, 196, 151, .36);
  background:
    radial-gradient(circle at 0 50%, rgba(76, 163, 128, .15), transparent 26%),
    linear-gradient(120deg, rgba(11, 37, 45, .96), rgba(7, 20, 33, .98));
  box-shadow: inset 3px 0 rgba(104, 196, 151, .55), 0 12px 26px rgba(0, 0, 0, .12);
}

.active-quest-resume.is-stale {
  border-color: rgba(224, 153, 84, .46);
  background:
    radial-gradient(circle at 0 50%, rgba(139, 72, 42, .18), transparent 28%),
    linear-gradient(120deg, rgba(56, 32, 30, .96), rgba(7, 20, 33, .98));
  box-shadow: inset 3px 0 rgba(224, 153, 84, .68), 0 12px 26px rgba(0, 0, 0, .12);
}

.active-quest-resume.is-stale .active-quest-rune {
  border-color: rgba(224, 153, 84, .56);
  color: #efb77d;
  background: rgba(134, 67, 40, .16);
  box-shadow: 0 0 24px rgba(196, 111, 63, .12);
}

.active-quest-resume.is-stale .active-quest-copy > small {
  color: #efb77d;
}

.active-quest-resume.is-quest-board {
  width: min(1450px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.active-quest-rune {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(104, 196, 151, .5);
  border-radius: 50%;
  color: #9de2bf;
  background: rgba(60, 143, 108, .12);
  box-shadow: 0 0 24px rgba(72, 169, 123, .12);
}

.active-quest-rune svg {
  width: 19px;
  height: 19px;
}

.active-quest-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.active-quest-copy small {
  color: #79c9a3;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .15em;
}

.active-quest-copy strong {
  overflow: hidden;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-quest-copy p {
  overflow: hidden;
  margin: 0;
  color: #91a9a5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-quest-freshness {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 3px 0 1px;
}

.active-quest-freshness span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid rgba(224, 153, 84, .3);
  border-radius: 999px;
  color: #d8af85;
  font-size: 8px;
  font-weight: 800;
  background: rgba(105, 52, 34, .16);
}

.active-quest-freshness svg {
  width: 10px;
  height: 10px;
}

.active-quest-resume .primary-action {
  min-width: 168px;
}

.active-quest-actions {
  display: grid;
  gap: 7px;
  min-width: 190px;
}

.active-quest-actions .primary-action,
.active-quest-actions .secondary-action {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.quest-card.is-active-quest,
.board-quest.is-active-quest {
  border-color: rgba(104, 196, 151, .54);
  box-shadow: inset 3px 0 rgba(104, 196, 151, .42);
}

.quest-card.has-other-active-quest,
.board-quest.has-other-active-quest {
  border-color: rgba(138, 154, 172, .24);
}

.quest-session-action {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}

.quest-session-action .quest-start {
  width: 100%;
  margin-top: 0;
}

.quest-session-badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-self: start;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(104, 196, 151, .34);
  border-radius: 999px;
  color: #8bd4b0;
  font-size: 9px;
  font-weight: 800;
  background: rgba(55, 132, 99, .12);
}

.quest-session-action.is-other .quest-session-badge {
  border-color: rgba(138, 154, 172, .28);
  color: #9baabe;
  background: rgba(91, 105, 124, .1);
}

.quest-session-badge svg {
  width: 11px;
  height: 11px;
}

.board-actions .quest-session-action {
  min-width: 190px;
  margin-top: 0;
}

.board-actions .quest-session-action .primary-action {
  width: 100%;
}

@media (max-width: 767px) {
  .active-quest-resume {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 13px;
  }

  .active-quest-resume .primary-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .active-quest-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .active-quest-copy strong,
  .active-quest-copy p {
    white-space: normal;
  }

  .board-actions,
  .board-actions .quest-session-action {
    width: 100%;
  }
}

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

/* ============================================================
   Phase 12 — boss readiness and training route
   ============================================================ */
.boss-level-badge {
  display: inline-flex;
  width: fit-content;
  margin: 3px 0 10px;
  padding: 4px 8px;
  border: 1px solid rgba(224, 153, 84, .38);
  border-radius: 999px;
  color: #f0b674;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  background: rgba(134, 67, 40, .15);
}

.boss-readiness {
  display: grid;
  gap: 15px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(224, 153, 84, .28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(179, 68, 56, .15), transparent 31%),
    linear-gradient(135deg, rgba(13, 25, 40, .96), rgba(20, 19, 28, .96));
  box-shadow: inset 0 0 32px rgba(130, 49, 43, .07);
}

.boss-readiness.is-unknown {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--ink-muted);
}

.boss-readiness.is-unknown > div {
  display: grid;
}

.boss-readiness.is-unknown small {
  color: #f0b674;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.boss-readiness.is-unknown p {
  margin: 0;
  font-size: 10px;
}

.boss-readiness-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.boss-readiness-head h3 {
  margin: 2px 0 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: clamp(16px, 1.7vw, 21px);
  letter-spacing: .04em;
}

.boss-readiness-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(224, 153, 84, .45);
  color: #f1b26c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  background: rgba(134, 67, 40, .16);
}

.boss-readiness.is-level-ready .boss-readiness-status,
.boss-readiness.is-cleared .boss-readiness-status {
  border-color: rgba(93, 205, 145, .42);
  color: #8fe3b6;
  background: rgba(44, 126, 84, .14);
}

.boss-readiness.is-readiness-unknown .boss-readiness-status,
.boss-training-route.is-unknown .boss-training-copy strong {
  border-color: rgba(224, 153, 84, .35);
  color: #f0b674;
  background: rgba(134, 67, 40, .12);
}

.boss-readiness.is-readiness-unknown .boss-level-meter i,
.boss-readiness.is-readiness-unknown .boss-level-meter b,
.boss-training-route.is-unknown .boss-training-meter i {
  display: none;
}

.boss-level-road {
  display: grid;
  grid-template-columns: 112px minmax(180px, 1fr) 140px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-block: 1px solid rgba(169, 188, 211, .11);
}

.boss-level-actor {
  display: grid;
  gap: 2px;
}

.boss-level-actor.is-boss {
  text-align: right;
}

.boss-level-actor small {
  color: #7da8c8;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .13em;
}

.boss-level-actor.is-boss small {
  color: #d98c65;
}

.boss-level-actor strong {
  color: #a7dcff;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
}

.boss-level-actor.is-boss strong {
  color: #f0b674;
  font-size: 31px;
}

.boss-level-actor span {
  color: var(--ink-muted);
  font-size: 9px;
}

.boss-level-route {
  display: grid;
  gap: 6px;
  text-align: center;
}

.boss-level-route > strong {
  color: var(--ink);
  font-size: 10px;
}

.boss-level-route > small {
  color: #72869b;
  font-size: 7px;
}

.boss-level-meter {
  position: relative;
  height: 8px;
  border: 1px solid rgba(169, 188, 211, .18);
  background: rgba(3, 10, 18, .75);
}

.boss-level-meter::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(224, 153, 84, .7);
  background: #351d1b;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.boss-level-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4d8fbd, #78c9ee);
  box-shadow: 0 0 12px rgba(92, 169, 224, .28);
}

.boss-level-meter b {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: #d8efff;
  box-shadow: 0 0 9px rgba(158, 216, 255, .75);
  transform: translate(-50%, -50%);
}

.boss-training-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, .75fr);
  gap: 14px;
}

.boss-training-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.boss-training-route {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(169, 188, 211, .1);
  background: rgba(4, 13, 23, .55);
}

.boss-training-copy {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.boss-training-copy span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.boss-training-copy strong {
  color: #8fe3b6;
  font-family: var(--display);
  font-size: 13px;
}

.boss-training-route small {
  overflow: hidden;
  color: #7d91a6;
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-training-meter {
  height: 3px;
  background: rgba(169, 188, 211, .1);
}

.boss-training-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c07949, #e1bd70);
}

.boss-real-gates {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(224, 153, 84, .22);
  background: rgba(63, 28, 28, .18);
}

.boss-real-gates > small {
  color: #d98c65;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.boss-real-gates > strong {
  margin-top: 2px;
  color: var(--parchment);
  font-size: 12px;
}

.boss-real-gates ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
  padding: 0;
  list-style: none;
}

.boss-real-gates li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.4;
}

.boss-real-gates li svg {
  flex: 0 0 auto;
  width: 11px;
  color: #d98c65;
}

.boss-real-gates .secondary-action {
  width: 100%;
  margin-top: auto;
}

.boss-readiness-truth {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(169, 188, 211, .09);
  color: #8094a9;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .boss-training-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .boss-readiness {
    padding: 13px;
  }

  .boss-readiness-head {
    align-items: flex-start;
  }

  .boss-readiness-status {
    padding: 5px 7px;
    font-size: 7px;
  }

  .boss-level-road {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding-inline: 2px;
  }

  .boss-level-route {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .boss-level-actor.is-boss strong {
    font-size: 27px;
  }

  .boss-training-list {
    grid-template-columns: 1fr;
  }

  .boss-training-route small {
    white-space: normal;
  }
}

/* ============================================================
   Phase 6 — persistent growth chronicle
   ============================================================ */
.growth-chronicle {
  grid-column: 1 / -1;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0, rgba(89, 161, 215, .12), transparent 28%),
    radial-gradient(circle at 92% 100%, rgba(201, 155, 69, .10), transparent 30%),
    linear-gradient(145deg, rgba(13, 31, 51, .98), rgba(7, 18, 31, .99));
}

.growth-head {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.growth-head h2 {
  margin: 2px 0 4px;
  color: var(--parchment);
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 25px);
  letter-spacing: .05em;
}

.growth-head p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.growth-today {
  display: grid;
  flex: 0 0 auto;
  min-width: 130px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.growth-today small,
.growth-subhead {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

.growth-today strong {
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
}

.growth-today span {
  color: #8fe3b6;
  font-size: 11px;
  font-weight: 800;
}

.growth-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.25fr) minmax(260px, 1fr);
  gap: 12px;
}

.growth-level-card,
.growth-events,
.growth-evolution {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(6, 18, 31, .68);
}

.growth-level-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 16% 20%, rgba(92, 169, 224, .16), transparent 36%),
    rgba(6, 18, 31, .76);
}

.growth-level-copy {
  display: flex;
  gap: 12px;
  align-items: center;
}

.growth-level-rune,
.growth-event-rune,
.growth-evolution button > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201, 155, 69, .38);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(201, 155, 69, .08);
}

.growth-level-rune {
  width: 48px;
  height: 48px;
  color: #9ed8ff;
  border-color: rgba(92, 169, 224, .42);
  background: rgba(92, 169, 224, .10);
  box-shadow: 0 0 24px rgba(92, 169, 224, .08);
}

.growth-level-rune svg,
.growth-event-rune svg,
.growth-evolution button > span svg {
  width: 18px;
  height: 18px;
}

.growth-level-copy > div {
  display: grid;
  min-width: 0;
}

.growth-level-copy small {
  color: #7da8c8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.growth-level-copy strong {
  color: var(--parchment);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.05;
}

.growth-level-copy span {
  color: var(--ink-muted);
  font-size: 10px;
}

.growth-level-meter {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.growth-level-meter small {
  color: #91a7bd;
  font-size: 9px;
  text-align: right;
}

.growth-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.growth-subhead small {
  color: #71869d;
  font-size: 8px;
  letter-spacing: .04em;
}

.growth-event,
.growth-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 7px 0;
  border-top: 1px solid rgba(169, 188, 211, .09);
}

.growth-event:first-of-type {
  border-top: 0;
}

.growth-event-rune {
  width: 32px;
  height: 32px;
}

.growth-event > div,
.growth-empty > div {
  display: grid;
  min-width: 0;
}

.growth-event small {
  color: #7891aa;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
}

.growth-event strong,
.growth-empty strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.growth-event span,
.growth-empty span {
  color: var(--ink-muted);
  font-size: 9px;
}

.growth-event > b {
  color: #8fe3b6;
  font-family: var(--display);
  font-size: 15px;
}

.growth-empty {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 112px;
  border: 0;
}

.growth-empty strong {
  white-space: normal;
}

.growth-evolution {
  display: flex;
  flex-direction: column;
}

.growth-evolution button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid rgba(169, 188, 211, .09);
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.growth-evolution button:hover strong {
  color: var(--gold-bright);
}

.growth-evolution button.is-attention {
  margin: 2px -7px 0;
  padding: 9px 7px;
  border-color: rgba(224, 153, 84, .28);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(105, 52, 34, .2), rgba(7, 20, 35, .44));
  box-shadow: inset 2px 0 rgba(224, 153, 84, .66);
}

.growth-evolution button.is-attention > span {
  border-color: rgba(224, 153, 84, .56);
  color: #efb77d;
  background: rgba(134, 67, 40, .16);
}

.growth-evolution button.is-attention small,
.growth-evolution button.is-attention p {
  color: #d8af85;
}

.growth-evolution button > span {
  width: 34px;
  height: 34px;
}

.growth-evolution button > div {
  display: grid;
  min-width: 0;
}

.growth-evolution button small {
  color: #7891aa;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .13em;
}

.growth-evolution button strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.growth-evolution button p {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.growth-truth {
  margin: 11px 0 0;
  color: #71869d;
  font-size: 9px;
  text-align: center;
}

.clear-level-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(92, 169, 224, .35);
  background: linear-gradient(135deg, rgba(32, 82, 118, .25), rgba(7, 20, 34, .7));
}

.clear-level-progress > div {
  display: grid;
  gap: 4px;
}

.clear-level-progress small {
  color: #8eb9d8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.clear-level-progress strong {
  color: var(--parchment);
  font-family: var(--display);
  font-size: 23px;
}

.clear-level-progress span {
  color: var(--ink);
  font-size: 11px;
}

.clear-level-progress > div:last-child > small {
  text-align: right;
}

@media (max-width: 1020px) {
  .growth-grid {
    grid-template-columns: minmax(210px, .75fr) minmax(300px, 1.25fr);
  }

  .growth-evolution {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }

  .growth-evolution .growth-subhead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .growth-chronicle {
    order: 0;
    padding: 15px;
  }

  .growth-head {
    align-items: end;
  }

  .growth-head p:last-child {
    max-width: 220px;
  }

  .growth-today {
    min-width: 94px;
    padding-left: 12px;
  }

  .growth-today strong {
    font-size: 15px;
  }

  .growth-grid {
    grid-template-columns: 1fr;
  }

  .growth-evolution {
    grid-column: auto;
    display: flex;
  }

  .growth-level-card {
    min-height: 142px;
  }

  .growth-event,
  .growth-empty {
    min-height: 54px;
  }

  .growth-head p:last-child,
  .growth-truth {
    line-height: 1.55;
  }

  .clear-level-progress {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============================================================
   Phase 5 — first adventure / daily readiness
   ============================================================ */
.daily-compass {
  position: relative;
  max-width: 1450px;
  margin: 0 auto 16px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0, rgba(201, 155, 69, .16), transparent 32%),
    radial-gradient(circle at 8% 100%, rgba(71, 139, 193, .13), transparent 30%),
    linear-gradient(145deg, rgba(18, 37, 60, .98), rgba(7, 18, 31, .99));
}

.daily-compass::after {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(201, 155, 69, .08);
  border-radius: 50%;
  pointer-events: none;
  content: "";
  right: -105px;
  bottom: -135px;
  box-shadow:
    0 0 0 26px rgba(201, 155, 69, .025),
    0 0 0 58px rgba(201, 155, 69, .018);
}

.daily-compass.is-ready {
  border-color: rgba(111, 203, 117, .34);
  background:
    radial-gradient(circle at 88% 0, rgba(111, 203, 117, .13), transparent 34%),
    linear-gradient(145deg, rgba(16, 42, 46, .98), rgba(7, 22, 31, .99));
}

.daily-compass-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.daily-compass-head h2 {
  margin: 3px 0 5px;
  color: var(--parchment);
  font-family: var(--display);
  font-size: clamp(20px, 2.3vw, 29px);
  letter-spacing: .05em;
}

.daily-compass-head p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.65;
}

.daily-progress {
  display: grid;
  gap: 8px;
  text-align: right;
}

.daily-progress > strong {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.daily-progress > strong small {
  color: var(--ink-muted);
  font-size: 13px;
}

.daily-compass.is-ready .daily-progress > strong {
  color: #8fe3b6;
}

.daily-ritual-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.daily-ritual-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 78px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  color: var(--ink);
  text-align: left;
  background: rgba(7, 20, 35, .76);
}

.daily-ritual-step:hover {
  border-color: var(--gold);
  background: rgba(27, 44, 64, .92);
}

.daily-ritual-step.is-next {
  border-color: rgba(240, 207, 122, .72);
  background: linear-gradient(150deg, rgba(201, 155, 69, .16), rgba(13, 29, 47, .9));
  box-shadow: inset 3px 0 var(--gold-bright), 0 0 24px rgba(201, 155, 69, .07);
}

.daily-ritual-step.is-done {
  border-color: rgba(111, 203, 117, .3);
  background: rgba(24, 65, 56, .26);
}

.daily-ritual-step.is-attention {
  border-color: rgba(224, 153, 84, .52);
  background: linear-gradient(150deg, rgba(118, 59, 35, .22), rgba(13, 29, 47, .92));
  box-shadow: inset 3px 0 rgba(224, 153, 84, .72);
}

.daily-step-rune {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(201, 155, 69, .15), rgba(7, 20, 35, .9) 70%);
}

.daily-ritual-step.is-done .daily-step-rune {
  border-color: rgba(111, 203, 117, .5);
  color: #8fe3b6;
  background: rgba(55, 141, 103, .13);
}

.daily-ritual-step.is-attention .daily-step-rune {
  border-color: rgba(224, 153, 84, .56);
  color: #efb77d;
  background: rgba(134, 67, 40, .16);
}

.daily-step-rune svg {
  width: 19px;
  height: 19px;
}

.daily-step-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.daily-step-copy small {
  color: #7794b1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .15em;
}

.daily-step-copy strong {
  overflow: hidden;
  color: var(--parchment);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-step-copy > span {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-ritual-step > b {
  color: #8ba1b8;
  font-size: 9px;
  letter-spacing: .1em;
}

.daily-ritual-step.is-next > b {
  color: var(--gold-bright);
}

.daily-ritual-step.is-done > b {
  color: #8fe3b6;
}

.daily-ritual-step.is-attention > b {
  color: #efb77d;
}

.daily-next-action,
.daily-ready-action {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 155, 69, .2);
  border-radius: 8px;
  background: rgba(6, 17, 29, .66);
}

.daily-ready-action {
  border-color: rgba(111, 203, 117, .26);
}

.daily-next-action > div,
.daily-ready-action > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.daily-next-action small,
.daily-ready-action small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .15em;
}

.daily-ready-action small {
  color: #82cda8;
}

.daily-next-action strong,
.daily-ready-action strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-next-action span {
  color: var(--ink-muted);
  font-size: 10px;
}

.daily-next-action .primary-action,
.daily-ready-action .primary-action {
  flex: 0 0 auto;
  min-width: 150px;
  margin: 0;
}

.quest-signal {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(224, 153, 84, .28);
  border-radius: 8px;
  background: rgba(84, 45, 24, .2);
}

.quest-board > .quest-signal {
  max-width: 1450px;
  margin: 0 auto 14px;
}

.quest-signal-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(224, 153, 84, .42);
  border-radius: 50%;
  color: #efb16f;
  background: rgba(110, 58, 28, .18);
}

.quest-signal-mark svg,
.quest-signal a svg,
.quest-signal-actions button svg {
  width: 14px;
  height: 14px;
}

.quest-signal div {
  min-width: 0;
}

.quest-signal strong {
  color: #e8c399;
  font-size: 11px;
}

.quest-signal p {
  margin: 3px 0 0;
  color: #ac9c91;
  font-size: 10px;
  line-height: 1.55;
}

.quest-signal a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #e6b878;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.quest-signal-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
}

.quest-signal-actions .primary-action {
  min-width: 0;
  margin: 0;
  padding: 9px 12px;
  font-size: 10px;
  white-space: nowrap;
}

.meta-chip.is-overdue {
  border-color: rgba(224, 153, 84, .36);
  color: #efb16f;
  background: rgba(110, 58, 28, .18);
}

.quest-card.is-overdue,
.board-quest.is-overdue {
  border-color: rgba(224, 153, 84, .26);
}

.camp-card > .secondary-action {
  position: relative;
  z-index: 2;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .daily-compass-head {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .daily-ritual-steps {
    grid-template-columns: 1fr;
  }

  .daily-ritual-step {
    min-height: 66px;
  }
}

@media (max-width: 767px) {
  .daily-compass {
    margin-bottom: 12px;
    padding: 16px;
  }

  .daily-compass-head {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 12px;
  }

  .daily-progress > strong {
    font-size: 25px;
  }

  .daily-ritual-step {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 10px;
  }

  .daily-step-rune {
    width: 36px;
    height: 36px;
  }

  .daily-next-action,
  .daily-ready-action {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-next-action .primary-action,
  .daily-ready-action .primary-action {
    width: 100%;
  }

  .quest-signal {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .quest-signal a {
    grid-column: 2;
  }

  .quest-signal-actions {
    grid-column: 2;
    align-items: stretch;
    flex-direction: column;
  }

  .quest-signal-actions .primary-action,
  .quest-signal-actions a {
    width: 100%;
  }
}

/* ============================================================
   Phase 0 audit fixes (2026-07-30)
   - map: data駆動ノード / 次ノード・霧ノード / 章報酬 / 凡例 / 選択詳細
   - clear: 因果のある項目だけを順次表示 + 次のクエスト提示
   - job: ジョブルート + 履歴
   - mobile: 冒険者メニュー / 縦ルートマップ / 1枚見せのクエストデッキ
   ============================================================ */

/* --- map scene: nodes are data-driven buttons --- */
.map-nodes {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.map-node {
  padding: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.map-node .node-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.map-node:hover {
  transform: translateY(-2px);
}

.map-node small em {
  display: block;
  margin-top: 1px;
  color: var(--ink-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .06em;
}

.map-node.is-cleared small em {
  display: none;
}

.map-node.is-current small em {
  color: #8ed4ff;
}

.map-node.is-next {
  border-style: dashed;
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(5, 14, 25, .72), 0 0 20px rgba(240, 207, 122, .22);
}

.map-node.is-next small em {
  color: var(--gold-bright);
}

.map-node.is-fog {
  border-color: rgba(150, 170, 195, .38);
  color: #8fa2b8;
  background: #0a1524;
  box-shadow: 0 0 0 5px rgba(5, 14, 25, .6);
  filter: blur(.3px);
}

.map-node.is-fog small {
  color: #8fa2b8;
}

.map-node.is-selected {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.map-legend {
  position: absolute;
  z-index: 6;
  top: 18px;
  right: 20px;
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(7, 17, 31, .72);
}

.map-legend span {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 9px;
  align-items: center;
  color: #b9c5d4;
  font-size: 11px;
  letter-spacing: .04em;
}

.map-legend i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.map-legend .lg-cleared { border-color: var(--hp); background: rgba(111, 203, 117, .5); }
.map-legend .lg-current { border-color: #86c9ff; background: rgba(88, 168, 239, .5); }
.map-legend .lg-next { border-style: dashed; }
.map-legend .lg-fog { border-color: rgba(150, 170, 195, .5); }
.map-legend .lg-boss { border-color: var(--boss); background: rgba(212, 91, 86, .45); }

.chapter-reward {
  position: absolute;
  z-index: 6;
  bottom: 14px;
  left: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--parchment);
  font-size: 12px;
  background: rgba(7, 17, 31, .74);
}

.chapter-reward svg {
  width: 15px;
  height: 15px;
  color: var(--gold-bright);
}

/* boss marker is now a button */
.boss-marker {
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.boss-marker .boss-meter {
  display: block;
}

/* --- map right column --- */
.map-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.node-detail h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
}

.node-state {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--parchment);
  font-size: 11px;
  font-weight: 700;
}

.node-state.is-current { border-color: rgba(88, 168, 239, .6); color: #9bd7ff; }
.node-state.is-next { border-color: var(--gold-bright); color: var(--gold-bright); }
.node-state.is-fog { border-color: rgba(150, 170, 195, .4); color: #9fb0c4; }

.node-detail-lead,
.node-detail-block p {
  margin: 0;
  color: #b3c1d4;
  font-size: 12px;
  line-height: 1.85;
}

.node-detail-block {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.node-detail-block > span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.node-detail-block ul {
  margin: 0;
  padding-left: 18px;
  color: #b3c1d4;
  font-size: 12px;
  line-height: 1.9;
}

.node-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-materials b {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: #cfd9e6;
  font-size: 11px;
  font-weight: 600;
}

.node-materials svg {
  width: 13px;
  height: 13px;
}

/* --- quest board rank colors (§12.1-3) --- */
.quest-board-group.is-main .board-rank { border-color: rgba(212, 91, 86, .75); color: #f0a49d; }
.quest-board-group.is-side .board-rank { border-color: rgba(88, 168, 239, .75); color: #9bd0ff; }
.quest-board-group.is-recovery .board-rank { border-color: rgba(138, 191, 104, .8); color: #b6dd97; }
.quest-board-group.is-main { border-left: 3px solid rgba(212, 91, 86, .5); }
.quest-board-group.is-side { border-left: 3px solid rgba(88, 168, 239, .5); }
.quest-board-group.is-recovery { border-left: 3px solid rgba(138, 191, 104, .55); }

.meta-chip b {
  margin-left: 6px;
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: .08em;
}

.deck-hint {
  display: none;
  margin: 9px 2px 0;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: .06em;
}

/* --- quest clear: sequenced reveal (§6.4) --- */
.clear-step {
  opacity: 0;
  animation: clearStepIn .44s cubic-bezier(.2, .7, .3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes clearStepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.impact-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 11px;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  text-align: left;
  background: rgba(12, 26, 44, .68);
}

.impact-row p {
  margin: 0;
  color: #d7e0ec;
  font-size: 13px;
  line-height: 1.8;
}

.impact-kind {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.impact-row.is-boss { border-left-color: var(--boss); }
.impact-row.is-boss .impact-kind { color: #f0a49d; }
.impact-row.is-world { border-left-color: var(--exp); }
.impact-row.is-world .impact-kind { color: #9bd0ff; }
.impact-row.is-hp { border-left-color: var(--recovery); }
.impact-row.is-hp .impact-kind { color: #b6dd97; }

.clear-note {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.85;
}

.next-quest-card {
  display: grid;
  gap: 9px;
  justify-items: center;
  margin-top: 22px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 38, 59, .8), rgba(12, 24, 40, .8));
}

.next-quest-card strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
}

.next-quest-card small {
  color: #b3c1d4;
  font-size: 12px;
  line-height: 1.8;
}

.next-quest-card .primary-action {
  margin-top: 6px;
}

/* --- job route & history (§6.7 / §4.4) --- */
.job-route {
  max-width: 1500px;
  margin: 0 auto 16px;
}

.route-steps {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.route-step {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(12, 26, 44, .55);
}

.route-step strong {
  color: #cfd9e6;
  font-family: var(--display);
  font-size: 15px;
}

.route-step small {
  grid-column: 2;
  color: var(--ink-muted);
  font-size: 12px;
}

.route-step > b {
  grid-row: 1 / span 2;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.route-dot {
  grid-row: 1 / span 2;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.route-step.is-past .route-dot { border-color: var(--hp); background: rgba(111, 203, 117, .45); }
.route-step.is-current {
  border-color: rgba(88, 168, 239, .5);
  background: linear-gradient(90deg, rgba(24, 52, 84, .8), rgba(12, 26, 44, .6));
}
.route-step.is-current .route-dot { border-color: #86c9ff; background: rgba(88, 168, 239, .6); }
.route-step.is-current strong { color: #cfe8ff; }
.route-step.is-current > b { color: #9bd0ff; }
.route-step.is-next { border-color: var(--line); }
.route-step.is-next .route-dot { border-color: var(--gold-bright); border-style: dashed; }
.route-step.is-next strong { color: var(--gold-bright); }
.route-step.is-next > b { color: var(--gold-bright); }
.route-step.is-future { opacity: .68; }
.route-step.is-future .route-dot { border-color: rgba(150, 170, 195, .4); }

.route-note {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.job-history {
  max-width: 1500px;
  margin: 16px auto 0;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(12, 26, 44, .55);
}

.history-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(111, 203, 117, .5);
  border-radius: 50%;
  color: #9edf82;
  background: rgba(21, 46, 32, .6);
}

.history-item strong {
  display: block;
  color: #cfd9e6;
  font-family: var(--display);
  font-size: 14px;
}

.history-item small {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.75;
}

.history-item > b {
  color: var(--parchment);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* --- 冒険者メニュー（モバイルのギルド/キャンプ/通知/アプリ/設定への到達路） --- */
.menu-sheet {
  position: fixed;
  z-index: 90;
  inset: 0;
}

.menu-sheet[hidden] {
  display: none;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, .66);
  backdrop-filter: blur(3px);
}

.menu-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #122033, #0a1626 24%, #071120);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .5);
  animation: sheetUp .28s ease-out;
}

@keyframes sheetUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.menu-head strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .12em;
}

.menu-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--ink-muted);
  background: rgba(12, 26, 44, .7);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.menu-grid button {
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 14px 14px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  text-align: left;
  background: rgba(14, 29, 48, .82);
}

.menu-grid button.is-active {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(201, 155, 69, .14), rgba(14, 29, 48, .9));
}

.menu-grid svg {
  width: 22px;
  height: 22px;
  color: var(--gold-bright);
}

.menu-grid span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.menu-grid small {
  color: var(--ink-muted);
  font-size: 11px;
}

body.is-menu-open {
  overflow: hidden;
}

/* --- JARVIS作戦会議: 現実の相談をゲーム進行へ戻すowner専用console --- */
.jarvis-dialog {
  position: fixed;
  z-index: 130;
  inset: 0;
}

.jarvis-dialog[hidden] {
  display: none;
}

.jarvis-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 14, .82);
  backdrop-filter: blur(7px);
}

.jarvis-console {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto auto;
  width: min(760px, calc(100vw - 32px));
  height: min(820px, calc(100vh - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 22px;
  overflow: hidden;
  border: 1px solid #4c81ad;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0, rgba(56, 139, 205, .2), transparent 34%),
    linear-gradient(155deg, #102942, #081725 48%, #050d18);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .72), inset 0 0 40px rgba(45, 121, 180, .07);
  transform: translate(-50%, -50%);
}

.jarvis-console::after {
  position: absolute;
  pointer-events: none;
  content: "";
  inset: 7px;
  border: 1px solid rgba(114, 187, 235, .1);
  border-radius: 9px;
}

.jarvis-console-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(99, 166, 215, .24);
}

.jarvis-console-head .jarvis-orb {
  width: 48px;
  height: 48px;
  margin: 0;
  animation: jarvisPulse 2.6s ease-in-out infinite;
}

@keyframes jarvisPulse {
  50% { box-shadow: 0 0 32px rgba(91, 185, 246, .42); }
}

.jarvis-console-head > div {
  display: grid;
  gap: 2px;
}

.jarvis-console-head small {
  color: #65a9d8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.jarvis-console-head strong {
  color: #d8f1ff;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .12em;
}

.jarvis-connection {
  color: #7895aa;
  font-size: 11px;
}

.jarvis-connection[data-state="online"] { color: #77d6b2; }
.jarvis-connection[data-state="working"] { color: var(--gold-bright); }
.jarvis-connection[data-state="offline"] { color: #e48b8b; }

.jarvis-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(99, 166, 215, .28);
  border-radius: 9px;
  color: #8fb5cf;
  background: rgba(5, 17, 29, .65);
}

.jarvis-close svg {
  width: 18px;
  height: 18px;
}

.jarvis-context {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 13px 0;
}

.jarvis-context span {
  min-width: 0;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(82, 142, 188, .2);
  border-radius: 8px;
  color: #b6d1e3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(7, 23, 38, .72);
}

.jarvis-context small {
  display: block;
  margin-bottom: 3px;
  color: #5e8aa9;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.jarvis-log {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  align-content: start;
  min-height: 180px;
  padding: 14px 5px 14px 0;
  overflow: auto;
}

.jarvis-message {
  width: min(88%, 620px);
  padding: 12px 14px;
  border: 1px solid rgba(91, 158, 206, .24);
  border-radius: 5px 12px 12px 12px;
  background: rgba(12, 36, 57, .88);
}

.jarvis-message.is-user {
  justify-self: end;
  border-color: rgba(198, 157, 77, .34);
  border-radius: 12px 5px 12px 12px;
  background: rgba(63, 46, 24, .62);
}

.jarvis-message.is-error {
  border-color: rgba(210, 102, 102, .38);
  background: rgba(66, 24, 31, .66);
}

.jarvis-message small {
  display: block;
  margin-bottom: 5px;
  color: #65a9d8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}

.jarvis-message.is-user small { color: var(--gold-bright); }
.jarvis-message.is-error small { color: #e48b8b; }

.jarvis-message p {
  margin: 0;
  color: #d5e4ee;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.jarvis-quick-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid rgba(99, 166, 215, .16);
}

.jarvis-quick-actions button {
  padding: 7px 10px;
  border: 1px solid rgba(93, 160, 207, .26);
  border-radius: 999px;
  color: #9fc4dc;
  font-size: 10px;
  background: rgba(8, 27, 44, .84);
}

.jarvis-reality-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 169, 78, .34);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(66, 48, 20, .7), rgba(8, 28, 45, .82));
}

.jarvis-reality-actions[hidden] { display: none; }

.jarvis-reality-actions > small {
  color: var(--gold-bright);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

.jarvis-reality-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jarvis-reality-actions button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(225, 187, 99, .38);
  border-radius: 7px;
  color: #f5dfaa;
  font-size: 10px;
  font-weight: 800;
  background: rgba(52, 37, 14, .72);
}

.jarvis-reality-actions p {
  margin: 0;
  color: #7e98aa;
  font-size: 9px;
  line-height: 1.5;
}

.jarvis-composer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.jarvis-composer > label {
  color: #75a8c9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.jarvis-composer > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.jarvis-composer textarea {
  min-height: 70px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid rgba(100, 170, 219, .36);
  border-radius: 8px;
  color: #e3f1f8;
  background: rgba(3, 14, 25, .88);
}

.jarvis-composer button {
  display: flex;
  gap: 8px;
  align-items: center;
  align-self: stretch;
  padding: 0 17px;
  border: 1px solid #6baedb;
  border-radius: 8px;
  color: #07121e;
  font-weight: 900;
  background: linear-gradient(180deg, #9ddcff, #5ca6d7);
}

.jarvis-composer button:disabled {
  cursor: wait;
  opacity: .42;
}

.jarvis-composer button svg {
  width: 15px;
  height: 15px;
}

.jarvis-composer > small {
  color: #647f92;
  font-size: 9px;
}

@media (max-width: 600px) {
  .jarvis-console {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    padding: 17px 14px calc(15px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    grid-template-rows: auto minmax(74px, auto) minmax(120px, 1fr) auto auto auto;
    transform: none;
  }

  .jarvis-console-head .jarvis-orb {
    width: 40px;
    height: 40px;
  }

  .jarvis-console-head strong { font-size: 15px; }
  .jarvis-context {
    grid-template-columns: repeat(3, minmax(126px, 1fr));
    grid-auto-rows: minmax(48px, auto);
    padding-bottom: 9px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .jarvis-context span { display: block; min-height: 48px; }
  .jarvis-log { min-height: 120px; }
  .jarvis-message { width: 94%; }
  .jarvis-reality-actions > div { flex-wrap: nowrap; overflow-x: auto; }
  .jarvis-reality-actions button { flex: 0 0 auto; }
  .jarvis-composer > div { grid-template-columns: 1fr; }
  .jarvis-composer button { min-height: 44px; justify-content: center; }
}

/* --- 冒険モードは他のKPI/通知を隠す（§6.3） --- */
body.is-focus-mode .resource-strip,
body.is-focus-mode .utility-nav {
  display: none;
}

/* --- 世界地図: 右カラムが伸びても地図パネルは伸ばさない（余白の暴れ防止） --- */
.world-map-layout {
  align-items: start;
}

.world-map-panel {
  height: clamp(560px, 66vh, 720px);
  min-height: 0;
}

/* ============================================================
   Mobile 767px以下 — 縦ルートマップ / 1枚見せデッキ / ナビ可読性
   ============================================================ */
@media (max-width: 767px) {
  .mobile-nav button {
    font-size: 10px;
  }

  .player-copy > span:last-child {
    font-size: 11px;
  }

  /* クエストデッキは1枚を丸ごと見せる（見切れ回避） */
  .quest-card {
    flex: 0 0 100%;
    min-height: 0;
  }

  .deck-hint {
    display: block;
  }

  /* マップは横スクロールでなく縦ルートへ変形（§9） */
  .campaign-panel,
  .world-map-panel {
    overflow: visible;
    min-height: 0;
  }

  .campaign-head {
    position: static;
    top: auto;
    left: auto;
    padding: 16px 16px 0;
  }

  .world-map-head {
    padding-bottom: 4px;
  }

  .map-scene,
  .world-map-panel .map-scene {
    position: relative;
    inset: auto;
    top: auto;
    overflow: visible;
    border-radius: 0 0 10px 10px;
  }

  .map-land,
  .map-mountain,
  .boss-fortress,
  .route-line,
  .map-legend {
    display: none;
  }

  .map-nodes {
    position: relative;
    inset: auto;
    display: grid;
    gap: 10px;
    padding: 16px 16px 6px;
  }

  .map-nodes::before {
    position: absolute;
    top: 32px;
    bottom: 42px;
    left: 34px;
    width: 0;
    border-left: 2px dashed rgba(240, 207, 122, .42);
    content: "";
  }

  .map-node {
    position: static;
    left: auto !important;
    bottom: auto !important;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: center;
    width: auto;
    height: auto;
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-align: left;
  }

  .map-node .node-mark {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: #0c1b2e;
    box-shadow: 0 0 0 4px rgba(7, 17, 31, .95);
  }

  .map-node svg {
    width: 17px;
    height: 17px;
  }

  .map-node.is-current {
    width: auto;
    height: auto;
  }

  .map-node.is-current .node-mark {
    border-color: #86c9ff;
    box-shadow: 0 0 0 4px rgba(7, 17, 31, .95), 0 0 18px rgba(88, 168, 239, .6);
  }

  .map-node.is-next .node-mark {
    border-style: dashed;
    border-color: var(--gold-bright);
  }

  .map-node.is-fog .node-mark {
    border-color: rgba(150, 170, 195, .38);
  }

  .map-node.is-cleared::after {
    display: none;
  }

  .map-node.is-cleared .node-mark::after {
    position: absolute;
    right: -4px;
    bottom: -3px;
    display: grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border: 2px solid #0c1b2e;
    border-radius: 50%;
    color: #092111;
    font-size: 10px;
    font-weight: 900;
    background: var(--hp);
    content: "✓";
  }

  .map-node small,
  .map-node.is-current small {
    position: static;
    top: auto;
    left: auto;
    max-width: none;
    font-size: 13px;
    text-align: left;
    text-shadow: none;
    transform: none;
  }

  .map-node small em {
    display: block;
    font-size: 11px;
  }

  .map-node.is-cleared small em {
    display: block;
    color: #8fbf92;
  }

  .boss-marker {
    position: static;
    right: auto;
    bottom: auto;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 4px 12px;
    width: auto;
    margin-top: 6px;
    padding: 12px 14px 12px 2px;
    text-align: left;
  }

  .boss-marker span:first-child {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(212, 91, 86, .8);
    border-radius: 50%;
    color: #ef7770;
    font-size: 9px;
    letter-spacing: .06em;
    background: #170a0d;
    box-shadow: 0 0 0 4px rgba(7, 17, 31, .95);
  }

  .boss-marker strong {
    grid-column: 2;
    margin: 0;
    font-size: 14px;
  }

  .boss-marker .boss-meter {
    grid-column: 2;
    width: 100%;
  }

  .boss-marker em {
    grid-column: 2;
    margin-top: 0;
    font-size: 12px;
    text-align: left;
  }

  .chapter-reward {
    position: static;
    bottom: auto;
    left: auto;
    margin: 4px 16px 16px;
    font-size: 12px;
  }

  .map-side {
    gap: 12px;
  }

  .impact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .route-step,
  .history-item {
    grid-template-columns: 20px 1fr;
  }

  .route-step > b,
  .history-item > b {
    grid-row: auto;
    grid-column: 2;
  }

  .history-item {
    grid-template-columns: 36px 1fr;
  }

  .history-mark {
    width: 36px;
    height: 36px;
  }
}

/* --- ルート線はノード座標から生成したSVG（div 2本の固定バーを置換） --- */
.route-svg {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.route-svg polyline {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-svg .route-done {
  stroke: var(--gold-bright);
  stroke-width: 5;
  stroke-dasharray: 11 7;
  filter: drop-shadow(0 0 5px rgba(240, 207, 122, .35));
}

.route-svg .route-open {
  stroke: rgba(240, 207, 122, .62);
  stroke-width: 4;
  stroke-dasharray: 9 8;
}

.route-svg .route-locked {
  stroke: rgba(160, 178, 200, .3);
  stroke-width: 3;
  stroke-dasharray: 5 9;
}

/* 選択詳細パネルの見出しがパネル角飾りと重ならないように */
.node-detail {
  padding-top: 26px;
}

@media (max-width: 767px) {
  .route-svg {
    display: none;
  }
}

/* --- 1440×900でMAINクエストの「冒険を始める」がスクロール前に入るよう縦を締める
       （余白は削らず、過大な見出し・余分なマージンだけを詰める。§12.2-5） --- */
@media (min-width: 768px) {
  .job-panel {
    min-height: 0;
  }

  .job-arrow {
    margin: 14px 0 14px;
  }

  .job-arrow strong {
    font-size: clamp(19px, 1.5vw, 24px);
  }

  .campaign-panel {
    min-height: 340px;
  }

  .adventure-layout > .campaign-panel,
  .adventure-layout > .job-panel {
    max-height: 430px;
  }

  .job-panel .requirement-list {
    align-content: start;
  }
}

/* BOSS表示が城の黒に沈まないよう、後ろに薄い暗幕を敷く */
.boss-marker {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(9, 14, 24, .55);
}

.boss-marker span,
.boss-marker strong,
.boss-marker em {
  text-shadow: 0 2px 6px rgba(0, 0, 0, .9);
}

/* route-step の自動配置崩れ（ジョブ名が右端へ飛ぶ）を明示配置で修正 */
.route-step > .route-dot {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.route-step > strong {
  grid-column: 2;
  grid-row: 1;
}

.route-step > small {
  grid-column: 2;
  grid-row: 2;
}

.route-step > b {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
}

@media (max-width: 767px) {
  .route-step > b {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  /* 縦ルート時のラベルは円のすぐ右に寄せる（中央寄せの空白を除去） */
  .map-node {
    place-items: center start;
  }

  .map-node small,
  .map-node.is-current small {
    width: auto;
  }

  .boss-marker {
    place-items: center start;
  }
}

/* reduced motion: 遅延も0にして「一瞬消えている」状態を作らない（§8） */
@media (prefers-reduced-motion: reduce) {
  .clear-step,
  .menu-panel {
    animation-delay: 0s !important;
    opacity: 1 !important;
  }
}

/* --- Phase 1: 実データ接続と現行機能ブリッジ --- */
.legacy-return {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  background: rgba(8, 18, 31, .72);
}

.utility-nav .legacy-return {
  min-height: 34px;
  padding: 0 9px;
}

[data-game-mode="mock"] .legacy-return {
  display: none;
}

[data-game-mode="mock"] .mobile-legacy {
  display: none;
}

.live-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(111, 185, 235, .28);
  border-radius: 8px;
  color: #b9d7ef;
  font-size: 11px;
  background: rgba(20, 55, 81, .32);
}

.live-notice.is-warning {
  border-color: rgba(223, 177, 82, .4);
  color: #f0d897;
  background: rgba(95, 65, 22, .24);
}

.live-notice a {
  color: var(--gold-bright);
  font-weight: 800;
}

.live-notice small {
  color: inherit;
  opacity: .75;
}

.adventure-layout.is-live > .campaign-panel,
.adventure-layout.is-live > .job-panel {
  max-height: none;
}

.adventure-layout.is-live > .campaign-panel {
  padding: 18px;
}

.adventure-layout.is-live .campaign-head {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 14px;
}

.live-route {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 14px;
  min-height: 270px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 24% 50%, rgba(95, 160, 214, .17), transparent 34%),
    linear-gradient(135deg, rgba(14, 34, 56, .9), rgba(7, 18, 32, .94));
}

.live-location,
.live-boss-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(188, 201, 220, .12);
  background: rgba(9, 23, 39, .58);
}

.live-location.is-attention {
  border-color: rgba(224, 153, 84, .46);
  background: linear-gradient(150deg, rgba(113, 55, 34, .2), rgba(9, 23, 39, .72));
  box-shadow: inset 3px 0 rgba(224, 153, 84, .72);
}

.live-location.is-attention .section-kicker,
.live-location.is-attention .live-location-context {
  color: #efb77d;
}

.live-location.is-attention .live-location-mark {
  border-color: rgba(224, 153, 84, .56);
  color: #efb77d;
  background: radial-gradient(circle, rgba(134, 67, 40, .24), rgba(5, 12, 22, .94));
}

.live-location-mark,
.live-map-compass {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(49, 81, 116, .58), rgba(5, 12, 22, .94));
  box-shadow: 0 0 24px rgba(70, 143, 207, .13);
}

.live-location-mark svg,
.live-map-compass svg {
  width: 27px;
  height: 27px;
}

.live-location h2,
.live-boss-summary h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
}

.live-location p,
.live-boss-summary p,
.live-map-placeholder p,
.live-empty p {
  color: var(--ink-muted);
  line-height: 1.8;
}

.boss-phase small {
  display: block;
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 10px;
}

.boss-phase .boss-phase-condition {
  margin-top: 3px;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.phase-meter.is-unknown {
  background: repeating-linear-gradient(135deg, rgba(130, 145, 165, .18) 0 5px, transparent 5px 10px);
}

.job-unconfigured {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 14px 0;
  padding: 20px 14px;
  border: 1px dashed rgba(222, 190, 112, .35);
  text-align: center;
  background: rgba(27, 38, 54, .48);
}

.job-unconfigured > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gold-bright);
}

.job-unconfigured svg {
  width: 30px;
  height: 30px;
}

.job-unconfigured strong {
  color: var(--parchment);
}

.job-unconfigured small {
  color: var(--ink-muted);
  line-height: 1.7;
}

.live-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
  min-height: 120px;
  padding: 18px;
  border: 1px dashed rgba(164, 181, 203, .25);
  color: var(--ink);
  background: rgba(10, 23, 40, .48);
}

.live-empty.compact {
  min-height: 60px;
  padding: 12px;
  color: var(--ink-muted);
}

.live-empty.large {
  min-height: 260px;
  align-items: center;
  text-align: center;
}

.live-empty.quest-empty {
  min-width: min(420px, 100%);
}

.live-quest-meta:empty {
  display: none;
}

.live-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(71, 126, 175, .18), transparent 36%),
    linear-gradient(rgba(8, 21, 37, .66), rgba(7, 16, 29, .9));
}

.live-map-placeholder h2 {
  margin: 4px 0 8px;
  color: var(--parchment);
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
}

.live-map-note {
  max-width: 560px;
  padding: 12px 14px;
  border-left: 2px solid var(--line);
  text-align: left;
  background: rgba(9, 22, 37, .64);
}

.live-category-list {
  display: grid;
  gap: 9px;
}

.live-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 24, 41, .55);
}

.live-category span {
  color: var(--ink-muted);
}

.live-category strong {
  color: #9fcff3;
  font-family: Georgia, serif;
}

.live-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.live-link-row .panel-link {
  flex: 1 1 150px;
  margin-top: 0;
}

.legacy-hub {
  position: fixed;
  z-index: 100;
  inset: 0;
}

.legacy-hub[hidden] {
  display: none;
}

.legacy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, .76);
  backdrop-filter: blur(4px);
}

.legacy-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(150deg, #122238, #091524 50%, #07111f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .62);
  transform: translate(-50%, -50%);
}

.legacy-panel .menu-head {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.legacy-panel .menu-head div {
  display: grid;
  gap: 4px;
}

.legacy-panel .menu-head small {
  color: var(--ink-muted);
}

.legacy-panel section + section {
  margin-top: 22px;
}

.legacy-panel h2 {
  margin: 0 0 10px;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .12em;
}

.legacy-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.legacy-link-grid a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  background: rgba(17, 34, 56, .72);
}

.legacy-link-grid a:hover {
  border-color: var(--gold-bright);
  background: rgba(201, 155, 69, .12);
}

.legacy-link-grid.is-apps a {
  color: var(--gold-bright);
}

/* --- Phase 2: 実ゴールマップ・ジョブ定義・証拠 --- */
.live-location-context {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.secondary-action:disabled,
.primary-action:disabled {
  cursor: default;
  filter: grayscale(.45);
  opacity: .55;
}

.live-job-summary {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(201, 155, 69, .25);
  text-align: center;
  background: linear-gradient(145deg, rgba(28, 46, 68, .78), rgba(9, 21, 36, .88));
}

.live-job-summary > small,
.job-shift-arrow {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.live-job-summary > strong,
.live-job-summary h3 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
}

.live-job-summary .job-current-crest {
  width: 48px;
  height: 48px;
}

.live-job-requirements {
  display: grid;
  gap: 9px;
  width: 100%;
}

.live-job-requirements.is-compact {
  gap: 6px;
}

.live-job-requirement {
  display: grid;
  gap: 5px;
}

.live-job-requirement > div:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 10px;
  text-align: left;
}

.live-job-requirement span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.live-job-requirement svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.live-job-requirement strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: Georgia, serif;
}

.live-job-requirement.is-met > div:first-child {
  color: var(--recovery);
}

.live-region-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 0 auto 14px;
  max-width: 1450px;
}

.live-region-tab {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 72px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  color: var(--ink-muted);
  text-align: left;
  background: rgba(8, 20, 34, .78);
}

.live-region-tab span {
  color: #7593b2;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.live-region-tab strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-region-tab small {
  font-size: 9px;
}

.live-region-tab:hover,
.live-region-tab.is-selected {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(38, 50, 67, .92);
}

.live-region-tab.is-current {
  box-shadow: inset 3px 0 var(--gold-bright);
}

.live-region-tab.has-route-review {
  border-color: rgba(224, 153, 84, .48);
  background: linear-gradient(145deg, rgba(105, 52, 34, .2), rgba(8, 20, 34, .84));
  box-shadow: inset 3px 0 rgba(224, 153, 84, .74);
}

.live-region-tab.has-route-review span,
.live-region-tab.has-route-review small,
.map-progress.is-attention {
  color: #efb77d;
}

.world-map-layout.is-live .world-map-panel {
  min-height: 680px;
}

.world-map-layout.is-live .world-map-head {
  gap: 16px;
  padding: 13px 18px;
}

.world-map-layout.is-live .world-map-head .section-kicker {
  margin-bottom: 4px;
}

.live-goal-map {
  min-height: 610px;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 15%, rgba(77, 139, 193, .16), transparent 33%),
    linear-gradient(160deg, rgba(10, 29, 49, .85), rgba(6, 15, 27, .96));
}

.live-region-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(201, 155, 69, .22);
  background: rgba(11, 27, 46, .76);
}

.live-region-intro .live-map-compass {
  width: 50px;
  height: 50px;
  margin: 0;
}

.live-region-intro strong {
  color: var(--parchment);
  font-family: var(--display);
}

.live-region-intro p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.6;
}

.live-route-warning {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid rgba(224, 153, 84, .28);
  color: #d8af85;
  font-size: 10px;
  line-height: 1.55;
  background: rgba(105, 52, 34, .16);
}

.live-route-warning svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.live-node-route {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 8px 0 8px 18px;
}

.live-node-route::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 41px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(88, 168, 239, .35), transparent);
  content: "";
}

.live-map-node {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  margin-left: calc((var(--node-depth) - 1) * 24px);
  padding: 9px 13px 9px 7px;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  text-align: left;
  background: rgba(8, 20, 35, .9);
}

.live-map-node:hover,
.live-map-node.is-selected {
  border-color: var(--gold-bright);
  background: rgba(27, 44, 64, .96);
}

.live-map-node.is-cleared {
  border-color: rgba(111, 203, 117, .36);
}

.live-map-node.is-current {
  border-color: var(--gold-bright);
  box-shadow: 0 0 22px rgba(201, 155, 69, .12);
}

.live-map-node.is-archived {
  opacity: .6;
}

.live-node-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-bright);
  background: #0b1a2c;
}

.live-node-mark svg {
  width: 20px;
  height: 20px;
}

.live-node-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.live-node-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-node-copy small {
  color: #7fa0bf;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.live-node-quests {
  color: var(--ink-muted);
  font-size: 9px;
  white-space: nowrap;
}

.live-orphan-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid #ad7d48;
  color: #d1b381;
  font-size: 10px;
  background: rgba(78, 52, 28, .22);
}

.live-detail-state {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.boss-goal-gate {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 13px;
  border: 1px dashed rgba(201, 155, 69, .34);
  background: rgba(41, 31, 23, .32);
}

.boss-goal-gate > span,
.boss-goal-gate > small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.boss-goal-gate strong {
  color: var(--parchment);
}

.boss-goal-gate p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.7;
}

.boss-goal-gate.is-cleared {
  border-color: rgba(111, 203, 117, .5);
}

.live-job-route {
  min-height: 0;
  padding: 18px;
}

.live-job-route-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.live-job-route-step {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  text-align: center;
  background: rgba(8, 20, 35, .68);
}

.live-job-route-step > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #7694b0;
}

.live-job-route-step svg {
  width: 30px;
  height: 30px;
}

.live-job-route-step small {
  color: #718ca7;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.live-job-route-step strong {
  color: var(--ink);
  font-family: var(--display);
}

.live-job-route-step.is-current {
  border-color: #6f9bc2;
}

.live-job-route-step.is-next {
  border-color: var(--gold-bright);
  box-shadow: inset 0 -3px rgba(240, 207, 122, .5);
}

.job-change-status {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 18px 20px;
}

.job-change-status h2 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
}

.job-change-status h2 span {
  color: var(--gold);
}

.job-change-status p {
  margin: 7px 0 0;
  color: var(--ink-muted);
}

.job-change-status > strong {
  flex: 0 0 auto;
  color: var(--gold-bright);
}

.job-change-status.is-ready {
  border-color: rgba(111, 203, 117, .5);
  background: linear-gradient(145deg, rgba(25, 61, 47, .54), rgba(9, 23, 31, .92));
}

.job-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.job-proof-card {
  padding: 15px;
  border: 1px solid var(--line-soft);
  background: rgba(9, 22, 38, .82);
}

.job-proof-card.is-met {
  border-color: rgba(111, 203, 117, .38);
}

.job-proof-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.job-proof-head > span {
  color: var(--gold-bright);
}

.job-proof-head svg {
  width: 22px;
  height: 22px;
}

.job-proof-head > div {
  display: grid;
  gap: 3px;
}

.job-proof-head strong {
  color: var(--ink);
}

.job-proof-head small {
  color: #7593b2;
  font-size: 8px;
  letter-spacing: .12em;
}

.job-proof-head b {
  color: var(--parchment);
  font-family: Georgia, serif;
}

.job-evidence-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.job-evidence-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(111, 203, 117, .16);
  background: rgba(29, 62, 48, .18);
}

.job-evidence-list li > span {
  color: var(--recovery);
}

.job-evidence-list svg {
  width: 14px;
  height: 14px;
}

.job-evidence-list li div {
  display: grid;
  gap: 3px;
}

.job-evidence-list small {
  color: var(--ink-muted);
}

.job-evidence-list a {
  color: #8fc6ed;
  font-size: 10px;
}

.job-evidence-empty {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
}

.job-evidence-add {
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 9px;
}

.job-evidence-add summary {
  cursor: pointer;
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 800;
}

.job-evidence-add form {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.job-definition-panel {
  margin-top: 14px;
  padding: 18px;
}

.job-definition-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.job-definition-head h2 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
}

.job-definition-head > small {
  color: var(--ink-muted);
}

.job-setup-form {
  display: grid;
  gap: 13px;
}

.job-setup-form label {
  display: grid;
  gap: 6px;
}

.job-setup-form label > span,
.job-setup-form legend {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.job-setup-form input,
.job-setup-form textarea,
.job-evidence-add input,
.job-evidence-add textarea {
  width: 100%;
  border: 1px solid rgba(164, 181, 203, .25);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(5, 15, 27, .88);
}

.job-setup-form input,
.job-evidence-add input {
  min-height: 42px;
  padding: 0 11px;
}

.job-setup-form textarea,
.job-evidence-add textarea {
  padding: 10px 11px;
  resize: vertical;
}

.job-setup-form input:focus,
.job-setup-form textarea:focus,
.job-evidence-add input:focus,
.job-evidence-add textarea:focus {
  border-color: var(--gold-bright);
  outline: none;
}

.job-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.job-setup-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line-soft);
}

.job-proof-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 9px;
  align-items: end;
}

.job-proof-input label span {
  font-size: 8px;
}

.job-setup-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.job-setup-actions small {
  color: var(--ink-muted);
}

@media (max-width: 1100px) {
  .legacy-return {
    display: none;
  }

  .live-route {
    grid-template-columns: 1fr;
  }

  .live-region-intro {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .live-region-intro .secondary-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  [data-game-mode="live"] .mobile-nav {
    grid-template-columns: repeat(6, 1fr);
  }

  .view-heading {
    flex-direction: column;
  }

  .view-heading > .panel-link {
    align-self: flex-start;
    margin-top: 0;
    padding: 0 12px;
    white-space: nowrap;
  }

  .mobile-nav .mobile-legacy {
    display: grid;
    gap: 2px;
    place-items: center;
    align-content: center;
    color: #93a4bb;
    font-size: 9px;
    background: transparent;
  }

  .live-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-route {
    padding: 8px;
  }

  .live-location,
  .live-boss-summary {
    padding: 14px;
  }

  .live-map-placeholder {
    min-height: 420px;
    padding: 24px 16px;
  }

  .live-region-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .world-map-layout.is-live .world-map-panel,
  .live-goal-map {
    min-height: 0;
  }

  .world-map-layout.is-live .world-map-head,
  .live-region-intro,
  .job-change-status,
  .job-definition-head,
  .job-setup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .world-map-layout.is-live .world-map-head {
    display: flex;
  }

  .live-region-intro {
    grid-template-columns: 1fr;
  }

  .live-region-intro .live-map-compass {
    width: 44px;
    height: 44px;
  }

  .live-node-route {
    padding-left: 0;
  }

  .live-node-route::before {
    left: 28px;
  }

  .live-map-node {
    grid-template-columns: 42px minmax(0, 1fr);
    margin-left: calc((var(--node-depth) - 1) * 12px);
  }

  .live-node-quests {
    grid-column: 2;
  }

  .job-setup-grid,
  .job-proof-input {
    grid-template-columns: 1fr;
  }

  .job-change-status {
    display: flex;
  }

  .legacy-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 28px);
    border-radius: 14px 14px 0 0;
    transform: none;
  }

  .legacy-link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phase 3 — 現実の行動を開始・継続・完了する冒険ループ */
.is-live-focus .focus-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 7%, rgba(83, 195, 255, .16), transparent 31%),
    linear-gradient(145deg, rgba(22, 39, 61, .98), rgba(10, 19, 31, .98));
}

.is-live-focus .focus-hero::after {
  position: absolute;
  right: -45px;
  bottom: -75px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(111, 205, 255, .13);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(111, 205, 255, .035),
    0 0 0 52px rgba(111, 205, 255, .02);
  content: "";
  pointer-events: none;
}

.live-next-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.live-next-step > span,
.hp-checkin-form label > span {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.live-next-step textarea,
.hp-checkin-form textarea,
.hp-checkin-form select {
  width: 100%;
  border: 1px solid rgba(130, 173, 214, .24);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(5, 14, 25, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.live-next-step textarea,
.hp-checkin-form textarea {
  min-height: 76px;
  padding: 12px 13px;
  resize: vertical;
}

.live-next-step textarea:focus,
.hp-checkin-form textarea:focus,
.hp-checkin-form select:focus {
  border-color: rgba(104, 204, 255, .66);
  outline: 2px solid rgba(104, 204, 255, .14);
  outline-offset: 1px;
}

.hp-checkin-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 21px;
  border: 1px solid rgba(100, 183, 229, .22);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(31, 53, 75, .65), rgba(10, 23, 38, .78)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(255, 255, 255, .012) 33px);
}

.hp-checkin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hp-checkin-grid label {
  display: grid;
  gap: 7px;
}

.hp-checkin-form select {
  min-height: 42px;
  padding: 0 11px;
}

.job-change-confirm {
  min-width: 210px;
  border-color: rgba(255, 218, 117, .65);
  color: #fff8da;
  background: linear-gradient(180deg, #8b6621, #684711);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .18),
    0 0 22px rgba(245, 196, 72, .13);
}

.job-unlock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.job-unlock-list li {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(233, 188, 82, .25);
  color: #e9d9a9;
  font-size: 11px;
  background: rgba(113, 80, 18, .16);
}

.job-unlock-list svg {
  width: 12px;
  height: 12px;
  color: #f1c65f;
}

.job-change-confirm:disabled,
.primary-action:disabled,
.secondary-action:disabled,
.quest-start:disabled {
  cursor: wait;
  filter: grayscale(.35);
  opacity: .58;
}

.job-change-celebration {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 21px 24px;
  border-color: rgba(255, 216, 103, .43);
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 211, 87, .18), transparent 26%),
    linear-gradient(110deg, rgba(61, 47, 20, .88), rgba(20, 29, 43, .95));
  animation: job-change-arrival .48s ease both;
}

.job-change-celebration .job-current-crest {
  flex: 0 0 auto;
  color: #ffe497;
  background: rgba(255, 216, 105, .11);
  box-shadow: 0 0 28px rgba(255, 212, 90, .13);
}

.job-change-celebration h2 {
  margin: 4px 0 5px;
  color: #fff6d7;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(20px, 2.4vw, 30px);
}

.job-change-celebration h2 span {
  padding: 0 8px;
  color: #e9bd54;
}

.job-change-celebration p:last-child {
  margin: 0;
  color: var(--ink-muted);
}

.job-history-panel {
  margin-bottom: 18px;
  padding: 21px 24px;
}

.job-history-panel h2 {
  margin: 5px 0 15px;
  color: var(--ink);
  font-family: Georgia, "Yu Mincho", serif;
}

.job-history-list {
  display: grid;
  gap: 8px;
}

.job-history-list article {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(121, 155, 190, .15);
  background: rgba(7, 18, 30, .48);
}

.job-history-list article > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(94, 208, 162, .38);
  border-radius: 50%;
  color: #8ce1ba;
  background: rgba(70, 176, 132, .1);
}

.job-history-list svg {
  width: 14px;
  height: 14px;
}

.job-history-list article div {
  display: grid;
  gap: 3px;
}

.job-history-list small {
  color: var(--ink-muted);
}

.live-job-route-step.is-past span {
  border-color: rgba(103, 207, 160, .45);
  color: #8ee1bb;
  background: rgba(68, 169, 127, .12);
}

@keyframes job-change-arrival {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  .hp-checkin-form {
    padding: 16px;
  }

  .hp-checkin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .job-change-celebration {
    align-items: flex-start;
    padding: 18px;
  }

  .job-change-celebration .job-current-crest {
    width: 46px;
    height: 46px;
  }

  .job-change-confirm {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-change-celebration {
    animation: none;
  }
}

/* ============================================================
   Phase 4 — tablet drawer / keyboard / motion / sound
   ============================================================ */
.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 1px solid var(--gold-bright);
  border-radius: 8px;
  color: #07111f;
  font-weight: 800;
  background: var(--gold-bright);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

:where(button, a, input, textarea, select):focus-visible {
  outline: 2px solid #9bd7ff;
  outline-offset: 3px;
}

.utility-nav [data-audio-toggle][aria-pressed="true"] {
  color: var(--gold-bright);
  background: rgba(201, 155, 69, .1);
}

.shortcut-dialog {
  position: fixed;
  z-index: 120;
  inset: 0;
}

.shortcut-dialog[hidden] {
  display: none;
}

.shortcut-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, .76);
  backdrop-filter: blur(4px);
}

.shortcut-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(150deg, #122238, #091524 50%, #07111f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .62);
  transform: translate(-50%, -50%);
}

.shortcut-panel .menu-head {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.shortcut-panel .menu-head div {
  display: grid;
  gap: 4px;
}

.shortcut-panel .menu-head small {
  color: var(--ink-muted);
}

.shortcut-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.shortcut-list > div {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(0, 1.5fr);
  gap: 18px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.shortcut-list dt,
.shortcut-list dd {
  margin: 0;
}

.shortcut-list dt {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--parchment);
  font-weight: 800;
}

.shortcut-list dd {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.65;
}

.shortcut-list kbd {
  min-width: 28px;
  padding: 4px 7px;
  border: 1px solid rgba(155, 215, 255, .36);
  border-bottom-width: 3px;
  border-radius: 6px;
  color: #d9efff;
  font-family: inherit;
  font-size: 11px;
  text-align: center;
  background: rgba(32, 66, 98, .42);
}

.tablet-detail-action,
.map-detail-close,
.map-detail-backdrop {
  display: none;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .world-map-layout,
  .world-map-layout.is-live {
    grid-template-columns: minmax(0, 1fr);
  }

  .world-map-panel,
  .world-map-layout.is-live .world-map-panel {
    width: 100%;
  }

  .world-map-head {
    gap: 12px;
  }

  .tablet-detail-action {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--parchment);
    font-size: 11px;
    font-weight: 800;
    background: rgba(201, 155, 69, .09);
  }

  .tablet-detail-action svg,
  .map-detail-close svg {
    width: 15px;
    height: 15px;
  }

  .map-side {
    position: fixed;
    z-index: 111;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: min(440px, calc(100vw - 82px));
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(155deg, #122238, #091524 50%, #07111f);
    box-shadow: -24px 0 70px rgba(0, 0, 0, .58);
    transform: translateX(calc(100% + 28px));
    transition: transform .24s ease;
  }

  .map-side.is-open {
    transform: none;
  }

  .map-side > * + * {
    margin-top: 16px;
  }

  .map-detail-close {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 42px;
    margin-bottom: 12px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
    background: rgba(10, 25, 42, .96);
  }

  .map-detail-backdrop {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: block;
    border: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(3, 8, 16, .66);
    backdrop-filter: blur(3px);
    transition: opacity .2s ease;
  }

  body.is-map-detail-open {
    overflow: hidden;
  }

  body.is-map-detail-open .map-detail-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 767px) {
  .utility-nav [data-shortcut-help] {
    display: none;
  }

  .menu-panel {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .shortcut-list > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

/* ============================================================
   Phase 7 P1 — deliberate adventure leave flow
   ============================================================ */
.quest-abandon-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(224, 153, 84, .38);
  border-left: 3px solid #df9954;
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 50%, rgba(224, 153, 84, .09), transparent 34%),
    rgba(31, 18, 20, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.quest-abandon-confirm small {
  display: block;
  margin-bottom: 4px;
  color: #df9954;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}

.quest-abandon-confirm strong {
  display: block;
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 17px;
}

.quest-abandon-confirm p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.65;
}

.quest-abandon-confirm-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quest-abandon-danger {
  border-color: rgba(224, 153, 84, .5);
  color: #ffd7ae;
  background: rgba(134, 67, 40, .22);
}

.quest-leave-action {
  color: #dcb58f;
}

@media (max-width: 1100px) {
  .quest-abandon-confirm {
    grid-template-columns: 1fr;
  }

  .quest-abandon-confirm-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .quest-abandon-confirm {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .quest-abandon-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quest-abandon-confirm-actions .secondary-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 7 P1 — job requirement configuration guard
   ============================================================ */
.live-job-summary.has-config-conflict,
.job-change-status.has-config-conflict,
.job-proof-card.is-config-conflict {
  border-color: rgba(224, 153, 84, .48);
  background: linear-gradient(145deg, rgba(64, 35, 29, .5), rgba(10, 22, 35, .92));
}

.live-job-requirement.is-config-conflict > div:first-child {
  color: #f0b26f;
}

.live-job-requirement.is-config-conflict .phase-meter i {
  background: linear-gradient(90deg, #9c572f, #df9954);
}

.job-config-inline-warning {
  color: #efb77d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: left;
}

.job-config-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  border-color: rgba(224, 153, 84, .5);
  background:
    radial-gradient(circle at 8% 20%, rgba(224, 153, 84, .1), transparent 30%),
    linear-gradient(145deg, rgba(58, 32, 28, .7), rgba(9, 22, 35, .94));
}

.job-config-warning-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(224, 153, 84, .5);
  border-radius: 50%;
  color: #efb77d;
  background: rgba(134, 67, 40, .2);
}

.job-config-warning-mark svg {
  width: 20px;
  height: 20px;
}

.job-config-warning h2 {
  margin: 2px 0 8px;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 21px;
}

.job-config-warning ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-config-warning li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border: 1px solid rgba(224, 153, 84, .2);
  background: rgba(12, 22, 33, .55);
}

.job-config-warning li strong {
  color: var(--ink);
}

.job-config-warning li span,
.job-config-warning > div > p:last-child {
  color: #d8af85;
  font-size: 11px;
  line-height: 1.65;
}

.job-proof-config-warning {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 2px solid #df9954;
  color: #efb77d;
  font-size: 10px;
  line-height: 1.6;
  background: rgba(134, 67, 40, .12);
}

.job-proof-config-action {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(224, 153, 84, .2);
  color: #d8af85;
  font-size: 10px;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .job-config-warning {
    grid-template-columns: 1fr;
  }

  .job-config-warning li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .clear-step,
  .job-change-celebration {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Phase 13 — shared-data UI switch and boss quest guidance
   ============================================================ */
.legacy-return {
  border-color: rgba(126, 176, 216, .32);
  color: #a9cce5;
  background: linear-gradient(135deg, rgba(63, 112, 151, .15), rgba(8, 18, 31, .76));
}

.quest-card-labels {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.boss-training-quest-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(224, 153, 84, .34);
  border-radius: 999px;
  color: #efb372;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .035em;
  background: rgba(110, 55, 35, .17);
}

.quest-meta .boss-training-quest-chip {
  border-color: rgba(224, 153, 84, .28);
  color: #e3aa6c;
}

@media (max-width: 767px) {
  .mobile-nav .mobile-legacy span {
    letter-spacing: -.03em;
  }

  .quest-card-labels {
    align-items: flex-start;
    flex-direction: column;
  }

  .boss-training-quest-chip {
    max-width: 100%;
    white-space: normal;
  }
}

/* ============================================================
   Phase 14 — BOSS quest roadmap
   ============================================================ */
.boss-quest-roadmap {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(112, 185, 225, .18);
  background:
    linear-gradient(135deg, rgba(22, 61, 88, .16), rgba(4, 13, 23, .54)),
    rgba(3, 10, 18, .42);
}

.boss-roadmap-head {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.boss-roadmap-head h4 {
  margin: 4px 0 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .035em;
}

.boss-roadmap-summary {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  text-align: right;
}

.boss-roadmap-summary span {
  color: var(--ink);
  font-size: 9px;
}

.boss-roadmap-summary b {
  color: #8fe3b6;
  font-family: var(--display);
  font-size: 13px;
}

.boss-roadmap-summary small {
  color: #8298ad;
  font-size: 8px;
}

.boss-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.boss-roadmap-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(169, 188, 211, .11);
  background: rgba(4, 13, 23, .66);
}

.boss-roadmap-card > header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.boss-roadmap-card > header > div {
  display: grid;
  gap: 2px;
}

.boss-roadmap-card > header small {
  color: #87b7d5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.boss-roadmap-card > header strong {
  color: #f0b674;
  font-family: var(--display);
  font-size: 16px;
}

.boss-roadmap-card > header > span {
  padding: 4px 6px;
  border: 1px solid rgba(93, 205, 145, .24);
  color: #8fe3b6;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .06em;
  background: rgba(44, 126, 84, .1);
}

.boss-roadmap-card ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boss-roadmap-card li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(169, 188, 211, .07);
}

.boss-roadmap-card li span {
  overflow: hidden;
  min-width: 0;
  color: var(--ink);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-roadmap-card li b {
  flex: 0 0 auto;
  color: #8fe3b6;
  font-size: 8px;
}

.boss-roadmap-card li.is-more span,
.boss-roadmap-card li.is-more b {
  color: #7f94a8;
}

.boss-roadmap-card > p {
  margin: 0;
  color: #91a5b8;
  font-size: 8px;
  line-height: 1.45;
}

.boss-roadmap-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 7px;
  align-items: center;
  min-height: 39px;
  color: #71869a;
}

.boss-roadmap-empty > span {
  grid-row: 1 / 3;
}

.boss-roadmap-empty svg {
  width: 16px;
  height: 16px;
}

.boss-roadmap-empty strong {
  color: #9aacbc;
  font-size: 9px;
}

.boss-roadmap-empty small {
  font-size: 7px;
}

.boss-quest-roadmap > footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.boss-quest-roadmap > footer p {
  margin: 0;
  color: #71869a;
  font-size: 8px;
  line-height: 1.45;
}

.boss-quest-roadmap > footer .secondary-action {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .boss-quest-roadmap {
    padding: 11px;
  }

  .boss-roadmap-head,
  .boss-quest-roadmap > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .boss-roadmap-summary {
    padding-top: 7px;
    border-top: 1px solid rgba(169, 188, 211, .09);
    text-align: left;
  }

  .boss-roadmap-grid {
    grid-template-columns: 1fr;
  }

  .boss-roadmap-card li span {
    white-space: normal;
  }

  .boss-quest-roadmap > footer .secondary-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 15 — today's next BOSS quest
   ============================================================ */
.boss-next-quest {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(224, 153, 84, .34);
  background:
    radial-gradient(circle at 0 50%, rgba(224, 153, 84, .16), transparent 28%),
    linear-gradient(135deg, rgba(67, 35, 28, .36), rgba(6, 18, 29, .86));
  box-shadow: inset 0 0 24px rgba(224, 153, 84, .05);
}

.boss-next-quest.is-active {
  border-color: rgba(93, 205, 145, .38);
  background:
    radial-gradient(circle at 0 50%, rgba(93, 205, 145, .13), transparent 28%),
    linear-gradient(135deg, rgba(26, 61, 48, .34), rgba(6, 18, 29, .86));
}

.boss-next-quest.is-blocked {
  border-color: rgba(126, 176, 216, .28);
}

.boss-next-mark {
  display: grid;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(224, 153, 84, .42);
  border-radius: 50%;
  place-items: center;
  color: #f0b674;
  background: rgba(96, 47, 31, .28);
}

.boss-next-mark svg {
  width: 20px;
  height: 20px;
}

.boss-next-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.boss-next-eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
}

.boss-next-eyebrow span {
  color: #d8965d;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.boss-next-eyebrow b {
  padding: 3px 5px;
  border: 1px solid rgba(93, 205, 145, .27);
  color: #8fe3b6;
  font-size: 7px;
  letter-spacing: .08em;
  background: rgba(44, 126, 84, .11);
}

.boss-next-copy h5 {
  margin: 0;
  color: #9fb3c4;
  font-size: 9px;
}

.boss-next-copy > strong {
  overflow: hidden;
  color: var(--parchment);
  font-family: var(--display);
  font-size: clamp(15px, 1.5vw, 19px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-next-copy > p {
  margin: 0;
  color: #91a5b8;
  font-size: 8px;
}

.boss-next-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 3px;
}

.boss-next-impact span {
  display: grid;
  gap: 1px;
}

.boss-next-impact small {
  color: #6f8498;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .09em;
}

.boss-next-impact b {
  color: #a9cce5;
  font-size: 8px;
}

.boss-next-impact span:nth-child(2) b {
  color: #8fe3b6;
}

.boss-next-impact span:nth-child(3) b {
  color: #f0b674;
}

.boss-next-meter {
  height: 3px;
  margin-top: 2px;
  background: rgba(169, 188, 211, .1);
}

.boss-next-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d4864f, #e8c274);
  box-shadow: 0 0 8px rgba(224, 153, 84, .24);
}

.boss-next-action {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.boss-next-action .primary-action {
  width: 100%;
  white-space: nowrap;
}

.boss-next-action > small {
  max-width: 210px;
  color: #8094a8;
  font-size: 7px;
  line-height: 1.45;
}

.boss-next-quest.is-empty {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-color: rgba(169, 188, 211, .14);
  background: rgba(4, 13, 23, .58);
}

.boss-next-quest.is-empty > div {
  display: grid;
  gap: 3px;
}

.boss-next-quest.is-empty small {
  color: #7da8c8;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.boss-next-quest.is-empty h5 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
}

.boss-next-quest.is-empty p {
  margin: 0;
  color: #7f94a8;
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .boss-next-quest,
  .boss-next-quest.is-empty {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .boss-next-mark {
    width: 36px;
    height: 36px;
  }

  .boss-next-copy > strong {
    white-space: normal;
  }

  .boss-next-action,
  .boss-next-quest.is-empty > .secondary-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .boss-next-action > small {
    max-width: none;
  }
}

/* ============================================================
   Phase 16 — CLEAR to BOSS preparation progress
   ============================================================ */
.clear-boss-progress {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(224, 153, 84, .3);
  background:
    radial-gradient(circle at 100% 0, rgba(181, 73, 50, .16), transparent 32%),
    linear-gradient(135deg, rgba(61, 31, 27, .36), rgba(5, 17, 29, .82));
}

.clear-boss-progress > header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.clear-boss-progress > header > div {
  display: grid;
  gap: 2px;
}

.clear-boss-progress > header small {
  color: #d98c65;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.clear-boss-progress > header strong {
  color: var(--parchment);
  font-family: var(--display);
  font-size: 15px;
}

.clear-boss-progress > header > span {
  padding: 5px 7px;
  border: 1px solid rgba(224, 153, 84, .38);
  color: #f0b674;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
  background: rgba(110, 55, 35, .16);
}

.clear-boss-progress.is-ready > header > span,
.clear-boss-progress.is-cleared > header > span {
  border-color: rgba(93, 205, 145, .38);
  color: #8fe3b6;
  background: rgba(44, 126, 84, .13);
}

.clear-boss-road {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(120px, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
}

.clear-boss-road > div:not(.clear-boss-meter) {
  display: grid;
  gap: 2px;
}

.clear-boss-road > div:last-child {
  text-align: right;
}

.clear-boss-road small {
  color: #7d91a6;
  font-size: 7px;
}

.clear-boss-road strong {
  color: #a9cce5;
  font-family: var(--display);
  font-size: 13px;
}

.clear-boss-road > div:last-child strong {
  color: #f0b674;
}

.clear-boss-meter {
  position: relative;
  height: 7px;
  border: 1px solid rgba(169, 188, 211, .14);
  background: rgba(3, 10, 18, .75);
}

.clear-boss-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4d8fbd, #8fe3b6);
  box-shadow: 0 0 10px rgba(92, 169, 224, .22);
}

.clear-boss-meter b {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 13px;
  background: #f0b674;
  box-shadow: 0 0 7px rgba(224, 153, 84, .48);
  transform: translate(-50%, -50%);
}

.clear-boss-gain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.clear-boss-gain b,
.clear-boss-gain span {
  padding: 4px 7px;
  border: 1px solid rgba(93, 205, 145, .2);
  color: #8fe3b6;
  font-size: 8px;
  background: rgba(44, 126, 84, .09);
}

.clear-boss-gain span {
  border-color: rgba(126, 176, 216, .18);
  color: #a9cce5;
  background: rgba(63, 112, 151, .08);
}

.clear-boss-progress > p {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(169, 188, 211, .08);
  color: #778ca1;
  font-size: 8px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .clear-boss-progress {
    padding: 11px;
  }

  .clear-boss-progress > header {
    align-items: flex-start;
  }

  .clear-boss-road {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .clear-boss-meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .clear-boss-road > div:last-child {
    text-align: right;
  }
}

/* ============================================================
   Phase 17 — Reality BOSS challenge arena
   ============================================================ */
.boss-challenge-view-head {
  align-items: end;
}

.boss-challenge-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
  align-items: start;
}

.boss-challenge-screen > .boss-challenge-arena:only-child {
  grid-column: 1 / -1;
}

.boss-challenge-arena {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(213, 108, 78, .36);
  background:
    radial-gradient(circle at 88% 0, rgba(203, 72, 53, .2), transparent 31%),
    linear-gradient(145deg, rgba(49, 20, 24, .88), rgba(4, 14, 24, .97) 58%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .25), inset 0 0 42px rgba(196, 70, 45, .04);
}

.boss-challenge-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(230, 169, 104, .04), transparent);
  transform: translateX(-100%);
}

.boss-challenge-arena.is-ready::before {
  animation: boss-ready-scan 3.6s ease-in-out infinite;
}

@keyframes boss-ready-scan {
  0%, 35% { transform: translateX(-100%); }
  75%, 100% { transform: translateX(100%); }
}

.boss-challenge-arena.is-cleared {
  border-color: rgba(93, 205, 145, .4);
  background:
    radial-gradient(circle at 88% 0, rgba(65, 166, 111, .2), transparent 31%),
    linear-gradient(145deg, rgba(20, 48, 41, .9), rgba(4, 14, 24, .97) 58%);
}

.boss-challenge-arena.is-unknown {
  padding: 18px;
  border-color: rgba(169, 188, 211, .14);
  background: rgba(4, 14, 24, .75);
}

.boss-challenge-arena.is-unknown > div {
  display: grid;
  gap: 4px;
}

.boss-challenge-arena.is-unknown small {
  color: #8ea4b8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.boss-challenge-arena.is-unknown p {
  margin: 0;
  color: #7890a4;
}

.boss-challenge-head {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.boss-challenge-head > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.boss-challenge-head h2 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.boss-challenge-head p:not(.section-kicker) {
  max-width: 680px;
  margin: 0;
  color: #9cb1c3;
  font-size: 10px;
  line-height: 1.6;
}

.boss-challenge-head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(224, 153, 84, .4);
  color: #efb169;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  background: rgba(118, 54, 31, .18);
  box-shadow: inset 0 0 12px rgba(224, 153, 84, .05);
}

.boss-challenge-arena.is-ready .boss-challenge-head > span,
.boss-challenge-arena.is-cleared .boss-challenge-head > span {
  border-color: rgba(93, 205, 145, .42);
  color: #8fe3b6;
  background: rgba(44, 126, 84, .14);
  box-shadow: 0 0 18px rgba(69, 179, 119, .1);
}

.boss-challenge-steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 38px minmax(110px, 1fr) 38px minmax(110px, 1fr);
  gap: 8px;
  align-items: center;
}

.boss-challenge-steps > div {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(169, 188, 211, .12);
  background: rgba(3, 11, 20, .58);
}

.boss-challenge-steps > div.is-current {
  border-color: rgba(224, 153, 84, .38);
  background: rgba(104, 48, 31, .16);
}

.boss-challenge-steps > div.is-done {
  border-color: rgba(93, 205, 145, .32);
  background: rgba(44, 126, 84, .1);
}

.boss-challenge-steps small {
  color: #6e8499;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.boss-challenge-steps strong {
  color: #c8d8e5;
  font-family: var(--display);
  font-size: 14px;
}

.boss-challenge-steps span {
  color: #788fa4;
  font-size: 8px;
}

.boss-challenge-steps .is-current span {
  color: #efb169;
}

.boss-challenge-steps .is-done span {
  color: #8fe3b6;
}

.boss-challenge-steps > i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 153, 84, .1), rgba(224, 153, 84, .5), rgba(224, 153, 84, .1));
}

.boss-challenge-gates {
  display: grid;
  gap: 8px;
}

.boss-challenge-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(169, 188, 211, .13);
  background: rgba(3, 11, 20, .52);
}

.boss-gate-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(224, 153, 84, .3);
  color: #efb169;
  font-family: var(--display);
  font-size: 12px;
  background: rgba(109, 49, 31, .15);
}

.boss-gate-number svg {
  width: 14px;
  height: 14px;
}

.boss-challenge-gate > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.boss-challenge-gate small {
  color: #6e8499;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.boss-challenge-gate strong {
  overflow-wrap: anywhere;
  color: #c8d8e5;
  font-size: 11px;
}

.boss-challenge-gate p {
  margin: 0;
  color: #8095a8;
  font-size: 8px;
  line-height: 1.45;
}

.boss-challenge-gate > b {
  color: #ef946f;
  font-size: 7px;
  letter-spacing: .1em;
}

.boss-challenge-gate.is-cleared {
  border-color: rgba(93, 205, 145, .22);
  background: rgba(44, 126, 84, .07);
}

.boss-challenge-gate.is-cleared .boss-gate-number {
  border-color: rgba(93, 205, 145, .3);
  color: #8fe3b6;
  background: rgba(44, 126, 84, .12);
}

.boss-challenge-gate.is-cleared > b {
  color: #8fe3b6;
}

.boss-challenge-empty {
  padding: 14px;
  border: 1px dashed rgba(169, 188, 211, .18);
  color: #8ea4b8;
}

.boss-challenge-empty p {
  margin: 4px 0 0;
  color: #70869a;
}

.boss-challenge-arena > footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(169, 188, 211, .1);
}

.boss-challenge-arena > footer > p {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  max-width: 620px;
  margin: 0;
  color: #748b9f;
  font-size: 8px;
  line-height: 1.5;
}

.boss-challenge-arena > footer > p svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #efb169;
}

.boss-challenge-arena > footer > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.boss-challenge-next {
  display: grid;
  gap: 10px;
  border-color: rgba(224, 153, 84, .24);
  background: linear-gradient(150deg, rgba(52, 28, 24, .72), rgba(5, 17, 29, .9));
}

.boss-challenge-next h2 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
}

.boss-challenge-next p {
  margin: 0;
  color: #8fa5b8;
  font-size: 9px;
  line-height: 1.55;
}

.boss-challenge-entry {
  width: 100%;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .boss-challenge-arena.is-ready::before {
    animation: none;
  }
}

@media (max-width: 980px) {
  .boss-challenge-screen {
    grid-template-columns: 1fr;
  }

  .boss-challenge-next {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .boss-challenge-view-head {
    align-items: stretch;
  }

  .boss-challenge-arena {
    gap: 14px;
    padding: 14px;
  }

  .boss-challenge-head {
    display: grid;
    gap: 10px;
  }

  .boss-challenge-head > span {
    justify-self: start;
  }

  .boss-challenge-steps {
    grid-template-columns: 1fr;
  }

  .boss-challenge-steps > div {
    min-height: 0;
  }

  .boss-challenge-steps > i {
    width: 1px;
    height: 12px;
    margin-left: 18px;
    background: linear-gradient(rgba(224, 153, 84, .1), rgba(224, 153, 84, .5), rgba(224, 153, 84, .1));
  }

  .boss-challenge-gate {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
  }

  .boss-challenge-gate > b {
    grid-column: 2;
    justify-self: start;
  }

  .boss-challenge-arena > footer {
    display: grid;
  }

  .boss-challenge-arena > footer > div {
    display: grid;
    width: 100%;
  }

  .boss-challenge-arena > footer .primary-action,
  .boss-challenge-arena > footer .secondary-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 18 — Weekly real-gate moves
   ============================================================ */
.boss-challenge-weekly {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  border-color: rgba(111, 159, 199, .24);
  background:
    radial-gradient(circle at 100% 0, rgba(62, 120, 166, .13), transparent 30%),
    linear-gradient(145deg, rgba(8, 26, 43, .92), rgba(4, 14, 24, .97));
}

.boss-challenge-weekly > header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.boss-challenge-weekly > header > div {
  display: grid;
  gap: 4px;
}

.boss-challenge-weekly h2 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 20px;
}

.boss-challenge-weekly > header p:not(.section-kicker) {
  max-width: 720px;
  margin: 0;
  color: #879eb2;
  font-size: 9px;
  line-height: 1.5;
}

.boss-challenge-weekly > header > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(111, 159, 199, .3);
  color: #9bc9e8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  background: rgba(57, 107, 146, .1);
}

.boss-weekly-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.boss-weekly-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(169, 188, 211, .13);
  background: rgba(3, 11, 20, .54);
}

.boss-weekly-action.is-quest {
  border-color: rgba(224, 153, 84, .28);
  background: linear-gradient(145deg, rgba(87, 43, 29, .16), rgba(3, 11, 20, .58));
}

.boss-weekly-priority {
  display: grid;
  width: 38px;
  height: 44px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(111, 159, 199, .25);
  color: #9bc9e8;
  background: rgba(57, 107, 146, .09);
}

.boss-weekly-priority small {
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .08em;
}

.boss-weekly-priority b {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
}

.boss-weekly-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.boss-weekly-copy > small {
  color: #7590a6;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .05em;
}

.boss-weekly-copy > strong {
  overflow-wrap: anywhere;
  color: #c8d8e5;
  font-size: 11px;
  line-height: 1.35;
}

.boss-weekly-copy > p {
  margin: 0;
  color: #748b9f;
  font-size: 8px;
  line-height: 1.5;
}

.boss-weekly-cta {
  grid-column: 1 / -1;
  display: grid;
  align-self: end;
  padding-top: 3px;
}

.boss-weekly-cta .primary-action,
.boss-weekly-cta .secondary-action {
  width: 100%;
}

.boss-weekly-truth {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(169, 188, 211, .08);
  color: #6f879b;
  font-size: 8px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .boss-weekly-list {
    grid-template-columns: 1fr;
  }

  .boss-weekly-action {
    grid-template-columns: auto minmax(0, 1fr) minmax(160px, 220px);
    align-items: center;
  }

  .boss-weekly-cta {
    grid-column: auto;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .boss-challenge-weekly {
    gap: 12px;
    padding: 13px;
  }

  .boss-challenge-weekly > header {
    display: grid;
    gap: 9px;
  }

  .boss-challenge-weekly > header > span {
    justify-self: start;
  }

  .boss-weekly-action {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .boss-weekly-cta {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Phase 19 — BOSS to next-job evolution bridge
   ============================================================ */
.boss-job-evolution {
  grid-column: 1 / -1;
  display: grid;
  gap: 15px;
  border-color: rgba(165, 126, 216, .25);
  background:
    radial-gradient(circle at 82% 0, rgba(126, 83, 179, .16), transparent 32%),
    linear-gradient(145deg, rgba(24, 18, 48, .88), rgba(4, 14, 24, .97));
}

.boss-job-evolution > header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.boss-job-evolution > header > div {
  display: grid;
  gap: 4px;
}

.boss-job-evolution h2 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 20px;
}

.boss-job-evolution > header p:not(.section-kicker) {
  max-width: 740px;
  margin: 0;
  color: #938bab;
  font-size: 9px;
  line-height: 1.55;
}

.boss-job-evolution > header > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(165, 126, 216, .34);
  color: #c6a7ed;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  background: rgba(104, 71, 148, .12);
}

.boss-job-evolution.is-evolution_ready > header > span,
.boss-job-evolution.is-job_ready > header > span {
  border-color: rgba(93, 205, 145, .36);
  color: #8fe3b6;
  background: rgba(44, 126, 84, .12);
}

.boss-job-evolution.is-conflict > header > span {
  border-color: rgba(225, 115, 91, .36);
  color: #f0a085;
  background: rgba(145, 55, 42, .12);
}

.boss-job-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.boss-job-milestone {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(169, 188, 211, .13);
  background: rgba(3, 11, 20, .56);
}

.boss-job-milestone.is-boss {
  border-left: 3px solid rgba(213, 108, 78, .58);
}

.boss-job-milestone.is-job {
  border-right: 3px solid rgba(165, 126, 216, .58);
  text-align: right;
}

.boss-job-milestone.is-ready {
  border-color: rgba(93, 205, 145, .28);
  background: rgba(44, 126, 84, .08);
}

.boss-job-milestone small {
  color: #746d8b;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.boss-job-milestone strong {
  overflow-wrap: anywhere;
  color: #ccd6e2;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.25;
}

.boss-job-milestone span {
  color: #9d8fba;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
}

.boss-job-milestone.is-ready span {
  color: #8fe3b6;
}

.boss-job-arrow {
  display: flex;
  align-items: center;
}

.boss-job-arrow i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(213, 108, 78, .35), rgba(165, 126, 216, .55));
}

.boss-job-arrow span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(165, 126, 216, .28);
  color: #c6a7ed;
  background: rgba(22, 15, 41, .9);
}

.boss-job-arrow svg {
  width: 12px;
  height: 12px;
}

.boss-job-requirements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boss-job-requirements li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(169, 188, 211, .12);
  background: rgba(3, 11, 20, .48);
}

.boss-job-requirements li > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #9d8fba;
}

.boss-job-requirements svg {
  width: 13px;
  height: 13px;
}

.boss-job-requirements strong {
  overflow-wrap: anywhere;
  color: #aebdca;
  font-size: 9px;
  line-height: 1.35;
}

.boss-job-requirements b {
  color: #8d82a5;
  font-size: 7px;
  letter-spacing: .06em;
}

.boss-job-requirements li.is-met {
  border-color: rgba(93, 205, 145, .2);
  background: rgba(44, 126, 84, .06);
}

.boss-job-requirements li.is-met > span,
.boss-job-requirements li.is-met b {
  color: #8fe3b6;
}

.boss-job-requirements li.is-conflict {
  border-color: rgba(225, 115, 91, .25);
}

.boss-job-evolution > footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid rgba(169, 188, 211, .08);
}

.boss-job-evolution > footer p {
  max-width: 720px;
  margin: 0;
  color: #756d8c;
  font-size: 8px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .boss-job-requirements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .boss-job-evolution {
    gap: 12px;
    padding: 13px;
  }

  .boss-job-evolution > header,
  .boss-job-evolution > footer {
    display: grid;
    gap: 10px;
  }

  .boss-job-evolution > header > span {
    justify-self: start;
  }

  .boss-job-bridge {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .boss-job-arrow {
    justify-content: center;
  }

  .boss-job-arrow i {
    display: none;
  }

  .boss-job-arrow span {
    transform: rotate(90deg);
  }

  .boss-job-milestone {
    min-height: 0;
  }

  .boss-job-milestone.is-job {
    text-align: left;
  }

  .boss-job-evolution > footer .primary-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 20 — truth-gated REAL BOSS CLEAR ceremony
   ============================================================ */
.boss-victory-ceremony {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(210px, .46fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(235, 194, 94, .42);
  background:
    radial-gradient(circle at 14% 50%, rgba(235, 194, 94, .17), transparent 29%),
    radial-gradient(circle at 87% 14%, rgba(93, 205, 145, .13), transparent 31%),
    linear-gradient(135deg, rgba(31, 25, 12, .97), rgba(8, 23, 28, .97));
  box-shadow: inset 0 0 60px rgba(235, 194, 94, .05), 0 16px 44px rgba(0, 0, 0, .22);
}

.boss-victory-rays {
  position: absolute;
  inset: -80% 65% -80% -25%;
  opacity: .32;
  background: repeating-conic-gradient(from 0deg, rgba(250, 219, 132, .2) 0 8deg, transparent 8deg 18deg);
  animation: bossVictoryTurn 26s linear infinite;
  pointer-events: none;
}

@keyframes bossVictoryTurn {
  to { transform: rotate(360deg); }
}

.boss-victory-sigil {
  position: relative;
  z-index: 1;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(250, 219, 132, .58);
  border-radius: 50%;
  color: #f8d978;
  background: rgba(75, 57, 17, .55);
  box-shadow: 0 0 0 8px rgba(235, 194, 94, .05), 0 0 32px rgba(235, 194, 94, .2);
}

.boss-victory-sigil svg {
  width: 30px;
  height: 30px;
}

.boss-victory-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.boss-victory-copy h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff1bf;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: .04em;
  text-shadow: 0 2px 18px rgba(235, 194, 94, .18);
}

.boss-victory-copy > strong {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(93, 205, 145, .32);
  color: #9ae8bc;
  font-size: 8px;
  letter-spacing: .13em;
  background: rgba(44, 126, 84, .12);
}

.boss-victory-copy > p:not(.section-kicker) {
  margin: 0;
  color: #b9bcae;
  font-size: 10px;
  line-height: 1.65;
}

.boss-victory-next {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(169, 188, 211, .14);
  background: rgba(3, 12, 19, .58);
}

.boss-victory-next small {
  color: #8f8971;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .13em;
}

.boss-victory-next b {
  overflow-wrap: anywhere;
  color: #e8dfc0;
  font-family: var(--display);
  font-size: 15px;
}

.boss-victory-next .primary-action {
  width: 100%;
}

.boss-victory-truth {
  position: relative;
  z-index: 1;
  grid-column: 2 / -1;
  margin: -6px 0 0;
  color: #76796e;
  font-size: 8px;
  line-height: 1.5;
}

.boss-victory-ceremony.is-config_check .boss-victory-copy > strong {
  border-color: rgba(225, 115, 91, .34);
  color: #f0a085;
  background: rgba(145, 55, 42, .12);
}

@media (max-width: 767px) {
  .boss-victory-ceremony {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    padding: 16px 13px;
  }

  .boss-victory-rays {
    inset: -40% 30% -40% -65%;
  }

  .boss-victory-sigil {
    width: 48px;
    height: 48px;
  }

  .boss-victory-sigil svg {
    width: 22px;
    height: 22px;
  }

  .boss-victory-next,
  .boss-victory-truth {
    grid-column: 1 / -1;
  }

  .boss-victory-truth {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boss-victory-rays { animation: none; }
}

/* ============================================================
   Phase 21 — QUEST → LEVEL → BOSS → JOB loop compass
   ============================================================ */
.reality-game-loop {
  display: grid;
  gap: 15px;
  max-width: 1500px;
  margin: 0 auto 16px;
  border-color: rgba(235, 194, 94, .23);
  background:
    radial-gradient(circle at 50% -20%, rgba(235, 194, 94, .09), transparent 38%),
    linear-gradient(145deg, rgba(13, 25, 40, .96), rgba(5, 14, 24, .98));
}

.reality-game-loop > header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.reality-game-loop > header > div {
  display: grid;
  gap: 4px;
}

.reality-game-loop h2 {
  margin: 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 20px;
}

.reality-game-loop > header p:not(.section-kicker) {
  margin: 0;
  color: #8998a8;
  font-size: 9px;
  line-height: 1.55;
}

.reality-game-loop > header .primary-action {
  flex: 0 0 auto;
  max-width: 340px;
}

.reality-loop-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.reality-loop-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(169, 188, 211, .13);
  color: inherit;
  text-align: left;
  background: rgba(3, 12, 21, .62);
  cursor: pointer;
}

.reality-loop-step:hover,
.reality-loop-step:focus-visible {
  border-color: rgba(235, 194, 94, .38);
  background: rgba(35, 32, 22, .56);
}

.reality-loop-step.is-current {
  border-color: rgba(235, 194, 94, .55);
  background: linear-gradient(135deg, rgba(88, 59, 23, .32), rgba(8, 24, 32, .82));
  box-shadow: inset 3px 0 #d6a94e, 0 0 24px rgba(235, 194, 94, .07);
}

.reality-loop-step.is-ready,
.reality-loop-step.is-cleared {
  border-color: rgba(93, 205, 145, .24);
}

.reality-loop-step.is-check {
  border-color: rgba(225, 115, 91, .3);
}

.reality-loop-rune {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(235, 194, 94, .24);
  color: #d9b65d;
  background: rgba(91, 66, 20, .12);
}

.reality-loop-rune svg {
  width: 15px;
  height: 15px;
}

.reality-loop-step > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reality-loop-step small {
  color: #687a8f;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .13em;
}

.reality-loop-step strong {
  color: #d9e1e9;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .07em;
}

.reality-loop-step em {
  overflow: hidden;
  color: #8391a1;
  font-size: 8px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reality-loop-step > b {
  color: #7f8ea0;
  font-size: 7px;
  letter-spacing: .11em;
}

.reality-loop-step.is-current > b {
  color: #f2c866;
}

.reality-loop-step.is-ready > b,
.reality-loop-step.is-cleared > b {
  color: #8fe3b6;
}

.reality-loop-arrow {
  display: grid;
  place-items: center;
  color: #665b42;
}

.reality-loop-arrow svg {
  width: 12px;
  height: 12px;
}

.reality-loop-truth {
  margin: 0;
  color: #687483;
  font-size: 8px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .reality-game-loop {
    gap: 12px;
    padding: 13px;
  }

  .reality-game-loop > header {
    display: grid;
    gap: 10px;
  }

  .reality-game-loop > header .primary-action {
    width: 100%;
    max-width: none;
  }

  .reality-loop-track {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reality-loop-arrow {
    transform: rotate(90deg);
  }

  .reality-loop-step {
    min-height: 72px;
  }

  .reality-loop-step em {
    white-space: normal;
  }
}

/* ============================================================
   Phase 22 — truth-gated QUEST CLEAR level-up ceremony
   ============================================================ */
.level-up-ceremony {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, .7fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(107, 193, 244, .42);
  background:
    radial-gradient(circle at 15% 50%, rgba(104, 190, 241, .18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(235, 194, 94, .13), transparent 32%),
    linear-gradient(135deg, rgba(7, 30, 48, .98), rgba(16, 20, 39, .98));
  box-shadow: inset 0 0 54px rgba(104, 190, 241, .06), 0 12px 34px rgba(0, 0, 0, .2);
}

.level-up-rays {
  position: absolute;
  inset: -85% 66% -85% -24%;
  opacity: .25;
  background: repeating-conic-gradient(from 0deg, rgba(140, 214, 255, .26) 0 7deg, transparent 7deg 18deg);
  animation: levelUpTurn 24s linear infinite;
  pointer-events: none;
}

@keyframes levelUpTurn {
  to { transform: rotate(360deg); }
}

.level-up-rune {
  position: relative;
  z-index: 1;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(145, 218, 255, .56);
  border-radius: 50%;
  color: #9bdcff;
  background: rgba(28, 91, 126, .28);
  box-shadow: 0 0 0 8px rgba(104, 190, 241, .05), 0 0 30px rgba(104, 190, 241, .2);
}

.level-up-rune svg {
  width: 30px;
  height: 30px;
}

.level-up-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
  text-align: left;
}

.level-up-copy h2 {
  margin: 0;
  color: #c9edff;
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: .07em;
  text-shadow: 0 2px 20px rgba(104, 190, 241, .22);
}

.level-up-change {
  display: flex;
  gap: 10px;
  align-items: center;
}

.level-up-change span {
  color: #7f9daf;
  font-family: var(--display);
  font-size: 15px;
}

.level-up-change i {
  display: grid;
  color: #6ebce8;
}

.level-up-change i svg {
  width: 13px;
  height: 13px;
}

.level-up-change strong {
  color: #fff0b5;
  font-family: var(--display);
  font-size: 24px;
}

.level-up-copy > p:not(.section-kicker) {
  margin: 0;
  color: #9fb3c1;
  font-size: 9px;
  line-height: 1.6;
}

.level-up-next-road {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(169, 188, 211, .14);
  text-align: left;
  background: rgba(3, 12, 22, .6);
}

.level-up-next-road > div:first-child {
  display: grid;
  gap: 3px;
}

.level-up-next-road small {
  color: #668ba2;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .13em;
}

.level-up-next-road strong {
  color: #d6e6ee;
  font-family: var(--display);
  font-size: 13px;
}

.level-up-next-road > span {
  color: #71899a;
  font-size: 8px;
  text-align: right;
}

.level-up-progress-unknown {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #748b99;
  font-size: 9px;
  line-height: 1.6;
}

.level-up-truth {
  position: relative;
  z-index: 1;
  grid-column: 2 / -1;
  margin: -7px 0 0;
  color: #647885;
  font-size: 8px;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 767px) {
  .level-up-ceremony {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    padding: 16px 13px;
  }

  .level-up-rays {
    inset: -45% 34% -45% -65%;
  }

  .level-up-rune {
    width: 48px;
    height: 48px;
  }

  .level-up-rune svg {
    width: 22px;
    height: 22px;
  }

  .level-up-next-road,
  .level-up-truth,
  .level-up-progress-unknown {
    grid-column: 1 / -1;
  }

  .level-up-truth {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .level-up-rays { animation: none; }
}

/* ============================================================
   Phase 23 — truth-gated reality job evolution ceremony
   ============================================================ */
.job-evolution-ceremony {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1.2fr) minmax(230px, .8fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 25px;
  border-color: rgba(239, 190, 82, .5);
  background:
    radial-gradient(circle at 7% 50%, rgba(239, 190, 82, .18), transparent 27%),
    radial-gradient(circle at 87% 5%, rgba(118, 91, 210, .18), transparent 31%),
    linear-gradient(135deg, rgba(44, 31, 20, .97), rgba(12, 18, 38, .98) 61%);
  box-shadow: inset 0 0 68px rgba(239, 190, 82, .05), 0 18px 44px rgba(0, 0, 0, .25);
}

.job-evolution-rays {
  position: absolute;
  inset: -110% 72% -110% -27%;
  opacity: .26;
  background: repeating-conic-gradient(from 0deg, rgba(255, 219, 126, .32) 0 6deg, transparent 6deg 17deg);
  animation: jobEvolutionTurn 28s linear infinite;
  pointer-events: none;
}

@keyframes jobEvolutionTurn {
  to { transform: rotate(360deg); }
}

.job-evolution-crest {
  position: relative;
  z-index: 1;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 222, 132, .58);
  border-radius: 50%;
  color: #ffe39a;
  background: rgba(111, 74, 24, .25);
  box-shadow: 0 0 0 9px rgba(239, 190, 82, .05), 0 0 34px rgba(239, 190, 82, .18);
}

.job-evolution-crest::before,
.job-evolution-crest::after {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 226, 144, .65);
  content: "";
  transform: rotate(45deg);
}

.job-evolution-crest::before { top: 4px; right: 6px; }
.job-evolution-crest::after { bottom: 7px; left: 3px; }

.job-evolution-crest > span {
  display: grid;
  place-items: center;
}

.job-evolution-crest svg {
  width: 34px;
  height: 34px;
}

.job-evolution-crest b {
  position: absolute;
  bottom: 17px;
  font-size: 7px;
  letter-spacing: .18em;
}

.job-evolution-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.job-evolution-copy h2 {
  margin: 0;
  color: #fff0bc;
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 42px);
  letter-spacing: .055em;
  text-shadow: 0 2px 22px rgba(239, 190, 82, .2);
}

.job-evolution-route {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.job-evolution-route span {
  overflow: hidden;
  color: #a7977d;
  font-family: var(--display);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-evolution-route i {
  display: grid;
  flex: 0 0 auto;
  color: #d4a94c;
}

.job-evolution-route i svg {
  width: 13px;
  height: 13px;
}

.job-evolution-route strong {
  overflow: hidden;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 28px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-evolution-copy > p:not(.section-kicker) {
  margin: 0;
  color: #aa9f91;
  font-size: 9px;
  line-height: 1.6;
}

.job-evolution-proof {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(239, 190, 82, .2);
  background: rgba(5, 11, 24, .58);
}

.job-evolution-proof > div {
  display: grid;
  gap: 3px;
}

.job-evolution-proof small,
.job-evolution-next small {
  color: #aa8650;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.job-evolution-proof strong,
.job-evolution-next strong {
  color: #e9dfc9;
  font-family: var(--display);
  font-size: 13px;
}

.job-evolution-proof ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-evolution-proof li {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #d7bd7d;
  font-size: 8px;
}

.job-evolution-proof li svg {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
}

.job-evolution-proof li.is-empty {
  color: #7e7465;
}

.job-evolution-next {
  position: relative;
  z-index: 1;
  grid-column: 2 / -1;
  padding: 11px 13px;
  border-left: 2px solid rgba(126, 99, 211, .55);
  background: rgba(48, 36, 91, .15);
}

.job-evolution-next > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.job-evolution-next span {
  color: #8f88a7;
  font-size: 8px;
}

.job-evolution-truth {
  position: relative;
  z-index: 1;
  grid-column: 2 / -1;
  margin: -7px 0 0;
  color: #756d65;
  font-size: 8px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .job-evolution-ceremony {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 14px;
  }

  .job-evolution-rays {
    inset: -55% 42% -55% -70%;
  }

  .job-evolution-crest {
    width: 54px;
    height: 54px;
  }

  .job-evolution-crest svg {
    width: 23px;
    height: 23px;
  }

  .job-evolution-crest b {
    bottom: 7px;
    font-size: 5px;
  }

  .job-evolution-route {
    display: grid;
    grid-template-columns: minmax(0, auto) 12px minmax(0, 1fr);
    gap: 6px;
  }

  .job-evolution-proof,
  .job-evolution-next,
  .job-evolution-truth {
    grid-column: 1 / -1;
  }

  .job-evolution-next > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .job-evolution-truth {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-evolution-rays { animation: none; }
}

/* ============================================================
   Phase 24 — persistent reality career chronicle
   ============================================================ */
.career-chronicle {
  position: relative;
  display: grid;
  gap: 13px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(205, 164, 76, .22);
  background:
    radial-gradient(circle at 4% 50%, rgba(207, 166, 76, .1), transparent 28%),
    linear-gradient(135deg, rgba(28, 25, 29, .72), rgba(5, 15, 27, .78));
}

.career-chronicle > header {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
}

.career-chronicle > header h3 {
  margin: 3px 0 0;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .04em;
}

.career-chronicle > header .panel-link {
  flex: 0 0 auto;
}

.career-chronicle-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(240px, 1fr) minmax(220px, .85fr);
  gap: 10px;
  align-items: stretch;
}

.career-current-role,
.career-history-road,
.career-next-role {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(169, 188, 211, .13);
  background: rgba(3, 11, 21, .56);
}

.career-current-role {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  border-color: rgba(103, 186, 232, .27);
  background:
    radial-gradient(circle at 8% 15%, rgba(87, 166, 215, .13), transparent 38%),
    rgba(3, 13, 24, .62);
}

.career-current-crest {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(109, 194, 239, .4);
  border-radius: 50%;
  color: #9bd9fa;
  background: rgba(48, 119, 158, .13);
  box-shadow: 0 0 22px rgba(74, 161, 209, .08);
}

.career-current-crest svg {
  width: 18px;
  height: 18px;
}

.career-current-role > div {
  display: grid;
  align-content: center;
  min-width: 0;
}

.career-current-role small,
.career-next-role small {
  color: #729db5;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.career-current-role h4 {
  overflow: hidden;
  margin: 2px 0;
  color: #e8f2f6;
  font-family: var(--display);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-current-role p {
  margin: 0;
  color: #7ca7bd;
  font-size: 8px;
}

.career-current-role ul {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 5px;
  margin: 1px 0 0;
  padding: 0;
  list-style: none;
}

.career-current-role li {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid rgba(205, 164, 76, .2);
  color: #d8bd7f;
  font-size: 7px;
  background: rgba(110, 77, 23, .1);
}

.career-current-role li svg {
  width: 9px;
  height: 9px;
}

.career-current-role li.is-empty {
  border-color: rgba(169, 188, 211, .1);
  color: #718091;
  background: transparent;
}

.career-history-road {
  display: grid;
  align-content: center;
  gap: 5px;
  list-style: none;
}

.career-history-road li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.career-history-road li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(96, 193, 149, .25);
  border-radius: 50%;
  color: #8bdab3;
  background: rgba(54, 139, 103, .09);
}

.career-history-road li > span svg {
  width: 10px;
  height: 10px;
}

.career-history-road li > div {
  display: grid;
  min-width: 0;
}

.career-history-road strong {
  overflow: hidden;
  color: #cbd9df;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-history-road small {
  color: #6f8494;
  font-size: 7px;
}

.career-history-road li.is-origin > span {
  border-color: rgba(104, 183, 228, .28);
  color: #8eccea;
  background: rgba(59, 130, 170, .1);
}

.career-next-role {
  display: grid;
  gap: 5px;
  align-content: center;
  color: inherit;
  text-align: left;
}

.career-next-role:hover {
  border-color: rgba(205, 164, 76, .32);
  background: rgba(53, 39, 19, .35);
}

.career-next-role strong {
  overflow: hidden;
  color: #e8dcc0;
  font-family: var(--display);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-next-role > span {
  color: #8a7f70;
  font-size: 8px;
}

.career-next-role .phase-meter {
  margin-top: 3px;
}

.career-next-role.is-ready {
  border-color: rgba(99, 202, 151, .34);
  background: rgba(45, 129, 91, .11);
}

.career-next-role.is-ready small,
.career-next-role.is-ready > span {
  color: #81cda7;
}

.career-next-role.is-conflict {
  border-color: rgba(224, 143, 88, .35);
  background: rgba(123, 58, 34, .12);
}

.career-next-role.is-conflict > span {
  color: #dda378;
}

.career-chronicle-truth {
  margin: 0;
  color: #6e7984;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.career-chronicle.is-unconfigured {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.career-chronicle.is-unconfigured > div {
  display: grid;
  gap: 3px;
}

.career-chronicle.is-unconfigured small {
  color: #8a7e6b;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.career-chronicle.is-unconfigured strong {
  color: #c9c0af;
  font-family: var(--display);
}

@media (max-width: 1020px) {
  .career-chronicle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .career-current-role {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .career-chronicle {
    padding: 12px;
  }

  .career-chronicle > header {
    align-items: start;
  }

  .career-chronicle > header .panel-link {
    padding-inline: 0;
    font-size: 8px;
  }

  .career-chronicle-grid {
    grid-template-columns: 1fr;
  }

  .career-current-role {
    grid-column: auto;
  }

  .career-current-role h4,
  .career-next-role strong,
  .career-history-road strong {
    white-space: normal;
  }

  .career-chronicle.is-unconfigured {
    grid-template-columns: 1fr;
  }

  .career-chronicle.is-unconfigured .secondary-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 25 — next-job causal quest training route
   ============================================================ */
.job-training-route {
  display: grid;
  grid-template-columns: minmax(230px, .9fr) minmax(300px, 1.25fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(126, 99, 211, .28);
  background:
    radial-gradient(circle at 82% 0, rgba(118, 91, 203, .13), transparent 34%),
    rgba(11, 12, 28, .65);
}

.job-training-target,
.job-training-quest,
.job-training-route > div:first-child {
  min-width: 0;
}

.job-training-target {
  display: grid;
  gap: 5px;
}

.job-training-target small,
.job-training-quest small,
.job-training-route > div:first-child > small {
  color: #9a83d4;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.job-training-target strong,
.job-training-route > div:first-child > strong {
  overflow: hidden;
  color: #dfd6f0;
  font-family: var(--display);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-training-target > span {
  color: #9b8fb0;
  font-size: 8px;
  text-align: right;
}

.job-training-quest {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(169, 188, 211, .12);
  background: rgba(3, 10, 20, .53);
}

.job-training-quest > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(209, 168, 78, .35);
  border-radius: 50%;
  color: #e2bf6d;
  background: rgba(116, 81, 25, .11);
}

.job-training-quest > span svg {
  width: 15px;
  height: 15px;
}

.job-training-quest > div {
  display: grid;
  min-width: 0;
}

.job-training-quest strong {
  overflow: hidden;
  color: #d9e1e5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-training-quest p,
.job-training-route > div:first-child > p {
  margin: 2px 0 0;
  color: #7d8496;
  font-size: 8px;
  line-height: 1.45;
}

.job-training-route > .primary-action,
.job-training-route > .secondary-action {
  min-width: 150px;
}

.job-training-truth {
  grid-column: 1 / -1;
  margin: -3px 0 0;
  color: #676a7b;
  font-size: 7px;
  line-height: 1.45;
  text-align: center;
}

.job-training-route.is-ready,
.job-training-route.is-conflict,
.job-training-route.is-manual,
.job-training-route.is-empty {
  grid-template-columns: minmax(0, 1fr) auto;
}

.job-training-route.is-ready {
  border-color: rgba(92, 198, 146, .3);
  background: rgba(38, 120, 82, .1);
}

.job-training-route.is-ready > div:first-child > small,
.job-training-route.is-ready > div:first-child > strong {
  color: #8bd6ae;
}

.job-training-route.is-conflict {
  border-color: rgba(224, 143, 88, .34);
  background: rgba(119, 56, 33, .11);
}

.job-training-route.is-conflict > div:first-child > small,
.job-training-route.is-conflict > div:first-child > strong {
  color: #dfa275;
}

.job-training-route.is-manual,
.job-training-route.is-empty {
  border-color: rgba(169, 188, 211, .13);
  background: rgba(4, 12, 22, .52);
}

@media (max-width: 1020px) {
  .job-training-route {
    grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr);
  }

  .job-training-route > .primary-action,
  .job-training-route > .secondary-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .job-training-route,
  .job-training-route.is-ready,
  .job-training-route.is-conflict,
  .job-training-route.is-manual,
  .job-training-route.is-empty {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .job-training-target strong,
  .job-training-quest strong,
  .job-training-route > div:first-child > strong {
    white-space: normal;
  }

  .job-training-route > .primary-action,
  .job-training-route > .secondary-action,
  .job-training-truth {
    grid-column: auto;
    width: 100%;
  }
}

/* ============================================================
   Phase 31 — global quest growth pick
   ============================================================ */
.quest-growth-pick {
  display: grid;
  grid-template-columns: auto minmax(220px, .8fr) minmax(300px, 1.2fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(229, 174, 82, .3);
  background:
    linear-gradient(105deg, rgba(116, 62, 22, .2), rgba(23, 17, 44, .78) 46%, rgba(5, 13, 24, .94)),
    var(--panel-bg);
  box-shadow: inset 0 0 24px rgba(225, 151, 56, .06), 0 12px 28px rgba(0, 0, 0, .18);
}

.quest-growth-pick.is-job_growth {
  border-color: rgba(165, 116, 220, .34);
  background: linear-gradient(105deg, rgba(73, 43, 111, .24), rgba(5, 13, 24, .94));
}

.quest-growth-pick-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(229, 174, 82, .38);
  border-radius: 50%;
  color: #efc16c;
  background: rgba(103, 56, 17, .28);
}

.quest-growth-pick-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quest-growth-pick-copy small,
.quest-growth-pick-copy b {
  color: #dbae63;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .11em;
}

.quest-growth-pick-copy h2 {
  margin: 5px 0 4px;
  color: #f1f3f7;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.45vw, 19px);
}

.quest-growth-pick-copy p,
.quest-growth-pick-copy > span {
  margin: 0;
  color: #9da7b8;
  font-size: 8px;
  line-height: 1.5;
}

.quest-growth-pick-copy > span {
  display: block;
  margin-top: 4px;
  color: #747f91;
}

.quest-growth-pick-road .quest-growth-impact {
  margin: 0;
}

.quest-growth-pick-action .primary-action,
.quest-growth-pick-action .quest-session-action {
  min-width: 150px;
}

.quest-growth-pick-truth {
  grid-column: 2 / -1;
  margin: -7px 0 0;
  color: #626d7e;
  font-size: 7px;
  line-height: 1.45;
}

@media (max-width: 1020px) {
  .quest-growth-pick {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .quest-growth-pick-road,
  .quest-growth-pick-truth {
    grid-column: 2 / -1;
  }
}

@media (max-width: 767px) {
  .quest-growth-pick {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .quest-growth-pick-road,
  .quest-growth-pick-action,
  .quest-growth-pick-truth {
    grid-column: 1 / -1;
  }

  .quest-growth-pick-action .primary-action,
  .quest-growth-pick-action .quest-session-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 32 — active focus growth mission
   ============================================================ */
.focus-growth-mission {
  margin: 16px 0;
  padding: 13px;
  border: 1px solid rgba(229, 174, 82, .28);
  background: linear-gradient(120deg, rgba(105, 56, 20, .18), rgba(5, 13, 24, .82));
}

.focus-growth-mission.is-job_growth {
  border-color: rgba(165, 116, 220, .34);
  background: linear-gradient(120deg, rgba(73, 43, 111, .22), rgba(5, 13, 24, .82));
}

.focus-growth-mission.is-standard {
  border-color: rgba(169, 188, 211, .14);
  background: rgba(5, 13, 24, .58);
}

.focus-growth-mission > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.focus-growth-mission > header small,
.focus-growth-mission > header b {
  color: #dbae63;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .11em;
}

.focus-growth-mission > header h2 {
  margin: 4px 0 0;
  color: #edf0f6;
  font-family: var(--font-display);
  font-size: 13px;
}

.focus-growth-mission > header b {
  padding: 4px 7px;
  border: 1px solid rgba(229, 174, 82, .28);
  white-space: nowrap;
}

.focus-growth-mission > p {
  margin: 8px 0 10px;
  color: #9fa8b8;
  font-size: 8px;
  line-height: 1.5;
}

.focus-growth-mission .quest-growth-impact {
  margin: 0;
}

.focus-growth-mission > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(169, 188, 211, .1);
}

.focus-growth-mission > footer span {
  color: #737e8f;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .1em;
}

.focus-growth-mission > footer strong {
  color: #efc16c;
  font-family: var(--font-display);
  font-size: 11px;
}

.focus-growth-truth {
  display: block;
  margin-top: 7px;
  color: #626d7e;
  font-size: 7px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .focus-growth-mission > header {
    flex-direction: column;
  }

  .focus-growth-mission > header b {
    white-space: normal;
  }
}

/* ============================================================
   Phase 33 — unified reality growth result
   ============================================================ */
.reality-growth-result {
  padding: 18px;
  border: 1px solid rgba(229, 174, 82, .36);
  background:
    radial-gradient(circle at 12% 0, rgba(229, 174, 82, .12), transparent 35%),
    linear-gradient(135deg, rgba(17, 31, 49, .98), rgba(5, 13, 24, .96));
}

.reality-growth-result > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.reality-growth-result > header h2 {
  margin: 5px 0 0;
  color: #f1f3f7;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 21px);
}

.reality-growth-result > header > span {
  padding: 6px 8px;
  border: 1px solid rgba(229, 174, 82, .36);
  color: #efc16c;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.reality-growth-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.reality-growth-result-grid > article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(169, 188, 211, .14);
  background: rgba(3, 10, 19, .5);
}

.reality-growth-result-grid > article.is-boss {
  border-color: rgba(218, 91, 82, .3);
}

.reality-growth-result-grid > article.is-job {
  border-color: rgba(165, 116, 220, .3);
}

.reality-growth-result-grid small,
.reality-growth-result-grid b {
  color: #818c9e;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .08em;
}

.reality-growth-result-grid strong {
  overflow-wrap: anywhere;
  color: #f0cf7a;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.45;
}

.reality-growth-result-grid > article.is-boss strong {
  color: #e48d82;
}

.reality-growth-result-grid > article.is-job strong {
  color: #cba5ec;
}

.reality-growth-result-grid span {
  color: #c6ceda;
  font-size: 9px;
  line-height: 1.45;
}

.reality-growth-result-grid b {
  overflow-wrap: anywhere;
  color: #8f9bad;
  line-height: 1.45;
}

.reality-growth-result > p {
  margin: 12px 0 0;
  color: #687486;
  font-size: 7px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .reality-growth-result {
    padding: 14px;
  }

  .reality-growth-result > header {
    flex-direction: column;
  }

  .reality-growth-result > header > span {
    white-space: normal;
  }

  .reality-growth-result-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Phase 36 — next campaign horizon
   ============================================================ */
.campaign-horizon {
  padding: 20px;
  border: 1px solid rgba(112, 161, 190, .28);
  background:
    radial-gradient(circle at 88% 0, rgba(87, 142, 173, .14), transparent 34%),
    linear-gradient(135deg, rgba(10, 25, 40, .96), rgba(4, 11, 20, .98));
}

.campaign-horizon > header,
.campaign-horizon > footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.campaign-horizon > header h2 {
  margin: 5px 0 6px;
  color: #eef2f6;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 20px);
}

.campaign-horizon > header p,
.campaign-horizon > footer p {
  max-width: 720px;
  margin: 0;
  color: #8f9bac;
  font-size: 8px;
  line-height: 1.55;
}

.campaign-horizon > header > span {
  padding: 6px 8px;
  border: 1px solid rgba(112, 161, 190, .34);
  color: #9dcee4;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.campaign-horizon-road {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin: 18px 0;
}

.campaign-horizon-road > article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(169, 188, 211, .14);
  background: rgba(3, 10, 19, .56);
}

.campaign-horizon-road > article.is-cleared,
.campaign-horizon-road > article.is-ready,
.campaign-horizon-road > article.has-candidate {
  border-color: rgba(229, 174, 82, .3);
  background: linear-gradient(145deg, rgba(80, 54, 24, .22), rgba(3, 10, 19, .62));
}

.campaign-horizon-road small {
  color: #77869a;
  font-family: var(--font-display);
  font-size: 6px;
  letter-spacing: .08em;
}

.campaign-horizon-road strong {
  overflow-wrap: anywhere;
  color: #dde5ed;
  font-size: 10px;
  line-height: 1.45;
}

.campaign-horizon-road span {
  color: #8f9bad;
  font-size: 7px;
  line-height: 1.45;
}

.campaign-horizon-road > i {
  display: grid;
  place-items: center;
  width: 14px;
  color: #60758a;
}

.campaign-horizon-road > i svg {
  width: 12px;
  height: 12px;
}

.campaign-horizon > footer {
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(169, 188, 211, .1);
}

.campaign-horizon > footer .primary-action {
  flex: 0 0 auto;
}

@media (max-width: 1020px) {
  .campaign-horizon-road {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-horizon-road > i {
    display: none;
  }
}

@media (max-width: 767px) {
  .campaign-horizon {
    padding: 14px;
  }

  .campaign-horizon > header,
  .campaign-horizon > footer {
    flex-direction: column;
  }

  .campaign-horizon > header > span {
    white-space: normal;
  }

  .campaign-horizon-road {
    grid-template-columns: 1fr;
  }

  .campaign-horizon > footer .primary-action {
    width: 100%;
  }
}

/* ============================================================
   Phase 37 — explicit next boss definition
   ============================================================ */
.campaign-horizon-road > article.is-next-boss.is-configured {
  border-color: rgba(188, 106, 214, .34);
  background: linear-gradient(145deg, rgba(69, 38, 91, .25), rgba(3, 10, 19, .62));
}

.next-boss-setup {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px solid rgba(188, 106, 214, .24);
  background:
    radial-gradient(circle at 8% 0, rgba(148, 81, 178, .13), transparent 34%),
    rgba(5, 13, 24, .94);
}

.next-boss-setup > header h2 {
  margin: 5px 0 6px;
  color: #eef1f6;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 20px);
}

.next-boss-setup > header p,
.next-boss-setup.is-unavailable > div > p {
  max-width: 760px;
  margin: 0;
  color: #929cad;
  font-size: 8px;
  line-height: 1.55;
}

.next-boss-setup.is-unavailable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.next-boss-saved {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 13px;
  border: 1px solid rgba(188, 106, 214, .28);
  background: rgba(57, 30, 75, .18);
}

.next-boss-saved > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(188, 106, 214, .34);
  color: #d4a9e6;
}

.next-boss-saved svg {
  width: 16px;
  height: 16px;
}

.next-boss-saved > div {
  display: grid;
  gap: 3px;
}

.next-boss-saved small,
.next-boss-setup summary,
.next-boss-setup label > span,
.next-boss-setup legend {
  color: #8d799a;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .08em;
}

.next-boss-saved strong {
  color: #dec6e8;
  font-size: 11px;
}

.next-boss-saved p {
  margin: 0;
  color: #949dad;
  font-size: 8px;
}

.next-boss-setup details {
  border-top: 1px solid rgba(169, 188, 211, .1);
}

.next-boss-setup summary {
  padding: 13px 0;
  color: #c7a8d7;
  cursor: pointer;
}

#nextBossSetupForm {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.next-boss-core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#nextBossSetupForm label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#nextBossSetupForm input,
#nextBossSetupForm select,
#nextBossSetupForm textarea {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(169, 188, 211, .18);
  border-radius: 0;
  background: rgba(2, 8, 16, .74);
  color: #dbe2ea;
  font: inherit;
}

#nextBossSetupForm fieldset {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(169, 188, 211, .12);
}

.next-boss-condition {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(180px, 1.4fr) repeat(3, minmax(110px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(169, 188, 211, .1);
  background: rgba(2, 8, 16, .38);
}

#nextBossSetupForm > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#nextBossSetupForm > footer small {
  max-width: 660px;
  color: #6e798a;
  font-size: 7px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .next-boss-condition {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-boss-condition .is-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .next-boss-setup {
    padding: 14px;
  }

  .next-boss-setup.is-unavailable,
  #nextBossSetupForm > footer {
    flex-direction: column;
    align-items: stretch;
  }

  .next-boss-core-grid,
  .next-boss-condition {
    grid-template-columns: 1fr;
  }

  .next-boss-condition .is-wide {
    grid-column: auto;
  }

  #nextBossSetupForm > footer .primary-action {
    width: 100%;
  }
}

/* Phase 39: factual first move for the active configured campaign */
.campaign-opening-guide {
  display: grid;
  grid-column: 1 / -1;
  gap: 16px;
  padding: 18px;
  border-color: rgba(94, 164, 184, .32);
  background:
    linear-gradient(145deg, rgba(8, 31, 43, .82), rgba(4, 11, 21, .94)),
    rgba(3, 10, 18, .94);
}

.campaign-opening-guide > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.campaign-opening-guide > header h2,
.campaign-opening-guide > header p,
.campaign-opening-quest h3,
.campaign-opening-quest p,
.campaign-opening-relations p,
.campaign-opening-level p,
.campaign-opening-alternatives p {
  margin: 0;
}

.campaign-opening-guide > header h2 {
  margin-top: 4px;
  color: #e4edf1;
  font-size: clamp(17px, 2.2vw, 25px);
}

.campaign-opening-guide > header p {
  margin-top: 7px;
  color: #93a5ad;
  line-height: 1.65;
}

.campaign-opening-guide > header > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(92, 183, 190, .35);
  color: #83ced0;
  font-size: 8px;
  letter-spacing: .14em;
}

.campaign-opening-primary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 12px;
}

.campaign-opening-quest {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(221, 183, 88, .34);
  background: linear-gradient(130deg, rgba(65, 47, 14, .28), rgba(5, 13, 22, .5));
}

.campaign-opening-rank {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(221, 183, 88, .5);
  color: #e0c375;
  font-size: 10px;
  letter-spacing: .1em;
}

.campaign-opening-quest small {
  color: #b99448;
  font-size: 7px;
  letter-spacing: .14em;
}

.campaign-opening-quest h3 {
  margin-top: 5px;
  color: #f0e4c1;
  font-size: 16px;
}

.campaign-opening-quest p {
  margin-top: 6px;
  color: #969c9d;
  line-height: 1.6;
}

.campaign-opening-quest > div > div {
  display: flex;
  gap: 10px;
  margin-top: 9px;
  color: #9aa7ad;
}

.campaign-opening-quest > div > div b {
  color: #73c1c4;
}

.campaign-opening-impacts {
  display: grid;
  gap: 8px;
}

.campaign-opening-level,
.campaign-opening-relations li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(92, 183, 190, .18);
  background: rgba(3, 12, 20, .52);
}

.campaign-opening-level > span,
.campaign-opening-relations li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #73c1c4;
}

.campaign-opening-level svg,
.campaign-opening-relations svg {
  width: 16px;
  height: 16px;
}

.campaign-opening-level small,
.campaign-opening-relations small,
.campaign-opening-alternatives small {
  color: #6eaeb3;
  font-size: 7px;
  letter-spacing: .12em;
}

.campaign-opening-level strong,
.campaign-opening-relations strong {
  display: block;
  margin-top: 2px;
  color: #d4e4e5;
  font-size: 10px;
}

.campaign-opening-level.is-unknown {
  border-color: rgba(224, 153, 84, .25);
  background: rgba(74, 45, 27, .2);
}

.campaign-opening-level.is-unknown > span,
.campaign-opening-level.is-unknown small,
.campaign-opening-level.is-unknown strong {
  color: #f0b674;
}

.campaign-opening-level p,
.campaign-opening-relations p,
.campaign-opening-alternatives p {
  margin-top: 4px;
  color: #89969d;
  font-size: 8px;
  line-height: 1.55;
}

.campaign-opening-relations {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campaign-opening-relations li.is-goal_link,
.campaign-opening-relations li.is-support {
  border-color: rgba(129, 141, 175, .2);
}

.campaign-opening-no-direct {
  padding: 12px;
  border: 1px solid rgba(130, 149, 174, .14);
  color: #89949f;
  line-height: 1.6;
}

.campaign-opening-alternatives {
  display: grid;
  gap: 8px;
}

.campaign-opening-alternatives > article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(130, 149, 174, .13);
  background: rgba(2, 8, 16, .42);
}

.campaign-opening-alternatives > article > span {
  color: #66798a;
}

.campaign-opening-alternatives strong {
  display: block;
  margin-top: 2px;
  color: #c8d1d6;
}

.campaign-opening-fallbacks {
  display: grid;
  gap: 8px;
}

.campaign-opening-fallbacks article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(130, 149, 174, .14);
}

.campaign-opening-fallbacks small,
.campaign-opening-fallbacks strong {
  display: block;
}

.campaign-opening-fallbacks small {
  color: #68798a;
  font-size: 7px;
}

.campaign-opening-fallbacks strong {
  margin-top: 3px;
  color: #bec9cf;
}

.campaign-opening-truth {
  margin: 0;
  color: #65757e;
  font-size: 8px;
  line-height: 1.65;
}

@media (max-width: 1020px) {
  .campaign-opening-primary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .campaign-opening-guide {
    padding: 14px;
  }

  .campaign-opening-guide > header,
  .campaign-opening-fallbacks article {
    flex-direction: column;
    align-items: stretch;
  }

  .campaign-opening-guide > header > span {
    align-self: flex-start;
  }

  .campaign-opening-quest,
  .campaign-opening-alternatives > article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .campaign-opening-quest > .primary-action,
  .campaign-opening-quest > .quest-session-action,
  .campaign-opening-alternatives .secondary-action,
  .campaign-opening-alternatives .quest-session-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .campaign-opening-quest > .primary-action,
  .campaign-opening-alternatives .secondary-action {
    justify-content: center;
  }
}

/* Phase 40: factual EXP repetition forecast for the current BOSS */
.boss-training-forecast {
  display: grid;
  grid-column: 1 / -1;
  gap: 16px;
  padding: 18px;
  border-color: rgba(125, 105, 190, .34);
  background:
    radial-gradient(circle at 91% 0, rgba(103, 74, 183, .16), transparent 31%),
    linear-gradient(145deg, rgba(13, 20, 42, .94), rgba(3, 10, 18, .96));
}

.boss-training-forecast > header,
.boss-training-forecast > footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.boss-training-forecast > header h2,
.boss-training-forecast > header p,
.boss-training-forecast > footer p,
.boss-forecast-route p {
  margin: 0;
}

.boss-training-forecast > header h2 {
  margin-top: 4px;
  color: #e7e2f6;
  font-size: clamp(18px, 2.1vw, 25px);
}

.boss-training-forecast > header p {
  margin-top: 7px;
  color: #939bad;
  line-height: 1.65;
}

.boss-forecast-summary {
  display: grid;
  flex: 0 0 auto;
  min-width: 190px;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 116, 210, .3);
  text-align: right;
  background: rgba(12, 12, 32, .58);
}

.boss-forecast-summary small {
  color: #8e7bc8;
  font-size: 7px;
  letter-spacing: .13em;
}

.boss-forecast-summary strong {
  color: #efe1aa;
  font-family: var(--display);
  font-size: 18px;
}

.boss-forecast-summary span {
  color: #78bec5;
  font-size: 9px;
}

.boss-forecast-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.boss-forecast-route {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(128, 139, 178, .18);
  background: rgba(2, 8, 18, .54);
}

.boss-forecast-route > header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.boss-forecast-route > header > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(133, 115, 195, .42);
  color: #9f8bd6;
  font-size: 8px;
}

.boss-forecast-route > header small,
.boss-forecast-route > header strong {
  display: block;
}

.boss-forecast-route > header small {
  color: #7885aa;
  font-size: 7px;
  letter-spacing: .12em;
}

.boss-forecast-route > header strong {
  margin-top: 2px;
  color: #e2d7aa;
  font-size: 13px;
}

.boss-forecast-meter {
  height: 4px;
  overflow: hidden;
  background: rgba(113, 124, 161, .14);
}

.boss-forecast-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6579c9, #68bbc0);
}

.boss-forecast-current,
.boss-forecast-empty {
  color: #758491;
  font-size: 8px;
  line-height: 1.55;
}

.boss-forecast-route > ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boss-forecast-route > ul li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(112, 137, 158, .12);
  color: #a8b4ba;
  font-size: 8px;
}

.boss-forecast-route > ul b {
  flex: 0 0 auto;
  color: #6fc1c4;
}

.boss-forecast-basis {
  min-height: 69px;
  padding: 9px;
  border: 1px solid rgba(105, 180, 186, .17);
  background: rgba(7, 26, 34, .36);
}

.boss-forecast-basis.is-measured {
  border-color: rgba(105, 180, 186, .3);
}

.boss-forecast-basis.is-unknown {
  border-color: rgba(133, 139, 157, .14);
  background: rgba(12, 16, 25, .36);
}

.boss-forecast-basis small,
.boss-forecast-basis strong {
  display: block;
}

.boss-forecast-basis small {
  color: #6caeb4;
  font-size: 7px;
  letter-spacing: .1em;
}

.boss-forecast-basis strong {
  margin-top: 3px;
  color: #c9d9dc;
  font-size: 10px;
}

.boss-forecast-basis p {
  margin-top: 4px;
  color: #74868f;
  font-size: 8px;
  line-height: 1.5;
}

.boss-forecast-route > footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 2px;
}

.boss-forecast-route > footer strong {
  color: #d9c787;
  font-size: 9px;
}

.boss-forecast-route > footer small {
  color: #657580;
  font-size: 7px;
  line-height: 1.5;
}

.boss-training-forecast > footer {
  align-items: center;
}

.boss-training-forecast > footer p {
  max-width: 680px;
  color: #65717e;
  font-size: 8px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .boss-training-forecast {
    padding: 14px;
  }

  .boss-training-forecast > header,
  .boss-training-forecast > footer {
    flex-direction: column;
    align-items: stretch;
  }

  .boss-forecast-summary {
    min-width: 0;
    text-align: left;
  }

  .boss-forecast-routes {
    grid-template-columns: 1fr;
  }

  .boss-training-forecast > footer .secondary-action {
    width: 100%;
    justify-content: center;
  }
}

/* Phase 41: current-campaign factual ability growth trend */
.ability-growth-trend {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border-color: rgba(96, 177, 184, .24);
  background:
    radial-gradient(circle at 88% 4%, rgba(83, 174, 178, .11), transparent 32%),
    linear-gradient(145deg, rgba(5, 15, 28, .97), rgba(7, 10, 21, .96));
}

.ability-growth-trend > header,
.ability-growth-trend > footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ability-growth-trend > header h2,
.ability-growth-trend > header p,
.ability-growth-trend > footer p {
  margin: 0;
}

.ability-growth-trend > header h2 {
  margin-top: 3px;
  color: #e9e0b9;
  font-size: clamp(17px, 2.1vw, 23px);
}

.ability-growth-trend > header p:not(.section-kicker) {
  margin-top: 5px;
  color: #71828e;
  font-size: 8px;
}

.growth-trend-top,
.growth-trend-state {
  flex: 0 0 auto;
  min-width: 142px;
  padding: 9px 11px;
  border: 1px solid rgba(98, 189, 187, .3);
  background: rgba(7, 35, 40, .38);
  text-align: right;
}

.growth-trend-top small,
.growth-trend-top strong,
.growth-trend-top span {
  display: block;
}

.growth-trend-top small {
  color: #70b6ba;
  font-size: 7px;
  letter-spacing: .12em;
}

.growth-trend-top strong {
  margin-top: 2px;
  color: #d9e6d8;
  font-size: 12px;
}

.growth-trend-top span {
  margin-top: 2px;
  color: #78c8c7;
  font-size: 9px;
}

.growth-trend-state {
  min-width: 0;
  color: #758590;
  font-size: 8px;
  letter-spacing: .14em;
}

.growth-trend-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.growth-trend-summary article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(109, 133, 151, .17);
  background: rgba(3, 10, 20, .48);
}

.growth-trend-summary small {
  color: #677989;
  font-size: 7px;
  letter-spacing: .1em;
}

.growth-trend-summary strong {
  color: #d8d0ac;
  font-size: 14px;
}

.growth-trend-summary span {
  color: #74858f;
  font-size: 7px;
  line-height: 1.5;
}

.growth-trend-summary .is-up strong { color: #77c6b6; }
.growth-trend-summary .is-down strong { color: #c6a777; }
.growth-trend-summary .is-steady strong { color: #a8b4bb; }

.growth-trend-chart {
  padding: 12px 12px 9px;
  border: 1px solid rgba(101, 143, 162, .16);
  background: rgba(3, 11, 21, .5);
}

.growth-trend-chart-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  color: #647783;
  font-size: 7px;
  letter-spacing: .1em;
}

.growth-trend-chart-head strong {
  color: #8fa9ae;
  font-size: 8px;
}

.growth-trend-chart-head span:last-child {
  color: #72b6b7;
}

.growth-trend-days {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 4px;
  height: 108px;
  margin-top: 10px;
}

.growth-trend-day {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.growth-trend-day > span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  border-bottom: 1px solid rgba(105, 130, 146, .16);
}

.growth-trend-day > span b {
  display: block;
  width: min(70%, 18px);
  min-height: 2px;
  background: linear-gradient(180deg, #586988, #3a4761);
  box-shadow: 0 0 8px rgba(81, 105, 145, .18);
}

.growth-trend-day.is-current > span b {
  background: linear-gradient(180deg, #73c8c5, #407c83);
  box-shadow: 0 0 10px rgba(84, 187, 184, .24);
}

.growth-trend-day small {
  overflow: hidden;
  color: #566875;
  font-size: 6px;
  white-space: nowrap;
}

.growth-trend-day.is-current small {
  color: #6c9ea2;
}

.growth-trend-now {
  position: absolute;
  top: -17px;
  left: -2px;
  color: #73b8ba;
  font-size: 6px;
  font-style: normal;
  letter-spacing: .08em;
}

.growth-trend-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.growth-trend-categories > .growth-subhead,
.growth-trend-categories > .growth-trend-empty {
  grid-column: 1 / -1;
}

.growth-trend-category {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(105, 132, 148, .15);
  background: rgba(2, 9, 18, .42);
}

.growth-trend-category.is-top {
  border-color: rgba(92, 184, 181, .28);
}

.growth-trend-category > header,
.growth-trend-category > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
}

.growth-trend-category > header {
  grid-template-columns: 1fr auto;
}

.growth-trend-category > header strong {
  color: #c8d3ca;
  font-size: 9px;
}

.growth-trend-category > header span {
  color: #72bab9;
  font-size: 8px;
}

.growth-trend-category small,
.growth-trend-category em {
  color: #6f818c;
  font-size: 7px;
  font-style: normal;
}

.growth-trend-category em {
  text-align: right;
}

.growth-trend-category > div > i {
  display: block;
  height: 4px;
  overflow: hidden;
  background: rgba(103, 127, 144, .14);
}

.growth-trend-category > div > i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #428489, #70c0bc);
}

.growth-trend-category > .is-previous > i b {
  background: linear-gradient(90deg, #424d68, #64718e);
}

.growth-trend-empty,
.growth-trend-unavailable {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(110, 132, 147, .2);
  color: #71818b;
  font-size: 8px;
  line-height: 1.65;
}

.growth-trend-unavailable {
  display: flex;
  align-items: center;
  gap: 11px;
}

.growth-trend-unavailable > span {
  width: 28px;
  height: 28px;
  color: #718796;
}

.growth-trend-unavailable strong {
  color: #b8c3c2;
  font-size: 10px;
}

.growth-trend-unavailable p {
  margin: 3px 0 0;
  color: #6f7d87;
  font-size: 8px;
}

.ability-growth-trend > footer {
  align-items: center;
}

.ability-growth-trend > footer p {
  max-width: 720px;
  color: #62717b;
  font-size: 8px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .ability-growth-trend {
    gap: 13px;
    padding: 14px;
  }

  .ability-growth-trend > header,
  .ability-growth-trend > footer {
    flex-direction: column;
    align-items: stretch;
  }

  .growth-trend-top {
    min-width: 0;
    text-align: left;
  }

  .growth-trend-summary,
  .growth-trend-categories {
    grid-template-columns: 1fr;
  }

  .growth-trend-days {
    gap: 2px;
    height: 94px;
  }

  .growth-trend-day small {
    font-size: 5px;
  }

  .growth-trend-categories > .growth-subhead,
  .growth-trend-categories > .growth-trend-empty {
    grid-column: auto;
  }

  .ability-growth-trend > footer .secondary-action {
    width: 100%;
    justify-content: center;
  }
}

/* Phase 42: align factual seven-day growth with the current BOSS route */
.boss-growth-alignment {
  display: grid;
  gap: 9px;
  padding-top: 3px;
}

.boss-growth-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(209, 177, 94, .3);
  background:
    linear-gradient(90deg, rgba(59, 40, 17, .28), rgba(7, 20, 30, .48)),
    rgba(3, 10, 18, .5);
}

.boss-growth-focus small,
.boss-growth-focus strong,
.boss-growth-focus p,
.boss-growth-focus b {
  display: block;
  margin: 0;
}

.boss-growth-focus small {
  color: #a9945c;
  font-size: 7px;
  letter-spacing: .11em;
}

.boss-growth-focus strong {
  margin-top: 3px;
  color: #e2d29b;
  font-size: 15px;
}

.boss-growth-focus p {
  margin-top: 4px;
  color: #87949a;
  font-size: 8px;
  line-height: 1.55;
}

.boss-growth-focus > span {
  flex: 0 0 auto;
  min-width: 174px;
  padding-left: 14px;
  border-left: 1px solid rgba(190, 165, 94, .2);
  text-align: right;
}

.boss-growth-focus b {
  margin-top: 3px;
  color: #d9c47f;
  font-size: 12px;
}

.boss-growth-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.boss-growth-route {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(102, 128, 145, .15);
  background: rgba(2, 9, 17, .45);
}

.boss-growth-route.is-focus {
  border-color: rgba(204, 174, 93, .27);
}

.boss-growth-route.is-neglected {
  background: linear-gradient(145deg, rgba(50, 24, 18, .2), rgba(2, 9, 17, .46));
}

.boss-growth-rank {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(176, 151, 85, .28);
  color: #ae965e;
  font-size: 7px;
}

.boss-growth-route-main {
  min-width: 0;
}

.boss-growth-route-main small,
.boss-growth-route-main strong,
.boss-growth-route-main p {
  display: block;
  margin: 0;
}

.boss-growth-route-main small {
  color: #657a85;
  font-size: 6px;
  letter-spacing: .1em;
}

.boss-growth-route.is-neglected .boss-growth-route-main small {
  color: #b48772;
}

.boss-growth-route.is-queued .boss-growth-route-main small {
  color: #b39c63;
}

.boss-growth-route.is-active .boss-growth-route-main small {
  color: #69aaa9;
}

.boss-growth-route-main strong {
  margin-top: 2px;
  color: #c7d1ca;
  font-size: 10px;
}

.boss-growth-route-main p {
  margin-top: 3px;
  color: #65757d;
  font-size: 7px;
  line-height: 1.45;
}

.boss-growth-route-facts,
.boss-growth-candidate {
  grid-column: 1 / -1;
}

.boss-growth-route-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.boss-growth-route-facts > span {
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(101, 126, 142, .11);
  background: rgba(6, 16, 25, .38);
}

.boss-growth-route-facts small,
.boss-growth-route-facts b {
  display: block;
}

.boss-growth-route-facts small {
  overflow: hidden;
  color: #5f707a;
  font-size: 5px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.boss-growth-route-facts b {
  margin-top: 2px;
  overflow: hidden;
  color: #aebcba;
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.boss-growth-candidate {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #7f989a;
  font-size: 7px;
  line-height: 1.5;
}

.boss-growth-candidate svg {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
}

.boss-growth-candidate.is-empty {
  color: #6f6869;
}

.boss-growth-truth {
  margin: 0;
  color: #5f6e77;
  font-size: 7px;
  line-height: 1.55;
}

@media (max-width: 1020px) {
  .boss-growth-routes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .boss-growth-focus {
    flex-direction: column;
    align-items: stretch;
  }

  .boss-growth-focus > span {
    min-width: 0;
    padding: 10px 0 0;
    border-top: 1px solid rgba(190, 165, 94, .2);
    border-left: 0;
    text-align: left;
  }

  .boss-growth-route-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phase 43: bridge the factual BOSS focus to one existing quest action */
.boss-growth-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(111, 146, 157, .2);
  background: rgba(4, 14, 23, .62);
}

.boss-growth-action.is-ready {
  border-color: rgba(201, 168, 83, .35);
  background:
    radial-gradient(circle at 92% 20%, rgba(199, 157, 68, .12), transparent 30%),
    linear-gradient(100deg, rgba(54, 35, 13, .28), rgba(4, 14, 23, .62));
}

.boss-growth-action.is-active {
  border-color: rgba(88, 186, 181, .3);
  background: linear-gradient(100deg, rgba(14, 55, 57, .28), rgba(4, 14, 23, .62));
}

.boss-growth-action.is-blocked,
.boss-growth-action.is-unavailable {
  border-color: rgba(111, 123, 137, .17);
  background: rgba(6, 11, 18, .48);
}

.boss-growth-action > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(198, 167, 83, .3);
  color: #c6a954;
}

.boss-growth-action.is-active > span {
  border-color: rgba(94, 185, 180, .3);
  color: #6fc0bc;
}

.boss-growth-action.is-blocked > span,
.boss-growth-action.is-unavailable > span {
  border-color: rgba(111, 127, 140, .2);
  color: #75858e;
}

.boss-growth-action > span svg {
  width: 15px;
  height: 15px;
}

.boss-growth-action > div {
  min-width: 0;
}

.boss-growth-action small,
.boss-growth-action strong,
.boss-growth-action p {
  display: block;
  margin: 0;
}

.boss-growth-action small {
  color: #aa9150;
  font-size: 7px;
  letter-spacing: .11em;
}

.boss-growth-action.is-active small {
  color: #69aaa9;
}

.boss-growth-action.is-blocked small,
.boss-growth-action.is-unavailable small {
  color: #6e7c85;
}

.boss-growth-action strong {
  margin-top: 2px;
  overflow: hidden;
  color: #ddd5b5;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.boss-growth-action p {
  margin-top: 3px;
  color: #77878d;
  font-size: 7px;
  line-height: 1.5;
}

.boss-growth-action > button {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .boss-growth-action {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .boss-growth-action > button {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .boss-growth-action strong {
    white-space: normal;
  }
}

/* Phase 44: factual ability-route feedback after explicit quest completion */
.boss-focus-result {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(83, 174, 181, .34);
  background:
    radial-gradient(circle at 8% 0, rgba(64, 166, 177, .14), transparent 34%),
    linear-gradient(135deg, rgba(8, 35, 43, .92), rgba(4, 12, 23, .98));
}

.boss-focus-result.is-challenge_ready,
.boss-focus-result.is-boss_cleared {
  border-color: rgba(210, 172, 74, .4);
  background:
    radial-gradient(circle at 88% 0, rgba(210, 172, 74, .15), transparent 34%),
    linear-gradient(135deg, rgba(45, 34, 15, .72), rgba(4, 12, 23, .98));
}

.boss-focus-result > header,
.boss-focus-result > footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.boss-focus-result > header > div {
  min-width: 0;
}

.boss-focus-result > header h2 {
  margin: 5px 0 2px;
  color: #e7f1ee;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 21px);
}

.boss-focus-result > header p:last-child,
.boss-focus-result > footer p {
  margin: 0;
  color: #78979d;
  font-size: 8px;
  line-height: 1.5;
}

.boss-focus-result > header > span {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(83, 174, 181, .36);
  color: #7fd3ce;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.boss-focus-result.is-challenge_ready > header > span,
.boss-focus-result.is-boss_cleared > header > span {
  border-color: rgba(210, 172, 74, .4);
  color: #efc76f;
}

.boss-focus-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.boss-focus-result-grid > article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(120, 174, 180, .17);
  background: rgba(2, 12, 20, .48);
}

.boss-focus-result-grid small {
  color: #6f9ba1;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .09em;
}

.boss-focus-result-grid strong {
  overflow-wrap: anywhere;
  color: #9ee0d8;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.4;
}

.boss-focus-result-grid span {
  color: #91a7ab;
  font-size: 8px;
  line-height: 1.45;
}

.boss-focus-result-route > div {
  overflow: hidden;
  height: 7px;
  border: 1px solid rgba(83, 174, 181, .18);
  background: rgba(2, 8, 14, .72);
}

.boss-focus-result-route > div > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b68147, #59b6b5);
  box-shadow: 0 0 10px rgba(83, 174, 181, .22);
}

.boss-focus-result-next.is-ready {
  border-color: rgba(210, 172, 74, .26);
}

.boss-focus-result-next.is-ready strong {
  color: #efc76f;
}

.boss-focus-result > footer {
  padding-top: 11px;
  border-top: 1px solid rgba(120, 174, 180, .1);
}

.boss-focus-result > footer p {
  max-width: 680px;
}

.boss-focus-result > footer button {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .boss-focus-result {
    padding: 14px;
  }

  .boss-focus-result > header,
  .boss-focus-result > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .boss-focus-result > header > span {
    align-self: flex-start;
    white-space: normal;
  }

  .boss-focus-result-grid {
    grid-template-columns: 1fr;
  }

  .boss-focus-result > footer button {
    width: 100%;
    justify-content: center;
  }
}

/* Phase 45: dated factual training history for the current configured BOSS */
.boss-training-chronicle {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-color: rgba(114, 147, 184, .25);
  background:
    radial-gradient(circle at 92% 0, rgba(86, 133, 176, .12), transparent 34%),
    linear-gradient(135deg, rgba(8, 24, 39, .95), rgba(3, 11, 20, .98));
}

.boss-training-chronicle > header,
.boss-training-chronicle > footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.boss-training-chronicle > header > div {
  min-width: 0;
}

.boss-training-chronicle > header h2 {
  margin: 5px 0 2px;
  color: #e4edf2;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 21px);
}

.boss-training-chronicle > header p:last-child,
.boss-training-chronicle > footer p {
  margin: 0;
  color: #738998;
  font-size: 8px;
  line-height: 1.5;
}

.boss-training-chronicle > header > span {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(114, 161, 198, .3);
  color: #8ebbd6;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.boss-training-chronicle-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.boss-training-chronicle-summary > article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(114, 147, 184, .14);
  background: rgba(3, 12, 21, .5);
}

.boss-training-chronicle-summary small,
.boss-training-chronicle-summary strong,
.boss-training-chronicle-summary span {
  overflow-wrap: anywhere;
}

.boss-training-chronicle-summary small {
  color: #71889a;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .08em;
}

.boss-training-chronicle-summary strong {
  color: #a8d0e7;
  font-family: var(--font-display);
  font-size: 14px;
}

.boss-training-chronicle-summary span {
  color: #657b89;
  font-size: 7px;
}

.boss-training-log {
  display: grid;
  gap: 7px;
}

.boss-training-log-entry {
  display: grid;
  grid-template-columns: 26px 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(114, 147, 184, .13);
  background: rgba(2, 9, 17, .48);
}

.boss-training-log-index {
  color: #4d687b;
  font-family: var(--font-display);
  font-size: 8px;
}

.boss-training-log-rune,
.boss-training-log-empty > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(96, 176, 184, .24);
  color: #76bfc2;
  background: rgba(47, 122, 132, .08);
}

.boss-training-log-rune svg,
.boss-training-log-empty > span svg {
  width: 13px;
  height: 13px;
}

.boss-training-log-entry > div,
.boss-training-log-entry > b {
  display: grid;
  min-width: 0;
}

.boss-training-log-entry small,
.boss-training-log-entry strong,
.boss-training-log-entry p,
.boss-training-log-entry b {
  margin: 0;
}

.boss-training-log-entry > div > small,
.boss-training-log-entry > b > small {
  color: #607b8d;
  font-size: 7px;
  letter-spacing: .06em;
}

.boss-training-log-entry strong {
  overflow: hidden;
  color: #d7e3e8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-training-log-entry p {
  color: #75aeb4;
  font-size: 8px;
}

.boss-training-log-entry > b {
  gap: 2px;
  color: #d0b76d;
  font-family: var(--font-display);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.boss-training-log-empty {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px dashed rgba(114, 147, 184, .18);
  background: rgba(2, 9, 17, .35);
}

.boss-training-log-empty strong {
  color: #aabac3;
  font-size: 10px;
}

.boss-training-log-empty p {
  margin: 3px 0 0;
  color: #667a86;
  font-size: 8px;
}

.boss-training-chronicle > footer {
  padding-top: 11px;
  border-top: 1px solid rgba(114, 147, 184, .1);
}

.boss-training-chronicle > footer p {
  max-width: 690px;
}

.boss-training-chronicle > footer button {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .boss-training-chronicle {
    padding: 14px;
  }

  .boss-training-chronicle > header,
  .boss-training-chronicle > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .boss-training-chronicle > header > span {
    align-self: flex-start;
    white-space: normal;
  }

  .boss-training-chronicle-summary {
    grid-template-columns: 1fr;
  }

  .boss-training-log-entry {
    grid-template-columns: 22px 30px minmax(0, 1fr);
    gap: 8px;
  }

  .boss-training-log-entry > b {
    grid-column: 2 / -1;
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  .boss-training-log-entry strong {
    white-space: normal;
  }

  .boss-training-chronicle > footer button {
    width: 100%;
    justify-content: center;
  }
}

/* Phase 46: complete current-BOSS EXP ledger from the V2 factual history projection */
.boss-training-ledger {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(107, 173, 183, .16);
  background: linear-gradient(135deg, rgba(9, 32, 42, .5), rgba(3, 12, 21, .45));
}

.boss-training-ledger-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.boss-training-ledger-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, .7fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(104, 144, 163, .12);
  background: rgba(2, 10, 17, .45);
}

.boss-training-ledger-route > div:first-child {
  display: grid;
  min-width: 0;
}

.boss-training-ledger-route small,
.boss-training-ledger-route strong,
.boss-training-ledger-route span {
  overflow-wrap: anywhere;
}

.boss-training-ledger-route small {
  color: #7895a3;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .06em;
}

.boss-training-ledger-route strong {
  color: #66818d;
  font-family: var(--font-display);
  font-size: 12px;
}

.boss-training-ledger-route.is-trained strong {
  color: #7fc5c3;
}

.boss-training-ledger-route span {
  color: #5f7480;
  font-size: 7px;
}

.boss-training-ledger-meter {
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(100, 153, 164, .14);
  background: rgba(1, 7, 12, .8);
}

.boss-training-ledger-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #377a82, #78c6bf);
  box-shadow: 0 0 10px rgba(90, 192, 184, .22);
}

.boss-training-log-head {
  margin-bottom: -6px;
}

@media (max-width: 767px) {
  .boss-training-ledger-routes,
  .boss-training-ledger-route {
    grid-template-columns: 1fr;
  }
}

/* Phase 47: connect earned current-BOSS EXP to the remaining level/ability gaps */
.boss-training-chronicle-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.boss-training-gap-summary {
  border-color: rgba(196, 157, 83, .22) !important;
  background: linear-gradient(135deg, rgba(74, 50, 18, .2), rgba(3, 12, 21, .52)) !important;
}

.boss-training-gap-summary strong {
  color: #d7bb74;
}

.boss-training-ledger-route {
  grid-template-columns: minmax(0, 1fr) auto;
}

.boss-training-ledger-gap {
  display: grid;
  justify-items: end;
  min-width: 78px;
}

.boss-training-ledger-gap small {
  color: #8d754d;
}

.boss-training-ledger-gap strong {
  color: #d0b36b;
  font-size: 9px;
  white-space: nowrap;
}

.boss-training-ledger-meter {
  grid-column: 1 / -1;
}

@media (max-width: 767px) {
  .boss-training-chronicle-summary,
  .boss-training-ledger-route {
    grid-template-columns: 1fr;
  }

  .boss-training-ledger-gap {
    grid-template-columns: auto 1fr;
    gap: 8px;
    justify-items: start;
    min-width: 0;
  }
}

/* Phase 50: prove that route allocation equals the factual BOSS level gap */
.boss-training-allocation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(104, 144, 163, .16);
  background: rgba(3, 12, 20, .5);
}

.boss-training-allocation > div {
  display: grid;
  min-width: 0;
}

.boss-training-allocation small,
.boss-training-allocation span {
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .09em;
}

.boss-training-allocation small {
  color: #7895a3;
}

.boss-training-allocation strong {
  overflow-wrap: anywhere;
  color: #c9d8df;
  font-family: var(--font-display);
  font-size: 12px;
}

.boss-training-allocation span {
  padding: 5px 7px;
  border: 1px solid currentColor;
  color: #81949d;
  white-space: nowrap;
}

.boss-training-allocation p {
  grid-column: 1 / -1;
  margin: 0;
  color: #748690;
  font-size: 8px;
  line-height: 1.55;
}

.boss-training-allocation.is-matched {
  border-color: rgba(78, 178, 132, .24);
  background: rgba(28, 94, 67, .12);
}

.boss-training-allocation.is-matched strong,
.boss-training-allocation.is-matched span {
  color: #8bd8ae;
}

.boss-training-allocation.is-conflict,
.boss-training-forecast.is-conflict .boss-forecast-summary {
  border-color: rgba(219, 115, 87, .34);
  background: rgba(111, 42, 31, .16);
}

.boss-training-allocation.is-conflict strong,
.boss-training-allocation.is-conflict span,
.boss-training-forecast.is-conflict .boss-forecast-summary b {
  color: #ec987f;
}

.boss-forecast-summary b {
  display: block;
  margin-top: 5px;
  color: #8bd8ae;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .07em;
}

@media (max-width: 767px) {
  .boss-training-allocation {
    grid-template-columns: 1fr;
  }

  .boss-training-allocation span {
    width: fit-content;
    white-space: normal;
  }

  .boss-training-allocation p {
    grid-column: auto;
  }
}

/* ============================================================
   Phase 51 — always-visible factual BOSS road HUD
   ============================================================ */
.player-bar > .player-identity {
  grid-column: 1;
  grid-row: 1;
}

.player-bar > .vitals {
  grid-column: 2;
  grid-row: 1;
}

.player-bar > .resource-strip {
  grid-column: 3;
  grid-row: 1;
}

.player-bar > .utility-nav {
  grid-column: 4;
  grid-row: 1;
}

.boss-road-hud {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 34px minmax(220px, 1fr) minmax(140px, .55fr) minmax(190px, .8fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 6px 10px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(88, 168, 239, .28);
  background:
    linear-gradient(90deg, rgba(26, 76, 119, .27), rgba(8, 20, 36, .88) 44%, rgba(36, 26, 18, .76));
  box-shadow: inset 0 0 20px rgba(88, 168, 239, .05);
  cursor: pointer;
}

.boss-road-hud::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #58a8ef, #c99b45 70%, transparent);
  content: "";
  opacity: .72;
}

.boss-road-hud:hover,
.boss-road-hud:focus-visible {
  border-color: rgba(232, 190, 105, .7);
  box-shadow: inset 0 0 24px rgba(88, 168, 239, .1), 0 0 18px rgba(201, 155, 69, .1);
}

.boss-road-hud-rune {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #89c8f6;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.boss-road-hud-rune svg {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
}

.boss-road-hud-level,
.boss-road-hud-gap,
.boss-road-hud-focus {
  display: grid;
  min-width: 0;
}

.boss-road-hud small {
  color: #7895a3;
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
}

.boss-road-hud strong {
  overflow: hidden;
  color: #dceaf0;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-road-hud-level strong {
  color: #f0d49a;
  font-size: 12px;
}

.boss-road-hud-open {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #91aabd;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.boss-road-hud-open svg {
  width: 14px;
  height: 14px;
}

.boss-road-hud.is-ready,
.boss-road-hud.is-cleared {
  border-color: rgba(78, 178, 132, .42);
  background: linear-gradient(90deg, rgba(25, 96, 66, .28), rgba(7, 24, 27, .9) 58%, rgba(41, 35, 18, .76));
}

.boss-road-hud.is-ready::after,
.boss-road-hud.is-cleared::after {
  background: linear-gradient(90deg, #4eb284, #e8be69 76%, transparent);
}

.boss-road-hud.is-ready .boss-road-hud-rune,
.boss-road-hud.is-cleared .boss-road-hud-rune,
.boss-road-hud.is-ready .boss-road-hud-gap strong,
.boss-road-hud.is-cleared .boss-road-hud-gap strong {
  color: #8bd8ae;
}

.boss-road-hud.is-conflict {
  border-color: rgba(219, 115, 87, .46);
  background: linear-gradient(90deg, rgba(111, 42, 31, .3), rgba(30, 16, 18, .9));
}

.boss-road-hud.is-conflict::after {
  background: linear-gradient(90deg, #db7357, transparent);
}

.boss-road-hud.is-conflict .boss-road-hud-rune,
.boss-road-hud.is-conflict .boss-road-hud-level strong,
.boss-road-hud.is-conflict .boss-road-hud-gap strong,
.boss-road-hud.is-conflict .boss-road-hud-focus strong {
  color: #ec987f;
}

.boss-road-hud.is-unknown {
  border-color: rgba(129, 148, 157, .24);
  filter: saturate(.55);
}

@media (max-width: 1320px) {
  .player-bar > .player-identity { grid-column: 1; grid-row: 1; }
  .player-bar > .vitals { grid-column: 2; grid-row: 1; }
  .player-bar > .utility-nav { grid-column: 3; grid-row: 1; }
  .boss-road-hud { grid-row: 2; }
}

@media (max-width: 880px) {
  .player-bar > .player-identity { grid-column: 1; grid-row: 1; }
  .player-bar > .utility-nav { grid-column: 2; grid-row: 1; }
  .player-bar > .vitals { grid-column: 1 / -1; grid-row: 2; }
  .boss-road-hud { grid-row: 3; }
}

@media (max-width: 767px) {
  .player-bar {
    position: sticky;
    min-height: 0;
  }

  .boss-road-hud {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 5px 9px;
    min-height: 58px;
    padding: 7px 9px;
  }

  .boss-road-hud-rune {
    grid-row: 1 / 3;
    width: 26px;
    height: 26px;
  }

  .boss-road-hud-rune svg {
    width: 15px;
    height: 15px;
  }

  .boss-road-hud-level {
    grid-column: 2;
    grid-row: 1;
  }

  .boss-road-hud-gap {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }

  .boss-road-hud-focus {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .boss-road-hud-open {
    display: none;
  }

  .boss-road-hud-level strong {
    font-size: 10px;
  }

  .boss-road-hud strong {
    font-size: 9px;
  }
}

/* ============================================================
   Phase 52 — factual quest action on the BOSS road HUD
   ============================================================ */
.boss-road-hud[data-start-quest] {
  border-color: rgba(232, 190, 105, .62);
  background: linear-gradient(90deg, rgba(30, 78, 120, .3), rgba(18, 29, 39, .9) 48%, rgba(91, 57, 24, .4));
  box-shadow: inset 0 0 22px rgba(232, 190, 105, .07), 0 0 16px rgba(201, 155, 69, .08);
}

.boss-road-hud[data-start-quest]::after {
  background: linear-gradient(90deg, #58a8ef, #e8be69 60%, #b97b38);
  opacity: 1;
}

.boss-road-hud[data-start-quest] .boss-road-hud-open {
  color: #f0d49a;
}

.boss-road-hud[data-view="focus"] .boss-road-hud-open {
  color: #8bd8ae;
}

.boss-road-hud[data-view="quests"] .boss-road-hud-open {
  color: #9eb3c1;
}

.boss-road-hud[data-start-quest] .boss-road-hud-focus strong,
.boss-road-hud[data-view="focus"] .boss-road-hud-focus strong {
  color: #f2ddb1;
}

@media (max-width: 767px) {
  .boss-road-hud-focus small {
    font-size: 6px;
    letter-spacing: .08em;
  }

  .boss-road-hud[data-start-quest] .boss-road-hud-open,
  .boss-road-hud[data-view="focus"] .boss-road-hud-open,
  .boss-road-hud[data-view="quests"] .boss-road-hud-open {
    display: inline-flex;
    grid-column: 2 / 4;
    grid-row: 3;
    justify-self: end;
    font-size: 6px;
  }
}

/* ============================================================
   Phase 53 — confirmed quest growth returns to the BOSS road HUD
   ============================================================ */
.boss-road-hud.has-confirmed-growth {
  border-color: rgba(105, 221, 164, .7);
  background: linear-gradient(90deg, rgba(21, 100, 87, .42), rgba(18, 29, 39, .94) 46%, rgba(104, 73, 24, .46));
  box-shadow: inset 0 0 24px rgba(105, 221, 164, .08), 0 0 18px rgba(105, 221, 164, .12);
  animation: boss-road-confirmed-pulse 1.25s ease-out 1;
}

.boss-road-hud.has-confirmed-growth::after {
  background: linear-gradient(90deg, #69dda4, #f0cf83 64%, #69dda4);
  opacity: 1;
}

.boss-road-hud.has-confirmed-growth .boss-road-hud-gap strong,
.boss-road-hud.has-confirmed-growth .boss-road-hud-focus strong,
.boss-road-hud.has-confirmed-growth .boss-road-hud-open {
  color: #b7f3d3;
}

@keyframes boss-road-confirmed-pulse {
  0% { filter: brightness(1); }
  36% { filter: brightness(1.32); }
  100% { filter: brightness(1); }
}

@media (max-width: 767px) {
  .boss-road-hud.has-confirmed-growth .boss-road-hud-open {
    display: inline-flex;
    grid-column: 2 / 4;
    grid-row: 3;
    justify-self: end;
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boss-road-hud.has-confirmed-growth {
    animation: none;
  }
}

/* ============================================================
   Phase 54 — level readiness and real BOSS gates stay separate
   ============================================================ */
.boss-road-hud.has-real-gate-progress .boss-road-hud-gap small {
  color: #9fc7d9;
}

.boss-road-hud.is-reality-gated {
  border-color: rgba(232, 190, 105, .64);
  background: linear-gradient(90deg, rgba(35, 72, 102, .38), rgba(18, 29, 39, .94) 48%, rgba(95, 62, 24, .44));
}

.boss-road-hud.is-reality-gated .boss-road-hud-focus strong,
.boss-road-hud.is-reality-gated .boss-road-hud-open {
  color: #f0d49a;
}

.boss-road-hud.is-reality-gated[data-legacy-view] .boss-road-hud-open {
  color: #ffd989;
}

@media (max-width: 767px) {
  .boss-road-hud.has-real-gate-progress .boss-road-hud-gap small {
    font-size: 6px;
    letter-spacing: .06em;
  }

  .boss-road-hud.is-reality-gated .boss-road-hud-open {
    display: inline-flex;
    grid-column: 2 / 4;
    grid-row: 3;
    justify-self: end;
    font-size: 6px;
  }
}

/* ============================================================
   Phase 55 — route the next real gate to its factual source
   ============================================================ */
.boss-challenge-arena.is-ready .boss-challenge-head > span {
  max-width: 190px;
  text-align: center;
}

.boss-road-hud[data-legacy-view].is-reality-gated::after {
  background: linear-gradient(90deg, #4e9ac9, #f0c96f 58%, #d59a45);
  opacity: 1;
}

@media (max-width: 767px) {
  .boss-road-hud[data-legacy-view].is-reality-gated .boss-road-hud-open {
    display: inline-flex;
    grid-column: 2 / 4;
    grid-row: 3;
    justify-self: end;
    font-size: 6px;
  }
}

/* ============================================================
   Phase 56 — truthful real-gate states beside BOSS EXP training
   ============================================================ */
.boss-real-gates li {
  align-items: center;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(169, 188, 211, .08);
  background: rgba(4, 13, 23, .35);
}

.boss-real-gates li > span {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.boss-real-gates li > span strong {
  overflow: hidden;
  color: #dceaf0;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-real-gates li > span small {
  overflow: hidden;
  color: #7895a3;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-real-gates li > b {
  flex: 0 0 auto;
  color: #8a9aa7;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: .08em;
}

.boss-real-gates li.is-cleared {
  border-color: rgba(105, 221, 164, .22);
  background: rgba(22, 92, 68, .18);
}

.boss-real-gates li.is-cleared svg,
.boss-real-gates li.is-cleared > b {
  color: #8bd8ae;
}

.boss-real-gates li.is-next {
  border-color: rgba(232, 190, 105, .42);
  background: linear-gradient(90deg, rgba(98, 61, 25, .28), rgba(4, 13, 23, .46));
}

.boss-real-gates li.is-next svg,
.boss-real-gates li.is-next > b {
  color: #f0d49a;
}

.boss-real-gates li.is-unknown {
  border-color: rgba(129, 148, 157, .18);
  filter: saturate(.55);
}

@media (max-width: 767px) {
  .boss-real-gates li > span strong,
  .boss-real-gates li > span small {
    white-space: normal;
  }
}
