@keyframes wfRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wfGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(47, 125, 218, 0.12); }
  50% { box-shadow: 0 5px 24px rgba(47, 125, 218, 0.22); }
}
@keyframes wfDiamond {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.1); }
}
@keyframes wfPanel {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wfShine {
  from { background-position: -180% center; }
  to { background-position: 180% center; }
}
.wf-box.cot {
  max-width: 100%;
  box-sizing: border-box;
  margin: 14px 0;
  padding: 0 16px;
  overflow: hidden;
  border: 1.5px solid #8db9ec;
  border-top: 3px solid #357fd8;
  border-radius: 10px;
  color: #334b68;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5fe 72%, #fffaf0 100%);
  box-shadow: 0 4px 16px rgba(47, 125, 218, 0.12);
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  animation: wfRise 0.45s ease-out both;
}
.wf-box.cot:not([open]) {
  padding-bottom: 0;
}
.wf-box.cot[open] {
  padding-bottom: 14px;
}
.wf-box.cot > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -16px;
  padding: 11px 16px;
  border-bottom: 0 solid #b9d3f0;
  color: #294c77;
  background: linear-gradient(90deg, #e1efff 0%, #f6faff 68%, #fff8e9 100%);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: background 0.22s ease;
}
.wf-box.cot[open] > summary {
  margin-bottom: 12px;
  border-bottom-width: 1px;
}
.wf-box.cot > summary:hover {
  background: linear-gradient(90deg, #d5e9ff 0%, #eff7ff 68%, #fff5df 100%);
}
.wf-box.cot > summary::-webkit-details-marker {
  display: none;
}
.wf-box.cot > summary::marker {
  content: "";
}
.wf-box.cot .dia {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #ffd96f, #d69619);
  box-shadow: 0 0 0 1.5px #d69a28, 0 0 9px rgba(214, 154, 40, 0.4);
  transform: rotate(45deg);
  animation: wfDiamond 2.6s ease-in-out infinite;
}
.wf-box.cot .sum-en {
  margin-left: auto;
  color: #7f9fc4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
}
.hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1.5px solid #8db9ec;
  border-top: 3px solid #357fd8;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5fe 72%, #fffaf0 100%);
  box-shadow: 0 4px 18px rgba(47, 125, 218, 0.14);
  animation: wfRise 0.45s ease-out both, wfGlow 3.8s ease-in-out infinite;
}
.hud .hud-crest {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0 4px 0 1px;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #ffdd78, #d3951e);
  box-shadow: 0 0 0 1.5px #d69a28, 0 0 10px rgba(214, 154, 40, 0.42);
  transform: rotate(45deg);
  animation: wfDiamond 2.8s ease-in-out infinite;
}
.hud .hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 13px;
  border: 1px solid #b7d2ef;
  border-left: 3px solid #4b91de;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(47, 125, 218, 0.14);
}
.hud .hud-k {
  flex: 0 0 auto;
  color: #7b9cc1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.hud .hud-v {
  min-width: 0;
  color: #263c58;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.hud .hud-loc {
  border-left-color: #d39a2e;
}
.hud .hud-loc .hud-k {
  color: #b48334;
}
.story-body {
  position: relative;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 16px 0;
  padding: 22px 24px 24px;
  overflow: hidden;
  border: 1.5px solid #8db9ec;
  border-top: 3px solid #357fd8;
  border-radius: 10px;
  color: #293b51;
  background: linear-gradient(145deg, #f9fcff 0%, #eef6ff 72%, #fffaf0 100%);
  box-shadow: 0 5px 22px rgba(47, 125, 218, 0.13);
  animation: wfRise 0.5s ease-out both;
}
.story-body::before {
  display: block;
  width: 74px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, #4c91de 25%, #d49a2b 75%, transparent);
}
.story-body .st,
.st {
  max-width: 100%;
  box-sizing: border-box;
  margin: 13px 0;
  color: #293b51;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0;
  text-indent: 2em;
  overflow-wrap: anywhere;
}
.story-body .st:first-of-type::first-letter,
.story-body > p:first-of-type::first-letter,
.st:first-of-type::first-letter {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.st .say,
.story-body .say {
  color: #2466ad;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(53, 127, 216, 0.16);
}
.st .mind,
.story-body .mind {
  color: #77549c;
  font-style: italic;
}
.story-div {
  height: 14px;
  max-width: 260px;
  margin: 20px auto;
  background:
    radial-gradient(circle at 50% 50%, #d49a2b 2.5px, transparent 3px),
    linear-gradient(90deg, transparent, #91bbe8 18%, #d9ae58 50%, #91bbe8 82%, transparent) 50% 50% / 100% 1px no-repeat;
}
.sys {
  max-width: 100%;
  box-sizing: border-box;
  margin: 12px 0;
  padding: 9px 14px;
  border: 1px solid #c4daf2;
  border-left: 4px solid #357fd8;
  border-radius: 7px;
  color: #285d98;
  background: rgba(234, 244, 255, 0.9);
  box-shadow: 0 2px 7px rgba(47, 125, 218, 0.08);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0;
  text-indent: 0;
  overflow-wrap: anywhere;
  animation: wfPanel 0.35s ease-out both;
}
.sys.sys-gain {
  border-color: #c4e1ce;
  border-left-color: #43965a;
  color: #347947;
  background: #f1faf4;
}
.sys.sys-gold {
  border-color: #ead8aa;
  border-left-color: #d29a2d;
  color: #91681d;
  background: #fff9eb;
}
.sys.sys-rare {
  border-color: #d9caed;
  border-left-color: #8157b2;
  color: #684394;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%) 0 0 / 200% 100%,
    #f8f3fd;
  animation: wfPanel 0.35s ease-out both, wfShine 2.8s linear 0.4s 2;
}
.sys.sys-up {
  border-color: #edcfaa;
  border-left-color: #df7e28;
  color: #a95b18;
  background: #fff6ea;
}
.sys.sys-warn {
  border-color: #ebc3c3;
  border-left-color: #c74646;
  color: #a33333;
  background: #fff3f3;
}
.shrine {
  display: block;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 18px 0;
  padding: 14px;
  border: 1.5px solid #b7d2ef;
  border-radius: 10px;
  background: linear-gradient(145deg, #f9fcff 0%, #eef6ff 70%, #fffaf0 100%);
  box-shadow: 0 5px 20px rgba(47, 125, 218, 0.11);
  animation: wfRise 0.5s ease-out both;
}
.shrine .swin {
  display: block;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 9px 0;
  overflow: hidden;
  border: 1px solid #b8d2ee;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 9px rgba(47, 125, 218, 0.09);
}
.shrine .sico {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 14px;
  color: #294866;
  background: linear-gradient(90deg, #e4f1ff 0%, #f7fbff 72%, #fff8ea 100%);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.22s ease, color 0.22s ease;
}
.shrine .sico:hover {
  background: linear-gradient(90deg, #d8ebff 0%, #f0f8ff 72%, #fff4dc 100%);
}
.shrine .sico::-webkit-details-marker {
  display: none;
}
.shrine .sico::marker {
  content: "";
}
.shrine .gem {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 3px;
  box-shadow: 0 0 0 1.5px #9fbddd, 0 0 8px rgba(47, 125, 218, 0.24);
  transform: rotate(45deg);
  transition: filter 0.22s ease, box-shadow 0.22s ease;
}
.shrine .g1 { background: linear-gradient(135deg, #ffdd78, #d3951e); }
.shrine .g2 { background: linear-gradient(135deg, #eda9c2, #bd5c82); }
.shrine .g3 { background: linear-gradient(135deg, #9bdcaf, #41965a); }
.shrine .g4 { background: linear-gradient(135deg, #9dcaf5, #3f76b5); }
.shrine .g5 { background: linear-gradient(135deg, #c7a8eb, #7951aa); }
.shrine .g6 { background: linear-gradient(135deg, #91d8d5, #368c88); }
.shrine .sico-t {
  min-width: 0;
  color: #2c4968;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.shrine .sico-e {
  margin-left: auto;
  color: #7f9fc3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
}
.shrine .sico::after {
  flex: 0 0 auto;
  margin-left: 2px;
  color: #6f94bd;
  content: "＋";
  font-size: 16px;
  font-weight: 700;
}
.shrine .swin[open] > .sico {
  border-bottom: 1px solid #b8d2ee;
  color: #1f5f9f;
  background: linear-gradient(90deg, #d7eaff 0%, #f4faff 68%, #fff5dd 100%);
}
.shrine .swin[open] > .sico::after {
  color: #c18823;
  content: "−";
}
.shrine .swin[open] > .sico .gem {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1.5px #d09a32, 0 0 12px rgba(208, 154, 50, 0.48);
}
.shrine .spanel {
  position: static;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 17px 18px;
  border: 0;
  border-radius: 0;
  color: #31465f;
  background: linear-gradient(145deg, #ffffff 0%, #f2f8ff 76%, #fffaf0 100%);
  box-shadow: none;
  pointer-events: auto;
  animation: wfPanel 0.3s ease-out both;
}
.shrine .sp-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 2px solid #c7dcf3;
  color: #2864a3;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.shrine .sp-title::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  content: "";
  background: linear-gradient(135deg, #ffdc73, #d29722);
  box-shadow: 0 0 7px rgba(210, 151, 34, 0.4);
  transform: rotate(45deg);
}
.shrine .sp-en,
.act .sp-en {
  margin-left: auto;
  color: #819fc0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
}
.shrine .p2 .sp-title { color: #9a4b70; border-bottom-color: #ead2de; }
.shrine .p3 .sp-title { color: #347b49; border-bottom-color: #d1e8d8; }
.shrine .p4 .sp-title { color: #326ba7; border-bottom-color: #cbdff3; }
.shrine .p5 .sp-title { color: #7149a0; border-bottom-color: #ded1ed; }
.shrine .p6 .sp-title { color: #317974; border-bottom-color: #cce6e3; }
.shrine .p2 .sp-title::before { background: linear-gradient(135deg, #eda9c2, #bd5c82); }
.shrine .p3 .sp-title::before { background: linear-gradient(135deg, #9bdcaf, #41965a); }
.shrine .p4 .sp-title::before { background: linear-gradient(135deg, #9dcaf5, #3f76b5); }
.shrine .p5 .sp-title::before { background: linear-gradient(135deg, #c7a8eb, #7951aa); }
.shrine .p6 .sp-title::before { background: linear-gradient(135deg, #91d8d5, #368c88); }
.shrine .sp-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  color: #376996;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.shrine .sp-h::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  content: "";
  background: #d49a2b;
  transform: rotate(45deg);
}
.shrine .sp-h::after {
  flex: 1 1 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, #b8d3ef, transparent);
}
.shrine .p2 .sp-h { color: #99506f; }
.shrine .p3 .sp-h { color: #397d4c; }
.shrine .p4 .sp-h { color: #376fa9; }
.shrine .p5 .sp-h { color: #734fa0; }
.shrine .p6 .sp-h { color: #377b77; }
.shrine .empty {
  max-width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
  padding: 11px 13px;
  border: 1px dashed #abc8e7;
  border-radius: 7px;
  color: #607892;
  background: #f4f9ff;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  overflow-wrap: anywhere;
}
.shrine .kv {
  display: flex;
  flex: 1 1 calc(50% - 4px);
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 4px 0;
  padding: 8px 11px;
  border: 1px solid #c9dcf0;
  border-radius: 7px;
  color: #30445b;
  background: rgba(248, 252, 255, 0.95);
  font-size: 13px;
  line-height: 1.75;
}
.shrine .kv.wide {
  flex-basis: 100%;
}
.shrine .kv b {
  flex: 0 1 auto;
  max-width: 42%;
  box-sizing: border-box;
  padding: 1px 7px;
  border-radius: 4px;
  color: #326ba7;
  background: #e5f1fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.shrine .kv span {
  flex: 1 1 auto;
  min-width: 0;
  color: #31445b;
  overflow-wrap: anywhere;
}
.shrine .kv.warn {
  border-color: #e8c4c4;
  background: #fff6f6;
}
.shrine .kv.warn b {
  color: #a43b3b;
  background: #f9e4e4;
}
.shrine .p2 .kv b {
  color: #98506f;
  background: #f7e8ef;
}
.shrine .p5 .kv b {
  color: #70499c;
  background: #f0e9f8;
}
.shrine .bar {
  display: flex;
  flex: 1 1 calc(50% - 4px);
  align-items: center;
  gap: 9px;
  min-width: 0;
  box-sizing: border-box;
  margin: 4px 0;
  padding: 8px 12px;
  border: 1px solid;
  border-radius: 18px;
  font-size: 13px;
}
.shrine .bar b {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 11px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.shrine .bar span {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.shrine .bar.hp {
  border-color: #e0b7b7;
  color: #9d3939;
  background: #fff3f3;
}
.shrine .bar.hp b {
  background: linear-gradient(135deg, #df7d7d, #b74141);
}
.shrine .bar.mp {
  border-color: #b8d2ed;
  color: #2e65a0;
  background: #f0f7ff;
}
.shrine .bar.mp b {
  background: linear-gradient(135deg, #72a8df, #3978bc);
}
.shrine .attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 8px;
}
.shrine .attr {
  display: flex;
  flex: 1 1 78px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 9px;
  border: 1px solid #c7dcef;
  border-radius: 8px;
  background: linear-gradient(160deg, #ffffff, #edf6ff);
  box-shadow: 0 2px 6px rgba(47, 125, 218, 0.08);
}
.shrine .attr b {
  color: #527da8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.shrine .attr i {
  color: #29445f;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}
.shrine .qcard {
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px solid #c7dcef;
  border-left: 4px solid #4388d4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(47, 125, 218, 0.08);
}
.shrine .qcard .q-tag {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 11px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #70a9e2, #3979bd);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.shrine .qcard .q-name {
  margin: 2px 0 4px;
  color: #2a6098;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.shrine .qcard .q-desc {
  margin: 2px 0;
  color: #344960;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.shrine .qcard .q-reward {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px dashed #d8c48e;
  color: #946c20;
  font-size: 12.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.shrine .q-main {
  border-left-color: #d29a2d;
  background: linear-gradient(90deg, #fffaf0, #ffffff);
}
.shrine .q-main .q-tag {
  background: linear-gradient(135deg, #ffda72, #d19625);
}
.shrine .q-main .q-name {
  color: #89631e;
}
.shrine .q-side {
  border-left-color: #43965a;
}
.shrine .q-side .q-tag {
  background: linear-gradient(135deg, #78c68d, #3f9457);
}
.shrine .q-com {
  border-left-color: #4388d4;
}
.shrine .spanel hr {
  height: 14px;
  max-width: 270px;
  margin: 17px auto;
  border: 0;
  background:
    radial-gradient(circle at 50% 50%, #d49a2b 2.5px, transparent 3px),
    linear-gradient(90deg, transparent, #9fc3e8 18%, #d8b25f 50%, #9fc3e8 82%, transparent) 50% 50% / 100% 1px no-repeat;
}
.shrine .mem-in {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 8px 0;
  overflow: hidden;
  border: 1px solid #bcd9e9;
  border-radius: 8px;
  background: #f5fbfc;
}
.shrine .mem-in > summary {
  padding: 10px 13px;
  color: #32746f;
  background: linear-gradient(90deg, #dff2f1, #f5fbff);
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.shrine .mem-in > summary::-webkit-details-marker {
  display: none;
}
.shrine .mem-in > summary::marker {
  content: "";
}
.shrine .mem-in > summary::before {
  margin-right: 5px;
  color: #438f89;
  content: "＋";
  font-weight: 900;
}
.shrine .mem-in[open] > summary::before {
  content: "−";
}
.shrine .mem-in table {
  display: block;
  max-width: calc(100% - 20px);
  margin: 8px 10px 13px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 12px;
}
.shrine .mem-in th {
  padding: 7px 10px;
  border: 1px solid #bdd8e6;
  color: #2e6865;
  background: #dff0f0;
  font-weight: 800;
  white-space: nowrap;
}
.shrine .mem-in td {
  min-width: 80px;
  padding: 7px 10px;
  border: 1px solid #cbdfe9;
  color: #344960;
  background: #ffffff;
  line-height: 1.65;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.shrine .mem-ltm {
  color: #c95757;
}
.shrine .mem-stm {
  color: #d89530;
}
.shrine .mem-npc {
  color: #4782bb;
}
.act {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 16px 0;
  padding: 15px 17px 17px;
  border: 1.5px solid #8db9ec;
  border-top: 3px solid #357fd8;
  border-radius: 10px;
  background: linear-gradient(145deg, #f9fcff 0%, #eef6ff 72%, #fffaf0 100%);
  box-shadow: 0 5px 20px rgba(47, 125, 218, 0.13);
  animation: wfRise 0.5s ease-out both;
}
.act .act-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #2d639b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.act .act-bolt {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, #ffdc73, #d29722);
  box-shadow: 0 0 8px rgba(210, 151, 34, 0.48);
  transform: rotate(45deg);
  animation: wfDiamond 2.6s ease-in-out infinite;
}
.act .act-count {
  color: #b58a42;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.act .act-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.act .act-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px solid #bfd6ee;
  border-left: 3px solid #4388d4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.act .act-opt:hover {
  border-color: #d09a31;
  border-left-color: #d09a31;
  background: #fffaf0;
  box-shadow: 0 3px 12px rgba(47, 125, 218, 0.12);
}
.act .act-num {
  display: flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #71a9df, #3979bd);
  box-shadow: 0 0 0 1px #9fc2e5;
  font-size: 12px;
  font-weight: 900;
}
.act .act-txt {
  flex: 1 1 auto;
  min-width: 0;
  color: #30465e;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.act .act-free {
  border-style: dashed;
  border-left-style: solid;
  border-left-color: #d09a31;
  background: rgba(255, 250, 239, 0.8);
}
.act .act-free .act-num {
  background: linear-gradient(145deg, #d8ad55, #a67b2c);
  box-shadow: 0 0 0 1px #d9bd82;
  font-size: 14px;
}
.act .act-free .act-txt {
  color: #78633b;
  font-style: italic;
}
@media (max-width: 700px) {
  .wf-box.cot {
    padding-right: 13px;
    padding-left: 13px;
  }
  .wf-box.cot > summary {
    margin-right: -13px;
    margin-left: -13px;
    padding-right: 13px;
    padding-left: 13px;
  }
  .hud {
    gap: 7px;
    padding: 10px;
  }
  .hud .hud-crest {
    width: 14px;
    height: 14px;
  }
  .hud .hud-chip {
    gap: 6px;
    padding: 7px 10px;
  }
  .hud .hud-v {
    font-size: 13px;
  }
  .hud .hud-loc {
    flex: 1 1 100%;
  }
  .story-body {
    padding: 19px 16px 21px;
  }
  .story-body .st,
  .st {
    font-size: 15.5px;
    line-height: 2;
  }
  .shrine {
    padding: 9px;
  }
  .shrine .sico {
    padding: 10px 12px;
  }
  .shrine .spanel {
    padding: 14px 12px 16px;
  }
  .shrine .kv,
  .shrine .bar {
    flex-basis: 100%;
  }
  .shrine .attr {
    flex-basis: 55px;
    padding: 7px 5px;
  }
  .act {
    padding: 13px 12px 15px;
  }
  .act .act-opt {
    gap: 9px;
    padding: 9px 11px;
  }
  .act .act-txt {
    font-size: 13.5px;
  }
}
@media (max-width: 390px) {
  .hud .hud-chip {
    flex: 1 1 auto;
  }
  .hud .hud-k {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .hud .hud-v {
    font-size: 12px;
  }
  .story-body {
    padding-right: 13px;
    padding-left: 13px;
  }
  .shrine .sico-e {
    display: none;
  }
  .shrine .sico::after {
    margin-left: auto;
  }
  .shrine .kv {
    display: block;
  }
  .shrine .kv b {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 4px;
  }
  .shrine .kv span {
    display: block;
  }
  .act .act-opt {
    align-items: flex-start;
  }
  .act .act-num {
    margin-top: 1px;
  }
}


/* ========================================
   日式西幻RPG风格 - 浅色卡片主题
   参考：刀剑神域/无职转生 游戏UI
   ======================================== */

/* ========== 全局配色变量 ========== */
:root {
  --rpg-bg-light: #f8f6f3;
  --rpg-card: linear-gradient(135deg, #ffffff 0%, #fdfbf8 100%);
  --rpg-border-gold: rgba(218, 165, 32, 0.4);
  --rpg-border-blue: rgba(100, 149, 237, 0.35);
  --rpg-accent-gold: #daa520;
  --rpg-accent-blue: #6495ed;
  --rpg-text-dark: #4a4845;
  --rpg-text-light: rgba(74, 72, 69, 0.65);
  --rpg-shadow: 0 2px 8px rgba(139, 115, 92, 0.12);
}

/* ========== 顶部导航栏 ========== */
header.flex.h-12 {
  background: linear-gradient(180deg, #fdfbf8 0%, #f8f6f3 100%) !important;
  border-bottom: 1px solid var(--rpg-border-gold) !important;
  box-shadow: 0 2px 12px rgba(139, 115, 92, 0.08) !important;
  backdrop-filter: blur(8px) !important;
}

/* 顶部按钮 */
header button {
  background: var(--rpg-card) !important;
  border: 1.5px solid var(--rpg-border-gold) !important;
  border-radius: 10px !important;
  box-shadow: var(--rpg-shadow) !important;
  transition: all 0.3s ease !important;
}

header button:hover {
  border-color: var(--rpg-accent-gold) !important;
  box-shadow: 
    0 4px 16px rgba(218, 165, 32, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-1px) !important;
  background: linear-gradient(135deg, #fffef9 0%, #fefcf5 100%) !important;
}

header button:active {
  transform: translateY(0) !important;
  box-shadow: 
    0 1px 4px rgba(139, 115, 92, 0.15),
    inset 0 2px 4px rgba(139, 115, 92, 0.08) !important;
}

/* SVG图标 */
header svg {
  color: var(--rpg-accent-gold) !important;
  transition: all 0.3s ease !important;
}

header button:hover svg {
  color: var(--rpg-accent-blue) !important;
  filter: drop-shadow(0 1px 3px rgba(100, 149, 237, 0.4)) !important;
}

/* ========== 底部输入区域 ========== */
.absolute.inset-x-0.bottom-0 {
  background: linear-gradient(to top, 
    rgba(248, 246, 243, 0.98) 0%, 
    rgba(248, 246, 243, 0.85) 100%) !important;
  backdrop-filter: blur(10px) !important;
}

/* 输入表单容器 */
form#prompt-input {
  background: var(--rpg-card) !important;
  border: 2px solid var(--rpg-border-gold) !important;
  border-radius: 18px !important;
  box-shadow: 
    0 8px 24px rgba(139, 115, 92, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

/* 四角菱形装饰 */
form#prompt-input::before,
form#prompt-input::after {
  content: '◆';
  position: absolute;
  top: -12px;
  font-size: 10px;
  color: var(--rpg-accent-gold);
  text-shadow: 0 1px 2px rgba(218, 165, 32, 0.3);
}

form#prompt-input::before {
  left: 24px;
}

form#prompt-input::after {
  right: 24px;
}

form#prompt-input:focus-within {
  border-color: var(--rpg-accent-gold) !important;
  box-shadow: 
    0 12px 32px rgba(139, 115, 92, 0.16),
    0 0 0 4px rgba(218, 165, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  transform: translateY(-2px) !important;
}

/* 输入框文字 */
textarea[name="message"] {
  background: transparent !important;
  color: var(--rpg-text-dark) !important;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif !important;
  font-size: 15px !important;
}

textarea[name="message"]::placeholder {
  color: var(--rpg-text-light) !important;
}

textarea[name="message"]::selection {
  background: rgba(218, 165, 32, 0.2) !important;
  color: var(--rpg-text-dark) !important;
}

/* ========== 顶部按钮栏 ========== */
#prompt-input-header {
  background: linear-gradient(135deg, 
    rgba(253, 251, 248, 0.9) 0%, 
    rgba(248, 246, 243, 0.95) 100%) !important;
  border-bottom: 1px solid rgba(218, 165, 32, 0.15) !important;
  border-radius: 18px 18px 0 0 !important;
}

/* 所有按钮通用样式 */
#prompt-input-header button {
  background: var(--rpg-card) !important;
  border: 1.5px solid var(--rpg-border-gold) !important;
  border-radius: 10px !important;
  color: var(--rpg-text-dark) !important;
  font-weight: 600 !important;
  box-shadow: var(--rpg-shadow) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#prompt-input-header button:hover {
  background: linear-gradient(135deg, #fffef9 0%, #fefcf5 100%) !important;
  border-color: var(--rpg-accent-gold) !important;
  box-shadow: 
    0 4px 16px rgba(218, 165, 32, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-2px) scale(1.02) !important;
  color: var(--rpg-accent-gold) !important;
}

#prompt-input-header button:active {
  transform: translateY(0) scale(0.99) !important;
  box-shadow: 
    0 2px 6px rgba(139, 115, 92, 0.12),
    inset 0 2px 4px rgba(139, 115, 92, 0.08) !important;
}

/* 图标样式 */
#prompt-input-header button svg {
  color: var(--rpg-accent-gold) !important;
  transition: all 0.3s ease !important;
}

#prompt-input-header button:hover svg {
  color: var(--rpg-accent-blue) !important;
  filter: drop-shadow(0 1px 3px rgba(100, 149, 237, 0.4)) !important;
  transform: scale(1.1) !important;
}

/* ========== 底部工具栏 ========== */
#prompt-input-footer button {
  background: var(--rpg-card) !important;
  border: 1.5px solid var(--rpg-border-gold) !important;
  border-radius: 10px !important;
  color: var(--rpg-text-dark) !important;
  box-shadow: var(--rpg-shadow) !important;
  transition: all 0.3s ease !important;
}

#prompt-input-footer button:hover {
  background: linear-gradient(135deg, #fffef9 0%, #fefcf5 100%) !important;
  border-color: var(--rpg-accent-gold) !important;
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.15) !important;
  transform: translateY(-1px) !important;
}

#prompt-input-footer button svg {
  color: var(--rpg-accent-gold) !important;
  transition: all 0.3s ease !important;
}

#prompt-input-footer button:hover svg {
  color: var(--rpg-accent-blue) !important;
}

/* 模型选择按钮 */
#prompt-input-footer button:has(img) {
  border-color: var(--rpg-border-blue) !important;
}

/* 发送按钮 */
button[type="submit"] {
  background: linear-gradient(135deg, 
    #daa520 0%, 
    #c89619 100%) !important;
  border: 1.5px solid rgba(218, 165, 32, 0.6) !important;
  border-radius: 12px !important;
  box-shadow: 
    0 4px 12px rgba(218, 165, 32, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s ease !important;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, 
    #6495ed 0%, 
    #4169e1 100%) !important;
  border-color: rgba(100, 149, 237, 0.6) !important;
  box-shadow: 
    0 6px 20px rgba(100, 149, 237, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px) scale(1.05) !important;
}

button[type="submit"]:active {
  transform: translateY(0) scale(0.98) !important;
  box-shadow: 
    0 2px 6px rgba(139, 115, 92, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

button[type="submit"] svg {
  color: #fff !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
}

/* ========== 状态栏美化（完全不截断） ========== */
details {
  background: var(--rpg-card) !important;
  border: 2px solid var(--rpg-border-blue) !important;
  border-radius: 12px !important;
  margin: 10px 0 !important;
  box-shadow: var(--rpg-shadow) !important;
  transition: all 0.3s ease !important;
  overflow: visible !important;
}

details:hover {
  border-color: var(--rpg-accent-blue) !important;
  box-shadow: 0 4px 16px rgba(100, 149, 237, 0.12) !important;
}

details[open] {
  border-color: var(--rpg-accent-gold) !important;
  box-shadow: 
    0 6px 20px rgba(218, 165, 32, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

summary {
  background: linear-gradient(90deg, 
    rgba(218, 165, 32, 0.08) 0%, 
    rgba(255, 255, 255, 0.5) 100%) !important;
  border-left: 4px solid var(--rpg-accent-gold) !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  color: var(--rpg-text-dark) !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

summary::before {
  content: '◆';
  color: var(--rpg-accent-gold);
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(218, 165, 32, 0.3);
  flex-shrink: 0;
}

summary:hover {
  background: linear-gradient(90deg, 
    rgba(218, 165, 32, 0.15) 0%, 
    rgba(255, 255, 255, 0.7) 100%) !important;
  border-left-color: var(--rpg-accent-blue) !important;
  padding-left: 20px !important;
  color: var(--rpg-accent-gold) !important;
}

details[open] summary {
  border-left-color: var(--rpg-accent-blue) !important;
  background: linear-gradient(90deg, 
    rgba(100, 149, 237, 0.12) 0%, 
    rgba(255, 255, 255, 0.8) 100%) !important;
  color: var(--rpg-accent-blue) !important;
}

/* 状态栏内容区域 */
details > *:not(summary) {
  padding: 14px 18px !important;
  color: var(--rpg-text-dark) !important;
  line-height: 1.8 !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border-radius: 0 0 10px 10px !important;
}

/* ========== 细节优化 ========== */
/* 顶部分隔线装饰 */
header.flex.h-12::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--rpg-accent-gold), 
    transparent);
  opacity: 0.4;
}

/* 按钮组分隔线 */
#prompt-input-footer .flex.items-center.gap-1\\.5 .w-px {
  background: var(--rpg-border-gold) !important;
  height: 20px !important;
}

/* 滚动条美化 */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(248, 246, 243, 0.5);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(218, 165, 32, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(218, 165, 32, 0.5);
}

/* 背景纹理（极度克制） */
form#prompt-input::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 30% 40%, rgba(218, 165, 32, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(100, 149, 237, 0.02) 0%, transparent 50%);
  border-radius: 18px;
  pointer-events: none;
  z-index: 0;
}