/* Western fantasy visual system. Loaded after the legacy stylesheet. */
:root {
  --wf-bg-deep: #0e1115;
  --wf-bg-iron: #171b20;
  --wf-bg-iron-soft: #22272d;
  --wf-bg-leather: #3b241b;
  --wf-parchment: #e9dfc8;
  --wf-parchment-soft: #f3ead7;
  --wf-parchment-deep: #d8c7a7;
  --wf-ink: #241d18;
  --wf-ink-muted: #685c4b;
  --wf-ivory: #f4ead4;
  --wf-bronze: #a7773d;
  --wf-bronze-bright: #d0a866;
  --wf-bronze-dark: #5b3b20;
  --wf-garnet: #7e2f2c;
  --wf-garnet-bright: #a8493e;
  --wf-sapphire: #315a70;
  --wf-emerald: #3f6a55;
  --wf-line-dark: rgba(31, 24, 18, 0.72);
  --wf-line-light: rgba(202, 164, 99, 0.54);
  --wf-shadow: rgba(0, 0, 0, 0.48);
  --wf-font-display: "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
  --wf-font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --hs-font-sans: var(--wf-font-body);
  --hs-color-bg: var(--wf-bg-deep);
  --hs-color-surface: var(--wf-parchment-soft);
  --hs-color-surface-soft: var(--wf-parchment);
  --hs-color-surface-raised: #fbf2df;
  --hs-color-text: var(--wf-ink);
  --hs-color-text-muted: var(--wf-ink-muted);
  --hs-color-text-subtle: #82745f;
  --hs-color-border: rgba(91, 59, 32, 0.28);
  --hs-color-border-strong: rgba(91, 59, 32, 0.58);
  --hs-color-primary: var(--wf-garnet);
  --hs-color-primary-strong: #5f211f;
  --hs-color-primary-soft: #ead7c4;
  --hs-color-accent: var(--wf-bronze-bright);
  --hs-color-accent-strong: var(--wf-bronze-dark);
  --hs-color-success: var(--wf-emerald);
  --hs-color-warning: #9b6a2f;
  --hs-color-danger: #9b3832;
  --hs-color-info: var(--wf-sapphire);
  --hs-radius-sm: 4px;
  --hs-radius-md: 6px;
  --hs-radius-lg: 8px;
  --hs-shadow-sm: 0 3px 8px rgba(0, 0, 0, 0.16);
  --hs-shadow-md: 0 12px 28px rgba(0, 0, 0, 0.28);
  --hs-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.46);
}

/* Gameplay depth 1.4.0 */
.combat-intent-panel,
.adventure-decision-panel,
.forge-tracking-panel,
.endgame-challenge-panel {
  border: 1px solid rgba(190, 148, 72, 0.58);
  background: rgba(17, 18, 24, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 234, 178, 0.06);
  padding: 12px;
  margin-bottom: 12px;
}

.combat-intent-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 1.3fr);
  gap: 12px;
  border-left: 4px solid #b9443d;
}

.combat-intent-panel.is-countered {
  border-left-color: #4f9b76;
  background: rgba(20, 41, 34, 0.94);
}

.combat-intent-panel.is-interrupted {
  border-color: rgba(108, 188, 143, 0.72);
}

.combat-intent-heading,
.adventure-decision-heading,
.endgame-challenge-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.combat-intent-heading > span,
.adventure-decision-heading > span,
.endgame-challenge-heading > div > span {
  color: #d6b66f;
  font-size: 12px;
}

.combat-intent-heading strong,
.adventure-decision-heading strong,
.endgame-challenge-heading strong {
  color: #fff0c6;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.combat-intent-heading em {
  color: #d7d0c0;
  font-style: normal;
  font-size: 12px;
}

.combat-intent-panel p,
.adventure-decision-heading small,
.endgame-challenge-heading small {
  margin: 0;
  color: #c9c3b7;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.combat-intent-counter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 3px 10px;
  min-width: 0;
}

.combat-intent-counter b {
  color: #d6b66f;
}

.combat-intent-counter span {
  color: #f3ead6;
  overflow-wrap: anywhere;
}

.combat-intent-counter small {
  grid-column: 1 / -1;
  color: #a9a295;
}

.adventure-decision-heading {
  margin-bottom: 10px;
}

.theme-western-fantasy .adventure-choice-grid,
.theme-western-fantasy .dungeon-route-grid,
.theme-western-fantasy .endgame-challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.theme-western-fantasy .adventure-choice-grid button,
.theme-western-fantasy .dungeon-route-grid button,
.theme-western-fantasy .endgame-challenge-grid button {
  min-width: 0;
  min-height: 112px;
  padding: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  border: 1px solid rgba(176, 137, 68, 0.45);
  background: rgba(38, 34, 30, 0.92);
}

.theme-western-fantasy .adventure-choice-grid button:hover:not(:disabled),
.theme-western-fantasy .dungeon-route-grid button:hover:not(:disabled),
.theme-western-fantasy .endgame-challenge-grid button:hover:not(:disabled) {
  border-color: rgba(227, 187, 104, 0.86);
  background: rgba(55, 45, 35, 0.96);
}

.theme-western-fantasy .adventure-choice-grid strong,
.theme-western-fantasy .dungeon-route-grid strong,
.theme-western-fantasy .endgame-challenge-grid strong {
  color: #f5e7c2;
  overflow-wrap: anywhere;
}

.theme-western-fantasy .adventure-choice-grid span,
.theme-western-fantasy .dungeon-route-grid span,
.theme-western-fantasy .endgame-challenge-grid span {
  color: #c7c0b3;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.theme-western-fantasy .adventure-choice-grid small,
.theme-western-fantasy .dungeon-route-grid small,
.theme-western-fantasy .endgame-challenge-grid small {
  color: #a89b84;
  overflow-wrap: anywhere;
}

.theme-western-fantasy .adventure-choice-grid em,
.theme-western-fantasy .dungeon-route-grid em,
.theme-western-fantasy .endgame-challenge-grid em {
  margin-top: auto;
  color: #d8b96f;
  font-style: normal;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.theme-western-fantasy .adventure-choice-grid button:disabled,
.theme-western-fantasy .dungeon-route-grid button:disabled,
.theme-western-fantasy .endgame-challenge-grid button:disabled {
  opacity: 1;
  filter: none;
  background: #30302d;
  border-color: #676354;
  box-shadow: none;
  cursor: not-allowed;
}

.dungeon-route-wait {
  padding: 10px;
  border: 1px solid rgba(133, 105, 61, 0.42);
  color: #c8b995;
  background: rgba(25, 23, 22, 0.72);
}

.forge-tracking-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.forge-tracking-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(162, 127, 68, 0.45);
  background: rgba(32, 30, 27, 0.9);
  padding: 9px;
  min-width: 0;
}

.forge-tracking-card.is-ready {
  border-color: rgba(92, 165, 119, 0.72);
}

.forge-tracking-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.forge-tracking-card strong,
.forge-tracking-card span {
  overflow-wrap: anywhere;
}

.forge-tracking-card span {
  color: #bcb4a7;
  font-size: 12px;
}

.forge-recipe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 6px;
  align-items: stretch;
}

.forge-recipe-row.is-tracked {
  outline: 1px solid rgba(219, 178, 91, 0.58);
  outline-offset: 2px;
}

.forge-recipe-row .forge-button {
  width: 100%;
}

.forge-track-button {
  min-height: 44px;
  padding: 6px;
  font-size: 12px;
}

.forge-track-button.is-active {
  color: #251c0e;
  background: #d2ad61;
}

.city-relation-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0;
}

.city-relation-benefits span {
  padding: 3px 6px;
  border: 1px solid rgba(168, 132, 71, 0.38);
  color: #cbbd9d;
  font-size: 11px;
}

.city-npc-gift-button {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
}

.endgame-challenge-heading {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 820px) {
  .combat-intent-panel {
    grid-template-columns: 1fr;
  }

  .theme-western-fantasy .adventure-choice-grid,
  .theme-western-fantasy .dungeon-route-grid,
  .theme-western-fantasy .endgame-challenge-grid,
  .forge-tracking-list {
    grid-template-columns: 1fr;
  }

  .theme-western-fantasy .adventure-choice-grid button,
  .theme-western-fantasy .dungeon-route-grid button,
  .theme-western-fantasy .endgame-challenge-grid button {
    min-height: 96px;
  }
}

@media (max-width: 520px) {
  .combat-intent-panel,
  .adventure-decision-panel,
  .forge-tracking-panel,
  .endgame-challenge-panel {
    padding: 9px;
  }

  .forge-recipe-row {
    grid-template-columns: 1fr;
  }

  .forge-track-button {
    width: 100%;
  }

  .endgame-challenge-heading {
    flex-direction: column;
  }
}

.theme-western-fantasy {
  --bg: var(--wf-bg-deep);
  --panel: var(--wf-parchment);
  --panel-strong: var(--wf-parchment-soft);
  --ink: var(--wf-ink);
  --muted: var(--wf-ink-muted);
  --line: rgba(91, 59, 32, 0.28);
  --line-dark: var(--wf-bronze-dark);
  --gold: var(--wf-bronze-bright);
  --gold-dark: var(--wf-bronze-dark);
  --gold-light: #ead19a;
  --red: var(--wf-garnet);
  --blue: var(--wf-sapphire);
  --green: var(--wf-emerald);
  --violet: #66547b;
  --shadow: var(--wf-shadow);
  --radius: 6px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(9, 11, 14, 0.64), rgba(8, 10, 13, 0.9)),
    url("assets/sky_fantasy_backdrop.png") center top / cover fixed no-repeat;
  color: var(--wf-ink);
  font-family: var(--wf-font-body);
  letter-spacing: 0;
}

.theme-western-fantasy::before {
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.62), transparent 28%, transparent 72%, rgba(7, 8, 10, 0.62)),
    linear-gradient(180deg, rgba(12, 15, 18, 0.12), rgba(8, 10, 12, 0.72));
}

.theme-western-fantasy *,
.theme-western-fantasy *::before,
.theme-western-fantasy *::after {
  box-sizing: border-box;
}

.theme-western-fantasy * {
  scrollbar-color: var(--wf-bronze) rgba(21, 24, 28, 0.38);
  scrollbar-width: thin;
}

.theme-western-fantasy *::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.theme-western-fantasy *::-webkit-scrollbar-track {
  background: rgba(21, 24, 28, 0.32);
}

.theme-western-fantasy *::-webkit-scrollbar-thumb {
  border: 2px solid rgba(21, 24, 28, 0.5);
  border-radius: 6px;
  background: var(--wf-bronze);
}

.theme-western-fantasy .app-shell {
  min-height: 100vh;
  padding: 14px;
}

.theme-western-fantasy .game {
  width: min(1480px, 100%);
  min-height: calc(100vh - 28px);
  overflow: clip;
  border: 1px solid #0a0c0f;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 22, 26, 0.76), rgba(11, 13, 16, 0.92)),
    url("assets/sky_fantasy_backdrop.png") center 28% / cover fixed no-repeat;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(208, 168, 102, 0.58),
    inset 0 0 0 5px rgba(15, 17, 20, 0.94);
  padding: 12px;
}

.theme-western-fantasy .game::before {
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.08), rgba(10, 12, 15, 0.52) 45%, rgba(8, 10, 12, 0.78)),
    linear-gradient(90deg, rgba(58, 36, 26, 0.16), transparent 24%, transparent 76%, rgba(58, 36, 26, 0.16));
}

.theme-western-fantasy .game::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 0;
  border: 1px solid rgba(208, 168, 102, 0.32);
  border-radius: 4px;
  pointer-events: none;
}

.theme-western-fantasy :where(.topbar, .module-nav, .status-strip, .shell-goal-bar, .play-layout, .creation, .hero-panel, .mobile-bottom-nav, .hs-modal, .hs-toast-stack) {
  position: relative;
  z-index: 1;
}

.theme-western-fantasy :where(h1, h2, h3, .panel-header strong, .module-shell-header h2, .combat-header-v3 h2) {
  font-family: var(--wf-font-display);
  letter-spacing: 0;
}

.theme-western-fantasy button,
.theme-western-fantasy input,
.theme-western-fantasy select,
.theme-western-fantasy textarea {
  font-family: var(--wf-font-body);
  letter-spacing: 0;
}

.theme-western-fantasy button {
  min-height: 40px;
  border: 1px solid var(--wf-bronze-dark);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(89, 60, 37, 0.08)),
    var(--wf-parchment-soft);
  color: var(--wf-ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 232, 0.48),
    0 2px 6px rgba(0, 0, 0, 0.16);
  font-weight: 700;
}

.theme-western-fantasy button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--wf-bronze-bright);
  background:
    linear-gradient(180deg, rgba(255, 251, 232, 0.62), rgba(112, 73, 39, 0.08)),
    #f5ead2;
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 232, 0.62),
    0 5px 12px rgba(0, 0, 0, 0.2);
}

.theme-western-fantasy button:active:not(:disabled) {
  transform: translateY(0);
}

.theme-western-fantasy button:focus-visible,
.theme-western-fantasy input:focus-visible,
.theme-western-fantasy select:focus-visible,
.theme-western-fantasy textarea:focus-visible {
  outline: 2px solid var(--wf-bronze-bright);
  outline-offset: 2px;
}

.theme-western-fantasy button:disabled {
  filter: grayscale(0.45);
  opacity: 0.48;
}

.theme-western-fantasy :where(input, select, textarea) {
  min-height: 42px;
  border: 1px solid rgba(91, 59, 32, 0.64);
  border-radius: 5px;
  background: #f7efdf;
  color: var(--wf-ink);
  box-shadow:
    inset 0 2px 5px rgba(69, 43, 24, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.32);
}

.theme-western-fantasy :where(input, textarea)::placeholder {
  color: #8b7c67;
}

.theme-western-fantasy .topbar {
  grid-template-columns: minmax(300px, 0.95fr) minmax(440px, 1.35fr) auto;
  gap: 10px;
  border: 1px solid #090b0d;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(52, 58, 64, 0.96), rgba(19, 22, 26, 0.98)),
    #171b20;
  box-shadow:
    inset 0 0 0 1px rgba(208, 168, 102, 0.62),
    inset 0 -3px 0 rgba(91, 59, 32, 0.44),
    0 8px 20px rgba(0, 0, 0, 0.32);
  padding: 10px 12px;
}

.theme-western-fantasy .brand {
  align-items: center;
  gap: 11px;
}

.theme-western-fantasy .seal {
  width: 54px;
  height: 54px;
  border: 1px solid #100d0a;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(210, 169, 102, 0.38), transparent 46%),
    #53261f;
  box-shadow:
    inset 0 0 0 2px rgba(208, 168, 102, 0.68),
    inset 0 0 14px rgba(0, 0, 0, 0.52),
    0 4px 10px rgba(0, 0, 0, 0.38);
  color: #f1d69d;
  font-family: var(--wf-font-display);
  font-size: 20px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.72);
}

.theme-western-fantasy .brand h1 {
  color: var(--wf-ivory);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 #2a1710, 0 4px 12px rgba(0, 0, 0, 0.52);
}

.theme-western-fantasy .brand p {
  max-width: 560px;
  color: #bfb29b;
  font-size: 12px;
  line-height: 1.45;
  text-shadow: none;
}

.theme-western-fantasy .release-badge {
  border: 1px solid rgba(208, 168, 102, 0.62);
  border-radius: 4px;
  background: rgba(8, 10, 13, 0.72);
  color: #dfc590;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 210, 0.08);
}

.theme-western-fantasy .top-actions {
  align-content: center;
}

.theme-western-fantasy :where(.top-actions button, .ghost-button, .account-panel button) {
  border-color: rgba(208, 168, 102, 0.58);
  background:
    linear-gradient(180deg, rgba(74, 82, 89, 0.96), rgba(24, 28, 33, 0.98)),
    #22272d;
  color: var(--wf-ivory);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.68);
}

.theme-western-fantasy :where(.top-actions button, .ghost-button, .account-panel button):hover:not(:disabled) {
  border-color: var(--wf-bronze-bright);
  background: linear-gradient(180deg, #596168, #292e34);
}

.theme-western-fantasy .account-panel,
.theme-western-fantasy .account-panel.is-logged-in {
  border: 1px solid rgba(208, 168, 102, 0.34);
  border-radius: 5px;
  background: rgba(6, 8, 10, 0.5);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.36);
}

.theme-western-fantasy .account-panel small,
.theme-western-fantasy .account-panel span small {
  color: #aa9c85;
}

.theme-western-fantasy .shell-resource-bar {
  gap: 5px;
}

.theme-western-fantasy .shell-resource-bar span {
  border: 1px solid rgba(208, 168, 102, 0.28);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(55, 61, 67, 0.92), rgba(20, 23, 27, 0.94)),
    #20252a;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 215, 0.04);
  padding: 6px 8px;
}

.theme-western-fantasy .shell-resource-bar small {
  color: #ad9b7c;
}

.theme-western-fantasy .shell-resource-bar strong {
  color: var(--wf-ivory);
}

.theme-western-fantasy .shell-resource-bar em {
  color: #d2ad6e;
}

.theme-western-fantasy .shell-resource-bar .is-danger {
  border-color: rgba(168, 73, 62, 0.74);
  background: linear-gradient(180deg, rgba(111, 42, 38, 0.94), rgba(43, 20, 20, 0.96));
}

.theme-western-fantasy .module-nav {
  gap: 6px;
  border: 1px solid #090b0d;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(40, 45, 50, 0.98), rgba(16, 19, 22, 0.98)),
    #171b20;
  box-shadow:
    inset 0 0 0 1px rgba(208, 168, 102, 0.42),
    0 7px 18px rgba(0, 0, 0, 0.28);
  padding: 6px;
}

.theme-western-fantasy .game-shell-v2 .desktop-module-nav {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.theme-western-fantasy .game-shell-v2 .module-nav-button {
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  min-height: 54px;
  border: 1px solid rgba(208, 168, 102, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(60, 66, 72, 0.72), rgba(24, 27, 31, 0.84)),
    #252a2f;
  color: #d8cbb5;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 224, 0.03);
  padding: 7px 8px;
  text-shadow: none;
}

.theme-western-fantasy .game-shell-v2 .module-nav-button::before {
  content: "";
  display: block;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(208, 168, 102, 0.36);
  border-radius: 4px;
  background-color: #15191d;
  background-image: url("assets/ui_nav_icons_flat.png");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.36);
  filter: saturate(0.58) sepia(0.2) brightness(0.9);
}

.theme-western-fantasy .game-shell-v2 .module-nav-button[data-module="adventure"]::before { background-position: 0% 0%; }
.theme-western-fantasy .game-shell-v2 .module-nav-button[data-module="character"]::before { background-position: 33.333% 0%; }
.theme-western-fantasy .game-shell-v2 .module-nav-button[data-module="items"]::before { background-position: 100% 100%; }
.theme-western-fantasy .game-shell-v2 .module-nav-button[data-module="world"]::before { background-position: 66.666% 0%; }
.theme-western-fantasy .game-shell-v2 .module-nav-button[data-module="city"]::before { background-position: 100% 0%; }
.theme-western-fantasy .game-shell-v2 .module-nav-button[data-module="forge"]::before { background-position: 0% 100%; }
.theme-western-fantasy .game-shell-v2 .module-nav-button[data-module="quests"]::before { background-position: 33.333% 100%; }
.theme-western-fantasy .game-shell-v2 .module-nav-button[data-module="career"]::before { background-position: 66.666% 100%; }
.theme-western-fantasy .game-shell-v2 .module-nav-button[data-module="log"]::before { background-position: 33.333% 100%; }

.theme-western-fantasy .game-shell-v2 .module-nav-button i {
  display: none;
}

.theme-western-fantasy .game-shell-v2 .module-nav-button:is([data-module="settings"], [data-module="online"])::before {
  display: none;
}

.theme-western-fantasy .game-shell-v2 .module-nav-button:is([data-module="settings"], [data-module="online"]) i {
  display: grid;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(208, 168, 102, 0.36);
  border-radius: 4px;
  background: #15191d;
  color: #d0a866;
}

.theme-western-fantasy .game-shell-v2 .module-nav-button strong {
  color: #e9ddc6;
  font-size: 13px;
}

.theme-western-fantasy .game-shell-v2 .module-nav-button span {
  color: #9f927e;
  font-size: 10px;
}

.theme-western-fantasy .game-shell-v2 .module-nav-button:hover:not(:disabled) {
  border-color: rgba(208, 168, 102, 0.62);
  background: linear-gradient(180deg, #4a4f53, #272b2f);
}

.theme-western-fantasy .game-shell-v2 .module-nav-button.is-active {
  border-color: var(--wf-bronze-bright);
  background:
    linear-gradient(180deg, rgba(143, 59, 53, 0.96), rgba(74, 28, 28, 0.98)),
    var(--wf-garnet);
  box-shadow:
    inset 0 0 0 1px rgba(244, 218, 165, 0.16),
    0 0 0 1px rgba(67, 32, 24, 0.66),
    0 4px 12px rgba(0, 0, 0, 0.32);
}

.theme-western-fantasy .game-shell-v2 .module-nav-button.is-active :where(strong, span) {
  color: #f3e4c7;
}

.theme-western-fantasy .game-shell-v2 .module-nav-button.is-active::before {
  border-color: #e0ba74;
  filter: saturate(0.72) sepia(0.12) brightness(1.08);
}

.theme-western-fantasy .status-strip {
  gap: 6px;
}

.theme-western-fantasy .status-strip div {
  min-height: 48px;
  border: 1px solid rgba(208, 168, 102, 0.3);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(52, 57, 62, 0.94), rgba(20, 23, 27, 0.96)),
    #20252a;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.04), 0 3px 8px rgba(0, 0, 0, 0.22);
  padding: 7px 9px;
}

.theme-western-fantasy .status-strip span {
  color: #a89677;
}

.theme-western-fantasy .status-strip strong {
  color: #eee2cd;
  text-shadow: none;
}

.theme-western-fantasy .status-strip .is-danger {
  border-color: rgba(168, 73, 62, 0.7);
  background: linear-gradient(180deg, #64302c, #2c1818);
}

.theme-western-fantasy .panel,
.theme-western-fantasy .hs-panel,
.theme-western-fantasy .hs-card,
.theme-western-fantasy .module-shell-header,
.theme-western-fantasy :where(.consumable-panel, .equipment-panel, .shop-panel, .forge-panel, .city-module, .career-module, .settings-module-v5) {
  border-color: var(--wf-bronze-dark);
  border-radius: 6px;
}

.theme-western-fantasy .panel,
.theme-western-fantasy .hs-panel,
.theme-western-fantasy .hs-card {
  background:
    linear-gradient(180deg, rgba(255, 251, 238, 0.2), rgba(97, 64, 38, 0.03)),
    var(--wf-parchment);
  box-shadow:
    inset 0 0 0 1px rgba(255, 249, 228, 0.52),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.theme-western-fantasy .panel-header,
.theme-western-fantasy .hs-panel__header,
.theme-western-fantasy .hs-card__header,
.theme-western-fantasy .module-shell-header,
.theme-western-fantasy :where(.consumable-title, .equipment-title, .shop-title, .forge-panel-head) {
  border-color: var(--wf-bronze-dark);
  background:
    linear-gradient(180deg, rgba(65, 71, 76, 0.98), rgba(23, 26, 30, 0.99)),
    #20252a;
  box-shadow:
    inset 0 0 0 1px rgba(208, 168, 102, 0.34),
    inset 0 -2px 0 rgba(91, 59, 32, 0.42);
}

.theme-western-fantasy .module-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 12px 14px;
}

.theme-western-fantasy .module-shell-header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.theme-western-fantasy .module-shell-header :where(span, h2, p) {
  margin: 0;
}

.theme-western-fantasy .module-shell-header > div > span {
  color: #b8a78c;
  font-size: 11px;
  font-weight: 800;
}

.theme-western-fantasy .module-shell-header h2 {
  color: var(--wf-ivory);
  font-size: 24px;
  line-height: 1.15;
}

.theme-western-fantasy .module-shell-header p {
  color: #c2b39b;
  font-size: 12px;
  line-height: 1.45;
}

.theme-western-fantasy :where(.panel-header h2, .panel-header h3, .hs-panel__title strong, .hs-card__title strong, .module-shell-header h2, .consumable-title strong, .equipment-title strong, .shop-title strong, .forge-panel-head strong) {
  color: var(--wf-ivory);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.54);
}

.theme-western-fantasy :where(.module-shell-header span, .module-shell-header p, .consumable-title span, .equipment-title span, .shop-title span, .forge-panel-head span, .hs-panel__title span) {
  color: #ae9e86;
}

.theme-western-fantasy :where(.panel-body, .main-content, .side-content, .hs-panel__body) {
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.38), rgba(111, 76, 43, 0.04)),
    var(--wf-parchment);
  color: var(--wf-ink);
}

.theme-western-fantasy .badge,
.theme-western-fantasy .hs-badge {
  border: 1px solid rgba(91, 59, 32, 0.48);
  border-radius: 4px;
  background: #e1d1b4;
  color: #54361f;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 232, 0.38);
}

.theme-western-fantasy :where(.current-goal, .battle-result-card, .boss-rematch-prep-card, .city-board, .city-npc-panel, .live-situation, .live-latest, .shop-guidance, .forge-guidance, .simple-map-current, .road-current, .road-targets button, .city-shop-card, .quest-card, .stat-row, .inventory-row, .equipment-slot, .skill-chip, .city-event-list button, .city-fast-route-list button, .settings-v5-card, .settings-v5-section, .adventure-v5-summary > div, .quest-v5-stage, .quest-v5-focus, .shop-v5-summary > div, .adventure-context > div) {
  border: 1px solid rgba(91, 59, 32, 0.34);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.48), rgba(105, 70, 39, 0.05)),
    #eadfc9;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 232, 0.34);
}

.theme-western-fantasy :where(.current-goal-main strong, .adventure-context strong, .city-board > strong, .city-npc-panel strong, .battle-result-heading strong, .boss-rematch-copy strong, .quest-card-heading strong, .simple-map-current strong, .road-current strong, .zone-title, .fighter h3, .forge-panel-head strong, .shop-title strong) {
  color: #55341f;
}

.theme-western-fantasy .shell-goal-bar .current-goal.is-shell {
  border: 1px solid rgba(208, 168, 102, 0.58);
  background:
    linear-gradient(90deg, rgba(63, 38, 27, 0.12), transparent 34%),
    #e8dcc4;
}

.theme-western-fantasy .shell-goal-bar .current-goal.is-combat {
  border-color: rgba(157, 61, 55, 0.66);
  background:
    linear-gradient(90deg, rgba(126, 47, 44, 0.2), transparent 42%),
    #e6d7bd;
}

.theme-western-fantasy .shell-goal-bar .current-goal-main strong {
  color: #6d2d29;
}

.theme-western-fantasy .shell-goal-bar .goal-action-button {
  border-color: #4c1b1a;
  background: linear-gradient(180deg, #9d453c, #652322);
  color: #f6e7cc;
  box-shadow: inset 0 0 0 1px rgba(235, 194, 133, 0.2), 0 3px 8px rgba(0, 0, 0, 0.22);
}

.theme-western-fantasy .shell-goal-bar .goal-action-button :where(strong, small) {
  color: #f6e7cc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

.theme-western-fantasy .shell-goal-bar .goal-action-button .goal-action-meta {
  background: rgba(24, 10, 10, 0.28);
  color: #efd7aa;
}

.theme-western-fantasy :where(.goal-action-button, .primary-button, .full-button.trial-button, .action-button.primary-button, .combat-buttons .primary-button, .command-grid .attack, .hs-button--primary) {
  border-color: #4c1b1a;
  background:
    linear-gradient(180deg, rgba(184, 84, 70, 0.54), rgba(63, 20, 20, 0.1)),
    var(--wf-garnet);
  color: #f8ead0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(235, 194, 133, 0.2),
    0 3px 8px rgba(0, 0, 0, 0.24);
}

.theme-western-fantasy :where(.goal-action-button, .primary-button, .full-button.trial-button, .action-button.primary-button, .combat-buttons .primary-button, .hs-button--primary):hover:not(:disabled) {
  border-color: var(--wf-bronze-bright);
  background: linear-gradient(180deg, var(--wf-garnet-bright), #6f2725);
}

.theme-western-fantasy :where(.goal-action-button, .primary-button, .action-button.primary-button) :where(strong, span, small) {
  color: #f5e5c6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.theme-western-fantasy :where(.action-button, .city-place-action, .shop-title-action, .tab-button, .forge-filter-tabs button, .shop-filter-tabs button, .item-category-tabs button, .compact-tabs button, .main-tabs button, .combat-buttons button, .combat-skill-list button, .forge-button, .equip-button, .simple-destination-card, .zone-button, .road-node, .city-map-card, .managed-item-summary) {
  border-color: rgba(91, 59, 32, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.54), rgba(107, 71, 39, 0.07)),
    #eee4d0;
  color: var(--wf-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 232, 0.38), 0 2px 5px rgba(0, 0, 0, 0.12);
}

.theme-western-fantasy :where(.action-button strong, .forge-button b, .equip-button b, .managed-item-summary b) {
  color: #50311e;
}

.theme-western-fantasy :where(.tab-button.is-active, .forge-filter-tabs button.is-active, .shop-filter-tabs button.is-active, .item-category-tabs button.is-active, .compact-tabs button.is-active, .main-tabs button.is-active, .city-places button.is-active, .managed-item-summary.is-active) {
  border-color: var(--wf-bronze-bright);
  background:
    linear-gradient(180deg, rgba(96, 105, 111, 0.98), rgba(33, 37, 41, 0.99)),
    #272c31;
  color: #f2e5cf;
  text-shadow: none;
}

.theme-western-fantasy :where(.tab-button.is-active, .forge-filter-tabs button.is-active, .shop-filter-tabs button.is-active, .item-category-tabs button.is-active, .compact-tabs button.is-active, .main-tabs button.is-active, .city-places button.is-active, .managed-item-summary.is-active) * {
  color: #f2e5cf !important;
}

.theme-western-fantasy .game-shell-v2 :is(
  .tab-button.is-active,
  .forge-filter-tabs button.is-active,
  .shop-filter-tabs button.is-active,
  .item-category-tabs button.is-active,
  .compact-tabs button.is-active,
  .main-tabs button.is-active,
  .city-places button.is-active
) {
  border-color: var(--wf-bronze-bright);
  background: linear-gradient(180deg, #555c61, #272c31);
  color: #f2e5cf;
}

.theme-western-fantasy .game-shell-v2 :is(
  .tab-button.is-active,
  .forge-filter-tabs button.is-active,
  .shop-filter-tabs button.is-active,
  .item-category-tabs button.is-active,
  .compact-tabs button.is-active,
  .main-tabs button.is-active,
  .city-places button.is-active
) * {
  color: #f2e5cf !important;
}

.theme-western-fantasy .game-shell-v2 .managed-item-summary:not(.is-active) b {
  color: #38281d !important;
}

.theme-western-fantasy .game-shell-v2 .managed-item-summary:not(.is-active) small {
  color: #71634f !important;
}

.theme-western-fantasy .game-shell-v2 .managed-item-summary:not(.is-active) > strong {
  color: #7e2f2c !important;
}

.theme-western-fantasy .game-shell-v2 .managed-item-summary.is-active {
  border-color: var(--wf-bronze-bright);
  background: linear-gradient(180deg, #555c61, #272c31);
  box-shadow: inset 0 0 0 1px rgba(244, 218, 165, 0.1), 0 3px 8px rgba(0, 0, 0, 0.2);
}

.theme-western-fantasy .game-shell-v2 .managed-item-summary.is-active :where(b, small, strong) {
  color: #f2e5cf !important;
}

.theme-western-fantasy .city-places {
  border: 1px solid #090b0d;
  border-radius: 6px;
  background: linear-gradient(180deg, #30353a, #171a1e);
  box-shadow: inset 0 0 0 1px rgba(208, 168, 102, 0.38), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.theme-western-fantasy .intro-scene,
.theme-western-fantasy .ending-banner {
  min-height: 390px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 12, 15, 0.88), rgba(18, 20, 23, 0.58) 48%, rgba(18, 20, 23, 0.14)),
    linear-gradient(180deg, rgba(11, 13, 16, 0.1), rgba(11, 13, 16, 0.54)),
    url("assets/sky_fantasy_backdrop.png") center 34% / cover no-repeat;
}

.theme-western-fantasy .hero-panel {
  border-width: 1px;
  border-color: rgba(208, 168, 102, 0.62);
  border-radius: 6px;
  background: #121519;
}

.theme-western-fantasy .intro-copy {
  max-width: 670px;
  border-left: 3px solid var(--wf-bronze-bright);
  padding-left: 24px;
}

.theme-western-fantasy .intro-copy h2,
.theme-western-fantasy .ending-banner h2 {
  max-width: 620px;
  color: #f1e5cf;
  font-size: 46px;
  line-height: 1.08;
  text-shadow: 0 3px 0 #2a1710, 0 8px 20px rgba(0, 0, 0, 0.62);
}

.theme-western-fantasy .intro-copy p,
.theme-western-fantasy .ending-banner p {
  max-width: 650px;
  color: #d3c4aa;
  font-size: 15px;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.66);
}

.theme-western-fantasy .creation {
  gap: 12px;
}

.theme-western-fantasy :where(.race-option, .rebirth-option, .shop-item, .inventory-item, .equipment-card, .skill-card, .managed-item, .inventory-detail-panel, .account-warehouse-panel) {
  border-color: rgba(91, 59, 32, 0.38);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 253, 240, 0.5), rgba(98, 64, 34, 0.04)),
    #ebdfc8;
}

.theme-western-fantasy .race-option.is-selected {
  border-color: var(--wf-garnet);
  background:
    linear-gradient(90deg, rgba(126, 47, 44, 0.12), transparent 40%),
    #eee1c8;
  box-shadow: inset 0 0 0 1px rgba(168, 73, 62, 0.28), 0 5px 12px rgba(0, 0, 0, 0.14);
}

.theme-western-fantasy .gender-selector button.is-selected {
  border-color: var(--wf-garnet);
  background: linear-gradient(180deg, #f2e4cc, #dec7a5);
  color: #54241f;
}

.theme-western-fantasy :where(.race-portrait, .player-portrait-card, .player-combat-portrait, .enemy-visual) {
  border: 1px solid var(--wf-bronze-dark);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(240, 226, 199, 0.28), rgba(17, 20, 23, 0.28)),
    #262b30;
  box-shadow: inset 0 0 0 1px rgba(222, 185, 119, 0.34), 0 5px 12px rgba(0, 0, 0, 0.24);
}

.theme-western-fantasy .combat-panel .panel-body,
.theme-western-fantasy .combat-panel-v3 .combat-body-v3 {
  background:
    linear-gradient(180deg, rgba(13, 15, 18, 0.6), rgba(13, 15, 18, 0.82)),
    url("assets/sky_fantasy_backdrop.png") center 62% / cover no-repeat;
}

.theme-western-fantasy .combat-panel-v3 .combat-header-v3 h2 {
  color: var(--wf-ivory);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.58);
}

.theme-western-fantasy .combat-panel-v3 .combat-header-v3 :where(span, small) {
  color: #b9aa91;
}

.theme-western-fantasy .combat-panel-v3 .combat-header-actions :where(.badge, button) {
  color: #53351f;
}

.theme-western-fantasy .combat-area,
.theme-western-fantasy .combat-stage-v3 {
  border-color: var(--wf-bronze-dark);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.48), rgba(10, 12, 15, 0.74)),
    url("assets/sky_fantasy_backdrop.png") center 62% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(208, 168, 102, 0.42), 0 8px 18px rgba(0, 0, 0, 0.34);
}

.theme-western-fantasy .combat-fighter-card,
.theme-western-fantasy .fighter {
  border-color: rgba(208, 168, 102, 0.58);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(45, 50, 55, 0.88), rgba(18, 21, 24, 0.94)),
    #22272d;
  color: #e8dcc7;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 214, 0.06), 0 8px 18px rgba(0, 0, 0, 0.32);
}

.theme-western-fantasy :where(.combat-fighter-card h3, .fighter h3, .combat-fighter-card strong) {
  color: #f1e4ce;
}

.theme-western-fantasy .combat-fighter-card :where(span, small),
.theme-western-fantasy .fighter :where(span, small) {
  color: #b9aa91;
}

.theme-western-fantasy .meter,
.theme-western-fantasy .combat-fighter-card .meter {
  border: 1px solid rgba(5, 6, 8, 0.9);
  border-radius: 4px;
  background: #0c0f12;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.66);
}

.theme-western-fantasy .meter-fill.hp {
  background: linear-gradient(90deg, #6e2427, #b24a42);
}

.theme-western-fantasy .meter-fill.energy {
  background: linear-gradient(90deg, #274c61, #4b7c91);
}

.theme-western-fantasy .meter-fill.exp {
  background: linear-gradient(90deg, #7c562e, #c29a5b);
}

.theme-western-fantasy .combat-buttons button[data-action="attack-normal"],
.theme-western-fantasy .combat-command-bar button[data-action="attack-normal"] {
  border-color: #4b1919;
  background: linear-gradient(180deg, #9d453c, #652322);
  color: #f6e7cc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.74);
}

.theme-western-fantasy .boss-phase-card {
  border-color: #6b2825;
  background:
    linear-gradient(90deg, rgba(126, 47, 44, 0.16), transparent 58%),
    #ead8bd;
  box-shadow: inset 0 0 0 1px rgba(208, 168, 102, 0.4), 0 6px 14px rgba(58, 20, 18, 0.2);
}

.theme-western-fantasy .boss-phase-card strong {
  color: #762c28;
}

.theme-western-fantasy :where(.managed-item-summary:hover, .shop-item:hover:not(:disabled), .forge-button:hover:not(:disabled), .quest-card:hover, .equip-button:hover:not(:disabled), .simple-destination-card:hover:not(:disabled), .zone-button:hover:not(:disabled)) {
  border-color: var(--wf-bronze-bright);
  background:
    linear-gradient(90deg, rgba(167, 119, 61, 0.1), transparent 52%),
    #f1e5cf;
}

.theme-western-fantasy .inventory-detail-panel,
.theme-western-fantasy .managed-item.is-detail {
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.46), rgba(103, 68, 38, 0.05)),
    #eee2cc;
}

.theme-western-fantasy :where(.item-refine-panel, .item-star-panel, .item-affix-panel, .equipment-growth-panel, .forge-suit-detail, .forge-suit-overview, .inventory-source-panel, .inventory-v2-log-panel) {
  border-color: rgba(91, 59, 32, 0.34);
  border-radius: 5px;
  background: rgba(218, 201, 171, 0.5);
}

.theme-western-fantasy .log {
  border-color: rgba(91, 59, 32, 0.34);
  background: #e4d6bb;
}

.theme-western-fantasy .log-entry {
  border-left-color: var(--wf-bronze);
  background: rgba(246, 237, 218, 0.76);
}

.theme-western-fantasy .log-entry.good {
  border-left-color: var(--wf-emerald);
}

.theme-western-fantasy .log-entry.danger {
  border-left-color: var(--wf-garnet-bright);
}

.theme-western-fantasy .hs-modal {
  background: rgba(7, 8, 10, 0.76);
  backdrop-filter: blur(2px);
}

.theme-western-fantasy .hs-modal__dialog,
.theme-western-fantasy .reward-dialog-v6,
.theme-western-fantasy .guide-card-v6 {
  border: 1px solid var(--wf-bronze-dark);
  border-radius: 7px;
  background: var(--wf-parchment);
  box-shadow: inset 0 0 0 1px rgba(255, 249, 229, 0.54), 0 24px 64px rgba(0, 0, 0, 0.54);
}

.theme-western-fantasy .hs-toast {
  border-color: var(--wf-bronze-dark);
  border-radius: 5px;
  background: rgba(242, 232, 211, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.theme-western-fantasy .hs-tooltip[data-tooltip]:hover::after,
.theme-western-fantasy .hs-tooltip[data-tooltip]:focus-visible::after {
  border: 1px solid rgba(208, 168, 102, 0.44);
  border-radius: 4px;
  background: rgba(17, 20, 23, 0.98);
  color: var(--wf-ivory);
}

.theme-western-fantasy .hs-empty,
.theme-western-fantasy .hs-error,
.theme-western-fantasy .hs-locked,
.theme-western-fantasy .empty-equipment {
  border-color: rgba(91, 59, 32, 0.42);
  border-radius: 5px;
  background: rgba(223, 208, 181, 0.46);
  color: var(--wf-ink-muted);
}

@media (max-width: 1180px) {
  .theme-western-fantasy .topbar,
  .theme-western-fantasy .game-shell-v2 .shell-topbar {
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .theme-western-fantasy .shell-resource-bar {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .theme-western-fantasy {
    background-attachment: scroll;
  }

  .theme-western-fantasy .app-shell {
    padding: 0;
  }

  .theme-western-fantasy .game {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 8px;
  }

  .theme-western-fantasy .game::after {
    display: none;
  }

  .theme-western-fantasy .topbar,
  .theme-western-fantasy .game-shell-v2 .shell-topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .theme-western-fantasy .game-shell-v2 .account-panel {
    display: none;
  }

  .theme-western-fantasy .brand h1 {
    font-size: 28px;
  }

  .theme-western-fantasy .brand p {
    font-size: 11px;
  }

  .theme-western-fantasy .seal {
    width: 46px;
    height: 46px;
  }

  .theme-western-fantasy .shell-resource-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-western-fantasy .game-shell-v2 .mobile-bottom-nav {
    left: 6px;
    right: 6px;
    bottom: calc(6px + env(safe-area-inset-bottom));
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border: 1px solid #090b0d;
    border-radius: 7px;
    background: rgba(18, 21, 24, 0.97);
    box-shadow: inset 0 0 0 1px rgba(208, 168, 102, 0.46), 0 10px 28px rgba(0, 0, 0, 0.48);
    padding: 5px;
  }

  .theme-western-fantasy .game-shell-v2.is-combat-mode .mobile-bottom-nav {
    display: none;
  }

  .theme-western-fantasy .game-shell-v2 .mobile-bottom-nav .module-nav-button {
    flex: 0 0 70px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 28px auto;
    justify-items: center;
    min-width: 70px;
    min-height: 54px;
    border-color: rgba(208, 168, 102, 0.18);
    background: #24292e;
    padding: 4px 3px;
  }

  .theme-western-fantasy .game-shell-v2 .mobile-bottom-nav .module-nav-button::before {
    grid-row: 1;
    width: 26px;
    height: 26px;
  }

  .theme-western-fantasy .game-shell-v2 .mobile-bottom-nav .module-nav-button:is([data-module="settings"], [data-module="online"]) i {
    grid-row: 1;
    width: 26px;
    height: 26px;
  }

  .theme-western-fantasy .game-shell-v2 .mobile-bottom-nav .module-nav-button strong {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    color: #c9bca7;
    font-size: 10px;
    line-height: 1.15;
  }

  .theme-western-fantasy .game-shell-v2 .mobile-bottom-nav .module-nav-button.is-active strong {
    color: #f4e7cc;
  }

  .theme-western-fantasy :where(.panel-header, .hs-panel__header, .module-shell-header, .consumable-title, .equipment-title, .shop-title, .forge-panel-head) {
    padding: 10px;
  }

  .theme-western-fantasy .module-shell-header {
    min-height: 68px;
  }

  .theme-western-fantasy .intro-scene {
    min-height: 320px;
    padding: 28px 22px;
  }

  .theme-western-fantasy .intro-copy {
    padding-left: 16px;
  }

  .theme-western-fantasy .intro-copy h2 {
    font-size: 34px;
  }

  .theme-western-fantasy .intro-copy p {
    font-size: 13px;
    line-height: 1.65;
  }

  .theme-western-fantasy .creation {
    grid-template-columns: 1fr;
  }

  .theme-western-fantasy .combat-fighter-card,
  .theme-western-fantasy .fighter {
    padding: 9px;
  }
}

@media (max-width: 520px) {
  .theme-western-fantasy .game {
    padding: 6px;
  }

  .theme-western-fantasy .shell-resource-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-western-fantasy .game-shell-v2 .shell-status-strip {
    display: none;
  }

  .theme-western-fantasy .shell-goal-bar .current-goal {
    gap: 7px;
    margin-bottom: 8px;
    padding: 10px;
  }

  .theme-western-fantasy .shell-goal-bar .current-goal-prep {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .theme-western-fantasy .shell-goal-bar .current-goal-prep span {
    min-height: 52px;
    padding: 6px 7px;
  }

  .theme-western-fantasy .intro-scene {
    min-height: 300px;
    padding: 24px 16px;
  }

  .theme-western-fantasy .intro-copy h2 {
    font-size: 29px;
  }

  .theme-western-fantasy .intro-copy p {
    font-size: 12px;
  }

  .theme-western-fantasy .race-grid {
    grid-template-columns: 1fr;
  }
}

.career-combat-guide {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border, #bba37d);
  border-radius: 8px;
}
.career-combat-guide > span { font-size: 13px; line-height: 1.6; }
.career-combat-guide button { white-space: normal; min-height: 44px; }

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