:root {
  --forest: #17392e;
  --forest-light: #32604a;
  --paper: #fff4dc;
  --paper-light: #fff9eb;
  --paper-deep: #ebd6aa;
  --gold: #c49c59;
  --gold-light: #efd3a0;
  --ink: #19372d;
  --muted: #7b7968;
  --coral: #df7257;
  --red: #bc5146;
  --green: #368a72;
  --border: #c5a16c;
  --shadow: 0 5px 0 #5b492638, 0 9px 22px #12251b24;
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--forest);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #3d9e9b;
  outline-offset: 4px;
}
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button svg {
  pointer-events: none;
}
svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hidden {
  display: none !important;
}
.game-shell {
  position: fixed;
  inset: 0;
  isolation: isolate;
  background: #6b8d5a;
}
#world {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: 0;
  touch-action: none;
}
#vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px #0a291920;
  z-index: 1;
}
.parchment {
  background: linear-gradient(
    110deg,
    var(--paper-light),
    var(--paper) 62%,
    #f3e2bf
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 3px #fff9e8,
    inset 0 0 0 4px #d8b984,
    var(--shadow);
}
.top-hud {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: stretch;
  height: 61px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  font: 700 clamp(17px, 2.05vw, 29px) / 1 var(--serif);
  letter-spacing: 0.015em;
  white-space: nowrap;
}
.brand-icon svg {
  width: 38px;
  height: 38px;
  fill: var(--forest);
  stroke-width: 1.1;
}
.vitals {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 14px;
  padding: 10px 18px;
  min-width: 200px;
}
.meter {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex: 1;
  height: 35px;
  min-width: 90px;
  border-radius: 9px;
  color: #fffbec;
  border: 1px solid #792d2470;
  box-shadow:
    inset 0 2px 3px #fff5,
    0 2px 2px #44281730;
  font: 700 18px/1 var(--serif);
  white-space: nowrap;
}
.health {
  background: #8b4840;
}
.energy {
  background: #305d50;
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: linear-gradient(#da7762, #bd5146);
  transition: width 0.25s;
}
.energy .meter-fill {
  background: linear-gradient(#5caa91, #30806c);
}
.meter > span {
  z-index: 1;
}
.meter svg {
  width: 23px;
  height: 23px;
  fill: #fff4d8;
  stroke-width: 1.2;
}
.meter-label {
  font-variant-numeric: tabular-nums;
}
.diamond {
  width: 9px;
  height: 9px;
  background: #bb9258;
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 2px #e6c48e;
}
.wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 19px;
  min-width: 133px;
}
.wallet svg {
  width: 32px;
  height: 32px;
  color: #a87a28;
  fill: #f0c76b;
  stroke-width: 1.6;
}
.wallet > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wallet small {
  font: 700 17px var(--serif);
}
.wallet strong {
  font: 700 23px var(--serif);
  font-variant-numeric: tabular-nums;
}
.square {
  width: 59px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.square svg {
  width: 27px;
  height: 27px;
}
.square:hover,
.brand:hover {
  filter: brightness(1.025);
  transform: translateY(-1px);
}
.quest-panel {
  position: absolute;
  top: 102px;
  left: 20px;
  z-index: 4;
  width: 255px;
  padding: 19px 20px 14px;
}
.quest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  background: none;
  width: 100%;
  font: 700 21px var(--serif);
  text-align: left;
}
.quest-heading svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}
.ornament {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 3px 10px;
}
.ornament i {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  flex: 1;
}
.ornament i:last-child {
  transform: rotate(180deg);
}
.ornament b {
  height: 7px;
  width: 7px;
  transform: rotate(45deg);
  background: var(--gold);
}
.quest-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #c9ab7945;
  background: none;
  width: 100%;
  text-align: left;
}
.quest-row:last-child {
  border: 0;
}
.quest-check {
  height: 17px;
  width: 17px;
  border: 2px solid #9d8a66;
  border-radius: 3px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.quest-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}
.quest-row.done .quest-check {
  background: var(--forest-light);
  border-color: var(--forest-light);
  color: var(--paper);
}
.quest-row > svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}
.quest-text {
  font: 700 16px/1.2 var(--serif);
}
.quest-text small {
  display: block;
  font: 13px var(--body);
  color: #7d725c;
  margin-top: 3px;
}
.quest-note {
  font-size: 11px;
  line-height: 1.45;
  color: #8c795b;
  border-top: 1px solid #cfb78b66;
  padding-top: 10px;
  margin-top: 4px;
}
.quest-panel.collapsed .ornament,
.quest-panel.collapsed #quest-list,
.quest-panel.collapsed .quest-note {
  display: none;
}
.quest-panel.collapsed .quest-heading svg {
  transform: rotate(180deg);
}
.map-panel {
  position: absolute;
  top: 100px;
  right: 22px;
  z-index: 4;
  width: 190px;
  pointer-events: none;
}
.minimap-frame {
  height: 190px;
  width: 190px;
  border: 4px solid #dfbd7b;
  border-radius: 50%;
  position: relative;
  padding: 4px;
  background: #fff3d4;
  box-shadow:
    inset 0 0 0 1px #8c6d37,
    0 4px 0 #5b492644,
    0 8px 20px #15362140;
}
.minimap-frame canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  background: #63815d;
}
.north {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  font: 700 18px var(--serif);
  background: #fff3d4;
  padding: 2px 5px;
  color: var(--forest);
  clip-path: polygon(50% 0, 100% 30%, 85% 90%, 15% 90%, 0 30%);
}
.location {
  font: 700 16px var(--serif);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 10px;
  margin-top: 9px;
  white-space: nowrap;
  border-radius: 8px;
}
.location svg {
  height: 18px;
  width: 18px;
  fill: currentColor;
}
.online-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: #fff7de;
  text-shadow: 0 1px 3px #123623;
  font-size: 12px;
  font-weight: 700;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b5f2aa;
  box-shadow: 0 0 0 3px #a9d89825;
}
.connection {
  position: absolute;
  left: 50%;
  top: 92px;
  transform: translateX(-50%);
  z-index: 20;
  background: #fff1cc;
  color: #854227;
  padding: 10px 20px;
  border: 1px solid #d1a671;
  border-radius: 8px;
  max-width: 80%;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.bottom-hud {
  position: absolute;
  z-index: 5;
  bottom: 35px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}
.bottom-hud > * {
  pointer-events: auto;
}
.player-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 192px;
  padding: 10px 13px;
  min-height: 70px;
}
.portrait {
  height: 43px;
  width: 43px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #bb9c6c;
  background-color: #e7d6b5;
  background-image: url("/assets/characters.png");
  background-size: 400% 200%;
  background-position: 0 0;
}
.player-badge strong {
  display: block;
  max-width: 103px;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 700 17px var(--serif);
}
.player-badge small {
  display: block;
  color: #8c795f;
  font-size: 11px;
  margin-top: 3px;
  max-width: 105px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-bar {
  display: flex;
  padding: 7px 10px;
  gap: 2px;
  align-items: center;
  min-height: 99px;
  border-radius: 19px;
}
.action-slot {
  position: relative;
  min-width: 91px;
  height: 81px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 7px 9px 8px;
  background: transparent;
  border-radius: 10px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.action-slot:hover {
  background: #d5bb7b22;
  transform: translateY(-2px);
}
.action-slot.active {
  box-shadow: inset 0 0 0 1px #c4a06570;
  background: #e8d09b33;
}
.action-slot strong {
  font: 700 14px var(--serif);
  white-space: nowrap;
}
.action-slot kbd {
  position: absolute;
  top: 3px;
  left: 7px;
  background: #3c4936;
  color: #fff3d4;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 3px;
}
.slot-art {
  display: block;
  height: 43px;
  width: 62px;
}
.weapon-art {
  background-image: url("/assets/armory.png");
  background-size: 400% 300%;
  background-position: 0 0;
}
.magic-art svg {
  height: 43px;
  width: 43px;
  margin: auto;
  color: #c65032;
  fill: #ec8e43;
  stroke-width: 1.2;
  filter: drop-shadow(0 2px 1px #973a2525);
}
.heal-art svg {
  height: 42px;
  width: 42px;
  margin: auto;
  color: #8d3f36;
  fill: #cb6456;
  stroke-width: 1.3;
}
.utility-slot {
  min-width: 61px;
}
.utility-slot > svg {
  height: 29px;
  width: 29px;
  margin-bottom: 7px;
  color: #586246;
}
.utility-slot strong {
  font-size: 12px;
}
.bar-divider {
  height: 55px;
  width: 1px;
  background: #c4a36d66;
  margin: 0 5px;
}
.home-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(#ef9479, #d96b53);
  color: #fff8e5;
  min-width: 192px;
  min-height: 71px;
  padding: 14px 19px;
  border-radius: 15px;
  border: 1px solid #9f543c;
  box-shadow:
    inset 0 0 0 3px #ffd1a7,
    inset 0 0 0 4px #b56b4b,
    0 4px 0 #7a492e66,
    0 8px 15px #14332125;
  font: 700 23px var(--serif);
  transition: transform 0.15s;
}
.home-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.home-button svg {
  height: 28px;
  width: 28px;
  fill: #fff6df;
  stroke-width: 1;
}
.home-button small {
  font: 700 12px var(--body);
  opacity: 0.85;
  white-space: nowrap;
}
.bag-hud {
  position: absolute;
  z-index: 4;
  bottom: 151px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
}
.bag-hud svg {
  height: 17px;
  width: 17px;
}
.bag-hud button {
  background: none;
  border-left: 1px solid #ba9e7366;
  padding: 0 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #a76f3f;
}
.keyboard-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff7da;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-shadow: 0 1px 3px #1b3a2c;
}
.keyboard-hint kbd {
  border: 1px solid #f8e8b96b;
  border-radius: 3px;
  background: #1d3b2d55;
  padding: 1px 3px;
  font: 10px var(--body);
}
.hint-separator {
  padding: 0 6px;
}
.nearby {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 60%;
  transform: translate(-50%, 0);
}
.nearby button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font: 700 17px var(--serif);
  border-radius: 10px;
}
.nearby kbd {
  background: var(--forest);
  color: #fff4d9;
  padding: 4px 8px;
  border-radius: 4px;
  font: 700 16px var(--body);
}
.toasts {
  position: fixed;
  z-index: 110;
  top: 93px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: min(430px, 90vw);
}
.toast {
  padding: 12px 19px;
  background: #fcf3dd;
  border: 1px solid #d6b980;
  border-radius: 9px;
  box-shadow: 0 5px 25px #18362930;
  animation: toastin 0.2s ease;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}
.toast.error {
  border-color: #b9624b;
  color: #934734;
}
.toast.success {
  border-color: #7c9e6b;
}
.toast.fade {
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.25s;
}
.welcome {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: auto;
  background: #f9f1dd;
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 7vh 7vw 90px;
}
.welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 75% 45%, #e5e6c5 0, transparent 50%),
    radial-gradient(ellipse at 0 0, #fffaf0, transparent 50%);
  pointer-events: none;
}
.welcome-grain {
  position: fixed;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.2' filter='url(%23n)'/%3E%3C/svg%3E");
}
.welcome-copy {
  position: relative;
  width: 50%;
  max-width: 650px;
  z-index: 2;
}
.welcome-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font: 700 22px var(--serif);
  letter-spacing: 0.07em;
  margin-bottom: 38px;
}
.welcome-brand svg {
  height: 39px;
  width: 39px;
  fill: var(--forest);
}
.welcome h1 {
  font: 400 clamp(35px, 4.1vw, 64px) / 1.08 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.welcome h1 em {
  font-weight: 400;
  color: #638168;
}
.welcome-description {
  font-size: 16px;
  line-height: 1.7;
  color: #777967;
  max-width: 430px;
  margin: 0 0 28px;
}
.join-form {
  max-width: 375px;
}
.join-form label {
  display: block;
  margin-bottom: 14px;
}
.join-form label > span {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 7px;
}
.join-form input,
.text-input {
  width: 100%;
  height: 46px;
  background: #fffcf2;
  border: 1px solid #c9bca1;
  border-radius: 7px;
  padding: 0 13px;
  color: var(--forest);
  font-size: 14px;
  box-shadow: inset 0 2px 3px #96816809;
}
.join-form input::placeholder {
  color: #a1a08d;
}
.primary {
  background: var(--forest);
  color: #fff6df;
  border-radius: 8px;
  padding: 14px 20px;
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 0 #0b241a;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #28503d;
  transform: translateY(-1px);
}
.join-form .primary {
  width: 100%;
  margin-top: 3px;
}
.primary svg {
  width: 19px;
  height: 19px;
}
.join-note {
  font-size: 11px;
  line-height: 1.6;
  color: #92917d;
  margin: 14px 0 0;
}
.join-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 9px;
}
.join-legal a {
  color: #7f816c;
  font-size: 10px;
  line-height: 1.6;
  text-underline-offset: 3px;
}
.join-legal a:hover {
  color: var(--forest);
}
.form-error {
  font-size: 12px;
  color: #a54d3c;
  min-height: 0;
  line-height: 1.4;
  margin: 0 0 12px;
}
.form-error:empty {
  display: none;
}
.welcome-illustration {
  position: absolute;
  width: 51vw;
  height: min(660px, 77vh);
  right: 1vw;
  top: 11vh;
  overflow: visible;
  pointer-events: none;
}
.sun-disc {
  position: absolute;
  left: 6%;
  top: 0;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid #c2bf8a44;
  border-radius: 50%;
  background: radial-gradient(circle, #e2e1b0bb, transparent 70%);
}
.sun-disc::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid #d5c79a55;
  border-radius: 50%;
}
.welcome-castle {
  position: absolute;
  left: 0;
  top: 4%;
  height: 80%;
  width: 100%;
  background: url("/assets/castles.png") 100% 100% / 300% 200% no-repeat;
  filter: drop-shadow(0 20px 15px #53673c20);
}
.welcome-character {
  position: absolute;
  height: 43%;
  width: 43%;
  left: 8%;
  bottom: 7%;
  background: url("/assets/characters.png") 0 0 /400% 200% no-repeat;
  filter: drop-shadow(0 14px 6px #20362b20);
  animation: float 5s ease-in-out infinite;
}
.welcome-duck {
  position: absolute;
  height: 29%;
  width: 29%;
  right: 10%;
  bottom: 9%;
  background: url("/assets/characters.png") 66.666% 0 /400% 200% no-repeat;
  filter: drop-shadow(0 10px 5px #20362b20);
  animation: float 6s 1s ease-in-out infinite;
}
.illustration-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: #758368;
  font: italic 16px var(--serif);
}
.illustration-caption svg {
  height: 19px;
  width: 19px;
}
.language-switch {
  position: fixed;
  top: 26px;
  right: 35px;
  z-index: 25;
  background: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid #c6bda1;
  border-radius: 6px;
}
.welcome-footer {
  position: absolute;
  left: 7vw;
  right: 5vw;
  bottom: 25px;
  display: flex;
  justify-content: space-between;
  color: #9a9a84;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 30px;
}
.modal-scrim {
  position: absolute;
  inset: 0;
  background: #102e2459;
  backdrop-filter: blur(4px);
}
.game-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(900px, 100%);
  min-width: 0;
  max-width: 100%;
  max-height: min(780px, 88vh);
  border-radius: 19px;
  padding: 27px 28px 22px;
  animation: modalin 0.2s ease;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
}
.modal-header small {
  color: #a98958;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.modal-header h2 {
  font: 700 29px var(--serif);
  margin: 6px 0 0;
  letter-spacing: -0.02em;
}
.close-button {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  background: #e6d6b344;
  border: 1px solid #bca67f66;
  border-radius: 50%;
  flex-shrink: 0;
}
.close-button:hover {
  background: #e2c79366;
}
.close-button svg {
  width: 18px;
  height: 18px;
}
.modal-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #c3a16b55;
  margin: 0 0 18px;
  overflow: auto;
  flex-shrink: 0;
}
.modal-tabs:empty {
  display: none;
}
.tab {
  padding: 11px 15px;
  background: none;
  color: #8c8067;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--forest);
  font-weight: 700;
  border-color: var(--forest);
}
.modal-body {
  overflow: auto;
  min-width: 0;
  min-height: 0;
  padding: 0 4px 4px 0;
  scrollbar-color: #bfa87c transparent;
  scrollbar-width: thin;
}
.modal-intro {
  color: #8d8066;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.section-title {
  font: 700 19px var(--serif);
  margin: 23px 0 12px;
}
.section-title:first-child {
  margin-top: 0;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.item-card {
  border: 1px solid #cbb18388;
  border-radius: 11px;
  background: #fffaf04d;
  overflow: hidden;
  padding: 13px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.item-card.selected {
  border-color: #6f8d62;
  box-shadow: inset 0 0 0 1px #6f8d6255;
}
.item-art {
  height: 134px;
  position: relative;
  background-color: #e7d3a02b;
  border-radius: 7px;
  margin-bottom: 11px;
  overflow: hidden;
}
.character-art {
  background-image: url("/assets/characters.png");
  background-size: 400% 200%;
  background-repeat: no-repeat;
}
.castle-art {
  background-image: url("/assets/castles.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.armory-art {
  background-image: url("/assets/armory.png");
  background-size: 400% 300%;
  background-repeat: no-repeat;
}
.item-card h3 {
  font: 700 17px var(--serif);
  margin: 0 0 5px;
}
.item-card p {
  font-size: 11px;
  color: #948065;
  line-height: 1.5;
  margin: 0 0 13px;
}
.item-card .card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.coin-price {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: #9e7833;
}
.coin-price svg {
  height: 15px;
  width: 15px;
}
.small-button {
  padding: 9px 12px;
  border-radius: 6px;
  background: #e6d5ae77;
  border: 1px solid #b79c6b88;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.small-button:hover {
  background: #d9c18d99;
}
.small-button.green {
  background: var(--forest);
  color: #fff5dd;
  border-color: var(--forest);
}
.small-button.danger {
  background: #f1d7c7;
  color: #a14c39;
  border-color: #c3947b;
}
.owned-label {
  font-size: 10px;
  color: #648355;
  font-weight: 700;
}
.home-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.home-art {
  height: 245px;
  background-color: #e8d9b02b;
  border-radius: 12px;
}
.home-info h3 {
  font: 700 25px var(--serif);
  margin: 0 0 8px;
}
.home-info p {
  font-size: 13px;
  color: #8d8066;
  line-height: 1.6;
}
.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #c4ad8055;
  font-size: 12px;
}
.stat-line strong {
  font-variant-numeric: tabular-nums;
}
.home-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #c8ac7a77;
  border-radius: 10px;
  background: #e4d2ab33;
}
.home-next h4 {
  font: 700 18px var(--serif);
  margin: 0 0 4px;
}
.home-next p {
  font-size: 11px;
  color: #978363;
  margin: 0;
}
.home-next .primary {
  padding: 11px 16px;
  min-height: 42px;
  white-space: nowrap;
}
.progress-track {
  display: flex;
  gap: 6px;
  margin: 20px 0;
}
.progress-node {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: #d8c8a6;
}
.progress-node.complete {
  background: #73976a;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #c3a77977;
  border-radius: 10px;
  padding: 15px;
  margin-top: 17px;
}
.toggle-row strong {
  font-size: 13px;
}
.toggle-row p {
  font-size: 11px;
  line-height: 1.5;
  color: #8d8067;
  margin: 5px 0 0;
}
.switch {
  height: 26px;
  width: 46px;
  background: #c4b89b;
  border-radius: 20px;
  padding: 3px;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: #fff7e5;
  border-radius: 50%;
  box-shadow: 0 1px 3px #44341430;
  transition: transform 0.2s;
}
.switch.on {
  background: #6c9366;
}
.switch.on::after {
  transform: translateX(20px);
}
.stat-upgrade {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid #c6ad7e55;
}
.stat-upgrade > svg {
  height: 29px;
  width: 29px;
  color: #7a8960;
  flex-shrink: 0;
}
.stat-upgrade > div {
  flex: 1;
}
.stat-upgrade h3 {
  font: 700 18px var(--serif);
  margin: 0 0 4px;
}
.stat-upgrade p {
  font-size: 11px;
  color: #9a8464;
  margin: 0;
}
.stat-dots {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.stat-dots i {
  height: 5px;
  width: 20px;
  background: #d4c5a3;
  border-radius: 3px;
}
.stat-dots i.filled {
  background: #78966b;
}
.stat-upgrade .coin-price {
  margin-right: 7px;
}
.hero-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #c6ad7e55;
}
.hero-summary .portrait {
  height: 85px;
  width: 85px;
}
.hero-summary h3 {
  font: 700 25px var(--serif);
  margin: 0 0 6px;
}
.hero-summary p {
  color: #968365;
  font-size: 12px;
  margin: 0;
  line-height: 1.7;
}
.boss-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.boss-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 15px;
  border: 1px solid #ccb18688;
  border-radius: 11px;
  background: #fffaf044;
}
.boss-emblem {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--forest);
  flex-shrink: 0;
  border: 1px solid #b4a47f88;
}
.boss-emblem svg {
  width: 30px;
  height: 30px;
}
.boss-copy {
  flex: 1;
  min-width: 0;
}
.boss-copy h3 {
  font: 700 18px var(--serif);
  margin: 0 0 4px;
}
.boss-copy p {
  font-size: 11px;
  line-height: 1.5;
  color: #8d8069;
  margin: 0;
}
.boss-row .small-button {
  min-width: 95px;
}
.mini-bar {
  height: 4px;
  background: #dac8a5;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 7px;
}
.mini-bar > i {
  height: 100%;
  display: block;
  background: #c16d54;
}
.clan-create {
  display: flex;
  gap: 10px;
  align-items: center;
}
.clan-create input {
  flex: 1;
  min-width: 0;
}
.clan-create .primary {
  white-space: nowrap;
}
.empty-state {
  padding: 25px 20px;
  border: 1px dashed #c1a77a;
  border-radius: 9px;
  text-align: center;
  color: #9a8767;
  font-size: 13px;
  line-height: 1.6;
}
.clan-row {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #c9af7e55;
  padding: 15px 0;
}
.clan-row > svg {
  width: 30px;
  height: 30px;
  color: #a4844e;
}
.clan-row > div {
  flex: 1;
}
.clan-row h3 {
  font: 700 18px var(--serif);
  margin: 0 0 4px;
}
.clan-row p {
  font-size: 11px;
  color: #948064;
  margin: 0;
}
.clan-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px;
  background: #e1cfa144;
  border-radius: 11px;
  border: 1px solid #c8ac7c88;
  margin-bottom: 18px;
}
.clan-banner > svg {
  height: 52px;
  width: 52px;
  color: #8c794c;
}
.clan-banner h3 {
  font: 700 27px var(--serif);
  margin: 0 0 6px;
}
.clan-banner p {
  margin: 0;
  color: #91805e;
  font-size: 12px;
}
.arena-info {
  margin-top: 18px;
  padding: 17px;
  background: #c4d3ad33;
  border: 1px solid #8b9d7755;
  border-radius: 10px;
}
.arena-info h3 {
  font: 700 19px var(--serif);
  margin: 0 0 8px;
}
.arena-info p {
  font-size: 12px;
  color: #7b8168;
  line-height: 1.6;
  margin: 0 0 13px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #c3a77955;
}
.settings-row h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.settings-row p {
  font-size: 11px;
  color: #948166;
  line-height: 1.5;
  margin: 0;
}
.settings-row select {
  background: #fff9e8;
  border: 1px solid #c3aa7d;
  border-radius: 6px;
  padding: 9px;
  color: var(--forest);
  font-size: 12px;
}
.key-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 15px 0 20px;
}
.key-grid > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8a7d62;
}
.key-grid kbd {
  border: 1px solid #bda77a;
  background: #fff9e7;
  border-radius: 4px;
  min-width: 40px;
  text-align: center;
  padding: 6px;
  font: 700 11px var(--body);
  color: var(--forest);
}
.help-block {
  font-size: 13px;
  color: #8d8068;
  line-height: 1.75;
}
.help-block strong {
  color: var(--forest);
}
.help-block ul {
  padding-left: 20px;
}
.help-block li {
  margin-bottom: 8px;
}
.color-swatch {
  height: 62px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.color-swatch svg {
  height: 40px;
  width: 40px;
  filter: drop-shadow(0 3px 1px #24332825);
}
.defense-icon {
  display: grid;
  place-items: center;
  height: 80px;
  background: #e7d4a344;
  border-radius: 7px;
  margin-bottom: 10px;
}
.defense-icon svg {
  height: 42px;
  width: 42px;
  color: #7d8b67;
}
.death-screen {
  position: absolute;
  inset: 0;
  background: #10332555;
  backdrop-filter: blur(4px);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}
.death-screen > div {
  padding: 35px;
  text-align: center;
  max-width: 410px;
}
.death-screen > div > svg {
  margin: auto;
  height: 39px;
  width: 39px;
  color: var(--red);
  fill: #c86b5522;
}
.death-screen h2 {
  font: 700 26px var(--serif);
  margin: 17px 0 10px;
}
.death-screen p {
  font-size: 13px;
  line-height: 1.6;
  color: #8a7b63;
}
.death-screen .primary {
  margin-top: 10px;
}
.mobile-controls {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.joystick {
  position: absolute;
  left: 25px;
  bottom: 145px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid #faefcf99;
  background: #24432a40;
  box-shadow: inset 0 0 0 7px #fff1c812;
  pointer-events: auto;
  touch-action: none;
}
.joystick > div {
  position: absolute;
  left: 29px;
  top: 29px;
  height: 44px;
  width: 44px;
  background: #f7edccaa;
  border: 2px solid #fff5dd;
  border-radius: 50%;
  box-shadow: 0 3px 9px #17322133;
  pointer-events: none;
}
.mobile-actions {
  position: absolute;
  right: 25px;
  bottom: 150px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: auto;
}
.mobile-actions button {
  height: 51px;
  width: 51px;
  border-radius: 50%;
  background: #f7e8bdc9;
  border: 2px solid #faefcc;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 #574a2d50;
  touch-action: none;
}
.mobile-actions .fire-control {
  height: 76px;
  width: 76px;
  background: #d77355db;
  color: #fff9e5;
}
.fire-control svg {
  height: 34px;
  width: 34px;
}
.mobile-actions button:active {
  transform: scale(0.94);
}
.boss-active-notice {
  color: #a16b45;
  font-size: 12px;
  margin-top: 8px;
}
.arena-status {
  font-size: 12px;
  color: #8c7452;
  padding: 10px 0;
}
.catalog-empty {
  font-size: 12px;
  color: #9b8662;
  padding: 20px 0;
}
.selected-spell {
  outline: 2px solid #86a579;
}
.text-button {
  background: none;
  padding: 8px 0;
  font-size: 12px;
  color: #8d7450;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.danger-text {
  color: #a65340;
}
.modal-money {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a07b34;
  font-weight: 700;
  font-size: 12px;
  margin-top: 8px;
}
.modal-money svg {
  height: 17px;
  width: 17px;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes toastin {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes modalin {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1600px) {
  .top-hud {
    left: 25px;
    right: 25px;
    top: 20px;
    height: 68px;
  }
  .brand {
    padding: 0 25px;
  }
  .vitals {
    padding: 12px 22px;
  }
  .meter {
    height: 39px;
    font-size: 21px;
  }
  .square {
    width: 65px;
  }
  .quest-panel {
    top: 116px;
    left: 25px;
    width: 275px;
  }
  .map-panel {
    top: 116px;
    right: 28px;
    width: 210px;
  }
  .minimap-frame {
    height: 210px;
    width: 210px;
  }
  .bottom-hud {
    left: 25px;
    right: 25px;
    bottom: 40px;
  }
  .action-slot {
    height: 88px;
    min-width: 105px;
  }
  .utility-slot {
    min-width: 68px;
  }
  .home-button {
    min-width: 220px;
  }
  .player-badge {
    width: 220px;
  }
}
@media (max-width: 1150px) {
  .brand {
    padding: 0 13px;
    font-size: 20px;
    gap: 7px;
  }
  .brand-icon svg {
    height: 30px;
    width: 30px;
  }
  .vitals {
    gap: 9px;
    padding: 11px;
  }
  .meter {
    font-size: 15px;
    gap: 7px;
  }
  .wallet {
    padding: 6px 12px;
    min-width: 105px;
  }
  .wallet small {
    display: none;
  }
  .wallet strong {
    font-size: 22px;
  }
  .square {
    width: 51px;
  }
  .quest-panel {
    width: 225px;
    padding: 17px 17px 12px;
  }
  .quest-heading {
    font-size: 19px;
  }
  .quest-text {
    font-size: 15px;
  }
  .map-panel {
    width: 160px;
  }
  .minimap-frame {
    height: 160px;
    width: 160px;
  }
  .location {
    font-size: 13px;
    padding: 9px;
  }
  .player-badge {
    display: none;
  }
  .bottom-hud {
    justify-content: center;
  }
  .home-button {
    min-width: 164px;
    font-size: 20px;
  }
  .action-slot {
    min-width: 88px;
  }
  .utility-slot {
    min-width: 55px;
  }
  .welcome {
    padding-left: 6vw;
  }
  .welcome h1 {
    font-size: 48px;
  }
  .welcome-description {
    max-width: 370px;
    font-size: 14px;
  }
  .welcome-brand {
    margin-bottom: 27px;
  }
  .welcome-illustration {
    right: -3vw;
    width: 55vw;
  }
  .welcome-copy {
    width: 51%;
  }
}
@media (max-width: 800px) {
  .top-hud {
    top: 10px;
    left: 10px;
    right: 10px;
    height: 51px;
    gap: 6px;
  }
  .brand {
    font-size: 15px;
    padding: 0 10px;
    gap: 4px;
  }
  .brand-icon svg {
    width: 23px;
    height: 23px;
  }
  .vitals {
    gap: 7px;
    padding: 9px;
    min-width: 150px;
  }
  .meter {
    height: 29px;
    font-size: 12px;
    gap: 4px;
  }
  .meter svg {
    height: 16px;
    width: 16px;
  }
  .diamond {
    display: none;
  }
  .wallet {
    min-width: 75px;
    padding: 5px 9px;
    gap: 5px;
  }
  .wallet svg {
    height: 24px;
    width: 24px;
  }
  .wallet strong {
    font-size: 19px;
  }
  .square {
    width: 43px;
  }
  .square svg {
    height: 22px;
    width: 22px;
  }
  .quest-panel {
    top: 80px;
    left: 12px;
    width: 200px;
    padding: 14px 15px 10px;
  }
  .quest-heading {
    font-size: 17px;
  }
  .quest-row {
    gap: 8px;
    padding: 9px 0;
  }
  .quest-text {
    font-size: 14px;
  }
  .quest-check {
    height: 14px;
    width: 14px;
  }
  .quest-row > svg {
    height: 21px;
    width: 21px;
  }
  .quest-note {
    font-size: 10px;
  }
  .map-panel {
    top: 82px;
    right: 14px;
    width: 135px;
  }
  .minimap-frame {
    height: 135px;
    width: 135px;
  }
  .location {
    font-size: 11px;
    padding: 8px 7px;
  }
  .location svg {
    height: 13px;
    width: 13px;
  }
  .online-label {
    font-size: 10px;
    margin-top: 8px;
  }
  .bottom-hud {
    bottom: 30px;
    left: 12px;
    right: 12px;
    gap: 8px;
  }
  .action-bar {
    min-height: 86px;
    padding: 6px;
  }
  .action-slot {
    height: 71px;
    min-width: 74px;
    padding: 7px 7px 6px;
  }
  .action-slot strong {
    font-size: 12px;
  }
  .action-slot kbd {
    font-size: 9px;
  }
  .slot-art {
    height: 37px;
    width: 53px;
  }
  .magic-art svg,
  .heal-art svg {
    height: 36px;
    width: 36px;
  }
  .utility-slot {
    min-width: 49px;
  }
  .utility-slot > svg {
    height: 23px;
    width: 23px;
    margin-bottom: 6px;
  }
  .utility-slot strong {
    font-size: 10px;
  }
  .home-button {
    min-height: 66px;
    min-width: 127px;
    gap: 7px;
    font-size: 17px;
    padding: 11px;
  }
  .home-button svg {
    height: 22px;
    width: 22px;
  }
  .home-button small {
    font-size: 10px;
  }
  .bag-hud {
    bottom: 127px;
  }
  .keyboard-hint {
    font-size: 9px;
  }
  .welcome {
    padding: 6vh 6vw 75px;
    align-items: flex-start;
  }
  .welcome-copy {
    width: 58%;
    padding-top: 4vh;
  }
  .welcome h1 {
    font-size: 40px;
  }
  .welcome-description {
    font-size: 13px;
  }
  .welcome-brand {
    font-size: 18px;
    gap: 8px;
    margin-bottom: 28px;
  }
  .welcome-brand svg {
    height: 30px;
    width: 30px;
  }
  .welcome-illustration {
    top: 15vh;
    right: -14vw;
    width: 65vw;
    height: 60vh;
    opacity: 0.85;
  }
  .welcome-castle {
    top: 8%;
    height: 76%;
  }
  .welcome-character {
    bottom: 5%;
    left: 4%;
    height: 37%;
    width: 37%;
  }
  .welcome-duck {
    bottom: 6%;
    right: 15%;
    height: 24%;
    width: 24%;
  }
  .illustration-caption {
    display: none;
  }
  .welcome-footer {
    left: 6vw;
    right: 6vw;
  }
  .modal-root {
    padding: 18px;
  }
  .game-modal {
    padding: 22px 20px;
    max-height: 90vh;
  }
  .item-grid {
    gap: 10px;
  }
  .item-art {
    height: 120px;
  }
  .modal-header h2 {
    font-size: 26px;
  }
  .home-overview {
    gap: 17px;
  }
  .home-art {
    height: 210px;
  }
  .home-info h3 {
    font-size: 23px;
  }
}
@media (max-width: 600px) {
  .top-hud {
    height: 46px;
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 5px;
  }
  .brand {
    width: 43px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
  }
  .brand > span:last-child {
    display: none;
  }
  .brand-icon svg {
    width: 28px;
    height: 28px;
  }
  .vitals {
    padding: 7px;
    gap: 5px;
    min-width: 0;
    border-radius: 10px;
  }
  .meter {
    font-size: 10px;
    height: 28px;
    min-width: 54px;
    border-radius: 6px;
    gap: 3px;
  }
  .meter svg {
    width: 13px;
    height: 13px;
  }
  .wallet {
    min-width: 66px;
    padding: 5px 6px;
    border-radius: 10px;
    gap: 3px;
  }
  .wallet svg {
    height: 21px;
    width: 21px;
  }
  .wallet strong {
    font-size: 16px;
  }
  .square {
    width: 38px;
    border-radius: 10px;
  }
  .square svg {
    height: 20px;
    width: 20px;
  }
  .top-hud #sound-toggle {
    display: none;
  }
  .quest-panel {
    top: 70px;
    left: 9px;
    width: 174px;
    padding: 12px 13px 8px;
    border-radius: 11px;
  }
  .quest-heading {
    font-size: 15px;
  }
  .quest-heading svg {
    height: 12px;
    width: 12px;
  }
  .quest-row {
    padding: 8px 0;
  }
  .quest-row > svg {
    width: 18px;
    height: 18px;
  }
  .quest-text {
    font-size: 12px;
  }
  .quest-text small {
    font-size: 10px;
  }
  .quest-check {
    height: 12px;
    width: 12px;
    border-width: 1px;
  }
  .ornament {
    margin: 10px 2px 4px;
  }
  .quest-note {
    display: none;
  }
  .map-panel {
    top: 72px;
    right: 9px;
    width: 97px;
  }
  .minimap-frame {
    height: 97px;
    width: 97px;
    border-width: 3px;
    padding: 2px;
  }
  .north {
    font-size: 12px;
    top: -10px;
  }
  .location {
    font-size: 9px;
    padding: 6px 5px;
    margin-top: 6px;
    border-radius: 6px;
  }
  .location svg {
    display: none;
  }
  .location > span {
    width: 100%;
    text-align: center;
  }
  .online-label {
    font-size: 8px;
    gap: 4px;
  }
  .live-dot {
    height: 4px;
    width: 4px;
  }
  .bottom-hud {
    left: 8px;
    right: 8px;
    bottom: max(13px, env(safe-area-inset-bottom));
    gap: 7px;
  }
  .action-bar {
    flex: 1;
    min-width: 0;
    min-height: 73px;
    padding: 5px;
    justify-content: space-around;
    border-radius: 13px;
    gap: 0;
  }
  .action-slot {
    height: 60px;
    min-width: 0;
    flex: 1;
    padding: 4px 2px;
  }
  .action-slot strong {
    font-size: 10px;
  }
  .action-slot kbd {
    display: none;
  }
  .slot-art {
    height: 32px;
    width: 45px;
  }
  .magic-art svg,
  .heal-art svg {
    height: 31px;
    width: 31px;
  }
  .utility-slot {
    min-width: 0;
  }
  .utility-slot > svg {
    height: 21px;
    width: 21px;
    margin-bottom: 5px;
  }
  .utility-slot strong {
    font-size: 9px;
  }
  .bar-divider {
    height: 40px;
    margin: 0 3px;
  }
  .home-button {
    min-width: 54px;
    width: 54px;
    min-height: 60px;
    padding: 8px;
    flex-direction: column;
    gap: 3px;
    border-radius: 12px;
  }
  .home-button > span:not([data-icon]) {
    display: none;
  }
  .home-button svg {
    width: 25px;
    height: 25px;
  }
  .home-button small {
    font-size: 9px;
  }
  .bag-hud {
    bottom: 98px;
    font-size: 10px;
    gap: 6px;
    padding: 7px 9px;
  }
  .bag-hud svg {
    height: 14px;
    width: 14px;
  }
  .bag-hud button {
    font-size: 9px;
    padding-left: 7px;
  }
  .keyboard-hint {
    display: none;
  }
  .mobile-controls {
    display: block;
  }
  .joystick {
    left: 20px;
    bottom: 145px;
    width: 94px;
    height: 94px;
  }
  .joystick > div {
    left: 25px;
    top: 25px;
    height: 42px;
    width: 42px;
  }
  .mobile-actions {
    right: 18px;
    bottom: 145px;
    gap: 10px;
  }
  .mobile-actions .fire-control {
    height: 66px;
    width: 66px;
  }
  .mobile-actions button {
    height: 44px;
    width: 44px;
  }
  .fire-control svg {
    height: 29px;
    width: 29px;
  }
  .nearby {
    top: auto;
    bottom: 242px;
    max-width: 80%;
  }
  .nearby button {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .nearby kbd {
    font-size: 12px;
    padding: 3px 6px;
  }
  .connection {
    top: 63px;
    padding: 8px 13px;
    font-size: 11px;
    max-width: 90%;
  }
  .toasts {
    top: 64px;
    width: 90vw;
  }
  .toast {
    font-size: 11px;
    padding: 10px 14px;
  }
  .welcome {
    padding: 30px 24px 65px;
    display: block;
    overflow: auto;
  }
  .welcome-copy {
    width: 100%;
    max-width: none;
    padding-top: 10px;
  }
  .welcome-brand {
    font-size: 18px;
    margin-bottom: 23px;
  }
  .welcome h1 {
    font-size: 36px;
    line-height: 1.08;
    max-width: 370px;
  }
  .welcome-description {
    font-size: 13px;
    line-height: 1.6;
    max-width: 330px;
    margin-bottom: 23px;
  }
  .join-form {
    max-width: none;
  }
  .join-form label {
    margin-bottom: 12px;
  }
  .join-form input {
    height: 45px;
  }
  .welcome-illustration {
    display: none;
  }
  .welcome-footer {
    position: relative;
    left: 0;
    right: 0;
    bottom: auto;
    margin-top: 30px;
    font-size: 9px;
    gap: 15px;
    line-height: 1.5;
  }
  .language-switch {
    top: 22px;
    right: 23px;
    padding: 7px 9px;
    font-size: 11px;
  }
  .modal-root {
    padding: 8px;
    align-items: end;
  }
  .game-modal {
    max-height: 91dvh;
    border-radius: 16px 16px 10px 10px;
    padding: 20px 17px 16px;
    width: 100%;
  }
  .modal-header {
    padding-bottom: 15px;
  }
  .modal-header h2 {
    font-size: 25px;
  }
  .modal-header small {
    font-size: 8px;
  }
  .modal-tabs {
    margin-bottom: 15px;
    gap: 0;
  }
  .tab {
    font-size: 11px;
    padding: 10px 12px;
  }
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .item-card {
    padding: 10px;
  }
  .item-card h3 {
    font-size: 15px;
  }
  .item-card p {
    font-size: 10px;
    margin-bottom: 11px;
  }
  .item-art {
    height: 118px;
  }
  .item-card .card-foot {
    flex-wrap: wrap;
    gap: 7px;
  }
  .small-button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .coin-price {
    font-size: 11px;
  }
  .home-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-art {
    height: 190px;
    margin: 0 auto;
    width: 240px;
  }
  .home-info h3 {
    font-size: 21px;
  }
  .home-info p {
    font-size: 12px;
  }
  .stat-line {
    font-size: 11px;
    padding: 8px 0;
  }
  .home-next {
    padding: 13px;
    gap: 10px;
  }
  .home-next h4 {
    font-size: 16px;
  }
  .home-next .primary {
    font-size: 12px;
    padding: 10px 12px;
  }
  .home-next p {
    font-size: 10px;
  }
  .toggle-row {
    padding: 12px;
  }
  .toggle-row strong {
    font-size: 12px;
  }
  .toggle-row p {
    font-size: 10px;
  }
  .boss-row {
    padding: 12px 10px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .boss-emblem {
    width: 41px;
    height: 41px;
  }
  .boss-emblem svg {
    width: 24px;
    height: 24px;
  }
  .boss-copy h3 {
    font-size: 16px;
  }
  .boss-copy p {
    font-size: 10px;
  }
  .boss-row .small-button {
    margin-left: auto;
    min-width: 0;
  }
  .hero-summary .portrait {
    height: 65px;
    width: 65px;
  }
  .hero-summary h3 {
    font-size: 23px;
  }
  .hero-summary p {
    font-size: 11px;
  }
  .stat-upgrade {
    gap: 10px;
    padding: 15px 0;
    flex-wrap: wrap;
  }
  .stat-upgrade h3 {
    font-size: 16px;
  }
  .stat-upgrade > svg {
    height: 24px;
    width: 24px;
  }
  .stat-upgrade .coin-price {
    margin-left: auto;
  }
  .stat-upgrade .small-button {
    margin-left: auto;
  }
  .clan-create {
    align-items: stretch;
    flex-direction: column;
  }
  .clan-create .primary {
    font-size: 12px;
    min-height: 42px;
  }
  .clan-banner {
    padding: 17px;
    gap: 15px;
  }
  .clan-banner h3 {
    font-size: 23px;
  }
  .clan-banner > svg {
    height: 40px;
    width: 40px;
  }
  .settings-row {
    gap: 10px;
  }
  .settings-row h3 {
    font-size: 12px;
  }
  .settings-row p {
    font-size: 10px;
  }
  .settings-row select {
    font-size: 11px;
    max-width: 135px;
  }
  .key-grid {
    grid-template-columns: 1fr;
  }
  .help-block {
    font-size: 12px;
  }
  .death-screen > div {
    padding: 27px;
  }
  .death-screen h2 {
    font-size: 23px;
  }
  .death-screen p {
    font-size: 12px;
  }
}
@media (pointer: fine) and (min-width: 601px) {
  .mobile-controls {
    display: none !important;
  }
}
@media (pointer: coarse) and (min-width: 601px) {
  .mobile-controls {
    display: block;
  }
  .keyboard-hint {
    display: none;
  }
  .joystick {
    bottom: 155px;
  }
  .mobile-actions {
    bottom: 160px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.boss-portrait {
  background-image: url("/assets/bosses.png");
  background-size: 400% 200%;
  background-color: #e9d9ae88;
}
.arena-hud {
  position: absolute;
  z-index: 6;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  max-width: 80%;
  border-radius: 10px;
}
.arena-hud > svg {
  width: 28px;
  height: 28px;
  color: #9a7b46;
}
.arena-hud strong {
  display: block;
  font: 700 16px var(--serif);
}
.arena-hud small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #8a7755;
}
.clan-member-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.clan-member-actions button {
  font-size: 10px;
  padding: 7px 9px;
}
@media (max-width: 600px) {
  .arena-hud {
    top: 208px;
    max-width: 93%;
    padding: 9px 11px;
    gap: 8px;
    white-space: nowrap;
  }
  .arena-hud > svg {
    display: none;
  }
  .arena-hud strong {
    font-size: 13px;
  }
  .arena-hud small {
    font-size: 9px;
  }
  .arena-hud .small-button {
    font-size: 9px;
    padding: 7px 8px;
  }
}

@media (max-width: 600px) {
  #weapon-label {
    display: block;
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #weapon-action {
    min-width: 49px;
  }
}

.defense-sprite {
  width: 90px;
  height: 80px;
  display: block;
}
.collection-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
}
.collection-summary strong {
  font: 700 30px var(--serif);
}
.collection-summary span {
  color: #8e8064;
  font-size: 12px;
}
.undiscovered .item-art {
  opacity: 0.3;
  filter: grayscale(0.85);
}
.undiscovered .owned-label {
  color: #a28f71;
}
.blueprint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blueprint {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c4ad8277;
  padding: 8px 10px;
  border-radius: 6px;
  color: #a29379;
  font-size: 11px;
}
.blueprint svg {
  height: 14px;
  width: 14px;
}
.blueprint.found {
  color: #567d4b;
  background: #d6dfbf44;
  border-color: #9aac7b66;
}
.mastery-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mastery-row {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #c8b18188;
  border-radius: 10px;
  padding: 13px 17px;
  background: #fff9e83b;
}
.mastery-art {
  width: 105px;
  height: 74px;
  flex-shrink: 0;
}
.mastery-copy {
  flex: 1;
  min-width: 0;
}
.mastery-copy > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mastery-copy h3 {
  font: 700 18px var(--serif);
  margin: 0;
}
.mastery-copy span {
  color: #8f7a56;
  font: italic 13px var(--serif);
}
.mastery-track {
  height: 6px;
  border-radius: 5px;
  overflow: hidden;
  background: #d4c5a4;
  margin: 10px 0 5px;
}
.mastery-track i {
  display: block;
  height: 100%;
  background: #7e9a68;
  border-radius: 5px;
}
.mastery-copy p {
  font-size: 10px;
  color: #9b8661;
  margin: 0;
}
.clan-unlocks {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.clan-unlocks > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #6e8057;
  background: #d9e0bb33;
  border-radius: 5px;
  padding: 6px 8px;
  border: 1px solid #9eb37e55;
}
.clan-unlocks svg {
  height: 12px;
  width: 12px;
}
.clan-tasks {
  font-size: 12px;
  color: #6f7d59;
  border-bottom: 1px solid #b9a57e55;
  padding: 8px 0 15px;
}
.clan-tasks p {
  font-size: 11px;
  color: #958064;
  margin: 7px 0 0;
}
@media (max-width: 600px) {
  .mastery-row {
    padding: 11px;
    gap: 10px;
  }
  .mastery-art {
    width: 69px;
    height: 57px;
  }
  .mastery-copy h3 {
    font-size: 15px;
  }
  .mastery-copy span {
    font-size: 11px;
  }
  .mastery-copy > div:first-child {
    gap: 5px;
    align-items: flex-start;
    flex-direction: column;
  }
  .mastery-track {
    margin-top: 7px;
  }
  .collection-summary strong {
    font-size: 25px;
  }
}

@media (max-width: 600px) {
  .action-slot strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .action-slot,
  .utility-slot {
    min-height: 56px;
  }
  #weapon-label {
    max-width: 100%;
  }
  .toasts {
    top: auto;
    bottom: 310px;
    width: 84vw;
  }
  .quest-panel.collapsed {
    padding-bottom: 12px;
  }
}
@media (max-width: 600px) {
  .utility-slot {
    flex: 0 0 40px;
    min-width: 40px;
  }
  .utility-slot strong {
    display: none;
  }
  .utility-slot > svg {
    margin-bottom: 12px;
  }
  .action-slot:not(.utility-slot) {
    min-width: 49px;
  }
}
/* Regions, estate planning and construction. */
#heal-supplies { position: absolute; right: 7px; top: 7px; font-size: 10px; color: #f7efcf; background: #71865f; border-radius: 9px; padding: 2px 5px; pointer-events: none; }
#heal-supplies:empty { display: none; }
.location { border: 0; cursor: pointer; font: inherit; }
.world-summary { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: #d6dec43d; border: 1px solid #a6b18a66; border-radius: 9px; margin-bottom: 18px; }
.world-summary > svg { width: 25px; height: 25px; color: #6e8659; }
.world-summary > div { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.world-summary strong { font: 700 18px var(--serif); color: var(--forest); }
.world-summary span { font-size: 11px; color: #8b805f; }
.world-summary .text-button { font-size: 11px; }
.world-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #b5a07866; border-radius: 9px; background: #ead9ac33; margin-top: 18px; }
.world-notice > svg { width: 23px; height: 23px; flex-shrink: 0; color: #9d8456; }
.world-notice p { margin: 0; font-size: 12px; line-height: 1.7; color: #8b7a5d; }
.home-access { display: flex; align-items: center; gap: 18px; justify-content: space-between; margin-top: 21px; padding-top: 20px; border-top: 1px solid #baa57855; }
.home-access h3 { font: 700 21px var(--serif); margin: 0 0 7px; }
.home-access p { font-size: 12px; line-height: 1.7; color: #8c7b5d; max-width: 380px; margin: 0; }
.home-access button { flex-shrink: 0; }
.regions-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.region-card { position: relative; min-width: 0; border: 1px solid #c6b08188; padding: 24px 16px 18px; border-radius: 11px; background: #f4e9cf66; overflow: hidden; }
.region-card.current { border: 2px solid var(--region-color); background: linear-gradient(150deg,#d8e2bd66,#f2e4c766); padding: 23px 15px 17px; }
.region-card > svg { width: 39px; height: 39px; color: var(--region-color); margin-bottom: 13px; }
.region-number { position: absolute; top: 8px; right: 11px; color: #aa987b38; font: 700 49px var(--serif); }
.region-card h3 { font: 700 23px var(--serif); line-height: 1.05; margin: 0 0 12px; min-height: 48px; }
.region-card p,.region-card small { font-size: 10px; line-height: 1.7; color: #8d7b5c; display: block; }
.region-state { display: block; margin-top: 19px; font-size: 10px; font-weight: 700; color: #75845b; }
.land-mode { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; }
.land-mode > span { margin-left: auto; color: #978363; font-size: 11px; }
.land-map-wrap { padding: 12px; border-radius: 10px; border: 1px solid #9fa98288; background: #abb68a33; }
.land-map { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 4px; max-width: 560px; margin: auto; }
.plot-cell { aspect-ratio: 1.4; min-width: 0; padding: 4px 0; border: 1px solid #a8ad8b66; background: #d6d6b766; color: #8c9577; border-radius: 4px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.plot-cell svg { width: 18px; height: 18px; }
.plot-cell small { font: 9px var(--body); display: block; margin-top: 3px; opacity: .8; }
.plot-cell.mine { background: #6f8b60; border-color: #506d46; color: #f8efcb; }
.plot-cell.clan { background: #a6b4c2; border-color: #7c929d; color: #eff3df; }
.plot-cell.occupied { background: #ad9a81; border-color: #95816a; color: #f5e6ce; }
.plot-cell.candidate { background: #e3ddb1; border: 1px dashed #8d9e6b; color: #718958; }
.plot-cell.footprint { box-shadow: inset 0 0 0 3px #d5a860; }
.plot-cell.selected { outline: 3px solid #be7150; outline-offset: 1px; z-index: 1; }
.plot-cell:hover { filter: brightness(1.07); }
.land-map-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 13px 0; }
.land-map-controls .small-button { min-width: 40px; min-height: 36px; padding: 6px; }
.land-legend { display: flex; flex-wrap: wrap; gap: 9px 17px; font-size: 10px; color: #8a7b5f; margin: 14px 0; }
.land-legend span:before { content: ''; width: 9px; height: 9px; display: inline-block; border-radius: 2px; margin-right: 5px; background: #d4dbb0; }
.land-legend .mine:before { background: #6f8b60; }.land-legend .clan:before { background: #a6b4c2; }.land-legend .occupied:before { background: #ad9a81; }
.land-confirm { display: flex; align-items: center; gap: 20px; justify-content: space-between; border-top: 1px solid #baa57855; padding-top: 18px; margin-top: 18px; }
.land-confirm h3 { font: 700 21px var(--serif); margin: 0 0 8px; }
.land-confirm p { color: #7d8c5d; font-size: 12px; line-height: 1.6; margin: 0 0 7px; }
.land-confirm p.invalid { color: #a65e46; }.land-confirm small { color: #9c8765; font-size: 11px; line-height: 1.6; display: block; }
.land-confirm .primary { flex-shrink: 0; white-space: nowrap; }
.estate-footprint { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 16px 0; padding: 12px; border-radius: 7px; background: #d4d7b333; }
.estate-footprint strong { font-size: 11px; display: block; color: #798561; }.estate-footprint small { display: block; font-size: 10px; margin-top: 5px; color: #9c8764; }
.estate-shape { display: grid; gap: 2px; max-width: 205px; overflow: auto; }.estate-shape i { width: 18px; height: 18px; border-radius: 2px; }.estate-shape i.owned { background: #84986a; }.estate-shape svg { width: 14px; height: 14px; color: #f5e9c1; margin: 2px; }
.structure-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.structure-card { display: flex; flex-direction: column; min-width: 0; padding: 13px; border: 1px solid #bfaa7b77; border-radius: 9px; background: #f0e4c877; }
.structure-art { height: 103px; width: 100%; background-image: url('/assets/building.png'); background-size: 400% 300%; background-repeat: no-repeat; margin-bottom: 9px; }
.structure-card h3 { font: 700 20px var(--serif); margin: 0 0 9px; }
.structure-card p { color: #927c59; font-size: 10px; line-height: 1.65; margin: 0 0 15px; }
.structure-card footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; }
.structure-card .small-button { font-size: 10px; padding: 9px; }
.placed-structures > div { display: flex; justify-content: space-between; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid #c3ab7e55; }
.placed-structures strong { font: 700 18px var(--serif); }.placed-structures small { display: block; font-size: 10px; margin-top: 4px; color: #9b8767; }
.interior-hud { position: absolute; z-index: 8; top: 124px; left: 50%; transform: translateX(-50%); padding: 12px 17px; border-radius: 10px; display: grid; grid-template-columns: 25px auto; gap: 4px 10px; text-align: left; }
.interior-hud > span { grid-row: span 2; align-self: center; }.interior-hud > span > svg { width: 25px; height: 25px; color: #72845e; }.interior-hud button { border: none; background: none; padding: 0; font: 700 18px var(--serif); color: var(--forest); cursor: pointer; text-align: left; white-space: nowrap; }.interior-hud small { grid-column: 2; font-size: 10px; color: #978261; }
.interior-plan { position: relative; height: 340px; border: 9px solid #a08c63; outline: 1px solid #847347; border-radius: 13px; margin: 13px 0 23px; background: repeating-linear-gradient(0deg,transparent 0 39px,#a3946f22 40px),repeating-linear-gradient(90deg,#d8c6a1 0 39px,#b6a178 40px); }
.interior-station { position: absolute; transform: translate(-50%,-50%); width: 92px; height: 89px; border: none; background: none; padding: 0; color: var(--forest); cursor: pointer; }
.interior-station-art { background-image: url('/assets/interior.png'); background-size: 400% 200%; background-repeat: no-repeat; height: 67px; display: block; }
.interior-station strong { font-size: 10px; display: block; padding: 4px 6px; border-radius: 5px; background: #eee1bfdd; white-space: nowrap; }.interior-station.near strong { background: #d4e1b9; box-shadow: 0 0 0 1px #8ba573; }
.interior-player { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #b96d4c; border: 2px solid #f7e8c0; transform: translate(-50%,-50%); box-shadow: 0 0 0 4px #b96d4c33; pointer-events: none; }
.supply-summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #d5dec233; border-radius: 8px; font-size: 12px; color: #8c7b58; }.supply-summary svg { width: 23px; height: 23px; color: #75885e; }
.station-list > div { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid #b8a27555; }.station-list h3 { font: 700 20px var(--serif); margin: 0 0 5px; }.station-list p { font-size: 11px; line-height: 1.6; color: #9b8766; margin: 0; }.station-list button { flex-shrink: 0; max-width: 170px; line-height: 1.4; }
.research-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid #c1a87a55; }.research-row > div { display: flex; align-items: center; gap: 10px; flex: 1; }.research-row svg { width: 20px; height: 20px; color: #8d936b; flex-shrink: 0; }.research-row strong { font: 700 18px var(--serif); }.research-row .small-button { min-height: 40px; white-space: nowrap; }
.building-mode { cursor: crosshair; }
.build-toolbar { position: absolute; z-index: 12; left: 50%; bottom: 167px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 11px; max-width: calc(100vw - 36px); box-shadow: 0 7px 24px #153b292c; }
.build-toolbar > div { min-width: 180px; flex: 1; }.build-toolbar strong { display: block; font: 700 19px var(--serif); white-space: nowrap; }.build-toolbar small { display: block; font-size: 10px; color: #7d8b5a; margin-top: 5px; line-height: 1.5; }.build-toolbar.invalid small { color: #a65e46; }.build-toolbar .small-button { white-space: nowrap; }.build-toolbar .close-button { flex-shrink: 0; }
@media (max-width: 600px) {
  .world-summary { padding: 11px; gap: 9px; }.world-summary strong { font-size: 17px; }.world-summary .text-button { max-width: 90px; line-height: 1.6; font-size: 10px; }
  .regions-grid { grid-template-columns: 1fr; gap: 10px; }.region-card { padding: 16px; display: grid; grid-template-columns: 43px 1fr; gap: 3px 12px; }.region-card.current { padding: 15px; }.region-card > svg { grid-row: span 4; margin: 0; align-self: center; }.region-card h3 { font-size: 23px; min-height: 0; margin: 0 0 4px; }.region-card p,.region-card small { margin: 0; }.region-state { margin-top: 5px; }.region-number { right: 8px; top: 5px; font-size: 44px; }.world-notice { padding: 12px; }.world-notice p { font-size: 11px; }
  .home-access { flex-direction: column; align-items: stretch; gap: 12px; }.home-access p { font-size: 11px; }
  .land-mode .small-button { font-size: 10px; min-height: 40px; padding: 9px 10px; }.land-mode > span { width: 100%; text-align: right; }.land-map-wrap { padding: 6px; }.land-map { gap: 3px; }.plot-cell { padding: 2px 0; border-radius: 3px; font-size: 15px; min-height: 34px; }.plot-cell svg { width: 11px; height: 11px; }.plot-cell small { font-size: 7px; margin-top: 2px; }.plot-cell.selected { outline-width: 2px; }.land-legend { font-size: 9px; gap: 9px 11px; }.land-confirm { flex-direction: column; align-items: stretch; gap: 13px; }.land-confirm h3 { font-size: 20px; }.land-confirm p { font-size: 11px; }.land-confirm small { font-size: 10px; }
  .structure-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.structure-card { padding: 11px; }.structure-art { height: 93px; }.structure-card h3 { font-size: 18px; }.structure-card p { font-size: 9px; }.structure-card footer { flex-direction: column; align-items: stretch; }.structure-card .small-button { min-height: 40px; }
  .interior-plan { height: 260px; border-width: 6px; }.interior-station { width: 65px; height: 72px; }.interior-station-art { height: 53px; }.interior-station strong { font-size: 9px; padding: 3px; }.station-list > div { gap: 10px; }.station-list h3 { font-size: 18px; }.station-list p { font-size: 10px; }.station-list button { font-size: 10px; padding: 9px; max-width: 126px; min-height: 40px; }.interior-hud { top: 148px; padding: 9px 12px; max-width: calc(100vw - 30px); }.interior-hud button { font-size: 17px; }.interior-hud small { font-size: 9px; }
  .research-row { gap: 9px; flex-wrap: wrap; }.research-row > div { flex: 0 0 100%; }.research-row > .coin-price { flex: 1; }.research-row strong { font-size: 17px; }.research-row .small-button { font-size: 11px; }
  .build-toolbar { top: 165px; bottom: auto; width: calc(100vw - 28px); max-width: 390px; padding: 11px; gap: 8px; flex-wrap: wrap; }.build-toolbar > div { width: calc(100% - 40px); min-width: 0; flex: auto; }.build-toolbar strong { font-size: 17px; white-space: normal; padding-right: 30px; }.build-toolbar small { font-size: 10px; }.build-toolbar #build-cancel { position: absolute; right: 7px; top: 7px; }.build-toolbar #build-rotate,.build-toolbar #build-confirm { flex: 1; min-height: 42px; }
}
/* Cosmetic bundles reuse the parchment, character and armory artwork. */
.shop-settings-link{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px}.shop-settings-link svg{width:18px;height:18px}.shop-test-notice{display:flex;align-items:flex-start;gap:13px;padding:15px 16px;border:1px solid #c2a87888;border-radius:10px;background:#e9dab655;margin-bottom:19px}.shop-test-notice>svg{flex-shrink:0;width:26px;height:26px;color:#8c7955}.shop-test-notice strong{font-size:13px;display:block;color:#715f41}.shop-test-notice p{font-size:11px;line-height:1.65;color:#8c7a5b;margin:6px 0 0}.shop-test-notice.connected{border-color:#8ca27688;background:#dce7c544}.shop-test-notice.connected strong,.shop-test-notice.connected>svg{color:#587748}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.shop-product{padding:17px}.shop-bundle-art{height:190px;position:relative;background:radial-gradient(ellipse at 50% 85%,#cbca9c55,transparent 67%);margin:0 0 11px;overflow:hidden;border-radius:9px}.shop-hero-art{position:absolute;inset:0 auto 0 6%;width:66%;height:100%;background-repeat:no-repeat}.shop-weapon-art{position:absolute;right:3%;bottom:3%;width:47%;height:48%;background-repeat:no-repeat;filter:drop-shadow(0 5px 3px #4e552122)}.shop-product h3{font-size:21px;margin-bottom:8px}.shop-product>p{font-size:12px;line-height:1.65;min-height:38px;color:#8b7a5c}.shop-product-contents{display:flex;flex-direction:column;gap:7px;padding:10px 0 15px;border-bottom:1px solid #c7b08055;font-size:11px;color:#6d7958}.shop-product-contents span{display:flex;align-items:center;gap:7px}.shop-product-contents svg{height:15px;width:15px;flex-shrink:0}.shop-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:15px}.shop-card-footer>strong{font:700 23px var(--serif);color:#7f693e;white-space:nowrap}.shop-card-footer button{white-space:normal;line-height:1.4;text-align:center}.shop-checkout{display:grid;grid-template-columns:.8fr 1.2fr;gap:23px;margin:12px 0 20px;align-items:center}.shop-checkout>.shop-bundle-art{height:260px}.shop-checkout h3{font:700 27px var(--serif);margin:0 0 12px}.shop-description{font-size:12px;color:#8b7c60;line-height:1.7}.shop-contents{list-style:none;padding:0;margin:17px 0;font-size:12px;line-height:1.8;color:#8d7b58}.shop-contents li+li{margin-top:5px}.shop-contents strong{color:var(--forest);font-weight:700}.shop-price{font:700 31px var(--serif);color:#81683b;margin:17px 0 10px}.shop-checkout-note{font-size:11px;line-height:1.65;color:#9a8665;margin:0 0 16px}.shop-pay-button{font-size:12px;width:100%;line-height:1.5}.shop-error{padding:11px 13px;border:1px solid #c58d7288;border-radius:8px;color:#9f5844;background:#e7c9b533;font-size:12px;line-height:1.6;margin:12px 0}.shop-error .text-button{margin-left:7px;font-size:11px}.shop-loading{padding:18px 0;color:#978261;text-align:center;font-size:12px}.shop-legal{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px;padding:18px 0 0;border-top:1px solid #c5ad7f55;margin-top:18px}.shop-legal a{font-size:11px;color:#94805a;text-underline-offset:3px;line-height:1.5}.shop-legal a:hover{color:var(--forest)}.shop-orders{margin-top:23px}.shop-order{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid #c6ad7e55}.shop-order strong{display:block;font:700 17px var(--serif)}.shop-order small{display:block;color:#9b8460;font-size:11px;margin-top:5px;line-height:1.5}.shop-order .owned-label{text-align:right;font-size:11px}.shop-payment-status{border:1px solid #b7a16d88;background:#ebdcb544;border-radius:10px;padding:15px 17px;margin-bottom:18px}.shop-payment-status>strong{font:700 19px var(--serif)}.shop-payment-status p{font-size:12px;line-height:1.65;color:#8b7b5f;margin:8px 0 0}.shop-payment-status button{margin-top:12px}.shop-payment-status.succeeded{border-color:#8ea77b99;background:#d8e2bb44}.shop-payment-status.canceled,.shop-payment-status.review{border-color:#b9887499;background:#e7cdb533}.shop-footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:18px}.shop-footer .text-button{font-size:11px}
@media(max-width:600px){.shop-test-notice{padding:12px;gap:9px}.shop-test-notice>svg{width:21px;height:21px}.shop-test-notice strong{font-size:12px;line-height:1.45}.shop-test-notice p{font-size:10px}.shop-grid{grid-template-columns:1fr;gap:13px}.shop-product{padding:14px}.shop-bundle-art{height:184px;max-width:280px;margin:0 auto 10px;width:100%}.shop-product h3{font-size:21px}.shop-product>p{font-size:11px;min-height:0}.shop-card-footer>strong{font-size:24px}.shop-card-footer button{font-size:11px}.shop-checkout{grid-template-columns:1fr;gap:9px}.shop-checkout>.shop-bundle-art{height:205px;width:245px;max-width:100%;margin:auto}.shop-checkout h3{font-size:24px}.shop-contents{font-size:11px}.shop-price{font-size:29px}.shop-pay-button{font-size:12px;min-height:48px}.shop-legal{gap:8px 14px;padding-top:15px}.shop-legal a{font-size:10px}.shop-order{gap:10px}.shop-order strong{font-size:15px}.shop-order small{font-size:10px}.shop-payment-status{padding:13px}.shop-payment-status>strong{font-size:17px}.shop-payment-status p{font-size:11px}}

/* Earned progression and a separate cosmetic-only crystal wallet. */
.economy-wallet { display:flex; flex-wrap:wrap; gap:12px 24px; padding:15px 18px; margin-bottom:18px; border:1px solid #cbb78a88; border-radius:12px; background:#e9dcbb33; }
.economy-wallet > span { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--forest); }
.economy-wallet strong { font:700 23px var(--serif); margin-left:4px; }
.economy-wallet svg,.crystal-amount svg { width:20px; height:20px; flex-shrink:0; }
.crystal-amount { color:#527c99!important; display:inline-flex; align-items:center; gap:7px; }
.premium-label { display:inline-flex; align-items:center; gap:6px; color:#64649a; font-weight:700; font-size:11px; }
.premium-label svg { width:17px; height:17px; }
.premium-card { border-color:#b6abc4!important; background:linear-gradient(150deg,#fff8e6,#e9e9ed99); }
.premium-button { background:#636a8d!important; color:#fff9ed!important; border-color:#565e7d!important; }
.premium-button:disabled { opacity:.55; }
.acquisition-foot { flex-wrap:wrap; gap:9px; margin-top:auto; }
.acquisition-foot .small-button { font-size:11px; white-space:normal; }
.achievement-label { display:flex; align-items:center; gap:7px; color:#738153; font-size:12px; line-height:1.5; }
.achievement-label svg { width:18px; height:18px; flex-shrink:0; }
.item-lock { color:#a96c4f; font-weight:600; font-size:11px; line-height:1.55; }
.house-requirements { display:grid; gap:9px; margin:16px 0; padding:16px; border:1px solid #cfb88977; border-radius:11px; background:#e7d5a52a; }
.house-requirements > strong { font:700 18px var(--serif); }
.house-requirements > span { display:flex; align-items:center; gap:8px; font-size:12px; color:#a16d52; }
.house-requirements > span.met { color:#608153; }
.house-requirements svg { width:16px; height:16px; flex-shrink:0; }
.house-requirements small { font-size:10px; color:#8f7e62; margin-top:2px; }
.progression-summary { display:grid; grid-template-columns:85px minmax(0,1fr); align-items:center; gap:19px; margin-bottom:22px; }
.progression-summary h3 { font:700 28px var(--serif); margin:4px 0 8px; }
.progression-summary p { font-size:12px; color:#8a7d64; margin:5px 0 10px; }
.progression-summary .eyebrow { font-size:10px; text-transform:uppercase; letter-spacing:.12em; }
.level-medallion { height:85px; width:85px; position:relative; display:grid; place-items:center; border:1px solid #c3a46d; border-radius:50%; background:#eed4a85c; color:#887349; }
.level-medallion svg { width:72px; height:72px; opacity:.25; }
.level-medallion strong { position:absolute; font:700 33px var(--serif); color:var(--forest); }
.contract-list { display:grid; gap:10px; }
.contract-row { display:grid; grid-template-columns:26px minmax(0,1fr) auto; align-items:center; gap:12px; padding:15px; border:1px solid #cbb68b66; border-radius:11px; }
.contract-row > svg { width:24px; height:24px; color:#9b895f; }
.contract-row h4 { font:700 18px var(--serif); margin:0 0 6px; }
.contract-row p { font-size:11px; line-height:1.6; margin:0 0 8px; color:#8a7c64; }
.contract-row > strong { font-size:10px; color:#9b8c70; }
.contract-row.complete { background:#d7e5ba33; border-color:#97ae7a88; }
.contract-row.complete > strong,.contract-row.complete > svg { color:#6d8a53; }
.prestige-list { display:grid; gap:1px; border:1px solid #c8b38b66; border-radius:10px; overflow:hidden; }
.prestige-list > div { display:flex; align-items:center; gap:10px; padding:12px 15px; font-size:12px; border-bottom:1px solid #c8b38b44; color:#9d8e74; }
.prestige-list svg { width:17px; height:17px; }
.prestige-list strong { margin-left:auto; font-size:11px; }
.prestige-list .unlocked { background:#d8e2bc33; color:#58794c; }
.crystal-pack-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.crystal-pack { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; padding:18px; border:1px solid #a4b8c477; border-radius:12px; background:#e3ebef55; }
.crystal-pack strong { font:700 26px var(--serif); }
.crystal-pack > span { font-weight:700; font-size:13px; color:#877351; }
.crystal-pack > button { flex:0 0 100%; }
.crystal-pack-art { display:grid; justify-items:center; align-content:center; min-height:230px; color:#668da5; background:radial-gradient(ellipse,#c4dce477,transparent 70%); }
.crystal-pack-art svg { width:100px; height:100px; }
.crystal-pack-art strong { font:700 36px var(--serif); margin-top:12px; }
@media(max-width:600px) {
  .economy-wallet { padding:12px; gap:10px 17px; }.economy-wallet > span { font-size:10px; }.economy-wallet strong { font-size:21px; }
  .progression-summary { grid-template-columns:65px minmax(0,1fr); gap:12px; }.level-medallion { width:65px; height:65px; }.level-medallion svg { width:55px; height:55px; }.level-medallion strong { font-size:27px; }.progression-summary h3 { font-size:23px; }
  .contract-row { grid-template-columns:21px minmax(0,1fr); padding:12px; gap:9px; }.contract-row > strong { grid-column:2; }.contract-row h4 { font-size:17px; }.contract-row p { font-size:10px; }
  .crystal-pack-grid { grid-template-columns:1fr; }.crystal-pack { padding:15px; }.crystal-pack-art { min-height:165px; }.crystal-pack-art svg { width:80px; height:80px; }
  .house-requirements { padding:12px; }.house-requirements > span { font-size:11px; }.prestige-list > div { padding:11px; font-size:11px; }.acquisition-foot .small-button { min-height:38px; }
}
