@charset "UTF-8";
/* Layout primitives shared by the player app and authorized teaching workspace. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #b7a16d;
  outline-offset: 3px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 850;
  text-decoration: none;
}
.brand i {
  display: grid;
  place-items: center;
  width: 43px;
  height: 46px;
  font-style: normal;
  font-size: 27px;
  border-radius: 13px;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.8;
  margin-top: 4px;
}
h1 {
  font-size: 34px;
  font-weight: 850;
  margin: 10px 0 23px;
}
h2 {
  margin: 0 0 14px;
}
h3 {
  margin: 16px 0 11px;
  font-size: 17px;
}
p {
  margin: 10px 0 14px;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.grid {
  display: grid;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.grid.four {
  grid-template-columns: repeat(4, 1fr);
}
.gap {
  margin-top: 22px;
}
.small {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 35px;
}
.tiny {
  font-size: 12px;
}
.pill {
  font-size: 10px;
  display: inline-block;
}
.form {
  display: grid;
}
.form input,
.form select {
  width: 100%;
  min-width: 0;
}
.form button[type='submit'] {
  margin-top: 13px;
  width: 100%;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #edf1e2;
  border-radius: 15px;
  margin-bottom: 22px;
}
.tabs button {
  flex: 1;
  background: transparent;
  color: #8f9d7d;
  box-shadow: none;
  border-color: transparent;
  padding: 10px;
}
.tabs button.active {
  background: #fffdf1;
  border-color: #d4ddc0;
  color: #5c7851;
  box-shadow: 0 2px 0 #d5dfbf;
}
.attribute {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e3e7d5;
}
.room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  gap: 12px;
  text-align: left;
}
.room-card small {
  font-size: 10px;
}
.hint,
.feedback {
  padding: 14px 17px;
  border: 1px solid;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.8;
}
.empty-panel {
  text-align: center;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.code {
  font-family: ui-monospace, monospace;
  font-size: 35px;
}
.egg {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #e2edc6, transparent 65%);
  height: 250px;
  font-size: 110px;
}
#notice {
  position: sticky;
  top: 10px;
  z-index: 40;
  max-width: 800px;
  margin: auto;
  padding: 0 18px;
}
#notice:empty,
#nav:empty {
  display: none;
}
.notice {
  border: 1px solid;
  box-shadow: 0 5px 20px #6b7b4d20;
  border-radius: 15px;
  padding: 13px 17px;
  line-height: 1.8;
}
.notice button {
  min-height: 35px;
  padding: 6px 10px;
  font-size: 11px;
  margin: 7px 8px 0 0;
}
#nav {
  position: fixed;
  display: flex;
  align-items: center;
  bottom: max(14px, env(safe-area-inset-bottom));
}
#nav a {
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  white-space: nowrap;
}
#nav span {
  display: block;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  background: #fff;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
summary {
  cursor: pointer;
}
.battle-log summary {
  min-height: 32px;
}
.class-choice {
  text-align: center;
  width: 100%;
  display: block;
}
.battlefield {
  text-align: left;
}
.network {
  width: 100%;
  font-size: 11px;
  color: #b19a73;
  text-align: center;
}

.studio-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 17px 0 7px;
}
.studio-check {
  display: block;
  font-size: 12px;
  line-height: 1.8;
  margin: 15px 0;
  color: #899a79;
}
.studio-check input {
  width: 17px !important;
  height: 17px;
  min-height: 0;
  vertical-align: middle;
  margin: 0 6px 0 0;
  accent-color: #819e6d;
}
#contentStudio textarea {
  width: 100%;
  border: 2px solid #dce5ce;
  border-radius: 13px;
  padding: 12px;
  background: #fffef7;
  color: #637356;
  font:
    13px/1.8 system-ui,
    sans-serif;
  resize: vertical;
}
#contentStudio .studio-check input {
  display: inline;
}
#contentStudio .form .studio-check {
  font-weight: 400;
}
#contentStudio .studio-prompt {
  font-size: 12px;
  color: #8c987d;
}
.studio-prompt pre,
.studio-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.8 ui-monospace,
    monospace;
  max-height: 330px;
  overflow: auto;
  background: #eef2e4;
  padding: 14px;
  border-radius: 13px;
  margin-top: 12px;
}
.studio-prompt summary {
  cursor: pointer;
  min-height: 32px;
}
#contentStudio .form .grid {
  gap: 0 12px;
}
#contentStudio .form button {
  width: auto;
}
#contentStudio .room-card small {
  font-size: 10px;
}
.feedback p {
  margin-top: 8px;
}
@media (max-width: 600px) {
  #contentStudio .form .two {
    grid-template-columns: 1fr 1fr;
  }
  #contentStudio .row {
    gap: 8px;
  }
  #contentStudio button {
    font-size: 12px;
    padding: 10px 13px;
  }
  #contentStudio .row.spread {
    align-items: flex-start;
  }
}

/* Forest art direction v3: warm parchment, sculpted gold, jade glass. */
:root {
  --green: #386b55;
  --ink: #30483f;
  --line: #dedcc4;
  --paper: #fffcf1;
  color: var(--ink);
  background: #f1f1e4;
  font-family: ui-rounded, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}
body {
  background:
    radial-gradient(ellipse at 10% 0%, #d1e4d6, transparent 35%),
    radial-gradient(ellipse at 100% 30%, #ece2c8, transparent 40%), #f1f1e4;
}
.site-header {
  max-width: 1320px;
  padding: 22px 28px;
}
.brand {
  color: #315c49;
  letter-spacing: 0.05em;
}
.brand i {
  background: linear-gradient(145deg, #597f56, #244d3f);
  color: #f1d994;
  border: 2px solid #c5a860;
  box-shadow: 0 3px 10px #28453525;
}
.brand small {
  letter-spacing: 0.15em;
}
main {
  max-width: 1260px;
  margin: auto;
  padding: 12px 24px 40px;
  min-height: 65vh;
}
h1,
h2,
h3 {
  color: #2e4a3c;
  letter-spacing: 0.01em;
}
h1 {
  line-height: 1.25;
}
h2 {
  font-size: 23px;
}
p {
  line-height: 1.75;
}
button {
  border: 1px solid #719175;
  border-radius: 13px;
  background: linear-gradient(#5a896b, #37684f);
  color: #fffdf4;
  padding: 13px 19px;
  font-weight: 750;
  box-shadow: 0 3px 0 #2a503a;
  transition:
    transform 0.16s,
    filter 0.16s;
}
button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2a503a;
}
button:disabled {
  cursor: not-allowed;
  filter: saturate(0.3);
  opacity: 0.52;
}
button.secondary {
  background: #f7f7eb;
  color: #4c6554;
  border-color: #d5d8bd;
  box-shadow: 0 2px 0 #dce0c9;
}
button.gold {
  background: linear-gradient(#f5d58b, #dfb961);
  border-color: #c9a052;
  color: #533e21;
  box-shadow: 0 3px 0 #b68a43;
}
button.danger {
  background: #a25750;
  border-color: #a25750;
}
.card {
  background: linear-gradient(140deg, #fffdf5, #faf8e9);
  border: 1px solid #dedec5;
  border-radius: 23px;
  box-shadow: 0 6px 20px #354a3520;
  padding: 26px;
}
.tiny,
small {
  color: #778472;
  line-height: 1.65;
}
.pill {
  background: #edf0df;
  border: 1px solid #d8dfc8;
  color: #5f7256;
  border-radius: 8px;
  padding: 5px 9px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #8a8a65;
  font-weight: 800;
  text-transform: uppercase;
}
.heading {
  margin: 22px 0;
}
.heading h1 {
  font-size: 31px;
  margin: 7px 0 24px;
}
.heading p {
  letter-spacing: 0.1em;
  color: #8b9274;
  font-size: 12px;
}
.row {
  gap: 12px;
}
.grid {
  gap: 22px;
}
.form {
  gap: 10px;
}
.form label,
label {
  font-size: 13px;
  color: #5d705c;
  font-weight: 700;
}
input,
select {
  background: #fffef8;
  border: 1px solid #cdd5bd;
  border-radius: 11px;
  padding: 13px 14px;
  color: #3d5946;
  min-height: 46px;
  max-width: 100%;
}
input:focus,
select:focus {
  border-color: #79967b;
}
#nav {
  width: max-content;
  max-width: calc(100% - 24px);
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  border: 1px solid #c9d1b7;
  border-radius: 23px;
  box-shadow: 0 9px 30px #243b3140;
  background: #fffdf3f5;
  backdrop-filter: blur(16px);
  padding: 8px 12px;
  gap: 6px;
  z-index: 30;
}
#nav a {
  min-width: 80px;
  padding: 8px 14px;
  font-size: 12px;
  gap: 4px;
  color: #7b856f;
  border-radius: 15px;
}
#nav a.active {
  background: #e6efdd;
  color: #2e694b;
}
#nav a span {
  display: block;
}
.nav-icon {
  width: 23px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer {
  padding: 22px 20px 125px;
  color: #8c967f;
  font-size: 12px;
  text-align: center;
}
.rpg-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 8px #30422e24);
}
.raster-sprite {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.raster-sprite img {
  position: absolute;
  display: block;
  width: calc(100% * var(--frames));
  height: 100%;
  max-width: none;
  left: calc(-100% * var(--frame));
  object-fit: fill;
  top: 0;
  filter: drop-shadow(0 8px 5px #30422e20);
}
.deer-art {
  aspect-ratio: 1;
}
.trapped {
  filter: saturate(0.6) brightness(0.9);
}
.element-rune {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: #fff9e3;
  box-shadow: 0 0 15px #c8dfb988;
  font-family: serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--element, #7fa37c);
}
.element-metal {
  --element: #c7a14e;
}
.element-wood {
  --element: #68a773;
}
.element-water {
  --element: #6ca6ce;
}
.element-fire {
  --element: #d5866a;
}
.element-earth {
  --element: #b28f65;
}
.avatar-shell {
  position: relative;
  flex: none;
}
.avatar-shell > .element-rune {
  position: absolute;
  bottom: 3%;
  right: 3%;
  z-index: 2;
}
.portrait {
  width: 105px;
  height: 125px;
}
.hero-world,
.welcome-world {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, #123c30ed, #153b3050 65%, #183f3330),
    url('/assets/v3/forest-world.webp') center 60% / cover;
  border-radius: 26px;
  border: 2px solid #c6b776;
  min-height: 370px;
  overflow: hidden;
  box-shadow: 0 8px 25px #264a3530;
}
.world-copy {
  position: relative;
  z-index: 3;
  color: #ebefdb;
  max-width: 63%;
  padding: 45px;
}
.world-copy h1 {
  font-size: 42px;
  color: #fff7d8;
  margin: 18px 0;
}
.world-copy p {
  color: #e1e8cd;
  max-width: 370px;
  font-size: 14px;
  line-height: 1.85;
}
.chapter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #f1d895;
  border: 1px solid #c9c17e88;
  border-radius: 5px;
  padding: 7px 12px;
  background: #143c3466;
}
.world-secondary {
  background: #1a4938b5;
  color: #f3eccd;
  border: 1px solid #a4b38a;
  box-shadow: none;
}
.world-hero {
  position: absolute;
  right: 1%;
  bottom: -18px;
  width: 39%;
  height: 98%;
  z-index: 2;
  filter: drop-shadow(0 0 32px #ffeda544);
  transform: rotate(-4deg);
}
.world-label,
.world-location {
  position: absolute;
  right: 23px;
  bottom: 16px;
  color: #e6ebc9;
  font-size: 10px;
  letter-spacing: 0.2em;
  z-index: 4;
}
.world-magic {
  position: absolute;
  right: 32%;
  top: 12%;
  z-index: 4;
}
.world-magic .element-rune {
  width: 52px;
  height: 52px;
  font-size: 24px;
  background: #fff2c91c;
  color: #e4d08c;
}
.camp-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile .details {
  flex: 1;
}
.profile h2 {
  margin: 8px 0 15px;
}
.xp-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8b8f6d;
  margin: 10px 0 7px;
  gap: 10px;
}
.xp-track {
  height: 9px;
  background: #e4e7d4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d7ddc3;
}
.xp-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8cb891, #c5d598);
  border-radius: 12px;
  transition: width 0.7s;
}
.reward-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 0;
  margin: 15px 0;
  border-top: 1px solid #e0e4ce;
  border-bottom: 1px solid #e0e4ce;
}
.reward-stats div {
  text-align: center;
  border-right: 1px solid #e0e4ce;
}
.reward-stats div:last-child {
  border: 0;
}
.reward-stats b {
  display: block;
  font-size: 24px;
  color: #537953;
}
.reward-stats small {
  font-size: 11px;
}
.rescue-quest {
  position: relative;
  overflow: hidden;
  padding-right: 40%;
  min-height: 240px;
}
.rescue-quest p {
  font-size: 13px;
}
.quest-deer {
  position: absolute;
  right: -4%;
  bottom: 10px;
  width: 50%;
  height: 90%;
  pointer-events: none;
}
.quest-deer .raster-sprite {
  height: 100%;
  width: auto;
  aspect-ratio: 1;
}
.rescue-quest h2 {
  font-size: 22px;
}
.chapter-journey {
  margin-top: 30px;
}
.journey-nodes,
.chapter-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.journey-node,
.chapter-tile {
  position: relative;
  border: 1px solid #ced8bc;
  border-radius: 20px;
  background: linear-gradient(#f9fbf1, #ecf0df);
  color: #3f6048;
  text-align: left;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 4px 0 #d2d8c0;
}
.journey-portrait,
.chapter-monster {
  display: block;
  width: 100%;
  height: 130px;
  margin-bottom: 8px;
}
.journey-portrait .raster-sprite,
.chapter-monster .raster-sprite {
  height: 130px;
  width: 130px;
  margin: auto;
}
.journey-node b,
.journey-node small,
.chapter-tile b,
.chapter-tile small,
.chapter-tile em {
  display: block;
}
.journey-index,
.chapter-order {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  color: #809570;
}
.journey-node b,
.chapter-tile b {
  font-size: 16px;
  margin-top: 8px;
}
.journey-node small,
.chapter-tile small {
  font-size: 11px;
  margin-top: 6px;
}
.chapter-tile em {
  font-size: 11px;
  color: #69865b;
  margin-top: 13px;
  font-style: normal;
}
.locked {
  filter: saturate(0.45);
}
.welcome {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 25px;
  margin-top: 22px;
}
.welcome-world {
  min-height: 580px;
  background-image:
    linear-gradient(180deg, #173f30c9, #173f3022 60%, #173f30bb),
    url('/assets/v3/forest-world.webp');
}
.welcome-title {
  padding: 40px 35px;
  color: #eef1d9;
}
.welcome-title h1 {
  color: #fff7d9;
  font-size: 35px;
  margin-top: 25px;
}
.welcome-title p {
  font-size: 14px;
  color: #eef0d8;
}
.welcome-party {
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: 15px;
  height: 285px;
  display: flex;
  align-items: end;
  justify-content: center;
}
.welcome-companion {
  position: relative;
  width: 27%;
  height: 93%;
  margin: 0 -1.5%;
}
.companion-1,
.companion-2 {
  height: 110%;
  z-index: 2;
}
.companion-0 {
  transform: rotate(-7deg);
}
.companion-3 {
  transform: rotate(7deg);
}
.auth-card {
  padding: 35px;
  align-self: center;
}
.auth-card .eyebrow {
  display: block;
  margin-top: 30px;
}
.auth-promises {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.auth-promises span {
  font-size: 10px;
  padding: 6px 9px;
  border: 1px solid #dce2cc;
  border-radius: 6px;
  color: #879275;
}
.class-roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.class-choice {
  position: relative;
  padding: 18px 15px 20px;
  background: linear-gradient(155deg, #fefcf2, #ecf0df);
  border: 1px solid #d4d9c1;
  color: #536c51;
  box-shadow: 0 3px 0 #d5ddc5;
  border-radius: 23px;
}
.class-choice.selected {
  background: radial-gradient(ellipse at 50% 30%, #fff9d3, #e7edce);
  border: 2px solid #c0ab65;
  box-shadow: 0 5px 0 #b9b88b;
}
.class-portrait {
  height: 230px;
  display: block;
}
.class-choice b,
.class-choice small {
  display: block;
  margin-top: 8px;
}
.class-choice b {
  font-size: 19px;
}
.class-selected {
  display: inline-block;
  font-size: 10px;
  color: #8c986c;
  margin-top: 15px;
  letter-spacing: 0.05em;
}
.creation-form {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}
.creation-form label {
  display: block;
  margin-bottom: 6px;
}
.creation-preview {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(ellipse, #e5ebd0, transparent 65%);
}
.creation-art {
  width: 250px;
  height: 290px;
}
.element-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.element-choice {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px;
  background: #f7f8ed;
  color: #68816b;
  border: 1px solid #d8dfc9;
  box-shadow: 0 2px 0 #d7dec6;
}
.element-choice.selected {
  border-color: var(--element);
  background: #edf2dd;
}
.element-choice span:last-child {
  font-size: 12px;
}
.subject-tabs,
.talent-subject-tabs {
  display: flex;
  gap: 10px;
  margin: 22px 0;
}
.subject-tabs button,
.talent-subject-tabs button {
  flex: 1;
}
.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.topic-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f5f7eb;
  color: #526e55;
  border-color: #d9dfc8;
  box-shadow: 0 2px 0 #dce2cd;
  padding: 15px 12px;
  text-align: left;
}
.topic-card.selected {
  background: #e5edcf;
  border-color: #9eaf7a;
}
.topic-card b {
  display: block;
  font-size: 14px;
}
.topic-card small {
  display: block;
  font-size: 10px;
}
.topic-glyph {
  display: grid;
  place-items: center;
  width: 37px;
  height: 43px;
  color: #998b58;
  font-size: 26px;
  border-radius: 12px;
  background: #e9e7cc;
  flex: none;
}
.practice-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 18px;
  align-items: end;
  margin-top: 24px;
}
.practice-bottom select {
  width: 100%;
}
.learning-footnote {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  color: #839278;
  font-size: 12px;
}
.learning-stone {
  font-size: 40px;
  color: #b6c69b;
}
.training-quest {
  max-width: 780px;
  margin: auto;
  position: relative;
  padding: 30px 45px;
}
.training-companion {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e5d2;
  color: #8a957a;
  font-size: 12px;
}
.question-portrait {
  width: 65px;
  height: 80px;
}
.training-progress {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 25px 0;
}
.training-progress i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  border: 1px solid #d7dfc7;
  color: #99a187;
  background: #f1f4e5;
}
.training-progress .current {
  background: #e8d49a;
  border-color: #bfa965;
  color: #7c6130;
  box-shadow: 0 0 15px #eadb9b55;
}
.training-progress .done {
  background: #77a780;
  color: #fff;
}
.training-clock {
  position: absolute;
  right: 25px;
  top: 26px;
  font-size: 11px;
  color: #92a075;
}
.training-clock strong {
  font-size: 26px;
  margin-right: 5px;
}
.training-clock.urgent {
  color: #c57865;
}
.lq-question {
  padding: 15px 0;
}
.lq-kind {
  font-size: 11px;
  color: #839574;
  letter-spacing: 0.1em;
}
.lq-prompt {
  font-size: 21px;
  line-height: 1.65;
  color: #3f6048;
  margin: 15px 0;
}
.lq-expression {
  text-align: center;
  font-size: 30px;
  line-height: 1.8;
  font-weight: 800;
  color: #526a49;
  background: #f0f3e2;
  border-radius: 14px;
  padding: 15px;
  overflow-wrap: anywhere;
}
.lq-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.lq-option {
  background: #fffef5;
  color: #577451;
  min-height: 58px;
  border: 1px solid #ced9ba;
  box-shadow: 0 3px 0 #dde4cc;
}
.lq-input-label {
  display: block;
  margin: 16px 0 8px;
}
.lq-input {
  width: 100%;
  font-size: 20px;
}
.lq-wordbank,
.lq-tokens,
.lq-tray {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 18px 0;
  min-height: 45px;
}
.lq-token,
.lq-placed {
  background: #f9f4de;
  color: #827140;
  border: 1px solid #dbcea1;
  box-shadow: 0 2px 0 #ddd4ac;
  padding: 10px 13px;
}
.lq-tray {
  padding: 12px;
  border: 1px dashed #bdcba4;
  background: #eef4e1;
  border-radius: 14px;
  min-height: 70px;
}
.lq-placeholder {
  font-size: 12px;
  color: #a0ac8c;
}
.lq-errorline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0;
}
.lq-errorline button {
  background: #f4f6e7;
  color: #526e50;
  border-color: #d4dfc4;
  box-shadow: none;
  font-size: 20px;
  min-width: 44px;
  padding: 9px;
}
.lq-errorline .lq-circled,
.lq-token[aria-pressed='true'] {
  background: #e9d69e;
  border-color: #bf9a55;
}
.lq-reset {
  background: none;
  color: #7c946d;
  box-shadow: none;
  font-size: 12px;
  padding: 8px;
}
.lq-match-row,
.lq-category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f4e3;
  border-radius: 12px;
  padding: 12px;
  margin: 9px 0;
}
.lq-match-row label {
  flex: 1;
}
.lq-category-card select {
  margin-left: auto;
}
.lq-sentence {
  display: grid;
  gap: 10px;
}
.lq-slot {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border-bottom: 2px solid #97b584;
}
.lq-slot select {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}
.lq-sentence-preview {
  padding: 20px;
  background: #eef2de;
  border-radius: 13px;
  line-height: 2;
}
.lq-message {
  font-size: 12px;
  color: #b67b5f;
  margin: 10px 0;
}
.lq-submit {
  width: 100%;
  margin-top: 15px;
}
.lq-diagram {
  max-width: 280px;
  margin: 15px auto;
  display: block;
  width: 100%;
}
.lq-visual-counts {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lq-visual-counts > * {
  background: #f1f3df;
  padding: 10px;
  border-radius: 12px;
}
.hero-build {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}
.hero-summary {
  align-self: start;
}
.paperdoll {
  position: relative;
  isolation: isolate;
  height: 290px;
  margin: -12px 0 15px;
}
.hero-portrait {
  width: 100%;
  height: 100%;
  z-index: 2;
}
.paperdoll-aura {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #dbe7bd, transparent);
  z-index: -1;
}
.build-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.build-stat-grid div {
  text-align: center;
  background: #eef2df;
  border-radius: 10px;
  padding: 10px 4px;
}
.build-stat-grid b {
  display: block;
  font-size: 20px;
  color: #668057;
}
.build-stat-grid small {
  font-size: 10px;
}
.element-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #dce3c9;
  border-bottom: 1px solid #dce3c9;
  padding: 17px 0;
}
.element-summary div {
  flex: 1;
}
.element-summary small {
  display: block;
  font-size: 10px;
}
.attributes-panel {
  margin-top: 20px;
}
.attributes-panel summary {
  font-size: 13px;
  font-weight: 750;
  color: #6a805b;
}
.attribute {
  padding: 10px 0;
}
.attribute .label {
  flex: 1;
  font-size: 13px;
}
.attribute .label small {
  display: block;
  font-size: 9px;
}
.attribute button {
  padding: 7px 12px;
}
.build-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.build-tabs button {
  flex: 1;
}
.talent-points {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 34px;
  color: #ac9251;
}
.talent-points small {
  font-size: 11px;
}
.talent-legend {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #8b967a;
  margin: 20px 0;
}
.talent-tree {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 15px;
  position: relative;
  padding: 12px 0 24px;
  background: radial-gradient(ellipse, #eef2df, transparent 80%);
}
.talent-node {
  position: relative;
  background: none;
  box-shadow: none !important;
  border: 0;
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #57714e;
  min-height: 112px;
}
.talent-node:hover {
  background: #e6edda88;
}
.talent-symbol {
  width: 58px;
  height: 58px;
  border: 2px solid #c1ccaa;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fdf9df, #dce5c9);
  box-shadow: 0 4px 0 #ccd4b7;
  position: relative;
  margin-bottom: 11px;
}
.talent-node.active .talent-symbol {
  border-radius: 50%;
  border-color: #b6ac74;
  background: radial-gradient(#f7e7ad, #d9dda9);
}
.talent-symbol i {
  font-size: 33px;
  color: #8e9e6a;
  font-style: normal;
}
.talent-symbol em {
  position: absolute;
  right: -6px;
  bottom: -5px;
  background: #e7edd8;
  border: 1px solid #c9d5b3;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
}
.talent-node.learned .talent-symbol {
  border-color: #d1ac57;
  box-shadow:
    0 0 18px #e8cc7160,
    0 3px 0 #b3b876;
}
.talent-node.learned em {
  background: #6a9b69;
  color: white;
}
.talent-node.locked {
  opacity: 0.56;
}
.talent-node b {
  font-size: 12px;
}
.talent-node small {
  font-size: 9px;
  margin-top: 4px;
}
.talent-connection {
  position: absolute;
  height: 27px;
  top: -23px;
  width: 2px;
  background: #ced8b8;
  z-index: 0;
}
.talent-node:nth-child(-n + 3) .talent-connection {
  display: none;
}
.talent-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #dce3cd;
  padding-top: 15px;
}
.talent-footer p {
  font-size: 11px;
  color: #879477;
}
.equipment-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.equipment-slot {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #eef2e2;
  border: 1px solid #d9e0c9;
  border-radius: 13px;
  padding: 12px;
  color: #8c997c;
}
.equipment-slot b,
.equipment-slot small {
  display: block;
}
.equipment-slot b {
  font-size: 12px;
}
.equipment-slot small {
  font-size: 10px;
}
.item-art {
  width: 42px;
  height: 42px;
  flex: none;
}
.inventory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.loot-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f6f5e8;
  border: 1px solid currentColor;
  box-shadow: none;
  text-align: left;
  font-size: 12px;
  padding: 13px;
}
.loot-item small {
  display: block;
  font-size: 9px;
}
.quality-common {
  color: #8b9986;
}
.quality-uncommon {
  color: #619967;
}
.quality-rare {
  color: #6596bd;
}
.quality-epic {
  color: #a386bf;
}
.quality-legendary {
  color: #c69e4d;
}
.code {
  color: #7c8f5b;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 25px 0;
}
.slot {
  position: relative;
  background: #f2f5e6;
  border: 1px solid #d5dec2;
  border-radius: 18px;
  padding: 12px;
  text-align: center;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.party-portrait {
  height: 150px;
  width: 100%;
  max-width: 130px;
}
.slot > b {
  font-size: 13px;
}
.slot small {
  font-size: 9px;
}
.slot.empty {
  background: #f2f3e822;
  border: 1px dashed #ced7b9;
  justify-content: center;
  color: #c1cbb1;
}
.slot.empty b {
  font-size: 45px;
  font-weight: 300;
}
.status-bubble {
  padding: 4px 7px;
  background: #e9ebdc;
  color: #929b83;
  font-size: 9px;
  border-radius: 8px;
  margin-top: 10px;
}
.status-bubble.ready {
  background: #e1edcc;
  color: #6b9256;
}
.ai-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e2e8cf;
  padding: 3px 7px;
  font-size: 8px;
  color: #7f936e;
  border-radius: 5px;
  z-index: 5;
}
.ai-companion-picker {
  background: #edf2df;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.ai-companion-picker h3 {
  font-size: 15px;
  margin: 0;
}
.ai-companion-picker .row {
  flex: 1;
  justify-content: flex-end;
}
.ai-companion-picker button {
  font-size: 11px;
  padding: 10px;
}
.expedition-picker {
  margin: 30px 0 10px;
  border-top: 1px solid #dbe1c9;
  padding-top: 20px;
}
.expedition-picker .form {
  max-width: 350px;
  margin: 20px 0;
}
.side-dungeons {
  margin: 22px 0;
}
.side-dungeons summary {
  padding: 14px;
  border: 1px solid #d5dfc2;
  border-radius: 10px;
  background: #eff4e2;
  color: #6a8358;
  font-size: 13px;
}
.dungeon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.dungeon-chips button {
  font-size: 11px;
}
.party-entry {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}
.party-start {
  text-align: center;
  background: radial-gradient(ellipse at 50% 20%, #e9efd4, #fffaf0);
  overflow: hidden;
}
.party-start p {
  font-size: 13px;
  color: #81916e;
}
.gather-portraits {
  height: 255px;
  display: flex;
  align-items: end;
  justify-content: center;
}
.gather-portraits > div {
  width: 32%;
  height: 87%;
  margin: 0 -2%;
}
.gather-portraits .gather-0 {
  height: 110%;
  z-index: 2;
  order: 2;
}
.gather-1 {
  order: 1;
  transform: rotate(-9deg);
}
.gather-2 {
  order: 3;
  transform: rotate(9deg);
}
.combat-layout {
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  gap: 22px;
  align-items: start;
}
.battlefield {
  position: relative;
  overflow: hidden;
  padding: 23px;
  background: linear-gradient(#fbfbea, #e9efda);
}
.boss-panel {
  position: relative;
  z-index: 3;
}
.boss-panel h2 {
  font-size: 22px;
  margin: 4px 0 12px;
}
.boss-phase {
  font-size: 10px;
  background: #eee5c7;
  padding: 5px 9px;
  border-radius: 8px;
  color: #9c8a58;
}
.meter {
  height: 9px;
  background: #d7dfc7;
  border: 1px solid #cbd5b9;
  border-radius: 8px;
  overflow: hidden;
}
.meter i {
  background: linear-gradient(90deg, #99b37a, #acc98b);
  transition: width 0.5s;
}
.meter.mana {
  height: 5px;
  margin-top: 5px;
}
.meter.mana i {
  background: linear-gradient(90deg, #8dacbf, #9ebfd0);
}
.hp-caption {
  font-size: 10px;
  text-align: right;
  color: #94a080;
  margin-top: 5px;
}
.battle-backdrop {
  position: relative;
  background: radial-gradient(ellipse at bottom, #e3e7c5, transparent 65%);
  height: 260px;
}
.boss-art {
  height: 255px;
  width: 100%;
  position: relative;
  z-index: 2;
  animation: boss-breathe 4s ease-in-out infinite;
}
.boss-art > .raster-sprite {
  height: 250px;
  width: 250px;
  margin: auto;
}
.boss-ground {
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 22px;
  border-radius: 50%;
  background: #9daf6f33;
  filter: blur(8px);
}
.monster-intent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #c8d5ac;
  border-radius: 13px;
  background: #eff2df;
  padding: 14px;
  z-index: 3;
}
.monster-intent p {
  font-size: 11px;
  margin: 5px 0 0;
  color: #7e8c6b;
}
.monster-intent b {
  font-size: 13px;
  color: #647c4e;
}
.intent-glyph .element-rune {
  width: 42px;
  height: 42px;
  font-size: 22px;
}
.battle-members {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 24px;
}
.battle-members.count-1 {
  grid-template-columns: repeat(1, 125px);
  justify-content: center;
}
.battle-members.count-2 {
  grid-template-columns: repeat(2, 110px);
  justify-content: center;
}
.battle-member {
  position: relative;
  text-align: center;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fffdf12c;
  min-width: 0;
}
.battle-member.mine {
  background: #fffbe8;
  border-color: #c5cc9f;
}
.battle-member.prepared {
  box-shadow: 0 0 14px #b8d29466;
}
.battle-member.unconscious {
  filter: saturate(0.3);
  opacity: 0.7;
}
.member-art {
  width: 100%;
  height: 105px;
}
.member-art .element-rune {
  width: 18px;
  height: 18px;
  font-size: 9px;
}
.battle-member b {
  font-size: 9px;
  display: block;
  margin: 7px 0;
}
.battle-member small {
  font-size: 8px;
  line-height: 1.6;
  display: block;
  margin-top: 5px;
}
.battle-member .ai-badge {
  top: -10px;
  font-size: 7px;
  left: 4px;
  right: 4px;
  padding: 2px;
}
.battle-member .meter {
  height: 5px;
}
.battle-member .meter.mana {
  height: 3px;
}
.forest-blessing {
  display: block;
  text-align: center;
  margin-top: 15px;
  font-size: 10px;
}
.combat-action h2 {
  font-size: 23px;
  margin: 6px 0;
}
.round-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 68px;
  border: 2px solid #d0c394;
  border-radius: 18px;
  background: #fff7d9;
  color: #8a794a;
}
.round-clock strong {
  font-size: 26px;
}
.round-clock small {
  font-size: 9px;
  line-height: 1;
}
.round-clock.urgent {
  border-color: #cf9c7f;
  background: #f7e6cd;
  color: #b47052;
}
.focus-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 22px 0;
  color: #96a082;
  font-size: 10px;
}
.focus-dots i {
  width: 11px;
  height: 14px;
  transform: rotate(20deg);
  background: #e3e7d0;
  border: 1px solid #d1dbb8;
  border-radius: 3px;
}
.focus-dots i.lit {
  background: #e5c565;
  border-color: #b8a44e;
  box-shadow: 0 0 7px #efd881aa;
}
.focus-dots span {
  margin-left: 7px;
}
.combat-skill-list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}
.combat-skill {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: linear-gradient(100deg, #f5f7e7, #edf2df);
  border-color: #d2ddbf;
  color: #5b7852;
  padding: 13px;
  box-shadow: 0 2px 0 #d9e2c6;
}
.skill-orb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid #c3cd9e;
  border-radius: 50%;
  background: radial-gradient(#fcf7d7, #d8e0b9);
  font-family: serif;
  font-size: 22px;
  flex: none;
  box-shadow: 0 0 10px #cedb9c33;
}
.subject-en {
  color: #789cb1;
}
.subject-cn {
  color: #ac9274;
}
.subject-math {
  color: #9b88af;
}
.combat-skill b {
  display: block;
  font-size: 14px;
}
.combat-skill small {
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.selected-skill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #eef3e0;
  border-radius: 13px;
}
.selected-skill div {
  flex: 1;
}
.selected-skill small {
  display: block;
  font-size: 10px;
}
.tactical-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.turn-explainer {
  font-size: 10px;
}
.battle-log {
  margin: 20px 0;
  padding-top: 15px;
  border-top: 1px solid #dde4cb;
  font-size: 11px;
}
.battle-log summary {
  font-size: 12px;
  color: #83936c;
}
.battle-log p {
  font-size: 11px;
  line-height: 1.7;
}
.ready-celebration {
  text-align: center;
  padding: 45px 15px;
}
.ready-orb {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 2px solid #b6c68e;
  border-radius: 50%;
  background: #e3edc8;
  color: #789d56;
  font-size: 35px;
  margin: auto;
  box-shadow: 0 0 40px #c7dca666;
}
.ready-celebration h3 {
  color: #658b50;
}
.ready-celebration p {
  font-size: 12px;
  color: #899779;
}
.spell-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}
.vfx-number {
  position: absolute;
  font-size: 28px;
  font-weight: 900;
  text-shadow:
    0 3px 0 #47562f,
    0 0 12px #fff9bb;
  pointer-events: none;
  z-index: 18;
}
.vfx-aura {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 4px solid var(--spell);
  border-radius: 50%;
  box-shadow:
    0 0 20px var(--spell),
    inset 0 0 20px var(--spell);
  pointer-events: none;
  z-index: 16;
}
.vfx-aura.shield,
.vfx-aura.knight {
  border-radius: 40% 40% 50% 50%;
  height: 130px;
}
.vfx-aura.priest:after {
  content: '＋';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--spell);
  font-size: 90px;
}
.vfx-aura.druid {
  border-style: dashed;
}
.vfx-aura.enemy {
  border-radius: 25%;
  transform: rotate(45deg);
}
.celebration-leaf {
  position: absolute;
  top: 0;
  width: 10px;
  height: 17px;
  border-radius: 80% 0;
  pointer-events: none;
  animation: leaf-fall 2.3s var(--delay) ease-in forwards;
  z-index: 20;
}
.victory-card {
  text-align: center;
  max-width: 780px;
  margin: auto;
  padding: 30px 50px;
  position: relative;
  overflow: hidden;
}
.rescue-art {
  height: 310px;
  margin: 0 auto 15px;
  max-width: 320px;
}
.rescue-art .raster-sprite {
  height: 310px;
  width: 310px;
}
.reward-portrait {
  height: 200px;
  width: 190px;
  margin: auto;
}
.reward-ribbon {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 20px;
  border-top: 1px solid #dce2c7;
  border-bottom: 1px solid #dce2c7;
  color: #a38d51;
  margin: 20px 0;
}
.empty-panel > .deer-art {
  width: 300px;
  margin: auto;
}
.empty-panel > .rpg-art {
  height: 240px;
}
.character-collection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.character-card {
  text-align: center;
}
.collection-art {
  height: 250px;
  width: 100%;
  margin-bottom: 20px;
}
.new-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8ba071;
  text-decoration: none;
  min-height: 350px;
  background: #eef3df88;
  border: 2px dashed #bfccaa;
  box-shadow: none;
}
.new-character > span {
  font-size: 70px;
  font-weight: 200;
}
.new-character h2 {
  font-size: 19px;
}
.new-character p {
  font-size: 11px;
}
.friend-banner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 23px;
  background: linear-gradient(120deg, #e9efd5, #fcf8e8);
}
.friend-code {
  font-size: 32px;
  margin-top: 12px;
  letter-spacing: 0.12em;
}
.friend-banner p {
  font-size: 10px;
  margin-bottom: 0;
}
.peer-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #dce3ca;
  padding: 15px 0;
}
.friend-portrait {
  width: 65px;
  height: 85px;
}
.peer-card > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.peer-card small {
  display: block;
  font-size: 10px;
}
.peer-card b {
  font-size: 14px;
}
.peer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  max-width: 43%;
}
.peer-actions details {
  font-size: 10px;
  color: #879874;
}
.peer-actions button {
  font-size: 10px;
  padding: 9px 12px;
}
.friends-empty {
  text-align: center;
  color: #8b9a7b;
  padding: 15px;
}
.friends-empty > .rpg-art {
  height: 210px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #1a372bd0;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 22px;
}
.game-modal {
  position: relative;
  max-width: 520px;
  width: 100%;
  max-height: 85dvh;
  overflow: auto;
  padding: 35px;
}
.modal-close {
  float: right;
  margin: -12px -12px 12px 12px;
}
.game-modal h2 {
  font-size: 25px;
  margin-top: 25px;
}
.game-modal p {
  font-size: 13px;
}
.game-modal pre {
  white-space: pre-wrap;
  font: 12px/1.7 system-ui;
  color: #6b8058;
  background: #eff3df;
  padding: 15px;
  border-radius: 12px;
}
.game-modal .gear-inspect {
  width: 90px;
  height: 90px;
  margin: 20px auto;
  background: #eeeccf;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid currentColor;
}
.game-modal .gear-inspect svg {
  width: 65px;
  height: 65px;
}
.notice {
  background: #fff7d6;
  border-color: #dfd0a0;
  color: #83714a;
  font-size: 13px;
}
.hint {
  background: #eef3e0;
  border-color: #d2ddbd;
  color: #7a8f67;
}
.feedback {
  background: #e9f1d6;
  border-color: #bfd09f;
  color: #69854f;
}
.feedback.error {
  background: #faf0d8;
  color: #ad8657;
  border-color: #dfc89c;
}
@keyframes boss-breathe {
  50% {
    transform: translateY(-6px) scale(1.015);
  }
}
@keyframes leaf-fall {
  to {
    transform: translate(var(--drift), 600px) rotate(300deg);
    opacity: 0;
  }
}
@media (max-width: 1000px) {
  .world-copy {
    padding: 32px;
    max-width: 65%;
  }
  .world-copy h1 {
    font-size: 32px;
  }
  .camp-columns {
    grid-template-columns: 1fr 1fr;
  }
  .rescue-quest {
    padding-right: 36%;
  }
  .hero-build {
    grid-template-columns: 255px 1fr;
  }
  .hero-summary {
    padding: 18px;
  }
  .class-portrait {
    height: 190px;
  }
  .combat-layout {
    grid-template-columns: 1.05fr 1fr;
  }
  .battlefield {
    padding: 18px;
  }
  .member-art {
    height: 85px;
  }
  .battle-member b {
    font-size: 8px;
  }
  .combat-action {
    padding: 20px;
  }
  .combat-action h2 {
    font-size: 20px;
  }
  .topic-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .welcome-title h1 {
    font-size: 29px;
  }
  .welcome-title {
    padding: 35px 25px;
  }
  .auth-card {
    padding: 25px;
  }
  .creation-form {
    gap: 20px;
  }
  .ai-companion-picker {
    display: block;
  }
  .ai-companion-picker .row {
    justify-content: start;
  }
  .slots {
    gap: 8px;
  }
  .slot {
    padding: 7px;
    min-height: 215px;
  }
  .party-portrait {
    height: 130px;
  }
}
@media (max-width: 700px) {
  header {
    padding: 16px 15px;
    gap: 8px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand i {
    width: 35px;
    height: 38px;
    font-size: 23px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 0.06em;
  }
  #account .pill {
    display: none;
  }
  #account .row {
    gap: 6px;
  }
  #account button {
    font-size: 10px;
    padding: 8px 9px;
  }
  main {
    padding: 4px 14px 25px;
  }
  .card {
    border-radius: 19px;
    padding: 20px;
  }
  .heading {
    margin: 17px 0;
  }
  .heading h1 {
    font-size: 25px;
    margin: 8px 0 18px;
  }
  .heading p {
    font-size: 10px;
  }
  .hero-world {
    min-height: 350px;
  }
  .world-copy {
    padding: 25px 20px;
    max-width: 78%;
  }
  .world-copy h1 {
    font-size: 28px;
    max-width: 230px;
    margin: 22px 0 15px;
  }
  .world-copy p {
    max-width: 205px;
    font-size: 11px;
    line-height: 1.8;
  }
  .world-copy .row {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
  .world-copy button {
    font-size: 11px;
    padding: 10px 14px;
  }
  .world-hero {
    height: 78%;
    width: 50%;
    right: -8%;
    bottom: -6px;
  }
  .world-magic {
    right: 20%;
    top: 15%;
  }
  .world-magic .element-rune {
    width: 35px;
    height: 35px;
    font-size: 17px;
  }
  .chapter-label {
    font-size: 9px;
    padding: 6px 9px;
  }
  .world-label {
    font-size: 8px;
    bottom: 12px;
    right: 15px;
  }
  .camp-columns {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 17px;
  }
  .profile {
    gap: 15px;
  }
  .portrait {
    width: 90px;
    height: 110px;
  }
  .profile h2 {
    font-size: 23px;
  }
  .reward-stats {
    margin: 10px 0;
    padding: 15px 0;
  }
  .reward-stats b {
    font-size: 22px;
  }
  .camp-character > .row button {
    flex: 1;
    font-size: 11px;
    padding: 12px 8px;
  }
  .rescue-quest {
    padding-right: 44%;
    min-height: 220px;
  }
  .rescue-quest h2 {
    font-size: 20px;
  }
  .rescue-quest p {
    font-size: 11px;
  }
  .rescue-quest button {
    font-size: 10px;
    padding: 10px 12px;
  }
  .quest-deer {
    width: 54%;
    right: -9%;
    bottom: 3px;
  }
  .journey-nodes,
  .chapter-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .chapter-journey h2 {
    font-size: 20px;
  }
  .chapter-journey .tiny {
    font-size: 9px;
  }
  .journey-portrait {
    height: 110px;
  }
  .journey-portrait .raster-sprite {
    height: 110px;
    width: 110px;
  }
  .journey-node {
    padding: 13px;
  }
  .journey-node b {
    font-size: 14px;
  }
  .journey-node small {
    font-size: 9px;
  }
  #nav {
    padding: 7px;
    gap: 2px;
    bottom: 9px;
    border-radius: 21px;
    max-width: calc(100% - 18px);
    width: calc(100% - 18px);
    justify-content: space-around;
  }
  #nav a {
    min-width: 0;
    flex: 1;
    padding: 8px 3px;
    font-size: 9px;
    border-radius: 14px;
  }
  .nav-icon {
    width: 21px;
    height: 23px;
  }
  footer {
    padding-bottom: 115px;
    font-size: 10px;
  }
  .welcome {
    grid-template-columns: 1fr;
    margin-top: 8px;
    gap: 16px;
  }
  .welcome-world {
    min-height: 410px;
  }
  .welcome-title {
    padding: 28px 23px;
  }
  .welcome-title h1 {
    font-size: 27px;
    margin-top: 20px;
  }
  .welcome-title p {
    font-size: 11px;
  }
  .welcome-party {
    height: 200px;
    bottom: 6px;
  }
  .auth-card {
    padding: 25px;
  }
  .auth-card .eyebrow {
    margin-top: 20px;
  }
  .auth-card h2 {
    font-size: 23px;
  }
  .class-roster {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }
  .class-portrait {
    height: 185px;
  }
  .class-choice {
    padding: 13px 10px 18px;
  }
  .class-choice b {
    font-size: 16px;
  }
  .class-choice small {
    font-size: 10px;
  }
  .class-selected {
    font-size: 9px;
    margin-top: 10px;
  }
  .creation-form {
    grid-template-columns: 1fr;
    margin-top: 17px;
  }
  .creation-form h2 {
    font-size: 21px;
  }
  .creation-form .grid.two {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .creation-preview {
    display: none;
  }
  .element-picker {
    gap: 7px;
  }
  .element-choice {
    padding: 10px 6px;
  }
  .element-choice .element-rune {
    width: 28px;
    height: 28px;
  }
  .element-choice span:last-child {
    font-size: 10px;
  }
  .creation-form button[type='submit'] {
    font-size: 13px;
  }
  .subject-tabs,
  .talent-subject-tabs {
    gap: 8px;
    margin: 20px 0;
  }
  .subject-tabs button,
  .talent-subject-tabs button {
    font-size: 12px;
    padding: 11px 7px;
  }
  .topic-cards {
    gap: 9px;
  }
  .topic-card {
    padding: 12px 8px;
    gap: 8px;
    border-radius: 12px;
  }
  .topic-glyph {
    width: 29px;
    height: 37px;
    font-size: 23px;
  }
  .topic-card b {
    font-size: 12px;
  }
  .topic-card small {
    font-size: 8px;
  }
  .practice-bottom {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
  }
  .practice-bottom > button {
    grid-column: span 2;
  }
  .practice-bottom select {
    font-size: 12px;
    padding: 12px 8px;
  }
  .training-quest {
    padding: 20px;
  }
  .training-companion {
    font-size: 10px;
    gap: 10px;
  }
  .question-portrait {
    height: 66px;
    width: 52px;
  }
  .training-clock {
    right: 20px;
    top: 22px;
  }
  .training-clock strong {
    font-size: 24px;
  }
  .training-progress {
    gap: 14px;
    margin: 20px 0;
  }
  .lq-prompt {
    font-size: 19px;
  }
  .lq-expression {
    font-size: 25px;
    padding: 12px;
  }
  .lq-options {
    gap: 10px;
  }
  .lq-option {
    font-size: 16px;
    padding: 11px 8px;
  }
  .lq-input {
    font-size: 18px;
  }
  .hero-build {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-summary {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px 16px;
    padding: 18px;
  }
  .paperdoll {
    height: 155px;
    grid-row: span 3;
    margin: 0;
  }
  .hero-summary > h2 {
    font-size: 20px;
    margin: 4px 0;
  }
  .hero-summary > h2 .pill {
    font-size: 8px;
    display: inline-block;
  }
  .hero-summary > .xp-caption {
    font-size: 9px;
    margin: 0;
    align-self: end;
  }
  .hero-summary > .xp-track {
    height: 7px;
  }
  .build-stat-grid {
    grid-column: 2;
    gap: 6px;
    margin: 0;
  }
  .build-stat-grid div {
    padding: 7px 3px;
  }
  .build-stat-grid b {
    font-size: 16px;
  }
  .build-stat-grid small {
    font-size: 8px;
  }
  .element-summary {
    grid-column: span 2;
    padding: 12px 0;
    margin-top: 5px;
  }
  .attributes-panel {
    grid-column: span 2;
    margin-top: 5px;
  }
  .build-tabs button {
    font-size: 11px;
    padding: 12px 8px;
  }
  .talent-panel {
    padding: 20px 14px;
  }
  .talent-panel h2 {
    font-size: 20px;
  }
  .talent-panel .eyebrow {
    font-size: 9px;
  }
  .talent-points {
    font-size: 29px;
    gap: 5px;
  }
  .talent-points small {
    font-size: 9px;
  }
  .talent-legend {
    font-size: 8px;
    gap: 12px;
  }
  .talent-tree {
    gap: 23px 3px;
  }
  .talent-symbol {
    width: 52px;
    height: 52px;
  }
  .talent-node b {
    font-size: 10px;
  }
  .talent-node small {
    font-size: 8px;
  }
  .talent-footer p {
    font-size: 9px;
  }
  .talent-footer button {
    font-size: 10px;
    padding: 10px;
  }
  .equipment-slots {
    gap: 8px;
  }
  .equipment-slot {
    padding: 10px 7px;
    gap: 7px;
  }
  .equipment-slot .item-art {
    width: 33px;
  }
  .equipment-slot b {
    font-size: 10px;
  }
  .inventory-grid {
    grid-template-columns: 1fr;
  }
  .loot-item small {
    font-size: 10px;
  }
  .party-entry {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .gather-portraits {
    height: 210px;
  }
  .party-start h2 {
    font-size: 23px;
  }
  .party-start p {
    font-size: 11px;
  }
  .slots {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 20px 0;
  }
  .slot {
    min-height: 192px;
  }
  .party-portrait {
    height: 115px;
  }
  .slot > b {
    font-size: 11px;
  }
  .slot small {
    font-size: 8px;
  }
  .slot.empty {
    min-height: 100px;
  }
  .ai-companion-picker {
    padding: 15px;
  }
  .ai-companion-picker button {
    font-size: 10px;
    padding: 10px;
  }
  .party-camp > .row button {
    font-size: 11px;
    padding: 11px;
  }
  .party-camp .code {
    font-size: 30px;
  }
  .expedition-picker h3 {
    font-size: 17px;
  }
  .expedition-picker .pill {
    font-size: 8px;
  }
  .chapter-monster {
    height: 115px;
  }
  .chapter-monster .raster-sprite {
    height: 115px;
    width: 115px;
  }
  .chapter-tile b {
    font-size: 13px;
  }
  .chapter-tile small,
  .chapter-tile em {
    font-size: 9px;
  }
  .combat-layout {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .battlefield {
    padding: 17px;
  }
  .boss-panel h2 {
    font-size: 20px;
  }
  .battle-backdrop {
    height: 215px;
  }
  .boss-art {
    height: 215px;
  }
  .boss-art > .raster-sprite {
    height: 210px;
    width: 210px;
  }
  .monster-intent {
    padding: 11px;
    gap: 11px;
  }
  .monster-intent b {
    font-size: 12px;
  }
  .monster-intent p {
    font-size: 10px;
  }
  .intent-glyph .element-rune {
    width: 35px;
    height: 35px;
  }
  .battle-members {
    gap: 4px;
    margin-top: 20px;
  }
  .member-art {
    height: 88px;
  }
  .battle-member {
    padding: 4px 2px;
  }
  .battle-member b {
    font-size: 8px;
  }
  .battle-member small {
    font-size: 7px;
  }
  .battle-member .ai-badge {
    font-size: 6px;
    padding: 2px 0;
  }
  .combat-action {
    padding: 20px;
  }
  .combat-action h2 {
    font-size: 22px;
  }
  .round-clock {
    height: 60px;
    min-width: 58px;
  }
  .round-clock strong {
    font-size: 24px;
  }
  .combat-skill b {
    font-size: 14px;
  }
  .combat-skill small {
    font-size: 9px;
  }
  .tactical-actions button {
    font-size: 11px;
    padding: 11px;
  }
  .combat-action .lq-prompt {
    font-size: 18px;
  }
  .victory-card {
    padding: 25px;
  }
  .rescue-art {
    height: 240px;
    max-width: 240px;
  }
  .rescue-art .raster-sprite {
    width: 240px;
    height: 240px;
  }
  .victory-card h2 {
    font-size: 21px;
  }
  .victory-card p {
    font-size: 12px;
  }
  .reward-ribbon {
    font-size: 11px;
    gap: 12px;
    padding: 16px 0;
  }
  .character-collection {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .collection-art {
    height: 180px;
    margin-bottom: 12px;
  }
  .character-card {
    padding: 15px 10px;
  }
  .character-card h2 {
    font-size: 19px;
  }
  .character-card .pill {
    font-size: 8px;
  }
  .character-card .row {
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .character-card button {
    font-size: 10px;
    padding: 10px;
  }
  .new-character {
    min-height: 300px;
    padding: 15px;
    text-align: center;
  }
  .new-character h2 {
    font-size: 16px;
  }
  .new-character p {
    font-size: 9px;
  }
  .friend-banner {
    display: block;
    padding: 20px;
  }
  .friend-code {
    font-size: 28px;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
  }
  .friend-banner button {
    font-size: 11px;
  }
  .peer-card {
    gap: 10px;
  }
  .friend-portrait {
    width: 52px;
    height: 70px;
  }
  .peer-card b {
    font-size: 13px;
  }
  .peer-card small {
    font-size: 9px;
  }
  .peer-actions {
    max-width: 44%;
    gap: 6px;
  }
  .peer-actions button {
    padding: 9px;
    font-size: 9px;
  }
  .game-modal {
    padding: 25px;
  }
  .game-modal h2 {
    font-size: 23px;
  }
  .game-modal p {
    font-size: 12px;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .empty-panel > .deer-art {
    max-width: 270px;
    width: 100%;
  }
  .empty-panel h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .spell-canvas,
  .vfx-aura,
  .celebration-leaf {
    display: none;
  }
}
.lq-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 18px;
  position: relative;
}
.lq-option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #70945a;
  flex: none;
}
.lq-option input:checked + span {
  color: #3c7349;
  font-weight: 900;
}
.lq-wordbank > span {
  background: #f0ead0;
  padding: 8px 12px;
  border-radius: 8px;
  color: #887846;
  font-size: 13px;
}
.gear-bonuses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.gear-bonuses span {
  padding: 13px;
  background: #eef3dd;
  border-radius: 11px;
  font-size: 13px;
  color: #7c906a;
}
.gear-bonuses b {
  float: right;
  color: #5f8b4b;
}
.gear-exclusive {
  color: #9b8150 !important;
  background: #f8edcb;
  padding: 14px;
  border-radius: 11px;
}
.talent-connection {
  display: none;
}
.talent-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.talent-edges path {
  fill: none;
  stroke: #c6d2ad;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.talent-edges path.learned {
  stroke: #b5a65e;
  stroke-width: 2.5;
}
.talent-node {
  z-index: 1;
}
.live-spell-label {
  min-height: 18px;
  text-align: center;
  font-size: 10px;
  color: #8c9b70;
  margin-top: 12px;
}
.class-choice .guardian-art {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.game-modal {
  max-height: 85vh;
  max-height: 85dvh;
}
.site-footer {
  margin: 15px 0 0;
}
.rpg-art {
  user-select: none;
  -webkit-user-select: none;
}
.pet-variant-1 img {
  filter: drop-shadow(0 8px 5px #30422e20) hue-rotate(28deg);
}
.pet-variant-2 img {
  filter: drop-shadow(0 8px 5px #30422e20) hue-rotate(-24deg);
}
.quest-deer {
  right: 0;
  width: 43%;
  height: 90%;
}
.quest-deer .deer-art {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.rescue-art > .deer-art {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.deer-art.pet-variant-1 {
  filter: drop-shadow(0 8px 5px #30422e20) hue-rotate(28deg);
}
.deer-art.pet-variant-2 {
  filter: drop-shadow(0 8px 5px #30422e20) hue-rotate(-24deg);
}
@media (max-width: 700px) {
  .quest-deer {
    width: 48%;
    right: -2%;
    height: 90%;
  }
}
.ward-seals {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}
.ward-seals i {
  font-style: normal;
  font-size: 19px;
  color: #a1bd79;
  text-shadow: 0 0 9px #d4e4ac;
}
.ward-seals .broken {
  color: #d0d8bb;
  opacity: 0.5;
  text-shadow: none;
}
.ward-seals span {
  font-size: 9px;
  color: #9aa57f;
  margin-left: 5px;
}
.battle-member.targeted {
  border-color: #c39d6c;
  box-shadow: 0 0 0 2px #dfbe8455;
}
.target-warning {
  position: absolute;
  right: 0;
  top: 12px;
  z-index: 6;
  background: #ecd9af;
  color: #93713d;
  font-size: 7px;
  padding: 3px 5px;
  border-radius: 5px;
}
.boss-art.phase-2 {
  filter: drop-shadow(0 0 18px #acc66666);
}
.boss-art.phase-3 {
  filter: drop-shadow(0 0 23px #bfa25f77);
}
@media (max-width: 700px) {
  .hero-summary .paperdoll {
    grid-row: span 4;
    height: 200px;
  }
  .hero-summary > .build-stat-grid {
    grid-row: 4;
    grid-column: 2;
  }
}
/* Account entry and reversible equipment management. */
.auth-alternative {
  font-size: 13px;
  text-align: center;
  margin: 21px 0;
  color: #859374;
}
.text-button {
  background: none !important;
  border: 0;
  box-shadow: none !important;
  color: #497951 !important;
  padding: 7px 5px;
  min-height: 36px;
}
.account-switch-note {
  font-size: 11px;
  margin-bottom: 20px;
}
.header-bag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.header-bag svg {
  width: 18px;
  height: 20px;
}
.build-tabs button {
  min-width: 0;
  font-size: 12px;
}
.equipment-slot {
  padding: 11px;
  flex-wrap: wrap;
  gap: 8px;
}
.equipment-slot .slot-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
  flex: 1;
  min-width: 0;
  text-align: left;
  color: inherit;
}
.slot-detail b {
  overflow-wrap: anywhere;
}
.slot-detail em {
  font-size: 9px;
  font-style: normal;
  color: #8e9b7e;
  display: block;
  margin-top: 5px;
}
.slot-remove {
  margin-left: auto;
  flex: none;
  font-size: 10px;
  padding: 8px 9px;
}
.equipment-bag-link {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #dce3ca;
  padding-top: 20px;
}
.equipment-bag-link p {
  font-size: 11px;
  color: #8c9b79;
}
.bag-hero-row {
  display: flex;
  align-items: center;
  gap: 17px;
}
.bag-emblem {
  display: grid;
  place-items: center;
  width: 70px;
  height: 75px;
  border-radius: 20px;
  background: radial-gradient(#f6e9b7, #e6d6a5);
  border: 1px solid #cfbd87;
  color: #9b834b;
  flex: none;
  box-shadow: 0 4px 0 #d4c794;
}
.bag-emblem svg {
  width: 40px;
  height: 44px;
  stroke-width: 1.3;
}
.bag-hero-row > div {
  flex: 1;
}
.bag-hero-row h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.bag-hero-row p {
  font-size: 12px;
  color: #879874;
  margin: 0;
}
.bag-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e0e5cd;
  margin-top: 26px;
  padding-top: 22px;
  flex-wrap: wrap;
}
.bag-filters {
  display: flex;
  gap: 8px;
}
.bag-filters button {
  font-size: 12px;
  padding: 11px 17px;
}
.bag-selects {
  display: flex;
  gap: 13px;
}
.bag-selects label {
  font-size: 10px;
  display: grid;
  gap: 7px;
}
.bag-selects select {
  font-size: 12px;
  min-width: 120px;
  min-height: 40px;
  padding: 10px;
}
.bag-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}
.bag-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: linear-gradient(140deg, #fffdf0, #f1f3df);
  border: 1px solid currentColor;
  border-radius: 17px;
  padding: 17px 13px;
  box-shadow: 0 3px 0 #d8dfc6;
  min-height: 135px;
}
.bag-item-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 65px;
  border-radius: 13px;
  border: 1px solid currentColor;
  flex: none;
  background: #fbf8e1;
}
.bag-item .item-art {
  width: 43px;
  height: 43px;
}
.bag-item-copy {
  min-width: 0;
  padding-bottom: 15px;
}
.bag-item-copy > b {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.bag-item-copy > small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
}
.bag-item-level {
  font-size: 10px;
  color: #97a07c;
  display: block;
  margin-top: 5px;
}
.bag-item-status {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 9px;
  color: #92a17e;
  padding: 3px 7px;
  border-radius: 5px;
  background: #e9eedb;
}
.bag-item-status.worn {
  background: #dcebc5;
  color: #6a8d4e;
  border: 1px solid #c7d9aa;
}
.bag-explainer {
  margin: 22px 0 0;
  text-align: center;
  font-size: 11px;
}
.bag-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 20px;
}
.bag-empty > .rpg-art {
  height: 190px;
  width: 200px;
  margin: auto;
}
.bag-empty h3 {
  color: #728b5d;
}
.bag-empty p {
  font-size: 12px;
  color: #899a74;
}
@media (max-width: 1000px) {
  .bag-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .header-bag {
    gap: 3px !important;
  }
  .header-bag svg {
    width: 16px;
    height: 18px;
  }
  .brand {
    font-size: 15px;
  }
  .brand small {
    font-size: 7px;
  }
  #account .row {
    gap: 5px;
  }
  #account button {
    padding: 8px 7px;
  }
  .build-tabs {
    gap: 7px;
  }
  .build-tabs button {
    font-size: 10px;
    padding: 11px 6px;
  }
  .equipment-slot {
    gap: 7px;
    padding: 10px;
  }
  .equipment-slot .slot-detail {
    flex-basis: 100%;
    gap: 8px;
  }
  .equipment-slot .item-art {
    width: 32px;
    height: 32px;
  }
  .slot-remove {
    width: 100%;
    min-height: 35px;
    font-size: 10px;
  }
  .equipment-bag-link {
    display: block;
    text-align: center;
  }
  .equipment-bag-link button {
    font-size: 12px;
    width: 100%;
  }
  .bag-hero-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .bag-emblem {
    width: 52px;
    height: 58px;
    border-radius: 15px;
  }
  .bag-emblem svg {
    width: 30px;
    height: 34px;
  }
  .bag-hero-row h2 {
    font-size: 19px;
  }
  .bag-hero-row p {
    font-size: 10px;
  }
  .bag-hero-row > button {
    margin-left: auto;
    font-size: 10px;
  }
  .bag-toolbar {
    gap: 18px;
    margin-top: 20px;
    padding-top: 18px;
  }
  .bag-filters {
    width: 100%;
    gap: 8px;
  }
  .bag-filters button {
    flex: 1;
    font-size: 11px;
    padding: 11px 8px;
  }
  .bag-selects {
    width: 100%;
    gap: 12px;
  }
  .bag-selects label {
    flex: 1;
    min-width: 0;
  }
  .bag-selects select {
    width: 100%;
    min-width: 0;
    font-size: 11px;
  }
  .bag-items {
    gap: 12px;
    margin-top: 20px;
  }
  .bag-item {
    display: block;
    padding: 12px 10px 35px;
    min-height: 185px;
  }
  .bag-item-icon {
    width: 52px;
    height: 56px;
    margin: 0 auto 12px;
  }
  .bag-item-copy {
    text-align: center;
    padding-bottom: 0;
  }
  .bag-item-copy > b {
    font-size: 11px;
  }
  .bag-item-copy > small,
  .bag-item-level {
    font-size: 9px;
  }
  .bag-explainer {
    font-size: 10px;
    line-height: 1.8;
  }
  .auth-alternative {
    font-size: 12px;
  }
  .account-switch-note {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .welcome .auth-card {
    order: -1;
  }
  .welcome-world {
    min-height: 320px;
  }
  .welcome-party {
    height: 165px;
  }
  .welcome-title h1 {
    font-size: 24px;
  }
  .welcome-title p {
    font-size: 10px;
  }
}

/* V4: illustrated world map, collectible equipment, and the living talent constellation. */
.painted-icon {
  display: inline-block;
  position: relative;
  flex: none;
  aspect-ratio: 1;
  width: 64px;
  height: auto;
  background-size: 400% 400%;
  background-repeat: no-repeat;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 3px 9px #062a2940,
    inset 0 0 0 1px #f6d18088;
}
.painted-icon .icon-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #fff5, transparent 45%);
  pointer-events: none;
}
.item-art.painted-icon {
  color: inherit;
  background-color: #073f3e;
  border: 2px solid #cbbd8a;
  object-fit: contain;
}
.item-art.quality-uncommon {
  border-color: #78bd89;
}
.item-art.quality-rare {
  border-color: #7aaedf;
  box-shadow: 0 0 15px #69adeb44;
}
.item-art.quality-epic {
  border-color: #c79ee8;
  box-shadow: 0 0 18px #b986ef55;
}
.item-art.quality-legendary {
  border-color: #f8d47e;
  box-shadow: 0 0 22px #ffc96066;
}
.gear-inspect .item-art.painted-icon {
  width: 130px;
}
.element-poison {
  --element: #b3db63;
}
.element-lightning {
  --element: #a4acff;
}
.element-wind {
  --element: #93ddce;
}
.element-light {
  --element: #f3de9d;
}
.element-dark {
  --element: #bd8ddd;
}
.forest-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  min-height: 290px;
  padding: 34px 40px;
  border-radius: 32px;
  color: #f8f6db;
  background:
    linear-gradient(90deg, #143f39ee, #123b3940),
    url('/assets/v3/forest-world.webp') center 58% / cover;
  box-shadow: 0 16px 35px #28503924;
}
.forest-welcome h1 {
  max-width: 630px;
  font-size: clamp(25px, 3vw, 43px);
  margin: 10px 0 12px;
  letter-spacing: 0.01em;
}
.forest-welcome p {
  color: #ebefd5;
  margin-bottom: 24px;
}
.forest-welcome .eyebrow {
  color: #f3d28a;
}
.welcome-guardian {
  width: 230px;
  height: 260px;
  position: relative;
  flex: none;
}
.welcome-guardian .guardian-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.welcome-guardian .element-rune {
  position: absolute;
  bottom: 12px;
  right: 0;
}
.camp-command-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff9e8;
  border: 1px solid #dbd8b5;
  padding: 20px 24px;
  margin: 18px 0 26px;
  border-radius: 22px;
}
.camp-command-bar > div {
  flex: 1;
  min-width: 140px;
}
.camp-command-bar .xp-track {
  max-width: 260px;
}
.atlas-shell {
  overflow: hidden;
  border-radius: 28px;
  border: 3px solid #bca76c;
  box-shadow: 0 10px 32px #21433a28;
  background: #163f38;
  margin: 24px 0;
}
.atlas-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 14px;
  color: #fff3c7;
  background: radial-gradient(ellipse at top, #315b49, #153c35);
}
.atlas-title h2 {
  margin: 7px 0;
  font-size: 27px;
}
.atlas-title .eyebrow {
  color: #c8ddad;
}
.map-progress {
  font-size: 31px;
  color: #f4d38a;
  white-space: nowrap;
}
.map-progress small {
  display: block;
  font-size: 11px;
  text-align: center;
  color: #d6e7c1;
}
.atlas-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 28px 18px;
  font-size: 12px;
  color: #d2e2bc;
}
.atlas-viewport {
  height: min(79vh, 1000px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: #ccbd89 #16463a;
  overscroll-behavior-y: contain;
  position: relative;
  background: #173e33;
}
.forest-atlas {
  position: relative;
  width: 100%;
  min-height: 1500px;
  aspect-ratio: 2/3;
  background: url('/assets/v4/forest-map.webp') center/100% 100% no-repeat;
  isolation: isolate;
}
.map-stop,
.map-portal {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: 0;
  background: none;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  min-width: 0;
  box-shadow: none;
  color: #193c2c;
  overflow: visible;
  z-index: 3;
}
.map-stop {
  width: 160px;
  height: 145px;
}
.map-stop:hover,
.map-portal:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: none;
  box-shadow: none;
}
.map-creature {
  position: relative;
  display: block;
  width: 118px;
  height: 115px;
  z-index: 2;
  filter: drop-shadow(0 6px 5px #152d2c77);
}
.map-creature .monster-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.map-stop.guardian .map-creature {
  width: 132px;
  height: 130px;
}
.map-stop.boss .map-creature {
  width: 165px;
  height: 150px;
}
.map-stop-aura {
  position: absolute;
  bottom: 10px;
  left: 23%;
  right: 23%;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 20px #ffed8a;
  background: #ffdb56aa;
}
.map-number {
  position: absolute;
  left: 21px;
  bottom: 32px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 2px solid #fff1be;
  border-radius: 50%;
  background: #304e37;
  color: #ffecb2;
  box-shadow: 0 2px 4px #25362888;
  font-weight: 900;
}
.map-stop-label {
  position: relative;
  z-index: 4;
  border-radius: 9px;
  padding: 5px 12px;
  border: 1px solid #fff0b3;
  background: linear-gradient(#f9e7b3, #e1bd73);
  box-shadow: 0 4px 8px #16372d77;
  min-width: 115px;
}
.map-stop-label b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.map-stop-label small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.map-stop.locked .map-creature {
  filter: saturate(0.35) brightness(0.75) drop-shadow(0 4px 3px #193124);
}
.map-stop.locked .map-stop-label {
  background: linear-gradient(#d9d8ba, #b2b18e);
}
.map-stop.cleared .map-stop-label {
  background: linear-gradient(#f0ffd9, #c5e8a6);
}
.map-stop.cleared .map-number {
  background: #4a7e46;
}
.map-beacon {
  position: absolute;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff0a2;
  box-shadow: 0 0 30px 10px #fff080;
  animation: mapBeacon 2s ease-in-out infinite;
}
.map-portal {
  width: 108px;
  min-height: 78px;
}
.portal-ring {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #edcf83;
  box-shadow:
    0 0 8px #afffff,
    0 0 20px #74f4e4;
  overflow: hidden;
  background: #184b44;
}
.portal-ring .spell-art {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.map-portal.subject-cn .portal-ring {
  box-shadow: 0 0 15px #f7bd74;
}
.map-portal.subject-en .portal-ring {
  box-shadow: 0 0 15px #d2b0ff;
}
.map-portal b {
  font-size: 11px;
  color: #fff6cc;
  padding: 3px 7px;
  background: #123f34e8;
  box-shadow: 0 2px 5px #18362b77;
  border: 1px solid #d1be82;
  border-radius: 6px;
  white-space: nowrap;
}
.map-portal small {
  font-size: 9px;
  color: #e8f5ce;
  background: #194a3ac9;
  padding: 1px 5px;
  border-radius: 0 0 4px 4px;
}
.map-portal.locked {
  filter: saturate(0.5);
}
.map-region {
  position: absolute;
  left: 4%;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff1ba;
  text-shadow:
    0 2px 6px #123d35,
    0 1px 3px #123d35;
  pointer-events: none;
}
.map-region small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-top: 5px;
}
.region-top {
  top: 3%;
  left: 39%;
}
.region-oak {
  top: 25%;
  left: 65%;
}
.region-mushroom {
  top: 55%;
  left: 28%;
}
.region-camp {
  top: 94%;
  left: 5%;
}
.map-ending {
  position: absolute;
  bottom: 15px;
  right: 5%;
  font-size: 13px;
  color: #fff8d9;
  text-shadow: 0 2px 3px #184535;
}
.map-mist {
  position: absolute;
  width: 50%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #e9ffe72a, transparent 70%);
  pointer-events: none;
  z-index: 4;
  animation: mistDrift 14s ease-in-out infinite alternate;
}
.mist-one {
  top: 28%;
  left: 25%;
}
.mist-two {
  top: 69%;
  left: 5%;
  animation-delay: -7s;
}
@keyframes mapBeacon {
  50% {
    opacity: 0.45;
    transform: translateY(-8px) scale(0.8);
  }
}
@keyframes mistDrift {
  to {
    transform: translateX(30%);
  }
}
.talent-panel {
  background:
    linear-gradient(135deg, #123d39ed, #071f32e8),
    url('/assets/v4/forest-map.webp') center/cover;
  color: #f7edc7;
  border: 2px solid #998954;
  box-shadow: inset 0 0 80px #020f22aa;
}
.talent-panel .eyebrow,
.talent-panel p {
  color: #bcd7bd;
}
.talent-panel .secondary {
  color: #dcebc9;
  background: #23473e;
  border-color: #8b945e;
}
.talent-panel .active {
  background: #c4b47f;
  color: #183a2e;
}
.talent-legend {
  color: #c4d6b7;
}
.talent-tree {
  gap: 22px 10px;
  padding: 30px 0 20px;
  background: radial-gradient(ellipse at 50% 50%, #5b987125, transparent 65%);
}
.talent-node {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 12px 2px 8px;
  color: #e4e7c1;
  min-height: 132px;
}
.talent-node:hover {
  background: #b9dc9630;
  transform: translateY(-3px);
}
.talent-node.active {
  background: transparent;
  color: #fff4c3;
}
.talent-node.locked {
  opacity: 0.65;
}
.talent-symbol {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: none;
  border: 2px solid #869b84;
  box-shadow:
    0 0 0 4px #153f37,
    0 0 0 5px #69816e;
  overflow: visible;
}
.talent-symbol .painted-icon {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: none;
}
.talent-node.active .talent-symbol {
  border: 2px solid #e1c074;
  background: none;
  box-shadow:
    0 0 0 4px #183c35,
    0 0 0 5px #a49460,
    0 0 24px #e8d48d29;
}
.talent-node.learned .talent-symbol {
  border-color: #f5dc94;
  box-shadow:
    0 0 0 4px #345542,
    0 0 0 5px #d4b776,
    0 0 25px #99e48a66;
}
.talent-node.passive .talent-symbol {
  width: 62px;
  height: 62px;
  border-radius: 50%;
}
.talent-node.passive .painted-icon {
  border-radius: 50%;
}
.passive-art.passive-2 {
  filter: hue-rotate(25deg) saturate(0.7);
}
.passive-art.passive-3 {
  filter: hue-rotate(-25deg) brightness(0.8);
}
.talent-symbol em {
  right: -6px;
  bottom: -8px;
  z-index: 4;
  background: #284639;
  color: #efd596;
  border-color: #9fa773;
}
.talent-node b {
  font-size: 14px;
  text-shadow: 0 1px 4px #041c18;
}
.talent-node small {
  color: #becbb2;
  font-size: 11px;
}
.talent-node.learned small {
  color: #e6d698;
}
.talent-edges path {
  stroke: #b7b378;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 3px #dddb8840);
}
.talent-points {
  color: #f5d88a;
}
.talent-footer {
  border-color: #79926a55;
}
.talent-inspect-art {
  float: right;
  margin: 20px 8px 12px 18px;
}
.talent-inspect-art .spell-art {
  width: 96px;
}
.spell-preview-stage {
  position: relative;
  height: 220px;
  clear: both;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #c5bb89;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 65%, #3e7254, #122f31 65%, #081e2a);
}
.preview-trigger {
  margin: 10px 0 20px;
  width: 100%;
}
.dungeon-inspect-art {
  height: 180px;
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.dungeon-inspect-art .monster-art {
  width: 200px;
  height: 180px;
  object-fit: contain;
}
.combat-skill .spell-art {
  width: 58px;
  border-radius: 13px;
  margin-right: 10px;
}
.selected-skill .spell-art {
  width: 52px;
}
.boss-art > .monster-art {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.finishing-copy {
  text-align: center;
  padding: 55px 0;
}
.finishing-copy > span {
  font-size: 70px;
  color: #d7b85d;
}
.loot-reveal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 480px;
  padding: 25px 15px;
  margin: 25px auto;
  border-radius: 25px;
  border: 1px solid #e0c780;
  background: radial-gradient(ellipse at center, #fff7d5, #e7eacb);
}
.loot-equipment {
  width: 128px;
  height: 128px;
  margin: 18px auto;
  animation: lootRise 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.loot-equipment .item-art {
  width: 100%;
  height: 100%;
  border-radius: 23px;
}
.loot-rays {
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg, #e8ce7530 0deg 9deg, transparent 9deg 26deg);
  animation: treasureTurn 24s linear infinite;
}
.loot-reveal h2 {
  font-size: 24px;
}
.model-settings-card {
  margin: 25px 0;
  padding: 22px;
  border-radius: 18px;
  background: #edf2dc;
  border: 1px solid #d2d7b0;
}
.model-settings-card p {
  font-size: 14px;
}
@keyframes lootRise {
  from {
    opacity: 0;
    transform: translateY(55px) scale(0.4) rotate(-15deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes treasureTurn {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .forest-welcome {
    padding: 22px;
    min-height: 255px;
    border-radius: 23px;
  }
  .forest-welcome > div:first-child {
    position: relative;
    z-index: 2;
    max-width: 78%;
  }
  .forest-welcome h1 {
    font-size: 26px;
    line-height: 1.35;
  }
  .forest-welcome p {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 17px;
  }
  .forest-welcome .eyebrow {
    font-size: 10px;
  }
  .forest-welcome .row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .forest-welcome button {
    font-size: 11px;
    padding: 11px 13px;
  }
  .welcome-guardian {
    position: absolute;
    width: 145px;
    height: 190px;
    right: -24px;
    bottom: -20px;
    opacity: 0.9;
  }
  .welcome-guardian .element-rune {
    display: none;
  }
  .camp-command-bar {
    padding: 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .camp-command-bar > div {
    flex-basis: 100%;
  }
  .camp-command-bar button {
    font-size: 11px;
    padding: 11px;
    flex: 1;
  }
  .atlas-title {
    padding: 18px 16px 8px;
  }
  .atlas-title h2 {
    font-size: 19px;
  }
  .atlas-title .eyebrow {
    font-size: 9px;
  }
  .map-progress {
    font-size: 26px;
  }
  .atlas-legend {
    font-size: 9px;
    padding: 8px 15px 14px;
    gap: 6px;
  }
  .atlas-shell {
    border-radius: 23px;
    border-width: 2px;
  }
  .atlas-viewport {
    height: 73vh;
    min-height: 470px;
  }
  .forest-atlas {
    min-height: 1460px;
  }
  .map-stop {
    width: 112px;
    height: 115px;
  }
  .map-creature {
    width: 86px;
    height: 88px;
  }
  .map-stop.guardian .map-creature {
    width: 100px;
    height: 103px;
  }
  .map-stop.boss .map-creature {
    width: 120px;
    height: 122px;
  }
  .map-stop-label {
    min-width: 85px;
    padding: 5px 7px;
  }
  .map-stop-label b {
    font-size: 12px;
  }
  .map-stop-label small {
    font-size: 9px;
  }
  .map-number {
    width: 24px;
    height: 24px;
    left: 3px;
    bottom: 28px;
    font-size: 11px;
  }
  .map-portal {
    width: 64px;
    min-height: 65px;
  }
  .portal-ring {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }
  .map-portal b {
    font-size: 10px;
    padding: 4px 3px;
    max-width: 71px;
    white-space: normal;
    line-height: 1.3;
  }
  .map-portal small {
    font-size: 8px;
  }
  .map-region {
    font-size: 14px;
    letter-spacing: 0;
  }
  .map-region small {
    font-size: 9px;
  }
  .region-top {
    left: 29%;
  }
  .region-oak {
    left: 63%;
  }
  .region-mushroom {
    left: 30%;
  }
  .map-ending {
    font-size: 10px;
  }
  .talent-tree {
    gap: 18px 4px;
    padding-top: 25px;
  }
  .talent-node {
    min-height: 120px;
  }
  .talent-symbol {
    width: 63px;
    height: 63px;
    border-radius: 14px;
  }
  .talent-symbol .painted-icon {
    border-radius: 12px;
  }
  .talent-node.passive .talent-symbol {
    width: 50px;
    height: 50px;
  }
  .talent-node b {
    font-size: 11px;
  }
  .talent-node small {
    font-size: 9px;
  }
  .talent-panel {
    padding: 17px 11px;
  }
  .talent-panel h2 {
    font-size: 20px;
  }
  .talent-legend {
    font-size: 9px;
  }
  .talent-subject-tabs button {
    font-size: 12px;
  }
  .talent-inspect-art .spell-art {
    width: 80px;
  }
  .combat-skill .spell-art {
    width: 48px;
  }
  .model-entry {
    font-size: 10px !important;
    padding: 9px !important;
  }
  .spell-preview-stage {
    height: 190px;
  }
  .bag-item .item-art {
    width: 58px;
    height: 58px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-beacon,
  .map-mist,
  .loot-rays,
  .loot-equipment {
    animation: none;
  }
}
.forest-welcome h1 {
  color: #fff4cc;
  text-shadow: 0 2px 10px #0d302a;
}
.atlas-title h2,
.talent-panel h2 {
  color: #fff1bd;
}
.forest-welcome .eyebrow {
  color: #efdaa0;
}
.forest-atlas .stop-forest-04 {
  filter: hue-rotate(35deg) saturate(0.75);
}
.forest-atlas .stop-forest-07 {
  filter: hue-rotate(110deg) brightness(0.75);
}
.forest-atlas .stop-forest-08 {
  filter: hue-rotate(25deg);
}
.forest-atlas .stop-forest-09 {
  filter: hue-rotate(32deg) brightness(1.1);
}
.skill-mechanics {
  padding: 14px 16px;
  margin: 18px 0;
  border-radius: 14px;
  background: #e6edda;
  border: 1px solid #ccd5b1;
}
.skill-mechanics > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #496541;
  font-weight: 800;
}
.skill-mechanics p {
  font-size: 13px;
  margin: 9px 0;
}
.skill-mechanics small {
  font-size: 12px;
  color: #63775d;
}
.element-picker button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.element-picker button small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
}
.element-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Dedicated map header; V8 document-flow height is defined below. */
main > .atlas-shell {
  margin: 10px 0 0;
}
main > .atlas-shell .atlas-title {
  padding: 16px 20px 8px;
}
main > .atlas-shell .atlas-title h2 {
  font-size: 24px;
  margin: 5px 0;
}
main > .atlas-shell .atlas-legend {
  padding: 6px 20px 12px;
}
main > .atlas-shell .atlas-viewport {
  height: calc(100vh - 330px);
  height: calc(100dvh - 330px);
  min-height: 340px;
}
@media (max-width: 700px) {
  main > .atlas-shell .atlas-title {
    padding: 15px 14px 7px;
  }
  main > .atlas-shell .atlas-title h2 {
    font-size: 20px;
  }
  main > .atlas-shell .atlas-legend {
    padding: 6px 14px 12px;
  }
  main > .atlas-shell .atlas-viewport {
    height: calc(100vh - 285px);
    height: calc(100dvh - 285px);
    min-height: 340px;
  }
}
/* Locked talents keep their illustrated identity; requirements are shown by frame and labels. */
.talent-node.locked {
  filter: none;
  opacity: 0.86;
}
.talent-node.locked .painted-icon {
  filter: saturate(0.9) brightness(0.87);
}
.talent-node.locked .talent-symbol {
  box-shadow:
    0 0 0 4px #14382f,
    0 0 0 5px #607b63;
}
/* V5: clear collaborative intent, bounded cinematic turns and accessible learning exits. */
.battlefield,
.combat-action {
  scroll-margin-top: 100px;
}
.battlefield {
  position: relative;
}
.skip-battle-scene {
  position: absolute;
  right: 16px;
  top: 10px;
  z-index: 12;
  background: #163d37dd !important;
  color: #fff1ba !important;
  border-color: #e3c47c !important;
}
.turn-cinematic {
  padding: 45px 15px;
  text-align: center;
  background: radial-gradient(ellipse, #e0efcf, transparent 72%);
  border-radius: 20px;
}
.turn-cinematic > span {
  font-size: 60px;
  color: #b49b4b;
}
.turn-cinematic h2 {
  font-size: 24px;
}
.turn-cinematic p {
  color: #718368;
}
.teamwork-panel {
  margin: 20px 0 18px;
  padding: 17px;
  border: 1px solid #c6cf9b;
  background: linear-gradient(135deg, #edf1d9, #f9f4df);
  border-radius: 20px;
}
.teamwork-panel > .row > b {
  font-size: 15px;
}
.teamwork-panel > .row > small {
  font-size: 10px;
  color: #75866c;
}
.teamwork-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.teamwork-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid #d3dabc;
  border-radius: 13px;
  background: #fffdf4aa;
}
.teamwork-option.ready {
  border-color: #9ab966;
  background: #e0efc6;
  box-shadow: 0 0 12px #bdd88f55;
}
.teamwork-role-art {
  display: block;
  width: 38px;
  height: 49px;
  flex: none;
}
.teamwork-role-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.teamwork-option b {
  display: block;
  font-size: 13px;
}
.teamwork-option small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: #63785c;
}
.teamwork-option em {
  display: block;
  font-size: 10px;
  font-style: normal;
  color: #8b8e61;
  margin-top: 4px;
}
.teamwork-panel > p {
  font-size: 11px;
  color: #6f7f61;
  margin: 12px 0 0;
}
.team-combo-success {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #325c40;
  color: #fce7a1;
  font-weight: 800;
  font-size: 14px;
}
.team-combo-success small {
  display: block;
  font-size: 10px;
  color: #dfebc0;
  font-weight: normal;
  margin-top: 4px;
}
.team-summary {
  padding: 20px;
  margin: 20px auto;
  border: 1px solid #d4d9b0;
  background: #edf0d9;
  max-width: 590px;
  border-radius: 20px;
}
.team-summary h3 {
  font-size: 18px;
}
.team-summary p {
  font-size: 13px;
}
.team-faces {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.team-faces > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 80px;
}
.team-faces img {
  height: 72px;
  width: 60px;
  object-fit: contain;
}
.team-faces b {
  font-size: 11px;
}
.party-roles {
  padding: 15px 0;
  margin: 10px 0;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.party-roles > span {
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid #d4d7bb;
  color: #8a9277;
  font-size: 12px;
}
.party-roles > span.filled {
  background: #e1edcd;
  color: #416b44;
  border-color: #afc28c;
}
.party-roles > p {
  flex-basis: 100%;
  font-size: 12px;
  color: #748068;
  margin: 5px 0;
}
.destination-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #e2eacb;
  border: 1px solid #bdcb9b;
  padding: 18px 20px;
  margin: 18px 0;
  border-radius: 16px;
}
.destination-banner > span {
  font-size: 12px;
  color: #70835a;
}
.destination-banner > b {
  font-size: 20px;
  flex: 1;
}
.destination-banner > small {
  flex-basis: 100%;
  color: #71815e;
}
.learning-stage-note {
  padding: 12px 15px;
  background: #edf1db;
  border: 1px solid #d2d9b0;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.8;
}
.learning-scope-pill {
  font-size: 11px;
  color: #658148;
  background: #edf2da;
  border: 1px solid #cbd7ae;
  border-radius: 20px;
  margin-left: 8px;
  padding: 4px 9px;
}
.training-exit {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  border-top: 1px solid #e2e5d1;
  padding-top: 15px;
}
.lq-wordbank button {
  min-height: 44px;
  padding: 9px 16px;
  background: #eef2dc;
  color: #386348;
  border: 1px solid #c3d4a5;
  border-radius: 11px;
}
.lq-wordbank button:active {
  background: #d4e9bf;
}
.spell-preview-stage {
  height: 320px;
}
.vfx-combo-banner {
  text-shadow: 0 2px 5px #123426;
}
.solo-team-note {
  font-size: 11px;
  color: #708367;
  margin-top: 14px;
}
@media (max-width: 700px) {
  .teamwork-panel {
    padding: 13px;
  }
  .teamwork-panel > .row > b {
    font-size: 13px;
  }
  .teamwork-panel > .row > small {
    font-size: 9px;
  }
  .teamwork-options {
    gap: 7px;
  }
  .teamwork-option {
    padding: 8px 6px;
    gap: 5px;
  }
  .teamwork-role-art {
    width: 26px;
    height: 37px;
  }
  .teamwork-option b {
    font-size: 12px;
  }
  .teamwork-option small {
    font-size: 10px;
  }
  .teamwork-option em {
    font-size: 9px;
  }
  .spell-preview-stage {
    height: 270px;
  }
  .team-faces {
    gap: 6px;
  }
  .team-faces > span {
    max-width: 58px;
  }
  .team-faces img {
    width: 48px;
    height: 60px;
  }
  .team-summary h3 {
    font-size: 16px;
  }
  .destination-banner {
    padding: 14px;
  }
  .destination-banner > b {
    font-size: 17px;
  }
  .skip-battle-scene {
    font-size: 10px;
    top: 5px;
    right: 9px;
  }
  .turn-cinematic {
    padding: 30px 10px;
  }
  .turn-cinematic h2 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .turn-cinematic {
    background: #edf1dd;
  }
}
.learning-hint {
  padding: 17px 19px;
  margin: 18px 0;
  border: 1px solid #cece98;
  border-radius: 15px;
  background: #f6f0d4;
  color: #536347;
}
.learning-hint > b {
  font-size: 14px;
}
.learning-hint p {
  font-size: 15px;
  line-height: 1.8;
  margin: 8px 0 0;
}
/* Keep combat facts readable above the spectacle. */
.battlefield .boss-panel,
.battlefield .monster-intent,
.battle-member > b,
.battle-member > .meter,
.battle-member > small {
  position: relative;
  z-index: 10;
}

.battle-member > .ai-badge,
.battle-member > .target-warning {
  z-index: 10;
}
/* A forest stage gives luminous spells contrast while HP, intent and learning controls stay clear. */
.battle-backdrop {
  background:
    linear-gradient(145deg, #082d37b8, #123d2eb8),
    url('/assets/v3/forest-world.webp') center 58% / cover;
  border: 1px solid #a4bd8d;
  border-radius: 23px;
  box-shadow: inset 0 0 55px #031c2b99;
}
.boss-art {
  filter: drop-shadow(0 10px 9px #031a1c88);
}

/* V6: personal learning settings stay separate from the shared combat clock. */
.learning-preference-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 15px 0;
  padding: 16px 18px;
  border: 1px solid #c7d5b2;
  border-radius: 20px;
  background: linear-gradient(115deg, #f4f5dd, #e6eddf);
}
.learning-preference-banner > div {
  display: grid;
  gap: 5px;
}
.learning-preference-banner small {
  max-width: 38em;
  color: #53634d;
  line-height: 1.55;
}
#partyDifficulty {
  width: 100%;
  margin-top: 9px;
}
@media (max-width: 560px) {
  .learning-preference-banner {
    align-items: stretch;
    flex-direction: column;
  }
}

/* V6: a persistent, directed, name-based account of real teamwork. */
.coop-facts {
  display: grid;
  gap: 9px;
  margin-top: 13px;
  text-align: left;
}
.coop-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #c6d6b3;
  border-radius: 16px;
  background: linear-gradient(115deg, #f9f8e8, #e0eeda);
}
.coop-fact.combo {
  border-color: #d8c88b;
  background: linear-gradient(115deg, #fff6d8, #f2e7c4);
}
.coop-fact.healing {
  border-color: #c8d6bd;
  background: linear-gradient(115deg, #f4f6e9, #e8eddc);
}
.coop-portrait-link {
  display: flex;
  align-items: center;
  gap: 0;
  flex: none;
}
.coop-face {
  width: 32px;
  height: 42px;
  display: inline-flex;
  align-items: center;
}
.coop-face + .coop-face {
  margin-left: -10px;
}
.coop-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.coop-arrow {
  color: #739552;
  font-size: 17px;
  margin: 0 5px;
}
.coop-fact.combo .coop-arrow {
  color: #c99d40;
}
.coop-fog {
  width: 28px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #bb9c4b;
  font-size: 26px;
}
.coop-fact-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.coop-fact-copy b {
  color: #314f3b;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.coop-fact-copy > span {
  color: #426344;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}
.coop-fact-copy small {
  color: #69745c;
  font-size: 10px;
}
.coop-more summary,
.teamwork-guide summary {
  color: #546c46;
  cursor: pointer;
  padding: 9px 2px;
  font-size: 12px;
}
.coop-more .coop-fact {
  margin: 8px 0;
}
.teamwork-guide {
  margin-top: 6px;
}
.teamwork-guide[open] {
  border-top: 1px solid #cdd7b6;
  margin-top: 13px;
  padding-top: 5px;
}
.care-breakmist-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 4px;
  padding: 12px 5px;
  border-radius: 12px;
  background: #fffdf1;
  font-size: 11px;
  color: #436348;
}
.care-breakmist-guide i {
  font-style: normal;
  color: #bda664;
}
@media (max-width: 560px) {
  .coop-fact {
    padding: 10px 8px;
    gap: 8px;
  }
  .coop-face {
    width: 25px;
    height: 34px;
  }
  .coop-arrow {
    margin: 0 2px;
    font-size: 13px;
  }
  .coop-fog {
    width: 23px;
    font-size: 21px;
  }
  .coop-fact-copy b {
    font-size: 11px;
  }
  .coop-fact-copy > span {
    font-size: 12px;
  }
  .care-breakmist-guide {
    flex-wrap: wrap;
  }
}
.prepared-action {
  max-width: 100%;
  color: #35523d !important;
  font-size: 10px !important;
  overflow-wrap: anywhere;
  line-height: 1.4;
  background: #e5edcf;
  border-radius: 5px;
  padding: 3px;
}
.round-limit-note {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #bdcfaa;
  border-radius: 15px;
  background: #eaf0db;
  color: #3c5a3c;
}
.round-limit-note b {
  font-size: 13px;
}
.round-limit-note span {
  font-size: 11px;
  line-height: 1.6;
}
.round-limit-note.closing {
  background: #fbefd0;
  border-color: #d7c488;
}

/* V7: a collected forest legacy, with a distinct green set seal. */
.item-art.set-art {
  background-size: 200% 200%;
  background-color: #103e33;
  border-color: #71e8ad;
  box-shadow:
    0 0 18px #50db9f55,
    inset 0 0 0 1px #d7f9be88;
}
.set-leaf-seal {
  position: absolute;
  right: 1px;
  bottom: -1px;
  color: #dfff9d;
  background: #195d40;
  border-radius: 9px 0 0 0;
  font-size: 14px;
  font-style: normal;
  padding: 0 3px;
  text-shadow: 0 0 5px #62edaa;
}
.set-gear {
  border-color: #69bb8b !important;
  box-shadow: inset 0 0 0 1px #7ad5a344;
}
.set-gear .bag-item-copy > b {
  color: #1b6945;
}
.set-dragon-icon {
  border: 2px solid #bcf6a4;
  background: radial-gradient(ellipse at 50% 70%, #42aa6c, #0c4036 72%);
  box-shadow: 0 0 18px #7ae5a988;
}
.set-dragon-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 3px #dded85);
}
.set-collection {
  position: relative;
  margin-top: 24px;
  padding: 28px;
  overflow: hidden;
  color: #eff7df;
  border: 1px solid #b8d797;
  background:
    radial-gradient(ellipse at 100% 0%, #2c794c, transparent 65%),
    linear-gradient(145deg, #153e35, #164a3d 55%, #163d33);
  box-shadow:
    0 14px 32px #1b503220,
    inset 0 0 30px #a8e68b12;
}
.set-collection .eyebrow {
  color: #c6dda1;
}
.set-intro {
  min-height: 158px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.set-intro > div {
  z-index: 1;
  flex: 1;
}
.set-intro h2 {
  color: #ecf8bb;
  font-size: 28px;
  margin: 8px 0;
}
.set-intro p {
  font-size: 13px;
  color: #d2e2c6;
}
.set-dragon-portrait {
  width: 230px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px #70d59244);
}
.set-count {
  display: inline-block;
  padding: 6px 12px;
  color: #ccdfbe;
  border-radius: 20px;
  border: 1px solid #7ea879;
  font-size: 12px;
}
.set-count.complete {
  color: #edffbd;
  background: #35784a;
  border-color: #cfeba0;
}
.set-pieces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.set-piece {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 12px 7px;
  border: 1px solid #779669;
  border-radius: 14px;
  background: #082a2377;
  color: #ecf3da;
}
.set-piece .item-art {
  width: min(96px, 100%);
}
.set-piece b {
  font-size: 13px;
}
.set-piece small {
  font-size: 11px;
  color: #b5c9ac;
}
.set-piece > span:last-child {
  font-size: 10px;
  color: #c5d6ab;
  line-height: 1.5;
}
.set-piece.missing .item-art {
  filter: saturate(0.4) brightness(0.8);
}
.set-piece.owned {
  border-color: #9cc98b;
}
.set-piece.equipped {
  background: #316c4555;
  border-color: #d0eda0;
  box-shadow: inset 0 0 12px #b3ffac22;
}
.set-piece.equipped small {
  color: #dcf5a8;
}
.set-bonuses {
  display: grid;
  gap: 7px;
}
.set-bonuses > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #c1d0bc;
  padding: 9px 12px;
  background: #092f2655;
  border-radius: 9px;
}
.set-bonuses span {
  white-space: nowrap;
  font-size: 12px;
}
.set-bonuses p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.set-bonuses .active {
  color: #ecf9ba;
  background: #54835044;
}
.set-ultimate-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px solid #7da16f77;
}
.set-ultimate-banner > div {
  flex: 1;
  min-width: 0;
}
.set-ultimate-banner b {
  color: #edfcc8;
  display: block;
  font-size: 18px;
}
.set-ultimate-banner small {
  font-size: 10px;
  color: #d0dcbb;
}
.set-ultimate-banner p {
  font-size: 12px;
  line-height: 1.7;
  margin: 5px 0;
}
.set-rules {
  font-size: 11px;
  color: #c4d5b3;
  line-height: 1.8;
  margin-top: 18px;
}
.set-rules summary {
  cursor: pointer;
}
.set-rules p {
  margin: 8px 0 0;
}
.gear-set-summary,
.dungeon-loot-table {
  background: #e5edd8;
  color: #345a3c;
  padding: 14px;
  border: 1px solid #b7cfa2;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 12px;
}
.dungeon-loot-table small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
}
.boss-challenge-note {
  padding: 13px 15px;
  margin-top: 15px;
  border-radius: 13px;
  border: 1px solid #cdb78b;
  background: #f4e9ce;
  color: #62533a;
  font-size: 12px;
}
.boss-challenge-note p {
  line-height: 1.8;
  margin-bottom: 0;
}
.set-drop-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.set-ultimate-hero {
  text-align: center;
  height: 200px;
  background: radial-gradient(ellipse, #b0d9a5, transparent 68%);
  clear: both;
}
.set-ultimate-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px #46794933);
}
.set-preview-stage {
  min-height: 245px;
}
.set-combat-prompt {
  color: #426b3f;
  background: #e7efd8;
  padding: 12px;
  border: 1px solid #a7c691;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}
.set-combat-prompt label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.set-combat-prompt select {
  min-height: 38px;
  padding: 5px 10px;
}
.combat-skill.set-combat-skill {
  border: 2px solid #5b9970;
  background: linear-gradient(125deg, #e4f2d6, #c4e2b9);
}
.life-seal-readout {
  color: #406737 !important;
  background: #d8ecba;
  padding: 3px 5px;
  border-radius: 6px;
  line-height: 1.5;
}
.battle-member.unconscious {
  border-style: dashed;
}
.battle-member.unconscious > small {
  color: #684d58;
  font-weight: 700;
}
.loot-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  position: relative;
}
.loot-item {
  flex: 1 1 200px;
  min-width: 0;
}
.loot-item > button {
  display: block;
  margin: 10px auto 0;
}
.set-loot-item {
  padding: 14px;
  border: 1px solid #8db57f;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, #d6ebbb, #e8efda66);
}
.set-loot-item h2 {
  color: #346246;
}
.set-loot-reveal .loot-rays {
  background: conic-gradient(
    from 15deg,
    transparent,
    #85cb7922,
    transparent 15%,
    #d7df8222 30%,
    transparent 40%
  );
}
@media (max-width: 600px) {
  .set-collection {
    padding: 18px 14px;
  }
  .set-intro {
    min-height: 140px;
    align-items: flex-start;
  }
  .set-intro > div {
    flex-basis: 60%;
    padding-top: 12px;
  }
  .set-intro h2 {
    font-size: 24px;
  }
  .set-intro p {
    max-width: 170px;
    font-size: 11px;
    line-height: 1.7;
  }
  .set-dragon-portrait {
    position: absolute;
    right: -13px;
    top: -6px;
    width: 155px;
    height: 155px;
    opacity: 0.87;
  }
  .set-pieces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .set-ultimate-banner {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }
  .set-ultimate-medallion .painted-icon {
    width: 56px;
  }
  .set-ultimate-banner > button {
    grid-column: 1 / -1;
  }
  .set-ultimate-hero {
    height: 160px;
  }
}

/* V8: the document owns map scrolling; empty slots never imply owned gear. */
.atlas-shell {
  overflow: visible;
}
.atlas-route-shortcuts {
  padding: 0 25px 20px;
  color: #dce8c5;
}
.atlas-route-shortcuts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.atlas-route-shortcuts button {
  font-size: 11px;
  min-height: 34px;
  padding: 7px 12px;
  background: #244f42;
  border: 1px solid #71876b;
  color: #e3ebc8;
}
.atlas-route-shortcuts .next-map-stop {
  font-size: 13px;
  min-height: 45px;
  background: linear-gradient(130deg, #ecd594, #d6c07f);
  color: #284534;
  border-color: #f2d889;
}
.atlas-viewport,
main > .atlas-shell .atlas-viewport {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}
.forest-atlas {
  border-radius: 0 0 22px 22px;
  overflow: hidden;
}
.equipment-placeholder {
  width: 64px;
  height: 70px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px dashed #a8b1a0;
  border-radius: 12px;
  background: #dbe0d133;
  color: #94a08f;
}
.equipment-placeholder svg {
  width: 35px;
  height: 39px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.equipment-slot:not(.occupied) {
  background: #edf0e5;
  border-style: dashed;
  box-shadow: none;
}
.ritual-art {
  background-size: 300% 400%;
  background-color: #103b37;
}
.build-migration-note {
  margin: 0 0 20px;
  padding: 13px 17px;
  background: #e7eed5;
  border: 1px solid #b6c8a0;
  border-radius: 14px;
  color: #3c5b3a;
  font-size: 12px;
  line-height: 1.8;
}
.build-migration-note summary {
  cursor: pointer;
  font-weight: 700;
}
.talent-path-headings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.talent-path-headings span {
  text-align: center;
  color: #e7e7be;
  background: #b4c78d15;
  border: 1px solid #819b714d;
  padding: 9px 3px;
  border-radius: 12px;
  font-size: 12px;
}
.talent-path-headings span:nth-child(2) {
  color: #b6e5d1;
}
.talent-path-headings span:nth-child(3) {
  color: #d6ccf5;
}
.talent-tree {
  gap: 26px 10px;
  padding-top: 24px;
}
.talent-node {
  min-height: 155px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.talent-node b {
  font-size: 13px;
}
.talent-node small {
  font-size: 10px;
  line-height: 1.6;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.talent-node.mastered {
  opacity: 1;
}
.talent-node.available .talent-symbol {
  border-color: #c7de9d;
  box-shadow:
    0 0 0 4px #244c3b,
    0 0 0 5px #b2ce8d,
    0 0 20px #9ed6a344;
}
.talent-node.mastered .talent-symbol {
  border-color: #edd494;
  box-shadow:
    0 0 0 4px #466342,
    0 0 0 5px #d7c690,
    0 0 25px #d2e98b55;
}
.talent-node.branch-resonance .talent-symbol {
  border-style: double;
}
.talent-symbol em {
  min-width: 28px;
  height: 22px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 19px;
  font-weight: 800;
}
.talent-rank-pips {
  display: inline-flex;
  justify-content: center;
  gap: 5px;
  min-height: 8px;
}
.talent-rank-pips i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  border: 1px solid #b4be9388;
  background: #163e33;
}
.talent-rank-pips i.lit {
  border-color: #f4e2a5;
  background: #e7da8f;
  box-shadow: 0 0 8px #d7e99f66;
}
.talent-choice-seal {
  position: absolute;
  left: -9px;
  top: -11px;
  font-style: normal;
  font-size: 10px;
  width: 21px;
  height: 21px;
  line-height: 19px;
  border-radius: 50%;
  background: #4d5073;
  border: 1px solid #d0bfdc;
  color: #f2e9f7;
}
.talent-edges path.reachable {
  stroke: #a4c790;
  stroke-dasharray: 5 4;
  opacity: 0.65;
}
.talent-edges path.locked-route {
  stroke: #91a489;
  opacity: 0.24;
}
.talent-edges path.choice-link {
  stroke: #c3abdd;
  stroke-dasharray: 3 3;
  opacity: 0.75;
  stroke-width: 1.5;
}
.talent-edges text.choice-label {
  fill: #d9c4e7;
  font-size: 9px;
  letter-spacing: 0;
}
.talent-detail-rank {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.talent-detail-rank > b {
  font-size: 34px;
  color: #49663f;
}
.talent-detail-rank > b span {
  font-size: 16px;
  color: #7a886e;
}
.talent-detail-rank > small {
  width: 100%;
  color: #65745a;
  font-size: 11px;
}
.talent-effect-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.talent-effect-comparison > div {
  border: 1px solid #c6d2b7;
  background: #edf0e2;
  padding: 13px;
  border-radius: 13px;
}
.talent-effect-comparison > div.next {
  background: #e3eed5;
  border-color: #a7bd8c;
}
.talent-effect-comparison span {
  color: #597149;
  font-size: 11px;
  font-weight: 800;
}
.talent-effect-comparison p {
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  margin-bottom: 0;
}
.talent-choice-note {
  margin-top: 14px;
  padding: 12px;
  font-size: 12px;
  color: #65547b;
  background: #ece6f0;
  border-radius: 10px;
  line-height: 1.8;
}
.talent-route-options,
.rank-descriptions {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
}
.talent-route-options summary,
.rank-descriptions summary {
  cursor: pointer;
  color: #587343;
}
.rank-descriptions p {
  border-bottom: 1px solid #d8dfcd;
  padding-bottom: 9px;
}
.talent-investment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.presentation-preferences {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 0 0 16px;
  color: #506744;
  font-size: 12px;
}
.presentation-preferences small {
  font-size: 10px;
  color: #708067;
}
.compact-skill-picker {
  margin: 18px 0 6px;
}
.skill-picker-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-picker-heading b {
  font-size: 16px;
  color: #3c5d3c;
}
.skill-picker-heading small {
  font-size: 10px;
  color: #78876b;
}
.combat-subject-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0;
}
.combat-subject-tabs button {
  padding: 8px 4px;
  min-height: 37px;
  font-size: 12px;
}
.combat-subject-tabs button.active {
  background: #4f7454;
  color: #fff9dc;
}
.combat-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.combat-skill-grid .combat-skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  width: 100%;
  min-height: 124px;
  border-radius: 14px;
  padding: 10px 3px 8px;
  text-align: center;
  background: #f2f3e5;
  border: 1px solid #b5c7a3;
}
.combat-skill-grid .combat-skill:hover {
  transform: translateY(-2px);
  border-color: #73916b;
  background: #e6edd9;
}
.compact-skill-art {
  position: relative;
  line-height: 0;
}
.combat-skill-grid .painted-icon {
  width: 54px;
  height: 54px;
  border-radius: 11px;
}
.combat-skill-grid .combat-skill b {
  font-size: 11px;
  line-height: 1.45;
  color: #37513b;
}
.combat-skill-grid .combat-skill small {
  font-size: 9px;
  color: #6d7e5e;
  line-height: 1.5;
}
.combat-skill-grid .combat-skill em {
  font-size: 9px;
  font-style: normal;
  color: #66834f;
  line-height: 1.4;
}
.combat-skill-grid .combat-skill.unavailable {
  background: #e8eadd;
  border-color: #c4cbb7;
}
.combat-skill-grid .combat-skill.unavailable .painted-icon {
  filter: grayscale(0.8) brightness(0.8);
}
.combat-skill-grid .combat-skill.unavailable em {
  color: #877557;
}
.skill-rank-badge,
.skill-cooldown-badge {
  position: absolute;
  font-style: normal;
  line-height: 1.5;
  bottom: -3px;
  right: -4px;
  padding: 1px 5px;
  font-size: 10px;
  color: #f4ebc3;
  background: #31513b;
  border: 1px solid #d6c480;
  border-radius: 6px;
}
.skill-cooldown-badge {
  top: 13px;
  bottom: auto;
  right: 6px;
  font-size: 11px;
  padding: 2px 4px;
  background: #172f31dd;
  color: #fff0cf;
}
.combat-skill-grid .set-combat-skill {
  background: linear-gradient(140deg, #e5f0d3, #c6dfb3);
  border-color: #8db670;
}
.set-subject-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  font-size: 11px;
}
.set-subject-inline select {
  min-height: 36px;
  font-size: 11px;
  padding: 4px 10px;
}
.skill-picker-note {
  font-size: 10px;
  line-height: 1.8;
  color: #6a7a60;
  margin-bottom: 0;
}
.counter-plan {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid #d0b37e;
  border-radius: 12px;
  background: #f1e7cc;
  color: #6a5b36;
}
.counter-plan b {
  font-size: 14px;
}
.counter-plan span,
.counter-plan small {
  font-size: 11px;
  line-height: 1.7;
}
.counter-plan small {
  width: 100%;
}
.counter-plan.ready {
  border-color: #87b382;
  background: #e2efcf;
  color: #45633d;
}
.counter-failed-note {
  padding: 10px 14px;
  background: #f5e3d5;
  border-radius: 11px;
  font-size: 11px;
  color: #805747;
  line-height: 1.8;
}
@media (max-width: 600px) {
  .atlas-legend {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px 16px;
  }
  .talent-tree {
    gap: 22px 6px;
  }
  .talent-node {
    min-height: 146px;
    gap: 7px;
    padding-left: 0;
    padding-right: 0;
  }
  .talent-node b {
    font-size: 11px;
  }
  .talent-node small {
    font-size: 9px;
  }
  .talent-path-headings {
    gap: 6px;
    margin-top: 14px;
  }
  .talent-path-headings span {
    font-size: 11px;
  }
  .talent-effect-comparison {
    grid-template-columns: 1fr;
  }
  .talent-subject-tabs {
    position: sticky;
    top: 7px;
    z-index: 8;
    background: #164337f5;
    padding: 8px 3px;
    border-radius: 12px;
  }
  .combat-skill-grid {
    gap: 6px;
  }
  .combat-skill-grid .painted-icon {
    width: 47px;
    height: 47px;
  }
  .combat-skill-grid .combat-skill {
    min-height: 118px;
    padding-top: 9px;
  }
  .combat-skill-grid .combat-skill b {
    font-size: 10px;
  }
  .combat-skill-grid .combat-skill small {
    font-size: 8px;
  }
  .presentation-preferences small {
    width: 100%;
  }
}

/* V8 review repairs: visibly distinguish innate skills and semantic corrections. */
.combat-skill-grid .combat-skill .combat-skill-strength {
  color: #536d52;
  font-size: 10px;
}
.combat-skill.base .skill-rank-badge {
  font-size: 9px;
  min-width: 28px;
}
.lq-correction {
  padding: 12px;
  border: 1px solid #ccae66;
  border-radius: 10px;
  background: #fff3cb;
  color: #5f4c20;
  font-size: 14px;
  line-height: 1.7;
}

/* Keep opaque mechanic cards out of the actor-to-target spell corridor. */
.battlefield {
  isolation: isolate;
}
.battle-caption-space {
  height: 72px;
  margin-top: 8px;
}
.battlefield .skip-battle-scene {
  position: relative;
  top: auto;
  right: auto;
  display: block;
  margin: 0 0 10px auto;
}
.battlefield .counter-plan,
.battlefield .counter-failed-note {
  position: relative;
  z-index: 10;
}
.battlefield .battle-backdrop {
  margin-top: 4px;
}
@media (max-width: 700px) {
  .battle-caption-space {
    height: 104px;
  }
}

/* Keep the arena visible while the answer area scrolls on touch devices. */
.mobile-mechanic {
  display: none;
}
@media (max-width: 1366px) {
  .mobile-combat {
    display: block;
  }
  .mobile-combat .battlefield {
    position: sticky;
    top: 0;
    z-index: 25;
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 16px;
    box-shadow: 0 5px 20px #314b5030;
  }
  .mobile-combat .boss-panel h2 {
    font-size: 15px;
    margin: 0;
  }
  .mobile-combat .boss-panel .eyebrow,
  .mobile-combat .hp-caption {
    font-size: 10px;
  }
  .mobile-combat .boss-panel .meter {
    height: 8px;
    margin: 3px 0;
  }
  .mobile-combat .boss-panel .element-rune {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  .mobile-combat .monster-intent {
    padding: 3px 6px;
    margin: 3px 0;
    gap: 4px;
  }
  .mobile-combat .monster-intent b {
    font-size: 11px;
  }
  .mobile-combat .monster-intent p,
  .mobile-combat .intent-glyph,
  .mobile-combat .boss-panel .eyebrow,
  .mobile-combat .ward-seals span {
    display: none;
  }
  .mobile-combat .battle-backdrop,
  .mobile-combat .boss-art {
    height: 76px;
  }
  .mobile-combat .boss-art > .raster-sprite {
    width: 88px;
    height: 76px;
  }
  .mobile-combat .battle-members {
    margin-top: 2px;
    gap: 3px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .mobile-combat .battle-members.count-1 {
    grid-template-columns: minmax(0, 90px);
  }
  .mobile-combat .battle-members.count-2 {
    grid-template-columns: repeat(2, minmax(0, 90px));
  }
  .mobile-combat .member-art {
    height: 52px;
  }
  .mobile-combat .battle-member {
    min-width: 0;
    padding: 2px;
  }
  .mobile-combat .battle-member b {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-combat .battle-member small {
    font-size: 9px;
  }
  .mobile-combat .battle-member .meter {
    height: 5px;
    margin: 2px 0;
  }
  .mobile-combat .battle-member .ai-badge,
  .mobile-combat .battle-member .target-warning {
    display: none;
  }
  .mobile-combat .battle-caption-space {
    height: 36px;
    margin-top: 2px;
  }
  .mobile-combat .counter-plan,
  .mobile-combat .counter-failed-note {
    padding: 3px;
    font-size: 10px;
  }
  .mobile-combat .counter-plan span {
    display: none;
  }
  .mobile-combat .battlefield .skip-battle-scene {
    position: absolute;
    right: 8px;
    top: 3px;
    z-index: 30;
    padding: 4px 8px;
  }
  .mobile-combat .combat-action {
    padding: 12px;
    min-width: 0;
    scroll-margin-top: 330px;
  }
  .mobile-combat .mobile-mechanic {
    display: block;
    margin: 8px 0;
    font-size: 12px;
  }
  .mobile-combat .combat-action input {
    font-size: 16px;
  }
  .mobile-combat .round-clock {
    height: 40px;
    min-width: 44px;
  }
  .mobile-combat .round-clock strong {
    font-size: 20px;
  }
  .mobile-combat .combat-action h2 {
    font-size: 18px;
  }
}
@media (min-width: 701px) and (max-width: 1366px) and (min-height: 600px) {
  .mobile-combat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }
  .mobile-combat .battlefield {
    top: 12px;
  }
  .mobile-combat .battle-backdrop,
  .mobile-combat .boss-art {
    height: 160px;
  }
  .mobile-combat .boss-art > .raster-sprite {
    width: 160px;
    height: 160px;
  }
  .mobile-combat .member-art {
    height: 80px;
  }
}
@media (max-width: 700px) {
  .mobile-combat {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 260px minmax(0, 1fr);
    height: calc(100dvh - 82px);
    min-height: 430px;
    gap: 8px;
  }
  .mobile-combat .battlefield {
    position: relative;
    top: auto;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  .mobile-combat .combat-action {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    box-sizing: border-box;
    scroll-padding: 12px;
  }
  .mobile-combat .boss-panel {
    height: 42px;
  }
  .mobile-combat .hp-caption {
    margin: 0;
  }
  .mobile-combat .monster-intent {
    line-height: 16px;
    height: 18px;
    box-sizing: content-box;
  }
  .mobile-combat .battle-caption-space {
    height: 18px;
    margin: 0;
  }
  .mobile-combat .battle-backdrop,
  .mobile-combat .boss-art {
    height: 62px;
    margin-top: 0;
  }
  .mobile-combat .battle-members {
    height: 85px;
  }
  .mobile-combat .battle-member {
    height: 82px;
    box-sizing: border-box;
  }
  .mobile-combat .member-art {
    height: 40px;
  }
  .mobile-combat .battle-member b {
    margin: 2px 0;
  }
  .mobile-combat .battle-member small {
    font-size: 8px;
    line-height: 10px;
  }
  .mobile-combat .forest-blessing {
    display: none;
  }
  .mobile-combat .live-spell-label {
    position: absolute;
    top: 66px;
    left: 10px;
    right: 10px;
    margin: 0;
    font-size: 10px;
    line-height: 16px;
    z-index: 12;
  }
}
@media (max-height: 500px) and (max-width: 1366px) {
  .mobile-combat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-rows: minmax(0, 1fr);
    height: calc(100dvh - 50px);
    min-height: 240px;
  }
  .mobile-combat .battlefield {
    height: 100%;
    position: relative;
    top: 0;
  }
  .mobile-combat .combat-action {
    height: 100%;
    overflow-y: auto;
  }
  .mobile-combat .forest-blessing {
    display: none;
  }
}
/* Pin the complete battle shell: focusing an answer must never scroll the arena away. */
@media (max-width: 1366px) {
  body.combat-open {
    overflow: hidden;
  }
  .mobile-combat {
    position: fixed;
    top: 58px;
    left: 12px;
    right: 12px;
    z-index: 30;
    height: var(--combat-height, calc(100dvh - 134px));
    min-height: 0;
    margin: 0;
    background: #edf0df;
  }
  .mobile-combat .battlefield {
    position: relative;
    top: 0;
    margin: 0;
  }
  .mobile-combat .combat-action {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    height: 100%;
    box-sizing: border-box;
  }
}
@media (min-width: 701px) and (max-width: 1366px) {
  .mobile-combat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
}
@media (max-width: 700px) {
  .mobile-combat {
    grid-template-rows: 260px minmax(0, 1fr);
  }
}
@media (max-width: 1366px) {
  .mobile-combat.compact-height {
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
  .mobile-combat.compact-height .battlefield {
    padding: 4px;
    height: 100%;
  }
  .mobile-combat.compact-height .boss-panel h2 {
    font-size: 12px;
  }
  .mobile-combat.compact-height .battle-backdrop,
  .mobile-combat.compact-height .boss-art {
    height: 45px;
  }
  .mobile-combat.compact-height .member-art {
    height: 35px;
  }
  .mobile-combat.compact-height .battle-members {
    height: 75px;
    margin: 0;
  }
  .mobile-combat.compact-height .battle-member {
    height: 72px;
  }
  .mobile-combat.compact-height .battle-caption-space {
    height: 10px;
  }
  .mobile-combat.compact-height .forest-blessing {
    display: none;
  }
}
/* V0.3.1: battle actions are a bounded console. Only optional details scroll. */
.combat-console {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  position: relative;
  height: min(760px, calc(100dvh - 150px));
  overflow: visible;
}
.combat-console-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.combat-console-header > div:first-child {
  flex: 1;
  min-width: 0;
}
.combat-console-header h2 {
  margin: 2px 0;
  font-size: 19px;
}
.combat-console-header .focus-dots {
  padding: 0;
  margin: 0;
  gap: 4px;
}
.combat-console-header .focus-dots i {
  width: 8px;
  height: 8px;
}
.combat-console-header .round-clock {
  height: 42px;
  min-width: 48px;
}
.combat-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.combat-workspace .selected-skill {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  min-height: 44px;
}
.combat-workspace .selected-skill .spell-medallion {
  width: 38px;
  height: 38px;
}
.combat-workspace .selected-skill small {
  font-size: 11px;
}
.combat-target:empty {
  display: none;
}
.combat-target {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.combat-target select {
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 4px 8px;
}
.combat-target .hint {
  font-size: 11px;
  padding: 6px;
  margin: 0;
}
#battleQuestionForm {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lq-battle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.lq-battle .lq-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 3px;
}
.lq-battle .lq-prompt {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.lq-battle .lq-expression {
  font-size: 19px;
  line-height: 1.6;
  padding: 12px;
  margin: 0 0 12px;
  white-space: pre-line;
}
.lq-battle .lq-options {
  gap: 8px;
}
.lq-battle .lq-option {
  padding: 10px 12px;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.5;
}
.lq-battle .lq-option span {
  overflow-wrap: anywhere;
}
.lq-battle .lq-matches,
.lq-battle .lq-sentence {
  gap: 10px;
}
.lq-battle .lq-match-row,
.lq-battle .lq-slot {
  font-size: 14px;
}
.lq-battle [hidden] {
  display: none !important;
}
.lq-battle select {
  font-size: 15px;
  min-height: 42px;
}
.lq-battle .lq-answer-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
  border-top: 1px solid #dfe9d5;
  background: #fffef6;
}
.lq-answer-actions .lq-message {
  flex: 1;
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}
.lq-battle .lq-submit {
  flex: 0 0 auto;
  min-width: 150px;
  width: auto;
  margin: 0;
  padding: 12px 18px;
  font-size: 16px;
  min-height: 46px;
}
.lq-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}
.lq-pagination button {
  padding: 7px 12px;
  font-size: 12px;
  min-height: 36px;
}
.lq-pagination span {
  font-size: 11px;
  color: #688267;
}
.combat-console-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e3e8d5;
  flex: 0 0 auto;
  font-size: 11px;
  color: #73826b;
}
.combat-more > summary {
  cursor: pointer;
  padding: 7px 12px;
  border: 1px solid #d4e0c6;
  border-radius: 12px;
  color: #3e6550;
  font-weight: bold;
  list-style: none;
  white-space: nowrap;
}
.combat-more-panel {
  position: absolute;
  z-index: 60;
  left: 8px;
  right: 8px;
  bottom: 52px;
  padding: 20px;
  background: #fffef6;
  box-shadow: 0 16px 60px #16311f55;
  border: 1px solid #cedcbd;
  border-radius: 20px;
  max-height: 70%;
  overflow: auto;
  overscroll-behavior: contain;
}
.combat-more:not([open]) .combat-more-panel {
  display: none;
}
.combat-more-panel p {
  line-height: 1.7;
  font-size: 13px;
}
.combat-more-panel h3 {
  font-size: 17px;
}
.combat-actor-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.combat-console .compact-skill-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  margin: 0;
}
.combat-console .skill-picker-heading {
  flex: 0 0 auto;
  margin: 0;
}
.combat-console .combat-subject-tabs {
  margin: 0;
  flex: 0 0 auto;
}
.combat-console .combat-subject-tabs button {
  min-height: 38px;
}
.combat-console .combat-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  flex: 1;
  min-height: 0;
  overflow: hidden;
  gap: 8px;
  margin: 0;
}
.combat-console .combat-skill {
  min-width: 0;
  min-height: 0;
  padding: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
}
.combat-console .compact-skill-art {
  width: clamp(36px, 6vh, 58px);
  height: clamp(36px, 6vh, 58px);
  flex: 0 0 auto;
}
.combat-console .combat-skill b {
  font-size: 12px;
  line-height: 1.3;
  margin: 1px 0;
}
.combat-console .combat-skill small {
  font-size: 10px;
  line-height: 1.3;
}
.combat-console .combat-skill-strength {
  display: none;
}
.combat-console .combat-skill em {
  font-size: 10px;
  padding: 2px 5px;
  margin: 0;
}
.combat-skill-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 11px;
}
.combat-skill-pager button {
  padding: 7px 10px;
  min-height: 34px;
}
.combat-console .skill-picker-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
}
.combat-console .set-subject-inline {
  margin: 0;
  font-size: 11px;
}
@media (max-width: 1366px) {
  .mobile-combat .combat-action.combat-console {
    display: flex;
    overflow: visible;
    padding: 12px;
    height: 100%;
    min-height: 0;
  }
  .mobile-combat .combat-workspace {
    min-height: 0;
  }
  .mobile-combat .combat-console .round-clock strong {
    font-size: 21px;
  }
}
@media (max-width: 700px) {
  .mobile-combat {
    grid-template-rows: 205px minmax(0, 1fr);
  }
  .mobile-combat .battlefield {
    padding: 6px;
  }
  .mobile-combat .boss-panel {
    height: 38px;
  }
  .mobile-combat .battle-backdrop,
  .mobile-combat .boss-art {
    height: 43px;
  }
  .mobile-combat .battle-members {
    height: 63px;
  }
  .mobile-combat .battle-member {
    height: 62px;
    padding: 2px;
  }
  .mobile-combat .member-art {
    height: 26px;
  }
  .mobile-combat .battle-member small {
    font-size: 7px;
    line-height: 8px;
  }
  .mobile-combat .battle-caption-space {
    height: 12px;
  }
  .mobile-combat .combat-action.combat-console {
    padding: 9px;
    gap: 5px;
  }
  .combat-console-header h2 {
    font-size: 16px;
  }
  .combat-console-header .eyebrow {
    font-size: 9px;
  }
  .combat-console-header .round-clock {
    height: 32px;
  }
  .combat-console .compact-skill-art {
    width: 32px;
    height: 32px;
  }
  .combat-console .combat-skill-grid {
    gap: 5px;
  }
  .combat-console .combat-skill {
    padding: 4px;
    gap: 1px;
  }
  .combat-console .combat-skill b {
    font-size: 10px;
  }
  .combat-console .skill-picker-note {
    display: none;
  }
  .combat-console-dock {
    padding-top: 4px;
  }
  .lq-battle .lq-prompt {
    font-size: 13px;
    margin-bottom: 7px;
  }
  .lq-battle .lq-expression {
    font-size: 16px;
    padding: 9px;
    margin-bottom: 8px;
  }
  .lq-battle .lq-option {
    padding: 8px;
    font-size: 13px;
    min-height: 40px;
  }
  .lq-battle .lq-submit {
    min-height: 42px;
    font-size: 14px;
    min-width: 130px;
    padding: 9px 14px;
  }
  .combat-workspace .selected-skill {
    padding: 3px 6px;
    min-height: 32px;
  }
  .combat-workspace .selected-skill .spell-medallion {
    height: 28px;
    width: 28px;
  }
  .combat-target select {
    height: 32px;
  }
  .lq-answer-actions .lq-message {
    font-size: 10px;
  }
  .lq-battle .lq-match-row {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  }
}
.lq-scene {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 12px;
}
.lq-scene-card {
  border: 2px solid #cee0bd;
  border-radius: 14px;
  padding: 6px;
  display: grid;
  justify-items: center;
  gap: 2px;
  background: #fff;
}
.lq-scene-card b {
  font-size: 10px;
}
.lq-scene-card span {
  font-size: 30px;
  line-height: 34px;
  border-radius: 12px;
  padding: 3px;
  display: grid;
  place-items: center;
  min-width: 42px;
}
.lq-scene-card small {
  font-size: 10px;
}
.scene-red span {
  background: #ffb0b4;
  outline: 2px solid #e75c69;
}
.scene-blue span {
  background: #aecff8;
  outline: 2px solid #4384d3;
}
.scene-green span {
  background: #b5e6aa;
  outline: 2px solid #559e48;
}
.scene-yellow span {
  background: #ffeb91;
  outline: 2px solid #c5a231;
}
.lq-word-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 300px;
  margin: 8px auto 12px;
}
.lq-word-grid span {
  border: 1px solid #ccddba;
  background: #eef4e4;
  border-radius: 8px;
  padding: 5px;
  text-align: center;
  font-size: 12px;
}
.lq-word-grid .start {
  background: #ffe9a8;
  border-color: #bb9a36;
  font-weight: bold;
}
.lq-battle .lq-scene-card span {
  font-size: 26px;
  line-height: 30px;
}
.lq-battle .lq-word-grid span {
  padding: 4px;
  font-size: 11px;
}
.lq-scene-hint {
  font-size: 10px;
  color: #61765c;
  margin: 6px 0;
}
.lq-scene-card.scene-red {
  background: #ffe4e5;
  border-color: #de6671;
}
.lq-scene-card.scene-blue {
  background: #e0edff;
  border-color: #6598d9;
}
.lq-scene-card.scene-green {
  background: #e4f5da;
  border-color: #71a75f;
}
.lq-scene-card.scene-yellow {
  background: #fff4c0;
  border-color: #c8ab45;
}

@media (max-width: 700px) and (max-height: 540px) {
  .mobile-combat.compact-height {
    grid-template-rows: minmax(0, 1fr);
  }
}
/* These semantic elements are console controls, so reset global site chrome spacing. */
.combat-console-header {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.combat-console-dock {
  margin: 0;
  padding: 6px 0 0;
  max-width: none;
  width: 100%;
  background: transparent;
}
.lq-battle .lq-answer-actions {
  margin: 0;
}
.lq-battle .lq-match-row,
.lq-battle .lq-slot {
  margin: 0;
  padding: 6px 8px;
}
@media (max-width: 700px) {
  .combat-console-header .eyebrow {
    line-height: 12px;
  }
  .combat-console-header h2 {
    line-height: 20px;
    margin: 0;
  }
  .combat-console-header .round-clock {
    min-height: 32px;
  }
  .combat-console .combat-target select {
    height: 36px;
    min-height: 36px;
    font-size: 12px;
  }
  .lq-battle .lq-match-row,
  .lq-battle .lq-slot {
    padding: 4px 6px;
    font-size: 13px;
  }
  .lq-battle select {
    min-height: 36px;
    height: 36px;
    padding: 4px 6px;
    font-size: 13px;
  }
  .lq-battle .lq-expression {
    padding: 6px;
    font-size: 14px;
  }
}

/* Homework input is sized for fingers and a visible on-screen keyboard. */
.lq-workout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.lq-workout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lq-workout-field > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: clamp(13px, 1.4vw, 16px);
}
.lq-workout-field small {
  font-size: 11px;
  color: #607a66;
}
.lq-workout-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1.5px solid #b2c5aa;
  border-radius: 12px;
  background: #fffef8;
  padding: 9px 11px;
  font: inherit;
  color: #244c40;
}
.lq-workout-field:focus-within input {
  outline: 3px solid #e3bc63;
  outline-offset: 1px;
}
.lq-area-diagram,
.lq-relation-diagram {
  width: min(100%, 350px);
  max-height: 150px;
  margin: 8px auto;
  display: block;
}
.lq-relation-diagram {
  max-height: 90px;
}
.lq-area-diagram text,
.lq-relation-diagram text {
  font: 13px sans-serif;
  fill: #436a5c;
}
.lq-workout .lq-workout-field:only-child {
  grid-column: 1/-1;
}
.lq-battle .lq-workout-field input {
  min-height: 42px;
}
@media (max-width: 600px) {
  .lq-workout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lq-battle .lq-workout:has(input[inputmode='decimal']) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lq-battle .lq-workout-field:has(input:not([inputmode='decimal'])) {
    grid-column: 1 / -1;
  }
  .lq-battle .lq-area-diagram {
    max-height: 56px;
  }
  .lq-workout-field > span {
    font-size: 13px;
  }
}
/* Profession trees: fork, paired prerequisites, merge, then a capstone choice. */
.profession-build {
  --path-ink: #ecf2d5;
  --path-line: #547f76;
  background: #173e38;
  color: var(--path-ink);
  border-radius: 20px;
  padding: 16px;
  isolation: isolate;
}
.path-intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 12px;
}
.path-intro span {
  font-size: 11px;
  color: #b2c9bb;
}
.path-mobile-tabs {
  display: none;
}
.talent-tree.profession-tree {
  display: block;
  position: relative;
  background: none;
  padding: 0;
  min-width: 0;
  overflow: visible;
  gap: 0;
  border: 0;
}
.profession-tree .talent-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.profession-tree .talent-edges path {
  fill: none;
  stroke: #527a6a;
  stroke-width: 2.5;
  stroke-dasharray: 4 4;
  opacity: 0.85;
}
.profession-tree .talent-edges path.learned {
  stroke: #e6c56d;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 3px #e2c57055);
}
.profession-tree .talent-edges text {
  fill: #dfd9ae;
  font-size: 10px;
  paint-order: stroke;
  stroke: #173e38;
  stroke-width: 5px;
  stroke-linejoin: round;
}
.path-root {
  display: flex;
  justify-content: center;
  padding-bottom: 14px;
  position: relative;
  z-index: 2;
}
.profession-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.profession-route {
  min-width: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #254b43b8, #1c443d55);
  border: 1px solid #59766555;
  padding: 12px 8px;
  position: relative;
}
.profession-route header {
  min-height: 114px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: #23483f;
  border-radius: 12px;
  padding: 9px;
}
.profession-route header small {
  font-size: 10px;
  color: #b4cab9;
}
.profession-route h3 {
  margin: 3px 0 5px;
  font-size: 20px;
  color: #f1d98e;
}
.profession-route header b {
  font-size: 11px;
  color: #d4e3cd;
}
.profession-route header p {
  font-size: 11px;
  line-height: 1.5;
  margin: 7px 0 0;
  color: #bacdbb;
}
.path-stages {
  display: grid;
  gap: 31px;
  padding-top: 26px;
}
.path-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 112px;
}
.path-stage.depth-5 {
  padding-top: 5px;
}
.path-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 106px;
  max-width: 150px;
  min-width: 0;
  width: 100%;
  background: #1a413b;
  border: 0;
  box-shadow: none;
  padding: 5px 6px;
  color: #d4dfc5;
  border-radius: 14px;
  touch-action: manipulation;
}
.path-node:hover {
  transform: none;
  background: #294f43;
}
.path-node:focus-visible {
  outline: 3px solid #f2cc6f;
  outline-offset: 3px;
}
.path-node-art {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #567c6c;
  position: relative;
  background: #15372f;
  padding: 3px;
}
.path-node-art img,
.path-node-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.path-node.passive .path-node-art {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  transform: rotate(7deg);
}
.path-node.passive .path-node-art img {
  border-radius: 10px;
  transform: rotate(-7deg);
}
.path-node-art em {
  position: absolute;
  right: -9px;
  bottom: -4px;
  background: #254b3e;
  border: 1px solid #a59f60;
  color: #ffebac;
  font-style: normal;
  border-radius: 7px;
  padding: 2px 4px;
  font-size: 10px;
}
.path-node b {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}
.path-node small {
  font-size: 10px;
  color: #b3c3a9;
}
.path-node.available .path-node-art {
  border-color: #dfbf61;
  box-shadow:
    0 0 0 3px #eac45620,
    0 0 17px #e9c35d29;
}
.path-node.learned .path-node-art {
  border-color: #e0ca78;
}
.path-node:not(.learned):not(.available) .path-node-art {
  filter: saturate(0.4);
  opacity: 0.72;
}
.path-node.capstone .path-node-art {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  border-color: #a58dc0;
}
.path-node.capstone b {
  color: #e3d2ff;
}
.path-rank-pips {
  display: flex;
  gap: 3px;
}
.path-rank-pips i {
  width: 5px;
  height: 5px;
  border: 1px solid #8a9c74;
  border-radius: 50%;
}
.path-rank-pips .lit {
  background: #f0d27a;
  border-color: #e6c36a;
}
.profession-route footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 13px;
  font-size: 10px;
  color: #acc8b7;
}
.profession-route footer span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.profession-route footer em {
  font-style: normal;
  font-size: 9px;
  color: #ead692;
}
.hybrid-paths {
  margin-top: 18px;
  border-top: 1px solid #527467;
  padding-top: 12px;
}
.hybrid-paths summary {
  color: #dece97;
  font-size: 13px;
  cursor: pointer;
}
.hybrid-paths > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 12px;
}
.hybrid-paths article {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 5px;
}
.hybrid-paths p,
.hybrid-paths small {
  font-size: 11px;
  line-height: 1.5;
  color: #bbceba;
  margin: 0;
}
.profession-build .talent-footer {
  margin-top: 14px;
  border-top: 1px solid #527467;
  padding-top: 12px;
  color: #bccdb6;
}
.profession-build .talent-footer p {
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .profession-build {
    padding: 12px 8px;
  }
  .path-mobile-tabs {
    display: flex;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #173e38;
    padding: 8px 0;
  }
  .path-mobile-tabs button {
    flex: 1;
    min-height: 43px;
    font-size: 13px;
  }
  .profession-routes {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .route-view-left .route-right,
  .route-view-right .route-left {
    display: none;
  }
  .profession-route header {
    min-height: 0;
  }
  .path-stages {
    gap: 29px;
  }
  .path-node {
    max-width: 150px;
  }
  .path-node b {
    font-size: 14px;
  }
  .path-node-art {
    width: 68px;
    height: 68px;
  }
  .path-node.passive .path-node-art {
    width: 55px;
    height: 55px;
  }
  .hybrid-paths > div {
    grid-template-columns: 1fr 1fr;
  }
  .profession-route footer {
    font-size: 11px;
  }
  .path-root {
    padding-bottom: 12px;
  }
}
.talent-panel .path-node,
.talent-panel .path-node:hover {
  background: #1a413b !important;
  background-image: none !important;
  border: 0;
  color: #e7edd0;
  box-shadow: none;
  transform: none;
}
.talent-panel .path-node.available {
  background: #244d3f !important;
}
.tree-mode.hero-build {
  grid-template-columns: 1fr;
}
.tree-mode .hero-summary {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 10px 16px;
  min-height: 0;
}
.tree-mode .hero-summary .paperdoll {
  width: 52px;
  height: 52px;
  min-height: 0;
  margin: 0;
  flex: 0 0 52px;
  overflow: hidden;
}
.tree-mode .hero-summary .hero-portrait {
  width: 52px;
  height: 52px;
  min-height: 0;
}
.tree-mode .hero-summary .paperdoll-aura {
  display: none;
}
.tree-mode .hero-summary h2 {
  margin: 0;
  font-size: 18px;
}
.tree-mode .hero-summary > .tiny,
.tree-mode .hero-summary > .resistance-summary {
  display: none;
}
.tree-mode .hero-summary .xp-wrap {
  min-width: 110px;
  max-width: 200px;
}
.tree-mode .hero-summary details {
  margin: 0;
  border: 0;
}
.tree-mode .hero-summary details[open] {
  flex-basis: 100%;
}
.tree-mode .talent-panel {
  padding: 16px;
}
.tree-mode .talent-panel > .row h2 {
  font-size: 17px;
  margin: 3px 0;
}
.tree-mode .talent-panel > .row .eyebrow {
  display: none;
}
.tree-mode .talent-subject-tabs {
  margin: 10px 0;
}
.tree-mode .profession-build {
  padding: 10px;
}
.tree-mode .path-stages {
  gap: 24px;
}
.tree-mode .path-stage {
  min-height: 90px;
}
.tree-mode .path-node {
  min-height: 86px;
  gap: 3px;
  padding: 3px 4px;
}
.tree-mode .path-node-art {
  width: 46px;
  height: 46px;
}
.tree-mode .path-node.passive .path-node-art {
  width: 38px;
  height: 38px;
}
.tree-mode .path-node.capstone .path-node-art {
  width: 54px;
  height: 54px;
}
.tree-mode .path-root {
  padding-bottom: 8px;
}
.tree-mode .profession-route header {
  min-height: 96px;
}
@media (max-width: 720px) {
  .tree-mode .hero-summary {
    gap: 7px 12px;
    padding: 8px 10px;
  }
  .tree-mode .hero-summary .paperdoll {
    display: none;
  }
  .tree-mode .hero-summary h2 {
    font-size: 16px;
  }
  .tree-mode .hero-summary > .xp-wrap {
    display: none;
  }
  .tree-mode .hero-summary details {
    font-size: 12px;
  }
  .tree-mode .talent-panel {
    padding: 11px;
  }
  .tree-mode .profession-build {
    padding: 8px 5px;
  }
  .tree-mode .path-node {
    min-height: 91px;
  }
  .tree-mode .path-node-art {
    width: 52px;
    height: 52px;
  }
  .tree-mode .path-node.passive .path-node-art {
    width: 43px;
    height: 43px;
  }
  .tree-mode .profession-route header {
    min-height: 0;
  }
  .tree-mode .profession-route header p {
    font-size: 12px;
  }
}
body[data-route='hero'] main {
  padding-top: 12px;
}
body[data-route='hero'] main > .heading {
  margin-bottom: 10px;
}
body[data-route='hero'] main > .heading .eyebrow {
  display: none;
}
body[data-route='hero'] main > .heading h1 {
  font-size: 23px;
  margin: 0;
}
.tree-mode .hero-summary {
  padding: 6px 12px;
  gap: 8px 16px;
}
.tree-mode .hero-summary .paperdoll,
.tree-mode .hero-summary .hero-portrait {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}
.tree-mode .build-workspace {
  gap: 8px;
}
.tree-mode .build-tabs {
  margin: 0 0 8px;
}
.tree-mode .talent-panel > .row {
  display: none;
}
.tree-mode .path-intro {
  margin: 0 0 7px;
}
.tree-mode .path-intro > b {
  display: none;
}
.tree-mode .path-intro span {
  font-size: 11px;
}
.tree-mode .path-root .path-node {
  min-height: 0;
  height: 77px;
  padding: 2px 4px;
  gap: 3px;
}
.tree-mode .path-root .path-node small,
.tree-mode .path-root .path-rank-pips {
  display: none;
}
.tree-mode .profession-route header {
  min-height: 58px;
  padding: 8px;
}
.tree-mode .profession-route header p {
  display: none;
}
.tree-mode .profession-route h3 {
  font-size: 19px;
}
@media (max-width: 720px) {
  body[data-route='hero'] main > .heading h1 {
    font-size: 20px;
  }
  .tree-mode .hero-summary {
    padding: 6px 10px;
  }
  .tree-mode .hero-summary h2 {
    font-size: 14px;
  }
  .tree-mode .path-mobile-tabs {
    padding: 4px 0;
    margin-bottom: 6px;
  }
  .tree-mode .profession-route header {
    min-height: 52px;
  }
  .tree-mode .talent-subject-tabs {
    margin: 6px 0;
  }
  .tree-mode .talent-panel {
    padding: 8px;
  }
}
.path-node-art {
  box-sizing: border-box;
  flex-shrink: 0;
}
.path-node-art > .painted-icon {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: inherit;
  box-shadow: none;
}
.path-node b {
  display: block;
  position: relative;
  line-height: 1.3;
}
body[data-mode='play'][data-route='hero'] #main > .heading {
  margin: 0 0 8px;
}
body[data-mode='play'][data-route='hero'] #main {
  padding-top: 12px;
}
.hero-build.tree-mode {
  gap: 8px;
}
.hero-build.tree-mode > .hero-summary {
  padding: 6px 12px;
}
.hero-build.tree-mode .talent-panel {
  padding: 10px;
}
.tree-mode .profession-route header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  height: 58px;
  min-height: 0;
  padding: 7px;
}
.tree-mode .profession-route header > small {
  display: none;
}
.tree-mode .profession-route header > h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}
.tree-mode .profession-route header > b {
  line-height: 1.3;
  font-size: 11px;
}
.tree-mode .path-node small {
  line-height: 1.2;
}
.tree-mode .path-rank-pips {
  display: none;
}
.tree-mode .path-node {
  min-height: 78px;
  gap: 3px;
}
.tree-mode .path-stage {
  min-height: 78px;
}
.tree-mode .path-intro {
  gap: 0;
  margin: 0 0 5px;
  line-height: 1.2;
}
.tree-mode .path-stages {
  gap: 23px;
  padding-top: 20px;
}

.lq-field-options {
  grid-column: 1/-1;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid #c9d5ba;
  border-radius: 12px;
}
.lq-field-options legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 800;
}
.lq-field-options .lq-option {
  min-height: 44px;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}
.lq-field-options .lq-option input {
  width: auto;
  min-height: 0;
  flex: 0 0 auto;
}
