.experience-dialog {
  color: #f0e6d4;
  background: linear-gradient(135deg, #171828, #090e19);
  border: 1px solid #8d744c;
  border-radius: 18px;
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  box-shadow: 0 28px 100px #000b;
  overflow: auto;
  color-scheme: dark;
}
.experience-dialog::backdrop {
  background: #030610db;
  backdrop-filter: blur(6px);
}
.experience-dialog * {
  box-sizing: border-box;
}
.experience-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid #ad956134;
  background: #111625;
}
.experience-heading small,
.experience-hero small,
.experience-event-map > small {
  color: #d8bb7e;
  letter-spacing: 0.13em;
  font-size: 11px;
}
.experience-heading h2 {
  font-size: clamp(21px, 4vw, 30px);
  margin: 5px 0 0;
}
.experience-dialog .button {
  min-height: 44px;
  white-space: normal;
  line-height: 1.35;
  font-size: 12px;
  padding: 10px 16px;
}
.experience-dialog .button:focus-visible,
.experience-dialog summary:focus-visible,
.experience-entry button:focus-visible,
.experience-guide-link:focus-visible {
  outline: 2px solid #e8ca8b;
  outline-offset: 3px;
}
.experience-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 26px;
  background: #090f1d;
}
.experience-tabs [aria-current="page"] {
  border-color: #ddb571;
  color: #ffe4ad;
  background: #34291e;
}
.experience-body {
  padding: 0 26px 26px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
.experience-body h3 {
  font-size: clamp(19px, 3vw, 25px);
  line-height: 1.3;
  color: #f2dfb8;
  margin: 0 0 12px;
}
.experience-body h4 {
  font-size: 16px;
  margin: 8px 0;
  color: #efddb8;
}
.experience-body h4 small {
  display: block;
  font-size: 12px;
  color: #b4baca;
  font-weight: 400;
}
.experience-body p {
  margin: 10px 0;
  color: #c2c7d4;
}
.experience-body a,
.experience-entry a {
  color: #efcd8a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.experience-error {
  color: #ffb1a4;
  min-height: 0;
  margin: 0;
  padding: 0 26px;
  line-height: 1.6;
}
.experience-error:not(:empty) {
  padding-top: 12px;
  padding-bottom: 12px;
}
.experience-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: center;
  padding: 24px 0;
}
.experience-hero > img {
  width: 180px;
  height: 230px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 100px 100px 12px 12px;
  box-shadow: 0 0 40px #d4ab521a;
  border: 1px solid #b59a625c;
}
.experience-body progress {
  display: block;
  width: 100%;
  height: 10px;
  margin: 14px 0;
  accent-color: #d9b476;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #293042;
}
.experience-body progress::-webkit-progress-bar {
  background: #293042;
}
.experience-body progress::-webkit-progress-value {
  background: linear-gradient(90deg, #8f754a, #efd397);
}
.experience-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.experience-steps li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #172131;
  border: 1px solid #9b835533;
  border-radius: 12px;
}
.experience-steps li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #b69a67;
  border-radius: 50%;
  color: #edcd91;
}
.experience-steps h3 {
  font-size: 17px;
  margin: 0;
}
.experience-steps p {
  font-size: 13px;
  margin: 8px 0 0;
}
.experience-steps li.complete {
  border-color: #73bc9b66;
}
.experience-steps li.complete > span {
  color: #a1e7bd;
  border-color: #73bc9b;
}
.experience-card {
  padding: 22px;
  margin: 18px 0;
  border: 1px solid #a58b533d;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c2334, #121927);
}
.experience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.experience-body .experience-muted {
  font-size: 12px;
  color: #aeb5c6;
}
.experience-route {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 24px 0;
  isolation: isolate;
}
.experience-route > span {
  flex: 1;
  position: relative;
  text-align: center;
  font-size: 12px;
  color: #b0b7c8;
  padding: 0 7px;
  min-width: 0;
}
.experience-route > span:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 2px;
  background: #42516b;
  z-index: -1;
}
.experience-route > span:first-child:before {
  left: 50%;
}
.experience-route > span:last-child:before {
  right: 50%;
}
.experience-route i {
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111a2b;
  border: 1px solid #66738b;
  font-style: normal;
  font-size: 15px;
}
.experience-route .current i {
  border-color: #edc57c;
  box-shadow: 0 0 24px #d8a85744;
  animation: experience-pulse 2.8s ease-in-out infinite;
}
.experience-route .complete i {
  color: #a2efbf;
  border-color: #80b395;
  background: #17392e;
}
.experience-route small {
  display: block;
}
.guest-battle {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: 10px;
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse at center, #3b293244, #111725);
  border-radius: 14px;
  padding: 15px;
}
.guest-battle article {
  min-width: 0;
}
.guest-battle img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px #0007);
}
.guest-battle h3 {
  font-size: 18px;
  margin: 8px 0;
}
.guest-battle p {
  font-size: 12px;
}
.guest-versus {
  color: #d6b87e;
  letter-spacing: 0.08em;
}
.guest-battle.won article:last-child img {
  opacity: 0.35;
  filter: grayscale(1);
  transform: translateY(8px);
  transition: all 0.5s;
}
.experience-body .guest-tell {
  color: #f1cf8a;
}
.guest-finish {
  text-align: center;
  padding: 40px 20px;
}
.experience-body form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}
.experience-body form label {
  flex: 1 1 180px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #d2c5aa;
}
.experience-body input:not([type="checkbox"]),
.experience-body select {
  width: 100%;
  min-width: 0;
  background: #080e1b;
  border: 1px solid #64718a;
  border-radius: 6px;
  padding: 11px;
  color: #f3eee4;
  min-height: 44px;
  font: inherit;
}
.experience-body input:focus,
.experience-body select:focus {
  outline: 2px solid #d6ba7c;
  outline-offset: 2px;
}
.experience-friends > article,
.experience-group {
  border-top: 1px solid #8f9cbb33;
  padding: 16px 0;
}
.experience-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.experience-dialog summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  color: #e0c389;
  margin-top: 12px;
}
.experience-chat {
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  list-style: none;
  background: #090f1b;
  border-radius: 8px;
  overscroll-behavior: contain;
}
.experience-chat li {
  padding: 9px 5px;
  border-bottom: 1px solid #3d47613d;
  overflow-wrap: anywhere;
}
.experience-chat b {
  color: #dcc38b;
  display: block;
  font-size: 12px;
}
.experience-chat span {
  white-space: pre-wrap;
}
.experience-chat time {
  display: block;
  color: #929eaf;
  font-size: 10px;
}
.experience-event-map {
  margin-top: 20px;
  padding: 30px 22px;
  background:
    radial-gradient(ellipse at 25% 20%, #55528e55, transparent 60%),
    linear-gradient(130deg, #172038, #17141f);
  border: 1px solid #8f79bb77;
  border-radius: 14px;
}
.experience-event-map h3 {
  margin-top: 12px;
}
.experience-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #f3ddb1;
}
.experience-check input {
  width: 22px;
  height: 22px;
  accent-color: #dbbd7e;
}
.experience-entry {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  grid-column: 1/-1;
  width: 100%;
  padding: 14px 0 2px;
  border-top: 1px solid #baa26b33;
}
.experience-entry .button {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto;
  min-height: 36px;
  font:
    600 11px/1.3 Manrope,
    system-ui,
    sans-serif !important;
  letter-spacing: 0 !important;
  padding: 8px 12px !important;
  background: #101726e8;
}
.experience-entry a {
  font-size: 11px;
}
.auth-data-notice {
  display: none;
  grid-column: 1/-1;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #baa26b33;
  font-size: 11px;
}
.auth-card.signup[data-register-step="2"] > .auth-data-notice {
  display: block;
}
.auth-data-notice > label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  line-height: 1.5;
}
.auth-card.signup .auth-data-notice input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  accent-color: #d8b778;
}
.auth-data-notice .auth-switch {
  margin-top: 5px;
  min-height: 36px;
  text-align: left;
}
.auth-card.landing > .experience-entry {
  display: flex !important;
  position: absolute;
  z-index: 15;
  top: 22px;
  left: 24px;
  width: auto;
  max-width: calc(50% - 170px);
  padding: 0;
  border: 0;
  justify-content: flex-start;
}
.auth-card.landing > .experience-entry [data-experience="story"] {
  display: none;
}
.auth-card:not(.landing) .experience-entry [data-experience="guest"],
.auth-card:not(.landing) .experience-entry [data-experience="story"] {
  display: none;
}
.experience-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none;
}
.experience-account-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.experience-account-tools .button {
  flex: 1 1 150px;
  min-height: 44px;
  white-space: normal;
}
.experience-guide-link {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e7cc91;
  border: 1px solid #baa16877;
  background: #172031;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.experience-guide-link.has-new-guide {
  box-shadow: 0 0 16px #dbac5233;
  border-color: #dfbc72;
}
html[data-experience-quality="low"] .auth-class-art-video {
  display: none !important;
}
html[data-experience-quality="low"] .landing-character-video {
  display: none !important;
}
html[data-experience-quality="low"] .landing-character-poster {
  opacity: 1 !important;
}
html[data-experience-quality="low"] .auth-class-showcase *,
html[data-experience-quality="low"] .experience-route *,
html[data-experience-quality="low"] .mission-scene *,
html[data-experience-quality="low"] .loot-rays {
  animation: none !important;
  transition: none !important;
}
@keyframes experience-pulse {
  50% {
    box-shadow: 0 0 28px #d8a85777;
  }
}
@media (max-width: 600px) {
  .experience-dialog {
    max-height: calc(100dvh - 16px);
    width: calc(100vw - 16px);
    border-radius: 12px;
  }
  .experience-heading {
    padding: 16px;
  }
  .experience-tabs {
    padding: 12px;
    gap: 6px;
  }
  .experience-tabs .button {
    padding: 8px 11px;
    font-size: 11px;
  }
  .experience-body {
    padding: 0 16px 20px;
  }
  .experience-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .experience-hero > img {
    height: 150px;
    width: 130px;
    margin: auto;
  }
  .experience-card {
    padding: 16px;
  }
  .experience-steps li {
    grid-template-columns: 30px 1fr;
    padding: 14px;
    gap: 12px;
  }
  .experience-steps li > .button {
    grid-column: 2;
    justify-self: start;
  }
  .guest-battle {
    grid-template-columns: 1fr 25px 1fr;
    padding: 10px;
    gap: 5px;
  }
  .guest-battle img {
    height: 155px;
  }
  .guest-battle h3 {
    font-size: 15px;
  }
  .reward-route {
    flex-wrap: wrap;
    gap: 18px 0;
  }
  .reward-route > span {
    flex: 0 0 33.33%;
  }
  .experience-guide-link {
    font-size: 10px;
    padding: 5px 7px;
  }
  .experience-entry {
    gap: 5px 10px;
  }
  .experience-route > span {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .experience-dialog * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 900px) {
  .auth-card.landing > .experience-entry {
    top: 16px;
    left: auto;
    right: 12px;
    max-width: 160px;
    justify-content: flex-end;
    gap: 5px;
  }
  .auth-card.landing > .experience-entry .button {
    font-size: 10px !important;
    min-height: 34px;
    padding: 7px 10px !important;
  }
  .auth-card.landing > .experience-entry a {
    display: none;
  }
}
@media (max-width: 600px) {
  .landing-brand {
    left: 18px !important;
    right: auto !important;
    transform: none !important;
    width: 150px !important;
    text-align: left !important;
  }
  .landing-brand b {
    font-size: 22px !important;
    letter-spacing: 0.08em !important;
  }
  .landing-brand small {
    font-size: 5px !important;
    letter-spacing: 0.13em !important;
  }
  .landing-brand em {
    font-size: 5px !important;
  }
}
/* Living Chronicle: responsive encounter cards and an opt-in in-world guide. */
.chronicle-world {
  margin-bottom: 24px;
}
.chronicle-world header {
  padding: 16px 4px;
}
.chronicle-world > header {
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid #bd925e55;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #101827f5, #101827c9),
    url("./assets/boss-ash-king.webp") right 35% / cover;
}
.chronicle-world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.chronicle-world-grid .experience-card {
  margin: 0;
}
.chronicle-boss {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 18px 0;
}
.chronicle-boss img {
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}
.chronicle-boss > div {
  flex: 1;
  min-width: 0;
}
.chronicle-boss progress {
  display: block;
  width: 100%;
  margin: 12px 0;
  accent-color: #d98c55;
}
.chronicle-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}
.chronicle-roster li {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #121c2b;
  border: 1px solid #a3885144;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.chronicle-roster span,
.chronicle-relics small {
  color: #becbdc;
  font-size: 12px;
}
.chronicle-relics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chronicle-relics article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #bd925e77;
  border-radius: 10px;
  background: #1a1c2d;
}
.chronicle-relics small {
  display: block;
  margin-top: 5px;
}
.chronicle-coop {
  background: radial-gradient(ellipse at top, #352329, #101a29 75%);
}
.experience-chat li .button {
  justify-self: end;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}
#chronicleReport {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: #171d2d;
  border: 1px solid #d1ac70;
  border-radius: 12px;
}
#chronicleReport textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  box-sizing: border-box;
  background: #080e18;
  color: #f2e8d7;
  border: 1px solid #8991a3;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.chronicle-highlight {
  outline: 3px solid #f3cb83 !important;
  outline-offset: 4px;
  box-shadow: 0 0 24px #e2b35b66 !important;
}
.chronicle-coach {
  position: fixed;
  z-index: 190;
  bottom: 86px;
  right: 18px;
  width: min(350px, calc(100vw - 36px));
  box-sizing: border-box;
  padding: 18px;
  background: #101b2af5;
  color: #e8e2d7;
  border: 1px solid #d1ac70;
  border-radius: 12px;
  box-shadow: 0 12px 45px #0009;
  font: 13px/1.6 system-ui;
}
.chronicle-coach[hidden] {
  display: none;
}
.chronicle-coach small {
  color: #f3cb83;
}
.chronicle-coach > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chronicle-coach .button {
  padding: 8px 10px;
  min-height: 38px;
  font-size: 12px;
}
@media (max-width: 600px) {
  .experience-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 14px;
  }
  .experience-tabs .button {
    min-width: 0;
    min-height: 40px;
    padding: 8px 4px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    white-space: normal;
  }
  .chronicle-world-grid,
  .chronicle-roster {
    grid-template-columns: 1fr;
  }
  .chronicle-boss {
    gap: 12px;
  }
  .chronicle-boss img {
    width: 90px;
    height: 110px;
  }
  .chronicle-coach {
    bottom: 80px;
    right: 10px;
    width: calc(100vw - 20px);
    padding: 12px 16px;
  }
}
/* Branching missions, exact reward receipts and shared tactical warnings. */
.chronicle-mission-board,
.chronicle-mission-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.chronicle-mission-board .experience-card,
.chronicle-mission-choices .experience-card {
  margin: 0;
  min-width: 0;
}
.chronicle-mission-path {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.chronicle-mission-path li {
  border: 1px solid #a3885155;
  border-radius: 8px;
  padding: 8px 10px;
  color: #bdc6d6;
}
.chronicle-mission-path .current {
  border-color: #eac779;
  background: #45351f;
  color: #ffe2a7;
}
.chronicle-mission-path .complete {
  border-color: #6da792;
  color: #9de1c6;
}
.chronicle-warning {
  margin: 16px 0;
  padding: 16px;
  border: 2px solid #e7ab61;
  border-radius: 10px;
  background: #34251c;
  color: #fff0d4;
}
.chronicle-warning strong {
  display: block;
  font-size: 16px;
}
.chronicle-skill {
  background: #192638;
  padding: 16px;
  border: 1px solid #7da0bb66;
  border-radius: 10px;
  margin: 12px 0;
}
.chronicle-unlock {
  color: #a8e2c6;
  border-left: 3px solid #82cfac;
  padding-left: 12px;
}
.chronicle-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.chronicle-reward-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #111e2e;
  border: 1px solid #b5956144;
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.chronicle-reward-grid strong {
  color: #efd299;
}
.chronicle-reward-grid span {
  color: #bdc6d6;
  font-size: 12px;
}
.chronicle-receipt {
  border-color: #a9946577;
}
@media (max-width: 600px) {
  .chronicle-mission-board,
  .chronicle-mission-choices,
  .chronicle-reward-grid {
    grid-template-columns: 1fr;
  }
  .chronicle-mission-path {
    font-size: 11px;
  }
  .chronicle-warning {
    padding: 12px;
  }
}
