body.play-page {
  overflow: hidden;
  background: #06070b;
}

.play-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 72px 1fr;
}

.play-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,13,.94);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 20;
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.play-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a6a8b6;
  font-size: 12px;
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #777;
}

.connection-dot.online {
  background: var(--success);
  box-shadow: 0 0 14px rgba(104,240,181,.75);
}

.connection-dot.connecting {
  background: #ffd66b;
  box-shadow: 0 0 14px rgba(255,214,107,.55);
}

.connection-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 14px rgba(255,113,136,.4);
}

.play-main {
  min-height: 0;
  height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
}

.world-panel {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #090b12;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: grab;
}

#gameCanvas:active {
  cursor: grabbing;
}

.area-title {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  gap: 2px;
  pointer-events: auto;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}

.area-title span {
  color: #b597ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .22em;
}

.area-title strong {
  font-size: 25px;
  letter-spacing: -.03em;
}

.area-title small {
  color: #777b89;
  font-size: 9px;
}


.area-header-cluster {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  z-index: 8;
  pointer-events: none;
}

.area-header-cluster .area-title {
  position: static;
}

.player-identity {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8,10,16,.82);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.player-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-bright);
  background: rgba(139,92,246,.12);
  font-weight: 900;
}

.player-identity strong,
.player-identity span {
  display: block;
}

.player-identity strong {
  font-size: 13px;
}

.player-identity span {
  margin-top: 2px;
  color: var(--purple-bright);
  font-size: 9px;
  letter-spacing: .12em;
}

.world-hud {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.hud-card {
  min-width: 92px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8,10,16,.78);
  backdrop-filter: blur(14px);
}

.hud-card span,
.hud-card strong {
  display: block;
}

.hud-card span {
  color: #6e7180;
  font-size: 8px;
  letter-spacing: .16em;
}

.hud-card strong {
  margin-top: 4px;
  font-size: 15px;
}

.control-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  color: #737785;
  font-size: 9px;
  white-space: nowrap;
  pointer-events: none;
}

.control-hint span {
  color: #c0b5df;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  background: rgba(6,7,11,.72);
  padding: 4px 6px;
  margin-left: 7px;
}

.side-panel {
  min-height: 0;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 14px;
  background: #090b10;
}

.side-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.018);
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 12px;
}

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.side-card h2 {
  margin: 12px 0 10px;
  font-size: 24px;
}

.mini-state {
  color: #777a88;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.mini-state.ok {
  color: var(--success);
}

.online-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.online-player {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.02);
}

.online-player.self {
  border-color: rgba(139,92,246,.25);
  background: rgba(139,92,246,.055);
}

.online-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(139,92,246,.1);
  color: #d9ceff;
  font-size: 12px;
  font-weight: 900;
}

.online-meta strong,
.online-meta small {
  display: block;
}

.online-meta strong {
  font-size: 11px;
}

.online-meta small {
  margin-top: 2px;
  color: #777a89;
  font-size: 8px;
}

.online-state {
  color: var(--success);
  font-size: 8px;
  letter-spacing: .12em;
}

.empty-state {
  padding: 14px 0 2px;
  color: #666977;
  font-size: 11px;
}

.world-info {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.world-info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.world-info span {
  color: #777b89;
  font-size: 10px;
}

.world-info strong {
  font-size: 10px;
  text-align: right;
}

.log-card {
  min-height: 180px;
}

.event-log {
  display: grid;
  gap: 5px;
  max-height: 190px;
  overflow-y: auto;
  margin-top: 12px;
}

.log-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.035);
  color: #8e91a0;
  font-size: 10px;
}

.log-row.ok {
  color: #9bdcc1;
}

.log-row.error {
  color: #e8a0ad;
}

.log-time {
  color: #515460;
  font-family: ui-monospace, monospace;
}

.tiny-button,
.tiny-close {
  padding: 0;
  border: 0;
  background: none;
  color: #777a87;
  cursor: pointer;
}

.tiny-button {
  font-size: 9px;
}

.tiny-close {
  font-size: 30px;
  line-height: 1;
}

.help-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(3,4,7,.72);
  backdrop-filter: blur(8px);
}

.help-overlay[hidden] {
  display: none;
}

.help-card {
  width: min(620px,calc(100% - 40px));
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  padding: 26px;
  background: #0c0f16;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.help-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.help-title h2 {
  margin: 7px 0 20px;
  font-size: 34px;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.help-grid > div {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.help-grid span {
  margin-left: auto;
  color: #989ba9;
  font-size: 11px;
}

kbd {
  min-width: 27px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.14);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: #171a23;
  padding: 5px 7px;
  color: #eeeafa;
  font: 700 10px ui-monospace,monospace;
}

.help-card > p {
  color: #777b89;
  line-height: 1.65;
  font-size: 11px;
  margin: 20px 0 0;
}

@media (max-width:1000px) {
  body.play-page { overflow:auto; }

  .play-main {
    height:auto;
    grid-template-columns:1fr;
  }

  .world-panel {
    height:68vh;
    min-height:520px;
  }

  .side-panel {
    border-left:0;
    border-top:1px solid var(--line);
  }
}

@media (max-width:650px) {
  .play-header { grid-template-columns:1fr auto; }
  .play-status { display:none; }
  .header-actions #helpButton { display:none; }

  .area-title {
    top:12px;
    left:12px;
  }

  .world-hud {
    right:10px;
    top:10px;
  }

  .hud-card:nth-child(3) { display:none; }

  .player-identity {
    left:10px;
    bottom:10px;
  }

  .control-hint { display:none; }
  .help-grid { grid-template-columns:1fr; }
}


.interaction-prompt {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 235px;
  padding: 11px 14px;
  border: 1px solid rgba(173, 139, 255, .35);
  border-radius: 13px;
  background: rgba(8, 9, 15, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0,0,0,.3);
  pointer-events: none;
}

.interaction-prompt[hidden] {
  display: none;
}

.interaction-prompt kbd {
  min-width: 34px;
  min-height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: rgba(177, 143, 255, .38);
  color: #e2d9ff;
}

.interaction-prompt strong,
.interaction-prompt span {
  display: block;
}

.interaction-prompt strong {
  font-size: 11px;
}

.interaction-prompt span {
  margin-top: 3px;
  color: #777b89;
  font-size: 9px;
}

.inventory-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.inventory-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}

.inventory-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(139,92,246,.1);
  color: #b99cff;
  font-size: 14px;
  text-shadow: 0 0 12px rgba(139,92,246,.7);
}

.inventory-meta strong,
.inventory-meta small {
  display: block;
}

.inventory-meta strong {
  font-size: 10px;
}

.inventory-meta small {
  margin-top: 3px;
  color: #656977;
  font-size: 8px;
}

.inventory-quantity {
  color: #c8bddf;
  font-size: 11px;
}

@media (max-width:650px) {
  .interaction-prompt {
    bottom: 76px;
  }
}


.recipe-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.recipe-item {
  padding: 11px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
}

.recipe-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.recipe-head strong,
.recipe-head small {
  display: block;
}

.recipe-head strong {
  font-size: 10px;
}

.recipe-head small {
  margin-top: 4px;
  color: #747886;
  font-size: 8px;
}

.craft-button {
  border: 1px solid rgba(161,126,255,.38);
  border-radius: 8px;
  background: rgba(132,87,242,.12);
  padding: 7px 9px;
  color: #d9ccff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.craft-button:hover:not(:disabled) {
  background: rgba(132,87,242,.22);
}

.craft-button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.recipe-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.recipe-ingredients span {
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.025);
  font-size: 8px;
}

.recipe-ingredients .enough {
  color: #8ed8b7;
}

.recipe-ingredients .missing {
  color: #d3919e;
}


.companion-panel {
  margin-top: 12px;
}

.companion-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(161,126,255,.14);
  border-radius: 11px;
  background: rgba(139,92,246,.035);
}

.companion-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.companion-title strong,
.companion-title small {
  display: block;
}

.companion-title strong {
  font-size: 11px;
}

.companion-title small {
  margin-top: 3px;
  color: #747886;
  font-size: 8px;
}

.companion-hp {
  color: #8ed8b7;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.companion-hp.defeated {
  color: #df8999;
}

.companion-hpbar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #242831;
}

.companion-hpbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7654c9, #9b79ee);
}

.companion-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.companion-stats span {
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.025);
  color: #7d8190;
  font-size: 8px;
}

.companion-stats strong {
  color: #d8d3e5;
}

.companion-heal-button {
  border: 1px solid rgba(161,126,255,.28);
  border-radius: 8px;
  background: rgba(132,87,242,.1);
  padding: 7px 9px;
  color: #d9ccff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.combat-prompt {
  position: absolute;
  left: 50%;
  bottom: 126px;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 265px;
  padding: 11px 14px;
  border: 1px solid rgba(237,111,145,.28);
  border-radius: 13px;
  background: rgba(8,9,15,.91);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0,0,0,.3);
  pointer-events: none;
}

.combat-prompt[hidden] {
  display: none;
}

.combat-prompt kbd {
  min-width: 34px;
  min-height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: rgba(237,111,145,.32);
  color: #ffd4df;
}

.combat-prompt strong,
.combat-prompt span {
  display: block;
}

.combat-prompt strong {
  font-size: 11px;
}

.combat-prompt span {
  margin-top: 3px;
  color: #777b89;
  font-size: 9px;
}


/* Kampf-Feedback: HP steht jetzt direkt über dem Begleiter.
   Die eigentliche HP-Grafik wird als Three.js-Sprite erzeugt. */

.connection-dot.connecting {
  animation: connection-pulse 1s ease-in-out infinite alternate;
}

@keyframes connection-pulse {
  from { opacity: .45; }
  to { opacity: 1; }
}


.capture-prompt {
  position: absolute;
  left: 50%;
  bottom: 176px;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 285px;
  padding: 11px 14px;
  border: 1px solid rgba(168,128,255,.35);
  border-radius: 13px;
  background: rgba(8,9,15,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0,0,0,.3);
  pointer-events: none;
}

.capture-prompt[hidden] {
  display: none;
}

.capture-prompt kbd {
  min-width: 34px;
  min-height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: rgba(174,137,255,.42);
  color: #eadfff;
}

.capture-prompt strong,
.capture-prompt span {
  display: block;
}

.capture-prompt strong {
  font-size: 11px;
}

.capture-prompt span {
  margin-top: 3px;
  color: #8b829f;
  font-size: 9px;
}


.capture-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(
      circle at center,
      rgba(129,92,246,.10),
      rgba(8,9,15,0) 42%
    );
  opacity: 0;
}

.capture-result-overlay[hidden] {
  display: none;
}

.capture-result-overlay.show {
  animation: capture-overlay-in .22s ease-out forwards;
}

.capture-result-card {
  min-width: 320px;
  padding: 24px 30px 22px;
  border: 1px solid rgba(176,145,255,.46);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(20,16,36,.96),
      rgba(8,9,15,.96)
    );
  box-shadow:
    0 22px 70px rgba(0,0,0,.52),
    0 0 45px rgba(143,97,255,.16);
  text-align: center;
  transform: scale(.72) translateY(18px);
  opacity: 0;
  animation: capture-card-pop .38s cubic-bezier(.2,.8,.2,1) forwards;
}

.capture-result-overlay.failure .capture-result-card {
  border-color: rgba(239,112,139,.42);
  box-shadow:
    0 22px 70px rgba(0,0,0,.52),
    0 0 42px rgba(239,112,139,.13);
}

.capture-result-eyebrow {
  margin-bottom: 7px;
  color: #a985ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .22em;
}

.capture-result-overlay.failure .capture-result-eyebrow {
  color: #ef708b;
}

.capture-result-title {
  color: #f3efff;
  font-size: 29px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-shadow: 0 0 24px rgba(175,139,255,.45);
}

.capture-result-overlay.failure .capture-result-title {
  text-shadow: 0 0 20px rgba(239,112,139,.35);
}

.capture-result-creature {
  margin-top: 8px;
  color: #d6c9ff;
  font-size: 15px;
  font-weight: 800;
}

.capture-result-meta {
  margin-top: 4px;
  color: #8f93a0;
  font-size: 10px;
}

.capture-result-destination {
  display: inline-block;
  margin-top: 13px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #b9bdc7;
  font-size: 9px;
  font-weight: 800;
}

@keyframes capture-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes capture-card-pop {
  0% {
    opacity: 0;
    transform: scale(.72) translateY(18px);
  }

  55% {
    opacity: 1;
    transform: scale(1.06) translateY(-3px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


.shadow-cloud-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.shadow-cloud-summary span {
  color: #7d8190;
  font-size: 9px;
}

.cloud-open-button,
.cloud-activate-button {
  border: 1px solid rgba(163,125,255,.28);
  border-radius: 8px;
  background: rgba(137,88,242,.10);
  color: #ddd1ff;
  font-weight: 800;
  cursor: pointer;
}

.cloud-open-button {
  padding: 7px 10px;
  font-size: 8px;
}

.cloud-open-button:hover,
.cloud-activate-button:hover {
  background: rgba(137,88,242,.17);
}

.shadow-cloud-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4,5,10,.70);
  backdrop-filter: blur(9px);
}

.shadow-cloud-overlay[hidden] {
  display: none;
}

.shadow-cloud-window {
  width: min(900px, 92vw);
  max-height: min(720px, 86vh);
  overflow: auto;
  border: 1px solid rgba(159,119,255,.24);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(16,17,25,.98),
      rgba(8,9,15,.98)
    );
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.shadow-cloud-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.shadow-cloud-header h2 {
  margin: 5px 0 2px;
  font-size: 22px;
}

.shadow-cloud-header p {
  margin: 0;
  color: #777b89;
  font-size: 10px;
}

.shadow-cloud-layout {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr);
  gap: 18px;
  padding: 20px 24px 24px;
}

.shadow-cloud-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px;
  align-content: start;
}

.cloud-creature-card {
  min-height: 94px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.cloud-creature-card:hover,
.cloud-creature-card.selected {
  border-color: rgba(165,127,255,.34);
  background: rgba(137,88,242,.07);
}

.cloud-creature-card.empty {
  grid-template-columns: 1fr;
  opacity: .55;
  cursor: default;
}

.cloud-slot-label {
  grid-column: 1 / -1;
  color: #696e7b;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .16em;
}

.cloud-creature-orb {
  width: 42px;
  height: 42px;
  align-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #dbcaff 0 12%, #8e69df 36%, #332058 72%);
  box-shadow:
    inset 0 0 13px rgba(255,255,255,.14),
    0 0 20px rgba(138,92,240,.14);
}

.cloud-creature-info {
  align-self: center;
}

.cloud-creature-info strong,
.cloud-creature-info small {
  display: block;
}

.cloud-creature-info strong {
  font-size: 11px;
}

.cloud-creature-info small {
  margin-top: 4px;
  color: #777b89;
  font-size: 8px;
}

.shadow-cloud-details {
  min-height: 280px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 13px;
  background: rgba(0,0,0,.12);
}

.cloud-detail-empty {
  height: 100%;
  min-height: 245px;
  display: grid;
  place-items: center;
  color: #686d7a;
  font-size: 10px;
}

.cloud-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cloud-detail-title h3 {
  margin: 5px 0 2px;
  font-size: 17px;
}

.cloud-detail-title p {
  margin: 0;
  color: #747987;
  font-size: 9px;
}

.cloud-detail-hp {
  color: #8ed9b8;
  font-size: 9px;
  white-space: nowrap;
}

.cloud-detail-stats {
  display: grid;
  gap: 0;
  margin-top: 15px;
  border-top: 1px solid rgba(255,255,255,.055);
}

.cloud-detail-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.045);
}

.cloud-detail-stats span {
  color: #6f7481;
  font-size: 8px;
}

.cloud-detail-stats strong {
  color: #d7d9df;
  font-size: 8px;
  text-align: right;
}

.cloud-personality {
  margin-top: 15px;
}

.cloud-personality-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin-top: 8px;
}

.cloud-personality-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,.025);
}

.cloud-personality-grid span {
  color: #707582;
  font-size: 7px;
}

.cloud-personality-grid strong {
  font-size: 8px;
}

.cloud-activate-button {
  width: 100%;
  margin-top: 16px;
  padding: 10px 12px;
  font-size: 9px;
}

@media (max-width: 820px) {
  .shadow-cloud-layout {
    grid-template-columns: 1fr;
  }

  .shadow-cloud-grid {
    grid-template-columns: 1fr;
  }
}


.companion-xp-wrap {
  display: grid;
  gap: 5px;
}

.companion-xp-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #727785;
  font-size: 7px;
  font-weight: 800;
}

.companion-xpbar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #252832;
}

.companion-xpbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #6158db,
    #9e78ff
  );
}

.level-up-overlay {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(
      circle at center,
      rgba(148,112,255,.11),
      transparent 45%
    );
  opacity: 0;
}

.level-up-overlay[hidden] {
  display: none;
}

.level-up-overlay.show {
  animation: level-up-fade .25s ease-out forwards;
}

.level-up-card {
  pointer-events: auto;
  min-width: 310px;
  padding: 24px 30px;
  border: 1px solid rgba(168,134,255,.45);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(24,18,42,.96),
      rgba(9,10,17,.97)
    );
  text-align: center;
  box-shadow:
    0 25px 80px rgba(0,0,0,.52),
    0 0 60px rgba(139,96,255,.16);
  transform: scale(.7);
  opacity: 0;
  animation:
    level-up-pop .45s cubic-bezier(.18,.85,.2,1)
    forwards;
}

.level-up-title {
  margin-top: 7px;
  color: #f4efff;
  font-size: 31px;
  font-weight: 1000;
  letter-spacing: .07em;
  text-shadow:
    0 0 24px rgba(171,137,255,.46);
}

.level-up-creature {
  margin-top: 8px;
  color: #d6c8ff;
  font-size: 15px;
  font-weight: 800;
}

.level-up-meta {
  margin-top: 4px;
  color: #8f94a2;
  font-size: 10px;
}

@keyframes level-up-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes level-up-pop {
  0% {
    opacity: 0;
    transform: scale(.7);
  }

  58% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}


.companion-recovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid rgba(231,151,98,.18);
  border-radius: 8px;
  background: rgba(231,151,98,.055);
}

.companion-recovery span {
  color: #9a8378;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.companion-recovery strong {
  color: #f0b88f;
  font-size: 10px;
}


.game-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(122,82,207,.12), transparent 38%),
    #080910;
  opacity: 1;
  transition: opacity .28s ease;
}

.game-loading-screen[hidden] { display: none; }
.game-loading-screen.leaving { opacity: 0; }

.game-loading-card {
  width: min(430px, calc(100vw - 42px));
  padding: 34px 34px 30px;
  border: 1px solid rgba(158,121,244,.20);
  border-radius: 20px;
  background: rgba(13,14,23,.88);
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
  text-align: center;
}

.loading-brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(180,147,255,.26);
  border-radius: 15px;
  background: rgba(132,87,224,.10);
  color: #d9caff;
  font-size: 24px;
  font-weight: 1000;
}

.game-loading-card h1 {
  margin: 8px 0 7px;
  color: #f0edf8;
  font-size: 20px;
}

.game-loading-card p {
  margin: 0;
  color: #777c89;
  font-size: 10px;
}

.loading-bar {
  height: 4px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

.loading-bar span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6550c8, #ad83ff);
  animation: loading-slide 1.25s ease-in-out infinite;
}

@keyframes loading-slide {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(195%); }
  100% { transform: translateX(405%); }
}

.server-restart-banner {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 22;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(620px, calc(100% - 48px));
  padding: 9px 13px;
  border: 1px solid rgba(238,164,93,.26);
  border-radius: 10px;
  background: rgba(22,17,13,.91);
  box-shadow: 0 12px 35px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}

.server-restart-banner[hidden] { display: none; }

.server-restart-banner strong {
  color: #efb375;
  font-size: 8px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.server-restart-banner span {
  color: #c7b3a0;
  font-size: 9px;
}

.sysadmin-command-card[hidden] { display: none; }

.sysadmin-command-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: 10px;
}

.sysadmin-command-row input {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  outline: none;
  background: rgba(0,0,0,.17);
  color: #d7d9e0;
  font: inherit;
  font-size: 9px;
}

.sysadmin-command-row input:focus {
  border-color: rgba(154,117,243,.35);
}

.sysadmin-command-row button {
  padding: 8px 9px;
  border: 1px solid rgba(159,119,255,.26);
  border-radius: 8px;
  background: rgba(130,84,224,.10);
  color: #d9ccff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.sysadmin-command-card > small {
  display: block;
  margin-top: 7px;
  color: #626775;
  font-size: 7px;
}

.companion-recovery {
  border-color: rgba(108,171,133,.18);
  background: rgba(108,171,133,.045);
}

.companion-recovery span { color: #7e9d89; }
.companion-recovery strong { color: #9bd1ad; }


.chat-card {
  min-height: 245px;
}

.chat-messages {
  height: 185px;
  margin-top: 10px;
  padding-right: 4px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.chat-empty {
  padding: 18px 8px;
  color: #626775;
  font-size: 8px;
  text-align: center;
}

.chat-message {
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}

.chat-message-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-message-head strong {
  color: #d8dbe3;
  font-size: 8px;
}

.chat-message-head time {
  margin-left: auto;
  color: #5f6470;
  font-size: 7px;
}

.chat-role {
  padding: 2px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .08em;
}

.chat-role.role-sysadmin {
  color: #d7b2ff;
  border-color: rgba(164,107,255,.30);
  background: rgba(137,77,230,.10);
}

.chat-role.role-admin {
  color: #ffb5b5;
  border-color: rgba(255,120,120,.28);
  background: rgba(218,70,70,.08);
}

.chat-role.role-moderator {
  color: #9fc9ff;
  border-color: rgba(104,166,255,.25);
  background: rgba(71,123,204,.08);
}

.chat-role.role-premium {
  color: #f5d88a;
  border-color: rgba(226,184,78,.25);
  background: rgba(189,141,33,.08);
}

.chat-role.role-player {
  color: #9b9fac;
}

.chat-message-text {
  margin-top: 5px;
  color: #aeb2bd;
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: 9px;
}

.chat-compose input {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  outline: none;
  background: rgba(0,0,0,.17);
  color: #d7d9e0;
  font: inherit;
  font-size: 9px;
}

.chat-compose input:focus {
  border-color: rgba(154,117,243,.35);
}

.chat-compose button {
  padding: 8px 10px;
  border: 1px solid rgba(159,119,255,.26);
  border-radius: 8px;
  background: rgba(130,84,224,.10);
  color: #d9ccff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}


.creature-profile-overlay {
  position: absolute;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4,5,10,.74);
  backdrop-filter: blur(10px);
}
.creature-profile-overlay[hidden] { display: none; }

.creature-profile-window {
  width: min(860px, 92vw);
  max-height: min(720px, 88vh);
  overflow: auto;
  border: 1px solid rgba(159,119,255,.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17,18,27,.99), rgba(8,9,15,.99));
  box-shadow: 0 30px 95px rgba(0,0,0,.58);
}

.creature-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.creature-profile-head h2 { margin: 5px 0 2px; font-size: 23px; }
.creature-profile-head p { margin: 0; color: #787d8a; font-size: 10px; }

.creature-profile-body {
  display: grid;
  grid-template-columns: 210px minmax(0,1fr);
  gap: 22px;
  padding: 22px 24px 26px;
}

.creature-profile-visual {
  min-height: 305px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 15px;
  background: radial-gradient(circle at center, rgba(136,91,230,.11), transparent 55%);
}

.creature-profile-orb {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #e5d9ff 0 10%, #8d68dc 34%, #32204e 72%);
  box-shadow: inset 0 0 28px rgba(255,255,255,.13), 0 0 46px rgba(137,91,231,.18);
}

.creature-profile-orb[data-species="DUSKLING"] {
  border-radius: 45% 45% 48% 48%;
  transform: scaleX(1.05);
  background: radial-gradient(circle at 45% 34%, #dfccff 0 8%, #aa79ff 26%, #6843b2 68%, #2c1a49 100%);
}

.creature-profile-content,
.creature-profile-section,
.creature-personality-bars {
  display: grid;
  gap: 12px;
}

.creature-name-edit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.creature-name-edit input {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  background: rgba(0,0,0,.16);
  color: #e0e2e8;
  outline: none;
}

.creature-name-edit button,
.companion-profile-button,
.cloud-profile-button {
  border: 1px solid rgba(159,119,255,.26);
  border-radius: 8px;
  background: rgba(130,84,224,.10);
  color: #d9ccff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.creature-name-edit button { padding: 9px 11px; }
.companion-profile-button,
.cloud-profile-button {
  width: 100%;
  padding: 8px 10px;
  margin-top: 8px;
}

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

.creature-profile-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.creature-profile-grid span { color: #707582; font-size: 8px; }
.creature-profile-grid strong { color: #d8dbe2; font-size: 8px; }

.creature-personality-bars > div { display: grid; gap: 5px; }
.creature-personality-bars > div > div:first-child {
  display: flex;
  justify-content: space-between;
}
.creature-personality-bars span { color: #747986; font-size: 8px; }
.creature-personality-bars strong { font-size: 8px; }

.creature-personality-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}
.creature-personality-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6555cf, #a178ff);
}

@media (max-width: 760px) {
  .creature-profile-body { grid-template-columns: 1fr; }
  .creature-profile-grid { grid-template-columns: 1fr; }
}


.creature-profile-attacks {
  display: grid;
  gap: 8px;
}

.creature-attack-empty {
  padding: 13px;
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: #6f7481;
  font-size: 8px;
}

.creature-attack-card {
  padding: 11px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(255,255,255,.022);
}

.creature-attack-card.active {
  border-color: rgba(151,112,244,.28);
  background: rgba(124,80,218,.07);
}

.creature-attack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.creature-attack-head strong {
  color: #ddd9e8;
  font-size: 10px;
}

.creature-attack-head span {
  color: #a78bf0;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.creature-attack-card p {
  margin: 6px 0 0;
  color: #777c89;
  font-size: 8px;
  line-height: 1.45;
}

.creature-attack-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.creature-attack-meta span {
  color: #8e94a0;
  font-size: 7px;
}

.creature-attack-card button {
  width: 100%;
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid rgba(159,119,255,.24);
  border-radius: 8px;
  background: rgba(130,84,224,.09);
  color: #d9ccff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}


.cloud-creature-orb {
  border: 1px solid rgba(255,255,255,.12);
}

.creature-profile-orb {
  border: 1px solid rgba(255,255,255,.14);
}


.admin-menu-open-button {
  width: 100%;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(159,119,255,.26);
  border-radius: 8px;
  background: rgba(130,84,224,.10);
  color: #d9ccff;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

.admin-menu-open-button[hidden] {
  display: none;
}

.admin-menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4,5,10,.80);
  backdrop-filter: blur(11px);
}

.admin-menu-overlay[hidden] {
  display: none;
}

.admin-menu-window {
  width: min(1080px, 95vw);
  max-height: min(820px, 92vh);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr);
  border: 1px solid rgba(159,119,255,.25);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(16,17,26,.995),
      rgba(8,9,15,.995)
    );
  box-shadow: 0 34px 105px rgba(0,0,0,.62);
}

.admin-menu-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 23px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.admin-menu-head h2 {
  margin: 5px 0 2px;
  font-size: 23px;
}

.admin-menu-head p {
  margin: 0;
  color: #747987;
  font-size: 9px;
}

.admin-menu-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  overflow-x: auto;
}

.admin-menu-tabs button {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  color: #818694;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.admin-menu-tabs button.active {
  border-color: rgba(157,116,246,.30);
  background: rgba(129,81,221,.11);
  color: #d7caff;
}

.admin-menu-tabs button:disabled {
  opacity: .38;
  cursor: default;
}

.admin-menu-body {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 22px;
}

.admin-menu-status {
  margin-bottom: 11px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
  color: #777c89;
  font-size: 8px;
}

.admin-menu-content {
  display: grid;
  gap: 10px;
}

.admin-config-card {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
}

.admin-config-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-config-card-head > div {
  display: grid;
  gap: 4px;
}

.admin-config-card-head strong {
  font-size: 11px;
  color: #dddfe7;
}

.admin-config-card-head small {
  color: #737886;
  font-size: 8px;
}

.admin-color-preview {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  margin-right: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}

.admin-field {
  display: grid;
  gap: 5px;
}

.admin-field > span {
  color: #737886;
  font-size: 7px;
  font-weight: 800;
}

.admin-field input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  outline: none;
  background: rgba(0,0,0,.17);
  color: #d9dce4;
  font: inherit;
  font-size: 9px;
}

.admin-field input:focus {
  border-color: rgba(157,116,246,.34);
}

.admin-field input:disabled {
  opacity: .45;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #9297a3;
  font-size: 8px;
}

.admin-save-button {
  width: 100%;
  margin-top: 11px;
  padding: 9px 11px;
  border: 1px solid rgba(159,119,255,.26);
  border-radius: 8px;
  background: rgba(130,84,224,.10);
  color: #d9ccff;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 820px) {
  .admin-field-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 560px) {
  .admin-field-grid {
    grid-template-columns: 1fr;
  }
}


.level-up-progress {
  width: 100%;
  height: 5px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.level-up-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #6f58d9,
    #b68dff
  );
}

.level-up-ok-button {
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(166,127,255,.30);
  border-radius: 9px;
  background: rgba(130,84,224,.12);
  color: #e1d8ff;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.level-up-ok-button:hover {
  background: rgba(130,84,224,.19);
}


.world-editor-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 58;
  width: 290px;
  max-height: calc(100% - 36px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(159,119,255,.28);
  border-radius: 14px;
  background: rgba(10,11,18,.94);
  box-shadow: 0 18px 55px rgba(0,0,0,.42);
  backdrop-filter: blur(12px);
}
.world-editor-hud[hidden] { display:none; }
.world-editor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.06); }
.world-editor-head > div { display:grid; gap:4px; }
.world-editor-head strong { font-size:12px; }
.world-editor-head button, .world-editor-section button, .world-editor-selection button {
  border:1px solid rgba(159,119,255,.25); border-radius:8px; background:rgba(130,84,224,.10); color:#ddd1ff; font-size:8px; font-weight:800; cursor:pointer; padding:8px 9px;
}
.world-editor-section { display:grid; gap:8px; padding:12px 0; }
.world-editor-section label { color:#777c89; font-size:8px; }
.world-editor-section select, .world-editor-grid input { width:100%; box-sizing:border-box; padding:8px; border:1px solid rgba(255,255,255,.07); border-radius:8px; background:rgba(0,0,0,.18); color:#dde0e7; font:inherit; font-size:9px; outline:none; }
.world-editor-section small { color:#737886; font-size:8px; line-height:1.45; }
.world-editor-selection { display:grid; gap:9px; padding-top:11px; border-top:1px solid rgba(255,255,255,.06); }
.world-editor-selection[hidden] { display:none; }
.world-editor-selected-title { display:grid; gap:4px; }
.world-editor-selected-title strong { font-size:11px; }
.world-editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.world-editor-grid label { display:grid; gap:4px; color:#737886; font-size:7px; }
.world-editor-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.world-editor-actions .danger { border-color:rgba(231,93,104,.28); background:rgba(190,52,65,.08); color:#ffb8be; }
.world-editor-intro p { color:#9095a2; font-size:9px; line-height:1.55; margin:9px 0; }
.world-editor-intro small { display:block; color:#666b78; font-size:8px; line-height:1.45; }


.world-editor-section select option {
  background: #11131b;
  color: #e1e4eb;
}

.world-editor-section select:focus {
  border-color: rgba(159,119,255,.38);
}

.flight-mode-badge {
  position: absolute;
  left: 50%;
  bottom: 54px;
  z-index: 24;
  transform: translateX(-50%);
  padding: 8px 11px;
  border: 1px solid rgba(119,177,255,.28);
  border-radius: 9px;
  background: rgba(10,16,26,.90);
  color: #a9cfff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  pointer-events: none;
}

.flight-mode-badge[hidden] {
  display: none;
}


#worldEditorLayerSelect {
  margin-bottom: 2px;
}

.world-editor-section[hidden] {
  display: none;
}

#worldEditorSpawnSelection > small {
  display: block;
  margin-top: 9px;
  color: #6f7480;
  font-size: 7px;
  line-height: 1.45;
}


.object-library-intro p {
  margin: 8px 0 0;
  color: #7d8290;
  font-size: 8px;
  line-height: 1.5;
}

.object-library-intro code {
  color: #cab9ff;
  font-size: 8px;
}

.object-library-hint {
  display: block;
  margin-top: 9px;
  color: #6f7482;
  font-size: 7px;
  line-height: 1.5;
}

.admin-delete-button {
  width: 100%;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(215,89,112,.24);
  border-radius: 8px;
  background: rgba(162,48,69,.08);
  color: #e6a5b1;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}


.object-model-upload {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(159,119,255,.18);
  border-radius: 9px;
  background: rgba(119,78,199,.035);
}

.object-model-upload input[type="file"] {
  min-width: 0;
  color: #9da2af;
  font-size: 8px;
}

.object-model-upload input[type="file"]::file-selector-button {
  margin-right: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: #cfd2da;
  font-size: 8px;
  cursor: pointer;
}

.object-model-upload-button {
  padding: 8px 10px;
  border: 1px solid rgba(159,119,255,.26);
  border-radius: 8px;
  background: rgba(130,84,224,.11);
  color: #dacfff;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

.object-model-upload-button:disabled {
  opacity: .5;
  cursor: wait;
}

.object-model-upload small {
  grid-column: 1 / -1;
  color: #6f7482;
  font-size: 7px;
}

@media (max-width: 620px) {
  .object-model-upload {
    grid-template-columns: 1fr;
  }

  .object-model-upload small {
    grid-column: 1;
  }
}


/* === GAME UI / DOCK V2 === */
.play-main { grid-template-columns: minmax(0,1fr) 330px; }
.side-panel.game-dock {
  padding: 10px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr);
  gap: 9px;
  background:
    radial-gradient(circle at 50% 0%, rgba(111,73,177,.10), transparent 38%),
    #080a0f;
}
.dock-player-card {
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:13px;
  background:linear-gradient(135deg,rgba(142,95,235,.09),rgba(255,255,255,.015));
}
.dock-avatar {
  width:42px;height:42px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(145deg,#271d42,#120e1d);color:#d8c7ff;font-weight:950;font-size:15px;
  border:1px solid rgba(180,145,255,.24);box-shadow:inset 0 0 20px rgba(145,97,255,.08);
}
.dock-player-meta strong {display:block;margin-top:2px;font-size:13px;letter-spacing:.02em}
.dock-player-meta .role-badges {margin-top:4px}
.dock-tabs {display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.dock-tab {
  appearance:none;border:1px solid rgba(255,255,255,.065);border-radius:10px;background:rgba(255,255,255,.02);
  color:#747987;padding:7px 2px 6px;display:grid;place-items:center;gap:3px;cursor:pointer;transition:.15s ease;
}
.dock-tab span {font-size:15px;line-height:1}
.dock-tab small {font-size:6px;text-transform:uppercase;letter-spacing:.07em}
.dock-tab:hover {color:#c9b9f5;border-color:rgba(159,119,255,.18);transform:translateY(-1px)}
.dock-tab.active {color:#e8ddff;border-color:rgba(159,119,255,.34);background:linear-gradient(180deg,rgba(130,83,226,.18),rgba(80,54,132,.08));box-shadow:0 7px 20px rgba(0,0,0,.18)}
.dock-content {min-height:0;position:relative}
.dock-panel {display:none;height:100%;overflow-y:auto;padding:5px 3px 12px}
.dock-panel.active {display:block}
.dock-panel-title {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 4px 12px}
.dock-panel-title h2 {margin:3px 0 0;font-size:21px}
.dock-section {border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.018);border-radius:13px;padding:12px;margin-bottom:9px}
.dock-collection-note {margin-top:10px;padding:9px;border-radius:9px;background:rgba(118,79,196,.055);color:#757a88;font-size:8px;line-height:1.45}

.inventory-toolbar {display:grid;grid-template-columns:1fr 100px;gap:6px;margin-bottom:9px}
.inventory-toolbar input,.inventory-toolbar select {min-width:0;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:#0d0f16;color:#cdd0da;padding:8px 9px;font-size:8px;outline:none}
.inventory-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.inventory-grid .inventory-empty {grid-column:1/-1}
.inventory-slot {
  min-width:0;position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  min-height:116px;padding:8px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:linear-gradient(160deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  color:#d9dce5;text-align:left;cursor:pointer;overflow:hidden;
}
.inventory-slot:hover {border-color:rgba(159,119,255,.30);transform:translateY(-1px);background:linear-gradient(160deg,rgba(130,84,224,.09),rgba(255,255,255,.018))}
.inventory-slot-icon {width:42px;height:42px;border-radius:11px;display:grid;place-items:center;font-size:23px;font-weight:900;margin-bottom:4px;border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 0 18px rgba(255,255,255,.035)}
.inventory-slot-icon.crystal {color:#91d7ff;background:radial-gradient(circle at 35% 30%,rgba(104,203,255,.22),rgba(61,76,142,.10))}
.inventory-slot-icon.ore {color:#aa8cff;background:radial-gradient(circle at 35% 30%,rgba(164,119,255,.20),rgba(65,44,92,.12))}
.inventory-slot-icon.capsule {color:#ffb8ff;background:radial-gradient(circle at 35% 30%,rgba(255,123,227,.20),rgba(79,46,95,.12))}
.inventory-slot-icon.heal {color:#95f4bd;background:radial-gradient(circle at 35% 30%,rgba(91,236,151,.20),rgba(38,89,66,.12))}
.inventory-slot-icon.default {color:#d6d8df;background:rgba(255,255,255,.035)}
.inventory-slot-qty {position:absolute;top:7px;right:7px;padding:3px 5px;border-radius:6px;background:rgba(5,6,10,.78);color:#fff;font-size:8px;font-weight:900}
.inventory-slot strong {font-size:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inventory-slot small {font-size:6px;color:#777c89;text-transform:uppercase;letter-spacing:.06em}
.inventory-slot-exists {margin-top:auto;padding-top:5px;font-size:7px;color:#a99acb}
.companion-existence,.cloud-existence {display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px}
.companion-existence span,.cloud-existence span {display:flex;justify-content:space-between;gap:6px;padding:7px 8px;border-radius:8px;background:rgba(139,92,246,.05);color:#747986;font-size:7px;text-transform:uppercase;letter-spacing:.05em}
.companion-existence strong,.cloud-existence strong {color:#d8ccfb}

.recipe-item {border:1px solid rgba(255,255,255,.07)!important;background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(110,70,180,.025))!important;border-radius:12px!important}
.recipe-head strong {font-size:10px}
.craft-button {border-radius:9px!important;background:linear-gradient(180deg,rgba(139,92,246,.22),rgba(92,58,151,.13))!important}
.chat-messages {max-height:300px}

@media (max-width: 1100px) {
  .play-main {grid-template-columns:minmax(0,1fr) 300px}
  .dock-tab small {display:none}
}


/* ============================================================
   SHADOWSPIRE IMPACT OVERHAUL V1
   Bigger typography, stronger hierarchy, more game feel.
   ============================================================ */

:root {
  --impact-purple: #9f79ff;
  --impact-purple-2: #6d4de0;
  --impact-cyan: #69d7ff;
  --impact-mint: #7cf3bd;
  --impact-panel: rgba(12, 13, 22, .96);
}

/* Overall readability */
body {
  letter-spacing: .005em;
}

.eyebrow {
  font-size: 9px !important;
  letter-spacing: .18em !important;
  font-weight: 900 !important;
}

.mini-state {
  font-size: 10px !important;
  font-weight: 850;
}

.play-main {
  grid-template-columns: minmax(0, 1fr) 390px !important;
}

.side-panel.game-dock {
  padding: 14px !important;
  gap: 12px !important;
  background:
    radial-gradient(circle at 50% -5%, rgba(126,77,220,.18), transparent 34%),
    linear-gradient(180deg, #090a12 0%, #07080d 100%) !important;
  border-left: 1px solid rgba(178,145,255,.10);
  box-shadow: -18px 0 45px rgba(0,0,0,.24);
}

/* Account card */
.dock-player-card {
  grid-template-columns: 50px 1fr auto !important;
  padding: 13px !important;
  border-radius: 16px !important;
  border-color: rgba(173,132,255,.14) !important;
  background:
    linear-gradient(135deg, rgba(136,86,225,.14), rgba(255,255,255,.018)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 10px 30px rgba(0,0,0,.18);
}

.dock-avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
  font-size: 18px !important;
  box-shadow:
    inset 0 0 28px rgba(145,97,255,.12),
    0 0 22px rgba(128,81,227,.08) !important;
}

.dock-player-meta strong {
  font-size: 15px !important;
}

/* Main game menu: more tactile */
.dock-tabs {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 7px !important;
}

.dock-tab {
  min-height: 54px;
  border-radius: 12px !important;
  padding: 8px 5px !important;
  border-color: rgba(255,255,255,.075) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.027), rgba(255,255,255,.012)) !important;
}

.dock-tab span {
  font-size: 19px !important;
}

.dock-tab small {
  display: block !important;
  font-size: 8px !important;
  font-weight: 850;
  letter-spacing: .08em !important;
}

.dock-tab:hover {
  color: #eee7ff !important;
  border-color: rgba(159,119,255,.30) !important;
  box-shadow: 0 7px 22px rgba(80,49,148,.12);
}

.dock-tab.active {
  border-color: rgba(170,131,255,.48) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(170,125,255,.25), transparent 70%),
    linear-gradient(180deg, rgba(129,82,225,.20), rgba(61,39,107,.10)) !important;
  box-shadow:
    inset 0 0 18px rgba(160,111,255,.08),
    0 10px 24px rgba(44,24,89,.22) !important;
}

.dock-panel {
  padding: 7px 4px 16px !important;
}

.dock-panel-title {
  padding: 8px 4px 14px !important;
}

.dock-panel-title h2 {
  font-size: 27px !important;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.dock-section {
  border-radius: 15px !important;
  padding: 14px !important;
}

/* Active companion = hero card */
.companion-panel {
  margin-top: 4px !important;
}

.companion-card {
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(163,124,255,.22) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(141,88,238,.14), transparent 34%),
    linear-gradient(160deg, rgba(255,255,255,.032), rgba(79,47,134,.035)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 14px 34px rgba(0,0,0,.20);
}

.companion-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 74px;
  padding: 9px 10px;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 50%, color-mix(in srgb, var(--companion-color, #9d78ff) 24%, transparent), transparent 34%),
    rgba(255,255,255,.018);
  border: 1px solid rgba(255,255,255,.05);
}

.companion-hero::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158,113,255,.10), transparent 66%);
  pointer-events: none;
}

.companion-portrait {
  --companion-color: #9d78ff;
  --companion-secondary: #553a9a;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  position: relative;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--companion-color) 88%, white 12%), var(--companion-secondary));
  border: 1px solid color-mix(in srgb, var(--companion-color) 48%, transparent);
  box-shadow:
    inset 0 0 16px rgba(255,255,255,.10),
    0 0 24px color-mix(in srgb, var(--companion-color) 18%, transparent);
}

.companion-portrait-core {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 43% 43%;
  background: rgba(255,255,255,.82);
  box-shadow:
    0 8px 0 -5px rgba(255,255,255,.38),
    0 0 16px rgba(255,255,255,.18);
}

.companion-rarity {
  padding: 7px 10px;
  border-radius: 999px;
  color: #e9e0ff;
  background: rgba(129,83,223,.11);
  border: 1px solid rgba(174,137,255,.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.companion-title strong {
  font-size: 16px !important;
  letter-spacing: -.01em;
}

.companion-title small {
  margin-top: 4px !important;
  font-size: 10px !important;
}

.companion-hp {
  font-size: 11px !important;
  font-weight: 900 !important;
}

.companion-hpbar {
  position: relative;
  height: 18px !important;
  border-radius: 9px !important;
  background: #181b22 !important;
  border: 1px solid rgba(255,255,255,.055);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.22);
}

.companion-hpbar span {
  background:
    linear-gradient(90deg, #55d9a0, #8df1bd) !important;
  box-shadow: 0 0 18px rgba(98,236,178,.17);
}

.companion-hpbar-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #07120d;
  font-size: 9px;
  font-weight: 950;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
  pointer-events: none;
}

.companion-xp-head {
  font-size: 9px !important;
  font-weight: 850;
}

.companion-xpbar {
  height: 8px !important;
  border-radius: 999px;
  overflow: hidden;
  background: #1d2028 !important;
}

.companion-xpbar span {
  background: linear-gradient(90deg, #7654ff, #bd8cff) !important;
  box-shadow: 0 0 15px rgba(155,105,255,.20);
}

.companion-stats {
  gap: 7px !important;
}

.companion-stats span {
  padding: 7px 9px !important;
  border-radius: 8px !important;
  font-size: 9px !important;
  background: rgba(255,255,255,.032) !important;
  border: 1px solid rgba(255,255,255,.035);
}

.companion-existence,
.cloud-existence {
  gap: 7px !important;
}

.companion-existence span,
.cloud-existence span {
  padding: 9px 10px !important;
  border-radius: 9px !important;
  font-size: 9px !important;
  background:
    linear-gradient(145deg, rgba(139,92,246,.075), rgba(255,255,255,.014)) !important;
  border: 1px solid rgba(159,119,255,.08);
}

.companion-existence strong,
.cloud-existence strong {
  font-size: 11px;
}

.companion-profile-button,
.cloud-open-button,
.craft-button,
.admin-menu-open-button {
  min-height: 38px;
  font-size: 10px !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
  letter-spacing: .015em;
}

.companion-profile-button {
  border: 1px solid rgba(164,126,255,.32) !important;
  background:
    linear-gradient(180deg, rgba(137,88,230,.20), rgba(83,53,140,.11)) !important;
  color: #e6dcff !important;
}

.companion-recovery {
  padding: 11px 12px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(101,224,171,.12);
  background: rgba(66,160,119,.045);
}

.companion-recovery span {
  font-size: 8px !important;
  letter-spacing: .10em;
}

.companion-recovery strong {
  font-size: 12px !important;
  color: #86efbc !important;
}

/* Inventory: more collectible, less admin table */
.inventory-toolbar {
  grid-template-columns: 1fr 125px !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

.inventory-toolbar input,
.inventory-toolbar select {
  padding: 10px 11px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  background: #0c0e15 !important;
}

.inventory-grid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 9px !important;
}

.inventory-slot {
  min-height: 142px !important;
  padding: 10px !important;
  border-radius: 13px !important;
  border-color: rgba(255,255,255,.075) !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(150,111,255,.055), transparent 42%),
    linear-gradient(160deg, rgba(255,255,255,.036), rgba(255,255,255,.012)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.inventory-slot:hover {
  transform: translateY(-3px) scale(1.01) !important;
  border-color: rgba(173,132,255,.40) !important;
  box-shadow:
    0 12px 24px rgba(0,0,0,.19),
    0 0 24px rgba(121,78,211,.08);
}

.inventory-slot-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 14px !important;
  font-size: 29px !important;
  margin-bottom: 7px !important;
}

.inventory-slot-qty {
  top: 8px !important;
  right: 8px !important;
  padding: 4px 7px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
}

.inventory-slot strong {
  font-size: 11px !important;
  line-height: 1.2;
}

.inventory-slot small {
  font-size: 8px !important;
  margin-top: 2px;
}

.inventory-slot-exists {
  width: 100%;
  margin-top: auto !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255,255,255,.045);
  font-size: 9px !important;
  font-weight: 800;
  color: #bba8e7 !important;
}

/* Crafting polish */
.recipe-item {
  padding: 12px !important;
  margin-bottom: 9px;
  border-radius: 14px !important;
}

.recipe-head strong {
  font-size: 12px !important;
}

.recipe-head small {
  font-size: 9px !important;
}

.recipe-ingredients {
  gap: 6px !important;
}

.recipe-ingredients span {
  padding: 6px 8px !important;
  font-size: 9px !important;
}

/* Social/system readability */
.online-player {
  grid-template-columns: 40px 1fr auto !important;
  padding: 11px !important;
  border-radius: 11px !important;
}

.online-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

.online-meta strong {
  font-size: 12px !important;
}

.online-meta small,
.online-state {
  font-size: 9px !important;
}

.world-info span,
.world-info strong {
  font-size: 11px !important;
}

.empty-state {
  font-size: 12px !important;
}

.chat-messages,
.event-log {
  font-size: 10px;
}

/* Interaction prompts should feel punchier */
.combat-prompt,
.capture-prompt,
.interaction-prompt {
  border-radius: 14px !important;
  padding: 12px 15px !important;
  box-shadow:
    0 14px 32px rgba(0,0,0,.28),
    0 0 28px rgba(120,76,218,.08);
}

.combat-prompt strong,
.capture-prompt strong,
.interaction-prompt strong {
  font-size: 12px !important;
}

.combat-prompt span,
.capture-prompt span,
.interaction-prompt span {
  font-size: 9px !important;
}

/* Top-left world title readability */
.world-overlay h1,
.world-overlay h2 {
  text-shadow:
    0 2px 0 rgba(0,0,0,.65),
    0 6px 16px rgba(0,0,0,.35);
}

/* Slightly richer world without changing the art direction */
.world-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, transparent 45%, rgba(4,5,11,.12) 85%),
    linear-gradient(180deg, rgba(98,67,180,.025), transparent 30%);
  mix-blend-mode: screen;
  opacity: .65;
}

/* Scrollbars */
.dock-panel::-webkit-scrollbar {
  width: 7px;
}
.dock-panel::-webkit-scrollbar-thumb {
  background: rgba(154,113,244,.18);
  border-radius: 999px;
}
.dock-panel::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1320px) {
  .play-main {
    grid-template-columns: minmax(0,1fr) 350px !important;
  }
}

@media (max-width: 1120px) {
  .play-main {
    grid-template-columns: minmax(0,1fr) 320px !important;
  }

  .inventory-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  .dock-tab small {
    display: block !important;
  }
}


/* Rare FX + capture impact */
.capture-result-card {
  min-width: 320px;
  border-radius: 20px !important;
  border: 1px solid rgba(172,133,255,.28) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(141,91,236,.24), transparent 45%),
    linear-gradient(180deg, rgba(16,17,28,.98), rgba(8,9,15,.98)) !important;
  box-shadow:
    0 22px 70px rgba(0,0,0,.42),
    0 0 42px rgba(121,78,211,.13) !important;
}

.capture-result-title {
  font-size: 34px !important;
  letter-spacing: -.03em !important;
}

.capture-result-creature {
  font-size: 18px !important;
  font-weight: 900 !important;
}

.capture-result-meta {
  font-size: 11px !important;
}

.capture-result-variant {
  --capture-variant-color: #9D78FF;
  margin-top: 9px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  background:
    color-mix(
      in srgb,
      var(--capture-variant-color) 22%,
      rgba(12,13,20,.88)
    );
  border:
    1px solid
    color-mix(
      in srgb,
      var(--capture-variant-color) 50%,
      transparent
    );
  box-shadow:
    0 0 24px
    color-mix(
      in srgb,
      var(--capture-variant-color) 18%,
      transparent
    );
}

.capture-result-existence {
  margin-top: 7px;
  color: #b9a7e5;
  font-size: 10px;
  font-weight: 850;
}

.capture-result-destination {
  margin-top: 10px !important;
  font-size: 10px !important;
}

.admin-new-variant {
  border-color: rgba(159,119,255,.24) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(138,92,255,.14), transparent 34%),
    rgba(255,255,255,.018) !important;
}


/* Collection + loot pass */
.item-detail-overlay,
.bestiary-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(90,56,160,.14), transparent 42%),
    rgba(2,3,8,.72);
  backdrop-filter: blur(8px);
}

.item-detail-overlay[hidden],
.bestiary-overlay[hidden] {
  display: none;
}

.item-detail-card {
  position: relative;
  width: min(430px, 94vw);
  padding: 30px;
  border: 1px solid rgba(166,127,255,.26);
  border-radius: 24px;
  color: #eef0f7;
  background:
    radial-gradient(circle at 50% 0%, rgba(137,85,230,.22), transparent 40%),
    linear-gradient(160deg, rgba(16,17,29,.99), rgba(7,8,14,.99));
  box-shadow:
    0 32px 90px rgba(0,0,0,.54),
    0 0 50px rgba(108,67,196,.10);
}

.item-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.item-detail-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 25px;
  font-size: 49px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 0 28px rgba(255,255,255,.04),
    0 14px 30px rgba(0,0,0,.26);
}

.item-detail-icon.crystal,
.loot-toast-icon.crystal {
  color: #8fdcff;
  background: radial-gradient(circle at 35% 25%, rgba(94,203,255,.27), rgba(46,58,118,.16));
}
.item-detail-icon.ore,
.loot-toast-icon.ore {
  color: #b294ff;
  background: radial-gradient(circle at 35% 25%, rgba(164,119,255,.25), rgba(62,39,90,.17));
}
.item-detail-icon.capsule,
.loot-toast-icon.capsule {
  color: #ffb7fb;
  background: radial-gradient(circle at 35% 25%, rgba(255,113,222,.24), rgba(81,43,92,.17));
}
.item-detail-icon.heal,
.loot-toast-icon.heal {
  color: #91f3b8;
  background: radial-gradient(circle at 35% 25%, rgba(88,235,149,.24), rgba(37,83,61,.17));
}
.item-detail-icon.default,
.loot-toast-icon.default {
  color: #e2e4eb;
  background: rgba(255,255,255,.04);
}

.item-detail-card h2 {
  margin: 5px 0 8px;
  font-size: 30px;
  letter-spacing: -.03em;
}

.item-detail-card p {
  margin: 0 0 20px;
  color: #a8adbb;
  font-size: 13px;
  line-height: 1.6;
}

.item-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.item-detail-stats div {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.022);
}

.item-detail-stats span {
  display: block;
  margin-bottom: 4px;
  color: #777e8d;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.item-detail-stats strong {
  display: block;
  color: #eee9ff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.bestiary-window {
  width: min(1000px, 94vw);
  max-height: min(780px, 90vh);
  overflow: hidden;
  border: 1px solid rgba(163,123,255,.22);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 0%, rgba(112,69,200,.18), transparent 38%),
    #090a11;
  box-shadow: 0 34px 100px rgba(0,0,0,.58);
}

.bestiary-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  padding: 24px 26px 19px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.bestiary-header h2 {
  margin: 4px 0 4px;
  font-size: 30px;
}

.bestiary-header p {
  margin: 0;
  color: #858b98;
  font-size: 11px;
}

.bestiary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  max-height: 650px;
  overflow: auto;
  padding: 18px;
}

.bestiary-card {
  padding: 15px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 17px;
  background:
    radial-gradient(circle at 15% 0%, rgba(137,88,229,.08), transparent 35%),
    rgba(255,255,255,.018);
}

.bestiary-card-head {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 12px;
}

.bestiary-sigil {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #cab7ff;
  font-size: 26px;
  background: rgba(127,80,219,.10);
  border: 1px solid rgba(159,119,255,.16);
}

.bestiary-card-head h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.bestiary-total {
  text-align: right;
}

.bestiary-total span {
  display: block;
  color: #777d8a;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.bestiary-total strong {
  display: block;
  margin-top: 3px;
  color: #e9e1ff;
  font-size: 20px;
}

.bestiary-variants {
  display: grid;
  gap: 6px;
}

.bestiary-variant {
  --variant-color: #9D78FF;
  display: grid;
  grid-template-columns: 13px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 10px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--variant-color) 10%, transparent),
      rgba(255,255,255,.014));
  border: 1px solid rgba(255,255,255,.035);
}

.bestiary-variant-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--variant-color);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--variant-color) 45%, transparent);
}

.bestiary-variant strong {
  display: block;
  color: #dde0e8;
  font-size: 10px;
}

.bestiary-variant small {
  display: block;
  margin-top: 1px;
  color: #737986;
  font-size: 8px;
}

.bestiary-variant b {
  color: #efeaff;
  font-size: 11px;
}

.bestiary-variant.undiscovered {
  opacity: .38;
  filter: saturate(.35);
}

.bestiary-open-button {
  width: 100%;
  min-height: 41px;
  margin-top: 9px;
  border: 1px solid rgba(161,121,255,.26);
  border-radius: 11px;
  color: #e6ddff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(130,82,224,.17), rgba(78,48,139,.09));
}

.bestiary-open-button:hover {
  border-color: rgba(176,140,255,.50);
  box-shadow: 0 9px 24px rgba(74,44,137,.18);
}

.loot-toast-layer {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 180;
  width: min(420px, calc(100vw - 34px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.loot-toast {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(171,133,255,.23);
  color: #eef0f7;
  background:
    radial-gradient(circle at 10% 50%, rgba(137,88,230,.14), transparent 34%),
    rgba(9,10,17,.96);
  box-shadow:
    0 18px 48px rgba(0,0,0,.38),
    0 0 26px rgba(108,67,194,.08);
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transition:
    opacity .22s ease,
    transform .22s ease;
}

.loot-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.loot-toast-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 28px;
  border: 1px solid rgba(255,255,255,.08);
}

.loot-toast span {
  display: block;
  color: #9984c9;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .10em;
}

.loot-toast strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.loot-toast small {
  display: block;
  margin-top: 3px;
  color: #838996;
  font-size: 9px;
}

@media (max-width: 760px) {
  .bestiary-grid {
    grid-template-columns: 1fr;
  }

  .item-detail-stats {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   CREATURE PROFILE V2 - stronger hierarchy + real collection feel
   ============================================================ */

.creature-profile-overlay {
  background:
    radial-gradient(circle at 50% 35%, rgba(86,52,156,.18), transparent 42%),
    rgba(3,4,9,.78) !important;
  backdrop-filter: blur(9px);
}

.creature-profile-window {
  width: min(1040px, 92vw) !important;
  max-height: min(820px, 88vh) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  border: 1px solid rgba(165,126,255,.24) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(126,78,222,.12), transparent 32%),
    linear-gradient(155deg, #0d0f19 0%, #090a11 62%, #08090f 100%) !important;
  box-shadow:
    0 38px 100px rgba(0,0,0,.58),
    0 0 54px rgba(107,66,195,.08) !important;
}

.creature-profile-head {
  padding: 22px 26px !important;
  border-bottom: 1px solid rgba(255,255,255,.055) !important;
  background:
    linear-gradient(90deg, rgba(136,83,235,.055), transparent 58%);
}

.creature-profile-head h2 {
  margin: 5px 0 2px !important;
  font-size: 31px !important;
  letter-spacing: -.035em;
}

.creature-profile-head p {
  font-size: 11px !important;
  color: #7f8593 !important;
}

.creature-profile-body {
  display: grid !important;
  grid-template-columns: 280px minmax(0,1fr) !important;
  min-height: 600px !important;
}

.creature-profile-visual {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 13px !important;
  padding: 28px 22px !important;
  border-right: 1px solid rgba(255,255,255,.055) !important;
  background:
    radial-gradient(circle at 50% 26%, rgba(127,82,226,.13), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.004));
}

.creature-profile-stage {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid rgba(255,255,255,.05);
  background:
    radial-gradient(circle at 50% 58%, rgba(132,84,230,.10), transparent 31%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006));
}

.creature-profile-stage-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(143,99,244,.16), rgba(93,56,165,.04) 45%, transparent 72%);
  filter: blur(5px);
  animation: creatureProfileGlow 3.2s ease-in-out infinite;
}

.creature-profile-ground-ring {
  position: absolute;
  bottom: 35px;
  width: 155px;
  height: 35px;
  border: 2px solid rgba(168,129,255,.24);
  border-radius: 50%;
  box-shadow:
    0 0 25px rgba(134,89,235,.12),
    inset 0 0 20px rgba(135,89,235,.07);
  transform: perspective(180px) rotateX(62deg);
}

.creature-profile-orb {
  --creature-primary: #f4f4f2;
  --creature-secondary: #cfcfca;
  position: relative !important;
  z-index: 2;
  width: 122px !important;
  height: 100px !important;
  margin: 0 !important;
  border-radius: 52% 52% 45% 45% !important;
  transform: translateY(-3px);
  border: 1px solid color-mix(in srgb, var(--creature-primary) 40%, transparent) !important;
  box-shadow:
    inset 0 9px 24px rgba(255,255,255,.13),
    inset 0 -16px 28px rgba(0,0,0,.10),
    0 20px 34px rgba(0,0,0,.28),
    0 0 34px color-mix(in srgb, var(--creature-primary) 18%, transparent) !important;
  animation: creatureProfileFloat 2.8s ease-in-out infinite;
}

.creature-profile-orb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -39px;
  width: 76px;
  height: 68px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255,255,255,.22), transparent 23%),
    var(--creature-primary);
  box-shadow:
    inset 0 -10px 20px rgba(0,0,0,.08);
}

.creature-profile-orb-eye {
  position: absolute;
  z-index: 4;
  top: -13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f9f6ff;
  box-shadow: 0 0 8px rgba(244,238,255,.55);
}

.creature-profile-orb-eye.eye-left { left: 47px; }
.creature-profile-orb-eye.eye-right { right: 47px; }

.creature-profile-orb-ear {
  position: absolute;
  z-index: 1;
  top: -70px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 48px solid var(--creature-secondary);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.16));
}

.creature-profile-orb-ear.ear-left {
  left: 24px;
  transform: rotate(-13deg);
}

.creature-profile-orb-ear.ear-right {
  right: 24px;
  transform: rotate(13deg);
}

.creature-profile-hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.creature-profile-hero-meta > div,
.creature-profile-existence > div {
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.018);
}

.creature-profile-hero-meta span,
.creature-profile-existence span {
  display: block;
  color: #747a88;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
}

.creature-profile-hero-meta strong {
  display: block;
  margin-top: 4px;
  color: #f0ebff;
  font-size: 14px !important;
}

.creature-profile-variant-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(164,125,255,.13);
  background:
    linear-gradient(145deg, rgba(137,88,230,.075), rgba(255,255,255,.012));
}

.creature-profile-variant-swatch {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.13);
}

.creature-profile-variant-card small {
  display: block;
  color: #747a88;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .10em;
}

.creature-profile-variant-card strong {
  display: block;
  margin-top: 2px;
  color: #f0ebff;
  font-size: 13px;
}

.creature-profile-variant-card span:last-child {
  display: block;
  margin-top: 2px;
  color: #a992df;
  font-size: 9px;
  font-weight: 800;
}

.creature-profile-existence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.creature-profile-existence strong {
  display: block;
  margin-top: 4px;
  color: #d9ccff;
  font-size: 18px !important;
}

.creature-profile-content {
  padding: 24px 26px 34px !important;
  overflow-y: auto;
}

.creature-profile-section {
  margin-bottom: 18px !important;
}

.creature-name-edit {
  gap: 8px !important;
}

.creature-name-edit input {
  min-height: 42px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  background: #0b0d14 !important;
  border: 1px solid rgba(255,255,255,.075) !important;
}

.creature-name-edit button {
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.creature-profile-grid {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 8px !important;
  margin-bottom: 19px;
}

.creature-profile-grid > div {
  padding: 11px 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.045);
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.012)) !important;
}

.creature-profile-grid span {
  font-size: 8px !important;
  color: #777d8b !important;
  font-weight: 800;
}

.creature-profile-grid strong {
  font-size: 11px !important;
  color: #e7e3f2 !important;
}

.creature-personality-bars {
  gap: 10px !important;
}

.creature-personality-bars > div > div:first-child {
  margin-bottom: 5px;
}

.creature-personality-bars span,
.creature-personality-bars strong {
  font-size: 9px !important;
}

.creature-personality-bar {
  height: 7px !important;
  border-radius: 999px;
  overflow: hidden;
  background: #171922 !important;
}

.creature-personality-bar span {
  background:
    linear-gradient(90deg, #7755ef, #b58bff) !important;
  box-shadow: 0 0 14px rgba(155,108,255,.18);
}

.creature-profile-attacks {
  gap: 9px !important;
}

.creature-attack-card {
  padding: 13px !important;
  border-radius: 12px !important;
  border-color: rgba(255,255,255,.06) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), rgba(97,59,161,.025)) !important;
}

.creature-attack-card.active {
  border-color: rgba(159,119,255,.30) !important;
  box-shadow: inset 3px 0 0 rgba(154,111,248,.68);
}

.creature-attack-head strong {
  font-size: 12px !important;
}

.creature-attack-head span {
  font-size: 8px !important;
}

.creature-attack-card p {
  font-size: 10px !important;
  line-height: 1.5 !important;
}

.creature-attack-meta span {
  font-size: 8px !important;
}

@keyframes creatureProfileFloat {
  0%,100% { transform: translateY(-3px); }
  50% { transform: translateY(-11px); }
}

@keyframes creatureProfileGlow {
  0%,100% { opacity: .72; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (max-width: 850px) {
  .creature-profile-body {
    grid-template-columns: 1fr !important;
  }

  .creature-profile-visual {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.055);
  }

  .creature-profile-stage {
    height: 220px;
  }
}


/* ============================================================
   VISUAL OVERHAUL V1
   Scroll fix + stronger color language + panel differentiation
   ============================================================ */

.creature-profile-window {
  display: flex !important;
  flex-direction: column !important;
}

.creature-profile-head {
  flex: 0 0 auto !important;
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.creature-profile-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.creature-profile-content {
  min-height: 0 !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(158,117,255,.35) transparent;
}

.creature-profile-content::-webkit-scrollbar {
  width: 8px;
}

.creature-profile-content::-webkit-scrollbar-thumb {
  background: rgba(158,117,255,.28);
  border-radius: 999px;
}

/* More distinct top-level panel identities */
.dock-panel[data-game-panel-content="companion"] {
  --panel-accent: #a977ff;
}

.dock-panel[data-game-panel-content="inventory"] {
  --panel-accent: #66cfff;
}

.dock-panel[data-game-panel-content="crafting"] {
  --panel-accent: #ffb45f;
}

.dock-panel[data-game-panel-content="cloud"] {
  --panel-accent: #c184ff;
}

.dock-panel[data-game-panel-content="social"] {
  --panel-accent: #69e5c3;
}

.dock-panel[data-game-panel-content="system"] {
  --panel-accent: #8e98a8;
}

.dock-panel-title {
  position: relative;
  padding-left: 13px !important;
}

.dock-panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: var(--panel-accent, #9f79ff);
  box-shadow: 0 0 18px color-mix(in srgb, var(--panel-accent, #9f79ff) 35%, transparent);
}

.dock-panel-title .eyebrow {
  color: color-mix(in srgb, var(--panel-accent, #9f79ff) 78%, white 22%) !important;
}

.dock-tab[data-game-panel="inventory"].active {
  border-color: rgba(102,207,255,.42) !important;
  box-shadow: 0 10px 24px rgba(55,144,185,.18) !important;
}

.dock-tab[data-game-panel="crafting"].active {
  border-color: rgba(255,180,95,.42) !important;
  box-shadow: 0 10px 24px rgba(168,97,31,.18) !important;
}

.dock-tab[data-game-panel="cloud"].active {
  border-color: rgba(193,132,255,.42) !important;
  box-shadow: 0 10px 24px rgba(111,64,160,.18) !important;
}

.dock-tab[data-game-panel="social"].active {
  border-color: rgba(105,229,195,.42) !important;
  box-shadow: 0 10px 24px rgba(42,139,113,.18) !important;
}

.dock-tab[data-game-panel="system"].active {
  border-color: rgba(142,152,168,.36) !important;
  box-shadow: 0 10px 24px rgba(65,71,83,.14) !important;
}

/* More readable and lively companion card */
.companion-card {
  position: relative;
  overflow: hidden;
}

.companion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(151,101,255,.055), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(109,213,255,.055), transparent 30%);
}

.companion-hero {
  min-height: 84px !important;
}

.companion-rarity {
  color: #f7f1ff !important;
}

.companion-stats span:nth-child(1) {
  border-color: rgba(255,115,150,.13) !important;
  background: rgba(255,88,132,.055) !important;
}

.companion-stats span:nth-child(2) {
  border-color: rgba(91,190,255,.13) !important;
  background: rgba(73,168,235,.055) !important;
}

.companion-stats span:nth-child(3) {
  border-color: rgba(255,183,91,.13) !important;
  background: rgba(255,170,61,.055) !important;
}

/* Differentiate utility cards */
.recipe-item {
  border-color: rgba(255,178,83,.13) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,177,76,.075), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.025), rgba(96,67,35,.025)) !important;
}

.craft-button {
  border: 1px solid rgba(255,184,93,.20) !important;
  color: #ffe8ca !important;
  background:
    linear-gradient(180deg, rgba(255,166,65,.18), rgba(128,78,26,.10)) !important;
}

.shadow-cloud-summary,
.dock-collection-note {
  border-color: rgba(185,124,255,.10);
}

.online-player {
  border-color: rgba(105,229,195,.08) !important;
}

.chat-compose button {
  border-color: rgba(105,229,195,.18) !important;
  background: rgba(61,166,139,.10) !important;
}

.sysadmin-command-card {
  border-color: rgba(141,151,167,.11) !important;
  background:
    linear-gradient(145deg, rgba(141,151,167,.035), rgba(255,255,255,.01)) !important;
}

/* More color in profile cards */
.creature-profile-grid > div:nth-child(1),
.creature-profile-grid > div:nth-child(2) {
  border-color: rgba(255,109,151,.08) !important;
  background: rgba(255,86,131,.025) !important;
}

.creature-profile-grid > div:nth-child(3),
.creature-profile-grid > div:nth-child(4) {
  border-color: rgba(102,200,255,.08) !important;
  background: rgba(78,170,230,.025) !important;
}

.creature-profile-grid > div:nth-child(5),
.creature-profile-grid > div:nth-child(6) {
  border-color: rgba(255,185,95,.08) !important;
  background: rgba(255,170,70,.025) !important;
}

.creature-profile-section > .eyebrow {
  color: #b996ff !important;
}

.creature-profile-section:nth-of-type(3) > .eyebrow {
  color: #6fd8ff !important;
}

.creature-profile-section:nth-of-type(4) > .eyebrow {
  color: #ffb968 !important;
}

.creature-profile-section:nth-of-type(5) > .eyebrow {
  color: #72e0bd !important;
}

/* Slightly brighter main world, still dark */
.world-panel {
  background:
    radial-gradient(circle at 50% 42%, rgba(77,61,132,.05), transparent 55%),
    #090b12 !important;
}


/* Species-specific profile silhouettes */
.creature-profile-orb.species-shadowling {
  width: 104px !important;
  height: 104px !important;
  border-radius: 50% !important;
  transform: translateY(-3px);
}

.creature-profile-orb.species-shadowling::before,
.creature-profile-orb.species-shadowling .creature-profile-orb-ear {
  display: none !important;
}

.creature-profile-orb.species-shadowling .creature-profile-orb-eye {
  display: block !important;
  top: 40px;
  width: 9px;
  height: 9px;
  background: #fcfbff;
  box-shadow: 0 0 10px rgba(245,241,255,.72);
}

.creature-profile-orb.species-shadowling .creature-profile-orb-eye.eye-left { left: 36px; }
.creature-profile-orb.species-shadowling .creature-profile-orb-eye.eye-right { right: 36px; }

.creature-profile-orb.species-duskling {
  width: 122px !important;
  height: 100px !important;
  border-radius: 52% 52% 45% 45% !important;
}

.creature-profile-orb.species-duskling::before,
.creature-profile-orb.species-duskling .creature-profile-orb-eye,
.creature-profile-orb.species-duskling .creature-profile-orb-ear {
  display: block !important;
}


.companion-portrait.species-shadowling .companion-portrait-core {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.companion-portrait.species-duskling .companion-portrait-core {
  width: 30px;
  height: 24px;
  border-radius: 50% 50% 44% 44%;
  box-shadow:
    0 -11px 0 -3px rgba(255,255,255,.82),
    0 0 16px rgba(255,255,255,.18);
}

@media (max-height: 760px) {
  .creature-profile-window {
    max-height: 94vh !important;
  }

  .creature-profile-body {
    min-height: 0 !important;
  }

  .creature-profile-content {
    padding-bottom: 50px !important;
  }
}


/* ============================================================
   CRAFTING V2 + MAXL V2
   ============================================================ */

.crafting-active-job {
  margin-bottom: 13px;
  padding: 14px;
  border-radius: 15px;
  border: 1px solid rgba(255,181,91,.24);
  background:
    radial-gradient(circle at 8% 0%, rgba(255,179,78,.13), transparent 34%),
    linear-gradient(145deg, rgba(33,24,15,.94), rgba(12,12,17,.95));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 12px 28px rgba(0,0,0,.18);
}

.crafting-active-job[hidden] {
  display:none;
}

.crafting-job-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.crafting-job-head span {
  display:block;
  color:#c28d50;
  font-size:8px;
  font-weight:950;
  letter-spacing:.10em;
}

.crafting-job-head strong {
  display:block;
  margin-top:4px;
  color:#fff0dc;
  font-size:13px;
}

.crafting-job-head b {
  color:#ffc06c;
  font-size:17px;
}

.crafting-job-bar {
  height:10px;
  margin:11px 0 8px;
  overflow:hidden;
  border-radius:999px;
  background:#1a1714;
  border:1px solid rgba(255,255,255,.045);
}

.crafting-job-bar span {
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#dd822d,#ffbf68);
  box-shadow:0 0 16px rgba(255,174,76,.25);
  transition:width .25s linear;
}

.crafting-active-job > small {
  color:#8e8478;
  font-size:8px;
}

.recipe-item {
  position:relative;
  overflow:hidden;
}

.recipe-item::before {
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:2px;
  border-radius:99px;
  background:#e99d48;
  opacity:.62;
}

.recipe-head small {
  color:#ad9274 !important;
}

.recipe-ingredients span.enough {
  color:#80e8b4 !important;
  border-color:rgba(104,231,174,.14) !important;
  background:rgba(65,175,126,.055) !important;
}

.recipe-ingredients span.missing {
  color:#ef91a5 !important;
  border-color:rgba(239,102,132,.12) !important;
  background:rgba(197,65,95,.045) !important;
}

.crafting-admin-create {
  border-color:rgba(255,180,95,.20)!important;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,178,83,.10),transparent 35%),
    rgba(255,255,255,.016)!important;
}

.crafting-admin-card {
  border-color:rgba(255,184,93,.10)!important;
}

.crafting-admin-ingredients {
  display:grid;
  gap:7px;
  margin:11px 0 8px;
}

.crafting-admin-ingredient {
  display:grid;
  grid-template-columns:minmax(0,1fr) 95px 34px;
  gap:7px;
}

.crafting-admin-ingredient select,
.crafting-admin-ingredient input {
  min-width:0;
  min-height:37px;
  padding:7px 9px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.08);
  color:#d8dbe5;
  background:#0c0e15;
  font-size:9px;
}

.crafting-admin-ingredient button,
.admin-secondary-button {
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  color:#cfd2dc;
  background:rgba(255,255,255,.03);
  cursor:pointer;
}

.admin-secondary-button {
  min-height:36px;
  padding:0 12px;
  margin-bottom:8px;
  font-size:9px;
  font-weight:850;
}

.admin-field select {
  min-height:39px;
  padding:7px 9px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.08);
  color:#d8dbe5;
  background:#0c0e15;
  font-size:9px;
}

/* More game-like player identity */
.player-identity {
  border-color:rgba(158,119,255,.17)!important;
  background:
    radial-gradient(circle at 10% 50%,rgba(133,85,231,.10),transparent 40%),
    rgba(8,10,16,.88)!important;
}

.player-avatar,
.dock-avatar {
  background:
    radial-gradient(circle at 35% 25%,rgba(171,139,255,.22),rgba(92,55,160,.10))!important;
  border-color:rgba(172,137,255,.22)!important;
}


/* ============================================================
   RANK SYSTEM V1
   Central rank color language across world + sidebar + chat
   ============================================================ */

.role-badge,
.online-role,
.chat-role,
#playerRole {
  --role-color: #b8bfcc;
  --role-glow: rgba(184,191,204,.28);
}

.role-badge {
  color: var(--role-color) !important;
  border-color:
    color-mix(
      in srgb,
      var(--role-color) 40%,
      transparent
    ) !important;
  background:
    color-mix(
      in srgb,
      var(--role-color) 9%,
      transparent
    ) !important;
  box-shadow:
    inset 0 0 0 1px
      color-mix(
        in srgb,
        var(--role-color) 5%,
        transparent
      ),
    0 0 13px
      color-mix(
        in srgb,
        var(--role-color) 10%,
        transparent
      );
}

.role-badge.role-sysadmin {
  font-weight: 950;
}

#playerRole {
  color: var(--role-color) !important;
  text-shadow:
    0 0 12px var(--role-glow);
  font-weight: 900;
}

.online-role {
  color: var(--role-color) !important;
  text-shadow:
    0 0 9px var(--role-glow);
  font-weight: 850;
}

.chat-role {
  color: var(--role-color) !important;
  border-color:
    color-mix(
      in srgb,
      var(--role-color) 34%,
      transparent
    ) !important;
  background:
    color-mix(
      in srgb,
      var(--role-color) 8%,
      transparent
    ) !important;
  text-shadow:
    0 0 8px var(--role-glow);
}

.chat-role.role-sysadmin,
.role-sysadmin {
  --role-color: #F6C453;
  --role-glow: rgba(246,196,83,.70);
}

.chat-role.role-admin,
.role-admin {
  --role-color: #FF636F;
  --role-glow: rgba(255,99,111,.62);
}

.chat-role.role-moderator,
.role-moderator {
  --role-color: #69AFFF;
  --role-glow: rgba(105,175,255,.60);
}

.chat-role.role-premium,
.role-premium {
  --role-color: #D78CFF;
  --role-glow: rgba(215,140,255,.55);
}

.chat-role.role-player,
.role-player {
  --role-color: #B8BFCC;
  --role-glow: rgba(184,191,204,.28);
}


/* ============================================================
   ADMIN UI OVERHAUL + MODERATION V1
   ============================================================ */

.admin-menu-window {
  width: min(1380px, 95vw) !important;
  max-height: 92vh !important;
  border-radius: 22px !important;
  border: 1px solid rgba(156,118,255,.22) !important;
  box-shadow:
    0 40px 120px rgba(0,0,0,.58),
    0 0 55px rgba(108,68,194,.08) !important;
}

.admin-menu-head {
  padding: 24px 28px !important;
}

.admin-menu-head h2 {
  font-size: 30px !important;
  margin-top: 6px !important;
}

.admin-menu-head p {
  font-size: 11px !important;
  margin-top: 4px !important;
}

.admin-menu-tabs {
  padding: 13px 18px !important;
  gap: 8px !important;
  overflow-x: auto;
}

.admin-menu-tabs button {
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

.admin-menu-body {
  padding: 16px 18px 24px !important;
}

.admin-menu-status {
  min-height: 44px !important;
  display: flex;
  align-items: center;
  padding: 0 14px !important;
  border-radius: 11px !important;
  font-size: 10px !important;
}

.admin-menu-content {
  gap: 14px !important;
}

.admin-config-card {
  padding: 16px !important;
  border-radius: 14px !important;
}

.admin-card-title strong {
  font-size: 14px !important;
}

.admin-card-title span,
.admin-card-title small,
.admin-field > span {
  font-size: 9px !important;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  min-height: 42px !important;
  font-size: 11px !important;
}

.admin-field-grid {
  gap: 10px !important;
}

.admin-save-button,
.admin-secondary-button {
  min-height: 40px !important;
  font-size: 10px !important;
}

.moderation-control-card,
.moderation-section {
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.022),
      rgba(255,255,255,.008)
    );
  padding: 16px;
}

.moderation-control-card {
  border-color: rgba(255,103,119,.16);
  background:
    radial-gradient(
      circle at 0 0,
      rgba(255,93,116,.09),
      transparent 34%
    ),
    rgba(255,255,255,.01);
}

.moderation-title span,
.moderation-section-head span {
  display:block;
  color:#ff7888;
  font-size:9px;
  font-weight:950;
  letter-spacing:.11em;
}

.moderation-title strong,
.moderation-section-head strong {
  display:block;
  margin-top:4px;
  font-size:17px;
  color:#f2eef8;
}

.moderation-title small {
  display:block;
  margin-top:4px;
  color:#858998;
  font-size:10px;
}

.moderation-form {
  display:grid;
  grid-template-columns:
    minmax(170px,1fr)
    minmax(170px,1fr)
    150px;
  gap:10px;
  margin-top:14px;
}

.moderation-form select,
.moderation-form textarea {
  min-width:0;
  border:1px solid rgba(255,255,255,.075);
  border-radius:10px;
  background:#0b0d14;
  color:#e8e5ef;
  font-size:11px;
}

.moderation-form select {
  min-height:42px;
  padding:0 11px;
}

.moderation-form textarea {
  grid-column:1 / -2;
  min-height:82px;
  padding:11px;
  resize:vertical;
}

.moderation-execute {
  min-height:42px;
  border-radius:10px;
  border:1px solid rgba(255,100,120,.28);
  background:
    linear-gradient(
      180deg,
      rgba(183,55,74,.28),
      rgba(104,28,40,.20)
    );
  color:#ffd7dc;
  font-size:10px;
  font-weight:950;
  cursor:pointer;
}

.moderation-section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}

.moderation-section-head b {
  min-width:36px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:rgba(255,255,255,.035);
  color:#c9c3d5;
  font-size:11px;
}

.moderation-sanction {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(220px,.8fr);
  gap:14px;
  padding:12px 13px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(255,255,255,.012);
  margin-top:8px;
}

.moderation-sanction-main span {
  display:block;
  font-size:8px;
  font-weight:950;
  letter-spacing:.09em;
  color:#ff8997;
}

.moderation-sanction-main strong {
  display:block;
  margin-top:3px;
  font-size:13px;
  color:#f0edf5;
}

.moderation-sanction-main small {
  display:block;
  margin-top:5px;
  color:#9a95a4;
  font-size:10px;
}

.moderation-sanction-meta {
  display:grid;
  gap:4px;
  justify-items:end;
  align-content:center;
  font-size:9px;
  color:#868b99;
}

.moderation-mute {
  border-color:rgba(255,182,83,.12);
}

.moderation-mute .moderation-sanction-main span {
  color:#ffba68;
}

.moderation-temp_kick {
  border-color:rgba(105,175,255,.12);
}

.moderation-temp_kick .moderation-sanction-main span {
  color:#78b9ff;
}

.moderation-history {
  max-height:420px;
  overflow:auto;
}

.moderation-history-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:10px 4px;
  border-bottom:1px solid rgba(255,255,255,.045);
}

.moderation-history-row > div:first-child span {
  display:inline-block;
  min-width:125px;
  color:#ba9cff;
  font-size:8px;
  font-weight:900;
}

.moderation-history-row strong {
  font-size:11px;
  color:#e7e3ed;
}

.moderation-history-row small {
  display:block;
  margin-top:4px;
  color:#858a97;
  font-size:9px;
}

.moderation-history-row > div:last-child {
  display:grid;
  gap:3px;
  text-align:right;
}

.moderation-history-row > div:last-child b {
  color:#c8c1d2;
  font-size:9px;
}

.moderation-history-row > div:last-child span {
  color:#737987;
  font-size:8px;
}

.moderation-empty {
  padding:18px;
  text-align:center;
  color:#777d8a;
  font-size:10px;
}

@media (max-width:900px) {
  .moderation-form {
    grid-template-columns:1fr;
  }

  .moderation-form textarea {
    grid-column:auto;
  }

  .moderation-sanction {
    grid-template-columns:1fr;
  }

  .moderation-sanction-meta {
    justify-items:start;
  }
}


/* ============================================================
   CLICKABLE WORLD ACTIONS
   Tastatur bleibt erhalten, Maus kommt zusätzlich dazu.
   ============================================================ */

.interaction-prompt,
.combat-prompt,
.capture-prompt {
  pointer-events: auto !important;
  cursor: pointer;
  user-select: none;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.interaction-prompt:hover,
.combat-prompt:hover,
.capture-prompt:hover {
  transform:
    translateX(-50%)
    translateY(-2px);
  background:
    rgba(14,15,24,.96);
}

.interaction-prompt:hover {
  border-color:
    rgba(173,139,255,.68);
  box-shadow:
    0 17px 40px rgba(0,0,0,.34),
    0 0 24px rgba(142,101,255,.10);
}

.combat-prompt:hover {
  border-color:
    rgba(237,111,145,.62);
  box-shadow:
    0 17px 40px rgba(0,0,0,.34),
    0 0 24px rgba(237,111,145,.09);
}

.capture-prompt:hover {
  border-color:
    rgba(168,128,255,.72);
  box-shadow:
    0 17px 40px rgba(0,0,0,.34),
    0 0 26px rgba(153,109,255,.12);
}

.interaction-prompt:active,
.combat-prompt:active,
.capture-prompt:active {
  transform:
    translateX(-50%)
    translateY(1px)
    scale(.985);
}

.interaction-prompt::after,
.combat-prompt::after,
.capture-prompt::after {
  content: "KLICK";
  margin-left: auto;
  padding-left: 11px;
  color: #696e7c;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .12em;
}

/* Die Welt soll hinter dem HUD weniger nach flacher Testfläche wirken. */
.world-panel canvas {
  filter:
    saturate(1.06)
    contrast(1.025);
}


/* ============================================================
   WORLD ATMOSPHERE / TIME / WEATHER V1
   ============================================================ */

.world-status-hud {
  position: static;
  z-index: 11;
  display: flex;
  gap: 8px;
  align-items: stretch;
  pointer-events: none;
}

.world-status-time,
.world-status-weather {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 11px;
  background:
    linear-gradient(
      145deg,
      rgba(12,15,21,.82),
      rgba(8,10,15,.72)
    );
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 28px rgba(0,0,0,.18);
}

.world-status-time {
  min-width: 76px;
  padding: 9px 11px;
}

.world-status-time span {
  display:block;
  color:#7f8793;
  font-size:7px;
  font-weight:950;
  letter-spacing:.11em;
}

.world-status-time strong {
  display:block;
  margin-top:3px;
  color:#f0f2f5;
  font-size:15px;
  letter-spacing:.03em;
}

.world-status-weather {
  min-width: 155px;
  padding: 8px 11px;
  display:grid;
  grid-template-columns:30px 1fr;
  gap:8px;
  align-items:center;
}

.world-status-weather > span {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#a8d9dc;
  background:rgba(94,184,190,.08);
  font-size:17px;
  text-shadow:0 0 12px rgba(105,207,218,.30);
}

.world-status-weather strong,
.world-status-weather small {
  display:block;
}

.world-status-weather strong {
  color:#e9edf0;
  font-size:9px;
}

.world-status-weather small {
  margin-top:3px;
  color:#757d88;
  font-size:7px;
}

@media (max-width: 850px) {
  .area-header-cluster {
    left: 10px;
    top: 10px;
    gap: 10px;
    transform: scale(.92);
    transform-origin: left top;
  }
}

@media (max-width: 640px) {
  .area-header-cluster {
    display: grid;
    gap: 8px;
  }
}


.player-progress-card {
  display: grid;
  gap: 14px;
}

.player-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.player-progress-grid > div {
  padding: 12px 14px;
  border: 1px solid rgba(138, 127, 255, 0.18);
  border-radius: 14px;
  background: rgba(12, 14, 24, 0.72);
}

.player-progress-grid span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(215, 219, 255, 0.72);
  margin-bottom: 6px;
}

.player-progress-grid strong {
  font-size: 15px;
  color: #f7f6ff;
}

.claim-shad-button,
.cloud-action-row button {
  appearance: none;
  border: 1px solid rgba(127, 189, 255, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  color: #f7f6ff;
  background: linear-gradient(180deg, rgba(59, 88, 162, 0.95), rgba(46, 52, 114, 0.95));
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}

.claim-shad-button:hover,
.cloud-action-row button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.claim-shad-button:disabled,
.cloud-action-row button:disabled {
  cursor: default;
  opacity: .55;
  transform: none;
  filter: none;
}

.cloud-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cloud-action-row .danger {
  border-color: rgba(255, 121, 152, 0.28);
  background: linear-gradient(180deg, rgba(130, 47, 74, 0.96), rgba(91, 28, 55, 0.96));
}

.cloud-sell-note {
  font-size: 12px;
  color: rgba(214, 221, 255, 0.72);
  margin-top: 10px;
}


.world-shad-hud {
  position: absolute;
  top: 86px;
  right: 372px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(125, 173, 255, 0.24);
  border-radius: 14px;
  background: rgba(10, 14, 24, 0.84);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  color: #eaf2ff;
  font-weight: 800;
  letter-spacing: .03em;
}

.player-progress-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.player-progress-grid .wide {
  grid-column: 1 / -1;
}
.player-progress-grid small {
  display: block;
  margin-top: 7px;
  color: rgba(219,224,255,.76);
  font-size: 12px;
}
@media (max-width: 1500px) {
  .world-shad-hud { right: 332px; }
}


.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4,6,12,.72);
  backdrop-filter: blur(8px);
}
.game-overlay[hidden] { display:none !important; }
.game-modal {
  width: min(760px, 92vw);
  max-height: 84vh;
  overflow: auto;
  position: relative;
  padding: 26px;
  border: 1px solid rgba(139,112,255,.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18,20,31,.98), rgba(9,11,18,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.modal-close {
  position:absolute;
  right:16px;
  top:14px;
  width:36px;
  height:36px;
  border:0;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:24px;
  cursor:pointer;
}
.trader-creature-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.trader-creature-card {
  padding:16px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.trader-creature-card h3 { margin:0 0 8px; }
.trader-creature-card small { color:rgba(230,234,255,.68); }
.trader-creature-card button { width:100%; margin-top:12px; }
.avatar-editor-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:20px 0;
}
.avatar-editor-grid label {
  display:grid;
  gap:8px;
  color:#d8dcff;
  font-size:12px;
  font-weight:700;
}
.avatar-editor-grid input,
.avatar-editor-grid select {
  width:100%;
  min-height:44px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  background:#0c0f17;
  color:#fff;
}
.world-shad-hud {
  top: 82px !important;
  right: 382px !important;
  min-width: 110px;
  justify-content:center;
  background: linear-gradient(180deg, rgba(17,28,48,.96), rgba(9,13,24,.94)) !important;
  border-color: rgba(91,171,255,.38) !important;
  box-shadow: 0 0 26px rgba(81,137,255,.12), 0 10px 30px rgba(0,0,0,.28) !important;
}
@media (max-width: 1100px) {
  .world-shad-hud { right: 24px !important; top: 148px !important; }
  .trader-creature-list { grid-template-columns:1fr; }
  .avatar-editor-grid { grid-template-columns:1fr; }
}

.dock-online-time {
  display:block;
  margin-top:6px;
  color:rgba(217,224,255,.68);
  font-size:11px;
  letter-spacing:.04em;
}

.shad-hud-card {
  border-color: rgba(86, 172, 255, .34) !important;
  background: linear-gradient(180deg, rgba(19,38,68,.95), rgba(11,19,34,.94)) !important;
  box-shadow: 0 0 24px rgba(78,140,255,.12);
}
.shad-hud-card strong {
  color:#a9d5ff !important;
  text-shadow:0 0 12px rgba(85,155,255,.28);
}

.player-progress-grid > div {
  min-width: 0;
}
.player-progress-grid strong {
  overflow-wrap:anywhere;
  line-height:1.25;
}


/* ===== SHAD / REWARD POLISH HOTFIX ===== */
.shad-hud-card {
  position: relative;
  min-width: 118px;
  border: 1px solid rgba(105, 212, 255, .48) !important;
  background:
    radial-gradient(circle at 78% 22%, rgba(127, 94, 255, .24), transparent 46%),
    linear-gradient(180deg, rgba(18, 47, 76, .98), rgba(10, 22, 42, .98)) !important;
  box-shadow:
    0 0 0 1px rgba(112, 190, 255, .08) inset,
    0 0 26px rgba(64, 158, 255, .20),
    0 10px 26px rgba(0,0,0,.24) !important;
  overflow: hidden;
}
.shad-hud-card::after {
  content: '◆';
  position: absolute;
  right: 10px;
  bottom: 5px;
  color: rgba(139, 197, 255, .22);
  font-size: 28px;
  transform: rotate(12deg);
}
.shad-hud-card span {
  color: #a8d8ff !important;
  font-weight: 900 !important;
  letter-spacing: .13em !important;
}
.shad-hud-card strong {
  color: #f3fbff !important;
  font-size: 20px !important;
  text-shadow: 0 0 14px rgba(104, 202, 255, .62) !important;
}

.player-progress-card {
  overflow: hidden;
}
.player-progress-card .side-card-head {
  align-items: center;
}
.shad-balance-pill {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(91, 200, 255, .25);
  background: rgba(67, 163, 255, .08);
  color: #9ee5ff !important;
}
.player-progress-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
}
.player-progress-grid > div {
  min-width: 0;
  overflow: hidden;
}
.player-progress-grid .reward-stat span,
.player-progress-grid .reward-formula > span {
  font-size: 9px !important;
  letter-spacing: .08em !important;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}
.player-progress-grid .reward-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 16px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reward-formula {
  padding: 12px !important;
}
.reward-formula-lines {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}
.reward-formula-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(139, 143, 255, .08);
}
.reward-formula-lines span {
  color: rgba(215, 221, 255, .70);
  font-size: 11px;
}
.reward-formula-lines strong {
  flex: 0 0 auto;
  font-size: 12px !important;
  color: #f5f7ff;
}
.reward-formula-total {
  background: linear-gradient(90deg, rgba(62,120,255,.10), rgba(125,88,255,.10)) !important;
  border-color: rgba(108, 170, 255, .20) !important;
}
.reward-formula-total strong {
  color: #9fe0ff !important;
  font-size: 13px !important;
}

.avatar-customize-card {
  display: grid;
  gap: 10px;
}
.avatar-customize-card p {
  margin: 0;
  color: rgba(211, 217, 240, .66);
  font-size: 11px;
  line-height: 1.45;
}
.avatar-customize-button {
  appearance: none;
  border: 1px solid rgba(152, 119, 255, .28);
  border-radius: 13px;
  padding: 11px 13px;
  background: linear-gradient(180deg, rgba(85, 65, 155, .96), rgba(56, 42, 112, .96));
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.avatar-customize-button:hover {
  filter: brightness(1.08);
}

/* --- V8 companion panel refresh --- */
.companion-title {
  align-items: flex-start !important;
}

.companion-hp {
  align-self: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(111,255,196,.08);
  border: 1px solid rgba(111,255,196,.16);
  color: #8df1bd !important;
}

.companion-hp.defeated {
  background: rgba(236,104,132,.09);
  border-color: rgba(236,104,132,.18);
  color: #ff9fb2 !important;
}

.companion-vital-wrap {
  display: grid;
  gap: 7px;
}

.companion-vital-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.companion-vital-head span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9c93bf;
}

.companion-vital-head strong {
  font-size: 11px;
  font-weight: 850;
  color: #d8d2eb;
}

.companion-hpbar,
.companion-xpbar {
  position: relative;
  overflow: hidden;
}

.companion-hpfill,
.companion-xpfill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.companion-hpbar[data-tone="good"] .companion-hpfill {
  background: linear-gradient(90deg, #55d9a0, #8df1bd) !important;
  box-shadow: 0 0 18px rgba(98,236,178,.17);
}

.companion-hpbar[data-tone="warn"] .companion-hpfill {
  background: linear-gradient(90deg, #e1a43a, #ffd76d) !important;
  box-shadow: 0 0 18px rgba(255,211,109,.18);
}

.companion-hpbar[data-tone="danger"] .companion-hpfill {
  background: linear-gradient(90deg, #d95773, #ff9cb0) !important;
  box-shadow: 0 0 18px rgba(255,128,160,.18);
}

.companion-xpfill {
  background: linear-gradient(90deg, #7654ff, #bd8cff) !important;
  box-shadow: 0 0 15px rgba(155,105,255,.20);
}

.companion-hpbar-text,
.companion-xpbar-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: 9px;
  font-weight: 950;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
}

.companion-hpbar-text {
  color: #07120d;
}

.companion-xpbar-text {
  color: #efe9ff;
}

.companion-vital-wrap-xp .companion-vital-head strong {
  color: #c7b8ff;
}

.companion-recovery {
  display: none !important;
}

/* --- V9 readability and panel polish --- */
.companion-vital-head strong {
  font-size: 10px !important;
}

.companion-hpbar,
.companion-xpbar {
  min-height: 14px;
}

.companion-hpbar-text,
.companion-xpbar-text {
  color: #fff !important;
  text-shadow:
    0 0 2px rgba(0,0,0,.95),
    0 1px 1px rgba(0,0,0,.95),
    0 0 8px rgba(0,0,0,.35);
  font-size: 9px !important;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 0 8px;
}

.companion-xpbar-text {
  font-size: 8px !important;
}

.companion-hpbar[data-tone="warn"] .companion-hpbar-text,
.companion-hpbar[data-tone="danger"] .companion-hpbar-text {
  color: #fff !important;
}

/* --- V10 species portrait identity --- */
.companion-portrait.species-nebeling {
  background:
    radial-gradient(circle at 52% 40%, rgba(12,23,38,.94) 0 25%, transparent 26%),
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--companion-color) 82%, white 18%), var(--companion-secondary));
}

.companion-portrait.species-nebeling .companion-portrait-core {
  width: 34px;
  height: 30px;
  border-radius: 48% 48% 56% 56%;
  background:
    radial-gradient(circle at 36% 44%, #75edf3 0 3px, transparent 3.5px),
    radial-gradient(circle at 64% 44%, #75edf3 0 3px, transparent 3.5px),
    rgba(18,31,47,.94);
  box-shadow:
    -10px 12px 0 -5px color-mix(in srgb, var(--companion-secondary) 62%, transparent),
    10px 12px 0 -5px color-mix(in srgb, var(--companion-secondary) 62%, transparent),
    0 0 18px color-mix(in srgb, var(--companion-secondary) 32%, transparent);
}

.companion-portrait.species-zapfling {
  background:
    radial-gradient(circle at 35% 28%, #6f4328 0 18%, transparent 19%),
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--companion-color) 82%, #d7a779 18%), var(--companion-secondary));
}

.companion-portrait.species-zapfling .companion-portrait-core {
  width: 30px;
  height: 34px;
  border-radius: 46% 46% 42% 42%;
  background:
    radial-gradient(circle at 35% 46%, #121214 0 2.5px, transparent 3px),
    radial-gradient(circle at 65% 46%, #121214 0 2.5px, transparent 3px),
    linear-gradient(#e8c798 0 58%, #7b4a2e 59% 100%);
  box-shadow:
    0 -8px 0 -2px #54321f,
    6px -14px 0 -5px #74ad58,
    -6px -13px 0 -5px #74ad58;
}

.creature-profile-orb.species-nebeling {
  width: 112px !important;
  height: 104px !important;
  border-radius: 52% 52% 58% 58% !important;
  box-shadow:
    inset 0 0 28px rgba(112,226,235,.22),
    0 0 34px rgba(112,226,235,.16) !important;
}

.creature-profile-orb.species-nebeling::after {
  content: '';
  position: absolute;
  inset: 28px 24px 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 44%, #70e2eb 0 5px, transparent 5.5px),
    radial-gradient(circle at 66% 44%, #70e2eb 0 5px, transparent 5.5px),
    #182337;
  opacity: .95;
}

.creature-profile-orb.species-zapfling {
  width: 108px !important;
  height: 112px !important;
  border-radius: 45% 45% 40% 40% !important;
}

.creature-profile-orb.species-zapfling::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 28px;
  height: 50px;
  border-radius: 48%;
  background:
    radial-gradient(circle at 35% 48%, #121214 0 5px, transparent 5.5px),
    radial-gradient(circle at 65% 48%, #121214 0 5px, transparent 5.5px),
    #e8c798;
  box-shadow:
    0 -13px 0 -3px #54321f,
    10px -23px 0 -7px #74ad58,
    -10px -22px 0 -7px #74ad58;
}

/* ===== V16 SHADOWLINK / SOCIAL ===== */
.floating-chat{
  position:fixed;left:18px;bottom:18px;z-index:75;width:min(620px,calc(100vw - 470px));
  background:rgba(8,9,17,.92);border:1px solid rgba(151,112,255,.28);border-radius:16px;
  box-shadow:0 18px 55px rgba(0,0,0,.42),0 0 28px rgba(126,82,255,.08);backdrop-filter:blur(16px);overflow:hidden
}
.floating-chat.collapsed .chat-channel-view{display:none!important}
.floating-chat-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.07);background:linear-gradient(90deg,rgba(116,70,210,.15),rgba(20,22,35,.08))}
.floating-chat-head strong{display:block;font-size:13px;margin-top:2px;color:#f7f4ff}
.floating-chat-head-actions{display:flex;align-items:center;gap:6px}
.chat-channel-tab,.chat-collapse-button{border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);color:#9d96b9;border-radius:9px;padding:7px 9px;font-size:9px;font-weight:900;letter-spacing:.08em;cursor:pointer}
.chat-channel-tab.active{color:#fff;background:linear-gradient(135deg,rgba(116,76,225,.34),rgba(83,123,231,.18));border-color:rgba(153,112,255,.45)}
.chat-collapse-button{font-size:15px;line-height:1;padding:4px 9px}
.chat-unread-badge{display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:999px;margin-left:3px;background:#e83f64;color:#fff;font-size:9px;box-shadow:0 0 12px rgba(232,63,100,.42)}
.chat-channel-view{display:none}.chat-channel-view.active{display:block}
.floating-chat .chat-messages{height:150px;max-height:none;padding:9px 11px;overflow-y:auto;background:rgba(0,0,0,.13)}
.floating-chat .chat-message{padding:6px 7px;border-radius:8px}.floating-chat .chat-message:hover{background:rgba(255,255,255,.025)}
.floating-chat .chat-message-head strong{cursor:pointer;color:var(--role-color,#fff);text-shadow:0 0 10px color-mix(in srgb,var(--role-color,#fff) 28%,transparent)}
.floating-chat .chat-message-text{font-size:12px;line-height:1.38;color:#e4dfef}
.floating-chat .chat-compose{display:flex;gap:7px;padding:9px;border-top:1px solid rgba(255,255,255,.06)}
.floating-chat .chat-compose input{flex:1;min-width:0;background:#0c0e18;border:1px solid rgba(255,255,255,.09);color:#fff;border-radius:9px;padding:9px 10px;outline:none}
.floating-chat .chat-compose input:focus{border-color:rgba(157,113,255,.6);box-shadow:0 0 0 2px rgba(157,113,255,.08)}
.floating-chat .chat-compose button,.direct-new-row button{border:1px solid rgba(151,112,255,.35);background:linear-gradient(135deg,#35215f,#232c61);color:#fff;border-radius:9px;padding:8px 12px;font-weight:850;cursor:pointer}
.direct-layout{display:grid;grid-template-columns:190px 1fr;min-height:205px}
.direct-sidebar{border-right:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.015);padding:8px;min-width:0}
.direct-new-row{display:flex;gap:5px;margin-bottom:7px}.direct-new-row select{min-width:0;flex:1;background:#0b0d16;color:#ddd;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:7px;font-size:10px}
.direct-new-row button{padding:6px 8px;font-size:9px}
.direct-threads{display:grid;gap:5px;max-height:165px;overflow:auto}
.direct-thread{border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025);border-radius:8px;padding:7px;cursor:pointer;position:relative}
.direct-thread.active{border-color:rgba(155,112,255,.42);background:rgba(118,77,220,.12)}
.direct-thread strong{display:block;font-size:11px;color:#f0ecff}.direct-thread small{display:block;color:#817b94;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.direct-thread .unread{position:absolute;right:6px;top:6px;background:#e83f64;color:white;border-radius:99px;min-width:16px;height:16px;display:grid;place-items:center;font-size:8px;font-weight:900}
.direct-thread-panel{min-width:0;display:grid;grid-template-rows:auto 1fr auto}.direct-thread-title{padding:9px 11px;border-bottom:1px solid rgba(255,255,255,.05);font-size:11px;font-weight:900;color:#cfc5f7}
.direct-messages{height:130px;overflow:auto;padding:8px 10px;display:grid;align-content:start;gap:6px}
.direct-message{max-width:82%;padding:7px 9px;border-radius:10px;background:#171929;color:#ddd;font-size:11px;line-height:1.35}.direct-message.mine{margin-left:auto;background:linear-gradient(135deg,#392467,#263363)}.direct-message small{display:block;opacity:.52;font-size:8px;margin-top:3px}
.ignored-users-list{display:grid;gap:6px}.ignored-user-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid rgba(255,255,255,.06);border-radius:9px;padding:8px}.ignored-user-row button{border:1px solid rgba(255,255,255,.1);background:#151723;color:#ddd;border-radius:7px;padding:5px 8px;cursor:pointer;font-size:9px}
.social-manage-card p{font-size:10px;color:#8f899f;line-height:1.45}

/* Speech bubbles */
.player-chat-bubble{pointer-events:none}

/* Moderation notice */
.moderation-notice-layer{position:fixed;top:74px;left:50%;transform:translateX(-50%);z-index:110;display:grid;gap:8px;width:min(560px,calc(100vw - 40px));pointer-events:none}
.moderation-notice{pointer-events:auto;border:1px solid rgba(255,255,255,.1);background:rgba(12,13,22,.96);backdrop-filter:blur(14px);box-shadow:0 16px 44px rgba(0,0,0,.45);border-radius:14px;padding:12px 14px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;animation:moderationIn .2s ease-out}
.moderation-notice .icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(136,96,255,.14);border:1px solid rgba(136,96,255,.25);font-size:18px}.moderation-notice.warning .icon{background:rgba(255,194,72,.12);border-color:rgba(255,194,72,.25)}.moderation-notice.freeze .icon{background:rgba(109,209,255,.12);border-color:rgba(109,209,255,.26)}
.moderation-notice strong{display:block;font-size:12px;color:#fff}.moderation-notice p{margin:4px 0 0;font-size:10px;color:#aaa3ba;line-height:1.4}.moderation-notice button{border:0;background:transparent;color:#878194;cursor:pointer;font-size:17px}
@keyframes moderationIn{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none}}

@media(max-width:1000px){.floating-chat{width:calc(100vw - 36px);left:18px;bottom:12px}.direct-layout{grid-template-columns:150px 1fr}}
.online-social-actions{display:flex;gap:4px}.online-social-actions button{width:24px;height:24px;border-radius:7px;border:1px solid rgba(255,255,255,.08);background:#121522;color:#aaa3c1;cursor:pointer;padding:0}.online-social-actions button:hover{color:#fff;border-color:rgba(156,112,255,.4);background:rgba(105,71,180,.16)}
.direct-thread-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.direct-thread-title button{border:0;background:transparent;color:#817b94;font-size:16px;cursor:pointer}.direct-thread-title button:hover{color:#fff}

/* ===== V17 movable/resizable chat ===== */
.floating-chat{min-width:300px;min-height:120px;max-width:calc(100vw - 20px);max-height:calc(100vh - 90px)}
.floating-chat-head{cursor:move;user-select:none}
.floating-chat-head-actions button{cursor:pointer}
.chat-reset-button{border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);color:#9d96b9;border-radius:9px;padding:5px 8px;font-size:13px;line-height:1;cursor:pointer}
.chat-reset-button:hover{color:#fff;border-color:rgba(153,112,255,.4)}
.chat-resize-handle{position:absolute;right:2px;bottom:2px;width:18px;height:18px;cursor:nwse-resize;opacity:.52}
.chat-resize-handle::before,.chat-resize-handle::after{content:"";position:absolute;right:3px;bottom:3px;border-right:2px solid rgba(190,174,255,.72);border-bottom:2px solid rgba(190,174,255,.72)}
.chat-resize-handle::before{width:10px;height:10px}.chat-resize-handle::after{width:5px;height:5px;right:7px;bottom:7px}
.floating-chat.collapsed{width:250px!important;min-width:250px;min-height:0!important;height:auto!important}
.floating-chat.collapsed .floating-chat-head{padding:7px 9px}
.floating-chat.collapsed .floating-chat-head .eyebrow{display:none}
.floating-chat.collapsed #floatingChatTitle{font-size:11px;margin:0}
.floating-chat.collapsed .chat-channel-tab,.floating-chat.collapsed .chat-reset-button,.floating-chat.collapsed .chat-resize-handle{display:none!important}
.floating-chat.collapsed .chat-collapse-button{padding:3px 8px}
.floating-chat.chat-dragging,.floating-chat.chat-resizing{transition:none!important;user-select:none}

/* ===== V17 world editor usability pass ===== */
.world-editor-hud{width:min(360px,calc(100vw - 24px));max-height:calc(100vh - 110px);overflow:auto;padding:14px;background:rgba(8,9,17,.95);backdrop-filter:blur(18px);box-shadow:0 18px 60px rgba(0,0,0,.45)}
.world-editor-head strong{font-size:15px}.world-editor-section label{font-size:9px}.world-editor-section small{font-size:9px}
.world-editor-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:230px;overflow:auto;padding-right:2px}
.world-editor-palette button{display:grid!important;grid-template-columns:38px 1fr;align-items:center;text-align:left;gap:8px;padding:8px!important;min-height:54px;border-radius:10px!important;background:rgba(255,255,255,.025)!important}
.world-editor-palette button.active{border-color:rgba(162,119,255,.65)!important;background:linear-gradient(135deg,rgba(122,77,222,.20),rgba(55,76,150,.11))!important;box-shadow:0 0 0 1px rgba(162,119,255,.12) inset}
.world-editor-palette-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,rgba(172,140,255,.28),rgba(39,34,64,.7));font-size:18px;border:1px solid rgba(255,255,255,.07)}
.world-editor-palette-text{min-width:0}.world-editor-palette-text strong{display:block;color:#f2efff;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.world-editor-palette-text small{display:block;color:#787286;font-size:8px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.world-editor-fallback-select{display:none!important}
.world-editor-selection{padding:12px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.018);border-radius:12px}
.world-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.world-editor-grid label{font-size:8px}.world-editor-grid input{font-size:10px!important;padding:9px!important}
.world-editor-grid input[type="color"]{padding:3px!important;height:36px;cursor:pointer}
.world-editor-quick-tools{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.world-editor-quick-tools button{padding:7px 4px!important;font-size:9px!important}
.world-editor-object-selected{outline:2px solid rgba(180,132,255,.9);outline-offset:2px}
@media(max-width:1000px){.floating-chat{max-width:calc(100vw - 24px)}.world-editor-hud{left:12px!important;right:auto!important;top:82px!important}}


/* ===== V18 chat resize layout fix ===== */
.floating-chat:not(.collapsed){
  display:flex;
  flex-direction:column;
}

.floating-chat:not(.collapsed) .floating-chat-head{
  flex:0 0 auto;
}

.floating-chat:not(.collapsed) .chat-channel-view.active{
  display:flex;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}

.floating-chat:not(.collapsed) #chatGlobalView{
  flex-direction:column;
}

.floating-chat:not(.collapsed) #chatGlobalView .chat-messages{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  max-height:none;
  overflow-y:auto;
}

.floating-chat:not(.collapsed) .chat-compose{
  flex:0 0 auto;
  min-height:46px;
  box-sizing:border-box;
  background:rgba(8,9,17,.97);
}

.floating-chat:not(.collapsed) #chatDirectView{
  flex-direction:column;
}

.floating-chat:not(.collapsed) .direct-layout{
  flex:1 1 auto;
  min-height:0;
  height:100%;
  overflow:hidden;
}

.floating-chat:not(.collapsed) .direct-sidebar,
.floating-chat:not(.collapsed) .direct-thread-panel{
  min-height:0;
  overflow:hidden;
}

.floating-chat:not(.collapsed) .direct-sidebar{
  display:flex;
  flex-direction:column;
}

.floating-chat:not(.collapsed) .direct-threads{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
}

.floating-chat:not(.collapsed) .direct-thread-panel{
  grid-template-rows:auto minmax(0,1fr) auto;
}

.floating-chat:not(.collapsed) .direct-messages{
  height:auto;
  min-height:0;
  overflow-y:auto;
}

.floating-chat.chat-custom-size:not(.collapsed){
  min-height:165px;
}

@media(max-height:620px){
  .floating-chat.chat-custom-size:not(.collapsed){
    min-height:150px;
  }
  .floating-chat:not(.collapsed) .chat-compose{
    min-height:42px;
    padding:6px;
  }
  .floating-chat:not(.collapsed) .chat-compose input{
    padding:7px 9px;
  }
}


/* ===== V19 World Editor 3D gizmo controls ===== */
.world-editor-gizmo-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:10px 0 8px;
}
.world-editor-gizmo-modes,
.world-editor-history-tools{
  display:flex;
  gap:6px;
}
.world-editor-gizmo-modes button,
.world-editor-history-tools button{
  min-height:34px;
  border:1px solid rgba(167,124,255,.24);
  background:rgba(20,19,31,.92);
  color:#c9c2de;
  border-radius:9px;
  padding:7px 10px;
  font-size:10px;
  font-weight:850;
  letter-spacing:.03em;
  cursor:pointer;
}
.world-editor-gizmo-modes button.active{
  color:#fff;
  border-color:rgba(184,134,255,.72);
  background:linear-gradient(180deg,rgba(111,65,184,.72),rgba(54,34,90,.92));
  box-shadow:0 0 18px rgba(150,92,255,.15);
}
.world-editor-history-tools button{
  width:34px;
  padding:0;
  font-size:16px;
}
.world-editor-history-tools button:disabled{
  opacity:.32;
  cursor:not-allowed;
}
.world-editor-snap-row{
  display:grid;
  grid-template-columns:auto 82px 1fr;
  gap:8px;
  align-items:center;
  padding:8px 9px;
  margin-bottom:9px;
  border:1px solid rgba(145,116,204,.14);
  background:rgba(11,12,20,.62);
  border-radius:10px;
}
.world-editor-snap-row small{
  color:#827b99;
  font-size:9px;
  line-height:1.25;
}
.world-editor-snap-row select{
  min-height:30px;
  border-radius:8px;
  border:1px solid rgba(145,116,204,.22);
  background:#0d0e17;
  color:#ece9f5;
  padding:0 7px;
  font-size:10px;
}
.world-editor-check{
  display:flex!important;
  align-items:center;
  gap:6px;
  margin:0!important;
  color:#cfc8df!important;
  font-size:10px!important;
  font-weight:800;
}
.world-editor-check input{
  width:15px!important;
  height:15px!important;
  margin:0!important;
  accent-color:#a66cff;
}
@media(max-width:1100px){
  .world-editor-gizmo-toolbar{align-items:stretch;flex-direction:column;}
  .world-editor-snap-row{grid-template-columns:auto 82px;}
  .world-editor-snap-row small{grid-column:1/-1;}
}

/* ===== V20 World Editor object creator / surfaces ===== */
.world-editor-library-actions,
.world-editor-surface-tools{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.world-editor-library-actions .accent,
.world-editor-create-footer .accent{
  background:linear-gradient(180deg,#6f45b8,#4e2b87);
  border-color:#9c6df0;
  color:#fff;
  box-shadow:0 0 18px rgba(147,93,235,.18);
}

.world-editor-create-overlay{
  position:fixed;
  inset:0;
  z-index:10030;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(4,5,10,.72);
  backdrop-filter:blur(8px);
}

.world-editor-create-overlay[hidden]{display:none!important;}

.world-editor-create-window{
  width:min(760px,calc(100vw - 32px));
  max-height:min(780px,calc(100vh - 32px));
  overflow:auto;
  border:1px solid rgba(151,105,232,.35);
  border-radius:18px;
  padding:18px;
  background:linear-gradient(180deg,rgba(20,19,31,.99),rgba(10,10,18,.99));
  box-shadow:0 28px 90px rgba(0,0,0,.5),0 0 40px rgba(108,61,171,.12);
}

.world-editor-create-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.world-editor-create-head strong{
  display:block;
  margin-top:4px;
  font-size:22px;
}

.world-editor-create-head button{
  width:38px;
  height:38px;
  border-radius:10px;
  font-size:22px;
}

.world-editor-create-copy{
  margin:12px 0 16px;
  color:#aaa2bd;
  line-height:1.45;
}

.world-editor-create-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.world-editor-create-grid label,
.world-editor-create-upload{
  display:grid;
  gap:6px;
  color:#a9a0bd;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.world-editor-create-grid input,
.world-editor-create-grid select,
.world-editor-create-upload input{
  width:100%;
  box-sizing:border-box;
  min-height:40px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:9px;
  background:#0c0c14;
  color:#fff;
  padding:8px 10px;
}

.world-editor-create-grid input[type="color"]{
  padding:4px;
}

.world-editor-create-checks{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  margin:14px 0;
  padding:12px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  background:rgba(255,255,255,.025);
}

.world-editor-create-checks label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#d7d1e4;
  font-size:12px;
}

.world-editor-create-upload{
  padding:12px;
  border:1px dashed rgba(159,111,239,.28);
  border-radius:10px;
}

.world-editor-create-upload button{
  min-height:38px;
}

.world-editor-create-upload small{
  color:#8f879f;
  text-transform:none;
  letter-spacing:0;
  font-weight:600;
}

.world-editor-create-footer{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:16px;
}

@media(max-width:700px){
  .world-editor-create-grid{grid-template-columns:1fr;}
  .world-editor-library-actions,
  .world-editor-surface-tools{grid-template-columns:1fr;}
}

/* ===== V21 world editor library / preview polish ===== */
.world-editor-library-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.7fr);gap:7px;margin-bottom:8px}
.world-editor-library-filters input,.world-editor-library-filters select{min-width:0;background:rgba(7,8,16,.92);border:1px solid rgba(151,125,222,.20);border-radius:9px;color:#f2efff;padding:8px 9px;font-size:9px;outline:none}
.world-editor-library-filters input:focus,.world-editor-library-filters select:focus{border-color:rgba(155,116,255,.65);box-shadow:0 0 0 2px rgba(132,88,255,.10)}
.world-editor-library-empty{grid-column:1/-1;padding:18px 12px;text-align:center;border:1px dashed rgba(255,255,255,.08);border-radius:10px;color:#777183;font-size:9px}
.world-editor-palette{scrollbar-width:thin}
.world-editor-palette button:hover{transform:translateY(-1px);border-color:rgba(169,137,255,.36)!important;background:rgba(112,79,180,.10)!important}
@media(max-width:560px){.world-editor-library-filters{grid-template-columns:1fr}}

/* ===== V22 editor polish: multiselect / snap / richer library ===== */
.world-editor-snap-row{
  grid-template-columns:auto 82px auto auto !important;
  align-items:center;
}
.world-editor-snap-row small{
  grid-column:1/-1;
}
.world-editor-palette button{
  position:relative;
}
.world-editor-palette-icon{
  overflow:hidden;
  position:relative;
  isolation:isolate;
  background:
    radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--editor-item-color,#7d65ff) 50%,white 12%),rgba(39,34,64,.72)) !important;
}
.world-editor-palette-icon i{
  position:absolute;
  inset:auto -8px -10px auto;
  width:30px;
  height:30px;
  border-radius:50%;
  background:var(--editor-item-color,#7d65ff);
  opacity:.34;
  filter:blur(1px);
  z-index:-1;
}
.world-editor-object-multi-selected{
  outline:1px solid rgba(106,169,255,.72);
  outline-offset:2px;
}
@media(max-width:560px){
  .world-editor-snap-row{grid-template-columns:1fr 1fr !important;}
}

/* ===== V25 statistics / leaderboards ===== */
.leaderboard-select{width:100%;margin:0 0 10px;background:rgba(7,8,16,.92);border:1px solid rgba(151,125,222,.24);border-radius:10px;color:#f2efff;padding:10px 11px;font-weight:700;outline:none}
.player-statistics-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.player-statistics-grid>div{padding:9px;border:1px solid rgba(255,255,255,.06);border-radius:9px;background:rgba(255,255,255,.025);display:flex;flex-direction:column;gap:3px}
.player-statistics-grid span{font-size:8px;letter-spacing:.08em;color:#8f879f;text-transform:uppercase}.player-statistics-grid strong{font-size:11px;color:#ece8f7}
.leaderboard-list{display:flex;flex-direction:column;gap:6px;margin-top:10px;max-height:440px;overflow:auto}
.leaderboard-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 10px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:rgba(255,255,255,.025)}
.leaderboard-row.own{border-color:rgba(191,151,255,.52);background:rgba(137,91,221,.12)}
.leaderboard-rank{font-weight:900;color:#9b8db3}.leaderboard-player{min-width:0;display:flex;flex-direction:column}.leaderboard-player strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leaderboard-player small{color:#8f879f;font-size:8px;margin-top:2px}.leaderboard-value{font-weight:900;color:#d8c6ff;text-align:right}

/* ===== V26 live stats + compact HUD/chat polish ===== */
/* Die alte Welt-Identitaet ist redundant zur rechten Spielerkarte. */
.player-identity{display:none!important}

.dock-auth-meta{align-self:center;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:92px}
.dock-auth-meta .dock-online-time{margin-top:0;font-size:9px;line-height:1.2;letter-spacing:.02em;white-space:nowrap;color:rgba(217,224,255,.58)}

/* Kompakterer Standard-Chat; weiterhin frei verschieb- und skalierbar. */
.floating-chat{width:min(430px,calc(100vw - 470px))}
.floating-chat .chat-messages{height:118px}
.floating-chat-head{padding:8px 10px}
.floating-chat .chat-compose{padding:7px}
.floating-chat .chat-compose input{padding:7px 9px}
.floating-chat .chat-compose button{padding:7px 10px}

/* Author-CSS darf das native hidden-Attribut nicht uebersteuern. */
.chat-unread-badge[hidden]{display:none!important}

/* ===== V27 PLAYER PROFILES + AVATAR STUDIO ===== */
.player-profile-modal { width:min(980px,94vw); max-height:88vh; overflow:auto; }
.player-profile-layout { display:grid; grid-template-columns:minmax(300px,.92fr) minmax(360px,1.08fr); gap:22px; margin-top:16px; }
.player-profile-hero,
.player-profile-content { border:1px solid rgba(255,255,255,.08); border-radius:20px; background:linear-gradient(180deg,rgba(20,17,35,.92),rgba(8,10,17,.94)); padding:18px; }
.player-profile-hero h2 { margin:8px 0 4px; font-size:28px; }
.player-profile-roles { display:flex; flex-wrap:wrap; gap:7px; min-height:26px; }
.player-profile-role { padding:5px 8px; border-radius:999px; border:1px solid color-mix(in srgb,var(--role-color,#9a70ff) 45%, transparent); color:var(--role-color,#dcd5ff); background:color-mix(in srgb,var(--role-color,#9a70ff) 10%, transparent); font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.player-profile-stage { height:350px; margin-top:16px; overflow:hidden; border-radius:18px; border:1px solid rgba(167,127,255,.18); background:radial-gradient(circle at 50% 35%,rgba(128,88,255,.18),rgba(6,7,13,.96) 68%); position:relative; }
.player-profile-stage canvas { width:100%; height:100%; display:block; }
.player-profile-status { margin-top:12px; color:rgba(222,226,255,.68); font-size:12px; }
.player-profile-section-title { margin:2px 0 10px; color:#bfa7ff; font-size:10px; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
.player-profile-section-title:not(:first-child) { margin-top:20px; }
.player-profile-companions { display:grid; gap:10px; }
.player-profile-companion { display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px; border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.025); }
.player-profile-companion-orb { width:52px; height:52px; border-radius:50%; background:radial-gradient(circle at 36% 30%,#fff 0 8%,var(--companion-color,#eee) 22% 55%,var(--companion-secondary,#7658bd)); box-shadow:0 0 20px color-mix(in srgb,var(--companion-secondary,#7658bd) 35%, transparent); }
.player-profile-companion strong { display:block; color:#fff; }
.player-profile-companion small { display:block; margin-top:3px; color:rgba(220,225,255,.62); }
.player-profile-companion-hp { text-align:right; color:#7ff0bd; font-size:11px; font-weight:900; }
.player-stat-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.player-stat-grid > div { padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.07); }
.player-stat-grid span { display:block; color:rgba(214,221,255,.55); font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.player-stat-grid strong { display:block; margin-top:4px; color:#fff; font-size:14px; }
.leaderboard-player strong.profile-link,
.online-meta strong.profile-link { cursor:pointer; text-decoration:underline; text-decoration-color:transparent; text-underline-offset:3px; }
.leaderboard-player strong.profile-link:hover,
.online-meta strong.profile-link:hover { text-decoration-color:currentColor; }

.avatar-editor-modal { width:min(920px,94vw); }
.avatar-studio-layout { display:grid; grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr); gap:20px; margin-top:18px; align-items:start; }
.avatar-preview-card { border:1px solid rgba(160,118,255,.20); border-radius:20px; overflow:hidden; background:radial-gradient(circle at 50% 34%,rgba(137,90,255,.22),rgba(6,7,13,.98) 70%); }
.avatar-preview-card canvas { width:100%; height:430px; display:block; }
.avatar-preview-hint { padding:10px 12px 12px; text-align:center; color:rgba(216,222,255,.56); font-size:10px; letter-spacing:.04em; }
.avatar-editor-actions { display:flex; gap:10px; justify-content:flex-end; align-items:center; flex-wrap:wrap; }
.avatar-editor-actions .claim-shad-button { margin:0; min-width:170px; }
.ghost-action-button { min-height:42px; padding:0 14px; border-radius:12px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.035); color:#dfe3ff; cursor:pointer; font-weight:800; }
.ghost-action-button:disabled { opacity:.38; cursor:default; }

@media (max-width:900px) {
  .player-profile-layout,.avatar-studio-layout { grid-template-columns:1fr; }
  .player-profile-stage { height:300px; }
  .avatar-preview-card canvas { height:340px; }
}

/* ===== V31 Tutorial + Spawn Safe-Zone ===== */
.tutorial-hud{position:absolute;left:50%;top:88px;transform:translateX(-50%);z-index:26;width:min(390px,calc(100vw - 36px));padding:13px 15px;border:1px solid rgba(177,137,255,.40);border-radius:16px;background:linear-gradient(180deg,rgba(23,17,39,.96),rgba(9,9,18,.95));box-shadow:0 14px 42px rgba(0,0,0,.34),0 0 28px rgba(143,92,255,.10);backdrop-filter:blur(12px)}
.tutorial-hud[hidden]{display:none!important}.tutorial-hud-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.tutorial-hud-head span{font-size:9px;font-weight:900;letter-spacing:.18em;color:#bda0ff}.tutorial-hud-head button{border:0;background:transparent;color:#958aa8;font-size:18px;cursor:pointer}.tutorial-hud strong{display:block;color:#fff;font-size:14px}.tutorial-hud p{margin:5px 0 9px;color:rgba(224,226,255,.70);font-size:11px;line-height:1.42}.tutorial-progress{height:4px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}.tutorial-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#8f63ff,#d9baff);transition:width .25s ease}.tutorial-hud small{display:block;margin-top:6px;color:rgba(211,216,255,.46);font-size:8px;letter-spacing:.08em;text-transform:uppercase}
.help-tutorial-card{margin-top:18px;padding:14px;border:1px solid rgba(167,127,255,.18);border-radius:14px;background:rgba(126,84,213,.07)}.help-tutorial-card strong{display:block;margin-top:5px;color:#fff}.help-tutorial-card p{margin:6px 0 12px;color:rgba(222,225,255,.62)}.help-tutorial-actions{display:flex;gap:8px;flex-wrap:wrap}.help-tutorial-actions button{border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.045);color:#e9e6ff;padding:8px 10px;font-weight:800;cursor:pointer}.help-tutorial-actions button:last-child{color:#ffb5bd;border-color:rgba(255,105,122,.20)}
.capsule-crafter-state{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:10px 11px;border-radius:12px;border:1px solid rgba(123,236,196,.22);background:rgba(79,201,156,.07)}.capsule-crafter-state>span{font-size:20px;color:#82efc2}.capsule-crafter-state strong,.capsule-crafter-state small{display:block}.capsule-crafter-state strong{font-size:11px;color:#eafff7}.capsule-crafter-state small{margin-top:2px;font-size:8px;color:rgba(211,232,225,.52)}.capsule-crafter-state.locked{border-color:rgba(255,255,255,.07);background:rgba(255,255,255,.025);opacity:.64}.capsule-crafter-state.locked>span{color:#7c748c}
.veyra-tutorial-panel{margin:14px 0;padding:14px;border:1px solid rgba(168,126,255,.24);border-radius:15px;background:linear-gradient(135deg,rgba(112,72,188,.14),rgba(74,199,220,.06))}.veyra-tutorial-panel strong{display:block;margin:5px 0;color:#fff}.veyra-tutorial-panel p{margin:0 0 10px;color:rgba(224,228,255,.66)}.veyra-tutorial-panel .claim-shad-button{margin:0;width:100%}
@media(max-width:720px){.tutorial-hud{top:72px}}

/* ===== V34 Tutorial dock / reliable restore ===== */
.tutorial-hud{
  left:auto!important;
  right:18px!important;
  top:auto!important;
  bottom:18px!important;
  transform:none!important;
  width:310px!important;
  max-width:calc(100% - 36px)!important;
  padding:11px 13px!important;
  border-radius:14px!important;
}
.tutorial-hud p{margin:4px 0 7px!important;font-size:10px!important;line-height:1.35!important}
.tutorial-hud strong{font-size:13px!important}
.tutorial-hud small{margin-top:5px!important}
.tutorial-restore-button{
  position:absolute;
  right:18px;
  bottom:18px;
  z-index:27;
  border:1px solid rgba(177,137,255,.38);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(28,20,47,.97),rgba(12,10,22,.96));
  box-shadow:0 10px 30px rgba(0,0,0,.32);
  color:#d9c9ff;
  padding:9px 12px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
  cursor:pointer;
}
.tutorial-restore-button:hover{border-color:rgba(190,157,255,.7);color:#fff}
.tutorial-restore-button[hidden]{display:none!important}
@media(max-width:1050px){
  .tutorial-hud{right:12px!important;bottom:12px!important;width:min(300px,calc(100% - 24px))!important}
  .tutorial-restore-button{right:12px;bottom:12px}
}
/* V35 Marketplace */
.market-toolbar,.market-sell-row{display:flex;gap:8px;margin-bottom:10px}.market-toolbar select,.market-sell-card select,.market-sell-card input{width:100%;background:#0d0c16;border:1px solid rgba(157,128,224,.22);border-radius:9px;color:#eee;padding:9px;font:inherit}.market-toolbar button{width:38px;border:1px solid rgba(157,128,224,.25);border-radius:9px;background:#151122;color:#ddd}.market-list{display:flex;flex-direction:column;gap:8px}.market-row{padding:10px;border:1px solid rgba(157,128,224,.18);border-radius:11px;background:rgba(18,15,29,.72)}.market-row-head,.market-row-foot{display:flex;justify-content:space-between;gap:8px;align-items:center}.market-row strong{font-size:12px}.market-row small{display:block;color:#8e8aa0;margin-top:3px}.market-price{color:#80d9ff;font-weight:900;white-space:nowrap}.market-row button{margin-top:8px;width:100%;padding:7px;border-radius:8px;border:1px solid rgba(145,106,239,.4);background:#211637;color:#eee;font-weight:800;cursor:pointer}.market-row button:hover{background:#2c1c49}.market-sell-card{margin-top:12px}.market-sell-card>select{margin-bottom:8px}.market-sell-card small{display:block;margin-top:8px;color:#777386;line-height:1.35}.dock-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}

/* Marketplace V2 */
.market-search-row{margin-bottom:8px}.market-search-row input{width:100%;background:#0d0c16;border:1px solid rgba(157,128,224,.22);border-radius:9px;color:#eee;padding:9px;font:inherit}.market-toolbar select{min-width:0}.market-metrics{display:grid;grid-template-columns:1fr 1.45fr;gap:6px;margin-top:8px}.market-metrics span{display:flex;flex-direction:column;gap:2px;padding:7px 8px;border-radius:8px;background:rgba(116,83,185,.09);border:1px solid rgba(157,128,224,.12);font-size:10px;color:#d7d2e3}.market-metrics b{font-size:8px;letter-spacing:.12em;color:#807991}.market-history{margin-top:6px;font-size:9px;color:#8e8aa0}.market-row{transition:border-color .15s ease,background .15s ease}.market-row:hover{border-color:rgba(157,128,224,.34);background:rgba(24,19,38,.82)}

/* V37 · richer player profiles */
.player-profile-collection { display:grid; gap:10px; }
.player-profile-collection-summary { display:flex; align-items:baseline; gap:9px; padding:11px 13px; border:1px solid rgba(167,127,255,.16); border-radius:14px; background:rgba(140,95,255,.06); }
.player-profile-collection-summary strong { color:#fff; font-size:20px; }
.player-profile-collection-summary span { color:rgba(222,226,255,.62); font-size:11px; }
.player-profile-species-grid { display:grid; gap:8px; }
.player-profile-species-card { padding:11px 12px; border:1px solid rgba(255,255,255,.07); border-radius:13px; background:rgba(255,255,255,.022); }
.player-profile-species-head { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.player-profile-species-head strong { color:#fff; font-size:12px; }
.player-profile-species-head span { color:rgba(220,225,255,.55); font-size:10px; white-space:nowrap; }
.player-profile-variant-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.player-profile-variant-chip { display:inline-flex; align-items:center; gap:5px; padding:5px 7px; border-radius:999px; border:1px solid rgba(255,255,255,.07); background:rgba(0,0,0,.18); color:rgba(235,238,255,.75); font-size:9px; }
.player-profile-variant-chip i { width:8px; height:8px; border-radius:50%; background:var(--variant-color,#eee); box-shadow:0 0 9px color-mix(in srgb,var(--variant-color,#eee) 45%, transparent); }
.player-profile-variant-chip b { color:#fff; }


/* V54 - Sysadmin Neustartsteuerung */
.server-restart-control{margin-top:10px;padding:11px;border:1px solid rgba(239,179,117,.15);border-radius:11px;background:linear-gradient(180deg,rgba(239,179,117,.045),rgba(0,0,0,.12))}
.server-restart-control-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.server-restart-control-head>div{min-width:0}.server-restart-control-head strong{display:block;color:#f0d0ad;font-size:9px;letter-spacing:.04em}.server-restart-control-head small{display:block;margin-top:3px;color:#7d746c;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px}
.server-restart-quick-row{display:grid;grid-template-columns:1fr 82px;gap:7px}.server-restart-quick-button,.server-restart-cancel{border:1px solid rgba(239,179,117,.24);border-radius:8px;background:rgba(239,179,117,.09);color:#f0c99f;font-size:8px;font-weight:900;cursor:pointer}.server-restart-quick-button{padding:9px}.server-restart-quick-button:hover{background:rgba(239,179,117,.15)}.server-restart-cancel{padding:6px 8px;color:#ff9b9b;border-color:rgba(255,112,112,.2);background:rgba(255,91,91,.055)}
.server-restart-minute-wrap{display:grid;grid-template-columns:1fr auto;align-items:center;border:1px solid rgba(255,255,255,.07);border-radius:8px;background:rgba(0,0,0,.18);overflow:hidden}.server-restart-minute-wrap input{width:100%;min-width:0;border:0!important;background:transparent!important;padding:8px 3px 8px 9px!important;color:#fff;font-size:9px;outline:none}.server-restart-minute-wrap span{padding-right:8px;color:#787d8a;font-size:7px}.server-restart-reason-toggle{display:flex;align-items:center;gap:7px;margin-top:9px;color:#8a8e9b;font-size:8px;cursor:pointer}.server-restart-reason-toggle input{accent-color:#b27cff}.server-restart-reason{width:100%;margin-top:8px;padding:8px 9px;border:1px solid rgba(255,255,255,.07);border-radius:8px;outline:none;background:rgba(0,0,0,.17);color:#d7d9e0;font:inherit;font-size:8px}.server-restart-reason:focus{border-color:rgba(239,179,117,.3)}.server-restart-control>small{display:block;margin-top:7px;color:#626775;font-size:7px}.sysadmin-command-divider{display:flex;align-items:center;gap:8px;margin-top:12px;color:#555b68;font-size:7px;text-transform:uppercase;letter-spacing:.12em}.sysadmin-command-divider:before,.sysadmin-command-divider:after{content:"";height:1px;background:rgba(255,255,255,.055);flex:1}
