@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&family=Noto+Serif+JP:wght@500;600;700;800&display=swap");
:root {
  --ink: #343f32;
  --muted: #888b75;
  --paper: #fffcf1;
  --gold: #b99551;
  --green: #304e3c;
  --line: #dcd9c5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    14px "Noto Sans JP",
    sans-serif;
  background: #dce8cf;
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  transition:
    filter 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
button:hover {
  filter: brightness(1.06);
}
button:active {
  filter: brightness(0.96);
}
button:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #dfb95e;
  outline-offset: 4px;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #f5f1dfed 0%,
    #f5f1dfaa 11%,
    transparent 35%,
    transparent 68%,
    #f6f2e6ed 100%
  );
}
header {
  height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #7e886221;
  background: #fffdf330;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark {
  font-size: 31px;
  border: 1px solid #acb294;
  width: 46px;
  height: 50px;
  border-radius: 20px 20px 9px 9px;
  display: grid;
  place-items: center;
  color: #587049;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.4px;
  color: #768065;
  margin-bottom: 5px;
}
.brand strong {
  font:
    700 20px "Noto Serif JP",
    serif;
  letter-spacing: 2px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 13px;
}
.connection {
  font-size: 10px;
  color: #778366;
  margin-right: 10px;
}
.connection:before,
.live-dot {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #77935c;
  margin-right: 7px;
}
.icon-button {
  border: 1px solid #c3c9b1;
  background: #fffdf2a0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 17px;
}
main {
  position: fixed;
  inset: 92px 0 0;
  pointer-events: none;
}
main button,
main input,
main aside,
main section.bottom-panel,
main .battle-controls {
  pointer-events: auto;
}
.location {
  position: absolute;
  top: 28px;
  left: 42px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.2px;
  color: #798465;
}
.location h1 {
  font:
    700 33px "Noto Serif JP",
    serif;
  letter-spacing: 4px;
  margin: 9px 0;
}
.location p {
  font-size: 11px;
  letter-spacing: 1px;
  color: #7c856c;
  margin: 0;
}
.resources {
  position: absolute;
  right: 42px;
  top: 29px;
  display: flex;
  background: #fffdf0ed;
  box-shadow: 0 5px 25px #4253300c;
  border: 1px solid #e0dec8;
  border-radius: 10px;
  padding: 13px 8px;
}
.resources > div {
  position: relative;
  display: grid;
  grid-template-columns: 27px 42px;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid #e7e4d3;
}
.resources > div:last-child {
  border: 0;
}
.resources b {
  font:
    600 19px Georgia,
    serif;
  font-variant-numeric: tabular-nums;
}
.resources small {
  grid-column: 2;
  font-size: 8px;
  color: #92917c;
  margin-top: 3px;
}
.res {
  font-size: 25px;
  grid-row: span 2;
}
.gold {
  color: #c99a3e;
}
.wood {
  color: #986c44;
  transform: rotate(-25deg);
}
.crystal {
  color: #6fa5b7;
}
.herb {
  color: #779956;
}
.party-panel {
  position: absolute;
  top: 175px;
  left: 42px;
  width: 206px;
}
.section-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #7e846d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.section-label > span:last-child {
  letter-spacing: 1px;
}
.party-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 10px 8px 7px;
  border: 1px solid #fdfbf0c0;
  border-radius: 9px;
  background: linear-gradient(90deg, #fffdf0f2, #fffdf080);
  box-shadow: 0 3px 15px #3e523007;
}
.portrait {
  width: 37px;
  height: 39px;
  border-radius: 8px 8px 13px 13px;
  display: grid;
  place-items: center;
  font-size: 25px;
  border: 1px solid #ffffffb3;
  background: var(--job-color);
  color: #fff9e9;
  text-shadow: 0 2px 3px #0003;
}
.party-info {
  flex: 1;
}
.party-name {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.party-name small {
  font: 8px sans-serif;
  color: #88947b;
  background: #eef1e0;
  padding: 3px 4px;
  border-radius: 3px;
}
.party-job {
  font-size: 8px;
  color: #8c927e;
  margin-top: 3px;
}
.party-hp {
  height: 4px;
  background: #d7ddc9;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.party-hp i {
  display: block;
  height: 100%;
  background: #86a36b;
  transition: width 0.2s;
}
.empty-row {
  height: 53px;
  border: 1px dashed #a8b39570;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  color: #82947399;
  font-size: 10px;
}
.empty-row span {
  font-size: 18px;
}
.invite {
  width: 100%;
  margin-top: 2px;
  padding: 11px 8px;
  background: #fffdf0cd;
  border: 1px solid #babfa9;
  border-radius: 7px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.invite > span {
  font-size: 16px;
}
.invite small {
  margin-left: auto;
  font: 10px monospace;
  color: #8c967a;
}
.party-note {
  font-size: 8px;
  text-align: center;
  margin-top: 9px;
  color: #7e8e73;
}
.quest-panel {
  position: absolute;
  top: 138px;
  right: 42px;
  width: 270px;
  border-radius: 11px;
  background: #fffcf0ed;
  padding: 22px;
  box-shadow: 0 12px 40px #38532310;
  border: 1px solid #fffef0;
}
.quest-panel:before {
  content: "";
  position: absolute;
  top: 0;
  left: 23px;
  right: 23px;
  height: 2px;
  background: #bda471;
}
.quest-panel .section-label {
  font-size: 8px;
  letter-spacing: 1.4px;
}
.tag {
  color: #b1945d;
}
.quest-panel h2 {
  font:
    700 17px "Noto Serif JP",
    serif;
  margin: 19px 0 12px;
}
.quest-panel p {
  font-size: 10px;
  line-height: 1.95;
  color: #8a8b75;
}
.quest-progress {
  height: 5px;
  background: #e8e6d6;
  border-radius: 5px;
  margin-top: 23px;
  overflow: hidden;
}
.quest-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #91a776;
  transition: width 0.5s;
}
.quest-meta {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #8a927a;
  margin-top: 8px;
}
.quest-meta b {
  font-size: 8px;
  color: #687b57;
}
.quest-reward {
  border-top: 1px solid #e2dfcc;
  margin-top: 18px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #8d907d;
}
.quest-reward b {
  color: #b18c46;
  font-size: 12px;
}
.quest-reward small {
  font-size: 8px;
  color: #989783;
  font-weight: 400;
}
.world-label {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fdfbe9;
  background: #344c39dd;
  border: 1px solid #f7edc64a;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 20px #1e3a3233;
  white-space: nowrap;
}
.world-label > span {
  font-size: 24px;
  color: #e6cc8e;
}
.world-label b {
  font:
    600 12px "Noto Serif JP",
    serif;
  letter-spacing: 1px;
}
.world-label small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.2px;
  margin-top: 5px;
  color: #c8d2b4;
}
.bottom-panel {
  position: absolute;
  bottom: 65px;
  left: 42px;
  right: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.job-selector .section-label {
  font-size: 9px;
  margin-bottom: 11px;
}
.jobs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.weapon-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.weapon-jobs button {
  min-width: 0;
  text-align: left;
}
.weapon-jobs button .weapon-label {
  font-size: 16px;
  color: inherit;
}
.weapon-jobs .weapon-label small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.5;
}
.jobs button {
  border: 1px solid #bac3aa;
  background: #fffdf0cc;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
}
.jobs button span {
  font-size: 20px;
  color: #879b75;
}
.jobs button.selected {
  background: #36543f;
  border-color: #36543f;
  color: #fff8df;
  box-shadow: 0 5px 16px #324b3626;
}
.jobs button.selected span {
  color: #e9d39d;
}
.camp-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.secondary {
  border: 1px solid #b4baa2;
  background: #fffcf0cc;
  border-radius: 9px;
  padding: 18px;
  font-size: 11px;
}
.secondary > span {
  font-size: 18px;
  padding-right: 8px;
}
.secondary small {
  margin-left: 15px;
  color: #94a181;
  font-size: 10px;
}
.primary {
  border: 1px solid #57714e;
  border-radius: 10px;
  padding: 16px 22px;
  background: #36523d;
  color: #fff5d9;
  display: flex;
  align-items: center;
  gap: 36px;
  box-shadow: 0 7px 20px #37553730;
  text-align: left;
}
.primary small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.6px;
  color: #c9d4b4;
  margin-bottom: 7px;
}
.primary b {
  font:
    600 17px "Noto Serif JP",
    serif;
  letter-spacing: 2px;
}
.primary .arrow {
  font-size: 28px;
  color: #d6c693;
}
.bottom-hint {
  position: absolute;
  bottom: 22px;
  left: 42px;
  right: 42px;
  display: flex;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #829073;
}
.bottom-hint i {
  height: 1px;
  flex: 1;
  background: #b4bca34d;
  margin: 0 24px;
}
.bottom-hint > span:last-child {
  letter-spacing: 1px;
}
.hidden {
  display: none !important;
}
.battle-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 57px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.hero-status {
  background: #fffcf0ed;
  border: 1px solid #d9d9bf;
  padding: 14px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 10px;
  width: 250px;
}
.hero-status > span {
  font-size: 33px;
  color: #80926d;
}
.hero-status > div {
  flex: 1;
}
.hero-status b {
  font-size: 11px;
}
.hero-status small {
  font-size: 9px;
  color: #899078;
}
.hp-track {
  height: 6px;
  background: #dbdec9;
  border-radius: 5px;
  overflow: hidden;
  margin: 9px 0 4px;
}
.hp-track i {
  display: block;
  height: 100%;
  background: #81a45f;
  transition: width 0.2s;
}
.skills {
  display: flex;
  gap: 13px;
}
.skill {
  position: relative;
  width: 83px;
  height: 89px;
  border: 1px solid #b4bea1;
  border-radius: 14px;
  background: #fffcecdd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 4px 15px #243e3317;
}
.skill kbd {
  position: absolute;
  top: -9px;
  background: #eff0db;
  border: 1px solid #bcc5a9;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 8px;
  color: #697e58;
}
.skill > span {
  font-size: 30px;
  line-height: 38px;
  color: #658056;
}
.skill b {
  font-size: 9px;
}
.skill small {
  font-size: 10px;
  color: #b69142;
  position: absolute;
  bottom: -18px;
  white-space: nowrap;
}
.skill.featured {
  background: #36543fec;
  color: #fff9df;
  border-color: #6c8f59;
}
.skill.featured span {
  color: #e9d087;
}
.skill.ultimate {
  width: 100px;
  background: #fff4cceb;
  border-color: #c5a761;
}
.skill.ultimate span {
  color: #b8944d;
}
.skill.ready {
  box-shadow: 0 0 23px #ffe6a1;
  animation: pulse 1.4s infinite;
}
.skill.cooldown {
  filter: saturate(0.45);
  opacity: 0.8;
}
.movement-hint {
  position: absolute;
  bottom: 95px;
  left: 55px;
  text-align: center;
  color: #6f8260;
}
.movement-hint kbd {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 24px;
  margin: 2px;
  border: 1px solid #a6b793;
  border-radius: 4px;
  background: #f8f9e8bb;
  font-size: 10px;
}
.movement-hint span {
  display: block;
  font-size: 9px;
  margin-top: 8px;
}
.combo {
  position: absolute;
  right: 84px;
  top: 430px;
  text-align: center;
  color: #a27b34;
  text-shadow: 0 2px 10px #fff8d7;
}
.combo > span {
  font-size: 11px;
  letter-spacing: 5px;
}
.combo strong {
  display: block;
  font:
    italic 700 70px Georgia,
    serif;
  line-height: 1.1;
}
.combo small {
  font-size: 10px;
  letter-spacing: 2px;
}
.wave-banner {
  position: absolute;
  left: 50%;
  top: 26%;
  transform: translateX(-50%);
  text-align: center;
  font:
    700 33px "Noto Serif JP",
    serif;
  letter-spacing: 5px;
  color: #fff7dc;
  text-shadow: 0 2px 15px #243b2e;
  opacity: 0;
  transition: opacity 0.4s;
  white-space: nowrap;
}
.wave-banner.show {
  opacity: 1;
}
.wave-banner small {
  display: block;
  font:
    9px "Noto Sans JP",
    sans-serif;
  letter-spacing: 5px;
  margin-top: 10px;
}
.toast {
  position: fixed;
  z-index: 12;
  top: 105px;
  left: 50%;
  transform: translate(-50%, -15px);
  opacity: 0;
  pointer-events: none;
  background: #304c3ded;
  color: #fff5d6;
  padding: 13px 22px;
  border: 1px solid #c8bd8c88;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 8px 30px #17372122;
  transition: all 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  width: 540px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #d5d1b5;
  background: #fffcef;
  color: var(--ink);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 24px 90px #1d332c55;
}
dialog::backdrop {
  background: #21372b55;
  backdrop-filter: blur(6px);
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 26px;
  color: #92967e;
}
dialog h2 {
  font:
    700 25px "Noto Serif JP",
    serif;
  margin: 12px 0 15px;
  letter-spacing: 2px;
}
dialog p {
  font-size: 12px;
  line-height: 1.9;
  color: #808773;
}
.modal-eyebrow {
  font-size: 9px;
  letter-spacing: 3px;
  color: #a38a51;
}
dialog label {
  display: block;
  font-size: 11px;
  color: #7f8c72;
  margin: 19px 0 7px;
}
dialog input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #c6cdb2;
  border-radius: 7px;
  background: #fffef9;
  color: #415437;
}
dialog .primary {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  font-size: 16px;
}
.room-display {
  padding: 20px;
  margin: 20px 0;
  border: 1px dashed #b8bea0;
  text-align: center;
  border-radius: 9px;
}
.room-display b {
  display: block;
  font: 32px monospace;
  letter-spacing: 8px;
  color: #536c46;
  margin: 7px;
}
.room-display small {
  font-size: 9px;
  color: #90977e;
}
.inline-actions {
  display: flex;
  gap: 9px;
}
.inline-actions button {
  flex: 1;
  padding: 12px;
  border: 1px solid #bcc5a9;
  background: #eff1df;
  border-radius: 7px;
  font-size: 11px;
}
.modal-divider {
  border: 0;
  border-top: 1px solid #dedec8;
  margin: 24px 0;
}
.shop-item {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #e2e2cc;
  align-items: center;
}
.shop-item > span {
  font-size: 29px;
  color: #ac9359;
  width: 35px;
  text-align: center;
}
.shop-item > div {
  flex: 1;
}
.shop-item b {
  font-size: 12px;
}
.shop-item p {
  margin: 5px 0;
  font-size: 10px;
}
.shop-item button {
  background: #3e5c43;
  color: #fff7dc;
  border: 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 10px;
}
.result-stat {
  display: flex;
  justify-content: space-around;
  text-align: center;
  background: #f1f0de;
  padding: 21px 0;
  border-radius: 10px;
  margin: 25px 0;
}
.result-stat b {
  display: block;
  font:
    29px Georgia,
    serif;
  color: #667d50;
}
.result-stat span {
  font-size: 9px;
  color: #8a917a;
}
.help-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e4e3ce;
  font-size: 11px;
}
.help-row kbd {
  color: #8b965f;
}
.joystick {
  display: none;
  pointer-events: auto;
  position: absolute;
  left: 30px;
  bottom: 115px;
  width: 94px;
  height: 94px;
  border: 1px solid #fff9;
  background: #fff4;
  border-radius: 50%;
  touch-action: none;
}
.joystick > div {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 36px;
  height: 36px;
  background: #fff9;
  border-radius: 50%;
  border: 1px solid #fff;
}
.down {
  filter: grayscale(1);
  opacity: 0.6;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 35px #ffe8a1;
  }
}
@media (min-width: 1600px) {
  .location {
    top: 45px;
  }
  .party-panel {
    top: 205px;
  }
  .quest-panel {
    top: 160px;
  }
  .bottom-panel {
    bottom: 80px;
  }
  .world-label {
    top: 60%;
  }
}
@media (max-height: 780px) {
  header {
    height: 76px;
  }
  main {
    top: 76px;
  }
  .location {
    top: 20px;
  }
  .location h1 {
    font-size: 27px;
  }
  .party-panel {
    top: 142px;
  }
  .party-row {
    margin-bottom: 7px;
    padding: 5px;
  }
  .empty-row {
    height: 43px;
    margin-bottom: 7px;
  }
  .quest-panel {
    top: 119px;
    padding: 18px;
  }
  .combo {
    top: 375px;
  }
  .bottom-panel {
    bottom: 53px;
  }
  .world-label {
    top: 56%;
  }
}
@media (max-width: 1100px) {
  header {
    padding: 0 24px;
  }
  .location,
  .party-panel {
    left: 24px;
  }
  .resources,
  .quest-panel {
    right: 24px;
  }
  .party-panel {
    width: 175px;
  }
  .quest-panel {
    width: 227px;
  }
  .resources > div {
    padding: 0 8px;
    grid-template-columns: 24px 30px;
  }
  .bottom-panel {
    left: 24px;
    right: 24px;
  }
  .jobs button {
    padding: 10px;
  }
  .camp-actions {
    gap: 8px;
  }
  .secondary {
    padding: 15px 10px;
  }
  .primary {
    gap: 17px;
    padding: 16px;
  }
  .primary b {
    font-size: 15px;
  }
  .brand strong {
    font-size: 18px;
  }
  .bottom-hint {
    left: 24px;
    right: 24px;
  }
  .movement-hint {
    left: 30px;
  }
}
@media (max-width: 900px) {
  header {
    height: 68px;
    padding: 0 16px;
  }
  .brand strong {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.6px;
  }
  .brand-mark {
    width: 33px;
    height: 38px;
    font-size: 24px;
  }
  .top-right {
    gap: 7px;
  }
  .connection {
    display: none;
  }
  main {
    top: 68px;
  }
  .location {
    left: 17px;
    top: 19px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .location h1 {
    font-size: 24px;
    letter-spacing: 2px;
  }
  .location p {
    font-size: 9px;
  }
  .resources {
    top: 110px;
    left: 16px;
    right: auto;
    padding: 9px 4px;
  }
  .resources > div {
    padding: 0 7px;
    grid-template-columns: 21px 23px;
  }
  .resources b {
    font-size: 15px;
  }
  .resources small {
    font-size: 6px;
  }
  .res {
    font-size: 20px;
  }
  .party-panel {
    top: 184px;
    left: 16px;
    width: 131px;
  }
  .party-panel > .section-label {
    font-size: 7px;
    letter-spacing: 1px;
    margin-bottom: 9px;
  }
  .party-row {
    gap: 7px;
    padding: 5px;
    margin-bottom: 6px;
  }
  .portrait {
    width: 26px;
    height: 30px;
    font-size: 19px;
  }
  .party-name {
    font-size: 8px;
  }
  .party-job {
    font-size: 6px;
  }
  .party-name small {
    font-size: 6px;
  }
  .party-note {
    display: none;
  }
  .empty-row {
    height: 39px;
    font-size: 7px;
    padding: 8px;
    gap: 8px;
    margin-bottom: 6px;
  }
  .invite {
    font-size: 8px;
    flex-wrap: wrap;
    gap: 3px;
    padding: 8px;
  }
  .invite small {
    font-size: 8px;
  }
  .quest-panel {
    width: 155px;
    top: 184px;
    right: 16px;
    padding: 13px;
  }
  .quest-panel .section-label {
    font-size: 6px;
    letter-spacing: 0;
  }
  .quest-panel h2 {
    font-size: 12px;
    margin: 13px 0 8px;
  }
  .quest-panel p {
    font-size: 8px;
  }
  .quest-progress {
    margin-top: 12px;
  }
  .quest-reward {
    display: none;
  }
  .quest-meta {
    font-size: 6px;
  }
  .quest-meta b {
    font-size: 7px;
  }
  .world-label {
    top: 61%;
    padding: 7px 12px;
  }
  .world-label b {
    font-size: 10px;
  }
  .world-label small {
    font-size: 6px;
  }
  .bottom-panel {
    left: 16px;
    right: 16px;
    bottom: 49px;
    display: block;
  }
  .job-selector > .section-label {
    margin-bottom: 8px;
    font-size: 8px;
  }
  .jobs {
    gap: 6px;
  }
  .jobs button {
    flex: 1;
    justify-content: center;
    font-size: 9px;
    padding: 8px 5px;
    min-height: 39px;
  }
  .jobs button span {
    font-size: 17px;
  }
  .camp-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
  }
  .primary {
    padding: 13px;
    gap: 10px;
    justify-content: space-between;
  }
  .primary b {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .primary small {
    font-size: 5px;
    letter-spacing: 1px;
  }
  .secondary {
    font-size: 10px;
    padding: 17px 10px;
  }
  .secondary small {
    margin-left: 5px;
    font-size: 8px;
  }
  .bottom-hint {
    bottom: 19px;
    left: 17px;
    right: 17px;
    font-size: 6px;
    letter-spacing: 1px;
  }
  .bottom-hint i {
    margin: 0 10px;
  }
  .battle-controls {
    bottom: 54px;
    left: auto;
    right: 16px;
    transform: none;
    gap: 10px;
    flex-direction: column;
    align-items: end;
  }
  .hero-status {
    width: 204px;
    padding: 9px 13px;
    gap: 9px;
  }
  .hero-status > span {
    font-size: 22px;
  }
  .hero-status b {
    font-size: 9px;
  }
  .hero-status small {
    font-size: 8px;
  }
  .hp-track {
    margin: 5px 0;
  }
  .skills {
    gap: 9px;
  }
  .skill {
    width: 57px;
    height: 65px;
    border-radius: 11px;
  }
  .skill.ultimate {
    width: 76px;
  }
  .skill b {
    font-size: 7px;
  }
  .skill > span {
    font-size: 24px;
    line-height: 30px;
  }
  .skill small {
    font-size: 8px;
  }
  .skill kbd {
    font-size: 6px;
  }
  .movement-hint {
    display: none;
  }
  .joystick.active {
    display: block;
  }
  .combo {
    top: 380px;
    right: 35px;
  }
  .combo strong {
    font-size: 43px;
  }
  .combo > span {
    font-size: 8px;
  }
  .combo small {
    font-size: 8px;
  }
  .wave-banner {
    font-size: 24px;
    top: 42%;
  }
  dialog {
    padding: 28px 23px;
  }
  .toast {
    top: 79px;
    font-size: 10px;
    max-width: 90vw;
    width: max-content;
  }
  .shop-item {
    gap: 10px;
  }
  .shop-item button {
    padding: 10px;
  }
  .shop-item p {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 600px) {
  .party-panel {
    top: 177px;
    width: 123px;
  }
  .party-panel > .section-label {
    display: none;
  }
  .party-panel #party {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .party-row {
    width: 53px;
    height: 42px;
    justify-content: center;
    margin: 0;
    background: #fffdf0b3;
  }
  .party-info {
    display: none;
  }
  .empty-row {
    width: 53px;
    height: 42px;
    margin: 0;
    justify-content: center;
    font-size: 0;
    padding: 4px;
  }
  .empty-row span {
    font-size: 17px;
  }
  .party-panel .invite {
    margin-top: 7px;
  }
  .party-panel .invite small {
    display: none;
  }
  .quest-panel {
    top: 177px;
    width: 167px;
  }
  .quest-panel p {
    display: none;
  }
  .quest-panel h2 {
    font-size: 11px;
    line-height: 1.65;
    margin: 9px 0;
  }
  .quest-panel .section-label {
    margin-bottom: 8px;
  }
  .quest-progress {
    margin-top: 10px;
  }
  .quest-meta {
    font-size: 6px;
  }
  .world-label {
    top: 59%;
  }
  .combo {
    top: 324px;
    right: 27px;
  }
  .combo strong {
    font-size: 38px;
  }
  .joystick {
    left: 20px;
    bottom: 100px;
    width: 85px;
    height: 85px;
  }
  .joystick > div {
    left: 24px;
    top: 24px;
  }
  .brand strong {
    font-size: 12px;
  }
  .top-right {
    gap: 5px;
  }
  .icon-button {
    width: 30px;
    height: 30px;
  }
  .brand {
    gap: 8px;
  }
  .battle-controls {
    bottom: 52px;
  }
  .bottom-hint > span:last-child {
    font-size: 6px;
  }
  .resources {
    top: 105px;
  }
  .quest-panel:before {
    left: 13px;
    right: 13px;
  }
}
/* Personal progression panels reuse the existing readable shop palette. */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 14px;
  margin: 16px 0;
}
.gear-card {
  padding: 18px;
  border: 1px solid #c3caaa;
  border-radius: 16px;
  background: #f5f3e5;
  min-width: 0;
}
.gear-card h3 {
  font-size: 20px;
  margin: 10px 0;
}
.gear-card p {
  line-height: 1.6;
  margin: 10px 0;
}
.gear-card button {
  margin: 4px 5px 4px 0;
}
.gear-card .icon {
  width: 26px;
  height: 26px;
}
.growth-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: #e8eed7;
  border-radius: 12px;
}
.draw-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  margin: 16px 0;
  border: 2px solid #cab26e;
  border-radius: 18px;
  background: #f7efd3;
  animation: draw-reveal 0.55s ease-out;
}
.draw-result img {
  width: 80px;
  height: 94px;
  object-fit: contain;
}
.draw-result > .icon {
  width: 70px;
  height: 70px;
}
.draw-result b {
  font-size: 22px;
}
.draw-result p {
  width: 100%;
  margin: 0;
}
.trade-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.trade-fields input {
  width: 100%;
}
#modal-content details {
  padding: 12px 0;
  border-top: 1px solid #d8d9c5;
  margin-top: 16px;
}
#modal-content summary {
  cursor: pointer;
  font-size: 17px;
  padding: 8px 0;
  color: #365940;
}
.rarity-SR {
  border-color: #b795cb;
}
.rarity-R {
  border-color: #89b8cb;
}
@keyframes draw-reveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .draw-result {
    animation: none;
  }
}
.quick-items {
  position: fixed;
  right: 24px;
  bottom: 188px;
  display: flex;
  gap: 8px;
  z-index: 12;
}
.quick-items[hidden] {
  display: none;
}
.quick-items button {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 12px;
  min-height: 44px;
  background: #fff9e8;
  border: 1px solid #bccba3;
  border-radius: 12px;
  color: #35563d;
}
.quick-items .icon {
  width: 23px;
  height: 23px;
}
@media (pointer: coarse) {
  .quick-items kbd {
    display: none;
  }
}
@media (max-width: 600px) {
  .quick-items {
    right: 16px;
    bottom: 185px;
  }
}
.gear-card button,
[data-progress],
[data-forge],
#trade-offer {
  min-height: 44px;
  padding: 10px 16px;
  background: #36583f;
  color: #fffdf0;
  border: 1px solid #36583f;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.gear-card button:disabled,
[data-progress]:disabled,
[data-forge]:disabled,
#trade-offer:disabled {
  background: #e7eadb;
  color: #7b846c;
  border-color: #c7cdb9;
  cursor: default;
}
.progress-nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}
.progress-nav button {
  flex: 1 1 125px;
  font-size: 16px;
  min-height: 44px;
  padding: 10px 12px;
}
.gear-card .inline-actions {
  display: flex;
  flex-wrap: wrap;
}
.gear-card .inline-actions button {
  flex: 1 1 85px;
  font-size: 16px;
}
