/* Adventure menus and battlefield. Layout geometry remains in style.css. */
:root {
  --ink: #293747;
  --panel: #35475b;
  --panel2: #405569;
  --text: #f6f1e7;
  --muted: #ccd6dd;
  --gold: #ead4a4;
  --line: #758494;
  --blue: #c2e6ec;
  --paper: #f3eee2;
  --dark: #334353;
  --region-art: url("assets/regions/mondstadt.jpg");
  --region-accent: #76b4a2;
  --element: #aac3ce;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.65;
}
[data-region="liyue"] {
  --region-art: url("assets/regions/liyue.jpg");
  --region-accent: #d6b067;
}
[data-region="inazuma"] {
  --region-art: url("assets/regions/inazuma.jpg");
  --region-accent: #b69acd;
}
[data-region="sumeru"] {
  --region-art: url("assets/regions/sumeru.jpg");
  --region-accent: #9abd70;
}
[data-region="fontaine"] {
  --region-art: url("assets/regions/fontaine.jpg");
  --region-accent: #80b8da;
}
[data-element="pyro"] {
  --element: #f4a881;
}
[data-element="hydro"] {
  --element: #93cef0;
}
[data-element="anemo"] {
  --element: #92d8c2;
}
[data-element="electro"] {
  --element: #c5b0f0;
}
[data-element="cryo"] {
  --element: #b9e5ee;
}
[data-element="geo"] {
  --element: #efcf8e;
}
[data-element="dendro"] {
  --element: #c3df9e;
}
body {
  background: #293747;
}
.sky {
  background: linear-gradient(180deg, #3d566c 0, #263748 75%);
  z-index: -1;
}
.sky:after {
  background: var(--region-art) top center / 100% auto no-repeat;
  opacity: 0.17;
  mask-image: linear-gradient(#000, transparent 600px);
}
header {
  background: #253444f5;
  border-bottom: 1px solid #b7a78080;
  padding-left: clamp(16px, 4vw, 56px);
  padding-right: clamp(16px, 4vw, 56px);
}
.brand {
  gap: 10px;
  font-size: 22px;
  letter-spacing: 1px;
  color: #f5eddd;
  box-shadow: none;
  border-radius: 0;
}
.brand-sub {
  font-family: inherit;
  letter-spacing: 0.08em;
  color: #ddc79f;
}
.brand-en {
  font-size: 12px;
}
nav {
  gap: 5px;
}
nav button {
  padding: 7px 13px;
  border-radius: 22px;
  font-size: 13px;
}
nav button:hover,
nav [aria-current="page"] {
  background: #f3eee2;
  color: #334353;
}
h1,
h2,
h3 {
  font-family: inherit;
  letter-spacing: 0.04em;
}
h1,
h2 {
  font-weight: 600;
}
.eyebrow {
  font-family: inherit;
  letter-spacing: 0.1em;
  font-size: 12px;
}
.ui-icon {
  width: 26px;
  height: 26px;
  flex: none;
  vertical-align: middle;
}
button {
  border-radius: 24px;
  background: #3b4b5d;
  border-color: #b1ab9b;
  box-shadow: inset 0 0 0 2px #ffffff08;
}
button:hover {
  background: #526474;
  border-color: #eee0bd;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.6;
}
.primary {
  background: #eee5d3;
  border-color: #e4cf9f;
  color: #394859;
}
.primary:hover {
  color: #293b4e;
  background: #fffaec;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #6cadc3;
  outline-offset: 3px;
}
.text-link {
  border-radius: 0;
  box-shadow: none;
  color: var(--blue);
}
main {
  max-width: 1440px;
}
.panel,
.camp-info,
.gain-card,
.ledger,
.library-card,
.ending-story,
dialog {
  --text: #344453;
  --muted: #586675;
  --gold: #72582b;
  --blue: #2f6174;
  --red: #9d3d39;
  color: var(--text);
  background: #f3eee2;
  border: 1px solid #c4bca9;
  border-radius: 6px;
  box-shadow: 0 4px 16px #16243224;
}
.panel:before,
.panel:after {
  width: 9px;
  height: 9px;
  border-color: #a98c55;
}
.panel button:not(.text-link),
.camp-info button,
.gain-page button,
.ledger button,
dialog button:not(.close):not(.text-link) {
  background: #e6dfcf;
  color: #344453;
  border-color: #b5a98e;
}
.panel .primary,
.camp-info .primary,
.gain-page .primary,
dialog .primary {
  background: #425365;
  color: #fff6e5;
  border-color: #425365;
}
.panel button.primary,
.camp-info button.primary,
.gain-page button.primary,
dialog button.primary:not(.close) {
  background: #425365;
  color: #fff6e5;
  border-color: #425365;
}
.text-link:hover {
  background: transparent;
  text-decoration: underline;
}
.panel .primary:hover,
.camp-info .primary:hover,
.gain-page .primary:hover {
  background: #586a7d;
}
.panel .text-link,
.ledger .text-link,
.camp-info .text-link {
  color: #2f6174;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #c6baa1;
}
.panel-heading .ui-icon {
  width: 42px;
  height: 42px;
  color: #94733d;
}
.panel-heading .eyebrow {
  margin: 0 0 4px;
}
.panel-heading h2 {
  margin: 0;
}
.hero {
  grid-template-columns: 1.07fr 1fr;
  gap: 0;
  border: 1px solid #b0a588;
  border-radius: 7px;
  overflow: hidden;
}
.hero .creation-panel {
  border: 0;
  border-left: 1px solid #c4bca9;
  border-radius: 0;
  padding: 30px;
}
.title-art {
  border: 0;
  background: #293747;
  padding: 0;
  min-height: 580px;
  justify-content: flex-end;
}
.title-art:before {
  display: none;
}
.hero-scenery {
  position: absolute;
  inset: 0;
  background: url("assets/regions/journey.jpg") 48% 30% / cover no-repeat;
}
.hero-scenery:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #19384920 0,
    #21364800 24%,
    #263747b8 52%,
    #263747 75%
  );
}
.scene-caption {
  position: absolute;
  top: 28px;
  left: 30px;
  padding: 8px 14px;
  background: #263747de;
  border: 1px solid #dfcfa980;
  font-size: 13px;
  color: #f9f3e8;
  border-radius: 4px;
}
.scene-caption span {
  display: block;
  font-size: 12px;
  color: #d6e2e6;
}
.title-copy {
  position: relative;
  padding: 44px 36px 32px;
}
.title-art .title-copy .eyebrow {
  position: static;
  color: #f0d5a2;
  margin-bottom: 12px;
}
.title-copy h1 {
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 1.22;
  color: #fff7e7;
  letter-spacing: 0.08em;
}
.title-copy h1 span {
  display: block;
}
.title-art p {
  margin: 20px 0 0;
  max-width: 440px;
  font-size: 14px;
  color: #e8eff0;
  line-height: 1.9;
}
.title-art .facts {
  border-color: #ddc28e75;
  padding-top: 22px;
  margin-top: 30px;
}
.facts {
  font-size: 13px;
}
.facts strong {
  font-size: 30px;
  color: #f0d5a2;
}
.creation-panel input,
.creation-panel select,
.creation-panel textarea,
.panel input,
.panel select,
.panel textarea,
dialog select {
  color-scheme: light;
  background: #fffcf5;
  color: #344453;
  border-color: #aea697;
  border-radius: 4px;
}
.panel input::placeholder,
.panel textarea::placeholder {
  color: #667280;
}
.creation-panel form label {
  color: #4a5b6a;
  font-size: 13px;
  margin-top: 10px;
}
.creation-panel .form-grid {
  gap: 14px;
}
.mode-caption {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 22px;
  color: #425265;
  border-bottom: 1px solid #c8beaa;
  padding-bottom: 6px;
}
.hero-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.creation-panel .mode {
  margin: 0;
  background: #e9e3d7;
  border: 1px solid #c4b9a4;
  padding: 11px 10px;
  border-radius: 4px;
  gap: 8px;
}
.mode:has(input:checked) {
  background: #fff9e9;
  border-color: #96733c;
  box-shadow: inset 0 0 0 1px #ae8c51;
}
.mode b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.mode .ui-icon {
  width: 19px;
  height: 19px;
  color: #7b6339;
}
.mode input {
  width: 18px;
  height: 18px;
  accent-color: #77613b;
}
.mode small {
  color: #586675;
  font-size: 12px;
  line-height: 1.65;
  margin-top: 4px;
}
.creation-panel details {
  margin-top: 14px;
  border-bottom: 1px solid #c8beaa;
}
.creation-panel summary {
  font-size: 13px;
}
.creation-panel .actions {
  gap: 8px;
  margin-top: 22px;
}
.creation-panel .actions button {
  padding: 9px 13px;
  font-size: 13px;
}
.creation-panel .actions button.primary {
  padding: 9px 20px;
}
.triptych {
  border-color: #acb1ab65;
  margin-top: 25px;
}
.triptych article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-color: #acb1ab65;
  padding: 24px 22px;
}
.triptych .ui-icon {
  width: 32px;
  height: 32px;
  color: #dfc899;
  margin-top: 4px;
}
.triptych .eyebrow {
  margin-bottom: 4px;
}
.triptych h3 {
  font-size: 17px;
}
.triptych p {
  font-size: 13px;
  margin-bottom: 0;
}
.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-bottom: 12px;
  color: #cad6dd;
  font-size: 12px;
}
.home-footer > div {
  display: flex;
  gap: 16px;
}
.home-footer .text-link {
  font-size: 12px;
}
.step-track i {
  background: #6f7f8980;
  height: 3px;
}
.step-track i.done {
  background: #e0c795;
}
.wheel-page {
  gap: 28px;
}
.wheel-controls {
  margin-bottom: 14px;
}
.wheel-controls button {
  border-radius: 3px;
  padding: 5px 10px;
}
.wheel-wrap {
  filter: none;
}
.wheel-wrap:before {
  content: "";
  position: absolute;
  inset: 2%;
  border: 1px solid #efe0bb55;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 18px 34px #172b3440,
    0 0 0 9px #dfc99c09;
}
.pointer {
  filter: drop-shadow(0 3px 4px #203442);
}
.wheel-center {
  top: 32%;
  left: 32%;
  width: 36%;
  height: 36%;
  background: #f0e9d8;
  color: #344b5c;
  border: 2px solid #c5a976;
  box-shadow:
    inset 0 0 0 4px #f9f6ed,
    inset 0 0 0 5px #baa273;
  border-radius: 50%;
}
.wheel-center span {
  color: #465c6c;
  font-family: inherit;
  font-size: 12px;
}
.wheel-center strong {
  color: #40576a;
}
.wheel-center .ui-icon {
  width: 50px;
  height: 50px;
  color: #8a6e3b;
}
.wheel-help {
  font-size: 14px;
}
.wheel-result {
  color: #344453;
  background: #f3eee2;
  border-left-color: #7b998a;
  border-radius: 4px;
}
.wheel-result strong {
  color: #695326;
}
.options-panel {
  padding: 0;
  box-shadow: 0 5px 20px #1322302e;
  overflow: hidden;
}
.options-head {
  color: #405366;
  border-color: #c8beaa;
  background: #e6dfcf;
}
.options-head small {
  color: #536170;
}
.options-list {
  background: #f3eee2;
  scrollbar-color: #aba28f #e9e2d5;
}
.option {
  color: #344453;
  border-color: #d5ccba;
  padding-top: 13px;
  padding-bottom: 13px;
}
.option.selected {
  background: #46596b;
  color: #fff7e7;
  border-left: 4px solid #dfbd78;
}
.option .pct,
.option .index {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.hidden-badge {
  background: #655074;
  color: #fff4dd;
  border-color: #b59bc9;
}
.element-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #425568;
  font-size: 12px;
  white-space: nowrap;
}
.element-mark .ui-icon {
  width: 20px;
  height: 20px;
}
.panel .element-mark {
  color: #425568;
}
.camp-cover {
  height: 152px;
  position: relative;
  background: var(--region-art) center/cover;
  border: 1px solid #9dadb480;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.camp-cover span {
  position: absolute;
  left: 20px;
  bottom: 16px;
  background: #2a3b4bdd;
  color: #fff4df;
  font-size: 13px;
  padding: 5px 12px;
  border-left: 2px solid var(--region-accent);
}
.camp-info {
  padding: 22px;
}
.camp-cover + .camp-info {
  border-radius: 0 0 6px 6px;
}
.chapter-line {
  color: #526275;
  border-color: #cfc4ae;
}
.camp-layout {
  gap: 22px;
}
.skill-detail {
  color: #344453;
  background: #eae3d4;
  border-left-color: #9c7d43;
  border-radius: 0 4px 4px 0;
}
.skill-detail > small,
.skill-detail h3 small,
.skill-detail .muted {
  color: #596774;
}
.skill-detail h3 {
  color: #334453;
}
.mastery {
  background: #d7cebd;
}
.mastery > i {
  background: #789a8d;
}
.stat {
  background: #fffcf5;
  color: #344453;
  border-color: #cfc5b2;
  border-radius: 3px;
}
.stat strong {
  color: #344453;
}
.stat span {
  color: #596774;
}
.stat small {
  color: #72582b;
}
.stage-list li {
  border-color: #8497a17a;
}
.stage-list li.next {
  background: #4c6373;
  border-color: #d3c29b;
}
.journey-map {
  gap: 5px;
}
.journey-map span {
  background:
    linear-gradient(#26394ba6, #26394be8),
    var(--region-art) center/cover;
  border-color: #80919d;
  color: #f4eee1;
}
.journey-map span.current {
  border-color: #ebd2a0;
  color: #f5dfb1;
  box-shadow: inset 0 -3px 0 #d8b978;
}
.chapter-card {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}
.chapter-card:before {
  inset: 0 0 auto;
  height: 74px;
  width: auto;
  background: var(--region-art) center/cover;
  border: 0;
}
.chapter-card.current {
  border-color: #ddc18b;
}
.chapter-index {
  color: #786133;
}
.itinerary {
  gap: 18px;
}
.scene-hint {
  background: #e6ddca;
  border-color: #8e7040;
}
.gain-head .eyebrow {
  color: #f0d7a6;
}
.gain-card .increase,
.gain-page .camp-info .increase {
  color: #31624f;
}
.gain-card small {
  color: #596774;
}
.gain-card {
  border-top: 3px solid #b49a67;
}
.gain-arrow {
  color: #665e4e;
}
.profile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #c8beaa;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.profile-heading > div {
  min-width: 0;
}
.profile-heading .eyebrow {
  margin-bottom: 3px;
}
.profile-heading h3 {
  margin-bottom: 0;
}
.profile-heading .portrait {
  width: 54px;
  height: 54px;
  border: 2px solid #b5a27c;
  background: #dfd4bc;
}
.element-mark[data-element="anemo"] .ui-icon {
  color: #316e61;
}
.element-mark[data-element="hydro"] .ui-icon {
  color: #366b96;
}
.element-mark[data-element="geo"] .ui-icon {
  color: #87652d;
}
.element-mark[data-element="electro"] .ui-icon {
  color: #795294;
}
.element-mark[data-element="pyro"] .ui-icon {
  color: #a54837;
}
.element-mark[data-element="cryo"] .ui-icon {
  color: #346578;
}
.element-mark[data-element="dendro"] .ui-icon {
  color: #47723d;
}
.gain-page .gain-foot {
  color: #e2eaf0;
}
.ending-cover {
  background:
    linear-gradient(90deg, #293747f5, #293747b5),
    var(--region-art) center/cover;
  border-color: #d4bd8d;
}
.ending-cover:after {
  background-image: url("assets/traveler-mark.svg");
  opacity: 0.25;
}
.ending-story {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}
.ledger-row {
  border-color: #d0c7b4;
  font-size: 13px;
}
.ledger-row strong {
  color: #685427;
}
.ledger .sub-note {
  color: #596774;
}
.library-card {
  padding: 20px;
  border-top: 3px solid #b39a6a;
  text-align: left;
}
.library-card:hover {
  color: #344453;
  background: #fffcf4;
  border-color: #967846;
}
.library-card .portrait {
  width: 64px;
  height: 64px;
  background: #d4c7ab;
  border: 2px solid #dfc89b;
  border-radius: 50%;
  margin-bottom: 12px;
}
.library-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.library-card p {
  color: #596774;
}
.card-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.library-top input,
.library-top select {
  background: #eef0eb;
  color: #344453;
  border-color: #bcc3bd;
  color-scheme: light;
}
.library-top input::placeholder {
  color: #596774;
}
dialog {
  padding: 28px;
  background: #f3eee2;
}
dialog::backdrop {
  background: #162733bf;
  backdrop-filter: blur(5px);
}
dialog .close {
  color: #4b5b68;
  background: #e5decd;
  border-color: #baae98;
}
dialog p {
  color: #344453;
}
dialog small {
  color: #596774;
}
dialog .eyebrow {
  color: #72582b;
}
.leader-dialog {
  background: #29323e;
  border: 1px solid #c58174;
  box-shadow:
    0 0 0 5px #29323e,
    0 0 0 6px #9f6c60,
    0 18px 60px #16243280;
}
.leader-dialog .eyebrow {
  color: #e4bdb1;
}
.leader-dialog h2 {
  color: #fff0df;
}
.leader-dialog .leader-label {
  color: #ff9585;
}
.leader-dialog small {
  color: #d8d8d2;
}
.leader-dialog .close {
  color: #f6ddd4;
  background: #454348;
  border-color: #bb9086;
}
.leader-overlay {
  background: #071522c9;
}
.toast {
  background: #efe8d8;
  color: #344453;
  border-color: #b79d6b;
  border-radius: 5px;
}

/* Battle follows the reference's task / arrays / skills / file / log / commands. */
body[data-view="battle"] .sky:after {
  opacity: 0.12;
}
.mission {
  background: #f3eee2;
  color: #344453;
  border: 1px solid #b7aa90;
  border-left: 3px solid var(--region-accent);
  border-radius: 5px;
  --gold: #73592d;
}
.mission p {
  color: #586675;
}
.mission strong {
  color: #344453;
}
.mission .mission-act {
  color: #416373;
}
.mission small {
  color: #596774;
}
.mission .text-link {
  color: #2f6174;
}
.battle-grid {
  gap: 12px;
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr);
}
.unit-side {
  background: #283949;
  border-color: #8a98a3;
  border-radius: 5px;
}
.side-title {
  color: #e3ebec;
  background: #33495b;
  border-color: #7f8c90;
}
.unit-side:first-child .side-title {
  border-left: 3px solid #d9968c;
}
.unit-side:last-child .side-title {
  border-left: 3px solid #95c3b5;
}
.unit {
  background: #3b5062;
  color: #f4f0e6;
  border: 1px solid #85979e;
  border-radius: 5px;
}
.unit[data-element] .portrait {
  border-color: var(--element);
}
.unit.selected {
  border-color: #edd39a;
  background: #4b5e6b;
}
.unit.actor {
  box-shadow: inset 3px 0 0 #c4e5df;
}
.unit .portrait {
  border-radius: 50%;
  background: #263747;
}
.unit-tier {
  color: #f2d9a7;
}
.bar {
  background: #22323f;
  border-radius: 3px;
}
.bar > i {
  background: #a4d3a0;
}
.bar.energy > i {
  background: #e6cd8b;
}
.tags span {
  background: #293d4c;
  border-color: #92a5ad;
  color: #e2edf1;
  border-radius: 3px;
}
.tags .res {
  background: #535449;
  color: #fff2ce;
  border-color: #cdbb91;
}
.side-stack {
  grid-template-areas: "skills" "file" "log";
  grid-template-rows: minmax(100px, 1fr) auto minmax(70px, 0.55fr);
  gap: 10px;
}
.battle-skills {
  grid-area: skills;
  background: #f3eee2;
  color: #344453;
  border-color: #c1b59b;
  border-radius: 5px;
}
.ability-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344453;
}
.battle-skills .element-mark {
  color: #4d6470;
}
.battle-file {
  grid-area: file;
  --text: #344453;
  --gold: #72582b;
  --blue: #2f6174;
  --muted: #596774;
  background: #e8e2d5;
  border-color: #b8af9b;
  color: #344453;
  border-radius: 5px;
}
.battle-file .file-summary p {
  color: #596774;
}
.battle-file .text-link {
  color: #2f6174;
}
.combat-log {
  grid-area: log;
  background: #2c4052;
  border-color: #8496a3;
  color: #eef2ee;
  border-radius: 5px;
}
.combat-log p {
  border-color: #7e8c9840;
}
.combat-log small {
  color: #c7d2db;
}
.combat-log .ally {
  color: #d2eee7;
}
.combat-log .enemy {
  color: #ffcec6;
}
.log-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  position: sticky;
  top: -10px;
  background: #2c4052;
  padding: 3px 0 7px;
  font-size: 13px;
  border-bottom: 1px solid #748595;
  margin-bottom: 6px;
  z-index: 1;
}
.log-heading small {
  color: #c7d2db;
}
.command-bar {
  background: #f3eee2;
  border-color: #c2b79e;
  border-radius: 6px;
  color: #344453;
  box-shadow: 0 3px 10px #11233230;
}
.command-meta {
  color: #5c573f;
}
.branch-box select {
  color-scheme: light;
  background: #fffcf5;
  color: #344453;
  border-color: #aca38f;
  border-radius: 4px;
}
.commands {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.commands button {
  background: #e8e1d2;
  color: #344453;
  border-color: #b5aa92;
  padding: 7px 6px;
  font-size: 13px;
}
.commands .skill-btn {
  background: #42596c;
  color: #fff4da;
  border-color: #b5a478;
  border-radius: 5px;
}
.commands .skill-btn:hover {
  background: #536d81;
}
.commands .skill-btn:disabled {
  background: #697681;
  color: #eef0ed;
  opacity: 0.7;
}
.action-label {
  display: block;
  white-space: nowrap;
}
.action-name {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 12px;
  opacity: 0.95;
}
.battle-tabs button {
  background: #3b4c5e;
  border-color: #b6ad98;
  border-radius: 5px;
  color: #f2eee5;
}
.battle-tabs button.chosen {
  background: #f3eee2;
  color: #344453;
  border-color: #ebd19c;
}

@media (max-width: 1050px) {
  .hero .creation-panel {
    padding: 24px;
  }
  .hero-modes {
    grid-template-columns: 1fr;
  }
  .title-copy {
    padding: 36px 28px;
  }
  .commands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 920px) {
  .action-name {
    display: none;
  }
  .battle-page:not([data-tab="arena"]) .side-stack {
    gap: 0;
  }
  .battle-skills,
  .battle-file,
  .combat-log {
    flex: 1;
  }
  .commands button {
    min-height: 44px;
  }
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .title-art {
    min-height: 410px;
  }
  .hero-scenery {
    background-position: 48% 15%;
  }
  .hero-scenery:after {
    background: linear-gradient(
      180deg,
      #21364800 20%,
      #263747bb 53%,
      #263747 79%
    );
  }
  .scene-caption {
    left: 22px;
    top: 20px;
    font-size: 12px;
  }
  .title-copy {
    padding: 170px 22px 22px;
  }
  .title-copy h1 {
    font-size: 38px;
  }
  .title-copy h1 span {
    display: inline;
    margin-left: 8px;
  }
  .title-art p {
    font-size: 13px;
    margin-top: 12px;
  }
  .title-art .facts {
    margin-top: 18px;
    padding-top: 14px;
    gap: 26px;
  }
  .facts strong {
    font-size: 26px;
  }
  .hero .creation-panel {
    padding: 22px 18px;
    border-left: 0;
    border-top: 1px solid #c4bca9;
  }
  .panel-heading {
    margin-bottom: 16px;
    gap: 12px;
  }
  .panel-heading h2 {
    font-size: 24px;
  }
  .hero-modes {
    grid-template-columns: 1fr;
  }
  .creation-panel .mode {
    padding: 12px;
  }
  .home-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .triptych article {
    gap: 12px;
    padding: 20px 6px;
  }
  .camp-cover {
    height: 106px;
  }
  .camp-cover span {
    bottom: 12px;
    left: 14px;
  }
  .camp-info {
    padding: 18px;
  }
  .wheel-center span {
    font-size: 12px;
  }
  .wheel-center .ui-icon {
    width: 38px;
    height: 38px;
  }
  .wheel-controls {
    margin-bottom: 10px;
  }
  .options-head {
    padding: 12px 16px;
  }
  .option {
    padding: 12px 14px;
  }
  .chapter-card {
    padding-top: 96px;
  }
  .library-card {
    padding: 15px;
  }
  .library-card .portrait {
    width: 52px;
    height: 52px;
  }
  .library-card h3 {
    font-size: 15px;
  }
  .card-category {
    flex-wrap: wrap;
    gap: 4px;
  }
  header .brand {
    font-size: 19px;
    letter-spacing: 0.04em;
  }
  nav button {
    font-size: 12px;
    padding: 6px 8px;
    min-height: 40px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .commands {
    gap: 5px;
  }
  .commands button {
    padding: 6px 2px;
    font-size: 12px;
  }
  .command-bar {
    padding: 6px 8px;
  }
  .battle-grid {
    gap: 6px;
  }
  .ability-heading {
    gap: 8px;
    flex-wrap: wrap;
  }
}
@media (max-width: 360px) {
  .title-copy h1 {
    font-size: 31px;
  }
  .title-copy h1 span {
    margin-left: 6px;
  }
  .title-art {
    min-height: 390px;
  }
  .wheel-wrap {
    width: 100%;
    max-width: 340px;
  }
  .wheel-center span {
    font-size: 12px;
  }
}
@media (max-height: 500px) and (max-width: 920px) {
  .commands {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .commands button {
    min-height: 34px;
  }
  .command-bar {
    padding: 4px 8px;
  }
}
@media (max-width: 340px) and (max-height: 650px) {
  nav button {
    padding: 5px;
  }
  .commands button {
    min-height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  .hero-scenery {
    animation: none;
  }
}
