@font-face {
  font-family: Moneygraphy;
  src: url("../font/Moneygraphy-Rounded.woff2") format("woff2");
  font-display: swap;
}
:root {
  font-family: Moneygraphy, "Malgun Gothic", sans-serif;
  font-weight: 700;
  color-scheme: dark;
  --page: #0e0f12;
  --ink: #e8e0ed;
  --accent: #ae86f7;
  --muted: #8f849a;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 50% -30%, #3b29402b, transparent 60%),
    var(--page);
  color: var(--ink);
}
button,
input {
  font: inherit;
  color: inherit;
  font-weight: 700;
}
button {
  cursor: pointer;
  border: 0;
  transition:
    background 150ms ease,
    color 150ms ease;
}
button:focus-visible,
input:focus-visible,
.status-icon:focus-visible,
.break-mechanic:focus-visible {
  outline: 2px solid #ae86f7;
  outline-offset: 3px;
}
.workbench {
  width: min(1900px, 100%);
  padding: 30px clamp(16px, 3vw, 48px) 24px;
  margin: auto;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.eyebrow {
  color: #ad96c2;
  font-size: 11px;
}
.eyebrow > span {
  color: #6e627b;
  font-size: 9px;
  letter-spacing: 0.09em;
  padding-left: 9px;
}
h1 {
  margin: 12px 0 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}
h1 > span {
  color: #88778f;
  font-size: 12px;
  margin-left: 13px;
  letter-spacing: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 8px 3px;
  font-size: 11px;
}
.button-subtle {
  background: #ffffff07;
  color: #ae9dbb;
}
.button-subtle:hover {
  background: #ffffff0d;
  color: #d0bbdf;
}
.button-primary {
  background: linear-gradient(145deg, #a78acb, #7e609c);
  color: #faf5ff;
}
.button-primary:hover {
  background: linear-gradient(145deg, #b69bd5, #8f6bad);
}
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 12px;
}
.section-heading h2 {
  margin: 0;
  font-size: 14px;
  color: #c6b6d4;
}
.section-heading > span {
  color: #73677e;
  font-size: 10px;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.family {
  min-width: 0;
  border: 1px solid #ffffff09;
  border-radius: 14px 5px;
  background: linear-gradient(150deg, #1c1b22, #15151b);
}
.family-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 17px 12px;
}
.family-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.family-heading h3 {
  margin: 0;
  font-size: 13px;
  color: #d0bfdd;
}
.family-letter {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  background: #ae86f70e;
  border-radius: 6px 2px;
  color: #ae91c5;
  font-size: 10px;
}
.family-heading > span {
  color: #776980;
  font-size: 9px;
}
.family-note {
  padding: 0 17px;
  margin: 0 0 16px;
  color: #76677f;
  font-size: 9px;
  line-height: 1.5;
}
.boss-sample {
  padding: 12px 17px 15px;
}
.boss-sample + .boss-sample {
  border-top: 1px solid #ffffff05;
}
.sample-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.sample-header strong {
  color: #a594b2;
  font-size: 10px;
}
.placement-button {
  color: #9c85af;
  background: #ae86f70b;
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 6px 2px;
}
.placement-button:hover {
  color: #d2b2ed;
  background: #ae86f71a;
}
.sample-stage {
  position: relative;
  min-height: 89px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}
.sample-note {
  margin: 0;
  font-size: 9px;
  color: #6e6277;
  line-height: 1.5;
}
.monster-hud {
  width: var(--hud-width);
  max-width: 100%;
  min-width: 0;
  position: relative;
  color: #ece4f1;
  filter: drop-shadow(0 2px 3px #0008);
}
.hud-body {
  min-width: 0;
  flex: 1;
}
.hud-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 19px;
  margin-bottom: 4px;
  line-height: 1;
}
.enemy-name {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #dfd5e6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000;
}
.enemy-rank {
  flex: none;
  font-size: 8px;
  color: #af947e;
  line-height: 1;
}
.combat-phase {
  margin-left: auto;
  flex: none;
  font-size: 9px;
  color: #9e89ac;
  white-space: nowrap;
}
.health-shell {
  position: relative;
  padding: 2px;
  background: linear-gradient(
    180deg,
    #94816d,
    #544236 35%,
    #332a25 70%,
    #75614d
  );
  border: 1px solid #261f20;
  border-radius: 3px;
  box-shadow:
    0 1px 1px #0008,
    inset 0 1px #c1a18145;
}
.health-track {
  position: relative;
  height: 15px;
  overflow: hidden;
  background: linear-gradient(#211a22, #161319);
  box-shadow: inset 0 1px 3px #0009;
}
.health-reserve,
.health-trail,
.health-fill,
.health-light,
.shield-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.health-reserve {
  z-index: 0;
  width: 100%;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--rank) 25%, #30232d),
    #271d29
  );
  opacity: 0;
}
.has-next-line .health-reserve {
  opacity: 1;
}
.health-trail {
  z-index: 1;
  width: var(--trail);
  background: #d0b596;
  opacity: 0.65;
  transition: width 440ms cubic-bezier(0.2, 0.65, 0.3, 1);
}
.health-fill {
  z-index: 2;
  width: var(--hp);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--rank) 68%, #f9deb6),
    var(--rank) 25%,
    color-mix(in srgb, var(--rank) 75%, #342331)
  );
  box-shadow:
    inset 0 1px #ffffff28,
    inset 0 -2px #0002;
  transition: width 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.health-fill::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 1px;
  right: 0;
  background: #efdecb90;
}
.health-light {
  z-index: 4;
  width: 100%;
  background: linear-gradient(180deg, #fff2, transparent 40%);
}
.shield-fill {
  z-index: 3;
  left: min(var(--hp), calc(100% - var(--shield)));
  right: auto;
  width: var(--shield);
  background: repeating-linear-gradient(
    125deg,
    #e3f0f95c 0 2px,
    #b6d2e527 2px 5px
  );
  border-left: 1px solid #e2f2ff88;
  transition:
    left 220ms cubic-bezier(0.2, 0.7, 0.3, 1),
    width 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.line-count {
  position: absolute;
  right: 4px;
  top: 2px;
  bottom: 2px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  min-width: 0;
  color: #fff0d7;
  background: none;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}
.hud-lower {
  height: 20px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  flex: none;
}
.status-icons:empty {
  display: none;
}
.status-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid color-mix(in srgb, var(--effect) 32%, #2b2533);
  border-radius: 3px 1px;
  background: linear-gradient(135deg, #302a37, #18171e);
  color: var(--effect);
  box-shadow: inset 0 1px #ffffff10;
}
.status-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px #0006);
}
.status-icon::after,
.break-mechanic::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 8px;
  background: #e9e1f1;
  color: #594667;
  font-size: 10px;
  border-radius: 6px 3px;
  line-height: 1.4;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 3px 10px #0004;
}
.status-icon:hover::after,
.status-icon:focus-visible::after,
.break-mechanic:hover::after,
.break-mechanic:focus-visible::after {
  visibility: visible;
  opacity: 1;
}
.portrait-frame {
  width: 43px;
  height: 48px;
  flex: none;
  position: relative;
  background: linear-gradient(145deg, #493840, #231c26);
  border: 1px solid #927365;
  border-radius: 5px 2px;
  box-shadow:
    inset 0 0 0 2px #201b23,
    0 2px 3px #0004;
  overflow: hidden;
}
.portrait-art {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.14);
}
.hud-sovereign {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.hud-sovereign .portrait-frame {
  margin-top: 0;
}
.hud-sovereign .enemy-rank {
  color: #d19c9e;
}
.hud-sovereign .enemy-name {
  font-size: 12px;
  color: #e3caca;
}
.hud-sovereign .health-shell {
  border-color: #5c3945;
  background: linear-gradient(
    180deg,
    #b79182,
    #694b48 35%,
    #35262d 70%,
    #77514d
  );
}
.hud-sovereign .health-track {
  height: 19px;
}
.hud-sovereign .health-shell::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: #997263;
}
.hud-sovereign .line-count {
  font-size: 13px;
}
.hud-legion .health-shell {
  padding: 3px 7px;
  background: linear-gradient(
    180deg,
    #a99a83,
    #5d4d58 25%,
    #372b42 75%,
    #786879
  );
  border: 0;
  clip-path: polygon(
    7px 0,
    calc(100% - 7px) 0,
    100% 50%,
    calc(100% - 7px) 100%,
    7px 100%,
    0 50%
  );
  border-radius: 0;
}
.hud-legion .health-track {
  height: 20px;
}
.hud-legion .enemy-rank {
  color: #c0a4d5;
}
.hud-legion .line-count {
  right: 7px;
  font-size: 13px;
}
.hud-legion .health-fill {
  background: linear-gradient(180deg, #c6acde, #9e82c5 33%, #795a96);
}
.hud-legion .hud-header {
  margin-inline: 7px;
}
.hud-legion .hud-lower {
  margin-inline: 7px;
}
.mechanic-slot {
  flex: 1;
  min-width: 0;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.cast-mechanic {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(290px, 100%);
  min-width: 0;
}
.cast-name {
  flex: none;
  font-size: 8px;
  color: #a69ab3;
}
.cast-track {
  display: block;
  position: relative;
  flex: 1;
  height: 4px;
  background: #ffffff0a;
  border-radius: 2px;
  overflow: hidden;
}
.cast-track::after {
  content: "";
  display: block;
  width: var(--cast);
  height: 100%;
  background: linear-gradient(90deg, #7c6c96, #bda5ce);
}
.hud-sentinel .hud-header {
  height: 19px;
  gap: 7px;
}
.hud-sentinel .enemy-name {
  font-size: 13px;
  color: #dfd4c0;
}
.hud-sentinel .enemy-rank {
  display: none;
}
.hud-sentinel .combat-phase {
  color: #a29075;
}
.hud-sentinel .health-shell {
  padding: 1px;
  border: 1px solid #726044;
  border-radius: 4px 1px;
  background: #28211c;
}
.hud-sentinel .health-track {
  height: 9px;
}
.hud-sentinel .health-fill {
  background: linear-gradient(180deg, #e0ca8d, #bda164 36%, #8c784f);
}
.hud-sentinel .hud-lower {
  margin-top: 5px;
}
.hud-sentinel .cast-track {
  height: 5px;
}
.hud-sentinel .cast-track::after {
  background: linear-gradient(90deg, #887658, #c8b38a);
}
.hud-warden {
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.hud-warden .hud-header {
  height: 17px;
  margin-bottom: 6px;
}
.hud-warden .enemy-rank {
  color: #9f86b5;
  font-size: 7px;
}
.hud-warden .enemy-name {
  font-size: 12px;
}
.hud-warden .health-shell {
  padding: 1px;
  border: 0;
  border-radius: 2px;
  background: #6d597e;
}
.hud-warden .health-track {
  height: 12px;
}
.hud-warden .health-fill {
  background: linear-gradient(180deg, #c1acd6, #a088ba 30%, #79648b);
}
.hud-warden .hud-lower {
  margin-top: 4px;
  height: 17px;
}
.break-mechanic {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 14px;
  gap: 6px;
  cursor: help;
}
.break-symbol {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  flex: none;
  color: #8b8995;
}
.break-symbol svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.break-track {
  position: relative;
  display: block;
  height: 6px;
  flex: 1;
  overflow: hidden;
  border-radius: 2px 1px;
  background: #1e2629;
  box-shadow: inset 0 1px 2px #0005;
}
.break-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--break);
  background: linear-gradient(180deg, #b5d8d1, #6ea99f);
  transition:
    width 220ms ease,
    background 160ms ease;
}
.break-divisions {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(20% - 2px),
    #171c2088 calc(20% - 2px) 20%
  );
}
.break-mechanic[data-state="locked"] .break-track {
  background: repeating-linear-gradient(
    120deg,
    #55525f5c 0 3px,
    #29272f 3px 6px
  );
}
.break-mechanic[data-state="locked"] .break-fill {
  opacity: 0;
}
.break-mechanic[data-state="active"] .break-symbol {
  color: #a8cec4;
}
.break-mechanic[data-state="active"] .break-track {
  background: #273835;
}
.break-mechanic[data-state="broken"] .break-symbol {
  color: #c7b7d7;
}
.break-mechanic[data-state="broken"] .break-track {
  background: #b6a5c51c;
}
.break-mechanic[data-state="recovering"] .break-symbol {
  color: #baa27e;
}
.break-mechanic[data-state="recovering"] .break-fill {
  background: linear-gradient(180deg, #c2ab80, #8f7452);
}
.family-break .hud-header .status-icons {
  margin-left: 5px;
}
.family-break .hud-lower {
  margin-top: 4px;
  height: 14px;
}
.family-break .mechanic-slot {
  width: 100%;
  height: 14px;
}
.hud-forest .break-track,
.hud-dragon .break-track {
  height: 6px;
}

.hud-forest .hud-header {
  justify-content: center;
  height: 19px;
}
.hud-forest .enemy-name {
  font-size: 13px;
}
.hud-forest .enemy-rank {
  color: #9c7976;
}
.hud-forest .health-shell {
  border: 1px solid #6e4b4a;
  padding: 1px;
  border-radius: 3px 1px;
  background: #292021;
}
.hud-forest .health-track {
  height: 13px;
}
.hud-forest .health-fill {
  background: linear-gradient(180deg, #d29189, #b97170 30%, #875251);
}
.hud-forest .hud-lower {
  gap: 10px;
}
.hud-forest .break-track {
  height: 6px;
}
.hud-dragon {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.hud-dragon .portrait-frame {
  width: 36px;
  height: 39px;
  border: 0;
  border-radius: 5px 2px;
  box-shadow: inset 0 0 0 1px #7d668542;
  background: linear-gradient(140deg, #35283e, #211c29);
}
.hud-dragon .enemy-rank {
  display: none;
}
.hud-dragon .health-shell {
  border: 1px solid #6c5b7c;
  padding: 1px;
  border-radius: 4px 1px;
  background: #29212f;
}
.hud-dragon .health-track {
  height: 13px;
}
.hud-dragon .hud-header {
  height: 18px;
}
.hud-dragon .break-track {
  height: 5px;
}
.field-section {
  margin-top: 24px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.field-sample {
  min-width: 0;
  padding: 13px 14px 12px;
  background: linear-gradient(145deg, #1b1a21, #15151b);
  border: 1px solid #ffffff08;
  border-radius: 11px 4px;
}
.field-sample .sample-header {
  margin-bottom: 0;
}
.field-sample .sample-stage {
  height: 77px;
  min-height: 0;
  align-items: center;
  padding: 0;
}
.field-hud .hud-header {
  height: 17px;
  margin-bottom: 3px;
  gap: 5px;
}
.field-hud .enemy-name {
  font-size: 10px;
}
.field-hud .health-shell {
  padding: 1px;
  border: 0;
  border-radius: 3px 1px;
  background: color-mix(in srgb, var(--rank) 35%, #3b3441);
}
.field-hud .health-track {
  height: 6px;
}
.field-hud .status-icons {
  margin-left: auto;
  gap: 3px;
  height: 14px;
}
.field-hud .status-icon {
  width: 14px;
  height: 14px;
  border: 0;
  background: #18161ed9;
}
.field-hud .status-icon svg {
  width: 10px;
  height: 10px;
}
.enemy-level {
  flex: none;
  margin-left: 0;
  font-size: 8px;
  color: #9b8ea5;
}
.hud-normal .health-track {
  height: 5px;
}
.hud-normal .enemy-name {
  font-size: 10px;
}
.hud-epic .health-track {
  height: 7px;
}
.hud-elite .health-shell {
  padding: 2px;
  background: linear-gradient(180deg, #a58a52, #5d4b32);
  border-radius: 2px;
}
.hud-elite .health-track {
  height: 7px;
}
.field-hud .combat-phase {
  display: none;
}
.hit-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  pointer-events: none;
  opacity: 0;
  border-radius: 3px;
}
.is-hit .hit-flash {
  animation: hit 260ms ease-out both;
}
.phase-changed .combat-phase {
  animation: phase 600ms ease-out;
}
.is-defeated {
  opacity: 0.35;
  filter: grayscale(1);
}
.is-low .health-fill {
  filter: saturate(1.18) brightness(1.08);
}
@keyframes hit {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 0;
  }
}
@keyframes phase {
  0% {
    color: #f1daff;
  }
  100% {
    color: #9e89ac;
  }
}
.preview-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.preview-controls > span {
  color: #a18bb2;
  font-size: 11px;
}
.preview-controls > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.health-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8c7a9c;
  margin-right: 8px;
}
.health-control input {
  appearance: none;
  width: 100px;
  height: 5px;
  border: 0;
  border-radius: 4px 2px;
  background: #ae86f72a;
  cursor: pointer;
}
.health-control input::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 16px;
  border: 1px solid #ae96c2;
  border-radius: 5px 2px;
  background: linear-gradient(145deg, #f5edfc, #c9b6df);
}
.health-control input::-moz-range-thumb {
  width: 11px;
  height: 14px;
  border: 1px solid #ae96c2;
  border-radius: 5px 2px;
  background: #d7c5e9;
}
.placement {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #14191b;
  color: #e5daee;
}
.placement::backdrop {
  background: #101116;
}
.game-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, #34423f55, transparent 65%),
    linear-gradient(#182329, #1d2928 60%, #161d1c);
}
.game-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 25%, #08090b88);
}
.terrain {
  position: absolute;
  left: -20%;
  bottom: -25%;
  width: 140%;
  height: 60%;
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, #bac3b606 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, #bac3b606 79px 80px),
    #2b382e;
  transform: perspective(400px) rotateX(45deg);
}
.tree {
  position: absolute;
  bottom: 30%;
  width: 60px;
  height: 180px;
  background: #38372d;
  opacity: 0.3;
}
.tree::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 130px;
  left: -70px;
  top: -40px;
  background: #3c5141;
  box-shadow: 30px -45px #344b3c;
}
.tree-a {
  left: 13%;
}
.tree-b {
  right: 14%;
  transform: scale(0.8);
}
.world-mob {
  display: none;
  position: absolute;
  left: calc(50% - 35px);
  top: calc(50% - 3px);
  width: 70px;
}
.mob-head {
  position: relative;
  width: 60px;
  height: 57px;
  margin: auto;
  background: linear-gradient(120deg, #738f6a, #4c6c4d);
  box-shadow:
    inset -7px -5px #35513966,
    5px 4px #293e2d;
}
.mob-head::before,
.mob-head::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 7px;
  top: 24px;
  background: #23382a;
  left: 13px;
}
.mob-head::after {
  left: 38px;
}
.mob-body {
  width: 70px;
  height: 78px;
  margin-top: 4px;
  background: linear-gradient(90deg, #4a746c, #33594f);
}
.mob-legs {
  width: 60px;
  height: 55px;
  margin: 3px auto;
  background: linear-gradient(
    90deg,
    #354453 0 46%,
    transparent 46% 54%,
    #2d3b4c 54%
  );
}
.placement[data-group="field"] .world-mob {
  display: block;
}
.placement-anchor {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  width: calc(100vw - 40px);
}
.placement[data-group="field"] .placement-anchor {
  top: calc(50% - 46px);
}
.placement-controls {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.placement-controls > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.placement-controls strong {
  font-size: 11px;
}
.placement-controls span {
  color: #9f91ad;
  font-size: 10px;
}
kbd {
  font:
    700 9px Moneygraphy,
    sans-serif;
  color: #9c8da9;
}
.light-preview {
  --page: #e8e3ec;
  --ink: #5d4967;
}
.light-preview .eyebrow {
  color: #896b9d;
}
.light-preview .button-subtle {
  background: #81628c14;
  color: #8a6e9e;
}
.light-preview .section-heading h2 {
  color: #7d628d;
}
.light-preview .section-heading > span {
  color: #a18dad;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1480px) {
  .workbench {
    padding-inline: 24px;
  }
  .family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .family:last-child {
    grid-column: 1/-1;
  }
  .family:last-child > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .family:last-child .boss-sample + .boss-sample {
    border-top: 0;
  }
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .workbench {
    padding: 22px 14px;
  }
  .family-grid {
    grid-template-columns: 1fr;
  }
  .family:last-child {
    grid-column: auto;
  }
  .family:last-child > div {
    display: block;
  }
  .family:last-child .boss-sample + .boss-sample {
    border-top: 1px solid #ffffff05;
  }
  h1 {
    font-size: 24px;
  }
  h1 > span {
    display: block;
    margin: 6px 0 0;
    font-size: 10px;
  }
  .eyebrow > span {
    display: none;
  }
  .page-header > .button {
    font-size: 9px;
    padding-inline: 9px;
  }
  
  
  
  .section-heading {
    display: block;
  }
  .section-heading > span {
    display: block;
    margin-top: 6px;
    font-size: 9px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .preview-controls > div {
    flex-wrap: wrap;
  }
  .health-control {
    flex-basis: 100%;
    margin-bottom: 6px;
  }
  .preview-controls .button {
    padding-inline: 10px;
    font-size: 10px;
  }
  .placement-controls {
    left: 14px;
    right: 14px;
    bottom: 15px;
    align-items: flex-end;
  }
  .placement-controls > div {
    gap: 5px;
    flex-wrap: wrap;
  }
  .placement-controls > div:first-child {
    display: block;
  }
  .placement-controls strong {
    display: block;
    font-size: 9px;
    margin-bottom: 5px;
  }
  .placement-controls span {
    font-size: 8px;
  }
  .placement-controls .button {
    padding: 0 8px;
    min-height: 29px;
    font-size: 9px;
  }
}
@media (max-width: 400px) {
  .boss-sample {
    padding-inline: 12px;
  }
  .family-heading {
    padding-inline: 12px;
  }
  .family-heading > span {
    font-size: 8px;
  }
  .enemy-name,
  .hud-sovereign .enemy-name,
  .hud-warden .enemy-name,
  .hud-sentinel .enemy-name,
  .hud-forest .enemy-name {
    font-size: 10px;
  }
  .combat-phase {
    font-size: 8px;
  }
  .enemy-rank {
    font-size: 7px;
  }
  .portrait-frame {
    width: 35px;
  }
  .hud-sovereign .portrait-frame {
    height: 48px;
  }
  .cast-name {
    font-size: 7px;
  }
  .status-icon {
    width: 15px;
    height: 15px;
  }
  .status-icon svg {
    width: 10px;
    height: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Broad, softly bevelled cells; no ruler-style minor ticks. */
.health-fill {
  overflow: hidden;
}
.health-ticks {
  position: absolute;
  z-index: 5;
  inset: 1px 0;
  pointer-events: none;
}
.health-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-left: -1px;
  border-radius: 1px;
  background: linear-gradient(90deg, #1b142b40, #1b142b66 48%, #ffffff26);
}
.field-hud .health-ticks {
  inset: 0;
}
.field-hud .health-seam {
  width: 2px;
  background: linear-gradient(90deg, #15121d70, #ffffff24);
}
.health-fill .hit-flash {
  z-index: 3;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffffbb, #ffffff45);
}
.hud-sovereign .health-shell::before {
  display: none;
}
.hud-legion .hud-header,
.hud-legion .hud-lower {
  margin-inline: 0;
}
.hud-dragon .hud-header {
  height: 18px;
}
.hud-forest .hud-header {
  justify-content: flex-start;
}
.hud-forest .hud-header .status-icons,
.hud-dragon .hud-header .status-icons {
  margin-left: 5px;
}
.hud-forest .hud-lower,
.hud-dragon .hud-lower {
  height: 14px;
  margin-top: 4px;
}
.hud-forest .mechanic-slot,
.hud-dragon .mechanic-slot {
  height: 14px;
  width: 100%;
}
.field-hud .enemy-level {
  margin-left: 0;
}

@property --hp-color {
  syntax: "<color>";
  inherits: true;
  initial-value: #ae86f7;
}
.monster-hud {
  transition: --hp-color 360ms ease;
}
.health-fill,
.hud-legion .health-fill,
.hud-sentinel .health-fill,
.hud-warden .health-fill,
.hud-forest .health-fill {
  background:
    linear-gradient(
      180deg,
      #ffffff18 0%,
      #ffffff08 24%,
      #ffffff00 54%,
      #170e2c30 100%
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--hp-color) 90%, #35243d),
      var(--hp-color) 52%,
      color-mix(in srgb, var(--hp-color) 94%, #eed5c5)
    );
}
.hud-legion .health-shell {
  clip-path: none;
  border-radius: 5px 2px;
  padding: 2px;
  border: 1px solid #5f4e6b;
  background: linear-gradient(
    180deg,
    #a291a8,
    #57435f 35%,
    #342a3c 75%,
    #726079
  );
}
.hud-legion .line-count {
  right: 4px;
}
.break-symbol {
  width: 17px;
  height: 17px;
  border: 1px solid #70647760;
  border-radius: 3px 1px;
  background: linear-gradient(135deg, #302a37, #18171e);
  box-shadow: inset 0 1px #ffffff10;
}
.break-symbol svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 1px 1px #0006);
}
.break-mechanic[data-state="locked"] .break-symbol {
  color: #a49cab;
}
.break-mechanic[data-state="active"] .break-symbol {
  color: #a8cec4;
  border-color: #7da99c66;
}
.break-mechanic[data-state="broken"] .break-symbol {
  color: #c7b7d7;
  border-color: #a58eb666;
}
.break-mechanic[data-state="recovering"] .break-symbol {
  color: #c2a47e;
  border-color: #b3977566;
}

.monster-hud .enemy-level {
  display: inline-block;
  flex: none;
  margin-left: 0;
  font-size: 9px;
  line-height: 1;
  color: #bcaec8;
  white-space: nowrap;
}
.boss-hud .enemy-level {
  font-size: 10px;
}
.monster-hud .enemy-rank {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 10px;
  line-height: 1;
  color: #bda4c6;
}

/* The remaining-line number belongs to the health bar, without a separate end cap. */
.boss-hud .line-count {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  min-width: 0;
  color: #fff0df;
  padding: 0 4px;
  text-shadow: 0 1px 3px #10070be6;
}
.health-light {
  background: linear-gradient(180deg, #ffffff0f, transparent 35%);
}
.health-seam {
  width: 1px;
  margin-left: 0;
  opacity: 0.6;
  background: #21162670;
}
.field-hud .health-seam {
  width: 1px;
  opacity: 0.7;
  background: #15121d66;
}
.hud-sovereign .health-shell {
  background: linear-gradient(180deg, #896174, #42303b 42%, #33252e);
  border-color: #694553;
  box-shadow:
    inset 0 1px #ffffff12,
    0 1px 2px #0005;
}
.hud-legion .health-shell {
  background: linear-gradient(180deg, #80698c, #44334f 40%, #31263c);
  border-color: #63506e;
}
.health-reserve {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--hp-color) 20%, #211620),
    color-mix(in srgb, var(--hp-color) 12%, #17121b)
  );
}
.is-low .health-fill {
  animation: health-warning 1.25s ease-in-out infinite;
}
.is-critical .health-fill {
  animation-duration: 0.75s;
}
@keyframes health-warning {
  0%,
  100% {
    filter: saturate(1.18) brightness(1.08);
  }
  50% {
    filter: saturate(1.35) brightness(1.24);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-low .health-fill {
    animation: none;
    filter: saturate(1.25) brightness(1.15);
  }
}

/* Public experience shell; the HUD itself keeps its authored typeface. */
@font-face{font-family:Pretendard;src:url("../../../assets/body-regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Pretendard;src:url("../../../assets/body-bold.woff2") format("woff2");font-weight:600 900;font-display:swap}
:root{font-family:Pretendard,"Malgun Gothic",sans-serif;font-weight:400}
body{min-width:0;background:var(--page)}
.monster-hud{font-family:Moneygraphy,"Malgun Gothic",sans-serif;font-weight:700}
.workbench{padding:24px;max-width:1600px}
.page-header{align-items:flex-start;margin-bottom:20px;gap:24px}
.eyebrow{font-size:11px;line-height:1.7;margin:0;color:#bca9cd;letter-spacing:.03em}
h1{font-size:27px;line-height:1.5;font-weight:700;margin:7px 0 0;letter-spacing:-.8px}
.demo-intro{font-size:13px;line-height:1.9;margin:10px 0 0;color:#b3a6bd;max-width:620px;word-break:keep-all}
.page-actions{display:flex;align-items:flex-end;flex-direction:column;gap:12px;flex-shrink:0}
.site-link{color:#c3afd4;font-size:12px;line-height:1.6;text-decoration:none;border-bottom:1px solid #6f5a7d;padding-bottom:3px}
.button{border-radius:3px;min-height:38px;font-size:12px;font-weight:600;padding-inline:14px}
.button-primary{background:#9772b8}.button-primary:hover{background:#ac87cb}
.button-subtle{background:#2b2433;color:#d8c8e6}.button-subtle:hover{background:#3a2e46;color:#fff}
.preview-controls{position:sticky;top:0;z-index:20;display:block;margin:0 0 24px;padding:14px 16px 12px;background:#1d1823;border:1px solid #44364f;border-radius:3px}
.preview-controls>span{display:block;margin-bottom:10px;font-size:13px;font-weight:600;color:#ddcce9}
.preview-controls>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.health-control{font-size:12px;color:#c5b4d1;min-height:38px;margin:0 8px 0 0;flex-basis:auto;gap:10px}
.health-control input{width:110px}
.control-help{font-size:11px;line-height:1.8;margin:10px 0 0;color:#aa99b8;word-break:keep-all}
.section-heading{margin-bottom:14px;justify-content:space-between;flex-wrap:wrap;gap:6px 16px}
.section-heading h2{font-size:16px;font-weight:600;line-height:1.6;color:#d4c6df}
.section-heading>span{font-size:11px;line-height:1.7;color:#aa98b7}
.family-heading h3{font-size:14px;font-weight:600}.family-heading>span{font-size:10px;line-height:1.7;color:#ad9aba}
.family-note,.sample-note{font-size:10px;line-height:1.8;color:#ab98b9}.sample-header strong{font-size:11px;font-weight:600;color:#bca7cd}
.placement-button{font-size:11px;min-height:30px;min-width:54px;border-radius:3px;color:#c6addb;background:#9d6fb51a}
.placement-button:hover{background:#9d6fb533;color:#e2c6f6}
.demo-rights{margin-top:28px;border-top:1px solid #3b3045;padding-top:20px;font-size:11px;line-height:1.9;color:#9f8eac}
.demo-rights>p{margin:0 0 8px}.demo-rights>strong{display:block;font-size:12px;color:#c5b2d2;font-weight:600}.demo-rights>span{display:block;margin-top:3px}
.demo-watermark{position:absolute;z-index:2;bottom:105px;left:24px;color:#bac4b57a;font-size:12px;font-weight:600;letter-spacing:.03em;pointer-events:none}
.placement-controls{align-items:flex-end;background:#111813e8;border:1px solid #3c49424d;border-radius:3px;padding:13px;gap:14px}
.placement-controls>div{flex-wrap:wrap}.placement-controls strong{font-size:12px;line-height:1.6;font-weight:600}.placement-controls span{font-size:11px;line-height:1.6}.placement-controls>div:first-child{display:block;max-width:34%}.placement-controls>div:first-child>span{display:block;margin-top:4px}
.portrait-art{overflow:hidden}
.light-preview .preview-controls{background:#e9e1ef;border-color:#c8b5d5}.light-preview .preview-controls>span{color:#634773}.light-preview .control-help,.light-preview .demo-intro{color:#71557f}.light-preview .health-control{color:#735480}.light-preview .site-link{color:#70507f}.light-preview .demo-rights{color:#81698d}.light-preview .demo-rights>strong{color:#664974}.light-preview .button-subtle{color:#644771;background:#dccde6}
@media(max-width:800px){.workbench{padding:20px 14px}.page-header{gap:15px;display:block}h1{font-size:23px}.demo-intro{font-size:12px;line-height:1.85}.page-actions{margin-top:16px;flex-direction:row;align-items:center;justify-content:space-between}.page-actions>.button{font-size:11px;padding-inline:12px}.preview-controls{padding:12px;margin-bottom:22px}.preview-controls>div{gap:7px}.preview-controls .button{font-size:11px;min-height:38px;padding-inline:12px}.health-control{flex-basis:100%;margin-bottom:3px}.health-control input{width:min(210px,65vw)}.control-help{font-size:10px;line-height:1.8}.section-heading{display:block}.section-heading h2{font-size:15px}.section-heading>span{font-size:10px}.placement-controls{left:10px;right:10px;bottom:12px;display:flex;flex-direction:column;align-items:stretch;padding:11px;gap:12px}.placement-controls>div:first-child{max-width:none}.placement-controls>div:last-child{display:flex;gap:7px;flex-wrap:wrap}.placement-controls .button{min-height:38px;padding:0 12px;font-size:11px}.placement-controls strong{font-size:11px}.placement-controls span{font-size:10px}.demo-watermark{left:15px;bottom:170px;font-size:10px}.placement-anchor{width:calc(100vw - 28px);top:22px}}
@media(max-width:380px){.workbench{padding-inline:11px}.preview-controls{padding:11px}.preview-controls .button{font-size:10px;padding-inline:10px}.family-heading>span{font-size:9px}.demo-rights{font-size:10px}}

.preview-controls>span::after{content:"MASSIVE GAMING";float:right;font-size:10px;font-weight:400;letter-spacing:.04em;color:#8f7a9f}.light-preview .preview-controls>span::after{color:#866396}

.is-embedded .site-link{display:none}.is-embedded .page-actions{justify-content:flex-end}

/* Visible ownership stays with the individual HUD and its presentation. */
[data-protected-demo],[data-protected-demo] *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
[data-protected-demo] input,[data-protected-demo] textarea,[data-protected-demo] [contenteditable="true"]{-webkit-user-select:text;user-select:text}
[data-protected-demo] img,[data-protected-demo] svg{-webkit-user-drag:none;user-drag:none}
.hud-ownership{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%) rotate(-9deg);z-index:15;pointer-events:none;font-family:Pretendard,"Malgun Gothic",sans-serif;font-size:10px;line-height:1.3;font-weight:700;letter-spacing:.4px;white-space:nowrap;color:#f1e6ff59;text-shadow:0 1px 1px #130c1c70}
.field-hud>.hud-ownership{font-size:7px;letter-spacing:.1px;top:65%}
.sample-stage{isolation:isolate}
.sample-ownership{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:space-around;overflow:hidden;pointer-events:none;color:#e3d0f1;opacity:.085;font-family:Pretendard,"Malgun Gothic",sans-serif;font-weight:700;font-size:11px;line-height:1.5}
.sample-ownership>span{display:block;transform:rotate(-13deg);white-space:nowrap;flex-shrink:0}
.placement-ownership{position:absolute;inset:0;z-index:12;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:145px;overflow:hidden;pointer-events:none;color:#e6d6ed;opacity:.11;font-family:Pretendard,"Malgun Gothic",sans-serif;font-weight:700}
.placement-ownership>span{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;transform:rotate(-14deg);font-size:16px;line-height:1.5;white-space:nowrap}
.placement-ownership strong{font-size:12px;letter-spacing:1.5px;font-weight:600}
.placement-controls{z-index:30}
.light-preview .hud-ownership{color:#f1e6ff59;text-shadow:0 1px 1px #130c1c70}
.light-preview .sample-ownership{color:#e3d0f1;opacity:.085}
.protection-notice{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1000;max-width:calc(100% - 32px);width:max-content;background:#21182bf2;border:1px solid #79628b;color:#f0e4f7;font-family:Pretendard,"Malgun Gothic",sans-serif;font-size:12px;line-height:1.8;padding:12px 17px;border-radius:3px;box-shadow:0 8px 25px #0004;pointer-events:none;text-align:center}
.placement>.protection-notice{bottom:120px}
.preview-controls>span::after{content:"메시브 게이밍 · MASSIVE GAMING";font-size:9px}
@media(max-width:800px){.placement-ownership{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:125px}.placement-ownership>span{font-size:12px;gap:4px}.placement-ownership strong{font-size:9px;letter-spacing:.8px}.hud-ownership{font-size:9px}.field-hud>.hud-ownership{font-size:7px}.sample-ownership{font-size:9px}.protection-notice{font-size:11px;padding:10px 13px}.placement>.protection-notice{bottom:215px}}
@media print{html{background:#fff!important;color-scheme:light}body{background:#fff!important;color:#222!important;min-width:0!important}body>*{display:none!important}dialog.placement,dialog.placement[open],.placement::backdrop{display:none!important}body::after{content:"메시브 게이밍 · MASSIVE GAMING\A체험용 콘텐츠 · 무단 복제·저장·재배포 금지";display:block;white-space:pre-line;font:700 16px/2 Pretendard,sans-serif;padding:40px;color:#222}}
