.the-quest {
  --the-quest-gold: #f2cb7a;
  --the-quest-gold-strong: #ffdf8e;
  --the-quest-forest-dark: #08160f;
  --the-quest-forest-mid: #173623;
  --the-quest-forest-light: #6da86e;
  --the-quest-panel: rgba(10, 26, 18, 0.74);
  --the-quest-panel-strong: rgba(7, 18, 13, 0.88);
  --the-quest-line: rgba(255, 227, 163, 0.28);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  min-height: 100%;
  padding: clamp(12px, 1.6vw, 18px);
  color: #f6f7fb;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 124, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(125, 217, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(88, 157, 94, 0.18), transparent 34%),
    linear-gradient(180deg, #07130f 0%, #091712 48%, #050c0a 100%);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.the-quest__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.the-quest__status-card,
.the-quest__currency,
.the-quest__bottom-ui,
.the-quest__left-controls,
.the-quest__auto-toggle,
.the-quest__item-actions,
.the-quest__equipment-slot {
  display: flex;
  align-items: center;
}

.the-quest__bottom-ui {
  justify-content: space-between;
}

.the-quest__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  align-items: stretch;
  min-height: 0;
}

.the-quest__stage {
  position: relative;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(255, 225, 165, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #183222 0%, #0d1d15 42%, #08130e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 202, 0.12),
    0 24px 52px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.the-quest__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 228, 171, 0.1);
  pointer-events: none;
  z-index: 1;
}

.the-quest__game-surface {
  position: absolute;
  inset: 0;
}

.the-quest__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  background: rgba(6, 18, 12, 0.48);
  z-index: 4;
}

.the-quest__loading--error {
  background: rgba(18, 8, 8, 0.72);
}

.the-quest__loading-card {
  max-width: min(420px, calc(100% - 32px));
  padding: 18px 20px;
  border: 1px solid rgba(255, 228, 171, 0.18);
  border-radius: 20px;
  background: rgba(8, 18, 14, 0.82);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.the-quest__loading-card strong {
  display: block;
  font-size: 16px;
  color: #fff0cf;
}

.the-quest__loading-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(244, 247, 255, 0.84);
}

.the-quest__stage-vignette,
.the-quest__stage-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.the-quest__stage-vignette {
  background:
    linear-gradient(180deg, rgba(255, 247, 215, 0.06), rgba(0, 0, 0, 0)),
    radial-gradient(circle at 50% 38%, rgba(255, 241, 190, 0.08), transparent 24%),
    radial-gradient(circle at 50% 115%, rgba(6, 17, 12, 0.9), transparent 36%);
}

.the-quest__stage-glow {
  filter: blur(8px);
}

.the-quest__stage-glow--left {
  background: radial-gradient(circle at 14% 28%, rgba(255, 226, 160, 0.18), transparent 12%);
}

.the-quest__stage-glow--right {
  background: radial-gradient(circle at 88% 20%, rgba(111, 213, 255, 0.16), transparent 12%);
}

.the-quest__hud,
.the-quest__quest-banner,
.the-quest__bottom-ui {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 3;
  pointer-events: none;
}

.the-quest__hud {
  top: 18px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.the-quest__top-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.the-quest__toolbar-menu,
.the-quest__toolbar-button,
.the-quest__rail-button {
  border: 0;
  appearance: none;
  font: inherit;
}

.the-quest__toolbar-menu {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 225, 165, 0.16);
  border-radius: 18px;
  color: #f3dfab;
  background:
    linear-gradient(180deg, rgba(255, 240, 198, 0.08), rgba(255, 240, 198, 0)),
    rgba(9, 15, 18, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 212, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 24px;
}

.the-quest__toolbar-dock {
  pointer-events: auto;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 68px;
  padding: 8px 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 240, 198, 0.08), rgba(255, 240, 198, 0)),
    rgba(7, 13, 16, 0.9);
  border: 1px solid rgba(255, 225, 165, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 212, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.26);
}

.the-quest__toolbar-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: #d8c486;
  background:
    linear-gradient(180deg, rgba(255, 240, 198, 0.05), rgba(255, 240, 198, 0)),
    rgba(18, 28, 34, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 216, 0.07),
    0 8px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.the-quest__toolbar-button--primary {
  width: 124px;
  border-radius: 18px;
}

.the-quest__toolbar-button--active {
  color: #fff5d8;
  background:
    linear-gradient(180deg, rgba(188, 136, 47, 0.82), rgba(128, 82, 20, 0.92)),
    rgba(62, 38, 8, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 226, 0.16),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

.the-quest__toolbar-icon {
  font-size: 31px;
  line-height: 1;
}

.the-quest__toolbar-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #b3362a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.the-quest__hud-table-wrap {
  pointer-events: auto;
  width: min(100%, 568px);
  border: 1px solid rgba(255, 225, 165, 0.14);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 240, 198, 0.04), rgba(255, 240, 198, 0)),
    rgba(5, 10, 12, 0.8);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 202, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.the-quest__hud-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #f1ecda;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.the-quest__hud-table tbody tr {
  background: rgba(4, 9, 11, 0.18);
}

.the-quest__hud-table tbody tr + tr {
  background: rgba(255, 244, 209, 0.02);
  border-top: 1px solid rgba(255, 225, 165, 0.08);
}

.the-quest__hud-table th,
.the-quest__hud-table td {
  padding: 4px 5px;
  border-right: 1px solid rgba(255, 225, 165, 0.08);
  border-bottom: 0;
  white-space: nowrap;
  text-align: left;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
}

.the-quest__hud-buff-cell {
  white-space: normal;
}

.the-quest__hud-buff-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.the-quest__hud-buff-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid rgba(110, 214, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 28, 37, 0.82);
}

.the-quest__hud-buff-pill strong,
.the-quest__hud-buff-pill span,
.the-quest__hud-buff-pill em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.the-quest__hud-buff-pill strong {
  color: #f6f0dd;
  font-size: 8px;
}

.the-quest__hud-buff-pill span {
  color: rgba(223, 244, 255, 0.82);
  font-size: 8px;
}

.the-quest__hud-buff-pill em {
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  color: #9ce9ff;
}

.the-quest__hud-buff-more,
.the-quest__hud-buff-empty {
  color: rgba(223, 244, 255, 0.7);
  font-size: 8px;
}

.the-quest__hud-table th {
  color: rgba(255, 225, 165, 0.62);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.the-quest__hud-table td {
  font-weight: 700;
  color: #f7f1dd;
}

.the-quest__hud-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.the-quest__hud-toolbar-cell {
  padding: 5px 5px;
  border-right: 0;
}

.the-quest__hud-toolbar-group {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.the-quest__hud-toolbar-button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  min-height: 29px;
  padding: 4px 5px;
  border: 1px solid rgba(255, 225, 165, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 240, 198, 0.05), rgba(255, 240, 198, 0)),
    rgba(13, 18, 22, 0.92);
  color: #decca1;
  cursor: pointer;
}

.the-quest__hud-toolbar-button--menu {
  flex: 0 0 auto;
  min-width: 29px;
  padding-inline: 4px;
}

.the-quest__hud-toolbar-button--exit {
  flex: 0 0 auto;
  min-width: 29px;
  padding-inline: 4px;
  color: #ffe3bf;
}

.the-quest__hud-toolbar-button--active {
  color: #fff0c8;
  background:
    linear-gradient(180deg, rgba(162, 116, 41, 0.84), rgba(92, 60, 17, 0.94)),
    rgba(47, 29, 7, 0.96);
  border-color: rgba(255, 221, 150, 0.28);
}

.the-quest__hud-toolbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  font-size: 11px;
  line-height: 1;
}

.the-quest__hud-toolbar-label {
  min-width: 0;
  font-size: 6px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.the-quest__hud-toolbar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13px;
  margin-left: auto;
  padding: 2px 3px;
  border-radius: 999px;
  background: rgba(177, 55, 42, 0.92);
  color: #fff9ed;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
}

.the-quest__hud-stack-label {
  width: 30px;
  text-align: center;
}

.the-quest__hud-gauge-cell {
  width: 100px;
  min-width: 100px;
}

.the-quest__hud-gauge {
  width: min(100%, 78px);
  min-width: 0;
  height: 12px;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.the-quest__hud-gauge-cell--stack {
  padding-right: 7px;
}

.the-quest__hud-gauge span {
  font-size: 7px;
  letter-spacing: 0.02em;
}

.the-quest__hud-table th:last-of-type,
.the-quest__hud-table td:last-child {
  border-right: 0;
}

.the-quest__hud-table-action {
  width: 1%;
  text-align: right;
}

.the-quest__status-card,
.the-quest__meta-cluster,
.the-quest__quest-banner,
.the-quest__auto-toggle,
.the-quest__sidebar-card,
.the-quest__panel-sheet,
.the-quest__item-card,
.the-quest__item-detail,
.the-quest__quest-card,
.the-quest__quest-detail,
.the-quest__npc-card {
  border: 1px solid var(--the-quest-line);
  background:
    linear-gradient(180deg, rgba(255, 246, 219, 0.08), rgba(0, 0, 0, 0)),
    var(--the-quest-panel);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.the-quest__status-card {
  gap: 12px;
  padding: 10px 12px;
  border-radius: 20px;
  pointer-events: auto;
}

.the-quest__status-card--compact {
  display: grid;
  width: min(100%, 468px);
  min-width: min(320px, calc(100vw - 88px));
  gap: 8px;
  padding: 9px 11px;
}

.the-quest__status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.the-quest__stage-chip-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.the-quest__stage-chip {
  display: grid;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 225, 165, 0.22);
  border-radius: 14px;
  background: rgba(7, 19, 14, 0.54);
}

.the-quest__stage-chip strong {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.the-quest__stage-chip small {
  font-size: 10px;
  color: rgba(246, 247, 251, 0.68);
}

.the-quest__stage-advance {
  border: 1px solid rgba(255, 226, 171, 0.26);
  border-radius: 10px;
  padding: 5px 9px;
  color: #f8f1d7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, rgba(247, 203, 112, 0.18), rgba(66, 47, 17, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 240, 202, 0.16);
  cursor: pointer;
}

.the-quest__stage-advance:hover {
  background: linear-gradient(180deg, rgba(247, 203, 112, 0.26), rgba(66, 47, 17, 0.5));
}

.the-quest__status-headline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  min-width: 0;
  gap: 6px;
}

.the-quest__status-headline span,
.the-quest__status-headline small {
  font-size: 9px;
  color: rgba(246, 247, 251, 0.62);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.the-quest__status-headline strong {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.the-quest__status-inline-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.the-quest__status-inline-metrics--right {
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  align-content: center;
}

.the-quest__status-inline-metrics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 62px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 243, 213, 0.88);
  background: rgba(255, 248, 230, 0.05);
}

.the-quest__status-stat {
  border: 1px solid rgba(255, 227, 163, 0.16);
  background: rgba(255, 243, 205, 0.08);
}

.the-quest__status-meters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.the-quest__status-balance-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.the-quest__status-meters--short {
  flex: 0 0 clamp(108px, 21%, 136px);
  grid-template-columns: 1fr;
  gap: 4px;
}

.the-quest__meter-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
}

.the-quest__meter-row > span {
  font-size: 9px;
  color: rgba(246, 247, 251, 0.68);
}

.the-quest__meter-row > small {
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(190, 236, 213, 0.72);
}

.the-quest__avatar {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  font-weight: 700;
  color: #fff6da;
  background: linear-gradient(180deg, #7d6437 0%, #39250f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 186, 0.28),
    0 10px 20px rgba(0, 0, 0, 0.24);
}

.the-quest__avatar span {
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 236, 176, 0.74);
}

.the-quest__avatar strong {
  font-size: 20px;
  line-height: 1;
}

.the-quest__bars {
  min-width: 210px;
}

.the-quest__nameplate {
  display: grid;
  margin-bottom: 8px;
}

.the-quest__nameplate strong {
  display: block;
  font-size: 13px;
}

.the-quest__nameplate span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 234, 188, 0.68);
}

.the-quest__bar {
  position: relative;
  height: 14px;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.34);
}

.the-quest__bar--compact {
  height: 10px;
  margin-top: 0;
}

.the-quest__bar--compact span {
  font-size: 8px;
}

.the-quest__bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.the-quest__bar-fill {
  height: 100%;
  border-radius: inherit;
}

.the-quest__bar-fill--hp {
  background: linear-gradient(90deg, #8f2430 0%, #ff646b 100%);
}

.the-quest__bar-fill--mp {
  background: linear-gradient(90deg, #2474b5 0%, #74dbff 100%);
}

.the-quest__currency {
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  pointer-events: auto;
  border: 1px solid rgba(255, 223, 155, 0.2);
  background: rgba(26, 18, 8, 0.62);
}

.the-quest__currency span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.the-quest__currency span:first-child {
  color: #ffd86e;
}

.the-quest__currency span:last-child {
  color: #7bddff;
}

.the-quest__bottom-ui {
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(214px, 252px) minmax(214px, 252px);
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.the-quest__left-controls,
.the-quest__right-controls {
  pointer-events: auto;
}

.the-quest__consumable-strip {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  border-radius: 0;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 238, 198, 0.02), rgba(255, 238, 198, 0)),
    transparent;
  box-shadow: none;
  pointer-events: auto;
}

.the-quest__consumable-strip-list {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.the-quest__consumable-strip-rail {
  display: flex;
  align-items: center;
  gap: 8px;
}

.the-quest__consumable-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 56px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 221, 156, 0.14);
  background: rgba(11, 17, 22, 0.36);
  color: rgba(246, 230, 186, 0.74);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.the-quest__consumable-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.the-quest__consumable-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 221, 156, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 238, 198, 0.08), rgba(255, 238, 198, 0)),
    rgba(18, 27, 34, 0.32);
  color: #f2c56c;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.the-quest__consumable-slot--hp {
  color: #7df0b3;
}

.the-quest__consumable-slot--special {
  color: #8fd8ff;
}

.the-quest__consumable-slot--speed {
  color: #ffd576;
}

.the-quest__consumable-slot--empty,
.the-quest__consumable-slot:disabled {
  opacity: 0.38;
}

.the-quest__consumable-slot--empty {
  cursor: default;
  box-shadow: none;
}

.the-quest__consumable-slot-icon {
  font-size: 18px;
  line-height: 1;
}

.the-quest__consumable-slot em {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 16px;
  padding: 2px 4px;
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  text-align: center;
  color: #fff;
  background: #eb3d3d;
}

.the-quest__left-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
}

.the-quest__movement-dock {
  justify-items: center;
}

.the-quest__movement-dock .the-quest__dock-head {
  width: 100%;
}

.the-quest__movement-dock,
.the-quest__combat-stack {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 221, 156, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 238, 198, 0.06), rgba(255, 238, 198, 0)),
    rgba(7, 13, 16, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
}

.the-quest__dock-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.the-quest__dock-head span {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 221, 156, 0.12);
  background: rgba(17, 27, 33, 0.92);
  color: rgba(246, 230, 186, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.the-quest__dock-hotkey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 221, 156, 0.1);
  background: rgba(17, 27, 33, 0.56);
  color: rgba(214, 232, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.the-quest__page-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 221, 156, 0.1);
  background: rgba(17, 27, 33, 0.56);
}

.the-quest__page-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 221, 156, 0.12);
  background: rgba(11, 18, 24, 0.84);
  color: rgba(246, 230, 186, 0.82);
  cursor: pointer;
}

.the-quest__page-nav-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.the-quest__page-nav-label {
  min-width: 72px;
  color: rgba(214, 232, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.the-quest__joystick {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 196px);
  min-width: 196px;
  min-height: 196px;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 28px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 222, 154, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(24, 35, 43, 0.34), rgba(9, 15, 20, 0.3)),
    rgba(11, 17, 22, 0.28);
  border: 1px solid rgba(255, 221, 156, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.06),
    inset 0 -10px 20px rgba(0, 0, 0, 0.16),
    0 10px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.the-quest__joystick-ring,
.the-quest__joystick-knob {
  position: absolute;
  inset: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.the-quest__joystick-ring {
  width: 56%;
  height: 56%;
  border: 2px solid rgba(255, 221, 156, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 240, 202, 0.08), rgba(12, 20, 26, 0.04)),
    rgba(8, 14, 19, 0.26);
}

.the-quest__joystick-knob {
  width: 34%;
  height: 34%;
  background: linear-gradient(180deg, #3566ee 0%, #2152dd 100%);
  box-shadow: 0 12px 24px rgba(34, 85, 216, 0.28);
}

.the-quest__joystick--active .the-quest__joystick-knob {
  background: linear-gradient(180deg, #5586ff 0%, #2455d8 100%);
}

.the-quest__auto-toggle {
  display: inline-flex;
  align-items: center;
  width: auto;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 18px;
  background: rgba(17, 27, 33, 0.36);
  border: 1px solid rgba(255, 221, 156, 0.14);
  backdrop-filter: blur(10px);
}

.the-quest__auto-toggle small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(246, 230, 186, 0.72);
}

.the-quest__auto-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgba(255, 220, 140, 0.9);
}

.the-quest__right-controls {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-items: end;
}

.the-quest__combat-cluster {
  display: flex;
  align-items: end;
  justify-content: center;
}

.the-quest__gesture-pad {
  display: grid;
  width: 100%;
  min-width: 196px;
  gap: 8px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(255, 221, 156, 0.18);
  border-radius: 24px;
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 224, 150, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(19, 30, 37, 0.34), rgba(7, 13, 17, 0.3)),
    rgba(9, 15, 20, 0.28);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.12);
}

.the-quest__gesture-pad--active {
  border-color: rgba(204, 146, 50, 0.3);
}

.the-quest__gesture-pad--dir-up,
.the-quest__gesture-pad--dir-up-right,
.the-quest__gesture-pad--dir-right {
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.1),
    0 14px 30px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(255, 140, 110, 0.12);
}

.the-quest__gesture-pad--dir-down,
.the-quest__gesture-pad--dir-down-right,
.the-quest__gesture-pad--dir-down-left,
.the-quest__gesture-pad--dir-left,
.the-quest__gesture-pad--dir-up-left {
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 214, 0.1),
    0 14px 30px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(116, 217, 255, 0.14);
}

.the-quest__gesture-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.the-quest__gesture-node,
.the-quest__gesture-core {
  position: absolute;
  display: grid;
  place-items: center;
}

.the-quest__gesture-node {
  width: 46px;
  min-height: 46px;
  gap: 1px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(16, 25, 31, 0.44);
  border: 1px solid rgba(255, 221, 156, 0.18);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  isolation: isolate;
  overflow: hidden;
}

.the-quest__gesture-node--empty {
  opacity: 0.44;
}

.the-quest__gesture-node--selected {
  border-color: rgba(204, 146, 50, 0.34);
  background: linear-gradient(180deg, rgba(158, 106, 29, 0.28), rgba(16, 25, 31, 0.94));
  transform: translate(-50%, -50%) scale(1.08);
}

.the-quest__gesture-node--selected strong {
  color: #fff6da;
}

.the-quest__gesture-node::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 244, 214, 0.4), rgba(255, 244, 214, 0) 72%);
  transform: scale(0.4);
}

.the-quest__gesture-node--up,
.the-quest__gesture-node--up-right,
.the-quest__gesture-node--right,
.the-quest__gesture-node--down-right,
.the-quest__gesture-node--down,
.the-quest__gesture-node--down-left,
.the-quest__gesture-node--left,
.the-quest__gesture-node--up-left {
  transform: translate(-50%, -50%);
}

.the-quest__gesture-node--up {
  left: 50%;
  top: 14%;
}

.the-quest__gesture-node--up-right {
  left: 80%;
  top: 24%;
}

.the-quest__gesture-node--right {
  left: 88%;
  top: 50%;
}

.the-quest__gesture-node--down-right {
  left: 80%;
  top: 76%;
}

.the-quest__gesture-node--down {
  left: 50%;
  top: 86%;
}

.the-quest__gesture-node--down-left {
  left: 20%;
  top: 76%;
}

.the-quest__gesture-node--left {
  left: 12%;
  top: 50%;
}

.the-quest__gesture-node--up-left {
  left: 20%;
  top: 24%;
}

.the-quest__gesture-node--up.the-quest__gesture-node--selected,
.the-quest__gesture-node--up-right.the-quest__gesture-node--selected,
.the-quest__gesture-node--right.the-quest__gesture-node--selected {
  box-shadow: 0 0 18px rgba(255, 140, 110, 0.14);
}

.the-quest__gesture-node--down.the-quest__gesture-node--selected,
.the-quest__gesture-node--down-right.the-quest__gesture-node--selected,
.the-quest__gesture-node--down-left.the-quest__gesture-node--selected,
.the-quest__gesture-node--left.the-quest__gesture-node--selected,
.the-quest__gesture-node--up-left.the-quest__gesture-node--selected {
  box-shadow: 0 0 18px rgba(116, 217, 255, 0.16);
}

.the-quest__gesture-node--cooldown {
  opacity: 0.72;
}

.the-quest__gesture-node--cast {
  animation: the-quest-gesture-node-cast 280ms ease-out;
}

.the-quest__gesture-node--cast::after {
  opacity: 1;
  animation: the-quest-gesture-burst 280ms ease-out;
}

.the-quest__gesture-node-icon {
  font-size: 12px;
  color: rgba(236, 220, 183, 0.7);
}

.the-quest__gesture-node strong {
  font-size: 15px;
  line-height: 1;
}

.the-quest__gesture-node small {
  max-width: 100%;
  overflow: hidden;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(223, 212, 188, 0.62);
}

.the-quest__gesture-core {
  appearance: none;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  gap: 2px;
  border-radius: 18px;
  transform: translate(-50%, -50%);
  padding: 0;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(162, 110, 30, 0.86), rgba(92, 57, 17, 0.94)),
    rgba(62, 38, 8, 0.96);
  border: 1px solid rgba(255, 225, 165, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transition:
    transform 120ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
  isolation: isolate;
  overflow: hidden;
}

.the-quest__gesture-core::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 231, 174, 0.54), rgba(255, 188, 94, 0.24) 42%, rgba(255, 188, 94, 0) 72%);
  transform: scale(0.5);
}

.the-quest__gesture-core--pressed {
  transform: translate(-50%, -50%) scale(0.96);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(255, 190, 91, 0.26);
  filter: saturate(1.12);
}

.the-quest__gesture-core--cast {
  animation: the-quest-gesture-core-cast 280ms ease-out;
}

.the-quest__gesture-core--cast::after {
  opacity: 1;
  animation: the-quest-gesture-burst 280ms ease-out;
}

.the-quest__gesture-core strong {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff6da;
}

@keyframes the-quest-gesture-core-cast {
  0% {
    transform: translate(-50%, -50%) scale(0.94);
    box-shadow:
      0 10px 20px rgba(0, 0, 0, 0.26),
      0 0 0 rgba(255, 194, 105, 0);
  }
  35% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
      0 16px 28px rgba(0, 0, 0, 0.3),
      0 0 26px rgba(255, 194, 105, 0.44);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  }
}

@keyframes the-quest-gesture-node-cast {
  0% {
    transform: translate(-50%, -50%) scale(0.94);
  }
  35% {
    transform: translate(-50%, -50%) scale(1.14);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes the-quest-gesture-burst {
  0% {
    opacity: 0.92;
    transform: scale(0.38);
  }
  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

.the-quest__rail-button {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 2px;
  width: 100%;
  min-height: 72px;
  padding: 10px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 238, 198, 0.06), rgba(255, 238, 198, 0)),
    rgba(18, 27, 34, 0.96);
  border: 1px solid rgba(255, 221, 156, 0.16);
  color: #f2c56c;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.the-quest__rail-button--hp {
  color: #7df0b3;
}

.the-quest__rail-button--special {
  color: #8fd8ff;
}

.the-quest__rail-button--speed {
  color: #ffd576;
}

.the-quest__rail-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.the-quest__rail-button-icon {
  font-size: 21px;
  line-height: 1;
}

.the-quest__rail-button strong,
.the-quest__rail-button small {
  display: block;
  line-height: 1.1;
  text-align: left;
}

.the-quest__rail-button strong {
  font-size: 12px;
  color: #fff1c8;
}

.the-quest__rail-button small {
  font-size: 9px;
  color: rgba(255, 239, 200, 0.64);
}

.the-quest__rail-button em {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 20px;
  padding: 3px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  text-align: center;
  color: #fff;
  background: #eb3d3d;
}

.the-quest__sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.the-quest__sidebar-card--character {
  gap: 14px;
}

.the-quest__sidebar-portrait-button,
.the-quest__character-portrait-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.the-quest__sidebar-character-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.the-quest__sidebar-character-copy {
  display: grid;
  gap: 6px;
}

.the-quest__sidebar-character-copy strong {
  margin-bottom: 0;
  font-size: 18px;
  color: #fff2cf;
}

.the-quest__sidebar-character-copy span {
  font-size: 13px;
  color: rgba(255, 236, 190, 0.82);
}

.the-quest__sidebar-character-copy small {
  font-size: 11px;
  color: rgba(221, 236, 255, 0.74);
}

.the-quest__sidebar-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.the-quest__sidebar-stat-box {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 227, 163, 0.12);
  background: rgba(255, 246, 219, 0.05);
}

.the-quest__sidebar-stat-box span {
  font-size: 10px;
  color: rgba(244, 222, 170, 0.66);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.the-quest__sidebar-stat-box strong {
  margin-bottom: 0;
  font-size: 15px;
}

.the-quest__sidebar-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.the-quest__sidebar-actions button {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 222, 158, 0.18);
  background: rgba(255, 252, 240, 0.08);
  color: #fff2cf;
  cursor: pointer;
}

.the-quest__sidebar-primary-action {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 212, 119, 0.38);
  color: #2e1c06;
  background: linear-gradient(180deg, #ffe19d 0%, #ffb765 100%);
  box-shadow: 0 10px 22px rgba(255, 191, 73, 0.16);
  cursor: pointer;
}

.the-quest__effect-list,
.the-quest__sidebar-skill-list {
  display: grid;
  gap: 10px;
}

.the-quest__effect-chip,
.the-quest__sidebar-skill-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 227, 163, 0.12);
  background: rgba(255, 246, 219, 0.05);
}

.the-quest__effect-chip strong {
  margin-bottom: 0;
  font-size: 13px;
  color: #fff1cb;
}

.the-quest__effect-chip span {
  font-size: 12px;
  color: rgba(233, 241, 255, 0.78);
}

.the-quest__sidebar-skill-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.the-quest__sidebar-skill-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(118, 176, 255, 0.2), rgba(34, 44, 68, 0.3));
  color: #fff2cf;
  font-size: 20px;
}

.the-quest__sidebar-skill-copy {
  display: grid;
  gap: 4px;
}

.the-quest__sidebar-skill-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.the-quest__sidebar-skill-title-row strong {
  margin-bottom: 0;
  font-size: 14px;
}

.the-quest__sidebar-skill-title-row small,
.the-quest__sidebar-skill-copy small {
  color: rgba(240, 244, 255, 0.72);
  line-height: 1.45;
}

.the-quest__sidebar-skill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 227, 163, 0.14);
  color: #f9e6b2;
  font-size: 10px;
  font-weight: 700;
}

.the-quest__sidebar-skill-meta,
.the-quest__sidebar-skill-state {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.the-quest__sidebar-skill-meta span,
.the-quest__sidebar-skill-state span,
.the-quest__sidebar-skill-state em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-style: normal;
  color: #f3ead2;
}

.the-quest__sidebar-skill-state--active {
  background: rgba(83, 170, 255, 0.18) !important;
  color: #d5ebff !important;
}

.the-quest__sidebar-skill-state--cooldown {
  background: rgba(192, 105, 78, 0.18) !important;
  color: #ffd1c2 !important;
}

.the-quest__sidebar-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
}

.the-quest__sidebar-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.the-quest__sidebar-portrait-block {
  display: grid;
  gap: 6px;
}

.the-quest__sidebar-portrait-block small {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(244, 222, 170, 0.66);
}

.the-quest__settings-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
}

.the-quest__sidebar-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  color: rgba(246, 247, 251, 0.62);
}

.the-quest__sidebar-card strong {
  display: block;
  margin-bottom: 8px;
}

.the-quest__settings-card strong {
  display: block;
  color: #fff2cf;
}

.the-quest__sidebar-card p,
.the-quest__settings-card p,
.the-quest__sidebar-card li,
.the-quest__item-detail p,
.the-quest__quest-detail p,
.the-quest__npc-card p,
.the-quest__equipment-note {
  color: rgba(246, 247, 251, 0.76);
  line-height: 1.5;
}

.the-quest__sidebar-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.the-quest__sidebar-card li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.the-quest__panel-sheet {
  position: fixed;
  left: 50%;
  bottom: 18px;
  width: min(680px, calc(100vw - 20px));
  max-height: min(78vh, calc(100dvh - 84px));
  transform: translateX(-50%);
  padding: 14px;
  border-radius: 24px;
  z-index: 1200;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 245, 212, 0.08), rgba(0, 0, 0, 0)),
    var(--the-quest-panel-strong);
}

.the-quest--mobile-optimized .the-quest__stage-glow {
  filter: blur(5px);
}

.the-quest--low-effects .the-quest__stage-glow {
  opacity: 0.72;
}

.the-quest__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.the-quest__panel-header button,
.the-quest__item-actions button,
.the-quest__equipment-slot button,
.the-quest__settings-exit {
  padding: 8px 12px;
  border-radius: 12px;
  color: inherit;
  border: 1px solid rgba(255, 222, 158, 0.18);
  background: rgba(255, 252, 240, 0.08);
  cursor: pointer;
}

.the-quest__panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  font-size: 16px;
}

.the-quest__settings-exit {
  justify-self: start;
  color: #fff4d2;
  background:
    linear-gradient(180deg, rgba(165, 108, 51, 0.88), rgba(72, 42, 18, 0.94)),
    rgba(255, 252, 240, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 233, 188, 0.24),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.the-quest__panel-content {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.the-quest__panel-content--inventory {
  position: relative;
}

.the-quest__panel-content--character {
  display: block;
}

.the-quest__item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 72px));
  gap: 8px;
}

.the-quest__item-card,
.the-quest__quest-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.the-quest__item-card--active,
.the-quest__quest-card--active {
  border-color: rgba(255, 214, 119, 0.68);
  box-shadow:
    0 0 0 1px rgba(255, 214, 119, 0.4),
    0 14px 30px rgba(255, 191, 73, 0.16);
}

.the-quest__item-icon {
  font-size: clamp(22px, 4vw, 28px);
}

.the-quest__inventory-shell {
  display: block;
}

.the-quest__inventory-main,
.the-quest__item-detail-modal {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(211, 167, 89, 0.38);
  background:
    linear-gradient(180deg, rgba(47, 34, 20, 0.28), rgba(7, 9, 18, 0.86)),
    rgba(8, 10, 18, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 227, 173, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.3);
  color: #f7edd8;
}

.the-quest__inventory-topbar,
.the-quest__inventory-grid-head,
.the-quest__equipment-slot-head,
.the-quest__item-tooltip-header,
.the-quest__inventory-gold {
  display: flex;
  align-items: center;
}

.the-quest__inventory-topbar,
.the-quest__inventory-grid-head {
  justify-content: space-between;
  gap: 12px;
}

.the-quest__inventory-grid-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.the-quest__inventory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.the-quest__inventory-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 222, 158, 0.14);
  border-radius: 999px;
  background: rgba(255, 252, 240, 0.05);
  color: rgba(247, 237, 216, 0.82);
  cursor: pointer;
}

.the-quest__inventory-filter span {
  font-size: 12px;
  font-weight: 600;
}

.the-quest__inventory-filter em {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  color: #ffeab6;
  background: rgba(255, 214, 119, 0.16);
}

.the-quest__inventory-filter--active {
  border-color: rgba(255, 214, 119, 0.54);
  background: linear-gradient(180deg, rgba(132, 93, 35, 0.72), rgba(61, 39, 14, 0.82));
  color: #fff3cf;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 192, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.the-quest__inventory-caption,
.the-quest__inventory-grid-head span,
.the-quest__inventory-grid-head small,
.the-quest__equipment-slot-head small,
.the-quest__item-tooltip-header span,
.the-quest__equipment-slot-card span {
  color: rgba(234, 227, 215, 0.64);
}

.the-quest__inventory-topbar strong,
.the-quest__inventory-grid-head strong {
  display: block;
  font-size: 18px;
  color: #fff0cd;
}

.the-quest__inventory-caption {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.the-quest__inventory-gold {
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(239, 197, 105, 0.34);
  background: linear-gradient(180deg, rgba(78, 56, 24, 0.72), rgba(29, 21, 11, 0.92));
  color: #ffd46d;
}

.the-quest__inventory-gold span {
  font-size: 16px;
  font-weight: 700;
}

.the-quest__inventory-gold small {
  font-size: 11px;
  color: rgba(255, 227, 168, 0.72);
  text-transform: uppercase;
}

.the-quest__inventory-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  width: fit-content;
  border-radius: 18px;
  border: 1px solid rgba(246, 214, 145, 0.18);
  background: rgba(15, 18, 28, 0.72);
}

.the-quest__inventory-tab {
  min-width: 96px;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  color: rgba(242, 232, 208, 0.74);
  background: transparent;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.the-quest__inventory-tab--active {
  color: #fff4d5;
  background: linear-gradient(180deg, rgba(132, 93, 35, 0.84), rgba(61, 39, 14, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 192, 0.24),
    0 10px 20px rgba(0, 0, 0, 0.22);
}

.the-quest__inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.the-quest__character-layout {
  display: grid;
  gap: 14px;
}

.the-quest__character-hero,
.the-quest__character-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(191, 148, 70, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 198, 115, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(35, 28, 20, 0.96), rgba(10, 12, 20, 0.92));
}

.the-quest__character-hero {
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
}

.the-quest__character-hero-copy {
  display: grid;
  gap: 8px;
}

.the-quest__character-hero-copy > span {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 222, 170, 0.68);
  text-transform: uppercase;
}

.the-quest__character-hero-copy strong {
  margin-bottom: 0;
  font-size: 20px;
  color: #fff2cf;
}

.the-quest__character-hero-meta,
.the-quest__character-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.the-quest__character-hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #f8eed7;
  background: rgba(255, 248, 231, 0.08);
}

.the-quest__character-hero-actions button {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 222, 158, 0.18);
  color: inherit;
  background: rgba(255, 252, 240, 0.08);
  cursor: pointer;
}

.the-quest__character-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.the-quest__character-empty-copy {
  margin: 0;
}

.the-quest__equipment-panel,
.the-quest__equipment-column,
.the-quest__inventory-grid-panel,
.the-quest__item-detail-panel {
  display: grid;
  gap: 12px;
}

.the-quest__equipment-hero {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(191, 148, 70, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 198, 115, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(35, 28, 20, 0.96), rgba(10, 12, 20, 0.92));
}

.the-quest__equipment-hero-copy {
  display: grid;
  gap: 6px;
}

.the-quest__equipment-hero-copy span {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 222, 170, 0.68);
  text-transform: uppercase;
}

.the-quest__equipment-hero-copy strong {
  font-size: 18px;
  color: #fff2cf;
}

.the-quest__equipment-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.the-quest__inventory-grid-panel {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(187, 142, 69, 0.18);
  background: linear-gradient(180deg, rgba(24, 19, 16, 0.92), rgba(9, 11, 20, 0.88));
  color: #f7edd8;
}

.the-quest__inventory-grid-panel .the-quest__item-grid {
  justify-content: start;
}

.the-quest__inventory-grid-actions button {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 222, 158, 0.18);
  background: rgba(255, 252, 240, 0.08);
  color: #fff2cf;
  cursor: pointer;
}

.the-quest__item-detail,
.the-quest__quest-detail,
.the-quest__npc-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
}

.the-quest__item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.the-quest__item-stats span,
.the-quest__equipment-note {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3ead2;
}

.the-quest__item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.the-quest__equipment-slot {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 11px;
  border-radius: 18px;
  border: 1px solid rgba(191, 148, 70, 0.28);
  background:
    linear-gradient(180deg, rgba(74, 49, 23, 0.18), rgba(13, 14, 24, 0.88)),
    rgba(255, 251, 239, 0.05);
  color: #f7edd8;
}

.the-quest__portrait-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 220, 156, 0.22);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 233, 176, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(27, 31, 44, 0.98), rgba(9, 11, 18, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 192, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.28);
}

.the-quest__portrait-card--player {
  width: 116px;
  height: 132px;
}

.the-quest__portrait-card--sidebar {
  width: 100%;
  height: 112px;
}

.the-quest__portrait-card--enemy,
.the-quest__portrait-card--enemy-boss,
.the-quest__portrait-card--enemy-idle {
  background:
    radial-gradient(circle at 50% 20%, rgba(159, 229, 255, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(17, 30, 42, 0.98), rgba(8, 12, 18, 0.98));
}

.the-quest__portrait-card--enemy-boss {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 210, 126, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(46, 28, 18, 0.98), rgba(14, 10, 12, 0.98));
}

.the-quest__portrait-card--enemy-idle {
  background:
    radial-gradient(circle at 50% 20%, rgba(210, 226, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(24, 26, 34, 0.98), rgba(10, 12, 18, 0.98));
}

.the-quest__portrait-card > span {
  position: absolute;
  display: block;
}

.the-quest__portrait-glow {
  left: 50%;
  bottom: 10px;
  width: 86px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(90, 172, 255, 0.2);
  filter: blur(10px);
}

.the-quest__portrait-frame {
  inset: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 226, 168, 0.12);
}

.the-quest__portrait-hair {
  top: 18px;
  left: 32px;
  width: 52px;
  height: 34px;
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(180deg, #4c3424 0%, #20130d 100%);
}

.the-quest__portrait-face {
  top: 34px;
  left: 38px;
  width: 40px;
  height: 42px;
  border-radius: 18px 18px 22px 22px;
  background:
    radial-gradient(circle at 35% 42%, #281811 0 2px, transparent 2px),
    radial-gradient(circle at 65% 42%, #281811 0 2px, transparent 2px),
    linear-gradient(180deg, #f1cca6 0%, #dcab80 100%);
}

.the-quest__portrait-cloak {
  left: 22px;
  bottom: 18px;
  width: 72px;
  height: 72px;
  clip-path: polygon(18% 0%, 82% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, #16253e 0%, #0b111d 100%);
}

.the-quest__portrait-armor {
  left: 33px;
  bottom: 22px;
  width: 50px;
  height: 54px;
  border-radius: 16px 16px 12px 12px;
  background:
    linear-gradient(180deg, rgba(241, 212, 135, 0.22) 0 14%, transparent 14% 100%),
    linear-gradient(180deg, #35527f 0%, #152339 100%);
}

.the-quest__portrait-weapon {
  right: 22px;
  bottom: 18px;
  width: 10px;
  height: 64px;
  border-radius: 999px;
  transform: rotate(22deg);
  background:
    linear-gradient(180deg, #fff7de 0 16%, #c29544 16% 24%, #d7ecff 24% 100%);
  box-shadow: 0 0 16px rgba(143, 199, 255, 0.28);
}

.the-quest__portrait-core {
  left: 50%;
  bottom: 24px;
  width: 64px;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #8de6ff 0%, #2b8ad0 58%, #18507e 100%);
}

.the-quest__portrait-shell {
  left: 50%;
  bottom: 14px;
  width: 78px;
  height: 68px;
  transform: translateX(-50%);
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.42), transparent 16%),
    radial-gradient(circle at 68% 36%, rgba(255, 255, 255, 0.18), transparent 12%),
    linear-gradient(180deg, rgba(168, 248, 255, 0.72) 0%, rgba(84, 188, 255, 0.9) 46%, rgba(26, 76, 132, 0.96) 100%);
}

.the-quest__portrait-crest {
  left: 50%;
  top: 18px;
  width: 48px;
  height: 22px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, #ffe2aa 0%, #b87c34 100%);
}

.the-quest__portrait-card--enemy .the-quest__portrait-crest {
  width: 34px;
  top: 28px;
  background: linear-gradient(180deg, #dff8ff 0%, #7fc3ff 100%);
}

.the-quest__portrait-card--enemy-idle .the-quest__portrait-crest {
  opacity: 0.42;
}

.the-quest__portrait-eye {
  top: 54px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #13263d;
}

.the-quest__portrait-eye--left {
  left: calc(50% - 18px);
}

.the-quest__portrait-eye--right {
  right: calc(50% - 18px);
}

.the-quest__equipment-slot--drop-ready {
  border-color: rgba(255, 214, 119, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 214, 119, 0.24);
}

.the-quest__equipment-slot-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.the-quest__equipment-slot-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 58px;
  padding: 8px 9px;
  border-radius: 14px;
  border: 1px solid rgba(255, 224, 172, 0.08);
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.the-quest__equipment-slot-card--active {
  border-color: rgba(255, 214, 119, 0.48);
  box-shadow:
    0 0 0 1px rgba(255, 214, 119, 0.24),
    0 10px 20px rgba(255, 191, 73, 0.12);
}

.the-quest__equipment-slot-copy {
  min-width: 0;
}

.the-quest__equipment-slot-copy strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  margin-bottom: 4px;
}

.the-quest__equipment-slot-card strong,
.the-quest__item-detail-modal strong,
.the-quest__item-detail-panel strong,
.the-quest__panel-header strong {
  color: #fff2cf;
}

.the-quest__equipment-slot-card--empty {
  opacity: 0.72;
}

.the-quest__item-detail-panel {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(211, 167, 89, 0.28);
  background:
    linear-gradient(180deg, rgba(58, 39, 20, 0.24), rgba(8, 10, 18, 0.9)),
    rgba(8, 10, 18, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 227, 173, 0.06),
    0 18px 36px rgba(0, 0, 0, 0.24);
}

.the-quest__item-detail-panel--empty {
  min-height: 220px;
  align-content: center;
}

.the-quest__equipment-slot span,
.the-quest__quest-card span {
  font-size: 12px;
  color: rgba(246, 247, 251, 0.64);
}

.the-quest__quest-card {
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border-color: rgba(255, 222, 158, 0.24);
  background:
    linear-gradient(180deg, rgba(81, 57, 24, 0.22), rgba(8, 10, 18, 0.88)),
    rgba(8, 10, 18, 0.94);
}

.the-quest__quest-card strong,
.the-quest__quest-detail strong,
.the-quest__npc-card strong {
  font-size: 15px;
  color: #fff2cf;
}

.the-quest__quest-card p,
.the-quest__npc-quest-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(245, 238, 226, 0.8);
}

.the-quest__quest-card-head,
.the-quest__quest-card-foot,
.the-quest__quest-detail-metrics,
.the-quest__npc-quest-head,
.the-quest__npc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.the-quest__quest-card-head,
.the-quest__npc-quest-head {
  justify-content: space-between;
}

.the-quest__quest-card-head small,
.the-quest__npc-quest-head small {
  font-size: 11px;
  color: rgba(245, 238, 226, 0.72);
}

.the-quest__quest-card-foot span,
.the-quest__quest-detail-metrics span,
.the-quest__npc-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: #f8eed7;
  background: rgba(255, 248, 231, 0.08);
}

.the-quest__quest-tag,
.the-quest__role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.the-quest__quest-tag {
  color: #14311c;
  background: linear-gradient(180deg, #d4ff86 0%, #7dcf7a 100%);
}

.the-quest__quest-tag--done {
  color: #11253c;
  background: linear-gradient(180deg, #8fe1ff 0%, #5ea7e9 100%);
}

.the-quest__quest-tag--ready {
  color: #3a2308;
  background: linear-gradient(180deg, #ffd98a 0%, #ffab54 100%);
}

.the-quest__role-badge--quest {
  color: #2d1605;
  background: linear-gradient(180deg, #ffcf8d 0%, #ff9a59 100%);
}

.the-quest__role-badge--shop {
  color: #18321e;
  background: linear-gradient(180deg, #c3ff8a 0%, #67c865 100%);
}

.the-quest__role-badge--guide {
  color: #122943;
  background: linear-gradient(180deg, #a5e8ff 0%, #65b5ff 100%);
}

.the-quest__equipment-slot-card span,
.the-quest__item-subline {
  color: rgba(244, 232, 206, 0.8);
}

.the-quest__equipment-slot-head span {
  color: #fff0c5;
}

.the-quest__quest-list {
  display: grid;
  gap: 8px;
}

.the-quest__quest-detail {
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 218, 142, 0.26);
  background:
    radial-gradient(circle at top left, rgba(255, 213, 128, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(46, 31, 18, 0.34), rgba(7, 10, 18, 0.92));
}

.the-quest__quest-detail-head {
  display: grid;
  gap: 8px;
}

.the-quest__quest-guide,
.the-quest__quest-actions,
.the-quest__npc-report-list,
.the-quest__npc-report-row,
.the-quest__npc-report-copy {
  display: grid;
  gap: 10px;
}

.the-quest__quest-guide {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 219, 147, 0.18);
  background: rgba(255, 245, 223, 0.05);
}

.the-quest__quest-guide span {
  font-size: 11px;
  color: rgba(245, 238, 226, 0.72);
}

.the-quest__quest-guide strong {
  font-size: 13px;
  color: #fff2cf;
}

.the-quest__quest-next-step,
.the-quest__npc-quest-cta {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 239, 194, 0.9);
}

.the-quest__npc-quest-cta {
  color: #ffd980;
}

.the-quest__quest-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 212, 119, 0.38);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #2e1c06;
  cursor: pointer;
  background: linear-gradient(180deg, #ffe19d 0%, #ffb765 100%);
  box-shadow: 0 10px 22px rgba(255, 191, 73, 0.16);
}

.the-quest__quest-action-button:hover {
  filter: brightness(1.03);
}

.the-quest__quest-progress {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.the-quest__quest-progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ecb7e 0%, #d0ff82 100%);
}

.the-quest__panel-content--npc {
  display: block;
}

.the-quest__npc-layout {
  display: grid;
  grid-template-columns: minmax(148px, 180px) minmax(0, 1fr);
  gap: 12px;
}

.the-quest__npc-list,
.the-quest__npc-stage,
.the-quest__npc-quest-list {
  display: grid;
  gap: 10px;
}

.the-quest__npc-list-button,
.the-quest__npc-quest-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 223, 168, 0.18);
  color: inherit;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 248, 231, 0.08), rgba(0, 0, 0, 0)),
    rgba(14, 22, 18, 0.86);
}

.the-quest__npc-list-button strong,
.the-quest__npc-quest-card strong {
  color: #fff3d0;
}

.the-quest__npc-list-button small {
  font-size: 11px;
  color: rgba(245, 238, 226, 0.72);
}

.the-quest__npc-list-button--active,
.the-quest__npc-quest-card--active {
  border-color: rgba(255, 214, 119, 0.68);
  box-shadow:
    0 0 0 1px rgba(255, 214, 119, 0.34),
    0 14px 28px rgba(255, 191, 73, 0.14);
}

.the-quest__npc-card--hero {
  gap: 12px;
  padding: 16px;
  border-color: rgba(255, 214, 119, 0.34);
  background:
    radial-gradient(circle at top left, rgba(255, 213, 128, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(59, 39, 20, 0.3), rgba(8, 10, 18, 0.92));
}

.the-quest__npc-card--report {
  gap: 12px;
}

.the-quest__npc-report-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 220, 154, 0.18);
  background: rgba(255, 246, 220, 0.05);
}

.the-quest__npc-report-copy strong {
  font-size: 13px;
}

.the-quest__npc-hero-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.the-quest__item-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-items: center;
  width: clamp(64px, 15vw, 78px);
  height: clamp(72px, 17vw, 86px);
  min-height: 0;
  padding: 7px 6px 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 230, 184, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 226, 178, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(26, 21, 17, 0.96), rgba(12, 13, 22, 0.92));
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  color: #f8eed7;
  place-items: center;
}

.the-quest__item-rarity-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
}

.the-quest__item-rarity-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.the-quest__item-rarity-chip--common {
  color: #d8deef;
  background: rgba(140, 151, 178, 0.16);
}

.the-quest__item-rarity-chip--rare {
  color: #8fd6ff;
  background: rgba(55, 125, 219, 0.2);
}

.the-quest__item-rarity-chip--epic {
  color: #ebb5ff;
  background: rgba(138, 69, 189, 0.24);
}

.the-quest__item-stack {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  color: #ffe9ba;
  background: rgba(6, 8, 16, 0.68);
}

.the-quest__item-equipped-mark {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #13223a;
  background: linear-gradient(180deg, #ffe79a, #ffc85b);
}

.the-quest__item-card--common .the-quest__item-rarity-frame {
  border-color: rgba(182, 192, 218, 0.22);
  box-shadow: inset 0 0 16px rgba(182, 192, 218, 0.08);
}

.the-quest__item-card--rare .the-quest__item-rarity-frame {
  border-color: rgba(106, 196, 255, 0.42);
  box-shadow:
    inset 0 0 18px rgba(106, 196, 255, 0.08),
    0 0 18px rgba(79, 171, 255, 0.12);
}

.the-quest__item-card--epic .the-quest__item-rarity-frame {
  border-color: rgba(222, 144, 255, 0.56);
  box-shadow:
    inset 0 0 18px rgba(222, 144, 255, 0.12),
    0 0 22px rgba(191, 103, 255, 0.16);
}

.the-quest__item-card--dragging {
  opacity: 0.38;
}

.the-quest__item-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(3, 7, 9, 0.58);
  backdrop-filter: blur(6px);
}

.the-quest__item-detail-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.the-quest__item-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 222, 158, 0.18);
  color: #fff2cf;
  background: rgba(255, 252, 240, 0.08);
  cursor: pointer;
}

.the-quest__item-tooltip-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.the-quest__item-tooltip-headline span {
  font-size: 11px;
  color: rgba(246, 247, 251, 0.62);
}

.the-quest__item-tooltip-badge {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.the-quest__item-tooltip-badge--common {
  color: #d8deef;
  background: rgba(140, 151, 178, 0.18);
}

.the-quest__item-tooltip-badge--rare {
  color: #8fd6ff;
  background: rgba(55, 125, 219, 0.22);
}

.the-quest__item-tooltip-badge--epic {
  color: #ebb5ff;
  background: rgba(138, 69, 189, 0.26);
}

.the-quest__item-tooltip-header {
  gap: 12px;
  align-items: flex-start;
}

.the-quest__item-tooltip-copy {
  display: grid;
  gap: 4px;
}

.the-quest__item-tooltip-header .the-quest__item-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.the-quest__item-detail-modal {
  width: min(100%, 420px);
  align-content: start;
  max-height: min(80dvh, 720px);
  overflow: auto;
}

.the-quest__item-detail-modal p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 238, 226, 0.82);
}

.the-quest__item-detail-panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 238, 226, 0.82);
}

.the-quest__item-equipped-chip {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #13223a;
  background: linear-gradient(180deg, #ffe79a, #ffc85b);
}

.the-quest__item-compare {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 218, 142, 0.16);
  background: rgba(255, 250, 238, 0.04);
}

.the-quest__item-compare-head {
  display: grid;
  gap: 3px;
}

.the-quest__item-compare-head small {
  color: rgba(245, 238, 226, 0.68);
}

.the-quest__item-compare-list {
  display: grid;
  gap: 8px;
}

.the-quest__item-compare-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.the-quest__item-compare-row span {
  color: rgba(245, 238, 226, 0.7);
}

.the-quest__item-compare-row strong {
  font-size: 12px;
}

.the-quest__item-compare-row em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.the-quest__item-compare-delta--up {
  color: #9ef0af;
}

.the-quest__item-compare-delta--down {
  color: #ff9d8d;
}

.the-quest__item-actions--detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.the-quest__drag-preview {
  position: fixed;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(243, 198, 104, 0.38);
  background: rgba(12, 14, 24, 0.94);
  color: #fff2d2;
  pointer-events: none;
  transform: translate(14px, 14px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
}

@media (max-width: 980px) {
  .the-quest__shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .the-quest__shell--mobile {
    grid-template-columns: minmax(0, 1fr);
  }

  .the-quest__sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .the-quest__inventory-shell {
    display: block;
  }
}

@media (max-width: 768px) {
  .the-quest {
    gap: 8px;
    padding: 8px;
  }

  .the-quest__shell {
    align-content: start;
  }

  .the-quest__stage {
    min-height: max(calc(100dvh - 140px), 680px);
    border-radius: 20px;
  }

  .the-quest__hud,
  .the-quest__bottom-ui {
    left: 8px;
    right: 8px;
  }

  .the-quest__top-toolbar {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }

  .the-quest__toolbar-menu {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 20px;
  }

  .the-quest__toolbar-dock {
    min-height: 52px;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 18px;
  }

  .the-quest__toolbar-button {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .the-quest__toolbar-button--primary {
    width: 76px;
    border-radius: 14px;
  }

  .the-quest__toolbar-icon {
    font-size: 22px;
  }

  .the-quest__toolbar-badge {
    top: 4px;
    right: 4px;
    min-width: 18px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .the-quest__hud {
    top: 10px;
    gap: 4px;
  }

  .the-quest__hud-table-wrap {
    width: min(100%, 460px);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .the-quest__hud-table {
    min-width: 320px;
    font-size: 7px;
  }

  .the-quest__hud-table th,
  .the-quest__hud-table td {
    padding: 2px 4px;
  }

  .the-quest__hud-toolbar {
    gap: 2px;
  }

  .the-quest__hud-toolbar-group {
    gap: 2px;
  }

  .the-quest__hud-toolbar-button {
    min-height: 24px;
    gap: 2px;
    padding: 2px 4px;
  }

  .the-quest__hud-toolbar-icon {
    width: 12px;
    font-size: 10px;
  }

  .the-quest__hud-toolbar-label {
    font-size: 6px;
  }

  .the-quest__hud-stack-label {
    width: 27px;
  }

  .the-quest__hud-gauge-cell {
    width: 88px;
    min-width: 88px;
  }

  .the-quest__hud-gauge {
    width: min(100%, 64px);
    height: 10px;
  }

  .the-quest__hud-table th {
    font-size: 6px;
  }

  .the-quest__stage-advance {
    padding: 4px 7px;
    font-size: 9px;
  }

  .the-quest__status-meters {
    grid-template-columns: 1fr;
  }

  .the-quest__status-balance-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .the-quest__status-meters--short {
    width: min(100%, 132px);
    flex-basis: auto;
  }

  .the-quest__minimap {
    width: 120px;
    height: 88px;
    border-radius: 14px;
  }

  .the-quest__bottom-ui {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: end;
  }

  .the-quest__left-controls,
  .the-quest__right-controls {
    width: 100%;
  }

  .the-quest__consumable-strip {
    width: 100%;
  }

  .the-quest__movement-dock,
  .the-quest__combat-stack {
    width: 100%;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
  }

  .the-quest__dock-head {
    flex-wrap: wrap;
  }

  .the-quest__dock-head span {
    width: 100%;
  }

  .the-quest__dock-head span {
    min-height: 32px;
    font-size: 10px;
  }

  .the-quest__joystick {
    width: min(100%, 160px);
    min-width: 160px;
    min-height: 160px;
    border-radius: 20px;
  }

  .the-quest__auto-toggle {
    gap: 5px;
    min-height: 30px;
    padding: 5px 7px;
  }

  .the-quest__consumable-nav {
    width: 24px;
    height: 48px;
  }

  .the-quest__consumable-slot {
    min-height: 48px;
    border-radius: 12px;
  }

  .the-quest__consumable-slot-icon {
    font-size: 17px;
  }

  .the-quest__consumable-slot em {
    min-width: 15px;
    font-size: 7px;
  }

  .the-quest__gesture-pad {
    min-width: 160px;
    padding: 8px;
  }

  .the-quest__gesture-node {
    width: 34px;
    min-height: 34px;
    border-radius: 9px;
  }

  .the-quest__gesture-core {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .the-quest__sidebar {
    grid-template-columns: 1fr;
    padding-bottom: 12px;
  }

  .the-quest__panel-sheet {
    bottom: 10px;
    width: calc(100vw - 12px);
    padding: 12px;
    border-radius: 18px;
    max-height: calc(100dvh - 20px);
  }

  .the-quest__panel-content--inventory,
  .the-quest__panel-content--npc {
    grid-template-columns: 1fr;
  }

  .the-quest__npc-layout {
    grid-template-columns: 1fr;
  }

  .the-quest__npc-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .the-quest__inventory-layout {
    grid-template-columns: 1fr;
  }

  .the-quest__character-hero {
    grid-template-columns: 1fr;
  }

  .the-quest__character-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .the-quest__inventory-tabs {
    width: 100%;
  }

  .the-quest__inventory-tab {
    flex: 1;
  }

  .the-quest__item-grid {
    grid-template-columns: repeat(auto-fit, minmax(64px, 74px));
  }
}

@media (max-width: 560px) {
  .the-quest__stage {
    min-height: clamp(460px, calc(100dvh - 150px), 560px);
  }

  .the-quest__sidebar-card {
    padding: 14px;
    border-radius: 18px;
  }

  .the-quest__sidebar-character-head,
  .the-quest__sidebar-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .the-quest__character-stat-grid {
    grid-template-columns: 1fr;
  }

  .the-quest__sidebar-card li {
    align-items: flex-start;
  }

  .the-quest__top-toolbar {
    gap: 6px;
  }

  .the-quest__toolbar-menu {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 18px;
  }

  .the-quest__toolbar-dock {
    min-height: 52px;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 20px;
  }

  .the-quest__toolbar-button {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .the-quest__toolbar-button--primary {
    width: 72px;
  }

  .the-quest__toolbar-icon {
    font-size: 18px;
  }

  .the-quest__panel-sheet {
    width: calc(100vw - 10px);
    max-height: calc(100dvh - 10px);
    padding: 10px;
    border-radius: 16px;
  }

  .the-quest__panel-header strong {
    font-size: 15px;
  }

  .the-quest__panel-close {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .the-quest__hud {
    align-items: flex-start;
    top: 12px;
    justify-content: center;
  }

  .the-quest__hud-table-wrap {
    border-radius: 8px;
    width: min(100%, 344px);
  }

  .the-quest__hud-table {
    min-width: 328px;
    font-size: 8px;
  }

  .the-quest__hud-table th,
  .the-quest__hud-table td {
    padding: 3px 4px;
  }

  .the-quest__hud-toolbar-button {
    min-height: 28px;
    gap: 3px;
    padding: 3px 4px;
    border-radius: 6px;
  }

  .the-quest__hud-toolbar-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .the-quest__hud-toolbar-icon {
    width: 12px;
    font-size: 10px;
  }

  .the-quest__hud-toolbar-label {
    font-size: 6px;
  }

  .the-quest__hud-toolbar-badge {
    min-width: 12px;
    padding: 1px 3px;
    font-size: 6px;
  }

  .the-quest__hud-stack-label {
    width: 24px;
  }

  .the-quest__hud-gauge-cell {
    width: 76px;
    min-width: 76px;
  }

  .the-quest__hud-gauge {
    width: min(100%, 58px);
    height: 11px;
  }

  .the-quest__hud-gauge span {
    font-size: 7px;
  }

  .the-quest__minimap {
    width: 112px;
    height: 82px;
  }

  .the-quest__item-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 70px));
    gap: 8px;
  }

  .the-quest__inventory-topbar,
  .the-quest__inventory-grid-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .the-quest__inventory-grid-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .the-quest__inventory-main,
  .the-quest__item-detail-modal {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .the-quest__inventory-topbar strong,
  .the-quest__inventory-grid-head strong {
    font-size: 15px;
  }

  .the-quest__inventory-caption {
    margin-bottom: 2px;
    font-size: 10px;
  }

  .the-quest__inventory-gold {
    gap: 6px;
    padding: 8px 10px;
  }

  .the-quest__inventory-gold span {
    font-size: 14px;
  }

  .the-quest__inventory-tabs {
    gap: 6px;
    padding: 3px;
  }

  .the-quest__inventory-tab {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .the-quest__equipment-panel,
  .the-quest__equipment-column,
  .the-quest__inventory-grid-panel {
    gap: 10px;
  }

  .the-quest__equipment-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .the-quest__inventory-grid-panel {
    padding: 10px;
    border-radius: 16px;
  }

  .the-quest__equipment-slot {
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }

  .the-quest__equipment-slot-head span {
    font-size: 13px;
  }

  .the-quest__equipment-slot-head small {
    font-size: 11px;
  }

  .the-quest__equipment-slot-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
  }

  .the-quest__equipment-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .the-quest__portrait-card--player {
    width: 92px;
    height: 112px;
  }

  .the-quest__equipment-slot-card strong {
    font-size: 13px;
  }

  .the-quest__equipment-slot button,
  .the-quest__item-actions button {
    padding: 7px 10px;
    font-size: 12px;
  }

  .the-quest__equipment-note,
  .the-quest__item-stats span {
    padding: 5px 8px;
    font-size: 11px;
  }

  .the-quest__item-card {
    width: 60px;
    height: 70px;
    padding: 5px;
    border-radius: 13px;
  }

  .the-quest__item-rarity-chip {
    padding: 2px 6px;
    font-size: 8px;
  }

  .the-quest__quest-card,
  .the-quest__quest-detail,
  .the-quest__npc-card,
  .the-quest__npc-list-button,
  .the-quest__npc-quest-card {
    padding: 12px;
    border-radius: 16px;
  }

  .the-quest__quest-card strong,
  .the-quest__quest-detail strong,
  .the-quest__npc-card strong,
  .the-quest__npc-list-button strong,
  .the-quest__npc-quest-card strong {
    font-size: 14px;
  }

  .the-quest__npc-list {
    grid-template-columns: 1fr;
  }

  .the-quest__item-icon {
    font-size: 19px;
  }

  .the-quest__item-compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .the-quest__item-icon {
    font-size: 19px;
  }

  .the-quest__item-subline,
  .the-quest__item-stack {
    font-size: 10px;
  }

  .the-quest__npc-report-row {
    grid-template-columns: 1fr;
  }

  .the-quest__item-stack {
    right: 8px;
    bottom: 8px;
    padding: 2px 6px;
  }

  .the-quest__item-detail-modal-backdrop {
    padding: 8px;
  }

  .the-quest__item-detail-modal {
    width: 100%;
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }

  .the-quest__item-tooltip-header .the-quest__item-icon {
    width: 42px;
    height: 42px;
  }

  .the-quest__bottom-ui {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: end;
    gap: 8px;
    grid-template-columns: minmax(112px, 124px) minmax(0, 1fr);
  }

  .the-quest__left-controls {
    width: auto;
    justify-content: stretch;
    align-items: end;
    min-width: 0;
  }

  .the-quest__right-controls {
    gap: 8px;
    justify-items: stretch;
    max-width: none;
    min-width: 0;
  }

  .the-quest__consumable-strip {
    width: 100%;
  }

  .the-quest__consumable-strip-list {
    gap: 8px;
  }

  .the-quest__consumable-strip-rail {
    gap: 6px;
  }

  .the-quest__consumable-nav {
    width: 24px;
    height: 46px;
    border-radius: 10px;
  }

  .the-quest__consumable-slot {
    min-height: 46px;
    border-radius: 11px;
  }

  .the-quest__consumable-slot-icon {
    font-size: 15px;
  }

  .the-quest__consumable-slot em {
    top: 4px;
    right: 4px;
    min-width: 13px;
    font-size: 6px;
    padding: 2px 3px;
  }

  .the-quest__combat-cluster {
    width: 100%;
    justify-content: stretch;
  }

  .the-quest__movement-dock,
  .the-quest__combat-stack {
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .the-quest__movement-dock {
    width: 100%;
    padding: 8px;
  }

  .the-quest__dock-head {
    gap: 8px;
  }

  .the-quest__dock-head span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 9px;
  }

  .the-quest__combat-stack .the-quest__dock-head {
    flex-wrap: wrap;
  }

  .the-quest__dock-hotkey {
    min-height: 28px;
    padding: 0 8px;
    font-size: 8px;
  }

  .the-quest__page-nav {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .the-quest__page-nav-label {
    min-width: 62px;
    font-size: 9px;
  }

  .the-quest__gesture-pad {
    width: 100%;
    min-width: 0;
    gap: 5px;
    padding: 8px 7px;
    border-radius: 18px;
  }

  .the-quest__movement-dock .the-quest__dock-head {
    justify-content: center;
  }

  .the-quest__movement-dock .the-quest__dock-head small {
    display: none;
  }

  .the-quest__gesture-node {
    width: 32px;
    min-height: 32px;
    padding: 2px;
    border-radius: 9px;
  }

  .the-quest__gesture-core {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .the-quest__gesture-node strong {
    font-size: 10px;
  }

  .the-quest__gesture-node small,
  .the-quest__gesture-pad-label,
  .the-quest__gesture-legend span,
  .the-quest__gesture-core small {
    font-size: 7px;
  }

  .the-quest__auto-toggle {
    width: 100%;
    gap: 4px;
    min-height: 30px;
    padding: 5px 4px;
    margin-left: 0;
  }

  .the-quest__auto-toggle small {
    font-size: 8px;
  }

  .the-quest__auto-toggle .ant-switch {
    transform: scale(0.92);
  }
}

@media (max-width: 430px) {
  .the-quest__stage {
    min-height: clamp(420px, calc(100dvh - 156px), 500px);
  }

  .the-quest__hud {
    left: 8px;
    right: 8px;
    top: 8px;
  }

  .the-quest__hud-table-wrap {
    width: min(100%, 318px);
  }

  .the-quest__hud-table th,
  .the-quest__hud-table td {
    padding: 2px 3px;
  }

  .the-quest__hud-toolbar-group {
    gap: 2px;
  }

  .the-quest__hud-toolbar-button {
    min-height: 22px;
    gap: 0;
    padding: 2px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .the-quest__hud-toolbar-icon {
    width: 10px;
    font-size: 9px;
  }

  .the-quest__hud-toolbar-label {
    display: none;
  }

  .the-quest__hud-toolbar-badge {
    min-width: 11px;
    padding: 1px 2px;
    font-size: 6px;
  }

  .the-quest__hud-stack-label {
    width: 20px;
  }

  .the-quest__hud-gauge-cell {
    width: 60px;
    min-width: 60px;
  }

  .the-quest__hud-gauge {
    width: min(100%, 48px);
    height: 9px;
  }

  .the-quest__hud-buff-pill {
    gap: 3px;
    padding: 2px 5px;
  }

  .the-quest__hud-buff-pill span {
    display: none;
  }

  .the-quest__hud-buff-pill strong,
  .the-quest__hud-buff-pill em,
  .the-quest__hud-buff-empty,
  .the-quest__hud-buff-more {
    font-size: 7px;
  }

  .the-quest__bottom-ui {
    left: 8px;
    right: 8px;
    bottom: 8px;
    grid-template-columns: minmax(96px, 108px) minmax(0, 1fr);
    gap: 5px;
  }

  .the-quest__consumable-strip {
    width: 100%;
  }

  .the-quest__consumable-strip-list {
    gap: 5px;
  }

  .the-quest__consumable-strip-rail {
    gap: 4px;
  }

  .the-quest__consumable-nav {
    width: 20px;
    height: 38px;
    border-radius: 8px;
  }

  .the-quest__consumable-slot {
    min-height: 38px;
    border-radius: 9px;
  }

  .the-quest__consumable-slot-icon {
    font-size: 14px;
  }

  .the-quest__consumable-slot em {
    top: 3px;
    right: 3px;
    min-width: 12px;
    font-size: 6px;
    padding: 1px 3px;
  }

  .the-quest__movement-dock,
  .the-quest__combat-stack {
    padding: 7px;
    gap: 5px;
  }

  .the-quest__joystick {
    width: min(100%, 96px);
    min-width: 96px;
    min-height: 96px;
    border-radius: 18px;
  }

  .the-quest__dock-head {
    gap: 5px;
  }

  .the-quest__dock-head span {
    min-height: 24px;
    padding: 0 7px;
    font-size: 8px;
  }

  .the-quest__combat-stack .the-quest__dock-head {
    flex-wrap: wrap;
  }

  .the-quest__dock-hotkey {
    min-height: 20px;
    padding: 0 6px;
    font-size: 6px;
  }

  .the-quest__page-nav {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    gap: 5px;
  }

  .the-quest__page-nav-button {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .the-quest__page-nav-label {
    min-width: 44px;
    font-size: 7px;
  }

  .the-quest__rail-button {
    min-height: 52px;
    padding: 7px 9px;
    border-radius: 11px;
  }

  .the-quest__rail-button-icon {
    font-size: 14px;
  }

  .the-quest__rail-button strong {
    font-size: 10px;
  }

  .the-quest__rail-button small {
    font-size: 7px;
  }

  .the-quest__gesture-node {
    width: 26px;
    min-height: 26px;
  }

  .the-quest__gesture-pad {
    padding: 6px;
    gap: 4px;
    border-radius: 16px;
  }

  .the-quest__gesture-core {
    width: 36px;
    height: 36px;
  }

  .the-quest__auto-toggle {
    min-height: 28px;
    padding: 4px 3px;
    border-radius: 12px;
  }

  .the-quest__auto-toggle small {
    font-size: 7px;
  }

}
